<commit_before>describe('ax5.util.left TEST', function() {
  var testCases = [
      {
          args: [ 'ab.da', '.' ],
          expect: 'ab',
          explanation: 'ab.da, "."'
      },
      {
          args: [ 'abc"', "\""],
          expect: 'abc',
          explanation: 'abc", "\""'
      },
      {
          args: [ 'abc4', 4 ],
          expect: 'abc4',
          explanation: 'abc4, 4'
      },
      {
          args: [ 'abc4efg', 4.0 ],
          expect: 'abc4',
          explanation: 'abc4efg, 4.0'
      },
      {
          args: [ 'abc4e', 100 ],
          expect: 'abc4e',
          explanation: 'abc4e, 100'
      },
      {
          args: [ 'abc4', '4' ],
          expect: 'abc',
          explanation: 'abc4, "4"'
      },
      {
          args: [ 'abc', '4' ],
          expect: '',
          explanation: 'abc, "4"'
      },
      {
          args: [ 'abc', 0],
          expect: '',
          explanation: 'abc", 0'
      },
      {
          args: [ 'abc', '0'],
          expect: '',
          explanation: 'abc", "0"'
      },
      {
          args: [ 'abc'],
          expect: '',
          explanation: 'abc'
      },
      {
          args: [ 'abc', '' ],
          expect: '',
          explanation: 'abc, ""'
      },
      {
          args: [ 'abc', null ],
          expect: '',
          explanation: 'abc, null'
      },
      {
          args: [ 'abc', undefined],
          expect: '',
          explanation: 'abc", undefined'
      },
      {
          args: [ 'abc', true],
          expect: '',
          explanation: 'abc", true'
      },
      {
          args: [ 'abc', false],
          expect: '',
          explanation: 'abc", false'
      },
      {
          args: [ 'abc', new Object],
          expect: '',
          explanation: 'abc", new Object'
      },
      {
          args: [ 'abc', new Function],
          expect: '',
          explanation: 'abc", new Function]'
      },
      {
          args: [ 'abc', []],
          expect: '',
          explanation: 'abc", []]'
      },
      {
          args: [ 'abc', {}],
          expect: '',
          explanation: 'abc", {}]'
      }
  ];

  testCases.forEach(function(testCase){
      it('ax5.util.left(' + testCase.explanation + ') expect ' + JSON.stringify(testCase.expect), function() {
          var actual = ax5.util.left.apply(this, testCase.args);

          actual.should.deepEqual(testCase.expect);
      });
  });

});

describe('ax5.util.right TEST', function() {
  var testCases = [
      {
          args: [ 'abcd.efd', 3 ],
          expect: 'efd'
      },
      {
          args: [ 'abcd.efd', '.' ],
          expect: 'efd'
      },
      {
          args: [ 'vi"veri"veniversum"vivus"vici', '\"' ],
          expect: 'vici'
      },
      {
          args: [ 'vi veri veniversum vivus vici', 10 ],
          expect: 'vivus vici'
      }
    ];

  testCases.forEach(function(testCase){
      it('ax5.util.right(' + testCase.args + ') expect ' + testCase.expect, function() {<commit_msg>update test code<commit_after>describe('ax5.util.left TEST', function() {
  var testCases = [
      {
          args: [ 'ab.da', '.' ],
          expect: 'ab',
          explanation: 'ab.da, "."'
      },
      {
          args: [ 'abc"', "\""],
          expect: 'abc',
          explanation: 'abc", "\""'
      },
      {
          args: [ 'abc4', 4 ],
          expect: 'abc4',
          explanation: 'abc4, 4'
      },
      {
          args: [ 'abc4efg', 4.0 ],
          expect: 'abc4',
          explanation: 'abc4efg, 4.0'
      },
      {
          args: [ 'abc4e', 100 ],
          expect: 'abc4e',
          explanation: 'abc4e, 100'
      },
      {
          args: [ 'abc4', '4' ],
          expect: 'abc',
          explanation: 'abc4, "4"'
      },
      {
          args: [ 'abc', '4' ],
          expect: '',
          explanation: 'abc, "4"'
      },
      {
          args: [ 'abc', 0],
          expect: '',
          explanation: 'abc", 0'
      },
      {
          args: [ 'abc', '0'],
          expect: '',
          explanation: 'abc", "0"'
      },
      {
          args: [ 'abc'],
          expect: '',
          explanation: 'abc'
      },
      {
          args: [ 'abc', '' ],
          expect: '',
          explanation: 'abc, ""'
      },
      {
          args: [ 'abc', null ],
          expect: '',
          explanation: 'abc, null'
      },
      {
          args: [ 'abc', undefined],
          expect: '',
          explanation: 'abc", undefined'
      },
      {
          args: [ 'abc', true],
          expect: '',
          explanation: 'abc", true'
      },
      {
          args: [ 'abc', false],
          expect: '',
          explanation: 'abc", false'
      },
      {
          args: [ 'abc', new Object],
          expect: '',
          explanation: 'abc", new Object'
      },
      {
          args: [ 'abc', new Function],
          expect: '',
          explanation: 'abc", new Function]'
      },
      {
          args: [ 'abc', []],
          expect: '',
          explanation: 'abc", []]'
      },
      {
          args: [ 'abc', {}],
          expect: '',
          explanation: 'abc", {}]'
      }
  ];

  testCases.forEach(function(testCase){
      it('ax5.util.left(' + testCase.explanation + ') expect ' + JSON.stringify(testCase.expect), function() {
          var actual = ax5.util.left.apply(this, testCase.args);

          actual.should.deepEqual(testCase.expect);
      });
  });

});

describe('ax5.util.right TEST', function() {
  var testCases = [
      {
          args: [ 'abcd.efd', 3 ],
          expect: 'efd'
      },
      {
          args: [ 'abcd.efd', '.' ],
          expect: 'efd'
      },
      {
          args: [ 'vi"veri"veniversum"vivus"vici', '\"' ],
          expect: 'vici'
      },
      {
          args: [ 'vi veri veniversum vivus vici', 10 ],
          expect: 'vivus vici'
      },
      {
          args: [ 'coincidence', true ],
          expect: '',
          explanation: 'coincidence, ""'
      },
      {
          args: [ 'coincidence', false ],
          expect: '',
          explanation: 'coincidence, ""'
      }
    ];

  testCases.forEach(function(testCase){
      it('ax5.util.right(' + testCase.args + ') expect ' + testCase.expect, function() {
{'fraction_non_alphanumeric': 0.18509079324625677, 'fraction_numerical': 0.012424338961452692, 'mean_word_length': 1.267605633802817, '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': '4537375', 'n_tokens_mistral': 2011, 'n_tokens_neox': 1996, 'n_words': 376}