<commit_before>puts $makrFilePath
puts $commandLineArgs

localDir = File.dirname($makrFilePath)
buildDir = $commandLineArgs[0]
target = $commandLineArgs[1]

if(target == "clean")
  system("rm -f " + buildDir + "/*")
else
  # first get build (maybe this can be a global variable already)
  build = Makr::Build.new(buildDir)
  build.globalConfig.includePaths += " -I" + localDir + "/src"

  myProgramTask = Makr::ProgramGenerator.generate(localDir + "/src/", "*.cpp", build, buildDir + "/myProgram")

  updateTraverser = Makr::UpdateTraverser.new(1)
  updateTraverser.traverse(myProgramTask)

  build.dumpTaskHash()
end<commit_msg>added pattern variations in example<commit_after>puts $makrFilePath
puts $commandLineArgs

localDir = File.dirname($makrFilePath)
buildDir = $commandLineArgs[0]
target = $commandLineArgs[1]

if(target == "clean")
  system("rm -f " + buildDir + "/*")
else
  # first get build (maybe this can be a global variable already)
  build = Makr::Build.new(buildDir)
  build.globalConfig.includePaths += " -I" + localDir + "/src"

  myProgramTask = Makr::ProgramGenerator.generate(localDir + "/src/", "*.{cpp,cxx,c}", build, buildDir + "/myProgram")

  updateTraverser = Makr::UpdateTraverser.new(1)
  updateTraverser.traverse(myProgramTask)

  build.dumpTaskHash()
end
{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.004658385093167702, 'mean_word_length': 5.349753694581281, 'pattern_counts': {'":': 0, '<': 3, '<?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': '495667', 'n_tokens_mistral': 439, 'n_tokens_neox': 428, 'n_words': 93}