<commit_before>OData::Engine.routes.draw do
  get '/' => "o_data#service", :as => :service, :defaults => { :format => 'json' }
  # this is what we want to do, but this doesn't work in Rails 4
  #get '$metadata' => "o_data#metadata", :as => :o_data_metadata, :defaults => { :format => 'xml' }
  # this is a workaround
  get ':wtfrails' => "o_data#metadata", :as => :metadata, :defaults => { :format => 'xml' },
    :constraints => {wtfrails: /\$metadata/ }
  get '*path' => "o_data#resource", :as => :resource, :defaults => { :format => 'json' }
end
<commit_msg>switch back to XML as default format<commit_after>OData::Engine.routes.draw do
  get '/' => "o_data#service", :as => :service, :defaults => { :format => 'xml' }
  # this is what we want to do, but this doesn't work in Rails 4
  #get '$metadata' => "o_data#metadata", :as => :o_data_metadata, :defaults => { :format => 'xml' }
  # this is a workaround
  get ':wtfrails' => "o_data#metadata", :as => :metadata, :defaults => { :format => 'xml' },
    :constraints => {wtfrails: /\$metadata/ }
  get '*path' => "o_data#resource", :as => :resource, :defaults => { :format => 'atom' }
end

{'fraction_non_alphanumeric': 0.20804195804195805, 'fraction_numerical': 0.0017482517482517483, 'mean_word_length': 4.228310502283105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '7082102', 'n_tokens_mistral': 409, 'n_tokens_neox': 392, 'n_words': 116}