<commit_before>#!/usr/bin/env sh
if [ "$TRAVIS" = "" ]; then
    echo "went inside!"
    export PACKAGE_BASE=build
    export ELECTRON_OUT=linq-editor-ubuntu-x64
    export OMNISHARP_ZIP=omnisharp-ubuntu-x64-netcoreapp1.0.tar.gz
    rm -rf $PACKAGE_BASE
fi
# todo must be an argument
mkdir $PACKAGE_BASE
mkdir $PACKAGE_BASE/omnisharp
mkdir $PACKAGE_BASE/resources
mkdir $PACKAGE_BASE/resources/fonts
mkdir $PACKAGE_BASE/resources/fonts/source-code-pro
mkdir $PACKAGE_BASE/resources/fonts/source-code-pro/WOFF2
mkdir $PACKAGE_BASE/resources/fonts/source-code-pro/WOFF2/TTF
mkdir $PACKAGE_BASE/resources/fonts/source-sans-pro
mkdir $PACKAGE_BASE/resources/fonts/source-sans-pro/WOFF2
mkdir $PACKAGE_BASE/resources/fonts/source-sans-pro/WOFF2/TTF
ls $OMNISHARP_ZIP
file $OMNISHARP_ZIP
tar -xzf $OMNISHARP_ZIP --directory $PACKAGE_BASE/omnisharp
npm install
# makes tslint ignore the typings folder ...
echo {} > typings/tslint.json
cat typings/tslint.json
npm run-script gulp-build
npm run-script bundle
cp index.static.html $PACKAGE_BASE/index.html
# electron adds a LICSENSE as well
cp LICENSE $PACKAGE_BASE/linq-editor-license.txt
cp electron-main.js $PACKAGE_BASE/electron-main.js
cp omnisharp-setup.js $PACKAGE_BASE/omnisharp-setup.js
cp package.json $PACKAGE_BASE/package.json
cp node_modules/zone.js/dist/zone.js $PACKAGE_BASE/zone.js
cp node_modules/reflect-metadata/Reflect.js $PACKAGE_BASE/Reflect.js
# glyphicons
cp node_modules/bootstrap/dist/fonts/* $PACKAGE_BASE/resources/fonts
# adobe source code/source sans fonts
# chrome only seems to load 
cp -r resources/fonts/source-code-pro/WOFF2/TTF/* $PACKAGE_BASE/resources/fonts/source-code-pro/WOFF2/TTF
cp -r resources/fonts/source-sans-pro/WOFF2/TTF/* $PACKAGE_BASE/resources/fonts/source-sans-pro/WOFF2/TTF
dotnet restore
dotnet publish --configuration Release --output $PACKAGE_BASE/query --runtime ubuntu.14.04-x64 --framework netcoreapp1.0
#dotnet publish --configuration Release --output linq-editor-ubuntu-x64/resources/app/query --runtime ubuntu.14.04-x64 --framework netcoreapp1.0
cp project.json $PACKAGE_BASE/project.json
cp project.lock.json $PACKAGE_BASE/project.lock.json
cp project.json $PACKAGE_BASE/query/project.json
cp project.lock.json $PACKAGE_BASE/query/project.lock.json
npm run-script package_electron_linux
<commit_msg>remove debug<commit_after>#!/usr/bin/env sh
if [ "$TRAVIS" = "" ]; then
    echo "went inside!"
    export PACKAGE_BASE=build
    export ELECTRON_OUT=linq-editor-ubuntu-x64
    export OMNISHARP_ZIP=omnisharp-ubuntu-x64-netcoreapp1.0.tar.gz
    rm -rf $PACKAGE_BASE
fi
# todo must be an argument
mkdir $PACKAGE_BASE
mkdir $PACKAGE_BASE/omnisharp
mkdir $PACKAGE_BASE/resources
mkdir $PACKAGE_BASE/resources/fonts
mkdir $PACKAGE_BASE/resources/fonts/source-code-pro
mkdir $PACKAGE_BASE/resources/fonts/source-code-pro/WOFF2
mkdir $PACKAGE_BASE/resources/fonts/source-code-pro/WOFF2/TTF
mkdir $PACKAGE_BASE/resources/fonts/source-sans-pro
mkdir $PACKAGE_BASE/resources/fonts/source-sans-pro/WOFF2
mkdir $PACKAGE_BASE/resources/fonts/source-sans-pro/WOFF2/TTF
tar -xzf $OMNISHARP_ZIP --directory $PACKAGE_BASE/omnisharp
npm install
# makes tslint ignore the typings folder ...
echo {} > typings/tslint.json
cat typings/tslint.json
npm run-script gulp-build
npm run-script bundle
cp index.static.html $PACKAGE_BASE/index.html
# electron adds a LICSENSE as well
cp LICENSE $PACKAGE_BASE/linq-editor-license.txt
cp electron-main.js $PACKAGE_BASE/electron-main.js
cp omnisharp-setup.js $PACKAGE_BASE/omnisharp-setup.js
cp package.json $PACKAGE_BASE/package.json
cp node_modules/zone.js/dist/zone.js $PACKAGE_BASE/zone.js
cp node_modules/reflect-metadata/Reflect.js $PACKAGE_BASE/Reflect.js
# glyphicons
cp node_modules/bootstrap/dist/fonts/* $PACKAGE_BASE/resources/fonts
# adobe source code/source sans fonts
# chrome only seems to load 
cp -r resources/fonts/source-code-pro/WOFF2/TTF/* $PACKAGE_BASE/resources/fonts/source-code-pro/WOFF2/TTF
cp -r resources/fonts/source-sans-pro/WOFF2/TTF/* $PACKAGE_BASE/resources/fonts/source-sans-pro/WOFF2/TTF
dotnet restore
dotnet publish --configuration Release --output $PACKAGE_BASE/query --runtime ubuntu.14.04-x64 --framework netcoreapp1.0
#dotnet publish --configuration Release --output linq-editor-ubuntu-x64/resources/app/query --runtime ubuntu.14.04-x64 --framework netcoreapp1.0
cp project.json $PACKAGE_BASE/project.json
cp project.lock.json $PACKAGE_BASE/project.lock.json
cp project.json $PACKAGE_BASE/query/project.json
cp project.lock.json $PACKAGE_BASE/query/project.lock.json
npm run-script package_electron_linux

{'fraction_non_alphanumeric': 0.1094331363536879, 'fraction_numerical': 0.01400744145327205, 'mean_word_length': 5.061007957559681, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6224198', 'n_tokens_mistral': 1724, 'n_tokens_neox': 1599, 'n_words': 309}