<commit_before>#!/bin/bash
set -e
set -v
workdir=`pwd`
output=$workdir/out
# atom_commons=$workdir/sts4/atom-extensions/atom-commons
# atom_package=$workdir/package_sources
atom_package=$workdir/sts4/atom-extensions/$package_name

url=`cat fatjar/url`
fatjar_version=`cat fatjar/version`

# cd $atom_commons
# npm install

cd $atom_package

# npm install ${atom_commons}

cat > properties.json << EOF
{
    "jarUrl": "${url}"
}
EOF

npm install

# push code to release repository

cd $workdir
mkdir -p out/repo
# enable hidden files for * matcher
shopt -s dotglob
cp -a $atom_package/* out/repo
cp -a release_repo/.git out/repo/.git
# disable hidden files for * matcher
shopt -u dotglob
cp $atom_package/.gitignore-release out/repo/.gitignore
rm -f out/repo/.gitignore-release

cd out/repo

git config user.email "<EMAIL>"
git config user.name "<NAME>"

git add .

git commit \
    -m "Publish ${fatjar_version}"

# Publsuh linkable artifact to S3

cd $atom_package
npm install bundle-deps

node ./node_modules/bundle-deps/bundle-deps .

basename=$(npm pack | tee /dev/tty)

timestamp=`date -u +%Y%m%d%H%M`

length=${#basename}

newName=${basename:0:${length}-4}-$timestamp${basename:${length}-4:${length}}

cp ${basename} $output/${newName}
<commit_msg>Debugging atom build<commit_after>#!/bin/bash
set -e
set -v
workdir=`pwd`
output=$workdir/out
# atom_commons=$workdir/sts4/atom-extensions/atom-commons
# atom_package=$workdir/package_sources
atom_package=$workdir/sts4/atom-extensions/$package_name

url=`cat fatjar/url`
fatjar_version=`cat fatjar/version`

# cd $atom_commons
# npm install

cd $atom_package

# npm install ${atom_commons}

cat > properties.json << EOF
{
    "jarUrl": "${url}"
}
EOF

npm install

cd $atom_package/node_modules/pivotal-atom-languageclient-commons
ls
cd $atom_package

# push code to release repository

cd $workdir
mkdir -p out/repo
# enable hidden files for * matcher
shopt -s dotglob
cp -a $atom_package/* out/repo
cp -a release_repo/.git out/repo/.git
# disable hidden files for * matcher
shopt -u dotglob
cp $atom_package/.gitignore-release out/repo/.gitignore
rm -f out/repo/.gitignore-release

cd out/repo

git config user.email "<EMAIL>"
git config user.name "<NAME>"

git add .

git commit \
    -m "Publish ${fatjar_version}"

# Publish linkable artifact to S3

cd $atom_package
npm install bundle-deps

node ./node_modules/bundle-deps/bundle-deps .

cd $atom_package/node_modules/pivotal-atom-languageclient-commons
ls
cd $atom_package

basename=$(npm pack | tee /dev/tty)

timestamp=`date -u +%Y%m%d%H%M`

length=${#basename}

newName=${basename:0:${length}-4}-$timestamp${basename:${length}-4:${length}}

cp ${basename} $output/${newName}

{'fraction_non_alphanumeric': 0.1390851617701748, 'fraction_numerical': 0.004462625511342506, 'mean_word_length': 4.735607675906183, 'pattern_counts': {'":': 2, '<': 11, '<?xml version=': 0, '>': 9, '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': '350529', 'n_tokens_mistral': 993, 'n_tokens_neox': 962, 'n_words': 236}