<commit_before>require_relative 'operators/operator'

module ConceptQL
  class Nodifier
    attr :scope, :data_model, :database_type, :algorithm_fetcher

    def initialize(opts={})
      @scope = opts[:scope] || Scope.new(opts.delete(:scope_opts) || {})
      @data_model = opts[:data_model] || :omopv4
      @database_type = opts[:database_type] || :impala
      @algorithm_fetcher = opts[:algorithm_fetcher] || (proc do |alg|
        nil
      end)<commit_msg>Nodifier: default to omopv4_plus<commit_after>require_relative 'operators/operator'

module ConceptQL
  class Nodifier
    attr :scope, :data_model, :database_type, :algorithm_fetcher

    def initialize(opts={})
      @scope = opts[:scope] || Scope.new(opts.delete(:scope_opts) || {})
      @data_model = opts[:data_model] || :omopv4_plus
      @database_type = opts[:database_type] || :impala
      @algorithm_fetcher = opts[:algorithm_fetcher] || (proc do |alg|
        nil
      end)
{'fraction_non_alphanumeric': 0.1336842105263158, 'fraction_numerical': 0.003157894736842105, 'mean_word_length': 4.112903225806452, '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': '781828', 'n_tokens_mistral': 312, 'n_tokens_neox': 308, 'n_words': 60}