<commit_before>(function () {
    "use strict";

    function ContentSortController($scope, $timeout, contentResource) {

        var vm = this;
        var id = $scope.currentNode.id;

        vm.loading = false;
        vm.children = [];
        vm.saveButtonState = "init";
        vm.sortableOptions = {
            distance: 10,
            tolerance: "pointer",
            opacity: 0.7,
            scroll: true,
            cursor: "move",
            helper: fixSortableHelper
        };

        vm.save = save;

        function onInit() {
            vm.loading = true;
            contentResource.getChildren(id)
                .then(function(data){
                    vm.children = data.items;
                    vm.loading = false;
                });
        }

        function save() {
            vm.saveButtonState = "busy";
            
            var args = {
                parentId: parentId,<commit_msg>forgot the parentId was still in use<commit_after>(function () {
    "use strict";

    function ContentSortController($scope, $timeout, contentResource) {

        var vm = this;
        var parentId = $scope.currentNode.parentId;
        var id = $scope.currentNode.id;

        vm.loading = false;
        vm.children = [];
        vm.saveButtonState = "init";
        vm.sortableOptions = {
            distance: 10,
            tolerance: "pointer",
            opacity: 0.7,
            scroll: true,
            cursor: "move",
            helper: fixSortableHelper
        };

        vm.save = save;

        function onInit() {
            vm.loading = true;
            contentResource.getChildren(id)
                .then(function(data){
                    vm.children = data.items;
                    vm.loading = false;
                });
        }

        function save() {
            vm.saveButtonState = "busy";
            
            var args = {
                parentId: parentId,
{'fraction_non_alphanumeric': 0.1035548686244204, 'fraction_numerical': 0.004121586810922205, 'mean_word_length': 1.3036773428232502, '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': '2893934', 'n_tokens_mistral': 518, 'n_tokens_neox': 491, 'n_words': 110}