<commit_before>from django.contrib.auth.mixins import PermissionRequiredMixin

from base.views import O2BaseGetPostView

from logistica.queries import get_nf_pela_chave


class NotafiscalChave(PermissionRequiredMixin, O2BaseGetPostView):

    def __init__(self, *args, **kwargs):
        super(NotafiscalChave, self).__init__(*args, **kwargs)
        self.permission_required = 'logistica.can_beep_shipment'
        self.Form_class = NotafiscalChaveForm
        self.template_name = 'logistica/notafiscal_chave.html'
        self.title_name = 'Movimenta NF por chave'
        self.get_args = ['chave']

    def mount_context(self):
        self.context.update({
            'chave': self.form.cleaned_data['chave'],
        })<commit_msg>BUG imports<commit_after>from pprint import pprint

from django.contrib.auth.mixins import PermissionRequiredMixin
from django.db import connections
from django.utils import timezone

from base.views import O2BaseGetPostView

from logistica.forms import *
from logistica.queries import get_nf_pela_chave


class NotafiscalChave(PermissionRequiredMixin, O2BaseGetPostView):

    def __init__(self, *args, **kwargs):
        super(NotafiscalChave, self).__init__(*args, **kwargs)
        self.permission_required = 'logistica.can_beep_shipment'
        self.Form_class = NotafiscalChaveForm
        self.template_name = 'logistica/notafiscal_chave.html'
        self.title_name = 'Movimenta NF por chave'
        self.get_args = ['chave']

    def mount_context(self):
        self.context.update({
            'chave': self.form.cleaned_data['chave'],
        })
{'fraction_non_alphanumeric': 0.09255784865540963, 'fraction_numerical': 0.0025015634771732333, 'mean_word_length': 3.8780487804878048, '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': '4655575', 'n_tokens_mistral': 522, 'n_tokens_neox': 506, 'n_words': 96}