<commit_before>define([
    'views/widgets/CodePane',
    'views/widgets/IcdCodeVisualisationCard',
    'models/BreadcrumbModel',
    'views/widgets/Breadcrumb',
    'announcements/OnBreadcrumbSelected'
], function(
    CodePane,
    IcdCodeVisualisationCard,
    BreadcrumbModel,
    Breadcrumb,
    OnBreadcrumbSelected
){

    function IcdCodePane() {
        var _this = new CodePane();

        _this.newSelectorModel = override(_this, _this.newSelectorModel, function () {
            return this.super().characterRange();
        });

        _this.load = override(_this, _this.load, function(){
           this.super('/api/v1/codes/icd');
            _this.renderBreadcrumb();
            return _this;
        });

        _this.groupPrefix = function () {
            return 'icd';
        };

        _this.newCodeCard = function () {
            return new IcdCodeVisualisationCard();
        };

        _this.renderBreadcrumb = function () {
            var breadcrumb = new Breadcrumb();
            _this.leftPane().prepend(breadcrumb);

            var breadcrumbModel = new BreadcrumbModel()
                .level()
                    .label(function(){return _this.groupPrefix().toUpperCase();})
                    .next(_.identity)
                    .sameDefault()
                    .end()
                .level()
                    .defaultLabel(function(){return 'Alle Kapiteln'})
                    .label(function(chapter){return 'Kapitel '+chapter.roman_number + ' ' + chapter.nonterminals})
                    .next(function(chapter){return chapter.icd_chapter_groups})
                    .sameDefault()
                    .end()
                .level()
                    .defaultLabel(function(){return 'Alle Gruppe'})
                    .label(function(group) {return 'Gruppe '+group.code})
                    .next(function(group){return group.icd_nonterminals})
                    .sameDefault()
                    .end()
                .level()
                    .defaultLabel(function(){return 'Alle Nonterminale'})
                    .label(function(nonterminal) {return 'Nonterminal '+nonterminal.code})
                    .end();

            var searchFilter = function (candidates) {
                var nonterminals = _.flatten([_.last(breadcrumbModel.selected().path()).entity()]);
                var lastTrueIndex = 0;
                function match(candidate, nonterminal) {
                    return _s(candidate.code).startsWith(nonterminal.code);
                }
                function isMatches (candidate) {
                    for (var i = lastTrueIndex; i < nonterminals.length; i++) {<commit_msg>Fixed typos<commit_after>define([
    'views/widgets/CodePane',
    'views/widgets/IcdCodeVisualisationCard',
    'models/BreadcrumbModel',
    'views/widgets/Breadcrumb',
    'announcements/OnBreadcrumbSelected'
], function(
    CodePane,
    IcdCodeVisualisationCard,
    BreadcrumbModel,
    Breadcrumb,
    OnBreadcrumbSelected
){

    function IcdCodePane() {
        var _this = new CodePane();

        _this.newSelectorModel = override(_this, _this.newSelectorModel, function () {
            return this.super().characterRange();
        });

        _this.load = override(_this, _this.load, function(){
           this.super('/api/v1/codes/icd');
            _this.renderBreadcrumb();
            return _this;
        });

        _this.groupPrefix = function () {
            return 'icd';
        };

        _this.newCodeCard = function () {
            return new IcdCodeVisualisationCard();
        };

        _this.renderBreadcrumb = function () {
            var breadcrumb = new Breadcrumb();
            _this.leftPane().prepend(breadcrumb);

            var breadcrumbModel = new BreadcrumbModel()
                .level()
                    .label(function(){return _this.groupPrefix().toUpperCase();})
                    .next(_.identity)
                    .sameDefault()
                    .end()
                .level()
                    .defaultLabel(function(){return 'Alle Kapitel'})
                    .label(function(chapter){return 'Kapitel '+chapter.roman_number + ' ' + chapter.nonterminals})
                    .next(function(chapter){return chapter.icd_chapter_groups})
                    .sameDefault()
                    .end()
                .level()
                    .defaultLabel(function(){return 'Alle Gruppen'})
                    .label(function(group) {return 'Gruppe '+group.code})
                    .next(function(group){return group.icd_nonterminals})
                    .sameDefault()
                    .end()
                .level()
                    .defaultLabel(function(){return 'Alle Nonterminals'})
                    .label(function(nonterminal) {return 'Nonterminal '+nonterminal.code})
                    .end();

            var searchFilter = function (candidates) {
                var nonterminals = _.flatten([_.last(breadcrumbModel.selected().path()).entity()]);
                var lastTrueIndex = 0;
                function match(candidate, nonterminal) {
                    return _s(candidate.code).startsWith(nonterminal.code);
                }
                function isMatches (candidate) {
                    for (var i = lastTrueIndex; i < nonterminals.length; i++) {
{'fraction_non_alphanumeric': 0.11663551401869159, 'fraction_numerical': 0.0007476635514018691, 'mean_word_length': 1.6970766129032258, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1455621', 'n_tokens_mistral': 1478, 'n_tokens_neox': 1374, 'n_words': 233}