<commit_before># Appveyor file
# http://www.appveyor.com/docs/appveyor-yml

#---------------------------------#
#      general configuration      #
#---------------------------------#

branches:
  except:
    - gh-pages


#---------------------------------#
#    environment configuration    #
#---------------------------------#

init:
  - git config --global core.autocrlf true

clone_folder: C:\Users\appveyor\go\src\github.com\zetamatta\nyagos

environment:
  global:
    dest_dir: bin
    gopath: C:\Users\appveyor\go
    go_shortv: 16
    lua_ver: 5.3.2
    lua_shortv: 53
  matrix:
    - platform: i386
    - platform: amd64

install:
  - set INSTALL_DIR=%APPVEYOR_BUILD_FOLDER%\%DEST_DIR%\%PLATFORM%
  - ps: |
      if ($env:PLATFORM -eq "i386") {
        $env:PATH="C:\msys64\mingw32\bin;C:\go" + $env:GO_SHORTV + "-x86;" + $env:PATH
        $script:bit = 32
        $env:GOARCH = "386"
      } else {
        $env:PATH="C:\msys64\mingw64\bin;C:\go" + $env:GO_SHORTV + ";" + $env:PATH
        $script:bit = 64
        $env:GOARCH = "amd64"
      }
      $targetURL = "http://ja.osdn.jp/frs/g_redir.php?m=kent&f=%2Fluabinaries%2F" + $env:LUA_VER + "%2FTools+Executables%2Flua-" + $env:LUA_VER + "_Win" + $script:bit + "_bin.zip"
      $outputPath = $env:APPVEYOR_BUILD_FOLDER + "\lua.zip"
      $webClient = new-object System.Net.WebClient
      [int]$trials = 0
      do {
        try {
          $trials +=1
          $webClient.DownloadFile($targetURL, $outputPath)
          break
        } catch [System.Net.WebException] {
          write-host "Problem downloading $targetURL `tTrial $trials `
                     `n`tException: " $_.Exception.Message
          sleep 3
        }
      }
      while ($trials -lt 5)
  - cd %APPVEYOR_BUILD_FOLDER%
  - 7z x lua.zip -oc:lua -y > nul
  - move %APPVEYOR_BUILD_FOLDER%\lua\lua%LUA_SHORTV%.dll %APPVEYOR_BUILD_FOLDER%
  - md %INSTALL_DIR% > nul 2>&1


#---------------------------------#
#       build configuration       #
#---------------------------------#

build_script:
  - make.cmd get
  - make.cmd
  - make.cmd install %INSTALL_DIR%


#---------------------------------#
#      artifacts configuration    #
#---------------------------------#

artifacts:
  - path: $(DEST_DIR)\$(PLATFORM)
    name: nyagos-$(PLATFORM)-$(APPVEYOR_BUILD_VERSION)<commit_msg>Remove code to download lua53.dll from appveyor.yml for #300<commit_after># Appveyor file
# http://www.appveyor.com/docs/appveyor-yml

#---------------------------------#
#      general configuration      #
#---------------------------------#

branches:
  except:
    - gh-pages


#---------------------------------#
#    environment configuration    #
#---------------------------------#

init:
  - git config --global core.autocrlf true

clone_folder: C:\Users\appveyor\go\src\github.com\zetamatta\nyagos

environment:
  global:
    dest_dir: bin
    gopath: C:\Users\appveyor\go
    go_shortv: 16
  matrix:
    - platform: i386
    - platform: amd64

install:
  - set INSTALL_DIR=%APPVEYOR_BUILD_FOLDER%\%DEST_DIR%\%PLATFORM%
  - ps: |
      if ($env:PLATFORM -eq "i386") {
        $env:PATH="C:\msys64\mingw32\bin;C:\go" + $env:GO_SHORTV + "-x86;" + $env:PATH
        $script:bit = 32
        $env:GOARCH = "386"
      } else {
        $env:PATH="C:\msys64\mingw64\bin;C:\go" + $env:GO_SHORTV + ";" + $env:PATH
        $script:bit = 64
        $env:GOARCH = "amd64"
      }
  - md %INSTALL_DIR% > nul 2>&1


#---------------------------------#
#       build configuration       #
#---------------------------------#

build_script:
  - make.cmd get
  - make.cmd
  - make.cmd install %INSTALL_DIR%


#---------------------------------#
#      artifacts configuration    #
#---------------------------------#

artifacts:
  - path: $(DEST_DIR)\$(PLATFORM)
    name: nyagos-$(PLATFORM)-$(APPVEYOR_BUILD_VERSION)
{'fraction_non_alphanumeric': 0.2688593056643174, 'fraction_numerical': 0.021143304620203602, 'mean_word_length': 1.6014935505770536, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3652550', 'n_tokens_mistral': 1407, 'n_tokens_neox': 1327, 'n_words': 213}