<commit_before>from django.shortcuts import render_to_response
from django.template import RequestContext
from django.http import HttpResponse
from django.shortcuts import get_object_or_404
from django.contrib.auth.decorators import login_required
from django.views.generic import ListView
from django.core import serializers
from django.conf import settings

from api.models import Event
from web.forms.event_form import AddEvent
from web.processors.event import create_or_update_event
from web.processors.event import has_model_permissions
from web.processors.event import get_lat_lon_from_user_ip, get_country_from_user_ip
from api.processors import get_approved_events

"""
Do not Query the database directly from te view.
Use a processors file within the api app, put all of your queries there and
then call your newly created function in view!!! .-Erika
"""
<commit_msg>import country from ip on its own line<commit_after>from django.shortcuts import render_to_response
from django.template import RequestContext
from django.http import HttpResponse
from django.shortcuts import get_object_or_404
from django.contrib.auth.decorators import login_required
from django.views.generic import ListView
from django.core import serializers
from django.conf import settings

from api.models import Event
from web.forms.event_form import AddEvent
from web.processors.event import create_or_update_event
from web.processors.event import has_model_permissions
from web.processors.event import get_lat_lon_from_user_ip
from web.processors.event import get_country_from_user_ip
from api.processors import get_approved_events

"""
Do not Query the database directly from te view.
Use a processors file within the api app, put all of your queries there and
then call your newly created function in view!!! .-Erika
"""

{'fraction_non_alphanumeric': 0.04256495301271421, 'fraction_numerical': 0.003316749585406302, 'mean_word_length': 6.269076305220883, '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': '901651', 'n_tokens_mistral': 486, 'n_tokens_neox': 473, 'n_words': 190}