<commit_before>from django.core.mail import send_mass_mail
from django.db import IntegrityError
from django.core.exceptions import ObjectDoesNotExist
from rest_framework import generics
from rest_framework.response import Response
from django.http import JsonResponse
from rest_framework.views import APIView
from rest_framework import status
from rest_framework.parsers import MultiPartParser
from django.http import HttpResponse, Http404
from .csv_to_json2 import parse_csv
from .upload_json2 import add_volunteer, parse_json
from django.core import serializers
import csv

from django.contrib.auth.models import Group
from io import TextIOWrapper


from .models import *
from .serializers import VolunteerSerializer, EventSerializer, AttendeeSerializer
#from permissions import *

# generic view patterns documented http://www.django-rest-framework.org/tutorial/3-class-based-views/
<commit_msg>updated todos<commit_after>from django.core.mail import send_mass_mail
from django.db import IntegrityError
from django.core.exceptions import ObjectDoesNotExist
from rest_framework import generics
from rest_framework.response import Response
from django.http import JsonResponse
from rest_framework.views import APIView
from rest_framework import status
from rest_framework.parsers import MultiPartParser
from django.http import HttpResponse, Http404
from .csv_to_json2 import parse_csv
from .upload_json2 import add_volunteer, parse_json
from django.core import serializers
import csv

from django.contrib.auth.models import Group
from io import TextIOWrapper

# TODO -- Clean up this file, primarily encapsulate the complicated functions into external, ultility file --

from .models import *
from .serializers import VolunteerSerializer, EventSerializer, AttendeeSerializer
#from permissions import *

# generic view patterns documented http://www.django-rest-framework.org/tutorial/3-class-based-views/

{'fraction_non_alphanumeric': 0.047743966421825816, 'fraction_numerical': 0.0062959076600209865, 'mean_word_length': 6.362934362934363, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3670510', 'n_tokens_mistral': 495, 'n_tokens_neox': 484, 'n_words': 177}