<commit_before>Mazizone Portal
=================

This repository contains 

Prerequirements
---------------

Install the following packages:

    $ apt-get update
    $ apt-get install build-essential git-core libsqlite3-dev ruby ruby-dev

Also install the following gems:

    $ gem install sinatra sequel sqlite3 rake thin rubyzip --no-ri --no-rdoc

And download the back-end scripts

    $ sudo su
    $ cd /root
    $ git clone <EMAIL>:mazi-project/back-end.git

Installation
------------

    $ sudo su
    $ cd /root
    $ git clone <EMAIL>:mazi-project/portal.git
    $ cd portal
    $ rake init
    $ rake db:migrate

Configuration
-------------

Edit the configuration file (/etc/mazi/config.yml) with an editor

    $ nano /etc/mazi/config.yml

Execution
---------

    $ ruby -I lib -I database mazi_portal_server.rb

Update
-------

In order to update, you need to execute the following commands:

    $ cd /root/portal
    $ git pull origin master
    $ rake db:migrate
    $ cp /etc/mazi/config.yml /etc/mazi/config.yml.bu
    $ cp etc/config.yml /etc/mazi/config.yml

And open the configuration file (/etc/mazi/config.yml) with an editor

    $ nano /etc/mazi/config.yml
<commit_msg>readme file update<commit_after>Mazizone Portal
=================

This repository contains 

Prerequirements
---------------

Install the following packages:

    $ apt-get update
    $ apt-get install build-essential git-core libsqlite3-dev ruby ruby-dev

Also install the following gems:

    $ gem install sinatra sequel sqlite3 rake thin rubyzip --no-ri --no-rdoc

And download the back-end scripts

    $ sudo su
    $ cd /root
    $ git clone <EMAIL>:mazi-project/back-end.git

Installation
------------

    $ sudo su
    $ cd /root
    $ git clone <EMAIL>:mazi-project/portal.git
    $ cd portal
    $ rake init
    $ rake db:migrate


Execution
---------

    $ ruby -I lib -I database mazi_portal_server.rb

Update
-------

In order to update, you need to execute the following commands:

    $ sudo su
    $ cd /root/portal
    $ git pull origin master
    $ rake db:migrate
    $ cp /etc/mazi/config.yml /etc/mazi/config.yml.bu
    $ cp etc/config.yml /etc/mazi/config.yml


{'fraction_non_alphanumeric': 0.13998170173833485, 'fraction_numerical': 0.0018298261665141812, 'mean_word_length': 2.328767123287671, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '4055455', 'n_tokens_mistral': 738, 'n_tokens_neox': 686, 'n_words': 212}