#File Created by Paarth
from django.http import HttpResponse
from django.shortcuts import render


def index(request):

    return render(request,'index.html')



def analyse(request):
    textdj=(request.GET.get("text",'default'))
    removepunc=request.GET.get("removepunc",'off')
    uppercase=request.GET.get("uppercase",'off')
   
    #Remove Punctuation
    analysed=""
    analysed1=""

    punctuation='''!()-[]{};:'"\,<>./?@#$%^&*_~'''
    for char in textdj:
        if char not in punctuation:
            analysed= analysed + char
            params = {"purpose1":"remove punctuations","at":analysed}


    
    if uppercase == 'on':
        for char in textdj:
            analysed1 = analysed1 + char.upper()
            params = {"purpose":"uppercase","paarth":analysed1}

    
    return render(request,"analyse.html",params)

    





    





2f568487fbab72a114c96f82762ad81ee4b15ce8
<mask token>

<mask token>


def index(request):
    return render(request, 'index.html')


<mask token>

<mask token>


def index(request):
    return render(request, 'index.html')


def analyse(request):
    textdj = request.GET.get('text', 'default')
    removepunc = request.GET.get('removepunc', 'off')
    uppercase = request.GET.get('uppercase', 'off')
    analysed = ''
    analysed1 = ''
    punctuation = '!()-[]{};:\'"\\,<>./?@#$%^&*_~'
    for char in textdj:
        if char not in punctuation:
            analysed = analysed + char
            params = {'purpose1': 'remove punctuations', 'at': analysed}
    if uppercase == 'on':
        for char in textdj:
            analysed1 = analysed1 + char.upper()
            params = {'purpose': 'uppercase', 'paarth': analysed1}
    return render(request, 'analyse.html', params)

from django.http import HttpResponse
from django.shortcuts import render


def index(request):
    return render(request, 'index.html')


def analyse(request):
    textdj = request.GET.get('text', 'default')
    removepunc = request.GET.get('removepunc', 'off')
    uppercase = request.GET.get('uppercase', 'off')
    analysed = ''
    analysed1 = ''
    punctuation = '!()-[]{};:\'"\\,<>./?@#$%^&*_~'
    for char in textdj:
        if char not in punctuation:
            analysed = analysed + char
            params = {'purpose1': 'remove punctuations', 'at': analysed}
    if uppercase == 'on':
        for char in textdj:
            analysed1 = analysed1 + char.upper()
            params = {'purpose': 'uppercase', 'paarth': analysed1}
    return render(request, 'analyse.html', params)

#File Created by Paarth
from django.http import HttpResponse
from django.shortcuts import render


def index(request):

    return render(request,'index.html')



def analyse(request):
    textdj=(request.GET.get("text",'default'))
    removepunc=request.GET.get("removepunc",'off')
    uppercase=request.GET.get("uppercase",'off')
   
    #Remove Punctuation
    analysed=""
    analysed1=""

    punctuation='''!()-[]{};:'"\,<>./?@#$%^&*_~'''
    for char in textdj:
        if char not in punctuation:
            analysed= analysed + char
            params = {"purpose1":"remove punctuations","at":analysed}


    
    if uppercase == 'on':
        for char in textdj:
            analysed1 = analysed1 + char.upper()
            params = {"purpose":"uppercase","paarth":analysed1}

    
    return render(request,"analyse.html",params)

    





    




