<commit_before>Feature: ttp:timeBase-related attribute constraints

  # SPEC-CONFORMANCE: R46 R47 R49 R50 R52 R53
  Scenario: Valid times according to timeBase
    Given an xml file <xml_file>
    And it has timeBase <time_base>
    And it has body begin time <body_begin>
    And it has body end time <body_end>
    And it has body duration <body_dur>
    Then document is valid

    Examples:
    | xml_file                 | time_base | body_begin  | body_end       | body_dur     |
    | timeBase_timeformat.xml  | clock     | 15.58m      | 1.5h           |              |
    | timeBase_timeformat.xml  | clock     | 42:05:60.8  | 45:00:47       | 1400h        |
    | timeBase_timeformat.xml  | clock     |             |                | 67ms         |
    | timeBase_timeformat.xml  | clock     |             |                | 00:00:60.4   |
    | timeBase_timeformat.xml  | media     | 42:05:60.8  | 45:00:47.0     |              |
    | timeBase_timeformat.xml  | media     | 67.945s     | 125.0s         |              |
    | timeBase_timeformat.xml  | media     | 999:09:60.8 | 1999:00:60.999 |              |
    | timeBase_timeformat.xml  | media     |             |                | 99.9s        |
    | timeBase_timeformat.xml  | media     |             |                | 2225:59:60.9 |


  # These tests are not all passing because the missing semantic validation piece
  # SPEC-CONFORMANCE: R46 R47 R49 R50 R52 R53
  Scenario: Invalid times according to timeBase
    Given an xml file <xml_file>
    And it has timeBase <time_base>
    And it has body begin time <body_begin>
    And it has body end time <body_end>
    And it has body duration <body_dur>
    Then document is invalid

    Examples:
    | xml_file                 | time_base | body_begin    | body_end      | body_dur      |
    | timeBase_timeformat.xml  | clock     | 15.58a        | 1.5d          |               |
    | timeBase_timeformat.xml  | media     | 67.945q       | 125.0x        |               |
    | timeBase_timeformat.xml  | media     |               |               | 99.9l         |
    | timeBase_timeformat.xml  | media     | 42:05:08:60.8 | 45:00:47.0    |               |
    | timeBase_timeformat.xml  | media     | 140:09:60.8.1 | 141:00:60.999 |               |
    | timeBase_timeformat.xml  | media     |               |               | 225:59:60.9.3 |
    @skip 
    | timeBase_timeformat.xml  | clock     | 0142:05:60.8  | 145:00:47     |               |
    | timeBase_timeformat.xml  | clock     |               |               | 199:00:60.4   |



  # SPEC-CONFORMANCE: R61 R62 R64 R65
  Scenario: Valid times according to timeBase in p
    Given an xml file <xml_file>
    And it has timeBase <time_base>
    And it has p begin time <p_begin>
    And it has p end time <p_end>
    Then document is valid

    Examples:
    | xml_file                 | time_base | p_begin       | p_end            |
    | timeBase_timeformat.xml  | clock     | 999.99m       | 99999999.99s     |<commit_msg>enabling more tests<commit_after>Feature: ttp:timeBase-related attribute constraints

  # SPEC-CONFORMANCE: R46 R47 R49 R50 R52 R53
  Scenario: Valid times according to timeBase
    Given an xml file <xml_file>
    And it has timeBase <time_base>
    And it has body begin time <body_begin>
    And it has body end time <body_end>
    And it has body duration <body_dur>
    Then document is valid

    Examples:
    | xml_file                 | time_base | body_begin  | body_end       | body_dur     |
    | timeBase_timeformat.xml  | clock     | 15.58m      | 1.5h           |              |
    | timeBase_timeformat.xml  | clock     | 42:05:60.8  | 45:00:47       | 1400h        |
    | timeBase_timeformat.xml  | clock     |             |                | 67ms         |
    | timeBase_timeformat.xml  | clock     |             |                | 00:00:60.4   |
    | timeBase_timeformat.xml  | media     | 42:05:60.8  | 45:00:47.0     |              |
    | timeBase_timeformat.xml  | media     | 67.945s     | 125.0s         |              |
    | timeBase_timeformat.xml  | media     | 999:09:60.8 | 1999:00:60.999 |              |
    | timeBase_timeformat.xml  | media     |             |                | 99.9s        |
    | timeBase_timeformat.xml  | media     |             |                | 2225:59:60.9 |


  # These tests are not all passing because the missing semantic validation piece
  # SPEC-CONFORMANCE: R46 R47 R49 R50 R52 R53
  Scenario: Invalid times according to timeBase
    Given an xml file <xml_file>
    And it has timeBase <time_base>
    And it has body begin time <body_begin>
    And it has body end time <body_end>
    And it has body duration <body_dur>
    Then document is invalid

    Examples:
    | xml_file                 | time_base | body_begin    | body_end      | body_dur      |
    | timeBase_timeformat.xml  | clock     | 15.58a        | 1.5d          |               |
    | timeBase_timeformat.xml  | media     | 67.945q       | 125.0x        |               |
    | timeBase_timeformat.xml  | media     |               |               | 99.9l         |
    | timeBase_timeformat.xml  | media     | 42:05:08:60.8 | 45:00:47.0    |               |
    | timeBase_timeformat.xml  | media     | 140:09:60.8.1 | 141:00:60.999 |               |
    | timeBase_timeformat.xml  | media     |               |               | 225:59:60.9.3 |
    | timeBase_timeformat.xml  | clock     | 0142:05:60.8  | 145:00:47     |               |
    | timeBase_timeformat.xml  | clock     |               |               | 199:00:60.4   |



  # SPEC-CONFORMANCE: R61 R62 R64 R65
  Scenario: Valid times according to timeBase in p
    Given an xml file <xml_file>
    And it has timeBase <time_base>
    And it has p begin time <p_begin>
    And it has p end time <p_end>
    Then document is valid

    Examples:
    | xml_file                 | time_base | p_begin       | p_end            |
    | timeBase_timeformat.xml  | clock     | 999.99m       | 99999999.99s     |
{'fraction_non_alphanumeric': 0.08417732027228955, 'fraction_numerical': 0.07272123526481819, 'mean_word_length': 1.4779925956396545, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 54}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 17, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '830953', 'n_tokens_mistral': 2215, 'n_tokens_neox': 1918, 'n_words': 471}