<commit_before>loadNut("cube.nut")
loadNut("sphere.nut")

loadPipeline("pipeline.xml")
loadShader("model.shader")

setModel(makeCube())

loadNut("preset1.nut")
loadNut("preset2.nut")

presets <- [preset1, preset2]

function loadPreset(idx, seed)
{
  --idx
  if(!(idx in presets))
  {
    print("preset " + idx + "does not exist.")
    return
  }
  
  presets[idx].call(getroottable(), seed)
}<commit_msg>fixed error message for loading preset<commit_after>loadNut("cube.nut")
loadNut("sphere.nut")

loadPipeline("pipeline.xml")
loadShader("model.shader")

setModel(makeCube())

loadNut("preset1.nut")
loadNut("preset2.nut")

presets <- [preset1, preset2]

function loadPreset(idx, seed)
{
  --idx
  if(!(idx in presets))
  {
    print("preset " + (idx + 1) + " does not exist.")
    return
  }
  
  presets[idx].call(getroottable(), seed)
}
{'fraction_non_alphanumeric': 0.1773809523809524, 'fraction_numerical': 0.010714285714285714, 'mean_word_length': 4.72108843537415, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4392065', 'n_tokens_mistral': 336, 'n_tokens_neox': 333, 'n_words': 56}