<commit_before>'use strict';

(function (angular, window) {
  angular
    .module('simpleSliderPluginContent')
    .controller('ContentHomeCtrl', ['TAG_NAMES', 'DataStore', '$scope', 'Buildfire',
        function (TAG_NAMES, DataStore, $scope, Buildfire) {

            var _data = {
                "content": {
                    "carouselImages": []
                },
                "settings": {
                    "speed": ""
                },
                "design":{
                    "mode":"",
                    "mode_gap":true
                }
            };

            var ContentHome=this;
            ContentHome.masterData = null;
            ContentHome.data = angular.copy(_data);

            // create a new instance of the buildfire carousel editor
            ContentHome.editor = new Buildfire.components.carousel.editor("#carousel");

            // this method will be called when a new item added to the list
            ContentHome.editor.onAddItems = function (items) {
                console.log('Content info==========================',ContentHome.info);

                if (!ContentHome.data.design){
                    ContentHome.data.design = {};
                    ContentHome.data.design.mode_gap=true;
                }

                if (ContentHome && ContentHome.data && ContentHome.data.content && !ContentHome.data.content.carouselImages)
                    ContentHome.data.content.carouselImages = [];
                ContentHome.data.content.carouselImages.push.apply(ContentHome.data.content.carouselImages, items);
                if (!$scope.$$phase)$scope.$digest();
            };

            // this method will be called when an item deleted from the list
            ContentHome.editor.onDeleteItem = function (item, index) {
                ContentHome.data.content.carouselImages.splice(index, 1);
                if (!$scope.$$phase)$scope.$digest();
            };

            // this method will be called when you edit item details
            ContentHome.editor.onItemChange = function (item, index) {
                ContentHome.data.content.carouselImages.splice(index, 1, item);
                if (!$scope.$$phase)$scope.$digest();
            };

            // this method will be called when you change the order of items<commit_msg>modified some issue on content<commit_after>'use strict';

(function (angular, window) {
  angular
    .module('simpleSliderPluginContent')
    .controller('ContentHomeCtrl', ['TAG_NAMES', 'DataStore', '$scope', 'Buildfire',
        function (TAG_NAMES, DataStore, $scope, Buildfire) {

            var _data = {
                "content": {
                    "carouselImages": []
                },
                "settings": {
                    "speed": ""
                },
                "design":{
                    "mode":"",
                    "mode_gap":true
                }
            };

            var ContentHome=this;
            ContentHome.masterData = null;
            ContentHome.data = angular.copy(_data);

            // create a new instance of the buildfire carousel editor
            ContentHome.editor = new Buildfire.components.carousel.editor("#carousel");

            // this method will be called when a new item added to the list
            ContentHome.editor.onAddItems = function (items) {
                console.log('Content info==========================',ContentHome.info);

                if (ContentHome && ContentHome.data && ContentHome.data.content && !ContentHome.data.content.carouselImages)
                    ContentHome.data.content.carouselImages = [];
                ContentHome.data.content.carouselImages.push.apply(ContentHome.data.content.carouselImages, items);
                if (!$scope.$$phase)$scope.$digest();
            };

            // this method will be called when an item deleted from the list
            ContentHome.editor.onDeleteItem = function (item, index) {
                ContentHome.data.content.carouselImages.splice(index, 1);
                if (!$scope.$$phase)$scope.$digest();
            };

            // this method will be called when you edit item details
            ContentHome.editor.onItemChange = function (item, index) {
                ContentHome.data.content.carouselImages.splice(index, 1, item);
                if (!$scope.$$phase)$scope.$digest();
            };

            // this method will be called when you change the order of items
{'fraction_non_alphanumeric': 0.12176628010704728, 'fraction_numerical': 0.0008920606601248885, 'mean_word_length': 1.7515337423312884, 'pattern_counts': {'":': 14, '<': 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': '6267554', 'n_tokens_mistral': 1122, 'n_tokens_neox': 1043, 'n_words': 253}