<commit_before># Truss Build Instructions

> :warning: **IMPORTANT: truss is currently using bgfx commit**
> `f7130318c0cf62f42ae4b8a76633c9e09409f32b`

## Windows (vs2013)
* Dependencies: `bgfx`, `bx`, `terra`, `sdl`
  * Get and build `bgfx` + `bx` (`bx` is header only and needed by `bgfx`):

    ```bash
    git clone git://github.com/bkaradzic/bx.git
    git clone git://github.com/bkaradzic/bgfx.git
    cd bgfx
    ..\bx\tools\bin\windows\genie --with-shared-lib --with-tools vs2013
          (might also want --with-ovr)
          (note: what does --with-sdl do? It doesn't seem to be needed...)
    start .build\projects\vs2013\bgfx.sln
          (make sure to build in x64!)
    ```

## Linux
* Dependencies: `cmake`, `sdl`
  * Get CMake version 3.3+

    **For Ubuntu 16.04+:**

    ```bash
    sudo apt-get install cmake
    ```

    **For Ubuntu <16.04:**

    ```bash
    sudo apt-get install build-essential
    wget http://www.cmake.org/files/v3.3/cmake-3.3.2.tar.gz
    tar xf cmake-3.3.2.tar.gz
    cd cmake-3.3.2/
    ./configure --system-curl
    make
    sudo checkinstall
    ```

  * Get SDL:

    ```bash
    sudo apt-get install libsdl2-dev
    ```

* Make:

  ```bash
  mkdir build
  cd build
  cmake ..
  make
  ```

Now you can hopefully run:
```bash
./truss scripts/examples/dart_gui_test.t
```

> Note: if you want `bgfx` to use OpenGL > 2.1, then you need to compile it with
> e.g. `#define BGFX_CONFIG_RENDERER_OPENGL 31`
> either by manually setting this define (ex: in `bgfx/src/config.h`) or through
> the build process somehow.
<commit_msg>Updated build instructions.<commit_after># Truss Build Instructions

## Windows (vs2015)
* Dependencies: `cmake`
  * Get and install `cmake`

* Compilation
  * Run `cmake-gui`
    * Specify the source directory as your git checkout
    * Specify the build directory as your git checkout + `./build`
    * Click `Configure` and select the compiler (make sure to choose 64-bit).
    * Click `Generate`
  * Open the `./build` directory and double-click `truss.sln`
  * In Visual Studio, build the `ALL_BUILD` project to build everything.

## Linux
* Dependencies: `cmake`
  * Get CMake version 3.3+

    **For Ubuntu 16.04+:**

    ```bash
    sudo apt-get install cmake
    ```

    **For Ubuntu <16.04:**

    ```bash
    sudo apt-get install build-essential
    wget http://www.cmake.org/files/v3.3/cmake-3.3.2.tar.gz
    tar xf cmake-3.3.2.tar.gz
    cd cmake-3.3.2/
    ./configure --system-curl
    make
    sudo checkinstall
    ```

* Compilation

  ```bash
  mkdir build
  cd build
  cmake ..
  make
  ```

Now you can run:
```bash
./truss examples/00_buffercube.t
```

> Note: if you want `bgfx` to use OpenGL > 2.1, then you need to compile it with
> e.g. `#define BGFX_CONFIG_RENDERER_OPENGL 31`
> either by manually setting this define (ex: in `bgfx/src/config.h`) or through
> the build process somehow.

{'fraction_non_alphanumeric': 0.13494809688581316, 'fraction_numerical': 0.03460207612456748, 'mean_word_length': 2.749675745784695, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '7495357', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1024, 'n_words': 312}