<commit_before>package com.flux7;

import me.prettyprint.cassandra.model.CqlQuery;
import me.prettyprint.cassandra.model.CqlRows;
import me.prettyprint.cassandra.serializers.LongSerializer;
import me.prettyprint.cassandra.serializers.StringSerializer;
import me.prettyprint.hector.api.query.QueryResult;

public class HectorCQL {

	private final static String KEYSPACE = "User";
	private static final StringSerializer se = new StringSerializer();
	private static final LongSerializer le = new LongSerializer();

	public static void main(String[] args) {
		CqlQuery<String,String,Long> cqlQuery = new CqlQuery<String,String,Long>(keyspace, se, se, le);
	    cqlQuery.setQuery("select * from User");
	    QueryResult<CqlRows<String,String,Long>> result = cqlQuery.execute();
	    CqlRows<String, String, Long> rows = result.get();
	}

}<commit_msg>hector cql example<commit_after>package com.flux7;

import me.prettyprint.cassandra.model.CqlQuery;
import me.prettyprint.cassandra.model.CqlRows;
import me.prettyprint.cassandra.serializers.StringSerializer;
import me.prettyprint.hector.api.Cluster;
import me.prettyprint.hector.api.Keyspace;
import me.prettyprint.hector.api.beans.HColumn;
import me.prettyprint.hector.api.beans.Row;
import me.prettyprint.hector.api.factory.HFactory;
import me.prettyprint.hector.api.query.QueryResult;

public class HectorCQL extends CassandraConfig {

	public static void main(String[] args) throws Exception {
		
		Cluster cluster = HFactory.getOrCreateCluster("test", CASSANDRA_ADDRESS);
		 
		StringSerializer se = new StringSerializer();
		
		Keyspace keyspace = HFactory.createKeyspace("test", cluster);
	    
		CqlQuery<String, String, String> cqlQuery = new CqlQuery<String,String,String>(keyspace, se, se, se);
		
	    cqlQuery.setQuery("select * from users");
	    QueryResult<CqlRows<String,String,String>> result = cqlQuery.execute();
	    CqlRows<String, String, String> rows = result.get();
	    
	    for (Row<String, String, String> row : rows){
	    	for(HColumn column :row.getColumnSlice().getColumns()){
	    		System.out.println(column.getName()+" :: "+ column.getValue());
	    		
	    	}
	    	System.out.println("------------");
	    }
	}

}
{'fraction_non_alphanumeric': 0.12420382165605096, 'fraction_numerical': 0.0009099181073703367, 'mean_word_length': 4.83289124668435, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1552343', 'n_tokens_mistral': 731, 'n_tokens_neox': 679, 'n_words': 136}