query_id
stringlengths
32
32
query
stringlengths
7
4.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
35b72b49ef8599c9b3ef22f67e205c70
NewEmptyEncoder returns a empty encoder
[ { "docid": "01017f4f2f673aaf106587b48b654ff9", "score": "0.8314351", "text": "func NewEmptyEncoder() Encoder {\n\treturn &emptyEncoder{}\n}", "title": "" } ]
[ { "docid": "38467339a77591da8d2663aaa72f4569", "score": "0.85056394", "text": "func NewEmptyEncoder() Encoder {\r\n\treturn &emptyEncoder{}\r\n}", "title": "" }, { "docid": "66a4fe2fe2ecce9a0b5e15a8ba9be8f4", "score": "0.6745302", "text": "func DefaultEncoder() Encoder {\n\tdefaultEn...
ce44e234011513468f2cf5626e08cf5f
Init populates metadata struct with values from the buffer
[ { "docid": "132106cfdc43b3cd5f1cddef96d45fe4", "score": "0.74086654", "text": "func (metadata *Metadata) Init(buffer *bytes.Buffer) error {\n\tif err := json.NewDecoder(buffer).Decode(&metadata); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}", "title": "" } ]
[ { "docid": "369c7a3e800f5dbc46711046eaf0289c", "score": "0.6446612", "text": "func (b *Buffer) Init(buf []byte) {\n b.buf = buf\n b.off = 0\n b.layer_off = 0\n}", "title": "" }, { "docid": "58236420c8217c7415b308d93bc1132d", "score": "0.5935042", "text": "func (mm *metricMet...
56a4c5dc26c3a456bcaeb23f1f4527ac
SyncUpdate triggers update on Orchestrator object and updates the cache
[ { "docid": "b37b3ed99bdee90110331ff681ea6273", "score": "0.67417103", "text": "func (api *orchestratorAPI) SyncUpdate(obj *orchestration.Orchestrator) error {\n\tif api.ct.objResolver != nil {\n\t\tlog.Fatal(\"Cannot use Sync update when object resolver is enabled on ctkit\")\n\t}\n\tnewObj := obj\n\tva...
[ { "docid": "2c44bb490b2548a75cc31ba76e93af78", "score": "0.6084702", "text": "func (api *orchestratorAPI) Update(obj *orchestration.Orchestrator) error {\n\tif api.ct.resolver != nil {\n\t\tapicl, err := api.ct.apiClient()\n\t\tif err != nil {\n\t\t\tapi.ct.logger.Errorf(\"Error creating API server clen...
01e48f2cb76abc64371fa530fb3a0a2b
Inherit inherits previous generation of EurekaServiceRegistry.
[ { "docid": "bbab7759d23ccad8c9e5bbac02ed32b7", "score": "0.657721", "text": "func (eureka *EurekaServiceRegistry) Inherit(superSpec *supervisor.Spec, previousGeneration supervisor.Object) {\n\tpreviousGeneration.Close()\n\teureka.Init(superSpec)\n}", "title": "" } ]
[ { "docid": "ae0c18695e1419c19a87730cafb12de2", "score": "0.55394065", "text": "func (sr *ServiceRegistry) Inherit(superSpec *supervisor.Spec, previousGeneration supervisor.Object) {\n\tpreviousGeneration.Close()\n\tsr.Init(superSpec)\n}", "title": "" }, { "docid": "bfd5f927adeb0340c36985881a...
ee6d6c59b28361eaa4ffb0c05066549f
UUIDv5Val creates a UUID v5 string based on the given inputs. Return value is a big.Int
[ { "docid": "bdcfdc9f5de81cc7a980e2c0f367c4ce", "score": "0.8887028", "text": "func UUIDv5Val(inputs ...string) big.Int {\n\tu := uuidv5(inputs...)\n\tvar i big.Int\n\ti.SetBytes(u[:])\n\treturn i\n}", "title": "" } ]
[ { "docid": "e2f929082cfd98df4bc6c1546b48f7a9", "score": "0.78646064", "text": "func UUIDv5(inputs ...string) string {\n\treturn uuidv5(inputs...).String()\n}", "title": "" }, { "docid": "25416b2b5273882e59304a7a8eafc5c2", "score": "0.7745002", "text": "func uuidv5(inputs ...string) u...
e88ffae39ed9e4e8175ad29d6b7c02c2
Where returns a new SchemaSlice whose elements return true for func. See:
[ { "docid": "a2843a6ba3e4806297aa8b270e9f1726", "score": "0.7655883", "text": "func (rcv SchemaSlice) Where(fn func(Schema) bool) (result SchemaSlice) {\n\tfor _, v := range rcv {\n\t\tif fn(v) {\n\t\t\tresult = append(result, v)\n\t\t}\n\t}\n\treturn result\n}", "title": "" } ]
[ { "docid": "2bdeb1b329840bca4c6ad03a78492d0e", "score": "0.5590401", "text": "func (rcv PlatformSlice) Where(fn func(Platform) bool) (result PlatformSlice) {\n\tfor _, v := range rcv {\n\t\tif fn(v) {\n\t\t\tresult = append(result, v)\n\t\t}\n\t}\n\treturn result\n}", "title": "" }, { "docid...
7a86926a2f642cb79cc248e44fb7de2d
A reference to frontend IP addresses.
[ { "docid": "69ae72c648b919da837b10c59c1d8417", "score": "0.0", "text": "func (o InboundNatPoolOutput) FrontendIPConfiguration() SubResourcePtrOutput {\n\treturn o.ApplyT(func(v InboundNatPool) *SubResource { return v.FrontendIPConfiguration }).(SubResourcePtrOutput)\n}", "title": "" } ]
[ { "docid": "e2203f24da477df1beaf874e8821d71b", "score": "0.65561885", "text": "func (o DeploymentFrontendPublicOutput) IpAddresses() pulumi.StringArrayOutput {\n\treturn o.ApplyT(func(v DeploymentFrontendPublic) []string { return v.IpAddresses }).(pulumi.StringArrayOutput)\n}", "title": "" }, { ...
48d250c036dc71b7837e5c4ff396dffc
getStatementCategory returns the proto.BL_ category for a SQL statement.
[ { "docid": "44c2c8fa1226be605d04ab921181e1b5", "score": "0.7585344", "text": "func getStatementCategory(sql []byte) int {\n\tif i := bytes.IndexByte(sql, byte(' ')); i >= 0 {\n\t\tsql = sql[:i]\n\t}\n\treturn statementPrefixes[string(bytes.ToLower(sql))]\n}", "title": "" } ]
[ { "docid": "15e23cd09b1c779a2fd4c2bf29e436e3", "score": "0.5986222", "text": "func (s *Swift) GetCategory() string {\n\tif s == nil || s.Category == nil {\n\t\treturn \"\"\n\t}\n\treturn *s.Category\n}", "title": "" }, { "docid": "f3e3630dca37438d6a35091b4e9032fb", "score": "0.57924545",...
e75811b9207449488b7028f3759bc47a
Connectorspecific properties required when using Slack. See Generic Connector Profile Properties for more details.
[ { "docid": "071262a246174aec75adc8e96629dcbc", "score": "0.5846951", "text": "func (o ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesOutput) Slack() ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlackPtrOutput {\n\treturn o.ApplyT(func(v ConnectorProfileConnectorProfil...
[ { "docid": "a42c2a39f4527b767ee5da69a53c3d50", "score": "0.56841123", "text": "func (o ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesPtrOutput) Slack() ConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlackPtrOutput {\n\treturn o.ApplyT(func(v *ConnectorProfileConnectorP...
d59ec7d22dea69d9bc007606192c0e1c
Send sends a new line to the terminal, as if a user typed it
[ { "docid": "88f3be8bdb7cca52143d01a3fe1ae19e", "score": "0.66261685", "text": "func (cp *ConsoleProcess) Send(value string) {\n\t_, _ = cp.console.SendLine(value)\n}", "title": "" } ]
[ { "docid": "1926cc12c475a0f855845c34ee81c555", "score": "0.6657518", "text": "func (cp *ConsoleProcess) SendLine(value string) {\n\t_, _ = cp.console.SendOSLine(value)\n}", "title": "" }, { "docid": "b2862c6cfba744ed728896033410de3a", "score": "0.63762784", "text": "func (w *winWin) ...
851ee22dea4d3f69d9c6e9ef34540c21
Upsert attempts an insert using an executor, and does an update or ignore on conflict.
[ { "docid": "08a457badd2523a298bb80b30eb26909", "score": "0.0", "text": "func (o *CollectionI18n) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error {\n\tif o == nil {\n\t\treturn errors.New(\"mdbmdbmodels: no collection_i18n pro...
[ { "docid": "1841daa21b3ffdbb6a80bc6b0148c44f", "score": "0.6991177", "text": "func (o *Blob) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error {\n\tif o == nil {\n\t\treturn errors.New(\"db: no blobs provided for upsert\")\n\t}\n...
b48f3614244106e59ca70cefc87c9605
BOSHManifestCFRouting returns a manifest for the CF routing release with an underscore in the name
[ { "docid": "8530c7b4920f6d6c09c224f5cf3a3dab", "score": "0.7423274", "text": "func (c *Catalog) BOSHManifestCFRouting() *manifest.Manifest {\n\tm, err := manifest.LoadYAML([]byte(bm.CFRouting))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treturn m\n}", "title": "" } ]
[ { "docid": "f67679f58e9a9d5b8b0fe0905336202f", "score": "0.55102295", "text": "func (msg MsgCreateDeployment) Route() string { return RouterKey }", "title": "" }, { "docid": "0f70630d9dcc48aef92aba5e1de0a8ca", "score": "0.53420293", "text": "func (msg MsgUpdateDeployment) Route() str...
9647b873210526979d097a3177472b54
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be nonnil.
[ { "docid": "aab855bfd8cb5ca52e5308fcaf1d1be5", "score": "0.0", "text": "func (in *ClusterMicroFrontendList) DeepCopyInto(out *ClusterMicroFrontendList) {\n\t*out = *in\n\tout.TypeMeta = in.TypeMeta\n\tin.ListMeta.DeepCopyInto(&out.ListMeta)\n\tif in.Items != nil {\n\t\tin, out := &in.Items, &out.Items\n...
[ { "docid": "1c2d70d782e9a1af879ef1c56794f835", "score": "0.8241005", "text": "func (in *Data) DeepCopyInto(out *Data) {\n\t*out = *in\n}", "title": "" }, { "docid": "da106d983b586b057f03d7a4a40c0ad7", "score": "0.8175346", "text": "func (in *Info) DeepCopyInto(out *Info) {\n\t*out = ...
b587ad894b4174ffcd2b0adfb1bf9e0e
WithFirstNumber adds the firstNumber to the post racks params
[ { "docid": "f00dffb1291ac09c6b2b62f8b126c3d3", "score": "0.6341402", "text": "func (o *PostRacksParams) WithFirstNumber(firstNumber *string) *PostRacksParams {\n\to.SetFirstNumber(firstNumber)\n\treturn o\n}", "title": "" } ]
[ { "docid": "083755caf55a147e0f669c2a22203765", "score": "0.70455307", "text": "func (o *PostRacksParams) SetFirstNumber(firstNumber *string) {\n\to.FirstNumber = firstNumber\n}", "title": "" }, { "docid": "fbedbde9266b8a886c62f8bcd15c2555", "score": "0.5167111", "text": "func (app *s...
02144ff19da37dfa42cd296f032e9f28
RepositoryNameContainsTag checks if the repository name includes a tag
[ { "docid": "88a35f2e727dd1ff1e5ce519b16c9c0b", "score": "0.87344354", "text": "func RepositoryNameContainsTag(name string) bool {\n\tsplit := strings.Split(name, \"/\")\n\treturn strings.Contains(split[len(split)-1], \":\")\n}", "title": "" } ]
[ { "docid": "f13893b32c6f59c38c807fd806e8a29b", "score": "0.7046816", "text": "func Tag(repo *git.Repository) (tag string, isTag bool, err error) {\n\tvar ref *plumbing.Reference\n\tvar tags storer.ReferenceIter\n\n\tif ref, err = repo.Head(); err != nil {\n\t\treturn\n\t}\n\n\tif tags, err = repo.Tags()...
c55c6c7047d65e653d4b4d15c2dce553
/ SlidesApiServiceTests Render shape to specified picture format. Test for SlidesApi.DownloadSpecialSlideShape method with invalid storage
[ { "docid": "215bbe40b9fa24c9e2a209730ce1c1d2", "score": "0.6436498", "text": "func TestDownloadSpecialSlideShapeInvalidStorage(t *testing.T) {\n testname, _ := createTestParamValue(\"DownloadSpecialSlideShape\", \"name\", \"string\").(string)\n testslideIndex, _ := createTestParamValue(\"DownloadS...
[ { "docid": "df17af580a0ed9e5e2d4ac8588f523e7", "score": "0.66467524", "text": "func TestDownloadSpecialSlideShape(t *testing.T) {\n testname, _ := createTestParamValue(\"DownloadSpecialSlideShape\", \"name\", \"string\").(string)\n testslideIndex, _ := createTestParamValue(\"DownloadSpecialSlideSh...
d4d708f2785e7381380bf6786f815ccf
Readable return the number of bytes that can be read.
[ { "docid": "87fb92f9ee0368b69807d0beaf5bdcd8", "score": "0.7341591", "text": "func (b *ByteBuf) Readable() int {\r\n\treturn b.writerIndex - b.readerIndex\r\n}", "title": "" } ]
[ { "docid": "ddbbc0d095db8e6eef125bfbf185d538", "score": "0.66475254", "text": "func (r Reader) Len() int {\n\treturn r.reader.Len()\n}", "title": "" }, { "docid": "aef63b8f0e0e5c8c1d0f9dd66a574614", "score": "0.6599707", "text": "func (q *queue) readableSize(ctx context.Context, io u...
cb93435b5d08b8f87f8e6e04184edca2
WithPayload adds the payload to the get route train Id not found response
[ { "docid": "049682203be7e0a2bcda0feb382f2686", "score": "0.7318758", "text": "func (o *GetRouteTrainIDNotFound) WithPayload(payload *models.StatusResponse) *GetRouteTrainIDNotFound {\n\to.Payload = payload\n\treturn o\n}", "title": "" } ]
[ { "docid": "1ed704161da652148bf035e46b6bb6c0", "score": "0.71123064", "text": "func (o *GetRouteTrainIDInternalServerError) WithPayload(payload *models.StatusResponse) *GetRouteTrainIDInternalServerError {\n\to.Payload = payload\n\treturn o\n}", "title": "" }, { "docid": "b2dd18fce67199d2c5e...
cb9e4c1c787076fc7af3926f9573ae61
UnmarshalJSON implements the json.Unmarshaller interface for type InsightQueryItemProperties.
[ { "docid": "b50c656443de4603399bbae910db97b7", "score": "0.8618916", "text": "func (i *InsightQueryItemProperties) UnmarshalJSON(data []byte) error {\n\tvar rawMsg map[string]json.RawMessage\n\tif err := json.Unmarshal(data, &rawMsg); err != nil {\n\t\treturn fmt.Errorf(\"unmarshalling type %T: %v\", i,...
[ { "docid": "c696ffb6bf1331ff668084cbc639d86a", "score": "0.8095895", "text": "func (i *InsightQueryItemPropertiesTableQueryQueriesDefinitionsPropertiesItemsItem) UnmarshalJSON(data []byte) error {\n\tvar rawMsg map[string]json.RawMessage\n\tif err := json.Unmarshal(data, &rawMsg); err != nil {\n\t\tretu...
1c85fcc7061032292b6121bd6d445f49
Test: hello world, the web server
[ { "docid": "c980af9298d5dbbe437407dbecd5af0c", "score": "0.6447234", "text": "func HelloServer(w http.ResponseWriter, req *http.Request) {\n\tw.Write([]byte(\"hello back\"))\n}", "title": "" } ]
[ { "docid": "a92619b9fb96023169b17afc9d6f2deb", "score": "0.7447166", "text": "func startTestWebServer() {\n\thttp.HandleFunc(\"/\", handler)\n\tgo func() {\n\t\thttp.ListenAndServe(\":5000\", nil)\n\t}()\n}", "title": "" }, { "docid": "7c29a213abca6b01df93d8362bebfab5", "score": "0.72157...
d4b6fc3159d3abf914a718ae03cfcd01
WriteBlockSync is same as WriteBlock, but commits block synchronously. Note: WriteConfigBlock should use WriteBlockSync instead of WriteBlock. If the block contains a transaction that remove the node from consenters, the node will switch to follower and pull blocks from other nodes. Suppose writing block asynchronously...
[ { "docid": "838fbb9617b2f2b094585f1c1552de08", "score": "0.8185714", "text": "func (bw *BlockWriter) WriteBlockSync(block *cb.Block, encodedMetadataValue []byte) {\n\tbw.committingBlock.Lock()\n\tbw.lastBlock = block\n\n\tdefer bw.committingBlock.Unlock()\n\tbw.commitBlock(encodedMetadataValue)\n}", ...
[ { "docid": "5553aa019a666d3dfaf4777b1a009bbd", "score": "0.72163707", "text": "func (bw *BlockWriter) WriteConfigBlock(block *cb.Block, encodedMetadataValue []byte) {\n\tctx, err := protoutil.ExtractEnvelope(block, 0)\n\tif err != nil {\n\t\tlogger.Panicf(\"Told to write a config block, but could not ge...
dd34d469e055f5d7158f67b0ab57900a
SetTaskArns sets the TaskArns field's value.
[ { "docid": "087b2004240f70eefab56077751a5875", "score": "0.8502739", "text": "func (s *ListTasksOutput) SetTaskArns(v []*string) *ListTasksOutput {\n\ts.TaskArns = v\n\treturn s\n}", "title": "" } ]
[ { "docid": "c5a243b3ad900691e5e847bcad0b52e1", "score": "0.74017894", "text": "func (s *ListTaskDefinitionsOutput) SetTaskDefinitionArns(v []*string) *ListTaskDefinitionsOutput {\n\ts.TaskDefinitionArns = v\n\treturn s\n}", "title": "" }, { "docid": "be08a293d105f43c10a16131b276f5d9", "s...
1875def98b29249570d370ca57af1f45
Convert_v1alpha1_VSwitch_To_tencentcloud_VSwitch is an autogenerated conversion function.
[ { "docid": "9a9ddefdebb9154d476e6a142e67d0de", "score": "0.85191834", "text": "func Convert_v1alpha1_VSwitch_To_tencentcloud_VSwitch(in *VSwitch, out *tencentcloud.VSwitch, s conversion.Scope) error {\n\treturn autoConvert_v1alpha1_VSwitch_To_tencentcloud_VSwitch(in, out, s)\n}", "title": "" } ]
[ { "docid": "033f90136210971df9202d8295ed3a97", "score": "0.7641072", "text": "func Convert_v1alpha1_VSwitch_To_alicloud_VSwitch(in *VSwitch, out *alicloud.VSwitch, s conversion.Scope) error {\n\treturn autoConvert_v1alpha1_VSwitch_To_alicloud_VSwitch(in, out, s)\n}", "title": "" }, { "docid"...
9f0988fcb1ca7ec1e9099de4d1fb8bf1
getAllOrdersByClientAndRestID : return orders
[ { "docid": "db227af73f331e588efb12cdec8edff9", "score": "0.8119905", "text": "func getAllOrdersByClientAndRestID(email string, restID int) ([]*Cart, FoulError) {\n\tvar m []*Cart\n\trows, err := config.DB.Query(\"SELECT * FROM CART WHERE rest_id = ? AND email = ? AND state_id != ?\", restID, email, CLOS...
[ { "docid": "ea6c27260746ca755bd73d331e83dd57", "score": "0.74832594", "text": "func getOrdersByCustomerID(c *gin.Context) {\n\n\t// discover Java service...\n\tordAddress, err := disc.DiscoverService(discovery.DiscoverOptions{\n\t\tValue: \"java-service\",\n\t\tEnvironment: \"dev\",\n\t\tVersion: ...
c10f460ed4735bab07ffd5008f552d78
GetFailureReason returns the FailureReason field value If the value is explicit nil, the zero value for TransferFailure will be returned
[ { "docid": "0ca5e391d054006443e076d6ef90f6a8", "score": "0.8443321", "text": "func (o *Transfer) GetFailureReason() TransferFailure {\n\tif o == nil || o.FailureReason.Get() == nil {\n\t\tvar ret TransferFailure\n\t\treturn ret\n\t}\n\n\treturn *o.FailureReason.Get()\n}", "title": "" } ]
[ { "docid": "a81f0e9dbb42f713d85bec0b91f16c27", "score": "0.7611202", "text": "func (o *VirtualizationIweHost) GetFailureReason() string {\n\tif o == nil || o.FailureReason == nil {\n\t\tvar ret string\n\t\treturn ret\n\t}\n\treturn *o.FailureReason\n}", "title": "" }, { "docid": "560bf995262...
165674872fe9f5d000a1c5bf9d7d7e42
NewFS Returns a file system object for making a connection with
[ { "docid": "a5f5b670232467865dfbfb945d277905", "score": "0.70607257", "text": "func NewFS() *FS {\n// \tlog.Printf(\"NewFS\")\n\tfs := &FS{\n\t\tnodeCount: 1,\n\t}\n\tfs.root = fs.NewDir(\"\", os.ModeDir|0777, 0, time.Now())\n\tif fs.root.attr.Inode != 1 {\n\t\tpanic(\"Root node should have been assigne...
[ { "docid": "6c1f55e9b6cf76c56685033356326db5", "score": "0.71179694", "text": "func NewFS(VFS *vfs.VFS, opt *mountlib.Options) *FS {\n\tfsys := &FS{\n\t\tVFS: VFS,\n\t\tf: VFS.Fs(),\n\t\topt: opt,\n\t}\n\treturn fsys\n}", "title": "" }, { "docid": "6c1f55e9b6cf76c56685033356326db5", "s...
1ad518bd4dee3212311d96b45c4162f5
Init fill pointers and return string for select statement
[ { "docid": "2bf49dfa7fccd46823447505acb9e257", "score": "0.54511", "text": "func (q QueryRow) Init() string {\n\tcount := len(q.Columns)\n\tfor i := 0; i < count; i++ {\n\t\tq.ValuePtrs[i] = &q.Values[i]\n\t}\n\treturn strings.Join(q.Columns, \", \")\n}", "title": "" } ]
[ { "docid": "db878d1a57e6c299c0eba9b5e1ed551b", "score": "0.665973", "text": "func generateSelect(selectVal []string, q *Query) (selectString string) {\n\tselectString = \"SELECT \"\n\tif len(selectVal) == 0 {\n\t\tselectString += \"AS inst\"\n\t} else {\n\t\t//code to handle nested select in SQL without...
eed3ddc5dea53a91aa4d5b61e7f7024f
SetMetadata overrides the packaged application metadata. This data can be used in many places like notifications and about screens.
[ { "docid": "5dc8969d80e5f208c63ca52dd5638a8e", "score": "0.82996696", "text": "func SetMetadata(m fyne.AppMetadata) {\n\tmeta = m\n}", "title": "" } ]
[ { "docid": "32b78b4c6e78a48a913afec4d20d3e67", "score": "0.7303202", "text": "func (d *SingularityDeploy) SetMetadata(m map[string]string) Deploy {\n\td.Metadata = m\n\treturn d\n}", "title": "" }, { "docid": "bd4dcd0e2b362ac48d07c54b85a5fe45", "score": "0.71273243", "text": "func (o...
ee828c2a829c10193af9a8a2da3f6b2c
NewMockBlock creates a new mock instance.
[ { "docid": "e05ce44fbe07e9a4a1c5f93d1aa23907", "score": "0.74162036", "text": "func NewMockBlock(ctrl *gomock.Controller) *MockBlock {\n\tmock := &MockBlock{ctrl: ctrl}\n\tmock.recorder = &MockBlockMockRecorder{mock}\n\treturn mock\n}", "title": "" } ]
[ { "docid": "96ff3c1418fcc20e7d236c7fd2bf7266", "score": "0.7071784", "text": "func MockBlock() *bc.Block {\n\treturn &bc.Block{\n\t\tBlockHeader: &bc.BlockHeader{Height: 1},\n\t}\n}", "title": "" }, { "docid": "8a0171a4a4e3b1d14a02c4871f414c50", "score": "0.6814578", "text": "func Ne...
d8db352d6b881f20ff94e74e21b1fb29
IsYANGGoStruct ensures that NetworkInstance_Protocol_Bgp_Global_UseMultiplePaths_Ibgp implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
[ { "docid": "b72f455ab4008f05e0d7178d70a61493", "score": "0.8675234", "text": "func (*NetworkInstance_Protocol_Bgp_Global_UseMultiplePaths_Ibgp) IsYANGGoStruct() {}", "title": "" } ]
[ { "docid": "a28681dc191985ec0bc9f65128f9310f", "score": "0.8327008", "text": "func (*Bgp_Global_UseMultiplePaths_Ibgp) IsYANGGoStruct() {}", "title": "" }, { "docid": "a28681dc191985ec0bc9f65128f9310f", "score": "0.8327008", "text": "func (*Bgp_Global_UseMultiplePaths_Ibgp) IsYANGGoS...
5742223cf3ed973cffd3277f5372509b
NewRequest creates an API request. A relative URL can be provided in urlStr, in which case it is resolved relative to the BaseURL of the Client. Relative URLs should always be specified without a preceding slash. If specified, the value pointed to by body is JSON encoded and included as the request body.
[ { "docid": "484356333793eb1ea8e1cc7c3b26a84e", "score": "0.7445835", "text": "func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error) {\n\trel, err := url.Parse(urlStr)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif len(rel.RawQuery) > 0 {\n\t\trel.RawQuery += \...
[ { "docid": "95dd61d0cde14fbde69c62d307ae5949", "score": "0.75665414", "text": "func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error) {\n\trel, err := url.Parse(urlStr)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tu := c.BaseURL.ResolveReference(rel)\n\n\tvar bu...
316cf700e232edced5ed6537f00cd1a6
Verifies that two block headers provide proof of a consensus fault: both headers mined by the same actor headers are different first header is of the same or lower epoch as the second at least one of the headers appears in the current chain at or after epoch `earliest` the headers provide evidence of a fault (see the s...
[ { "docid": "047698f574edbe50b31faa8d448602c3", "score": "0.4220337", "text": "func (s *Syscalls) VerifyConsensusFault(ctx context.Context, h1, h2, extra []byte, curEpoch abi.ChainEpoch, msg vm.VmMessage, gasIpld cbornode.IpldStore, view vm.SyscallsStateView, getter vmcontext.LookbackStateGetter) (*vmr.C...
[ { "docid": "12b87454e63b58e9356d29d13da7694a", "score": "0.59951067", "text": "func (s *ConsensusFaultChecker) VerifyConsensusFault(ctx context.Context, h1, h2, extra []byte, curEpoch abi.ChainEpoch, msg vm.VmMessage, gasIpld cbornode.IpldStore, view vm.SyscallsStateView, getter vmcontext.LookbackStateG...
900ab338da6024c527ba70a21e2ce4c4
Tag returns current tag of a config
[ { "docid": "a6632d95681dc76559c9b54cbce9522c", "score": "0.7357911", "text": "func (config ProvisionerConfig) Tag() string {\n\treturn config.tag\n}", "title": "" } ]
[ { "docid": "f1af1beaac6290de290a7ef52add10bc", "score": "0.64995736", "text": "func Tag() string {\n\treturn defaultManager.Tag()\n}", "title": "" }, { "docid": "4d64b62142700271c505f57302571e4b", "score": "0.6461414", "text": "func (ir ImageRepository) Tag() string {\n\t// No check ...
800f709d3deefee9a53e6b4562d52f78
Process encodes the Job into a byte slice that will be returned from Next() (in arbitrary order). Returns false if Next is certain to return an error. Caller must ensure j does not change until after the first call to Next(). May not be called after calling Next().
[ { "docid": "cbab4dc669956c1e3f96e79bc47c0b92", "score": "0.76817566", "text": "func (e *JobEncoder) Process(j *Job) bool {\n\tif e.err != nil {\n\t\treturn false\n\t}\n\tvar buf bytes.Buffer\n\tif err := gob.NewEncoder(&buf).Encode(j); err != nil {\n\t\te.err = err\n\t\te.jobs = nil\n\t\te.result = nil\...
[ { "docid": "3054ed69477eaefdd4e8d8b3763d5c97", "score": "0.6934841", "text": "func (d *JobDecoder) Process(b []byte) bool {\n\td.init()\n\td.input <- b\n\treturn len(d.errors) == 0\n}", "title": "" }, { "docid": "cfd9fbc43958edfaa6bb524182a818a1", "score": "0.5881837", "text": "func ...
37cf7187678fd72aeb76ff826a375fb3
Get returns a namespace for with a given name
[ { "docid": "efe6e6c1dbd93065f85000a06078692c", "score": "0.6613356", "text": "func Get(ctx context.Context, clientset *kubernetes.Clientset, name string) (*corev1.Namespace, error) {\n\topts := metav1.GetOptions{}\n\tnamespace, err := clientset.CoreV1().Namespaces().Get(ctx, name, opts)\n\tif err != nil...
[ { "docid": "065e1b3d6f95046b8edd2f540b046e92", "score": "0.7202221", "text": "func (c *namespaces) Get(name string) (*api.Namespace, error) {\n\tresult := &api.Namespace{}\n\terr := c.r.Get().Resource(\"namespaces\").Name(name).Do().Into(result)\n\treturn result, err\n}", "title": "" }, { "d...
3099dac9824bbf4d5246e452aa39a286
verifies that validation method is called on body param with $ref
[ { "docid": "5fa38629d978c1cbd75afc45783263ba", "score": "0.0", "text": "func TestGenParameter_Issue1237(t *testing.T) {\n\tdefer discardOutput()()\n\n\tfixtureConfig := map[string]map[string][]string{\n\t\t\"1\": { // fixture index\n\t\t\t\"serverParameter\": { // executed template\n\t\t\t\t// expected ...
[ { "docid": "c764303d6d89cd255d0083a3a97a8a92", "score": "0.5869853", "text": "func okValidation(reflect.Value, *ErrorReporter) {}", "title": "" }, { "docid": "f52608f15924d07b39f87898399192fe", "score": "0.55604434", "text": "func (o *PatchReferenceEntityCodeUnauthorizedBody) Validat...
98b39b73baff6fb1ce769ce29810aaaf
create an empty file
[ { "docid": "4e6a917466dc421657c2801b619e1268", "score": "0.0", "text": "func Touch(f string) error {\n _, e := os.Create(f)\n\n if e != nil {\n return e\n }\n\n return nil\n}", "title": "" } ]
[ { "docid": "6d58a58217d1095df93e5f338c9ff85f", "score": "0.8062293", "text": "func createEmptyFile(path string) error {\n\tf, err := os.Create(path)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif err = f.Close(); err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}", "title": "" }, { "docid": "...
0f34d18da9c952c8e8a320fdec4af4e2
ReqString formats a string for request
[ { "docid": "4284785b7b600f44c203501dcb2b883b", "score": "0.73739314", "text": "func ReqString(req *http.Request) string {\n\tctx := req.Context()\n\tcomp, _ := ClientComponentFrom(ctx)\n\tif info, ok := apirequest.RequestInfoFrom(ctx); ok {\n\t\treturn fmt.Sprintf(\"%v %s %s: %s\", comp, info.Verb, info...
[ { "docid": "174bc63c52607b625ab3c387a4b3ec2b", "score": "0.6584091", "text": "func (r Request) String() string {\n\tb, _ := json.Marshal(r)\n\treturn \"--> \" + string(b)\n}", "title": "" }, { "docid": "2e81f77d419a09f85bd40b1ae744b67b", "score": "0.65675455", "text": "func (r Reques...
c05d0d9718a6fa62d252dce18caac6af
NewLedgerVoucherAttachmentUploadAttachmentParamsWithContext creates a new LedgerVoucherAttachmentUploadAttachmentParams object with the default values initialized, and the ability to set a context for a request
[ { "docid": "686c6dca36ba16f72d564fbf46dccd36", "score": "0.8011552", "text": "func NewLedgerVoucherAttachmentUploadAttachmentParamsWithContext(ctx context.Context) *LedgerVoucherAttachmentUploadAttachmentParams {\n\tvar ()\n\treturn &LedgerVoucherAttachmentUploadAttachmentParams{\n\n\t\tContext: ctx,\n\...
[ { "docid": "d243f177cdc6cdab3c50231168a98985", "score": "0.7876268", "text": "func (o *LedgerVoucherAttachmentUploadAttachmentParams) WithContext(ctx context.Context) *LedgerVoucherAttachmentUploadAttachmentParams {\n\to.SetContext(ctx)\n\treturn o\n}", "title": "" }, { "docid": "22aad679884...
446fdef0125ab505355f1bd044ac6ab1
Key function returns key value.
[ { "docid": "1d7972efd23ce9ba8ac74d9877bdb9db", "score": "0.0", "text": "func (e NrcgiValidationError) Key() bool { return e.key }", "title": "" } ]
[ { "docid": "237e5ea3666cb689299b4b70ee6fe271", "score": "0.7397974", "text": "func (m *KeyValue) GetKey()(*string) {\n return m.key\n}", "title": "" }, { "docid": "803a34d99733371be76d0b776cd0d1f5", "score": "0.703695", "text": "func (f binaryEqualsFunc) key() Key {\n\treturn f.k\...
4c162fded189adc6519abc0c0d14121c
newRunAnsibleCmd returns a command that will run an ansible operator.
[ { "docid": "7d029b364b4f0cc9ff25bf0be6438be1", "score": "0.85398453", "text": "func newRunAnsibleCmd() *cobra.Command {\n\tvar flags *aoflags.AnsibleOperatorFlags\n\trunAnsibleCmd := &cobra.Command{\n\t\tUse: \"ansible\",\n\t\tShort: \"Runs as an ansible operator\",\n\t\tLong: `Runs as an ansible oper...
[ { "docid": "df80d562e7c14d31213b9e3602605499", "score": "0.6011268", "text": "func Ansible() *cobra.Command {\n\n\tcmd := &cobra.Command{\n\t\tUse: \"build\",\n\t\tRunE: func(cmd *cobra.Command, args []string) error {\n\n\t\t\tvim, scenario, err := initJettison()\n\t\t\tif err != nil {\n\t\t\t\treturn e...
d64a6c24d2bbc6cb8fb3a5191acb7e07
NewConnection connects and starts reading from a Dtx based service on the device
[ { "docid": "fc3407a3023b3db6c9f3181287d37d36", "score": "0.58379674", "text": "func NewConnection(device ios.DeviceEntry, serviceName string) (*Connection, error) {\n\tconn, err := ios.ConnectToService(device, serviceName)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\trequestChannelMessages := make(ch...
[ { "docid": "08672c73387ab6845b7d04f547dfb86e", "score": "0.57090706", "text": "func reader(dtxConn *Connection) {\n\tfor {\n\t\treader := dtxConn.deviceConnection.Reader()\n\t\tmsg, err := ReadMessage(reader)\n\t\tif err != nil {\n\t\t\terrText := err.Error()\n\t\t\tif err == io.EOF || strings.Contains(...
d3936a1dfca7531a2be657cab4a172fa
newDaemonstools returns a Daemonstools
[ { "docid": "e6b6d15b5aae2a118b9ee72f69d2918c", "score": "0.8454878", "text": "func newDaemonstools(c *UalterV1beta1Client, namespace string) *daemonstools {\n\treturn &daemonstools{\n\t\tclient: c.RESTClient(),\n\t\tns: namespace,\n\t}\n}", "title": "" } ]
[ { "docid": "01d48514ae92f233b4d94f53e2ba3b91", "score": "0.6083178", "text": "func (c *daemonstools) Create(ctx context.Context, daemonstool *v1beta1.Daemonstool, opts v1.CreateOptions) (result *v1beta1.Daemonstool, err error) {\n\tresult = &v1beta1.Daemonstool{}\n\terr = c.client.Post().\n\t\tNamespace...
52f3c799a190eb73b29c079035765f12
NewAnnouncement creates a new announcement and starts its goroutine
[ { "docid": "bfd6e35eccff45ed9a20653c943ebe21", "score": "0.67519796", "text": "func NewAnnouncement(line string) (*Announcement, error) {\n\tvar announcement Announcement\n\n\terr := announcement.parse(line)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn &announcement, nil\n}", "title": ""...
[ { "docid": "f9bf5a1e681aa0416ee890834595cb21", "score": "0.6654848", "text": "func NewAnnouncementServer(ctx context.Context, cmd chan<- command) *AnnouncementServer {\n\tvar as AnnouncementServer\n\tas.announcements = make([]*Announcement, 0, 1)\n\tas.commandQueue = cmd\n\tas.ctx = ctx\n\n\tgo as.start...
1d0424c7f55d2047d65e70b5023a1360
StartCalls gets all the calls that were made to Start. Check the length with: len(mockedHarborProjectController.StartCalls())
[ { "docid": "71893ea99b89f9c6a14f6584df41b2d2", "score": "0.8853412", "text": "func (mock *HarborProjectControllerMock) StartCalls() []struct {\n\tCtx context.Context\n\tThreadiness int\n} {\n\tvar calls []struct {\n\t\tCtx context.Context\n\t\tThreadiness int\n\t}\n\tlockHarborProjectCon...
[ { "docid": "f537dc85d5ca92a21192d4c3458b4ef3", "score": "0.8404681", "text": "func (mock *SourceCodeRepositoryControllerMock) StartCalls() []struct {\n\tCtx context.Context\n\tThreadiness int\n} {\n\tvar calls []struct {\n\t\tCtx context.Context\n\t\tThreadiness int\n\t}\n\tlockSourceCod...
8b21fcbc9e736dbf5cc401b534191fcf
Requires Authentication Predefined Parameter Functions
[ { "docid": "7a83dc3a4043dd324bc27a8fa83067bd", "score": "0.0", "text": "func TypeId(id int) util.KVP {\n\treturn util.KVP{Key:\"type_id\", Value:strconv.Itoa(id)}\n}", "title": "" } ]
[ { "docid": "cabfbe32283941277caac04e0ce1e9ea", "score": "0.60859954", "text": "func AUTHCommand(c *redigo.CommandArg) {\n\n}", "title": "" }, { "docid": "fd2b0909831f1b115c6f290695be3dcf", "score": "0.59169155", "text": "func SimpleAuth(fn http.HandlerFunc) http.HandlerFunc {\n\tretu...
b85784ac23de6ed37a500513b69018d3
IP address of service endpoint of the App Service Environment.
[ { "docid": "48e5d23dca0cabb87ee4e942e21c5094", "score": "0.6810012", "text": "func (o GetAppServiceEnvironmentResultOutput) ServiceIpAddress() pulumi.StringOutput {\n\treturn o.ApplyT(func(v GetAppServiceEnvironmentResult) string { return v.ServiceIpAddress }).(pulumi.StringOutput)\n}", "title": "" ...
[ { "docid": "42b9170f91f07a4ff9b8bb8b0816c3a7", "score": "0.699545", "text": "func (s Wrapper) IPAddress() service.IpAddress {\n\treturn s.Service\n}", "title": "" }, { "docid": "006676406c20ca14692c1815386c2f90", "score": "0.67773956", "text": "func GetServiceAddr(container *dc.Conta...
f0ff327e558c7b3e2ed39c479ece3abf
If server receives a validated cHello, remember caller's address.
[ { "docid": "f1fc1c4bafdf8bff5f90bdfc6c5d66fc", "score": "0.598775", "text": "func (p *PuckFS) callerSet(cmd uint16, caller *net.UDPAddr) {\n\tif p.caller == nil {\n\t\t // If nil, we're a client. And we already know the server's address.\n\t\treturn\n\t}\n\tif cmd != cHello {\n\t\treturn // callerSet is...
[ { "docid": "cf49ad4b0395535f63828c5f758239c6", "score": "0.58831507", "text": "func clientHelloServerName(br *bufio.Reader) (string, bool, string, error) {\n\thdr, err := br.Peek(1)\n\tif err != nil {\n\t\topErr, ok := err.(*net.OpError)\n\t\tif err != io.EOF && (!ok || !opErr.Timeout()) {\n\t\t\tlog.Wi...
588a91f6264f1aebce9ad13807cb666b
JSONString returns path representation is JSON convention
[ { "docid": "d038b3c6c8126c9ce39528e2f224e93d", "score": "0.70013136", "text": "func (fp *DeleteRegionRequest_FieldTerminalPath) JSONString() string {\n\treturn strcase.ToLowerCamel(fp.String())\n}", "title": "" } ]
[ { "docid": "c7f67b1cbff80fa25bd9296e76c25e17", "score": "0.7517738", "text": "func (fpm *RegionalDistribution_FieldPathMap) JSONString() string {\n\treturn strcase.ToLowerCamel(fpm.selector.String()) + \".\" + fpm.key\n}", "title": "" }, { "docid": "866fd80eaca47a91fc030611704b3a43", "sc...
59561706c51859fca84f9b8658ba8325
Find the minimum between two ints.
[ { "docid": "2751227f5d6390bdc6de889321faa60f", "score": "0.8292288", "text": "func minInt(a, b int) int {\n\tif a <= b {\n\t\treturn a\n\t}\n\treturn b\n}", "title": "" } ]
[ { "docid": "da60d362d9df8c6649ffb0cf74eacd82", "score": "0.8433884", "text": "func minInt(a, b int) int {\n\tif a < b {\n\t\treturn a\n\t}\n\n\treturn b\n}", "title": "" }, { "docid": "622be7b87e60093d674dd4aea4dbf346", "score": "0.8396316", "text": "func minInt(a int, b int) int {\n...
68ca924aacc20c6dab8f98f298707969
GetDefaultAssertions return default assertions for type imap
[ { "docid": "0b8ffe88f74f915270194c9a15c25322", "score": "0.682499", "text": "func (Executor) GetDefaultAssertions() *venom.StepAssertions {\n\treturn &venom.StepAssertions{Assertions: []venom.Assertion{\"result.err ShouldBeEmpty\"}}\n}", "title": "" } ]
[ { "docid": "5ef2946fecd242a8eb94e90aac171f33", "score": "0.6612641", "text": "func DefaultNodeAssertions() NodeAssertions {\n\treturn NodeAssertions{\n\t\tast.KindAutoLink: func(t *testing.T, sa, sb []byte, a, b ast.Node) bool {\n\t\t\tna, nb := a.(*ast.AutoLink), b.(*ast.AutoLink)\n\t\t\treturn assert....
ffe633af194d55b448cefc77112c79b1
Authorize wraps handler with authorization middleware
[ { "docid": "b606653869b380209c543a8c141dec74", "score": "0.70962876", "text": "func (auth *Authorization) Authorize(handler http.Handler) http.Handler {\n\treturn auth.middleware.Handler(handler)\n}", "title": "" } ]
[ { "docid": "d25d3f5bd9136d272cba1093c6af21ea", "score": "0.7387067", "text": "func Authorize(next http.Handler, jwtSigningKey, apiKey string) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\thttputil.Authorize(w, r, jwtSigningKey, apiKey, next)\n\t})\n}", ...
a31ef91a2f429cd056f827ec173f3a82
BuildHelloYARPCProcedures prepares an implementation of the Hello service for YARPC registration.
[ { "docid": "0411053ba1d5fa287150344365ad2b7b", "score": "0.77331954", "text": "func BuildHelloYARPCProcedures(server HelloYARPCServer) []transport.Procedure {\n\treturn buildHelloYARPCProcedures(buildHelloYARPCProceduresParams{Server: server})\n}", "title": "" } ]
[ { "docid": "150f0e7948dd8b49ff47d53cd70cb0d9", "score": "0.7736326", "text": "func BuildHelloServiceYARPCProcedures(server HelloServiceYARPCServer) []transport.Procedure {\n\thandler := &_HelloServiceYARPCHandler{server}\n\treturn protobuf.BuildProcedures(\n\t\tprotobuf.BuildProceduresParams{\n\t\t\tSer...
f70d63b62973703edc6c3c2c6d8176e4
Message returns the error message
[ { "docid": "9573756ed6d30a562cf1fc541808a735", "score": "0.719475", "text": "func (dpe *DeclinedPayoutError) Message() string {\n\treturn dpe.errorMessage\n}", "title": "" } ]
[ { "docid": "6c12f53ead6fd7a2503104e3fdea2548", "score": "0.825489", "text": "func (e *Error) Message() string { return e.message }", "title": "" }, { "docid": "a055e20b62f278447a02ac872d04aba3", "score": "0.7676938", "text": "func (e fieldsError) Message() string {\n\treturn e.messag...
b1b40c08f1312cdabbd7b620d7091387
PossibleOrderByValues returns an array of possible values for the OrderBy const type.
[ { "docid": "3804fffe1e10f8169b9908ed2f8e3677", "score": "0.81277114", "text": "func PossibleOrderByValues() []OrderBy {\n\treturn []OrderBy{Newest, Oldest, Suggested}\n}", "title": "" } ]
[ { "docid": "b9fe02c1a8224251609e3571bd363833", "score": "0.7685913", "text": "func PossibleSortingOrderValues() []SortingOrder {\n\treturn []SortingOrder{ASC, DESC}\n}", "title": "" }, { "docid": "4513441a2b8d77f7bfdc89696e1c247b", "score": "0.76657516", "text": "func OrderBy_Values(...
abf4cf1eba117ad49eb23ff472fb2eb3
augmented methods on protoc/std generated struct
[ { "docid": "926fd74cc13d85f93c5cab2156b8a1c7", "score": "0.0", "text": "func (m *EnumInfo) ToJSON() (string, error) {\n\treturn codec.ToJSON(m)\n}", "title": "" } ]
[ { "docid": "dee30664c11a22fe879cf0892fb6d3b1", "score": "0.611371", "text": "func protoBufMessageDef(att *expr.AttributeExpr, sd *ServiceData) string {\n\tswitch actual := att.Type.(type) {\n\tcase expr.Primitive:\n\t\treturn protoNativeType(att.Type)\n\tcase *expr.Array:\n\t\treturn \"repeated \" + pro...
645fdc992329c329133848ef0c8a01ab
SetFolderId sets the FolderId field's value.
[ { "docid": "05da9282a70f997c6571f9533e5bfbf9", "score": "0.8180919", "text": "func (s *DeleteFolderOutput) SetFolderId(v string) *DeleteFolderOutput {\n\ts.FolderId = &v\n\treturn s\n}", "title": "" } ]
[ { "docid": "ce5dada788b8b029dc8d9d66b4410d12", "score": "0.8537978", "text": "func (s *UpdateFolderOutput) SetFolderId(v string) *UpdateFolderOutput {\n\ts.FolderId = &v\n\treturn s\n}", "title": "" }, { "docid": "66daa6b6ee97ea5445f0935c458b958d", "score": "0.8503225", "text": "func...
516779b0daee9833201caf4050e57415
A transaction on the same leader connection is in progress, the Begin hook succeeds, but SQLite fails to start the write transaction returing ErrBusy.
[ { "docid": "04a041478e5982f211b54613a36ca7eb", "score": "0.52508795", "text": "func TestIntegration_Begin_BusyRetrySameConn(t *testing.T) {\n\tconns, control, cleanup := newCluster(t)\n\tdefer cleanup()\n\n\tr1 := control.LeadershipAcquired(time.Second)\n\tconn := conns[r1][0]\n\n\t_, err := conn.Exec(\...
[ { "docid": "bf75bdc0ccc23b4bd61490f6072f4ea4", "score": "0.6804842", "text": "func (db DB) Begin(writable bool) (database.Transaction, error) {\n\t// If the database was opened with DB.readonly flag true, we cannot create\n\t// a writable transaction\n\tif db.readOnly && writable {\n\t\treturn nil, erro...
372f51b03665b62664e6e3280535466f
TypeIDs returns the type ids in the mutation. Note that ids always returns len(ids) <= 1 for unique edges, and you should use TypeID instead. It exists only for internal usage by the builders.
[ { "docid": "21cd07c54f60f07ab77ce2ac75f1649d", "score": "0.76457727", "text": "func (m *MenuMutation) TypeIDs() (ids []int) {\n\tif id := m._type; id != nil {\n\t\tids = append(ids, *id)\n\t}\n\treturn\n}", "title": "" } ]
[ { "docid": "2b8fff70cc93bb7a3b597f22bf581d18", "score": "0.8026092", "text": "func (m *ServiceMutation) TypeIDs() (ids []int) {\n\tif id := m._type; id != nil {\n\t\tids = append(ids, *id)\n\t}\n\treturn\n}", "title": "" }, { "docid": "66fab8555cda88e9dd811aa5414af43d", "score": "0.79523...
6968b4b0ad41ad7843a3e4281925234f
EnterLabelMatcher is called when production labelMatcher is entered.
[ { "docid": "f3cc724f975b35402d70a6e76462f0b4", "score": "0.864204", "text": "func (s *BasePromQLParserListener) EnterLabelMatcher(ctx *LabelMatcherContext) {}", "title": "" } ]
[ { "docid": "5ffa5ec74de60a6e198e9127f00b4937", "score": "0.80133057", "text": "func (s *BasePromQLParserListener) EnterLabelMatcherOperator(ctx *LabelMatcherOperatorContext) {}", "title": "" }, { "docid": "e9fdec52e94317d35a5f74e50a7f48b7", "score": "0.76766884", "text": "func (s *Ba...
6f91ff507074578980b5197a5b5ea7e6
Run registers a service to periodically call the osconfig enpoint to pull the latest applicaple configurations and apply them.
[ { "docid": "c63f2d2c779a705f69594562a21501a0", "score": "0.57367736", "text": "func Run(ctx context.Context, action string) error {\n\tif err := service.Register(ctx, \"google_osconfig_agent\", \"Google OSConfig Agent\", \"\", run, action); err != nil {\n\t\treturn fmt.Errorf(\"service.Register error: %...
[ { "docid": "2eace3bb31ed0fa480f19215b4a5eda1", "score": "0.6124028", "text": "func configureService(c *service.Config) {\n\tc.Option = service.KeyValue{}\n\n\t// OS X\n\t// Redefines the launchd config file template\n\t// The purpose is to enable stdout/stderr redirect by default\n\tc.Option[\"LaunchdCo...
96c4ee6843778d1748a658d0ae1adcd2
Deprecated: Use DumpRIBRequest.ProtoReflect.Descriptor instead.
[ { "docid": "c3206df24937af878b0f2606390b868c", "score": "0.6925523", "text": "func (*DumpRIBRequest) Descriptor() ([]byte, []int) {\n\treturn file_github_com_bio_routing_bio_rd_protocols_bgp_api_bgp_proto_rawDescGZIP(), []int{3}\n}", "title": "" } ]
[ { "docid": "3ab7613230c6da0ee0c1f1e5794eb804", "score": "0.7101069", "text": "func (*PatchCollectorsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{161}\n}", "title": "" }, { "docid": "157cf2129c8bdb51bfaf750605340d04", "score"...
54a7b93d70ebbc49f9ce292702c84cd5
SetXA The position of the Game Object on the x axis relative to the local coordinates of the parent.
[ { "docid": "c4c00c848cca54059317af81172b826b", "score": "0.7181239", "text": "func (self *TileSprite) SetXA(member int) {\n self.Object.Set(\"x\", member)\n}", "title": "" } ]
[ { "docid": "49c3fa989bfc11d3381770d58fa0bed4", "score": "0.7439735", "text": "func (self *Graphics) SetCenterXA(member int) {\n self.Object.Set(\"centerX\", member)\n}", "title": "" }, { "docid": "36103cb60d66b50bbd1505ab76e27c2c", "score": "0.7239161", "text": "func (self *TileSp...
24973ea4f12307fefa02450032ddfef8
The number of availability domains instances will be spread across. If two instances are in different availability domain, they will not be put in the same low latency network
[ { "docid": "c13f0ccc1627b9b28dfbffa32256712d", "score": "0.5608554", "text": "func (o ResourcePolicyGroupPlacementPolicyOutput) AvailabilityDomainCount() pulumi.IntPtrOutput {\n\treturn o.ApplyT(func(v ResourcePolicyGroupPlacementPolicy) *int { return v.AvailabilityDomainCount }).(pulumi.IntPtrOutput)\n...
[ { "docid": "c9be083f79e901a45d878c6c82e13493", "score": "0.62672424", "text": "func (gc GroupConfig) InstanceCount() int {\n\tcount := 0\n\tfor _, t := range gc.Tiers {\n\t\tfor range t.Instances {\n\t\t\tcount++\n\t\t}\n\t}\n\treturn count\n}", "title": "" }, { "docid": "ac56e42a0dcee5bdbc6...
1cec8b1cc7c725bf8eadfec33da02a79
WriteToRequest writes these params to a swagger request
[ { "docid": "290338a591ca57fcdf413ecbbb2d7c7d", "score": "0.0", "text": "func (o *GetMsgVpnBridgeRemoteMsgVpnParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {\n\n\tif err := r.SetTimeout(o.timeout); err != nil {\n\t\treturn err\n\t}\n\tvar res []error\n\n\t// path param bridgeN...
[ { "docid": "bc757c2e0f9ad8aa5a73cbd1184bdc06", "score": "0.7469954", "text": "func (o *AddParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {\n\n\tif err := r.SetTimeout(o.timeout); err != nil {\n\t\treturn err\n\t}\n\tvar res []error\n\n\t// query param api-version\n\tqrAPIVers...
970e1f90979d7ef4426e9a9c4279abe3
GetNewParentInfo Returns a slice of ErrBaseInfo structures with the first element initialized to a new ErrBaseInfo structure.
[ { "docid": "d790dfa58466460385d2ba9012c1819a", "score": "0.87010455", "text": "func (b ErrBaseInfo) GetNewParentInfo(srcFile, parentObj, funcName string, baseErrID int64) []ErrBaseInfo {\n\tvar parent []ErrBaseInfo\n\n\tbi := b.New(srcFile, parentObj, funcName, baseErrID)\n\n\treturn append(parent, bi)\...
[ { "docid": "faa94d39f916a9749a03f0fe850eafb7", "score": "0.6864566", "text": "func (s *SpecErr) DeepCopyParentInfo(pi []ErrBaseInfo) []ErrBaseInfo {\n\n\tif len(pi) == 0 {\n\t\treturn pi\n\t}\n\n\ta := make([]ErrBaseInfo, 0, len(pi)+10)\n\tfor _, bi := range pi {\n\t\ta = append(a, bi.NewBaseInfo())\n\t...
91de49f02b2f121695781ddeaaded955
getNonce getting unique nonce
[ { "docid": "9d54c223937c2252bc6dbfd8789a4ff2", "score": "0.78915954", "text": "func getNonce() int64 {\n\tif nonce == 0 {\n\t\tnonce = time.Now().UnixNano()\n\t}\n\tnonce++\n\treturn nonce\n}", "title": "" } ]
[ { "docid": "e8b279b35bdc7d2a1b18df3881981845", "score": "0.7932341", "text": "func nonce() string {\n\treturn strconv.FormatInt(nonceGenerator.Int63(), 10)\n}", "title": "" }, { "docid": "2e0afa243eb7a88e1a3b9b763e2b317f", "score": "0.7908975", "text": "func nonce() string {\n\tnonce...
baa77d30462d696f0fe070eadaeb7506
SetTimeout adds the timeout to the create custom ID p params
[ { "docid": "d29f098d2c8a730e9da968bd967f0124", "score": "0.85898864", "text": "func (o *CreateCustomIDPParams) SetTimeout(timeout time.Duration) {\n\to.timeout = timeout\n}", "title": "" } ]
[ { "docid": "b91bbfc37635cbb68c4cbaca36464457", "score": "0.7552384", "text": "func (o *CreateCustomIDPParams) WithTimeout(timeout time.Duration) *CreateCustomIDPParams {\n\to.SetTimeout(timeout)\n\treturn o\n}", "title": "" }, { "docid": "f222b456d956834ad398e884d8fe8424", "score": "0.74...
091a7ceb2570da0cf440d75613f0d7e9
firstRetryNoDelayBackoff modifies the target Backoff to not delay in the first retry.
[ { "docid": "67a9fd84165397c2a961d96e80e59413", "score": "0.88809335", "text": "func firstRetryNoDelayBackoff(target Backoff) Backoff {\n\treturn &backoffImpl{func(ctx Context) time.Duration {\n\t\tif ctx.RetryCount == 1 {\n\t\t\treturn 0\n\t\t} else {\n\t\t\treturn target.GetDelay(ctx.previous())\n\t\t}...
[ { "docid": "bd61e26ded8306fe446414511c0efe2d", "score": "0.70270103", "text": "func (s Specification) FirstRetryDelay(t time.Duration) Specification {\n\ts.startDelay = t\n\treturn s\n}", "title": "" }, { "docid": "269b8ae0b3892e10a9715d1c2940d08d", "score": "0.6299966", "text": "fun...
fed4e249844cf365de5e721d82802159
Stop stops the alert engine.
[ { "docid": "696ebd47d1ee79d7c10f2df344ee64d2", "score": "0.7362073", "text": "func (a *StatsAlertEngine) Stop() {\n\ta.cancelFunc()\n\ta.wg.Wait()\n\n\t// close all the API clients\n\tfor _, apiCl := range a.apiClients.clients {\n\t\tif apiCl != nil {\n\t\t\tapiCl.Close()\n\t\t}\n\t}\n\ta.apiClients.cli...
[ { "docid": "778248f98ab4834d2dea290daba1d31d", "score": "0.74459094", "text": "func (e *Engine) Stop() {\n\te.stopSig <- true\n}", "title": "" }, { "docid": "8afebbd5d121c0dac8a54e44a77073ab", "score": "0.7433983", "text": "func (ei *EngineInstance) Stop(signal os.Signal) error {\n\t...
c89e3fd10223de271c7de6ab92dd013d
SetPreviousTapTimeA A timestamp representing when the Pointer was last tapped or clicked.
[ { "docid": "49f4cb407fbd7dbc459f1a40e67d8255", "score": "0.81827134", "text": "func (self *Pointer) SetPreviousTapTimeA(member int) {\n self.Object.Set(\"previousTapTime\", member)\n}", "title": "" } ]
[ { "docid": "f6d490d49b52cb2dbe60f330b1360557", "score": "0.64461684", "text": "func (k Keeper) SetPreviousAccrualTime(ctx sdk.Context, ctype string, previousAccrualTime time.Time) {\n\tstore := prefix.NewStore(ctx.KVStore(k.key), types.PreviousAccrualTimePrefix)\n\tbz, err := previousAccrualTime.Marshal...
82df8cf474740646eb50ed87f61603a2
List returns an error after repo.MaxListFiles files.
[ { "docid": "4651df7be80e02eec8ac549ba3ac7bae", "score": "0.78585076", "text": "func (repo *ErrorRepo) List(ctx context.Context, t restic.FileType, fn func(restic.ID, int64) error) error {\n\tif repo.MaxListFiles == 0 {\n\t\treturn errors.New(\"test error, max is zero\")\n\t}\n\n\tmax := repo.MaxListFile...
[ { "docid": "686a9f01339c606bf0c5c1fd739360b1", "score": "0.6939299", "text": "func (svc *service) FilesList(rq *contract.BaseRequest) ([]contract.FileInfo, error) {\n\n\terr := svc.validateBaseRQ(rq)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\terr = svc.setSettings(rq.User, rq.Repository, rq.Branc...
8ac0cd3b9f011106e6bc7839d88c6821
WithNameNic adds the nameNic to the dcim power port templates list params
[ { "docid": "27f608c794e35f95298034b7cf8bcf22", "score": "0.6745883", "text": "func (o *DcimPowerPortTemplatesListParams) WithNameNic(nameNic *string) *DcimPowerPortTemplatesListParams {\n\to.SetNameNic(nameNic)\n\treturn o\n}", "title": "" } ]
[ { "docid": "f34d6de261597cdf97d849b316c15740", "score": "0.59739655", "text": "func (o *IpamRouteTargetsListParams) WithNameNic(nameNic *string) *IpamRouteTargetsListParams {\n\to.SetNameNic(nameNic)\n\treturn o\n}", "title": "" }, { "docid": "aefff0a497f0ce5cfc3afe8ea9701d9f", "score": ...
203c1fb630183badb450a033b2783ec6
Conn, get connection to database configured with given user info
[ { "docid": "a8aaf778858a2dfa6ccc0fefdedea18d", "score": "0.66608155", "text": "func Conn(configures *config.TomlConfig) (db *gorm.DB,err error) {\n\tlog = logging.GetLogger(configures.Log.Level)\n\n\tmysqlConf := configures.Mysql\n\tmysqlHost := mysqlConf.Host + \":\" + mysqlConf.Port\n\tmysqlDB := mysq...
[ { "docid": "dfec4d4ab8d1a1771571f265ab33aedc", "score": "0.7029167", "text": "func GetConnection() (database *sql.DB) {\n\tdatabaseDriver := \"mysql\"\n\tdatabaseUser := \"newuser\"\n\tdatabasePass := \"newuser\"\n\tdatabaseName := \"crm\"\n\tdatabase, error := sql.Open(databaseDriver, databaseUser+\":\...
c4eda072a6b3519b02e58bbea37785df
Create a new user
[ { "docid": "f07f33ba822c48264f1dc1da9378874a", "score": "0.0", "text": "func (u *User) Create() error {\n\n\tsvc := db.GetSession()\n\n\t// generate a unique UUID for this user\n\tuserID, _ := gocql.RandomUUID()\n\n\tu.Guid = userID.String()\n\n\t// Salt the password\n\tu.Password = HashAndSalt([]byte(u...
[ { "docid": "a730d198b33c2a4f82672f0d3879f4a6", "score": "0.78569764", "text": "func CreateNewUser(c *fiber.Ctx) error {\n\n\treturn c.SendStatus(200)\n}", "title": "" }, { "docid": "644eccc8adfa212c580f2da793f0f93d", "score": "0.785146", "text": "func createUser(c *gin.Context) {\n\t...
a2aec2ff0f23808d18a28dc14d488307
GetTenant returns the authenticated tenant from the current request, or an error otherwise.
[ { "docid": "1f4d449d7d01c8b9ac50bc6ec1b3dfe0", "score": "0.8221136", "text": "func GetTenant(r *http.Request) (*tenant.Tenant, error) {\n\tif rv := context.Get(r, tenantKey); rv != nil {\n\t\tt, ok := rv.(*tenant.Tenant)\n\t\tif !ok {\n\t\t\treturn nil, fmt.Errorf(\"Tenant found but not of correct type\...
[ { "docid": "beef7e5b73444c4943886902b4074821", "score": "0.7552277", "text": "func GetTenant(ctx context.Context, name string) (*api.Tenant, error) {\n\treturn tenant.Get(handler.K8sClient, name)\n}", "title": "" }, { "docid": "3a605944a13d81e3cd00d51fa619cea1", "score": "0.7441598", ...
357a3b958e7689efd736f3fb55508af4
Run is the entrypoint for the agent
[ { "docid": "1c5deb40709fd5e8cc91e98f1d2584d5", "score": "0.73452806", "text": "func (a *Agent) Run() {\n\ta.Init()\n\tlog.Info().\n\t\tInt(\"hosts_count\", len(a.hosts)).\n\t\tMsg(\"Finished hosts import.\")\n\ta.reconciliationLoop()\n}", "title": "" } ]
[ { "docid": "776215ca0c242d55473cc4729ebc80b6", "score": "0.727896", "text": "func (s *agentRunner) Run(conf []byte) error {\n\tcfgPath, err := s.createConfigFile(conf)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"agent: error creating config: %v\", err)\n\t}\n\ttimeout := time.After(10 * time.Second)\n\t...
4c7adfdc25a78ee808eae2ae3e8c61dd
Draw is a function that will draw the border
[ { "docid": "c895c4aa70573d758ba3f5f719f93a7c", "score": "0.0", "text": "func (fm *FieldMap) Draw(screen *tl.Screen) {\n\tfor v := range fm.fm {\n\t\tscreen.RenderCell(v.x, v.y, &tl.Cell{\n\t\t\tBg: tl.ColorBlack,\n\t\t})\n\t}\n}", "title": "" } ]
[ { "docid": "09cef06ac484c374a7691c6f838aab80", "score": "0.76834923", "text": "func (w *PdfWriter) drawBorder() {\n\tlineTo := func(x, y Unit) {\n\t\tw.doc.LineTo(float64(x/Mm), float64(y/Mm))\n\t}\n\n\tw.doc.SetLineWidth(float64(w.BorderWidth / Mm))\n\n\tw.doc.MoveTo(float64((w.current.X+Mm)/Mm), float...
dac1b5b52437225dc51a833c059f95db
Insert: Inserts a new user role. profileId: User profile ID associated with this request.
[ { "docid": "b6b0631fa106dab4940f7cd968dfee55", "score": "0.7315799", "text": "func (r *UserRolesService) Insert(profileId int64, userrole *UserRole) *UserRolesInsertCall {\n\tc := &UserRolesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}\n\tc.profileId = profileId\n\tc.userrole = userrole\n\t...
[ { "docid": "6ab7ff95870bd3acb5b678ec9778e3ec", "score": "0.5587729", "text": "func (r *AccountUserProfilesService) Insert(profileId int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesInsertCall {\n\tc := &AccountUserProfilesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}\n\tc....
6586eeb0e940bf99bc4713dfb30ba8ce
prepareRequest creates an HTTP request for an RPC. Initializes GetBody, so that the request can be resent multiple times when retrying.
[ { "docid": "dc9c8e3f87af37b5061871860f61729b", "score": "0.7016856", "text": "func (c *Client) prepareRequest(options *Options, md metadata.MD, requestMessage []byte) (*http.Request, error) {\n\t// Convert metadata into HTTP headers in canonical form (i.e. Title-Case).\n\t// Extract Host header, it is s...
[ { "docid": "34054678f3e48a35b63c7ce6f732dbb4", "score": "0.7201337", "text": "func (d *DigitalOcean) prepareRequest(method, url string, body io.Reader) (*http.Request, error) {\n\treq, errNR := http.NewRequest(method, url, body)\n\tif errNR != nil {\n\t\treturn nil, errNR\n\t}\n\treq.Header.Set(\"Conten...
0799d3471ca741fa346eea3c8c1625e7
TESTS TestTypeAsIdentifierPart tests the creation of identifiers based on types.
[ { "docid": "227971f42d6a9dda4a9537d45261c635", "score": "0.8378152", "text": "func TestTypeAsIdentifierPart(t *testing.T) {\n\tassert := asserts.NewTesting(t, asserts.FailStop)\n\n\t// Type as identifier.\n\tvar tai TypeToSplitForIdentifier\n\n\tid := identifier.TypeAsIdentifierPart(tai)\n\tassert.Equal...
[ { "docid": "c386ca04a12437c38da59026846cbe96", "score": "0.70514816", "text": "func ( rti *rtInit ) addIdentifierPathTests() {\n dm := builtin.MakeDefMap()\n idPathStruct := func( parts ...interface{} ) *mg.Struct {\n return parser.MustStruct( mg.QnameIdentifierPath, \"parts\", parts )\n ...
468ae034b56654988d679670eaf26c35
Unwrap unwraps the entity that was returned from a transaction after it was closed, so that all next queries will be executed through the driver which created the transaction.
[ { "docid": "c3f5658e5edf878eebec7e3690e50305", "score": "0.6819952", "text": "func (d *Diagnose) Unwrap() *Diagnose {\n\ttx, ok := d.config.driver.(*txDriver)\n\tif !ok {\n\t\tpanic(\"ent: Diagnose is not a transactional entity\")\n\t}\n\td.config.driver = tx.drv\n\treturn d\n}", "title": "" } ]
[ { "docid": "3240711748b6750c9d76f65e8881fc7c", "score": "0.7557739", "text": "func (d *Dispense) Unwrap() *Dispense {\n\ttx, ok := d.config.driver.(*txDriver)\n\tif !ok {\n\t\tpanic(\"ent: Dispense is not a transactional entity\")\n\t}\n\td.config.driver = tx.drv\n\treturn d\n}", "title": "" }, ...
9647b873210526979d097a3177472b54
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be nonnil.
[ { "docid": "3f8cb2f033697ba59d1b0b1ee422293b", "score": "0.0", "text": "func (in *HighAvailabilityPolicyRollingUpdate) DeepCopyInto(out *HighAvailabilityPolicyRollingUpdate) {\n\t*out = *in\n\tout.MinSurge = in.MinSurge\n\tout.MaxSurge = in.MaxSurge\n\treturn\n}", "title": "" } ]
[ { "docid": "af1158730de2f0e70ad56fca78135468", "score": "0.8215289", "text": "func (r *RunInfo) DeepCopyInto(out *RunInfo) {\n\t*out = *r\n}", "title": "" }, { "docid": "cf52e209065280c6fd5fa28ba55d00fb", "score": "0.81280124", "text": "func (in *Base) DeepCopyInto(out *Base) {\n\t*o...
63ebacc9deb14c657b496d12e17f464e
NewInlineObject9 instantiates a new InlineObject9 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
[ { "docid": "1e6f81fee1d8bc7400cc19e1172caffb", "score": "0.7515584", "text": "func NewInlineObject9(appId int32, deviceId int32, stateToken string) *InlineObject9 {\n\tthis := InlineObject9{}\n\tthis.AppId = appId\n\tthis.DeviceId = deviceId\n\tthis.StateToken = stateToken\n\tvar doNotNotify bool = fals...
[ { "docid": "e6d8f371f8dbea0f830a3a5b36ef6fc1", "score": "0.73715615", "text": "func NewInlineObject9WithDefaults() *InlineObject9 {\n\tthis := InlineObject9{}\n\tvar doNotNotify bool = false\n\tthis.DoNotNotify = &doNotNotify\n\treturn &this\n}", "title": "" }, { "docid": "6afad2b73a940a147a...
a50f873d491067b63fba76bd7d8f85c1
GenConnId generates ConnectionId by concat local and remote address, so the ConnectionId is unique for each active connection. UUID is better for unique but is much worse for selfdescribing
[ { "docid": "e353484f0449051481f990db48b076dd", "score": "0.8217087", "text": "func GenConnId(goraConn *goraws.Conn) ConnectionId {\n\tif goraConn == nil {\n\t\treturn ConnectionId(fmt.Sprintf(\"[ws|nil]\"))\n\t}\n\tlocalAddr := goraConn.LocalAddr().String()\n\tcolon := strings.Index(localAddr, \":\")\n\...
[ { "docid": "5ffb64b6ee166fee9a49d2298a709da6", "score": "0.6830123", "text": "func GenConnectionAddrStr(prefix string, ip net.IP, port int) string {\n\tif ip.To4() != nil {\n\t\treturn fmt.Sprintf(\"%v%v:%v\", prefix, ip, port)\n\t}\n\treturn fmt.Sprintf(\"%v[%v]:%v\", prefix, ip, port)\n}", "title"...
bf0638aae86f928705d7ad73a3e5a136
Get preferred outbound ip of this machine
[ { "docid": "659d9d7eb52e7bf47ea194c223e14818", "score": "0.70481503", "text": "func GetOutboundIP() string {\n\tconn, err := net.Dial(\"udp\", \"8.8.8.8:80\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer conn.Close()\n\tlocalAddr := conn.LocalAddr().(*net.UDPAddr)\n\treturn localAddr.IP.String()...
[ { "docid": "30aec024b44b9c8ce2178a5572137c5e", "score": "0.7458478", "text": "func GetOutboundIP() string {\n\tlocalAddrs,_ := net.InterfaceAddrs()\n\taddress := \"0.0.0.0\"\n\tfor _,addr := range localAddrs{\n\t\tidx := strings.LastIndex(addr.String(), \"/\")\n\t\taddrStr := addr.String()[0:idx]\n\t\ti...
0aa76feba38d35f07b2a9e9e50f46d18
SendSignal sends a Windows message to all windows handles that belongs to a given process.
[ { "docid": "fe2df2b51ba75aa5c122641bdce1abf8", "score": "0.771594", "text": "func SendSignal(pid uint32, msg WindowsMessage) error {\r\n\r\n\tvar handlePid uint32\r\n\tvar handles []HWND\r\n\tvar callback uintptr\r\n\tcallback = windows.NewCallback(func(hwnd HWND, lParam LPARAM) uintptr {\r\n\t\tgetWind...
[ { "docid": "7700e92e41abfa4962e9f997fa3ba13f", "score": "0.61888677", "text": "func SendSignal(s Signal) {\n\tsigC <- s\n}", "title": "" }, { "docid": "1d865cfa99c27b8dbbc5fc70afc39ba6", "score": "0.61451423", "text": "func SendSignal(sig os.Signal) {\n\tgetInstance().SigEventChannel...
1dab691f1311c4e656e1ecbf69c84ed8
String returns the string representation
[ { "docid": "7856e9076b3e07e3038186d6bd5ef759", "score": "0.0", "text": "func (s RebootInstanceInput) String() string {\n\treturn awsutil.Prettify(s)\n}", "title": "" } ]
[ { "docid": "8ca704abaf1733dd5a773aca676914e6", "score": "0.72190577", "text": "func (o *Integrationexport) String() string {\n \n \n\n j, _ := json.Marshal(o)\n str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\\\u`, `\\u`, -1))\n\n return str\n}", "title": "" }...
65b6f6133732f099e46aa1b9678068dc
CompressPubkey encodes a public key to 33byte compressed format.
[ { "docid": "963f4f874bdccab52366e5b664e3e57d", "score": "0.7402377", "text": "func CompressPubkey(x, y *big.Int) []byte {\n\tvar (\n\t\tpubkey = S256().Marshal(x, y)\n\t\tpubkeydata = (*C.uchar)(unsafe.Pointer(&pubkey[0]))\n\t\tpubkeylen = C.size_t(len(pubkey))\n\t\tout = make([]byte, 33)\n\...
[ { "docid": "b1a0041d18bf8bbbbe7da24f7aac1450", "score": "0.6689041", "text": "func (pub *PublicKey) Compress() ([]byte, error) {\n\tbuf := make([]byte, PublicKeyCompressedLen)\n\n\t// 1st byte tells the sign of Y\n\tbuf[0] = pubKeyCompressed\n\tif misc.IsOdd(pub.Y) {\n\t\tbuf[0] |= 0x01 // make it 3 for...
6663603b68c00ea21ca1b6ca44f9057e
GetIsAisSupportedOk returns a tuple with the IsAisSupported field value and a boolean to check if the value has been set.
[ { "docid": "1ef707acf0f4c0fba9579d09d2410c42", "score": "0.8083715", "text": "func (o *BankInterface) GetIsAisSupportedOk() (*bool, bool) {\n\tif o == nil {\n\t\treturn nil, false\n\t}\n\treturn &o.IsAisSupported, true\n}", "title": "" } ]
[ { "docid": "a2435162851917705258f3096d67fa8e", "score": "0.7586849", "text": "func (o *BankInterface) GetIsAisSupported() bool {\n\tif o == nil {\n\t\tvar ret bool\n\t\treturn ret\n\t}\n\n\treturn o.IsAisSupported\n}", "title": "" }, { "docid": "00cae23ba8ccbd9103149db0b3ff59bd", "score...
5e75414f440010c1d3e566dc18b4f234
GetNSHandler returns a NSHandler with given name
[ { "docid": "27710f1b0ef8b14882f480caa018809f", "score": "0.82881415", "text": "func (m *Multiplexer) GetNSHandler(name string) (NSHandler, error) {\n\tif hdr, ok := (*m.nshandlers)[name]; ok {\n\t\treturn hdr, nil\n\t}\n\treturn nil, fmt.Errorf(\"nshandler with name '%s' not registered\", name)\n}", ...
[ { "docid": "d635a966d6b9161b33e66b1e62a22691", "score": "0.5953683", "text": "func (m *Multiplexer) RegisterNSHandler(name string, hdr NSHandler) error {\n\tif _, ok := (*m.nshandlers)[name]; ok {\n\t\treturn fmt.Errorf(\"nshandler with name '%s' already registered\", name)\n\t}\n\t(*m.nshandlers)[name]...
e46dd0cf99ca52171699274fbd021425
RegisterPlugin is called when a plugin can be registered
[ { "docid": "9ebcbef627df882754e110bc585c4b5d", "score": "0.72953945", "text": "func (h *RegistrationHandler) RegisterPlugin(pluginName string, endpoint string, versions []string) error {\n\tklog.Infof(\"Register new plugin with name: %s at endpoint: %s\", pluginName, endpoint)\n\n\t// Get node info from...
[ { "docid": "9da9c05ec73d75e2c74156b1676c9052", "score": "0.7955147", "text": "func (d *DummyImpl) RegisterPlugin(pluginName string, endpoint string, versions []string) error {\n\treturn nil\n}", "title": "" }, { "docid": "4a3e544591582f2663f49d3ac53a5e0d", "score": "0.7431859", "text...
4d8a9fdd6ad1fcc73c8f9b472f964f5c
BarDynamicTotal enables dynamic total behaviour.
[ { "docid": "2d4cf9158aa15bb1fe29e085c23e574d", "score": "0.8569316", "text": "func BarDynamicTotal() BarOption {\n\treturn func(s *bState) {\n\t\ts.dynamic = true\n\t}\n}", "title": "" } ]
[ { "docid": "8764ea9690e8ae72b5a4fdd4e5e9c5b1", "score": "0.6822542", "text": "func BarAutoIncrTotal(trigger, amount int64) BarOption {\n\treturn func(s *bState) {\n\t\ts.dynamic = true\n\t\ts.totalAutoIncrTrigger = trigger\n\t\ts.totalAutoIncrBy = amount\n\t}\n}", "title": "" }, { "docid": "...
30ed319206ea8acb79d313a3c17866ed
GetSourcesOk returns a tuple with the Sources field value and a boolean to check if the value has been set.
[ { "docid": "579f89486f6de73bd92c3e307597616e", "score": "0.8368881", "text": "func (o *StackEvent) GetSourcesOk() (*[]string, bool) {\n\tif o == nil {\n\t\treturn nil, false\n\t}\n\treturn &o.Sources, true\n}", "title": "" } ]
[ { "docid": "5a244abfb927fb1d5a52a677ca12a288", "score": "0.8398123", "text": "func (o *LogsDateRemapper) GetSourcesOk() (*[]string, bool) {\n\tif o == nil {\n\t\treturn nil, false\n\t}\n\treturn &o.Sources, true\n}", "title": "" }, { "docid": "8ebba59d1d0e3ea2aa73e954174f76ff", "score": ...
8f94d15351c149b4952e7f7c699a3884
SetPrice is a paid mutator transaction binding the contract method 0x91b7f5ed. Solidity: function setPrice(uint256 _price) returns()
[ { "docid": "e2f18ab63359b2e1c3bf122f78253192", "score": "0.74672717", "text": "func (_Subscribe *SubscribeTransactorSession) SetPrice(_price *big.Int) (*types.Transaction, error) {\n\treturn _Subscribe.Contract.SetPrice(&_Subscribe.TransactOpts, _price)\n}", "title": "" } ]
[ { "docid": "502066831ddf82fe8f901db81e858dc7", "score": "0.8115763", "text": "func (_Apr *AprTransactor) SetPrice(opts *bind.TransactOpts, _token common.Address, _price *big.Int) (*types.Transaction, error) {\n\treturn _Apr.contract.Transact(opts, \"setPrice\", _token, _price)\n}", "title": "" }, ...
442af3dadc480b3c3ce08e441fef0d3c
GetConstraint returns the stringified scheduling constraint of that assignment.
[ { "docid": "ed418d66a8acb13530d271275be5978a", "score": "0.72435045", "text": "func (a *Assignment) GetConstraint() *peloton_api_v0_task.Constraint {\n\treturn a.GetTask().GetTask().GetConstraint()\n}", "title": "" } ]
[ { "docid": "b7aea59b2584a5a213d09de285ec22a8", "score": "0.61519825", "text": "func (a *Client) GetConstraint(params *GetConstraintParams) (*GetConstraintOK, error) {\n\t// TODO: Validate the params before sending\n\tif params == nil {\n\t\tparams = NewGetConstraintParams()\n\t}\n\n\tresult, err := a.tr...
d4fc4552d86f15c81dd29728388c7b59
Cause function returns cause value.
[ { "docid": "d73d0ab9277c4b488ac1834d11e4a35c", "score": "0.0", "text": "func (e TransactionHashValidationError) Cause() error { return e.cause }", "title": "" } ]
[ { "docid": "15613d56a0cb5447df0d92a5c6ca5271", "score": "0.80447143", "text": "func (c *causeT) Cause() error {\n\treturn c.cause\n}", "title": "" }, { "docid": "31acbf74b99ed5d3625c7b321b9d29e0", "score": "0.8029446", "text": "func (w *withCause) Cause() error {\n\treturn w.causer\n...
658727b2eff88aa6d102d97869f9ac9d
String returns the string representation. API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
[ { "docid": "692a601dc55180b0622b7a9f7016e213", "score": "0.0", "text": "func (s PutResolverRulePolicyOutput) String() string {\n\treturn awsutil.Prettify(s)\n}", "title": "" } ]
[ { "docid": "b4630d33b70c5844b5e64ade660963a3", "score": "0.6543435", "text": "func (s Member) String() string {\n\treturn awsutil.Prettify(s)\n}", "title": "" }, { "docid": "b4630d33b70c5844b5e64ade660963a3", "score": "0.6543435", "text": "func (s Member) String() string {\n\treturn ...
8547dab5e07d3a76ae16f0aeff017be3
Begin begins a transaction
[ { "docid": "bc0fb4d499ce2c90f1ed0d701e862846", "score": "0.67670894", "text": "func (db *UserDB) Begin(ctx context.Context) Tx {\n\treturn UserTx{db.db.MustBegin()}\n}", "title": "" } ]
[ { "docid": "b71341508e5797c5d8e3b01d669f460c", "score": "0.7578263", "text": "func (db *DbType) TransactBegin() {\n\tif db.err == nil {\n\t\tif db.transact.ctx == nil {\n\t\t\tdb.transact.ctx = ql.NewRWCtx()\n\t\t}\n\t\t_, _ = db.Exec(\"BEGIN TRANSACTION;\")\n\t\tif db.err == nil {\n\t\t\tdb.transact.ne...
ec41fc1fb8cf2090676b9f25c0e2c40c
Unwrap provides access to the underlying error object.
[ { "docid": "aebcbae165b58368dbf4e0527c639c3c", "score": "0.7640062", "text": "func (e *Error) Unwrap() error {\n\treturn e.error\n}", "title": "" } ]
[ { "docid": "b2f43752c44f977ce3671ada9c4c7d03", "score": "0.7692751", "text": "func (err *Error) Unwrap() error {\n\treturn &err.Err\n}", "title": "" }, { "docid": "1098fcb35d23be4c56accb984685074f", "score": "0.7677178", "text": "func Unwrap(err error) error {\n\treturn errors.Unwrap...