<commit_before>image: openjdk:8

<%_ if (buildTool === 'gradle') { _%>
cache:
    key: "$CI_BUILD_REF_NAME"
    paths:
        - node_modules
        - .gradle/wrapper
        - .gradle/caches
<%_ } _%>
<%_ if (buildTool === 'maven') { _%>
cache:
    key: "$CI_BUILD_REF_NAME"
    paths:
        - node_modules
        - .m2
<%_ } _%>
stages:
    - build
    - test
    - package
    - release
    - deploy

<%_ if (buildTool === 'gradle') { _%>
before_script:
    - export GRADLE_USER_HOME=`pwd`/.gradle
    - chmod +x gradlew
    <%_ if (!skipClient) { _%>
        <%_ if (clientPackageManager === 'yarn') { _%>
    - ./gradlew yarn_install -PnodeInstall --no-daemon
        <%_ } else if (clientPackageManager === 'npm') { _%>
    - ./gradlew npmInstall -PnodeInstall --no-daemon
        <%_ } _%>
    <%_ } _%>

gradle-build:
    stage: build
    script:
        - ./gradlew compileJava -x check -PnodeInstall --no-daemon
gradle-test:
    stage: test
    script:
        - ./gradlew test -PnodeInstall --no-daemon<commit_msg>Add condition on Docker and on Heroku<commit_after><%_ if (integrations.includes('docker')) { _%>
image: openjdk:8
<%_ } _%>

<%_ if (buildTool === 'gradle') { _%>
cache:
    key: "$CI_BUILD_REF_NAME"
    paths:
        - node_modules
        - .gradle/wrapper
        - .gradle/caches
<%_ } _%>
<%_ if (buildTool === 'maven') { _%>
cache:
    key: "$CI_BUILD_REF_NAME"
    paths:
        - node_modules
        - .m2
<%_ } _%>
stages:
    - build
    - test
    - package
    - release
<%_ if (integrations.includes('heroku')) { _%>
    - deploy
<%_ } _%>

<%_ if (buildTool === 'gradle') { _%>
before_script:
    - export GRADLE_USER_HOME=`pwd`/.gradle
    - chmod +x gradlew
    <%_ if (!skipClient) { _%>
        <%_ if (clientPackageManager === 'yarn') { _%>
    - ./gradlew yarn_install -PnodeInstall --no-daemon
        <%_ } else if (clientPackageManager === 'npm') { _%>
    - ./gradlew npmInstall -PnodeInstall --no-daemon
        <%_ } _%>
    <%_ } _%>

gradle-build:
    stage: build
    script:
        - ./gradlew compileJava -x check -PnodeInstall --no-daemon
gradle-test:
    stage: test
    script:
        - ./gradlew test -PnodeInstall --no-daemon
{'fraction_non_alphanumeric': 0.16848816029143898, 'fraction_numerical': 0.0018214936247723133, 'mean_word_length': 2.197962154294032, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '4657968', 'n_tokens_mistral': 854, 'n_tokens_neox': 794, 'n_words': 152}