<commit_before>export default function() {
  return function(hook) {
    const hasDataToken = hook.data && hook.data.token;
    const hasQueryToken = hook.params.query && hook.params.query.token;

    if (!hook.params.token) {
      if (hasDataToken) {
        hook.params.token = hook.data.token;
      }
      else if (hasQueryToken) {
        hook.params.token = hook.params.query.token;
      }
    }

    if (hasDataToken) {
      delete hook.data.token;
    }
    
    if (hasQueryToken) {
      delete hook.params.query.token;
    }
  };
};<commit_msg>removing semi-colon<commit_after>export default function() {
  return function(hook) {
    const hasDataToken = hook.data && hook.data.token;
    const hasQueryToken = hook.params.query && hook.params.query.token;

    if (!hook.params.token) {
      if (hasDataToken) {
        hook.params.token = hook.data.token;
      }
      else if (hasQueryToken) {
        hook.params.token = hook.params.query.token;
      }
    }

    if (hasDataToken) {
      delete hook.data.token;
    }
    
    if (hasQueryToken) {
      delete hook.params.query.token;
    }
  };
}
{'fraction_non_alphanumeric': 0.12822796081923418, 'fraction_numerical': 0.0, 'mean_word_length': 2.2769679300291545, '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': '3810591', 'n_tokens_mistral': 367, 'n_tokens_neox': 362, 'n_words': 65}