<commit_before>adminApp.controller('songListController', ['$scope', 'contentService', 'loginVerifyService',
    function ($scope, contentService, loginVerifyService) {
        loginVerifyService.redirectIfNotAuthenticated();
        $scope.songs = [];
        $scope.songToBeDeleted = null;

        $scope.init = function () {
            contentService.getAllSongs().then(function (result) {
                var allSongs = result.data.songs;
                $scope.songs = _.reduce(allSongs, function (songs, value, index) {
                    var toBeAdded = {};
                    toBeAdded.title = value.songTitle.englishTransliteration;
                    toBeAdded.translatedTitle = value.songTitle.englishTranslation;
                    toBeAdded.categoryName = value.songCategory.name;
                    toBeAdded.publish = value.isAuthoringComplete;

                    if (value.publish)
                        toBeAdded.publish = "Yes";

                    else
                        toBeAdded.publish = "No";

                    toBeAdded.singerNames = _.reduce(value.singers, function (memo, value, index) {
                        return (memo + ((index != 0) ? ', ' : '') + value.name);
                    }, '');
                    toBeAdded.poetNames = _.reduce(value.poet, function (memo, value, index) {
                        return (memo + ((index != 0) ? ', ' : '') + value.name);
                    }, '');
                    toBeAdded.id = value.id;
                    songs.push(toBeAdded);
                    return songs;
                }, []);
            });
        };

        $scope.confirmDeletionFor = function (songId) {
            $scope.songToBeDeleted = songId;
        };

        $scope.deletionConfirmedFor = function (songId) {
            return $scope.songToBeDeleted == songId;
        };

        $scope.removeSong = function (confirmed) {
            if (confirmed) {
                console.log($scope.songToBeDeleted + " Song removed");
            }
            else {<commit_msg>Fixing publish yes and no not coming on song's list admin. <Jaideep><commit_after>adminApp.controller('songListController', ['$scope', 'contentService', 'loginVerifyService',
    function ($scope, contentService, loginVerifyService) {
        loginVerifyService.redirectIfNotAuthenticated();
        $scope.songs = [];
        $scope.songToBeDeleted = null;

        $scope.init = function () {
            contentService.getAllSongs().then(function (result) {
                var allSongs = result.data.songs;
                $scope.songs = _.reduce(allSongs, function (songs, value, index) {
                    var toBeAdded = {};
                    toBeAdded.title = value.songTitle.englishTransliteration;
                    toBeAdded.translatedTitle = value.songTitle.englishTranslation;
                    toBeAdded.categoryName = value.songCategory.name;
                    toBeAdded.publish = value.isAuthoringComplete;

                    if (value.isAuthoringComplete)
                        toBeAdded.publish = "Yes";

                    else
                        toBeAdded.publish = "No";

                    toBeAdded.singerNames = _.reduce(value.singers, function (memo, value, index) {
                        return (memo + ((index != 0) ? ', ' : '') + value.name);
                    }, '');
                    toBeAdded.poetNames = _.reduce(value.poet, function (memo, value, index) {
                        return (memo + ((index != 0) ? ', ' : '') + value.name);
                    }, '');
                    toBeAdded.id = value.id;
                    songs.push(toBeAdded);
                    return songs;
                }, []);
            });
        };

        $scope.confirmDeletionFor = function (songId) {
            $scope.songToBeDeleted = songId;
        };

        $scope.deletionConfirmedFor = function (songId) {
            return $scope.songToBeDeleted == songId;
        };

        $scope.removeSong = function (confirmed) {
            if (confirmed) {
                console.log($scope.songToBeDeleted + " Song removed");
            }
            else {
{'fraction_non_alphanumeric': 0.11651882042675617, 'fraction_numerical': 0.0009590026372572524, 'mean_word_length': 1.55793991416309, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2492996', 'n_tokens_mistral': 1137, 'n_tokens_neox': 1032, 'n_words': 189}