<commit_before>kind: pipeline
name: default

steps:
  - name: compile
    image: maven:3-openjdk-17
    commands:
      - mvn -B clean compile
    when:
      branch:
        - main
        - develop
        - feature/*
        - fix/*
        - release/*
  - name: unit-tests
    image: maven:3-openjdk-17
    commands:
      - mvn -B test
    when:
      branch:
        - develop
        - feature/*
        - fix/*
  - name: unit-integration-tests
    image: maven:3-openjdk-17
    environment:
      VAULT_VERSION: 1.11.2
    commands:
      - curl -s -o vault_$${VAULT_VERSION}_linux_amd64.zip https://releases.hashicorp.com/vault/$${VAULT_VERSION}/vault_$${VAULT_VERSION}_linux_amd64.zip
      - curl -s https://releases.hashicorp.com/vault/$${VAULT_VERSION}/vault_$${VAULT_VERSION}_SHA256SUMS | grep linux_amd64 | sha256sum -c
      - unzip vault_$${VAULT_VERSION}_linux_amd64.zip
      - rm vault_$${VAULT_VERSION}_linux_amd64.zip
      - mv vault /bin/
      - mvn -B -P integration-test verify
    when:
      branch:
        - main
        - release/*
<commit_msg>ci: fix drone CI pipeline<commit_after>kind: pipeline
name: default

steps:
  - name: compile
    image: maven:3-openjdk-17
    commands:
      - mvn -B clean compile
    when:
      branch:
        - main
        - develop
        - feature/*
        - fix/*
        - release/*
  - name: unit-tests
    image: maven:3-openjdk-17
    commands:
      - mvn -B test
    when:
      branch:
        - develop
        - feature/*
        - fix/*
  - name: setup-vault
    image: alpine:latest
    environment:
      VAULT_VERSION: 1.11.2
    commands:
      - wget -q -O vault_$${VAULT_VERSION}_linux_amd64.zip https://releases.hashicorp.com/vault/$${VAULT_VERSION}/vault_$${VAULT_VERSION}_linux_amd64.zip
      - wget -q -O - https://releases.hashicorp.com/vault/$${VAULT_VERSION}/vault_$${VAULT_VERSION}_SHA256SUMS | grep linux_amd64 | sha256sum -c
      - unzip vault_$${VAULT_VERSION}_linux_amd64.zip
      - rm vault_$${VAULT_VERSION}_linux_amd64.zip
      - mkdir -p .bin
      - mv vault .bin/
    when:
      branch:
        - main
        - release/*
  - name: unit-integration-tests
    image: maven:3-openjdk-17
    environment:
      VAULT_VERSION: 1.11.2
    commands:
      - export PATH=.bin:$${PATH}
      - mvn -B -P integration-test verify
    when:
      branch:
        - main
        - release/*

{'fraction_non_alphanumeric': 0.12217573221757322, 'fraction_numerical': 0.02594142259414226, 'mean_word_length': 1.9194139194139195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '6901730', 'n_tokens_mistral': 883, 'n_tokens_neox': 831, 'n_words': 162}