<commit_before>Monitor = function(canvas) {
  this.canvas = canvas;
  this.context = canvas.getContext('2d');

  return this;
}
Monitor.prototype.render = function() {
  var x = CONSOLE_MARGIN;
  var y = CONSOLE_MARGIN;
  var w = this.canvas.width - (2 * CONSOLE_MARGIN);
  var h = (w * 4) / 3;

  this.context.fillStyle = KEY_COLOR;
  this.context.fillRect(x, y, w, h);
  this.context.clearRect(x + CONSOLE_PADDING, y + CONSOLE_PADDING, w - (2 * CONSOLE_PADDING), h - (2 * CONSOLE_PADDING));

  // this.context.beginPath();
  // this.context.moveTo(CONSOLE_MARGIN, CONSOLE_MARGIN);
  // this.context.lineTo();
  // this.context.closePath();
  // this.context.fill();
};<commit_msg>Render monitor borders<commit_after>Monitor = function(canvas) {
  this.canvas = canvas;
  this.context = canvas.getContext('2d');

  return this;
}
Monitor.prototype.render = function() {
  var x = (this.canvas.width / 2) - (MONITOR_WIDTH / 2);
  var y = MONITOR_TOP;
  var w = MONITOR_WIDTH;
  var h = MONITOR_HEIGHT;

  this.context.fillStyle = MONITOR_COLOR;
  this.context.fillRect(x, y, w, h);

  this.context.fillStyle = MONITOR_MEDIUM_COLOR;
  this.context.beginPath();
  this.context.moveTo(x, y);
  this.context.lineTo(x + w, y);
  this.context.lineTo(x + w - (2 * MONITOR_MARGIN), y + (2 * MONITOR_MARGIN));
  this.context.lineTo(x + (2 * MONITOR_MARGIN), y + h - (2 * MONITOR_MARGIN));
  this.context.lineTo(x, y + h);
  this.context.closePath();
  this.context.fill();

  this.context.fillStyle = MONITOR_DARK_COLOR;
  this.context.beginPath();
  this.context.moveTo(x, y);
  this.context.lineTo(x + w, y);
  this.context.lineTo(x + w - (2 * MONITOR_MARGIN), y + (2 * MONITOR_MARGIN));
  this.context.lineTo(x + (2 * MONITOR_MARGIN), y + (2 * MONITOR_MARGIN));
  // this.context.lineTo(x, y);
  this.context.closePath();
  this.context.fill();

  this.context.clearRect(x + MONITOR_MARGIN, y + MONITOR_MARGIN, w - (2 * MONITOR_MARGIN), h - (2 * MONITOR_MARGIN));
};
{'fraction_non_alphanumeric': 0.16581632653061223, 'fraction_numerical': 0.009693877551020408, 'mean_word_length': 3.8181818181818183, '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': '6106146', 'n_tokens_mistral': 800, 'n_tokens_neox': 773, 'n_words': 143}