<commit_before>package org.stevedowning.remo.internal.common;

import java.util.Date;
import java.util.Random;

import org.stevedowning.commons.idyll.Id;

public class ClientId implements Id<Object> {
    private long timestamp;
    private long secret;
    
    private ClientId() {}
    
    public static ClientId generate() {
        ClientId id = new ClientId();
        id.timestamp = new Date().getTime();
        id.secret = new Random().nextLong();
        return id;
    }
    
    public String toString() {
        return timestamp + "-" + secret;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + (int) (secret ^ (secret >>> 32));
        result = prime * result + (int) (timestamp ^ (timestamp >>> 32));
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)<commit_msg>ClientId should be Serializable<commit_after>package org.stevedowning.remo.internal.common;

import java.io.Serializable;
import java.util.Date;
import java.util.Random;

import org.stevedowning.commons.idyll.Id;

public class ClientId implements Id<Object>, Serializable {
    private static final long serialVersionUID = 1829355624289827151L;

    private long timestamp;
    private long secret;
    
    private ClientId() {}
    
    public static ClientId generate() {
        ClientId id = new ClientId();
        id.timestamp = new Date().getTime();
        id.secret = new Random().nextLong();
        return id;
    }
    
    public String toString() {
        return timestamp + "-" + secret;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + (int) (secret ^ (secret >>> 32));
        result = prime * result + (int) (timestamp ^ (timestamp >>> 32));
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
{'fraction_non_alphanumeric': 0.1129601613716591, 'fraction_numerical': 0.01664145234493192, 'mean_word_length': 2.438474870017331, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '378675', 'n_tokens_mistral': 592, 'n_tokens_neox': 562, 'n_words': 167}