<commit_before>package com.github.ambry.shared;

import com.github.ambry.store.StoreKey;
import com.github.ambry.utils.Utils;

import java.nio.ByteBuffer;

/**
 * The Id used to represent a blob uniquely
 */
public class BlobId implements StoreKey, Comparable<BlobId>{

  public static final int size = 24;

  private String id;

  public BlobId(String id) {
    this.id = id;
  }

  public BlobId(ByteBuffer buf) {
    this.id = new String(buf.array());
  }

  public short sizeInBytes() {
    return (short)id.length();
  }

  @Override
  public ByteBuffer toBytes() {
    return ByteBuffer.wrap(id.getBytes());
  }

  @Override
  public int compareTo(BlobId o) {<commit_msg>small revert 2<commit_after>package com.github.ambry.shared;

import com.github.ambry.store.StoreKey;
import com.github.ambry.utils.Utils;
import java.nio.ByteBuffer;

/**
 * The Id used to represent a blob uniquely
 */
public class BlobId implements StoreKey, Comparable<BlobId>{

  public static final int size = 24;

  private String id;

  public BlobId(String id) {
    this.id = id;
  }

  public BlobId(ByteBuffer buf) {
    this.id = new String(buf.array());
  }

  public short sizeInBytes() {
    return (short)id.length();
  }

  @Override
  public ByteBuffer toBytes() {
    return ByteBuffer.wrap(id.getBytes());
  }

  @Override
  public int compareTo(BlobId o) {
{'fraction_non_alphanumeric': 0.11521418020679468, 'fraction_numerical': 0.003692762186115214, 'mean_word_length': 3.5777027027027026, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5010951', 'n_tokens_mistral': 464, 'n_tokens_neox': 441, 'n_words': 118}