<commit_before>scenario: Operations
background:
  schema-file: operations.schema.graphql
tests:
  - name: Operation Name Uniqueness - Valid
    given:
      query: |
        query getDogName {
          dog {
            name
          }
        }

        query getOwnerName {
          dog {
            owner {
              name
            }
          }
        }
    when:
      parse:
    then:
      passes:
        
  - name: Operation Name Uniqueness - Invalid
    given:
      query: |
        query getName {
          dog {
            name
          }
        }

        query getName {
          dog {
            owner {
              name
            }
          }
        }
    when:
      validate: [operations]
    then:
      error: "FIXME"
      <commit_msg>add more operation validation cases<commit_after>scenario: Operations
background:
  schema-file: operations.schema.graphql
tests:
  - name: Operation Name Uniqueness - Valid
    given:
      query: |
        query getDogName {
          dog {
            name
          }
        }

        query getOwnerName {
          dog {
            owner {
              name
            }
          }
        }
    when:
      validate: [operations]
    then:
      passes:
        
  - name: Operation Name Uniqueness - Invalid
    given:
      query: |
        query getName {
          dog {
            name
          }
        }

        query getName {
          dog {
            owner {
              name
            }
          }
        }
    when:
      validate: [operations]
    then:
      error:

  - name: Operation Name Uniqueness - Invalid
    given:
      query: |
        query dogOperation {
          dog {
            name
          }
        }

        mutation dogOperation {
          mutateDog {
            id
          }
        }
    when:
      validate: [operations]
    then:
      error:
      
{'fraction_non_alphanumeric': 0.06733298264071541, 'fraction_numerical': 0.0, 'mean_word_length': 0.9329268292682927, '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': '7242490', 'n_tokens_mistral': 508, 'n_tokens_neox': 500, 'n_words': 120}