<commit_before>
Troilus
======
**Troilus** is a high level Cassandra Java client on the top of the [DataStax Java Driver for Apache Cassandra](https://github.com/datastax/java-driver). 
It supports synchronous programming and asynchronous programming including [reactive streams](http://www.reactive-streams.org). Troilus supports a Java8 interface as well as a Java7 interface (module 


#Examples
-------

##Create a Dao
First a DataStax Java Driver [Session](https://github.com/datastax/java-driver) object has to be created
``` java
Cluster cluster = Cluster.builder()
                         .addContactPoint(node)
                         .build();
Session session = cluster.connect("hotel_reservation_system");
```



This Session object will be used to create a new instance of a `Dao`. In the examples below the [hotels table](troilus-core/src/test/resources/com/unitedinternet/troilus/example/hotels.ddl) is used
``` java
Dao hotelsDao = new DaoImpl(session, "hotels");
```

Pre-configured dao
``` java
Dao hotelsDao = new DaoImpl(session, "hotels")
                          .withConsistency(ConsistencyLevel.LOCAL_QUORUM)
                          .withSerialConsistency(ConsistencyLevel.SERIAL);
```

##Write<commit_msg>description updated<commit_after>
Troilus
======
**Troilus** is a high level Cassandra Java client on the top of the [DataStax Java Driver for Apache Cassandra](https://github.com/datastax/java-driver). 
It supports synchronous programming and asynchronous programming including [reactive streams](http://www.reactive-streams.org). Troilus supports a Java8 interface as well as a Java7 interface (module troilus-core-java7)


#Examples
-------

##Create a Dao
First a DataStax Java Driver [Session](https://github.com/datastax/java-driver) object has to be created
``` java
Cluster cluster = Cluster.builder()
                         .addContactPoint(node)
                         .build();
Session session = cluster.connect("hotel_reservation_system");
```



This Session object will be used to create a new instance of a `Dao`. In the examples below the [hotels table](troilus-core/src/test/resources/com/unitedinternet/troilus/example/hotels.ddl) is used
``` java
Dao hotelsDao = new DaoImpl(session, "hotels");
```

Pre-configured dao
``` java
Dao hotelsDao = new DaoImpl(session, "hotels")
                          .withConsistency(ConsistencyLevel.LOCAL_QUORUM)
                          .withSerialConsistency(ConsistencyLevel.SERIAL);
```

##Write
{'fraction_non_alphanumeric': 0.1103088648215002, 'fraction_numerical': 0.0020056157240272766, 'mean_word_length': 3.485611510791367, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, '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': '6085896', 'n_tokens_mistral': 736, 'n_tokens_neox': 691, 'n_words': 215}