<commit_before>'use strict';

// define the ngCesium module
angular.module('ngCesium', [])
    //define the cesium directive
    .directive('cesium', ['$timeout', 'cesiumFactory', function ($timeout, cesiumFactory) {
        // return the directive definition object
        return {
            priority: 500,
            restrict: "EA",
            controllerAs: "cesiumCtrl",
            scope: {
                cesiumDirective: "=cesium"
            },
            bindToController: true,
            controller: function ($scope, $element) {
                var ctrl = this;

                // handle the case in which no config is sent
                if (angular.isUndefined(ctrl.cesiumDirective)) {
                    ctrl.cesiumDirective = {};
                }

                if (angular.isUndefined(ctrl.cesiumDirective.config)) {
                    ctrl.cesiumDirective.config = {};
                }

                // create the viewer
                ctrl.cesium = new Cesium.Viewer($element[0], ctrl.cesiumDirective.config);

                // this makes sure our parent app gets its cesiumInstance back
                ctrl.cesiumDirective.cesiumInstance = new cesiumFactory(ctrl.cesium);

                $timeout(function () {
                    ctrl.cesium.canvas.setAttribute('height', ctrl.cesium._lastHeight.toString());<commit_msg>Directive is only an attribute<commit_after>'use strict';

// define the ngCesium module
angular.module('ngCesium', [])
    //define the cesium directive
    .directive('cesium', ['$timeout', 'cesiumFactory', function ($timeout, cesiumFactory) {
        // return the directive definition object
        return {
            priority: 500,
            restrict: "A",
            controllerAs: "cesiumCtrl",
            scope: {
                cesiumDirective: "=cesium"
            },
            bindToController: true,
            controller: function ($scope, $element) {
                var ctrl = this;

                // handle the case in which no config is sent
                if (angular.isUndefined(ctrl.cesiumDirective)) {
                    ctrl.cesiumDirective = {};
                }

                if (angular.isUndefined(ctrl.cesiumDirective.config)) {
                    ctrl.cesiumDirective.config = {};
                }

                // create the viewer
                ctrl.cesium = new Cesium.Viewer($element[0], ctrl.cesiumDirective.config);

                // this makes sure our parent app gets its cesiumInstance back
                ctrl.cesiumDirective.cesiumInstance = new cesiumFactory(ctrl.cesium);

                $timeout(function () {
                    ctrl.cesium.canvas.setAttribute('height', ctrl.cesium._lastHeight.toString());
{'fraction_non_alphanumeric': 0.10204081632653061, 'fraction_numerical': 0.0029154518950437317, 'mean_word_length': 1.71513353115727, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7575429', 'n_tokens_mistral': 718, 'n_tokens_neox': 665, 'n_words': 161}