<commit_before>import sys
from django.template.loader import get_template
from django.template import Context
from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.contrib.auth import logout as auth_logout, login as auth_login
from django.conf import settings
from social.apps.django_app.utils import strategy
from social.actions import do_complete
from social.backends import username
from social import exceptions
from api.models import ResumizrUserData
from django.core.exceptions import ObjectDoesNotExist
import requests


import json

sys.path.append('../..')

from modules.forms import RegisterationForm , LoginForm

import datetime

import textblob

# list of social auth mapping
backends = ['twitter', 'github', 'facebook',
            'google-oauth2', 'linkedin-oauth2']


def home(request):
    '''Home view, displays login mechanism'''
    if request.user.is_authenticated():
        return redirect('app')
    else:
        return redirect('login')


@strategy('social:complete')
def signup(request, backend, *args, **kwargs):
    ''' registeration form '''
    if request.user.is_authenticated():
        return redirect('app')
    
    if request.method == 'POST':
        form = RegisterationForm(request.POST)<commit_msg>corrected import statement for textblob<commit_after>import sys
from django.template.loader import get_template
from django.template import Context
from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.contrib.auth import logout as auth_logout, login as auth_login
from django.conf import settings
from social.apps.django_app.utils import strategy
from social.actions import do_complete
from social.backends import username
from social import exceptions
from api.models import ResumizrUserData
from django.core.exceptions import ObjectDoesNotExist
import requests


import json

sys.path.append('../..')

from modules.forms import RegisterationForm , LoginForm

import datetime

from textblob import TextBlob

# list of social auth mapping
backends = ['twitter', 'github', 'facebook',
            'google-oauth2', 'linkedin-oauth2']


def home(request):
    '''Home view, displays login mechanism'''
    if request.user.is_authenticated():
        return redirect('app')
    else:
        return redirect('login')


@strategy('social:complete')
def signup(request, backend, *args, **kwargs):
    ''' registeration form '''
    if request.user.is_authenticated():
        return redirect('app')
    
    if request.method == 'POST':
        form = RegisterationForm(request.POST)
{'fraction_non_alphanumeric': 0.08850820842255532, 'fraction_numerical': 0.0014275517487508922, 'mean_word_length': 4.572564612326044, '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': '5156971', 'n_tokens_mistral': 743, 'n_tokens_neox': 727, 'n_words': 245}