<commit_before>require "shellwords"

module Boxen
  class Keychain

    # The keychain proxy we use to provide isolation and a friendly
    # message in security prompts.

    HELPER = File.expand_path "../../../script/Boxen", __FILE__

    # The service name to use when loading/saving passwords.

    PASSWORD_SERVICE = "GitHub Password"

    # The service name to use when loading/saving API keys.

    TOKEN_SERVICE = "GitHub API Token"

    def initialize(login)
      @login = login
      # Clear the password. We're storing tokens now.
      set PASSWORD_SERVICE, ""
    end

    def token
      get TOKEN_SERVICE
    end

    def token=(token)
      set TOKEN_SERVICE, token<commit_msg>Keychain helper doesn't like clearing the password<commit_after>require "shellwords"

module Boxen
  class Keychain

    # The keychain proxy we use to provide isolation and a friendly
    # message in security prompts.

    HELPER = File.expand_path "../../../script/Boxen", __FILE__

    # The service name to use when loading/saving passwords.

    PASSWORD_SERVICE = "GitHub Password"

    # The service name to use when loading/saving API keys.

    TOKEN_SERVICE = "GitHub API Token"

    def initialize(login)
      @login = login
    end

    def token
      get TOKEN_SERVICE
    end

    def token=(token)
      set TOKEN_SERVICE, token
{'fraction_non_alphanumeric': 0.07014925373134329, 'fraction_numerical': 0.0, 'mean_word_length': 2.7044198895027622, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1266744', 'n_tokens_mistral': 409, 'n_tokens_neox': 374, 'n_words': 142}