<commit_before>// author: <NAME> (<EMAIL>)
// date: 2013-12-25

// The commands listed in the currently-loaded file.
window.commandSequence = [];

// The commands to be sent over to a connected machine for execution.
window.workspaceCommandQueue = [];

// Default settings for the user to configure. This will be updated from perisstence.
window.settings = {
  "workspace-width-mm": 150,
  "workspace-depth-mm": 150,
  "workspace-height-mm": 50,
  "workspace-port": "",
  "workspace-baud": 115200
};

// A flag used for determining if we are waiting for an ok from the workspace.
window.workspacePendingAck = false;
window.workspaceIsRelativeMode = false;
window.workspaceIsMm = false;

// Warnings which should be displayed to the user.
window.userWarnings = {};

// The history of manual commands that the user has entered.
window.manualInputHistory = [];
window.manualInputPosition = 0;

// TODO: make this configurable.
var CONSOLE_MAX_SCROLLBACK = 200;

/**
 * Display a warning to the user. Messages are grouped so
 * they can be cleared when the condition no longer applies.
 *
 * @param {string} group The group the warning belongs to
 * @param {string} msg The message of the warning
 */
function showWarning(group, msg) {
  console.warn(msg);

  if (!window.userWarnings[group]) {
    window.userWarnings[group] = [];
  }
  window.userWarnings[group].push(msg);
  renderUserWarnings();
}

function clearWarningGroup(group) {
  delete window.userWarnings[group];
  renderUserWarnings();
}
<commit_msg>Increase the scrollback buffer<commit_after>// author: <NAME> (<EMAIL>)
// date: 2013-12-25

// The commands listed in the currently-loaded file.
window.commandSequence = [];

// The commands to be sent over to a connected machine for execution.
window.workspaceCommandQueue = [];

// Default settings for the user to configure. This will be updated from perisstence.
window.settings = {
  "workspace-width-mm": 150,
  "workspace-depth-mm": 150,
  "workspace-height-mm": 50,
  "workspace-port": "",
  "workspace-baud": 115200
};

// A flag used for determining if we are waiting for an ok from the workspace.
window.workspacePendingAck = false;
window.workspaceIsRelativeMode = false;
window.workspaceIsMm = false;

// Warnings which should be displayed to the user.
window.userWarnings = {};

// The history of manual commands that the user has entered.
window.manualInputHistory = [];
window.manualInputPosition = 0;

// TODO: make this configurable.
var CONSOLE_MAX_SCROLLBACK = 1000;

/**
 * Display a warning to the user. Messages are grouped so
 * they can be cleared when the condition no longer applies.
 *
 * @param {string} group The group the warning belongs to
 * @param {string} msg The message of the warning
 */
function showWarning(group, msg) {
  console.warn(msg);

  if (!window.userWarnings[group]) {
    window.userWarnings[group] = [];
  }
  window.userWarnings[group].push(msg);
  renderUserWarnings();
}

function clearWarningGroup(group) {
  delete window.userWarnings[group];
  renderUserWarnings();
}

{'fraction_non_alphanumeric': 0.11323238973008558, 'fraction_numerical': 0.017445687952600396, 'mean_word_length': 4.186006825938566, 'pattern_counts': {'":': 10, '<': 7, '<?xml version=': 0, '>': 7, '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': '5139304', 'n_tokens_mistral': 946, 'n_tokens_neox': 899, 'n_words': 305}