<commit_before>#!/usr/bin/python3

"""
created_by:         <NAME>
created_date:       3/4/2015
last_modified_by:   <NAME>
last_modified date: 3/6/2015
"""

# imports
import json
import utils
from sql.user import User
from sql.session import Session

#Format of JSON -KP
#requestType: getUser
#firstName: "string"
#lastName: "string"
#section: "string"
#assessment: "string"

def iChooseU(form):
    thisUser = utils.findUser(form)

    firstName = form["firstName"]
    lastName = form["lastName"]
    section = form["section"]
    assessment = form["assessment"]
<commit_msg>Fixed MiniStorage trash<commit_after>#!/usr/local/bin/python3

"""
created_by:         <NAME>
created_date:       3/4/2015
last_modified_by:   <NAME>
last_modified date: 3/6/2015
"""

# imports
import json
import utils
from sql.user import User

#Format of JSON -KP
#requestType: getUser
#firstName: "string"
#lastName: "string"
#section: "string"
#assessment: "string"

def iChooseU(form):
    thisUser = utils.findUser(form)

    firstName = form.getlist("firstName")[0]
    lastName = form.getlist("lastName")[0]
    section = form.getlist("section")[0]
    assessment = form.getlist("assessment")[0]

{'fraction_non_alphanumeric': 0.13898305084745763, 'fraction_numerical': 0.025423728813559324, 'mean_word_length': 4.343891402714932, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1419098', 'n_tokens_mistral': 429, 'n_tokens_neox': 412, 'n_words': 96}