<commit_before>module SchemaPlus
  module ActiveRecord
    module ConnectionAdapters
      # 
      # SchemaPlus extends the IndexDefinition object to return information
      # about partial indexes and case sensitivity (i.e. Postgresql
      # support).
      module IndexDefinition
        def self.included(base)  #:nodoc:
          base.alias_method_chain :initialize, :schema_plus
        end
        
        attr_reader :conditions
        attr_reader :expression
        attr_reader :kind

        def case_sensitive?
          @case_sensitive
        end

        def initialize_with_schema_plus(*args) #:nodoc:
          # same args as add_index(table_name, column_names, options)
          if args.length == 3 and Hash === args.last
            table_name, column_names, options = args + [{}]
            initialize_without_schema_plus(table_name, options[:name], options[:unique], column_names, options[:lengths] || options[:length], options[:orders])
            @conditions = options[:conditions]
            @expression = options[:expression]<commit_msg>no need for backwards-compatibility with incorrect :lengths keyword, since it wasn't working anyway.<commit_after>module SchemaPlus
  module ActiveRecord
    module ConnectionAdapters
      # 
      # SchemaPlus extends the IndexDefinition object to return information
      # about partial indexes and case sensitivity (i.e. Postgresql
      # support).
      module IndexDefinition
        def self.included(base)  #:nodoc:
          base.alias_method_chain :initialize, :schema_plus
        end
        
        attr_reader :conditions
        attr_reader :expression
        attr_reader :kind

        def case_sensitive?
          @case_sensitive
        end

        def initialize_with_schema_plus(*args) #:nodoc:
          # same args as add_index(table_name, column_names, options)
          if args.length == 3 and Hash === args.last
            table_name, column_names, options = args + [{}]
            initialize_without_schema_plus(table_name, options[:name], options[:unique], column_names, options[:length], options[:orders])
            @conditions = options[:conditions]
            @expression = options[:expression]
{'fraction_non_alphanumeric': 0.07887579329102448, 'fraction_numerical': 0.0009066183136899365, 'mean_word_length': 2.696817420435511, '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': '2893552', 'n_tokens_mistral': 562, 'n_tokens_neox': 538, 'n_words': 154}