<commit_before>#!/bin/ash

#set -o xtrace

# get minimum supported api version with `kubectl explain resource`
# in ash no arrays are supported, using grep on env var instead
k8s_min_version="1.7"
resources=`echo -e "ClusterRole:rbac.authorization.k8s.io/v1alpha1\n\
ClusterRole:rbac.authorization.k8s.io/v1beta1\n\
ClusterRoleBinding:rbac.authorization.k8s.io/v1beta1\n\
ClusterRoleBinding:rbac.authorization.k8s.io/v1alpha1\n\
Config:v1\n\
ConfigMap:v1\n\
DaemonSet:extensions/v1beta1\n\
Deployment:extensions/v1beta1\n\
Ingress:extensions/v1beta1\n\
PersistentVolumeClaim:v1\n\
Role:rbac.authorization.k8s.io/v1beta1\n\
RoleBinding:rbac.authorization.k8s.io/v1beta1\n\
Secret:v1\n\
Service:v1\n\
ServiceAccount:v1"`

helm init --client-only
helm repo add bugroger-charts https://raw.githubusercontent.com/BugRoger/charts/repo
helm repo add sapcc https://charts.global.cloud.sap

pwd=$(pwd)
for chart in $pwd/charts/*; do
  if [ -d "$chart" ]; then
    echo "Rendering chart in $chart ..."
    cd $chart
    # fix cross device move of overlay fs
    if [ -d "./charts" ]; then
      cp -a ./charts ./charts.bak
      rm -rf ./charts
      mv ./charts.bak ./charts
    fi
    helm dependency build --debug<commit_msg>removes unused parts<commit_after>#!/bin/ash

helm init --client-only
helm repo add bugroger-charts https://raw.githubusercontent.com/BugRoger/charts/repo
helm repo add sapcc https://charts.global.cloud.sap

pwd=$(pwd)
for chart in $pwd/charts/*; do
  if [ -d "$chart" ]; then
    echo "Rendering chart in $chart ..."
    cd $chart
    # fix cross device move of overlay fs
    if [ -d "./charts" ]; then
      cp -a ./charts ./charts.bak
      rm -rf ./charts
      mv ./charts.bak ./charts
    fi
    helm dependency build --debug
{'fraction_non_alphanumeric': 0.13314285714285715, 'fraction_numerical': 0.018857142857142857, 'mean_word_length': 3.2811735941320292, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1838606', 'n_tokens_mistral': 665, 'n_tokens_neox': 631, 'n_words': 157}