<commit_before>techApp.controller("EditPropertiesController" , ["$scope", "$http", "$mdDialog", function($scope, $http, $mdDialog){
    $scope.got_properties = false
    $http.get("/tech/rest/categories").then(function(result){
        $scope.categories = result.data["children"]
        $scope.selected_category = result.data["name"]
        console.log($scope.categories)

    }, function(error){})
    $scope.get_properties_for_categories = function(cat) {
        $scope.selected_category = cat.name;
        $http.get("/tech/rest/cat.id/properties").then(function(result){
            $scope.properties = result.data
            $scope.got_properties = true
        }, function(error){});
    }
}]);<commit_msg>WIP: edit mode<commit_after>techApp.controller("EditPropertiesController" , ["$scope", "$http", "$mdDialog", function($scope, $http, $mdDialog){
    $scope.got_properties = false;
    $scope.edit_mode = true;
    $http.get("/tech/rest/categories").then(function(result){
        $scope.categories = result.data["children"]
        $scope.selected_category = result.data["name"]
        console.log($scope.categories)

    }, function(error){})
    $scope.get_properties_for_categories = function(cat) {
        $scope.selected_category = cat.name;
        $http.get("/tech/rest/cat.id/properties").then(function(result){
            $scope.properties = result.data;
            $scope.got_properties = true;
        }, function(error){});
    }
    $scope.edit_properties = function() {
        $scope.edit_mode = true;
    }
    
}]);
{'fraction_non_alphanumeric': 0.16827852998065765, 'fraction_numerical': 0.0, 'mean_word_length': 3.359550561797753, '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': '1882775', 'n_tokens_mistral': 455, 'n_tokens_neox': 452, 'n_words': 60}