<commit_before>---
"Get template":
  - do:
      indices.put_template:
        name: test
        body:
          template: test-*
          settings:
            number_of_shards:   1
            number_of_replicas: 0

  - do:
      indices.get_template:
        name: test

  - match: {test.template: "test-*"}
  - match: {test.settings: {index.number_of_shards: '1', index.number_of_replicas: '0'}}
---
"Get all templates":
  - do:
      indices.put_template:
        name: test
        body:
          template: test-*
          settings:
            number_of_shards:   1
  - do:
      indices.put_template:
        name: test2
        body:
          template: test2-*
          settings:
            number_of_shards:   1

  - do:
      indices.get_template: {}

  - match: {test.template: "test-*"}
  - match: {test2.template: "test2-*"}
<commit_msg>Get all templates not available before 0.90.3<commit_after>---
"Get template":
  - do:
      indices.put_template:
        name: test
        body:
          template: test-*
          settings:
            number_of_shards:   1
            number_of_replicas: 0

  - do:
      indices.get_template:
        name: test

  - match: {test.template: "test-*"}
  - match: {test.settings: {index.number_of_shards: '1', index.number_of_replicas: '0'}}
---
"Get all templates":
  - skip:
      version: "0 - 0.90.3"
      reason:  "Get all templates not available before 0.90.4"

  - do:
      indices.put_template:
        name: test
        body:
          template: test-*
          settings:
            number_of_shards:   1
  - do:
      indices.put_template:
        name: test2
        body:
          template: test2-*
          settings:
            number_of_shards:   1

  - do:
      indices.get_template: {}

  - match: {test.template: "test-*"}
  - match: {test2.template: "test2-*"}

{'fraction_non_alphanumeric': 0.12378378378378378, 'fraction_numerical': 0.01783783783783784, 'mean_word_length': 1.670995670995671, 'pattern_counts': {'":': 4, '<': 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': '6075757', 'n_tokens_mistral': 632, 'n_tokens_neox': 602, 'n_words': 136}