<commit_before># TODO think about a better way
db_name = app_path.split('/').last

remove_file 'config/database.yml'
create_file 'config/database.yml' do
<<-YAML
defaults: &defaults
  adapter: sqlite3

development:
  database: #{db_name}_development.db
  <<: *defaults

  # Add more repositories
  # repositories:
  #   repo1:
  #     adapter:  postgresql
  #     database: sample_development
  #     username: the_user
  #     password: <PASSWORD>
  #     host:     localhost
  #   repo2:
  #     ...

test:
  database: #{db_name}_test.db
  <<: *defaults
production:
  database: #{db_name}_production.db
  <<: *defaults
YAML
end<commit_msg>Please don't fool me sqlite3<commit_after># TODO think about a better way
db_name = app_path.split('/').last

remove_file 'config/database.yml'
create_file 'config/database.yml' do
<<-YAML
defaults: &defaults
  adapter: sqlite3

development:
  database: :memory:
  <<: *defaults

  # Add more repositories
  # repositories:
  #   repo1:
  #     adapter:  postgresql
  #     database: sample_development
  #     username: the_user
  #     password: <PASSWORD>
  #     host:     localhost
  #   repo2:
  #     ...

test:
  database: :memory:
  <<: *defaults
production:
  database: :memory:
  <<: *defaults
YAML
end
{'fraction_non_alphanumeric': 0.12200956937799043, 'fraction_numerical': 0.005582137161084529, 'mean_word_length': 3.2114093959731544, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 5, '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': '5167328', 'n_tokens_mistral': 449, 'n_tokens_neox': 419, 'n_words': 101}