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

* In progress toward compatibility with Cassandra 0.7
* Direct port of pycassa

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
--------

    $users->remove('key1'); // removes whole row
    $users->remove('key1', 'column1'); // removes 'column1'

Other
-----

    $users->get_count('key1'); // counts the number of columns in user 1 (in this case 2)
    $users->get_range('key1', 'key9'); // gets all users between '1' and '9'

Getting Help
------------

* Mailing list: http://groups.google.com/group/phpcassa
* IRC: Channel #cassandra on irc.freenode.net

AUTHORS
-------

* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
* <NAME>
* <NAME> (<EMAIL>)
* Timandes
* <NAME>
* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
* <NAME>
<commit_msg>Add doc link to README<commit_after>phpcassa
========

* In progress toward compatibility with Cassandra 0.7
* Direct port of pycassa

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
--------

    $users->remove('key1'); // removes whole row
    $users->remove('key1', 'column1'); // removes 'column1'

Other
-----

    $users->get_count('key1'); // counts the number of columns in user 1 (in this case 2)
    $users->get_range('key1', 'key9'); // gets all users between '1' and '9'

Getting Help
------------

* Mailing list: http://groups.google.com/group/phpcassa
* IRC: Channel #cassandra on irc.freenode.net

AUTHORS
-------

* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
* <NAME>
* <NAME> (<EMAIL>)
* Timandes
* <NAME>
* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
* <NAME>

{'fraction_non_alphanumeric': 0.2537977028529085, 'fraction_numerical': 0.025935531678399407, 'mean_word_length': 2.8081805359661494, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 55, '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': '6973982', 'n_tokens_mistral': 959, 'n_tokens_neox': 897, 'n_words': 225}