<commit_before>/**
 * 
 */
package me.prettyprint.cassandra.serializers;

import static me.prettyprint.hector.api.ddl.ComparatorType.COMPOSITETYPE;

import java.nio.ByteBuffer;

import me.prettyprint.hector.api.beans.Composite;
import me.prettyprint.hector.api.ddl.ComparatorType;

/**
 * @author <NAME>
 * 
 */
public class CompositeSerializer extends AbstractSerializer<Composite> {

  @Override
  public ByteBuffer toByteBuffer(Composite obj) {

    return obj.serialize();
  }<commit_msg>Add get() method which returns a static instance of CompositeSerializer<commit_after>/**
 * 
 */
package me.prettyprint.cassandra.serializers;

import static me.prettyprint.hector.api.ddl.ComparatorType.COMPOSITETYPE;

import java.nio.ByteBuffer;

import me.prettyprint.hector.api.beans.Composite;
import me.prettyprint.hector.api.ddl.ComparatorType;

/**
 * @author <NAME>
 * 
 */
public class CompositeSerializer extends AbstractSerializer<Composite> {

  private static final CompositeSerializer INSTANCE = new CompositeSerializer();
  
  public static CompositeSerializer get() {
    return INSTANCE;
  }
  
  @Override
  public ByteBuffer toByteBuffer(Composite obj) {

    return obj.serialize();
  }
{'fraction_non_alphanumeric': 0.10434056761268781, 'fraction_numerical': 0.0, 'mean_word_length': 4.764423076923077, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6037858', 'n_tokens_mistral': 380, 'n_tokens_neox': 366, 'n_words': 74}