<commit_before>Spree::Core::Engine.routes.draw do
  get '/unified_payments' => "unified_payments#index", as: :unified_payments
  get '/unified_payments/new' => "unified_payments#new", as: :new_unified_transaction
  post '/unified_payments/create' => "unified_payments#create", as: :create_unified_transaction
  post '/unified_payments/canceled' => "unified_payments#canceled", as: :canceled_unified_payments
  post '/unified_payments/declined' => "unified_payments#declined", as: :declined_unified_payments
  post '/unified_payments/approved' => "unified_payments#approved", as: :approved_unified_payments
  
  get 'admin/unified_payments' => "admin/unified_payments#index"
  get 'admin/unified_payments/receipt/:transaction_id' => "admin/unified_payments#receipt", as: :admin_unified_payments_receipt
  post 'admin/unified_payments/query_gateway' => "admin/unified_payments#query_gateway", as: :admin_unified_payments_query_gateway
  
  #for test
  #[TODO]:uncomment this later 
  # get '/unified_payments/declined', :to => redirect{ |p, request| '/' }
  
  #[TODO]:remove this later
  # get '/unified_payments/approved', :to => "unified_payments#approved"
  # get '/unified_payments/canceled', :to => "unified_payments#canceled"
end<commit_msg>remove unwanted routes and add the one needed to declined for get request<commit_after>Spree::Core::Engine.routes.draw do
  get '/unified_payments' => "unified_payments#index", as: :unified_payments
  get '/unified_payments/new' => "unified_payments#new", as: :new_unified_transaction
  post '/unified_payments/create' => "unified_payments#create", as: :create_unified_transaction
  post '/unified_payments/canceled' => "unified_payments#canceled", as: :canceled_unified_payments
  post '/unified_payments/declined' => "unified_payments#declined", as: :declined_unified_payments
  post '/unified_payments/approved' => "unified_payments#approved", as: :approved_unified_payments
  
  get 'admin/unified_payments' => "admin/unified_payments#index"
  get 'admin/unified_payments/receipt/:transaction_id' => "admin/unified_payments#receipt", as: :admin_unified_payments_receipt
  post 'admin/unified_payments/query_gateway' => "admin/unified_payments#query_gateway", as: :admin_unified_payments_query_gateway
   
  get '/unified_payments/declined', :to => redirect{ |p, request| '/' }  
end
{'fraction_non_alphanumeric': 0.12864493996569468, 'fraction_numerical': 0.0, 'mean_word_length': 7.243816254416961, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '866834', 'n_tokens_mistral': 827, 'n_tokens_neox': 824, 'n_words': 131}