<commit_before>## Summary
Convert [cnblog bakcup](http://i.cnblogs.com/BlogBackup.aspx) to markdown or markdown file.

Ruby Gem: [https://rubygems.org/gems/cnblog_back_up_to_markdown](https://rubygems.org/gems/cnblog_back_up_to_markdown)
## Requirements
1. [Nokogiri](http://nokogiri.org/)
2. Ruby 1.9.3 or higher

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'reverse_markdown'
gem 'cnblog_back_up_to_markdown'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install cnblog_back_up_to_markdown

## Usage

### Ruby

require

	require 'cnblog_back_up_to_markdown'

use
	
	file_path = File.expand_path("app/controllers/CNBlogs_BlogBackup_131_201311_201602.xml")
      File.open(file_path) do |f|
        @articles = CnblogBackUpToMarkdown::convert(f)
      end
	<commit_msg>README.md update<commit_after>## Summary
Convert [cnblog bakcup](http://i.cnblogs.com/BlogBackup.aspx) to markdown or markdown file.

Ruby Gem: [https://rubygems.org/gems/cnblog_back_up_to_markdown](https://rubygems.org/gems/cnblog_back_up_to_markdown)
## Requirements
1. [Nokogiri](http://nokogiri.org/)
2. Ruby 1.9.3 or higher

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'reverse_markdown'
gem 'cnblog_back_up_to_markdown'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install cnblog_back_up_to_markdown

## Usage

### Ruby

require

```ruby
require 'cnblog_back_up_to_markdown'
```

use

```ruby
file_path = File.expand_path("app/controllers/CNBlogs_BlogBackup_131_201311_201602.xml")
File.open(file_path) do |f|
  @articles = CnblogBackUpToMarkdown::convert(f)
end
```
{'fraction_non_alphanumeric': 0.12079326923076923, 'fraction_numerical': 0.02403846153846154, 'mean_word_length': 5.076642335766423, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7670203', 'n_tokens_mistral': 688, 'n_tokens_neox': 612, 'n_words': 123}