<commit_before>package reaktor.scct

import org.specs.mock.Mockito
import org.specs.Specification

class EnvSpec extends Specification with Mockito {
  "Env" should {
    "provide Option[String]'s" in {
      val propName = "scct.test."+System.currentTimeMillis
      try {
        Env.sysOption(propName) mustEqual None
        System.setProperty(propName, "1")
        Env.sysOption(propName) mustEqual Some("1")
      } finally {
        System.setProperty(propName, null)
      }
    }
  }<commit_msg>Fix systemproperty clearing in test.<commit_after>package reaktor.scct

import org.specs.mock.Mockito
import org.specs.Specification

class EnvSpec extends Specification with Mockito {
  "Env" should {
    "provide Option[String]'s" in {
      val propName = "scct.test."+System.currentTimeMillis
      try {
        Env.sysOption(propName) mustEqual None
        System.setProperty(propName, "1")
        Env.sysOption(propName) mustEqual Some("1")
      } finally {
        System.clearProperty(propName)
      }
    }
  }
{'fraction_non_alphanumeric': 0.1010689990281827, 'fraction_numerical': 0.003887269193391642, 'mean_word_length': 3.0711462450592886, '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': '406068', 'n_tokens_mistral': 322, 'n_tokens_neox': 318, 'n_words': 67}