<commit_before><?php

header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: accept, content-type');
header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE');

error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);

// APP
require('handler/WebsiteHandler.php');

require('db.php');
require('Toro.php');

header('Content-Type: application/json');

ToroHook::add("404", function() {
    echo "Request not found";
});

Toro::serve(array(

	"1/website/:number"			=> "WebsiteHandler",			// GET
	"1/website/"				=> "WebsiteHandler"				// POST

));<commit_msg>Add ThemeHandler and ValThemeHandler<commit_after><?php

header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: accept, content-type');
header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE');

error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);

// APP
require('handler/WebsiteHandler.php');
require('handler/ThemeHandler.php');
require('handler/ValThemeHandler.php');

require('db.php');
require('Toro.php');

header('Content-Type: application/json');

ToroHook::add("404", function() {
    echo "Request not found";
});

Toro::serve(array(

	"1/website/:number"			=> "WebsiteHandler",			// GET
	"1/website/"				=> "WebsiteHandler",			// POST

	"1/theme/:number"			=> "ThemeHandler",				// GET
	"1/theme/"					=> "ThemeHandler",				// POST

	"1/valTheme/:number"		=> "ValThemeHandler",			// GET
	"1/valTheme/"				=> "ValThemeHandler"			// POST

));
{'fraction_non_alphanumeric': 0.2028206850235057, 'fraction_numerical': 0.010745466756212223, 'mean_word_length': 4.797665369649805, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '598347', 'n_tokens_mistral': 565, 'n_tokens_neox': 517, 'n_words': 83}