<commit_before># hostsgen Hosts项目管理工具 ![version](https://img.shields.io/badge/version-0.1.0-green.svg?style=flat-square) ![commits](https://img.shields.io/github/commits-since/pigfromchina/hostsgen/bd95957.svg) ![size](https://img.shields.io/github/languages/code-size/pigfromchina/hostsgen.svg)
📝  Simple&amp;powerful hosts file generator for hosts projects

## ❓ What can this tool do? 它能做什么?
__hostsgen__ is designed to make _hosts_ projects modular🗄 and writting-friendly✍️

## ⭐️ Start using `hostsgen` 开始使用
### Create hostsgen.yml 创建项目配置文件
`hostsgen.yml` is __project config file for hostsgen.__ Hostsgen uses this file to know what your project is

avaliable fields:
+ __name__ (_string,_ your project name)
+ __desc__ (_string,_ description)
+ __authors__ (_sequence in a mapping,_ project authors)
+ __out__ (_string,_ output file path)

+ __mods__ (_sequence of string,_ your project root modules)

for example:
```yaml
name: project name
desc: example hostgen project config
authors: duangsuse
out: example_hosts

mods:
  - foo-mod desc #splited using ' '<commit_msg>Update README badges<commit_after># hostsgen Hosts项目管理工具 ![version](https://img.shields.io/badge/version-Unreleased-green.svg?style=flat-square) ![LoC](https://img.shields.io/badge/LoC-100_lines_of_Ruby-e0115f.svg?style=flat-square) ![resloving](https://img.shields.io/badge/resloving-Project_Modules-blue.svg?style=flat-square)
📝  Simple&amp;powerful hosts file generator for hosts projects

## ❓ What can this tool do? 它能做什么?
__hostsgen__ is designed to make _hosts_ projects modular🗄 and writting-friendly✍️

## ⭐️ Start using `hostsgen` 开始使用
### Create hostsgen.yml 创建项目配置文件
`hostsgen.yml` is __project config file for hostsgen.__ Hostsgen uses this file to know what your project is

avaliable fields:
+ __name__ (_string,_ your project name)
+ __desc__ (_string,_ description)
+ __authors__ (_sequence in a mapping,_ project authors)
+ __out__ (_string,_ output file path)

+ __mods__ (_sequence of string,_ your project root modules)

for example:
```yaml
name: project name
desc: example hostgen project config
authors: duangsuse
out: example_hosts

mods:
  - foo-mod desc #splited using ' '
{'fraction_non_alphanumeric': 0.10932475884244373, 'fraction_numerical': 0.006890215893431328, 'mean_word_length': 5.620060790273556, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '5573267', 'n_tokens_mistral': 791, 'n_tokens_neox': 754, 'n_words': 214}