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

'use strict';

var fs = require('fs');
var path = require('path');
var ini = require('ini');

exports.name = 'ini';
exports.outputFormat = 'json';

exports.render = function _render(str, opts) {
  return JSON.stringify(ini.parse(str, opts));
};<commit_msg>remove `fs` and `path` refs, add inputFormats<commit_after>/**
 * jstransformer-ini <https://github.com/jstransformers/jstransformer-ini>
 *
 * Copyright (c) 2015 <NAME>, contributors.
 * Released under the MIT license.
 */

'use strict';

var ini = require('ini');

exports.name = 'ini';
exports.inputFormat = ['ini'];
exports.outputFormat = 'json';

exports.render = function _render(str, opts) {
  return JSON.stringify(ini.parse(str, opts));
};
{'fraction_non_alphanumeric': 0.17175141242937852, 'fraction_numerical': 0.00903954802259887, 'mean_word_length': 4.867549668874172, 'pattern_counts': {'":': 0, '<': 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': '6549026', 'n_tokens_mistral': 304, 'n_tokens_neox': 293, 'n_words': 72}