<commit_before>var editor = ace.edit('game-rb-editor');
editor.setTheme('ace/theme/monokai');
editor.getSession().setFoldStyle('manual');
editor.getSession().setMode("ace/mode/ruby");
editor.getSession().setTabSize(2);
editor.getSession().setUseSoftTabs(true);
editor.getSession().setUseWrapMode(true);
editor.setDisplayIndentGuides(false);
editor.setHighlightActiveLine(true);
editor.setShowPrintMargin(false);
editor.setShowInvisibles(true);

var toggleConnectionStatus = function(className, message) {
    var messageBanner = document.getElementById('message-banner');
    messageBanner.children[0].className = className;
    messageBanner.children[0].innerHTML = message;
};

var flashBannerMessage = function(className, message) {
    var messageBanner = document.getElementById('message-banner'),
        messageClass = messageBanner.children[0].className,
        messageText = messageBanner.children[0].innerHTML;

    messageBanner.children[0].className = className;
    messageBanner.children[0].innerHTML = message;

    window.setTimeout(function() {
        messageBanner.children[0].className = messageClass;
        messageBanner.children[0].innerHTML = messageText;
    }, 1500);
};

var addToTerminal = function(value, type) {
    var classes = 'outputs outputs-' + type;
    value = value.replace(/&/g, '&amp;')
                 .replace(/>/g, '&gt;')
                 .replace(/</g, '&lt;')
                 .replace(/"/g, '&quot;')
                 .replace(/'/g, '&apos;')
                 .replace(/\n/g, '<br>');
    terminalOutputs.innerHTML += '<p class="' + classes + '">' + value + '</p>';
    terminalInput.scrollIntoView();
};

var handleterminalInput = function(event) {
    var key = event.which || event.keyCode;
    if (key == 13) {
        event.preventDefault();
        socket.emit('terminalInput', { input: terminalInput.value });
        addToTerminal(terminalInput.value, 'input');
        terminalInput.value = '';
    }<commit_msg>Hide output that reports running function<commit_after>var editor = ace.edit('game-rb-editor');
editor.setTheme('ace/theme/monokai');
editor.getSession().setFoldStyle('manual');
editor.getSession().setMode("ace/mode/ruby");
editor.getSession().setTabSize(2);
editor.getSession().setUseSoftTabs(true);
editor.getSession().setUseWrapMode(true);
editor.setDisplayIndentGuides(false);
editor.setHighlightActiveLine(true);
editor.setShowPrintMargin(false);
editor.setShowInvisibles(true);

var toggleConnectionStatus = function(className, message) {
    var messageBanner = document.getElementById('message-banner');
    messageBanner.children[0].className = className;
    messageBanner.children[0].innerHTML = message;
};

var flashBannerMessage = function(className, message) {
    var messageBanner = document.getElementById('message-banner'),
        messageClass = messageBanner.children[0].className,
        messageText = messageBanner.children[0].innerHTML;

    messageBanner.children[0].className = className;
    messageBanner.children[0].innerHTML = message;

    window.setTimeout(function() {
        messageBanner.children[0].className = messageClass;
        messageBanner.children[0].innerHTML = messageText;
    }, 1500);
};

var addToTerminal = function(value, type) {
    if (type === 'output' && value.indexOf('()') > -1) return;
    var classes = 'outputs outputs-' + type;
    value = value.replace(/&/g, '&amp;')
                 .replace(/>/g, '&gt;')
                 .replace(/</g, '&lt;')
                 .replace(/"/g, '&quot;')
                 .replace(/'/g, '&apos;')
                 .replace(/\n/g, '<br>');
    terminalOutputs.innerHTML += '<p class="' + classes + '">' + value + '</p>';
    terminalInput.scrollIntoView();
};

var handleterminalInput = function(event) {
    var key = event.which || event.keyCode;
    if (key == 13) {
        event.preventDefault();
        socket.emit('terminalInput', { input: terminalInput.value });
        addToTerminal(terminalInput.value, 'input');
        terminalInput.value = '';
    }
{'fraction_non_alphanumeric': 0.1603469640644362, 'fraction_numerical': 0.0076827757125154895, 'mean_word_length': 3.6875725900116145, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '4907262', 'n_tokens_mistral': 1206, 'n_tokens_neox': 1176, 'n_words': 193}