<commit_before># Sample Blog API

[![Build Status](https://travis-ci.org/akornatskyy/sample-blog-api.svg?branch=master)](https://travis-ci.org/akornatskyy/sample-blog-api)
[![Code Climate](https://codeclimate.com/github/akornatskyy/sample-blog-api/badges/gpa.svg)](https://codeclimate.com/github/akornatskyy/sample-blog-api)

A simple blog API written using [python](http://python.org/) and
[wheezy.web](https://bitbucket.org/akorn/wheezy.web) framework.

# Setup

Install dependencies into virtual environment:

    virtualenv --python=/opt/local/bin/python2.7 env
    source env/bin/activate
    python setup.py develop
    easy_install pastescript

# Prepare

The static content in
[sample-blog-react](https://github.com/akornatskyy/sample-blog-react)
need to be build with *web* api strategy:

    cd ../sample-blog-react
    gulp build --api=web

optionally:

    gulp watch --debug --api=web

and linked to `content/static` directory:

    cd ../sample-blog-api
    ln -s ../../sample-blog-react/build content/static

# Run<commit_msg>Updated README with setup instructions for Windows.<commit_after># Sample Blog API

[![Build Status](https://travis-ci.org/akornatskyy/sample-blog-api.svg?branch=master)](https://travis-ci.org/akornatskyy/sample-blog-api)
[![Code Climate](https://codeclimate.com/github/akornatskyy/sample-blog-api/badges/gpa.svg)](https://codeclimate.com/github/akornatskyy/sample-blog-api)

A simple blog API written using [python](http://python.org/) and
[wheezy.web](https://bitbucket.org/akorn/wheezy.web) framework.

# Setup

Virtual environment:

    virtualenv --python=/opt/local/bin/python2.7 env
    source env/bin/activate

on Windows:

	virtualenv.exe env
	env\Scripts\activate.bat

install dependencies:
	
    python setup.py develop
    easy_install pastescript

# Prepare

The static content in
[sample-blog-react](https://github.com/akornatskyy/sample-blog-react)
need to be build with *web* api strategy:

    cd ../sample-blog-react
    gulp build --api=web

optionally:

    gulp watch --debug --api=web

and linked to `content/static` directory:

    cd ../sample-blog-api
    ln -s ../../sample-blog-react/build content/static

# Run
{'fraction_non_alphanumeric': 0.1427260211106012, 'fraction_numerical': 0.0018357044515832951, 'mean_word_length': 3.791208791208791, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, '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': '3033877', 'n_tokens_mistral': 752, 'n_tokens_neox': 727, 'n_words': 149}