<commit_before>define(function(require) {
    
    return ["$timeout", "$rootScope", "api", function($timeout, $rootScope, api) {

        return {
            scope: {
                state: "=",
                questionDoc: "=",
            },

            restrict: "A",
            templateUrl: "/partials/graph_sketcher/graph_input.html",
            link: function(scope, element, attrs) {
                scope.isTherePreviousAnswer = function() {
                    return (scope.state.curves != undefined && scope.state.freeSymbols != undefined );
                }

                scope.edit = function() {
                    $rootScope.showGraphSketcher(scope.state, scope.questionDoc, scope.editorMode).then(function(finalState) {
                        console.debug("json: ", JSON.stringify(finalState));<commit_msg>remove console.debug<commit_after>define(function(require) {
    
    return ["$timeout", "$rootScope", "api", function($timeout, $rootScope, api) {

        return {
            scope: {
                state: "=",
                questionDoc: "=",
            },

            restrict: "A",
            templateUrl: "/partials/graph_sketcher/graph_input.html",
            link: function(scope, element, attrs) {
                scope.isTherePreviousAnswer = function() {
                    return (scope.state.curves != undefined && scope.state.freeSymbols != undefined );
                }

                scope.edit = function() {
                    $rootScope.showGraphSketcher(scope.state, scope.questionDoc, scope.editorMode).then(function(finalState) {
                        // console.debug("json: ", JSON.stringify(finalState));
{'fraction_non_alphanumeric': 0.13051251489868892, 'fraction_numerical': 0.0, 'mean_word_length': 1.8361486486486487, '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': '4733805', 'n_tokens_mistral': 443, 'n_tokens_neox': 422, 'n_words': 68}