<commit_before><?php
ini_set('display_errors', '0');     # don't show any errors...
error_reporting(E_ALL | E_STRICT);  # ...but do log them

$settings = parse_ini_file('../settings.ini');

function getUniqueUri($fileSuffix) {
  // Create a unique id in the form of 2015_0310_1136_58_eab01d96 (year_monthday_hourminute_second_randomizedstring)
  $uid = date_format(date_create(), 'Y_md_Hi_s_').bin2hex(openssl_random_pseudo_bytes(4));
  return "$uid.$fileSuffix";
}

function sign($uri, $settings) {<commit_msg>make newer files appear first when listing<commit_after><?php
ini_set('display_errors', '0');     # don't show any errors...
error_reporting(E_ALL | E_STRICT);  # ...but do log them

$settings = parse_ini_file('../settings.ini');

function getUniqueUri($fileSuffix) {
  $future = 2524604400000;// strtotime("2050/01/01") * 1000;
  $now = (int) (microtime(true) * 1000);
  $diff = $future - $now;
  $uid = $diff.'-'.bin2hex(openssl_random_pseudo_bytes(4));
  return "$uid.$fileSuffix";
}

function sign($uri, $settings) {
{'fraction_non_alphanumeric': 0.16391852570320078, 'fraction_numerical': 0.05140640155189137, 'mean_word_length': 5.331288343558282, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3930104', 'n_tokens_mistral': 406, 'n_tokens_neox': 368, 'n_words': 76}