<commit_before><?php
use \Uri;
use \Lib\String\Sanitizer;
use \Lib\Cache\MemcacheDriver;
use \Lib\Cache\MemcacheDriverException;

class HomeController extends BaseController {

    public  function __construct() {

        parent::__construct();	

    }
    public function index() {
        try { 
            $cache = new MemcacheDriver(array(
                "host" => "127.0.0.1", 
                "port" => "11211"
            ));
            /*
            var_dump($cache->get('aaaa'));
            $cache->set('aaaa', array("test"), 10);
            var_dump($cache->get('aaaa'));
            $cache->flush();
            */

        } catch(MemcacheDriverException $e) {
            
            echo $e->getXdebugMessage();
        }

        $this->view->set(array(
            "title" => "Welcome to Como MVC", 
        ))->render();
    }
    public function test($arg1, $arg2) {
        echo $arg1 . "<br>";
        echo $arg2 . "<br>";
    }
    private function hello() {
        echo __METHOD__;
    }
    protected function world() {
        echo __METHOD__;
    }
    public function test1() {
        echo __METHOD__;
    }
    public static function static_fn() {
        echo __METHOD__;
    }
}<commit_msg>Testing new xssclean method<commit_after><?php
use \Uri;
use \Lib\String\Sanitizer;
use \Lib\Cache\MemcacheDriver;
use \Lib\Cache\MemcacheDriverException;
use \Lib\Input\Input;

class HomeController extends BaseController {

    public  function __construct() {

        parent::__construct();	

    }
    public function index() {
        echo "sanitize::rXssClean(): " . Sanitizer::xssClean('<script>aa</script>');
        echo "<br />";
        echo "Input::get(): " . Input::get('q', Input::FILTER_ARRAY);
        echo "<br />";
        echo "Input::get(Input::NO_FILTER_ARRAY): ";
        var_dump(Input::get('q', Input::NO_FILTER_ARRAY));
        
        try { 
            $cache = new MemcacheDriver(array(
                "host" => "127.0.0.1", 
                "port" => "11211"
            ));
            /*
            var_dump($cache->get('aaaa'));
            $cache->set('aaaa', array("test"), 10);
            var_dump($cache->get('aaaa'));
            $cache->flush();
            */

        } catch(MemcacheDriverException $e) {
            
            echo $e->getXdebugMessage();
        }

        $this->view->set(array(
            "title" => "Welcome to Como MVC", 
        ))->render();
    }
    public function test($arg1, $arg2) {
        echo $arg1 . "<br>";
        echo $arg2 . "<br>";
    }
    private function hello() {
        echo __METHOD__;
    }
    protected function world() {
        echo __METHOD__;
    }
    public function test1() {
        echo __METHOD__;
    }
    public function redirect() {
        Input::redirect("http://google.com");
    }
    public static function static_fn() {
        echo __METHOD__;
    }
}
{'fraction_non_alphanumeric': 0.15270596346087556, 'fraction_numerical': 0.012409513960703205, 'mean_word_length': 1.812015503875969, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2826032', 'n_tokens_mistral': 885, 'n_tokens_neox': 848, 'n_words': 176}