<commit_before>;(function() {

  var btnSelect = document.querySelector('.btn-select');
  var fileInput = document.querySelector('.input-file');
  var form = document.querySelector('.upload-form');
  var btnSubmit = document.querySelector('.btn-submit');
  var namefield = document.querySelector('#name');
  var items = document.querySelectorAll('.js-item');
  var tips = document.querySelectorAll('.js-copy-link');
  // var move = require('move');


  var shouldSubmit = false;

  form.addEventListener('submit', function onFormSubmit(e) {
    if (!shouldSubmit) e.preventDefault();
  });

  btnSelect.addEventListener('click', function onUploadButtonClick(e) {
    fileInput.click();
  });

  btnSubmit.addEventListener('click', function onSubmit(e) {
    shouldSubmit = true;
  });

  fileInput.addEventListener('change', function onChange(e) {
    btnSubmit.removeAttribute('disabled');
    namefield.focus();
  });

  bind(items, delegate);

  $('.js-item').on('click', '.js-remove', onCrossClick);
  $('.js-item').on('click', '.js-edit-button', onEditClick);<commit_msg>Fix upload button in Chrome Android<commit_after>;(function() {

  var btnSelect = document.querySelector('.btn-select');
  var fileInput = document.querySelector('.input-file');
  var form = document.querySelector('.upload-form');
  var btnSubmit = document.querySelector('.btn-submit');
  var namefield = document.querySelector('#name');
  var items = document.querySelectorAll('.js-item');
  var tips = document.querySelectorAll('.js-copy-link');
  // var move = require('move');


  var shouldSubmit = false;

  form.addEventListener('submit', function onFormSubmit(e) {
    if (!shouldSubmit) e.preventDefault();
  });

  btnSelect.addEventListener('click', function onUploadButtonClick(e) {
    fileInput.click();
  });

  btnSubmit.addEventListener('click', function onSubmit(e) {
    shouldSubmit = true;
  });

  $(fileInput).on('change', function onChange(e) {
    btnSubmit.removeAttribute('disabled');
    namefield.focus();
  });

  bind(items, delegate);

  $('.js-item').on('click', '.js-remove', onCrossClick);
  $('.js-item').on('click', '.js-edit-button', onEditClick);
{'fraction_non_alphanumeric': 0.1779935275080906, 'fraction_numerical': 0.0, 'mean_word_length': 4.75531914893617, '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': '5079122', 'n_tokens_mistral': 621, 'n_tokens_neox': 620, 'n_words': 116}