<commit_before>var fileSelected = false;
var passwordOk = false;

function updateButtonStatus() {
  if (fileSelected && passwordOk) {
    $("#upload").slideDown();
  } else {
    $("#upload").slideUp();
  }
}

function updateTimeStatus() {
  if (passwordOk) {
    $("#time-container").slideDown();
  } else {
    $("#time-container").slideUp();
  }
}

function validatePassword(evt) {
  $.post("api/password", {"secret": $("#secret").val()}, function(response) {
    $("#secret").removeClass();
    if (response.status == 0) {
      passwordOk = true;
      $("#secret").addClass("green");
    } else if (response.status == 1) {
      passwordOk = false;
      $("#secret").addClass("red");
    } else if (response.status == 2) {<commit_msg>Show time selector only after choosing file<commit_after>var fileSelected = false;
var passwordOk = false;

function updateButtonStatus() {
  if (fileSelected && passwordOk) {
    $("#upload").slideDown();
  } else {
    $("#upload").slideUp();
  }
}

function updateTimeStatus() {
  if (fileSelected && passwordOk) {
    $("#time-container").slideDown();
  } else {
    $("#time-container").slideUp();
  }
}

function validatePassword(evt) {
  $.post("api/password", {"secret": $("#secret").val()}, function(response) {
    $("#secret").removeClass();
    if (response.status == 0) {
      passwordOk = true;
      $("#secret").addClass("green");
    } else if (response.status == 1) {
      passwordOk = false;
      $("#secret").addClass("red");
    } else if (response.status == 2) {
{'fraction_non_alphanumeric': 0.20680628272251309, 'fraction_numerical': 0.003926701570680628, 'mean_word_length': 3.675840978593272, 'pattern_counts': {'":': 2, '<': 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': '1318744', 'n_tokens_mistral': 456, 'n_tokens_neox': 467, 'n_words': 97}