<commit_before>/*globals define, _*/

define(['logManager', 
        './AutoRouter', 
        './ConnectionRouteManager3.ActionApplier.js', 
        'util/assert', 
        './Profiler'], function (logManager, 
                                 AutoRouter, 
                                 ActionApplier, 
                                 assert, 
                                 Profiler) {

    "use strict";

    var ConnectionRouteManager3,
        DESIGNERITEM_SUBCOMPONENT_SEPARATOR = '_x_',
        ASYNC = false,
        DEBUG = true;

    ConnectionRouteManager3 = function (options) {
        this.logger = (options && options.logger) || logManager.create(((options && options.loggerName) || "ConnectionRouteManager3"));

        this.diagramDesigner = options ? options.diagramDesigner : null;

        if (this.diagramDesigner === undefined || this.diagramDesigner === null) {
            this.logger.error("Trying to initialize a ConnectionRouteManager3 without a canvas...");
            throw ("ConnectionRouteManager3 can not be created");
        }

        this.logger.debug("ConnectionRouteManager3 ctor finished");
        this._portSeparator = DESIGNERITEM_SUBCOMPONENT_SEPARATOR;

        this._recordActions = DEBUG;
        ActionApplier.prototype.init.call(this);
    };

    ConnectionRouteManager3.prototype.initialize = function () {
        this._clearGraph();

        //Adding event listeners
        var self = this;

        this._onComponentUpdate = function(_canvas, ID) {
            if(self.diagramDesigner.itemIds.indexOf(ID) !== -1) {<commit_msg>Changed Autorouter's debugging to use WebGME's DEBUG value<commit_after>/*globals define, _*/

define(['logManager', 
        './AutoRouter', 
        './ConnectionRouteManager3.ActionApplier.js', 
        'util/assert', 
        './Profiler'], function (logManager, 
                                 AutoRouter, 
                                 ActionApplier, 
                                 assert, 
                                 Profiler) {

    "use strict";

    var ConnectionRouteManager3,
        DESIGNERITEM_SUBCOMPONENT_SEPARATOR = '_x_',
        ASYNC = false;

    ConnectionRouteManager3 = function (options) {
        this.logger = (options && options.logger) || logManager.create(((options && options.loggerName) || "ConnectionRouteManager3"));

        this.diagramDesigner = options ? options.diagramDesigner : null;

        if (this.diagramDesigner === undefined || this.diagramDesigner === null) {
            this.logger.error("Trying to initialize a ConnectionRouteManager3 without a canvas...");
            throw ("ConnectionRouteManager3 can not be created");
        }

        this.logger.debug("ConnectionRouteManager3 ctor finished");
        this._portSeparator = DESIGNERITEM_SUBCOMPONENT_SEPARATOR;

        this._recordActions = DEBUG;
        ActionApplier.prototype.init.call(this);
    };

    ConnectionRouteManager3.prototype.initialize = function () {
        this._clearGraph();

        //Adding event listeners
        var self = this;

        this._onComponentUpdate = function(_canvas, ID) {
            if(self.diagramDesigner.itemIds.indexOf(ID) !== -1) {
{'fraction_non_alphanumeric': 0.10641627543035993, 'fraction_numerical': 0.005633802816901409, 'mean_word_length': 2.1612265084075175, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2652721', 'n_tokens_mistral': 835, 'n_tokens_neox': 815, 'n_words': 159}