<commit_before>import string
import time
import random
from flask import Flask, render_template, g, jsonify, request

DEBUG = True
app = Flask(__name__)
app.config.from_object(__name__)

@app.route('/')
def index():
    return render_template('index.html')

@app.route('/get_time')
def get_time():
    '''
    return local time at server, and send back request timestamp
    so client can measure round trip time
    insert random delays to simulate network delays
    '''
	random_delay()
	request_time = request.args.get('request_time')
	seconds = time.time()
	milliseconds = int(seconds * 1000)
	server_time = milliseconds
	random_delay()
	return jsonify(request_time = request_time, server_time = server_time)

# produce delay in the range 0 to 400ms
def random_delay():
	delay = random.randint(0,400)
	time.sleep(float(delay)/1000)<commit_msg>fixed indent error<commit_after>import string
import time
import random
from flask import Flask, render_template, g, jsonify, request

DEBUG = True
app = Flask(__name__)
app.config.from_object(__name__)

@app.route('/')
def index():
    return render_template('index.html')

@app.route('/get_time')
def get_time():
	'''
	return local time at server, and send back request timestamp
	so client can measure round trip time
	insert random delays to simulate network delays
	'''
	random_delay()
	request_time = request.args.get('request_time')
	seconds = time.time()
	milliseconds = int(seconds * 1000)
	server_time = milliseconds
	random_delay()
	return jsonify(request_time = request_time, server_time = server_time)

# produce delay in the range 0 to 400ms
def random_delay():
	delay = random.randint(0,400)
	time.sleep(float(delay)/1000)
{'fraction_non_alphanumeric': 0.10332541567695962, 'fraction_numerical': 0.019002375296912115, 'mean_word_length': 5.194852941176471, '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': '961876', 'n_tokens_mistral': 545, 'n_tokens_neox': 507, 'n_words': 161}