<commit_before>module KeteTrackableItemsControllerHelpers
  def self.included(klass)
    klass.send :helper_method, :url_for_repository
    klass.send :include, UrlFor
  end
  
  module UrlFor
    
    def url_for_repository(repo_id)
      url_for(
        :controller => "repositories",
        :action => :show, 
        :urlified_name => @current_basket.urlified_name,
        :id => repo_id) 
    end

    def url_to_create_repository
      url_for(
        :controller => "repositories",
        :action => :create, 
        :urlified_name => @current_basket.urlified_name) 
    end

    def url_to_edit_repository(repo_id)
      url_for(
        :controller => "repositories",<commit_msg>Comments for suggested DRY refactor<commit_after>module KeteTrackableItemsControllerHelpers
  def self.included(klass)
    klass.send :helper_method, :url_for_repository
    klass.send :include, UrlFor
  end
  
  module UrlFor
    
    def url_for_repository(repo_id)
      url_for(
        :controller => "repositories",
        :action => :show, 
        :urlified_name => @current_basket.urlified_name,
        :id => repo_id) 
    end

    # Could DRY up these helper methods a bit e.g.
    # def url_to_controller_action(controller_name, action)
    def url_to_create_repository
      url_for(
        :controller => "repositories",
        :action => :create, 
        :urlified_name => @current_basket.urlified_name) 
    end

    def url_to_edit_repository(repo_id)
      url_for(
        :controller => "repositories",
{'fraction_non_alphanumeric': 0.08875739644970414, 'fraction_numerical': 0.0, 'mean_word_length': 2.872773536895674, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '7651259', 'n_tokens_mistral': 496, 'n_tokens_neox': 482, 'n_words': 95}