<commit_before>box: nodesource/node:trusty
# Build definition
build:
  # The steps that will be executed on build
    steps:
      - script:
            name: set up permissions
            code: |
              export NODE_ENV=development
              chmod 777 -R .
              chmod 777 -R $WERCKER_CACHE_DIR
      # install npm2
      - script:
            name: install npm@2
            code: | 
              npm cache clean
              sudo npm i -g npm
    
      - npm-install
        
    #- script:
    #      name: npm install
    #       code: sudo npm install
        
      - script:
            name: npm postinstall
            code: |
                rm -rf node_modules/@local
                ./node_modules/.bin/linklocal link -r
                ./node_modules/.bin/linklocal list -r | ./node_modules/.bin/bulk -c 'npm install'
        
      # gulp build the docs    
      - hgen/gulp:
            tasks: build

    after-steps:
        - kobim/slack-post:
            url: $SLACK_URL
            channel: general 
            username: megatron


deploy:
    steps:
    - install-packages:
        packages: wget libmagic1 python-dateutil s3cmd
    - s3sync:
        source_dir: build/
        delete-removed: false
        bucket-url: $AWS_BUCKET_URL
        key-id: $AWS_ACCESS_KEY_ID
        key-secret: $AWS_SECRET_ACCESS_KEY

    after-steps:
        - kobim/slack-post:
            url: $SLACK_URL
            channel: general
            username: megatron
<commit_msg>send notifications to different channel<commit_after>box: nodesource/node:trusty
# Build definition
build:
  # The steps that will be executed on build
    steps:
      - script:
            name: set up permissions
            code: |
              export NODE_ENV=development
              chmod 777 -R .
              chmod 777 -R $WERCKER_CACHE_DIR
      # install npm2
      - script:
            name: install npm@2
            code: | 
              npm cache clean
              sudo npm i -g npm
    
      - npm-install
        
    #- script:
    #      name: npm install
    #       code: sudo npm install
        
      - script:
            name: npm postinstall
            code: |
                rm -rf node_modules/@local
                ./node_modules/.bin/linklocal link -r
                ./node_modules/.bin/linklocal list -r | ./node_modules/.bin/bulk -c 'npm install'
        
      # gulp build the docs    
      - hgen/gulp:
            tasks: build

    after-steps:
        - kobim/slack-post:
            url: $SLACK_URL
            channel: notifications 
            username: megatron


deploy:
    steps:
    - install-packages:
        packages: wget libmagic1 python-dateutil s3cmd
    - s3sync:
        source_dir: build/
        delete-removed: false
        bucket-url: $AWS_BUCKET_URL
        key-id: $AWS_ACCESS_KEY_ID
        key-secret: $AWS_SECRET_ACCESS_KEY

    after-steps:
        - kobim/slack-post:
            url: $SLACK_URL
            channel: notifications
            username: megatron

{'fraction_non_alphanumeric': 0.07414698162729659, 'fraction_numerical': 0.007217847769028871, 'mean_word_length': 1.3186311787072242, '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': '6655426', 'n_tokens_mistral': 940, 'n_tokens_neox': 878, 'n_words': 230}