<commit_before>'use strict';

wordsAdminApp.directive("adminWordIntroduction", function() {
    return {
        replace : true,
        restrict: 'E',
        scope: {
            wordIntroduction:'@',
            wordIntroductions:'=',
        },
        templateUrl:'/admin/js/templates/adminWordIntroduction.html',
        controller:function($scope){
            $scope.addToWordIntroduction = function(){
                var wordIntroductions = $scope.wordIntroduction.split(/\n{2,}/g);
                for(var i=0;i<wordIntroductions.length;){
                    var wordIntroduction = {};
                    wordIntroduction.introduction_text = wordIntroductions[i];
                    $scope.wordIntroductions[i] = wordIntroduction;
                    i=i+1;
                }
            };
        }
    }
});<commit_msg>Fixing the issues with words. <Jaideep><commit_after>'use strict';

wordsAdminApp.directive("adminWordIntroduction", function() {
    return {
        replace : true,
        restrict: 'E',
        scope: {
            wordIntroduction:'@',
            wordIntroductions:'=',
        },
        templateUrl:'/admin/js/templates/adminWordIntroduction.html',
        controller:function($scope){
            $scope.addToWordIntroduction = function(){
                var wordIntroductions = $scope.wordIntroduction.split(/\n{2,}/g);
                for(var i=0; i < wordIntroductions.length; i++){
                    var wordIntroduction = {};
                    wordIntroduction.introduction_text ="<p>" + wordIntroductions[i].split("\n").join("<br />") +"</p>";
                    $scope.wordIntroductions.push(wordIntroduction)
                }
                $scope.wordIntroduction = "";
            };
        }
    }
});
{'fraction_non_alphanumeric': 0.13363533408833522, 'fraction_numerical': 0.0028312570781426952, 'mean_word_length': 1.8731707317073172, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '2563701', 'n_tokens_mistral': 468, 'n_tokens_neox': 451, 'n_words': 65}