<commit_before>#requires -v 3
param($action)
$erroractionpreference = 'stop' # quit if anything goes wrong

$straps="console dart go mongo node"
$scoop_packs="git-flow graphviz hugo"
$node_packs="bower browser-sync gulp json-server karma karma-cli protractor typescript tsd cordova"

function strapping() {
  "Strapping reyer..."

  # Reyer environment
  ensure $HOME\$DEVSTRAP_NAME\contrib   > $null
  ensure $HOME\$DEVSTRAP_NAME\repos     > $null
  ensure $HOME\$DEVSTRAP_NAME\workspace > $null

  # Strapping
  foreach($pack in $straps.split(" ")) {
    ra strap $pack
  }

  foreach($pack in $scoop_packs.split(" ")) {
    install_or_update $pack
  }

  foreach($pack in $node_packs.split(" ")) {
    npm_install_or_upgrade $pack
  }
}

function unstrapping() {
  "Unstrapping reyer..."

  foreach($pack in $straps.split(" ")) {
    ra unstrap $pack
  }

  foreach($pack in $scoop_packs.split(" ")) {
    scoop uninstall $pack
  }
}

Invoke-Expression "$action"
<commit_msg>Fix ensure refer environment on Windows<commit_after>#requires -v 3
param($action)
$erroractionpreference = 'stop' # quit if anything goes wrong

$straps="console dart go mongo node"
$scoop_packs="git-flow graphviz hugo"
$node_packs="bower browser-sync gulp json-server karma karma-cli protractor typescript tsd cordova"

function strapping() {
  "Strapping reyer..."

  # Reyer environment
  ensure $devstrap_home\contrib   > $null
  ensure $devstrap_home\repos     > $null
  ensure $devstrap_home\workspace > $null

  # Strapping
  foreach($pack in $straps.split(" ")) {
    ra strap $pack
  }

  foreach($pack in $scoop_packs.split(" ")) {
    install_or_update $pack
  }

  foreach($pack in $node_packs.split(" ")) {
    npm_install_or_upgrade $pack
  }
}

function unstrapping() {
  "Unstrapping reyer..."

  foreach($pack in $straps.split(" ")) {
    ra unstrap $pack
  }

  foreach($pack in $scoop_packs.split(" ")) {
    scoop uninstall $pack
  }
}

Invoke-Expression "$action"

{'fraction_non_alphanumeric': 0.13034623217922606, 'fraction_numerical': 0.0010183299389002036, 'mean_word_length': 3.924812030075188, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2726609', 'n_tokens_mistral': 712, 'n_tokens_neox': 680, 'n_words': 163}