<commit_before>'use strict'
const yaml = require('js-yaml')
const parser = require('./parser')

const metadataParse = parser(yaml)

module.exports = metadataParse<commit_msg>Initialize parser with dependencies<commit_after>'use strict'
const detectNewline = require('detect-newline')
const yaml = require('js-yaml')

const metadataParser = require('./parser')({
  detectNewline,
  parseYaml: yaml.safeLoad
})

module.exports = metadataParser
{'fraction_non_alphanumeric': 0.12698412698412698, 'fraction_numerical': 0.0, 'mean_word_length': 6.620689655172414, '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': '447455', 'n_tokens_mistral': 125, 'n_tokens_neox': 123, 'n_words': 31}