<commit_before>package ov

import (
	"encoding/json"
	"fmt"
	"github.com/HewlettPackard/oneview-golang/rest"
	"github.com/HewlettPackard/oneview-golang/utils"
	"github.com/docker/machine/libmachine/log"
)

type Location struct {
	LocationEntries []LocationEntries `json:"locationEntries,omitempty"` //"locationEntries":{...},
}

type LocationEntries struct {
	Value string `json:"value,omitempty"` //"value":"2"
	Type  string `json:"type,omitempty"`  //"type":"StackingMemberId",

}

type PortConfigInfos struct {
	DesiredSpeed string   `json:"desiredSpeed,omitempty"` //"desiredSpeed":"Auto",
        ExpectedNeighbor *ExpectedNeighbor `json:"expectedNeighbor"`  //"expectedNeighbor":"",
	Location     Location `json:"location"`               //"location":"{...},
	PortUri      string   `json:"portUri"`                //"portUri:"",
}

type ExpectedNeighbor struct {
	RemoteChassisId string `json:"remoteChassisId,omitempty"` //"remoteChassisId":"",
	RemotePortId    string `json:"remotePortId,omitempty"`    //"remotePortId":"",
}

type UplinkSet struct {
	Name                           string            `json:"name,omitempty"`                           // "name": "Uplink77",
	LogicalInterconnectURI         utils.Nstring     `json:"logicalInterconnectUri,omitempty"`         // "logicalInterconnectUri": "/rest/logical-interconnects/7769cae0-b680-435b-9b87-9b864c81657f",
	NetworkURIs                    []utils.Nstring   `json:"networkUris,omitempty"`                    // "networkUris": "/rest/ethernet-networks/e2f0031b-52bd-4223-9ac1-d91cb519d548",
	FcNetworkURIs                  []utils.Nstring   `json:"fcNetworkUris"`                            // "fcNetworkUris": "[]",
	FcoeNetworkURIs                []utils.Nstring   `json:"fcoeNetworkUris"`                          // "fcoeNetworkUris": "[]",
	PortConfigInfos                []PortConfigInfos `json:"portConfigInfos"`                          // "portConfigInfos": "[]",
	ConnectionMode                 string            `json:"connectionMode,omitempty"`                 // "connectionMode":"Auto",
	NetworkType                    string            `json:"networkType,omitempty"`                    // "networkType":"Ethernet",
	EthernetNetworkType            string            `json:"ethernetNetworkType,omitempty"`            // "ethernetNetworkType":"Tagged",
	ManualLoginRedistributionState string            `json:"manualLoginRedistributionState,omitempty"` //"manualLoginRedistributionState":"NotSupported"
	URI                            utils.Nstring     `json:"uri,omitempty"`                            // "uri": "/rest/uplink-sets/"e2f0031b-52bd-4223-9ac1-d91cb519d548",
	Type                           string            `json:"type,omitempty"`                           // "type": "uplink-setV4",
	Category                       string            `json:"category,omitempty"`                       //"category":"uplink-sets",<commit_msg>gofmt<commit_after>package ov

import (
	"encoding/json"
	"fmt"
	"github.com/HewlettPackard/oneview-golang/rest"
	"github.com/HewlettPackard/oneview-golang/utils"
	"github.com/docker/machine/libmachine/log"
)

type Location struct {
	LocationEntries []LocationEntries `json:"locationEntries,omitempty"` //"locationEntries":{...},
}

type LocationEntries struct {
	Value string `json:"value,omitempty"` //"value":"2"
	Type  string `json:"type,omitempty"`  //"type":"StackingMemberId",

}

type PortConfigInfos struct {
	DesiredSpeed     string            `json:"desiredSpeed,omitempty"` //"desiredSpeed":"Auto",
	ExpectedNeighbor *ExpectedNeighbor `json:"expectedNeighbor"`       //"expectedNeighbor":"",
	Location         Location          `json:"location"`               //"location":"{...},
	PortUri          string            `json:"portUri"`                //"portUri:"",
}

type ExpectedNeighbor struct {
	RemoteChassisId string `json:"remoteChassisId,omitempty"` //"remoteChassisId":"",
	RemotePortId    string `json:"remotePortId,omitempty"`    //"remotePortId":"",
}

type UplinkSet struct {
	Name                           string            `json:"name,omitempty"`                           // "name": "Uplink77",
	LogicalInterconnectURI         utils.Nstring     `json:"logicalInterconnectUri,omitempty"`         // "logicalInterconnectUri": "/rest/logical-interconnects/7769cae0-b680-435b-9b87-9b864c81657f",
	NetworkURIs                    []utils.Nstring   `json:"networkUris,omitempty"`                    // "networkUris": "/rest/ethernet-networks/e2f0031b-52bd-4223-9ac1-d91cb519d548",
	FcNetworkURIs                  []utils.Nstring   `json:"fcNetworkUris"`                            // "fcNetworkUris": "[]",
	FcoeNetworkURIs                []utils.Nstring   `json:"fcoeNetworkUris"`                          // "fcoeNetworkUris": "[]",
	PortConfigInfos                []PortConfigInfos `json:"portConfigInfos"`                          // "portConfigInfos": "[]",
	ConnectionMode                 string            `json:"connectionMode,omitempty"`                 // "connectionMode":"Auto",
	NetworkType                    string            `json:"networkType,omitempty"`                    // "networkType":"Ethernet",
	EthernetNetworkType            string            `json:"ethernetNetworkType,omitempty"`            // "ethernetNetworkType":"Tagged",
	ManualLoginRedistributionState string            `json:"manualLoginRedistributionState,omitempty"` //"manualLoginRedistributionState":"NotSupported"
	URI                            utils.Nstring     `json:"uri,omitempty"`                            // "uri": "/rest/uplink-sets/"e2f0031b-52bd-4223-9ac1-d91cb519d548",
	Type                           string            `json:"type,omitempty"`                           // "type": "uplink-setV4",
	Category                       string            `json:"category,omitempty"`                       //"category":"uplink-sets",
{'fraction_non_alphanumeric': 0.13460555460896234, 'fraction_numerical': 0.023513375362071903, 'mean_word_length': 2.221734357848518, 'pattern_counts': {'":': 42, '<': 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': '2307968', 'n_tokens_mistral': 1730, 'n_tokens_neox': 1608, 'n_words': 231}