<commit_before>ngx_php7_tracker
================

[ngx_php7_tracker](https://github.com/rryqszq4/ngx_php7_tracker) - Track php7 script language for nginx-module. A branch of [ngx_php7](https://github.com/rryqszq4/ngx_php7).  
QQ group：558795330

Requirement
-----------
- PHP 7.0.* ~ PHP 7.1.*  
- nginx-1.4.7 ~ nginx-1.11.4 

Installation
------------
```sh
$ git clone https://github.com/rryqszq4/ngx_php7_tracker.git

$ wget 'http://nginx.org/download/nginx-1.6.3.tar.gz'
$ tar -zxvf nginx-1.6.3.tar.gz
$ cd nginx-1.6.3

$ export PHP_BIN=/path/to/php/bin
$ export PHP_INC=/path/to/php/include/php
$ export PHP_LIB=/path/to/php/lib

$ ./configure --user=www --group=www \
              --prefix=/path/to/nginx \
              --with-ld-opt="-Wl,-rpath,$PHP_LIB" \
              --add-module=/path/to/ngx_php7_tracker

$ make<commit_msg>[doc] update<commit_after>ngx_php7_tracker
================

[ngx_php7_tracker](https://github.com/rryqszq4/ngx_php7_tracker) - Track php7 script, opcode, function stack for nginx-module. A branch of [ngx_php7](https://github.com/rryqszq4/ngx_php7). The documentation uses the yaf framework as an example.  
QQ group：558795330

Requirement
-----------
- PHP 7.0.*  
- nginx-1.6.3 

Installation
------------
```sh
$ git clone https://github.com/rryqszq4/ngx_php7_tracker.git

$ wget 'http://nginx.org/download/nginx-1.6.3.tar.gz'
$ tar -zxvf nginx-1.6.3.tar.gz
$ cd nginx-1.6.3

$ export PHP_BIN=/path/to/php/bin
$ export PHP_INC=/path/to/php/include/php
$ export PHP_LIB=/path/to/php/lib

$ ./configure --user=www --group=www \
              --prefix=/path/to/nginx \
              --with-ld-opt="-Wl,-rpath,$PHP_LIB" \
              --add-module=/path/to/ngx_php7_tracker

$ make
{'fraction_non_alphanumeric': 0.20302501454333916, 'fraction_numerical': 0.04304828388598022, 'mean_word_length': 2.675213675213675, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, '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': '152454', 'n_tokens_mistral': 746, 'n_tokens_neox': 701, 'n_words': 100}