<commit_before>info:
  name: ""
  version: "0.0"
  description: "{{ info.name }}"

  build-version ? {{ vars.branch }}:
    "^hotfix[-/].+": "{{ info.version }}.{{ vars.build-number }}-{{ vars.branch | lower | replace('\\W|_', '-') }}"
    "*": "{{ info.version }}.{{ vars.build-number }}"

  hotfix-suffix ? {{ vars.branch }}:
    "^hotfix[-/].+": "-{{ vars.branch | lower | replace('\\W|_', '-') }}"
    "*": ""

  feature ? {{ vars.branch }}:
    "": ""
    "master": ""
    "^hotfix[-/].+": ""
    "^feature[-/](?P<feature>.+)": "{{ match.feature | lower | replace('\\W|_', '-') }}"
    "*": "{{ vars.branch | lower | replace('\\W|_', '-') }}"

  feature-suffix ? {{ info.feature }}:
    "": ""
    "*": "-{{ info.feature }}"

  feature-prefix ? {{ info.feature }}:
    "": ""
    "*": "{{ info.feature }}-"

  full-name: "{{ info.category }}/{{ info.name }}{{ info.feature-suffix }}"

vars:
  env: qa
  build-number: 0
  stage-counter: 0
  purge: false
  no-push: false

conf:
  marathon:
    app-name: "{{ info.full-name }}"
    address: marathon
    registry-host: webdav.marathon
    registry-path: "/{{ info.category }}/{{ info.name }}/{{ info.name }}{{ info.feature-suffix }}-v{{ info.build-version }}.tar.gz"
    registry-url: "http://{{ conf.marathon.registry-host }}{{ conf.marathon.registry-path }}"

  consul:
    address: consul

  kube:
    full-name: "{{ info.name | replace('\\W|_', '-') }}{{ info.feature-suffix | replace('\\W|_', '-') }}"

  metronome:
    address: http://localhost:8082

  docker:
    registry: ""
    image: "{{ conf.docker.registry }}{{ info.category }}/{{ info.name }}{{ info.feature-suffix }}:v{{ info.build-version }}"
    workdir: "${PWD}"

  gocd:
    api-url: https://localhost:8154
    environment: dev
    pipeline-name: "{{ info.name }}{{ info.feature-suffix }}{{ info.hotfix-suffix }}"
    template ? {{ info.feature }}:
      "": "serve-service-tpl"
      "*": "serve-featured-tpl"

  graphite:
    host: graphite

gocd:
  pipeline:
    create:
      purge: "{{ vars.purge }}"
      api-url: "{{ conf.gocd.api-url }}"
      environment: "{{ conf.gocd.environment }}"
      branch: "{{ vars.branch }}"
      name-suffix: ""
      allowed-branches: ["master"]
      depends: []

      pipeline:
        group: "{{ info.category | replace('\\W|_', '-') }}"
        pipeline:
          name: "{{ conf.gocd.pipeline-name }}"
          template: "{{ conf.gocd.template }}"
          label_template: "{{ info.version }}.${COUNT}"
          envs: {}<commit_msg>custom gocd template for hotfix<commit_after>info:
  name: ""
  version: "0.0"
  description: "{{ info.name }}"

  build-version ? {{ vars.branch }}:
    "^hotfix[-/].+": "{{ info.version }}.{{ vars.build-number }}-{{ vars.branch | lower | replace('\\W|_', '-') }}"
    "*": "{{ info.version }}.{{ vars.build-number }}"

  hotfix-suffix ? {{ vars.branch }}:
    "^hotfix[-/].+": "-{{ vars.branch | lower | replace('\\W|_', '-') }}"
    "*": ""

  feature ? {{ vars.branch }}:
    "": ""
    "master": ""
    "^hotfix[-/].+": ""
    "^feature[-/](?P<feature>.+)": "{{ match.feature | lower | replace('\\W|_', '-') }}"
    "*": "{{ vars.branch | lower | replace('\\W|_', '-') }}"

  feature-suffix ? {{ info.feature }}:
    "": ""
    "*": "-{{ info.feature }}"

  feature-prefix ? {{ info.feature }}:
    "": ""
    "*": "{{ info.feature }}-"

  full-name: "{{ info.category }}/{{ info.name }}{{ info.feature-suffix }}"

vars:
  env: qa
  build-number: 0
  stage-counter: 0
  purge: false
  no-push: false

conf:
  marathon:
    app-name: "{{ info.full-name }}"
    address: marathon
    registry-host: webdav.marathon
    registry-path: "/{{ info.category }}/{{ info.name }}/{{ info.name }}{{ info.feature-suffix }}-v{{ info.build-version }}.tar.gz"
    registry-url: "http://{{ conf.marathon.registry-host }}{{ conf.marathon.registry-path }}"

  consul:
    address: consul

  kube:
    full-name: "{{ info.name | replace('\\W|_', '-') }}{{ info.feature-suffix | replace('\\W|_', '-') }}"

  metronome:
    address: http://localhost:8082

  docker:
    registry: ""
    image: "{{ conf.docker.registry }}{{ info.category }}/{{ info.name }}{{ info.feature-suffix }}:v{{ info.build-version }}"
    workdir: "${PWD}"

  gocd:
    api-url: https://localhost:8154
    environment: dev
    pipeline-name: "{{ info.name }}{{ info.feature-suffix }}{{ info.hotfix-suffix }}"
    default-template: "serve-service-tpl"
    template ? "{{ info.feature }}:{{ info.hotfix-suffix }}":
      ":": "{{ conf.gocd.default-template }}"
      "^:.+": "serve-hotfix-tpl"
      "*": "serve-featured-tpl"

  graphite:
    host: graphite

gocd:
  pipeline:
    create:
      purge: "{{ vars.purge }}"
      api-url: "{{ conf.gocd.api-url }}"
      environment: "{{ conf.gocd.environment }}"
      branch: "{{ vars.branch }}"
      name-suffix: ""
      allowed-branches: ["master"]
      depends: []

      pipeline:
        group: "{{ info.category | replace('\\W|_', '-') }}"
        pipeline:
          name: "{{ conf.gocd.pipeline-name }}"
          template: "{{ conf.gocd.template }}"
          label_template: "{{ info.version }}.${COUNT}"
          envs: {}
{'fraction_non_alphanumeric': 0.2499028371550719, 'fraction_numerical': 0.004663816556548776, 'mean_word_length': 2.6093969144460027, 'pattern_counts': {'":': 33, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1029198', 'n_tokens_mistral': 1906, 'n_tokens_neox': 1846, 'n_words': 290}