<commit_before>package lbhost

import (
	"net"
	"reflect"
	"testing"

	"gitlab.cern.ch/lb-experts/golbd/lbhost"
)

//Function TestGetLoadHosts tests the function Get_load_for_alias
func TestGetLoadHosts(t *testing.T) {

	hosts := []lbhost.LBHost{
		{Cluster_name: "test01.cern.ch",
			Host_name: "lxplus132.cern.ch",
			Host_transports: []lbhost.LBHostTransportResult{
				lbhost.LBHostTransportResult{Transport: "udp", Response_int: 7, Response_string: "", IP: net.ParseIP("172.16.31.10"), Response_error: ""},
			},
			Loadbalancing_username: "loadbalancing",
			Loadbalancing_password: "<PASSWORD>",
			LogFile:                "",
			Debugflag:              false,
		},
		lbhost.LBHost{
			Cluster_name: "blabla.cern.ch",
			Host_name:    "lxplus013.cern.ch",
			Host_transports: []lbhost.LBHostTransportResult{
				lbhost.LBHostTransportResult{Transport: "udp", Response_int: 0, Response_string: "blabla.cern.ch=179,blablabla2.cern.ch=4", IP: net.ParseIP("172.16.31.10"), Response_error: ""},
			},
			Loadbalancing_username: "loadbalancing",
			Loadbalancing_password: "<PASSWORD>",
			LogFile:                "",
			Debugflag:              false,
		}}
<commit_msg>Revision of errors<commit_after>package lbhost

import (
	"net"
	"reflect"
	"testing"
)

//Function TestGetLoadHosts tests the function Get_load_for_alias
func TestGetLoadHosts(t *testing.T) {

	hosts := []LBHost{
		LBHost{Cluster_name: "test01.cern.ch",
			Host_name: "lxplus132.cern.ch",
			Host_transports: []LBHostTransportResult{
				LBHostTransportResult{Transport: "udp", Response_int: 7, Response_string: "", IP: net.ParseIP("172.16.31.10"), Response_error: ""},
			},
			Loadbalancing_username: "loadbalancing",
			Loadbalancing_password: "<PASSWORD>",
			LogFile:                "",
			Debugflag:              false,
		}, LBHost{
			Cluster_name: "blabla.cern.ch",
			Host_name:    "lxplus013.cern.ch",
			Host_transports: []LBHostTransportResult{
				LBHostTransportResult{Transport: "udp", Response_int: 0, Response_string: "blabla.cern.ch=179,blablabla2.cern.ch=4", IP: net.ParseIP("172.16.31.10"), Response_error: ""},
			},
			Loadbalancing_username: "loadbalancing",
			Loadbalancing_password: "<PASSWORD>",
			LogFile:                "",
			Debugflag:              false,
		}}

{'fraction_non_alphanumeric': 0.1439929328621908, 'fraction_numerical': 0.029151943462897525, 'mean_word_length': 3.8814655172413794, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '4705246', 'n_tokens_mistral': 942, 'n_tokens_neox': 781, 'n_words': 125}