<commit_before>version: 2.0
jobs:
  build:
    docker:
      - image: clojure:lein-2.8.1
        environment:
          - DB_PORT: 5432
          - CLOJARS_ENVIRONMENT: test
      - image: postgres:12.1
        environment:
          - POSTGRES_USER=clojars
          - POSTGRES_PASSWORD=<PASSWORD>
          - POSTGRES_DB=clojars
    working_directory: ~/clojars
    steps:
      - checkout
      - restore_cache:
          keys:
            - clojars-{{ checksum "project.clj" }}
      - run: lein deps
      - save_cache:
          paths:
            - $HOME/.m2
            - $HOME/.lein
          key: clojars-{{ checksum "project.clj" }}
      - run: lein do run -m user/migrate, test, uberjar
      - store_test_results:
          path: target/test-results
      - run: mv target/uberjar/clojars-web-*-standalone.jar clojars-uberjar.jar
      - store_artifacts:
          path: clojars-uberjar.jar
          destination: uberjar<commit_msg>Add clj-kondo linting to CI build<commit_after>version: 2.0
jobs:
  build:
    docker:
      - image: clojure:lein-2.8.1
        environment:
          - DB_PORT: 5432
          - CLOJARS_ENVIRONMENT: test
      - image: postgres:12.1
        environment:
          - POSTGRES_USER=clojars
          - POSTGRES_PASSWORD=<PASSWORD>
          - POSTGRES_DB=clojars
    working_directory: ~/clojars
    steps:
      - checkout
      - restore_cache:
          keys:
            - clojars-{{ checksum "project.clj" }}
      - run: lein deps
      - save_cache:
          paths:
            - $HOME/.m2
            - $HOME/.lein
          key: clojars-{{ checksum "project.clj" }}
      - run: lein do run -m user/migrate, test, uberjar
      - run: ./bin/clj-kondo --lint src test
      - store_test_results:
          path: target/test-results
      - run: mv target/uberjar/clojars-web-*-standalone.jar clojars-uberjar.jar
      - store_artifacts:
          path: clojars-uberjar.jar
          destination: uberjar
{'fraction_non_alphanumeric': 0.10566615620214395, 'fraction_numerical': 0.013272077590607452, 'mean_word_length': 1.6344086021505377, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4782064', 'n_tokens_mistral': 692, 'n_tokens_neox': 664, 'n_words': 125}