<commit_before>import os
from datetime import time

from django.db import migrations


def edit_weekly_time_slot(apps, schema_editor):
    WeeklyTimeSlot = apps.get_model('app', 'WeeklyTimeSlot')

    weekly_time_slots = list(
        WeeklyTimeSlot.objects.all().order_by('weekday', 'start')
    )
    index = 0

    for weekday in range(1, 8):
        for start in ((8, 0), (10, 30), (14, 00), (16, 30), (19, 0)):
            end = (start[0] + 2, start[1])
            one_weekly_time_slot = weekly_time_slots[index]
            one_weekly_time_slot.start = time(*start)
            one_weekly_time_slot.end = time(*end)
            one_weekly_time_slot.save()<commit_msg>SERVER-228: Modified Weekly Time Slots for Zheng Zhou<commit_after>import os
from datetime import time

from django.db import migrations


def edit_weekly_time_slot(apps, schema_editor):
    WeeklyTimeSlot = apps.get_model('app', 'WeeklyTimeSlot')

    weekly_time_slots = list(
        WeeklyTimeSlot.objects.all().order_by('weekday', 'start')
    )
    index = 0

    for weekday in range(1, 8):
        for start in ((8, 0), (10, 30), (14, 0), (16, 30), (19, 0)):
            end = (start[0] + 2, start[1])
            one_weekly_time_slot = weekly_time_slots[index]
            one_weekly_time_slot.start = time(*start)
            one_weekly_time_slot.end = time(*end)
            one_weekly_time_slot.save()
{'fraction_non_alphanumeric': 0.12256669069935111, 'fraction_numerical': 0.03460706560922855, 'mean_word_length': 3.0231884057971015, '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': '1551608', 'n_tokens_mistral': 507, 'n_tokens_neox': 470, 'n_words': 108}