<commit_before>package etcd

import (
	"fmt"
	"testing"
	"time"
)

func TestGet(t *testing.T) {
	Set("foo", "bar", 100)

	// wait for commit
	time.Sleep(100 * time.Millisecond)

	results, err := Get("foo")

	if err != nil || results[0].Key != "/foo" || results[0].Value != "bar" {
		if err != nil {
			t.Fatal(err)
		}
		t.Fatalf("Get failed with %s %s %v", results[0].Key, results[0].Value, results[0].TTL)
	}

	results, err = Get("goo")

	fmt.Println(err)

	if err == nil {
		t.Fatalf("should not be able to get non-exist key")
	}

	results, err = GetFrom("foo", "0.0.0.0:4001")

	if err != nil || results[0].Key != "/foo" || results[0].Value != "bar" {
		if err != nil {
			t.Fatal(err)
		}<commit_msg>remove print in test<commit_after>package etcd

import (
	"testing"
	"time"
)

func TestGet(t *testing.T) {
	Set("foo", "bar", 100)

	// wait for commit
	time.Sleep(100 * time.Millisecond)

	results, err := Get("foo")

	if err != nil || results[0].Key != "/foo" || results[0].Value != "bar" {
		if err != nil {
			t.Fatal(err)
		}
		t.Fatalf("Get failed with %s %s %v", results[0].Key, results[0].Value, results[0].TTL)
	}

	results, err = Get("goo")

	if err == nil {
		t.Fatalf("should not be able to get non-exist key")
	}

	results, err = GetFrom("foo", "0.0.0.0:4001")

	if err != nil || results[0].Key != "/foo" || results[0].Value != "bar" {
		if err != nil {
			t.Fatal(err)
		}
{'fraction_non_alphanumeric': 0.21063982746225737, 'fraction_numerical': 0.0301941049604601, 'mean_word_length': 3.2439024390243905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '867093', 'n_tokens_mistral': 611, 'n_tokens_neox': 558, 'n_words': 141}