<commit_before>/**
 * jstransformer-ini <https://github.com/jstransformers/jstransformer-ini>
 *
 * Copyright (c) 2015 <NAME>, contributors.
 * Released under the MIT license.
 */

'use strict';

var pkg = require('fs');
var test = require('assertit');
var transform = require('../index');

test('should render ini file from given string (.render)', function(done) {
  var actual = transform.render('[foo]\nbar = "baz"\nqux = true');
  var expected = {"foo": {"bar": "baz", "qux": true}};

  test.deepEqual(actual, expected);
  done();
});

test('should render from a given filepath, synchronously', function(done) {
  var actual = transform.renderFile('./test/fixture.ini');
  var expected = {"foo": {"bar": "baz", "qux": true}};
<commit_msg>cleanup<commit_after>/**
 * jstransformer-ini <https://github.com/jstransformers/jstransformer-ini>
 *
 * Copyright (c) 2015 <NAME>, contributors.
 * Released under the MIT license.
 */

'use strict';

var test = require('assertit');
var transform = require('../index');

test('should render ini file from given string (.render)', function(done) {
  var actual = transform.render('[foo]\nbar = "baz"\nqux = true');
  var expected = {"foo": {"bar": "baz", "qux": true}};

  test.deepEqual(actual, expected);
  done();
});

test('should render from a given filepath, synchronously', function(done) {
  var actual = transform.renderFile('./test/fixture.ini');
  var expected = {"foo": {"bar": "baz", "qux": true}};

{'fraction_non_alphanumeric': 0.19381443298969073, 'fraction_numerical': 0.005498281786941581, 'mean_word_length': 4.709803921568628, 'pattern_counts': {'":': 12, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '1917199', 'n_tokens_mistral': 484, 'n_tokens_neox': 462, 'n_words': 129}