<commit_before>angular.module('n52.core.diagram')
    .service('flotChartServ', [
        'timeseriesService',
        'timeService',
        'settingsService',
        'flotDataHelperServ',
        '$rootScope',
        'monthNamesTranslaterServ',
        'labelMapperSrvc',
        '$q',
        function(
            timeseriesService,
            timeService,
            settingsService,
            flotDataHelperServ,
            $rootScope,
            monthNamesTranslaterServ,
            labelMapperSrvc,
            $q
        ) {
            var createYAxis = () => {
                var axesList = {};
                var requests = [];
                angular.forEach(timeseriesService.getAllTimeseries(), (elem) => {
                    var requestUom, requestLabel, requestBundle = [];
                    if (elem.uom) {
                        requestUom = labelMapperSrvc.getMappedLabel(elem.uom);
                        requestBundle.push(requestUom);
                        requests.push(requestUom);
                    }
                    // } else {
                    requestLabel = labelMapperSrvc.getMappedLabel(elem.parameters.phenomenon.label);
                    requestBundle.push(requestLabel);
                    requests.push(requestLabel);
                    // }
                    $q.all(requestBundle).then((result) => {
                        if (elem.styles.groupedAxis === undefined || elem.styles.groupedAxis) {
                            var label = result.length === 2 ? result[1] + ' [' + result[0] + ']' : result[0];
                            if (!axesList.hasOwnProperty(label)) {
                                axesList[label] = {
                                    id: ++Object.keys(axesList).length,
                                    uom: label,
                                    tsColors: [elem.styles.color],
                                    zeroScaled: elem.styles.zeroScaled
                                };
                                elem.styles.yaxis = axesList[label].id;
                            } else {
                                axesList[label].tsColors.push(elem.styles.color);
                                elem.styles.yaxis = axesList[label].id;
                            }
                        } else {<commit_msg>dont show urls on the chart axis<commit_after>angular.module('n52.core.diagram')
    .service('flotChartServ', [
        'timeseriesService',
        'timeService',
        'settingsService',
        'flotDataHelperServ',
        '$rootScope',
        'monthNamesTranslaterServ',
        'labelMapperSrvc',
        '$q',
        function(
            timeseriesService,
            timeService,
            settingsService,
            flotDataHelperServ,
            $rootScope,
            monthNamesTranslaterServ,
            labelMapperSrvc,
            $q
        ) {
            var createYAxis = () => {
                var axesList = {};
                var requests = [];
                angular.forEach(timeseriesService.getAllTimeseries(), (elem) => {
                    var requestUom, requestLabel, requestBundle = [];
                    if (elem.uom) {
                        requestUom = labelMapperSrvc.getMappedLabel(elem.uom);
                        requestBundle.push(requestUom);
                        requests.push(requestUom);
                    }
                    // } else {
                    requestLabel = labelMapperSrvc.getMappedLabel(elem.parameters.phenomenon.label);
                    requestBundle.push(requestLabel);
                    requests.push(requestLabel);
                    // }
                    $q.all(requestBundle).then((result) => {
                        if (elem.styles.groupedAxis === undefined || elem.styles.groupedAxis) {
                            var label;
                            if (result.length === 2 && !result[1].startsWith('http')) {
                                label = result[1] + ' [' + result[0] + ']';
                            } else {
                                label = '[' + result[0] + ']';
                            }
                            if (!axesList.hasOwnProperty(label)) {
                                axesList[label] = {
                                    id: ++Object.keys(axesList).length,
                                    uom: label,
                                    tsColors: [elem.styles.color],
                                    zeroScaled: elem.styles.zeroScaled
                                };
                                elem.styles.yaxis = axesList[label].id;
                            } else {
                                axesList[label].tsColors.push(elem.styles.color);
                                elem.styles.yaxis = axesList[label].id;
                            }
                        } else {
{'fraction_non_alphanumeric': 0.10040899795501022, 'fraction_numerical': 0.0026584867075664623, 'mean_word_length': 1.0269374222958971, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2350934', 'n_tokens_mistral': 1193, 'n_tokens_neox': 1114, 'n_words': 155}