<commit_before>phpcassa
========

* In progress toward compatibility with [Apache Cassandra](http://cassandra.apache.org) 0.7
* Direct port of [pycassa](http://github.com/pycassa/pycassa)

API Documentation
-----------------

[phpcassa API documentation](http://thobbs.github.com/phpcassa)

Opening Connections
-------------------

    $conn = new Connection('Keyspace1');

or

    $conn = new Connection('Keyspace1', $servers=array('host' => '192.168.2.1', 'port' => 9160));

Create a column family object
-----------------------------

    $users = new CassandraCF($conn, 'Standard1'); // ColumnFamily
    $super = new CassandraCF($conn' 'Super1'); // SuperColumnFamily

Inserting
---------

    $users->insert('key', array('column1' => 'value1', 'column2' => 'value2'));

Querying
--------

    $users->get('key'); 
    $users->multiget(array('key1', 'key2'));

Removing<commit_msg>README fix for ColumnFamily and servers<commit_after>phpcassa
========

* In progress toward compatibility with [Apache Cassandra](http://cassandra.apache.org) 0.7
* Direct port of [pycassa](http://github.com/pycassa/pycassa)

API Documentation
-----------------

[phpcassa API documentation](http://thobbs.github.com/phpcassa)

Opening Connections
-------------------

    $conn = new Connection('Keyspace1');

or

    $servers[0]['host'] = '127.0.0.1';
    $servers[0]['port'] = '9160';
    $conn = new Connection('Keyspace1', $servers);

Create a column family object
-----------------------------

    $users = new ColumnFamily($conn, 'Standard1'); // ColumnFamily
    $super = new ColumnFamily($conn' 'Super1'); // SuperColumnFamily

Inserting
---------

    $users->insert('key', array('column1' => 'value1', 'column2' => 'value2'));

Querying
--------

    $users->get('key'); 
    $users->multiget(array('key1', 'key2'));

Removing
{'fraction_non_alphanumeric': 0.25109649122807015, 'fraction_numerical': 0.02631578947368421, 'mean_word_length': 2.941684665226782, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7500321', 'n_tokens_mistral': 599, 'n_tokens_neox': 565, 'n_words': 119}