<commit_before>#!/usr/bin/env bash

# Copyright 2018 Datawire. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License

set -o errexit
set -o nounset

# Set up for Kubernaut.
base64 -d < kconf.b64 | ( cd ~ ; tar xzf - )

KUBECTL_VERSION=1.10.2

curl -LO https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl
chmod +x kubectl
mv kubectl ~/bin/kubectl

pip install -q -r dev-requirements.txt
pip install -q -r ambassador/requirements.txt
npm install gitbook-cli netlify-cli

if [[ `which helm` == "" ]]; then
  curl https://storage.googleapis.com/kubernetes-helm/helm-v2.9.1-linux-amd64.tar.gz | tar xz
  chmod +x linux-amd64/helm
  sudo mv linux-amd64/helm /usr/local/bin/
  rm -rf linux-amd64
fi

# Initialize helm for indexing use.
helm init --client-only
<commit_msg>I don't think we actually need npm?<commit_after>#!/usr/bin/env bash

# Copyright 2018 Datawire. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License

set -o errexit
set -o nounset

# Set up for Kubernaut.
base64 -d < kconf.b64 | ( cd ~ ; tar xzf - )

KUBECTL_VERSION=1.10.2

curl -LO https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl
chmod +x kubectl
mv kubectl ~/bin/kubectl

pip install -q -r dev-requirements.txt
pip install -q -r ambassador/requirements.txt
#npm install gitbook-cli netlify-cli

if [[ `which helm` == "" ]]; then
  curl https://storage.googleapis.com/kubernetes-helm/helm-v2.9.1-linux-amd64.tar.gz | tar xz
  chmod +x linux-amd64/helm
  sudo mv linux-amd64/helm /usr/local/bin/
  rm -rf linux-amd64
fi

# Initialize helm for indexing use.
helm init --client-only

{'fraction_non_alphanumeric': 0.10272693313410534, 'fraction_numerical': 0.021666044079193127, 'mean_word_length': 3.7736185383244205, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '4367509', 'n_tokens_mistral': 926, 'n_tokens_neox': 861, 'n_words': 312}