<commit_before>import sys
from http.server import BaseHTTPRequestHandler, HTTPServer, urllib
from bson import json_util
import pymongo

sys.path.append("../")

from users.usermanager import *
import dockermanager.controller as cont
import dockermanager.configure as conf

from urllib.parse import *
from receiver.lesserjob import *
import time


hostName = "192.168.3.11"
#hostName = "localhost"
hostPort = 8080

lesserJob = LesserJob()

userManager = UserManager()
#minionController = cont.MinionController()

def ProtocolToInt(str):
    if str=="GET":
        return 0
    elif str=="POST":
        return 1
    elif str=="PUT":
        return 2
    elif str=="DELETE":
        return 3
    elif str=="OPTION":
        return 4
    elif str=="HEADER":
        return 5
userManager.AppendUser("torisdream","abcdefg","")

class Lesserver(BaseHTTPRequestHandler):
    def do_GET(self):
        self.send_response(200)
        self.send_header("Content-type", "text/html")
        self.end_headers()

        parse_result = urlparse(self.path)

        print("client addr", self.client_address)
        print("command", self.command)
        print("request line",self.requestline)

        print("path",parse_result.path)<commit_msg>no gil mode.<commit_after>import sys
from http.server import BaseHTTPRequestHandler, HTTPServer, urllib
from bson import json_util
import pymongo

sys.path.append("../")

from users.usermanager import *
import dockermanager.controller as cont
import dockermanager.configure as conf

from urllib.parse import *
from receiver.lesserjob import *
import time


hostName = "192.168.3.11"
#hostName = "localhost"
hostPort = 8080

lesserJob = LesserJob()

userManager = UserManager()
minionController = cont.MinionController()

def ProtocolToInt(str):
    if str=="GET":
        return 0
    elif str=="POST":
        return 1
    elif str=="PUT":
        return 2
    elif str=="DELETE":
        return 3
    elif str=="OPTION":
        return 4
    elif str=="HEADER":
        return 5
userManager.AppendUser("torisdream","abcdefg","")

class Lesserver(BaseHTTPRequestHandler):
    def do_GET(self):
        self.send_response(200)
        self.send_header("Content-type", "text/html")
        self.end_headers()

        parse_result = urlparse(self.path)

        print("client addr", self.client_address)
        print("command", self.command)
        print("request line",self.requestline)

        print("path",parse_result.path)
{'fraction_non_alphanumeric': 0.11300813008130081, 'fraction_numerical': 0.01788617886178862, 'mean_word_length': 3.3946428571428573, 'pattern_counts': {'":': 12, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1157216', 'n_tokens_mistral': 783, 'n_tokens_neox': 743, 'n_words': 183}