<commit_before>require 'uri'
require 'gollum/app'
require 'octokit'
require './precious'

class App
  def initialize
    @repo_urls = ENV.collect { |e| e[1] if e[0] =~ /^GIT_REPO_URL_[0-9]+$/ }.compact!

    @github_token = ENV['GITHUB_TOKEN']
    @author_email = ENV['AUTHOR_EMAIL']
    @author_name = ENV['AUTHOR_NAME']
    @gollum_universal_toc = ENV['GOLLUM_UNIVERSAL_TOC'] || false
    @gollum_allow_editing = ENV['GOLLUM_ALLOW_EDITING'] || true
    @gollum_live_preview = ENV['GOLLUM_LIVE_PREVIEW'] || false
    @gollum_allow_uploads = ENV['GOLLUM_ALLOW_UPLOADS'] || true
    @gollum_show_all = ENV['GOLLUM_SHOW_ALL'] || true
    @gollum_collapse_tree = ENV['GOLLUM_COLLAPSE_TREE'] || false
    @gollum_is_bare = ENV['GOLLUM_IS_BARE'] || false

    @gollum_h1_title = false
    @gollum_user_icons = 'none'
    @gollum_css = true
    @gollum_js = true
    @gollum_template_dir = nil

    `git config --global credential.helper store`
    `echo https://#{@github_token}:x-oauth-basic@github.com > ~/.git-credentials` if @github_token
  end<commit_msg>Convert to boolean from string<commit_after>require 'uri'
require 'gollum/app'
require 'octokit'
require './precious'

class App
  def initialize
    @repo_urls = ENV.collect { |e| e[1] if e[0] =~ /^GIT_REPO_URL_[0-9]+$/ }.compact!

    @github_token = ENV['GITHUB_TOKEN']
    @author_email = ENV['AUTHOR_EMAIL']
    @author_name = ENV['AUTHOR_NAME']

    @gollum_universal_toc = ENV['GOLLUM_UNIVERSAL_TOC'] ? !ENV['GOLLUM_UNIVERSAL_TOC'].downcase.eql?("true".downcase) : false
    @gollum_allow_editing = ENV['GOLLUM_ALLOW_EDITING'] ? !ENV['GOLLUM_ALLOW_EDITING'].downcase.eql?("false".downcase) : true
    @gollum_live_preview = ENV['GOLLUM_LIVE_PREVIEW'] ? !ENV['GOLLUM_LIVE_PREVIEW'].downcase.eql?("true".downcase) : false
    @gollum_allow_uploads = ENV['GOLLUM_ALLOW_UPLOADS'] ? !ENV['GOLLUM_ALLOW_UPLOADS'].downcase.eql?("false".downcase) : true
    @gollum_show_all = ENV['GOLLUM_SHOW_ALL'] ? !ENV['GOLLUM_SHOW_ALL'].downcase.eql?("false".downcase) : true
    @gollum_collapse_tree = ENV['GOLLUM_COLLAPSE_TREE'] ? !ENV['GOLLUM_COLLAPSE_TREE'].downcase.eql?("true".downcase) : false
    @gollum_is_bare = ENV['GOLLUM_IS_BARE'] ? !ENV['GOLLUM_IS_BARE'].downcase.eql?("false".downcase) : true

    @gollum_h1_title = false
    @gollum_user_icons = 'none'
    @gollum_css = true
    @gollum_js = true
    @gollum_template_dir = nil

    `git config --global credential.helper store`
    `echo https://#{@github_token}:x-oauth-basic@github.com > ~/.git-credentials` if @github_token
  end
{'fraction_non_alphanumeric': 0.15200314218381775, 'fraction_numerical': 0.003927729772191673, 'mean_word_length': 4.992941176470588, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2685609', 'n_tokens_mistral': 1087, 'n_tokens_neox': 1058, 'n_words': 146}