<commit_before><?php
/**
 * テストページ用のルーティング
 */

// 管理用のパラメータを設定する
$request = \Fc2blog\Web\Request::getInstance();
$path = $request->getPath(); // full path with out query args.
$paths = $request->getPaths(); // explode with `/`
$query = $request->getQuery(); // query args
$args_controller = \Fc2blog\Config::get('ARGS_CONTROLLER');
$args_action = \Fc2blog\Config::get('ARGS_ACTION');

// argsa => method(action
// argsc => class

// アクションのクラスは当座固定
$request->set($args_controller, "common");

// → /_for_unit_test_/phpinfo
//     ^- path[0]      ^- path[1]
if ($paths[1] === "phpinfo") {
  $request->set($args_action, "phpinfo");

}else if($paths[1] === "redirect_test_no_full_url"){
  $request->set($args_action, "redirect_test_no_full_url");

}else if($paths[1] === "redirect_test_full_url"){
  $request->set($args_action, "redirect_test_full_url");

}<commit_msg>WIP:Big restructuring: "will be delete" mark to file<commit_after><?php
/**
 * テストページ用のルーティング
 */
// DELME
//// 管理用のパラメータを設定する
//$request = \Fc2blog\Web\Request::getInstance();
//$path = $request->getPath(); // full path with out query args.
//$paths = $request->getPaths(); // explode with `/`
//$query = $request->getQuery(); // query args
//$args_controller = \Fc2blog\Config::get('ARGS_CONTROLLER');
//$args_action = \Fc2blog\Config::get('ARGS_ACTION');
//
//// argsa => method(action
//// argsc => class
//
//// アクションのクラスは当座固定
//$request->set($args_controller, "common");
//
//// → /_for_unit_test_/phpinfo
////     ^- path[0]      ^- path[1]
//if ($paths[1] === "phpinfo") {
//  $request->set($args_action, "phpinfo");
//
//}else if($paths[1] === "redirect_test_no_full_url"){
//  $request->set($args_action, "redirect_test_no_full_url");
//
//}else if($paths[1] === "redirect_test_full_url"){
//  $request->set($args_action, "redirect_test_full_url");
//
//}
{'fraction_non_alphanumeric': 0.2293828509011469, 'fraction_numerical': 0.008738394320043691, 'mean_word_length': 4.279538904899136, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '5899748', 'n_tokens_mistral': 736, 'n_tokens_neox': 721, 'n_words': 110}