<commit_before><?php

require('constants.php');

// References:
//
//   http://www.php.net/manual/en/features.file-upload.post-method.php

// http://www.nolte-schamm.za.net/2011/05/php-var_dump-into-error-console_log/
function console_log ($obj) {
  ob_start();
  var_dump($obj);
  $contents = ob_get_contents();
  ob_end_clean();
  error_log($contents);
}

/**
 * @param {Array} $file An associative array.
 * @return {Bool}
 */
function is_valid_file ($file) {
  $mime_type = $file['type'];<commit_msg>Adds an otter.  Fixes #1.<commit_after><?php

require('constants.php');

//      .----.__
//     / c  ^  _`;   Hello!  I'm an otter!
//     |     .--'
//      \   (
//      /  -.\
//     / .   \
//    /  \    |
//   ;    `-. `.
//   |      /`'.`.
//   |      |   \ \
//   |    __|    `'
//   ;   /   \
//  ,'        |
// (_`'---._ /--,
//   `'---._`'---..__
//          `''''--, )
//            _.-'`,`

// References:
//
//   http://www.php.net/manual/en/features.file-upload.post-method.php

// http://www.nolte-schamm.za.net/2011/05/php-var_dump-into-error-console_log/
function console_log ($obj) {
  ob_start();
  var_dump($obj);
  $contents = ob_get_contents();
  ob_end_clean();
  error_log($contents);
}

/**
 * @param {Array} $file An associative array.
 * @return {Bool}
 */
function is_valid_file ($file) {
  $mime_type = $file['type'];
{'fraction_non_alphanumeric': 0.2450037009622502, 'fraction_numerical': 0.009622501850481125, 'mean_word_length': 1.920086393088553, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '3460852', 'n_tokens_mistral': 555, 'n_tokens_neox': 535, 'n_words': 62}