text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (r *reader) GetDNSKeepNameserver() (on bool, err error) {
return r.envParams.GetOnOff("DNS_KEEP_NAMESERVER", libparams.Default("off"))
} | [
-1.3256642818450928,
0.39220330119132996,
0.6024301052093506,
-0.8491546511650085,
-0.7976107597351074,
1.1533986330032349,
-0.31798428297042847,
-1.137718677520752,
0.4132483899593353,
0.12954303622245789,
-1.3355176448822021,
0.11815927922725677,
-0.7432482242584229,
0.24051491916179657,... |
func NewTimer(prefix, name string, value time.Duration, unit string, tags map[string]string) *Timer {
return &Timer{
Prefix: prefix,
Name: name,
Value: value,
Tags: tags,
Unit: unit,
}
} | [
0.4271065890789032,
-0.5404758453369141,
0.20118559896945953,
-0.5255800485610962,
-1.136906623840332,
0.14204539358615875,
-1.6816519498825073,
-0.25164172053337097,
-0.5349307656288147,
-0.2806566059589386,
-0.12371732294559479,
0.3444754481315613,
0.11139072477817535,
0.8404631018638611... |
func (el *eventList) resizing(n int) {
if el.size == n {
el.increase()
}
} | [
-0.8985666036605835,
2.1640632152557373,
0.5169407725334167,
0.21023020148277283,
0.2649620473384857,
-0.47819384932518005,
0.0029068749863654375,
-0.10498737543821335,
0.380146861076355,
0.017347419634461403,
-1.0935702323913574,
-0.7552334070205688,
-0.032988034188747406,
0.9554493427276... |
func GenerateJWT() (string, error) {
log.Printf("Generating new JWT")
token := jwt.New(jwt.SigningMethodHS256)
claims := token.Claims.(jwt.MapClaims)
claims["authorized"] = true
claims["exp"] = time.Now().Add(time.Minute * 30).Unix()
tokenString, err := token.SignedString(signingKey)
if err != nil {
return... | [
-0.20956100523471832,
-0.5714403986930847,
0.5930664539337158,
0.081204354763031,
-0.9413407444953918,
-0.06711122393608093,
-0.9193713665008545,
-0.02124491147696972,
-0.07253308594226837,
-0.013862524181604385,
-0.052809882909059525,
0.1462285965681076,
0.22796282172203064,
-0.0321397930... |
func MustAuth(fn func(http.ResponseWriter, *http.Request)) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
log.Printf("Authenticating")
cookie, err := r.Cookie("jwt")
if err != nil {
log.Printf("No cookie found")
http.Error(w, "Unauthorized", 401)
return
}
tokenVal := cookie... | [
-0.6419545412063599,
-0.37918469309806824,
0.8498013615608215,
0.7550544142723083,
-0.822367250919342,
-0.34539365768432617,
0.13600565493106842,
-0.357099711894989,
0.1502804160118103,
0.5601309537887573,
0.13629812002182007,
0.22292524576187134,
0.5495112538337708,
-0.1597995162010193,
... |
func serverURLBase(r *http.Request) string {
// Use configuration file settings if we have them
configUrl := viper.GetString("UrlBase")
if configUrl != "" {
return configUrl
}
// Preferred scheme
ps := "http"
// Preferred host:port
ph := strings.TrimRight(r.Host, "/")
// Check for the IETF standard "Forward... | [
-0.5274490714073181,
-0.6427592039108276,
0.8476532101631165,
-0.5639025568962097,
0.10162286460399628,
-0.08034387975931168,
-0.3872462511062622,
-0.3548378348350525,
-0.6097003817558289,
0.811339259147644,
0.5006914138793945,
0.23305818438529968,
-0.8779083490371704,
0.5863727331161499,
... |
func Handler(ctx context.Context) (string, error) {
topicArn := os.Getenv("NotifyTopicArn")
return topicArn, nil
} | [
0.31191286444664,
-0.6690553426742554,
0.15209265053272247,
0.3991006314754486,
0.5042407512664795,
0.5546480417251587,
0.3435986638069153,
0.05962463468313217,
-0.3187602758407593,
-0.43337956070899963,
0.26504233479499817,
0.4752391576766968,
0.7581698298454285,
0.6423463225364685,
1.1... |
func (mt *Image) Validate() (err error) {
if mt.ID == "" {
err = goa.MergeErrors(err, goa.MissingAttributeError(`response`, "id"))
}
if mt.FullID == "" {
err = goa.MergeErrors(err, goa.MissingAttributeError(`response`, "fullId"))
}
if mt.Href == "" {
err = goa.MergeErrors(err, goa.MissingAttributeError(`resp... | [
-0.9039500951766968,
-0.36444005370140076,
0.43482500314712524,
-0.6119412183761597,
0.6252787113189697,
-0.023549148812890053,
-0.018966592848300934,
-0.8014734983444214,
-0.5270841121673584,
-0.28924649953842163,
0.6114751696586609,
-0.20277069509029388,
-0.040362387895584106,
1.35811579... |
func (mt *ImageLink) Validate() (err error) {
if mt.ID == "" {
err = goa.MergeErrors(err, goa.MissingAttributeError(`response`, "id"))
}
if mt.Href == "" {
err = goa.MergeErrors(err, goa.MissingAttributeError(`response`, "href"))
}
return
} | [
-1.0857890844345093,
-0.5710122585296631,
0.2341020703315735,
-0.8269203305244446,
0.7550110220909119,
-0.4502406716346741,
-0.05443892627954483,
-0.5789328813552856,
-0.24260222911834717,
-0.6316784024238586,
0.4415380358695984,
0.1349138468503952,
-0.3202316164970398,
0.9411949515342712,... |
func (mt *ImageTiny) Validate() (err error) {
if mt.ID == "" {
err = goa.MergeErrors(err, goa.MissingAttributeError(`response`, "id"))
}
if mt.Href == "" {
err = goa.MergeErrors(err, goa.MissingAttributeError(`response`, "href"))
}
return
} | [
-0.9665921330451965,
-0.6900684237480164,
0.48394954204559326,
-1.3324425220489502,
0.8389265537261963,
-0.5248910784721375,
-0.057216089218854904,
-1.410751461982727,
-0.14999920129776,
-0.170381560921669,
0.28804466128349304,
-0.1417759358882904,
-0.1205226257443428,
0.25099143385887146,... |
func (c *Client) DecodeImage(resp *http.Response) (*Image, error) {
var decoded Image
err := c.Decoder.Decode(&decoded, resp.Body, resp.Header.Get("Content-Type"))
return &decoded, err
} | [
-0.5618377923965454,
-0.9041666388511658,
0.150057852268219,
0.11317075043916702,
-0.22104451060295105,
-0.3385097086429596,
-0.7824733853340149,
-0.201312854886055,
-0.15779629349708557,
-0.16697776317596436,
-0.11467304080724716,
-0.39389005303382874,
-0.6849592328071594,
0.5986890792846... |
func (c *Client) DecodeImageLink(resp *http.Response) (*ImageLink, error) {
var decoded ImageLink
err := c.Decoder.Decode(&decoded, resp.Body, resp.Header.Get("Content-Type"))
return &decoded, err
} | [
-1.0141842365264893,
-0.9232137799263,
0.0961095541715622,
-0.11056578904390335,
-0.16000963747501373,
-1.0023231506347656,
-0.4653817117214203,
-0.17541034519672394,
0.21466387808322906,
-0.4645257294178009,
-0.9473596215248108,
0.42985114455223083,
-0.32192879915237427,
0.289844959974288... |
func (c *Client) DecodeImageTiny(resp *http.Response) (*ImageTiny, error) {
var decoded ImageTiny
err := c.Decoder.Decode(&decoded, resp.Body, resp.Header.Get("Content-Type"))
return &decoded, err
} | [
-1.2342612743377686,
-1.1133373975753784,
0.657871425151825,
-0.8931480050086975,
0.19714857637882233,
-1.3596793413162231,
-0.6078463792800903,
-1.0632686614990234,
-0.08542104065418243,
-0.6154837608337402,
-0.9555010795593262,
-0.1350092589855194,
-0.11978012323379517,
-0.14510695636272... |
func (mt ImageCollection) Validate() (err error) {
for _, e := range mt {
if e != nil {
if err2 := e.Validate(); err2 != nil {
err = goa.MergeErrors(err, err2)
}
}
}
return
} | [
-1.1124600172042847,
-0.2782980799674988,
0.5251851677894592,
0.1992841213941574,
0.8411075472831726,
-0.17562466859817505,
0.4592660665512085,
-0.7558448314666748,
-1.007781744003296,
0.12318921089172363,
0.6828051209449768,
-0.3734910786151886,
-0.014087178744375706,
1.9794042110443115,
... |
func (mt ImageLinkCollection) Validate() (err error) {
for _, e := range mt {
if e != nil {
if err2 := e.Validate(); err2 != nil {
err = goa.MergeErrors(err, err2)
}
}
}
return
} | [
-1.1720242500305176,
-0.5773497223854065,
0.46221932768821716,
-0.11554219573736191,
1.1649317741394043,
-0.23237498104572296,
0.4869837760925293,
-0.3887564539909363,
-0.6338998675346375,
-0.40730732679367065,
0.753471851348877,
-0.17603743076324463,
-0.49631690979003906,
1.51091492176055... |
func (mt ImageTinyCollection) Validate() (err error) {
for _, e := range mt {
if e != nil {
if err2 := e.Validate(); err2 != nil {
err = goa.MergeErrors(err, err2)
}
}
}
return
} | [
-1.0896583795547485,
-0.4599899649620056,
0.663237988948822,
-0.37585005164146423,
1.0254887342453003,
-0.48943451046943665,
0.6447404623031616,
-1.2059720754623413,
-0.673117458820343,
0.26928478479385376,
0.2566085457801819,
-0.5196232795715332,
-0.3740054965019226,
1.3474619388580322,
... |
func (c *Client) DecodeImageCollection(resp *http.Response) (ImageCollection, error) {
var decoded ImageCollection
err := c.Decoder.Decode(&decoded, resp.Body, resp.Header.Get("Content-Type"))
return decoded, err
} | [
-1.3371202945709229,
-1.0849220752716064,
0.3299521207809448,
-0.3880612552165985,
0.06675425916910172,
-1.0256422758102417,
-0.05666716769337654,
-0.21523594856262207,
0.009660454466938972,
-0.465959370136261,
-0.8028483986854553,
0.1341584473848343,
-0.5060082674026489,
0.803190171718597... |
func (c *Client) DecodeImageLinkCollection(resp *http.Response) (ImageLinkCollection, error) {
var decoded ImageLinkCollection
err := c.Decoder.Decode(&decoded, resp.Body, resp.Header.Get("Content-Type"))
return decoded, err
} | [
-1.3686450719833374,
-1.168203353881836,
0.16145136952400208,
-0.5038686990737915,
0.20329628884792328,
-0.8261289000511169,
-0.11566402018070221,
0.08357029408216476,
0.3402266204357147,
-0.5900024771690369,
-0.6758753657341003,
0.2592349946498871,
-0.7040368318557739,
0.5664476156234741,... |
func (c *Client) DecodeImageTinyCollection(resp *http.Response) (ImageTinyCollection, error) {
var decoded ImageTinyCollection
err := c.Decoder.Decode(&decoded, resp.Body, resp.Header.Get("Content-Type"))
return decoded, err
} | [
-1.2385059595108032,
-0.9969574809074402,
0.5406487584114075,
-0.5165815949440002,
0.33998730778694153,
-0.9631824493408203,
-0.0363500639796257,
-0.8353171348571777,
-0.04244520515203476,
-0.5010915398597717,
-1.060914158821106,
0.0452958382666111,
-0.5804460644721985,
0.2045949101448059,... |
func NewFactory() component.ExporterFactory {
return exporterhelper.NewFactory(
TypeStr,
createDefaultConfig,
exporterhelper.WithMetrics(createMetricsExporter),
)
} | [
0.734386146068573,
-0.14751362800598145,
0.07305017113685608,
1.0020474195480347,
0.3253871500492096,
-0.7723253965377808,
0.24435146152973175,
-0.0225124042481184,
-0.2473943829536438,
-0.20357683300971985,
0.5424804091453552,
-0.20341025292873383,
-0.004601281136274338,
0.153254508972167... |
func Expect(t cbtest.T, actual interface{}, matcher matcher.Matcher, labelAndArgs ...interface{}) {
t.Helper()
res := ExpectE(t, actual, matcher, labelAndArgs...)
if !res {
t.FailNow()
}
} | [
-0.07018094509840012,
-0.08075018227100372,
0.49281734228134155,
0.3242078125476837,
0.15108519792556763,
0.2762446403503418,
-0.2717401385307312,
0.1707393229007721,
-1.116646409034729,
0.2777845561504364,
0.49870073795318604,
-0.5242970585823059,
0.4829767644405365,
0.35095906257629395,
... |
func ExpectE(t cbtest.T, actual interface{}, matcher matcher.Matcher, labelAndArgs ...interface{}) bool {
t.Helper()
label := buildFailureLabel(labelAndArgs...)
match, err := matcher.Match(actual)
if err != nil {
t.Errorf("\n%s%s", label, err.Error())
return false
}
if !match {
t.Errorf("\n%s%s", label, ... | [
-0.5804045796394348,
-0.03471580892801285,
0.8818169236183167,
0.08204172551631927,
0.3130234181880951,
0.28901270031929016,
-0.1316433995962143,
0.35293617844581604,
-0.9920185804367065,
0.3288284242153168,
0.5678563714027405,
-0.8582375645637512,
-0.004054199438542128,
0.3944661319255829... |
func Refute(t cbtest.T, matcher matcher.Matcher, actual interface{}, labelAndArgs ...interface{}) {
t.Helper()
Expect(t, actual, to.Not(matcher), labelAndArgs...)
} | [
0.05750245228409767,
-0.16351738572120667,
0.6366979479789734,
-0.2037738412618637,
0.5919747948646545,
0.8554547429084778,
0.15750864148139954,
-0.14304475486278534,
-0.40122953057289124,
0.013140718452632427,
0.5235986709594727,
-0.16001610457897186,
0.014164373278617859,
0.4115931391716... |
func RefuteE(t cbtest.T, matcher matcher.Matcher, actual interface{}, labelAndArgs ...interface{}) bool {
t.Helper()
return ExpectE(t, actual, to.Not(matcher), labelAndArgs...)
} | [
-0.11042366921901703,
-0.005874001886695623,
0.7290604710578918,
0.10035409778356552,
0.44083312153816223,
0.6588054895401001,
0.24092309176921844,
-0.01575257070362568,
-1.1178786754608154,
0.4460066258907318,
0.5182619094848633,
-0.5870697498321533,
-0.11330931633710861,
0.51996272802352... |
func buildFailureLabel(labelAndArgs ...interface{}) string {
if len(labelAndArgs) == 0 {
return ""
}
return fmt.Sprintf(labelAndArgs[0].(string), labelAndArgs[1:]...) + "\n"
} | [
-0.5625812411308289,
-1.1508690118789673,
0.5251874923706055,
0.03186415508389473,
0.7917978167533875,
0.7233293056488037,
-0.7503098249435425,
0.26106691360473633,
0.08528362959623337,
-0.2786938548088074,
0.7501365542411804,
0.3552209138870239,
-0.3279551565647125,
-0.010070087388157845,... |
func (p *Provider) GetFavoriteAlbums(limit, offset int) (syla.FavoriteAlbumsResponse, error) {
var favoriteAlbums []AlbumInformation
albumsList, err := p.Client.CurrentUsersAlbumsOpt(&spotify.Options{
Limit: &limit,
Offset: &offset,
})
if err != nil {
log.Error("Error getting current albums")
return Favo... | [
-0.4325007498264313,
-0.4507836401462555,
0.6189637184143066,
0.021192673593759537,
0.3984775245189667,
0.6561923623085022,
-0.3735097348690033,
-0.6168256402015686,
0.23520322144031525,
0.3477918803691864,
-1.2475863695144653,
0.38101646304130554,
-0.3931927978992462,
-0.29648682475090027... |
func Test_sortPodList(t *testing.T) {
const clusterName = "sortPodListCluster"
cluster := vectorizedv1alpha1.Cluster{ObjectMeta: metav1.ObjectMeta{Name: clusterName}}
emptyPodList := corev1.PodList{
Items: []corev1.Pod{},
}
//nolint:dupl // not duplicate
orderedPodList := corev1.PodList{
Items: []corev1.Pod... | [
-0.5831334590911865,
-0.6379024982452393,
1.0816525220870972,
-0.4613422751426697,
0.5805623531341553,
0.21976633369922638,
0.5102315545082092,
-0.8165430426597595,
0.45382562279701233,
0.25875362753868103,
-1.0521279573440552,
0.36492395401000977,
0.4152863323688507,
-1.189969778060913,
... |
func (ar *Router) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// Reroute to our internal implementation.
ar.Middleware.ServeHTTP(w, r)
} | [
-0.13945287466049194,
0.0016471634153276682,
0.2788541615009308,
0.40614551305770874,
-0.0034598452039062977,
0.1127379834651947,
0.49724510312080383,
-0.3043098449707031,
-0.08088763058185577,
0.7620384097099304,
0.5022888779640198,
0.3886086642742157,
0.5576462149620056,
0.65645956993103... |
func (msg *Any) GetType() string {
return AnyTypeName
} | [
0.3321104049682617,
-0.20549006760120392,
0.32417261600494385,
0.7847670316696167,
0.725322425365448,
-0.2527438700199127,
0.04149371013045311,
-0.7817054986953735,
-0.07989118993282318,
-0.6688128113746643,
0.0957653746008873,
0.24344128370285034,
-1.4388587474822998,
1.6784002780914307,
... |
func (msg *Any) Encode(representation msgs.Representation) (results []byte) {
switch representation {
case msgs.JSONRepresentation:
var err error
results, err = json.Marshal(*msg)
if err != nil {
panic(err)
}
default:
panic(fmt.Errorf("Encode error: unknown representational format '%s'", representation)... | [
-0.9147729873657227,
0.1821003556251526,
0.524462878704071,
0.36231529712677,
0.51304030418396,
-0.7861877083778381,
-0.3967229425907135,
-0.43172863125801086,
-0.13922026753425598,
0.13478964567184448,
0.7362159490585327,
0.2598950266838074,
-0.9812599420547485,
0.9131131172180176,
0.65... |
func (msg *Any) Decode(representation msgs.Representation, content []byte) error {
switch representation {
case msgs.JSONRepresentation:
return json.Unmarshal(content, msg)
default:
panic(fmt.Errorf("Decode error: unknown representational format '%s'", representation))
}
} | [
-0.039752982556819916,
-0.5104092955589294,
0.48817822337150574,
-0.23919440805912018,
-0.07552327960729599,
-0.47479870915412903,
-0.7605164051055908,
-0.09695374965667725,
-0.5395755767822266,
0.03130447492003441,
0.7562916874885559,
0.08134245872497559,
-1.1581203937530518,
0.2981398403... |
func (msg *Any) JSON() []byte {
jsonBytes, err := json.Marshal(*msg)
if err != nil {
panic(err)
}
return jsonBytes
} | [
0.042616650462150574,
-0.22676169872283936,
0.41047731041908264,
-0.2992404103279114,
-0.1379287987947464,
-0.4314712882041931,
-0.5399485230445862,
-0.9303027987480164,
0.16202357411384583,
-0.7223353981971741,
0.0563834086060524,
1.4754502773284912,
-0.9201889038085938,
1.204475164413452... |
func (msg *Any) String() string {
jsonBytes, err := json.Marshal(*msg)
if err != nil {
panic(err)
}
return string(jsonBytes)
} | [
0.32229650020599365,
-0.5623367428779602,
0.10884814709424973,
-0.5373469591140747,
-0.4849538505077362,
0.23000496625900269,
-0.45025578141212463,
-1.3378612995147705,
-0.3867969512939453,
-0.10894507169723511,
0.3727368712425232,
0.952187716960907,
-0.9693421125411987,
0.4447550773620605... |
func (msg *Any) ParseJSON(jsonBytes []byte) error {
return json.Unmarshal(jsonBytes, msg)
} | [
-0.5688652992248535,
-0.3632054924964905,
0.3929474353790283,
-0.8905043005943298,
-0.2896856665611267,
-0.3530966341495514,
-0.10503937304019928,
-0.11138255894184113,
0.39659759402275085,
-0.31708306074142456,
-0.27928388118743896,
0.36540326476097107,
-0.8440492153167725,
1.407110333442... |
func NewAnyMessage(data map[string]interface{}) msgs.Message {
var msg Any = data
return &msg
} | [
-0.10626935958862305,
-0.6274685859680176,
0.22850054502487183,
-0.5320354700088501,
-1.3410038948059082,
-0.8789792060852051,
-1.2172632217407227,
-0.222367063164711,
-0.10574650764465332,
-0.6908607482910156,
-0.26280954480171204,
0.20356401801109314,
-1.5321975946426392,
1.4647839069366... |
func (p Payload) GetInt(key string) (int, error) {
value, err := p.Get(key)
if err != nil {
return 0, err
}
if value, ok := value.(int); ok {
return value, nil
}
return 0, fmt.Errorf("Value with key '%s' not an int", key)
} | [
-0.3365534842014313,
0.5671046376228333,
0.6560760140419006,
-0.5435973405838013,
-0.5433068871498108,
-0.6037732362747192,
-0.8575530648231506,
-0.96523517370224,
-0.8072362542152405,
0.7029598355293274,
0.5820855498313904,
0.017398303374648094,
-0.7832116484642029,
0.27107739448547363,
... |
func (p Payload) GetInt8(key string) (int8, error) {
value, err := p.Get(key)
if err != nil {
return 0, err
}
if value, ok := value.(int8); ok {
return value, nil
}
return 0, fmt.Errorf("Value with key '%s' not an int8", key)
} | [
-0.7356717586517334,
0.6770698428153992,
0.15822482109069824,
0.505773663520813,
-0.06358996033668518,
-0.30684179067611694,
-0.4351978898048401,
-0.4210071265697479,
0.3383854627609253,
0.8753766417503357,
0.7709119915962219,
0.5716812014579773,
-1.8328801393508911,
0.4023935794830322,
... |
func (p Payload) GetInt16(key string) (int16, error) {
value, err := p.Get(key)
if err != nil {
return 0, err
}
if value, ok := value.(int16); ok {
return value, nil
}
return 0, fmt.Errorf("Value with key '%s' not an int16", key)
} | [
0.14673717319965363,
0.5421173572540283,
0.4451514482498169,
-0.105211041867733,
0.36679258942604065,
-0.6412718296051025,
-0.7392143607139587,
-0.6251555681228638,
-0.2576562762260437,
0.44201675057411194,
0.3454011380672455,
0.41404011845588684,
-0.8594405651092529,
0.16515684127807617,
... |
func (p Payload) GetInt32(key string) (int32, error) {
value, err := p.Get(key)
if err != nil {
return 0, err
}
if value, ok := value.(int32); ok {
return value, nil
}
return 0, fmt.Errorf("Value with key '%s' not an int32", key)
} | [
-0.12086111307144165,
0.7196673154830933,
0.4596131145954132,
-0.24060019850730896,
-0.1702221781015396,
0.05260210484266281,
-0.8967485427856445,
-1.2788729667663574,
-0.36189430952072144,
0.2845560610294342,
0.5639777183532715,
0.39547199010849,
-0.8166767954826355,
0.46284154057502747,
... |
func (p Payload) GetInt64(key string) (int64, error) {
value, err := p.Get(key)
if err != nil {
return 0, err
}
if value, ok := value.(int64); ok {
return value, nil
}
return 0, fmt.Errorf("Value with key '%s' not an int64", key)
} | [
-1.0617672204971313,
0.5393193364143372,
0.515621542930603,
0.6802717447280884,
0.28081995248794556,
-0.831628143787384,
-0.6610692739486694,
-0.5304469466209412,
-0.2816527485847473,
0.45323994755744934,
0.9417460560798645,
-0.15886741876602173,
-0.9498304128646851,
0.7396126389503479,
... |
func (p Payload) GetUint(key string) (uint, error) {
value, err := p.Get(key)
if err != nil {
return 0, err
}
if value, ok := value.(uint); ok {
return value, nil
}
return 0, fmt.Errorf("Value with key '%s' not a uint", key)
} | [
-0.6998297572135925,
0.2601439952850342,
0.7822440266609192,
-0.48024576902389526,
-0.4650650918483734,
-0.5049355030059814,
-0.7945312261581421,
-0.23210977017879486,
0.06802541762590408,
-0.34654825925827026,
0.4785383939743042,
0.3082932233810425,
-0.22766461968421936,
0.180408969521522... |
func (p Payload) GetUint8(key string) (uint8, error) {
value, err := p.Get(key)
if err != nil {
return 0, err
}
if value, ok := value.(uint8); ok {
return value, nil
}
return 0, fmt.Errorf("Value with key '%s' not a uint8", key)
} | [
-0.8820496201515198,
0.4568277597427368,
0.24291130900382996,
0.1646236628293991,
-0.24438904225826263,
-0.32786035537719727,
-0.5806048512458801,
0.12454120069742203,
0.40900006890296936,
0.5299128890037537,
0.7700939774513245,
0.3766574561595917,
-0.7561945915222168,
0.5776071548461914,
... |
func (p Payload) GetUint16(key string) (uint16, error) {
value, err := p.Get(key)
if err != nil {
return 0, err
}
if value, ok := value.(uint16); ok {
return value, nil
}
return 0, fmt.Errorf("Value with key '%s' not a uint16", key)
} | [
-0.11158962547779083,
0.5927903056144714,
0.48601824045181274,
-0.30169251561164856,
0.2871425151824951,
-0.6372220516204834,
-0.9231897592544556,
-0.068046934902668,
-0.08842148631811142,
0.17181286215782166,
0.3777383863925934,
0.08212123811244965,
-0.13160324096679688,
0.257634848356246... |
func (p Payload) GetUint32(key string) (uint32, error) {
value, err := p.Get(key)
if err != nil {
return 0, err
}
if value, ok := value.(uint32); ok {
return value, nil
}
return 0, fmt.Errorf("Value with key '%s' not a uint32", key)
} | [
-0.4416830241680145,
0.7055986523628235,
0.5001944303512573,
-0.453971266746521,
-0.29947561025619507,
0.011771481484174728,
-1.0232585668563843,
-0.6731488704681396,
-0.23905059695243835,
0.0718080922961235,
0.6609200835227966,
0.17149126529693604,
-0.10521319508552551,
0.533400297164917,... |
func (p Payload) GetUint64(key string) (uint64, error) {
value, err := p.Get(key)
if err != nil {
return 0, err
}
if value, ok := value.(uint64); ok {
return value, nil
}
return 0, fmt.Errorf("Value with key '%s' not a uint64", key)
} | [
-1.165906548500061,
0.5141927003860474,
0.5742631554603577,
0.4526139795780182,
0.22656068205833435,
-0.7449537515640259,
-0.7076808214187622,
-0.03517534211277962,
-0.11885816603899002,
-0.05087806284427643,
1.0182980298995972,
-0.3114014267921448,
-0.2351764291524887,
0.7295225262641907,... |
func (p Payload) GetFloat32(key string) (float32, error) {
value, err := p.Get(key)
if err != nil {
return 0, err
}
if value, ok := value.(float32); ok {
return value, nil
}
return 0, fmt.Errorf("Value with key '%s' not a float32", key)
} | [
0.1494436264038086,
0.9228987097740173,
0.48968198895454407,
-0.14373618364334106,
-0.11375097930431366,
-0.08722735941410065,
-1.0058128833770752,
-1.2286354303359985,
-0.43943464756011963,
-0.1289510577917099,
0.4621164798736572,
0.5820742249488831,
-0.3945118486881256,
0.954077601432800... |
func (p Payload) GetFloat64(key string) (float64, error) {
value, err := p.Get(key)
if err != nil {
return 0, err
}
if value, ok := value.(float64); ok {
return value, nil
}
return 0, fmt.Errorf("Value with key '%s' not a float64", key)
} | [
-0.8150801658630371,
0.6364111304283142,
0.5142630338668823,
0.7111572623252869,
0.5814608335494995,
-0.9494611024856567,
-0.8006368279457092,
-0.4979303181171417,
-0.37863102555274963,
-0.17879663407802582,
0.8682364225387573,
-0.12027739733457565,
-0.5503048896789551,
1.0046902894973755,... |
func (p Payload) GetByte(key string) (byte, error) {
value, err := p.Get(key)
if err != nil {
return 0, err
}
if value, ok := value.(byte); ok {
return value, nil
}
return 0, fmt.Errorf("Value with key '%s' not a byte", key)
} | [
-0.28033319115638733,
1.1876550912857056,
0.6253103613853455,
0.752018392086029,
0.1821964979171753,
-0.6367539167404175,
-0.5551580190658569,
-0.7742213010787964,
-0.0641464814543724,
0.015134829096496105,
1.1768138408660889,
0.41142189502716064,
-1.1621707677841187,
0.6601327657699585,
... |
func (p Payload) GetString(key string) (string, error) {
value, err := p.Get(key)
if err != nil {
return "", err
}
if value, ok := value.(string); ok {
return value, nil
}
return "", fmt.Errorf("Value with key '%s' not a string", key)
} | [
-0.38598132133483887,
0.2411026805639267,
0.35525280237197876,
-0.0639905035495758,
-0.6057615876197815,
-0.4631333649158478,
-0.8437945246696472,
-1.0454198122024536,
0.04025540500879288,
0.6630672812461853,
0.9643741250038147,
0.2983117401599884,
-0.160112202167511,
0.1606369912624359,
... |
func (p Payload) GetBool(key string) (bool, error) {
value, err := p.Get(key)
if err != nil {
return false, err
}
if value, ok := value.(bool); ok {
return value, nil
}
return false, fmt.Errorf("Value with key '%s' not a bool", key)
} | [
-0.34161287546157837,
0.6114922165870667,
0.7204055190086365,
0.5788857340812683,
-0.06500702351331711,
0.0892825797200203,
-0.6490302681922913,
-0.5163649916648865,
-0.22090604901313782,
1.0145227909088135,
0.25993335247039795,
0.45281168818473816,
0.13159646093845367,
-0.24079529941082,
... |
func (p Payload) GetDuration(key string) (time.Duration, error) {
value, err := p.Get(key)
if err != nil {
return 0, err
}
if value, ok := value.(time.Duration); ok {
return value, nil
}
return 0, fmt.Errorf("Value with key '%s' not a time.Duration", key)
} | [
-0.6187177896499634,
0.35198482871055603,
0.46997976303100586,
0.41232264041900635,
-0.17300575971603394,
-0.45496058464050293,
-0.23890170454978943,
-0.5774425268173218,
0.23787686228752136,
1.4982112646102905,
0.35111111402511597,
-0.33478307723999023,
-0.10445582866668701,
1.00832021236... |
func (p Payload) GetTime(key string) (time.Time, error) {
value, err := p.Get(key)
if err != nil {
return time.Time{}, err
}
if value, ok := value.(time.Time); ok {
return value, nil
}
return time.Time{}, fmt.Errorf("Value with key '%s' not a time.Time", key)
} | [
-0.4934113323688507,
0.6188859939575195,
0.7972029447555542,
0.3931187391281128,
-0.13274364173412323,
-0.4995233416557312,
-0.9899623394012451,
-1.0230740308761597,
0.11028250306844711,
1.3752726316452026,
0.2727837860584259,
-0.6058840751647949,
-0.6009321808815002,
1.0271809101104736,
... |
func (i *IpldRawNode) RawData() []byte {
return i.rawdata
} | [
-0.4311252236366272,
0.5868373513221741,
0.17317640781402588,
-0.8696048259735107,
-0.3258857727050781,
1.2009949684143066,
-0.2934853136539459,
-0.06591920554637909,
0.3821490406990051,
-0.8072407841682434,
-0.5636503100395203,
0.8693697452545166,
-0.12066753953695297,
-0.6296207308769226... |
func (i *IpldRawNode) Cid() *cid.Cid {
return i.cid
} | [
1.0787280797958374,
-0.9356652498245239,
0.4599275588989258,
0.04937031865119934,
-0.6466142535209656,
1.366210699081421,
0.5553343892097473,
0.03526873514056206,
0.29622477293014526,
-1.2381200790405273,
0.8062534332275391,
0.052884697914123535,
-0.4815785586833954,
-1.3656985759735107,
... |
func (i *IpldRawNode) String() string {
return fmt.Sprintf("<IpldRawNode %s>", i.cid)
} | [
-0.15669280290603638,
0.21494241058826447,
0.2379646599292755,
-1.2193615436553955,
-0.5728597044944763,
0.884525716304779,
-0.3456616699695587,
-0.6874257326126099,
0.1074734479188919,
-0.42901602387428284,
0.1817908138036728,
0.8105112314224243,
-0.34604641795158386,
-1.3827568292617798,... |
func (i *IpldRawNode) Loggable() map[string]interface{} {
return map[string]interface{}{
"type": "ipld-raw-node",
}
} | [
-1.6183700561523438,
0.5106683969497681,
0.7001933455467224,
-1.3197804689407349,
-0.6635398864746094,
-0.15126898884773254,
-0.44476616382598877,
0.27753371000289917,
-0.5425511598587036,
-0.12126709520816803,
-0.6729900240898132,
0.6436032056808472,
0.411632776260376,
-0.1896048039197921... |
func (i *IpldRawNode) Resolve(p []string) (interface{}, []string, error) {
return nil, nil, nil
} | [
-1.2670973539352417,
0.24223247170448303,
0.6267679333686829,
-0.7460584044456482,
0.107491634786129,
-0.09917497634887695,
-1.1019998788833618,
0.4090607762336731,
-0.1939862221479416,
-0.627124011516571,
-0.7316970229148865,
-0.0018616914749145508,
-0.8847647905349731,
0.0575496442615985... |
func (i *IpldRawNode) Tree(p string, depth int) []string {
return nil
} | [
-0.7350649833679199,
0.23533955216407776,
0.2036360651254654,
-1.0619969367980957,
-1.092816710472107,
0.9872561097145081,
-0.7677664756774902,
-0.06036483868956566,
0.3737996816635132,
-0.9562098979949951,
0.06996653974056244,
0.6004027724266052,
-0.9780533313751221,
0.07830008119344711,
... |
func (i *IpldRawNode) ResolveLink(p []string) (*node.Link, []string, error) {
return nil, nil, nil
} | [
-1.358155608177185,
0.6001393795013428,
0.4206656217575073,
0.11731390655040741,
0.9883741140365601,
-0.1620015650987625,
-0.06254738569259644,
1.056843876838684,
-0.30671146512031555,
-1.4335930347442627,
-0.21278123557567596,
-0.015738390386104584,
-0.5365955829620361,
0.2124176919460296... |
func (i *IpldRawNode) Copy() node.Node {
return nil
} | [
-0.6231188774108887,
0.20624534785747528,
0.3381454348564148,
-0.43125438690185547,
-1.5219241380691528,
1.5853327512741089,
0.7182081341743469,
0.06257975101470947,
0.19863232970237732,
-0.6856562495231628,
-0.025678668171167374,
0.9491040706634521,
-0.5492465496063232,
-0.753217637538909... |
func (i *IpldRawNode) Links() []*node.Link {
return nil
} | [
-0.9835618138313293,
0.6297217011451721,
0.20383140444755554,
-0.5833825469017029,
0.4134237468242645,
0.7967826128005981,
-0.15294437110424042,
0.3525841534137726,
0.07628173381090164,
-2.320343017578125,
-0.27157869935035706,
0.754666805267334,
-0.6549484133720398,
-0.0993197113275528,
... |
func (i *IpldRawNode) Stat() (*node.NodeStat, error) {
return nil, nil
} | [
-0.47073158621788025,
0.3821827173233032,
0.23454952239990234,
-0.7896503806114197,
-0.3303645849227905,
0.43545281887054443,
0.6462361812591553,
-0.07324831932783127,
0.11914221197366714,
-1.3724793195724487,
-0.7662438154220581,
0.7791091203689575,
-0.24437315762043,
0.11916548013687134,... |
func (i *IpldRawNode) Size() (uint64, error) {
return 0, nil
} | [
-1.1033989191055298,
1.1403931379318237,
0.4906696677207947,
-0.7726055979728699,
-0.516547679901123,
0.18465349078178406,
0.75309157371521,
0.2099565863609314,
0.26121750473976135,
-0.8072117567062378,
-0.40661564469337463,
0.40829259157180786,
-0.7899516224861145,
-0.09616751223802567,
... |
func Walk(desc *Description, cb func(n Node)) {
for _, n := range desc.Nodes {
WalkNode(n, cb)
}
} | [
-0.3379148840904236,
1.3897088766098022,
0.28344354033470154,
-0.3103143870830536,
0.8863832354545593,
0.6601418852806091,
0.5602124333381653,
0.41444340348243713,
-0.4395795464515686,
-0.4026196599006653,
0.011660194955766201,
0.968551754951477,
0.25040751695632935,
0.9991989135742188,
... |
func (v PlayerProperty) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoMedia(&w, v)
return w.Buffer.BuildBytes(), w.Error
} | [
-0.5720993280410767,
-0.739602267742157,
0.28374403715133667,
0.15140292048454285,
-0.4727949798107147,
-0.5712206959724426,
0.5654377341270447,
-0.2523835599422455,
-0.07377196848392487,
0.2971120774745941,
-0.36112117767333984,
0.5506194829940796,
-1.0507854223251343,
-0.2294670194387436... |
func (v PlayerProperty) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoMedia(w, v)
} | [
-0.6851831078529358,
-0.6052356958389282,
0.3210364580154419,
-0.4009191691875458,
-0.21058234572410583,
-0.8944275975227356,
0.390786737203598,
-0.8281581401824951,
0.21485057473182678,
0.20701716840267181,
-0.6656119227409363,
0.5007736682891846,
-0.4262995421886444,
0.4842018485069275,
... |
func (v *PlayerProperty) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoMedia(&r, v)
return r.Error()
} | [
-0.3597925305366516,
-0.4685293734073639,
0.4518260657787323,
-0.9920162558555603,
-0.8744006156921387,
-0.37897905707359314,
0.2322637289762497,
-0.007712895981967449,
-0.010202865116298199,
0.4465724527835846,
0.13738402724266052,
0.3092409372329712,
-0.9630312919616699,
-0.4571475684642... |
func (v *PlayerProperty) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoMedia(l, v)
} | [
-0.10768045485019684,
-0.5359911918640137,
0.47894883155822754,
-0.9628903865814209,
-0.4596831798553467,
-1.3135755062103271,
0.49191316962242126,
-0.08648717403411865,
0.3241210877895355,
0.3043743968009949,
-0.5170180201530457,
0.38003841042518616,
-0.49615228176116943,
0.12736824154853... |
func (v PlayerEvent) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoMedia1(&w, v)
return w.Buffer.BuildBytes(), w.Error
} | [
-0.28659194707870483,
-0.8621677756309509,
0.26243698596954346,
0.23328816890716553,
-0.5037971138954163,
-0.5380693078041077,
0.5530326962471008,
0.23746605217456818,
0.22022628784179688,
0.11615890264511108,
-0.6383308172225952,
0.7360610961914062,
-0.8610878586769104,
0.4449851512908935... |
func (v PlayerEvent) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoMedia1(w, v)
} | [
-0.41470953822135925,
-0.6576250791549683,
0.3556736707687378,
-0.35629644989967346,
-0.2816259264945984,
-0.8429252505302429,
0.3368498682975769,
-0.4244152307510376,
0.449232280254364,
0.07859425991773605,
-0.922369658946991,
0.6173290014266968,
-0.27626875042915344,
0.9846118092536926,
... |
func (v *PlayerEvent) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoMedia1(&r, v)
return r.Error()
} | [
-0.20270220935344696,
-0.5615348219871521,
0.46370580792427063,
-0.9448657035827637,
-0.9371055364608765,
-0.2608553469181061,
0.22282713651657104,
0.4660714864730835,
0.16260026395320892,
0.1737569123506546,
-0.16187690198421478,
0.4740849733352661,
-0.9289373755455017,
0.1358531564474105... |
func (v *PlayerEvent) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoMedia1(l, v)
} | [
0.11562754213809967,
-0.6176776885986328,
0.4799492061138153,
-0.9183586835861206,
-0.4847865104675293,
-1.3163797855377197,
0.48757198452949524,
0.3885536193847656,
0.49171313643455505,
0.15010660886764526,
-0.6942631006240845,
0.4932122528553009,
-0.3711547553539276,
0.607100784778595,
... |
func (v EventPlayersCreated) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoMedia2(&w, v)
return w.Buffer.BuildBytes(), w.Error
} | [
0.04421921446919441,
-0.5463193655014038,
0.20908650755882263,
-0.014038728550076485,
0.11676151305437088,
-0.6088123321533203,
0.2026222050189972,
0.13646525144577026,
-0.23342962563037872,
0.2655651271343231,
-0.6697407364845276,
0.7709464430809021,
-0.19463197886943817,
0.53459435701370... |
func (v EventPlayersCreated) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoMedia2(w, v)
} | [
-0.06428316235542297,
-0.5239013433456421,
0.24090826511383057,
-0.5035417079925537,
0.19245515763759613,
-0.9067133665084839,
0.029741352424025536,
-0.5509375929832458,
-0.05141853541135788,
0.2516389787197113,
-0.9867033362388611,
0.8190677762031555,
0.11104094237089157,
1.06681025028228... |
func (v *EventPlayersCreated) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoMedia2(&r, v)
return r.Error()
} | [
-0.02221876010298729,
-0.2707539498806,
0.37873339653015137,
-1.054593801498413,
-0.28911471366882324,
-0.32807397842407227,
-0.06448942422866821,
0.24875295162200928,
-0.3775225281715393,
0.3277028799057007,
-0.2799120843410492,
0.29026398062705994,
-0.26931631565093994,
0.127628028392791... |
func (v *EventPlayersCreated) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoMedia2(l, v)
} | [
0.3516656160354614,
-0.42383185029029846,
0.37540894746780396,
-1.081996202468872,
0.06460047513246536,
-1.3492175340652466,
0.18162325024604797,
0.1658782660961151,
-0.10494082421064377,
0.2876874506473541,
-0.8158676028251648,
0.4239254891872406,
0.00586260762065649,
0.5321707725524902,
... |
func (v EventPlayerPropertiesChanged) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoMedia3(&w, v)
return w.Buffer.BuildBytes(), w.Error
} | [
-0.19823433458805084,
-0.8829432725906372,
0.319315642118454,
-0.22311413288116455,
-0.2953176200389862,
-0.37072324752807617,
0.32586053013801575,
0.27780282497406006,
-0.20354720950126648,
0.43295979499816895,
-0.27911248803138733,
0.7734275460243225,
-0.2726944386959076,
0.0615840405225... |
func (v EventPlayerPropertiesChanged) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoMedia3(w, v)
} | [
-0.36310964822769165,
-0.7449876666069031,
0.39499038457870483,
-0.6939220428466797,
-0.07795584946870804,
-0.8855663537979126,
0.037208281457424164,
-0.3973308205604553,
0.3647095561027527,
0.35885846614837646,
-0.6484237313270569,
0.7665858864784241,
0.014739621430635452,
0.5295632481575... |
func (v *EventPlayerPropertiesChanged) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoMedia3(&r, v)
return r.Error()
} | [
-0.2367488592863083,
-0.6072331070899963,
0.45199504494667053,
-1.3806384801864624,
-0.8521424531936646,
-0.09758665412664413,
0.0808640718460083,
0.43379366397857666,
-0.17709185183048248,
0.3952116370201111,
0.051641471683979034,
0.5827926397323608,
-0.33947211503982544,
-0.0857831463217... |
func (v *EventPlayerPropertiesChanged) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoMedia3(l, v)
} | [
0.07313819229602814,
-0.5802399516105652,
0.5102679133415222,
-1.301090955734253,
-0.3875730335712433,
-1.1240888833999634,
0.3171234130859375,
0.37071695923805237,
0.21128331124782562,
0.3646194338798523,
-0.6123350858688354,
0.5542112588882446,
-0.07863590866327286,
0.21798232197761536,
... |
func (v EventPlayerEventsAdded) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoMedia4(&w, v)
return w.Buffer.BuildBytes(), w.Error
} | [
0.15576986968517303,
-0.9278538227081299,
0.3632832467556,
-0.5920850038528442,
0.10744035989046097,
-0.5789962410926819,
0.3282671868801117,
0.3001798689365387,
1.094399333000183,
0.16990400850772858,
0.0015841409331187606,
0.824782133102417,
-0.5244238972663879,
0.6332626342773438,
0.3... |
func (v EventPlayerEventsAdded) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoMedia4(w, v)
} | [
0.06440611183643341,
-0.8597580790519714,
0.37739887833595276,
-0.9542987942695618,
0.23404942452907562,
-1.0262528657913208,
0.05332338809967041,
-0.44969940185546875,
1.1281306743621826,
0.11791563779115677,
-0.48476511240005493,
0.8003131151199341,
-0.17826926708221436,
0.99454599618911... |
func (v *EventPlayerEventsAdded) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoMedia4(&r, v)
return r.Error()
} | [
0.05588683858513832,
-0.4916267991065979,
0.4768412709236145,
-1.6079185009002686,
-0.33572226762771606,
-0.30012455582618713,
-0.07344494014978409,
0.19552361965179443,
0.8933817744255066,
0.24608099460601807,
0.09481871873140335,
0.6104282736778259,
-0.6656574606895447,
0.262938171625137... |
func (v *EventPlayerEventsAdded) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoMedia4(l, v)
} | [
0.36445343494415283,
-0.5377047061920166,
0.4650050103664398,
-1.4474797248840332,
0.06148882582783699,
-1.3092527389526367,
0.18957950174808502,
0.0755704790353775,
0.970671534538269,
0.21917474269866943,
-0.4585943818092346,
0.5684968829154968,
-0.3934825360774994,
0.6041547656059265,
... |
func (v EnableParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoMedia5(&w, v)
return w.Buffer.BuildBytes(), w.Error
} | [
0.26320505142211914,
-0.18653862178325653,
0.32463380694389343,
-0.29496121406555176,
-0.06227583438158035,
-0.20749332010746002,
0.435701847076416,
0.6570241451263428,
-0.31034794449806213,
1.0968945026397705,
-0.5327951312065125,
0.784570038318634,
-1.542037844657898,
0.9297754764556885,... |
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoMedia5(w, v)
} | [
0.18143750727176666,
-0.17819468677043915,
0.3223629295825958,
-0.6322824954986572,
-0.0005217099096626043,
-0.6267032027244568,
0.29140040278434753,
-0.05295315757393837,
0.008406891487538815,
0.7503662705421448,
-0.7581150531768799,
0.5713455080986023,
-1.0417758226394653,
1.333246588706... |
func (v *EnableParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoMedia5(&r, v)
return r.Error()
} | [
0.31702089309692383,
0.14834432303905487,
0.4973370432853699,
-1.022225022315979,
-0.35742709040641785,
-0.06089611351490021,
-0.07059444487094879,
0.867585301399231,
-0.6789906620979309,
1.1622968912124634,
-0.0933985635638237,
0.4112415313720703,
-1.5554744005203247,
0.8219757080078125,
... |
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoMedia5(l, v)
} | [
0.6215412616729736,
-0.13162745535373688,
0.4411852955818176,
-1.0171228647232056,
-0.07065138965845108,
-0.9274830222129822,
0.3205842971801758,
0.805240273475647,
-0.24469055235385895,
0.9641748070716858,
-0.6170501112937927,
0.33538228273391724,
-1.1161551475524902,
1.1459193229675293,
... |
func (v DisableParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoMedia6(&w, v)
return w.Buffer.BuildBytes(), w.Error
} | [
0.17049358785152435,
-0.1786682903766632,
0.25543761253356934,
-0.09256906807422638,
-0.21070528030395508,
-0.3294585049152374,
0.5113769769668579,
0.6947128772735596,
-0.10107813030481339,
0.538566529750824,
-0.501115083694458,
0.36676687002182007,
-1.4653091430664062,
1.0132660865783691,... |
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoMedia6(w, v)
} | [
0.06813714653253555,
-0.2128971964120865,
0.3143705725669861,
-0.628739595413208,
-0.07896014302968979,
-0.8066573143005371,
0.38094696402549744,
-0.20731477439403534,
0.21263617277145386,
0.2638448476791382,
-0.740925669670105,
0.19494454562664032,
-0.8219108581542969,
1.4459236860275269,... |
func (v *DisableParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoMedia6(&r, v)
return r.Error()
} | [
0.22826047241687775,
0.04887678101658821,
0.450093150138855,
-0.9820314645767212,
-0.566895067691803,
0.017965301871299744,
0.058186665177345276,
0.7564969062805176,
-0.34834736585617065,
0.5038806200027466,
-0.04225132241845131,
0.1126519963145256,
-1.5563727617263794,
0.8715484738349915,... |
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoMedia6(l, v)
} | [
0.499313086271286,
-0.26571378111839294,
0.467476487159729,
-0.983350932598114,
-0.27598056197166443,
-0.9561233520507812,
0.4036582410335541,
0.6041347980499268,
0.0417395681142807,
0.3506389856338501,
-0.566731333732605,
0.00966931227594614,
-0.9092025756835938,
1.186619758605957,
0.79... |
func CreateRSAKeys(keySize int) (*rsa.PrivateKey, *rsa.PublicKey, error) {
privateKey, err := rsa.GenerateKey(rand.Reader, keySize)
if err != nil {
return nil, nil, err
}
return privateKey, &privateKey.PublicKey, nil
} | [
-0.9561446309089661,
-0.19731587171554565,
0.003678480163216591,
-0.5920855402946472,
0.07610265910625458,
-0.24953484535217285,
-0.5903915166854858,
-0.5043431520462036,
0.3811954855918884,
0.26101455092430115,
-0.49928492307662964,
0.12894052267074585,
-1.130475640296936,
0.6753634214401... |
func ConvertPublicKeyToInterface(publicKey *rsa.PublicKey) interface{} {
var iType interface{}
iType = publicKey
return iType
} | [
-0.23839150369167328,
-0.5643952488899231,
0.4394931495189667,
-0.5494142770767212,
0.424333393573761,
0.4441106915473938,
0.111635722219944,
-0.0006645038956776261,
0.42226871848106384,
1.2684905529022217,
-0.6110190749168396,
-0.1321290284395218,
-1.1260603666305542,
0.969734787940979,
... |
func ConvertPrivateKeyToInterface(privateKey *rsa.PrivateKey) interface{} {
var iType interface{}
iType = privateKey
return iType
} | [
-1.1147786378860474,
-0.9333584308624268,
0.42210355401039124,
-0.45067840814590454,
0.4640568494796753,
0.09122034162282944,
0.1729806363582611,
-0.5046173334121704,
1.019985318183899,
1.4993268251419067,
-0.6212726831436157,
0.09633015841245651,
-1.496192216873169,
1.0020455121994019,
... |
func CreateRandomKeyBytes(keySize int) ([]byte, error) {
if !supportedKeySizes[keySize] {
return nil, errors.New("Random key size support for 16, 24 or 32 bytes only")
}
key := make([]byte, keySize)
_, err := io.ReadFull(rand.Reader, key[:])
if err != nil {
return nil, err
}
return key, nil
} | [
-0.4540189504623413,
0.29688334465026855,
0.2559601068496704,
0.13895927369594574,
-0.5949113368988037,
0.489709734916687,
-0.9785076379776001,
-1.0255753993988037,
0.5012352466583252,
0.27184486389160156,
-0.8893747925758362,
-0.6741818189620972,
-1.3851970434188843,
0.9752352237701416,
... |
func ConvertToBase64Str(key []byte) string {
return base64.StdEncoding.EncodeToString(key)
} | [
-0.513107419013977,
-0.9314303994178772,
0.4169730544090271,
0.44558852910995483,
-0.5028034448623657,
0.7809975743293762,
-1.2583686113357544,
-0.6015471816062927,
0.12235456705093384,
1.7776203155517578,
0.5326224565505981,
-0.7220252156257629,
-0.8590351343154907,
1.0891281366348267,
... |
func ConvertBase64StrToBytes(key string) ([]byte, error) {
return base64.StdEncoding.DecodeString(key)
} | [
-0.7826409339904785,
-0.6983128190040588,
0.22577017545700073,
0.12605692446231842,
-0.4910024106502533,
-0.41256606578826904,
-1.3102034330368042,
-0.11425556242465973,
-0.23829981684684753,
0.8389671444892883,
-0.5757495164871216,
-0.10542885959148407,
-0.5177847146987915,
0.897784292697... |
func TestIndividualPrintObjOnExistingTabWriter(t *testing.T) {
columns := []Column{
{
Header: "NAME",
FieldSpec: "{.metadata.name}",
},
{
Header: "LONG COLUMN NAME", // name is longer than all values of label1
FieldSpec: "{.metadata.labels.label1}",
},
{
Header: "LABEL 2",
FieldSpe... | [
0.1505267173051834,
-0.9861720204353333,
0.7283884882926941,
0.08479531854391098,
0.14536575973033905,
0.7496784925460815,
0.1567985862493515,
-0.7073495984077454,
-0.9492303729057312,
-0.20749422907829285,
-0.3851378560066223,
0.2928408086299896,
0.48163145780563354,
-0.3822125196456909,
... |
func groupAnagramsOptimal(strs []string) [][]string {
result := make([][]string, 0)
if len(strs) == 0 {
return result
}
tracker := make(map[string][]string)
for _, s := range strs {
count := make([]int, 26)
for _, char := range s {
count[char - 'a']++
}
sb := ""
for i := 0; i... | [
-0.2885691225528717,
-0.3236145079135895,
0.8693328499794006,
-0.6683579683303833,
-0.6856844425201416,
-0.08750614523887634,
0.24738791584968567,
0.18552587926387787,
-0.5292137265205383,
1.3796908855438232,
0.9251137971878052,
-0.0791340321302414,
-0.47227397561073303,
-0.415678441524505... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.