<commit_before>module Rack
  class PermissiveCors
    def initialize(app)
      @app = app
    end

    def call(env)
      status, headers, body = @app.call(env)
      headers = headers.merge(cors_header)
      [status, headers, body]
    end

    def cors_header
      {'Access-Control-Allow-Origin' => '*', 'Access-Control-Allow-Methods' => 'GET, POST'}
    end
  end
end
<commit_msg>allow all headers, and all methods, what the heck why not<commit_after>module Rack
  class PermissiveCors
    def initialize(app)
      @app = app
    end

    def call(env)
      status, headers, body = @app.call(env)
      headers = headers.merge(cors_header)
      [status, headers, body]
    end

    def cors_header
      {
       'Access-Control-Allow-Origin' => '*',
       'Access-Control-Allow-Methods' => '*',
       'Access-Control-Allow-Headers' => '*'
      }
    end
  end
end

{'fraction_non_alphanumeric': 0.12186788154897495, 'fraction_numerical': 0.0, 'mean_word_length': 2.474308300395257, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '1332458', 'n_tokens_mistral': 296, 'n_tokens_neox': 285, 'n_words': 69}