<commit_before># frozen_string_literal: true

Pry.hooks.add_hook(:before_session, :welcome) do |output|
  output.print "#{Pry::Helpers::Text.yellow(Pry.config.prompt_name)} shell " \
               "started in #{Rash::Shell.environment_with_color} environment. "

  output.print "Happy Hackin'" unless ENV['RACK_ENV'] == 'production'
  output.puts "\n\n"
end

Pry.config.color = true
Pry.config.theme = 'railscasts'
Pry.config.pager = false
Pry.config.history.file = '.pry_history'
Pry.config.prompt_name = "\e[38;5;222m#{ENV['APP_NAME'] || File.basename(Dir.pwd)}\033[0m"<commit_msg>add support for APP_COMPONENT in repl name<commit_after># frozen_string_literal: true

Pry.hooks.add_hook(:before_session, :welcome) do |output|
  output.print "#{Pry::Helpers::Text.yellow(Pry.config.prompt_name)} shell " \
               "started in #{Rash::Shell.environment_with_color} environment. "

  output.print "Happy Hackin'" unless ENV['RACK_ENV'] == 'production'
  output.puts "\n\n"
end

name = [ENV['APP_NAME'], ENV['APP_COMPONENT']].compact.join('-')
name = File.basename(Dir.pwd) if name.empty?

Pry.config.color = true
Pry.config.theme = 'railscasts'
Pry.config.pager = false
Pry.config.history.file = '.pry_history'
Pry.config.prompt_name = "\e[38;5;222m#{name}\033[0m"
{'fraction_non_alphanumeric': 0.16679779701022818, 'fraction_numerical': 0.015735641227380016, 'mean_word_length': 5.028436018957346, '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': '1978314', 'n_tokens_mistral': 497, 'n_tokens_neox': 474, 'n_words': 79}