<commit_before>import sys
import os.path
import json
from flask import Flask,Response
from resource.holiday import HolidayResource

sys.path.append(os.path.abspath('./resource'))
sys.path.append(os.path.abspath('./domain'))
sys.path.append(os.path.abspath('./util'))

app = Flask(__name__)

@app.route("/")
def index():
	d = { 
		"app_name": "Pasco", 
		"app_description": "Pasco: all the holidays.",
		"app_repository": "https://github.com/vfcardoso3/pasco",
		"app_instructions": "List all brazilian holidays from a given year: /:year:/holidays"
	}
	return Response(json.dumps(d), mimetype='application/json')

@app.route("/<int:year>/holidays")
def holidays(year):
	return Response(HolidayResource().list(year), mimetype='application/json')

if __name__ == "__main__":
	app.run()<commit_msg>Adding threading support to the native server<commit_after>import sys
import os.path
import json
from flask import Flask,Response
from resource.holiday import HolidayResource

sys.path.append(os.path.abspath('./resource'))
sys.path.append(os.path.abspath('./domain'))
sys.path.append(os.path.abspath('./util'))

app = Flask(__name__)

@app.route("/")
def index():
	d = { 
		"app_name": "Pasco", 
		"app_description": "Pasco: all the holidays.",
		"app_repository": "https://github.com/vfcardoso3/pasco",
		"app_instructions": "List all brazilian holidays from a given year: /:year:/holidays"
	}
	return Response(json.dumps(d), mimetype='application/json')

@app.route("/<int:year>/holidays")
def holidays(year):
	return Response(HolidayResource().list(year), mimetype='application/json')

if __name__ == "__main__":
	app.run(processes=3)
{'fraction_non_alphanumeric': 0.16983445738810546, 'fraction_numerical': 0.0018393623543838135, 'mean_word_length': 5.771784232365145, 'pattern_counts': {'":': 10, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6665721', 'n_tokens_mistral': 578, 'n_tokens_neox': 554, 'n_words': 115}