<commit_before>class TestsController < ActionController::Base
  include Rails.application.routes.url_helpers if defined?(Rails)

  def index
    url = url_for(params.merge(:only_path => true))
    render :text => params.merge(:url => url).inspect
  end

  def show
    url = foo_path(params)
    render :text => params.merge(:url => url).inspect
  end
end<commit_msg>The url helpers are already available<commit_after>class TestsController < ActionController::Base
  def index
    url = url_for(params.merge(:only_path => true))
    render :text => params.merge(:url => url).inspect
  end

  def show
    url = foo_path(params)
    render :text => params.merge(:url => url).inspect
  end
end
{'fraction_non_alphanumeric': 0.11866859623733719, 'fraction_numerical': 0.0, 'mean_word_length': 4.088235294117647, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '7051055', 'n_tokens_mistral': 213, 'n_tokens_neox': 211, 'n_words': 54}