<commit_before>require 'json'

require 'fuzzy_set'
require 'pry'
require 'sinatra/base'
require 'slim'

require 'wikimd/renderer'
require 'wikimd/repository'

module WikiMD
  # Main Sinatra application
  class App < Sinatra::Base
    TYPE_MARKDOWN = %w(md mdown markdown)
    TYPE_TEXT = %w(txt rb js slim css scss coffee)

    # Use gzip compression
    use Rack::Deflater

    configure do
      # disable stuff not needed
      disable :method_override

      enable :sessions

      set :views, File.expand_path('../app/views', __FILE__)
      set :markdown_renderer, WikiMD::Renderer.build
      set :public_folder, File.expand_path('../app/public', __FILE__)

      set :fs_created, Time.new(0)
      set :fs, nil
      set(:repo) { WikiMD::Repository.new(settings.repo_path) }<commit_msg>removed debug require from app<commit_after>require 'json'

require 'fuzzy_set'
require 'sinatra/base'
require 'slim'

require 'wikimd/renderer'
require 'wikimd/repository'

module WikiMD
  # Main Sinatra application
  class App < Sinatra::Base
    TYPE_MARKDOWN = %w(md mdown markdown)
    TYPE_TEXT = %w(txt rb js slim css scss coffee)

    # Use gzip compression
    use Rack::Deflater

    configure do
      # disable stuff not needed
      disable :method_override

      enable :sessions

      set :views, File.expand_path('../app/views', __FILE__)
      set :markdown_renderer, WikiMD::Renderer.build
      set :public_folder, File.expand_path('../app/public', __FILE__)

      set :fs_created, Time.new(0)
      set :fs, nil
      set(:repo) { WikiMD::Repository.new(settings.repo_path) }
{'fraction_non_alphanumeric': 0.10546139359698682, 'fraction_numerical': 0.0012554927809165098, 'mean_word_length': 3.4401114206128134, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4964865', 'n_tokens_mistral': 525, 'n_tokens_neox': 507, 'n_words': 138}