text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (m *exampleNetworkConfig) NetworkConfig() *fab.NetworkConfig {
return &networkConfig
} | [
1.2577580213546753,
-0.18704837560653687,
0.23243707418441772,
0.688446581363678,
-0.7718616127967834,
-0.24280688166618347,
0.16105279326438904,
0.7989214658737183,
0.39940544962882996,
-0.24163420498371124,
-1.4714406728744507,
-0.2612625062465668,
0.348652184009552,
0.6827041506767273,
... |
func (m *exampleNetworkPeers) NetworkPeers() []fab.NetworkPeer {
netPeers := []fab.NetworkPeer{}
// referencing another interface to call PeerMSPID to match config yaml content
for name, p := range networkConfig.Peers {
if err := m.verifyPeerConfig(p, name, endpoint.IsTLSEnabled(p.URL)); err != nil {
return n... | [
-0.20916980504989624,
-1.027571439743042,
0.3144036531448364,
0.23184992372989655,
0.005532615352421999,
0.12551675736904144,
-0.9856610298156738,
0.22647160291671753,
0.5004868507385254,
0.977120041847229,
-0.9739944338798523,
-1.0204598903656006,
-0.9214610457420349,
1.221002459526062,
... |
func (m *exampleChannelConfig) ChannelConfig(channelName string) *fab.ChannelEndpointConfig {
ch, ok := channelsConfig[strings.ToLower(channelName)]
if !ok {
// EntityMatchers are not used in this implementation, below is an example of how to use them if needed
//matchingChannel, _, matchErr := m.tryMatchingChann... | [
0.34727004170417786,
-0.8209259510040283,
0.5915802121162415,
-0.49883005023002625,
-0.3663826584815979,
-0.16261987388134003,
-0.42911258339881897,
0.4823765456676483,
0.38480859994888306,
0.43409886956214905,
0.3054611086845398,
0.8898941874504089,
-0.24106194078922272,
0.687443375587463... |
func (m *exampleChannelPeers) ChannelPeers(channelName string) []fab.ChannelPeer {
peers := []fab.ChannelPeer{}
chConfig, ok := channelsConfig[strings.ToLower(channelName)]
if !ok {
// EntityMatchers are not used in this implementation, below is an example of how to use them if needed
//matchingChannel, _, matc... | [
-0.5212433934211731,
-1.0068901777267456,
0.6045527458190918,
-0.26447126269340515,
0.22515007853507996,
-0.14160260558128357,
-0.8893245458602905,
0.088956318795681,
0.595526933670044,
0.7668851613998413,
-0.15818661451339722,
0.6172491312026978,
-0.6426170468330383,
0.5566510558128357,
... |
func (m *exampleChannelOrderers) ChannelOrderers(channelName string) []fab.OrdererConfig {
// referencing other interfaces to call ChannelConfig and OrdererConfig to match config yaml content
chCfg := &exampleChannelConfig{}
oCfg := &exampleOrdererConfig{}
orderers := []fab.OrdererConfig{}
channel := chCfg.Channe... | [
-0.07038120925426483,
-0.5384676456451416,
0.4993763566017151,
-0.37647730112075806,
0.1023598313331604,
-0.5916056632995605,
-0.840599000453949,
-0.060174182057380676,
0.29690828919410706,
0.7213758826255798,
-0.49515631794929504,
0.4134426414966583,
-0.8060376644134521,
0.874897301197052... |
func newTLSCACertPool(useSystemCertPool bool) *exampleTLSCACertPool {
m := &exampleTLSCACertPool{}
var err error
m.tlsCertPool, err = commtls.NewCertPool(useSystemCertPool)
if err != nil {
panic(err)
}
return m
} | [
1.136979579925537,
-0.7495251893997192,
0.29468753933906555,
0.809975266456604,
-1.0235365629196167,
0.412245512008667,
-0.3193557560443878,
0.005006678402423859,
-0.2674926519393921,
-0.1524200141429901,
-0.7694411873817444,
0.835207998752594,
-0.26308920979499817,
0.3491828739643097,
0... |
func (m *exampleTLSCACertPool) TLSCACertPool() commtls.CertPool {
return m.tlsCertPool
} | [
1.7553365230560303,
-1.009640097618103,
0.21314384043216705,
-0.1399078071117401,
-0.7350855469703674,
0.8279619216918945,
0.6431494951248169,
-0.024388393387198448,
0.578239917755127,
-0.17315518856048584,
-0.14675107598304749,
0.37162891030311584,
0.34638041257858276,
-0.0770271122455596... |
func (m *exampleTLSClientCerts) TLSClientCerts() []tls.Certificate {
var clientCerts tls.Certificate
cb := client.TLSCerts.Client.Cert.Bytes()
if len(cb) == 0 {
// if no cert found in the config, return empty cert chain
return []tls.Certificate{clientCerts}
}
// Load private key from cert using default crypt... | [
0.907204270362854,
-0.1285201758146286,
0.3385297954082489,
-0.3689040243625641,
-0.8050060272216797,
-0.3679943084716797,
-0.22155189514160156,
-0.9239360690116882,
0.3339826464653015,
0.35005122423171997,
-0.6441747546195984,
-0.043651506304740906,
-0.20994487404823303,
0.361545413732528... |
func (wac *Conn) writeJson(data []interface{}) (<-chan string, error) {
ch := make(chan string, 1)
wac.writerLock.Lock()
defer wac.writerLock.Unlock()
d, err := json.Marshal(data)
if err != nil {
close(ch)
return ch, err
}
ts := time.Now().Unix()
messageTag := fmt.Sprintf("%d.--%d", ts, wac.msgCount)
b... | [
-0.7951618432998657,
-0.48299920558929443,
0.9435063004493713,
-0.8319740295410156,
-0.00874206144362688,
-0.4345131516456604,
0.5136509537696838,
-0.5924322605133057,
0.17926692962646484,
0.10949163138866425,
-0.18092802166938782,
0.7326915264129639,
-0.4922080636024475,
1.273260593414306... |
func (wac *Conn) sendAdminTest() (bool, error) {
data := []interface{}{"admin", "test"}
r, err := wac.writeJson(data)
if err != nil {
return false, errors.Wrap(err, "error sending admin test")
}
var response []interface{}
select {
case resp := <-r:
if err := json.Unmarshal([]byte(resp), &response); err !=... | [
-0.10308250039815903,
0.028699439018964767,
0.8134149312973022,
-0.734518826007843,
-0.42484015226364136,
0.25975483655929565,
-0.6682068109512329,
-1.6428683996200562,
0.21719297766685486,
0.7843300104141235,
-0.5772343277931213,
0.9237291216850281,
-1.2900010347366333,
0.1049054190516471... |
func CartsFiles() []string {
files, err := filepath.Glob("templates/carts/includes/*.html")
if err != nil {
log.Panic(err)
}
files = append(files, LayoutFiles()...)
files = append(files, LayoutFilesIncludes()...)
return files
} | [
1.419887661933899,
-0.14877556264400482,
0.7251513600349426,
0.029696328565478325,
-0.7147605419158936,
0.6910943984985352,
0.6510683298110962,
-0.31623438000679016,
-0.26222971081733704,
-0.2791583836078644,
0.054491035640239716,
-0.052017804235219955,
-0.0334441177546978,
-0.435454875230... |
func TestBTreeFreeTypedness(t *testing.T) {
a := MakeBinaryTree("a")
b := MakeBinaryTreeWithLeftSubtree("b", a)
e := MakeBinaryTree("e")
d := MakeBinaryTreeWithRightSubtree("d", e)
c := MakeBinaryTreeWithSubtrees("c", d, b)
Convey("Test BTrees", t, func() {
//c.prefixPrint()
So(a.IsLeaf(), ShouldBeTrue)
So... | [
0.9483991861343384,
0.13930295407772064,
0.7119950652122498,
-0.023432549089193344,
0.5521692037582397,
0.8575100302696228,
-0.07416503131389618,
-0.4354226887226105,
-0.05924227461218834,
-0.15094931423664093,
-0.8493049144744873,
0.6848678588867188,
-1.14252769947052,
0.9116721749305725,... |
func TestBTreeHelperFunctions(t *testing.T) {
l1 := MakeBinaryTree(1)
l2 := MakeBinaryTree(2)
l3 := MakeBinaryTree(3)
l4 := MakeBinaryTree(4)
l5 := MakeBinaryTreeWithRightSubtree(5, l2)
t6 := MakeBinaryTreeWithLeftSubtree(6, l3)
t1 := MakeBinaryTreeWithSubtrees("t1", l1, l5)
t2 := MakeBinaryTreeWithSubtrees("t... | [
0.7682469487190247,
-0.12580552697181702,
0.8414595723152161,
-0.03778199851512909,
0.20453111827373505,
0.7457212805747986,
0.2395799160003662,
-0.6526082754135132,
-0.7571576833724976,
-0.31463685631752014,
-1.3599841594696045,
0.28131043910980225,
-0.4967835247516632,
0.4317679107189178... |
func (o *DestroySpoonReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 204:
result := NewDestroySpoonNoContent()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, n... | [
-0.5703074932098389,
-0.6241173148155212,
0.7430623173713684,
0.4360979199409485,
0.28443002700805664,
-1.1786550283432007,
0.13118192553520203,
-0.0005612011882476509,
0.6900032758712769,
-0.01655319146811962,
0.37051787972450256,
-0.6467452645301819,
-1.0725231170654297,
0.15845791995525... |
func NewDestroySpoonNoContent() *DestroySpoonNoContent {
return &DestroySpoonNoContent{}
} | [
0.1261419653892517,
-0.3737553358078003,
-0.11727338284254074,
0.3021315634250641,
-0.5245551466941833,
-0.4287545680999756,
-0.20156051218509674,
-0.12851309776306152,
-0.06814569979906082,
-0.12895819544792175,
-0.8527811169624329,
-0.26569730043411255,
-0.4763789772987366,
0.64185971021... |
func NewDestroySpoonUnauthorized() *DestroySpoonUnauthorized {
return &DestroySpoonUnauthorized{}
} | [
-1.0452589988708496,
-0.3059982359409332,
0.24895870685577393,
0.39392924308776855,
-0.4961701035499573,
-0.7159602642059326,
0.1932448446750641,
1.0877045392990112,
0.5922105312347412,
-0.5786707401275635,
-0.960623562335968,
0.20253422856330872,
0.5585784316062927,
0.4465101361274719,
... |
func NewDestroySpoonNotFound() *DestroySpoonNotFound {
return &DestroySpoonNotFound{}
} | [
-0.21129609644412994,
-1.2695121765136719,
0.0672059878706932,
-0.20588847994804382,
0.2599092423915863,
0.5752498507499695,
0.617307186126709,
0.11667083203792572,
0.272490918636322,
-1.0489760637283325,
-0.6865242719650269,
-0.42191070318222046,
-0.03412012383341789,
0.4958098530769348,
... |
func NewDestroySpoonDefault(code int) *DestroySpoonDefault {
return &DestroySpoonDefault{
_statusCode: code,
}
} | [
-0.5929355025291443,
0.19291602075099945,
0.03764098882675171,
-0.10518607497215271,
0.42254191637039185,
-0.11567848175764084,
0.1551537960767746,
1.0135138034820557,
0.6080940961837769,
-0.7019206881523132,
-1.4797669649124146,
-0.4432331323623657,
-0.787369430065155,
0.6059012413024902,... |
func (o *DestroySpoonDefault) Code() int {
return o._statusCode
} | [
-0.29964879155158997,
0.6519222259521484,
0.20795026421546936,
0.5808340311050415,
0.5881553292274475,
-0.03356288745999336,
0.5211004018783569,
1.3391486406326294,
0.03863751143217087,
-0.42324721813201904,
-0.3709365129470825,
-0.6175282001495361,
-0.5968948006629944,
0.4767930209636688,... |
func stringSliceOverlaps(left []string, right []string) bool {
for _, s := range left {
for _, t := range right {
if s == t {
return true
}
}
}
return false
} | [
-0.8556854128837585,
-1.1063625812530518,
0.7804853320121765,
-0.572592556476593,
-0.48890775442123413,
0.03947504609823227,
-1.175187349319458,
-0.8993785381317139,
-0.7283438444137573,
1.47819983959198,
0.1788138449192047,
0.351565957069397,
-0.43433552980422974,
0.0102774603292346,
-1... |
func OnSupportedPlatformsIt(description string, f interface{}) {
if os.Getenv("NOROOT") != "TRUE" {
ginkgo.It(description, f)
} else {
defer ginkgo.GinkgoRecover()
ginkgo.Skip(description)
}
} | [
0.5240733027458191,
1.392324447631836,
0.23594635725021362,
-0.09433398395776749,
-0.606290876865387,
0.6339561939239502,
0.4470800459384918,
0.47856977581977844,
-1.2902922630310059,
0.5507664680480957,
0.2682366967201233,
0.3509889841079712,
-0.7822005748748779,
0.5280678272247314,
-0.... |
func (sphr sphere) color() color.NRGBA {
return sphr.col
} | [
-0.4773190915584564,
-0.6599078178405762,
0.12415856122970581,
0.09787046909332275,
0.37141695618629456,
1.3647936582565308,
0.9209622740745544,
0.32800593972206116,
0.843198299407959,
-0.22876517474651337,
0.35260605812072754,
1.3492752313613892,
-0.2511613667011261,
1.3428661823272705,
... |
func makeSphere(x, y, z, r float64, col color.NRGBA) (sphr sphere) {
sphr.center = makeVector(x, y, z)
sphr.radius = r
sphr.col = col
return sphr
} | [
0.7285369038581848,
0.05244836211204529,
0.26189857721328735,
-0.18787963688373566,
-0.6517013907432556,
0.5446403622627258,
-0.16113081574440002,
-0.17397841811180115,
0.29507604241371155,
0.4554048776626587,
-0.41612130403518677,
0.1536366492509842,
-0.6187599301338196,
-0.91635185480117... |
func (sphr sphere) obstruct(direction, origin vector, verbosity bool) float64 {
a, b, c := findCoefficients(sphr, direction, origin, verbosity)
discriminant := findDiscriminant(a, b, c)
if discriminant < 0 { // NO INTERSECTIONS
if verbosity {
fmt.Println(math.Inf(1))
}
return math.Inf(1)
} else if discr... | [
-0.12238872051239014,
-0.11883170902729034,
0.8916372656822205,
-0.43993040919303894,
-0.2300848662853241,
0.12030816823244095,
0.4023972153663635,
0.5312051177024841,
-0.09469246864318848,
-0.6112290024757385,
1.0256844758987427,
0.8303311467170715,
-0.5458745956420898,
-0.117820814251899... |
func findCoefficients(sphr sphere, direction, origin vector, verbosity bool) (float64, float64, float64) {
offset := origin.sub(sphr.center)
a := (direction.x * direction.x) + (direction.y * direction.y) + (direction.z * direction.z)
b := 2 * (direction.x*(offset.x) + direction.y*(offset.y) + direction.z*(offset.z))... | [
0.3853161334991455,
-0.8863089680671692,
0.5011782646179199,
-0.877016007900238,
0.6202483773231506,
-0.3285138010978699,
0.4667554199695587,
0.649648904800415,
-0.4215163290500641,
0.349293053150177,
-0.8178247213363647,
0.7629795670509338,
-0.4575529992580414,
0.4800685942173004,
0.291... |
func findDiscriminant(a, b, c float64) float64 {
// s = (-b ± sqrt(b*b - 4*(a)*(c)))/2a
return (b * b) - (4 * a * c)
} | [
1.9007725715637207,
-0.25625869631767273,
0.4431416690349579,
-0.21456028521060944,
0.03091835044324398,
0.47591742873191833,
-0.06245104596018791,
0.1833951324224472,
-0.2385324239730835,
0.020922565832734108,
0.1404419094324112,
-0.016646642237901688,
-0.7510503530502319,
-0.177566498517... |
func (sphr sphere) directIllumination(l light, point vector, objects []object) color.NRGBA {
ambientFactor := 0.2 // Cosmetic. Edit based on preference
dir := l.posn.sub(point).direction() // unit vector from point on sphere to light
var col = sphr.col
for _, obj := range objects {
stoppingPoint := obj.obstruct(... | [
-0.47142720222473145,
-0.5559539794921875,
0.6047314405441284,
0.29973843693733215,
-0.15357957780361176,
0.6485579609870911,
1.1053390502929688,
0.026430875062942505,
0.40112441778182983,
0.26977452635765076,
-0.3830801844596863,
0.45014438033103943,
0.886979877948761,
0.48898744583129883... |
func (sphr sphere) determineColorBrightness(ambientFactor float64, point, photonDir vector) float64 {
diffuseFactor := 1 - ambientFactor
normal := point.sub(sphr.center).direction() // unit vector from sphere center to point on sphere
shadeFactor := math.Max(0, photonDir.dot(normal))
colorFactor := (ambientFactor +... | [
0.4191170036792755,
-0.5629389882087708,
0.4560859203338623,
-0.051366984844207764,
-0.12126553058624268,
-0.02107776142656803,
0.4958786368370056,
0.25435367226600647,
0.6361868381500244,
-0.929439127445221,
-0.17189601063728333,
1.2876638174057007,
0.19323508441448212,
1.5201478004455566... |
func MustParseNet(n string) *net.IPNet {
_, parsedNet, err := net.ParseCIDR(n)
if err != nil {
panic(err)
}
return parsedNet
} | [
-0.38119661808013916,
-0.06087626516819,
0.318163126707077,
-0.5809553861618042,
-0.46699413657188416,
0.44962024688720703,
-1.4413466453552246,
-0.6510630249977112,
-0.2757432460784912,
-0.2072119265794754,
-0.43917012214660645,
-0.7179986238479614,
-0.31279146671295166,
0.262827694416046... |
func (n *Node) Delete(w string) bool {
cur := n
var found bool
path := []*Node{n}
for _, r := range w {
cur, found = cur.children[r]
if !found {
return false // word not present
}
path = append(path, cur)
}
if !cur.term {
return false
}
rr := []rune(w)
for i := len(path) - 2; i >= 0; i-- {
if pa... | [
0.44942304491996765,
0.467305988073349,
0.8867392539978027,
-0.4164155125617981,
-0.31574103236198425,
-0.059109121561050415,
0.5583807229995728,
0.15535522997379303,
-0.1853676587343216,
1.0639134645462036,
0.2809763252735138,
-0.8295250535011292,
-1.1906861066818237,
0.15000379085540771,... |
func (o GetAccountsResultOutput) Accounts() GetAccountsAccountArrayOutput {
return o.ApplyT(func(v GetAccountsResult) []GetAccountsAccount { return v.Accounts }).(GetAccountsAccountArrayOutput)
} | [
-0.11311250180006027,
-0.1851370483636856,
0.7437208294868469,
0.42405790090560913,
0.35809099674224854,
-0.7500227093696594,
0.9801436066627502,
-0.7364097237586975,
1.80486261844635,
-0.6300613284111023,
0.4170779287815094,
0.19869688153266907,
0.7269929051399231,
-0.08713150769472122,
... |
func (o GetAccountsResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetAccountsResult) string { return v.Id }).(pulumi.StringOutput)
} | [
0.8780114650726318,
-0.19770151376724243,
0.335884690284729,
-0.022636771202087402,
0.6238631010055542,
0.5745893716812134,
0.672757625579834,
0.29608380794525146,
1.6342514753341675,
-0.34411484003067017,
0.5164589881896973,
0.6678586602210999,
-0.1794479936361313,
-1.3260977268218994,
... |
func (o GetAccountsResultOutput) Ids() pulumi.StringArrayOutput {
return o.ApplyT(func(v GetAccountsResult) []string { return v.Ids }).(pulumi.StringArrayOutput)
} | [
-0.1172410398721695,
0.006730649154633284,
0.27854588627815247,
-0.11026310175657272,
1.2258480787277222,
0.302718847990036,
0.08953733742237091,
-0.1315850466489792,
1.2953168153762817,
-0.11435235291719437,
-0.1339908391237259,
0.9498440623283386,
0.044226787984371185,
-1.188009023666381... |
func (o GetAccountsResultOutput) Status() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetAccountsResult) *string { return v.Status }).(pulumi.StringPtrOutput)
} | [
0.7301532626152039,
-0.5103563070297241,
0.31133097410202026,
-0.26371094584465027,
0.16779646277427673,
0.4935833215713501,
0.21931883692741394,
0.6339980363845825,
1.0729312896728516,
-0.3072015345096588,
0.20583009719848633,
0.8453918695449829,
0.2852924168109894,
-1.3480331897735596,
... |
func RegisterRobot(command string, robotInitFunction func() Robot) {
if _, ok := Robots[command]; ok {
log.Printf("There are two robots mapped to %s!", command)
} else {
Robots[command] = robotInitFunction
}
} | [
-0.09603041410446167,
0.20017388463020325,
0.37066808342933655,
0.49712052941322327,
0.8796411752700806,
-0.47825369238853455,
-0.3919186294078827,
-0.17974528670310974,
-0.3352853059768677,
-0.7456312775611877,
-1.4791451692581177,
1.1319677829742432,
-0.19537056982517242,
0.8879057168960... |
func Play(iowriter io.Writer, ioreader io.Reader, stages []stage) {
writer = iowriter
reader = bufio.NewReader(ioreader)
basicStep("Tutaj Hubert Urbański! Witamy w Milionerach\n")
name := openQuestion("Proszę przedstaw się. Jak masz na imię?\n")
basicStep("Witamy Ciebie %v bardzo serdecznie w naszym programie!\n"... | [
-0.4522274434566498,
-0.8661496639251709,
0.691502571105957,
0.12946806848049164,
-0.345222145318985,
0.21418407559394836,
0.626666247844696,
-0.8817261457443237,
-0.14980965852737427,
0.13943657279014587,
-0.08329160511493683,
-0.7224915027618408,
0.0582045279443264,
-0.17403140664100647,... |
func NewDefaultParser() Parser {
return &defaultParser{}
} | [
0.07932095974683762,
-0.9574505090713501,
0.037097953259944916,
0.1500871330499649,
-0.5497252345085144,
-0.5417954921722412,
-0.9494563937187195,
-0.6091006398200989,
0.563308835029602,
-0.5718315243721008,
-0.774511456489563,
-0.5818673372268677,
-0.9079137444496155,
0.5678294897079468,
... |
func (p *defaultParser) Parse(ctx context.Context, header http.Header) (*kit.Kit, error) {
if ctx == nil {
ctx = context.Background()
}
kt := &kit.Kit{
Ctx: ctx,
User: header.Get(constant.UserKey),
Rid: header.Get(constant.RidKey),
AppCode: header.Get(constant.AppCodeKey),
}
if err := kt.Val... | [
-0.004943259060382843,
0.23559412360191345,
0.4674950838088989,
1.2997735738754272,
-0.3770476281642914,
0.09960926324129105,
-0.7644039988517761,
-0.3710620701313019,
-0.6456089615821838,
-0.4983236789703369,
0.5100964307785034,
-0.15643619000911713,
-0.9947799444198608,
0.157186120748519... |
func NewJWTParser(pubKey string) (Parser, error) {
if pubKey == "" {
return nil, errors.New("pubkey is required")
}
pubKeyObj, err := jwt.ParseRSAPublicKeyFromPEM([]byte(pubKey))
if err != nil {
return nil, errors.Wrapf(err, "parse pubkey: %s", pubKey)
}
parser := &jwtParser{
publicKey: pubKey,
publi... | [
-0.2713419497013092,
-0.2896001935005188,
0.3119038939476013,
-0.10625096410512924,
-1.7190476655960083,
-0.1727534830570221,
-0.9163908362388611,
0.033266764134168625,
0.7020630836486816,
0.9493433833122253,
-0.9065060615539551,
0.1313818097114563,
-0.9612964987754822,
0.946381688117981,
... |
func (p *jwtParser) Parse(ctx context.Context, header http.Header) (*kit.Kit, error) {
jwtToken := header.Get(constant.BKGWJWTTokenKey)
if len(jwtToken) == 0 {
return nil, errors.Errorf("jwt token header %s is required", constant.BKGWJWTTokenKey)
}
token, err := p.parseToken(jwtToken)
if err != nil {
return n... | [
0.15372353792190552,
-0.03320105001330376,
0.7339373826980591,
0.6758314371109009,
-1.1776862144470215,
0.16903285682201385,
-0.5595546364784241,
-0.5370205044746399,
-0.5116481184959412,
0.02191798947751522,
0.16060049831867218,
0.43205323815345764,
-0.5277800559997559,
0.1856804639101028... |
func (p *jwtParser) parseToken(token string) (*claims, error) {
tokenClaims, err := jwt.ParseWithClaims(token, &claims{}, func(token *jwt.Token) (interface{}, error) {
if _, ok := token.Method.(*jwt.SigningMethodRSA); !ok {
return nil, fmt.Errorf("unexpected signing method: %v", token.Header["alg"])
}
return ... | [
0.38995862007141113,
-0.7670536637306213,
0.8245682120323181,
-0.04134855791926384,
-0.7587915062904358,
-0.22122690081596375,
-0.5716917514801025,
-0.4008505046367645,
0.5861719250679016,
-0.6590181589126587,
-0.49603626132011414,
0.7354114055633545,
0.00895677786320448,
0.659478187561035... |
func (u UserConfig) IndexType() string {
return "hnsw"
} | [
-0.02487974427640438,
0.5298560261726379,
0.17838986217975616,
1.2454776763916016,
-0.19817093014717102,
0.6122110486030579,
0.3590881824493408,
-0.06255921721458435,
1.2738471031188965,
0.04314683750271797,
-0.77178955078125,
0.18466401100158691,
-0.44534537196159363,
0.7151005268096924,
... |
func (u *UserConfig) SetDefaults() {
u.MaxConnections = DefaultMaxConnections
u.EFConstruction = DefaultEFConstruction
u.CleanupIntervalSeconds = DefaultCleanupIntervalSeconds
u.VectorCacheMaxObjects = DefaultVectorCacheMaxObjects
u.EF = DefaultEF
u.DynamicEFFactor = DefaultDynamicEFFactor
u.DynamicEFMax = Defau... | [
-0.42803817987442017,
0.6782583594322205,
0.25363802909851074,
0.7097730040550232,
0.4254715144634247,
0.10533600300550461,
0.505805253982544,
-0.26700517535209656,
-0.36090850830078125,
-0.9490000605583191,
-1.4539768695831299,
-0.21344733238220215,
-0.11331812292337418,
0.580737054347991... |
func ParseAndValidateConfig(input interface{}) (schema.VectorIndexConfig, error) {
uc := UserConfig{}
uc.SetDefaults()
if input == nil {
return uc, nil
}
asMap, ok := input.(map[string]interface{})
if !ok || asMap == nil {
return uc, fmt.Errorf("input must be a non-nil map")
}
if err := optionalIntFromMa... | [
-0.09733941406011581,
-0.37891578674316406,
0.8340726494789124,
0.2937682569026947,
-0.7934747934341431,
-0.6666340231895447,
0.7265820503234863,
-0.246659055352211,
0.46470776200294495,
-0.18346859514713287,
-0.13354936242103577,
-0.09517242014408112,
0.21521717309951782,
0.85047739744186... |
func optionalIntFromMap(in map[string]interface{}, name string,
setFn func(v int),
) error {
value, ok := in[name]
if !ok {
return nil
}
var asInt64 int64
var err error
// depending on whether we get the results from disk or from the REST API,
// numbers may be represented slightly differently
switch typed... | [
-0.4729994535446167,
-0.6936874985694885,
0.5387970209121704,
0.1330767571926117,
-0.5234606862068176,
-1.1171306371688843,
-0.21875183284282684,
-0.6536373496055603,
0.40497270226478577,
0.2543865144252777,
-0.0038634303491562605,
-0.24062766134738922,
-0.3574032783508301,
-0.030122634023... |
func Factorial(n int) ([]int, error) {
if n < 1 {
return nil, errors.New("Cannot factorize 0")
}
f := 1
fx := []int{1}
for i := 2; i <= n; i++ {
f *= i
fx = append(fx, f)
}
return fx, nil
} | [
-0.9594940543174744,
0.5368787050247192,
0.3678004741668701,
1.0224957466125488,
0.42483600974082947,
-0.8567020297050476,
0.3202172815799713,
-0.2704012393951416,
0.13285207748413086,
-0.7242432832717896,
-1.0052287578582764,
0.9737587571144104,
-0.3007577061653137,
1.2464631795883179,
... |
func StartServer(cfg *Configuration) {
banner(versions.GetVersions())
if err := setLogs(cfg.LogFormat, cfg.LogLevel); err != nil {
log.Fatalf("Error setting up logs: %s", err)
}
zap.L().Info("Configuration", zap.Reflect("config", cfg))
r := mux.NewRouter()
registerRoutes(r, cfg.ServerIP, cfg.ServerPort, cf... | [
-0.19120559096336365,
0.05155406519770622,
0.7567135691642761,
0.07810404151678085,
0.3140692114830017,
0.2639327347278595,
0.5570436716079712,
0.6145563721656799,
0.2750130891799927,
0.41285207867622375,
-1.0106375217437744,
0.49076947569847107,
-0.10625026375055313,
0.7540289163589478,
... |
func setLogs(logFormat, logLevel string) error {
var zapConfig zap.Config
switch logFormat {
case "json":
zapConfig = zap.NewProductionConfig()
zapConfig.DisableStacktrace = true
default:
zapConfig = zap.NewDevelopmentConfig()
zapConfig.DisableStacktrace = true
zapConfig.DisableCaller = true
zapConfig.... | [
-0.15287818014621735,
-0.4317944347858429,
0.811874270439148,
-0.355048269033432,
-0.5378609895706177,
-0.1059243381023407,
-0.580016016960144,
-0.14757996797561646,
-0.13088059425354004,
-0.00914194155484438,
-0.7607790231704712,
0.4291099011898041,
-0.8456472158432007,
0.9057513475418091... |
func (p *Pegnet) InsertTransactionRelation(tx *sql.Tx, adr factom.FAAddress, entryHash *factom.Bytes32, txIndex uint64, to bool, isConversion bool) (int64, error) {
// If an address is the sender and the receiver, then we only record the sender side, not the receiver.
// This is some loss of information, but for the ... | [
-0.17648646235466003,
1.2951021194458008,
0.8190571069717407,
-1.5723170042037964,
0.24260978400707245,
-0.44913622736930847,
0.2483464926481247,
0.09951584786176682,
-0.09064636379480362,
0.5166944265365601,
0.14581811428070068,
-0.9268765449523926,
-1.3287131786346436,
-0.558426260948181... |
func (p *Pegnet) IsReplayTransaction(tx *sql.Tx, entryHash *factom.Bytes32) (bool, error) {
rows, err := tx.Query(`SELECT * FROM "pn_address_transactions" WHERE "entry_hash" = ?;`, entryHash[:])
if err != nil {
return false, err
}
defer rows.Close()
err = rows.Err()
if err != nil {
if err == sql.ErrNoRows {
... | [
0.7791319489479065,
0.7138900756835938,
0.8508800864219666,
-0.45778796076774597,
0.36660057306289673,
-1.0809051990509033,
-0.2932770252227783,
-0.5593757033348083,
0.88090980052948,
0.5980048179626465,
-0.08105689287185669,
0.12828701734542847,
-0.29439207911491394,
-0.648252010345459,
... |
func Solution(a []int) int {
maxGain := 0
minPrice := 0
for i, price := range a {
if i == 0 {
minPrice = price
continue
}
maxGain = max(maxGain, price-minPrice)
minPrice = min(minPrice, price)
}
return maxGain
} | [
0.0403377041220665,
-0.1536855846643448,
0.8323549628257751,
1.2049710750579834,
-0.14209739863872528,
-0.29226401448249817,
0.17754442989826202,
0.15445591509342194,
0.46254363656044006,
0.1785336136817932,
-0.2979358434677124,
0.22093327343463898,
-0.45792925357818604,
0.9762569665908813... |
func newCompactionState(maxFileSize uint32, snapshot version.Snapshot, compaction *version.Compaction) *compactionState {
return &compactionState{
maxFileSize: maxFileSize,
snapshot: snapshot,
compaction: compaction,
}
} | [
0.7467275857925415,
-0.9112370610237122,
0.3027503192424774,
0.48580703139305115,
-1.859591007232666,
-0.5907951593399048,
-0.14385023713111877,
0.7097393870353699,
0.3816198408603668,
0.2649858295917511,
-0.47006896138191223,
-1.1905931234359741,
0.5816776752471924,
-0.2333303540945053,
... |
func (c *compactionState) addOutputFile(fileMete *version.FileMeta) {
c.outputs = append(c.outputs, fileMete)
} | [
0.5518177151679993,
-0.283368319272995,
0.5161903500556946,
0.21619084477424622,
0.2815359830856323,
0.7178714275360107,
0.3841404616832733,
0.6104477643966675,
-1.845824122428894,
0.06880061328411102,
0.8290578126907349,
-1.1348764896392822,
0.15018653869628906,
0.1109544113278389,
-0.3... |
func (_m *Client) AddBuildTag(_a0 context.Context, _a1 build.AddBuildTagArgs) (*[]string, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]string
if rf, ok := ret.Get(0).(func(context.Context, build.AddBuildTagArgs) *[]string); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*[]string)
... | [
-0.22102481126785278,
-0.25414928793907166,
0.4105498790740967,
-0.6990629434585571,
0.6225888133049011,
0.31160086393356323,
0.8633636236190796,
0.2753514349460602,
-0.4117821753025055,
-0.031485553830862045,
-0.09965794533491135,
0.30603188276290894,
0.2846551537513733,
1.062868595123291... |
func (_m *Client) AddBuildTags(_a0 context.Context, _a1 build.AddBuildTagsArgs) (*[]string, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]string
if rf, ok := ret.Get(0).(func(context.Context, build.AddBuildTagsArgs) *[]string); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*[]strin... | [
0.17502057552337646,
-0.044541213661432266,
0.29744115471839905,
-0.7498155832290649,
0.7689103484153748,
0.5103505253791809,
0.7937870621681213,
0.21424150466918945,
-0.5497438311576843,
-0.16622935235500336,
-0.3171088397502899,
0.15864406526088715,
-0.02097283862531185,
0.98368012905120... |
func (_m *Client) AddDefinitionTag(_a0 context.Context, _a1 build.AddDefinitionTagArgs) (*[]string, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]string
if rf, ok := ret.Get(0).(func(context.Context, build.AddDefinitionTagArgs) *[]string); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(... | [
0.35192203521728516,
0.2348272204399109,
0.30109208822250366,
-0.22642762959003448,
0.7582005858421326,
-0.11931430548429489,
0.40784719586372375,
0.27061015367507935,
-0.7509260773658752,
0.5360656380653381,
-0.11928170174360275,
-0.14614255726337433,
0.6274617910385132,
1.637393832206726... |
func (_m *Client) AddDefinitionTags(_a0 context.Context, _a1 build.AddDefinitionTagsArgs) (*[]string, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]string
if rf, ok := ret.Get(0).(func(context.Context, build.AddDefinitionTagsArgs) *[]string); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.G... | [
0.2994304597377777,
0.45567381381988525,
0.3207069933414459,
-0.2778824269771576,
0.6326586604118347,
-0.1579565554857254,
0.28646963834762573,
0.13851407170295715,
-0.6126579642295837,
0.3568812608718872,
-0.09425616264343262,
-0.03608785942196846,
0.2072449028491974,
1.321398138999939,
... |
func (_m *Client) AuthorizeDefinitionResources(_a0 context.Context, _a1 build.AuthorizeDefinitionResourcesArgs) (*[]build.DefinitionResourceReference, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.DefinitionResourceReference
if rf, ok := ret.Get(0).(func(context.Context, build.AuthorizeDefinitionResourcesArgs... | [
0.26090070605278015,
-0.38307860493659973,
0.3818035423755646,
0.037764016538858414,
-0.1689976453781128,
-0.36837470531463623,
1.0442057847976685,
0.42400529980659485,
0.08977585285902023,
0.1517476737499237,
0.4899859130382538,
0.14649905264377594,
0.3820393979549408,
0.6850292086601257,... |
func (_m *Client) AuthorizeProjectResources(_a0 context.Context, _a1 build.AuthorizeProjectResourcesArgs) (*[]build.DefinitionResourceReference, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.DefinitionResourceReference
if rf, ok := ret.Get(0).(func(context.Context, build.AuthorizeProjectResourcesArgs) *[]buil... | [
0.11988428980112076,
-0.10719083994626999,
0.3831196427345276,
0.031792569905519485,
-0.19521485269069672,
0.34855106472969055,
1.386918306350708,
0.45937463641166687,
-0.18385809659957886,
0.5262519121170044,
0.6520940661430359,
0.04004283994436264,
-0.2998298406600952,
0.3833123445510864... |
func (_m *Client) CreateArtifact(_a0 context.Context, _a1 build.CreateArtifactArgs) (*build.BuildArtifact, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.BuildArtifact
if rf, ok := ret.Get(0).(func(context.Context, build.CreateArtifactArgs) *build.BuildArtifact); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0... | [
-0.037195414304733276,
-0.5903984904289246,
0.3677673637866974,
-0.7967843413352966,
0.3728366196155548,
0.37941914796829224,
1.1186965703964233,
0.40015295147895813,
-0.16524595022201538,
0.3013794422149658,
-0.23145921528339386,
0.11250773072242737,
0.0053624496795237064,
-0.138052493333... |
func (_m *Client) CreateDefinition(_a0 context.Context, _a1 build.CreateDefinitionArgs) (*build.BuildDefinition, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.BuildDefinition
if rf, ok := ret.Get(0).(func(context.Context, build.CreateDefinitionArgs) *build.BuildDefinition); ok {
r0 = rf(_a0, _a1)
} else {
... | [
0.3210837244987488,
-0.39755022525787354,
0.4376825988292694,
-0.20262029767036438,
0.6992567181587219,
-0.010787460021674633,
0.5338115096092224,
0.17151609063148499,
-0.4470849633216858,
0.30354705452919006,
-0.38854947686195374,
0.1342388093471527,
0.46639570593833923,
0.841630518436431... |
func (_m *Client) CreateFolder(_a0 context.Context, _a1 build.CreateFolderArgs) (*build.Folder, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.Folder
if rf, ok := ret.Get(0).(func(context.Context, build.CreateFolderArgs) *build.Folder); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(... | [
-0.4033748209476471,
-0.6057142615318298,
0.5428479313850403,
-0.5073975920677185,
0.5733170509338379,
0.25141242146492004,
1.2556777000427246,
0.21161440014839172,
-0.5707199573516846,
0.2429661750793457,
0.4632517099380493,
-0.20914120972156525,
-0.0012704997789114714,
1.0893921852111816... |
func (_m *Client) DeleteBuild(_a0 context.Context, _a1 build.DeleteBuildArgs) error {
ret := _m.Called(_a0, _a1)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, build.DeleteBuildArgs) error); ok {
r0 = rf(_a0, _a1)
} else {
r0 = ret.Error(0)
}
return r0
} | [
0.4935891926288605,
-0.416923850774765,
0.40140295028686523,
-0.5789669752120972,
0.06840081512928009,
0.2597658038139343,
0.9395980834960938,
0.455325722694397,
0.2811853289604187,
-0.34428972005844116,
0.7811816334724426,
0.2907945215702057,
-0.20422625541687012,
0.7531960010528564,
0.... |
func (_m *Client) DeleteBuildTag(_a0 context.Context, _a1 build.DeleteBuildTagArgs) (*[]string, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]string
if rf, ok := ret.Get(0).(func(context.Context, build.DeleteBuildTagArgs) *[]string); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*[... | [
-0.23057298362255096,
-0.5826436877250671,
0.3213648200035095,
-0.6580186486244202,
0.404293417930603,
-0.10139381885528564,
1.131250262260437,
0.3791159987449646,
-0.1912841647863388,
0.07062163949012756,
0.12230978161096573,
0.5466517806053162,
0.4325343668460846,
1.016394019126892,
0.... |
func (_m *Client) DeleteDefinition(_a0 context.Context, _a1 build.DeleteDefinitionArgs) error {
ret := _m.Called(_a0, _a1)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, build.DeleteDefinitionArgs) error); ok {
r0 = rf(_a0, _a1)
} else {
r0 = ret.Error(0)
}
return r0
} | [
0.021824564784765244,
-0.07289117574691772,
0.40475553274154663,
-0.5874053239822388,
0.1690635085105896,
-0.36765170097351074,
0.7393378615379333,
0.5992570519447327,
-0.08179398626089096,
0.47617092728614807,
-0.2082958221435547,
0.26297441124916077,
0.4640132784843445,
0.749246835708618... |
func (_m *Client) DeleteDefinitionTag(_a0 context.Context, _a1 build.DeleteDefinitionTagArgs) (*[]string, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]string
if rf, ok := ret.Get(0).(func(context.Context, build.DeleteDefinitionTagArgs) *[]string); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 =... | [
0.23574821650981903,
-0.005231797229498625,
0.2780112624168396,
-0.1300048679113388,
0.34975576400756836,
-0.41793519258499146,
0.7155075669288635,
0.2043171226978302,
-0.5026370882987976,
0.6075644493103027,
-0.06200496107339859,
0.01312787365168333,
0.801688551902771,
1.5605745315551758,... |
func (_m *Client) DeleteFolder(_a0 context.Context, _a1 build.DeleteFolderArgs) error {
ret := _m.Called(_a0, _a1)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, build.DeleteFolderArgs) error); ok {
r0 = rf(_a0, _a1)
} else {
r0 = ret.Error(0)
}
return r0
} | [
-0.6901368498802185,
-0.22736282646656036,
0.43337714672088623,
-0.5547974705696106,
0.16030900180339813,
0.21283011138439178,
1.3711812496185303,
0.2834942936897278,
-0.22532321512699127,
-0.27821555733680725,
0.7188811302185059,
-0.17965446412563324,
-0.12678568065166473,
1.5708808898925... |
func (_m *Client) DeleteTemplate(_a0 context.Context, _a1 build.DeleteTemplateArgs) error {
ret := _m.Called(_a0, _a1)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, build.DeleteTemplateArgs) error); ok {
r0 = rf(_a0, _a1)
} else {
r0 = ret.Error(0)
}
return r0
} | [
-0.23876704275608063,
-0.14128896594047546,
0.5536989569664001,
-0.7971855998039246,
-0.19707538187503815,
-0.2970321476459503,
0.8878525495529175,
0.6988696455955505,
0.18904253840446472,
0.18402010202407837,
0.3099643588066101,
-0.4551990032196045,
-0.22572380304336548,
0.988161742687225... |
func (_m *Client) GetArtifact(_a0 context.Context, _a1 build.GetArtifactArgs) (*build.BuildArtifact, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.BuildArtifact
if rf, ok := ret.Get(0).(func(context.Context, build.GetArtifactArgs) *build.BuildArtifact); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil ... | [
0.038458384573459625,
-0.3472960293292999,
0.5389111042022705,
-0.5083662867546082,
0.6026226282119751,
0.009565518237650394,
1.4566658735275269,
0.46218299865722656,
0.1169310063123703,
0.030696392059326172,
-0.09157069027423859,
0.6059632301330566,
0.2760849893093109,
-0.3860856592655182... |
func (_m *Client) GetArtifactContentZip(_a0 context.Context, _a1 build.GetArtifactContentZipArgs) (io.ReadCloser, error) {
ret := _m.Called(_a0, _a1)
var r0 io.ReadCloser
if rf, ok := ret.Get(0).(func(context.Context, build.GetArtifactContentZipArgs) io.ReadCloser); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0... | [
-0.28604939579963684,
-0.6631244421005249,
0.686866283416748,
-0.256018728017807,
-0.3391960859298706,
-0.42468804121017456,
1.2136726379394531,
0.31936973333358765,
-0.3118986487388611,
0.7401284575462341,
0.558086097240448,
-0.5094772577285767,
0.7329108715057373,
-1.211383581161499,
0... |
func (_m *Client) GetArtifacts(_a0 context.Context, _a1 build.GetArtifactsArgs) (*[]build.BuildArtifact, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.BuildArtifact
if rf, ok := ret.Get(0).(func(context.Context, build.GetArtifactsArgs) *[]build.BuildArtifact); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0... | [
-0.3289235830307007,
-0.25654304027557373,
0.5588854551315308,
-0.5980976819992065,
0.4904506206512451,
-0.20245030522346497,
1.4454922676086426,
0.29864978790283203,
0.31980016827583313,
0.027605922892689705,
0.30449214577674866,
0.49950599670410156,
0.18473200500011444,
0.056970708072185... |
func (_m *Client) GetAttachment(_a0 context.Context, _a1 build.GetAttachmentArgs) (io.ReadCloser, error) {
ret := _m.Called(_a0, _a1)
var r0 io.ReadCloser
if rf, ok := ret.Get(0).(func(context.Context, build.GetAttachmentArgs) io.ReadCloser); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.G... | [
-0.5043593049049377,
-0.6770510673522949,
0.8652428388595581,
-0.5310965180397034,
-0.06920994073152542,
0.0781562402844429,
1.408604621887207,
-0.3353250026702881,
-0.32389989495277405,
0.36068543791770935,
0.9005445241928101,
0.09278611838817596,
0.2697949707508087,
0.451238751411438,
... |
func (_m *Client) GetAttachments(_a0 context.Context, _a1 build.GetAttachmentsArgs) (*[]build.Attachment, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.Attachment
if rf, ok := ret.Get(0).(func(context.Context, build.GetAttachmentsArgs) *[]build.Attachment); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) !... | [
-0.2940230965614319,
-0.1426754891872406,
0.7159861326217651,
-0.4459451138973236,
0.3482396900653839,
0.03275957703590393,
1.4041118621826172,
-0.5017222762107849,
0.16749481856822968,
0.010562146082520485,
0.39146754145622253,
-0.051455188542604446,
-0.03332310914993286,
0.52137994766235... |
func (_m *Client) GetBuild(_a0 context.Context, _a1 build.GetBuildArgs) (*build.Build, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.Build
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildArgs) *build.Build); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*build.Buil... | [
0.32402026653289795,
-0.4244843125343323,
0.5725384950637817,
-0.2677919864654541,
0.7467162013053894,
0.31698620319366455,
1.1509450674057007,
0.13990959525108337,
-0.1316157579421997,
-0.15551011264324188,
0.5696149468421936,
0.5587151646614075,
0.16050197184085846,
0.3880818784236908,
... |
func (_m *Client) GetBuildBadge(_a0 context.Context, _a1 build.GetBuildBadgeArgs) (*build.BuildBadge, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.BuildBadge
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildBadgeArgs) *build.BuildBadge); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
... | [
-0.07094576954841614,
-0.5023036003112793,
0.7536584138870239,
0.14154492318630219,
0.800569474697113,
0.09046963602304459,
0.7548993825912476,
0.0834568589925766,
-0.2003835290670395,
0.1333484947681427,
-0.0033334684558212757,
0.5626803040504456,
-0.2996518611907959,
0.43816936016082764,... |
func (_m *Client) GetBuildBadgeData(_a0 context.Context, _a1 build.GetBuildBadgeDataArgs) (*string, error) {
ret := _m.Called(_a0, _a1)
var r0 *string
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildBadgeDataArgs) *string); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).... | [
0.06081880256533623,
-0.25444960594177246,
0.6012402176856995,
-0.4804399311542511,
0.36537453532218933,
0.5998498797416687,
0.5385604500770569,
0.06379596889019012,
-0.1574310064315796,
-0.11733745783567429,
-0.2110777646303177,
0.8624273538589478,
-0.08353909105062485,
0.5209473371505737... |
func (_m *Client) GetBuildChanges(_a0 context.Context, _a1 build.GetBuildChangesArgs) (*build.GetBuildChangesResponseValue, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.GetBuildChangesResponseValue
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildChangesArgs) *build.GetBuildChangesResponseValue); o... | [
-0.4346889853477478,
-0.41545242071151733,
0.7345248460769653,
-0.4309726357460022,
0.1345984786748886,
0.09159281849861145,
1.1517987251281738,
-0.10706693679094315,
0.17685522139072418,
-0.12014247477054596,
-0.05531398206949234,
0.4669896364212036,
0.04542804881930351,
0.495291650295257... |
func (_m *Client) GetBuildController(_a0 context.Context, _a1 build.GetBuildControllerArgs) (*build.BuildController, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.BuildController
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildControllerArgs) *build.BuildController); ok {
r0 = rf(_a0, _a1)
} els... | [
0.2600732445716858,
-0.5940710306167603,
0.6752521991729736,
-0.5571272373199463,
0.21780772507190704,
0.1367398351430893,
1.543996810913086,
-0.3764989972114563,
0.024287108331918716,
-0.3297964632511139,
-0.07259464263916016,
0.45405033230781555,
0.38407644629478455,
0.4382570683956146,
... |
func (_m *Client) GetBuildControllers(_a0 context.Context, _a1 build.GetBuildControllersArgs) (*[]build.BuildController, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.BuildController
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildControllersArgs) *[]build.BuildController); ok {
r0 = rf(_a0, _a... | [
-0.17505694925785065,
-0.8790451288223267,
0.7175289988517761,
-0.4551764726638794,
0.5272725224494934,
-0.037112757563591,
1.3694154024124146,
-0.03792152553796768,
0.14231425523757935,
-0.3252769708633423,
-0.42193204164505005,
0.6190081834793091,
-0.00594799779355526,
0.2946824133396148... |
func (_m *Client) GetBuildLog(_a0 context.Context, _a1 build.GetBuildLogArgs) (io.ReadCloser, error) {
ret := _m.Called(_a0, _a1)
var r0 io.ReadCloser
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildLogArgs) io.ReadCloser); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).... | [
0.08947982639074326,
-0.4756065011024475,
0.6290666460990906,
-0.4161149263381958,
-0.09829100966453552,
0.46435391902923584,
0.8557357788085938,
0.20326778292655945,
-0.4658849537372589,
0.26144731044769287,
0.03823024407029152,
0.4748590290546417,
0.5829554796218872,
0.32546934485435486,... |
func (_m *Client) GetBuildLogLines(_a0 context.Context, _a1 build.GetBuildLogLinesArgs) (*[]string, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]string
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildLogLinesArgs) *[]string); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(... | [
0.225068137049675,
-0.23490558564662933,
0.335041344165802,
-0.6079727411270142,
0.25280502438545227,
0.533210813999176,
0.29207202792167664,
0.330377459526062,
-0.16702741384506226,
0.29216769337654114,
-0.22026120126247406,
0.5363401174545288,
0.3575509488582611,
0.04642731696367264,
0... |
func (_m *Client) GetBuildLogZip(_a0 context.Context, _a1 build.GetBuildLogZipArgs) (io.ReadCloser, error) {
ret := _m.Called(_a0, _a1)
var r0 io.ReadCloser
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildLogZipArgs) io.ReadCloser); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = re... | [
-0.08368286490440369,
-0.4676010310649872,
0.6047279834747314,
-0.4047781229019165,
-0.08411768823862076,
0.3496326506137848,
0.9629286527633667,
0.38672325015068054,
-0.024529382586479187,
0.07852650433778763,
-0.1847636103630066,
0.30762800574302673,
0.2734186053276062,
-0.00144350226037... |
func (_m *Client) GetBuildLogs(_a0 context.Context, _a1 build.GetBuildLogsArgs) (*[]build.BuildLog, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.BuildLog
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildLogsArgs) *[]build.BuildLog); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r... | [
-0.13471540808677673,
-0.46100544929504395,
0.4906228482723236,
-0.2640712857246399,
0.19257277250289917,
0.35924896597862244,
0.5627269744873047,
0.10227030515670776,
-0.18278175592422485,
0.4060339331626892,
-0.14216309785842896,
0.8549308180809021,
0.027145618572831154,
0.37053382396698... |
func (_m *Client) GetBuildLogsZip(_a0 context.Context, _a1 build.GetBuildLogsZipArgs) (io.ReadCloser, error) {
ret := _m.Called(_a0, _a1)
var r0 io.ReadCloser
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildLogsZipArgs) io.ReadCloser); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 =... | [
-0.2870960235595703,
-0.46809378266334534,
0.6631114482879639,
-0.1568991094827652,
-0.587760865688324,
0.07979083806276321,
0.8125613927841187,
0.3597017228603363,
0.08535788208246231,
0.46763113141059875,
0.3882490396499634,
-0.0756172388792038,
0.4342196583747864,
-0.48991817235946655,
... |
func (_m *Client) GetBuildOptionDefinitions(_a0 context.Context, _a1 build.GetBuildOptionDefinitionsArgs) (*[]build.BuildOptionDefinition, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.BuildOptionDefinition
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildOptionDefinitionsArgs) *[]build.BuildOptio... | [
-0.21100494265556335,
-0.20804430544376373,
0.44592759013175964,
-0.30362555384635925,
0.6503164768218994,
0.3122011423110962,
0.6687092185020447,
0.03385179489850998,
0.010107671841979027,
0.05911731719970703,
-0.47858643531799316,
0.6326513290405273,
0.19673782587051392,
0.45509600639343... |
func (_m *Client) GetBuildProperties(_a0 context.Context, _a1 build.GetBuildPropertiesArgs) (interface{}, error) {
ret := _m.Called(_a0, _a1)
var r0 interface{}
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildPropertiesArgs) interface{}); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r... | [
-0.2627277970314026,
-0.999938428401947,
0.5454283952713013,
-0.33722221851348877,
0.4288085997104645,
0.08919838070869446,
0.8654282093048096,
0.20449312031269073,
-0.29257115721702576,
0.06712978333234787,
0.14259563386440277,
0.32578957080841064,
-0.07409405708312988,
-0.265799969434738... |
func (_m *Client) GetBuildReport(_a0 context.Context, _a1 build.GetBuildReportArgs) (*build.BuildReportMetadata, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.BuildReportMetadata
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildReportArgs) *build.BuildReportMetadata); ok {
r0 = rf(_a0, _a1)
} els... | [
0.24798482656478882,
-0.2334265559911728,
0.6133723855018616,
-0.8940820693969727,
0.8267651796340942,
-0.34983643889427185,
0.915181577205658,
0.5848260521888733,
-0.7120175957679749,
-0.3329801857471466,
-0.11810522526502609,
0.4007872939109802,
-0.18101239204406738,
0.348393976688385,
... |
func (_m *Client) GetBuildReportHtmlContent(_a0 context.Context, _a1 build.GetBuildReportHtmlContentArgs) (io.ReadCloser, error) {
ret := _m.Called(_a0, _a1)
var r0 io.ReadCloser
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildReportHtmlContentArgs) io.ReadCloser); ok {
r0 = rf(_a0, _a1)
} else {
... | [
0.30350834131240845,
0.08304277062416077,
0.5165120959281921,
-0.37419918179512024,
-0.23993419110774994,
-0.03543458506464958,
1.0129634141921997,
0.11846937984228134,
-0.9795385599136353,
0.12210790812969208,
0.32090285420417786,
-0.06672225147485733,
-0.3131227493286133,
-0.065532684326... |
func (_m *Client) GetBuildSettings(_a0 context.Context, _a1 build.GetBuildSettingsArgs) (*build.BuildSettings, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.BuildSettings
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildSettingsArgs) *build.BuildSettings); ok {
r0 = rf(_a0, _a1)
} else {
if ret... | [
-0.32360488176345825,
-0.045234184712171555,
0.5048456192016602,
-0.15021832287311554,
0.23219485580921173,
-0.018498104065656662,
1.035622477531433,
-0.4007672369480133,
-0.10398461669683456,
0.12341596931219101,
-0.23846399784088135,
0.28963708877563477,
-0.34688401222229004,
0.367755025... |
func (_m *Client) GetBuildTags(_a0 context.Context, _a1 build.GetBuildTagsArgs) (*[]string, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]string
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildTagsArgs) *[]string); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*[]strin... | [
0.17374220490455627,
-0.0765470638871193,
0.358189195394516,
-0.5192290544509888,
0.9008917212486267,
0.13157042860984802,
0.8020167946815491,
0.0807599276304245,
-0.6796633005142212,
0.1184859499335289,
-0.27030137181282043,
0.5857583284378052,
-0.006908840965479612,
0.7750452160835266,
... |
func (_m *Client) GetBuildTimeline(_a0 context.Context, _a1 build.GetBuildTimelineArgs) (*build.Timeline, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.Timeline
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildTimelineArgs) *build.Timeline); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil ... | [
-0.2536229193210602,
-0.43777406215667725,
0.4205402433872223,
-0.3496239185333252,
0.3809717893600464,
0.25127843022346497,
0.7413920164108276,
0.1568710058927536,
-0.4017372131347656,
0.1094677746295929,
-0.5500268936157227,
0.1387900859117508,
0.10982377082109451,
0.08870622515678406,
... |
func (_m *Client) GetBuildWorkItemsRefs(_a0 context.Context, _a1 build.GetBuildWorkItemsRefsArgs) (*[]webapi.ResourceRef, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]webapi.ResourceRef
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildWorkItemsRefsArgs) *[]webapi.ResourceRef); ok {
r0 = rf(_a0, _a1)
... | [
-0.4472329914569855,
-0.6000622510910034,
0.5673197507858276,
-0.6631804704666138,
0.5353397727012634,
0.711189866065979,
1.1835581064224243,
0.1872393935918808,
-0.29766520857810974,
-0.09943049401044846,
-0.7570494413375854,
0.05522429198026657,
-0.5470828413963318,
0.09085338562726974,
... |
func (_m *Client) GetBuildWorkItemsRefsFromCommits(_a0 context.Context, _a1 build.GetBuildWorkItemsRefsFromCommitsArgs) (*[]webapi.ResourceRef, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]webapi.ResourceRef
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildWorkItemsRefsFromCommitsArgs) *[]webapi.Resour... | [
0.11604094505310059,
-0.19707368314266205,
0.6746076941490173,
-1.0959469079971313,
0.2848624289035797,
0.20480556786060333,
0.6920208930969238,
-0.39440232515335083,
-0.28020861744880676,
0.2638525664806366,
0.07085860520601273,
-0.09484695643186569,
-0.6792019009590149,
0.264862686395645... |
func (_m *Client) GetBuilds(_a0 context.Context, _a1 build.GetBuildsArgs) (*build.GetBuildsResponseValue, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.GetBuildsResponseValue
if rf, ok := ret.Get(0).(func(context.Context, build.GetBuildsArgs) *build.GetBuildsResponseValue); ok {
r0 = rf(_a0, _a1)
} else {
... | [
-0.2806960940361023,
0.136836439371109,
0.5778713822364807,
-0.4478320777416229,
0.3045831620693207,
0.06122789531946182,
1.0002912282943726,
-0.27203789353370667,
0.4215520918369293,
-0.23119179904460907,
0.567380428314209,
0.44659075140953064,
-0.08838160336017609,
0.44482138752937317,
... |
func (_m *Client) GetChangesBetweenBuilds(_a0 context.Context, _a1 build.GetChangesBetweenBuildsArgs) (*[]build.Change, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.Change
if rf, ok := ret.Get(0).(func(context.Context, build.GetChangesBetweenBuildsArgs) *[]build.Change); ok {
r0 = rf(_a0, _a1)
} else {
... | [
0.2648487985134125,
-0.3681861162185669,
0.4844591021537781,
-0.28623682260513306,
0.16219379007816315,
0.1769307553768158,
0.6175562739372253,
-0.6548511385917664,
0.019744763150811195,
0.06533385068178177,
-0.3034757375717163,
0.6687532067298889,
-0.24394004046916962,
0.6536917686462402,... |
func (_m *Client) GetDefinition(_a0 context.Context, _a1 build.GetDefinitionArgs) (*build.BuildDefinition, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.BuildDefinition
if rf, ok := ret.Get(0).(func(context.Context, build.GetDefinitionArgs) *build.BuildDefinition); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Ge... | [
0.2213810384273529,
-0.23611363768577576,
0.595644474029541,
-0.10929751396179199,
1.0236362218856812,
-0.21158207952976227,
0.6727358102798462,
0.4172864854335785,
-0.2609856128692627,
0.2127048820257187,
-0.08533035963773727,
0.8479526042938232,
0.4035390317440033,
0.6542733907699585,
... |
func (_m *Client) GetDefinitionMetrics(_a0 context.Context, _a1 build.GetDefinitionMetricsArgs) (*[]build.BuildMetric, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.BuildMetric
if rf, ok := ret.Get(0).(func(context.Context, build.GetDefinitionMetricsArgs) *[]build.BuildMetric); ok {
r0 = rf(_a0, _a1)
} els... | [
0.19316928088665009,
0.4124228358268738,
0.4036750793457031,
0.15382273495197296,
0.7725679278373718,
0.06338252127170563,
0.7666445970535278,
0.41735896468162537,
-0.6196628212928772,
0.06716644018888474,
0.14482438564300537,
0.6663993000984192,
-0.07546822726726532,
0.8251136541366577,
... |
func (_m *Client) GetDefinitionProperties(_a0 context.Context, _a1 build.GetDefinitionPropertiesArgs) (interface{}, error) {
ret := _m.Called(_a0, _a1)
var r0 interface{}
if rf, ok := ret.Get(0).(func(context.Context, build.GetDefinitionPropertiesArgs) interface{}); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0... | [
-0.06660321354866028,
-0.29227638244628906,
0.4128537178039551,
-0.18156933784484863,
0.607376754283905,
-0.05256488919258118,
0.7399497032165527,
0.30218103528022766,
-0.38569387793540955,
0.20434533059597015,
0.19637955725193024,
0.2860944867134094,
0.3737589418888092,
0.3209923505783081... |
func (_m *Client) GetDefinitionResources(_a0 context.Context, _a1 build.GetDefinitionResourcesArgs) (*[]build.DefinitionResourceReference, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.DefinitionResourceReference
if rf, ok := ret.Get(0).(func(context.Context, build.GetDefinitionResourcesArgs) *[]build.Definit... | [
0.11526080965995789,
-0.1851309835910797,
0.38447001576423645,
-0.14909347891807556,
0.43715599179267883,
-0.39177170395851135,
0.9036146402359009,
0.4285505414009094,
0.09173416346311569,
0.22540292143821716,
0.12432146817445755,
-0.21933501958847046,
0.12070037424564362,
0.82842946052551... |
func (_m *Client) GetDefinitionRevisions(_a0 context.Context, _a1 build.GetDefinitionRevisionsArgs) (*[]build.BuildDefinitionRevision, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.BuildDefinitionRevision
if rf, ok := ret.Get(0).(func(context.Context, build.GetDefinitionRevisionsArgs) *[]build.BuildDefinition... | [
0.18981049954891205,
0.4481395184993744,
0.35212960839271545,
-0.6013034582138062,
0.9262409210205078,
-0.27960166335105896,
0.24984174966812134,
0.5608566403388977,
-0.016590623185038567,
0.17937907576560974,
-0.014156163670122623,
0.5021263957023621,
0.33783912658691406,
0.59614998102188... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.