<commit_before>'use strict';

angular.module('hopsWorksApp')
        .controller('ZeppelinCtrl', ['$scope', '$routeParams',
          'growl', 'ModalService', 'ZeppelinService',
          function ($scope, $routeParams, growl, ModalService, ZeppelinService) {

            var self = this;
            self.interpretersRefreshing = false;
            self.notesRefreshing = false;
            self.interpreters = [];
            self.tutorialNotes = [];
            self.notes = [];
            self.transition = false;
            $scope.tgState = true;
            var projectId = $routeParams.projectID;
            var statusMsgs = ['stopped    ', "running    ", 'stopping...', 'restarting...'];

            self.deselect = function () {
              self.selected = null;
              refresh();
              getNotesInProject();
            };

            var getInterpreterStatus = function () {
              self.interpreters = [];
              ZeppelinService.interpreters().then(function (success) {
                for (var k in success.data.body) {
                  self.interpreters.push({interpreter: success.data.body[k], statusMsg: statusMsgs[(success.data.body[k].notRunning ? 0 : 1)]});
                }
              }, function (error) {
                console.log('getInterpreterStatus-->',error);
              });
            };

            var getNotesInProject = function () {
              self.notesRefreshing = true;
              ZeppelinService.notebooks().then(function (success) {
                self.notes = success.data.body;
                self.notesRefreshing = false;
              }, function (error) {
                self.notesRefreshing = false;
                console.log('getNotesInProject-->',error);
              });
            };

            self.display = function (group) {
              if (group.indexOf("spark") > -1)
                return true;
              if (group.indexOf("flink") > -1)
                return true;
              if (group.indexOf("sh") > -1)
                return true;
              if (group.indexOf("angular") > -1)
                return true;

              return false;
            };

            var refresh = function () {
              self.interpretersRefreshing = true;
              ZeppelinService.interpreters().then(function (success) {
                for (var i in self.interpreters) {<commit_msg>Show the livy interpreter<commit_after>'use strict';

angular.module('hopsWorksApp')
        .controller('ZeppelinCtrl', ['$scope', '$routeParams',
          'growl', 'ModalService', 'ZeppelinService',
          function ($scope, $routeParams, growl, ModalService, ZeppelinService) {

            var self = this;
            self.interpretersRefreshing = false;
            self.notesRefreshing = false;
            self.interpreters = [];
            self.tutorialNotes = [];
            self.notes = [];
            self.transition = false;
            $scope.tgState = true;
            var projectId = $routeParams.projectID;
            var statusMsgs = ['stopped    ', "running    ", 'stopping...', 'restarting...'];

            self.deselect = function () {
              self.selected = null;
              refresh();
              getNotesInProject();
            };

            var getInterpreterStatus = function () {
              self.interpreters = [];
              ZeppelinService.interpreters().then(function (success) {
                for (var k in success.data.body) {
                  self.interpreters.push({interpreter: success.data.body[k], statusMsg: statusMsgs[(success.data.body[k].notRunning ? 0 : 1)]});
                }
              }, function (error) {
                console.log('getInterpreterStatus-->',error);
              });
            };

            var getNotesInProject = function () {
              self.notesRefreshing = true;
              ZeppelinService.notebooks().then(function (success) {
                self.notes = success.data.body;
                self.notesRefreshing = false;
              }, function (error) {
                self.notesRefreshing = false;
                console.log('getNotesInProject-->',error);
              });
            };

            self.display = function (group) {
              if (group.indexOf("spark") > -1)
                return true;
              if (group.indexOf("flink") > -1)
                return true;
              if (group.indexOf("sh") > -1)
                return true;
              if (group.indexOf("angular") > -1)
                return true;
              if (group.indexOf("livy") > -1) 
                return true;
              return false;
            };

            var refresh = function () {
              self.interpretersRefreshing = true;
              ZeppelinService.interpreters().then(function (success) {
                for (var i in self.interpreters) {
{'fraction_non_alphanumeric': 0.12227430201752598, 'fraction_numerical': 0.002649276543713063, 'mean_word_length': 1.488843813387424, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, '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': '7309539', 'n_tokens_mistral': 1295, 'n_tokens_neox': 1234, 'n_words': 242}