<commit_before>require 'base64'
module Jibby
  # This class provides the command loop for Jibby
  class Application
    attr_reader :gateway, :console
    attr_accessor :current_key, :current_ticket

    def initialize(gateway:, console:)
      @gateway = gateway
      @console = console

      @current_key = nil
      @current_ticket = nil
    end

    def start
      return false unless gateway.credentials(console)
      console.clear_screen
      loop { break unless Jibby::CommandParser.parse(input: console.prompt(prompt_text), application: self) }
      true
    end

    def load_ticket(*params)
      @gateway.load_ticket(*params)
    end

    private

    def prompt_text
      '>'
    end<commit_msg>Add ticket key to prompt if found<commit_after>require 'base64'
module Jibby
  # This class provides the command loop for Jibby
  class Application
    attr_reader :gateway, :console
    attr_accessor :current_key, :current_ticket

    def initialize(gateway:, console:)
      @gateway = gateway
      @console = console

      @current_key = nil
      @current_ticket = nil
    end

    def start
      return false unless gateway.credentials(console)
      console.clear_screen
      loop { break unless Jibby::CommandParser.parse(input: console.prompt(prompt_text), application: self) }
      true
    end

    def load_ticket(*params)
      @gateway.load_ticket(*params)
    end

    private

    def prompt_text
      "#{@current_key}>"
    end
{'fraction_non_alphanumeric': 0.07518796992481203, 'fraction_numerical': 0.002734107997265892, 'mean_word_length': 2.9460916442048517, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6578690', 'n_tokens_mistral': 451, 'n_tokens_neox': 419, 'n_words': 118}