<commit_before># Copyright 2015 ThoughtWorks, Inc.

# This file is part of Gauge.

# Gauge is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# Gauge is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with Gauge.  If not, see <http://www.gnu.org/licenses/>.

param (
    [switch]$nightly = $false
)

if ("$env:GOPATH" -eq "") {
    $env:GOPATH=$pwd
}
if ("$env:GOBIN" -eq "") {
    $env:GOBIN="$env:GOPATH\bin"
}

Set-Location -Path "$env:GOPATH\src\github.com\getgauge\gauge"

go get github.com/tools/godep 
& "$env:GOBIN\godep.exe" "restore"

Push-Location "$pwd\bin\windows_amd64"
signtool sign /f $env:CERT_FILE /p "$env:CERT_FILE_PWD" gauge.exe
Pop-Location

Push-Location "$pwd\bin\windows_386"
signtool sign /f $env:CERT_FILE /p "$env:CERT_FILE_PWD" gauge.exe
Pop-Location

$nightlyFlag = If ($nightly) {"--nightly"} Else {""}
& go run build/make.go --distro --certFile $env:CERT_FILE --certFilePwd "$env:CERT_FILE_PWD" --bin-dir bin\windows_amd64 $nightlyFlag
& go run build/make.go --distro --certFile $env:CERT_FILE --certFilePwd "$env:CERT_FILE_PWD" --bin-dir bin\windows_386 $nightlyFlag
<commit_msg>Setting error perfernce for windows sign script<commit_after># Copyright 2015 ThoughtWorks, Inc.

# This file is part of Gauge.

# Gauge is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# Gauge is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with Gauge.  If not, see <http://www.gnu.org/licenses/>.

$ErrorActionPreference = "Stop"

param (
    [switch]$nightly = $false
)

if ("$env:GOPATH" -eq "") {
    $env:GOPATH=$pwd
}
if ("$env:GOBIN" -eq "") {
    $env:GOBIN="$env:GOPATH\bin"
}

Set-Location -Path "$env:GOPATH\src\github.com\getgauge\gauge"

go get github.com/tools/godep 
& "$env:GOBIN\godep.exe" "restore"

Push-Location "$pwd\bin\windows_amd64"
signtool sign /f $env:CERT_FILE /p "$env:CERT_FILE_PWD" gauge.exe
Pop-Location

Push-Location "$pwd\bin\windows_386"
signtool sign /f $env:CERT_FILE /p "$env:CERT_FILE_PWD" gauge.exe
Pop-Location

$nightlyFlag = If ($nightly) {"--nightly"} Else {""}
& go run build/make.go --distro --certFile $env:CERT_FILE --certFilePwd "$env:CERT_FILE_PWD" --bin-dir bin\windows_amd64 $nightlyFlag
& go run build/make.go --distro --certFile $env:CERT_FILE --certFilePwd "$env:CERT_FILE_PWD" --bin-dir bin\windows_386 $nightlyFlag

{'fraction_non_alphanumeric': 0.12266835282959215, 'fraction_numerical': 0.0094846664558963, 'mean_word_length': 4.299832495812395, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '223738', 'n_tokens_mistral': 1127, 'n_tokens_neox': 1075, 'n_words': 354}