<commit_before>Brightcontent::Engine.routes.draw do
  get 'attachments/:type/:id' => 'attachments#show', as: :attachments
  post 'attachments/:type/:id/reposition' => 'attachments#reposition'
  put 'attachments' => 'attachments#create', as: :new_attachment
  delete 'attachments/:id' => 'attachments#destroy', as: :destroy_attachment
end
<commit_msg>Respond to both PUT and PATCH on attachment upload.<commit_after>Brightcontent::Engine.routes.draw do
  get 'attachments/:type/:id' => 'attachments#show', as: :attachments
  post 'attachments/:type/:id/reposition' => 'attachments#reposition'
  match 'attachments' => 'attachments#create', as: :new_attachment, via: [:put, :patch]
  delete 'attachments/:id' => 'attachments#destroy', as: :destroy_attachment
end

{'fraction_non_alphanumeric': 0.15505913272010513, 'fraction_numerical': 0.0, 'mean_word_length': 7.021052631578947, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4597938', 'n_tokens_mistral': 238, 'n_tokens_neox': 248, 'n_words': 53}