<commit_before>variables:
  MAVEN_OPTS: "-Djava.awt.headless=true -Dmaven.repo.local=./.m2/repository"
  MAVEN_CLI_OPTS: "-s bin/settings.xml --batch-mode -U --errors --show-version -Droot.logging.level=INFO"

cache:
  paths:
    - ./.m2/repository
  # keep cache across branch
  key: "$CI_COMMIT_REF_NAME"

.verify: &verify
  stage: test
  script:
    - export repoToken=$COVERALLS_TOKEN
    - export CI_BRANCH=$CI_COMMIT_REF_NAME
    - export CI_BUILD_URL=$CI_JOB_URL
    - mvn $MAVEN_CLI_OPTS clean verify jacoco:report coveralls:report -DCI_NAME=gitlab -DCI_BRANCH=$CI_COMMIT_REF_NAME -Dmaven.javadoc.skip=true

# Verify merge requests using JDK8
verify:jdk8:
  <<: *verify
  image: maven:3.5.0-jdk-8
  artifacts:
    paths:
      - "*/target/surefire-reports"
    expire_in: 2 days
    when: always

# Verify merge requests using JDK11
verify:jdk11:
  <<: *verify
  image: maven:3-jdk-11
  when: manual

deploy:jdk8:
  stage: deploy
  script:
    - mvn $MAVEN_CLI_OPTS deploy -DskipTests=true -Dmaven.javadoc.skip=true
  only:
    - master
  image: maven:3-jdk-8<commit_msg>Downgrade Maven for deploy (#725)<commit_after>variables:
  MAVEN_OPTS: "-Djava.awt.headless=true -Dmaven.repo.local=./.m2/repository"
  MAVEN_CLI_OPTS: "-s bin/settings.xml --batch-mode -U --errors --show-version -Droot.logging.level=INFO"

cache:
  paths:
    - ./.m2/repository
  # keep cache across branch
  key: "$CI_COMMIT_REF_NAME"

.verify: &verify
  stage: test
  script:
    - export repoToken=$COVERALLS_TOKEN
    - export CI_BRANCH=$CI_COMMIT_REF_NAME
    - export CI_BUILD_URL=$CI_JOB_URL
    - mvn $MAVEN_CLI_OPTS clean verify jacoco:report coveralls:report -DCI_NAME=gitlab -DCI_BRANCH=$CI_COMMIT_REF_NAME -Dmaven.javadoc.skip=true

# Verify merge requests using JDK8
verify:jdk8:
  <<: *verify
  image: maven:3.5.0-jdk-8
  artifacts:
    paths:
      - "*/target/surefire-reports"
    expire_in: 2 days
    when: always

# Verify merge requests using JDK11
verify:jdk11:
  <<: *verify
  image: maven:3-jdk-11
  when: manual

deploy:jdk8:
  stage: deploy
  script:
    - mvn $MAVEN_CLI_OPTS deploy -DskipTests=true -Dmaven.javadoc.skip=true
  only:
    - master
  image: maven:3.5.0-jdk-8
{'fraction_non_alphanumeric': 0.1223648029330889, 'fraction_numerical': 0.019706691109074245, 'mean_word_length': 3.5384615384615383, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6045899', 'n_tokens_mistral': 914, 'n_tokens_neox': 873, 'n_words': 167}