<commit_before>version: 2
jobs:
  build:
    working_directory: ~/phovea
    docker:
      - image: circleci/node:6-browsers
    steps:
      - checkout
      - restore_cache:
          key: deps2-{{ .Branch }}-{{ checksum "package.json" }}
      - run:
          name: install-npm-wee
          command: npm install
      - run: #remove all resolved github dependencies
          name: delete-vcs-dependencies
          command: |
            (grep -l '._resolved.: .\(git[^:]*\|bitbucket\):' ./node_modules/*/package.json || true) | xargs -r dirname | xargs -r rm -rf
      - save_cache:
          key: deps2-{{ .Branch }}-{{ checksum "package.json" }}
          paths:
          - ./node_modules
      - run: #install all dependencies
          name: install-npm-wee2
          command: npm install
      - run:
          name: dist
          command: npm run dist
      - store_artifacts:
          path: dist
      - run: #update build doc and readme
          name: update api
          command: |
            if [ "${CIRCLE_BRANCH}" == "develop" ] || [ "${CIRCLE_BRANCH}" == "master" ] ; then
                git clone <EMAIL>:sgratzl/lineupjs_docs.git
                cd lineupjs_docs
                rm -rf "${CIRCLE_BRANCH}/"
                if [ "${CIRCLE_BRANCH}" == "master" ] ; then
                  rm README.md
                  cp ../README.md README.md<commit_msg>adapt to repo renaming<commit_after>version: 2
jobs:
  build:
    working_directory: ~/phovea
    docker:
      - image: circleci/node:6-browsers
    steps:
      - checkout
      - restore_cache:
          key: deps2-{{ .Branch }}-{{ checksum "package.json" }}
      - run:
          name: install-npm-wee
          command: npm install
      - run: #remove all resolved github dependencies
          name: delete-vcs-dependencies
          command: |
            (grep -l '._resolved.: .\(git[^:]*\|bitbucket\):' ./node_modules/*/package.json || true) | xargs -r dirname | xargs -r rm -rf
      - save_cache:
          key: deps2-{{ .Branch }}-{{ checksum "package.json" }}
          paths:
          - ./node_modules
      - run: #install all dependencies
          name: install-npm-wee2
          command: npm install
      - run:
          name: dist
          command: npm run dist
      - store_artifacts:
          path: dist
      - run: #update build doc and readme
          name: update api
          command: |
            if [ "${CIRCLE_BRANCH}" == "develop" ] || [ "${CIRCLE_BRANCH}" == "master" ] ; then
                git clone <EMAIL>:sgratzl/lineupjs.org.git
                cd lineupjs.org
                rm -rf "${CIRCLE_BRANCH}/"
                if [ "${CIRCLE_BRANCH}" == "master" ] ; then
                  rm README.md
                  cp ../README.md README.md
{'fraction_non_alphanumeric': 0.1291020555355211, 'fraction_numerical': 0.003606202668589975, 'mean_word_length': 1.5590405904059041, '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': '5749927', 'n_tokens_mistral': 884, 'n_tokens_neox': 844, 'n_words': 212}