<commit_before>import datetime
from django.views.generic import TemplateView
from api_v2.models import Trial


class ReportRangeView(TemplateView):
    template_name = 'api_v2/report.html'

    def get_context_data(self, uid, start, end, **kwargs):
        current = datetime.datetime.strptime(start, '%Y-%m-%d')
        end_date = datetime.datetime.strptime(end, '%Y-%m-%d')
        delta = datetime.timedelta(days=1)<commit_msg>Report view Fix #time 10m<commit_after>import datetime
from django.views.generic import TemplateView
from backend.api_v2.models import Trial


class ReportRangeView(TemplateView):
    template_name = 'api_v2/report.html'

    def get_context_data(self, uid, start, end, **kwargs):
        current = datetime.datetime.strptime(start, '%Y-%m-%d')
        end_date = datetime.datetime.strptime(end, '%Y-%m-%d')
        delta = datetime.timedelta(days=1)
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.00909090909090909, 'mean_word_length': 4.307228915662651, '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': '7521555', 'n_tokens_mistral': 285, 'n_tokens_neox': 275, 'n_words': 59}