<commit_before>// Load in dependencies and library
var fs = require('fs'),
    varFind = require('../lib/var-find.js');

// Load in test files
var testDir = __dirname + '/test_files',
    testFiles = fs.readdirSync(testDir);

// Define our test suite
describe('var-find', function () {
  // Iterate over the test files (cases)
  testFiles.forEach(function (filename) {
    before(function () {
      // Load in the file contents
      var testFile = fs.readFileSync(testDir + '/' + filename, 'utf8');

      // Extract the var groups
      var groupStartRegExp = /\[/g;
      while (true) {
        // Find the next match
        var groupStart = groupStartRegExp.exec(testFile);

        // If there was no match, stop
        if (!groupStart) {
          break;
        }

        // Extract each var piece
        var group = [],
            varStartRegExp = /{/g;
        while (true) {
          var
        }
      }
    });
  });
  it('', function () {

  });
});
<commit_msg>Continuing coding of tests<commit_after>// Load in dependencies and library
var fs = require('fs'),
    assert = require('assert'),
    varFind = require('../lib/var-find.js');

// Load in test files
var testDir = __dirname + '/test_files',
    testFiles = fs.readdirSync(testDir);

// Define our test suite
describe('var-find', function () {
  // Iterate over the test files (cases)
  testFiles.forEach(function (filename) {
    before(function () {
      // Load in the file contents
      // [{var abc;}]
      var testFile = fs.readFileSync(testDir + '/' + filename, 'utf8');

      // Extract the var groups
      var groupStartRegExp = /\[/g;
      while (true) {
        // Find the next match
        // `[` + {var abc;}]
        var groupStart = groupStartRegExp.exec(testFile);

        // If there was no match, stop
        if (!groupStart) {
          break;
        }

        // Remove the starting piece
        // {var abc;}]

        // Find the group end


        // TODO: Assert groupEnd

        // Extract each var piece
        var group = [],
            varStartRegExp = /{/g;
        while (true) {
          // var varStart = varStartRegExp.exec(
          break;
        }
      }
    });
  });
  it('', function () {

  });
});

{'fraction_non_alphanumeric': 0.14011601963409193, 'fraction_numerical': 0.000892458723784025, 'mean_word_length': 1.8817480719794344, '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': '6776524', 'n_tokens_mistral': 672, 'n_tokens_neox': 654, 'n_words': 193}