<commit_before><?php

    class forum extends module {
        
        public $allowedMethods = array(
            "id" => array( "type" => "GET" ),
            "type" => array( "type" => "GET" ),
        	"pageNumber" => array( "type" => "GET" ),
        	"subject" => array( "type" => "POST" ),
        	"body" => array( "type" => "POST" ),
            "submit" => array( "type" => "POST" ), 
        	"time" => array( "type" => "POST" ), 
            "quote" => array("type" => "GET" )
        );
		
		public $pageName = '';
        
        public function constructModule() {}

        public function error($text) {
        	$this->html .= $this->page->buildElement("error", array(
    			"text" => $text
    		));
        }

        public function getPost($id) {
            $post = $this->db->prepare("
                SELECT
                    P_id as 'id', 
                    P_date as 'time', 
                    P_user as 'user', 
                    P_topic as 'topic', 
                    P_body as 'body'<commit_msg>Update forum.inc.php<commit_after><?php

    class forum extends module {
        
        public $allowedMethods = array(
            "id" => array( "type" => "GET" ),
            "type" => array( "type" => "GET" ),
        	"pageNumber" => array( "type" => "GET" ),
        	"subject" => array( "type" => "POST" ),
        	"body" => array( "type" => "POST" ),
            "submit" => array( "type" => "POST" ), 
        	"time" => array( "type" => "POST" ), 
            "quote" => array("type" => "GET" )
        );
		
		public $pageName = '';
        
        public function constructModule() {}

        public function getPost($id) {
            $post = $this->db->prepare("
                SELECT
                    P_id as 'id', 
                    P_date as 'time', 
                    P_user as 'user', 
                    P_topic as 'topic', 
                    P_body as 'body'
{'fraction_non_alphanumeric': 0.17063081695966908, 'fraction_numerical': 0.0, 'mean_word_length': 1.3771498771498771, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 43, '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': '7233081', 'n_tokens_mistral': 593, 'n_tokens_neox': 554, 'n_words': 138}