<commit_before>define(['jquery', 'ladda', 'spin', 'humane', 'tagsinput', 'hammer'], function($, Ladda, humane) {
  console.log('Loading upload.');

  $('#browse').click(function() {
    console.log('clickidy click');
    $('input[id=userFile]').click();
  });

  var hammertime = $("#browse").hammer();


  hammertime.on('touch', function(ev) {
    console.log('tappidy tap');
    $('input[id=userFile]').click();  });

  $('#browse').click(function() {
    console.log('click');
    $('input[id=userFile]').click();
  });

  $('input[id=userFile]').change(function() {
    var path = $(this).val();
    var fileName = path.split('\\') || path.split('/');
    if (fileName.length > 0) {
      $('#uploadField').val(fileName.slice(-1)[0]);
    } else {
      $('#uploadField').val(path);
    }
  });

  var uploadDevice = 'PC';
<commit_msg>removed redundant click event handler for upload button<commit_after>define(['jquery', 'ladda', 'spin', 'humane', 'tagsinput', 'hammer'], function($, Ladda, humane) {
  console.log('Loading upload.');

  var hammertime = $("#browse").hammer();

  hammertime.on('touch', function(ev) {
    console.log('tappidy tap');
    $('input[id=userFile]').click();
  });

  $('#browse').click(function() {
    console.log('click');
    $('input[id=userFile]').click();
  });

  $('input[id=userFile]').change(function() {
    var path = $(this).val();
    var fileName = path.split('\\') || path.split('/');
    if (fileName.length > 0) {
      $('#uploadField').val(fileName.slice(-1)[0]);
    } else {
      $('#uploadField').val(path);
    }
  });

  var uploadDevice = 'PC';

{'fraction_non_alphanumeric': 0.253889234598631, 'fraction_numerical': 0.00373366521468575, 'mean_word_length': 3.932515337423313, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7107472', 'n_tokens_mistral': 556, 'n_tokens_neox': 550, 'n_words': 89}