<commit_before>function Codebytes() {
  var inputMirror;
  var outputMirror;

  this.submitCode = function() {
    $('#disassemble_button').attr('disabled', 'disabled');
    outputMirror.setValue("Running...");

    var rawText = inputMirror.getValue();
    var version = $('#javaVersion').val();
    if (!rawText || !version) return;
    $.ajax({
      type: 'POST',
      url: '/',
      data: JSON.stringify({
        "code": rawText,
        "version": version
      }),
      dataType: 'text',
      contentType: 'application/json; charset=utf-8'
    })
    .always(function(xhr, status) {
      $('#disassemble_button').removeAttr('disabled');
    })
    .done(function(code) {
      code = code.replace(/<br>/g, "\n");
      outputMirror.setValue(code);
    })
    .fail(function(xhr, status, errorThrown) {
      debugger;
      console.error('Error compiling');
    });
  };
 
  this.onReady= function() {
    inputMirror = CodeMirror.fromTextArea($("#inputTextArea").get(0), {
      lineNumbers: true,
      matchBrackets: true,
      tabSize: 2,
      mode: "text/x-java"<commit_msg>removed debug statement<commit_after>function Codebytes() {
  var inputMirror;
  var outputMirror;

  this.submitCode = function() {
    $('#disassemble_button').attr('disabled', 'disabled');
    outputMirror.setValue("Running...");

    var rawText = inputMirror.getValue();
    var version = $('#javaVersion').val();
    if (!rawText || !version) return;
    $.ajax({
      type: 'POST',
      url: '/',
      data: JSON.stringify({
        "code": rawText,
        "version": version
      }),
      dataType: 'text',
      contentType: 'application/json; charset=utf-8'
    })
    .always(function(xhr, status) {
      $('#disassemble_button').removeAttr('disabled');
    })
    .done(function(code) {
      code = code.replace(/<br>/g, "\n");
      outputMirror.setValue(code);
    })
    .fail(function(xhr, status, errorThrown) {
      console.error('Error');
    });
  };
 
  this.onReady= function() {
    inputMirror = CodeMirror.fromTextArea($("#inputTextArea").get(0), {
      lineNumbers: true,
      matchBrackets: true,
      tabSize: 2,
      mode: "text/x-java"
{'fraction_non_alphanumeric': 0.17725598526703498, 'fraction_numerical': 0.0027624309392265192, 'mean_word_length': 2.8460176991150443, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 5, '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': '1849342', 'n_tokens_mistral': 698, 'n_tokens_neox': 675, 'n_words': 123}