<commit_before>(function () {
    'use strict';

    angular.module('documents')
        .component('scientillaDocumentDetails', {
            templateUrl: 'partials/scientillaDocumentDetails.html',
            controller: scientillaDocumentsDetails,
            controllerAs: 'vm',
            bindings: {
                document: "<"
            }
        });

    scientillaDocumentsDetails.$inject = [
        'documentTypes',
        'documentSourceTypes'
    ];

    function scientillaDocumentsDetails(documentTypes, documentSourceTypes) {
        const vm = this;


        vm.$onInit = function () {
            vm.type = _.get(documentTypes.find(dt => dt.key === vm.document.type), 'label');
            vm.sourceType = _.get(documentSourceTypes.find(dt => dt.id === vm.document.sourceType), 'label');


            vm.bibliographicInformations = [];

            if (vm.document.issue)
                vm.bibliographicInformations.push('issue ' + vm.document.issue);

            if (vm.document.editor)
                vm.bibliographicInformations.push('editor ' + vm.document.editor);

            if (vm.document.publisher)
                vm.bibliographicInformations.push('editor ' + vm.document.publisher);

            if (vm.document.articleNumber)
                vm.bibliographicInformations.push('ar. n. ' + vm.document.articleNumber);

            if (vm.document.volume)
                vm.bibliographicInformations.push('vol. ' + vm.document.volume);

            if (vm.document.pages)
                vm.bibliographicInformations.push('pp. ' + vm.document.pages);
        };
    }

})();<commit_msg>Changed data order<commit_after>(function () {
    'use strict';

    angular.module('documents')
        .component('scientillaDocumentDetails', {
            templateUrl: 'partials/scientillaDocumentDetails.html',
            controller: scientillaDocumentsDetails,
            controllerAs: 'vm',
            bindings: {
                document: "<"
            }
        });

    scientillaDocumentsDetails.$inject = [
        'documentTypes',
        'documentSourceTypes'
    ];

    function scientillaDocumentsDetails(documentTypes, documentSourceTypes) {
        const vm = this;


        vm.$onInit = function () {
            vm.type = _.get(documentTypes.find(dt => dt.key === vm.document.type), 'label');
            vm.sourceType = _.get(documentSourceTypes.find(dt => dt.id === vm.document.sourceType), 'label');


            vm.bibliographicInformations = [];

            if (vm.document.volume)
                vm.bibliographicInformations.push('vol. ' + vm.document.volume);

            if (vm.document.issue)
                vm.bibliographicInformations.push('issue ' + vm.document.issue);

            if (vm.document.articleNumber)
                vm.bibliographicInformations.push('ar. n. ' + vm.document.articleNumber);

            if (vm.document.pages)
                vm.bibliographicInformations.push('pp. ' + vm.document.pages);
        };
    }

})();
{'fraction_non_alphanumeric': 0.12811151676070362, 'fraction_numerical': 0.0, 'mean_word_length': 2.072375127420999, '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': '1217899', 'n_tokens_mistral': 845, 'n_tokens_neox': 784, 'n_words': 114}