<commit_before>// Generated by CoffeeScript 1.3.3
(function() {

  $(function() {
    var backend, execute_code;
    execute_code = function() {
      $("#output").val("");
      $("#time").html("");
      $("#run_status").html("running...");
      return backend.execute($("#input").val(), function(mesg) {
        var o;
        o = $("#output");
        o.val(o.val() + mesg.output.stdout);
        if (mesg.output.stderr) {
          o.val(o.val() + "\n!!!!!!!!!!!!!!\n" + mesg.output.stderr + "\n!!!!!!!!!!!!!\n");
        }
        return $("#run_status").html((mesg.output.done ? "" : "running..."));
      });
    };
    $("#execute").click(function(e) {
      return execute_code();
    });
    $("body").keydown(function(e) {
      if (e.which === 13 && e.shiftKey) {
        execute_code();
        return false;
      }
    });
    $("#execute").button();
    $("#google").button().click(function() {
      return window.location = "/tornado/auth/google";
    });
    $("#facebook").button().click(function() {
      return window.location = "/tornado/auth/facebook";
    });
    $("#sign_out").button().click(function() {
      $("#username").hide();
      $("#sign_out").hide();
      return $("#sign_in").show();
    });
    backend = salvus.Backend({
      on_login: function(name) {
        $("#username").show().html(name);
        $("#sign_in").hide();
        return $("#sign_out").show();
      },
      onopen: function(protocol) {
        return $("#connection_status").html("connected (" + protocol + ")");
      },
      onclose: function() {
        return $("#connection_status").html("reconnecting...");
      }
    });
    $("#connection_status").html("connecting...");
    $("#sign_in").show();
    $("#sign_out").hide();
    return $("#username").hide();
  });

}).call(this);
<commit_msg>committing index.js (autogenerated); but soon should remove this from repo...<commit_after>// Generated by CoffeeScript 1.3.3
(function() {

  $(function() {
    var execute_code, salvus;
    execute_code = function() {
      $("#output").val("");
      $("#time").html("");
      $("#run_status").html("running...");
      return salvus.execute($("#input").val(), function(mesg) {
        var o;
        o = $("#output");
        o.val(o.val() + mesg.output.stdout);
        if (mesg.output.stderr) {
          o.val(o.val() + "\n!!!!!!!!!!!!!!\n" + mesg.output.stderr + "\n!!!!!!!!!!!!!\n");
        }
        return $("#run_status").html((mesg.output.done ? "" : "running..."));
      });
    };
    $("#execute").click(function(e) {
      return execute_code();
    });
    $("body").keydown(function(e) {
      if (e.which === 13 && e.shiftKey) {
        execute_code();
        return false;
      }
    });
    $("#execute").button();
    $("#google").button().click(function() {
      return window.location = "/tornado/auth/google";
    });
    $("#facebook").button().click(function() {
      return window.location = "/tornado/auth/facebook";
    });
    $("#sign_out").button().click(function() {
      $("#username").hide();
      $("#sign_out").hide();
      return $("#sign_in").show();
    });
    salvus = new Salvus({
      on_login: function(name) {
        $("#username").show().html(name);
        $("#sign_in").hide();
        return $("#sign_out").show();
      },
      onopen: function(protocol) {
        return $("#connection_status").html("connected (" + protocol + ")");
      },
      onclose: function() {
        return $("#connection_status").html("reconnecting...");
      }
    });
    salvus.connect();
    $("#connection_status").html("connecting...");
    $("#sign_in").show();
    $("#sign_out").hide();
    return $("#username").hide();
  });

}).call(this);

{'fraction_non_alphanumeric': 0.2565205700457112, 'fraction_numerical': 0.0026888948642108095, 'mean_word_length': 2.5564053537284894, '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': '7622519', 'n_tokens_mistral': 1126, 'n_tokens_neox': 1149, 'n_words': 173}