<commit_before>version: 2
jobs:
  build:
    docker:
      - image: 'golang:latest'
    working_directory: /go/src/github.com/johanbrandhorst/protobuf
    steps:
      - checkout
      - run: go get -u github.com/gopherjs/gopherjs
      - run: make build
  generate:
    docker:
      - image: 'golang:latest'
    working_directory: /go/src/github.com/johanbrandhorst/protobuf
    steps:
      - checkout
      - run:
          name: Install protoc
          command: >
            apt-get update

            apt-get install -y unzip git wget python3

            rm -rf /var/lib/apt/lists/*

            wget
            https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip

            unzip protoc-3.3.0-linux-x86_64.zip -d /usr/local

            rm protoc-3.3.0-linux-x86_64.zip

            apt-get remove -y wget unzip

            apt-get autoremove -y
      - run:
          name: Install go dependencies
          command: >
            make install

            go get -u -v github.com/golang/protobuf/protoc-gen-go
            github.com/gopherjs/gopherjs
      - run:
          name: Regenerate
          command: |
            make regenerate
            git diff --exit-code
      - run:
          name: Generator tests
          command: make test
  tests:
    docker:
      - image: ypereirareis/docker-compose
    working_directory: /go/src/github.com/johanbrandhorst/protobuf
    steps:
      - checkout
      - setup_remote_docker
      - run:
          name: Browser Integration Tests
          command: make integration
workflows:
  version: 2
  build-and-test:
    jobs:
      - build
      - generate
      - tests:
          requires:
            - generate
<commit_msg>Update protoc in CI to 3.5<commit_after>version: 2
jobs:
  build:
    docker:
      - image: 'golang:latest'
    working_directory: /go/src/github.com/johanbrandhorst/protobuf
    steps:
      - checkout
      - run: go get -u github.com/gopherjs/gopherjs
      - run: make build
  generate:
    docker:
      - image: 'golang:latest'
    working_directory: /go/src/github.com/johanbrandhorst/protobuf
    steps:
      - checkout
      - run:
          name: Install protoc
          command: >
            apt-get update

            apt-get install -y unzip git wget python3

            rm -rf /var/lib/apt/lists/*

            wget
            https://github.com/google/protobuf/releases/download/v3.5.0/protoc-3.5.0-linux-x86_64.zip

            unzip protoc-3.5.0-linux-x86_64.zip -d /usr/local

            rm protoc-3.5.0-linux-x86_64.zip

            apt-get remove -y wget unzip

            apt-get autoremove -y
      - run:
          name: Install go dependencies
          command: >
            make install

            go get -u -v github.com/golang/protobuf/protoc-gen-go
            github.com/gopherjs/gopherjs
      - run:
          name: Regenerate
          command: |
            make regenerate
            git diff --exit-code
      - run:
          name: Generator tests
          command: make test
  tests:
    docker:
      - image: ypereirareis/docker-compose
    working_directory: /go/src/github.com/johanbrandhorst/protobuf
    steps:
      - checkout
      - setup_remote_docker
      - run:
          name: Browser Integration Tests
          command: make integration
workflows:
  version: 2
  build-and-test:
    jobs:
      - build
      - generate
      - tests:
          requires:
            - generate

{'fraction_non_alphanumeric': 0.09054325955734406, 'fraction_numerical': 0.01609657947686117, 'mean_word_length': 1.5053995680345573, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1262861', 'n_tokens_mistral': 1153, 'n_tokens_neox': 1066, 'n_words': 239}