<commit_before># update-e-params-subject-discrim.awk
# params: 
#    dataset_identifier
#    datasetVersion
#    subjectDiscriminator

{
   if( $0~"conversion:subject_discriminator" ) {
      printf("      conversion:subject_discriminator \"%s\";\n",subjectDiscriminator)

   }else if( $0~"conversion:dataset_version" ) {                          # TODO: DEPRECATED (but converter not recognizing it)
      printf("   conversion:dataset_version \"%s\";\n",datasetVersion)
   }else if( $0~"conversion:version_identifier" ) {
      printf("   conversion:version_identifier \"%s\";\n",datasetVersion)

   }else if( $0~"conversion:dataset_identifier" && length(dataset_identifier) > 0) {
      printf("   conversion:dataset_identifier \"%s\";\n",dataset_identifier)
   }else {
      print
   }
}<commit_msg>adding dataset-independent global params recognition in convert.sh; added dataset change in update-e-params.awk<commit_after># update-e-params-subject-discrim.awk
# params: 
#    dataset_identifier
#    datasetVersion
#    subjectDiscriminator

{
   if( $0~"conversion:subject_discriminator" ) {
      printf("      conversion:subject_discriminator \"%s\";\n",subjectDiscriminator)

   }else if( $0~"conversion:dataset_version" ) {                          # TODO: DEPRECATED (but converter not recognizing it)
      printf("   conversion:dataset_version    \"%s\";\n",datasetVersion)
   }else if( $0~"conversion:version_identifier" ) {
      printf("   conversion:version_identifier \"%s\";\n",datasetVersion)

   }else if( $0~"conversion:dataset_identifier" && length(dataset_identifier) > 0) {
      printf("   conversion:dataset_identifier \"%s\";\n",dataset_identifier)
   }else {
      print
   }
}
{'fraction_non_alphanumeric': 0.13825424721734036, 'fraction_numerical': 0.005858230814294083, 'mean_word_length': 3.718232044198895, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '518057', 'n_tokens_mistral': 535, 'n_tokens_neox': 514, 'n_words': 91}