<commit_before><?php
App::uses('MongoModel', 'Model');
/**
 * Program Model
 *
 */
class Schedule extends MongoModel
{

    var $specific = true;
    var $useDbConfig = 'mongo';
    
    public $findMethods = array(
        'soon' => true,
        'count' => true
        );
     
     protected function _findSoon($state, $query, $results = array())
     {
        if ($state == 'before') {
            $query['order']['datetime'] = 'asc';
            $query['limit'] = 5;
            return $query;
        }
        return $results;<commit_msg>set the number of schedule to be display on the home to 10<commit_after><?php
App::uses('MongoModel', 'Model');
/**
 * Program Model
 *
 */
class Schedule extends MongoModel
{

    var $specific = true;
    var $useDbConfig = 'mongo';
    
    public $findMethods = array(
        'soon' => true,
        'count' => true
        );
     
     protected function _findSoon($state, $query, $results = array())
     {
        if ($state == 'before') {
            $query['order']['datetime'] = 'asc';
            $query['limit'] = 10;
            return $query;
        }
        return $results;
{'fraction_non_alphanumeric': 0.156140350877193, 'fraction_numerical': 0.0043859649122807015, 'mean_word_length': 2.0754716981132075, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7353510', 'n_tokens_mistral': 344, 'n_tokens_neox': 331, 'n_words': 89}