<commit_before>package tetris

import Utils._

object Main extends App {

  mkdirp(arrays)
  mkdirp(maps)

  args.headOption.getOrElse("playRanked") match {
    case "computeMap" => {
      executeInSpark { sc =>
        val data = 0 until 2// ContourRank.parts
        val k = sc.parallelize(data).map(ContourRank.computeMap)
        k.collect()
      }
    }
    case "runIterations" => new ContourRank(4).runIterations()
    case "loadRanks" => ContourRank.loadRanks
    case "playRanked" => {
      import tetrominoes.{S, Z}
      val game = new RankedGame
      game.generator.preview(1).head match {
        case S(_, _) | Z(_, _) => game.generator.next
        case _ =>
      }
      for (_ <- 0 to 15) {
        game.play()
      }
    }
    case _ => println("Unknown game mode")
  }
  //  scala.io.StdIn.readLine()

}<commit_msg>Whoops<commit_after>package tetris

import Utils._

object Main extends App {

  mkdirp(arrays)
  mkdirp(maps)

  args.headOption.getOrElse("playRanked") match {
    case "computeMap" => {
      executeInSpark { sc =>
        val data = 0 until ContourRank.parts
        val k = sc.parallelize(data).map(ContourRank.computeMap)
        k.collect()
      }
    }
    case "runIterations" => new ContourRank(4).runIterations()
    case "loadRanks" => ContourRank.loadRanks
    case "playRanked" => {
      import tetrominoes.{S, Z}
      val game = new RankedGame
      game.generator.preview(1).head match {
        case S(_, _) | Z(_, _) => game.generator.next
        case _ =>
      }
      for (_ <- 0 to 15) {
        game.play()
      }
    }
    case _ => println("Unknown game mode")
  }
  //  scala.io.StdIn.readLine()

}
{'fraction_non_alphanumeric': 0.13061713600958658, 'fraction_numerical': 0.007789095266626723, 'mean_word_length': 2.2745098039215685, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '3939988', 'n_tokens_mistral': 595, 'n_tokens_neox': 564, 'n_words': 117}