<commit_before>import sbt._

object Dependencies {

  val scala_major = 2.12

  val scala_minor = 8

  val scala = s"$scala_major.$scala_minor"

  //val crossScala = Seq("2.11.8", "2.12.4")

  val platform: String = {
    // Determine platform name using code similar to javacpp
    // com.googlecode.javacpp.Loader.java line 60-84
    val jvmName = System.getProperty("java.vm.name").toLowerCase
    var osName = System.getProperty("os.name").toLowerCase
    var osArch = System.getProperty("os.arch").toLowerCase
    if (jvmName.startsWith("dalvik") && osName.startsWith("linux")) {
      osName = "android"
    } else if (jvmName.startsWith("robovm") && osName.startsWith("darwin")) {
      osName = "ios"
      osArch = "arm"
    } else if (osName.startsWith("mac os x")) {
      osName = "macosx"
    } else {
      val spaceIndex = osName.indexOf(' ')
      if (spaceIndex > 0) {
        osName = osName.substring(0, spaceIndex)
      }
    }
    if (osArch.equals("i386") || osArch.equals("i486") || osArch.equals("i586") || osArch.equals("i686")) {
      osArch = "x86"
    } else if (osArch.equals("amd64") || osArch.equals("x86-64") || osArch.equals("x64")) {
      osArch = "x86_64"
    } else if (osArch.startsWith("arm")) {
      osArch = "arm"
    }
    val platformName = osName + "-" + osArch
    println("platform: " + platformName)
    platformName
  }

  val tfscala_version = "0.4.2-SNAPSHOT"

  private def process_flag(s: String) = if(s.toLowerCase == "true" || s == "1") true else false
  
  //Set to true if, building with Nvidia GPU support.
  val gpuFlag: Boolean = process_flag(Option(System.getProperty("gpu")).getOrElse("false"))

  //Set to false if using self compiled tensorflow library
  val packagedTFFlag: Boolean = true

  val tensorflow_classifier: String = {
    val platform_splits = platform.split("-")
    val (os, arch) = (platform_splits.head, platform_splits.last)

    val tf_c =
      if (os.contains("macosx")) "darwin-cpu-"+arch
      else if(os.contains("linux")) {
        if(gpuFlag) "linux-gpu-"+arch else "linux-cpu-"+arch
      } else ""
    println("Tensorflow-Scala Classifier: "+tf_c)
    tf_c
  }

  val baseDependencies = Seq(
    "com.typesafe" % "config" % "1.2.1" % "compile",
    "junit" % "junit" % "4.11",
    "com.github.tototoshi" %% "scala-csv" % "1.3.5" % "compile",
    "org.scala-lang" % "jline" % "2.11.0-M3" % "compile",
    "org.scalaforge" % "scalax" % "0.1" % "compile",<commit_msg>Update typesafe:config to 1.3.4<commit_after>import sbt._

object Dependencies {

  val scala_major = 2.12

  val scala_minor = 8

  val scala = s"$scala_major.$scala_minor"

  //val crossScala = Seq("2.11.8", "2.12.4")

  val platform: String = {
    // Determine platform name using code similar to javacpp
    // com.googlecode.javacpp.Loader.java line 60-84
    val jvmName = System.getProperty("java.vm.name").toLowerCase
    var osName = System.getProperty("os.name").toLowerCase
    var osArch = System.getProperty("os.arch").toLowerCase
    if (jvmName.startsWith("dalvik") && osName.startsWith("linux")) {
      osName = "android"
    } else if (jvmName.startsWith("robovm") && osName.startsWith("darwin")) {
      osName = "ios"
      osArch = "arm"
    } else if (osName.startsWith("mac os x")) {
      osName = "macosx"
    } else {
      val spaceIndex = osName.indexOf(' ')
      if (spaceIndex > 0) {
        osName = osName.substring(0, spaceIndex)
      }
    }
    if (osArch.equals("i386") || osArch.equals("i486") || osArch.equals("i586") || osArch.equals("i686")) {
      osArch = "x86"
    } else if (osArch.equals("amd64") || osArch.equals("x86-64") || osArch.equals("x64")) {
      osArch = "x86_64"
    } else if (osArch.startsWith("arm")) {
      osArch = "arm"
    }
    val platformName = osName + "-" + osArch
    println("platform: " + platformName)
    platformName
  }

  val tfscala_version = "0.4.2-SNAPSHOT"

  private def process_flag(s: String) = if(s.toLowerCase == "true" || s == "1") true else false
  
  //Set to true if, building with Nvidia GPU support.
  val gpuFlag: Boolean = process_flag(Option(System.getProperty("gpu")).getOrElse("false"))

  //Set to false if using self compiled tensorflow library
  val packagedTFFlag: Boolean = true

  val tensorflow_classifier: String = {
    val platform_splits = platform.split("-")
    val (os, arch) = (platform_splits.head, platform_splits.last)

    val tf_c =
      if (os.contains("macosx")) "darwin-cpu-"+arch
      else if(os.contains("linux")) {
        if(gpuFlag) "linux-gpu-"+arch else "linux-cpu-"+arch
      } else ""
    println("Tensorflow-Scala Classifier: "+tf_c)
    tf_c
  }

  val baseDependencies = Seq(
    "com.typesafe" % "config" % "1.3.4" % "compile",
    "junit" % "junit" % "4.11",
    "com.github.tototoshi" %% "scala-csv" % "1.3.5" % "compile",
    "org.scala-lang" % "jline" % "2.11.0-M3" % "compile",
    "org.scalaforge" % "scalax" % "0.1" % "compile",
{'fraction_non_alphanumeric': 0.16558573165788407, 'fraction_numerical': 0.026550466153222537, 'mean_word_length': 3.0920398009950247, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6509111', 'n_tokens_mistral': 1847, 'n_tokens_neox': 1770, 'n_words': 372}