<commit_before>= title('Conditions')
%p
  The conditions element serves no purpose on its own. It is simply used to centralize a list
  of conditions. Often times, the same conditions are used in multiple locations, using this element
  you can put the condition here and reference it by
  %code
    id
  in other locations.

:xml
  <conditions>
    <condition id="lime-allies">
      <team>orange</team>
    </condition>

    <condition id="damage-filter">
      <any>
        <damage>fall</damage>
        <damage>contact</damage>
      </any>
    </condition>

    <!-- other conditions -->
  </conditions>

= attribute_table('Condition Attributes', false) do
  = attribute_row_id

= subtitle('Checks')
.table-responsive
  %table.table.table-condensed.table-striped
    %thead
      %tr
        %th Check
        %th Description
        %th Event Category
    %tr
      %td
        :xmlcode
          <block-type/>
      %td
        %p
          Check if the material and data of a block matches.
        :xml
          <block-type material="grass"/>
      %td
        = category('Block')
    %tr
      %td
        :xmlcode
          <can-fly/>
      %td
        Check if a player has flight enabled.
      %td
        = category('Player')
    %tr
      %td
        :xmlcode
          <damage>
      %td
        Check if the damage type matches.
        :xml
          <damage>fall</damage>
      %td
        = category('Damage Info')<commit_msg>Add more checks to be done<commit_after>= title('Conditions')
%p
  The conditions element serves no purpose on its own. It is simply used to centralize a list
  of conditions. Often times, the same conditions are used in multiple locations, using this element
  you can put the condition here and reference it by
  %code
    id
  in other locations.

:xml
  <conditions>
    <condition id="lime-allies">
      <team>orange</team>
    </condition>

    <condition id="damage-filter">
      <any>
        <damage>fall</damage>
        <damage>contact</damage>
      </any>
    </condition>

    <!-- other conditions -->
  </conditions>

= attribute_table('Condition Attributes', false) do
  = attribute_row_id

= subtitle('Checks')
.table-responsive
  %table.table.table-condensed.table-striped
    %thead
      %tr
        %th Check
        %th Description
        %th Event Category
    %tr
      %td
        :xmlcode
          <block-type/>
      %td
        %p
          Check if the material and data of a block matches.
        :xml
          <block-type material="grass"/>
      %td
        = category('Block')
    %tr
      %td
        :xmlcode
          <can-fly/>
      %td
        Check if a player has flight enabled.
      %td
        = category('Player')
    %tr
      %td
        :xmlcode
          <can-sprint/>
      %td
        Checks if a player has a food level greater than 3.
      %td
        = category('Player')
    %tr
      %td
        :xmlcode
          <sneaking/>
      %td
        Checks if a player is currently sneaking/crouching.
      %td
        = category('Player')
    %tr
      %td
        :xmlcode
          <walking/>
      %td
        Checks if a player is currently walking and not sprinting.
      %td
        = category('Player')
    %tr
      %td
        :xmlcode
          <flying/>
      %td
        Checks if a player is currently in fly mode.
      %td
        = category('Player')
    %tr
      %td
        :xmlcode
          <sprinting/>
      %td
        Checks if a player is currently sprinting.
      %td
        = category('Player')
    %tr
      %td
        :xmlcode
          <damage>
      %td
        Check if the damage type matches.
        :xml
          <damage>fall</damage>
      %td
        = category('Damage Info')
{'fraction_non_alphanumeric': 0.09914255091103966, 'fraction_numerical': 0.0002679528403001072, 'mean_word_length': 1.6894812680115274, 'pattern_counts': {'":': 0, '<': 50, '<?xml version=': 0, '>': 50, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 17}, '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': '7225759', 'n_tokens_mistral': 1110, 'n_tokens_neox': 1096, 'n_words': 351}