<commit_before><commit_msg>Linear Congruential Generator (missing file)<commit_after>package eu.shiftforward.icfpc2015

object LinearCongruentialGeneratorTest extends App {
  assert((LinearCongruentialGenerator.bsdRandom(17) take 11 mkString ", ") == "0, 24107, 16552, 12125, 9427, 13152, 21440, 3383, 6873, 16117, 444")
}

object LinearCongruentialGenerator {
  def bsdRandom(rseed: Long) = List(0).toIterator ++ new Iterator[Long] {
    var seed = rseed
    override def hasNext: Boolean = true
    override def next: Long = { seed = (seed * 1103515245L + 12345L) % 0x100000000L; (seed >> 16) & 0x7FFFL }
  }
}
{'fraction_non_alphanumeric': 0.11437908496732026, 'fraction_numerical': 0.13725490196078433, 'mean_word_length': 5.191919191919192, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '7152826', 'n_tokens_mistral': 274, 'n_tokens_neox': 202, 'n_words': 53}