<commit_before># grunt-tmod

> the grunt plugin for [tmodjs](https://github.com/aui/tmodjs)

## Getting Started
This plugin requires Grunt `~0.4.1`

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-tmod --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-tmod');
```

## The "tmod" task

### Overview
In your project's Gruntfile, add a section named `tmod` to the data object passed into `grunt.initConfig()`.

```js
grunt.initConfig({
  tmod: {
    options: {
      // Task-specific options go here.
    },
    your_target: {<commit_msg>[!] 修改为中文版readme.md<commit_after># grunt-tmod

> [tmodjs](https://github.com/aui/tmodjs) 的grunt自动化插件

## Getting Started
需要环境: Grunt `~0.4.1`

如果你没有用过 [Grunt](http://gruntjs.com/) , 可以先看一下 [新手入门](http://gruntjs.com/getting-started) 指南, 里面有讲解怎么创建一个 [Gruntfile](http://gruntjs.com/sample-gruntfile) 和如何使用grunt插件. 

顺路推荐 : [中文版的grunt社区](http://www.gruntjs.org/article/home.html)


安装插件:

```shell
npm install grunt-tmod --save-dev
```

安装完插件后要在gruntfile里面加上这句代码,载入这个插件:

```js
grunt.loadNpmTasks('grunt-tmod');
```


### Overview
在你项目里面的gruntfile里面,在 `grunt.initConfig()` 里面加上相应的执行参数

```js
grunt.initConfig({
  tmod: {
    options: {
      // Task-specific options go here.
    },
    your_target: {
{'fraction_non_alphanumeric': 0.14679448771719592, 'fraction_numerical': 0.0035949670461354103, 'mean_word_length': 4.251572327044025, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, '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': '582589', 'n_tokens_mistral': 694, 'n_tokens_neox': 688, 'n_words': 155}