<commit_before>const Promise = require('bluebird');
const moment = require('moment');
const request = require('superagent');

const URL = 'www.jogossantacasa.pt';
const USER_AGENT = 'Dalvik';
const API_KEY = '<KEY>';
const CHANNEL = '1';

function req(options) {
    return new Promise((resolve, reject)=> {
        request
            .get(`https://${URL}/${options.path}`)<commit_msg>use package name and version as user-agent<commit_after>const Promise = require('bluebird');
const moment = require('moment');
const request = require('superagent');
const pkg = require('./package.json');

const URL = 'www.jogossantacasa.pt';
const USER_AGENT = `${pkg.name}/${pkg.version}`;
const API_KEY = '<KEY>';
const CHANNEL = '1';

function req(options) {
    return new Promise((resolve, reject)=> {
        request
            .get(`https://${URL}/${options.path}`)
{'fraction_non_alphanumeric': 0.17790697674418604, 'fraction_numerical': 0.002325581395348837, 'mean_word_length': 4.449367088607595, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '4162294', 'n_tokens_mistral': 266, 'n_tokens_neox': 264, 'n_words': 66}