<commit_before>#!/bin/bash
# Usage: ./bin/add-package.sh namespace PackageName http://git-repository
repo=$1
name=$2
src=$3

if [ -z "$repo" ]; then
  echo "You need to supply a repository name"
  exit 1
fi

if [ -z "$name" ]; then
  echo "You need to supply a package name"
  exit 1
fi

if [ -z "$src" ]; then
  echo "You need to supply a source"
  exit 1
fi

if [ -d "src/packages/$repo/$name" ]; then
  echo "Package already installed"
  exit 1
fi

mkdir src/packages/$repo
git clone --recursive $src src/packages/$repo/$name
pushd src/packages/$repo/$name
npm install
popd
node osjs config:add --name=repositories --value=$repo
node osjs build:manifest
node osjs build:package --name=$reoo/$name<commit_msg>Fixed a typo in bin/add-package.sh<commit_after>#!/bin/bash
# Usage: ./bin/add-package.sh namespace PackageName http://git-repository
repo=$1
name=$2
src=$3

if [ -z "$repo" ]; then
  echo "You need to supply a repository name"
  exit 1
fi

if [ -z "$name" ]; then
  echo "You need to supply a package name"
  exit 1
fi

if [ -z "$src" ]; then
  echo "You need to supply a source"
  exit 1
fi

if [ -d "src/packages/$repo/$name" ]; then
  echo "Package already installed"
  exit 1
fi

mkdir src/packages/$repo
git clone --recursive $src src/packages/$repo/$name
pushd src/packages/$repo/$name
npm install
popd
node osjs config:add --name=repositories --value=$repo
node osjs build:manifest
node osjs build:package --name=$repo/$name
{'fraction_non_alphanumeric': 0.13513513513513514, 'fraction_numerical': 0.009702009702009701, 'mean_word_length': 3.6580645161290324, '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': '1502051', 'n_tokens_mistral': 511, 'n_tokens_neox': 486, 'n_words': 179}