<commit_before>app.controller('MainController', [
        '$scope', 'books', function($scope, books) {
            $scope.formData = {};
            $scope.loading = true;
            $scope.title = 'Books to share';

            // GET =====================================================================
            // when landing on the page, get all books and show them
            // use the service to get all the books
            books.get().success(function(data) {
                $scope.products = data;
                for (var i = 0; i < $scope.products.length; i++) {
                    if ($scope.products[i].reserved == 0)
                        $scope.products[i].reserve = "reserve"
                    else
                        $scope.products[i].reserve = "release"
                }

                $scope.loading = false;
            });

            $scope.add = true
            $scope.toggleAdd = function() {
                $scope.add = $scope.add === false ? true : false;
            };

            // CREATE ==================================================================<commit_msg>remove dead code<commit_after>app.controller('MainController', [
        '$scope', 'books', function($scope, books) {
            $scope.formData = {};
            $scope.loading = true;
            $scope.title = 'Books to share';

            // GET =====================================================================
            // when landing on the page, get all books and show them
            // use the service to get all the books
            books.get().success(function(data) {
                $scope.products = data;
                $scope.loading = false;
            });

            $scope.add = true
            $scope.toggleAdd = function() {
                $scope.add = $scope.add === false ? true : false;
            };

            // CREATE ==================================================================
{'fraction_non_alphanumeric': 0.24616956077630234, 'fraction_numerical': 0.0010214504596527069, 'mean_word_length': 1.6472972972972972, 'pattern_counts': {'":': 0, '<': 4, '<?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': '4027932', 'n_tokens_mistral': 465, 'n_tokens_neox': 422, 'n_words': 111}