<commit_before>#!/bin/sh

if [ $# -eq 0 ]; then
  echo 'Please specify package to release'
  exit 0
fi

release_package() {
  cd $1
  echo $1

  if [ -f "webpack.config.release.js" ]; then
    node node_modules/webpack/bin/webpack --config webpack.config.release.js
    echo "building webpack"
  fi

  # VERSION=$(npm view flint version -loglevel silent)
  # git tag -a "v$VERSION" -m "`git log -1 --format=%s`"
  npm publish --tag beta
  cd ../..
}

release_tools() {
  echo "Tools"
  cd apps/tools
  flint build
  cd .flint
	npm publish --tag beta
  cd ../..
}

release_all() {
  for pkg in packages/*; do
    [ -d "${pkg}" ] || continue # if not a directory, skip
    release_package ${pkg}
  done
  release_tools
  git commit -am 'vbump all'
}

if [ $1 = "all" ]; then
  release_all
elif [ $1 = "tools" ]; then
  release_tools
else
  release_package packages/$1
fi<commit_msg>maybe tag is causing problems<commit_after>#!/bin/sh

if [ $# -eq 0 ]; then
  echo 'Please specify package to release'
  exit 0
fi

release_package() {
  cd $1
  echo $1

  if [ -f "webpack.config.release.js" ]; then
    node node_modules/webpack/bin/webpack --config webpack.config.release.js
    echo "building webpack"
  fi

  # VERSION=$(npm view flint version -loglevel silent)
  # git tag -a "v$VERSION" -m "`git log -1 --format=%s`"
  npm publish
  cd ../..
}

release_tools() {
  echo "Tools"
  cd apps/tools
  flint build
  cd .flint
	npm publish
  cd ../..
}

release_all() {
  for pkg in packages/*; do
    [ -d "${pkg}" ] || continue # if not a directory, skip
    release_package ${pkg}
  done
  release_tools
  git commit -am 'vbump all'
}

if [ $1 = "all" ]; then
  release_all
elif [ $1 = "tools" ]; then
  release_tools
else
  release_package packages/$1
fi
{'fraction_non_alphanumeric': 0.13911060433295325, 'fraction_numerical': 0.009122006841505131, 'mean_word_length': 2.7580299785867237, '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': '6299816', 'n_tokens_mistral': 651, 'n_tokens_neox': 628, 'n_words': 203}