<commit_before>#!/bin/bash

# Wide package tool.
# 
# Command: 
#  ./pkg.sh ${version} ${target}
# Example:
#  ./pkg.sh 1.0.1 /home/daniel/1.0.1/

ver=$1
target=$2
list="conf doc i18n static views README.md TERMS.md LICENSE"

mkdir -p ${target}

echo version=${ver}
echo target=${target}

## darwin
os=darwin

export GOOS=${os}
export GOARCH=386
go build
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
rm -f wide

export GOOS=${os}
export GOARCH=amd64
go build
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
rm -f wide

## linux
os=linux

export GOOS=${os}
export GOARCH=386
go build
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
rm -f wide

export GOOS=${os}
export GOARCH=amd64
go build
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
rm -f wide

## windows
os=windows

export GOOS=${os}
export GOARCH=386
go build
zip -r ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} wide.exe --exclude=conf/*.go --exclude=i18n/*.go
rm -f wide.exe

export GOOS=${os}
export GOARCH=amd64
go build
zip -r ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} wide.exe --exclude=conf/*.go --exclude=i18n/*.go
rm -f wide.exe<commit_msg>package script<commit_after>#!/bin/bash

# Wide package tool.
# 
# Command: 
#  ./pkg.sh ${version} ${target}
# Example:
#  ./pkg.sh 1.0.0 /home/daniel/1.0.0/

ver=$1
target=$2
list="conf doc i18n static views README.md TERMS.md LICENSE"

mkdir -p ${target}

echo version=${ver}
echo target=${target}

## darwin
os=darwin

export GOOS=${os}
export GOARCH=386
go build
go build github.com/88250/ide_stub
go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/ide_stub .
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode .
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} ide_stub gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
rm -f wide ide_stub gocode

export GOOS=${os}
export GOARCH=amd64
go build
go build github.com/88250/ide_stub
go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/ide_stub .
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode .
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} ide_stub gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
rm -f wide ide_stub gocode

## linux
os=linux

export GOOS=${os}
export GOARCH=386
go build
go build github.com/88250/ide_stub
go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/ide_stub .
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode .
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} ide_stub gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
rm -f wide ide_stub gocode

export GOOS=${os}
export GOARCH=amd64
go build
go build github.com/88250/ide_stub
go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/ide_stub .
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode .
tar zcvf ${target}/wide-${ver}-${GOOS}-${GOARCH}.tar.gz ${list} ide_stub gocode wide --exclude-vcs --exclude='conf/*.go' --exclude='i18n/*.go'
rm -f wide ide_stub gocode

## windows
os=windows

export GOOS=${os}
export GOARCH=386
go build
go build github.com/88250/ide_stub
go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/ide_stub.exe .
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode.exe .
zip -r ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} ide_stub.exe gocode.exe wide.exe --exclude=conf/*.go --exclude=i18n/*.go
rm -f wide.exe ide_stub.exe gocode.exe

export GOOS=${os}
export GOARCH=amd64
go build
go build github.com/88250/ide_stub
go build github.com/nsf/gocode
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/ide_stub.exe .
cp ${GOPATH}/bin/${GOOS}_${GOARCH}/gocode.exe .
zip -r ${target}/wide-${ver}-${GOOS}-${GOARCH}.zip ${list} ide_stub.exe gocode.exe wide.exe --exclude=conf/*.go --exclude=i18n/*.go
rm -f wide.exe ide_stub.exe gocode.exe

{'fraction_non_alphanumeric': 0.2136878385032004, 'fraction_numerical': 0.025603151157065487, 'mean_word_length': 4.297262059973924, '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': '1096748', 'n_tokens_mistral': 1771, 'n_tokens_neox': 1678, 'n_words': 354}