Run with Python:
pip-2.7 install cffi PYTHON=python2.7 sh go.sh
Run with PyPy:
pip-pypy install cffi PYTHON=pypy sh go.sh
| import sqlite3 | |
| import multiprocessing | |
| ''' | |
| This program starts a daemon process that listens on a queue. | |
| It then starts 10 processes that place integers in the queue. | |
| The listening daemon pulls the integers out of the queue and | |
| stores them in the database. | |
| ''' | |
| DB_FILENAME = 'db.sqlite' |
Run with Python:
pip-2.7 install cffi PYTHON=python2.7 sh go.sh
Run with PyPy:
pip-pypy install cffi PYTHON=pypy sh go.sh

Author: Josef Jezek
sudo apt-get install python-setuptools
| all: cpp-version c-version alioth | |
| CPPFLAGS+=-g -O3 | |
| CPPFLAGS+=-march=native | |
| # LDFLAGS+=-ltcmalloc | |
| CXXFLAGS+=$(CPPFLAGS) -std=c++0x | |
| LDFLAGS+=-lpthread | |
| # CXX=clang++ |
| # Editor backup files | |
| *.bak | |
| *~ |
| #Author: Krishnamurthy Koduvayur Viswanathan | |
| from __future__ import division | |
| import collections | |
| import math | |
| class Model: | |
| def __init__(self, arffFile): | |
| self.trainingFile = arffFile | |
| self.features = {} #all feature names and their possible values (including the class label) |