<commit_before>/*
 * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
 * Contact:
 * <NAME> <<EMAIL>>
 * <NAME> <<EMAIL>>
 * <NAME> <<EMAIL>>
 *
 * Licensed under the Apache License, Version 2.0 (the 'License');
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an 'AS IS' BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Contributors:
 * - S-Core Co., Ltd.
 *
 */

/**
 * Terminal plugin module
 * @module webida.terminal.plugin
 * @memberOf module:webida.terminal
 */
define(['webida-lib/util/logger/logger-client',          // Logger
        'external/lodash/lodash.min',  // _
        'webida-lib/app',                   // ide
        'webida-lib/webida-0.3',            // webida
        'webida-lib/widgets/views/view',    // View
        'dojo/query',                       // query
        'external/URIjs/src/URI',              // URI
        'external/socket.io-client/socket.io',    // io
        './lib/socket.io-stream',           // ss
        './lib/terminal',                   // Terminal
        'dojo/text!./layout/terminal.html'],  // terminalHtml
function (Logger,
          _,
          ide,
          webida,
          View,
          query,
          URI,
          io,
          ss,
          Terminal,
          terminalHtml) {
    'use strict';

    var logger = new Logger('webida.terminal.plugin');
    var mod = {};

    function measureText(text, styleObj) {
        var divElem = document.createElement('div');
        var textDim;

        document.body.appendChild(divElem);

        if (!styleObj) {
            _.extend(divElem.style, styleObj);
        }
        divElem.style.position = 'absolute';
        divElem.style.left = -1000;
        divElem.style.top = -1000;

        divElem.innerHTML = text;

        textDim = {
            width: divElem.clientWidth,
            height: divElem.clientHeight
        };

        document.body.removeChild(divElem);
        divElem = null;
<commit_msg>[TASK] logger turn off from terminal plugin<commit_after>/*
 * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
 * Contact:
 * <NAME> <<EMAIL>>
 * <NAME> <<EMAIL>>
 * <NAME> <<EMAIL>>
 *
 * Licensed under the Apache License, Version 2.0 (the 'License');
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an 'AS IS' BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Contributors:
 * - S-Core Co., Ltd.
 *
 */

/**
 * Terminal plugin module
 * @module webida.terminal.plugin
 * @memberOf module:webida.terminal
 */
define(['webida-lib/util/logger/logger-client',          // Logger
        'external/lodash/lodash.min',  // _
        'webida-lib/app',                   // ide
        'webida-lib/webida-0.3',            // webida
        'webida-lib/widgets/views/view',    // View
        'dojo/query',                       // query
        'external/URIjs/src/URI',              // URI
        'external/socket.io-client/socket.io',    // io
        './lib/socket.io-stream',           // ss
        './lib/terminal',                   // Terminal
        'dojo/text!./layout/terminal.html'],  // terminalHtml
function (Logger,
          _,
          ide,
          webida,
          View,
          query,
          URI,
          io,
          ss,
          Terminal,
          terminalHtml) {
    'use strict';

    var logger = new Logger('webida.terminal.plugin');
	//logger.setConfig('level', Logger.LEVELS.log);
	logger.off();
    var mod = {};

    function measureText(text, styleObj) {
        var divElem = document.createElement('div');
        var textDim;

        document.body.appendChild(divElem);

        if (!styleObj) {
            _.extend(divElem.style, styleObj);
        }
        divElem.style.position = 'absolute';
        divElem.style.left = -1000;
        divElem.style.top = -1000;

        divElem.innerHTML = text;

        textDim = {
            width: divElem.clientWidth,
            height: divElem.clientHeight
        };

        document.body.removeChild(divElem);
        divElem = null;

{'fraction_non_alphanumeric': 0.12411050648807032, 'fraction_numerical': 0.007534533277521975, 'mean_word_length': 1.8754512635379061, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4731158', 'n_tokens_mistral': 1389, 'n_tokens_neox': 1325, 'n_words': 361}