<commit_before>#!/usr/bin/env ruby
# Onboarder database bootstrap script
require 'pstore'

DBDIR = File.join(File.dirname(__FILE__), "..", "db")
VALID_ENVS = %w[development testing production]

env = ARGV.shift
<commit_msg>bootstrap.rb: Create the database dir if it's not already there<commit_after>#!/usr/bin/env ruby
# Onboarder database bootstrap script
require 'pstore'
require 'fileutils'

DBDIR = File.join(File.dirname(__FILE__), "..", "db")
VALID_ENVS = %w[development testing production]

FileUtils.mkdir_p(DBDIR) if not File.directory?(DBDIR)
env = ARGV.shift

{'fraction_non_alphanumeric': 0.1330998248686515, 'fraction_numerical': 0.0, 'mean_word_length': 5.891566265060241, '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': '191261', 'n_tokens_mistral': 200, 'n_tokens_neox': 190, 'n_words': 49}