<commit_before># Core structure

```text
/
├─core/                            DIR: core
│     ├─lib/                       DIR: lib
│     │    ├─os/                   DIR: OS handler
│     │    │   ├─darwin.php        Mac OS handler
│     │    │   ├─linux.php         Linux OS handler
│     │    │   └─winnt.php         WinNT OS handler
│     │    ├─stc/                  DIR: static classes
│     │    │    ├─error.php        Error handler
│     │    │    ├─factory.php      Factory handler
│     │    │    └─trustzone.php    Trustzone handler
│     │    ├─std/                  DIR: standard classes
│     │    │    ├─io.php           Input/Output controller
│     │    │    ├─log.php          Core Log controller
│     │    │    ├─os.php           Main OS controller
│     │    │    ├─pool.php         Data pool controller
│     │    │    ├─reflect.php      Reflection controller
│     │    │    └─router.php       Router controller
│     │    ├─cgi.php               CGI operator
│     │    └─cli.php               CLI operator
│     └─ns.php                     Main NS script
├─ext/                             DIR: extensions
│    ├─fonts/                      DIR: fonts
│    ├─imp/                        DIR: interface implements
│    │    └─key.php                key interface for keygen
│    ├─cache.php                   cache in redis
│    ├─conf.php                    conf file reader
│    ├─core.php                    core api extension
│    ├─crypt.php                   data crypt handler
│    ├─crypt_img.php               crypt image scr:base64/validator
│    ├─doc.php                     document scanner
│    ├─errno.php                   error number/message controller
│    ├─factory.php                 factory extension
│    ├─file.php                    file i/o handler
│    ├─http.php                    http requester
│    ├─image.php                   image size/rotation processor
│    ├─keygen.php                  keygen for crypt
│    ├─lang.php                    language reader
│    ├─lock.php                    lock in redis
│    ├─log.php                     log recorder
│    ├─mpc.php                     multi-process controller
│    ├─mysql.php                   mysql operator via pdo
│    ├─pdo.php                     pdo connector
│    ├─queue.php                   queue in redis
│    ├─redis.php                   redis connector
│    ├─session.php                 session in redis
│    ├─socket.php                  socket server/client
│    └─upload.php                  upload file receiver
├─api.php.example                  entry script example
└─app.ini.example                  configuration file example
```

<commit_msg>finish CoreStructure.md<commit_after># Core structure

Structure of NS core is listed below, which doesn't mean the whole project.  
Please follow [How to Install](HowtoInstall.md) to build up your own project based on NS.  

```text
/
├─core/                            DIR: core
│     ├─lib/                       DIR: lib
│     │    ├─os/                   DIR: OS handler
│     │    │   ├─darwin.php        Mac OS handler
│     │    │   ├─linux.php         Linux OS handler
│     │    │   └─winnt.php         WinNT OS handler
│     │    ├─stc/                  DIR: static classes
│     │    │    ├─error.php        Error handler
│     │    │    ├─factory.php      Factory handler
│     │    │    └─trustzone.php    Trustzone handler
│     │    ├─std/                  DIR: standard classes
│     │    │    ├─io.php           Input/Output controller
│     │    │    ├─log.php          Core Log controller
│     │    │    ├─os.php           Main OS controller
│     │    │    ├─pool.php         Data pool controller
│     │    │    ├─reflect.php      Reflection controller
│     │    │    └─router.php       Router controller
│     │    ├─cgi.php               CGI operator
│     │    └─cli.php               CLI operator
│     └─ns.php                     Main NS script
├─ext/                             DIR: extensions
│    ├─fonts/                      DIR: fonts
│    ├─imp/                        DIR: interface implements
│    │    └─key.php                key interface for keygen
│    ├─cache.php                   cache in redis
│    ├─conf.php                    conf file reader
│    ├─core.php                    core api extension
│    ├─crypt.php                   data crypt handler
│    ├─crypt_img.php               crypt image scr:base64/validator
│    ├─doc.php                     document scanner
│    ├─errno.php                   error number/message controller
│    ├─factory.php                 factory extension
│    ├─file.php                    file i/o handler
│    ├─http.php                    http requester
│    ├─image.php                   image size/rotation processor
│    ├─keygen.php                  keygen for crypt
│    ├─lang.php                    language reader
│    ├─lock.php                    lock in redis
│    ├─log.php                     log recorder
│    ├─mpc.php                     multi-process controller
│    ├─mysql.php                   mysql operator via pdo
│    ├─pdo.php                     pdo connector
│    ├─queue.php                   queue in redis
│    ├─redis.php                   redis connector
│    ├─session.php                 session in redis
│    ├─socket.php                  socket server/client
│    └─upload.php                  upload file receiver
├─api.php.example                  entry script example
└─app.ini.example                  configuration file example
```

{'fraction_non_alphanumeric': 0.09045936395759717, 'fraction_numerical': 0.0007067137809187279, 'mean_word_length': 1.0110124333925399, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3996243', 'n_tokens_mistral': 1645, 'n_tokens_neox': 1778, 'n_words': 540}