<commit_before>
version: 2
jobs:
 build:
   machine:
      docker_layer_caching: true
   steps:
     - checkout
     - run: docker build -t xibo-linux .
     - run: docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v $(pwd)/build:/build xibo-linux
     - persist_to_workspace:
          root: /home/circleci/
          paths:
            - project
            
 snap-player:
    machine: true
    steps:
      - attach_workspace:
          at: /home/circleci/
      - checkout
      - run: docker run -v $(pwd):/my-snap snapcore/snapcraft sh -c "cd /my-snap && snapcraft"
      - persist_to_workspace:
          root: /home/circleci/
          paths:
            - project/*.snap
            
 push-snap-to-store:
    machine: true
    steps:
      - attach_workspace:
          at: /home/circleci/
      - run: sudo apt update && sudo apt-get install gnupg2
      - run: gpg -d --batch --passphrase $SNAP_KEY -o credentials.cfg .circleci/credentials.gpg
      - run: |
          if [[ $CIRCLE_BRANCH == "master" ]]; then RELEASE_CHANNEL=beta; else RELEASE_CHANNEL=edge; fi
          docker run -e RELEASE_CHANNEL=$RELEASE_CHANNEL -v $(pwd):/my-snap snapcore/snapcraft sh -c \
          "cd /my-snap && snapcraft login --with credentials.cfg && snapcraft push *.snap --release $RELEASE_CHANNEL"
      
workflows:
  version: 2
  main:
    jobs:
      - build:
         filters:
            tags:
              only: /.*/
      - snap-player:
          requires:
            - build
          filters:
            tags:
              only: /.*/
            branches:
              only:
                - master
                - develop
      - push-snap-to-store:
          requires:
            - build
            - snap-player
          filters:
            tags:
              only: /.*/<commit_msg>Added branch filters<commit_after>
version: 2
jobs:
 build:
   machine:
      docker_layer_caching: true
   steps:
     - checkout
     - run: docker build -t xibo-linux .
     - run: docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v $(pwd)/build:/build xibo-linux
     - persist_to_workspace:
          root: /home/circleci/
          paths:
            - project
            
 snap-player:
    machine: true
    steps:
      - attach_workspace:
          at: /home/circleci/
      - checkout
      - run: docker run -v $(pwd):/my-snap snapcore/snapcraft sh -c "cd /my-snap && snapcraft"
      - persist_to_workspace:
          root: /home/circleci/
          paths:
            - project/*.snap
            
 push-snap-to-store:
    machine: true
    steps:
      - attach_workspace:
          at: /home/circleci/
      - run: sudo apt update && sudo apt-get install gnupg2
      - run: gpg -d --batch --passphrase $SNAP_KEY -o credentials.cfg .circleci/credentials.gpg
      - run: |
          if [[ $CIRCLE_BRANCH == "master" ]]; then RELEASE_CHANNEL=beta; else RELEASE_CHANNEL=edge; fi
          docker run -e RELEASE_CHANNEL=$RELEASE_CHANNEL -v $(pwd):/my-snap snapcore/snapcraft sh -c \
          "cd /my-snap && snapcraft login --with credentials.cfg && snapcraft push *.snap --release $RELEASE_CHANNEL"
      
workflows:
  version: 2
  main:
    jobs:
      - build:
         filters:
            tags:
              only: /.*/
      - snap-player:
          requires:
            - build
          filters:
            tags:
              only: /.*/
            branches:
              only:
                - master
                - develop
      - push-snap-to-store:
          requires:
            - build
            - snap-player
          filters:
            tags:
              only: /.*/
            branches:
                only:
                  - master
                  - develop
{'fraction_non_alphanumeric': 0.11223404255319148, 'fraction_numerical': 0.003723404255319149, 'mean_word_length': 1.3316800991940483, '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': '7445175', 'n_tokens_mistral': 1182, 'n_tokens_neox': 1129, 'n_words': 276}