<commit_before># h2spec

h2spec is a conformance test tool for HTTP/2 server.  
This tool supports [draft-ietf-httpbis-http2-16](http://tools.ietf.org/html/draft-ietf-httpbis-http2-16).

## Install

Go to the [releases page](https://github.com/summerwind/h2spec/releases), find the version you want, and download the zip file.

## Build

1. Make sure you have go 1.4 and set GOPATH appropriately
2. Clone this repo and move to the cloned repo directory
3. Run `go get github.com/bradfitz/http2`
4. Run `go build cmd/h2spec.go`

## Usage

```
$ h2spec --help
Usage: h2spec [OPTIONS]

Options:
  -p:     Target port. (Default: 80)
  -h:     Target host. (Default: 127.0.0.1)
  -t:     Connect over TLS. (Default: false)
  -k:     Don't verify server's certificate. (Default: false)
  -o:     Maximum time allowed for test. (Default: 3)
  -s:     Section number on which to run the test. (Example: -s 6.1 -s 6.2)
  --help: Display this help and exit.
```

## Screenshot

![Sceenshot](https://cloud.githubusercontent.com/assets/230145/5282230/c267a6b8-7b47-11e4-8949-2121d8921382.png)

<commit_msg>Update screenshot<commit_after># h2spec

h2spec is a conformance test tool for HTTP/2 server.  
This tool supports [draft-ietf-httpbis-http2-16](http://tools.ietf.org/html/draft-ietf-httpbis-http2-16).

## Install

Go to the [releases page](https://github.com/summerwind/h2spec/releases), find the version you want, and download the zip file.

## Build

1. Make sure you have go 1.4 and set GOPATH appropriately
2. Clone this repo and move to the cloned repo directory
3. Run `go get github.com/bradfitz/http2`
4. Run `go build cmd/h2spec.go`

## Usage

```
$ h2spec --help
Usage: h2spec [OPTIONS]

Options:
  -p:     Target port. (Default: 80)
  -h:     Target host. (Default: 127.0.0.1)
  -t:     Connect over TLS. (Default: false)
  -k:     Don't verify server's certificate. (Default: false)
  -o:     Maximum time allowed for test. (Default: 3)
  -s:     Section number on which to run the test. (Example: -s 6.1 -s 6.2)
  --help: Display this help and exit.
```

## Screenshot

![Sceenshot](https://cloud.githubusercontent.com/assets/230145/5875758/f3099c7a-a353-11e4-9324-0add314a2f98.png)


{'fraction_non_alphanumeric': 0.13047445255474452, 'fraction_numerical': 0.06386861313868614, 'mean_word_length': 3.3169291338582676, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6730481', 'n_tokens_mistral': 889, 'n_tokens_neox': 796, 'n_words': 249}