<commit_before>package collection

import org.scalatest.FunSuite

import scala.collection.mutable.{ArrayBuffer, ListBuffer}
import scala.language.postfixOps

class FunctionsTest extends FunSuite {
  test("seq") {
    val seq = Seq(1, 2, 3)
    assert(seq == 1 +: Seq(2, 3))
    assert(seq == Seq(1, 2) :+ 3)
    assert(seq == Seq(1) ++ Seq(2, 3))
    assert(seq == Seq(1) ++: Seq(2, 3))
    assert(seq.head == 1)
    assert(seq.tail == Seq(2, 3))
    assert(seq.last == 3)
    assert(seq.sum == 6)
    assert(seq.filter(_ > 1) == Seq(2, 3))
    assert(seq.map(_ * 2) == Seq(2, 4, 6))
    assert((seq :+ 4) == Seq(1, 2, 3, 4))
    assert((seq drop 1) == Seq(2, 3))
    assert(seq.dropWhile(_ < 2) == Seq(2, 3))
    assert(seq.dropRight(1) == Seq(1, 2))
    assert((seq take 2) == Seq(1, 2))
    assert(seq.takeWhile(_ < 3) == Seq(1, 2))
    assert(seq.takeRight(1) == Seq(3))
    assert(seq.slice(0, 2) == Seq(1, 2))<commit_msg>changed test name<commit_after>package collection

import org.scalatest.FunSuite

import scala.collection.mutable.{ArrayBuffer, ListBuffer}
import scala.language.postfixOps

class FunctionsTest extends FunSuite {
  test("seq *") {
    val seq = Seq(1, 2, 3)
    assert(seq == 1 +: Seq(2, 3))
    assert(seq == Seq(1, 2) :+ 3)
    assert(seq == Seq(1) ++ Seq(2, 3))
    assert(seq == Seq(1) ++: Seq(2, 3))
    assert(seq.head == 1)
    assert(seq.tail == Seq(2, 3))
    assert(seq.last == 3)
    assert(seq.sum == 6)
    assert(seq.filter(_ > 1) == Seq(2, 3))
    assert(seq.map(_ * 2) == Seq(2, 4, 6))
    assert((seq :+ 4) == Seq(1, 2, 3, 4))
    assert((seq drop 1) == Seq(2, 3))
    assert(seq.dropWhile(_ < 2) == Seq(2, 3))
    assert(seq.dropRight(1) == Seq(1, 2))
    assert((seq take 2) == Seq(1, 2))
    assert(seq.takeWhile(_ < 3) == Seq(1, 2))
    assert(seq.takeRight(1) == Seq(3))
    assert(seq.slice(0, 2) == Seq(1, 2))
{'fraction_non_alphanumeric': 0.20913978494623656, 'fraction_numerical': 0.05698924731182796, 'mean_word_length': 3.3078703703703702, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4432234', 'n_tokens_mistral': 838, 'n_tokens_neox': 773, 'n_words': 173}