text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func main() {
x := 10
fmt.Printf("i said %v %v times\n", y, x)
fmt.Println(z)
} | [
0.3375427722930908,
-0.3990185856819153,
0.5448601245880127,
-0.4039888083934784,
0.4933762848377228,
-0.20599950850009918,
0.6992509365081787,
0.008158515207469463,
-0.34636998176574707,
0.18293772637844086,
-0.6683661341667175,
0.6072555780410767,
-0.1815182864665985,
0.16395284235477448... |
func Set(name, value string) {
if err := flag.Set(name, value); err != nil {
log.Error(err)
}
} | [
0.32892686128616333,
-0.025974253192543983,
0.35113343596458435,
-0.3205662667751312,
-0.25584137439727783,
0.8150793313980103,
-0.5132619142532349,
-0.30957338213920593,
-1.078365683555603,
0.7110416293144226,
-0.641968309879303,
0.8285442590713501,
-0.1374814361333847,
0.4082654118537903... |
func mapTags(tags []*elb.Tag) map[string]string {
tagMap := make(map[string]string)
for _, t := range tags {
tagMap[*t.Key] = *t.Value
}
return tagMap
} | [
-0.5662630200386047,
-0.2844429910182953,
0.6006584167480469,
-0.5354645252227783,
-0.5835273861885071,
0.4879313111305237,
-2.019627809524536,
-0.2646934390068054,
0.08722416311502457,
0.35407620668411255,
-0.45714467763900757,
-0.3753366768360138,
0.5352702140808105,
0.7170526385307312,
... |
func elbTags(tags map[string]string) []*elb.Tag {
var e []*elb.Tag
for k, v := range tags {
e = append(e, elbTag(k, v))
}
return e
} | [
0.25981441140174866,
0.30229637026786804,
0.48232302069664,
0.422848641872406,
1.4921903610229492,
0.6526909470558167,
-1.6242890357971191,
0.4528978765010834,
-0.6191888451576233,
-0.038772791624069214,
-1.3205370903015137,
-0.06855705380439758,
-0.06942775845527649,
0.8779247999191284,
... |
func containsTags(a map[string]string, b []*elb.Tag) bool {
for k, v := range a {
t := elbTag(k, v)
if !containsTag(t, b) {
return false
}
}
return true
} | [
0.2326454520225525,
0.16043522953987122,
0.7080351710319519,
0.4260818064212799,
0.34663790464401245,
0.28139081597328186,
-1.5223602056503296,
-0.2961899936199188,
-1.27486252784729,
0.1209159642457962,
0.15998251736164093,
-0.04418836906552315,
-0.1807454228401184,
0.920808732509613,
-... |
func verifyTerraformAndKopsMatch(kopsName string, terraformClient *terraform.Cmd, logger log.FieldLogger) error {
out, ok, err := terraformClient.Output("cluster_name")
if err != nil {
return err
}
if !ok {
logger.Warn("No cluster_name in terraform config, skipping check")
return nil
}
if out != kopsName {
... | [
0.3032878637313843,
-0.12941040098667145,
0.21615971624851227,
0.1849496066570282,
0.37011176347732544,
0.25997689366340637,
-0.1606440246105194,
-0.5470833778381348,
0.3448280394077301,
0.3397698998451233,
0.17381034791469574,
-0.4683366119861603,
-0.20487356185913086,
0.2026018649339676,... |
func (c *Config) ParseConfig(filename string) *Config {
yamlFile, err := ioutil.ReadFile(filename)
if err != nil {
log.Printf("yamlFile.Get err #%v ", err)
}
err = yaml.Unmarshal(yamlFile, c)
if err != nil {
log.Fatalf("Unmarshal: %v", err)
}
return c
} | [
0.6014151573181152,
-0.349408894777298,
0.6773836612701416,
-0.5484679937362671,
0.04627427086234093,
0.3819766938686371,
0.7456082105636597,
1.609008550643921,
-0.9975705742835999,
-0.04817987233400345,
0.28628575801849365,
-0.09806503355503082,
0.2079579383134842,
0.7073795795440674,
0... |
func Serverup() {
route := mux.NewRouter()
err := godotenv.Load()
if err != nil {
log.Fatal("Error Cargando Variable de entorno")
}
PORT := os.Getenv("PORT")
if PORT == "" {
PORT = "4000"
}
route.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Welcome Server UP")
})
Us... | [
-0.5895624756813049,
0.06462619453668594,
1.0124326944351196,
0.7032115459442139,
0.2548562288284302,
0.38732799887657166,
0.19428309798240662,
0.5824568867683411,
-0.5265124440193176,
0.2797306776046753,
-0.346091628074646,
0.9738351702690125,
-0.03682348504662514,
0.11284865438938141,
... |
func (df DoerFunc) Do(req *http.Request) (*http.Response, error) { return df(req) } | [
-0.9985260367393494,
0.3181179165840149,
0.5590358972549438,
0.5342385172843933,
0.8321290612220764,
-0.2588975131511688,
-0.5940253138542175,
-1.163317322731018,
-0.8711336255073547,
-0.8944869637489319,
0.20579275488853455,
0.473538339138031,
0.3235829770565033,
-0.02654746174812317,
-... |
func New(am AuthMechanism, cm ConfigMap, options ...Option) Doer {
defaultClient := &http.Client{}
for i := range options {
if options[i] != nil {
options[i](defaultClient)
}
}
df, ok := factoryFor(am)
if !ok {
panic(fmt.Sprintf("unregistered auth mechanism %q", am))
}
return df(cm, defaultClient)
} | [
-0.3058205544948578,
0.47458967566490173,
0.3074108362197876,
0.48334431648254395,
-0.0489041693508625,
-0.4459697902202606,
0.09609086811542511,
-0.4285227954387665,
-0.5997042059898376,
-0.4215177297592163,
0.35930129885673523,
0.47120827436447144,
0.3937990963459015,
0.06159861013293266... |
func Timeout(timeout time.Duration) Option {
return func(client *http.Client) {
client.Timeout = timeout
}
} | [
0.8765592575073242,
0.5086194276809692,
0.3233926296234131,
-0.3766777813434601,
0.5108046531677246,
1.1340829133987427,
0.4081087112426758,
-0.13503976166248322,
0.810977041721344,
0.26970523595809937,
0.015484455972909927,
0.8226926922798157,
0.17970845103263855,
-0.6199190616607666,
-... |
func Transport(tr http.RoundTripper) Option {
return func(client *http.Client) {
client.Transport = tr
}
} | [
0.1616034358739853,
0.307504266500473,
0.2629320025444031,
-0.2900152802467346,
0.10610733926296234,
0.7715486884117126,
1.0286041498184204,
-1.6625072956085205,
0.43894001841545105,
-0.658440113067627,
-0.6256062388420105,
-0.09561271965503693,
0.12260127812623978,
-0.6566148400306702,
... |
func TLSConfig(enabled bool, caPool *x509.CertPool, cert tls.Certificate) (opt urls.Option, config *tls.Config) {
opt = urls.Scheme("http")
if enabled {
opt = urls.Scheme("https")
config = &tls.Config{
Certificates: []tls.Certificate{cert},
RootCAs: caPool,
InsecureSkipVerify: caPool == nil,... | [
0.658929169178009,
0.6081035137176514,
0.4959668219089508,
-0.5346473455429077,
-0.8168681263923645,
0.11948280036449432,
-0.7122834920883179,
0.8886740803718567,
0.23418067395687103,
0.6566510200500488,
-1.0253636837005615,
0.419331431388855,
0.27082228660583496,
0.6654321551322937,
-0.... |
func (service Service) BeginTOTPEnrollment(rw http.ResponseWriter, req *http.Request) {
// req.Body is a ReadCloser -- we need to remember to close it:
defer req.Body.Close()
// Get the authorization header:
authHeader := req.Header.Get("Authorization")
// If the auth header wasn't supplied, return an error
if... | [
-0.47756800055503845,
-0.11122103780508041,
0.8138964772224426,
-0.2939399480819702,
-0.5117940306663513,
0.24316582083702087,
-0.4799032509326935,
-0.5350754857063293,
0.21648000180721283,
0.32652294635772705,
-0.28036049008369446,
0.5211727619171143,
0.4577120244503021,
0.632348656654357... |
func (service Service) GetTOTPEnrollmentImage(rw http.ResponseWriter, req *http.Request) {
// req.Body is a ReadCloser -- we need to remember to close it:
defer req.Body.Close()
// Get the authorization header:
authHeader := req.Header.Get("Authorization")
// If the auth header wasn't supplied, return an error
... | [
-0.9359925985336304,
0.198179230093956,
0.9729997515678406,
-0.22158853709697723,
-0.6498942375183105,
0.14535978436470032,
0.09995013475418091,
-0.21287333965301514,
0.13887284696102142,
0.8639088869094849,
0.7832868099212646,
0.5554868578910828,
0.342801570892334,
0.039215993136167526,
... |
func (service Service) FinishTOTPEnrollment(rw http.ResponseWriter, req *http.Request) {
// req.Body is a ReadCloser -- we need to remember to close it:
defer req.Body.Close()
// Get the authorization header:
authHeader := req.Header.Get("Authorization")
// If the auth header wasn't supplied, return an error
i... | [
-0.761330783367157,
-0.22316479682922363,
0.8461621403694153,
-0.3619677722454071,
-0.6307027339935303,
0.2688104808330536,
-0.15617842972278595,
-0.5380945801734924,
-0.12978360056877136,
0.8701677322387695,
-0.14956648647785187,
0.22905685007572174,
0.1375468671321869,
0.2824663817882538... |
func CanonicalImplode(pos, chr [][]int, ori [][]float64, args ...interface{}) (Canonical, []interface{}) {
return Canonical{Pos: pos, Chr: chr, Ori: ori}, args
} | [
-0.10017578303813934,
0.11016728729009628,
0.4414898753166199,
-0.2542129158973694,
-0.28347983956336975,
-0.7699319124221802,
-0.5452845096588135,
0.5387762188911438,
-0.5894636511802673,
0.3919835686683655,
-0.7876179218292236,
-0.7124351263046265,
-0.5573269128799438,
-0.275878846645355... |
func LoadCanonicalFromJSON(file string) []Canonical {
jsonFile, err := os.Open(file)
if err != nil {
log.Fatalln(err)
}
defer jsonFile.Close()
dec := json.NewDecoder(jsonFile)
var c []Canonical
if err := dec.Decode(&c); err != nil {
log.Fatalln(err)
}
for _, v := range c {
for i := 0; i < len(v.Chr)-1;... | [
-0.4471747875213623,
-1.2604435682296753,
0.8443413972854614,
-0.7031891345977783,
-0.7591702342033386,
0.04377451911568642,
0.06062748655676842,
-0.3879508674144745,
-0.9272986054420471,
0.8257505893707275,
-0.6247966885566711,
0.20041196048259735,
-0.0006487592472694814,
0.38400420546531... |
func NewPostDialogIDCommentBadRequest() *PostDialogIDCommentBadRequest {
return &PostDialogIDCommentBadRequest{}
} | [
-0.4706127643585205,
-0.8321044445037842,
0.23019225895404816,
0.03618544712662697,
-0.04318558797240257,
-0.8095305562019348,
-0.32568371295928955,
0.6033603549003601,
-0.5385968089103699,
-1.0598260164260864,
-0.4350125789642334,
-0.7244480848312378,
-0.3156631290912628,
-0.0161899980157... |
func (o *PostDialogIDCommentBadRequest) WithPayload(payload models.Error) *PostDialogIDCommentBadRequest {
o.Payload = payload
return o
} | [
-0.4962655007839203,
-0.5984156727790833,
0.2687835395336151,
-0.3806052803993225,
-0.08631741255521774,
-0.4452362060546875,
-0.36172470450401306,
-0.4717124104499817,
0.022417636588215828,
-0.9412955045700073,
0.30035650730133057,
-0.6016163229942322,
-0.4487757086753845,
-0.060841381549... |
func (o *PostDialogIDCommentBadRequest) SetPayload(payload models.Error) {
o.Payload = payload
} | [
-0.6331450939178467,
-0.36096686124801636,
0.12099196761846542,
-0.24882195889949799,
0.4844072461128235,
-0.36553314328193665,
-0.47106990218162537,
-0.39096301794052124,
-0.29852595925331116,
-0.6529972553253174,
-0.2666807472705841,
-0.39434725046157837,
-0.9673154354095459,
0.448976010... |
func (o *PostDialogIDCommentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(400)
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
} | [
-0.47573888301849365,
-0.8230363726615906,
0.2938397526741028,
0.3053993284702301,
1.0848251581192017,
-0.7327830195426941,
-0.12206975370645523,
-0.37881365418434143,
0.20624473690986633,
-0.1989000290632248,
-0.2136174887418747,
-0.8142135143280029,
-0.7998251914978027,
-0.05244256183505... |
func (o *PostDialogIDCommentInternalServerError) WithPayload(payload models.Error) *PostDialogIDCommentInternalServerError {
o.Payload = payload
return o
} | [
-0.2804325520992279,
-0.7604245543479919,
0.2024587243795395,
-1.2420660257339478,
-0.8965504169464111,
-0.1687145084142685,
0.47969964146614075,
-0.4927214980125427,
0.277782142162323,
-0.47674596309661865,
-0.181477889418602,
-0.6733995079994202,
-1.1780039072036743,
0.19048097729682922,... |
func (o *PostDialogIDCommentInternalServerError) SetPayload(payload models.Error) {
o.Payload = payload
} | [
-0.47082215547561646,
-0.69070965051651,
0.14140090346336365,
-1.1617727279663086,
-0.5359436869621277,
-0.3291451334953308,
0.41817548871040344,
-0.23723524808883667,
-0.1129971593618393,
-0.21496857702732086,
-0.6320075988769531,
-0.47814375162124634,
-1.4212576150894165,
0.7276581525802... |
func (o *PostDialogIDCommentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(500)
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
} | [
-0.6555925011634827,
-0.5976536273956299,
0.13356523215770721,
-0.08231493830680847,
0.5678581595420837,
-0.7050023674964905,
0.6714926958084106,
-0.11643914878368378,
0.3998507261276245,
0.3600407540798187,
-0.14871108531951904,
-0.8204800486564636,
-1.03677237033844,
0.12635478377342224,... |
func NewPostDialogIDCommentDefault(code int) *PostDialogIDCommentDefault {
if code <= 0 {
code = 500
}
return &PostDialogIDCommentDefault{
_statusCode: code,
}
} | [
-0.13460773229599,
-0.45895469188690186,
0.03840573504567146,
0.12130361050367355,
0.41883641481399536,
-0.30912137031555176,
0.08915431052446365,
0.78925621509552,
0.32532140612602234,
-0.15443506836891174,
-0.9919463396072388,
-1.0027650594711304,
-0.8604544997215271,
-0.0010041939094662... |
func (o *PostDialogIDCommentDefault) WithStatusCode(code int) *PostDialogIDCommentDefault {
o._statusCode = code
return o
} | [
-0.06125134229660034,
-1.0387214422225952,
-0.09125062823295593,
-0.05131250247359276,
0.5752894878387451,
-0.4107324481010437,
-0.03145499899983406,
0.98646479845047,
0.49051806330680847,
0.3220357596874237,
-0.8883561491966248,
-1.2029014825820923,
-0.315265953540802,
0.10418729484081268... |
func (o *PostDialogIDCommentDefault) SetStatusCode(code int) {
o._statusCode = code
} | [
-0.07758737355470657,
-0.9298447966575623,
0.05252153053879738,
-0.1022418737411499,
0.5491141080856323,
-0.1841396689414978,
0.18039289116859436,
1.0030829906463623,
0.13701143860816956,
0.15889042615890503,
-1.1035454273223877,
-1.0834205150604248,
-0.656159520149231,
0.38429486751556396... |
func (o *PostDialogIDCommentDefault) WithPayload(payload models.Error) *PostDialogIDCommentDefault {
o.Payload = payload
return o
} | [
0.21138595044612885,
-0.2169572412967682,
0.08613626658916473,
-0.4249088764190674,
0.37621214985847473,
-0.4196033179759979,
-0.07077198475599289,
-0.10836794227361679,
0.28691473603248596,
-0.18078677356243134,
-0.4516887366771698,
-1.6690263748168945,
-0.667496919631958,
-0.105716124176... |
func (o *PostDialogIDCommentDefault) SetPayload(payload models.Error) {
o.Payload = payload
} | [
0.06666082888841629,
-0.2221449315547943,
0.11259778589010239,
-0.2601945996284485,
0.8003460764884949,
-0.1472790539264679,
0.023132238537073135,
-0.06494340300559998,
-0.038420215249061584,
-0.010833573527634144,
-0.9099860191345215,
-1.335463523864746,
-0.9284429550170898,
0.24952536821... |
func (o *PostDialogIDCommentDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(o._statusCode)
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
} | [
-0.13322195410728455,
-0.4142683744430542,
0.19211792945861816,
0.32012200355529785,
1.3886759281158447,
-0.585449755191803,
0.2716748118400574,
0.1792479008436203,
0.2643808424472809,
0.3046085834503174,
-0.5177370309829712,
-1.599430799484253,
-1.0059216022491455,
-0.2689768075942993,
... |
func PossibleAzureScaleTypeValues() []AzureScaleType {
return []AzureScaleType{Automatic, Manual, None}
} | [
-0.8232588171958923,
-0.19834746420383453,
0.4656584560871124,
0.858342707157135,
0.09297849237918854,
0.4542502164840698,
-0.9328909516334534,
-0.6353537440299988,
-0.4522666037082672,
0.11959026753902435,
-0.6734244227409363,
-0.48080602288246155,
0.41617634892463684,
1.7502504587173462,... |
func PossibleAzureSkuNameValues() []AzureSkuName {
return []AzureSkuName{DevNoSLAStandardD11V2, DevNoSLAStandardE2aV4, StandardD11V2, StandardD12V2, StandardD13V2, StandardD14V2, StandardDS13V21TBPS, StandardDS13V22TBPS, StandardDS14V23TBPS, StandardDS14V24TBPS, StandardE16asV43TBPS, StandardE16asV44TBPS, StandardE16a... | [
-0.7941939830780029,
-0.27461379766464233,
0.6468938589096069,
0.5437392592430115,
-1.0372545719146729,
0.29040706157684326,
-0.14707013964653015,
0.48379987478256226,
-0.07994585484266281,
-0.24191521108150482,
0.2221049964427948,
0.003352157771587372,
0.13873891532421112,
0.7693065404891... |
func PossibleAzureSkuTierValues() []AzureSkuTier {
return []AzureSkuTier{Basic, Standard}
} | [
-0.8336073160171509,
0.02519744634628296,
0.3038136065006256,
1.8011316061019897,
-0.9923309683799744,
0.44687432050704956,
-0.7162967324256897,
0.19237984716892242,
-0.5794053673744202,
-0.660078227519989,
0.2707369327545166,
-0.39792346954345703,
0.16759710013866425,
0.9671951532363892,
... |
func PossibleBlobStorageEventTypeValues() []BlobStorageEventType {
return []BlobStorageEventType{MicrosoftStorageBlobCreated, MicrosoftStorageBlobRenamed}
} | [
1.047003984451294,
-1.1121902465820312,
0.6195104718208313,
1.3048300743103027,
0.27758798003196716,
0.2395288199186325,
-0.3653965890407562,
0.33642566204071045,
0.10184157639741898,
-0.22678492963314056,
-1.0179245471954346,
0.17194747924804688,
0.15541337430477142,
0.8962560892105103,
... |
func PossibleClusterPrincipalRoleValues() []ClusterPrincipalRole {
return []ClusterPrincipalRole{AllDatabasesAdmin, AllDatabasesViewer}
} | [
0.18480058014392853,
0.006779858376830816,
0.2507854104042053,
0.2026074379682541,
-0.47179412841796875,
0.7632930278778076,
-0.49279215931892395,
0.19981953501701355,
-0.40566036105155945,
-0.5978814363479614,
-0.05142456665635109,
0.9145224094390869,
-1.0778480768203735,
0.49904596805572... |
func PossibleCompressionValues() []Compression {
return []Compression{CompressionGZip, CompressionNone}
} | [
-0.40012669563293457,
0.43040931224823,
0.47608304023742676,
1.7777938842773438,
-0.9229531288146973,
-0.3001410961151123,
-0.3690647482872009,
0.2823844850063324,
-0.3212342858314514,
-0.5204991698265076,
-1.0240544080734253,
-0.7448703646659851,
-0.05767643824219704,
1.3688807487487793,
... |
func PossibleDatabasePrincipalRoleValues() []DatabasePrincipalRole {
return []DatabasePrincipalRole{Admin, Ingestor, Monitor, UnrestrictedViewers, User, Viewer}
} | [
0.3047122359275818,
0.35809561610221863,
-0.04016309604048729,
-0.18707865476608276,
-0.1625836342573166,
0.596780002117157,
-0.7706026434898376,
0.607501208782196,
-0.27848920226097107,
-0.8313019275665283,
-0.38572293519973755,
0.8875216245651245,
-1.290837287902832,
0.7792624235153198,
... |
func PossibleDatabasePrincipalTypeValues() []DatabasePrincipalType {
return []DatabasePrincipalType{DatabasePrincipalTypeApp, DatabasePrincipalTypeGroup, DatabasePrincipalTypeUser}
} | [
0.6465774774551392,
0.21143914759159088,
0.21597151458263397,
0.07374367117881775,
0.018895242363214493,
0.5388987064361572,
-0.15627051889896393,
0.3884563148021698,
0.4796890318393707,
-0.1465742141008377,
-0.5875338912010193,
0.5432379841804504,
-1.5832127332687378,
0.6255132555961609,
... |
func PossibleDefaultPrincipalsModificationKindValues() []DefaultPrincipalsModificationKind {
return []DefaultPrincipalsModificationKind{DefaultPrincipalsModificationKindNone, DefaultPrincipalsModificationKindReplace, DefaultPrincipalsModificationKindUnion}
} | [
-0.7486333847045898,
-0.08598862588405609,
0.20529426634311676,
0.2882698178291321,
0.4074818193912506,
0.10874772071838379,
-0.43330782651901245,
0.16000381112098694,
0.41025909781455994,
-0.8486394882202148,
-0.14006659388542175,
0.10105617344379425,
-1.3734349012374878,
1.57920086383819... |
func PossibleEngineTypeValues() []EngineType {
return []EngineType{V2, V3}
} | [
-0.8459951877593994,
-0.43204522132873535,
0.35112303495407104,
0.608687698841095,
0.3548266589641571,
0.11979403346776962,
-1.4186756610870361,
0.31086596846580505,
0.02370375208556652,
0.13296061754226685,
-1.0777716636657715,
0.1401432454586029,
-0.19962486624717712,
0.39437636733055115... |
func PossibleEventGridDataFormatValues() []EventGridDataFormat {
return []EventGridDataFormat{APACHEAVRO, AVRO, CSV, JSON, MULTIJSON, ORC, PARQUET, PSV, RAW, SCSV, SINGLEJSON, SOHSV, TSV, TSVE, TXT, W3CLOGFILE}
} | [
0.13729122281074524,
-0.37370094656944275,
0.34245169162750244,
0.10885821282863617,
-0.09289509803056717,
0.28864094614982605,
-0.41318273544311523,
0.2402307242155075,
-0.5650234222412109,
-1.2161027193069458,
-0.23522411286830902,
1.1887576580047607,
0.8059518337249756,
1.31273877620697... |
func PossibleEventHubDataFormatValues() []EventHubDataFormat {
return []EventHubDataFormat{EventHubDataFormatAPACHEAVRO, EventHubDataFormatAVRO, EventHubDataFormatCSV, EventHubDataFormatJSON, EventHubDataFormatMULTIJSON, EventHubDataFormatORC, EventHubDataFormatPARQUET, EventHubDataFormatPSV, EventHubDataFormatRAW, Ev... | [
0.3748696446418762,
-0.742839515209198,
0.568588137626648,
-0.49288323521614075,
-0.3326689600944519,
0.3309561610221863,
-0.6685798764228821,
0.4630850553512573,
0.36290740966796875,
-1.2149332761764526,
-0.1660936176776886,
0.9116293787956238,
0.49678468704223633,
1.4663286209106445,
0... |
func PossibleIdentityTypeValues() []IdentityType {
return []IdentityType{IdentityTypeNone, IdentityTypeSystemAssigned, IdentityTypeSystemAssignedUserAssigned, IdentityTypeUserAssigned}
} | [
-0.6093161106109619,
-0.7151362895965576,
0.2991115152835846,
1.1466792821884155,
0.13029159605503082,
0.15459059178829193,
-0.041933197528123856,
-0.4305860698223114,
0.5892760157585144,
-0.43099433183670044,
-0.8620845079421997,
-0.3493078052997589,
-0.5936284065246582,
1.154238939285278... |
func PossibleIotHubDataFormatValues() []IotHubDataFormat {
return []IotHubDataFormat{IotHubDataFormatAPACHEAVRO, IotHubDataFormatAVRO, IotHubDataFormatCSV, IotHubDataFormatJSON, IotHubDataFormatMULTIJSON, IotHubDataFormatORC, IotHubDataFormatPARQUET, IotHubDataFormatPSV, IotHubDataFormatRAW, IotHubDataFormatSCSV, IotH... | [
-0.43575677275657654,
-0.5774551033973694,
0.6374212503433228,
-0.6022194623947144,
-0.2964448034763336,
0.5851248502731323,
-0.5197916030883789,
-0.03582115098834038,
0.1215655654668808,
-1.3539828062057495,
-0.015697605907917023,
1.0184619426727295,
0.3149983882904053,
0.6749593019485474... |
func PossibleKindValues() []Kind {
return []Kind{KindDatabase, KindReadOnlyFollowing, KindReadWrite}
} | [
0.11881273239850998,
-0.05982060730457306,
0.09863509237766266,
1.3987139463424683,
-0.5340573191642761,
0.46905967593193054,
-0.30226007103919983,
0.2101331502199173,
-0.34912410378456116,
-0.3054698407649994,
-0.19042746722698212,
0.9839000701904297,
-0.3638319969177246,
1.82713747024536... |
func PossibleKindBasicDataConnectionValues() []KindBasicDataConnection {
return []KindBasicDataConnection{KindDataConnection, KindEventGrid, KindEventHub, KindIotHub}
} | [
-0.05737852677702904,
-0.2210477590560913,
0.3437456488609314,
0.9407950639724731,
-0.2075708955526352,
-0.029998576268553734,
-1.5678259134292603,
-0.41125208139419556,
-1.015385389328003,
-0.73210608959198,
-0.38546234369277954,
1.0256706476211548,
0.12598778307437897,
1.0877619981765747... |
func PossibleLanguageExtensionNameValues() []LanguageExtensionName {
return []LanguageExtensionName{PYTHON, R}
} | [
-0.1003229096531868,
-0.5836665034294128,
0.2651219666004181,
0.251189261674881,
-0.899554967880249,
0.5208817720413208,
-1.4211136102676392,
0.5670512914657593,
0.6736594438552856,
0.3313768208026886,
-1.3667411804199219,
-0.24550148844718933,
0.15898551046848297,
1.1570658683776855,
0.... |
func PossiblePrincipalsModificationKindValues() []PrincipalsModificationKind {
return []PrincipalsModificationKind{PrincipalsModificationKindNone, PrincipalsModificationKindReplace, PrincipalsModificationKindUnion}
} | [
-1.3031487464904785,
-0.4491893947124481,
0.25523388385772705,
0.08983859419822693,
-0.43322911858558655,
0.44410598278045654,
-0.173493430018425,
0.4101921617984772,
0.6817091703414917,
-0.5464566349983215,
0.012448201887309551,
0.5951218605041504,
-1.2196600437164307,
1.233029842376709,
... |
func PossiblePrincipalTypeValues() []PrincipalType {
return []PrincipalType{PrincipalTypeApp, PrincipalTypeGroup, PrincipalTypeUser}
} | [
0.061812203377485275,
-0.38620492815971375,
0.3377920389175415,
1.179930329322815,
-0.5380846858024597,
0.8703587651252747,
-0.4755682945251465,
-0.05402037873864174,
0.18210382759571075,
-0.3251715302467346,
-0.5251597166061401,
0.4276111423969269,
-1.2559884786605835,
1.0176907777786255,... |
func PossibleProvisioningStateValues() []ProvisioningState {
return []ProvisioningState{Creating, Deleting, Failed, Moving, Running, Succeeded}
} | [
-0.9358261227607727,
0.1764913946390152,
-0.15917612612247467,
1.0042808055877686,
-0.5936971306800842,
0.4699321687221527,
-0.7712032794952393,
0.5045053362846375,
0.11033252626657486,
0.1678522825241089,
-0.3082629144191742,
-0.6392959356307983,
-0.007019318174570799,
0.703303337097168,
... |
func PossibleReasonValues() []Reason {
return []Reason{AlreadyExists, Invalid}
} | [
-0.010508055798709393,
-0.5355085730552673,
0.2128327190876007,
0.9882387518882751,
0.11339855194091797,
0.49489977955818176,
-0.6631333827972412,
-0.13255877792835236,
0.5060004591941833,
-0.17827892303466797,
-0.5473185181617737,
0.5492745041847229,
0.2976961135864258,
0.861404299736023,... |
func PossibleStateValues() []State {
return []State{StateCreating, StateDeleted, StateDeleting, StateRunning, StateStarting, StateStopped, StateStopping, StateUnavailable, StateUpdating}
} | [
-0.9520847201347351,
-0.25656190514564514,
0.11472053825855255,
0.6876493692398071,
-0.5509911179542542,
0.1014191210269928,
-0.5156633257865906,
0.3698480725288391,
0.4240283668041229,
-0.6038632988929749,
-0.20613105595111847,
-0.017595866695046425,
0.08292237669229507,
0.731208562850952... |
func PossibleTypeValues() []Type {
return []Type{MicrosoftKustoclustersattachedDatabaseConfigurations, MicrosoftKustoclustersdatabases}
} | [
-0.32718947529792786,
0.5161323547363281,
0.3495820164680481,
0.7996675372123718,
0.3439382314682007,
0.610038697719574,
-0.05522633716464043,
-0.07654891163110733,
0.33922162652015686,
0.08902456611394882,
-0.5116298198699951,
0.5943434238433838,
-0.3849221169948578,
0.9921667575836182,
... |
func NewLastCommitCache(repoPath string, gitRepo *Repository, ttl int64, cache Cache) *LastCommitCache {
if cache == nil {
return nil
}
return &LastCommitCache{
repoPath: repoPath,
repo: gitRepo,
commitCache: make(map[string]*Commit),
ttl: ttl,
cache: cache,
}
} | [
0.3338180482387543,
-0.2937389612197876,
0.39704200625419617,
-0.6281113624572754,
-0.21974611282348633,
-0.8447831869125366,
-0.9112700819969177,
0.21450957655906677,
0.31035351753234863,
1.0769037008285522,
0.4328407943248749,
-0.549998939037323,
-1.1996147632598877,
0.14654509723186493,... |
func (c *LastCommitCache) Get(ref, entryPath string) (interface{}, error) {
v := c.cache.Get(c.getCacheKey(c.repoPath, ref, entryPath))
if vs, ok := v.(string); ok {
log("LastCommitCache hit level 1: [%s:%s:%s]", ref, entryPath, vs)
if commit, ok := c.commitCache[vs]; ok {
log("LastCommitCache hit level 2: [%s... | [
-0.11149663478136063,
-0.29188692569732666,
0.9085864424705505,
-0.42625632882118225,
0.46788954734802246,
-0.5186161398887634,
-0.514143168926239,
-0.19659937918186188,
0.010972673073410988,
0.8645203709602356,
0.838653028011322,
0.6593374609947205,
-0.7955750226974487,
-0.014083423651754... |
func (c *LastCommitCache) CacheCommit(commit *Commit) error {
return c.recursiveCache(commit, &commit.Tree, "", 1)
} | [
0.39423441886901855,
-0.032264724373817444,
0.25127509236335754,
-0.29139670729637146,
-0.4756182134151459,
-0.7446473836898804,
-0.7790111899375916,
-0.4944629967212677,
-0.39098915457725525,
0.8316649198532104,
-0.008940530009567738,
-0.1884039342403412,
-0.8641302585601807,
0.7196307778... |
func NewQuadTree(leftX, rightX, topY, bottomY float64, leafAllocation int64) T {
var newView = NewViewP(leftX, rightX, topY, bottomY)
return newRoot(newView, leafAllocation)
} | [
0.2685866057872772,
-1.3817347288131714,
0.41484007239341736,
-0.30533716082572937,
-1.096985101699829,
-0.14211724698543549,
-1.4055041074752808,
-1.0855988264083862,
-0.08372186869382858,
-0.4103451371192932,
-0.13904863595962524,
0.0050624762661755085,
-0.3772318661212921,
0.00888421852... |
func (np *vpoint) zeroed() bool {
return np.elems == nil
} | [
0.21122421324253082,
-1.0791047811508179,
0.2807601988315582,
0.11282596737146378,
1.569298267364502,
1.0786018371582031,
-0.11880350857973099,
0.7111464738845825,
0.8528119921684265,
-0.010295705869793892,
-0.4983467757701874,
0.43569257855415344,
-0.3722900450229645,
0.3045518398284912,
... |
func (np *vpoint) zeroOut() {
np.elems = nil
} | [
0.9077948331832886,
-0.38504207134246826,
-0.02906849980354309,
-0.09046324342489243,
0.9583414793014526,
0.9442048668861389,
0.11120471358299255,
0.8194358348846436,
0.6222532391548157,
0.6892110705375671,
0.11957291513681412,
1.1446353197097778,
-0.22740763425827026,
0.05391673371195793,... |
func (np *vpoint) sameLoc(x, y float64) bool {
return np.x == x && np.y == y
} | [
0.5787938833236694,
-1.5169440507888794,
0.4070908725261688,
0.0554039366543293,
-0.04894023388624191,
0.4861511290073395,
0.2694890797138214,
-0.6039403080940247,
0.6357012391090393,
0.28180813789367676,
0.41708555817604065,
0.9899249076843262,
0.4841790199279785,
-0.644522488117218,
-1... |
func (l *leaf) insert(x, y float64, elems []interface{}, inPtr *subtree, r *root) {
for i := range l.ps {
if l.ps[i].zeroed() {
l.ps[i].x = x
l.ps[i].y = y
l.ps[i].elems = elems
return
}
if l.ps[i].sameLoc(x, y) {
l.ps[i].elems = append(l.ps[i].elems, elems...)
return
}
}
// This leaf is fu... | [
-0.13532312214374542,
0.011803706176578999,
0.4922521412372589,
-0.47622835636138916,
0.2447291761636734,
0.6361868381500244,
-0.31177741289138794,
0.38408732414245605,
-0.04507441446185112,
0.07591572403907776,
-0.21450379490852356,
-0.7564035654067993,
-1.4481912851333618,
0.258841931819... |
func newIntNode(x, y float64, elems []interface{}, inPtr *subtree, l *leaf, r *root) {
var newNode subtree
newNode = r.newNode(l.View())
for _, p := range l.ps {
newNode.insert(p.x, p.y, p.elems, nil, r) // Does not require an inPtr param as we are passing into a *node
}
newNode.insert(x, y, elems, nil, r) // Do... | [
0.43718472123146057,
-0.4890359044075012,
0.4620969295501709,
-0.4259725511074066,
-0.37103867530822754,
0.25214242935180664,
-0.19347508251667023,
-0.2743377983570099,
-0.13665664196014404,
0.6968359351158142,
0.1202399879693985,
0.2047342211008072,
-0.8350621461868286,
0.2449778616428375... |
func (l *leaf) survey(vs []*View, fun func(x, y float64, e interface{})) {
for i := range l.ps {
p := &l.ps[i]
if !p.zeroed() && contains(vs, p.x, p.y) {
for i := range p.elems {
fun(p.x, p.y, p.elems[i])
}
}
}
} | [
-0.2715042531490326,
0.041605718433856964,
0.4044593870639801,
0.44784197211265564,
-0.23343372344970703,
0.34316012263298035,
-0.2964954376220703,
-0.09654583781957626,
0.4761798679828644,
-0.37025466561317444,
0.8698022961616516,
-0.006658895406872034,
0.20462752878665924,
0.023920666426... |
func (l *leaf) del(view *View, pred func(x, y float64, e interface{}) bool, _ *subtree, _ *root) {
for i := range l.ps {
point := &l.ps[i]
if !point.zeroed() && view.contains(point.x, point.y) {
del(point, pred)
if len(point.elems) == 0 {
point.zeroOut()
}
}
}
restoreOrder(&l.ps)
return
} | [
0.7810047268867493,
-0.01807497814297676,
0.4883615970611572,
0.1266385167837143,
-1.0422786474227905,
0.7825430035591125,
-0.055062588304281235,
1.059800148010254,
0.3802575170993805,
-0.4044651389122009,
0.31958937644958496,
0.4076039493083954,
0.2153770625591278,
0.4383232891559601,
-... |
func del(p *vpoint, pred func(x, y float64, e interface{}) bool) {
for i := len(p.elems) - 1; i >= 0; i-- {
if pred(p.x, p.y, p.elems[i]) {
// Fast del from slice
last := len(p.elems) - 1
p.elems[i] = p.elems[last]
p.elems = p.elems[:last]
}
}
return
} | [
0.11244377493858337,
0.0812242329120636,
0.5389447808265686,
-0.08941854536533356,
-1.1483125686645508,
1.1286119222640991,
-0.37257739901542664,
0.9757492542266846,
0.14765551686286926,
0.8546925187110901,
-0.015799526125192642,
0.822500467300415,
-0.12436068803071976,
-0.0696693807840347... |
func restoreOrder(ps *[LEAF_SIZE]vpoint) {
for i := range ps {
if ps[i].zeroed() {
for j := i + 1; j < len(ps); j++ {
if !ps[j].zeroed() {
ps[i] = ps[j]
ps[j].zeroOut()
break
}
}
}
}
} | [
0.6980756521224976,
-0.6935932040214539,
0.6048896312713623,
0.20888231694698334,
0.7765018939971924,
-0.6400258541107178,
-0.9790991544723511,
0.4562638998031616,
0.08276627957820892,
0.5075400471687317,
0.20343367755413055,
-0.5022009611129761,
-1.3165342807769775,
0.1492205709218979,
... |
func (l *leaf) View() *View {
return &l.view
} | [
0.28864526748657227,
-0.9955335855484009,
0.0603906475007534,
-0.04919353500008583,
-0.3915064334869385,
-0.0390094630420208,
0.10696817934513092,
-0.3006595969200134,
0.24457871913909912,
-2.1262106895446777,
0.6556349396705627,
0.9321233034133911,
-0.7055180668830872,
-0.2984808981418609... |
func (l *leaf) setView(view *View) {
l.view = *view
} | [
0.09269770979881287,
-0.47306421399116516,
0.2986885607242584,
0.4148092269897461,
-0.3400175869464874,
0.320006400346756,
-1.0375460386276245,
0.36983799934387207,
0.1887284517288208,
-1.56044340133667,
-0.4677048623561859,
0.16043753921985626,
-0.4264659285545349,
0.32534244656562805,
... |
func (l *leaf) isEmptyLeaf() bool {
return l.ps[0].zeroed()
} | [
-0.23424287140369415,
-0.48756858706474304,
0.3595992624759674,
0.11369039863348007,
1.0855255126953125,
0.48250341415405273,
-0.7537527680397034,
-0.20232070982456207,
0.992186427116394,
-0.5388608574867249,
-0.5332485437393188,
-0.08553177863359451,
-0.4812423288822174,
0.241643503308296... |
func (l *leaf) String() string {
var str = l.view.String()
for _, p := range l.ps {
str += p.String()
}
return str
} | [
0.521372377872467,
-1.279959797859192,
0.305728018283844,
-0.5381112098693848,
-0.18215614557266235,
1.0318416357040405,
-0.15531307458877563,
-0.890259861946106,
-0.027014076709747314,
-0.814323902130127,
0.8382610082626343,
0.29903197288513184,
-0.4217333495616913,
-0.21475720405578613,
... |
func (n *node) insert(x, y float64, elems []interface{}, _ *subtree, r *root) {
for i := range n.children {
if n.children[i].View().contains(x, y) {
n.children[i].insert(x, y, elems, &n.children[i], r)
}
}
} | [
-0.38975533843040466,
0.8686571717262268,
0.46873798966407776,
-0.22510060667991638,
-0.5050912499427795,
0.28108125925064087,
0.08810402452945709,
-0.1322450488805771,
-0.743046760559082,
0.0518881157040596,
-0.590785562992096,
-0.44584715366363525,
-0.6667541861534119,
0.3340846598148346... |
func (n *node) survey(vs []*View, fun func(x, y float64, e interface{})) {
for i := range n.children {
child := n.children[i]
if overlaps(vs, child.View()) {
n.children[i].survey(vs, fun)
}
}
} | [
-0.5887058973312378,
0.9730920195579529,
0.6282495856285095,
0.34861287474632263,
-0.6127899885177612,
-0.09167731553316116,
0.715746283531189,
-0.5190913677215576,
0.15553772449493408,
-0.2563489079475403,
0.43237653374671936,
0.1541353166103363,
0.5119323134422302,
0.18016470968723297,
... |
func (n *node) del(view *View, pred func(x, y float64, e interface{}) bool, inPtr *subtree, r *root) {
allEmpty := true
for i := range n.children {
if n.children[i].View().overlaps(view) {
n.children[i].del(view, pred, &n.children[i], r)
}
allEmpty = allEmpty && n.children[i].isEmptyLeaf()
}
if allEmpty &&... | [
0.4781895577907562,
0.5572702884674072,
0.8181015849113464,
-0.23139183223247528,
-1.233525276184082,
0.7185996770858765,
0.3966194987297058,
0.6479345560073853,
0.559469997882843,
-0.3257818818092346,
0.2917168140411377,
0.6766754984855652,
-0.038575299084186554,
0.52403324842453,
-1.06... |
func (n *node) View() *View {
return &n.view
} | [
-0.205579936504364,
-0.10349484533071518,
-0.052488453686237335,
-0.7822352051734924,
-0.45075803995132446,
-0.3925143778324127,
0.36531877517700195,
-0.40337422490119934,
0.09762752801179886,
-2.034133195877075,
0.7574869394302368,
1.0771058797836304,
-0.4561142325401306,
-0.2712723612785... |
func (n *node) setView(view *View) {
n.view = *view
} | [
-0.5155732035636902,
0.5596005916595459,
0.14449885487556458,
-0.25224971771240234,
-0.46178480982780457,
0.10170158743858337,
-0.745344877243042,
0.2826468348503113,
-0.08356728404760361,
-1.4370819330215454,
-0.6697561144828796,
0.401611328125,
-0.29914671182632446,
0.3447117507457733,
... |
func (n *node) isEmptyLeaf() bool {
return false
} | [
-0.8037721514701843,
-0.09192623198032379,
0.38799339532852173,
-0.17766033113002777,
0.5448641180992126,
1.0172417163848877,
-0.4097209572792053,
-0.006731768138706684,
0.8062024116516113,
-0.8086821436882019,
-0.5563015341758728,
-0.16609208285808563,
-0.41199588775634766,
0.456892877817... |
func (n *node) String() string {
return "<" + n.view.String() + "-\n" + n.children[0].String() + ", \n" + n.children[1].String() + ", \n" + n.children[2].String() + ", \n" + n.children[3].String() + ">"
} | [
-0.04394034668803215,
-0.4121328890323639,
0.526232898235321,
-0.9809383749961853,
-0.35541707277297974,
0.45599356293678284,
0.04000917822122574,
-0.7155593037605286,
-0.6893374919891357,
-0.67373126745224,
-0.14982469379901886,
0.7919024229049683,
0.4521651864051819,
-0.03239148855209350... |
func newRoot(view *View, leafAllocation int64) *root {
if leafAllocation < 10 {
leafAllocation = 10
}
leafNum := 3 - ((leafAllocation - 1) % 3) + leafAllocation
nodeNum := (leafNum - 1) / 3
r := new(root)
r.leaves = make([]leaf, leafNum, leafNum)
for i := 0; i < len(r.leaves)-2; i++ {
r.leaves[i].nextFree = ... | [
0.8234441876411438,
-0.14676232635974884,
0.59373939037323,
0.06093010678887367,
-1.2280117273330688,
-0.5025813579559326,
0.3531450033187866,
-0.6813141703605652,
1.193946123123169,
0.4671916961669922,
0.6383788585662842,
0.951829731464386,
0.059816788882017136,
-0.3967171013355255,
-0.... |
func (r *root) recycle(st subtree) {
switch st.(type) {
case *leaf:
r.recycleLeaf(st.(*leaf))
case *node:
r.recycleNode(st.(*node))
}
} | [
0.06957370787858963,
0.33494243025779724,
0.4734112620353699,
1.0294018983840942,
-0.6161576509475708,
0.27229389548301697,
0.29765358567237854,
-0.5606873035430908,
0.038581863045692444,
0.4153881072998047,
0.36912840604782104,
0.9723544716835022,
0.6768934726715088,
0.6000420451164246,
... |
func (r *root) newNode(view *View) (n *node) {
if r.freeNode == nil {
n = &node{view: *view, disposable: true}
} else {
n = r.freeNode
r.freeNode = n.nextFree
n.view = *view
}
r.newLeaves(view, &n.children)
return
} | [
0.3058609366416931,
0.4582138955593109,
0.4143592119216919,
0.08633315563201904,
-1.2055126428604126,
-0.148183673620224,
0.4828214645385742,
-0.22976571321487427,
1.6265722513198853,
-0.1450038105249405,
0.2910763621330261,
0.40265655517578125,
-0.0958235114812851,
0.32618990540504456,
... |
func (r *root) recycleNode(n *node) {
if n.disposable {
return
}
n.nextFree = r.freeNode
r.freeNode = n
for i := range n.children {
r.recycle(n.children[i])
}
n.children = *new([4]subtree)
n.view = *new(View)
} | [
-0.35450854897499084,
1.2498340606689453,
0.3520370423793793,
-0.562211275100708,
-0.7853310108184814,
-0.21467708051204681,
0.8129026293754578,
-0.605998694896698,
0.8972524404525757,
0.19787757098674774,
-0.554718554019928,
0.2901063561439514,
0.14287897944450378,
0.6883888840675354,
0... |
func (r *root) newLeaf(view *View) (l *leaf) {
if r.freeLeaf == nil {
l = &leaf{view: *view, disposable: true}
return
}
l = r.freeLeaf
r.freeLeaf = l.nextFree
l.view = *view
return
} | [
0.8923328518867493,
-0.4698231518268585,
0.24063654243946075,
0.20362459123134613,
-1.5162559747695923,
0.12810267508029938,
0.7613412141799927,
-0.5637431740760803,
1.9175894260406494,
-0.9988272190093994,
0.1565427929162979,
0.12795193493366241,
-0.1987907439470291,
0.29519012570381165,
... |
func (r *root) newLeaves(view *View, leaves *[4]subtree) {
v0, v1, v2, v3 := view.quarters()
vs := []*View{v0, v1, v2, v3}
for i := range leaves {
leaves[i] = r.newLeaf(vs[i])
}
return
} | [
0.38497310876846313,
-0.2771596312522888,
0.5711660385131836,
-0.07287827879190445,
-0.6772308349609375,
-0.04638122767210007,
-0.4927365481853485,
-0.9832279682159424,
0.8096244931221008,
-0.5333322286605835,
0.4928537607192993,
0.09400787204504013,
0.04109615460038185,
-0.052447691559791... |
func (r *root) recycleLeaf(l *leaf) {
if l.disposable {
return
}
l.nextFree = r.freeLeaf
r.freeLeaf = l
l.view = *new(View)
l.ps = *new([LEAF_SIZE]vpoint)
} | [
0.2762055993080139,
-0.0923483669757843,
0.16839830577373505,
-0.19828616082668304,
-0.762322723865509,
0.06359909474849701,
0.40619128942489624,
-0.5654887557029724,
1.2200520038604736,
-0.46146151423454285,
-0.41857531666755676,
0.1102103739976883,
0.05436047911643982,
0.9221380352973938... |
func (r *root) Insert(x, y float64, nval interface{}) {
elems := make([]interface{}, 1, 1)
elems[0] = nval
r.rootNode.insert(x, y, elems, nil, r)
} | [
-0.49774497747421265,
1.4995747804641724,
0.5043015480041504,
0.21688713133335114,
-0.29834866523742676,
0.6420849561691284,
-0.00331138726323843,
-0.8616043925285339,
-0.6524483561515808,
-0.18382051587104797,
-0.7335029244422913,
-0.40335366129875183,
-0.8454930782318115,
1.0716775655746... |
func (r *root) Del(view *View, pred func(x, y float64, e interface{}) bool) {
r.rootNode.del(view, pred, nil, r)
} | [
0.44361284375190735,
0.5416675806045532,
0.35800620913505554,
0.018671412020921707,
-1.480806827545166,
1.093872308731079,
0.28917619585990906,
0.782932698726654,
0.25591278076171875,
-0.4607773423194885,
0.27656978368759155,
1.229288101196289,
0.548183262348175,
0.5324610471725464,
-1.4... |
func (r *root) Survey(vs []*View, fun func(x, y float64, e interface{})) {
r.rootNode.survey(vs, fun)
} | [
-0.4082644283771515,
0.9143838286399841,
0.3725239634513855,
0.6904595494270325,
-0.698108971118927,
-0.05266384780406952,
0.23940828442573547,
-0.6424774527549744,
0.38867855072021484,
-0.7260942459106445,
0.47507527470588684,
0.8149423003196716,
0.8499863147735596,
0.20580360293388367,
... |
func (r *root) View() *View {
return r.rootNode.View()
} | [
0.34794244170188904,
-0.7421305179595947,
0.07712019979953766,
-0.34600314497947693,
-1.1104609966278076,
-0.6435351371765137,
0.5518174171447754,
-0.4588485658168793,
-0.04659493267536163,
-1.7313556671142578,
0.6050547957420349,
1.2527976036071777,
-0.5389102697372437,
0.3633120059967041... |
func (r *root) freeNodes() (cnt int) {
freeNode := r.freeNode
for {
if freeNode != nil {
freeNode = freeNode.nextFree
cnt++
} else {
return
}
}
panic("Unreachable")
} | [
-0.39108115434646606,
0.9698671102523804,
0.3051013946533203,
-0.23319508135318756,
-0.9843243956565857,
-0.5467545986175537,
1.046873688697815,
-0.6877296566963196,
-0.24957917630672455,
0.8064923286437988,
-0.5855611562728882,
0.40797215700149536,
-0.8742736577987671,
0.39344438910484314... |
func (r *root) freeLeaves() (cnt int) {
freeLeaf := r.freeLeaf
for {
if freeLeaf != nil {
freeLeaf = freeLeaf.nextFree
cnt++
} else {
return
}
}
panic("Unreachable")
} | [
0.8682457208633423,
0.33526596426963806,
0.4481801390647888,
0.027811340987682343,
-1.0914877653121948,
0.0691784992814064,
0.6155051589012146,
-1.0979015827178955,
0.023776326328516006,
-0.3126088082790375,
0.14818546175956726,
-0.022058669477701187,
-0.6815469861030579,
0.203052490949630... |
func (am *CfCliApplicationsManager) ApplicationsToBeCopied(
appNames []string, copyAsDroplet bool) (ApplicationCollection, error) {
am.logger.UI.Say("\nDownloading applications to be copied...")
ac := &CfCliApplicationCollection{
appInfoMap: make(map[string]ApplicationContent),
}
apps, err := am.srcCCSession.... | [
-0.9366633296012878,
-0.49068692326545715,
0.7974346280097961,
0.0030865436419844627,
-0.5209001898765564,
0.7786775231361389,
0.24532464146614075,
-0.976320207118988,
1.0100699663162231,
0.6676140427589417,
0.2337483912706375,
0.04775966703891754,
-0.010425125248730183,
0.6186978816986084... |
func (*RemarketingActionOperation) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*RemarketingActionOperation_Create)(nil),
(*RemarketingActionOperation_Update)(nil),
}
} | [
-1.0034550428390503,
0.13806934654712677,
0.4009838104248047,
0.508297860622406,
0.6850901246070862,
-0.8892493844032288,
1.3915988206863403,
-0.4439074695110321,
1.0116931200027466,
0.7172127366065979,
-0.3443569242954254,
0.19387714564800262,
-0.02637644112110138,
-0.008480737917125225,
... |
func NewThousandOp() func(int) (int, error) {
op1 := NewHundredOp()
op2 := NewHundredOp()
op3 := NewHundredOp()
op4 := NewHundredOp()
op5 := NewHundredOp()
op6 := NewHundredOp()
op7 := NewHundredOp()
op8 := NewHundredOp()
op9 := NewHundredOp()
op10 := NewHundredOp()
return func(i int) (int, error) {
var e... | [
-0.6663015484809875,
-0.12578286230564117,
1.0912896394729614,
0.29966115951538086,
-0.08410464227199554,
-0.3860016167163849,
1.2094136476516724,
0.07596036046743393,
0.46643638610839844,
0.4294753074645996,
-0.216900035738945,
-0.6746343374252319,
0.851240873336792,
-0.5525481700897217,
... |
func NewHundredOp() func(int) (int, error) {
op1 := newTenOp()
op2 := newTenOp()
op3 := newTenOp()
op4 := newTenOp()
op5 := newTenOp()
op6 := newTenOp()
op7 := newTenOp()
op8 := newTenOp()
op9 := newTenOp()
op10 := newTenOp()
return func(i int) (int, error) {
var err error
i, err = op1(i)
if err != n... | [
-0.6698535680770874,
0.074411541223526,
1.0986415147781372,
0.06230264529585838,
-0.1124730259180069,
-0.470562219619751,
1.3369882106781006,
-0.2675565481185913,
0.5152163505554199,
0.01727106422185898,
-0.27241677045822144,
-0.5844913721084595,
0.7415635585784912,
-0.4771748185157776,
... |
func RealBucketARN(arn apis.ARN) string {
arn.Region = ""
arn.AccountID = ""
return arn.String()
} | [
-0.3539853096008301,
-2.0214831829071045,
0.1637476533651352,
-0.8360617756843567,
-0.6893945336341858,
-0.4189351201057434,
-0.6413015723228455,
0.008981567807495594,
0.6281484961509705,
-0.026639241725206375,
-0.4593846797943115,
0.6576616168022156,
0.9329967498779297,
0.4603804051876068... |
func randomInUnitSphere() Vec3 {
var unit Vec3
// go doesn't support do/while loops
done := false
for !done {
// Find a random point in a cube
x := rand.Float64()*2.0 - 1.0
y := rand.Float64()*2.0 - 1.0
z := rand.Float64()*2.0 - 1.0
// Check if the point is within a unit sphere where x^2 + y^2 + z^2 <=... | [
-0.640811026096344,
-0.4141756594181061,
0.801923394203186,
-0.4145769774913788,
-0.6942312121391296,
0.9192988872528076,
0.39816662669181824,
-0.06273377686738968,
0.8818361163139343,
-0.5606773495674133,
-0.19030259549617767,
1.0362939834594727,
-1.6413657665252686,
-0.26774728298187256,... |
func NewApp(opts ...AppOptions) *App {
options := AppOptions{}
for _, i := range opts {
options = i
break
}
options.init()
// Parse config yaml string from ./conf.go
conf, err := config.ParseYaml(confString)
Must(err)
// Set config variables delivered from main.go:11
// Variables defined as ./conf.go:3
... | [
0.30210253596305847,
-0.3584657311439514,
1.0636745691299438,
0.40135037899017334,
-0.05276193469762802,
0.4833593964576721,
0.0007680059061385691,
0.03129850700497627,
-0.23016685247421265,
0.38157567381858826,
0.507755696773529,
-0.16546635329723358,
0.6058938503265381,
0.873718798160553... |
func (app *App) Run() {
Must(app.Engine.Start(":" + app.Conf.UString("port")))
} | [
0.8090224862098694,
-0.7550140023231506,
0.44951748847961426,
0.46570107340812683,
0.9740756154060364,
0.9692919850349426,
0.3599959909915924,
0.9564950466156006,
-0.6078121066093445,
0.07057157158851624,
-0.2639558017253876,
0.274097204208374,
0.4944242835044861,
0.10441737622022629,
0.... |
func execute(w io.Writer, commandline string, req io.Reader) error {
argv, err := cmd.SplitQuoted(commandline)
if err != nil {
return err
}
// We treat a pipe command specially.
// It will be splitted by the pipe binary.
if strings.HasPrefix(commandline, "pipe ") {
argv = []string{"pipe", commandline[5:]}
}... | [
-0.28196120262145996,
-0.5960009098052979,
1.121687650680542,
0.21356366574764252,
0.9768815040588379,
-0.13473600149154663,
0.2339075207710266,
-0.4207184314727783,
-0.7048682570457458,
0.5866804718971252,
0.3025291860103607,
0.07266590744256973,
0.2573831379413605,
0.05322666093707085,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.