text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (s *stanzaElement) ToJID() *jid.JID {
return s.toJID
} | [
1.0483126640319824,
-0.6995953917503357,
0.3701513111591339,
0.01330031268298626,
-0.550619900226593,
0.8501644730567932,
0.9419645071029663,
0.7995622158050537,
0.4659940004348755,
-0.4408356547355652,
0.30881375074386597,
0.4054625928401947,
-0.17503923177719116,
0.00894224178045988,
-... |
func (s *stanzaElement) SetToJID(j *jid.JID) {
s.toJID = j
s.SetTo(j.String())
} | [
0.48764312267303467,
-0.5593967437744141,
0.017510386183857918,
-0.7240259051322937,
-0.7936156392097473,
0.45149630308151245,
0.6430452466011047,
0.3817135989665985,
-0.4334612488746643,
0.2985391616821289,
-0.27328652143478394,
0.7287663221359253,
0.3279690146446228,
0.5782312750816345,
... |
func (s *stanzaElement) FromJID() *jid.JID {
return s.fromJID
} | [
1.070374846458435,
-0.9027003049850464,
0.3545738756656647,
0.043694932013750076,
-1.654658555984497,
0.8727948665618896,
0.20792287588119507,
0.41425907611846924,
0.4545697271823883,
-0.12083671241998672,
0.32790738344192505,
0.9561688899993896,
0.34360650181770325,
0.5922212600708008,
... |
func (s *stanzaElement) SetFromJID(j *jid.JID) {
s.fromJID = j
s.SetFrom(j.String())
} | [
0.7334275841712952,
-0.884955108165741,
-0.059667427092790604,
-0.2849022448062897,
-1.556749701499939,
0.5809609293937683,
0.005502836313098669,
-0.09188155829906464,
-0.29169291257858276,
0.376356840133667,
-0.37880101799964905,
1.1248563528060913,
0.531901478767395,
0.8848897814750671,
... |
func (s *stanzaElement) FromBytes(buf *bytes.Buffer) error {
if err := s.Element.FromBytes(buf); err != nil {
return err
}
// set from and to JIDs.
fromJID, err := jid.NewWithString(s.From(), false)
if err != nil {
return err
}
toJID, err := jid.NewWithString(s.To(), false)
if err != nil {
return err
}
... | [
-0.16154034435749054,
-0.5070054531097412,
0.3071073889732361,
-0.6779196262359619,
-0.7596456408500671,
0.09255144000053406,
0.48654335737228394,
0.6322807669639587,
0.3160092532634735,
-0.27629122138023376,
-0.619384229183197,
0.30465659499168396,
0.5601869821548462,
-0.04904003068804741... |
func NewAgreementFile()(*AgreementFile) {
m := &AgreementFile{
AgreementFileProperties: *NewAgreementFileProperties(),
}
return m
} | [
0.4303830862045288,
-0.5807685852050781,
0.21553556621074677,
0.6841644048690796,
-0.49901261925697327,
0.5183879733085632,
0.47931933403015137,
0.7441328763961792,
-1.6893829107284546,
0.37737417221069336,
0.007354672998189926,
-0.34105122089385986,
0.0825369656085968,
0.06288936734199524... |
func CreateAgreementFileFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewAgreementFile(), nil
} | [
0.892750084400177,
-0.4448232650756836,
0.500360369682312,
-0.18706770241260529,
-0.38854727149009705,
0.6143448948860168,
0.4995808005332947,
0.48817434906959534,
-0.5020527243614197,
-0.1740027219057083,
0.5015170574188232,
-0.029963476583361626,
0.22623902559280396,
0.5582972764968872,
... |
func (m *AgreementFile) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := m.AgreementFileProperties.GetFieldDeserializers()
res["localizations"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetCollectionOf... | [
-0.041998058557510376,
0.4084395170211792,
0.39108046889305115,
-0.5363093614578247,
0.5011579394340515,
0.23722150921821594,
0.11147114634513855,
0.5796751379966736,
-0.9047372341156006,
-0.3272346556186676,
-0.28391802310943604,
-0.5045213103294373,
-1.1039506196975708,
-0.22554206848144... |
func (m *AgreementFile) GetLocalizations()([]AgreementFileLocalizationable) {
return m.localizations
} | [
0.7491934895515442,
0.4584040343761444,
0.4636591374874115,
0.77734375,
0.3535194396972656,
0.5088024735450745,
0.003303158562630415,
0.2906850576400757,
-0.7247989773750305,
0.30064088106155396,
0.07032506167888641,
-0.8028839826583862,
-0.7915654182434082,
0.474313884973526,
0.13120095... |
func (m *AgreementFile) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
err := m.AgreementFileProperties.Serialize(writer)
if err != nil {
return err
}
if m.GetLocalizations() != nil {
cast := i2ae4187f7daee263371cb1c977df6... | [
0.0935683324933052,
0.1684173345565796,
0.4200496971607208,
-0.34625354409217834,
0.8946443796157837,
0.44108647108078003,
1.0714781284332275,
0.4167824983596802,
-1.3253494501113892,
0.6929699182510376,
0.3879181146621704,
-0.6380879878997803,
-0.9146082401275635,
0.43293800950050354,
0... |
func (m *AgreementFile) SetLocalizations(value []AgreementFileLocalizationable)() {
m.localizations = value
} | [
0.4916002154350281,
0.8478676080703735,
0.41814225912094116,
0.4907466471195221,
0.14106003940105438,
0.6196634769439697,
0.5408703684806824,
0.023641856387257576,
-1.0978951454162598,
0.36453065276145935,
-0.0688546895980835,
-1.402500867843628,
-0.2557772099971771,
0.924712061882019,
-... |
func dchg(v uint64, width int, base int) (string, int) {
c := 0
for {
ret := strconv.FormatUint(v, 10)
if len(ret) <= width {
return ret, c
}
v = v / uint64(base)
c++
}
} | [
-0.8596691489219666,
1.1313709020614624,
0.38142675161361694,
-0.8605242371559143,
-0.5865134000778198,
-0.5029574036598206,
-0.3107280433177948,
0.09378188848495483,
0.11284389346837997,
0.5068682432174683,
-0.22113312780857086,
-0.7122148275375366,
-0.5113542675971985,
1.1236562728881836... |
func HasVariables(policy kyvernov1.PolicyInterface) [][]string {
policyRaw, _ := json.Marshal(policy)
matches := regex.RegexVariables.FindAllStringSubmatch(string(policyRaw), -1)
return matches
} | [
-0.9565617442131042,
-0.3123708665370941,
0.5879602432250977,
-0.8562209010124207,
0.04722345247864723,
0.1564013659954071,
-0.9216315150260925,
0.15555861592292786,
-0.1130223423242569,
0.7854893207550049,
-0.6787001490592957,
-0.2486935406923294,
-0.7212848663330078,
-0.27468958497047424... |
func GetPolicies(paths []string) (policies []kyvernov1.PolicyInterface, validatingAdmissionPolicies []v1alpha1.ValidatingAdmissionPolicy, errors []error) {
for _, path := range paths {
log.V(5).Info("reading policies", "path", path)
var (
fileDesc os.FileInfo
err error
)
isHTTPPath := IsHTTPRegex.... | [
0.007048677187412977,
-0.23547323048114777,
0.7212613224983215,
0.1650540679693222,
-0.02763931080698967,
0.7281140089035034,
0.17779527604579926,
-0.04665999487042427,
0.17233498394489288,
0.28540849685668945,
1.4015488624572754,
0.3118855953216553,
0.00832520704716444,
1.2962089776992798... |
func IsInputFromPipe() bool {
fileInfo, _ := os.Stdin.Stat()
return fileInfo.Mode()&os.ModeCharDevice == 0
} | [
-0.32649239897727966,
-0.7106555700302124,
0.6742256879806519,
0.44288742542266846,
-0.9763621687889099,
0.47704505920410156,
0.293422669172287,
-0.06131701171398163,
-0.006399760954082012,
-0.020414035767316818,
-0.36666566133499146,
-0.40934011340141296,
-0.9644403457641602,
-0.252177178... |
func RemoveDuplicateAndObjectVariables(matches [][]string) string {
var variableStr string
for _, m := range matches {
for _, v := range m {
foundVariable := strings.Contains(variableStr, v)
if !foundVariable {
if !strings.Contains(v, "request.object") && !strings.Contains(v, "element") && v == "elementIn... | [
-0.7121824622154236,
-1.7719790935516357,
0.6558591723442078,
-0.20259009301662445,
-0.9562236070632935,
0.5101315975189209,
0.9173457026481628,
-0.30416470766067505,
0.8868386149406433,
0.42863479256629944,
0.2406095266342163,
-0.20622804760932922,
-0.029270602390170097,
0.171907499432563... |
func PrintMutatedOutput(mutateLogPath string, mutateLogPathIsDir bool, yaml string, fileName string) error {
var f *os.File
var err error
yaml = yaml + ("\n---\n\n")
mutateLogPath = filepath.Clean(mutateLogPath)
if !mutateLogPathIsDir {
// truncation for the case when mutateLogPath is a file (not a directory) i... | [
1.0016882419586182,
-1.015009880065918,
1.0319437980651855,
0.41462329030036926,
-0.2023215889930725,
-0.20528270304203033,
0.4828142821788788,
0.22375229001045227,
0.6546753644943237,
0.19418688118457794,
0.2552824020385742,
1.182024359703064,
-0.1300896853208542,
1.1401052474975586,
0.... |
func GetPoliciesFromPaths(fs billy.Filesystem, dirPath []string, isGit bool, policyResourcePath string) (policies []kyvernov1.PolicyInterface, validatingAdmissionPolicies []v1alpha1.ValidatingAdmissionPolicy, err error) {
if isGit {
for _, pp := range dirPath {
filep, err := fs.Open(filepath.Join(policyResourcePa... | [
0.48566946387290955,
-0.10205823928117752,
0.7283777594566345,
0.39346927404403687,
-0.05414096266031265,
1.2123559713363647,
-0.14746752381324768,
0.21962709724903107,
0.18872645497322083,
0.37954825162887573,
1.0140382051467896,
0.3334105312824249,
-0.18896661698818207,
0.971717178821563... |
func GetResourceAccordingToResourcePath(fs billy.Filesystem, resourcePaths []string,
cluster bool, policies []kyvernov1.PolicyInterface, validatingAdmissionPolicies []v1alpha1.ValidatingAdmissionPolicy, dClient dclient.Interface, namespace string, policyReport bool, isGit bool, policyResourcePath string,
) (resources ... | [
0.4758453667163849,
-0.16677212715148926,
0.7472684383392334,
0.3253915011882782,
0.10995747148990631,
-0.3334362208843231,
0.48865771293640137,
0.7625808119773865,
0.2794511020183563,
0.8089047074317932,
1.451366662979126,
-0.15243838727474213,
-0.32847458124160767,
0.6517866849899292,
... |
func GetResourceFromPath(fs billy.Filesystem, path string, isGit bool, policyResourcePath string, resourceType string) (unstructured.Unstructured, error) {
var resourceBytes []byte
var resource unstructured.Unstructured
var err error
if isGit {
if len(path) > 0 {
filep, fileErr := fs.Open(filepath.Join(policyR... | [
0.9029607772827148,
-0.7856582999229431,
0.6265846490859985,
-0.7135809063911438,
-0.26096928119659424,
0.1634168028831482,
-0.3688894808292389,
0.08215122669935226,
0.2815031409263611,
-0.06960488855838776,
0.8116295337677002,
0.21366283297538757,
-0.3586715757846832,
0.007182978093624115... |
func initializeMockController(objects []runtime.Object) (*generate.GenerateController, error) {
client, err := dclient.NewFakeClient(runtime.NewScheme(), nil, objects...)
if err != nil {
fmt.Printf("Failed to mock dynamic client")
return nil, err
}
client.SetDiscovery(dclient.NewFakeDiscoveryClient(nil))
cfg :... | [
-0.594092607498169,
0.7676383256912231,
0.8377506732940674,
0.08672909438610077,
0.580257773399353,
-0.6714228987693787,
1.3683699369430542,
-0.4747520685195923,
-0.3178171217441559,
-0.12260200083255768,
-0.6425267457962036,
-0.048353563994169235,
-0.3334275186061859,
1.5078625679016113,
... |
func handleGeneratePolicy(generateResponse *engineapi.EngineResponse, policyContext engine.PolicyContext, ruleToCloneSourceResource map[string]string) ([]engineapi.RuleResponse, error) {
resource := policyContext.NewResource()
objects := []runtime.Object{&resource}
resources := []*unstructured.Unstructured{}
for _,... | [
-0.27861401438713074,
-0.5933749675750732,
0.8832122683525085,
-0.4992811977863312,
1.1012552976608276,
0.4319601058959961,
0.2894415259361267,
0.16295009851455688,
-0.046751607209444046,
0.43272072076797485,
0.21175293624401093,
-0.4443553686141968,
-0.6288540959358215,
0.6523358225822449... |
func GetUserInfoFromPath(fs billy.Filesystem, path string, isGit bool, policyResourcePath string) (kyvernov1beta1.RequestInfo, error) {
userInfo := &kyvernov1beta1.RequestInfo{}
if isGit {
filep, err := fs.Open(filepath.Join(policyResourcePath, path))
if err != nil {
fmt.Printf("Unable to open userInfo file: %... | [
0.6622141599655151,
-1.0454822778701782,
0.7619697451591492,
-0.05382196232676506,
-0.5506541728973389,
0.25774016976356506,
-0.5095003843307495,
-0.6673370003700256,
-0.42493802309036255,
0.12677150964736938,
-0.053151171654462814,
0.41935431957244873,
-0.09141965955495834,
0.135797336697... |
func NewSimpleHistogram(subsystem, name, help string, buckets []float64) SimpleHistogram {
return NewSimpleHistogramWithOpts(subsystem, name, help, buckets, DefaultOptions)
} | [
0.3133724629878998,
0.6887089610099792,
0.447601318359375,
0.43083688616752625,
-0.5273420810699463,
-0.2299840897321701,
-0.5566221475601196,
-0.18052081763744354,
0.46348804235458374,
-1.1018635034561157,
-1.3349566459655762,
-0.02768694795668125,
0.08251921087503433,
0.15634146332740784... |
func NewSimpleHistogramWithOpts(subsystem, name, help string, buckets []float64, opts Options) SimpleHistogram {
name = opts.NameWithSeparator(subsystem, name)
pc := prometheus.NewHistogram(prometheus.HistogramOpts{
Subsystem: subsystem,
Name: name,
Help: help,
Buckets: buckets,
})
telemetryRe... | [
0.6443716287612915,
0.6296117305755615,
0.7301598787307739,
-0.15092045068740845,
-0.2899051308631897,
0.037475064396858215,
-0.9438196420669556,
-0.2746434509754181,
0.7890980243682861,
-0.6470181345939636,
-0.8980766534805298,
0.19659312069416046,
-0.22789861261844635,
0.160646453499794,... |
func NewGitHubKeys(opts GitHubKeysOptions) (*GitHubKeys, error) {
var repo GitHubKeys
// using a token requires use of a transport.
// we create one using oauth2.NewClient().
var oauthTransport http.RoundTripper
if opts.Token != "" {
oauthTransport = oauth2.NewClient(
context.Background(),
oauth2.StaticTo... | [
-0.44786185026168823,
0.3361615240573883,
0.39695513248443604,
-0.3080550730228424,
-0.3229263722896576,
-0.5473677515983582,
-0.7557621598243713,
-0.061338722705841064,
-0.2236723005771637,
0.4289930760860443,
-0.7664905190467834,
0.8061671853065491,
-0.958498477935791,
-0.499558478593826... |
func parseKey(index int, keys []*github.Key, pks []ssh.PublicKey, wg *sync.WaitGroup, errChan chan<- error) {
defer wg.Done()
var err error
if pks[index], _, _, _, err = ssh.ParseAuthorizedKey([]byte(keys[index].GetKey())); err == nil {
return
}
select {
case errChan <- err:
default:
}
} | [
-0.5762444734573364,
1.0511349439620972,
0.41624996066093445,
0.7727600336074829,
0.47508394718170166,
-0.11933714151382446,
-0.5430145263671875,
-0.530729353427887,
-0.01603035442531109,
0.4981154799461365,
0.39659637212753296,
0.20032931864261627,
-0.4178789258003235,
-0.0576512366533279... |
func (obj *identity) Name() string {
return obj.name
} | [
-1.0935792922973633,
-1.1181352138519287,
0.5030766129493713,
0.6080344319343567,
-0.3692884147167206,
0.6350888609886169,
-0.08437894284725189,
-1.0712004899978638,
0.3832705318927765,
1.0074771642684937,
-0.8990283608436584,
-0.13787075877189636,
-0.0445735901594162,
-0.4520822763442993,... |
func (obj *identity) Seed() string {
return obj.seed
} | [
0.052325714379549026,
-0.378327876329422,
0.3960965573787689,
0.19031040370464325,
-0.3356451690196991,
1.3948378562927246,
0.03523406386375427,
-0.05928861349821091,
0.9587556719779968,
-0.3237047791481018,
-0.04079245775938034,
0.7677422165870667,
-0.05752969905734062,
-0.563402354717254... |
func (obj *identity) ShareHolders() ShareHolders {
return obj.holders
} | [
-0.6160666346549988,
-0.7892348766326904,
0.36380401253700256,
0.510707676410675,
0.8956198692321777,
0.7148160934448242,
-1.2840640544891357,
-0.5398190021514893,
0.3280901312828064,
-0.9868356585502625,
-0.630336344242096,
0.04914919659495354,
-0.7920559644699097,
0.003971426282078028,
... |
func (obj *identity) Connections() Connections {
return obj.conns
} | [
-1.1215085983276367,
-1.0985223054885864,
0.3121665418148041,
0.4755585193634033,
0.8344921469688416,
-0.2925936281681061,
-0.5812283754348755,
-0.886751115322113,
0.9386001825332642,
-0.9035093188285828,
-0.5327107310295105,
-0.16737940907478333,
-0.48447343707084656,
-0.34183770418167114... |
func (d *DependencyUnsyncedConsensus) Disrupt(s string) bool {
return s == "UnsyncedConsensus"
} | [
0.12194868177175522,
-0.12698894739151,
0.4251512587070465,
-0.3620125949382782,
-0.4378291964530945,
-0.13289180397987366,
0.08333954960107803,
0.35455191135406494,
0.8167665600776672,
-0.3069947361946106,
0.6403951644897461,
0.10948316752910614,
0.12315559387207031,
0.19686146080493927,
... |
func (d *DependencyDisableAsyncUnlock) Disrupt(s string) bool {
return s == "DisableAsyncUnlock"
} | [
-0.145904079079628,
0.1731577068567276,
0.16921697556972504,
-0.06448725610971451,
-0.9845162630081177,
0.8470814228057861,
0.3614061772823334,
0.5508783459663391,
0.731137752532959,
0.056032683700323105,
0.78462815284729,
-0.30076929926872253,
-0.5167133212089539,
0.8083735704421997,
0.... |
func NewMockWorker(ctrl *gomock.Controller) *MockWorker {
mock := &MockWorker{ctrl: ctrl}
mock.recorder = &MockWorkerMockRecorder{mock}
return mock
} | [
-0.19227339327335358,
0.4074735939502716,
0.4703260362148285,
0.5129139423370361,
0.30433058738708496,
0.22128574550151825,
0.22174857556819916,
-0.6607771515846252,
0.11719128489494324,
0.17863304913043976,
-1.439112901687622,
-0.5820020437240601,
-0.7386454939842224,
1.304608941078186,
... |
func (m *MockWorker) EXPECT() *MockWorkerMockRecorder {
return m.recorder
} | [
0.03882575407624245,
-0.02680051326751709,
0.34420400857925415,
0.33304542303085327,
-0.18130643665790558,
0.4401337206363678,
0.2328932285308838,
-0.05092687904834747,
0.14748834073543549,
-0.4145607352256775,
0.23819494247436523,
0.7470479011535645,
-1.4186533689498901,
0.836118161678314... |
func (m *MockWorker) StartWorkerPool(arg0 func(interface{}) (reconcile.Result, error)) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "StartWorkerPool", arg0)
ret0, _ := ret[0].(error)
return ret0
} | [
0.017551405355334282,
-0.688290536403656,
0.2792070209980011,
0.6904080510139465,
0.03554430231451988,
0.38718634843826294,
2.1446280479431152,
-0.5001909732818604,
-0.5429297685623169,
-0.33155447244644165,
-1.6690884828567505,
-0.4849090278148651,
-1.6776655912399292,
0.5697717666625977,... |
func (mr *MockWorkerMockRecorder) StartWorkerPool(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartWorkerPool", reflect.TypeOf((*MockWorker)(nil).StartWorkerPool), arg0)
} | [
0.10336646437644958,
-0.3381657600402832,
0.017007529735565186,
0.715414822101593,
-0.9741610884666443,
0.18101269006729126,
0.8001850247383118,
-0.9283187389373779,
0.4888301193714142,
0.3707770109176636,
-0.7841474413871765,
0.5693219900131226,
-1.3779994249343872,
1.0193793773651123,
... |
func (m *MockWorker) SubmitJob(arg0 interface{}) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SubmitJob", arg0)
} | [
-0.36990728974342346,
-0.17607481777668,
0.12818863987922668,
1.0877796411514282,
0.9571656584739685,
1.3768869638442993,
0.6072198152542114,
-0.05628155171871185,
-0.3262775242328644,
-0.5091046690940857,
-0.3940388858318329,
-0.31015545129776,
-1.0526666641235352,
1.2068487405776978,
-... |
func (mr *MockWorkerMockRecorder) SubmitJob(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitJob", reflect.TypeOf((*MockWorker)(nil).SubmitJob), arg0)
} | [
0.0243841502815485,
0.5804553627967834,
-0.10454194992780685,
0.5985310673713684,
-0.2636680603027344,
0.8127530813217163,
-0.41558143496513367,
-0.5449486970901489,
0.8237610459327698,
0.21941633522510529,
0.6695160865783691,
0.5955051779747009,
-1.4041467905044556,
1.1575599908828735,
... |
func (m *MockWorker) SubmitJobAfter(arg0 interface{}, arg1 time.Duration) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SubmitJobAfter", arg0, arg1)
} | [
-0.25207051634788513,
-0.4487631320953369,
0.15083417296409607,
0.9829069375991821,
0.2848411798477173,
1.0033680200576782,
0.28377726674079895,
-0.6177983283996582,
-0.6737762689590454,
-0.330175518989563,
-1.2146023511886597,
-0.5005241632461548,
-0.9781623482704163,
1.7194827795028687,
... |
func (mr *MockWorkerMockRecorder) SubmitJobAfter(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitJobAfter", reflect.TypeOf((*MockWorker)(nil).SubmitJobAfter), arg0, arg1)
} | [
0.008494324050843716,
0.07374894618988037,
-0.10048782080411911,
0.5458977818489075,
-0.7313597798347473,
0.5875136256217957,
-0.5396774411201477,
-1.0968211889266968,
0.23053808510303497,
0.18495731055736542,
-0.3416913151741028,
0.1707984358072281,
-1.3817769289016724,
1.6821458339691162... |
func NewBaseNode(
name string,
parent INode,
sceneManager *SceneManager,
position Vector2d) *BaseNode {
lastNodeId++
return &BaseNode {
lastNodeId,
name,
parent,
sceneManager,
position,
make(map[uint]INode),
make(map[uint]*Object)}
} | [
-0.2642848491668701,
-1.7208389043807983,
0.530379593372345,
-0.0805949717760086,
-0.8676838278770447,
-0.05778609588742256,
-0.5747382044792175,
-0.02602148801088333,
-0.5359177589416504,
0.6043610572814941,
-0.9916985034942627,
0.6015812754631042,
-0.8586998581886292,
-0.5150817632675171... |
func (g Graph) GetEdge(src, dst *Vertex) *Edge {
slice := g.GetEdges()
for _, edge := range *slice {
if edge.(*Edge).Src == src && edge.(*Edge).Dst == dst {
return edge.(*Edge)
}
}
return nil
} | [
0.38702547550201416,
0.026903076097369194,
0.7622236609458923,
0.381259024143219,
0.09287036210298538,
-0.8700187802314758,
-0.4782724678516388,
-0.38228949904441833,
-0.14063604176044464,
0.4314211905002594,
0.2369002103805542,
1.3977230787277222,
-0.09919091314077377,
-0.647182047367096,... |
func (g Graph) GetEdgeWeight(src, dst *Vertex) []float64 {
slice := g.GetEdges()
result := []float64{}
for _, edge := range *slice {
if edge.(*Edge).Src == src && edge.(*Edge).Dst == dst {
result = append(result, edge.(*Edge).Weight)
}
}
return result
} | [
-0.30270034074783325,
0.03393950313329697,
1.0840370655059814,
0.5060326457023621,
0.13992784917354584,
-0.6926610469818115,
-0.22278505563735962,
-0.1979096382856369,
-0.46780240535736084,
1.3859050273895264,
-0.6038549542427063,
0.9541803598403931,
-0.04058261960744858,
0.563268661499023... |
func (g Graph) GetEdgeFlow(src, dst *Vertex) []float64 {
slice := g.GetEdges()
result := []float64{}
for _, edge := range *slice {
if edge.(*Edge).Src == src && edge.(*Edge).Dst == dst {
result = append(result, edge.(*Edge).Flow)
}
}
return result
} | [
-0.017660493031144142,
-0.07003558427095413,
0.8131524920463562,
0.7316420674324036,
0.19014467298984528,
-0.3761424124240875,
-0.21273252367973328,
-0.49386560916900635,
0.04812949523329735,
0.4400630295276642,
-0.5738968253135681,
1.3125016689300537,
0.41418007016181946,
0.45687073469161... |
func (g *Graph) UpdateWeight(src, dst *Vertex, value float64) {
edge := g.GetEdge(src, dst)
if edge != nil {
edge.Weight = value
}
} | [
-0.16828154027462006,
-0.10312235355377197,
0.5916875600814819,
0.03921842575073242,
-0.8723509907722473,
0.24672679603099823,
-0.08543267846107483,
0.08317402005195618,
-0.044951777905225754,
1.7430845499038696,
-0.10807974636554718,
0.5500286221504211,
0.21712681651115417,
0.149107277393... |
func (g *Graph) UpdateFlow(src, dst *Vertex, value float64) {
edge := g.GetEdge(src, dst)
if edge != nil {
if edge.Weight < value {
panic("Over Capicity")
}
edge.Flow = value
}
} | [
0.3653919994831085,
-0.20168225467205048,
0.4084198772907257,
0.44141438603401184,
-0.6288787722587585,
0.6466060280799866,
-0.06867335736751556,
-0.4310617446899414,
0.2990260124206543,
0.3873765468597412,
0.4765743315219879,
0.7772002816200256,
0.39754873514175415,
-0.029081260785460472,... |
func (g *Graph) AddFlow(src, dst *Vertex, value float64) {
edge := g.GetEdge(src, dst)
if edge != nil {
if edge.Weight < edge.Flow+value {
panic("Over Capicity")
}
edge.Flow = edge.Flow + value
}
} | [
0.5078098773956299,
0.3544197976589203,
0.5097349882125854,
0.7435606122016907,
-0.4992520213127136,
1.0018856525421143,
0.014878087677061558,
-0.339568555355072,
0.5254601240158081,
-0.5574005842208862,
0.7554191946983337,
0.31304341554641724,
0.3961135447025299,
-0.06019839644432068,
0... |
func (g *Graph) SubFlow(src, dst *Vertex, value float64) {
edge := g.GetEdge(src, dst)
if edge != nil {
if edge.Flow-value < 0 {
panic("Below Zero")
}
edge.Flow = edge.Flow - value
}
} | [
1.082872986793518,
-0.05363161861896515,
0.3095983862876892,
0.6914312839508057,
-0.6341314911842346,
0.8883987069129944,
0.5397507548332214,
0.5857223868370056,
0.48097357153892517,
-0.40004414319992065,
-0.15852081775665283,
0.8504831194877625,
0.40267807245254517,
-0.5852620005607605,
... |
func (g *Graph) IsFull(src, dst *Vertex) bool {
edge := g.GetEdge(src, dst)
return edge.Weight <= edge.Flow
} | [
1.0534197092056274,
0.06205586716532707,
0.5642114877700806,
0.39631596207618713,
-0.8621121644973755,
0.27042073011398315,
-0.8122712969779968,
-0.2173478603363037,
0.6133557558059692,
1.1032984256744385,
-0.330587238073349,
0.9611750841140747,
0.2327737808227539,
-0.45069223642349243,
... |
func AddNetPol(netpol interface{}) {} | [
-0.365447461605072,
-0.6288973093032837,
0.39759910106658936,
0.31500452756881714,
0.14248523116111755,
1.3437094688415527,
-0.532390296459198,
-0.4564591348171234,
1.2765765190124512,
-0.667748749256134,
-1.046701431274414,
-1.3942821025848389,
-0.46999529004096985,
0.24883373081684113,
... |
func (s *Service) generateUrl(apiMethod string, arguments map[string]string) string {
values := url.Values{}
for key, value := range arguments {
values.Set(key, value)
}
values.Set("api_key", s.ApiKey)
timestamp := fmt.Sprintf("%d", time.Now().Unix())
values.Set("ts", timestamp)
hash := sha1.New()
io.WriteStr... | [
-0.6890549659729004,
0.8039118647575378,
0.8119966387748718,
0.05978395789861679,
0.34382253885269165,
0.22635987401008606,
-0.4155102074146271,
0.5485867857933044,
-0.4974735677242279,
0.41477468609809875,
-0.21850048005580902,
-0.8073394298553467,
0.02896440587937832,
-0.0507270507514476... |
func Btoa(input bool) string {
if input {
return "1"
} else {
return "0"
}
} | [
-0.35443592071533203,
-0.3062256872653961,
0.5642780065536499,
-0.20184949040412903,
0.09932206571102142,
0.5602224469184875,
0.4139910936355591,
0.21484796702861786,
0.4519750773906708,
0.5041137933731079,
0.1844392716884613,
-0.21665671467781067,
0.6679197549819946,
0.36802488565444946,
... |
func DrawBorder(p BorderedPanel) {
r := p.Bounds()
b := p.Border()
var border []rune
switch b.Ch {
case 's', 'S':
border = singleBorder
case 'd', 'D':
border = doubleBorder
default:
border = []rune{b.Ch, b.Ch, b.Ch, b.Ch, b.Ch, b.Ch}
}
termbox.SetCell(r.Min.X-1, r.Min.Y-1, borderClash(r.Min.X-1, r.Min.... | [
-0.024250240996479988,
0.2134341150522232,
1.0651483535766602,
-0.39284974336624146,
0.10893217474222183,
0.034732386469841,
0.11744675785303116,
-0.7629038095474243,
0.42015454173088074,
-0.6092576384544373,
-0.540925920009613,
0.441668301820755,
-0.14060011506080627,
0.2920434772968292,
... |
func CreateTemplate(email, template, title string) (file *drive.File, err error) {
cnt := auth.GetClient()
srv, err := drive.New(cnt)
if err != nil {
return nil, err
}
file, err = srv.Files.Copy(template, &drive.File{
OwnedByMe: false,
CreatedDate: time.Now().Format(time.RFC3339),
MimeType: ... | [
0.2460939586162567,
0.11650601029396057,
0.8791348338127136,
0.055973928421735764,
-0.11977485567331314,
0.6647927761077881,
0.3080797493457794,
0.3954399526119232,
-0.6110596060752869,
0.4878692924976349,
0.36943838000297546,
-0.17194391787052155,
-1.085355520248413,
-0.16932229697704315,... |
func CreateDocument(email, title string) (file *drive.File, err error) {
cnt := auth.GetClient()
srv, err := drive.New(cnt)
if err != nil {
return nil, err
}
file, err = srv.Files.Insert(&drive.File{
OwnedByMe: false, //service account can't use gdrive interface, that's why false
CreatedDate: tim... | [
0.723945677280426,
0.19644170999526978,
0.9320300817489624,
-0.19740720093250275,
-0.1150151938199997,
1.023518681526184,
0.5765241980552673,
0.12987427413463593,
-0.4214271903038025,
0.2571064829826355,
0.8963350057601929,
0.31741783022880554,
-1.0595816373825073,
-0.2245023399591446,
0... |
func SetPermission(fileID, email, perm string) (err error) {
cnt := auth.GetClient()
srv, err := drive.New(cnt)
if err != nil {
return err
}
prf, err := GetUserDoc(fileID)
if err != nil {
return err
}
if prf.Owner1 == email || prf.Owner2 == email {
temp, err := srv.Permissions.GetIdForEmail(email).Do()... | [
0.0065656560473144054,
0.3314789831638336,
1.0128570795059204,
0.3455730378627777,
0.35964223742485046,
0.546898603439331,
0.6193124651908875,
0.7005485892295837,
-0.20548902451992035,
0.7792529463768005,
0.8151368498802185,
0.6563932299613953,
-1.097906231880188,
0.14658743143081665,
1.... |
func LastModifiedDate(fileID string) (string, error) {
cnt := auth.GetClient()
srv, err := drive.New(cnt)
if err != nil {
return "", err
}
file, err := srv.Files.Get(fileID).Do()
if err != nil {
return "", err
}
return filterGoogleTime(file.ModifiedDate), nil
} | [
-0.3150976598262787,
-0.05870804190635681,
0.30384570360183716,
-0.9021791815757751,
-0.3599196672439575,
-0.30263423919677734,
-0.44321349263191223,
0.4587506651878357,
0.2984791100025177,
0.372115820646286,
0.3449302613735199,
0.17769481241703033,
-1.3140894174575806,
0.9495754837989807,... |
func (in *ALBStatus) DeepCopyInto(out *ALBStatus) {
*out = *in
out.LoadBalancer = in.LoadBalancer
out.CanaryTargetGroup = in.CanaryTargetGroup
out.StableTargetGroup = in.StableTargetGroup
return
} | [
0.9039170145988464,
-0.5442479252815247,
0.21955126523971558,
0.09355371445417404,
-0.701113224029541,
0.8038321733474731,
-0.627162516117096,
0.27781131863594055,
-0.9038220643997192,
-0.15939173102378845,
-0.2624615728855133,
1.4560353755950928,
0.44587013125419617,
-0.5781567096710205,
... |
func (in *ALBStatus) DeepCopy() *ALBStatus {
if in == nil {
return nil
}
out := new(ALBStatus)
in.DeepCopyInto(out)
return out
} | [
0.674390435218811,
0.12972529232501984,
-0.23395459353923798,
0.7341199517250061,
-0.6599079370498657,
0.897202730178833,
-0.3877972960472107,
-0.9605465531349182,
-0.10305546224117279,
0.01631643995642662,
-0.45333361625671387,
0.7186932563781738,
0.06119761988520622,
-0.7976703643798828,... |
func (in *ALBTrafficRouting) DeepCopyInto(out *ALBTrafficRouting) {
*out = *in
if in.StickinessConfig != nil {
in, out := &in.StickinessConfig, &out.StickinessConfig
*out = new(StickinessConfig)
**out = **in
}
if in.Ingresses != nil {
in, out := &in.Ingresses, &out.Ingresses
*out = make([]string, len(*in)... | [
0.7160155177116394,
0.6354421973228455,
0.5166401863098145,
-0.05065203085541725,
-0.4708046317100525,
-0.08401548117399216,
0.4684251546859741,
0.05620075762271881,
-1.172149419784546,
0.141548290848732,
-0.19560274481773376,
1.1697404384613037,
0.3410305976867676,
0.09716796875,
0.0127... |
func (in *ALBTrafficRouting) DeepCopy() *ALBTrafficRouting {
if in == nil {
return nil
}
out := new(ALBTrafficRouting)
in.DeepCopyInto(out)
return out
} | [
0.16776040196418762,
0.8876270055770874,
0.5029380321502686,
0.4513050317764282,
0.6069833636283875,
-0.4768466651439667,
1.2470428943634033,
-0.6786000728607178,
-0.583441972732544,
0.4108579754829407,
0.0972638726234436,
0.4186341166496277,
0.5384107828140259,
-0.15500082075595856,
0.3... |
func (in *AmbassadorTrafficRouting) DeepCopyInto(out *AmbassadorTrafficRouting) {
*out = *in
if in.Mappings != nil {
in, out := &in.Mappings, &out.Mappings
*out = make([]string, len(*in))
copy(*out, *in)
}
return
} | [
-0.05487605929374695,
0.5997758507728577,
0.7250312566757202,
-0.4068027436733246,
-0.6974766850471497,
-0.1142645999789238,
-0.1034948006272316,
0.8999326825141907,
-0.7375248074531555,
0.4317326247692108,
-0.39316511154174805,
0.582904577255249,
-0.002109443536028266,
-0.7146153450012207... |
func (in *AmbassadorTrafficRouting) DeepCopy() *AmbassadorTrafficRouting {
if in == nil {
return nil
}
out := new(AmbassadorTrafficRouting)
in.DeepCopyInto(out)
return out
} | [
-0.4440790116786957,
0.7743023037910461,
0.5219336748123169,
-0.04450692608952522,
-0.10778992623090744,
-0.07657914608716965,
0.5143538117408752,
0.19801707565784454,
0.2134663462638855,
0.9837900996208191,
-0.17646482586860657,
-0.4363185465335846,
0.061298929154872894,
-1.11213457584381... |
func (in *AnalysisRun) DeepCopyInto(out *AnalysisRun) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
return
} | [
0.7059640884399414,
-0.6007009148597717,
0.4683944284915924,
0.3175660967826843,
-0.33948421478271484,
0.5717673301696777,
0.16281113028526306,
0.259966105222702,
-1.2721240520477295,
-0.6239781975746155,
-0.43438005447387695,
1.154875636100769,
0.31128013134002686,
-0.3576418161392212,
... |
func (in *AnalysisRun) DeepCopy() *AnalysisRun {
if in == nil {
return nil
}
out := new(AnalysisRun)
in.DeepCopyInto(out)
return out
} | [
0.08641288429498672,
0.11296947300434113,
0.18790245056152344,
1.1993963718414307,
-0.21264268457889557,
0.40754202008247375,
0.1373256891965866,
-0.2880899906158447,
-0.4057115614414215,
-0.5733523964881897,
-0.024129506200551987,
-0.14878953993320465,
-0.6545845866203308,
-0.605925559997... |
func (in *AnalysisRun) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | [
0.25080782175064087,
-0.17672693729400635,
0.6257673501968384,
0.6198641657829285,
-0.49528902769088745,
0.7515690326690674,
1.0901345014572144,
-0.2760363817214966,
-0.5523458123207092,
-0.8452039957046509,
-0.14496369659900665,
0.1917857974767685,
0.0877206102013588,
-0.5860175490379333,... |
func (in *AnalysisRunArgument) DeepCopyInto(out *AnalysisRunArgument) {
*out = *in
if in.ValueFrom != nil {
in, out := &in.ValueFrom, &out.ValueFrom
*out = new(ArgumentValueFrom)
(*in).DeepCopyInto(*out)
}
return
} | [
0.27206355333328247,
0.24676674604415894,
0.5313959121704102,
-0.18236932158470154,
-0.442295640707016,
0.27053317427635193,
0.24750779569149017,
0.8884069323539734,
-1.2504736185073853,
-0.5377951860427856,
-0.09831174463033676,
1.2549091577529907,
0.18084128201007843,
-0.7278857231140137... |
func (in *AnalysisRunArgument) DeepCopy() *AnalysisRunArgument {
if in == nil {
return nil
}
out := new(AnalysisRunArgument)
in.DeepCopyInto(out)
return out
} | [
-0.38687455654144287,
0.012816892005503178,
0.4267691373825073,
-0.4191948175430298,
-0.34791210293769836,
0.41996315121650696,
0.799619734287262,
0.6069098114967346,
-0.38703230023384094,
-0.09033538401126862,
-0.22881148755550385,
0.7585422992706299,
-0.42898818850517273,
-1.215953469276... |
func (in *AnalysisRunList) DeepCopyInto(out *AnalysisRunList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]AnalysisRun, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
} | [
0.34230315685272217,
0.2641505300998688,
0.6866025328636169,
0.5724012851715088,
-0.23273980617523193,
0.4298515319824219,
-0.1001632809638977,
0.5514050126075745,
-0.9733918905258179,
-0.22603383660316467,
-0.47659021615982056,
0.7091773748397827,
0.023017464205622673,
-0.3636037707328796... |
func (in *AnalysisRunList) DeepCopy() *AnalysisRunList {
if in == nil {
return nil
}
out := new(AnalysisRunList)
in.DeepCopyInto(out)
return out
} | [
-0.02981507033109665,
0.46229010820388794,
0.28266745805740356,
1.1636545658111572,
-0.0959407389163971,
0.5113357305526733,
-0.021962260827422142,
0.11795370280742645,
-0.07786015421152115,
-0.30933380126953125,
-0.5935736894607544,
-0.26255807280540466,
-0.11876215785741806,
-0.360402345... |
func (in *AnalysisRunList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | [
-0.096217580139637,
0.08836181461811066,
0.691902756690979,
0.7289186120033264,
-0.39804723858833313,
0.8449733853340149,
0.8680412769317627,
0.09453688561916351,
-0.3110833764076233,
-0.7000191807746887,
-0.5952584147453308,
-0.053461428731679916,
0.06955891102552414,
-0.19345752894878387... |
func (in *AnalysisRunMetadata) DeepCopyInto(out *AnalysisRunMetadata) {
*out = *in
if in.Labels != nil {
in, out := &in.Labels, &out.Labels
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.Annotations != nil {
in, out := &in.Annotations, &out.Annotations
... | [
0.4185366630554199,
-0.35601934790611267,
0.5619256496429443,
-0.6531684398651123,
-0.7592306137084961,
0.6326282620429993,
-0.4539197087287903,
0.2389417439699173,
-1.327877163887024,
-0.1773054003715515,
-0.08455473184585571,
1.2995808124542236,
0.26934030652046204,
-1.0660966634750366,
... |
func (in *AnalysisRunMetadata) DeepCopy() *AnalysisRunMetadata {
if in == nil {
return nil
}
out := new(AnalysisRunMetadata)
in.DeepCopyInto(out)
return out
} | [
0.24581007659435272,
-0.3145097494125366,
0.05232134461402893,
0.21463099122047424,
0.09524398297071457,
0.7296822667121887,
-0.43112003803253174,
-0.6159936189651489,
-0.7841213345527649,
-0.07693236321210861,
-0.040778838098049164,
0.49090760946273804,
-0.00986423995345831,
-1.4239405393... |
func (in *AnalysisRunSpec) DeepCopyInto(out *AnalysisRunSpec) {
*out = *in
if in.Metrics != nil {
in, out := &in.Metrics, &out.Metrics
*out = make([]Metric, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.Args != nil {
in, out := &in.Args, &out.Args
*out = make([]Argument, ... | [
0.7640945315361023,
-0.00947484839707613,
0.6565136909484863,
-0.18364055454730988,
-0.3115903437137604,
0.6294118165969849,
0.23393630981445312,
0.20404191315174103,
-1.1678433418273926,
-0.2972523272037506,
-0.23067660629749298,
0.6753354668617249,
0.35472145676612854,
-0.501409649848938... |
func (in *AnalysisRunSpec) DeepCopy() *AnalysisRunSpec {
if in == nil {
return nil
}
out := new(AnalysisRunSpec)
in.DeepCopyInto(out)
return out
} | [
0.6520635485649109,
0.041608888655900955,
0.13727818429470062,
-0.15195629000663757,
-0.31641536951065063,
0.9446988105773926,
-0.15317969024181366,
-0.03766803443431854,
-0.7482098937034607,
0.08440833538770676,
-0.024267010390758514,
0.140536367893219,
0.5515453219413757,
-0.890485703945... |
func (in *AnalysisRunStatus) DeepCopyInto(out *AnalysisRunStatus) {
*out = *in
if in.MetricResults != nil {
in, out := &in.MetricResults, &out.MetricResults
*out = make([]MetricResult, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.StartedAt != nil {
in, out := &in.StartedAt... | [
0.5387940406799316,
-0.13273558020591736,
0.5626949667930603,
-0.33558040857315063,
-0.20965756475925446,
0.5008141398429871,
0.05268682911992073,
0.2796650528907776,
-1.1342220306396484,
-0.44986245036125183,
-0.10670652985572815,
0.6852942109107971,
0.4980540871620178,
-0.791678905487060... |
func (in *AnalysisRunStatus) DeepCopy() *AnalysisRunStatus {
if in == nil {
return nil
}
out := new(AnalysisRunStatus)
in.DeepCopyInto(out)
return out
} | [
0.22954349219799042,
-0.3463505804538727,
-0.20972900092601776,
-0.29150164127349854,
0.01250171847641468,
0.6042248606681824,
-0.2541976273059845,
0.09952990710735321,
-0.49081191420555115,
-0.440165638923645,
-0.38206928968429565,
-0.08217789977788925,
0.557299017906189,
-0.9182378053665... |
func (in *AnalysisRunStrategy) DeepCopyInto(out *AnalysisRunStrategy) {
*out = *in
if in.SuccessfulRunHistoryLimit != nil {
in, out := &in.SuccessfulRunHistoryLimit, &out.SuccessfulRunHistoryLimit
*out = new(int32)
**out = **in
}
if in.UnsuccessfulRunHistoryLimit != nil {
in, out := &in.UnsuccessfulRunHisto... | [
0.6015860438346863,
0.08633320778608322,
0.5996081829071045,
0.03032219596207142,
-0.569375216960907,
0.31126168370246887,
0.21695148944854736,
0.6838098168373108,
-1.0747804641723633,
-0.8294548392295837,
0.004185787867754698,
1.2819334268569946,
0.3373566269874573,
-0.4074283242225647,
... |
func (in *AnalysisRunStrategy) DeepCopy() *AnalysisRunStrategy {
if in == nil {
return nil
}
out := new(AnalysisRunStrategy)
in.DeepCopyInto(out)
return out
} | [
0.9029962420463562,
-0.5115840435028076,
0.27617940306663513,
0.2091389298439026,
-0.1959293782711029,
0.58042973279953,
0.18201036751270294,
0.09190234541893005,
-0.22112587094306946,
-0.5170561671257019,
0.32841452956199646,
0.2993307411670685,
0.4200122356414795,
-0.847324550151825,
0... |
func (in *AnalysisTemplate) DeepCopyInto(out *AnalysisTemplate) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
return
} | [
0.7485010027885437,
-0.5531583428382874,
0.47688597440719604,
0.026186591014266014,
-0.28073424100875854,
0.44225940108299255,
0.748917818069458,
0.09030281752347946,
-1.014437198638916,
-0.2879166603088379,
-0.4629461169242859,
0.09130921214818954,
0.2420065701007843,
-0.7962620854377747,... |
func (in *AnalysisTemplate) DeepCopy() *AnalysisTemplate {
if in == nil {
return nil
}
out := new(AnalysisTemplate)
in.DeepCopyInto(out)
return out
} | [
0.29740411043167114,
0.07921659201383591,
0.27077239751815796,
1.0851863622665405,
-0.37209197878837585,
0.1246064156293869,
0.7281908392906189,
-0.27725496888160706,
0.22386577725410461,
-0.08568692207336426,
-0.507875382900238,
-1.2578386068344116,
-0.8522039651870728,
-1.028887152671814... |
func (in *AnalysisTemplate) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | [
0.22385479509830475,
-0.21499860286712646,
0.6524837017059326,
0.2782174348831177,
-0.5849475860595703,
0.32370442152023315,
1.255280613899231,
-0.10399903357028961,
-0.1924462914466858,
-0.8992664813995361,
-0.2993815541267395,
-0.720486044883728,
0.17831239104270935,
-0.7286273241043091,... |
func (in *AnalysisTemplateList) DeepCopyInto(out *AnalysisTemplateList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]AnalysisTemplate, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
... | [
0.29356127977371216,
0.03984494507312775,
0.704727292060852,
0.4099867641925812,
-0.4885028898715973,
0.07962943613529205,
0.24226529896259308,
0.5787580013275146,
-0.5326883792877197,
0.19442184269428253,
-0.7659858465194702,
-0.21439053118228912,
0.22834575176239014,
-0.4280727803707123,... |
func (in *AnalysisTemplateList) DeepCopy() *AnalysisTemplateList {
if in == nil {
return nil
}
out := new(AnalysisTemplateList)
in.DeepCopyInto(out)
return out
} | [
-0.08829718828201294,
0.15249335765838623,
0.40170469880104065,
1.0459563732147217,
-0.2068738341331482,
-0.09738480299711227,
0.4835723042488098,
0.0497652068734169,
0.4270285367965698,
0.5247635245323181,
-0.7803486585617065,
-1.3764021396636963,
0.6247310042381287,
-0.1120816096663475,
... |
func (in *AnalysisTemplateList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | [
-0.06852517277002335,
-0.11713569611310959,
0.6336614489555359,
0.47074273228645325,
-0.5954517126083374,
0.2810160219669342,
0.994994580745697,
0.20740874111652374,
0.10564617067575455,
-0.613910973072052,
-0.8483701348304749,
-0.8874350190162659,
0.33559438586235046,
0.02214677259325981,... |
func (in *AnalysisTemplateSpec) DeepCopyInto(out *AnalysisTemplateSpec) {
*out = *in
if in.Metrics != nil {
in, out := &in.Metrics, &out.Metrics
*out = make([]Metric, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.Args != nil {
in, out := &in.Args, &out.Args
*out = make([]... | [
0.9126695990562439,
-0.07205606997013092,
0.6125044226646423,
-0.11533360928297043,
-0.43077385425567627,
0.1789633184671402,
0.4815165400505066,
0.1440819501876831,
-0.8031429648399353,
-0.061609044671058655,
-0.4019593596458435,
0.2841044068336487,
0.3736919164657593,
-0.3583692908287048... |
func (in *AnalysisTemplateSpec) DeepCopy() *AnalysisTemplateSpec {
if in == nil {
return nil
}
out := new(AnalysisTemplateSpec)
in.DeepCopyInto(out)
return out
} | [
0.8285973072052002,
-0.08680663257837296,
0.18850062787532806,
0.21406956017017365,
-0.26141902804374695,
0.16408084332942963,
0.3557584285736084,
-0.26311880350112915,
-0.035640593618154526,
0.6157619953155518,
-0.3721039295196533,
-0.6559322476387024,
1.0048165321350098,
-0.8128484487533... |
func (in *AntiAffinity) DeepCopyInto(out *AntiAffinity) {
*out = *in
if in.PreferredDuringSchedulingIgnoredDuringExecution != nil {
in, out := &in.PreferredDuringSchedulingIgnoredDuringExecution, &out.PreferredDuringSchedulingIgnoredDuringExecution
*out = new(PreferredDuringSchedulingIgnoredDuringExecution)
**o... | [
0.30846667289733887,
-0.0357496477663517,
0.6386514902114868,
-0.12289655208587646,
-0.43183252215385437,
0.6078200340270996,
0.3576720356941223,
0.4346589148044586,
-0.7991141676902771,
0.012583876959979534,
0.042516931891441345,
1.2025439739227295,
-0.06779013574123383,
0.162362515926361... |
func (in *AntiAffinity) DeepCopy() *AntiAffinity {
if in == nil {
return nil
}
out := new(AntiAffinity)
in.DeepCopyInto(out)
return out
} | [
-0.4294721186161041,
-0.7062264084815979,
0.12386453151702881,
0.006682558450847864,
-0.5059611201286316,
0.0818982720375061,
0.20982393622398376,
0.006755872163921595,
-0.34982290863990784,
0.12645770609378815,
-0.3005853295326233,
0.1401815414428711,
-0.7041958570480347,
-0.4553104639053... |
func (in *ApisixRoute) DeepCopyInto(out *ApisixRoute) {
*out = *in
if in.Rules != nil {
in, out := &in.Rules, &out.Rules
*out = make([]string, len(*in))
copy(*out, *in)
}
return
} | [
0.34073615074157715,
0.4231887757778168,
0.6056522727012634,
-0.14609256386756897,
-0.17634813487529755,
0.21174907684326172,
-0.5479103922843933,
1.7951873540878296,
-1.0240293741226196,
0.03756053000688553,
-0.6998248100280762,
0.5695339441299438,
-0.14410343766212463,
-0.404919058084487... |
func (in *ApisixRoute) DeepCopy() *ApisixRoute {
if in == nil {
return nil
}
out := new(ApisixRoute)
in.DeepCopyInto(out)
return out
} | [
0.49762922525405884,
0.1699906885623932,
0.21033823490142822,
0.43458181619644165,
-0.19194167852401733,
0.19781674444675446,
-0.811858594417572,
1.3414514064788818,
0.11794819682836533,
-0.5445144772529602,
-0.8523096442222595,
-0.4756019115447998,
-0.6942530870437622,
-0.6754857301712036... |
func (in *ApisixTrafficRouting) DeepCopyInto(out *ApisixTrafficRouting) {
*out = *in
if in.Route != nil {
in, out := &in.Route, &out.Route
*out = new(ApisixRoute)
(*in).DeepCopyInto(*out)
}
return
} | [
0.5589417815208435,
0.9807992577552795,
0.6016615629196167,
-0.2456674575805664,
-0.2190011888742447,
-0.6280982494354248,
0.1596892774105072,
1.1255816221237183,
-0.5120059251785278,
-0.5700317621231079,
-0.7358771562576294,
0.48202118277549744,
0.2076653689146042,
-0.3307816684246063,
... |
func (in *ApisixTrafficRouting) DeepCopy() *ApisixTrafficRouting {
if in == nil {
return nil
}
out := new(ApisixTrafficRouting)
in.DeepCopyInto(out)
return out
} | [
-0.19235901534557343,
1.1684938669204712,
0.39371052384376526,
-0.18132038414478302,
0.30343547463417053,
-0.9337106347084045,
1.088186264038086,
-0.056010808795690536,
0.025084100663661957,
0.36035189032554626,
-0.24875150620937347,
-0.34279876947402954,
-0.016853274777531624,
-0.42197296... |
func (in *AppMeshTrafficRouting) DeepCopyInto(out *AppMeshTrafficRouting) {
*out = *in
if in.VirtualService != nil {
in, out := &in.VirtualService, &out.VirtualService
*out = new(AppMeshVirtualService)
(*in).DeepCopyInto(*out)
}
if in.VirtualNodeGroup != nil {
in, out := &in.VirtualNodeGroup, &out.VirtualNo... | [
1.1936860084533691,
0.6606401801109314,
0.511655330657959,
0.43136832118034363,
-0.29464754462242126,
-0.3911653757095337,
0.7953812479972839,
0.4166660010814667,
-1.130052924156189,
-0.2839728593826294,
0.16317325830459595,
0.9356657266616821,
0.22895613312721252,
0.6010820865631104,
-0... |
func (in *AppMeshTrafficRouting) DeepCopy() *AppMeshTrafficRouting {
if in == nil {
return nil
}
out := new(AppMeshTrafficRouting)
in.DeepCopyInto(out)
return out
} | [
1.1127076148986816,
0.8752242922782898,
0.39400428533554077,
0.9201269149780273,
0.15791840851306915,
-0.4797010123729706,
1.0470824241638184,
-0.31766748428344727,
-0.8378502726554871,
-0.02199660614132881,
0.8277953267097473,
-0.011451059021055698,
0.267221063375473,
0.6076651811599731,
... |
func (in *AppMeshVirtualNodeGroup) DeepCopyInto(out *AppMeshVirtualNodeGroup) {
*out = *in
if in.CanaryVirtualNodeRef != nil {
in, out := &in.CanaryVirtualNodeRef, &out.CanaryVirtualNodeRef
*out = new(AppMeshVirtualNodeReference)
**out = **in
}
if in.StableVirtualNodeRef != nil {
in, out := &in.StableVirtua... | [
0.6740582585334778,
0.42706218361854553,
0.4032720923423767,
-0.18591636419296265,
-0.6901647448539734,
-0.3489117920398712,
-0.687471330165863,
-0.25182780623435974,
-1.3485605716705322,
0.07826807349920273,
0.20527346432209015,
1.3090928792953491,
-0.4288966953754425,
0.6547188758850098,... |
func (in *AppMeshVirtualNodeGroup) DeepCopy() *AppMeshVirtualNodeGroup {
if in == nil {
return nil
}
out := new(AppMeshVirtualNodeGroup)
in.DeepCopyInto(out)
return out
} | [
-0.13426640629768372,
0.7350436449050903,
-0.2739993929862976,
0.3698253631591797,
-1.2337934970855713,
-0.20531363785266876,
-0.6593539714813232,
-0.47935861349105835,
-0.7862628698348999,
0.3222176730632782,
0.36067962646484375,
0.4603489339351654,
-0.2142511010169983,
0.7051677703857422... |
func (in *AppMeshVirtualNodeReference) DeepCopyInto(out *AppMeshVirtualNodeReference) {
*out = *in
return
} | [
1.4380419254302979,
-0.41022974252700806,
0.3923194408416748,
0.1211211234331131,
-0.5142430663108826,
0.27303752303123474,
-0.5717087984085083,
0.31728556752204895,
-0.7663801312446594,
-0.06323674321174622,
0.05584240332245827,
1.7424094676971436,
0.006224050652235746,
-0.103859558701515... |
func (in *AppMeshVirtualNodeReference) DeepCopy() *AppMeshVirtualNodeReference {
if in == nil {
return nil
}
out := new(AppMeshVirtualNodeReference)
in.DeepCopyInto(out)
return out
} | [
0.5617790222167969,
-0.8655966520309448,
0.15883077681064606,
0.4254438579082489,
-0.3297942578792572,
0.07205227017402649,
-0.6436371803283691,
-0.2376820147037506,
0.14242194592952728,
0.33573687076568604,
0.33773502707481384,
0.8628028035163879,
-0.3947860300540924,
0.40798354148864746,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.