<commit_before>module Identity
  Main = Rack::Builder.new do
    use Rack::Instruments
    use Rack::SSL if Config.production?
    use Rack::Session::Cookie, path: '/',
                               expire_after: 2592000,
                               secret: Config.secure_key
    use Rack::Csrf
    use Rack::Flash

    run Sinatra::Router.new {
      mount Identity::Assets
      run Identity::Web
    }
  end
end<commit_msg>Don't check CSRF tokens on OAuth endpoints<commit_after>module Identity
  Main = Rack::Builder.new do
    use Rack::Instruments
    use Rack::SSL if Config.production?
    use Rack::Session::Cookie, path: '/',
                               expire_after: 2592000,
                               secret: Config.secure_key
    use Rack::Csrf, skip: ["POST:/oauth/.*"]
    use Rack::Flash

    run Sinatra::Router.new {
      mount Identity::Assets
      run Identity::Web
    }
  end
end
{'fraction_non_alphanumeric': 0.1005464480874317, 'fraction_numerical': 0.015300546448087432, 'mean_word_length': 2.033112582781457, 'pattern_counts': {'":': 0, '<': 3, '<?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': '768770', 'n_tokens_mistral': 289, 'n_tokens_neox': 267, 'n_words': 67}