<commit_before>require 'sinatra'
require_relative 'pradlibs.rb'
Dir[File.join(File.dirname(__FILE__), '**', '*.rb')].each { |f| require f }

class PradApp < Sinatra::Base
  before do
    @pl = PradLibs.new
  end
  post '/command' do
    respond_with :json

    status 200

    text = params[:text]
    @pl.process(text).to_json
  end
end
<commit_msg>this is a commit<commit_after>require 'sinatra'
require_relative 'pradlibs.rb'
Dir[File.join(File.dirname(__FILE__), '**', '*.rb')].each { |f| require f }

class PradApp < Sinatra::Base
  before do
    @pl = PradLibs.new
  end
  post '/command' do
    content_type :json

    status 200

    text = params[:text]
    @pl.process(text).to_json
  end
end

{'fraction_non_alphanumeric': 0.1422475106685633, 'fraction_numerical': 0.008534850640113799, 'mean_word_length': 3.5714285714285716, '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': '7508888', 'n_tokens_mistral': 270, 'n_tokens_neox': 257, 'n_words': 61}