text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func initialize(kubeconfig string) {
if kubeconfig == "" {
// skip out-of-cluster initialization if inside the container
if kc, err := shouldUseContainerMode(); kc && err == nil {
return
} else if err != nil {
log.Printf("could not determine if running in a container: %v", err)
}
var err error
kubeco... | [
-0.03927793726325035,
0.9498298764228821,
0.6163424849510193,
0.6938228011131287,
0.7708770632743835,
-0.007662799209356308,
-0.14993777871131897,
0.34113195538520813,
-0.6807615756988525,
1.0256201028823853,
0.23811841011047363,
0.3526745140552521,
-0.795681893825531,
0.8642371296882629,
... |
func Hash(v []byte) string {
h := sha256.Sum256(v)
return hex.EncodeToString(h[:])
} | [
0.9865677952766418,
-0.4004150331020355,
0.34047678112983704,
-0.3289608359336853,
-0.23725450038909912,
0.7961475849151611,
-0.20095081627368927,
0.6563429832458496,
0.7864577174186707,
0.5661508440971375,
-0.5590631365776062,
0.559292197227478,
-0.09813991189002991,
-0.1384502798318863,
... |
func Sign(sk *ecdsa.PrivateKey, h []byte) (string, error) {
sigB, err := ecdsa.SignASN1(rand.Reader, sk, h)
return hex.EncodeToString(sigB), err
} | [
-1.2859920263290405,
-0.00887618213891983,
0.2262347936630249,
-0.2512035369873047,
-0.9210672378540039,
0.3580246567726135,
-1.0819432735443115,
-0.26275497674942017,
0.423701673746109,
0.6172962784767151,
-0.806824803352356,
-0.050653353333473206,
-0.11615921556949615,
0.5223843455314636... |
func Byt2PK(pkB []byte) (*ecdsa.PublicKey, error) {
pk, err := x509.ParsePKIXPublicKey(pkB)
if err != nil {
return nil, err
}
return pk.(*ecdsa.PublicKey), nil
} | [
0.4019307792186737,
-0.2254098355770111,
0.36596348881721497,
-0.4942854642868042,
0.18262813985347748,
0.5146504640579224,
0.5123315453529358,
0.3054453730583191,
-0.4050634205341339,
0.5709401965141296,
-0.43205928802490234,
0.029270626604557037,
0.8890682458877563,
-0.5785974264144897,
... |
func Byt2SK(skB []byte) (*ecdsa.PrivateKey, error) {
return x509.ParseECPrivateKey(skB)
} | [
-0.46746009588241577,
-0.388509064912796,
0.17276492714881897,
0.08933292329311371,
-0.1573236882686615,
-0.7442090511322021,
0.6588605046272278,
-0.8700681924819946,
-0.41482090950012207,
0.6974672675132751,
-0.7326589822769165,
0.6020050644874573,
0.985273003578186,
-0.19814416766166687,... |
func (c context) eq(d context) bool {
return c.state == d.state &&
c.delim == d.delim &&
c.urlPart == d.urlPart &&
c.jsCtx == d.jsCtx &&
c.attr == d.attr &&
c.element == d.element &&
c.err == d.err
} | [
-0.8794988989830017,
-0.4096705913543701,
0.3218337595462799,
-0.8976180553436279,
-0.060557279735803604,
0.4563494026660919,
0.4846947491168976,
-0.31162524223327637,
0.5614514946937561,
-0.05040973797440529,
-0.36007532477378845,
0.43494081497192383,
0.671025276184082,
0.2956499755382538... |
func (c context) mangle(templateName string) string {
// The mangled name for the default context is the input templateName.
if c.state == stateText {
return templateName
}
s := templateName + "$htmltemplate_" + c.state.String()
if c.delim != delimNone {
s += "_" + c.delim.String()
}
if c.urlPart != urlPartN... | [
-0.6403876543045044,
0.24917566776275635,
0.7986853718757629,
-1.090682029724121,
-0.7034784555435181,
-0.07883282750844955,
-0.5233812928199768,
-0.2326430380344391,
0.25775161385536194,
-0.010305795818567276,
-0.15113668143749237,
-0.6943080425262451,
-0.08786428719758987,
0.324138641357... |
func isComment(s state) bool {
switch s {
case stateHTMLCmt, stateJSBlockCmt, stateJSLineCmt, stateCSSBlockCmt, stateCSSLineCmt:
return true
}
return false
} | [
-0.5308822989463806,
-0.725301206111908,
0.6187758445739746,
0.39039334654808044,
0.15196070075035095,
-0.35756590962409973,
1.1195249557495117,
-0.06764473766088486,
0.9896254539489746,
0.20256100594997406,
0.007937337271869183,
-0.4003458321094513,
-0.1769544929265976,
1.2551902532577515... |
func isInTag(s state) bool {
switch s {
case stateTag, stateAttrName, stateAfterName, stateBeforeValue, stateAttr:
return true
}
return false
} | [
-0.014331110753118992,
-0.4051315486431122,
0.5641018152236938,
0.09252947568893433,
-1.1298433542251587,
-0.4418894946575165,
0.33600330352783203,
-0.2887764871120453,
0.06749547272920609,
-0.22750133275985718,
-0.5955420136451721,
-0.26991426944732666,
-0.3128715753555298,
0.868289947509... |
func (client *Client) Read() {
for {
// reads the string
line, err := client.reader.ReadString('\n')
// handles error
if err != nil {
fmt.Println("A connection closed")
return
}
// publishes message on its incoming channel
client.incoming <- line
}
} | [
0.6145889163017273,
-0.4432392418384552,
0.40014079213142395,
-1.1136279106140137,
0.326276034116745,
0.46442869305610657,
-0.39895331859588623,
-0.07452321797609329,
-1.5500096082687378,
-0.15554480254650116,
1.1364151239395142,
1.1384459733963013,
-1.1007789373397827,
0.5276713371276855,... |
func (client *Client) Write() {
// for each message in the outgoing channel
for data := range client.outgoing {
// write the message to the buffer and flush
client.writer.WriteString(data)
client.writer.Flush()
}
} | [
-0.2928909957408905,
0.021353421732783318,
0.2052791267633438,
-1.6245067119598389,
1.0734524726867676,
0.24133488535881042,
0.24248240888118744,
-0.11776866763830185,
-1.2500228881835938,
0.06774232536554337,
-0.12678027153015137,
0.3381526470184326,
-1.1019130945205688,
0.860561370849609... |
func (client *Client) Listen() {
go client.Read()
go client.Write()
} | [
0.42660921812057495,
-1.4313009977340698,
0.27838367223739624,
-1.5551799535751343,
0.7971819639205933,
0.421317994594574,
0.5785674452781677,
0.5421218872070312,
-0.9340362548828125,
-0.006845645606517792,
0.4735945463180542,
0.3790116310119629,
-0.5044044852256775,
-0.02922571264207363,
... |
func NewClient(connection net.Conn) *Client {
// makes new reader and writer objects based on the socket
writer := bufio.NewWriter(connection)
reader := bufio.NewReader(connection)
// makes the new client object
client := &Client{
incoming: make(chan string),
outgoing: make(chan string),
reader: reader,
... | [
0.7780535817146301,
-1.4603447914123535,
0.3755919933319092,
-1.189106822013855,
-0.62831711769104,
0.10998035222291946,
0.016370534896850586,
-0.15218505263328552,
-0.5023382306098938,
-0.7776732444763184,
0.20237991213798523,
0.23421607911586761,
-0.4697042405605316,
-0.9929294586181641,... |
func (chatRoom *ChatRoom) Broadcast(data string) {
for _, client := range chatRoom.clients {
client.outgoing <- data
}
} | [
-0.6387308835983276,
-0.8965610861778259,
0.3930726647377014,
-0.35840052366256714,
-0.06439070403575897,
0.6609333753585815,
-0.199972465634346,
-0.14935414493083954,
-0.3063449263572693,
0.2626344561576843,
-0.6706734895706177,
1.3042004108428955,
-0.8302046060562134,
0.9562157988548279,... |
func (chatRoom *ChatRoom) Join(connection net.Conn) {
// makes a new client
client := NewClient(connection)
// appends it in the list
chatRoom.clients = append(chatRoom.clients, client)
// starts a goroutine to configure the incoming messages to be put in the chatroom's incoming
// messages to broadcast
go func(... | [
0.22973307967185974,
-0.31113383173942566,
0.37602144479751587,
-0.4409838020801544,
0.4308333992958069,
0.19599664211273193,
-0.6528184413909912,
0.5521734356880188,
-0.9620314836502075,
0.023472163826227188,
-0.6348117589950562,
0.4211346209049225,
-1.1411200761795044,
1.006672978401184,... |
func ImageFromContext(ctx context.Context) string {
if e, ok := ctx.Value(eventshubImageKey{}).(string); ok {
return e
}
return "ko://" + eventshubPackage()
} | [
-0.05049672722816467,
-0.06051110103726387,
0.221230149269104,
0.8368195295333862,
-0.42355450987815857,
-0.02312467247247696,
-0.5841118097305298,
0.12120172381401062,
0.7975916266441345,
0.6329057812690735,
0.541732132434845,
-0.3297358453273773,
0.5355626940727234,
0.8242858648300171,
... |
func WithCustomImage(image string) environment.EnvOpts {
return func(ctx context.Context, env environment.Environment) (context.Context, error) {
return context.WithValue(ctx, eventshubImageKey{}, image), nil
}
} | [
0.6191343069076538,
0.025369327515363693,
0.4907115697860718,
0.11895109713077545,
-0.6042734980583191,
-0.29405415058135986,
0.13618744909763336,
0.6606670022010803,
0.2677430808544159,
0.32558977603912354,
0.31171920895576477,
0.4168854355812073,
0.2069568634033203,
1.4236334562301636,
... |
func DFS(root *tree.Node, target int) bool {
if root == nil {
return false
}
// check then recur on children of our current node
// order of traversal is pre-order; we could do dfs in-order also
// this could be done through recurring on left then check value of root then recur on right
if root.Value == target ... | [
-0.796013355255127,
0.6776729822158813,
0.7898471355438232,
0.21588300168514252,
-0.34725263714790344,
-0.5463273525238037,
-0.4833851754665375,
0.2576257288455963,
0.3177424669265747,
-0.5082009434700012,
0.5070235729217529,
0.1507781744003296,
0.09599500149488449,
0.752091646194458,
-1... |
func (sC StoreController) PlaceOrder(context *gin.Context) {
var order models.Order
if err := context.ShouldBindJSON(&order); err != nil {
context.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return
}
order, err := sC.StoreService.Create(order)
if err != nil {
context.JSON(http.StatusBadRequest,... | [
-0.6958363652229309,
-0.03727123141288757,
0.6913690567016602,
0.1463661640882492,
0.7067509889602661,
0.6264188885688782,
-0.4162404239177704,
0.5334458947181702,
0.29314693808555603,
0.0791597068309784,
-0.2826867699623108,
-0.583209216594696,
-0.38252517580986023,
1.0454517602920532,
... |
func (sC StoreController) GetOrderByID(context *gin.Context) {
id, err := strconv.ParseInt(context.Param("orderId"), 10, 64)
if err != nil {
context.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return
}
order, err := sC.StoreService.GetByOrderID(id)
if err != nil {
context.JSON(http.StatusBadReq... | [
-0.5084176659584045,
-0.05758108198642731,
0.6435953378677368,
0.6190935373306274,
0.5738373398780823,
0.04994112625718117,
-0.5346357822418213,
-0.737870454788208,
0.06929070502519608,
0.46773916482925415,
-0.5390246510505676,
0.7924966216087341,
-0.3590058982372284,
1.1603679656982422,
... |
func (sC StoreController) DeleteOrder(context *gin.Context) {
id, err := strconv.ParseInt(context.Param("orderId"), 10, 64)
if err != nil {
context.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return
}
message, err := sC.StoreService.Delete(id)
if err != nil {
context.JSON(http.StatusBadRequest... | [
-0.7710261940956116,
-0.017643000930547714,
0.7512739896774292,
0.7022234797477722,
0.4760403335094452,
0.07664235681295395,
-0.2797197997570038,
0.24205027520656586,
0.5043841004371643,
-0.17322030663490295,
-0.007299123797565699,
0.67830491065979,
-0.25545838475227356,
1.7219188213348389... |
func differences(server, local []string) ([]string, []string) {
newPackages := []string{}
installedPackages := []string{}
for _, s := range server {
if util.In(s, local) {
installedPackages = append(installedPackages, s)
} else {
newPackages = append(newPackages, s)
}
}
return newPackages, installedPac... | [
-0.904641330242157,
-0.8010007739067078,
0.44951561093330383,
-0.35155901312828064,
0.35853397846221924,
0.6171370148658752,
-1.0669305324554443,
0.6642945408821106,
0.4143752157688141,
0.5190138220787048,
-0.3036196529865265,
0.579275906085968,
-0.1744232177734375,
1.368729829788208,
0.... |
func containsPulld(packages []string) bool {
for _, s := range packages {
if p := strings.Split(s, "/")[0]; p == "pulld" || p == "pulld-not-gce" {
return true
}
}
return false
} | [
-0.33582091331481934,
0.2018609195947647,
0.443522572517395,
-0.17768506705760956,
0.20278684794902802,
0.9271708726882935,
-0.5018972754478455,
-0.06714553385972977,
0.5882289409637451,
-0.07595722377300262,
0.9649518132209778,
0.11374945193529129,
-0.6613304018974304,
0.5757567882537842,... |
func metadataWait() {
for {
req, err := http.NewRequest("GET", "http://metadata.google.internal/computeMetadata/v1/instance/attributes/pushrev?wait_for_change=true", nil)
if err != nil {
sklog.Errorf("Failed to create request: %s", err)
continue
}
req.Header.Set("Metadata-Flavor", "Google")
// We use t... | [
0.07035142928361893,
0.4817635715007782,
0.5249717235565186,
-0.3583601713180542,
0.8683493733406067,
-0.11486901342868805,
-0.6595708131790161,
0.08281958103179932,
-1.1255195140838623,
0.4995192587375641,
-0.0413285531103611,
1.3072022199630737,
0.6362991333007812,
-0.3989112675189972,
... |
func Accepts(app *fiber.App) {
app.Use(func(c *fiber.Ctx) error {
// Sólamente se aceptarán los Content-Type application/json
c.Accepts("application/json")
// Compresión al máximo
c.AcceptsEncodings("compress", "br")
return c.Next()
})
app.Use(func(c *fiber.Ctx) error {
// Sólamente se aceptarán los... | [
-0.10228066891431808,
-0.44740843772888184,
0.8967105150222778,
0.411211758852005,
-0.7871131300926208,
0.07041066884994507,
-0.9470354914665222,
-0.8089666366577148,
-0.3198542594909668,
0.02168966829776764,
0.5800203084945679,
0.7025681138038635,
0.17352087795734406,
0.6621646881103516,
... |
func NewWindow(id int, name string, sessionId int, sessionName string, startDirectory string, panes []Pane) *Window {
return &Window{
Name: name,
Id: id,
SessionId: sessionId,
SessionName: sessionName,
StartDirectory: startDirectory,
Panes: panes,
}
} | [
-0.07472030073404312,
-1.031113862991333,
0.38062724471092224,
0.9152675867080688,
-1.5584930181503296,
-0.15084433555603027,
0.4767723083496094,
-0.19369927048683167,
0.9147648811340332,
-0.5758074522018433,
-0.12475025653839111,
1.481413722038269,
-0.29562485218048096,
0.4232545495033264... |
func (w *Window) ListPanes() ([]Pane, error) {
return ListPanes([]string{"-s", "-t", w.Name})
} | [
0.38796329498291016,
-0.8104956150054932,
0.48425939679145813,
0.03040696494281292,
-1.1357706785202026,
0.35644182562828064,
-0.6338135600090027,
-0.2928398847579956,
1.0042626857757568,
0.46347498893737793,
-0.5922015905380249,
1.0606639385223389,
-0.17255181074142456,
0.8176565170288086... |
func (w *Window) AddPane(pane Pane) {
w.Panes = append(w.Panes, pane)
} | [
-0.28210321068763733,
-0.10493721812963486,
0.33708852529525757,
0.45281893014907837,
-0.8087554574012756,
1.1433690786361694,
-0.1431368738412857,
0.2912869155406952,
0.6283202767372131,
-0.9054734110832214,
0.14633341133594513,
0.666951596736908,
-1.3043709993362427,
1.207604169845581,
... |
func Jagged(x float64) float64 {
x = x - math.Floor(x)
mult := 1.0
result := 0.0
oldResult := 0.0
for {
if x > 0.5 {
result += (1.0 - x) * mult
} else {
result += x * mult
}
if result == oldResult {
return result
}
oldResult = result
mult /= 2.0
x *= 2.0
if x >= 1.0 {
x -= 1.0
}
}
... | [
0.5876353979110718,
0.1567288488149643,
0.5669910907745361,
0.32524892687797546,
-0.9439783096313477,
-0.15991055965423584,
0.8236123919487,
-1.073677659034729,
-0.06056593731045723,
-0.7309166193008423,
0.14284363389015198,
0.7172301411628723,
-0.06910403817892075,
0.6533644199371338,
-... |
func CheckURL(config *parsers.WebsiteConfig) error {
jar, err := cookiejar.New(nil)
if err != nil {
return err
}
client := &http.Client{
Timeout: 30 * time.Second,
Jar: jar,
}
request, err := http.NewRequest("GET", config.URL, nil)
if err != nil {
return err
}
request.Header.Set("User-Agent", "Mo... | [
-0.40160349011421204,
-0.3708873987197876,
0.9027840495109558,
-0.03632381930947304,
0.5887104868888855,
0.8191825151443481,
0.5741661787033081,
0.31669148802757263,
-0.3867334723472595,
0.972570538520813,
0.49453458189964294,
0.3702737092971802,
-1.0519657135009766,
0.7389842867851257,
... |
func (s *GetAssetByID) Do(ctx context.Context,
headers ...*common.Header) (response models.Asset, err error) {
err = s.c.get(ctx, &response,
fmt.Sprintf("/v2/assets/%d", s.assetId), nil, headers)
return
} | [
-0.10334030538797379,
0.004998162854462862,
0.4914787709712982,
-0.6648154854774475,
0.2828376591205597,
-0.18023262917995453,
-0.5299235582351685,
-1.612588882446289,
-0.47251954674720764,
0.4436805248260498,
0.08676853030920029,
1.261998176574707,
0.11831776052713394,
-0.0848888903856277... |
func RequestHandler(w http.ResponseWriter, r *http.Request) {
if r.Method != "GET" {
w.WriteHeader(http.StatusMethodNotAllowed)
return
}
var page []byte
var err error
fmt.Println("loading", r.URL.Path)
if r.URL.Path != "/" {
path := strings.TrimLeft(r.URL.Path, "/")
page, err = ioutil.ReadFile(path)
} el... | [
-0.875248908996582,
-0.39111003279685974,
0.7195456027984619,
0.8634090423583984,
-0.3516865372657776,
0.6629739999771118,
0.629004955291748,
0.12606069445610046,
0.5130161643028259,
-0.29180222749710083,
1.299953579902649,
-0.21550920605659485,
-0.4361943304538727,
0.5561386942863464,
0... |
func NewCommandClient(url string) CommandClient {
c := CommandRestClient{url: url}
return &c
} | [
0.4507273733615875,
-1.1803447008132935,
0.23686008155345917,
0.1826145350933075,
-0.4960402250289917,
-0.26641279458999634,
-0.14840658009052277,
-0.31443729996681213,
0.2273363173007965,
-0.6047738194465637,
-0.30452021956443787,
0.47005799412727356,
-0.7296262383460999,
-0.3254528641700... |
func (cc *CommandRestClient) Get(id string, cID string, ctx context.Context) (string, error) {
body, err := clients.GetRequest(cc.url+"/"+id+"/command/"+cID, ctx)
return string(body), err
} | [
0.09363145381212234,
-0.28621354699134827,
0.3276759684085846,
0.08398127555847168,
0.9931256175041199,
-0.4642443060874939,
-1.1906341314315796,
-1.2152044773101807,
0.13625793159008026,
-0.5611239075660706,
0.05862727016210556,
1.3755247592926025,
-1.1408145427703857,
-0.1294221580028534... |
func (cc *CommandRestClient) Put(id string, cID string, body string, ctx context.Context) (string, error) {
return clients.PutRequest(cc.url+"/"+id+"/command/"+cID, []byte(body), ctx)
} | [
0.048741456121206284,
-0.17503675818443298,
0.12636558711528778,
-0.33278292417526245,
0.7134261727333069,
0.33223286271095276,
-0.40862083435058594,
-0.9891691207885742,
0.3172745704650879,
-0.2520029842853546,
-0.6907040476799011,
1.19733464717865,
-1.8944562673568726,
-0.052095986902713... |
func NewQuickUnionSet(size int) *QuickUnionSet {
s := &QuickUnionSet{make([]int, size, size)}
for i := 0; i < s.Size(); i++ {
s.SetID(i, i)
}
return s
} | [
-0.1456950604915619,
0.16815052926540375,
0.1497741937637329,
-0.8602972626686096,
-0.6923759579658508,
-0.8111279010772705,
0.11762044578790665,
-1.3970270156860352,
0.7877190113067627,
-1.0379836559295654,
-0.8686674237251282,
0.23208443820476532,
-0.6895080804824829,
0.03408636152744293... |
func (s *QuickUnionSet) Size() int {
return len(s.ids)
} | [
-0.7227885127067566,
0.7197577357292175,
0.04825499653816223,
-1.6114609241485596,
0.14006486535072327,
-0.4067199230194092,
0.3045274317264557,
-0.291090190410614,
0.797339916229248,
-1.1674070358276367,
-0.6969694495201111,
0.3576977252960205,
-0.4333036541938782,
-0.2535528540611267,
... |
func (s *QuickUnionSet) Clone() *QuickUnionSet {
new := NewQuickUnionSet(s.Size())
copy(new.ids, s.ids)
return new
} | [
0.07148221880197525,
-0.7975398302078247,
0.3982537090778351,
-0.4156331419944763,
-0.9315535426139832,
-0.11083222925662994,
-0.17806556820869446,
-1.3196898698806763,
1.0443305969238281,
-1.3711544275283813,
-0.17382250726222992,
0.3803330063819885,
-0.6097277402877808,
-1.03264248371124... |
func (s *QuickUnionSet) Root(element int) int {
parent := element
for s.ids[parent] != parent {
parent = s.ids[parent]
}
return parent
} | [
-0.15109701454639435,
0.6215808987617493,
0.39525875449180603,
-0.2654109299182892,
-0.8996359705924988,
-0.191590815782547,
0.5903574824333191,
-1.128135085105896,
1.0635854005813599,
-0.28366735577583313,
-0.2449595034122467,
1.0427405834197998,
-0.5855032205581665,
0.6262079477310181,
... |
func (s *QuickUnionSet) SetID(element, id int) {
s.ids[element] = id
} | [
-0.34923553466796875,
0.18916340172290802,
-0.007983819581568241,
-0.09242095798254013,
-0.02309594117105007,
0.5090463757514954,
-0.5962710976600647,
-0.04392162337899208,
1.3330508470535278,
-0.2081017941236496,
-1.0359601974487305,
0.2965919077396393,
-0.7208665609359741,
0.372476041316... |
func (s *QuickUnionSet) Union(a, b int) {
from := s.Root(a)
to := s.Root(b)
s.SetID(from, to)
} | [
-0.46128493547439575,
-0.07318229228258133,
0.08763520419597626,
-0.5316390991210938,
0.014632313512265682,
-0.4776414930820465,
0.2559174597263336,
-0.010383724234998226,
0.5844174027442932,
-0.42078733444213867,
-0.33879217505455017,
1.2347935438156128,
0.4509964883327484,
-0.75335460901... |
func (s *QuickUnionSet) IsConnected(a, b int) bool {
return s.Root(a) == s.Root(b)
} | [
-0.3543912172317505,
-0.2698451578617096,
0.41815775632858276,
0.35577771067619324,
-0.17900101840496063,
-0.8283135890960693,
-0.8474194407463074,
-0.9034618139266968,
0.4275638461112976,
0.005280333571135998,
-0.28454604744911194,
0.29298874735832214,
0.0888778492808342,
-0.5244643688201... |
func FileServer(r chi.Router, public string, static string) {
if strings.ContainsAny(public, "{}*") {
panic("FileServer does not permit URL parameters.")
}
// get absolute path to the specified static directory, returning an error if not found
root, _ := filepath.Abs(static)
if _, err := os.Stat(root); o... | [
-0.9218528866767883,
0.1532466858625412,
0.7650352120399475,
0.24834688007831573,
0.22762607038021088,
0.11273740977048874,
0.3810284435749054,
0.02751254290342331,
-0.6536566615104675,
0.08335956186056137,
0.15281488001346588,
0.18984085321426392,
-0.3203994631767273,
0.5247406959533691,
... |
func (r *ElasticJobReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
// Fetch the ElasticJob instance
elasticJob := &v1alpha1.ElasticJob{}
err := r.Get(context.TODO(), req.NamespacedName, elasticJob)
if err != nil {
if errors.IsNotFound(err) {
// Object not found, return. Created objects are auto... | [
-0.2347838431596756,
-0.3129868507385254,
0.9752423167228699,
0.23583978414535522,
0.7801514863967896,
0.12855294346809387,
-0.4521116614341736,
0.14744333922863007,
-0.27531898021698,
0.0037912235129624605,
0.6187405586242676,
-0.344210147857666,
-0.4503958225250244,
0.37171944975852966,
... |
func (r *ElasticJobReconciler) SetClusterSpec(job interface{}, podTemplate *corev1.PodTemplateSpec, rtype, index string) error {
return SetClusterSpecForPod(job, podTemplate)
} | [
-0.24238139390945435,
-0.11839846521615982,
0.23391751945018768,
-0.7095012664794922,
0.5653800964355469,
0.1469876766204834,
0.4141499698162079,
-0.10972411930561066,
-0.7798295021057129,
0.20023933053016663,
-0.18925873935222626,
0.5134214758872986,
-0.5508584380149841,
-0.46790516376495... |
func (c *Cookie) Set() error {
opt := map[string]interface{}{"cookie": c}
_, _, err := c.ws.wd.post("/session/%s/cookie", opt, c.ws.ID)
return err
} | [
-0.887816309928894,
-0.10197117179632187,
0.3398160934448242,
-0.325406551361084,
0.5673128366470337,
-0.2520919740200043,
-0.09018264710903168,
-0.7865073084831238,
-0.2490450143814087,
0.650459885597229,
-0.3476405441761017,
1.3932702541351318,
-0.42901280522346497,
0.4194280505180359,
... |
func (c *Cookie) Clear() error {
_, _, err := c.ws.wd.del("/session/%s/cookie/%s", c.ws.ID, c.Name)
return err
} | [
-0.24554891884326935,
0.08233374357223511,
0.25911009311676025,
-0.27008146047592163,
-0.6656590104103088,
0.2930070459842682,
0.06393807381391525,
-1.2338907718658447,
0.2378198653459549,
0.49479392170906067,
0.3697371184825897,
1.4049322605133057,
0.44877123832702637,
0.4427277147769928,... |
func GetMtu(name string) (int, error) {
link, err := netlink.LinkByName(name)
if err != nil {
return 0, err
}
return link.Attrs().MTU, nil
} | [
-1.290558099746704,
0.5633830428123474,
0.9765019416809082,
-0.32616186141967773,
-0.1507784128189087,
-1.1294832229614258,
0.22057482600212097,
0.1980300098657608,
0.19229277968406677,
-0.6143500804901123,
-0.5540964007377625,
-0.1313222497701645,
-1.1778665781021118,
0.754581868648529,
... |
func SetMtu(name string, mtu int) error {
link, err := netlink.LinkByName(name)
if err != nil {
return err
}
return netlink.LinkSetMTU(link, mtu)
} | [
-1.2302700281143188,
0.21036534011363983,
0.6596440076828003,
-0.5767458081245422,
-0.028923967853188515,
-0.6562657952308655,
-0.5245616436004639,
0.11787965148687363,
0.05727304518222809,
-0.5560087561607361,
-0.9423877000808716,
0.34926414489746094,
-0.7814134359359741,
0.40811660885810... |
func NewRPMStage(options *RPMStageOptions, inputs *RPMStageInputs) *Stage {
return &Stage{
Type: "org.osbuild.rpm",
Inputs: inputs,
Options: options,
}
} | [
-0.24265997111797333,
-1.1601393222808838,
0.19214753806591034,
0.07260540872812271,
-0.9700537919998169,
-0.15789172053337097,
-0.8263741731643677,
-0.5254683494567871,
0.12080864608287811,
-0.217851459980011,
-0.4130088686943054,
0.2313113957643509,
-1.545634150505066,
0.9945738315582275... |
func GetConfiguration() *Configuration {
return &Configuration{
Server: &Server{
Host: os.Getenv("SERVER_HOST"),
Port: os.Getenv("SERVER_PORT"),
},
Psql: &Psql{
DriverName: os.Getenv("PSQL_DRIVER_NAME"),
DBName: os.Getenv("PSQL_DB_NAME"),
User: os.Getenv("PSQL_USER"),
Host: os.... | [
-0.547807514667511,
-0.4868577718734741,
0.49647796154022217,
0.3688993453979492,
0.23974600434303284,
-0.31749391555786133,
0.008214504458010197,
-0.045825738459825516,
-0.9610962867736816,
0.48014917969703674,
-0.4907205402851105,
0.2658759355545044,
-0.4607565999031067,
0.98135143518447... |
func Equalf(t *testing.T, exp, act interface{}, msg string, v ...interface{}) {
if diff := diff(exp, act); diff != "" {
t.Fatalf(msg+": %v", append(v, diff)...)
}
} | [
0.9018752574920654,
-0.2699741721153259,
0.32363787293434143,
-0.5731460452079773,
0.8609517216682434,
0.25673726201057434,
0.9033399224281311,
0.5262578129768372,
0.23028112947940826,
0.83937668800354,
-0.5522282123565674,
0.6440429091453552,
0.5450270175933838,
0.8464215993881226,
-0.3... |
func diff(exp, act interface{}) string {
return cmp.Diff(exp, act, deepAllowUnexported(exp, act))
} | [
-0.04452897235751152,
-0.7102121114730835,
0.2763670086860657,
0.1567326933145523,
-1.17202889919281,
1.1116349697113037,
0.9076102375984192,
0.4409252107143402,
0.9024364352226257,
0.2799817621707916,
0.46118882298469543,
1.422959327697754,
0.4953744113445282,
-0.23067456483840942,
0.56... |
func ProcessOptions() *Parameter {
parameter := NewParameter()
opt.BoolVarLong(¶meter.verbose, "verbose", 'v',
"turns on verbose output mode, deafult off")
opt.BoolVarLong(¶meter.transcript, "transcript", 't',
"turns on transcript mode for statistics recording, deafult off")
opt.BoolVarLong(¶meter.... | [
0.7580175399780273,
-0.025703025981783867,
1.037800669670105,
-0.6668911576271057,
0.7127572894096375,
-0.6631581783294678,
0.4729478657245636,
-0.3852824866771698,
-0.41127896308898926,
0.5111114382743835,
-0.2607560157775879,
0.2806672155857086,
-0.09330949187278748,
0.3749035596847534,
... |
func sieve(limit int) []int {
primes := []int{}
list := make([]bool, limit)
list[0] = true
list[1] = true
for i, isprime := range list {
if !isprime {
primes = append(primes, i)
for j := i * i; j < limit; j += i {
list[j] = true
}
}
}
return primes
} | [
-1.2189233303070068,
0.6016174554824829,
0.9350539445877075,
0.21366436779499054,
0.34883537888526917,
-0.09057983756065369,
-0.04472806677222252,
0.8501498103141785,
0.5400749444961548,
1.2308135032653809,
-1.0035749673843384,
0.40198177099227905,
-1.399612545967102,
0.08659908920526505,
... |
func (a* ApiEngine) GenerateAPIRoutesForService() {
env.Output.WriteChDebug("(ApiEngine::GenerateAPIRoutesForService)")
a.AddRoute(ui.GenerateRoute("allservices","GET","/api/services",apiWriter(GetAllServices)))
a.AddRoute(ui.GenerateRoute("service","GET","/api/services/{service}",apiWriter(GetService)))
} | [
-0.6484273672103882,
0.0522226057946682,
0.36045747995376587,
-0.4687524437904358,
0.3505060374736786,
-0.25897905230522156,
-0.35115331411361694,
0.9288315176963806,
-0.16501295566558838,
-0.7120810747146606,
0.16028636693954468,
0.14665070176124573,
0.45724794268608093,
1.242086172103881... |
func (a *AmsiApiService) AppMobilityServiceByIdDELETE(ctx context.Context, appMobilityServiceId string) (*http.Response, error) {
var (
localVarHttpMethod = strings.ToUpper("Delete")
localVarPostBody interface{}
localVarFileName string
localVarFileBytes []byte
)
// create path and map variables
localV... | [
-0.5068868398666382,
-0.9040123224258423,
1.0227649211883545,
-0.14653804898262024,
-0.6572628617286682,
-0.5510400533676147,
-0.15310415625572205,
-0.4666341543197632,
0.06709828227758408,
0.40075886249542236,
0.40368691086769104,
0.4241856336593628,
-1.2413355112075806,
0.668451189994812... |
func (a *AmsiApiService) AppMobilityServiceByIdGET(ctx context.Context, appMobilityServiceId string) (RegistrationInfo, *http.Response, error) {
var (
localVarHttpMethod = strings.ToUpper("Get")
localVarPostBody interface{}
localVarFileName string
localVarFileBytes []byte
localVarReturnValue Registr... | [
-0.502810537815094,
-0.5470031499862671,
0.9612641334533691,
-0.7160621285438538,
-0.37254270911216736,
-0.6380333304405212,
-0.12811246514320374,
-0.39557400345802307,
-0.25976911187171936,
0.5321268439292908,
0.06094341352581978,
0.5004135966300964,
-0.8461750745773315,
0.762042999267578... |
func (a *AmsiApiService) AppMobilityServiceByIdPUT(ctx context.Context, body RegistrationInfo, appMobilityServiceId string) (RegistrationInfo, *http.Response, error) {
var (
localVarHttpMethod = strings.ToUpper("Put")
localVarPostBody interface{}
localVarFileName string
localVarFileBytes []byte
loca... | [
-0.9674072861671448,
-0.5816627740859985,
0.9659771919250488,
-0.5186673998832703,
-0.7078892588615417,
-0.2509538233280182,
0.1304219365119934,
-0.40136781334877014,
-0.21104902029037476,
0.44594332575798035,
-0.16121533513069153,
0.33071374893188477,
-0.936011016368866,
0.331142544746398... |
func (a *AmsiApiService) AppMobilityServicePOST(ctx context.Context, body RegistrationInfo) (RegistrationInfo, *http.Response, error) {
var (
localVarHttpMethod = strings.ToUpper("Post")
localVarPostBody interface{}
localVarFileName string
localVarFileBytes []byte
localVarReturnValue RegistrationInf... | [
-0.4752633273601532,
-0.4799048602581024,
1.057427167892456,
-0.022288402542471886,
-0.9945535659790039,
-0.28369250893592834,
-0.2608703672885895,
-0.14483590424060822,
-0.5884586572647095,
0.4363010823726654,
-0.16305696964263916,
0.07512854039669037,
-1.3202738761901855,
0.7269667983055... |
func (a *AmsiApiService) Mec011AppTerminationPOST(ctx context.Context, body AppTerminationNotification) (*http.Response, error) {
var (
localVarHttpMethod = strings.ToUpper("Post")
localVarPostBody interface{}
localVarFileName string
localVarFileBytes []byte
)
// create path and map variables
localVar... | [
0.07727890461683273,
-0.4183519780635834,
1.1005889177322388,
-0.0710618644952774,
-0.802006185054779,
0.23781338334083557,
-0.11078498512506485,
-0.3175228238105774,
-0.39777401089668274,
0.7982585430145264,
-0.06905712932348251,
-0.03893843665719032,
-0.5590034127235413,
0.52685564756393... |
func (a *AmsiApiService) SubByIdDELETE(ctx context.Context, subscriptionId string) (*http.Response, error) {
var (
localVarHttpMethod = strings.ToUpper("Delete")
localVarPostBody interface{}
localVarFileName string
localVarFileBytes []byte
)
// create path and map variables
localVarPath := a.client.cf... | [
0.06851164251565933,
-1.0395798683166504,
1.0885117053985596,
0.021324267610907555,
-0.7370153665542603,
-0.55743408203125,
0.0956139788031578,
-0.5402926802635193,
-0.006713150534778833,
0.5454932451248169,
-0.08130352944135666,
0.8121473789215088,
-0.990577220916748,
0.20944498479366302,... |
func (a *AmsiApiService) SubByIdGET(ctx context.Context, subscriptionId string) (InlineSubscription, *http.Response, error) {
var (
localVarHttpMethod = strings.ToUpper("Get")
localVarPostBody interface{}
localVarFileName string
localVarFileBytes []byte
localVarReturnValue InlineSubscription
)
//... | [
-0.2476457953453064,
-0.5313582420349121,
1.1357481479644775,
-0.743601381778717,
-0.8084095120429993,
-0.4750654399394989,
0.2328290194272995,
-0.5316405892372131,
-0.1269824504852295,
0.33753544092178345,
-0.06836791336536407,
0.8518503308296204,
-0.7719178795814514,
0.06746674329042435,... |
func (a *AmsiApiService) SubByIdPUT(ctx context.Context, body InlineSubscription, subscriptionId string) (InlineSubscription, *http.Response, error) {
var (
localVarHttpMethod = strings.ToUpper("Put")
localVarPostBody interface{}
localVarFileName string
localVarFileBytes []byte
localVarReturnValue I... | [
-0.16004188358783722,
-0.6694411635398865,
0.8995090126991272,
-0.7191617488861084,
-1.0062388181686401,
-0.28312504291534424,
0.49088823795318604,
-0.3032117784023285,
-0.26260605454444885,
0.5040279030799866,
-0.49837231636047363,
0.8482476472854614,
-1.1781729459762573,
-0.5660533308982... |
func (a *AmsiApiService) SubGET(ctx context.Context, subscriptionType string) (SubscriptionLinkList, *http.Response, error) {
var (
localVarHttpMethod = strings.ToUpper("Get")
localVarPostBody interface{}
localVarFileName string
localVarFileBytes []byte
localVarReturnValue SubscriptionLinkList
)
... | [
-0.49116697907447815,
-0.6632652282714844,
1.1797637939453125,
-0.18153277039527893,
-0.6137424111366272,
-0.5253971219062805,
-0.48010721802711487,
0.10408245027065277,
-0.42182210087776184,
0.15940231084823608,
0.3763549029827118,
1.1240569353103638,
-0.9059270620346069,
0.51503473520278... |
func (a *AmsiApiService) SubPOST(ctx context.Context, body InlineSubscription) (InlineSubscription, *http.Response, error) {
var (
localVarHttpMethod = strings.ToUpper("Post")
localVarPostBody interface{}
localVarFileName string
localVarFileBytes []byte
localVarReturnValue InlineSubscription
)
//... | [
0.24855759739875793,
-0.5049324035644531,
1.1031781435012817,
0.031203249469399452,
-1.116355299949646,
-0.4112233519554138,
-0.09087467938661575,
0.08030291646718979,
-0.14657695591449738,
0.27582401037216187,
-0.05223172903060913,
0.479988694190979,
-1.179390549659729,
-0.110084332525730... |
func GetGasSliceFromJsonFile(gasJsonFileAddr string) ([]GasSct, error) {
data, err := ioutil.ReadFile(gasJsonFileAddr)
if err != nil {
return nil, err
}
var gasSctSliceAux []GasSct
dec := json.NewDecoder(bytes.NewReader(data))
err = dec.Decode(&gasSctSliceAux)
rz.LogErrorFatal(err)
return gasSctSliceAux, n... | [
0.39248234033584595,
-1.1004847288131714,
0.5224067568778992,
0.03736058250069618,
-0.31086456775665283,
-0.3075093626976013,
-0.9764347672462463,
-0.49147769808769226,
-1.1678828001022339,
0.3510812520980835,
0.10803425312042236,
0.49951016902923584,
0.19418001174926758,
0.465623378753662... |
func (gc *GasComponent) IaddGasSnap() error {
consumed := gc.ISnap.CMeters - gc.Snaps[len(gc.Snaps)-1].CMeters
if consumed <= 0 {
return fmt.Errorf("Enter a value for cMeters bigger than %v", gc.ISnap.CMeters)
}
gc.ISnap.Consumed = consumed
total := float64(consumed) * gc.ISnap.CPrice
total, err := strconv.Pa... | [
-0.32739612460136414,
-0.23569776117801666,
0.9174107909202576,
-0.9852181077003479,
-0.0218499768525362,
0.22507740557193756,
-0.07731594145298004,
-0.48604118824005127,
0.3311411440372467,
0.3247382640838623,
0.3612222671508789,
-0.3260968029499054,
0.5240952372550964,
0.0633177012205123... |
func (gComp *GasComponent) Select(cMetersS string) int {
cMeters, err := strconv.ParseInt(cMetersS, 10, 64)
if err != nil {
return -1
}
var pos = -1
for i := len(gComp.Snaps) - 1; i >= 0; i-- {
if gComp.Snaps[i].CMeters == cMeters {
pos = i
break
} else {
pos = -1
}
}
if pos == -1 {
return ... | [
-0.8628600239753723,
-0.7955236434936523,
0.7138195633888245,
-0.8009017705917358,
-0.8654947876930237,
-0.6238068342208862,
0.6552627086639404,
-0.8945921659469604,
-0.13844862580299377,
-0.20005393028259277,
0.42108604311943054,
-0.5843379497528076,
-0.6863069534301758,
-0.62575781345367... |
func (gc *GasComponent) LastThreeYearsSlice() [][]GasSct {
var AllSvgSections map[int][]GasSct = make(map[int][]GasSct)
snaps := gc.Snaps
AllSvgSections = map[int][]GasSct{}
for _, gas := range snaps {
AllSvgSections[gas.Date.Year()] = append(AllSvgSections[gas.Date.Year()], gas)
}
year := time.Now().Year()
... | [
-0.051062922924757004,
-1.0149887800216675,
0.8495519161224365,
-0.8980035781860352,
-0.4639858901500702,
0.4547814726829529,
-0.7456133365631104,
0.09046626836061478,
0.3104749917984009,
0.9212700724601746,
0.2929587662220001,
-0.36779117584228516,
0.14730288088321686,
-0.3022043704986572... |
func (*CollectionConfig) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*CollectionConfig_StaticCollectionConfig)(nil),
}
} | [
-1.3009699583053589,
0.17193998396396637,
0.37843775749206543,
0.31331315636634827,
0.6652359366416931,
0.1643020361661911,
0.09041117131710052,
-0.6548787355422974,
0.5766769647598267,
0.4864386022090912,
-0.6907045245170593,
-0.13571198284626007,
0.37992873787879944,
1.0740002393722534,
... |
func (*CollectionPolicyConfig) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*CollectionPolicyConfig_SignaturePolicy)(nil),
}
} | [
-0.5192509293556213,
-0.027145661413669586,
0.380898654460907,
0.1416867971420288,
0.7330959439277649,
0.5419414639472961,
-0.009018871001899242,
-0.49391821026802063,
1.1156699657440186,
0.2808893322944641,
-0.7093353867530823,
-0.6450492739677429,
0.0521201491355896,
0.9890174269676208,
... |
func Constructor() Trie {
return Trie{}
} | [
0.6472830176353455,
-0.2369176596403122,
-0.26657453179359436,
0.8756429553031921,
-0.19444385170936584,
0.3500429391860962,
1.094781517982483,
1.2271250486373901,
-0.4620465338230133,
-0.5681378841400146,
-0.43559905886650085,
0.118797168135643,
-0.2689116895198822,
0.11216726899147034,
... |
func (this *Trie) Insert(word string) {
curr := this
for _, c := range word {
if curr.next[c-'a'] == nil {
curr.next[c-'a'] = &Trie{}
}
curr = curr.next[c-'a']
}
curr.isWord = true
} | [
-0.27042779326438904,
0.811034619808197,
0.3166997730731964,
-0.9506220817565918,
0.1527489870786667,
-0.03319205716252327,
1.053118109703064,
1.1982879638671875,
0.2941731810569763,
0.7472935914993286,
-0.38710927963256836,
0.18466387689113617,
-1.9828211069107056,
0.7569271326065063,
-... |
func (this *Trie) Search(word string) bool {
curr := this
for _, c := range word {
if curr.next[c-'a'] == nil {
return false
}
curr = curr.next[c-'a']
}
return curr.isWord
} | [
-0.5285480618476868,
0.3446923494338989,
0.37152448296546936,
-0.30936241149902344,
-0.41591677069664,
0.05249198153614998,
0.5334866642951965,
0.1865002065896988,
0.3275264799594879,
0.13406871259212494,
0.3372096121311188,
-0.10559772700071335,
-1.6954083442687988,
0.7205968499183655,
... |
func (this *Trie) StartsWith(prefix string) bool {
curr := this
for _, c := range prefix {
if curr.next[c-'a'] == nil {
return false
}
curr = curr.next[c-'a']
}
return true
} | [
-0.08309915661811829,
-0.4753977954387665,
0.5069223046302795,
-0.2833041846752167,
-0.5236955881118774,
-1.1937177181243896,
-0.38897427916526794,
0.29430481791496277,
0.6690285801887512,
0.3610613942146301,
-0.2308298647403717,
-0.010386577807366848,
-0.18910574913024902,
0.3737878799438... |
func fileExists(filename string) bool {
info, err := os.Stat(filename)
if os.IsNotExist(err) {
return false
}
return !info.IsDir()
} | [
-1.186729907989502,
-0.27171075344085693,
0.3192760646343231,
0.3646732568740845,
1.1367464065551758,
1.0287199020385742,
-0.017620887607336044,
0.43573111295700073,
-0.5707268714904785,
-0.7784857749938965,
0.16940775513648987,
-0.5798965096473694,
-0.046074278652668,
1.0208766460418701,
... |
func copyFilesToTemp(sourceDir string, tempDir string) []model.FileInfo {
var filesToCopy []model.FileInfo
file.CollectFiles(basicTestDir, &filesToCopy, basicCollectConfig)
//copy to temp dir
file.CopyFilesTo(tempDir, filesToCopy)
var copiedFiles []model.FileInfo
//find all the copied files
file.CollectFiles(tem... | [
0.014573582448065281,
-0.7390667796134949,
0.4083450436592102,
-0.12324788421392441,
0.33342427015304565,
0.7497725486755371,
0.5139790177345276,
-0.23738603293895721,
-0.32643014192581177,
0.927524745464325,
-0.3152589201927185,
-0.609706699848175,
-0.0683107003569603,
0.5393147468566895,... |
func (resource *AllergyIntolerance) MarshalJSON() ([]byte, error) {
resource.ResourceType = "AllergyIntolerance"
// Dereferencing the pointer to avoid infinite recursion.
// Passing in plain old x (a pointer to AllergyIntolerance), would cause this same
// MarshallJSON function to be called again
return json.Marsh... | [
0.39301598072052,
-0.27336087822914124,
0.2607091963291168,
-0.7421975135803223,
-0.4333139955997467,
-0.2846727967262268,
-0.13237908482551575,
0.20771396160125732,
0.9930300712585449,
-0.12166570872068405,
0.21853551268577576,
0.005204204469919205,
-0.6866942644119263,
0.2739920318126678... |
func InitContext(context *nuclio.Context) error {
var err error
var userData userData
// get configuration from env
tsdbAppenderPath := os.Getenv("INGEST_V3IO_TSDB_PATH")
kvAppenderPath := os.Getenv("INGEST_V3IO_KV_PATH")
anodotAppenderURL := os.Getenv("INGEST_ANODOT_URL")
anodotAppenderToken := os.Getenv("INGE... | [
0.15404312312602997,
0.2360212355852127,
0.7174299359321594,
-0.2266213595867157,
0.20480938255786896,
0.39986664056777954,
-0.3408324122428894,
-0.29948362708091736,
0.4105493724346161,
0.47926998138427734,
-0.5636057257652283,
0.17287681996822357,
0.5625033974647522,
0.872256875038147,
... |
func (m MessageID) size() int {
return INTEGER(m).size()
} | [
-0.23776878416538239,
0.6794394850730896,
0.10018511861562729,
-0.8104016780853271,
0.05391400679945946,
0.18905691802501678,
0.5256358981132507,
-0.8232477903366089,
0.004538091830909252,
-0.11936341971158981,
0.10292597860097885,
0.6397429704666138,
-1.6278139352798462,
1.135338068008422... |
func (s LDAPString) size() int {
return OCTETSTRING(s).size()
} | [
-0.36436495184898376,
-0.022817181423306465,
0.4305277168750763,
-2.0961766242980957,
-0.5178484320640564,
-0.044615812599658966,
-0.22533860802650452,
-0.5172983407974243,
1.1254075765609741,
-0.9295079112052917,
-0.22513294219970703,
0.6673954725265503,
-0.5001464486122131,
-1.1992721557... |
func (l LDAPOID) size() int {
return OCTETSTRING(l).size()
} | [
-0.6226315498352051,
0.5801065564155579,
0.43543145060539246,
-2.1185758113861084,
0.11705703288316727,
0.12134215980768204,
-0.5414141416549683,
-0.6298260688781738,
0.948679506778717,
-0.6983974575996399,
-1.0579702854156494,
-0.0012093438999727368,
-0.5025301575660706,
-0.30192917585372... |
func (l LDAPDN) size() int {
return LDAPString(l).size()
} | [
-0.7642760872840881,
0.6636106967926025,
0.3266526758670807,
-2.0283570289611816,
-0.34983810782432556,
-0.3864324986934662,
-0.3445427417755127,
-0.18487092852592468,
1.5600614547729492,
-0.7759658098220825,
-0.7612276077270508,
0.04779653251171112,
0.047172289341688156,
-0.51476222276687... |
func (r RelativeLDAPDN) size() int {
return LDAPString(r).size()
} | [
0.03705284371972084,
0.18636174499988556,
0.5367014408111572,
-2.014039993286133,
-0.4795205295085907,
0.09266961365938187,
0.10225848853588104,
-0.37690070271492004,
0.8988542556762695,
-0.6280645728111267,
-0.00016816456627566367,
0.3619353771209717,
-0.22358325123786926,
-0.983569562435... |
func (a AttributeDescription) size() int {
return LDAPString(a).size()
} | [
0.30449751019477844,
0.296767920255661,
0.4470861256122589,
-2.055471897125244,
-0.1909267008304596,
-0.30668994784355164,
0.2897813022136688,
0.6457428336143494,
0.8171136975288391,
-0.041631944477558136,
0.38937440514564514,
1.1397234201431274,
-0.34085673093795776,
-0.03457266837358475,... |
func (a AttributeValue) size() int {
return OCTETSTRING(a).size()
} | [
-0.3268263339996338,
0.4819679856300354,
0.3792196810245514,
-1.2688559293746948,
-0.8940338492393494,
0.3140878677368164,
0.4210413992404938,
0.010427556000649929,
-0.06568513810634613,
-0.5085994005203247,
-0.028897913172841072,
0.42052122950553894,
0.5507301092147827,
0.0617777071893215... |
func (a AssertionValue) size() int {
return OCTETSTRING(a).size()
} | [
-0.09708927571773529,
0.32570505142211914,
0.3545488119125366,
-0.8363655209541321,
-0.38641616702079773,
0.5606876015663147,
0.5738580226898193,
-0.0689852237701416,
0.40426674485206604,
-0.6477263569831848,
0.3505374491214752,
0.5064945220947266,
-0.5005838871002197,
0.35285788774490356,... |
func (r Referral) sizeTagged(tag int) (size int) {
for _, uri := range r {
size += uri.size()
}
size += sizeTagAndLength(tag, size)
return
} | [
0.20965906977653503,
0.5577330589294434,
0.5475077033042908,
-1.2008559703826904,
0.331650048494339,
-0.49305590987205505,
0.3292696177959442,
-0.0817473977804184,
0.8164016008377075,
0.35205620527267456,
-0.9155195355415344,
-0.3989297151565552,
-0.6043211817741394,
1.1887825727462769,
... |
func (u URI) size() int {
return LDAPString(u).size()
} | [
-0.9986355900764465,
0.7923058867454529,
0.3965539336204529,
-1.3778252601623535,
-0.20472154021263123,
-0.05025576055049896,
0.32754114270210266,
0.33320918679237366,
1.0063644647598267,
-1.1206997632980347,
0.22747360169887543,
0.35180702805519104,
-0.9035500288009644,
-0.811091959476471... |
func (c Controls) sizeTagged(tag int) (size int) {
for _, control := range c {
size += control.size()
}
size += sizeTagAndLength(tag, size)
return
} | [
0.42477867007255554,
0.14853690564632416,
0.5154331922531128,
-1.0767512321472168,
0.3796597123146057,
-0.7223031520843506,
0.4401727020740509,
-0.5195146799087524,
0.7231886386871338,
-0.28168588876724243,
-1.9281611442565918,
-1.022186517715454,
-0.20548219978809357,
1.1635831594467163,
... |
func (u UnbindRequest) size() (size int) {
size = sizeTagAndLength(TagUnbindRequest, 0)
return
} | [
-0.5311397314071655,
-0.12814156711101532,
0.5952360033988953,
-0.5083104968070984,
-0.6532200574874878,
-0.059026915580034256,
0.2897520065307617,
-0.2711266875267029,
0.08552329987287521,
-0.933140218257904,
-0.2838413417339325,
0.031136728823184967,
-0.7387117743492126,
0.80432057380676... |
func (a AttributeSelection) size() (size int) {
for _, selector := range a {
size += selector.size()
}
size += sizeTagAndLength(tagSequence, size)
return
} | [
-0.7668022513389587,
-0.061611998826265335,
0.30492639541625977,
-0.9172955751419067,
0.10599841922521591,
-0.7961964011192322,
0.8595174551010132,
0.3117876648902893,
0.6272974610328674,
0.338241845369339,
-0.27873170375823975,
-0.157865509390831,
0.21974536776542664,
0.29212215542793274,... |
func (f FilterOr) size() (size int) {
for _, filter := range f {
size += filter.size()
}
size += sizeTagAndLength(TagFilterOr, size)
return
} | [
-0.7806165218353271,
0.37993380427360535,
0.26839160919189453,
-0.17029401659965515,
0.018777118995785713,
-0.7900500297546387,
0.7563360929489136,
-0.171036034822464,
-0.20112471282482147,
-0.36492979526519775,
-0.4767557978630066,
-0.6201586127281189,
0.5340912342071533,
0.50094997882843... |
func (p PartialAttributeList) size() (size int) {
for _, att := range p {
size += att.size()
}
size += sizeTagAndLength(tagSequence, size)
return
} | [
-0.5604696869850159,
-0.1775536686182022,
0.3771541714668274,
-0.8523976802825928,
-0.5411524772644043,
0.005163928493857384,
0.41567274928092957,
0.4237426817417145,
0.11120215803384781,
0.1323607712984085,
-1.1762070655822754,
-0.46325230598449707,
-0.6608011722564697,
0.3907326757907867... |
func (s SearchResultReference) size() (size int) {
for _, uri := range s {
size += uri.size()
}
size += sizeTagAndLength(tagSequence, size)
return
} | [
-0.4641202986240387,
0.6353102326393127,
0.34361526370048523,
-1.0845410823822021,
0.29193198680877686,
-0.8815008997917175,
0.3181443214416504,
-0.24569347500801086,
0.4592811167240143,
-0.06902662664651871,
-0.4960648715496063,
-0.10123243182897568,
-1.002974033355713,
0.4676740467548370... |
func (s SearchResultDone) size() int {
return LDAPResult(s).sizeTagged(TagSearchResultDone)
} | [
-0.40937578678131104,
0.6155440211296082,
0.3528531491756439,
-0.8768502473831177,
-0.22257129848003387,
-0.4676189422607422,
0.7598755359649658,
-0.6512100696563721,
-0.2647243142127991,
-0.34776046872138977,
-1.3632575273513794,
-0.5613137483596802,
-0.6430231928825378,
0.387237846851348... |
func (m ModifyResponse) size() int {
return LDAPResult(m).sizeTagged(TagModifyResponse)
} | [
-0.5853659510612488,
0.0036703215446323156,
0.33791106939315796,
-1.76890230178833,
0.08847282826900482,
-1.1197305917739868,
-0.052205707877874374,
-0.13482123613357544,
1.203439474105835,
-0.8980270028114319,
-0.622948944568634,
-0.38528475165367126,
-0.7317137122154236,
0.08720380812883... |
func (a AttributeList) size() (size int) {
for _, att := range a {
size += att.size()
}
size += sizeTagAndLength(tagSequence, size)
return
} | [
-0.611138105392456,
0.33643078804016113,
0.3103233575820923,
-0.9085162281990051,
-0.27812063694000244,
-0.5134457349777222,
0.23987586796283722,
0.8383930325508118,
0.43571776151657104,
0.17402158677577972,
-0.6675941944122314,
-0.2514570355415344,
0.26711979508399963,
0.931355357170105,
... |
func (a AddResponse) size() int {
return LDAPResult(a).sizeTagged(TagAddResponse)
} | [
0.07066605240106583,
0.18527422845363617,
0.4517270028591156,
-1.7621314525604248,
0.21440084278583527,
-0.3913904130458832,
0.021809497848153114,
-0.5714876651763916,
1.4380950927734375,
-0.8692207336425781,
-0.7517642378807068,
-0.4181048572063446,
-0.5227019190788269,
-0.033156827092170... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.