<commit_before>import datetime
import re
import urllib.request
from bs4 import BeautifulSoup
from canteens.canteen import VEGGIE, MEAT
from backend.backend import app, cache, cache_interval
from celery.utils.log import get_task_logger

EMPLOYEE_CANTEEN = 0
EN_CANTEEN = 1

logger = get_task_logger(__name__)

URL = 'http://personalkantine.personalabteilung.tu-berlin.de/#speisekarte'


def main(date, canteen=EMPLOYEE_CANTEEN):
    dishes = []
    html = urllib.request.urlopen(URL).read()
    menus = BeautifulSoup(html, 'html.parser').find_all('ul', class_='Menu__accordion')


    for day in menu[canteen].children:
        if day.name and date.lstrip('0') in day.find('h2').string:
            for dishlist in day.children:
                if dishlist.name == 'ul':
                    items = dishlist.find_all('li')
                    for counter, dish in enumerate(items):<commit_msg>fix menu to menus<commit_after>import datetime
import re
import urllib.request
from bs4 import BeautifulSoup
from canteens.canteen import VEGGIE, MEAT
from backend.backend import app, cache, cache_interval
from celery.utils.log import get_task_logger

EMPLOYEE_CANTEEN = 0
EN_CANTEEN = 1

logger = get_task_logger(__name__)

URL = 'http://personalkantine.personalabteilung.tu-berlin.de/#speisekarte'


def main(date, canteen=EMPLOYEE_CANTEEN):
    dishes = []
    html = urllib.request.urlopen(URL).read()
    menus = BeautifulSoup(html, 'html.parser').find_all('ul', class_='Menu__accordion')


    for day in menus[canteen].children:
        if day.name and date.lstrip('0') in day.find('h2').string:
            for dishlist in day.children:
                if dishlist.name == 'ul':
                    items = dishlist.find_all('li')
                    for counter, dish in enumerate(items):
{'fraction_non_alphanumeric': 0.10620458356623812, 'fraction_numerical': 0.005589714924538848, 'mean_word_length': 3.4306930693069306, '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': '635247', 'n_tokens_mistral': 598, 'n_tokens_neox': 571, 'n_words': 136}