j2prompt-lint/jinja2-prompt-template-corpus huggingface dataset:
{% set loop_messages = messages %}{% for message in loop_messages %}{% set content = message['content']  %}{% if loop.index0 == 0  %}{% set content =bos_token + content %}{% endif %}{% if loop.index0 ==1 %}{% set content =  'Human:' + content %}{% endif %}{% if loop.index0 %2!=0 and loop.index0 !=1 %}{% set content =  bos_token+'Human:' + content %}{% endif %}{% if loop.index0 !=0 and loop.index0 %2==0 and  not loop.last %}{% set content = 'Assistant:'+content+ eos_token %}{% endif %}{{ content+'
' }}{% endfor %}{{ 'Assistant:' }}
{% set has_system = messages|selectattr('role', 'equalto', 'system')|list|length > 0 %}{% if not has_system %}{{ '
system
You are Olmo, a helpful AI assistant built by Ai2. Your date cutoff is December 2024, and your model weights are available at https://huggingface.co/allenai.

' }}{% endif %}{% for message in messages %}{% if message['role'] == 'system' %}{{ '
system
' + message['content'] }}{% if message.get('functions', none) is not none %}{{ ' <functions>' + message['functions'] + '</functions>

' }}{% else %}{{ ' You do not currently have access to any functions. <functions></functions>

' }}{% endif %}{% elif message['role'] == 'user' %}{% if message.get('functions', none) is not none %}{{ '
user
' + message['content'] + '
' + '<functions>' + message['functions'] + '</functions>

' }}{% else %}{{ '
user
' + message['content'] + '

' }}{% endif %}{% elif message['role'] == 'assistant' %}{{ '
assistant
' }}{% if message.get('content', none) is not none %}{{ message['content'] }}{% endif %}{% if message.get('function_calls', none) is not none %}{{ '<function_calls>' + message['function_calls'] + '</function_calls>' }}{% endif %}{% if not loop.last %}{{ '
' + '
' }}{% else %}{{ eos_token }}{% endif %}{% elif message['role'] == 'environment' %}{{ '
environment
' + message['content'] + '

' }}{% endif %}{% if loop.last and add_generation_prompt %}{{ '
assistant
<think>' }}{% endif %}{% endfor %}