<commit_before>(function(){
    "use strict";
    angular.module('dashboard')
        .controller('scheduleCtrl', ['$scope', '$modalInstance', 'items','$filter','genericServices','toastr',function($scope, $modalInstance, items,$filter,genericServices,toastr) {
            var sch=this;
            sch.instanceIds=items;
            $scope.openCalendarStart = function(e, picker) {
                $scope.openedStart = true;
            };
            $scope.openCalendarEnd = function(e, picker) {
                $scope.openedEnd = true;
            };
            sch.schedulerStartOn=new Date();
            sch.schedulerEndOn=new Date();
            sch.instanceStartScheduler={
                repeats:'Day',
                repeatEvery:'1'
            };
            sch.instanceStopScheduler={
                repeats:'Day',
                repeatEvery:'1'
            };
            sch.cancel = function() {
                $modalInstance.dismiss('cancel');
            };
            sch.ok=function(){
                var params={
                    url:'/instances/schedule',
                    data:sch
                }
                genericServices.promisePost(params).then(function(){
                    toastr.success('successfully created');
                });
            };
        }]);
})();<commit_msg>Changed the schedule save function<commit_after>(function(){
    "use strict";
    angular.module('dashboard')
        .controller('scheduleCtrl', ['$scope', '$modalInstance', 'items','$filter','genericServices','toastr',function($scope, $modalInstance, items,$filter,genericServices,toastr) {
            var sch=this;
            sch.instanceIds=items;
            $scope.openCalendarStart = function(e, picker) {
                $scope.openedStart = true;
            };
            $scope.openCalendarEnd = function(e, picker) {
                $scope.openedEnd = true;
            };
            sch.schedulerStartOn=new Date();
            sch.schedulerEndOn=new Date();
            sch.instanceStartScheduler={
                repeats:'Day',
                repeatEvery:'1'
            };
            sch.instanceStopScheduler={
                repeats:'Day',
                repeatEvery:'1'
            };
            sch.cancel = function() {
                $modalInstance.dismiss('cancel');
            };
            sch.ok=function(){
                var params={
                    url:'/instances/schedule',
                    data:sch
                }
                genericServices.promisePost(params).then(function(){
                    toastr.success('successfully created');
                    $modalInstance.dismiss('cancel');
                });
            };
        }]);
})();
{'fraction_non_alphanumeric': 0.1303395399780942, 'fraction_numerical': 0.0014603870025556773, 'mean_word_length': 1.5068618481244282, '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': '4743179', 'n_tokens_mistral': 681, 'n_tokens_neox': 656, 'n_words': 93}