<commit_before>name := "unicorn-rhino"

mainClass in Compile := Some("unicorn.rhino.Boot")

enablePlugins(JavaServerAppPackaging)

maintainer := "<NAME> <<EMAIL>>"

packageName := "unicorn-rhino"

packageSummary := "Unicorn REST API"

packageDescription := "Unicorn REST API"

executableScriptName := "rhino"

mappings in Universal ++= Seq(
  file("src/main/resources/application.conf") -> "conf/rhino.conf",
  file("src/main/resources/log4j.properties") -> "conf/log4j.properties"
)

bashScriptConfigLocation := Some("${app_home}/../conf/rhino.ini")

bashScriptExtraDefines += """addJava "-Dconfig.file=${app_home}/../conf/rhino.conf""""

bashScriptExtraDefines += """addJava "-Dlog4j.configurationFile=${app_home}/../conf/log4j.properties""""

// G1 garbage collector
bashScriptExtraDefines += """addJava "-XX:+UseG1GC""""

// Optimize string duplication, which happens a lot when parsing a data file
bashScriptExtraDefines += """addJava "-XX:+UseStringDeduplication""""

libraryDependencies ++= {
  val akkaV = "2.4.4"
  val sprayV = "1.3.3"
  Seq(
    "io.spray"            %%  "spray-can"     % sprayV,<commit_msg>fix mappings of configuration files<commit_after>name := "unicorn-rhino"

mainClass in Compile := Some("unicorn.rhino.Boot")

enablePlugins(JavaServerAppPackaging)

maintainer := "<NAME> <<EMAIL>>"

packageName := "unicorn-rhino"

packageSummary := "Unicorn REST API"

packageDescription := "Unicorn REST API"

executableScriptName := "rhino"

mappings in Universal += {
  val conf = (resourceDirectory in Compile).value / "application.conf"
  conf -> "conf/rhino.conf"
}

mappings in Universal += {
  val conf = (resourceDirectory in Compile).value / "log4j.properties"
  conf -> "conf/log4j.properties"
}

bashScriptConfigLocation := Some("${app_home}/../conf/rhino.ini")

bashScriptExtraDefines += """addJava "-Dconfig.file=${app_home}/../conf/rhino.conf""""

bashScriptExtraDefines += """addJava "-Dlog4j.configurationFile=${app_home}/../conf/log4j.properties""""

// G1 garbage collector
bashScriptExtraDefines += """addJava "-XX:+UseG1GC""""

// Optimize string duplication, which happens a lot when parsing a data file
bashScriptExtraDefines += """addJava "-XX:+UseStringDeduplication""""

libraryDependencies ++= {
  val akkaV = "2.4.4"
  val sprayV = "1.3.3"
  Seq(
    "io.spray"            %%  "spray-can"     % sprayV,
{'fraction_non_alphanumeric': 0.16602809706257982, 'fraction_numerical': 0.010217113665389528, 'mean_word_length': 4.759803921568627, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '4113317', 'n_tokens_mistral': 817, 'n_tokens_neox': 779, 'n_words': 157}