<commit_before>/*jslint indent: 2*/
/*globals require: true*/
(function () {
  var assert, sys, fs, inireader, beginSection, test,
    commonTests, testCallbacks,
    testFileReadWrite, testFileRead, testFileReadAsync,
    testAsync;


  assert = require('assert');
  sys = require('sys');
  fs = require('fs');
  inireader = require('inireader');

  beginSection = function (s) {
    sys.puts('-------------- ' + s.toUpperCase() + ' --------------');
  };

  test = function (obj) {
    assert.equal(typeof(obj.param('doesntexists')), 'undefined',
    'nonexisting key doesn\'t returned undefined');
    assert.equal(typeof(obj.param('foo')), 'object', 'existing key doesn\'t returned an object');
    assert.equal(typeof(obj.param('bar')), 'object', 'existing key doesn\'t returned an object');

    assert.deepEqual(obj.param('foo.lorem'),
      'ipsum', 'lorem\'s key value in foo conf is not ipsum');
    assert.deepEqual(obj.param('foo.amet'), '', 'amet\'s value should be an empty string');
    assert.equal(typeof(obj.param('foo.doesntexists')),
      'undefined', 'value which should not exist returned something else then undefined');

    assert.deepEqual(obj.param('bar.asdfas'), 'fooobar', 'bad value');
    assert.deepEqual(obj.param('bar.1'), 'lorem ipsum');
    assert.deepEqual(obj.param('bar.2'), '  lorem ipsum');
    assert.deepEqual(obj.param('bar.3'), 'lorem ipsum');
    assert.deepEqual(obj.param('bar.4'), 'lorem ipsum  ');
  };
<commit_msg>test param with no argument<commit_after>/*jslint indent: 2*/
/*globals require: true*/
(function () {
  var assert, sys, fs, inireader, beginSection, test,
    commonTests, testCallbacks,
    testFileReadWrite, testFileRead, testFileReadAsync,
    testAsync;


  assert = require('assert');
  sys = require('sys');
  fs = require('fs');
  inireader = require('inireader');

  beginSection = function (s) {
    sys.puts('-------------- ' + s.toUpperCase() + ' --------------');
  };

  test = function (obj) {
    assert.equal(typeof(obj.param()), 'object',
      'empty key doesn\'t returned object');
    assert.equal(typeof(obj.param('doesntexists')), 'undefined',
    'nonexisting key doesn\'t returned undefined');
    assert.equal(typeof(obj.param('foo')), 'object', 'existing key doesn\'t returned an object');
    assert.equal(typeof(obj.param('bar')), 'object', 'existing key doesn\'t returned an object');

    assert.deepEqual(obj.param('foo.lorem'),
      'ipsum', 'lorem\'s key value in foo conf is not ipsum');
    assert.deepEqual(obj.param('foo.amet'), '', 'amet\'s value should be an empty string');
    assert.equal(typeof(obj.param('foo.doesntexists')),
      'undefined', 'value which should not exist returned something else then undefined');

    assert.deepEqual(obj.param('bar.asdfas'), 'fooobar', 'bad value');
    assert.deepEqual(obj.param('bar.1'), 'lorem ipsum');
    assert.deepEqual(obj.param('bar.2'), '  lorem ipsum');
    assert.deepEqual(obj.param('bar.3'), 'lorem ipsum');
    assert.deepEqual(obj.param('bar.4'), 'lorem ipsum  ');
  };

{'fraction_non_alphanumeric': 0.19315564330371832, 'fraction_numerical': 0.003290556103981573, 'mean_word_length': 3.9111470113085622, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 8, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7608163', 'n_tokens_mistral': 975, 'n_tokens_neox': 952, 'n_words': 223}