<commit_before><commit_msg>+output.js<commit_after>/**
 * @param name name of the output.
 * @param description a nice description of the output.
 * @param sources an array containing the names of the datasources used by this
 * output.
 * @param check the function called to check wether or not the output should be
 * triggered. Take as parameter one array of datasources, who must at least
 * contains the datasources whose names are in the 'sources' attribute of the
 * output.
 */
function makeOutput(
  name,
  description,
  sources,
  check) {

  var output = {
    name: name,
    description: description,
    sources: sources,

    check: check
  };

  return output;
}

module.exports.makeOutput = makeOutput;

{'fraction_non_alphanumeric': 0.07756232686980609, 'fraction_numerical': 0.0, 'mean_word_length': 3.605095541401274, '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': '5159043', 'n_tokens_mistral': 201, 'n_tokens_neox': 194, 'n_words': 88}