<commit_before># -*- coding: utf-8 -*-
import datetime
from django.shortcuts import get_object_or_404
from django import forms
from django.forms import Form, ModelForm, ModelChoiceField, ChoiceField
from django.contrib.auth.models import User, Group
from django.db.models import Count
from dateutil.relativedelta import relativedelta
from django.utils import timezone
from django.core.files.uploadedfile import InMemoryUploadedFile, TemporaryUploadedFile
from django.utils.translation import ugettext_lazy as _, string_concat, ungettext_lazy
from django.db.models.fields import BLANK_CHOICE_DASH
from django.core.validators import RegexValidator
from django.conf import settings
from api.raw import STARTERS
from web.templatetags.choicesToString import skillsIcons
from web.utils import randomString
from multiupload.fields import MultiFileField
from api import models

class DateInput(forms.DateInput):
    input_type = 'date'

def date_input(field):
    field.widget = DateInput()
    field.widget.attrs.update({
        'class': 'calendar-widget',
        'data-role': 'data',
    })<commit_msg>Staff Edit objects / fix import to shrink images with tinypng<commit_after># -*- coding: utf-8 -*-
import datetime
from django.shortcuts import get_object_or_404
from django import forms
from django.forms import Form, ModelForm, ModelChoiceField, ChoiceField
from django.contrib.auth.models import User, Group
from django.db.models import Count
from dateutil.relativedelta import relativedelta
from django.utils import timezone
from django.core.files.uploadedfile import InMemoryUploadedFile, TemporaryUploadedFile
from django.utils.translation import ugettext_lazy as _, string_concat, ungettext_lazy
from django.db.models.fields import BLANK_CHOICE_DASH
from django.core.validators import RegexValidator
from django.conf import settings
from api.raw import STARTERS
from web.templatetags.choicesToString import skillsIcons
from web.utils import randomString, shrinkImageFromData
from multiupload.fields import MultiFileField
from api import models

class DateInput(forms.DateInput):
    input_type = 'date'

def date_input(field):
    field.widget = DateInput()
    field.widget.attrs.update({
        'class': 'calendar-widget',
        'data-role': 'data',
    })
{'fraction_non_alphanumeric': 0.0706401766004415, 'fraction_numerical': 0.003532008830022075, 'mean_word_length': 5.419263456090651, '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': '1818263', 'n_tokens_mistral': 641, 'n_tokens_neox': 629, 'n_words': 198}