<commit_before>package configgtm

import (
	"github.com/akamai/AkamaiOPEN-edgegrid-golang/client-v1"

	"fmt"
)

//
// Support gtm domain properties thru Edgegrid
// Based on 1.3 Schema
//

// TrafficTarget struc
type TrafficTarget struct {
	DatacenterId int      `json:"datacenterId,omitempty"`
	Enabled      bool     `json:"enabled,omitempty"`
	Weight       float64  `json:"weight,omitempty"`
	Servers      []string `json:"servers,omitempty"`
	Name         string   `json:"name,omitempty"`
	HandoutCName string   `json:"handoutCName,omitempty"`
}

// MxRecord struc
type MxRecord struct {
	Exchange   string `json:"exchange,omitempty"`
	Preference int    `json:"preference,omitempty"`
}

type LivenessTest struct {
	Name                          string  `json:"name"`
	ErrorPenalty                  int     `json:"errorPenalty,omitempty"`
	PeerCertificateVerification   bool    `json:"peerCertificateVerification,omitempty"`
	TestInterval                  int     `json:"testInterval"`
	TestObject                    string  `json:"testObject,omitempty"`
	Links                         []*Link `json:"links,omitempty"`
	RequestString                 string  `json:"requestString,omitempty"`
	ResponseString                string  `json:"responseString,omitempty"`
	HttpError3xx                  bool    `json:"httpError3xx,omitempty"`
	HttpError4xx                  bool    `json:"httpError4xx,omitempty"`
	HttpError5xx                  bool    `json:"httpError5xx,omitempty"`
	TestObjectProtocol            string  `json:"testObjectProtocol"`
	TestObjectPassword            string  `json:"testObjectPassword,omitempty"`
	TestObjectPort                int     `json:"testObjectPort,omitempty"`
	SslClientPrivateKey           string  `json:"sslClientPrivateKey,omitempty"`
	SslClientCertificate          string  `json:"sslClientCertificate,omitempty"`
	DisableNonstandardPortWarning bool    `json:"disableNonstandardPortWarning,omitempty"`
	HostHeader                    string  `json:"hostHeader,omitempty"`
	TestObjectUsername            string  `json:"testObjectUsername,omitempty"`
	TestTimeout                   float32 `json:"testTimeout"`
	TimeoutPenalty                int     `json:"timeoutPenalty,omitempty"`
	AnswerRequired                bool    `json:"answerRequired,omitempty"`
	ResourceType                  string  `json:"resourceType,omitempty"`
	RecursionRequested            bool    `json:"recursionRequested,omitempty"`
}

// Property represents a GTM property
type Property struct {<commit_msg>removed omitEmpty from required testObject<commit_after>package configgtm

import (
	"github.com/akamai/AkamaiOPEN-edgegrid-golang/client-v1"

	"fmt"
)

//
// Support gtm domain properties thru Edgegrid
// Based on 1.3 Schema
//

// TrafficTarget struc
type TrafficTarget struct {
	DatacenterId int      `json:"datacenterId,omitempty"`
	Enabled      bool     `json:"enabled,omitempty"`
	Weight       float64  `json:"weight,omitempty"`
	Servers      []string `json:"servers,omitempty"`
	Name         string   `json:"name,omitempty"`
	HandoutCName string   `json:"handoutCName,omitempty"`
}

// MxRecord struc
type MxRecord struct {
	Exchange   string `json:"exchange,omitempty"`
	Preference int    `json:"preference,omitempty"`
}

type LivenessTest struct {
	Name                          string  `json:"name"`
	ErrorPenalty                  int     `json:"errorPenalty,omitempty"`
	PeerCertificateVerification   bool    `json:"peerCertificateVerification,omitempty"`
	TestInterval                  int     `json:"testInterval"`
	TestObject                    string  `json:"testObject"`
	Links                         []*Link `json:"links,omitempty"`
	RequestString                 string  `json:"requestString,omitempty"`
	ResponseString                string  `json:"responseString,omitempty"`
	HttpError3xx                  bool    `json:"httpError3xx,omitempty"`
	HttpError4xx                  bool    `json:"httpError4xx,omitempty"`
	HttpError5xx                  bool    `json:"httpError5xx,omitempty"`
	TestObjectProtocol            string  `json:"testObjectProtocol"`
	TestObjectPassword            string  `json:"testObjectPassword,omitempty"`
	TestObjectPort                int     `json:"testObjectPort,omitempty"`
	SslClientPrivateKey           string  `json:"sslClientPrivateKey,omitempty"`
	SslClientCertificate          string  `json:"sslClientCertificate,omitempty"`
	DisableNonstandardPortWarning bool    `json:"disableNonstandardPortWarning,omitempty"`
	HostHeader                    string  `json:"hostHeader,omitempty"`
	TestObjectUsername            string  `json:"testObjectUsername,omitempty"`
	TestTimeout                   float32 `json:"testTimeout"`
	TimeoutPenalty                int     `json:"timeoutPenalty,omitempty"`
	AnswerRequired                bool    `json:"answerRequired,omitempty"`
	ResourceType                  string  `json:"resourceType,omitempty"`
	RecursionRequested            bool    `json:"recursionRequested,omitempty"`
}

// Property represents a GTM property
type Property struct {
{'fraction_non_alphanumeric': 0.09130520895226778, 'fraction_numerical': 0.005149534561299267, 'mean_word_length': 2.8756715272448194, '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': '1278358', 'n_tokens_mistral': 1350, 'n_tokens_neox': 1287, 'n_words': 268}