text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (_m *Client) GetDefinitionTags(_a0 context.Context, _a1 build.GetDefinitionTagsArgs) (*[]string, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]string
if rf, ok := ret.Get(0).(func(context.Context, build.GetDefinitionTagsArgs) *[]string); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.G... | [
0.30562347173690796,
0.4438544809818268,
0.2826330363750458,
-0.1512436717748642,
0.806709885597229,
-0.5093566179275513,
0.21871104836463928,
0.11851702630519867,
-0.8030601143836975,
0.51454758644104,
-0.16934175789356232,
0.3680714964866638,
0.17791993916034698,
1.2613412141799927,
0.... |
func (_m *Client) GetDefinitions(_a0 context.Context, _a1 build.GetDefinitionsArgs) (*build.GetDefinitionsResponseValue, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.GetDefinitionsResponseValue
if rf, ok := ret.Get(0).(func(context.Context, build.GetDefinitionsArgs) *build.GetDefinitionsResponseValue); ok {
... | [
-0.15975341200828552,
0.3994848430156708,
0.4024641513824463,
-0.5753737092018127,
0.8991948962211609,
-0.4307723939418793,
0.6903269290924072,
-0.2043810486793518,
0.13005898892879486,
-0.402137815952301,
0.020714066922664642,
-0.12355329841375351,
0.2896420359611511,
0.9941884279251099,
... |
func (_m *Client) GetFile(_a0 context.Context, _a1 build.GetFileArgs) (io.ReadCloser, error) {
ret := _m.Called(_a0, _a1)
var r0 io.ReadCloser
if rf, ok := ret.Get(0).(func(context.Context, build.GetFileArgs) io.ReadCloser); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(io.ReadClos... | [
-0.08923449367284775,
-0.19813594222068787,
0.7562412619590759,
-0.44330206513404846,
0.38371992111206055,
0.0075758411549031734,
1.0405855178833008,
0.49065136909484863,
-0.6947628855705261,
0.02974563278257847,
0.8724605441093445,
0.1591673046350479,
0.06524120271205902,
0.62614250183105... |
func (_m *Client) GetFileContents(_a0 context.Context, _a1 build.GetFileContentsArgs) (io.ReadCloser, error) {
ret := _m.Called(_a0, _a1)
var r0 io.ReadCloser
if rf, ok := ret.Get(0).(func(context.Context, build.GetFileContentsArgs) io.ReadCloser); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 =... | [
-0.1467006951570511,
-0.48045921325683594,
0.8067283630371094,
-0.22000792622566223,
-0.2827353775501251,
-0.32285234332084656,
0.9404070973396301,
-0.03668989613652229,
-0.601098895072937,
-0.028042582795023918,
0.5862641930580139,
-0.17791621387004852,
0.03236418217420578,
0.579290270805... |
func (_m *Client) GetFolders(_a0 context.Context, _a1 build.GetFoldersArgs) (*[]build.Folder, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.Folder
if rf, ok := ret.Get(0).(func(context.Context, build.GetFoldersArgs) *[]build.Folder); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(... | [
-0.49996665120124817,
0.06611918658018112,
0.7189970016479492,
-0.3635924756526947,
0.7428669929504395,
-0.0014222190948203206,
1.5387036800384521,
0.00014032093167770654,
-0.02343902364373207,
-0.06393729150295258,
0.5916255116462708,
0.011102255433797836,
-0.3520883321762085,
0.802930176... |
func (_m *Client) GetLatestBuild(_a0 context.Context, _a1 build.GetLatestBuildArgs) (*build.Build, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.Build
if rf, ok := ret.Get(0).(func(context.Context, build.GetLatestBuildArgs) *build.Build); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.G... | [
0.03079274669289589,
-0.5892826914787292,
0.5032504200935364,
-0.36821097135543823,
0.5386982560157776,
0.4513281285762787,
0.5467369556427002,
0.21421203017234802,
-0.1004338338971138,
0.11832188814878464,
0.1588408350944519,
0.37480780482292175,
0.1746150553226471,
0.3138592839241028,
... |
func (_m *Client) GetPathContents(_a0 context.Context, _a1 build.GetPathContentsArgs) (*[]build.SourceRepositoryItem, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.SourceRepositoryItem
if rf, ok := ret.Get(0).(func(context.Context, build.GetPathContentsArgs) *[]build.SourceRepositoryItem); ok {
r0 = rf(_a0,... | [
-0.2271914929151535,
-0.37969884276390076,
0.6647316217422485,
-0.325985848903656,
0.0364348366856575,
-0.05701686069369316,
1.1663919687271118,
-0.07916861772537231,
-0.3152083158493042,
0.4596034586429596,
0.10722454637289047,
-0.5455446243286133,
-0.4529728293418884,
0.1582515388727188,... |
func (_m *Client) GetProjectMetrics(_a0 context.Context, _a1 build.GetProjectMetricsArgs) (*[]build.BuildMetric, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.BuildMetric
if rf, ok := ret.Get(0).(func(context.Context, build.GetProjectMetricsArgs) *[]build.BuildMetric); ok {
r0 = rf(_a0, _a1)
} else {
if ... | [
-0.22185108065605164,
0.46562764048576355,
0.6830040216445923,
-0.07977902144193649,
0.12459705024957657,
0.4091642200946808,
1.0302772521972656,
0.36579084396362305,
-0.4753968417644501,
0.5725152492523193,
0.3183397650718689,
0.20135249197483063,
-0.8131920099258423,
0.12279412895441055,... |
func (_m *Client) GetProjectResources(_a0 context.Context, _a1 build.GetProjectResourcesArgs) (*[]build.DefinitionResourceReference, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.DefinitionResourceReference
if rf, ok := ret.Get(0).(func(context.Context, build.GetProjectResourcesArgs) *[]build.DefinitionResour... | [
-0.05921528488397598,
0.08246544748544693,
0.5710872411727905,
-0.17714673280715942,
-0.04792765527963638,
0.050890661776065826,
1.1223771572113037,
0.5878651738166809,
0.08402931690216064,
0.5045905113220215,
0.2643912732601166,
-0.20533321797847748,
-0.4197193682193756,
0.235275939106941... |
func (_m *Client) GetPullRequest(_a0 context.Context, _a1 build.GetPullRequestArgs) (*build.PullRequest, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.PullRequest
if rf, ok := ret.Get(0).(func(context.Context, build.GetPullRequestArgs) *build.PullRequest); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != n... | [
-0.4801708161830902,
-0.07621467858552933,
0.7255563139915466,
-0.6687886714935303,
0.3335731625556946,
-0.22214674949645996,
0.32701992988586426,
0.456754207611084,
0.20231278240680695,
0.3206580877304077,
0.3851846158504486,
0.5034738779067993,
0.6697712540626526,
0.33997270464897156,
... |
func (_m *Client) GetResourceUsage(_a0 context.Context, _a1 build.GetResourceUsageArgs) (*build.BuildResourceUsage, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.BuildResourceUsage
if rf, ok := ret.Get(0).(func(context.Context, build.GetResourceUsageArgs) *build.BuildResourceUsage); ok {
r0 = rf(_a0, _a1)
} ... | [
-0.167460635304451,
-0.49962878227233887,
0.598975419998169,
-0.8946084380149841,
0.3319481313228607,
-0.47274690866470337,
1.0786335468292236,
0.19755136966705322,
0.17405733466148376,
0.2682499289512634,
0.5759512186050415,
0.05876057595014572,
0.00006130409747129306,
0.5852414965629578,... |
func (_m *Client) GetStatusBadge(_a0 context.Context, _a1 build.GetStatusBadgeArgs) (*string, error) {
ret := _m.Called(_a0, _a1)
var r0 *string
if rf, ok := ret.Get(0).(func(context.Context, build.GetStatusBadgeArgs) *string); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*string)... | [
0.012215987779200077,
-0.06773577630519867,
0.5726816654205322,
0.21071140468120575,
0.34259647130966187,
0.14368440210819244,
0.3527456223964691,
0.7369551062583923,
-0.3581188917160034,
0.5946572422981262,
-0.6034793853759766,
0.537760317325592,
0.420976459980011,
0.8786991834640503,
0... |
func (_m *Client) GetTags(_a0 context.Context, _a1 build.GetTagsArgs) (*[]string, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]string
if rf, ok := ret.Get(0).(func(context.Context, build.GetTagsArgs) *[]string); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*[]string)
}
}
var... | [
0.09037865698337555,
0.3484552204608917,
0.5893031358718872,
-0.675848662853241,
0.6001355648040771,
-0.15151803195476532,
0.6234224438667297,
-0.08134183287620544,
-0.12250379472970963,
0.3126278817653656,
0.6190933585166931,
0.4853653907775879,
0.05022493377327919,
0.9849460124969482,
... |
func (_m *Client) GetTemplate(_a0 context.Context, _a1 build.GetTemplateArgs) (*build.BuildDefinitionTemplate, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.BuildDefinitionTemplate
if rf, ok := ret.Get(0).(func(context.Context, build.GetTemplateArgs) *build.BuildDefinitionTemplate); ok {
r0 = rf(_a0, _a1)
} ... | [
-0.039295293390750885,
0.009802507236599922,
0.8172399401664734,
-0.24785704910755157,
0.49149954319000244,
-0.4574548304080963,
0.8182774782180786,
0.5283011794090271,
0.003506105626001954,
0.18562671542167664,
0.05060695484280586,
0.293583482503891,
0.038189828395843506,
0.49657508730888... |
func (_m *Client) GetTemplates(_a0 context.Context, _a1 build.GetTemplatesArgs) (*[]build.BuildDefinitionTemplate, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.BuildDefinitionTemplate
if rf, ok := ret.Get(0).(func(context.Context, build.GetTemplatesArgs) *[]build.BuildDefinitionTemplate); ok {
r0 = rf(_a0,... | [
0.043913230299949646,
-0.15036043524742126,
0.7749825716018677,
-0.44716301560401917,
0.48174870014190674,
-0.42058083415031433,
0.9557938575744629,
0.13020452857017517,
0.5166633725166321,
0.26295021176338196,
0.012737520039081573,
0.3806798458099365,
-0.2023722380399704,
0.88171833753585... |
func (_m *Client) GetWorkItemsBetweenBuilds(_a0 context.Context, _a1 build.GetWorkItemsBetweenBuildsArgs) (*[]webapi.ResourceRef, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]webapi.ResourceRef
if rf, ok := ret.Get(0).(func(context.Context, build.GetWorkItemsBetweenBuildsArgs) *[]webapi.ResourceRef); ok {
r0 = r... | [
-0.15628749132156372,
-0.45925915241241455,
0.6286072731018066,
-0.2123136669397354,
0.32729819416999817,
0.6748818159103394,
1.0892267227172852,
-0.6166051626205444,
-0.1446664184331894,
-0.21782496571540833,
-0.7274623513221741,
-0.06372401118278503,
-0.8889316916465759,
0.17274197936058... |
func (_m *Client) ListBranches(_a0 context.Context, _a1 build.ListBranchesArgs) (*[]string, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]string
if rf, ok := ret.Get(0).(func(context.Context, build.ListBranchesArgs) *[]string); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*[]strin... | [
0.04620346426963806,
-0.21278569102287292,
0.47551342844963074,
-0.8700358867645264,
-0.12728485465049744,
-0.21832819283008575,
0.460310697555542,
-0.37286216020584106,
-0.051739051938056946,
0.47097399830818176,
0.47472676634788513,
-0.06681608408689499,
-0.30924540758132935,
0.434571236... |
func (_m *Client) ListRepositories(_a0 context.Context, _a1 build.ListRepositoriesArgs) (*build.SourceRepositories, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.SourceRepositories
if rf, ok := ret.Get(0).(func(context.Context, build.ListRepositoriesArgs) *build.SourceRepositories); ok {
r0 = rf(_a0, _a1)
} ... | [
-0.48450469970703125,
0.007988227531313896,
0.5874284505844116,
-1.2835619449615479,
-0.30603089928627014,
-0.5988478064537048,
0.5710488557815552,
0.6836232542991638,
0.7393335700035095,
0.13798931241035461,
-0.036379653960466385,
-0.4731104075908661,
0.12169381976127625,
0.57739508152008... |
func (_m *Client) ListSourceProviders(_a0 context.Context, _a1 build.ListSourceProvidersArgs) (*[]build.SourceProviderAttributes, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.SourceProviderAttributes
if rf, ok := ret.Get(0).(func(context.Context, build.ListSourceProvidersArgs) *[]build.SourceProviderAttribut... | [
-1.2347506284713745,
-0.5399017333984375,
0.4088284373283386,
-0.9971926212310791,
-0.16548079252243042,
0.05883216857910156,
0.511896014213562,
0.5018073320388794,
0.9479537606239319,
1.0188053846359253,
-0.40994682908058167,
0.11283665150403976,
-0.464439332485199,
0.4807160794734955,
... |
func (_m *Client) ListWebhooks(_a0 context.Context, _a1 build.ListWebhooksArgs) (*[]build.RepositoryWebhook, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.RepositoryWebhook
if rf, ok := ret.Get(0).(func(context.Context, build.ListWebhooksArgs) *[]build.RepositoryWebhook); ok {
r0 = rf(_a0, _a1)
} else {
... | [
-0.06189655512571335,
-0.17962443828582764,
0.49308958649635315,
-0.7443909049034119,
0.126580148935318,
-0.15520675480365753,
1.0748035907745361,
0.5458957552909851,
0.2898986339569092,
0.36226046085357666,
0.1307157278060913,
0.0036755092442035675,
0.06379449367523193,
0.9177647829055786... |
func (_m *Client) QueueBuild(_a0 context.Context, _a1 build.QueueBuildArgs) (*build.Build, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.Build
if rf, ok := ret.Get(0).(func(context.Context, build.QueueBuildArgs) *build.Build); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*buil... | [
0.43797361850738525,
-0.8366969227790833,
0.41633298993110657,
-0.691419780254364,
0.10643161833286285,
0.25093623995780945,
0.5588177442550659,
0.26569661498069763,
-0.01873130537569523,
-0.28907421231269836,
0.4448774456977844,
0.5819225907325745,
0.15317291021347046,
0.4533548951148987,... |
func (_m *Client) RestoreDefinition(_a0 context.Context, _a1 build.RestoreDefinitionArgs) (*build.BuildDefinition, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.BuildDefinition
if rf, ok := ret.Get(0).(func(context.Context, build.RestoreDefinitionArgs) *build.BuildDefinition); ok {
r0 = rf(_a0, _a1)
} else {... | [
0.2532734274864197,
-0.5497633814811707,
0.496622771024704,
-0.46535781025886536,
0.1494004726409912,
-0.49165183305740356,
0.47699618339538574,
0.6867491006851196,
-0.14099310338497162,
0.30412039160728455,
-0.4140931963920593,
0.6710677146911621,
0.0217098630964756,
0.028168871998786926,... |
func (_m *Client) RestoreWebhooks(_a0 context.Context, _a1 build.RestoreWebhooksArgs) error {
ret := _m.Called(_a0, _a1)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, build.RestoreWebhooksArgs) error); ok {
r0 = rf(_a0, _a1)
} else {
r0 = ret.Error(0)
}
return r0
} | [
0.022152826189994812,
-0.04308054596185684,
0.39996472001075745,
-0.858391523361206,
0.22346480190753937,
-0.11437837034463882,
1.5313891172409058,
0.688674807548523,
0.03153887391090393,
0.5030654072761536,
0.3503755033016205,
-0.6007813215255737,
-1.0907679796218872,
0.43251311779022217,... |
func (_m *Client) SaveTemplate(_a0 context.Context, _a1 build.SaveTemplateArgs) (*build.BuildDefinitionTemplate, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.BuildDefinitionTemplate
if rf, ok := ret.Get(0).(func(context.Context, build.SaveTemplateArgs) *build.BuildDefinitionTemplate); ok {
r0 = rf(_a0, _a1)
... | [
-0.44002318382263184,
-0.40101611614227295,
0.6396146416664124,
-0.3194761276245117,
0.3641814589500427,
-0.1438901126384735,
0.9169438481330872,
0.7343096137046814,
0.022677846252918243,
0.6259505748748779,
-0.5985690951347351,
-0.160920187830925,
-0.28872108459472656,
0.7584466338157654,... |
func (_m *Client) UpdateBuild(_a0 context.Context, _a1 build.UpdateBuildArgs) (*build.Build, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.Build
if rf, ok := ret.Get(0).(func(context.Context, build.UpdateBuildArgs) *build.Build); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*b... | [
-0.03718245029449463,
-1.0837254524230957,
0.47055092453956604,
-0.46657341718673706,
-0.13969464600086212,
0.5833896994590759,
0.7899333238601685,
0.37855958938598633,
-0.22819657623767853,
0.20453444123268127,
0.4388088285923004,
0.40472611784935,
0.043439581990242004,
0.2712274789810180... |
func (_m *Client) UpdateBuildProperties(_a0 context.Context, _a1 build.UpdateBuildPropertiesArgs) (interface{}, error) {
ret := _m.Called(_a0, _a1)
var r0 interface{}
if rf, ok := ret.Get(0).(func(context.Context, build.UpdateBuildPropertiesArgs) interface{}); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != n... | [
-0.4398784935474396,
-1.4546654224395752,
0.4067283868789673,
-0.6106947660446167,
-0.3722879886627197,
0.25919756293296814,
0.8462234139442444,
0.4207251965999603,
-0.4387398958206177,
0.566943347454071,
0.10289638489484787,
0.1992637813091278,
-0.19141210615634918,
-0.31664255261421204,
... |
func (_m *Client) UpdateBuildSettings(_a0 context.Context, _a1 build.UpdateBuildSettingsArgs) (*build.BuildSettings, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.BuildSettings
if rf, ok := ret.Get(0).(func(context.Context, build.UpdateBuildSettingsArgs) *build.BuildSettings); ok {
r0 = rf(_a0, _a1)
} else {... | [
-0.5795968770980835,
-0.3437202274799347,
0.34910324215888977,
-0.37323349714279175,
-0.6498266458511353,
0.25287938117980957,
0.9835218787193298,
-0.22889265418052673,
-0.20788027346134186,
0.6714919209480286,
-0.2990786135196686,
0.05594981089234352,
-0.3219858705997467,
0.09505242854356... |
func (_m *Client) UpdateBuilds(_a0 context.Context, _a1 build.UpdateBuildsArgs) (*[]build.Build, error) {
ret := _m.Called(_a0, _a1)
var r0 *[]build.Build
if rf, ok := ret.Get(0).(func(context.Context, build.UpdateBuildsArgs) *[]build.Build); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.G... | [
-0.6301274299621582,
-0.4047706127166748,
0.38137030601501465,
-0.36476126313209534,
-0.3962242901325226,
0.4343149960041046,
0.8002438545227051,
-0.02611101232469082,
-0.2487603724002838,
0.5203823447227478,
0.18636396527290344,
0.23528935015201569,
-0.39970600605010986,
0.302064269781112... |
func (_m *Client) UpdateDefinition(_a0 context.Context, _a1 build.UpdateDefinitionArgs) (*build.BuildDefinition, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.BuildDefinition
if rf, ok := ret.Get(0).(func(context.Context, build.UpdateDefinitionArgs) *build.BuildDefinition); ok {
r0 = rf(_a0, _a1)
} else {
... | [
-0.10334527492523193,
-0.8246756792068481,
0.5731361508369446,
-0.18973083794116974,
-0.1417417675256729,
-0.16760863363742828,
0.6388384699821472,
0.44640594720840454,
-0.44689175486564636,
0.843623161315918,
-0.36751100420951843,
0.4736509621143341,
0.5247626900672913,
0.5090328454971313... |
func (_m *Client) UpdateDefinitionProperties(_a0 context.Context, _a1 build.UpdateDefinitionPropertiesArgs) (interface{}, error) {
ret := _m.Called(_a0, _a1)
var r0 interface{}
if rf, ok := ret.Get(0).(func(context.Context, build.UpdateDefinitionPropertiesArgs) interface{}); ok {
r0 = rf(_a0, _a1)
} else {
if ... | [
-0.2694500982761383,
-0.860206127166748,
0.41348809003829956,
-0.31055906414985657,
-0.45882564783096313,
0.048254478722810745,
0.8072262406349182,
0.33281421661376953,
-0.6282170414924622,
1.0002552270889282,
0.11249131709337234,
-0.006536535453051329,
0.40243691205978394,
0.1073653399944... |
func (_m *Client) UpdateFolder(_a0 context.Context, _a1 build.UpdateFolderArgs) (*build.Folder, error) {
ret := _m.Called(_a0, _a1)
var r0 *build.Folder
if rf, ok := ret.Get(0).(func(context.Context, build.UpdateFolderArgs) *build.Folder); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(... | [
-0.9040557146072388,
-0.7548817992210388,
0.7283851504325867,
-0.3599308133125305,
-0.1675756573677063,
0.3085823953151703,
1.2156846523284912,
0.21611830592155457,
-0.5986080765724182,
0.39405596256256104,
0.3163253962993622,
0.028125980868935585,
0.08728501200675964,
0.932437002658844,
... |
func main() {
flag.Parse()
proxy := launcher.NewProxy()
if !*quiet {
proxy.Logger = os.Stdout
}
l, err := net.Listen("tcp", *addr)
if err != nil {
utils.E(err)
}
fmt.Println("Remote control url is", "ws://"+l.Addr().String())
srv := &http.Server{Handler: proxy}
utils.E(srv.Serve(l))
} | [
0.8686184883117676,
-0.2066361904144287,
0.7200056314468384,
-0.36534997820854187,
0.20315445959568024,
0.45940864086151123,
-0.036672063171863556,
0.5510769486427307,
-0.5498493313789368,
-0.4222436547279358,
-0.03942672535777092,
0.4163564443588257,
-0.20475848019123077,
0.09134876728057... |
func (t *StoreCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response {
logger.Info("########### example_cc0 Invoke ###########")
function, args := stub.GetFunctionAndParameters()
if function == "load" {
// queries an entity state
return t.load(stub, args)
} else if function == "save" {
return t.save(stub,... | [
-0.06157880648970604,
0.03705385699868202,
0.7050954699516296,
0.05179405212402344,
0.12550388276576996,
-0.6164036393165588,
0.30262473225593567,
-0.3182106018066406,
0.5034359097480774,
0.10277197510004044,
0.21711984276771545,
0.6453907489776611,
-0.5679798722267151,
0.11709310859441757... |
func (t *StoreCC) load(stub shim.ChaincodeStubInterface, args []string) pb.Response {
var A string // Entities
var err error
if len(args) != 1 {
return shim.Error("Incorrect number of arguments. Expecting name of the person to query")
}
A = args[0]
// Get the state from the ledger
Avalbytes, err := stub.Ge... | [
-0.24698364734649658,
-0.19023269414901733,
0.7346386313438416,
-1.0858536958694458,
-0.16669154167175293,
-0.29134559631347656,
-0.016228245571255684,
-0.4106178879737854,
-0.1765756607055664,
0.35049766302108765,
0.3915029466152191,
-0.24782270193099976,
-0.722703218460083,
-0.1956862211... |
func (t *StoreCC) save(stub shim.ChaincodeStubInterface, args []string) pb.Response {
if len(args) != 2 {
return shim.Error("Incorrect number of arguments. Expecting name of the person to query")
}
key := args[0]
value := args[1]
err := stub.PutState(key, []byte(value))
if err != nil {
return shim.Error("ge... | [
-0.8145065903663635,
0.003301437944173813,
0.6690213680267334,
-0.30316054821014404,
0.10114660114049911,
-0.10954185575246811,
-0.04342283681035042,
-0.5370393991470337,
-0.37751275300979614,
0.6886821389198303,
-0.592861533164978,
-0.2664598226547241,
-1.3594764471054077,
-0.261848986148... |
func NewAnalyzerFingerprint(name string) *AnalyzerFingerprint {
return &AnalyzerFingerprint{
name: name,
}
} | [
0.7936586737632751,
-0.5217628479003906,
-0.020769506692886353,
0.8210868835449219,
-0.6960393190383911,
-0.6153848767280579,
0.3271631896495819,
-0.21266642212867737,
-0.4990411400794983,
-0.5919040441513062,
-0.9773521423339844,
-0.3806689977645874,
-0.7752702832221985,
0.433492749929428... |
func (f *AnalyzerFingerprint) Name() string {
return f.name
} | [
0.46252575516700745,
-1.2546501159667969,
0.3328748643398285,
0.11223148554563522,
-0.057304251939058304,
0.17885971069335938,
0.5095763206481934,
-0.589240550994873,
-0.11737104505300522,
-0.1839541345834732,
-0.07505243271589279,
-0.05872344598174095,
-0.18951308727264404,
0.384448677301... |
func (f *AnalyzerFingerprint) Separator(separator string) *AnalyzerFingerprint {
f.separator = separator
return f
} | [
0.4185788929462433,
-0.47013282775878906,
0.2895984649658203,
0.32053253054618835,
-0.4871312975883484,
-0.028875213116407394,
0.8020055890083313,
0.08738316595554352,
0.7681460976600647,
-1.4835513830184937,
0.4292679727077484,
-0.4790332019329071,
0.2654551863670349,
0.597963273525238,
... |
func (f *AnalyzerFingerprint) MaxOutputSize(maxOutputSize int) *AnalyzerFingerprint {
f.maxOutputSize = &maxOutputSize
return f
} | [
0.2292158603668213,
-0.5722625851631165,
0.3344882130622864,
0.6354871392250061,
-0.6687447428703308,
-0.6552110314369202,
0.7870767712593079,
0.5792046785354614,
0.2553085386753082,
-0.7266889214515686,
-0.05026361718773842,
-0.6095065474510193,
-0.21881552040576935,
-0.012927478179335594... |
func (f *AnalyzerFingerprint) Stopwords(stopwords ...string) *AnalyzerFingerprint {
f.stopwords = append(f.stopwords, stopwords...)
return f
} | [
-0.024556439369916916,
0.2688215970993042,
0.2863122224807739,
-0.060808416455984116,
1.0031156539916992,
0.3682933747768402,
-0.24456147849559784,
-0.12218653410673141,
-0.050351809710264206,
-1.1746132373809814,
-0.028427548706531525,
0.12210407853126526,
-0.3400859534740448,
0.585259437... |
func (f *AnalyzerFingerprint) StopwordsPath(stopwordsPath string) *AnalyzerFingerprint {
f.stopwordsPath = stopwordsPath
return f
} | [
0.14003558456897736,
-0.10147120803594589,
0.18215011060237885,
-0.5693171620368958,
0.15848495066165924,
0.24461406469345093,
1.1523466110229492,
-0.565926730632782,
-0.3346368670463562,
-0.1093631312251091,
-0.31464534997940063,
-0.15553459525108337,
-0.39599186182022095,
0.3245648741722... |
func (f *AnalyzerFingerprint) Source(includeName bool) (interface{}, error) {
// {
// "test": {
// "type": "fingerprint",
// "separator": "text",
// "max_output_size": 255,
// "stopwords": ["_english_", "_russian_"],
// "stopwords_path": "stopwords_english.txt"
// }
// }
options := make(map[string... | [
-0.13469167053699493,
0.46979376673698425,
0.7161625623703003,
-0.007742209825664759,
-1.0148671865463257,
-0.2177916169166565,
1.295977234840393,
0.3268207907676697,
0.20665836334228516,
0.3835357427597046,
-0.29681745171546936,
-0.4040250778198242,
-0.7140708565711975,
0.7446509599685669... |
func (manager *metadataManager) parseMetadataAtContainerCreate(task *apitask.Task, containerName string) Metadata {
return Metadata{
cluster: manager.cluster,
taskMetadata: TaskMetadata{
containerName: containerName,
taskARN: task.Arn,
taskDefinitionFamily: task.Family,
taskDe... | [
0.037460386753082275,
-0.1651126891374588,
0.5417035818099976,
-0.31083887815475464,
0.7229498028755188,
0.27921757102012634,
-0.7579520344734192,
-0.6547914147377014,
-0.954809308052063,
-0.03156328201293945,
-0.7775061130523682,
0.1761162132024765,
0.8711742758750916,
0.5358313322067261,... |
func (manager *metadataManager) parseMetadata(dockerContainer *types.ContainerJSON, task *apitask.Task, containerName string) Metadata {
dockerMD := parseDockerContainerMetadata(task.Arn, containerName, dockerContainer)
return Metadata{
cluster: manager.cluster,
taskMetadata: TaskMetadata{
containerName: ... | [
-0.31293976306915283,
-0.3275952935218811,
0.6912407279014587,
-0.3861181139945984,
0.2389519214630127,
-0.04723185673356056,
-0.4235944151878357,
-0.06293775141239166,
-0.13936810195446014,
0.40810921788215637,
-0.7815984487533569,
0.6014606356620789,
0.4896864593029022,
0.380669832229614... |
func parseDockerContainerMetadata(taskARN string, containerName string, dockerContainer *types.ContainerJSON) DockerContainerMetadata {
if dockerContainer == nil {
seelog.Warnf("Failed to parse container metadata for task %s container %s: container metadata not available or does not exist", taskARN, containerName)
... | [
-0.44731682538986206,
-0.2080904096364975,
0.8117783069610596,
-0.0945507064461708,
-0.025191666558384895,
-0.19828829169273376,
0.3497072458267212,
-0.8987544775009155,
0.13546188175678253,
0.5643287301063538,
-0.2878892421722412,
-0.1225356012582779,
0.7097917795181274,
0.671868801116943... |
func parseNetworkMetadata(settings *types.NetworkSettings, hostConfig *dockercontainer.HostConfig) (NetworkMetadata, error) {
// Network settings and Host configuration should not be missing except due to errors
if settings == nil {
err := fmt.Errorf("parse network metadata: could not find network settings")
retu... | [
-0.39452430605888367,
0.011330774053931236,
0.5280267596244812,
-0.7775896787643433,
0.5816234946250916,
-0.008350356481969357,
-0.37337303161621094,
-0.6869215965270996,
0.05112181603908539,
0.3270629942417145,
-0.42991963028907776,
-0.943653404712677,
-0.14296992123126984,
0.316151618957... |
func (config *Config) IsValid() bool {
if config.Basic.Enabled && config.OAuth2.Enabled {
return false
}
if config.Basic.Enabled && config.X509.Enabled {
return false
}
if config.OAuth2.Enabled && config.X509.Enabled {
return false
}
if !config.Basic.Enabled && !config.OAuth2.Enabled && !config.X509.Ena... | [
-0.509658694267273,
-0.4142328202724457,
0.5879818797111511,
0.6482928395271301,
-0.17759518325328827,
0.5511485934257507,
-0.8276572823524475,
0.44538843631744385,
0.465763121843338,
0.4581356942653656,
-0.3597029447555542,
0.5690292716026306,
-0.8403579592704773,
0.3611435890197754,
1.... |
func expand(path string) ([]string, error) {
if fi, err := os.Stat(path); err != nil {
return nil, err
} else if !fi.IsDir() {
return []string{path}, nil
}
// Read files in directory.
fis, err := ioutil.ReadDir(path)
if err != nil {
return nil, err
}
// Iterate over files and expand.
expanded := make([... | [
-0.428744912147522,
0.4257475733757019,
1.0202571153640747,
0.812609851360321,
-0.15939824283123016,
-0.051974568516016006,
0.3000694811344147,
0.2802944481372833,
0.35572731494903564,
0.34062913060188293,
0.5588400363922119,
-0.05900122597813606,
-0.02757711336016655,
0.957340657711029,
... |
func getOSC() string {
osc := "sh"
if runtime.GOOS == "windows" {
osc = "cmd"
}
return osc
} | [
0.7257205247879028,
-0.26663637161254883,
0.7609466910362244,
0.4030976891517639,
0.42285585403442383,
-0.1585988700389862,
0.7681052088737488,
-0.8250725865364075,
-0.15033039450645447,
-0.40708228945732117,
0.9971956610679626,
0.7857005000114441,
0.9865903854370117,
1.0947669744491577,
... |
func getOSE() string {
ose := "-c"
if runtime.GOOS == "windows" {
ose = "/c"
}
return ose
} | [
-0.1310449093580246,
0.5143486261367798,
0.6978549361228943,
0.6073028445243835,
0.8303265571594238,
-0.16367612779140472,
0.5672914385795593,
-0.6262980699539185,
-0.1935829222202301,
0.02281712368130684,
0.3708604574203491,
0.1844860166311264,
0.13829143345355988,
1.0105615854263306,
0... |
func NewMockRemoteConnectionValidator(ctrl *gomock.Controller) *MockRemoteConnectionValidator {
mock := &MockRemoteConnectionValidator{ctrl: ctrl}
mock.recorder = &MockRemoteConnectionValidatorMockRecorder{mock}
return mock
} | [
-0.0981995165348053,
-0.788158118724823,
0.28381410241127014,
-0.48726415634155273,
-0.6851633787155151,
0.8219647407531738,
-0.2810134291648865,
0.7052129507064819,
0.2134522646665573,
-0.19746193289756775,
-0.4623253345489502,
-0.44032537937164307,
-0.6058288216590881,
0.3573409020900726... |
func (m *MockRemoteConnectionValidator) EXPECT() *MockRemoteConnectionValidatorMockRecorder {
return m.recorder
} | [
0.3588617742061615,
-0.4893060028553009,
0.2760467529296875,
-0.33853450417518616,
-0.06506990641355515,
1.1425889730453491,
-0.6428476572036743,
0.46744802594184875,
0.0270957313477993,
-0.4380008280277252,
0.4406999945640564,
0.6204110980033875,
-0.9882442355155945,
-0.04775815084576607,... |
func (m *MockRemoteConnectionValidator) ValidateRemoteConnectionHTTPConfig(arg0 context.Context, arg1 *internal.RemoteConnectionHTTPConfig) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ValidateRemoteConnectionHTTPConfig", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
} | [
-0.37952926754951477,
-0.5286946296691895,
0.3634546995162964,
-0.468980997800827,
0.10716666281223297,
1.0772291421890259,
0.21163466572761536,
-0.2503335773944855,
-1.4641516208648682,
0.2964267432689667,
-1.2086317539215088,
-0.28899654746055603,
-0.6738927364349365,
1.2815841436386108,... |
func (mr *MockRemoteConnectionValidatorMockRecorder) ValidateRemoteConnectionHTTPConfig(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateRemoteConnectionHTTPConfig", reflect.TypeOf((*MockRemoteConnectionValidator)(nil).ValidateRemoteConnecti... | [
0.09495321661233902,
-0.1485552340745926,
0.3119010329246521,
-0.8537390828132629,
-0.4976167678833008,
1.2634031772613525,
-1.0218541622161865,
-0.20429375767707825,
-0.8137009739875793,
0.7819063663482666,
-0.7487984895706177,
0.2231397181749344,
-0.45718827843666077,
1.4391852617263794,... |
func minimumSwaps(arr []int) int {
var changeRequest bool = true
var changes int
var newArr []int = arr
for changeRequest == true {
changeRequest = false
for idx, elem := range arr {
if idx+1 != elem {
changeRequest = true
newArr[idx] = idx + 1 // the correct value
targetIdx, _ := findIndex(a... | [
-2.070502758026123,
-0.04828229919075966,
0.7211718559265137,
-0.2695502042770386,
-1.2789945602416992,
-0.033924899995326996,
0.37505027651786804,
-0.2817342281341553,
1.1922943592071533,
-0.600531816482544,
0.12672610580921173,
0.5143718719482422,
-0.7477552890777588,
0.7380793690681458,... |
func (o *OperatorDeleteDutyScheduleFromOperatorReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 204:
result := NewOperatorDeleteDutyScheduleFromOperatorNoContent()
if err := result.readResponse(response, consumer, o.formats); err... | [
-0.7280250787734985,
-0.7449358105659485,
0.6004862785339355,
0.02881793864071369,
-0.5738709568977356,
-1.295175552368164,
0.10063920170068741,
0.083692267537117,
0.7281486988067627,
0.32764431834220886,
0.7300897240638733,
-0.22146698832511902,
-0.10502345860004425,
-0.1676698923110962,
... |
func NewOperatorDeleteDutyScheduleFromOperatorNoContent() *OperatorDeleteDutyScheduleFromOperatorNoContent {
return &OperatorDeleteDutyScheduleFromOperatorNoContent{}
} | [
-0.7290614247322083,
-0.16399310529232025,
0.14102131128311157,
-0.49738040566444397,
-1.0945168733596802,
-0.7061335444450378,
0.5141255855560303,
-0.404829740524292,
0.014412017539143562,
-1.1702635288238525,
-0.0755641907453537,
0.4855538606643677,
0.7560397982597351,
0.1951736956834793... |
func NewOperatorDeleteDutyScheduleFromOperatorBadRequest() *OperatorDeleteDutyScheduleFromOperatorBadRequest {
return &OperatorDeleteDutyScheduleFromOperatorBadRequest{}
} | [
-1.087489366531372,
-0.2887480556964874,
0.5876727104187012,
0.2945890426635742,
-0.7837423086166382,
-0.38867905735969543,
-0.14377433061599731,
0.0014398900093510747,
0.23129212856292725,
-1.0598431825637817,
0.33600860834121704,
0.5522746443748474,
1.029215693473816,
0.7198017835617065,... |
func NewOperatorDeleteDutyScheduleFromOperatorNotFound() *OperatorDeleteDutyScheduleFromOperatorNotFound {
return &OperatorDeleteDutyScheduleFromOperatorNotFound{}
} | [
-0.8046860098838806,
-0.8377315998077393,
0.17524024844169617,
-0.4176746904850006,
-0.43440568447113037,
-0.25077101588249207,
0.5380411744117737,
0.6349294185638428,
0.624795138835907,
-0.3657899796962738,
-0.05024902895092964,
0.9051668047904968,
1.0406739711761475,
0.2996983230113983,
... |
func Register(mux *http.ServeMux, token string) {
if token == "" {
return
}
mux.HandleFunc(
fmt.Sprintf("/loaderio-%s.txt", url.PathEscape(token)),
func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "public, max-age=10")
fmt.Fprintf(w, "loaderio-%s\n", token)
},
)
} | [
-0.08730422705411911,
0.5142369270324707,
0.5757034420967102,
0.05776403099298477,
0.47532862424850464,
-0.43790382146835327,
-0.7602512836456299,
0.6722761988639832,
-1.4898626804351807,
-0.5266230702400208,
-0.6069508790969849,
0.6798824071884155,
0.25935956835746765,
0.2562668025493622,... |
func (o *GetAPI24RemoteProtectionGroupSnapshotsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewGetApi24RemoteProtectionGroupSnapshotsOK()
if err := result.readResponse(response, consumer, o.formats); err != nil... | [
-0.4256320595741272,
-0.4522573947906494,
0.5777773857116699,
0.5899844765663147,
-0.32072746753692627,
-0.7916854619979858,
-0.08681418746709824,
-0.43039119243621826,
0.16663120687007904,
0.23503610491752625,
0.15914157032966614,
-0.8023502826690674,
-0.8917135000228882,
-0.4901757240295... |
func NewGetApi24RemoteProtectionGroupSnapshotsOK() *GetApi24RemoteProtectionGroupSnapshotsOK {
return &GetApi24RemoteProtectionGroupSnapshotsOK{}
} | [
-0.426392138004303,
0.30198100209236145,
0.4970942437648773,
1.149921178817749,
-0.724493682384491,
-0.725315272808075,
-0.7869930863380432,
0.010661477223038673,
-0.2591472864151001,
-0.19517000019550323,
-1.3195412158966064,
-0.935714840888977,
0.1850670427083969,
-1.3304764032363892,
... |
func NewGetApi24RemoteProtectionGroupSnapshotsBadRequest() *GetApi24RemoteProtectionGroupSnapshotsBadRequest {
return &GetApi24RemoteProtectionGroupSnapshotsBadRequest{}
} | [
-0.29159316420555115,
-0.3101806640625,
0.8783115744590759,
1.0628581047058105,
-0.4561675488948822,
-0.33575934171676636,
-0.4753052294254303,
-0.040752023458480835,
-0.30105558037757874,
-0.2199593186378479,
-0.7638245224952698,
0.4532550573348999,
-0.434048593044281,
-0.8902875781059265... |
func (se *StorageEndpoint) SaveRule(ruleKey string, rule interface{}) error {
return se.saveJSON(ruleKeyPath(ruleKey), rule)
} | [
-0.6652873754501343,
-0.1447725147008896,
0.2804405987262726,
0.46569961309432983,
1.384617567062378,
0.36661913990974426,
-0.5652649998664856,
0.7416074275970459,
-0.010651185177266598,
0.7549224495887756,
-0.47400742769241333,
0.37446698546409607,
-0.9723590612411499,
0.6692126393318176,... |
func (se *StorageEndpoint) DeleteRule(ruleKey string) error {
return se.Remove(ruleKeyPath(ruleKey))
} | [
-0.14814868569374084,
0.4591112732887268,
0.1572364717721939,
0.5894542932510376,
1.1320505142211914,
0.5093793272972107,
-0.31388288736343384,
0.8682245016098022,
0.04376900941133499,
0.1488426774740219,
0.56104576587677,
0.23226137459278107,
-0.9934075474739075,
0.6928064227104187,
0.0... |
func (se *StorageEndpoint) LoadRuleGroups(f func(k, v string)) error {
return se.loadRangeByPrefix(ruleGroupPath+"/", f)
} | [
-0.7207499742507935,
0.5759457945823669,
0.10749837011098862,
0.26579952239990234,
-0.42153531312942505,
-0.2540791928768158,
0.03304354101419449,
-0.3469991087913513,
-0.7612920999526978,
0.6787773966789246,
-0.0863431766629219,
0.2680817246437073,
-0.7132779955863953,
0.19029515981674194... |
func (se *StorageEndpoint) SaveRuleGroup(groupID string, group interface{}) error {
return se.saveJSON(ruleGroupIDPath(groupID), group)
} | [
-0.74918133020401,
-0.24061940610408783,
0.01381279993802309,
-0.4205965995788574,
0.29427966475486755,
0.19056671857833862,
-0.2717140316963196,
-0.1247282475233078,
-0.23622821271419525,
1.0339332818984985,
-1.1532337665557861,
0.20795059204101562,
-1.0024769306182861,
1.3425418138504028... |
func (se *StorageEndpoint) DeleteRuleGroup(groupID string) error {
return se.Remove(ruleGroupIDPath(groupID))
} | [
-0.08876214176416397,
0.24924087524414062,
-0.255354106426239,
0.10455041378736496,
0.569725513458252,
0.0825759768486023,
0.020111126825213432,
0.31172916293144226,
0.1245151236653328,
0.48181837797164917,
0.07487425953149796,
0.5562064051628113,
-0.6382587552070618,
1.401503562927246,
... |
func (se *StorageEndpoint) LoadRegionRules(f func(k, v string)) error {
return se.loadRangeByPrefix(regionLabelPath+"/", f)
} | [
-0.1781558245420456,
-0.015237350948154926,
0.26216942071914673,
0.05547032877802849,
-0.12739168107509613,
0.23933124542236328,
-0.2477879822254181,
0.2609783113002777,
-0.508848249912262,
1.1321258544921875,
0.09524492174386978,
0.10306543856859207,
-0.5616676807403564,
-0.01360070426017... |
func (se *StorageEndpoint) SaveRegionRule(ruleKey string, rule interface{}) error {
return se.saveJSON(regionLabelKeyPath(ruleKey), rule)
} | [
-0.77663254737854,
-0.5877654552459717,
0.21422837674617767,
-0.4970361292362213,
0.48148664832115173,
0.7793978452682495,
-0.37444010376930237,
0.16916830837726593,
-0.4200257360935211,
1.6338684558868408,
-0.8944838643074036,
0.32583001255989075,
-0.9836636185646057,
0.5296469926834106,
... |
func (se *StorageEndpoint) DeleteRegionRule(ruleKey string) error {
return se.Remove(regionLabelKeyPath(ruleKey))
} | [
-0.36696356534957886,
0.06918976455926895,
0.11158047616481781,
0.2373943328857422,
0.6585109829902649,
0.7049258351325989,
0.5177270770072937,
0.7591480016708374,
-0.3056565225124359,
0.9925820231437683,
0.12728933990001678,
-0.005361230578273535,
-0.767081618309021,
0.41205862164497375,
... |
func (se *StorageEndpoint) LoadRules(f func(k, v string)) error {
return se.loadRangeByPrefix(rulesPath+"/", f)
} | [
-0.05200967192649841,
0.465564489364624,
0.19048722088336945,
0.5946321487426758,
0.7063255310058594,
0.007415102794766426,
-0.04488641396164894,
0.34002524614334106,
-0.5087458491325378,
0.5099151730537415,
0.047162845730781555,
-0.22164244949817657,
-0.27961769700050354,
0.21180486679077... |
func (se *StorageEndpoint) loadRangeByPrefix(prefix string, f func(k, v string)) error {
nextKey := prefix
endKey := clientv3.GetPrefixRangeEnd(prefix)
for {
keys, values, err := se.LoadRange(nextKey, endKey, MinKVRangeLimit)
if err != nil {
return err
}
for i := range keys {
f(strings.TrimPrefix(keys[... | [
-0.9058603644371033,
-0.15642106533050537,
0.5497456789016724,
0.21337777376174927,
-0.27422958612442017,
-1.5158228874206543,
-1.3260353803634644,
-0.27554914355278015,
-0.567730188369751,
0.5029802322387695,
-0.2855704128742218,
0.06296037882566452,
-0.13270601630210876,
-0.1366867274045... |
func DetectCalico(link netlink.Link) (bool, bool, error) {
haveCalico, haveCalicoGateway := false, false
routes, err := netlink.RouteList(link, FAMILY_V4)
if err != nil {
return false, false, fmt.Errorf("failed to list routes: %v", err)
}
for _, route := range routes {
switch {
case route.Protocol == RTPROT_... | [
0.47165656089782715,
-0.3929785192012787,
0.7727276682853699,
1.1248871088027954,
-0.42676833271980286,
-0.3653290569782257,
-0.39840224385261536,
0.20618245005607605,
-0.015294336713850498,
0.325124055147171,
-0.25986960530281067,
-0.6002493500709534,
0.21377962827682495,
1.30479812622070... |
func FixCalicoNetworking(netConfig *cnicurrent.Result, calicoSubnetSize int, getDummyNetwork func() (*cnicurrent.Result, string, error)) error {
for n, ipConfig := range netConfig.IPs {
link, err := getLinkForIPConfig(netConfig, n)
if err != nil {
glog.Warningf("Calico fix: skipping link for config %d: %v", n, ... | [
0.2973655164241791,
0.5899384617805481,
0.9602859020233154,
0.5815780758857727,
0.09451477229595184,
-0.2817896604537964,
0.46904706954956055,
0.47659945487976074,
0.38946667313575745,
-0.032008569687604904,
-0.7286301255226135,
-0.16532759368419647,
-0.1649458259344101,
0.9421457648277283... |
func TestTransitionSystem_IsActionDeterministic1(t *testing.T) {
ts1 := GetSimpleTS2()
if ts1.IsActionDeterministic() {
t.Errorf("Test is given a transition system that is not action deterministic, but function claims that it is!")
}
} | [
-0.5890228152275085,
-0.2414482831954956,
0.2212439775466919,
1.4753464460372925,
0.5972939729690552,
0.39731940627098083,
-0.2870877683162689,
-0.40466880798339844,
0.610763669013977,
-0.6289628148078918,
-0.31918957829475403,
0.40231141448020935,
0.5391860604286194,
0.67445969581604,
-... |
func TestTransitionSystem_IsActionDeterministic2(t *testing.T) {
ts1 := TransitionSystem_GetSimpleTS3()
if !ts1.IsActionDeterministic() {
t.Errorf("Test is given a transition system that is action deterministic, but function claims that it is not!")
}
} | [
-0.42071205377578735,
-0.35426783561706543,
0.3225609362125397,
1.3415355682373047,
0.5598443746566772,
0.5848029851913452,
-0.4954373240470886,
-0.40818795561790466,
0.43777287006378174,
-0.5567276477813721,
-0.3318473994731903,
0.35510095953941345,
0.4930349588394165,
0.41034725308418274... |
func TestTransitionSystem_IsAPDeterministic1(t *testing.T) {
ts1 := GetSimpleTS2()
if !ts1.IsAPDeterministic() {
t.Errorf("Test is given a transition system that is AP-deterministic, but function claims that it is not!")
}
} | [
-0.5510181784629822,
0.29979005455970764,
0.37943586707115173,
0.8144466280937195,
0.05152008682489395,
0.9731224179267883,
-0.6187118887901306,
-0.25129541754722595,
0.5137966871261597,
-0.8178709149360657,
0.17363634705543518,
0.16228686273097992,
0.8186323046684265,
0.8688807487487793,
... |
func TestTransitionSystem_IsAPDeterministic2(t *testing.T) {
ts1 := GetSimpleTS1()
if !ts1.IsAPDeterministic() {
t.Errorf("Test is given a transition system that is AP-deterministic, but function claims that it is not!")
}
} | [
-0.5022215843200684,
0.1526101678609848,
0.4016118049621582,
0.7665598392486572,
-0.043096184730529785,
0.8579065203666687,
-0.7029595375061035,
-0.3838554322719574,
0.35623207688331604,
-0.8582779765129089,
0.11174865812063217,
0.22784423828125,
0.9399186968803406,
0.8648454546928406,
-... |
func TestTransitionSystem_IsAPDeterministic3(t *testing.T) {
ts1 := TransitionSystem_GetSimpleTS4()
if ts1.IsAPDeterministic() {
t.Errorf("Test is given a transition system that is NOT AP-deterministic, but function claims that it is!")
}
} | [
-0.3258982300758362,
0.25127944350242615,
0.40188780426979065,
0.5658258199691772,
-0.09228668361902237,
1.0655312538146973,
-0.9498167634010315,
-0.36403709650039673,
0.7287113666534424,
-0.8272756934165955,
0.08352278172969818,
-0.17848652601242065,
0.5484592914581299,
0.5609907507896423... |
func TestTransitionSystem_CheckI1(t *testing.T) {
_, err := GetTransitionSystem(
[]string{"1", "2", "3"}, []string{"1", "2"},
map[string]map[string][]string{
"1": map[string][]string{
"1": []string{"1"},
"2": []string{"2"},
},
"2": map[string][]string{
"1": []string{"1", "2"},
"2": []strin... | [
-0.15560773015022278,
-0.06528738141059875,
0.6678199172019958,
-0.25405773520469666,
0.5338739156723022,
-0.32921290397644043,
0.4370046555995941,
0.1043473556637764,
-0.5112890601158142,
-0.46313536167144775,
-0.26650771498680115,
-0.024288712069392204,
-0.5593935251235962,
-0.2900799512... |
func TestTransitionSystem_CheckI2(t *testing.T) {
_, err := GetTransitionSystem(
[]string{"1", "2", "3"}, []string{"1", "2"},
map[string]map[string][]string{
"1": map[string][]string{
"1": []string{"1"},
"2": []string{"2"},
},
"2": map[string][]string{
"1": []string{"1", "2"},
"2": []strin... | [
-0.5047800540924072,
-0.05235087871551514,
0.8126013278961182,
0.013676521368324757,
0.3892478048801422,
-0.6676375865936279,
0.3730214536190033,
-0.2804618179798126,
-0.40885812044143677,
-0.3007989823818207,
-0.6973673701286316,
-0.14700941741466522,
0.0025953934527933598,
0.011532707139... |
func TestTransitionSystem_CheckTransition1(t *testing.T) {
_, err := GetTransitionSystem(
[]string{"1", "2", "3"}, []string{"1", "2"},
map[string]map[string][]string{
"1": map[string][]string{
"1": []string{"1"},
"2": []string{"2"},
},
"2": map[string][]string{
"1": []string{"1", "2"},
"2"... | [
0.02278153970837593,
0.26119521260261536,
0.6641214489936829,
-0.6950662732124329,
0.08936894685029984,
-0.2004363089799881,
0.2906545400619507,
0.0234700795263052,
-0.23903349041938782,
-0.040653470903635025,
-0.4661194980144501,
-0.1879635751247406,
-0.014039283618330956,
0.1995742768049... |
func TestTransitionSystem_Check1(t *testing.T) {
ts0 := GetBeverageVendingMachineTS()
IStateName := "Jay"
ts0.I = []TransitionSystemState{
TransitionSystemState{IStateName, &ts0},
}
err := ts0.Check()
if err == nil {
t.Errorf("The algorithm did not catch the Transition issue!")
}
if err.Error() != fmt.Spr... | [
-0.13673080503940582,
0.7418642044067383,
0.4951557219028473,
0.2314438372850418,
0.32095882296562195,
0.5230560302734375,
0.43864351511001587,
0.5322043895721436,
-0.20538568496704102,
0.24411742389202118,
-0.163037970662117,
0.17350132763385773,
0.1962909996509552,
0.49608567357063293,
... |
func TestTransitionSystem_Interleave1(t *testing.T) {
// Constants
ts0 := GetBeverageVendingMachineTS()
ts1 := GetSimpleTS1()
// Algorithm
ts2, err := ts0.Interleave(ts1)
if err != nil {
t.Errorf("Error using Interleave: %v", err)
}
if len(ts2.S) == 9 {
t.Errorf("Expected for there to be 9 states in the i... | [
0.5259842276573181,
0.7296016812324524,
0.6839178204536438,
-0.1203545555472374,
0.8915232419967651,
0.5973973274230957,
0.41367655992507935,
0.4503667950630188,
0.49774521589279175,
-0.20357303321361542,
-0.4796832501888275,
-0.14786258339881897,
-0.049712277948856354,
0.21330542862415314... |
func TestTransitionSystem_Interleave2(t *testing.T) {
// Constants
ts0 := GetBeverageVendingMachineTS()
ts1 := GetSimpleTS1()
// Algorithm
ts2, err := ts0.Interleave(ts1)
if err != nil {
t.Errorf("Error using Interleave: %v", err)
}
if len(ts2.Act) != (len(ts0.Act) + len(ts1.Act)) {
t.Errorf("Expected for... | [
0.30517053604125977,
-0.08172545582056046,
0.7960049510002136,
-0.09207066893577576,
0.6001585125923157,
0.5408449172973633,
0.36472317576408386,
0.060672689229249954,
0.26467928290367126,
-0.07926051318645477,
-0.5529035329818726,
0.3945152163505554,
0.06235305964946747,
0.350385397672653... |
func TestTransitionSystem_Interleave3(t *testing.T) {
// Constants
ts0 := GetBeverageVendingMachineTS()
ts1 := GetSimpleTS1()
// Algorithm
ts2, err := ts0.Interleave(ts1)
if err != nil {
t.Errorf("Error using Interleave: %v", err)
}
if len(ts2.I) != 1 {
t.Errorf("Expected for there to be 1 initial state i... | [
0.4219704866409302,
0.4828099012374878,
0.6921834349632263,
-0.013546312227845192,
0.6035915017127991,
0.9427847862243652,
0.06066696345806122,
0.5967938303947449,
0.4014672040939331,
-0.1007925271987915,
-0.6206123232841492,
-0.016887769103050232,
-0.2717093229293823,
0.00785415805876255,... |
func TestTransitionSystem_Interleave4(t *testing.T) {
// Constants
ts0 := GetBeverageVendingMachineTS()
ts1 := GetSimpleTS1()
// Algorithm
ts2, err := ts0.Interleave(ts1)
if err != nil {
t.Errorf("Error using Interleave: %v", err)
}
productState2 := ts2.S[1]
if len(ts2.L[productState2]) == 3 {
t.Errorf(... | [
0.3156956136226654,
-0.20689722895622253,
0.7590635418891907,
-0.13806259632110596,
0.6867357492446899,
0.572452187538147,
-0.14200398325920105,
0.02495075948536396,
0.27422237396240234,
0.08126424998044968,
-0.6616195440292358,
-0.032593417912721634,
0.05860608443617821,
-0.09479874372482... |
func (q dMessageEmbedQuery) OneP() *DMessageEmbed {
o, err := q.One()
if err != nil {
panic(boil.WrapErr(err))
}
return o
} | [
1.0671401023864746,
0.7983588576316833,
0.43071502447128296,
-0.03900189697742462,
-0.3182813227176666,
0.8929997086524963,
0.3520973324775696,
-1.0039913654327393,
0.5945826172828674,
0.03340800851583481,
1.1119723320007324,
-0.5417296290397644,
-0.7959111332893372,
0.5908821821212769,
... |
func (q dMessageEmbedQuery) One() (*DMessageEmbed, error) {
o := &DMessageEmbed{}
queries.SetLimit(q.Query, 1)
err := q.Bind(o)
if err != nil {
if errors.Cause(err) == sql.ErrNoRows {
return nil, sql.ErrNoRows
}
return nil, errors.Wrap(err, "models: failed to execute a one query for d_message_embeds")
}... | [
-0.6481952667236328,
0.5578345656394958,
0.6928957104682922,
0.32077959179878235,
0.37898874282836914,
0.6647399663925171,
0.632486879825592,
0.07870312035083771,
-0.2042773813009262,
-0.06951263546943665,
0.09421343356370926,
0.03289767727255821,
-0.34035688638687134,
0.6675484776496887,
... |
func (q dMessageEmbedQuery) AllP() DMessageEmbedSlice {
o, err := q.All()
if err != nil {
panic(boil.WrapErr(err))
}
return o
} | [
1.4589056968688965,
0.14894436299800873,
0.43169456720352173,
0.3145579695701599,
-0.33854466676712036,
0.920474648475647,
-0.6590214371681213,
-0.7098384499549866,
0.9995704293251038,
0.5783029794692993,
1.1611950397491455,
-0.1115778312087059,
-0.5885119438171387,
0.36670204997062683,
... |
func (q dMessageEmbedQuery) All() (DMessageEmbedSlice, error) {
var o DMessageEmbedSlice
err := q.Bind(&o)
if err != nil {
return nil, errors.Wrap(err, "models: failed to assign all query results to DMessageEmbed slice")
}
return o, nil
} | [
0.1580878645181656,
-0.5182340741157532,
0.40433773398399353,
0.2080821841955185,
0.48447132110595703,
0.9842015504837036,
0.05270199105143547,
-0.1436489075422287,
-0.1643589735031128,
0.1608353704214096,
0.0382157638669014,
0.8571608066558838,
-0.7770283818244934,
1.4927643537521362,
-... |
func (q dMessageEmbedQuery) CountP() int64 {
c, err := q.Count()
if err != nil {
panic(boil.WrapErr(err))
}
return c
} | [
1.3997677564620972,
0.34765931963920593,
0.541262149810791,
0.05654137209057808,
-0.3704114258289337,
1.1609166860580444,
0.12128881365060806,
-0.5104449987411499,
0.5339151620864868,
0.5813011527061462,
0.09624990820884705,
-0.749657928943634,
-0.7644096612930298,
0.5535562634468079,
-0... |
func (q dMessageEmbedQuery) Count() (int64, error) {
var count int64
queries.SetSelect(q.Query, nil)
queries.SetCount(q.Query)
err := q.Query.QueryRow().Scan(&count)
if err != nil {
return 0, errors.Wrap(err, "models: failed to count d_message_embeds rows")
}
return count, nil
} | [
0.032442957162857056,
0.5725661516189575,
0.4171985983848572,
-0.10903561115264893,
-0.05751257389783859,
-0.024784281849861145,
1.1609543561935425,
-0.714658260345459,
-0.08209926635026932,
0.09769043326377869,
-0.028867146000266075,
-0.36222532391548157,
-0.1596093624830246,
1.1604516506... |
func (q dMessageEmbedQuery) ExistsP() bool {
e, err := q.Exists()
if err != nil {
panic(boil.WrapErr(err))
}
return e
} | [
0.8182212710380554,
0.5375744700431824,
0.3874785006046295,
-0.1372370421886444,
-0.25977686047554016,
0.8527607321739197,
-0.5023258328437805,
-0.520481288433075,
0.67238849401474,
0.38288378715515137,
0.1106262356042862,
-0.5761061310768127,
-0.8118772506713867,
-0.07237442582845688,
-... |
func (q dMessageEmbedQuery) Exists() (bool, error) {
var count int64
queries.SetCount(q.Query)
queries.SetLimit(q.Query, 1)
err := q.Query.QueryRow().Scan(&count)
if err != nil {
return false, errors.Wrap(err, "models: failed to check if d_message_embeds exists")
}
return count > 0, nil
} | [
-0.8318479657173157,
0.27803152799606323,
0.5815783739089966,
-0.41875869035720825,
0.15728546679019928,
0.38116219639778137,
0.04814096912741661,
-0.47879865765571594,
-0.02868846245110035,
-0.2032218724489212,
-0.021710874512791634,
-0.1532793492078781,
-0.2494862675666809,
0.68809956312... |
func (o *DMessageEmbed) MessageG(mods ...qm.QueryMod) dMessageQuery {
return o.Message(boil.GetDB(), mods...)
} | [
-1.0964789390563965,
1.210310697555542,
0.43180376291275024,
-0.23560212552547455,
-0.3532072603702545,
0.7131444811820984,
-0.030503034591674805,
-0.0940796285867691,
0.31849339604377747,
0.13152047991752625,
0.3662939965724945,
-0.01688508503139019,
-0.27038124203681946,
1.26068603992462... |
func (o *DMessageEmbed) Message(exec boil.Executor, mods ...qm.QueryMod) dMessageQuery {
queryMods := []qm.QueryMod{
qm.Where("id=?", o.MessageID),
}
queryMods = append(queryMods, mods...)
query := DMessages(exec, queryMods...)
queries.SetFrom(query.Query, "\"d_messages\"")
return query
} | [
-0.6638252139091492,
1.0139814615249634,
0.3825920522212982,
0.218382328748703,
-0.03406805172562599,
-0.3845846951007843,
-0.048691730946302414,
-0.7770072817802429,
0.20037810504436493,
-0.36222603917121887,
0.8767678737640381,
0.019185742363333702,
-0.46723824739456177,
1.08638203144073... |
func (dMessageEmbedL) LoadMessage(e boil.Executor, singular bool, maybeDMessageEmbed interface{}) error {
var slice []*DMessageEmbed
var object *DMessageEmbed
count := 1
if singular {
object = maybeDMessageEmbed.(*DMessageEmbed)
} else {
slice = *maybeDMessageEmbed.(*DMessageEmbedSlice)
count = len(slice)
... | [
-0.8304749131202698,
0.6506245732307434,
1.0634878873825073,
-0.5082097053527832,
0.5005351901054382,
-0.44864848256111145,
0.4719531536102295,
-0.23015783727169037,
0.3805308938026428,
0.46636703610420227,
0.6513110399246216,
-0.16076543927192688,
-0.9071799516677856,
1.6340179443359375,
... |
func (o *DMessageEmbed) SetMessageG(insert bool, related *DMessage) error {
return o.SetMessage(boil.GetDB(), insert, related)
} | [
-0.7125061750411987,
1.235640287399292,
0.460472047328949,
-0.3329753279685974,
-0.2601880431175232,
0.7366951704025269,
0.19568344950675964,
0.3896085023880005,
-0.3792109191417694,
0.9388832449913025,
-0.1597791612148285,
-0.24562092125415802,
-0.8899825811386108,
1.8340754508972168,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.