<commit_before>import dom from './dom';

/**
 * @param {String} url
 * @param {Function} factory
 */
const counter = function (url, factory) {
    const self = this;

    dom.getJSON(url, count => {
        try {
            const convertedNumber = typeof self.convertNumber === 'function' ? self.convertNumber(count) : count;
            factory(convertedNumber);<commit_msg>Remove self hoist<commit_after>import dom from './dom';

/**
 * @param {String} url
 * @param {Function} factory
 */
const counter = function (url, factory) {
    dom.getJSON(url, count => {
        try {
            const convertedNumber = typeof this.convertNumber === 'function' ? this.convertNumber(count) : count;
            factory(convertedNumber);
{'fraction_non_alphanumeric': 0.1366120218579235, 'fraction_numerical': 0.0, 'mean_word_length': 3.0274725274725274, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '462583', 'n_tokens_mistral': 204, 'n_tokens_neox': 202, 'n_words': 56}