<commit_before>require 'rubygems'
require 'bundler/setup'
require 'net/http'
require 'json'

require 'sinatra'

require_relative 'models/stop'

class KioskDisplay < Sinatra::Base

  set :server, :thin
  set :bind, '0.0.0.0'
<commit_msg>maybe CORS fix for backend<commit_after>require 'rubygems'
require 'bundler/setup'
require 'net/http'
require 'json'

require 'sinatra'

require_relative 'models/stop'

class KioskDisplay < Sinatra::Base

  set :server, :thin
  set :bind, '0.0.0.0'

  before do
    content_type :json    
    headers 'Access-Control-Allow-Origin' => '*', 
      'Access-Control-Allow-Methods' => ['OPTIONS', 'GET', 'POST']  
  end

{'fraction_non_alphanumeric': 0.13978494623655913, 'fraction_numerical': 0.01228878648233487, 'mean_word_length': 4.300813008130081, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '1123447', 'n_tokens_mistral': 240, 'n_tokens_neox': 232, 'n_words': 57}