<commit_before>$('#arduinoFirmware-startupload').click(function () {
  fileReader.onload = function (evnt) {
    console.log('Upload event: ' + selectedFile.name);
    self.cockpit.socket.emit('arduinofirmware-upload', {
      'filename': selectedFile.name,
      data: evnt.target.result
    });
  };
  if (!selectedFile) {
    selectedFile = {};
    selectedFile.name = 'fromSource';
    self.cockpit.socket.emit('arduinofirmware-uploadfromsource');
  }
  console.log('Starting upload: ' + selectedFile.name);
  self.cockpit.socket.emit('arduinofirmware-startupload', {
    'filename': selectedFile.name,
    'size': selectedFile.size
  });
  selectedFile = null;
});
$('#arduinoFirmware-closeupload').click(function () {
  self.arduinoFirmwareVM.reset();  //$('#firmware-upload-dialog').modal('hide');
});
$('#arduinoFirmware-showdetails').click(function () {
  self.arduinoFirmwareVM.toggleDetails();
});/*
 * Created for OpenROV:  www.openrov.com
 * Author:  Dominik
 * Date: 06/03/12<commit_msg>Fix breaking code from commit 905305cf<commit_after>/*
 * Created for OpenROV:  www.openrov.com
 * Author:  Dominik
 * Date: 06/03/12
{'fraction_non_alphanumeric': 0.1693121693121693, 'fraction_numerical': 0.015873015873015872, 'mean_word_length': 4.430622009569378, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4124376', 'n_tokens_mistral': 396, 'n_tokens_neox': 383, 'n_words': 54}