<commit_before>var d3 = require("../external/d3.min.v4.js"),
    utils = require("./utils.js"),
    json_config = require("../config.js");

function GC(query_interface_selection, reactor) {

    var thisGraph = this;

    // -- Config
    thisGraph.idct = 0;
    thisGraph.aspect = [0, 0, 1600, 600];
    thisGraph.selectedSvgID = -1;
    thisGraph.reactor = reactor;
    thisGraph.reactor.addEventListener('constraint_added', this.updateGraph.bind(this));
    thisGraph.reactor.addEventListener('outcome_added', this.getGraph.bind(this));
    thisGraph.config = json_config.QUERY_SYSTEM;

    // -- Model
    thisGraph.graph = {};
    thisGraph.graph.nodes = [];
    thisGraph.graph.edges = [];
    thisGraph.graph.future_nodes = 0;
    thisGraph.graph.prediction_attr = "None";
    thisGraph.graph.id_attr = "None";
    thisGraph.graph.outcome_key_op_value = []
    thisGraph.graph.outcome_display_value = []


    // -- View
    // svg<commit_msg>Cleans code in the main.js file;<commit_after>var d3 = require("../external/d3.min.v4.js"),
    utils = require("./utils.js"),
    json_config = require("../config.js");

function GC(query_interface_selection, reactor) {

    var thisGraph = this;

    // -- Config
    thisGraph.idct = 0;
    thisGraph.aspect = [0, 0, 1600, 600];
    thisGraph.selectedSvgID = -1;
    thisGraph.reactor = reactor;
    thisGraph.reactor.addEventListener('constraint_added', this.updateGraph.bind(this));
    thisGraph.reactor.addEventListener('outcome_added', this.getGraph.bind(this));
    thisGraph.config = json_config.QUERY_SYSTEM;

    // -- Model
    thisGraph.graph = {};
    thisGraph.graph.nodes = [];
    thisGraph.graph.edges = [];
    thisGraph.graph.future_nodes = 0;
    thisGraph.graph.prediction_attr = "None";
    thisGraph.graph.id_attr = "None";
    thisGraph.graph.outcome_key_op_value = [];
    thisGraph.graph.outcome_display_value = [];


    // -- View
    // svg
{'fraction_non_alphanumeric': 0.15200416449765747, 'fraction_numerical': 0.015616866215512754, 'mean_word_length': 3.187363834422658, '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': '6880667', 'n_tokens_mistral': 660, 'n_tokens_neox': 624, 'n_words': 94}