<commit_before><?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

require_once('skylight.php');

class redirect extends skylight {

    function index() {

        $url_prefix = $this->config->item('skylight_url_prefix');
        if (!empty($url_prefix))
        {
            $url_prefix = '/'.$url_prefix;
        }

        // Redirect to the relevant search page (/search/query) rather than /search/?q=query
        if (!empty($_POST['q'])) {
            redirect($url_prefix.'/search/' . $_POST['q']);
        } else {
            redirect($url_prefix.'/search/');
        }
    }
}

?><commit_msg>LIB001-867: Changing redirect for searches to REQUEST to handle GET as well through EASE authentication<commit_after><?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

require_once('skylight.php');

class redirect extends skylight {

    function index() {

        $url_prefix = $this->config->item('skylight_url_prefix');
        if (!empty($url_prefix))
        {
            $url_prefix = '/'.$url_prefix;
        }

        // Redirect to the relevant search page (/search/query) rather than /search/?q=query
        if (!empty($_REQUEST['q'])) {
            redirect($url_prefix.'/search/' . $_REQUEST['q']);
        } else {
            redirect($url_prefix.'/search/');
        }
    }
}

?>
{'fraction_non_alphanumeric': 0.15976331360946747, 'fraction_numerical': 0.004437869822485207, 'mean_word_length': 2.505181347150259, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '1063983', 'n_tokens_mistral': 402, 'n_tokens_neox': 389, 'n_words': 88}