<commit_before>
{% if bunch_spntrk == '1' %}
line.add(core.FAKE_ELEM("""
'SPNTRK'
4.1
{{ bunch_S_X }} {{ bunch_S_Y }} {{ bunch_S_Z }}
"""))
{% endif %}

{{ beamlineElements -}}
line.add(core.FAKE_ELEM("""
'FAISTORE'
zgoubi.fai
{{ simulationSettings_ip }}
"""))
line.add(core.REBELOTE(K=99, NPASS={{ simulationSettings_npass - 1 }}))
line.add(core.END())

with open('zgoubi.dat', 'w') as f:
    f.write(line.output())<commit_msg>zgoubi: #1720 new lattice elements<commit_after>
{% if SPNTRK_KSO == '1' %}
line.add(core.FAKE_ELEM("""
'SPNTRK'
4.1
{{ SPNTRK_S_X }} {{ SPNTRK_S_Y }} {{ SPNTRK_S_Z }}
"""))
{% endif %}

{% if SRLOSS_KSR == '1' %}
line.add(core.FAKE_ELEM("""
'SRLOSS'
1
{% if SRLOSS_applyToAll == '1' %}
all
{% else %}
{{ SRLOSS_keyword }}
{% endif %}
1   123456
"""))
{% endif -%}

{{ beamlineElements -}}
line.add(core.FAKE_ELEM("""
'FAISTORE'
zgoubi.fai
{{ simulationSettings_ip }}
"""))
line.add(core.REBELOTE(K=99, NPASS={{ simulationSettings_npass - 1 }}))
line.add(core.END())

with open('zgoubi.dat', 'w') as f:
    f.write(line.output())
{'fraction_non_alphanumeric': 0.23746452223273415, 'fraction_numerical': 0.02459791863765374, 'mean_word_length': 5.080459770114943, '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': '6812442', 'n_tokens_mistral': 517, 'n_tokens_neox': 475, 'n_words': 73}