<commit_before># grunt-cdntemplate

> The grunt plugin for substitute appropriate CDN by the defined template name and the target

## Getting Started
This plugin requires Grunt `~0.4.x`

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-cdntemplate --save-dev
```

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

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

## The "cdntemplate" task

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

```js
grunt.initConfig({
   cdntemplate: {
      yourtarget: {
         files: {
            // *.html or other files.
         },
         templates: [
            { match: "match string",
               tpl: "substitution string"
            },
				...
         ],
      }
  }
});
```

Consider *.html file:
```html
<link href='<%= match string %>' rel='stylesheet' type='text/css'>
```
After replace it will be:
```html
<link href='<%= substitution string %>' rel='stylesheet' type='text/css'>
```
<commit_msg>Fix Readme<commit_after># grunt-cdntemplate

> The grunt plugin for substitute appropriate CDN by the defined template name and the target

## Getting Started
This plugin requires Grunt `~0.4.x`

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-cdntemplate --save-dev
```

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

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

## The "cdntemplate" task

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

```js
grunt.initConfig({
   cdntemplate: {
      yourtarget: {
         files: {
            // *.html or other files.
         },
         templates: [
            { match: "match string",
               tpl: "substitution string"
            },
				...
         ],
      }
  }
});
```

Consider *.html file:
```html
<link href='<%= match string %>' rel='stylesheet' type='text/css'>
```
After replace it will be:
```html
<link href='substitution string' rel='stylesheet' type='text/css'>
```

{'fraction_non_alphanumeric': 0.12861169837914024, 'fraction_numerical': 0.0014094432699083862, 'mean_word_length': 3.288519637462236, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 12, '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': '2291063', 'n_tokens_mistral': 888, 'n_tokens_neox': 846, 'n_words': 304}