<commit_before>require 'oj'
require 'faye'
require 'pry'
Faye::WebSocket.load_adapter('thin')
Faye.logger = lambda { |m| puts m }

crossdomain_xml =  File.read('./crossdomain.xml')
app = proc do |env|
  [
    200,
    {},
    [crossdomain_xml]
  ]
end
faye_server = Faye::RackAdapter.new(app, {mount: "/faye", timeout: 60 })
run faye_server<commit_msg>fix issue which causes security sandbox error<commit_after>require 'oj'
require 'faye'

Faye::WebSocket.load_adapter('thin')
Faye.logger = lambda { |m| puts m }

crossdomain_xml =  File.read('./crossdomain.xml')
app = proc do |env|
  [
   200,
   {'Content-Type' => 'text/xml' },
   [crossdomain_xml],
  ]
end
faye_server = Faye::RackAdapter.new(app, {mount: "/faye", timeout: 60 })
run faye_server
{'fraction_non_alphanumeric': 0.16133333333333333, 'fraction_numerical': 0.013333333333333334, 'mean_word_length': 4.522058823529412, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 7}, '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': '6044744', 'n_tokens_mistral': 290, 'n_tokens_neox': 279, 'n_words': 63}