<commit_before><?php
//print_r($_FILES);


date_default_timezone_set('America/Los_Angeles');
$month =  date('Ym');
$uploadPlace_ = '/home/MM/configUploads/' . $month;
if (!file_exists($uploadPlace_)) 
{
   mkdir($uploadPlace_, 0750);
}

if ($_FILES['file']['error'] > 0)
{
  echo 'Return Code: ' . $_FILES['file']['error'] . '<br />';
}
else
{
   echo 'Upload: ' . $_FILES['file']['name'] . '<br />';
   echo 'Type: ' . $_FILES['file']['type'] . '<br />';
   echo 'Size: ' . ($_FILES['file']['size'] / 1024) . ' Kb<br />';
   echo 'Temp file: ' . $_FILES['file']['tmp_name'] . '<br />';

   if (file_exists($uploadPlace_ . '/'. $_FILES['file']['name']))
   {
      echo $_FILES['file']['name'] . ' already exists. ';
   }
   else
   {
      move_uploaded_file($_FILES['file']['tmp_name'],
      $uploadPlace_ . '/' . $_FILES['file']['name']);
      echo 'Stored in: ' . $uploadPlace . '/' . $_FILES['file']['name'];
   }
}
?><commit_msg>simplify output file name handling a little<commit_after><?php
//print_r($_FILES);


date_default_timezone_set('America/Los_Angeles');
$month =  date('Ym');
$uploadPlace_ = '/home/MM/configUploads/' . $month;
if (!file_exists($uploadPlace_)) 
{
   mkdir($uploadPlace_, 0750);
}

if ($_FILES['file']['error'] > 0)
{
  echo 'Return Code: ' . $_FILES['file']['error'] . '<br />';
}
else
{
   echo 'Upload: ' . $_FILES['file']['name'] . '<br />';
   echo 'Type: ' . $_FILES['file']['type'] . '<br />';
   echo 'Size: ' . ($_FILES['file']['size'] / 1024) . ' Kb<br />';
   echo 'Temp file: ' . $_FILES['file']['tmp_name'] . '<br />';
   $opath = $uploadPlace_ . '/'. $_FILES['file']['name'];

   if (file_exists($opath))
   {
      echo $_FILES['file']['name'] . ' already exists. ';
   }
   else
   {
      move_uploaded_file($_FILES['file']['tmp_name'],
      $opath);
      echo 'Stored in: ' . $opath;
   }
}
?>
{'fraction_non_alphanumeric': 0.26204656199242016, 'fraction_numerical': 0.009745533297238766, 'mean_word_length': 3.5183374083129584, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '4367200', 'n_tokens_mistral': 714, 'n_tokens_neox': 670, 'n_words': 116}