<commit_before>const cheerio = require('cheerio');
const he = require('he');
const striptags = require('striptags');

module.exports = {
	name: '<NAME>',
	url: 'https://www.facebook.com/pg/bohemia.sorkonyha/posts/?ref=page_internal',
	getMenu: body => {
		try {
			const $ = cheerio.load(body);
			const separators = ['<br>', '<p>', '</div>'];
			const dailyMenu = $('.userContent').filter((i, e) => {
				return e.children.length;
			}).eq(0).html();

			return dailyMenu
				.split(new RegExp(separators.join('|'), 'g'))
				.map(el => striptags(el))
				.map(el => el.trim())
				.map(el => el.replace(/\.\.\./g, ''))
				.map(el => he.decode(el));
		} catch (e) {
			return 'Hiba történt a begyűjtés során..';
		}
	}
};
<commit_msg>roll back bohemia because they only serve menu from wednesday to friday<commit_after>const cheerio = require('cheerio');
const he = require('he');
const striptags = require('striptags');

module.exports = {
	name: '<NAME>',
	url: 'https://www.facebook.com/pg/bohemia.sorkonyha/posts/?ref=page_internal',
	getMenu: body => {
		try {
			const $ = cheerio.load(body);
			const separators = ['<br>', '<p>', '</div>'];
			const dailyMenu = $('.userContent').filter((i, e) => {
				return e.children.length;
			}).eq(0).find('.text_exposed_root').html();

			return dailyMenu
				.split(new RegExp(separators.join('|'), 'g'))
				.map(el => el.trim())
				.filter(text => {
					return text.startsWith('-');
				})
				.map(el => el.substring(2))
				.map(el => striptags(el))
				.map(el => el.trim())
				.map(el => el.replace(/\.\.\./g, ''))
				.map(el => he.decode(el));
		} catch (e) {
			return 'Menü csak szerdától péntekig van..';
		}
	}
};

{'fraction_non_alphanumeric': 0.22738095238095238, 'fraction_numerical': 0.0017857142857142857, 'mean_word_length': 3.332474226804124, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 26, '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': '4083365', 'n_tokens_mistral': 714, 'n_tokens_neox': 632, 'n_words': 122}