<commit_before>Kpcc.ArticlesController = Ember.ArrayController.extend({
    currentPage     : 1,
    limit           : 10,
    types           : "news,blogs",


    loadMore: function() {
        if(this.get('isLoading')) return;

        this.incrementProperty('currentPage');
        this.set('isLoading', true);

        var self = this;

        Kpcc.Article.find({
            page    : this.get('currentPage'),
            limit   : this.get('limit'),
            types   : this.get('types')

        }).then(function(){
            self.set('isLoading', false)
        });
    }
});<commit_msg>Cleanup + doc<commit_after>Kpcc.ArticlesController = Ember.ArrayController.extend({
    // Default current page. This gets modified by loadMore.
    currentPage     : 1,
    limit           : 10,
    types           : "news,blogs",

    loadMore: function() {
        if(this.get('isLoading')) return;

        this.incrementProperty('currentPage');
        this.set('isLoading', true);

        var self = this;

        Kpcc.Article.find({
            page    : this.get('currentPage'),
            limit   : this.get('limit'),
            types   : this.get('types')

        }).then(function(){
            self.set('isLoading', false)
        });
    },
});
{'fraction_non_alphanumeric': 0.1456848772763262, 'fraction_numerical': 0.004750593824228029, 'mean_word_length': 1.8404494382022472, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1770810', 'n_tokens_mistral': 377, 'n_tokens_neox': 355, 'n_words': 65}