<commit_before># Aclog [![Build Status](https://travis-ci.org/rhenium/aclog.png?branch=master)](https://travis-ci.org/rhenium/aclog) [![Coverage Status](https://coveralls.io/repos/rhenium/aclog/badge.png)](https://coveralls.io/r/rhenium/aclog)
Collects favs and retweets in real time by UserStreams.

## Aclog is
* powered by Ruby on Rails
* completely free and open source ([The MIT License](https://github.com/rhenium/aclog/blob/master/LICENSE.txt))
* Scalable structure

        |------------|           |-----------| (MsgPack) |---------|   |---|
        |            -------------           ------------- Worker  =====   |
        | Web Server (MsgPack-RPC)           -------------    Node ===== T |
        |            -------------           |           |---------|   | w |
        |-----| |----|           |           ------------- Worker  ===== i |
              | |                | Collector -------------    Node ===== t |
        |-----| |----|           |           |           |---------|   | t |
        |            -------------           ------------- Worker  ===== e |
        | DB (MySQL)                         -------------    Node ===== r |
        |            -------------           |    :      |---------|   |   |
        |------------|           |-----------|    :           :        |---|

## Status
* *unstable*
* Working on [aclog.koba789.com](http://aclog.koba789.com)

## Features
* Collecting favorites and retweets from Twitter Streaming API
* Protected account support
* JSON API (with OAuth Echo)
* Atom feed

## Requirements
* Ruby 2.1+
* MySQL/MariaDB 5.5.14+ (needs utf8mb4 support)
* JavaScript runtime (see https://github.com/rails/execjs)

## Installation
### Database
* Create MySQL user

### Application Server
* Clone the source

        $ # We'll install aclog into /var/webapps/aclog
        $ cd /var/webapps
        $ git clone https://github.com/rhenium/aclog.git
        $ cd /var/webapps/aclog

* Install Gems

        $ bundle install

* Configure

        $ # Copy the example aclog config
        $ cp config/settings.yml.example config/settings.yml
        $ # Edit it<commit_msg>readme: add memcached to requirements<commit_after># Aclog [![Build Status](https://travis-ci.org/rhenium/aclog.png?branch=master)](https://travis-ci.org/rhenium/aclog) [![Coverage Status](https://coveralls.io/repos/rhenium/aclog/badge.png)](https://coveralls.io/r/rhenium/aclog)
Collects favs and retweets in real time by UserStreams.

## Aclog is
* powered by Ruby on Rails
* completely free and open source ([The MIT License](https://github.com/rhenium/aclog/blob/master/LICENSE.txt))
* Scalable structure

        |------------|           |-----------| (MsgPack) |---------|   |---|
        |            -------------           ------------- Worker  =====   |
        | Web Server (MsgPack-RPC)           -------------    Node ===== T |
        |            -------------           |           |---------|   | w |
        |-----| |----|           |           ------------- Worker  ===== i |
              | |                | Collector -------------    Node ===== t |
        |-----| |----|           |           |           |---------|   | t |
        |            -------------           ------------- Worker  ===== e |
        | DB (MySQL)                         -------------    Node ===== r |
        |            -------------           |    :      |---------|   |   |
        |------------|           |-----------|    :           :        |---|

## Status
* *unstable*
* Working on [aclog.koba789.com](http://aclog.koba789.com)

## Features
* Collecting favorites and retweets from Twitter Streaming API
* Protected account support
* JSON API (with OAuth Echo)
* Atom feed

## Requirements
* Ruby 2.1+
* MySQL/MariaDB 5.5.14+ (needs utf8mb4 support)
* memcached
* JavaScript runtime (see https://github.com/rails/execjs)

## Installation
### Database
* Create MySQL user

### Application Server
* Clone the source

        $ # We'll install aclog into /var/webapps/aclog
        $ cd /var/webapps
        $ git clone https://github.com/rhenium/aclog.git
        $ cd /var/webapps/aclog

* Install Gems

        $ bundle install

* Configure

        $ # Copy the example aclog config
        $ cp config/settings.yml.example config/settings.yml
        $ # Edit it
{'fraction_non_alphanumeric': 0.23076923076923078, 'fraction_numerical': 0.006487488415199258, 'mean_word_length': 1.2402698495070057, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1477968', 'n_tokens_mistral': 1286, 'n_tokens_neox': 1215, 'n_words': 254}