<commit_before>#!/bin/bash

ARG_DEFS=(
  "--version=(.*)"
)

function run {
  cd ../

  echo "-- Building release..."
  rm -rf dist
  gulp build --release --version=$VERSION
  gulp build-all-modules --release --mode=default --version=$VERSION
  gulp build-all-modules --release --mode=closure --version=$VERSION
  rm -rf dist/demos

  echo "-- Cloning bower-material..."
  rm -rf bower-material
  git clone https://titanium-octobot:$ANGULARJS_MATERIAL_BOWER_TOKEN@github.com/angular/bower-material
    bower-material --depth=2

  echo "-- Copying in build files..."

  rm -rf bower-material/core
  rm -rf bower-material/modules/css
  rm -rf bower-material/modules/scss
  rm -rf bower-material/layouts

  cp -Rf dist/* bower-material/

  cd bower-material

  # Remove stale files from older builds
  rm -f ./angular-material.layouts.css
  rm -f ./angular-material.layouts.min.css
  rm -rf ./demos<commit_msg>update(scripts): fix snapshot credentials<commit_after>#!/bin/bash

ARG_DEFS=(
  "--version=(.*)"
)

function run {
  cd ../

  echo "-- Building release..."
  rm -rf dist
  gulp build --release --version=$VERSION
  gulp build-all-modules --release --mode=default --version=$VERSION
  gulp build-all-modules --release --mode=closure --version=$VERSION
  rm -rf dist/demos

  echo "-- Cloning bower-material..."
  rm -rf bower-material
  git clone https://titanium-octobot:$ANGULARJS_MATERIAL_BOWER_TOKEN@github.com/angular/bower-material \
    bower-material --depth=2

  echo "-- Copying in build files..."

  rm -rf bower-material/core
  rm -rf bower-material/modules/css
  rm -rf bower-material/modules/scss
  rm -rf bower-material/layouts

  cp -Rf dist/* bower-material/

  cd bower-material

  # Remove stale files from older builds
  rm -f ./angular-material.layouts.css
  rm -f ./angular-material.layouts.min.css
  rm -rf ./demos
{'fraction_non_alphanumeric': 0.14316702819956617, 'fraction_numerical': 0.0010845986984815619, 'mean_word_length': 2.8760504201680672, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1764878', 'n_tokens_mistral': 640, 'n_tokens_neox': 615, 'n_words': 158}