<commit_before>package com.gilesc
package mynab

import com.gilesc.mynab.testkit.TestCase

abstract class InMemoryDatabase extends TestCase {
  private[this] def migrateDatabase(): Unit = {
    import org.flywaydb.core.Flyway

    case class DatabaseConfig(
      driver: String,
      url: String,
      username: String,
      password: String
    )

    val config = pureconfig.loadConfigOrThrow[DatabaseConfig]("mynab.database")
    val flyway = new Flyway()

    flyway.setLocations("classpath:db/migration")
    flyway.setDataSource(config.url, config.username, config.password)
    flyway.migrate()

    ()
  }

  migrateDatabase()
}<commit_msg>Adding Flyway.clean to the migration test<commit_after>package com.gilesc
package mynab

import com.gilesc.mynab.testkit.TestCase

abstract class InMemoryDatabase extends TestCase {
  private[this] def migrateDatabase(): Unit = {
    import org.flywaydb.core.Flyway

    case class DatabaseConfig(
      driver: String,
      url: String,
      username: String,
      password: String
    )

    val config = pureconfig.loadConfigOrThrow[DatabaseConfig]("mynab.database")
    val flyway = new Flyway()

    flyway.setLocations("classpath:db/migration")
    flyway.setDataSource(config.url, config.username, config.password)
    flyway.clean()
    flyway.migrate()

    ()
  }

  migrateDatabase()
}
{'fraction_non_alphanumeric': 0.09770540340488527, 'fraction_numerical': 0.0, 'mean_word_length': 3.6460481099656357, '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': '5627479', 'n_tokens_mistral': 425, 'n_tokens_neox': 414, 'n_words': 88}