<commit_before>package keyring

import keychain "github.com/99designs/aws-vault/Godeps/_workspace/src/github.com/keybase/go-osxkeychain"

type OSXKeychain struct {
}

func (k *OSXKeychain) Get(service, key string) ([]byte, error) {
	attributes := keychain.GenericPasswordAttributes{
		ServiceName: service,
		AccountName: key,
	}

	if b, err := keychain.FindGenericPassword(&attributes); err == keychain.ErrItemNotFound {
		return b, ErrKeyNotFound
	} else {
		return b, err
	}
}

func (k *OSXKeychain) Set(service, key string, secret []byte) error {
	attributes := keychain.GenericPasswordAttributes{
		ServiceName: service,
		AccountName: key,
		Password:    <PASSWORD>,<commit_msg>Replace keybase/go-osxkeychain with 99designs fork<commit_after>package keyring

import keychain "github.com/99designs/aws-vault/Godeps/_workspace/src/github.com/99designs/go-osxkeychain"

type OSXKeychain struct {
}

func (k *OSXKeychain) Get(service, key string) ([]byte, error) {
	attributes := keychain.GenericPasswordAttributes{
		ServiceName: service,
		AccountName: key,
	}

	if b, err := keychain.FindGenericPassword(&attributes); err == keychain.ErrItemNotFound {
		return b, ErrKeyNotFound
	} else {
		return b, err
	}
}

func (k *OSXKeychain) Set(service, key string, secret []byte) error {
	attributes := keychain.GenericPasswordAttributes{
		ServiceName: service,
		AccountName: key,
		Password:    <PASSWORD>,
{'fraction_non_alphanumeric': 0.11513859275053305, 'fraction_numerical': 0.005685856432125089, 'mean_word_length': 5.257777777777778, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7204230', 'n_tokens_mistral': 485, 'n_tokens_neox': 461, 'n_words': 107}