<commit_before>branches:
  only:
    - master

skip_tags: true
clone_depth: 1

environment:
  global:
    ASYMPTOTE_HOME: '%PROGRAMFILES(X86)%\\Asymptote'
    MIKTEX_HOME: '%PROGRAMFILES%\\MiKTeX 2.9'
    R_HOME: '%PROGRAMFILES%\\R'
    R_LIBS_USER: '%USERPROFILE%\\R\\library'

install:
  - cinst miktex
  - cinst R.Project --allow-empty-checksums --ia="/DIR=\"%R_HOME%\""
  - curl -fsS -o asymptote-setup.exe http://heanet.dl.sourceforge.net/project/asymptote/2.38/asymptote-2.38-setup.exe
  - asymptote-setup /S "/D=%ASYMPTOTE_HOME%"
  - pip3 install Pygments
  - set PATH=%PATH%;%ASYMPTOTE_HOME%;%R_HOME%\bin;%MIKTEX_HOME%\miktex\bin\x64
  - initexmf --set-config-value=[MPM]AutoInstall=0
  - initexmf "--user-roots=%ASYMPTOTE_HOME%" --update-fndb
  - mpm --install-some=scripts\miktex-packages
  - mkdir -p "${R_LIBS_USER}"
  - Rscript -e "install.packages(c('knitr', 'patchSynctex'), repos = 'http://cran.r-project.org')"
  - ps: Install-Product node 7
  - npm install

test_script:
  - npm test
<commit_msg>Add Python link<commit_after>branches:
  only:
    - master

skip_tags: true
clone_depth: 1

environment:
  global:
    ASYMPTOTE_HOME: '%PROGRAMFILES(X86)%\\Asymptote'
    MIKTEX_HOME: '%PROGRAMFILES%\\MiKTeX 2.9'
    PYTHON: C:\Python36
    R_HOME: '%PROGRAMFILES%\\R'
    R_LIBS_USER: '%USERPROFILE%\\R\\library'

install:
  - set PATH=%PATH%;%ASYMPTOTE_HOME%;%MIKTEX_HOME%\miktex\bin\x64;%R_HOME%\bin;%PYTHON%\Scripts
  - cinst miktex
  - cinst R.Project --allow-empty-checksums --ia="/DIR=\"%R_HOME%\""
  - curl -fsS -o asymptote-setup.exe http://heanet.dl.sourceforge.net/project/asymptote/2.38/asymptote-2.38-setup.exe
  - asymptote-setup /S "/D=%ASYMPTOTE_HOME%"
  - pip3 install Pygments
  - initexmf --set-config-value=[MPM]AutoInstall=0
  - initexmf "--user-roots=%ASYMPTOTE_HOME%" --update-fndb
  - mpm --install-some=scripts\miktex-packages
  - mkdir -p "${R_LIBS_USER}"
  - Rscript -e "install.packages(c('knitr', 'patchSynctex'), repos = 'http://cran.r-project.org')"
  - ps: Install-Product node 7
  - npm install

test_script:
  - npm test

{'fraction_non_alphanumeric': 0.17334620956059874, 'fraction_numerical': 0.016417189763399325, 'mean_word_length': 3.5942350332594235, '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': '3893626', 'n_tokens_mistral': 937, 'n_tokens_neox': 854, 'n_words': 130}