<commit_before>#!/bin/bash

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

function run {
  cd ../

  echo "-- Building docs site release..."
  rm -rf dist
  gulp docs --release

  echo "-- Cloning code.material.angularjs.org..."
  rm -rf code.material.angularjs.org
  git clone https://angular:$GH_TOKEN@github.com/angular/code.material.angularjs.org.git --depth=1

  echo "-- Remove previous snapshot..."
  rm -rf code.material.angularjs.org/HEAD

  echo "-- Copying docs site to snapshot..."
  cp -Rf dist/docs code.material.angularjs.org/HEAD

  cd code.material.angularjs.org<commit_msg>update(docs): replaces rawgit url in HEAD with CDN-based url<commit_after>#!/bin/bash

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

function run {
  cd ../

  echo "-- Building docs site release..."
  rm -rf dist
  gulp docs --release

  echo "-- Cloning code.material.angularjs.org..."
  rm -rf code.material.angularjs.org
  git clone https://angular:$GH_TOKEN@github.com/angular/code.material.angularjs.org.git --depth=1

  echo "-- Remove previous snapshot..."
  rm -rf code.material.angularjs.org/HEAD

  echo "-- Copying docs site to snapshot..."
  sed -i '' "s,/rawgit.com/angular/bower-material/master/angular-material,cdn.rawgit.com/angular/bower-material/$VERSION/angular-material,g" dist/docs/docs.js
  cp -Rf dist/docs code.material.angularjs.org/HEAD

  cd code.material.angularjs.org
{'fraction_non_alphanumeric': 0.15712187958883994, 'fraction_numerical': 0.0014684287812041115, 'mean_word_length': 3.093093093093093, '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': '5691580', 'n_tokens_mistral': 472, 'n_tokens_neox': 444, 'n_words': 103}