<commit_before>## Office Add-in Dev Server

IIS Express replacement for debugging [Office Add-ins](https://dev.office.com/docs/add-ins/overview/office-add-ins) on macOS - a .NET Core app which can host static files via HTTPS.

### Build instructions:

1. Install [.NET Core for macOS](https://www.microsoft.com/net/core#macos)
2. `dotnet restore src`
3. `dotnet build src`
4. `dotnet publish src -c Release`

Output files are located at `bin/bin/Release/netcoreapp1.1/publish/`.

### Run instructions:

Server supports the following options:

Short Form | Long Form | Mandatory | Default Value | Purpose
--- | --- | :---: | --- | ---
`-sp` | `--server-port` | No | `44300` | Server port
`-sr` | `--server-root` | Yes | | Server root directory
`-cf` | `--cert-file` | No | `./certificate.pfx` | Certificate file in PKCS #12 format
`-cp` | `--cert-password` | No | Empty String | Certificate password

Repository contains a self-signed certificate located at `etc/certificate/certificate.pfx` without password, which can be used as a default (however it should be added to a keychain at first).

Server command line with the default options is:

`dotnet oads.dll -sr /office_addin_files/`<commit_msg>Update documentation<commit_after>## Office Add-in Dev Server

IIS Express replacement for debugging [Office Add-ins](https://dev.office.com/docs/add-ins/overview/office-add-ins) on macOS - a .NET Core app which hosts static files using HTTPS.

### Build instructions:

1. Install [.NET Core for macOS](https://www.microsoft.com/net/core#macos)
2. Execute `dotnet restore src`
3. Execute `dotnet build src`
4. Execute `dotnet publish src -c Release`

### Run instructions:

1. Add default certificate `etc/certificate/certificate.cer` to a keychain
2. Copy default certificate `etc/certificate/certificate.pfx` to `bin/bin/Release/netcoreapp1.1/publish/`
3. Execute `dotnet bin/bin/Release/netcoreapp1.1/publish/oads.dll -sr <server_root_directory>`

### Available options:

Option | Short Form | Mandatory | Default Value | Purpose
--- | --- | :---: | --- | ---
`--server-port` | `-sp` | No | `44300` | Server port
`--server-root` | `-sr` | Yes | | Server root directory
`--cert-file` | `-cf` | No | `./certificate.pfx` | Certificate file in PKCS #12 format
`--cert-password` | `-cp` | No | Empty String | Certificate password
{'fraction_non_alphanumeric': 0.14709677419354839, 'fraction_numerical': 0.013333333333333334, 'mean_word_length': 3.7372708757637474, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 4, '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': '6659428', 'n_tokens_mistral': 766, 'n_tokens_neox': 732, 'n_words': 246}