<commit_before># Copyright 2012 ThoughtWorks, Inc. Licensed under the MIT License

module ActionView
  module Helpers

    class InstanceTag

      def tag_id
        "#{sanitized_object_name}_0_#{sanitized_method_name}"
      end

      # No alteration, just making it public

      def tag_id_with_index(index)
        "#{sanitized_object_name}_#{index}_#{sanitized_method_name}"
      end

    end
<commit_msg>Al : Removing duplication of rails code<commit_after># Copyright 2012 ThoughtWorks, Inc. Licensed under the MIT License

module ActionView
  module Helpers

    class InstanceTag

      def tag_id
        "#{sanitized_object_name}_0_#{sanitized_method_name}"
      end

      public :tag_id_with_index

    end

{'fraction_non_alphanumeric': 0.062154696132596686, 'fraction_numerical': 0.013812154696132596, 'mean_word_length': 3.341317365269461, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3492620', 'n_tokens_mistral': 235, 'n_tokens_neox': 221, 'n_words': 59}