<commit_before>include RethinkDB::Shortcuts
R = r.connect(SETTINGS["rethinkdb"]["host"],SETTINGS["rethinkdb"]["port"],SETTINGS["rethinkdb"]["db"])
unless r.db_list.run(R).include?(SETTINGS["rethinkdb"]["db"])
  puts "rethinkdb: creating database '#{SETTINGS["rethinkdb"]["db"]}'"
  r.db_create(SETTINGS["rethinkdb"]["db"]).run(R)
  r.table_create('scripts').run(R)
end
<commit_msg>rethinkdb 1.6<commit_after>include RethinkDB::Shortcuts
R = r.connect(SETTINGS["rethinkdb"])
unless r.db_list.run(R).include?(SETTINGS["rethinkdb"]["db"])
  puts "rethinkdb: creating database '#{SETTINGS["rethinkdb"]["db"]}'"
  r.db_create(SETTINGS["rethinkdb"]["db"]).run(R)
  r.table_create('scripts').run(R)
  r.table_create('signals').run(R)
end

{'fraction_non_alphanumeric': 0.22571819425444598, 'fraction_numerical': 0.0027359781121751026, 'mean_word_length': 10.090909090909092, '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': '223822', 'n_tokens_mistral': 276, 'n_tokens_neox': 302, 'n_words': 30}