<commit_before>package main

import (
	"strconv"
	"testing"
)

func TestClientSetAndString(t *testing.T) {
	tests := []int{
		5,
	}
	const newID = 42
	c := newClientCopy(newID)
	if c.id != newID {
		t.Errorf("newClientCopy(%v) = %v; want %v", newID, c.id, newID)
	}
	for _, id := range tests {
		c.setID(id)
		got := c.string()
		want := strconv.Itoa(id)
		if got != want {
			t.Errorf("id = %v: string() = %q; want %q", c.id, got, want)
		}
	}
}<commit_msg>heapstack: add TestNewClientCopy<commit_after>package main

import (
	"strconv"
	"testing"
)

const newID = 42

func TestNewClientCopy(t *testing.T) {
	c := newClientCopy(newID)
	if c.id != newID {
		t.Errorf("newClientCopy(%v) = %v; want %v", newID, c.id, newID)
	}
}

func TestClientSetAndString(t *testing.T) {
	tests := []int{
		5,
	}
	const newID = 42
	c := newClientCopy(newID)
	if c.id != newID {
		t.Errorf("newClientCopy(%v) = %v; want %v", newID, c.id, newID)
	}
	for _, id := range tests {
		c.setID(id)
		got := c.string()
		want := strconv.Itoa(id)
		if got != want {
			t.Errorf("id = %v: string() = %q; want %q", c.id, got, want)
		}
	}
}
{'fraction_non_alphanumeric': 0.18811881188118812, 'fraction_numerical': 0.0072007200720072, 'mean_word_length': 3.377952755905512, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7625412', 'n_tokens_mistral': 513, 'n_tokens_neox': 486, 'n_words': 114}