<commit_before>/// <reference path="../../../typings/angularjs/angular.d.ts" />
/// <reference path="../../app.common.ts" />
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var Blog;
(function (Blog) {
    var ArticleList;
    (function (ArticleList) {
        /**
         * The default list-strategy that chronologically orders all articles,
         * newest to oldest.
         */
        var ListAllStrategy = (function (_super) {
            __extends(ListAllStrategy, _super);
            function ListAllStrategy() {
                _super.apply(this, arguments);
                this.type = 'all';
                this.reverse = false;
            }
            ListAllStrategy.prototype.itemsList = function (source) {
                var x = this.reverse ? -1 : 1, y = this.reverse ? 1 : -1;
                return source.sort(function (a, b) { return Date.parse(a.lastMod) < Date.parse(b.lastMod) ? x : y; });
            };
            ;
            /**
             * Override to signal that this strategy can handle the 'all' list-type.
             */
            ListAllStrategy.canHandle = function (listType) {
                return (listType + '').toLowerCase() === 'all';<commit_msg>Sort by created instead of lastmod<commit_after>/// <reference path="../../../typings/angularjs/angular.d.ts" />
/// <reference path="../../app.common.ts" />
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var Blog;
(function (Blog) {
    var ArticleList;
    (function (ArticleList) {
        /**
         * The default list-strategy that chronologically orders all articles,
         * newest to oldest.
         */
        var ListAllStrategy = (function (_super) {
            __extends(ListAllStrategy, _super);
            function ListAllStrategy() {
                _super.apply(this, arguments);
                this.type = 'all';
                this.reverse = false;
            }
            ListAllStrategy.prototype.itemsList = function (source) {
                var x = this.reverse ? -1 : 1, y = this.reverse ? 1 : -1;
                return source.sort(function (a, b) { return Date.parse(a['created']) < Date.parse(b['created']) ? x : y; });
            };
            ;
            /**
             * Override to signal that this strategy can handle the 'all' list-type.
             */
            ListAllStrategy.canHandle = function (listType) {
                return (listType + '').toLowerCase() === 'all';
{'fraction_non_alphanumeric': 0.15050752537626882, 'fraction_numerical': 0.00280014000700035, 'mean_word_length': 1.8694779116465863, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4810729', 'n_tokens_mistral': 815, 'n_tokens_neox': 798, 'n_words': 210}