<commit_before>
/*
 * When an entity (such as store or category) is added or deleted, the corresponding
 * controller tries to update the view by fetching the collection again. How ever,
 * this fetch (GET) operation is returning old collection when dev_appserver is used.
 * How ever, the update is working fine on GAE. 
*/

app.controller('NavbarController', function ($scope, $location) {
    $scope.getClass = function (path) {
        if ($location.path().substr(0, path.length) == path) {
            return true
        } else {
            return false;
        }
    }
});

app.controller('StoreController', function ($scope, $rootScope, $resource, $log, jsonFilter, $location) {
    var Store = $resource('/api/stores/:storeId');

    $scope.listStores = function() {
        stores_resp = Store.get(function() {
            $scope.stores = stores_resp.stores;
        })<commit_msg>Remove the comment that doesn't apply any more.<commit_after>
app.controller('NavbarController', function ($scope, $location) {
    $scope.getClass = function (path) {
        if ($location.path().substr(0, path.length) == path) {
            return true
        } else {
            return false;
        }
    }
});

app.controller('StoreController', function ($scope, $rootScope, $resource, $log, jsonFilter, $location) {
    var Store = $resource('/api/stores/:storeId');

    $scope.listStores = function() {
        stores_resp = Store.get(function() {
            $scope.stores = stores_resp.stores;
        })
{'fraction_non_alphanumeric': 0.13245033112582782, 'fraction_numerical': 0.0013245033112582781, 'mean_word_length': 2.8743589743589744, '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': '2124555', 'n_tokens_mistral': 427, 'n_tokens_neox': 427, 'n_words': 123}