<commit_before>var ygorMinionControllers = angular.module('ygorMinionControllers', []);

ygorMinionControllers.controller("ChannelListController", ["$scope", "$http",
    function($scope, $http) {
        $http.get('/channel/list').success(function(data) {
            $scope.channels = data.Channels;
        });
    }
]);

ygorMinionControllers.controller("AliasListController", ["$scope", "$http",
    function($scope, $http) {
        $http.get('/alias/list').success(function(data) {
            $scope.aliases = data.Aliases;
        });
        $scope.orderProp = "Name";
    }
]);

ygorMinionControllers.controller("ChannelController", [
    "$scope", "$http", "$routeParams",
    function($scope, $http, $routeParams) {
        $(window).on("message", function(e) {
            $scope.handleChildMessage(e.originalEvent);
        });
        $scope.channelID = $routeParams.channelID;
        $scope.clientID = null;
        $scope.imageTrack = $("#ygor-content #imageTrack");
        $scope.playTrack = $("#ygor-content #playTrack");
        $scope.playTrack.playing = false;
        $scope.playTrack.playlist = [];
        $scope.content = $("#ygor-content");
        $scope.playTrack.css("visibility", "hidden");
        $scope.popUpContainer = $("#pop-up-container");
        var increment = 5;
        // set global volume variables for easy access by embedded iframes
        window.volume = 100;

        // imageTrack functions
        $scope.imageTrack.post = function(message) {
            $scope.imageTrack[0].contentWindow.postMessage(JSON.stringify(message), "*");
        }

        $scope.imageTrack.shutup = function() {
            $scope.imageTrack[0].contentWindow.shutup();
        }

        $scope.imageTrack.skip = function() {
            $scope.imageTrack[0].contentWindow.skip();
        }

        $scope.imageTrack.stop = function() {
            $scope.imageTrack.shutup();
        }

        // playTrack functions
        $scope.playTrack.hide = function() {
            $scope.playTrack.css("visibility", "hidden");
        }

        $scope.playTrack.show = function() {
            $scope.playTrack.css("visibility", "visible");
        }

        $scope.playTrack.post = function(message) {
            $scope.playTrack[0].contentWindow.postMessage(JSON.stringify(message), "*");
        }

        $scope.playTrack.setVolume = function(level) {
            $scope.playTrack[0].contentWindow.setVolume(level);
        }

        $scope.playTrack.setTrackVolume = function(level) {
            window.qvolume = level;
            $scope.playTrack[0].contentWindow.setTrackVolume(level * 0.01);
        }

        $scope.playTrack.shutup = function() {
            $scope.playTrack.stop();
        }

        $scope.playTrack.skip = function() {
            $scope.playTrack[0].contentWindow.skip();
        }

        $scope.playTrack.stop = function() {<commit_msg>should now skip properlly<commit_after>var ygorMinionControllers = angular.module('ygorMinionControllers', []);

ygorMinionControllers.controller("ChannelListController", ["$scope", "$http",
    function($scope, $http) {
        $http.get('/channel/list').success(function(data) {
            $scope.channels = data.Channels;
        });
    }
]);

ygorMinionControllers.controller("AliasListController", ["$scope", "$http",
    function($scope, $http) {
        $http.get('/alias/list').success(function(data) {
            $scope.aliases = data.Aliases;
        });
        $scope.orderProp = "Name";
    }
]);

ygorMinionControllers.controller("ChannelController", [
    "$scope", "$http", "$routeParams",
    function($scope, $http, $routeParams) {
        $(window).on("message", function(e) {
            $scope.handleChildMessage(e.originalEvent);
        });
        $scope.channelID = $routeParams.channelID;
        $scope.clientID = null;
        $scope.imageTrack = $("#ygor-content #imageTrack");
        $scope.playTrack = $("#ygor-content #playTrack");
        $scope.playTrack.playing = false;
        $scope.playTrack.playlist = [];
        $scope.content = $("#ygor-content");
        $scope.playTrack.css("visibility", "hidden");
        $scope.popUpContainer = $("#pop-up-container");
        var increment = 5;
        // set global volume variables for easy access by embedded iframes
        window.volume = 100;

        // imageTrack functions
        $scope.imageTrack.post = function(message) {
            $scope.imageTrack[0].contentWindow.postMessage(JSON.stringify(message), "*");
        }

        $scope.imageTrack.shutup = function() {
            $scope.imageTrack[0].contentWindow.shutup();
        }

        $scope.imageTrack.skip = function() {
            $scope.imageTrack[0].contentWindow.shutup();
        }

        $scope.imageTrack.stop = function() {
            $scope.imageTrack.shutup();
        }

        // playTrack functions
        $scope.playTrack.hide = function() {
            $scope.playTrack.css("visibility", "hidden");
        }

        $scope.playTrack.show = function() {
            $scope.playTrack.css("visibility", "visible");
        }

        $scope.playTrack.post = function(message) {
            $scope.playTrack[0].contentWindow.postMessage(JSON.stringify(message), "*");
        }

        $scope.playTrack.setVolume = function(level) {
            $scope.playTrack[0].contentWindow.setVolume(level);
        }

        $scope.playTrack.setTrackVolume = function(level) {
            window.qvolume = level;
            $scope.playTrack[0].contentWindow.setTrackVolume(level * 0.01);
        }

        $scope.playTrack.shutup = function() {
            $scope.playTrack.stop();
        }

        $scope.playTrack.skip = function() {
            $scope.playTrack[0].contentWindow.shutup();
        }

        $scope.playTrack.stop = function() {
{'fraction_non_alphanumeric': 0.15661411925976695, 'fraction_numerical': 0.004797806716929404, 'mean_word_length': 2.413450292397661, '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': '6792550', 'n_tokens_mistral': 1700, 'n_tokens_neox': 1657, 'n_words': 221}