<commit_before><?php

define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__).'/../');
define('APP_ROUTE', ROOT . 'application/');

define('LIB_PATH', '../application/libraries/epiphany/src/');

require_once ('../config/config.php');

include_once LIB_PATH . 'Epi.php';

include_once '../core/app.class.php';
include_once '../core/database.class.php';
include_once '../core/auth.class.php';
include_once '../core/controller.class.php';
include_once '../core/shared.functions.php';
include_once '../core/utils.class.php';
include_once '../core/model.class.php';
include_once '../core/language.class.php';
include_once '../core/validator.class.php';

include_once APP_ROUTE . 'models/user.php';
include_once APP_ROUTE . 'models/project.php';
include_once APP_ROUTE . 'models/Task.php';


include_once 'functions.php';
include_once "HomeApi.php";
include_once 'ProjectApi.php';

Epi::setPath('base', LIB_PATH);

Epi::setSetting('exceptions', true);
Epi::init('route', 'api');
Epi::setPath('config', dirname(__FILE__));
getRoute()->load('routes.ini');

/*
getRoute()->get('/', array('HomeApi', 'getHome'), EpiApi::external);
getRoute()->get('/contact', 'contactUs');
getRoute()->get('/login', 'auth', EpiApi::external);
getRoute()->get('/logout', 'logout', EpiApi::external);
//getRoute()->get('/projects', 'getProjects', EpiApi::external);
getRoute()->get('/projects', array('ProjectApi', 'getAllProjects'), EpiApi::external);
getRoute()->get('/project/(\d+)', array('ProjectApi', 'getProjectById'), EpiApi::external);
getRoute()->get('/version', array('HomeApi', 'getVersion'), EpiApi::external);
*/

getApi()->get('/params.json', 'apiParams', EpiApi::external);


getRoute()->run();

function home() {<commit_msg>fixed<commit_after><?php

define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__).'/../');
define('APP_ROUTE', ROOT . 'application/');

define('LIB_PATH', '../application/libraries/epiphany/src/');

require_once ('../config/config.php');

include_once LIB_PATH . 'Epi.php';

include_once '../core/app.class.php';
include_once '../core/database.class.php';
include_once '../core/auth.class.php';
include_once '../core/controller.class.php';
include_once '../core/shared.functions.php';
include_once '../core/utils.class.php';
include_once '../core/model.class.php';
include_once '../core/language.class.php';
include_once '../core/validator.class.php';

include_once APP_ROUTE . 'models/user.php';
include_once APP_ROUTE . 'models/project.php';
include_once APP_ROUTE . 'models/task.php';


include_once 'functions.php';
include_once "HomeApi.php";
include_once 'ProjectApi.php';

Epi::setPath('base', LIB_PATH);

Epi::setSetting('exceptions', true);
Epi::init('route', 'api');
Epi::setPath('config', dirname(__FILE__));
getRoute()->load('routes.ini');

/*
getRoute()->get('/', array('HomeApi', 'getHome'), EpiApi::external);
getRoute()->get('/contact', 'contactUs');
getRoute()->get('/login', 'auth', EpiApi::external);
getRoute()->get('/logout', 'logout', EpiApi::external);
//getRoute()->get('/projects', 'getProjects', EpiApi::external);
getRoute()->get('/projects', array('ProjectApi', 'getAllProjects'), EpiApi::external);
getRoute()->get('/project/(\d+)', array('ProjectApi', 'getProjectById'), EpiApi::external);
getRoute()->get('/version', array('HomeApi', 'getVersion'), EpiApi::external);
*/

getApi()->get('/params.json', 'apiParams', EpiApi::external);


getRoute()->run();

function home() {
{'fraction_non_alphanumeric': 0.23604651162790696, 'fraction_numerical': 0.0, 'mean_word_length': 6.562637362637362, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '6011228', 'n_tokens_mistral': 1149, 'n_tokens_neox': 1144, 'n_words': 180}