<commit_before># SQLite version 3.x
#   gem install sqlite3
#
#   Ensure the SQLite 3 gem is defined in your Gemfile
#   gem 'sqlite3'
development:
  <% db = URI.parse(ENV['DATABASE_URL'] ||
                    'mysql2://root:%s@mysql:%d/glossa' % [URI.encode(ENV['MYSQL_ENV_MYSQL_ROOT_PASSWORD'] || ''),
                                                          ENV['MYSQL_PORT_3306_TCP_PORT'] || 3306]) %>
  adapter: <%= db.scheme %>
  host: <%= db.host %>
  port: <%= db.port %>
  database: <%= URI.decode db.path[1..-1] %>
  username: <%= URI.decode db.user %>
  password: <%= URI.decode db.password %>
  encoding: utf8
  pool: 5
  timeout: 5000

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  adapter: sqlite3
  database: db/test.sqlite3
  pool: 5
  timeout: 5000

production:
  adapter: sqlite3
  database: db/production.sqlite3
  pool: 5
  timeout: 5000<commit_msg>Parameters of URI.decode shouldn't be nil<commit_after># SQLite version 3.x
#   gem install sqlite3
#
#   Ensure the SQLite 3 gem is defined in your Gemfile
#   gem 'sqlite3'
development:
  <% db = URI.parse(ENV['DATABASE_URL'] ||
                    'mysql2://root:%s@mysql:%d/glossa' % [URI.encode(ENV['MYSQL_ENV_MYSQL_ROOT_PASSWORD'] || ''),
                                                          ENV['MYSQL_PORT_3306_TCP_PORT'] || 3306]) %>
  adapter: <%= db.scheme %>
  host: <%= db.host %>
  port: <%= db.port %>
  database: <%= URI.decode db.path[1..-1] || "" %>
  username: <%= URI.decode db.user || "" %>
  password: <%= URI.decode db.password || "" %>
  encoding: utf8
  pool: 5
  timeout: 5000

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  adapter: sqlite3
  database: db/test.sqlite3
  pool: 5
  timeout: 5000

production:
  adapter: sqlite3
  database: db/production.sqlite3
  pool: 5
  timeout: 5000
{'fraction_non_alphanumeric': 0.13658070678127984, 'fraction_numerical': 0.033428844317096466, 'mean_word_length': 2.8021778584392014, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5274391', 'n_tokens_mistral': 762, 'n_tokens_neox': 672, 'n_words': 196}