<commit_before>module ActiveYaml

  module Aliases
    def self.included(base)
      base.extend(ClassMethods)
    end

    module ClassMethods

      def insert(record)
        super if record.attributes.present?
      end

      def raw_data
        YAML.load_file(full_path).reject do |k, v|
          v.kind_of? Hash and k.match /^\//i
        end
      end

    end

    def initialize(attributes={})
      super unless attributes.keys.index { |k| k.to_s.match /^\//i }
    end
  end

end
<commit_msg>:warning: ambiguous first argument; put parentheses or a space even after `/' operator<commit_after>module ActiveYaml

  module Aliases
    def self.included(base)
      base.extend(ClassMethods)
    end

    module ClassMethods

      def insert(record)
        super if record.attributes.present?
      end

      def raw_data
        YAML.load_file(full_path).reject do |k, v|
          v.kind_of? Hash and k.match(/^\//i)
        end
      end

    end

    def initialize(attributes={})
      super unless attributes.keys.index { |k| k.to_s.match(/^\//i) }
    end
  end

end

{'fraction_non_alphanumeric': 0.09567617295308188, 'fraction_numerical': 0.0, 'mean_word_length': 2.1264367816091956, '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': '2457353', 'n_tokens_mistral': 353, 'n_tokens_neox': 333, 'n_words': 91}