<commit_before>const _      = require("lodash");
const chai   = require('chai');
const expect = chai.expect;
const Board  = require('../lib/board');
const BlobEngine  = require('../lib/blob-engine');

describe('blob engine object', function () {
  let game =  new Board();
  let blobEngine = new BlobEngine(game);

  describe("checkforFreshDr()", function() {
    it("returns true if the given color is on dr on the given lane", function() {
      var currentDrs = [2,0,0];
      var colorIndex = 0;

      expect(blobEngine.checkForFreshDr(currentDrs, colorIndex)).to.eq(false);

      currentDrs = [0,0,0];
      colorIndex = 0;

      expect(blobEngine.checkForFreshDr(currentDrs, colorIndex)).to.eq(true);
    });

  });

  describe("countIsUp()", function() {
    context("when the given dr counter has expired", function() {
      it("returns true", function() {
        var colorIndex = 1;
        var laneIndex = 0;

        game.drCounters[colorIndex][laneIndex] = 0;

        var result =blobEngine.countIsUp(colorIndex, laneIndex);

        expect(result).to.eq(true);
      });

    });

    context("when the given dr counter has not expired", function() {
      it("returns false", function() {
        var colorIndex = 1;
        var laneIndex = 0;

        game.drCounters[colorIndex][laneIndex] = 13;

        var result = blobEngine.countIsUp(colorIndex, laneIndex);

        expect(result).to.eq(false);
      });

    });

  });

  describe("clearDr()", function() {
    context("no matter what", function() {
      it("should clear out th dr for the given color and lane", function() {
        var currentDrs =
        var colorIndex =
        var laneIndex  = 
        var counter    =
      });
    });
  });

});<commit_msg>comments out new test content<commit_after>const _      = require("lodash");
const chai   = require('chai');
const expect = chai.expect;
const Board  = require('../lib/board');
const BlobEngine  = require('../lib/blob-engine');

describe('blob engine object', function () {
  let game =  new Board();
  let blobEngine = new BlobEngine(game);

  describe("checkforFreshDr()", function() {
    it("returns true if the given color is on dr on the given lane", function() {
      var currentDrs = [2,0,0];
      var colorIndex = 0;

      expect(blobEngine.checkForFreshDr(currentDrs, colorIndex)).to.eq(false);

      currentDrs = [0,0,0];
      colorIndex = 0;

      expect(blobEngine.checkForFreshDr(currentDrs, colorIndex)).to.eq(true);
    });

  });

  describe("countIsUp()", function() {
    context("when the given dr counter has expired", function() {
      it("returns true", function() {
        var colorIndex = 1;
        var laneIndex = 0;

        game.drCounters[colorIndex][laneIndex] = 0;

        var result =blobEngine.countIsUp(colorIndex, laneIndex);

        expect(result).to.eq(true);
      });

    });

    context("when the given dr counter has not expired", function() {
      it("returns false", function() {
        var colorIndex = 1;
        var laneIndex = 0;

        game.drCounters[colorIndex][laneIndex] = 13;

        var result = blobEngine.countIsUp(colorIndex, laneIndex);

        expect(result).to.eq(false);
      });

    });

  });

  describe("clearDr()", function() {
    context("no matter what", function() {
      it("should clear out th dr for the given color and lane", function() {
        // var currentDrs =
        // var colorIndex =
        // var laneIndex  =
        // var counter    =
      });
    });
  });

});
{'fraction_non_alphanumeric': 0.14589838206074368, 'fraction_numerical': 0.008515469770082317, 'mean_word_length': 2.7016806722689077, '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': '7116581', 'n_tokens_mistral': 1102, 'n_tokens_neox': 1034, 'n_words': 270}