<commit_before>package api

import "testing"

type People struct {
	Hello string `json:"hello"`
	Name  string `json:"name"`
	Age   string `json:"age"`
}

func TestPing(t *testing.T) {
	client, err := NewDClient("http://172.16.31.10:4213", "1.13", 20)

	if err != nil {
		t.Fatal(err.Error())
	}

	str, err := client.Ping()

	if err != nil {
		t.Fatal(err.Error())
	}

	t.Log(str)
}

func TestListImages(t *testing.T) {
	client, err := NewDClient("http://42.96.195.83:4213", "1.12", 20)

	if err != nil {
		t.Fatal(err.Error())
	}

	var images []ListImagesAPI_Resp
	err = client.ListImages(ListImagesAPI_Query {
		All : false,
	}, &images)

	if err != nil {
		t.Error(err)
		return
	}

	t.Log(images)
}

func TestInspectImages(t *testing.T) {
	var image InspectImageAPI_Resp
	client, err := NewDClient("http://172.16.17.32:4213", "1.13", 20)

	if err != nil {
		t.Fatal(err.Error())
	}
	err = client.InspectImage("ubuntu", &image)
	if err != nil {
		t.Error(err)
		return
	}

	t.Log(image)
}<commit_msg>change ip<commit_after>package api

import "testing"

type People struct {
	Hello string `json:"hello"`
	Name  string `json:"name"`
	Age   string `json:"age"`
}

func TestPing(t *testing.T) {
	client, err := NewDClient("http://42.96.195.83:4213", "1.13", 20)

	if err != nil {
		t.Fatal(err.Error())
	}

	str, err := client.Ping()

	if err != nil {
		t.Fatal(err.Error())
	}

	t.Log(str)
}

func TestListImages(t *testing.T) {
	client, err := NewDClient("http://172.16.31.10:4213", "1.12", 20)

	if err != nil {
		t.Fatal(err.Error())
	}

	var images []ListImagesAPI_Resp
	err = client.ListImages(ListImagesAPI_Query {
		All : false,
	}, &images)

	if err != nil {
		t.Error(err)
		return
	}

	t.Log(images)
}

func TestInspectImages(t *testing.T) {
	var image InspectImageAPI_Resp
	client, err := NewDClient("http://172.16.31.10:4213", "1.13", 20)

	if err != nil {
		t.Fatal(err.Error())
	}
	err = client.InspectImage("ubuntu", &image)
	if err != nil {
		t.Error(err)
		return
	}

	t.Log(image)
}
{'fraction_non_alphanumeric': 0.186, 'fraction_numerical': 0.054, 'mean_word_length': 3.5271493212669682, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '2441385', 'n_tokens_mistral': 940, 'n_tokens_neox': 822, 'n_words': 173}