<commit_before>version: 2
# executor: "machine"
jobs:
  build:
    executor: "machine"
    steps:
      - checkout
      - run:
          name: Setup the database and (fake) secrets
          command: |
            curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` > docker-compose
            chmod +x docker-compose
            sudo mv docker-compose /usr/local/bin
            mv .circleci/circle_envs .env
            sudo docker-compose run web bundle install
            sudo docker-compose run web npm install
            sudo docker-compose run web bundle exec rails db:setup db:migrate
            sudo docker-compose run web rake keys:generate
      - run:
          name: Run RSpec
          command: |
            sudo docker-compose run web     rspec spec
      - run:
          name: Run Linters
          command: |
            sudo docker-compose run webpack npm run tslint
            sudo docker-compose run webpack npm run sass-lint<commit_msg>switch migration command order in ci<commit_after>version: 2
# executor: "machine"
jobs:
  build:
    executor: "machine"
    steps:
      - checkout
      - run:
          name: Setup the database and (fake) secrets
          command: |
            curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` > docker-compose
            chmod +x docker-compose
            sudo mv docker-compose /usr/local/bin
            mv .circleci/circle_envs .env
            sudo docker-compose run web bundle install
            sudo docker-compose run web npm install
            sudo docker-compose run web bundle exec rails db:migrate db:setup
            sudo docker-compose run web rake keys:generate
      - run:
          name: Run RSpec
          command: |
            sudo docker-compose run web     rspec spec
      - run:
          name: Run Linters
          command: |
            sudo docker-compose run webpack npm run tslint
            sudo docker-compose run webpack npm run sass-lint
{'fraction_non_alphanumeric': 0.07389402041808459, 'fraction_numerical': 0.004861448711716091, 'mean_word_length': 1.7735849056603774, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '71745', 'n_tokens_mistral': 636, 'n_tokens_neox': 575, 'n_words': 188}