<commit_before><?php
// vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker:             
// +-------------------------------------------------------------------------+
// | Author: <NAME> <<EMAIL>>                               |
// +-------------------------------------------------------------------------+
// $Id$
// ---------------------------------------------------------------------------

class Modules_Model extends Model 
{
    // {{{ Properties
    
    private $tableNameCoreModules;
    
    // }}}
    // {{{ Constructor
    function __construct()
    {
        parent::__construct();

        // Set the table name
        $this->tableNameCoreModules = 'core_modules';
    }
    // }}}
    // {{{ getModules
    public function getModules($excludeModules = Array())
    {
        $this->db->select('id, name, module');
        $this->db->where('state', 1);

        // Excluse modules
        foreach ($excludeModules as $module) {
            $this->db->where('module !=', $module);
        }

        return $this->db->get($this->tableNameCoreModules)->result(false);
    }
    // }}}
}
?>
<commit_msg>description column added to modules query.<commit_after><?php
// vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker:             
// +-------------------------------------------------------------------------+
// | Author: <NAME> <<EMAIL>>                               |
// +-------------------------------------------------------------------------+
// $Id$
// ---------------------------------------------------------------------------

class Modules_Model extends Model 
{
    // {{{ Properties
    
    private $tableNameCoreModules;
    
    // }}}
    // {{{ Constructor
    function __construct()
    {
        parent::__construct();

        // Set the table name
        $this->tableNameCoreModules = 'core_modules';
    }
    // }}}
    // {{{ getModules
    public function getModules($excludeModules = Array())
    {
        $this->db->select('id, name, module, description');
        $this->db->where('state', 1);

        // Excluse modules
        foreach ($excludeModules as $module) {
            $this->db->where('module !=', $module);
        }

        return $this->db->get($this->tableNameCoreModules)->result(false);
    }
    // }}}
}
?>

{'fraction_non_alphanumeric': 0.33159268929503916, 'fraction_numerical': 0.0026109660574412533, 'mean_word_length': 1.1169429097605894, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 33, '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': '4654737', 'n_tokens_mistral': 566, 'n_tokens_neox': 569, 'n_words': 102}