<commit_before>'use strict';
const rp = require('request-promise'),
    cheerio = require('cheerio'),
    log = require('simple-node-logger').createSimpleFileLogger('./../project.log'),
    tenSpaces = '          ',
    separator = '\n\t\t\n   🕐  ',
    rezhemLishnee = /назад|Отправление от\s*\W*/gim,
    header = "Расписание 🚌:\n";

module.exports = {
    resolveLink: function resolveLink(url, bot, id, msg) {
        rp(url)
            .then(function(data) {

                let $ = cheerio.load(data);
                // хак. режем по бркам
                $('body').html($('body').html().split('<br>').toString());
                let parsed = $('body').text().replace(rezhemLishnee, '').split(',').filter((i) => i.trim() !== '');<commit_msg>Поправил багу при получении расписания<commit_after>'use strict';
const rp = require('request-promise'),
    cheerio = require('cheerio'),
    log = require('simple-node-logger').createSimpleFileLogger('./../project.log'),
    tenSpaces = '          ',
    separator = '\n\t\t\n   🕐  ',
    rezhemLishnee = /назад|Отправление от\s*\W*/gim,
    header = "Расписание 🚌:\n";

module.exports = {
    resolveLink: function resolveLink(url, bot, id, msg) {
        rp(url)
            .then(function(data) {

                let $ = cheerio.load(data);
                // хак. режем по бркам
                $('body').html($('body').html().split('<br>').toString());
                let parsed = $('body').text().replace(rezhemLishnee, '').split(',').filter((i) => i.trim() !== ''),
{'fraction_non_alphanumeric': 0.20563195808775375, 'fraction_numerical': 0.0, 'mean_word_length': 2.4337078651685395, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7355816', 'n_tokens_mistral': 536, 'n_tokens_neox': 519, 'n_words': 84}