<commit_before>angular.module('n52.core.timeseries')
    .component('swcTimeseriesListSelectionView', {
        template: require('../../../templates/timeseries/timeseries-list-selection-view.html'),
        controller: ['providerSelection', 'seriesApiInterface', 'timeseriesService', '$state',
            function(providerSelection, seriesApiInterface, timeseriesService, $state) {
                this.$onInit = () => {
                    if (providerSelection.selectedProvider) {
                        this.providerList = [{
                            url: providerSelection.selectedProvider.providerUrl,
                            serviceID: providerSelection.selectedProvider.id
                        }];
                    }
                };

                this.datasetSelected = (dataset, url) => {
                    if (dataset[0].datasetType || dataset[0].valueType) {
                        seriesApiInterface.getDatasets(dataset[0].id, url).then(result => {
                            result.apiUrl = url;
                            timeseriesService.addTimeseries(dataset[0]);<commit_msg>fix error in list-selection after selecting a dataset<commit_after>angular.module('n52.core.timeseries')
    .component('swcTimeseriesListSelectionView', {
        template: require('../../../templates/timeseries/timeseries-list-selection-view.html'),
        controller: ['providerSelection', 'seriesApiInterface', 'timeseriesService', '$state',
            function(providerSelection, seriesApiInterface, timeseriesService, $state) {
                this.$onInit = () => {
                    if (providerSelection.selectedProvider) {
                        this.providerList = [{
                            url: providerSelection.selectedProvider.providerUrl,
                            serviceID: providerSelection.selectedProvider.id
                        }];
                    }
                };

                this.datasetSelected = (dataset, url) => {
                    if (dataset[0].datasetType || dataset[0].valueType) {
                        seriesApiInterface.getDatasets(dataset[0].id, url).then(result => {
                            result.apiUrl = url;
                            timeseriesService.addTimeseries(result);
{'fraction_non_alphanumeric': 0.11223591549295775, 'fraction_numerical': 0.0048415492957746475, 'mean_word_length': 1.7418576598311217, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7062131', 'n_tokens_mistral': 520, 'n_tokens_neox': 499, 'n_words': 70}