<commit_before># -*- mode: yaml -*-

version: 2
jobs:
  test-1.9:
    working_directory: /go/src/go.universe.tf/netboot
    docker:
      - image: circleci/golang:1.9
    steps:
      - checkout
      - run: make ci-prepare
      - run: make build
      - run: make test
      - run: make lint
  test-1.10beta2:
    working_directory: /go/src/go.universe.tf/netboot
    docker:
      - image: circleci/golang:1.10beta2
    steps:
      - checkout
      - run: make ci-prepare
      - run: make build
      - run: make test
      - run: make lint
  deploy:
    working_directory: /go/src/go.universe.tf/metallb
    docker:
      - image: circleci/golang:1.9
    steps:
      - checkout
      - setup_remote_docker
      - run: echo $CIRCLE_BRANCH
      - run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
      - run: make ci-prepare
      - run: ci-push-images TAG=${CIRCLE_BRANCH:-${CIRCLE_TAG}}
workflows:
  version: 2
  test-and-deploy:
    jobs:
      - test-1.9:
          filters:
            tags:
              only: /.*/
      - test-1.10beta2:
          filters:
            tags:
              only: /.*/
      - deploy:
          filters:
            branches:
              ignore: /pull\/.*/
            tags:
              only: /.*/
          requires:
            - test-1.8
            - test-1.9<commit_msg>Fix CircleCI config.<commit_after># -*- mode: yaml -*-

version: 2
jobs:
  test-1.9:
    working_directory: /go/src/go.universe.tf/netboot
    docker:
      - image: circleci/golang:1.9
    steps:
      - checkout
      - run: make ci-prepare
      - run: make build
      - run: make test
      - run: make lint
  test-1.10beta2:
    working_directory: /go/src/go.universe.tf/netboot
    docker:
      - image: circleci/golang:1.10beta2
    steps:
      - checkout
      - run: make ci-prepare
      - run: make build
      - run: make test
      - run: make lint
  deploy:
    working_directory: /go/src/go.universe.tf/metallb
    docker:
      - image: circleci/golang:1.9
    steps:
      - checkout
      - setup_remote_docker
      - run: echo $CIRCLE_BRANCH
      - run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
      - run: make ci-prepare
      - run: ci-push-images TAG=${CIRCLE_BRANCH:-${CIRCLE_TAG}}
workflows:
  version: 2
  test-and-deploy:
    jobs:
      - test-1.9:
          filters:
            tags:
              only: /.*/
      - test-1.10beta2:
          filters:
            tags:
              only: /.*/
      - deploy:
          filters:
            branches:
              ignore: /pull\/.*/
            tags:
              only: /.*/
          requires:
            - test-1.9
{'fraction_non_alphanumeric': 0.12102874432677761, 'fraction_numerical': 0.018910741301059002, 'mean_word_length': 1.3850315599639316, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7516122', 'n_tokens_mistral': 944, 'n_tokens_neox': 899, 'n_words': 188}