<commit_before>
import sbt._

class BioScalaProject(info: ProjectInfo) extends DefaultProject(info)
{
  override def unmanagedClasspath = super.unmanagedClasspath +++ ("lib" / "scala" / "biojava.jar") 

  val scalaToolsSnapshots = "Scala-Tools Maven2 Snapshots Repository" at "http://scala-tools.org/repo-snapshots"                                                
  val scalatest = "org.scalatest" % "scalatest" % "1.0"                                               
  override def testOptions = ExcludeTests("bio.test.FullBioTestSuite" :: Nil) :: super.testOptions.toList
  // Modify this line to run single tests
  // override def includeTest(s: String) = { s == "bio.test.BioRubySpec" }
}

<commit_msg>Get System (environment) properties to run a limited set of Scala tests for a certain user<commit_after>
import sbt._

class BioScalaProject(info: ProjectInfo) extends DefaultProject(info)
{
  override def unmanagedClasspath = super.unmanagedClasspath +++ ("lib" / "scala" / "biojava.jar") 

  val scalaToolsSnapshots = "Scala-Tools Maven2 Snapshots Repository" at "http://scala-tools.org/repo-snapshots"                                                
  val scalatest = "org.scalatest" % "scalatest" % "1.0"                                               
  override def testOptions = ExcludeTests("bio.test.FullBioTestSuite" :: Nil) :: super.testOptions.toList
  // Modify this line to run single tests
  // override def includeTest(s: String) = { s == "bio.test.BioRubySpec" }
  val properties = System.getProperties()


  // This user only runs a subset of tests:
  val user = properties.get("user.name")
  override def includeTest(s: String) = { 
    if (user == "wrk") 
      s.indexOf("Sequence")>0 || s.indexOf("Nucleotide")>0 
    else
      true
    }
}


{'fraction_non_alphanumeric': 0.1141888072357264, 'fraction_numerical': 0.0045223289994347085, 'mean_word_length': 2.5757575757575757, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '638432', 'n_tokens_mistral': 540, 'n_tokens_neox': 506, 'n_words': 134}