<commit_before><?php
function run_0011() {
  // Ugly but haven't found a better way
  global $setting, $config, $user, $mysqli;

  // Version information
  $db_version_old = '0.0.10';  // What version do we expect
  $db_version_new = '0.0.11';  // What is the new version we wish to upgrade to
  $db_version_now = $setting->getValue('DB_VERSION');  // Our actual version installed

  // Upgrade specific variables
  $aSql[] = "ALTER TABLE `shares_archive` CHANGE  `id` `id` BIGINT(30) unsigned NOT NULL AUTO_INCREMENT";
  $aSql[] = "ALTER TABLE `shares_archive` CHANGE `share_id` `share_id` BIGINT(30) unsigned NOT NULL";
  $aSql[] = "UPDATE " . $setting->getTableName() . "    SET value = '0.0.11' WHERE name = 'DB_VERSION'";

  if ($db_version_now == $db_version_old && version_compare($db_version_now, DB_VERSION, '<')) {
    // Run the upgrade
    echo '- Starting database migration to version ' . $db_version_new . PHP_EOL;
    foreach ($aSql as $sql) {
      echo '-  Preparing: ' . $sql . PHP_EOL;
      $stmt = $mysqli->prepare($sql);
      if ($stmt && $stmt->execute()) {
        echo '-    success' . PHP_EOL;
      } else {
        echo '-    failed: ' . $mysqli->e<commit_msg>[FIX] dunno, but my editor cutted the end of file<commit_after><?php
function run_0011() {
  // Ugly but haven't found a better way
  global $setting, $config, $user, $mysqli;

  // Version information
  $db_version_old = '0.0.10';  // What version do we expect
  $db_version_new = '0.0.11';  // What is the new version we wish to upgrade to
  $db_version_now = $setting->getValue('DB_VERSION');  // Our actual version installed

  // Upgrade specific variables
  $aSql[] = "ALTER TABLE `shares_archive` CHANGE  `id` `id` BIGINT(30) unsigned NOT NULL AUTO_INCREMENT";
  $aSql[] = "ALTER TABLE `shares_archive` CHANGE `share_id` `share_id` BIGINT(30) unsigned NOT NULL";
  $aSql[] = "UPDATE " . $setting->getTableName() . "    SET value = '0.0.11' WHERE name = 'DB_VERSION'";

  if ($db_version_now == $db_version_old && version_compare($db_version_now, DB_VERSION, '<')) {
    // Run the upgrade
    echo '- Starting database migration to version ' . $db_version_new . PHP_EOL;
    foreach ($aSql as $sql) {
      echo '-  Preparing: ' . $sql . PHP_EOL;
      $stmt = $mysqli->prepare($sql);
      if ($stmt && $stmt->execute()) {
        echo '-    success' . PHP_EOL;
      } else {
        echo '-    failed: ' . $mysqli->error . PHP_EOL;
        exit(1);
      }
    }
  }
}
?>
{'fraction_non_alphanumeric': 0.15216511533791988, 'fraction_numerical': 0.01659247268312424, 'mean_word_length': 3.0859504132231406, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 14, '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': '5441603', 'n_tokens_mistral': 878, 'n_tokens_neox': 844, 'n_words': 236}