<commit_before><?php
class leader extends CI_Model{
    function __construct(){

    }

    function getleader(){
        $this->load->database();
        $this->db->select("*");
        $this->db->from("teams");
        $this->db->order_by("rank","desc");
        $scores = $this->db->get();
        return $scores->result();
    }
    function getsum($gid){
        $this->load->database();
        $this->db->select("*");
        $this->db->from("games");
        $this->db->where("id",$gid);
        $summery = $this->db->get();
        return $summery->row_array();
    }
    function getcount($tid){
        $this->load->database();
        $this->db->select_max("sub_count");
        $this->db->from("games");
        $this->db->where("team_id",$tid);
        //$this->db->where('team_id',$tid);<commit_msg>I'm noob :P<commit_after><?php
class leader extends CI_Model{

    function getleader(){
        $this->load->database();
        $this->db->select("*");
        $this->db->from("teams");
        $this->db->order_by("rank","desc");
        $scores = $this->db->get();
        return $scores->result();
    }
    function getsum($gid){
        $this->load->database();
        $this->db->select("*");
        $this->db->from("games");
        $this->db->where("id",$gid);
        $summery = $this->db->get();
        return $summery->row_array();
    }
    function getcount($tid){
        $this->load->database();
        $this->db->select_max("sub_count");
        $this->db->from("games");
        $this->db->where("team_id",$tid);
        //$this->db->where('team_id',$tid);
{'fraction_non_alphanumeric': 0.24010056568196103, 'fraction_numerical': 0.0, 'mean_word_length': 2.4089935760171306, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 67, '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': '96874', 'n_tokens_mistral': 537, 'n_tokens_neox': 514, 'n_words': 67}