<commit_before># Unitex/GramLab Setup Installer for Windows

This NSIS script is used to create the [Unitex/GramLab][unitex] setup installers
for Windows on POSIX compliant systems. NSIS (Nullsoft Scriptable
Install System) is a scripting tool to create Windows installers.
Installers are generated by using the `makensis` program to compile a
NSIS script (.nsi) into an executable. NSIS is released under an open
source license and is completely free for any use. For more details,
please visit [nsis]

## Script dependencies
- **NSIS** distribution (version >= 3.0). Type `makensis -VERSION` to test your version.  
  If you need an update version, please visit [nsis]
- **Inetc plug-in** - Internet client plug-in for files download and upload.  
  http://nsis.sourceforge.net/Inetc_plug-in. To install, go to your nsis  
  folder (the directory containing Bin, Contrib, ... subfolders) and type:  
  `wget http://nsis.sourceforge.net/mediawiki/images/c/c9/Inetc.zip &&  
  unzip Inetc.zip &&  
  rm Inetc.zip`
- **GNU awk** (version >= 3.0) Type `awk --version` to test your version.  
  If you need an update version, please visit http://www.gnu.org/software/gawk/

## Script compilation
Usage:  
 `makensis -DVER_MAJOR=# -DVER_MINOR=# -DVER_REVISION=# [OPTIONS] unitex.nsi`

For a full list of compiler flags supported by this program, just type
`makensis unitex.nsi` [return] at the command line. For a full list of
parameters and further information about the makensis command, type
`makensis` [return]. 

### Example

> Before beginning, please remember that this program only compiles on
> POSIX compliant systems (i.e. not on Windows). This is mainly due to the use
> of the `!system` command thats runs with /bin/sh. There aren't any plans for
> a Windows support at the moment.

1. Download the [bundle zip](http://www-igm.univ-mlv.fr/~unitex/zips/Unitex3.1beta.zip)
   containing the Unitex/GramLab distribution from the [Unitex/GramLab][unitex] homepage.
2. Unzip all files in a folder at one time.
3. Take notice of the main folder name:  
   `Unitex${VER_MAJOR}.${VER_MINOR}${VER_SUFFIX}`, e.g.  
   **Unitex3.0**      `VER_MAJOR=3 VER_MINOR=0 VER_SUFFIX=""`  
   **Unitex3.1beta**  `VER_MAJOR=3 VER_MINOR=1 VER_SUFFIX="beta"`
4. Take notice of the parent folder name, i.e. the directory where the  
   main Unitex directory is placed. This directory will be your `${INPUT_BASEDIR}` path.
5. Create the final setup installer typing:  
   `makensis -DANONYMOUS_BUILD  -DINPUT_BASEDIR=path -DVER_MAJOR=number -DVER_MINOR=number -DVER_SUFFIX=suffix unitex.nsi`  
   For example:  
   `makensis -DANONYMOUS_BUILD  -DINPUT_BASEDIR=. -DVER_MAJOR=3 -DVER_MINOR=1 -DVER_SUFFIX=beta unitex.nsi`  
   This will create an executable named: `Unitex-GramLab-3.1beta_anonymous_win32-setup.exe`

Non-anonymous builds are further documented [here](unitex.nsi)

[nsis]:   http://nsis.sourceforge.net
[unitex]: http://unitexgramlab.org<commit_msg>add command line parameters section<commit_after>## Unitex/GramLab Setup Installer for Windows

This NSIS script is used to create the [Unitex/GramLab][unitex] setup installers
for Windows on POSIX compliant systems. NSIS (Nullsoft Scriptable
Install System) is a scripting tool to create Windows installers.
Installers are generated by using the `makensis` program to compile a
NSIS script (.nsi) into an executable. NSIS is released under an open
source license and is completely free for any use. For more details,
please visit [nsis]

### Script dependencies
- **NSIS** distribution (version >= 3.0). Type `makensis -VERSION` to test your version.  
  If you need an update version, please visit [nsis]
- **Inetc plug-in** - Internet client plug-in for files download and upload.  
  http://nsis.sourceforge.net/Inetc_plug-in. To install, go to your nsis  
  folder (the directory containing Bin, Contrib, ... subfolders) and type:  
  `wget http://nsis.sourceforge.net/mediawiki/images/c/c9/Inetc.zip &&  
  unzip Inetc.zip &&  
  rm Inetc.zip`
- **GNU awk** (version >= 3.0) Type `awk --version` to test your version.  
  If you need an update version, please visit http://www.gnu.org/software/gawk/

### Script compilation
Usage:  
 `makensis -DVER_MAJOR=# -DVER_MINOR=# -DVER_REVISION=# [OPTIONS] unitex.nsi`

For a full list of compiler flags supported by this program, just type
`makensis unitex.nsi` [return] at the command line. For a full list of
parameters and further information about the makensis command, type
`makensis` [return]. 

#### Example

> Before beginning, please remember that this program only compiles on
> POSIX compliant systems (i.e. not on Windows). This is mainly due to the use
> of the `!system` command thats runs with /bin/sh. There aren't any plans for
> a Windows support at the moment.

1. Download the [bundle zip](http://www-igm.univ-mlv.fr/~unitex/zips/Unitex3.1beta.zip)
   containing the Unitex/GramLab distribution from the [Unitex/GramLab][unitex] homepage.
2. Unzip all files in a folder at one time.
3. Take notice of the main folder name:  
   `Unitex${VER_MAJOR}.${VER_MINOR}${VER_SUFFIX}`, e.g.  
   **Unitex3.0**      `VER_MAJOR=3 VER_MINOR=0 VER_SUFFIX=""`  
   **Unitex3.1beta**  `VER_MAJOR=3 VER_MINOR=1 VER_SUFFIX="beta"`
4. Take notice of the parent folder name, i.e. the directory where the  
   main Unitex directory is placed. This directory will be your `${INPUT_BASEDIR}` path.
5. Create the final setup installer typing:  
   `makensis -DANONYMOUS_BUILD  -DINPUT_BASEDIR=path -DVER_MAJOR=number -DVER_MINOR=number -DVER_SUFFIX=suffix unitex.nsi`  
   For example:  
   `makensis -DANONYMOUS_BUILD  -DINPUT_BASEDIR=. -DVER_MAJOR=3 -DVER_MINOR=1 -DVER_SUFFIX=beta unitex.nsi`  
   This will create an executable named: `Unitex-GramLab-3.1beta_anonymous_win32-setup.exe`

Non-anonymous builds are further documented [here](unitex.nsi)

### Setup installer command line parameters

The produced Unitex/GramLab Windows setup installer accepts several optional
command line parameters. Some common options are:

| Option                     | Description                                           |
| -------------------------- | ----------------------------------------------------- |
| `/AllUsers`                  | Set default to a per-machine installation             |
| `/CurrentUser`               | Set default to a per-user installation.               |
| `/D C:\path\without quotes\` | Sets the default installation directory. It mustbe the last parameter and must not contain any quotes. Only absolute paths are supported|
| `/NCRC`                      | The installer will not perform a Cyclic Redundancy Check (CRC) on itself before allowing an install     |
| `/S`                         | Runs the installer or the uninstaller silently        |

[nsis]:   http://nsis.sourceforge.net
[unitex]: http://unitexgramlab.org
{'fraction_non_alphanumeric': 0.10755516586292561, 'fraction_numerical': 0.007599006283793658, 'mean_word_length': 3.4673629242819843, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2667874', 'n_tokens_mistral': 2245, 'n_tokens_neox': 2149, 'n_words': 775}