<commit_before>/*
 * debugger.io: An interactive web scripting sandbox
 *
 * mirrors.js: CodeMirror instances
 */

define([
  'config', 'utils', 'jquery', 'underscore',
  'bus', 'codemirror', 'dom'
],
function(config, utils, $, _, bus, CodeMirror, dom) {
  'use strict';

  var mirrors = utils.module('mirrors');

  var instances = [];
  var last_focused;

  bus.init(function(av) {
    utils.log('init mirrors module');

    _.each(av.$input_panels, function(panel) {
      var $panel = $(panel);
      var $textarea = $panel.children('textarea');
      var mode = $panel.children('.mode').val();

      var cm = CodeMirror.fromTextArea($textarea[0], {
        lineNumbers: true,
        lineWrapping: true,
        mode: mode
      });

      var mirror = {<commit_msg>Set CodeMirror tabSize to 2<commit_after>/*
 * debugger.io: An interactive web scripting sandbox
 *
 * mirrors.js: CodeMirror instances
 */

define([
  'config', 'utils', 'jquery', 'underscore',
  'bus', 'codemirror', 'dom'
],
function(config, utils, $, _, bus, CodeMirror, dom) {
  'use strict';

  var mirrors = utils.module('mirrors');

  var instances = [];
  var last_focused;

  bus.init(function(av) {
    utils.log('init mirrors module');

    _.each(av.$input_panels, function(panel) {
      var $panel = $(panel);
      var $textarea = $panel.children('textarea');
      var mode = $panel.children('.mode').val();

      var cm = CodeMirror.fromTextArea($textarea[0], {
        lineNumbers: true,
        lineWrapping: true,
        mode: mode,
        tabSize: 2
      });

      var mirror = {
{'fraction_non_alphanumeric': 0.16243654822335024, 'fraction_numerical': 0.0025380710659898475, 'mean_word_length': 3.0961038961038962, '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': '628807', 'n_tokens_mistral': 531, 'n_tokens_neox': 497, 'n_words': 122}