<commit_before>describe("Tic Tac Toe Game", function() {
  it("makes sure that player One starts", function() {
    var game = new Game()
    var playerOne = "X"
    var playerTwo = "O"

    var validTurn = game.put(playerOne)
    expect(validTurn).toEqual(true)

  })

  it("makes sure that player Two does not start", function() {
    var game = new Game()
    var playerOne = "X"
    var playerTwo = "O"

    var validTurn = game.put(playerTwo)
    expect(validTurn).toEqual(false)

  })

  it("makes sure that player Two makes second turn", function() {
    var game = new Game()
    var playerOne = "X"
    var playerTwo = "O"

    game.put(playerOne)

    validTurn = game.put(playerTwo)
    expect(validTurn).toEqual(true)
  })

  it("is possible to put a mark only in empty cell", function() {
    var game = new Game()
    var playerOne = "X"
    var playerTwo = "O"
    var cell = [3, 3]

    var validTurn = game.put(playerOne, cell)
    expect(validTurn).toEqual(true)

  })

  it("is not possible to put mark in occupied cell", function() {
    var game = new Game()
    var playerOne = "X"
    var playerTwo = "O"
    var cell = [3, 3]

    game.put(playerOne, cell)

    validTurn = game.put(playerTwo, cell)
    expect(validTurn).toEqual(false)
  })
})
<commit_msg>refactor: Clean up test suite's common variables.<commit_after>describe("Tic Tac Toe Game", function() {
  var playerOne = "X"
  var playerTwo = "O"

  var game

  beforeEach(function() {
    game = new Game()
  })

  it("makes sure that player One starts", function() {
    var validTurn = game.put(playerOne)
    expect(validTurn).toEqual(true)
  })

  it("makes sure that player Two does not start", function() {
    var validTurn = game.put(playerTwo)
    expect(validTurn).toEqual(false)
  })

  it("makes sure that player Two makes second turn", function() {
    game.put(playerOne)

    validTurn = game.put(playerTwo)
    expect(validTurn).toEqual(true)
  })

  it("is possible to put a mark only in empty cell", function() {
    var validTurn = game.put(playerOne, [3, 3])
    expect(validTurn).toEqual(true)
  })

  it("is not possible to put mark in occupied cell", function() {
    game.put(playerOne, [3, 3])

    validTurn = game.put(playerTwo, [3, 3])
    expect(validTurn).toEqual(false)
  })
})

{'fraction_non_alphanumeric': 0.13170518970780637, 'fraction_numerical': 0.00436109899694723, 'mean_word_length': 3.170909090909091, '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': '2922323', 'n_tokens_mistral': 770, 'n_tokens_neox': 740, 'n_words': 227}