<commit_before><?php

use ASF\Route;

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

$app->get('/' . $app['board']['base'], function (ASFApplication $app) {
    return Route::get('home:index');
});

$app->get('/' . $app['board']['base'] . 'test/', function (ASFApplication $app) {
    return include 'test.php';
});

$app->get('/' . $app['board']['base'] . 'new-topics/', function (ASFApplication $app) {
   return Route::get('topic:newest');
});

$app->get('/' . $app['board']['base'] . 'signup/', function (ASFApplication $app) {
    return Route::get('auth:signup');
});

$app->get('/' . $app['board']['base'] . 'members/', function (ASFApplication $app) {
    return Route::get('members:index');
});

$app->get('/' . $app['board']['base'] . 'faqs/', function (ASFApplication $app) {
    return Route::get('faq:index');
});

$app->post('/' . $app['board']['base'] . 'signup/', function (Request $request) {
    return Route::get('auth:signup', $request);
});

$app->get('/' . $app['board']['base'] . 'search/', function (ASFApplication $app) {
    return Route::get('search:index');
});

$app->get('/' . $app['board']['base'] . 'search/{query}/{selection}/', function (ASFApplication $app, $query, $selection) {
    return Route::get('search:get', $query, $selection);
});

$app->post('/' . $app['board']['base'] . 'search/typeahead/', function (Request $request) {
    return Route::get('search:typeahead', $request);
});

$app->post('/' . $app['board']['base'] . 'login/', function (Request $request) use ($app) {
    return $app['auth']->login($request);
});

$app->get('/' . $app['board']['base'] . 'logout/', function (ASFApplication $app) {
    return Route::get('auth:logout');
});

$app->get('/' . $app['board']['base'] . 'download/', function (ASFApplication $app) {
    return Route::get('download:index');
});

$app->get('/' . $app['board']['base'] . 'user/{username}/{page}/', function (ASFApplication $app, $username, $page) {
    return Route::get('user:index', $username, $page);
})->assert('page', '([0-9]+)');

$app->get('/' . $app['board']['base'] . 'user/settings/', function (ASFApplication $app) {
    return Route::get('user:settings');
});

$app->get('/' . $app['board']['base'] . 'user/{username}/', function (ASFApplication $app, $username) {
    return Route::get('user:index', $username);
});

$app->get('/' . $app['board']['base'] . 'user/confirmEmail/{code}/', function (ASFApplication $app, $code) {
    return Route::get('user:confirmEmail', $code);
});

$app->post('/' . $app['board']['base'] . 'partial/{name}/', function (Request $request, $name) use ($app) {

    $params = $request->get('params');
    $array = array();
<commit_msg>bound some routes for path function<commit_after><?php

use ASF\Route;

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

$app->get('/' . $app['board']['base'], function (ASFApplication $app) {
    return Route::get('home:index');
});

$app->get('/' . $app['board']['base'] . 'test/', function (ASFApplication $app) {
    return include 'test.php';
});

$app->get('/' . $app['board']['base'] . 'new-topics/', function (ASFApplication $app) {
   return Route::get('topic:newest');
});

$app->get('/' . $app['board']['base'] . 'signup/', function (ASFApplication $app) {
    return Route::get('auth:signup');
});

$app->get('/' . $app['board']['base'] . 'members/', function (ASFApplication $app) {
    return Route::get('members:index');
});

$app->get('/' . $app['board']['base'] . 'faqs/', function (ASFApplication $app) {
    return Route::get('faq:index');
});

$app->post('/' . $app['board']['base'] . 'signup/', function (Request $request) {
    return Route::get('auth:signup', $request);
});

$app->get('/' . $app['board']['base'] . 'search/', function (ASFApplication $app) {
    return Route::get('search:index');
});

$app->get('/' . $app['board']['base'] . 'search/{query}/{selection}/', function (ASFApplication $app, $query, $selection) {
    return Route::get('search:get', $query, $selection);
});

$app->post('/' . $app['board']['base'] . 'search/typeahead/', function (Request $request) {
    return Route::get('search:typeahead', $request);
});

$app->post('/' . $app['board']['base'] . 'login/', function (Request $request) use ($app) {
    return $app['auth']->login($request);
});

$app->get('/' . $app['board']['base'] . 'logout/', function (ASFApplication $app) {
    return Route::get('auth:logout');
});

$app->get('/' . $app['board']['base'] . 'download/', function (ASFApplication $app) {
    return Route::get('download:index');
});

$app->get('/' . $app['board']['base'] . 'user/{username}/{page}/', function (ASFApplication $app, $username, $page) {
    return Route::get('user:index', $username, $page);
})->assert('page', '([0-9]+)');

$app->get('/' . $app['board']['base'] . 'user/settings/', function (ASFApplication $app) {
    return Route::get('user:settings');
})->bind('user-settings');

$app->get('/' . $app['board']['base'] . 'user/{username}/', function (ASFApplication $app, $username) {
    return Route::get('user:index', $username);
})->bind('user-profile');

$app->get('/' . $app['board']['base'] . 'user/confirmEmail/{code}/', function (ASFApplication $app, $code) {
    return Route::get('user:confirmEmail', $code);
});

$app->post('/' . $app['board']['base'] . 'partial/{name}/', function (Request $request, $name) use ($app) {

    $params = $request->get('params');
    $array = array();

{'fraction_non_alphanumeric': 0.27730328911502816, 'fraction_numerical': 0.0007268762493185535, 'mean_word_length': 5.021881838074398, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2076400', 'n_tokens_mistral': 1882, 'n_tokens_neox': 1849, 'n_words': 355}