<commit_before>version: 2

jobs:
  "openjdk-7":
    working_directory: ~/circleci-greenmail

    docker:
        - image: openjdk:7u151-jdk-alpine3.7
          environment:
            TZ: UTC

    environment:
      MAVEN_HOME: /usr/share/maven
    steps:
      - checkout

      - run: >
          apk add --no-cache curl docker
          && service docker start
          && mkdir -p /usr/share/maven
          && curl -fsSL -o /tmp/apache-maven.tar.gz http://www-us.apache.org/dist/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gz
          && tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1
          && rm -f /tmp/apache-maven.tar.gz
          && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn

      - restore_cache:
          key: greenmail-{{ checksum "pom.xml" }}
      
      - run: mvn -V clean package -DskipTests dependency:go-offline -pl "!greenmail-junit5" -P docker
      
      - save_cache:
          paths:
            - ~/.m2
          key: greenmail-{{ checksum "pom.xml" }}
      
      - run: mvn -V -pl "!greenmail-junit5" clean install -P docker

      - run:
          name: Save test results
          command: |
            mkdir -p ~/junit/
            find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/junit/ \;
          when: always
      - store_test_results:
          path: ~/junit
      - store_artifacts:
          path: ~/junit<commit_msg>Migrating to circleci 2.0 : Start docker service (added openrc)<commit_after>version: 2

jobs:
  "openjdk-7":
    working_directory: ~/circleci-greenmail

    docker:
        - image: openjdk:7u151-jdk-alpine3.7
          environment:
            TZ: UTC

    environment:
      MAVEN_HOME: /usr/share/maven
    steps:
      - checkout

      - run: >
          apk add --no-cache curl openrc docker
          && service docker start
          && mkdir -p /usr/share/maven
          && curl -fsSL -o /tmp/apache-maven.tar.gz http://www-us.apache.org/dist/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gz
          && tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1
          && rm -f /tmp/apache-maven.tar.gz
          && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn

      - restore_cache:
          key: greenmail-{{ checksum "pom.xml" }}
      
      - run: mvn -V clean package -DskipTests dependency:go-offline -pl "!greenmail-junit5" -P docker
      
      - save_cache:
          paths:
            - ~/.m2
          key: greenmail-{{ checksum "pom.xml" }}
      
      - run: mvn -V -pl "!greenmail-junit5" clean install -P docker

      - run:
          name: Save test results
          command: |
            mkdir -p ~/junit/
            find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/junit/ \;
          when: always
      - store_test_results:
          path: ~/junit
      - store_artifacts:
          path: ~/junit
{'fraction_non_alphanumeric': 0.13684570646595964, 'fraction_numerical': 0.013684570646595963, 'mean_word_length': 1.5604203152364273, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '7179180', 'n_tokens_mistral': 1048, 'n_tokens_neox': 976, 'n_words': 216}