<commit_before># Protect against injection attacks
# http://www.kb.cert.org/vuls/id/380039
ActionDispatch::ParamsParser::DEFAULT_PARSERS.delete(Mime::XML)<commit_msg>Only remove the XML parser if < Rails 5<commit_after># Protect against injection attacks
# http://www.kb.cert.org/vuls/id/380039
if Rails::VERSION::MAJOR < 5
  ActionDispatch::ParamsParser::DEFAULT_PARSERS.delete(Mime::XML)
end
{'fraction_non_alphanumeric': 0.13231552162849872, 'fraction_numerical': 0.035623409669211195, 'mean_word_length': 7.208333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4552801', 'n_tokens_mistral': 141, 'n_tokens_neox': 125, 'n_words': 24}