<commit_before>angular.module('n52.core.legend', ['n52.core.timeseries', 'n52.core.exportTs', 'n52.core.style'])
        .directive('swcLegend', function () {
            return {
                restrict: 'E',
                templateUrl: 'templates/legend/legend.html',
                controller: ['$scope', 'timeseriesService',
                    function ($scope, timeseriesService) {
                        $scope.timeseriesList = timeseriesService.timeseries;
                    }]
            };
        })
        .directive('swcLegendEntry', ['exportTsService', 'mapService', '$location', 'styleModalOpener',
            function (exportTsService, mapService, $location, styleModalOpener) {
                return {
                    restrict: 'E',
                    templateUrl: 'templates/legend/legend-entry.html',
                    scope: {
                        timeseries: "="
                    },
                    controller: ['$scope', 'timeseriesService', 'timeService', 'styleService',
                        function ($scope, timeseriesService, timeService, styleService) {
                            $scope.infoVisible = false;
                            $scope.toggleSelection = function (ts) {
                                styleService.toggleSelection(ts);
                            };
                            $scope.removeTs = function (ts) {
                                timeseriesService.removeTimeseries(ts.internalId);
                            };
                            $scope.toggleDiagram = function (ts) {
                                styleService.toggleTimeseriesVisibility(ts);
                            };
                            $scope.openStyling = function (ts) {
                                styleModalOpener(ts);
                            };
                            $scope.showInformation = function () {
                                $scope.infoVisible = !$scope.infoVisible;
                            };
                            $scope.showInMap = function (ts) {
                                mapService.showStation(ts);
                                $location.url('/map');
                            };
                            $scope.jumpToLastTimeStamp = function (lastValue) {
                                if (lastValue && lastValue.timestamp) {
                                    timeService.jumpToLastTimeStamp(lastValue.timestamp, true);
                                }
                            };
                            $scope.jumpToFirstTimeStamp = function (firstValue) {
                                if (firstValue && firstValue.timestamp) {
                                    timeService.jumpToLastTimeStamp(firstValue.timestamp, true);
                                }
                            };
                            $scope.selectRefValue = function (refValue, tsid) {
                                timeseriesService.toggleReferenceValue(refValue, tsid);<commit_msg>fix error in legend entry when selecting a reference value<commit_after>angular.module('n52.core.legend', ['n52.core.timeseries', 'n52.core.exportTs', 'n52.core.style'])
        .directive('swcLegend', function () {
            return {
                restrict: 'E',
                templateUrl: 'templates/legend/legend.html',
                controller: ['$scope', 'timeseriesService',
                    function ($scope, timeseriesService) {
                        $scope.timeseriesList = timeseriesService.timeseries;
                    }]
            };
        })
        .directive('swcLegendEntry', ['exportTsService', 'mapService', '$location', 'styleModalOpener',
            function (exportTsService, mapService, $location, styleModalOpener) {
                return {
                    restrict: 'E',
                    templateUrl: 'templates/legend/legend-entry.html',
                    scope: {
                        timeseries: "="
                    },
                    controller: ['$scope', 'timeseriesService', 'timeService', 'styleService',
                        function ($scope, timeseriesService, timeService, styleService) {
                            $scope.infoVisible = false;
                            $scope.toggleSelection = function (ts) {
                                styleService.toggleSelection(ts);
                            };
                            $scope.removeTs = function (ts) {
                                timeseriesService.removeTimeseries(ts.internalId);
                            };
                            $scope.toggleDiagram = function (ts) {
                                styleService.toggleTimeseriesVisibility(ts);
                            };
                            $scope.openStyling = function (ts) {
                                styleModalOpener(ts);
                            };
                            $scope.showInformation = function () {
                                $scope.infoVisible = !$scope.infoVisible;
                            };
                            $scope.showInMap = function (ts) {
                                mapService.showStation(ts);
                                $location.url('/map');
                            };
                            $scope.jumpToLastTimeStamp = function (lastValue) {
                                if (lastValue && lastValue.timestamp) {
                                    timeService.jumpToLastTimeStamp(lastValue.timestamp, true);
                                }
                            };
                            $scope.jumpToFirstTimeStamp = function (firstValue) {
                                if (firstValue && firstValue.timestamp) {
                                    timeService.jumpToLastTimeStamp(firstValue.timestamp, true);
                                }
                            };
                            $scope.selectRefValue = function (refValue, ts) {
                                timeseriesService.toggleReferenceValue(refValue, ts.internalId);
{'fraction_non_alphanumeric': 0.09256225425950197, 'fraction_numerical': 0.002621231979030144, 'mean_word_length': 1.047970479704797, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3719305', 'n_tokens_mistral': 1361, 'n_tokens_neox': 1270, 'n_words': 198}