<commit_before>carousel.controller("editMenuController", function($scope, $mdSidenav) {

    $scope.toggleEditMenu = function() {
        $mdSidenav("editMenu").toggle();
        // Reset the frame and the timer when the edit menu is opened
        $scope.$broadcast("stopCarousel");
    };

    $scope.addFrame = function() {
        $scope.frames.push("https://en.wikipedia.org/wiki/Main_Page");
        $scope.totalFrames = $scope.frames.length;
    };

    $scope.removeFrame = function() {
        if ($scope.totalFrames > 1) {
            $scope.frames.pop("https://en.wikipedia.org/wiki/Main_Page");
            $scope.totalFrames = $scope.frames.length;
        }
    };

});<commit_msg>Removed parameter from pop function when removing a frame from the list which isn't needed<commit_after>carousel.controller("editMenuController", function($scope, $mdSidenav) {

    $scope.toggleEditMenu = function() {
        $mdSidenav("editMenu").toggle();
        // Reset the frame and the timer when the edit menu is opened
        $scope.$broadcast("stopCarousel");
    };

    $scope.addFrame = function() {
        $scope.frames.push("https://en.wikipedia.org/wiki/Main_Page");
        $scope.totalFrames = $scope.frames.length;
    };

    $scope.removeFrame = function() {
        if ($scope.totalFrames > 1) {
            $scope.frames.pop();
            $scope.totalFrames = $scope.frames.length;
        }
    };

});
{'fraction_non_alphanumeric': 0.15007012622720897, 'fraction_numerical': 0.001402524544179523, 'mean_word_length': 2.7258485639686683, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 3, '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': '2761053', 'n_tokens_mistral': 428, 'n_tokens_neox': 412, 'n_words': 78}