<commit_before>headers = [
  "HTTP/1.1 200 OK",
  "Content-Type: text/event-stream",
  "Cache-Control: no-cache, no-store",
  "Connection: close"
]

if origin = SseRailsEngine.access_control_allow_origin
  headers << "Access-Control-Allow-Origin: #{origin}"
end

headers << "" << ""

SseRailsEngine::Connection.sse_header = headers.join("\r\n").freeze<commit_msg>rubocop<commit_after>headers = [
  'HTTP/1.1 200 OK',
  'Content-Type: text/event-stream',
  'Cache-Control: no-cache, no-store',
  'Connection: close'
]

if origin = SseRailsEngine.access_control_allow_origin
  headers << "Access-Control-Allow-Origin: #{origin}"
end

headers << '' << ''

SseRailsEngine::Connection.sse_header = headers.join("\r\n").freeze
{'fraction_non_alphanumeric': 0.17222222222222222, 'fraction_numerical': 0.013888888888888888, 'mean_word_length': 4.958677685950414, 'pattern_counts': {'":': 0, '<': 15, '<?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': '2204995', 'n_tokens_mistral': 263, 'n_tokens_neox': 256, 'n_words': 41}