<commit_before># frozen_string_literal: true

require 'rash/shell/pry'
require 'rash/shell/version'

module Rash
  # :no-doc:
  module Shell
    module_function

    def environment
      ENV['RACK_ENV'] || 'development'
    end

    def environment_color
      environment == 'production' ? "\e[38;5;124m" : "\e[38;5;107m"
    end
<commit_msg>add support for APP_ENV and RAILS_ENV vars<commit_after># frozen_string_literal: true

require 'rash/shell/pry'
require 'rash/shell/version'

module Rash
  # :no-doc:
  module Shell
    module_function

    def environment
      ENV['APP_ENV'] || ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
    end

    def environment_color
      environment == 'production' ? "\e[38;5;124m" : "\e[38;5;107m"
    end

{'fraction_non_alphanumeric': 0.12980132450331125, 'fraction_numerical': 0.031788079470198675, 'mean_word_length': 3.581818181818182, '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': '5271838', 'n_tokens_mistral': 290, 'n_tokens_neox': 266, 'n_words': 58}