<commit_before>function MoleculeViewer(canvas_id, settings) {
  this.init(canvas_id, settings);
}

MoleculeViewer.prototype = {
  molecule: undefined,
  canvas: undefined,
  ctx: undefined,

  selection_area: undefined,
  overlay_showing: false,
  overlay_message: "",
  overlay_status: 1,

  settings: undefined,

  cache: undefined,

  init: function(canvas_id, settings) {
    this.canvas = document.getElementById(canvas_id);
    this.ctx = this.canvas.getContext('2d');
    this.init_context();

    this.settings = $ext.merge($ext.copy(DEFAULT_SETTINGS), settings);

    this.cache = new Cache();
  },

  init_context: function() {
    this.ctx.textAlign = 'center';
    this.ctx.textBaseline = 'middle';
  },

  init_interaction: function() {
    var mv = this;

    $ext.dom.onContextMenu(this.canvas, function(e) {
      e.preventDefault();
      e.stopPropagation();
      return false;
    });

    $ext.dom.onMouseMove(this.canvas, function(e) {
      if(!mv.overlay_showing) {
        var c = $ext.mouse.getCoords(e);
        var a = mv.molecule.atomAt(c.x, c.y);
        if(mv.molecule.setHover(a)) {
          mv.redraw();
        }
      }
    });

    $ext.dom.onMouseClick(this.canvas, function(e) {
      if(!mv.overlay_showing) {
        var c = $ext.mouse.getCoords(e);
        var a = mv.molecule.atomAt(c.x, c.y);
        var s = a ? [a] : [];
        if(e.ctrlKey === true) {
          mv.molecule.atoms.addSelected(s);
          mv.redraw();
        } else if(mv.molecule.setSelected(s)) {
          mv.redraw();
        }
        console.log(e);
      }
    }, 0);<commit_msg>Accidentally left a debug log.<commit_after>function MoleculeViewer(canvas_id, settings) {
  this.init(canvas_id, settings);
}

MoleculeViewer.prototype = {
  molecule: undefined,
  canvas: undefined,
  ctx: undefined,

  selection_area: undefined,
  overlay_showing: false,
  overlay_message: "",
  overlay_status: 1,

  settings: undefined,

  cache: undefined,

  init: function(canvas_id, settings) {
    this.canvas = document.getElementById(canvas_id);
    this.ctx = this.canvas.getContext('2d');
    this.init_context();

    this.settings = $ext.merge($ext.copy(DEFAULT_SETTINGS), settings);

    this.cache = new Cache();
  },

  init_context: function() {
    this.ctx.textAlign = 'center';
    this.ctx.textBaseline = 'middle';
  },

  init_interaction: function() {
    var mv = this;

    $ext.dom.onContextMenu(this.canvas, function(e) {
      e.preventDefault();
      e.stopPropagation();
      return false;
    });

    $ext.dom.onMouseMove(this.canvas, function(e) {
      if(!mv.overlay_showing) {
        var c = $ext.mouse.getCoords(e);
        var a = mv.molecule.atomAt(c.x, c.y);
        if(mv.molecule.setHover(a)) {
          mv.redraw();
        }
      }
    });

    $ext.dom.onMouseClick(this.canvas, function(e) {
      if(!mv.overlay_showing) {
        var c = $ext.mouse.getCoords(e);
        var a = mv.molecule.atomAt(c.x, c.y);
        var s = a ? [a] : [];
        if(e.ctrlKey === true) {
          mv.molecule.atoms.addSelected(s);
          mv.redraw();
        } else if(mv.molecule.setSelected(s)) {
          mv.redraw();
        }
      }
    }, 0);
{'fraction_non_alphanumeric': 0.15358148263997498, 'fraction_numerical': 0.001876759461995621, 'mean_word_length': 2.5612472160356345, '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': '1068009', 'n_tokens_mistral': 1153, 'n_tokens_neox': 1103, 'n_words': 180}