query_id
stringlengths
32
32
query
stringlengths
7
4.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
99121b031a2e20faa722c0bf2d878b96
FindByQty find example by qty
[ { "docid": "80bcbbda926c60319ceffc4c4e3a1129", "score": "0.80560726", "text": "func (operator ExampleOperator) FindByQty(qcs []int, jobNumber int) []ExampleSchema.Example {\n\telist := OperationRunner.RunIntOperation(qcs, operator.FindByQtyOpe, jobNumber)\n\n\treturn convertToExample(elist)\n}", "ti...
[ { "docid": "26a6d44f25cc47d1cfa3428a4ef8ea6f", "score": "0.70127124", "text": "func (operator ExampleOperator) FindByQtyOpe(qcs []int) []interface{} {\n\tcursor, err := operator.collection.Find(\n\t\tcontext.Background(),\n\t\tbson.NewDocument(bson.EC.SubDocumentFromElements(\"qty\",\n\t\t\tconvertSearc...
bf1282f77ac626e630a1f21c8ab3456d
MaxResults query param limits the number of results returned.
[ { "docid": "295962b7bf1b751442a80788e2a1f81f", "score": "0.76362014", "text": "func (r ApiK8sVersionsGetRequest) MaxResults(maxResults int32) ApiK8sVersionsGetRequest {\n\tr.maxResults = &maxResults\n\treturn r\n}", "title": "" } ]
[ { "docid": "a75d573d5ceebab87e30b74b073a0931", "score": "0.8251967", "text": "func (c *ContactFeedCall) MaxResults(max int) *ContactFeedCall {\n\tc.urlParams.Set(\"max-results\", strconv.Itoa(max))\n\treturn c\n}", "title": "" }, { "docid": "019adb4e72dffdcf9b6966d42b7eaae7", "score": "0...
371d34d1b81dc4e4c5b2a9cc7414ba46
SetEndpointAttributes sets the EndpointAttributes field's value.
[ { "docid": "47fafd420b27de312a167472668a06e5", "score": "0.79362017", "text": "func (s *RegisterAppInstanceUserEndpointInput) SetEndpointAttributes(v *EndpointAttributes) *RegisterAppInstanceUserEndpointInput {\n\ts.EndpointAttributes = v\n\treturn s\n}", "title": "" } ]
[ { "docid": "93dd9b621de20567dda706ad0bab5420", "score": "0.8044323", "text": "func (s *AppInstanceUserEndpoint) SetEndpointAttributes(v *EndpointAttributes) *AppInstanceUserEndpoint {\n\ts.EndpointAttributes = v\n\treturn s\n}", "title": "" }, { "docid": "3900e2638de9f0eb942cc9f093241f01", ...
ab025caf07dfd437d17c5dbda140c8dd
Len implements the WireMessage interface.
[ { "docid": "6b30327471cc4e21724cf87a042b2ba2", "score": "0.0", "text": "func (i Insert) Len() int {\n\tpanic(\"not implemented\")\n}", "title": "" } ]
[ { "docid": "7b733b7fc296ef3efbc77f5826fbc135", "score": "0.80816", "text": "func (x *Message) WireLen() int {\n\tvar _c int\n\tif x.Compression != NoCompression {\n\t\t_c = 1\n\t}\n\treturn 4 /* length */ + 1 /* magic */ + _c /* compression */ + 4 /* checksum */ + len(x.Payload)\n}", "title": "" }...
d538396c2ab314462969b7cd9be9b3b0
NewMockNodeServer creates a new mock instance
[ { "docid": "308f6c4ba052404a49aaf8cdf1b41f08", "score": "0.6082522", "text": "func NewMockNodeServer(ctrl *gomock.Controller) *MockNodeServer {\n\tmock := &MockNodeServer{ctrl: ctrl}\n\tmock.recorder = &MockNodeServerMockRecorder{mock}\n\treturn mock\n}", "title": "" } ]
[ { "docid": "6072f246e695b23be1fb00b9837e8b3c", "score": "0.6950372", "text": "func NewServerMock() (*ServerMock, string) {\n\tm := ServerMock{}\n\tm.server = httptest.NewServer(&m)\n\tm.JSONComparer = assertjson.Comparer{IgnoreDiff: assertjson.IgnoreDiff}\n\n\treturn &m, m.server.URL\n}", "title": "...
0418afcc8a4f96e165a54e1d93f70b9a
returns the rbp0.85 score as a float64
[ { "docid": "667c85255efd9d5d0cb84c7c6e7b7114", "score": "0.59050393", "text": "func RBP85(run Ranking,depth,R uint) float64 {\n\treturn RBP(run,depth, R, 0.85)\n}", "title": "" } ]
[ { "docid": "30a99e9672d89417e89d1cc97a0d1dc1", "score": "0.60386884", "text": "func fimpactScore(impact float64) float64 {\n\tif impact == 0 {\n\t\treturn 0.0\n\t}\n\treturn 1.176\n}", "title": "" }, { "docid": "232b35d68e6a18b50c83ad56fa9f451d", "score": "0.6023247", "text": "func R...
205566d70fc1d2bf84e6f1fd18feb2ae
reverses a slice of arrows
[ { "docid": "e024b51ab2cf56f7b4d24f814445df0a", "score": "0.81268764", "text": "func reverseArrowSlice(a []arrow) {\n\tfor i, j := 0, len(a)-1; i < j; i, j = i+1, j-1 {\n\t\ta[i], a[j] = a[j], a[i]\n\t}\n}", "title": "" } ]
[ { "docid": "d99f33a6621027b35bd3bb082d7ff422", "score": "0.69696474", "text": "func reversePolNodeSlice(a []*polNode) {\n\tfor i, j := 0, len(a)-1; i < j; i, j = i+1, j-1 {\n\t\ta[i], a[j] = a[j], a[i]\n\t}\n}", "title": "" }, { "docid": "bcca76887dc6eeac145cf5b84caa26a9", "score": "0.65...
16cf5633e2e401811358b9af67d538db
NewSolPolicyInventory instantiates a new SolPolicyInventory 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": "842fbe8f9139df9087e8b139d5f991aa", "score": "0.69942087", "text": "func NewSolPolicyInventory(classId string, objectType string) *SolPolicyInventory {\n\tthis := SolPolicyInventory{}\n\tthis.ClassId = classId\n\tthis.ObjectType = objectType\n\treturn &this\n}", "title": "" } ]
[ { "docid": "1f7a0f4d213fd7510d036fd18170d6f4", "score": "0.65423614", "text": "func NewInventory(stockMapper, purchaseMapper, salesMapper datamapper.DataMapper, db *sql.DB) *Inventory {\n\t//TODO: the db session injected here must be the same as the db session used by injected datamappers, so database t...
96d213e3e7113427ff2aa7a97172a582
GetAdditionalData gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
[ { "docid": "5d85dd67f1ef6c36b3e97c97385b5e65", "score": "0.0", "text": "func (m *SecurityActionState) GetAdditionalData()(map[string]any) {\n val , err := m.backingStore.Get(\"additionalData\")\n if err != nil {\n panic(err)\n }\n if val == nil {\n var value = make(map[string]...
[ { "docid": "9e3be1dae9689d6398e4df873dc05fd7", "score": "0.78051364", "text": "func (m *AddPasswordPostRequestBody) GetAdditionalData()(map[string]interface{}) {\n return m.additionalData\n}", "title": "" }, { "docid": "f18803d9c4fb2a12dfb5c601f17fda05", "score": "0.7794108", "tex...
80d41be2a2a208d17cdf49915292b4fe
unit tests ============================================================================ benchmarking. Check A path finding efficiency. Run "go test bench ." to get something like: BenchmarkAStar 200000 11593 ns/op
[ { "docid": "e111baf3ddfdc0b8fe66d996ad3236dd", "score": "0.80329686", "text": "func BenchmarkAStar(b *testing.B) {\n\tp := newPath(&emptyPlan{})\n\tfor cnt := 0; cnt < b.N; cnt++ {\n\t\tp.Find(0, 0, gridSize-1, gridSize-1)\n\t}\n}", "title": "" } ]
[ { "docid": "38199507a3758f50d7354d5fd416c593", "score": "0.66601783", "text": "func _TestBenchmarkGraph(t *testing.T) {\n\tsize := 4\n\tgraph := createBenchmarkGraph(size)\n\tpath := Route(graph)\n\tif len(path) != size*2 {\n\t\tt.Fail()\n\t}\n}", "title": "" }, { "docid": "de2d75b3d83a8bfc2...
6fe65ae49a6b2e09eee45aebf0f1699c
PublishScope create a `Publication` for the given agent name and topic, restricted to a given scope.
[ { "docid": "dd5fcda47b0cdf88bf3646e025041e73", "score": "0.7749347", "text": "func PublishScope(agentName string, agentScope string, topicType interface{}) (pubsub.Publication, error) {\n\tlog.Infof(\"legacy.PublishScope agentName(%s), agentScope (%s)\", agentName, agentScope)\n\treturn defaultPubsub.Ne...
[ { "docid": "17ff038671a868434810acced518d82a", "score": "0.61636925", "text": "func NewPublisher(topic Topic) Publisher { return Publisher{topic} }", "title": "" }, { "docid": "acaa6db90a2016d3b9e4f3007470c8de", "score": "0.5797949", "text": "func Publish(agentName string, topicType ...
66e996b829c247bf326070d0a7cd71d0
GetField function returns Field value.
[ { "docid": "bb5829d1ce979d811872a136b4322482", "score": "0.63571525", "text": "func (e AddressValidationError) GetField() string { return e.Field }", "title": "" } ]
[ { "docid": "cba69757649d6a6b33ed5b27a6ae17dc", "score": "0.7641529", "text": "func (f Field) Get() interface{} {\n\t//v := reflect.Indirect(reflect.Value(c.Dest))\n\treturn f.GetField().Interface()\n}", "title": "" }, { "docid": "0b3f6693d5b14264093f1f52b92dcbeb", "score": "0.7372086", ...
335fe010430c91971ed16a432a0a4a92
RegisterService register service with name and protocol specified
[ { "docid": "bf74252d849a394ead2d89dc74b072b6", "score": "0.64005965", "text": "func RegisterService(name string, configs map[string]string, factory ServiceFactory) {\n\tif _, ok := _serviceFactories[name]; ok {\n\t\tglog.Errorf(\"Service '%s' is not registered\", name)\n\t}\n\tcore.RegisterConfig(name, ...
[ { "docid": "138c9c54d14330032af04997e18a019a", "score": "0.7312597", "text": "func (s Server) RegisterService(recv interface{}, name string) {\n\ts.RPCServer.RegisterService(recv, name)\n}", "title": "" }, { "docid": "3f4a14f0d926b6492d51c863c2c29424", "score": "0.72882843", "text": ...
a6c5fb7d00a2762e2c2d588fcac43caa
Add a value to the CloudFormation Resource Metadata. See: Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly. Experimental.
[ { "docid": "2923277053ee0d37c0d4ebe8d8168f18", "score": "0.54302055", "text": "func (c *jsiiProxy_CfnPortfolioShare) AddMetadata(key *string, value interface{}) {\n\t_jsii_.InvokeVoid(\n\t\tc,\n\t\t\"addMetadata\",\n\t\t[]interface{}{key, value},\n\t)\n}", "title": "" } ]
[ { "docid": "df3c2f04f31104585e3b6097b366b762", "score": "0.670766", "text": "func (c *jsiiProxy_CfnCloudFormationProduct) AddMetadata(key *string, value interface{}) {\n\t_jsii_.InvokeVoid(\n\t\tc,\n\t\t\"addMetadata\",\n\t\t[]interface{}{key, value},\n\t)\n}", "title": "" }, { "docid": "389...
6c4cd442ab08bf8345fab0b03a73e1a1
Props is an autogenerated proxy to the current props of Todo
[ { "docid": "d4d4eaf1ba92eb6ab4759f722cca08d8", "score": "0.7359961", "text": "func (t *TodoDef) Props() TodoProps {\n\tuprops := t.ComponentDef.Props()\n\treturn uprops.(TodoProps)\n}", "title": "" } ]
[ { "docid": "63de917f1657a106bc35c6bfafc6ba99", "score": "0.54614735", "text": "func (s HTML) Props(props [][]string) HTML {\n\ts.props = props\n\treturn s\n}", "title": "" }, { "docid": "92b4d705d7d985337149df9d1a292acf", "score": "0.51598155", "text": "func Props(name string) *StepP...
7401831a46c3d9686c77b90fce7896d2
Login completes the OAuth authentication process, which is required to make calls to the Fortnite API
[ { "docid": "1dbc182328b30170fe591a5e7a880b12", "score": "0.71738774", "text": "func (c *Client) Login() {\n\ttokenConfig := OauthTokenRequest{\n\t\tGrantType: \"password\",\n\t\tUsername: c.Email,\n\t\tPassword: c.Password,\n\t\tIncludePerms: true,\n\t}\n\n\tvar accessTokenResponse OauthToken...
[ { "docid": "eb57ca11718c4018c2aeb8441a631da8", "score": "0.6783839", "text": "func (c *Console) Login(w http.ResponseWriter, r *http.Request) {\n\tuuid := uuid.New()\n\tsession.PutString(r, ghOAuthStateKey, uuid.String())\n\n\turl := c.ghoauthConf.AuthCodeURL(uuid.String(), oauth2.AccessTypeOnline)\n\th...
f41f62d8a516cf3986541a682ff31145
Enabled mocks base method.
[ { "docid": "e766df1c2dc76a75dcbc4aba1ddcd5f7", "score": "0.7209725", "text": "func (m *MockIndexOptions) Enabled() bool {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Enabled\")\n\tret0, _ := ret[0].(bool)\n\treturn ret0\n}", "title": "" } ]
[ { "docid": "aa395edb594643452a4bccb0a4e61ebd", "score": "0.7527396", "text": "func (m *MockSwitcher) Enabled() bool {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Enabled\")\n\tret0, _ := ret[0].(bool)\n\treturn ret0\n}", "title": "" }, { "docid": "528bdf803a9939230a09cfce2338d221", "...
6d6777534da1a81edf978e8222681146
Info outputs standard out message
[ { "docid": "12a69c0ed2e44bf1a1b04de149330694", "score": "0.69581634", "text": "func (l *Logger) Info(format string, v ...interface{}) {\n\tif l.info != nil {\n\t\tl.info.Output(2, fmt.Sprintf(format, v...))\n\t}\n}", "title": "" } ]
[ { "docid": "6b1c855b658c2c62d7c0e60a5e205f5c", "score": "0.8053254", "text": "func Info(v ...interface{}) {\n\t_ = info.Output(2, fmt.Sprint(v...))\n}", "title": "" }, { "docid": "6a961ed90f85c724051b43a0c721b2d4", "score": "0.80337775", "text": "func Info(args ...interface{}) {\n\tw...
f2dda6fea15bb4acbf9467f7059f4612
EncodeEntry encodes the log entry in logstash json format
[ { "docid": "e0669a22d391229163674819199450e8", "score": "0.6751226", "text": "func (e *Encoder) EncodeEntry(ent zapcore.Entry, fields []zapcore.Field) (*buffer.Buffer, error) {\n\n\tcfield, defined := caller(ent)\n\tif defined {\n\t\tfields = append(fields, cfield)\n\t}\n\n\tfields = append(fields, leve...
[ { "docid": "75bf04a05de75e5b56c7630d6532c1d2", "score": "0.69732076", "text": "func (entry *LogEntry) encode() ([]byte, error) {\n\n\tn := entry.length()\n\tbuffer := make([]byte, 0, n)\n\twriter := bytes.NewBuffer(buffer)\n\n\t// write checksum\n\terr := binary.Write(writer, binary.LittleEndian, entry....
9a069254b669ff48ea29f161f4ab7905
for each new row y, from 0, find the first x in the row (from 0) where the tractor beam is affecting save that x spot, count to the right, if we are no longer affecting, repeat on next row, otherwise if we reach our limit, count down from saved spot, if we reach our limit, we found the spot, if we stop being affected, ...
[ { "docid": "2c7f8f2096ca927caf106ee3ef19ff00", "score": "0.0", "text": "func part2() {\n\tin := make(chan string, 1)\n\tout := make(chan string, 1)\n\tquit := make(chan string, 1)\n\n\tprogram := getProgram(\"program1.txt\")\n\n\tintCodeComputer := intcode.NewIntCodeComputer(program, in, out, quit, true...
[ { "docid": "00cdf821e92f5be5b742b35164b4cf9d", "score": "0.57081044", "text": "func main() {\n\n\ttarget, _ := strconv.Atoi(os.Args[1])\n\n\t// This is way overkill for the real solution, but needed it for testing initial grid size with value = i\n\tsquareSize := int(math.Ceil(math.Sqrt(float64(target))...
d4c4aebbdddd4c4ff005eed4c84cafa3
write invoke function to write key/value pair
[ { "docid": "5033a2511b44a66b5c9ec0abae62025a", "score": "0.0", "text": "func (t *SimpleChaincode) pagar(stub shim.ChaincodeStubInterface, args []string) ([]byte, error) {\n\t//var pagador, recebedor, dataEntrada, dataSaida, valor string\n\tvar err error\n\tvar recebedor string\n\n\tfmt.Println(\"running...
[ { "docid": "32213f2987d17bfc26ebd72371859cb3", "score": "0.70665115", "text": "func (t *SimpleChaincode) write(stub shim.ChaincodeStubInterface, args []string) ([]byte, error) {\n\tvar key, value string\n\tvar err error\n\tfmt.Println(\"running write()\")\n\n\tif len(args) != 2 {\n\t\tstub.PutState(\"Er...
ebb2a1f2bfd055df1a4e6f2b9ba143d9
NewDefaultService will create a new NLP instance with default arguments
[ { "docid": "6a3374aa906417361ac40fb9d14d4876", "score": "0.7812978", "text": "func NewDefaultService() *NLP {\n\treturn &NLP{\n\t\tLanguage: \"en-US\",\n\t\tURL: \"https://api.languagetool.org/v2/\",\n\t}\n}", "title": "" } ]
[ { "docid": "4a34b450dd08356e83cfa2d5c31c76f7", "score": "0.6598436", "text": "func NewService(url, language string) *NLP {\n\treturn &NLP{\n\t\tLanguage: language,\n\t\tURL: url + \"/v2/\",\n\t}\n}", "title": "" }, { "docid": "1aa01bf503b0bdf4cfb31125ccbd7f48", "score": "0.621271", ...
78e9a933af929d8f8b665e486b26ae91
If set, access is controlled only by bucketlevel or above IAM policies.
[ { "docid": "ab58afebdf428b6a776eb40cb46c147d", "score": "0.46185267", "text": "func (o BucketIamConfigurationUniformBucketLevelAccessOutput) Enabled() pulumi.BoolPtrOutput {\n\treturn o.ApplyT(func(v BucketIamConfigurationUniformBucketLevelAccess) *bool { return v.Enabled }).(pulumi.BoolPtrOutput)\n}", ...
[ { "docid": "c68bcc3e3b848f43046e69314512e5cc", "score": "0.64536357", "text": "func BucketPolicy(bucketName string, roleName string) (json.RawMessage, error) {\n\tswitch roleName {\n\tcase \"admin\":\n\t\treturn []byte(fmt.Sprintf(`{\n\t\t\t\"Version\": \"2012-10-17\",\n\t\t\t\"Statement\": [{\n\t\t\t\t...
fb5fd32db8bc7bb82eac6ce3ee4201b7
DeleteForwardingRule handles the gRPC request by passing it to the underlying ForwardingRule Delete() method.
[ { "docid": "1769eca8dfc133613d904e9c30d27e57", "score": "0.5880443", "text": "func (s *ForwardingRuleServer) DeleteComputeForwardingRule(ctx context.Context, request *computepb.DeleteComputeForwardingRuleRequest) (*emptypb.Empty, error) {\n\n\tcl, err := createConfigForwardingRule(ctx, request.GetServic...
[ { "docid": "3392a23314f3e0c44bbb56bc062007ab", "score": "0.607879", "text": "func deleteForward(hd *HandlerData, res Resource, cmds []string) {\n\tif len(cmds) != 1 {\n\t\trespond(hd, http.StatusNotFound, \"Not Found\")\n\t\treturn\n\t}\n\terr := res.DeleteForward()\n\tif err != nil {\n\t\trespond(hd, h...
9b22cb09f0ad8dbaad95dbb200b48b56
The &39;capability.FexManufacturingDef&39; resource to update.
[ { "docid": "600b039714361e66c83cf686135fc76d", "score": "0.7376157", "text": "func (r ApiPatchCapabilityFexManufacturingDefRequest) CapabilityFexManufacturingDef(capabilityFexManufacturingDef CapabilityFexManufacturingDef) ApiPatchCapabilityFexManufacturingDefRequest {\n\tr.capabilityFexManufacturingDef...
[ { "docid": "be97513028ca433b218387a626e7c131", "score": "0.78846544", "text": "func (a *CapabilityApiService) UpdateCapabilityFexManufacturingDef(ctx context.Context, moid string) ApiUpdateCapabilityFexManufacturingDefRequest {\n\treturn ApiUpdateCapabilityFexManufacturingDefRequest{\n\t\tApiService: a,...
8d6bc675701ae67ae3267aba88c54a86
ConfirmedEQ applies the EQ predicate on the "confirmed" field.
[ { "docid": "68533cd27a0081c54a41d25f5e0f86a8", "score": "0.8130841", "text": "func ConfirmedEQ(v bool) predicate.Account {\n\treturn predicate.Account(func(s *sql.Selector) {\n\t\ts.Where(sql.EQ(s.C(FieldConfirmed), v))\n\t})\n}", "title": "" } ]
[ { "docid": "271de760c6c0cf7f131e737bdd5ff4b4", "score": "0.7068857", "text": "func Confirmed(v bool) predicate.Account {\n\treturn predicate.Account(func(s *sql.Selector) {\n\t\ts.Where(sql.EQ(s.C(FieldConfirmed), v))\n\t})\n}", "title": "" }, { "docid": "2b89cceb6c2aabcbe7dba40de4b38d84", ...
579f1038696d639c4380fc8c606fe126
newNumeric creates a Numeric vindex.
[ { "docid": "987ce0078f9fb5d48e937b64f2b886c4", "score": "0.8588692", "text": "func newNumeric(name string, m map[string]string) (Vindex, error) {\n\treturn &Numeric{\n\t\tname: name,\n\t\tunknownParams: FindUnknownParams(m, nil),\n\t}, nil\n}", "title": "" } ]
[ { "docid": "aed9c703fc6573c2f387dbc5e2c59530", "score": "0.7162552", "text": "func New(num, den numint) *Numeric {\n\tif den < 0 {\n\t\tnum, den = -num, -den\n\t}\n\treturn &Numeric{num: num, den: den}\n}", "title": "" }, { "docid": "da45181cb67d4b10611529408fbce615", "score": "0.6565974...
91b721979ddcdb9ec6ecd5e6d8c688a9
Cells are also formatted (physical) line by line where each physical line is the result of processing cell (irow, jcol) and should be given in the receiver of this method. Each invocation returns a string where each (physical) line is forrmatted according to the horizontal format specification of the jth column.
[ { "docid": "e02d8e5c0d47d1009d3ab160f9be03cf", "score": "0.618659", "text": "func (m multicell) Format(t *Table, irow, jcol int) string {\n\n\t// Formatting a multicell consists of simply returning its output string\n\t// but, in case this multicell spans until the right margin of the table,\n\t// then ...
[ { "docid": "ac236c9279a43b4fff4aa9016552f7a9", "score": "0.607126", "text": "func (t *Grid) prepare() {\n\tif t.prepared {\n\t\treturn\n\t}\n\n\tg := [][]string{} //Grid\n\ti := 0\n\tww := make([]int, t.Columns())\n\tix := make([]int, 0)\n\tfor y, r := range t.rows {\n\t\th := r.Height()\n\t\tfor j := 0...
88aa928c58ba94fd2b83ba551bfa55e8
CollectionRepositoryMiddleware tracks request and their latency, and adds spans to context.
[ { "docid": "f3cb698d310a81a97036d83332e6361a", "score": "0.51819", "text": "func CollectionRepositoryMiddleware(tracer opentracing.Tracer, repo lbs.CollectionRepository) lbs.CollectionRepository {\n\treturn collectionRepositoryMiddleware{\n\t\ttracer: tracer,\n\t\trepo: repo,\n\t}\n}", "title": ""...
[ { "docid": "92211b0cbccdcb1a775f4f814b47e106", "score": "0.54984784", "text": "func Collector(w http.ResponseWriter, r *http.Request) {\n\t// Make sure we can only be called with an HTTP POST request.\n\tif r.Method != \"POST\" {\n\t\tw.Header().Set(\"Allow\", \"POST\")\n\t\tw.WriteHeader(http.StatusMet...
af29fbd458ffcae57611e5efd961c627
SimVarNavActiveFrequency Simvar args contain optional index and/or unit
[ { "docid": "ca65121a196957b3350961e57d11f3b8", "score": "0.7636919", "text": "func SimVarNavActiveFrequency(args ...interface{}) SimVar {\n\tindex, unit := readArgs(args, 0, \"MHz\")\n\treturn SimVar{\n\t\tIndex: index,\n\t\tName: \"NAV ACTIVE FREQUENCY:index\",\n\t\tUnit: unit,\n\t\tSettable...
[ { "docid": "6cdf2aae98417fe604e1054ce43298f2", "score": "0.66517645", "text": "func SimVarAdfActiveFrequency(args ...interface{}) SimVar {\n\tindex, unit := readArgs(args, 0, \"Frequency ADF BCD32\")\n\treturn SimVar{\n\t\tIndex: index,\n\t\tName: \"ADF ACTIVE FREQUENCY:index\",\n\t\tUnit: un...
c2144bcfdfb1ea5ff657faa346d4ac77
/ NewTMSkillSetDefaults returns a new instance of TMSkill, with all fields specified by the caller. The proficiency field must be in the range of 05. If a value is passed in outside of this range, it is clipped to 0 if it's below 0, or 5 if it's above 5.
[ { "docid": "3b2aa46ce414114c9ae77fd4a56bdaf4", "score": "0.8522373", "text": "func NewTMSkillSetDefaults(id, skillID, teamMemberID string, wishList bool,\n\tproficiency int) TMSkill {\n\tif proficiency > 5 {\n\t\tproficiency = 5\n\t}\n\tif proficiency < 0 {\n\t\tproficiency = 0\n\t}\n\treturn TMSkill{\n...
[ { "docid": "6ceb70af915eba72f0c537ace05b461f", "score": "0.77155244", "text": "func NewTMSkillDefaults(id, skillID, teamMemberID string) TMSkill {\n\treturn TMSkill{\n\t\tID: id,\n\t\tSkillID: skillID,\n\t\tTeamMemberID: teamMemberID,\n\t\tWishList: false,\n\t\tProficiency: 0,\n\t}\n...
ede3a63532b9008481d742eacd487a22
ExitXpath is called when production xpath is exited.
[ { "docid": "46db6b3eaaa634c47fafb8276f8455db", "score": "0.8967957", "text": "func (s *BaseXPath31Listener) ExitXpath(ctx *XpathContext) {}", "title": "" } ]
[ { "docid": "2d0707f990421645a23f907eca4baf81", "score": "0.73114777", "text": "func (s *BaseXPath31Listener) ExitStepexpr(ctx *StepexprContext) {}", "title": "" }, { "docid": "0ba01c3a0aa9a2dc17ecfa5486ad65f5", "score": "0.7184598", "text": "func (s *BaseXPath31Listener) ExitPathexpr...
fb5a93b11382d904dadafc4edf64897c
Capture stdour and stdout into a output.
[ { "docid": "878e94c40ff82b74bff9837033e83f49", "score": "0.7047998", "text": "func captureOutput() *output {\n\toldStdout, oldStderr := os.Stdout, os.Stderr\n\tstdout, stdoutCh := makeDiversion()\n\tstderr, stderrCh := makeDiversion()\n\tos.Stdout, os.Stderr = stdout, stderr\n\tlog.SetOutput(os.Stderr)\...
[ { "docid": "b1cf21b8014ad023567331ea1958345c", "score": "0.7144015", "text": "func CaptureStdOut(f func()) string {\n\told := os.Stdout // keep backup of the real stdout\n\n\t// re-direct stdout\n\tr, w, err := os.Pipe()\n\tmsg.FatalOnErr(err)\n\tos.Stdout = w\n\n\t// copy the output in a separate gorou...
897e7893bb3239050a6bf825651b2018
SetMunicipalityName adds the municipalityName to the resolve address info using g e t params
[ { "docid": "aec7bad7fdd2541e0ba4555938099b4b", "score": "0.78812474", "text": "func (o *ResolveAddressInfoUsingGETParams) SetMunicipalityName(municipalityName string) {\n\to.MunicipalityName = municipalityName\n}", "title": "" } ]
[ { "docid": "c08158e3951b285ae49eccd94889af3d", "score": "0.68731153", "text": "func (o *ResolveAddressInfoUsingGETParams) WithMunicipalityName(municipalityName string) *ResolveAddressInfoUsingGETParams {\n\to.SetMunicipalityName(municipalityName)\n\treturn o\n}", "title": "" }, { "docid": "a...
054bbab1ff261b2a075f6f5994af2ca1
coord returns a coordinate string
[ { "docid": "b650c009860e4161b8daa1c1275f287b", "score": "0.7540882", "text": "func coord(x float64, y float64, d int) string { return fmt.Sprintf(`%.*f,%.*f`, d, x, d, y) }", "title": "" } ]
[ { "docid": "a0d4b17cc815ee212394bd6e65fb3005", "score": "0.75065285", "text": "func (c Coordinate) String() string {\n\treturn strconv.Itoa(c.X) + \",\" + strconv.Itoa(c.Y)\n}", "title": "" }, { "docid": "65917d984ec05770c180216bb5a07b99", "score": "0.7426294", "text": "func (c Coord...
63edff44abb13c044d3478c14292e5ce
DeleteDataBag deletes the data bag
[ { "docid": "74662a898258661cf11ccd0ac62106fa", "score": "0.74588805", "text": "func (a *InfraProxyServer) DeleteDataBag(ctx context.Context, r *gwreq.DataBag) (*gwres.DataBag, error) {\n\treq := &infra_req.DataBag{\n\t\tOrgId: r.OrgId,\n\t\tServerId: r.ServerId,\n\t\tName: r.Name,\n\t}\n\tres, er...
[ { "docid": "1c659fa8faca02f128d03f7c41f9f5b5", "score": "0.7658588", "text": "func (s *Server) DeleteDataBag(ctx context.Context, req *request.DataBag) (*response.DataBag, error) {\n\terr := validation.New(validation.Options{\n\t\tTarget: \"databag\",\n\t\tRequest: *req,\n\t\tRequiredDe...
c696d3efc7d04af789e8c29f94fe2845
Trace will log an infolevel message in Zap.
[ { "docid": "b8be38f07a197fae1a8a5832f6d88642", "score": "0.760467", "text": "func (w Wrapper) Trace(msg string, args ...interface{}) {\n\tw.Zap.Info(msg, convertToZapAny(args...)...)\n}", "title": "" } ]
[ { "docid": "5cfdd077e8e8610ae20e97470f80c6dc", "score": "0.7242433", "text": "func (t *Tracer) TraceInfo(format string, args ...interface{}) {\n\tt.Trace(LevelInfo, format, args...)\n}", "title": "" }, { "docid": "2a3513ba0f6764659d5c064b25296f1c", "score": "0.70449156", "text": "fun...
305e66f6130e429d0e4ec08862e074ca
WithOffset adds the offset to the extras custom fields list params
[ { "docid": "9628d892d590cf47b71322bad38411f8", "score": "0.77047604", "text": "func (o *ExtrasCustomFieldsListParams) WithOffset(offset *int64) *ExtrasCustomFieldsListParams {\n\to.SetOffset(offset)\n\treturn o\n}", "title": "" } ]
[ { "docid": "66040c8b205a01a2d4b9f68db7d6ee98", "score": "0.6732851", "text": "func (o *ExtrasCustomFieldsListParams) SetOffset(offset *int64) {\n\to.Offset = offset\n}", "title": "" }, { "docid": "8d627465b682f5728da107b2cdda479d", "score": "0.62493205", "text": "func WithOffset(opti...
e0b46b0c3db68561955b55fd0021083c
Email address of the user who initiated this build. Note that this was the user's email address at the time the build was initiated; this address may not represent the same enduser for all time.
[ { "docid": "ce17da89bddd46f6458badf5ddd1577f", "score": "0.0", "text": "func (o BuildProvenanceOutput) Creator() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v BuildProvenance) *string { return v.Creator }).(pulumi.StringPtrOutput)\n}", "title": "" } ]
[ { "docid": "41df629c3f20fec6546c75ea2e90df02", "score": "0.68878543", "text": "func (project *Project) Email() string {\n\treturn project.config.Raw.Section(\"user\").Option(\"email\")\n}", "title": "" }, { "docid": "e0b5978c10b5f84cedab411d3853bd14", "score": "0.6724539", "text": "f...
d1f6d6327505dc21f2905704b420a5a7
NewSignalDecisionOutcomeFromValue returns a pointer to a valid SignalDecisionOutcome for the value passed as argument, or an error if the value passed is not allowed by the enum
[ { "docid": "1dc3eb9260382263af1b08f7ab3be8ad", "score": "0.78304577", "text": "func NewSignalDecisionOutcomeFromValue(v string) (*SignalDecisionOutcome, error) {\n\tev := SignalDecisionOutcome(v)\n\n\n\treturn &ev, nil\n}", "title": "" } ]
[ { "docid": "3fa33193f5b057601497089fa8ffab6a", "score": "0.5577816", "text": "func (v SignalDecisionOutcome) Ptr() *SignalDecisionOutcome {\n\treturn &v\n}", "title": "" }, { "docid": "049fa456af93a90f61c289177b49917d", "score": "0.4986997", "text": "func CreateTermsAndConditionsAcce...
c8dbfaf17dc5ef46f1d5291278567c75
WithSignature returns a new transaction with the given signature. This signature needs to be formatted as described in the yellow paper (v+27).
[ { "docid": "ee0a278ca6206e68c187b215843ac02a", "score": "0.7817775", "text": "func (tx *Transaction) WithSignature(signer STDSigner, sig []byte) (*Transaction, error) {\n\tr, s, v, err := signer.SignatureValues(sig)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tcpy := &Transaction{data: tx.data}\n\tcp...
[ { "docid": "cee20dbb4101d510790de83e33783f8f", "score": "0.82924885", "text": "func (t *Transaction) WithSignature(sig []byte) *Transaction {\n\tnewTx := Transaction{\n\t\tbody: t.body,\n\t}\n\t// copy sig\n\tnewTx.body.Signature = append([]byte(nil), sig...)\n\treturn &newTx\n}", "title": "" }, ...
4dd43833e988976cfb3e4329249831a7
CheckHeader verifies that the given puller contains the given header
[ { "docid": "debf84283e9839e289e8891843062bfb", "score": "0.8209624", "text": "func CheckHeader(t *testing.T, puller helm.ChartPuller, key, value string) {\n\t// The header property is private so we need to use reflect to get its value\n\tresolver := puller.(*helm.OCIPuller).Resolver\n\tresolverValue := ...
[ { "docid": "5981e1da0496ccc56bb02d25d45d878c", "score": "0.71376806", "text": "func CheckHeader(header, regex string) Check {\n\tre := regexp.MustCompile(regex)\n\n\tf := func(resp *http.Response) bool {\n\t\tvalues := resp.Header.Values(header)\n\t\tif values == nil {\n\t\t\treturn false\n\t\t}\n\n\t\t...
2eef58376a1ac79220530a21bba9624b
Token returns the Ghost jwt token needed for token based authenication.
[ { "docid": "f47e441db97f47e3cfc2ad0f1583fa4d", "score": "0.6724254", "text": "func (ats *AdminTokenSource) Token() (*oauth2.Token, error) {\n\tsplit := strings.Split(ats.Key, \":\")\n\tif len(split) != 2 {\n\t\treturn nil, fmt.Errorf(\"incorrect key format\")\n\t}\n\tkid, secret := split[0], split[1]\n\...
[ { "docid": "95b7c6e440ebd7c19f4337c87cd96013", "score": "0.752199", "text": "func (h Handlers) Token(ctx context.Context, w http.ResponseWriter, r *http.Request) error {\n\tkid := web.Param(r, \"kid\")\n\tif kid == \"\" {\n\t\treturn v1Web.NewRequestError(errors.New(\"missing kid\"), http.StatusBadReque...
2f4176bca1e821633c0304f522c46176
fieldIdx finds the index of the field referred to by the ODOT node n.
[ { "docid": "669eb54ba0744e0c6a72664085166a85", "score": "0.80512595", "text": "func fieldIdx(n *Node) int {\n\tt := n.Left.Type\n\tf := n.Sym\n\tif !t.IsStruct() {\n\t\tpanic(\"ODOT's LHS is not a struct\")\n\t}\n\n\tvar i int\n\tfor _, t1 := range t.Fields().Slice() {\n\t\tif t1.Sym != f {\n\t\t\ti++\n...
[ { "docid": "532527894c04eab835e70d6d596c8cde", "score": "0.7322837", "text": "func (k *Kind) FieldIndex(n string) (ret int) {\n\tif prev := k.lastOne - 1; prev >= 0 && k.fields[prev].Name == n {\n\t\tret = prev\n\t} else {\n\t\tk.ensureTraits()\n\t\tif aspect := findAspect(n, k.traits); len(aspect) > 0 ...
ca9707a695f52f66c6087907565d95bf
BaselineCategoryListIDs returns the "baseline_category_list" edge IDs in the mutation.
[ { "docid": "44152414ddd09b33415af9b889832d53", "score": "0.7893474", "text": "func (m *BaselineClassMutation) BaselineCategoryListIDs() (ids []int) {\n\tfor id := range m.baseline_category_list {\n\t\tids = append(ids, id)\n\t}\n\treturn\n}", "title": "" } ]
[ { "docid": "a204d1037afca35abe6d4a83b54ec655", "score": "0.7295475", "text": "func (m *BaselineClassMutation) RemovedBaselineCategoryListIDs() (ids []int) {\n\tfor id := range m.removedbaseline_category_list {\n\t\tids = append(ids, id)\n\t}\n\treturn\n}", "title": "" }, { "docid": "e22dbd01...
f7844ee521798988b2ca445ee7c4e33b
Deprecated: Use AppRequest.ProtoReflect.Descriptor instead.
[ { "docid": "7d2f2d6d22f4feff9e6f4ac2d430263a", "score": "0.6888006", "text": "func (*AppRequest) Descriptor() ([]byte, []int) {\n\treturn file_app_proto_rawDescGZIP(), []int{0}\n}", "title": "" } ]
[ { "docid": "9904acb6a871d71afc9c9e40b13db7be", "score": "0.711145", "text": "func (*FirewallRequest) Descriptor() ([]byte, []int) {\n\treturn file_app_proto_rawDescGZIP(), []int{4}\n}", "title": "" }, { "docid": "2f416844b016feeb7fa07b23bf564a7f", "score": "0.7069048", "text": "func ...
b6bd80962273931e8fc68251b62193a9
RegisterAPI registers the supplied interface instance as providing 'API' operations for the specified types. This interface instance is returned by APIForKey when called for the specified types.
[ { "docid": "881d7112c28321be0029e0aeaaeba7fe", "score": "0.7940192", "text": "func (r *Registrar) RegisterAPI(ifc API, types ...interface{}) error {\n\tr.mu.Lock()\n\tdefer r.mu.Unlock()\n\tfor _, typ := range types {\n\t\ttyp := reflect.TypeOf(typ).String()\n\t\tif _, ok := r.apis[typ]; ok {\n\t\t\tret...
[ { "docid": "0df10ac099846c99a2cff9136f3792f9", "score": "0.6960841", "text": "func Register(api API) {\n\tid := api.ID()\n\tif existing, present := apis[id]; present {\n\t\tpanic(fmt.Errorf(\"API %s registered more than once. First: %T, Second: %T\", id, existing, api))\n\t}\n\tapis[id] = api\n\n\tindex...
91733eccdef02a225b768c44e320a1cd
/ Returns the value of the ::spacing property.
[ { "docid": "8caca91379644115356063122b91234c", "score": "0.6466817", "text": "func (self *TraitIconView) GetSpacing() (return__ int) {\n\tvar __cgo__return__ C.gint\n\t__cgo__return__ = C.gtk_icon_view_get_spacing(self.CPointer)\n\treturn__ = int(__cgo__return__)\n\treturn\n}", "title": "" } ]
[ { "docid": "75b304ebb5c7b56e7f257350aede02a7", "score": "0.66803247", "text": "func (self *TraitBox) GetSpacing() (return__ int) {\n\tvar __cgo__return__ C.gint\n\t__cgo__return__ = C.gtk_box_get_spacing(self.CPointer)\n\treturn__ = int(__cgo__return__)\n\treturn\n}", "title": "" }, { "docid...
e3c6d0876ca6cecea9a351e73d475df2
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
[ { "docid": "e63f0c52e941f440b60829915565f618", "score": "0.0", "text": "func (m PositionMutation) Tx() (*Tx, error) {\n\tif _, ok := m.driver.(*txDriver); !ok {\n\t\treturn nil, fmt.Errorf(\"ent: mutation is not running in a transaction\")\n\t}\n\ttx := &Tx{config: m.config}\n\ttx.init()\n\treturn tx, n...
[ { "docid": "3fc5cf7a376dbb3b34a142932477605a", "score": "0.7497651", "text": "func (m StatusCheckInMutation) Tx() (*Tx, error) {\n\tif _, ok := m.driver.(*txDriver); !ok {\n\t\treturn nil, fmt.Errorf(\"ent: mutation is not running in a transaction\")\n\t}\n\ttx := &Tx{config: m.config}\n\ttx.init()\n\tr...
e872398d33ab7a4bde4674538f6f04cd
Close underlying zmq socket To be used with defer
[ { "docid": "002937bb296807d362aacfff62e4e404", "score": "0.68488157", "text": "func (r *RouterZmq) Close() {\n\tr.socket.Close()\n\treturn\n}", "title": "" } ]
[ { "docid": "dc058a0bbd9e1adb8572d1207354f49e", "score": "0.68864197", "text": "func (s *SubscriberZmq) Close(poller *zmq.Poller) {\n\tpoller.RemoveBySocket(s.Socket())\n\ts.socket.Close()\n}", "title": "" }, { "docid": "d3d04683b3c392439043d7d16da7e123", "score": "0.66810644", "text"...
efc2f556996fc6c24bb35d2112448568
PlatformParametersToProto converts an attest.PlatformParameters to its protobuf representation.
[ { "docid": "6bf26f6adc19bb38cecd74feb605a566", "score": "0.8721448", "text": "func PlatformParametersToProto(in *attest.PlatformParameters) *devicepb.TPMPlatformParameters {\n\tif in == nil {\n\t\treturn nil\n\t}\n\treturn &devicepb.TPMPlatformParameters{\n\t\tEventLog: in.EventLog,\n\t\tQuotes: quote...
[ { "docid": "10fa46c0ac6b87180a5722ddc9bbeaeb", "score": "0.75053495", "text": "func PlatformParametersFromProto(in *devicepb.TPMPlatformParameters) *attest.PlatformParameters {\n\tif in == nil {\n\t\treturn nil\n\t}\n\treturn &attest.PlatformParameters{\n\t\tTPMVersion: attest.TPMVersion20,\n\t\tQuotes:...
63586c373ffdb9b0e0050045e5bf5c79
/ FindOne function: used to try and find the account that the user is trying to login to and returns a JWT back to the user if successfull
[ { "docid": "d2acac975728602bcd53a85587431f4c", "score": "0.7912372", "text": "func FindOne(email, password string) map[string]interface{} {\n\tuser := &models.User{}\n\n\t// Check to see if the email provided exists in the database\n\terr := database.Where(\"Email = ?\", email).First(user).Error\n\tif e...
[ { "docid": "ef63c2869752e999e9eb6e45b1be489f", "score": "0.6819155", "text": "func FindOneUser(c echo.Context) error {\n\tif c.Request().Header().Get(\"Authorization\") != \"\" {\n\t\tr, _ := regexp.Compile(\"((Bearer )*)\")\n\t\tvar token = r.ReplaceAllString(c.Request().Header().Get(\"Authorization\")...
834fc02e4cd34cca94d20ed5456f1ec4
/SafeAdd safely add the given message to the list name: the name of the peer newMsg: the new message
[ { "docid": "b3b608148fb6887c344d3e43c6fb306f", "score": "0.72183603", "text": "func (p *SafePast) SafeAdd(name string, newMsg *messages.RumorMessage) {\n\tp.mux.Lock()\n\tp.messagesList[name] = append(p.messagesList[name], newMsg)\n\tp.mux.Unlock()\n}", "title": "" } ]
[ { "docid": "7d95eeff65bb9ec4da1311be4e2f86e8", "score": "0.66223884", "text": "func messageAddNew(msg string) (Message, error) {\n\t//Initialize temp structure to be able to use append function\n\ttmpMessage := Message{}\n\n\tlastId += 1\n\ttmpMessage.Id = lastId\n\ttmpMessage.Message = msg\n\n\tmessage...
545752ebb0cd43f76a8e4bdd7aa45dff
NewDocumentsService creates a new initialized instance of the DocumentsService.
[ { "docid": "296e5f85c615cdbdaa24e20e3ad8d151", "score": "0.7540742", "text": "func NewDocumentsService(apiClient *api.Client) *DocumentsService {\n\ts := &DocumentsService{client: apiClient}\n\n\ts.common.client = apiClient\n\n\ts.DocumentAttachments = (*DocumentAttachmentsEndpoint)(&s.common)\n\ts.Docu...
[ { "docid": "1f3371752556c0091024334b1ce4e7cc", "score": "0.6982555", "text": "func NewDocumentService(client *httpc.Client) DocumentService {\n\treturn &documentService{\n\t\tClient: client,\n\t}\n}", "title": "" }, { "docid": "f07d60614cf481b8479e751b90185e09", "score": "0.6893216", ...
3f3c87b8eff143009a83a69af202470d
GetQueueCountViaExpire Get Queue via Expire
[ { "docid": "5bdd8910f95565a1f5cc83003d9dece9", "score": "0.8403338", "text": "func GetQueueCountViaExpire(iExpire int) int64 {\n\tn, _ := Engine.Where(\"expire = ?\", iExpire).Count(&Queue{Expire: iExpire})\n\treturn n\n}", "title": "" } ]
[ { "docid": "3e08d49f734263de3be6be1ae0450bb3", "score": "0.6659602", "text": "func GetQueueViaExpire(iExpire int) (*Queue, error) {\n\tvar _Queue = &Queue{Expire: iExpire}\n\thas, err := Engine.Get(_Queue)\n\tif has {\n\t\treturn _Queue, err\n\t} else {\n\t\treturn nil, err\n\t}\n}", "title": "" }...
7b24857e515e53347b269376a3a53c63
Networks returns the Network interface of the Host
[ { "docid": "611ca2f8f60d1326eb129390a08a51a7", "score": "0.56118745", "text": "func (m mockHost) Network() inet.Network {\n\treturn nil\n}", "title": "" } ]
[ { "docid": "f3984177865dd3fdb892c6c270815ec4", "score": "0.74151665", "text": "func GetNetworks() (networks []Network) {\n\tinterfaces, err := net.Interfaces()\n\tif err == nil {\n\t\tfor _, inf := range interfaces {\n\t\t\tinterfac := inf\n\t\t\taddresses, err := interfac.Addrs()\n\t\t\tif err == nil {...
c86e3f366b40b6a8e570ffe6362b34fc
IngressGateway lazily initialize Ingress Gateway
[ { "docid": "2edd102477beb2812f907e6783e72186", "score": "0.51466995", "text": "func (k *KubeInfo) IngressGateway() (string, error) {\n\treturn k.doGetIngress(istioIngressGatewayServiceName, istioIngressGatewayLabel,\n\t\t&k.ingressGatewayLock, &k.ingressGateway, &k.ingressGatewayErr)\n}", "title": "...
[ { "docid": "7ade93ec52a76cd472f5faf03353d4b4", "score": "0.60121334", "text": "func Gateway(c *canaryv1.CanaryApp) *istiogov1alpha3.Gateway {\n\tds := &istiogov1alpha3.Gateway{\n\t\tTypeMeta: metav1.TypeMeta{\n\t\t\tKind: \"Gateway\",\n\t\t\tAPIVersion: \"networking.istio.io/v1alpha3\",\n\t\t},\n\...
bece075c6cd657ebe5ecb1f7aebf2199
New returns a new instance of Filesystem
[ { "docid": "8f32758bd652a147cf22e6901cf30d57", "score": "0.8439261", "text": "func New() Filesystem {\n\treturn localFilesystem{}\n}", "title": "" } ]
[ { "docid": "f9cdb925b281391fd981b5f89bafea2c", "score": "0.8406834", "text": "func New(path string) fs.FS {\n\treturn &filesystem{path}\n}", "title": "" }, { "docid": "124f0b748f13b7b5f5f2ce6d855bb383", "score": "0.7495978", "text": "func New(fs http.FileSystem) *FS {\n\treturn &FS{\...
f804b7696be5d3ce23718b6603717b3b
Whether this container has a readonly root filesystem. Default is false.
[ { "docid": "7e3531021d167237033a99230f44d388", "score": "0.7016199", "text": "func (o ThanosRulerSpecContainersSecurityContextPtrOutput) ReadOnlyRootFilesystem() pulumi.BoolPtrOutput {\n\treturn o.ApplyT(func(v *ThanosRulerSpecContainersSecurityContext) *bool {\n\t\tif v == nil {\n\t\t\treturn nil\n\t\t...
[ { "docid": "720b83a79e6ac1e09639550f4c366b1f", "score": "0.73518157", "text": "func (o PrometheusSpecInitContainersSecurityContextOutput) ReadOnlyRootFilesystem() pulumi.BoolPtrOutput {\n\treturn o.ApplyT(func(v PrometheusSpecInitContainersSecurityContext) *bool { return v.ReadOnlyRootFilesystem }).(pul...
27ab1a4a60f2ff9b6df2148ceeacedc6
Uint64sIntsF creates a new slice with the results of calling the provided function on every element in the given array. If the given function returns an error, the element will be ignored.
[ { "docid": "fd93d92cf6c733e06da44c7f408893db", "score": "0.7713827", "text": "func Uint64sIntsF(s []uint64, f func(s uint64) (int, error)) ints.Ints {\n\tm := ints.Ints(make([]int, 0, len(s)))\n\tvar (\n\t\tx int\n\t\terr error\n\t)\n\tfor _, v := range s {\n\t\tx, err = f(v)\n\t\tif err != nil {\n\t\...
[ { "docid": "4aa94d95d10e91acae4156d5330ca8af", "score": "0.75276124", "text": "func Uint64sInt64sF(s []uint64, f func(s uint64) (int64, error)) int64s.Int64s {\n\tm := int64s.Int64s(make([]int64, 0, len(s)))\n\tvar (\n\t\tx int64\n\t\terr error\n\t)\n\tfor _, v := range s {\n\t\tx, err = f(v)\n\t\tif ...
6445cd68c4afa70f2384077c8e071042
Load and parse the mime.types file
[ { "docid": "fd9ef57a25291a009412b1e1b1cdfbc9", "score": "0.567305", "text": "func ParseMIME(MIMEPath string) (MIMEMap map[string]string, err error) {\n\t//panic(\"todo - ParseMIME\")\n\n\tMIMEMap = make(map[string]string)\n\tfile, err := os.Open(MIMEPath)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\td...
[ { "docid": "3bb9958cb7a563383d46d1c0dc3dc958", "score": "0.62076855", "text": "func (m *Matcher) LoadFileType(ft string) error {\n\tft = strings.ToLower(ft) + \".json\"\n\tfor _, rt := range m.config.Syntax() {\n\t\tpath := filepath.Join(rt, ft)\n\t\tif m.fileExists(path) {\n\t\t\treturn m.LoadFile(path...
a9d03e074ccb8a66f99a5aa7e1e72ff7
Reset sets the tween state variables back to there starting points
[ { "docid": "726d17aa70490336a5e396fd57cbe8f1", "score": "0.62225527", "text": "func (tweener *Tweener) Reset() {\n\ttweener.started = false\n\ttweener.repeatCount = 0\n}", "title": "" } ]
[ { "docid": "16ec61e10a52687f3eae5335e2115da6", "score": "0.68742394", "text": "func (t *Toboggan) Reset() {\n\tt.PosX = 0\n\tt.PosY = 0\n}", "title": "" }, { "docid": "09d552422cbd79af166758959fe2ed5d", "score": "0.6798739", "text": "func (a *TrackAnimation) Reset() {\n\ta.forEachTra...
d1c5a1412dfd8ec257bb609cc97b2d5d
newUpdateInstanceUpdateRequest creates a request for an Instance resource's update update type by filling in the update fields based on the intended state of the resource.
[ { "docid": "bb599d86f025bea5a8b94b2ccc9c26a9", "score": "0.76654357", "text": "func newUpdateInstanceUpdateRequest(ctx context.Context, f *Instance, c *Client) (map[string]interface{}, error) {\n\treq := map[string]interface{}{}\n\n\treturn req, nil\n}", "title": "" } ]
[ { "docid": "503252dc8ff31be9cf1e2bd03e217400", "score": "0.77257013", "text": "func newUpdateInstanceUpdateInstanceRequest(ctx context.Context, f *Instance, c *Client) (map[string]interface{}, error) {\n\treq := map[string]interface{}{}\n\tres := f\n\t_ = res\n\n\tif v := f.EnableStackdriverLogging; !dc...
5df01f6986a32bf1645cf466aaf34335
Read p fully, returns n read bytes. len(p) == n always if err == nil
[ { "docid": "5206dc34163099c2695f17f53c9b81be", "score": "0.0", "text": "func (dr *DecodingReader) Read(p []byte) (int, error) {\n\tif len(p) == 0 {\n\t\treturn 0, nil\n\t}\n\tif n, err := dr.checkedIndexUpdate(uint64(len(p))); err != nil {\n\t\treturn n, err\n\t}\n\tn := 0\n\tfor n < len(p) {\n\t\tv, er...
[ { "docid": "75bfffdd5b27c4b22ff1d4c6fc4fddc8", "score": "0.75301886", "text": "func libc_pread(fd int32, buf *byte, count uint, offset int64) int", "title": "" }, { "docid": "57945a5e4e1be4b050067c11ef8a3089", "score": "0.72558844", "text": "func (r *Reader) Read(p []byte) (n int, er...
4c0c2ded5bfeb1d204591f97c6d6bb6f
RecvMsg mocks base method.
[ { "docid": "056530f4d5eeac723da8c5b93ed7ff79", "score": "0.7635093", "text": "func (m_2 *MockWerftService_StartLocalJobServer) RecvMsg(m interface{}) error {\n\tm_2.ctrl.T.Helper()\n\tret := m_2.ctrl.Call(m_2, \"RecvMsg\", m)\n\tret0, _ := ret[0].(error)\n\treturn ret0\n}", "title": "" } ]
[ { "docid": "4c19876e1c0a145698b46df6e9f1ef12", "score": "0.7866866", "text": "func (m_2 *MockWerftService_ListenServer) RecvMsg(m interface{}) error {\n\tm_2.ctrl.T.Helper()\n\tret := m_2.ctrl.Call(m_2, \"RecvMsg\", m)\n\tret0, _ := ret[0].(error)\n\treturn ret0\n}", "title": "" }, { "docid"...
e95bdb841db5a49eb726413e58c7e661
ConvertToARM converts from a Kubernetes CRD object to an ARM object
[ { "docid": "975cb706ec4fa747a622f1c55b065158", "score": "0.70054865", "text": "func (certificate *VaultCertificate) ConvertToARM(resolved genruntime.ConvertToARMResolvedDetails) (interface{}, error) {\n\tif certificate == nil {\n\t\treturn nil, nil\n\t}\n\tresult := &VaultCertificate_ARM{}\n\n\t// Set p...
[ { "docid": "dc1c14449074656a5bd0ee39b94f4f35", "score": "0.75126815", "text": "func (resource *SqlContainerResource) ConvertToARM(resolved genruntime.ConvertToARMResolvedDetails) (interface{}, error) {\n\tif resource == nil {\n\t\treturn nil, nil\n\t}\n\tresult := &SqlContainerResource_ARM{}\n\n\t// Set...
7b369521ef660009a994fb1e689bd739
HasForUser returns a boolean if a field has been set.
[ { "docid": "882ce72442697da037ea064da0355886", "score": "0.7271462", "text": "func (o *ActivityActivity) HasForUser() bool {\n\tif o != nil && o.ForUser != nil {\n\t\treturn true\n\t}\n\n\treturn false\n}", "title": "" } ]
[ { "docid": "ba2503f870f134afc205d8ba41feab7c", "score": "0.69567895", "text": "func (o *IdentityVerificationCreateRequest) HasUser() bool {\n\tif o != nil && o.User.IsSet() {\n\t\treturn true\n\t}\n\n\treturn false\n}", "title": "" }, { "docid": "93a1761038a910b75a83ce6dada3ef7d", "score...
b6ce0a1ba6c4b99c1c78fd126ac494e0
GetVcode by email/phone Returns empty string if not found or empty string
[ { "docid": "028e17c508b03420467dd072549e6346", "score": "0.59674984", "text": "func GetVcode(lgn string) (string, int, error) {\n\tvcode := \"\"\n\tretry := 0\n\n\t// *SliceCmd\n\t// []interface{}\n\tarr, err := pool.HMGet(lgn, \"vcode\", \"retry\").Result()\n\n\t// 127.0.0.1:6379> HMGET asdf \"vcode\" ...
[ { "docid": "77b1814e5dd5cb91e519b3c776d74bbc", "score": "0.5558814", "text": "func (gate LoginGate) GetVRCode(cookies []*http.Cookie, token string) {\n\tgateURL, err := url.Parse(gate.GateURL)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq, _ := http.NewRequest(\"GET\", gateURL.Scheme+\"://\"+gateURL.Ho...
2e356ac8f57418951813639ac966d3a3
WithHTTPClient adds the HTTPClient to the role privilege modify params
[ { "docid": "8982d9a07247c05f8602add21bbaffb6", "score": "0.73529047", "text": "func (o *RolePrivilegeModifyParams) WithHTTPClient(client *http.Client) *RolePrivilegeModifyParams {\n\to.SetHTTPClient(client)\n\treturn o\n}", "title": "" } ]
[ { "docid": "d12081e5c188aeed912e863fad3309ac", "score": "0.7273923", "text": "func (o *RolePrivilegeModifyParams) SetHTTPClient(client *http.Client) {\n\to.HTTPClient = client\n}", "title": "" }, { "docid": "ca125a2713919159183a2da698f99361", "score": "0.67191356", "text": "func (o *...
44ad407d358e784b67f09717d44656b3
NewNetworkController returns a new NetworkController.
[ { "docid": "c60846520635e5b88bb27bbcb0a9c41d", "score": "0.76246434", "text": "func NewNetworkController(client clientset.Interface, provider networkprovider.Interface) *NetworkController {\n\te := &NetworkController{\n\t\tclient: client,\n\t\tqueue: workqueue.New(),\n\t\tnetProvider: provide...
[ { "docid": "2aef871f6bdb1d1af74efe80a3ec4a6b", "score": "0.84027267", "text": "func NewNetworkController() network.Controller {\n\treturn &Controller{}\n}", "title": "" }, { "docid": "f69e8611b3d5f24cc1f1ff252311ee0a", "score": "0.8304055", "text": "func NewNetworkController(\n\tpuls...
c0a695afaea501f46eb9b7ec3075299a
SetOperationId sets the OperationId field's value.
[ { "docid": "4da3bdc01b262884a3fb606333166080", "score": "0.59306175", "text": "func (s *GetOperationInput) SetOperationId(v string) *GetOperationInput {\n\ts.OperationId = &v\n\treturn s\n}", "title": "" } ]
[ { "docid": "42db840ab3de85622089be4d3ea06dea", "score": "0.67051905", "text": "func (s *CreatePublicDnsNamespaceOutput) SetOperationId(v string) *CreatePublicDnsNamespaceOutput {\n\ts.OperationId = &v\n\treturn s\n}", "title": "" }, { "docid": "94475a80465adcedac2f96e69225c432", "score":...
fdd8c942d64c5a42ae5d1dbb878727c8
Parse the line, and description from an error message like: html/template:Application/Register.html:36: no such template "footer.html"
[ { "docid": "5d79d49b8f40b0f2276219146315715d", "score": "0.7165003", "text": "func parseTemplateError(err error) (templateName string, line int, description string) {\n\tdescription = err.Error()\n\ti := regexp.MustCompile(`:\\d+:`).FindStringIndex(description)\n\tif i != nil {\n\t\tline, err = strconv....
[ { "docid": "dff114af8fb19d7720eaf72bf18b3acc", "score": "0.54759896", "text": "func (l *logintest) errorPage(format string, a ...interface{}) {\n\tl.message(format, a...)\n\tif !l.serving {\n\t\treturn\n\t}\n\te := map[string]string{\"Error\": fmt.Sprintf(format, a...)}\n\tl.Thing = e\n\terrortmpl := l....
40f6377f21c5f875d9c39b3e30c39634
The error reporting channel
[ { "docid": "fda9a9a64fe471984c3bdfcb9f695ea0", "score": "0.5553319", "text": "func (c *Context) Errors() <-chan ThreadError {\n\treturn c.errors\n}", "title": "" } ]
[ { "docid": "2891589f2949abb9fcb5357dfeab5b17", "score": "0.6316779", "text": "func (s *Server) Err() <-chan error { return s.err }", "title": "" }, { "docid": "2f9794fe608b088075af773334df991f", "score": "0.6225389", "text": "func (sched *myScheduler) ErrorChan() <-chan *constant.YiE...
f63c7c99c9014e0bae6b9c10d789c1f1
List returns a list of classes
[ { "docid": "442725ac0db551c11edb2ee69a3fd54e", "score": "0.0", "text": "func (p plansImpl) List(ctx context.Context) (*configv1.PlanList, error) {\n\tplans := &configv1.PlanList{}\n\n\treturn plans, p.Store().Client().List(ctx,\n\t\tstore.ListOptions.InNamespace(HubNamespace),\n\t\tstore.ListOptions.InT...
[ { "docid": "1c76881ae0be089c8df59762f316680d", "score": "0.7076588", "text": "func classesList(cl []string) string {\n\tif len(cl) > 0 {\n\t\treturn \" class=\" + strconv.Quote(strings.Join(cl, \" \"))\n\t}\n\treturn \"\"\n}", "title": "" }, { "docid": "bbc9b77e04de1e664733c69b34b5e6d9", ...
7d665115703d227c2ad90c3a5dc421fa
ConfigureV1 use to configure the feature from a v1alpha1.DatadogAgent instance.
[ { "docid": "fc31a003b6ad0a27a582f4b6f20036b2", "score": "0.64220446", "text": "func (f *cwsFeature) ConfigureV1(dda *v1alpha1.DatadogAgent) (reqComp feature.RequiredComponents) {\n\tif dda.Spec.Agent.Security != nil && *dda.Spec.Agent.Security.Runtime.Enabled {\n\t\truntime := dda.Spec.Agent.Security.Ru...
[ { "docid": "0629f35640566bf0de5a9476216a10af", "score": "0.72242415", "text": "func (f *externalMetricsFeature) ConfigureV1(dda *v1alpha1.DatadogAgent) (reqComp feature.RequiredComponents) {\n\t// f.owner = dda\n\t// if dda.Spec.ClusterAgent.Config != nil && dda.Spec.ClusterAgent.Config.ExternalMetrics ...
7874aee8211092fb51b23e05c3d16749
IsGameEnd : if game is end
[ { "docid": "61f57dafb94f69f9944d4ba9dbdf1fd4", "score": "0.8142038", "text": "func (fspgame *FSPGame) IsGameEnd() bool {\n\treturn fspgame.State == GameEnd\n}", "title": "" } ]
[ { "docid": "72b8de97194d9e58fc14da6245e812db", "score": "0.7849093", "text": "func (g *Game)EndOfGame(){\n\t(*g).GameRunning=false\n}", "title": "" }, { "docid": "96061d8e5fc1055a1c6c1ebc108e16c0", "score": "0.7348011", "text": "func (ttt *TTTGame) GameFinished() bool {\n\n\treturn t...
446fdef0125ab505355f1bd044ac6ab1
Key function returns key value.
[ { "docid": "37441b2351f26873fee4148a498dc069", "score": "0.0", "text": "func (e UpdateAppConfigRequestValidationError) Key() bool { return e.key }", "title": "" } ]
[ { "docid": "b78d2f3303c40e80806d21d9a6fc50ac", "score": "0.7184771", "text": "func (fn KeyerFunc) Key(key string) (string, time.Duration) { return fn(key) }", "title": "" }, { "docid": "2e0ab038f206090b6d52aeda5a0a5ea3", "score": "0.7114424", "text": "func (kv KV) Key() string { retu...
93e6e1bcafdf615e9a0dfd654ccf9441
GetBackingStore gets the backingStore property value. Stores model information.
[ { "docid": "07aee9d3dccf528cd84240ed41f5f793", "score": "0.7414719", "text": "func (m *ServiceUpdateMessageViewpoint) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) {\n return m.backingStore\n}", "title": "" } ]
[ { "docid": "c74591081115b85ba13ca0aa5f42c3db", "score": "0.80231166", "text": "func (s Store) GetBackingStore() crud.ManagedStore {\n\treturn s.backingStore\n}", "title": "" }, { "docid": "16cf9584d1df07657235af002ac7f189", "score": "0.7790771", "text": "func (m *Setting) GetBackingS...
8818ac5d0dcab2467abff32d10de7ff0
When you call this operation with an Alibaba Cloud account, IoT Platform sends a verification code by text message to confirm your identity. When you call this operation with a RAM user, IoT Platform does not send a verification code. To ensure device security, you can create custom permission policies to perform fineg...
[ { "docid": "683f73b7d5073f54b9816c38e22900df", "score": "0.44414026", "text": "func (client *Client) DeleteDeviceWithOptions(request *DeleteDeviceRequest, runtime *util.RuntimeOptions) (_result *DeleteDeviceResponse, _err error) {\n\t_err = util.ValidateModel(request)\n\tif _err != nil {\n\t\treturn _re...
[ { "docid": "fcc43c0ff6e435cb9a229122add36d8f", "score": "0.5784461", "text": "func main() {\n\tctx := context.Background()\n\n\t// ------------------------- Get params and just verify they were provided -------------------------\n\tendpoint := pflag.StringP(\"endpoint\", \"e\", \"\", \"API endpoint (for...
2bc07f73a205b365d88cd224afe5f86c
Parse attempts to parse the given QR code data.
[ { "docid": "6783250f32559bf5eff115047b56de91", "score": "0.0", "text": "func Parse(data []byte) (Data, error) {\n\tfor _, model := range [...]Data{\n\t\t&LoRaAllianceTR005Draft3{},\n\t\t&LoRaAllianceTR005Draft2{},\n\t} {\n\t\tif err := model.UnmarshalText(data); err == nil {\n\t\t\treturn model, nil\n\t...
[ { "docid": "317486b7011da9b7691de704d6bd5bbc", "score": "0.5470907", "text": "func (q *Quackit) Parse(reader io.Reader) error {\n\tbuf := new(bytes.Buffer)\n\tbuf.ReadFrom(reader)\n\treturn q.ParseString(buf.String())\n}", "title": "" }, { "docid": "82b7ea0cc19012e5a9a2792315ca70aa", "sc...
570df4ffaa0f925a33f6620104e2b365
SetEnabledCustomTag set enabled flag for set custom tag name if set true and set customTagName, the custom tag will be check during mapping's GetFieldName default is false
[ { "docid": "37b3192222e125a2791711b8e5083ae5", "score": "0.7986368", "text": "func (dm *mapperObject) SetEnabledCustomTag(isEnabled bool) {\n\tdm.enabledCustomTag = isEnabled\n\tdm.cleanRegisterValue()\n}", "title": "" } ]
[ { "docid": "fb30aacce54540ded200f1c037644eb8", "score": "0.82479495", "text": "func SetEnabledCustomTag(isEnabled bool) {\n\tstandardMapper.SetEnabledCustomTag(isEnabled)\n}", "title": "" }, { "docid": "bae9b957a68bf7fc5eb997bf2ad760aa", "score": "0.58600587", "text": "func SetEnable...
01dbf980bc6569d781f90bb4bdaa638a
SetBiosUuid gets a reference to the given string and assigns it to the BiosUuid field.
[ { "docid": "2b4afc651eb573476b6de46fe0aabd68", "score": "0.7197609", "text": "func (o *CanonicalFactsInAllOf) SetBiosUuid(v string) {\n\to.BiosUuid = &v\n}", "title": "" } ]
[ { "docid": "e9b1c982dc7500ae3aaada523fc0b3dc", "score": "0.68261933", "text": "func (o *HyperflexVirtualMachineRuntimeInfoAllOf) SetBiosUuid(v string) {\n\to.BiosUuid = &v\n}", "title": "" }, { "docid": "bb66ee7c6c4ec5b95f3e586ba873bc26", "score": "0.6284644", "text": "func (o *Canon...
1ea7ddb47ea7914fb967dfd9988c0224
Validate inspects the fields of the type to determine if they are valid.
[ { "docid": "500b323bbd3ee03f0388f1005900cc92", "score": "0.0", "text": "func (s *DescribeDBClusterBacktracksInput) Validate() error {\n\tinvalidParams := aws.ErrInvalidParams{Context: \"DescribeDBClusterBacktracksInput\"}\n\n\tif s.DBClusterIdentifier == nil {\n\t\tinvalidParams.Add(aws.NewErrParamRequi...
[ { "docid": "688d7853ed3208baf26b81a87e38b975", "score": "0.67102504", "text": "func (m *FieldsToEvaluate) Validate(formats strfmt.Registry) error {\n\treturn nil\n}", "title": "" }, { "docid": "26912e70bc3feaebb03a8bba7eb3ae48", "score": "0.6506426", "text": "func Validate(o interfac...
9791b3654936dfb2d3fbc24695ece2ef
ScanX is like Scan, but panics if an error occurs.
[ { "docid": "7b4c0292f17691ef4a369581496d98cc", "score": "0.0", "text": "func (mlgb *MetricLabelGroupBy) ScanX(ctx context.Context, v interface{}) {\n\tif err := mlgb.Scan(ctx, v); err != nil {\n\t\tpanic(err)\n\t}\n}", "title": "" } ]
[ { "docid": "fc46b51418608701bad3c01315efe43a", "score": "0.77462333", "text": "func (as *AmountpaidSelect) ScanX(ctx context.Context, v interface{}) {\n\tif err := as.Scan(ctx, v); err != nil {\n\t\tpanic(err)\n\t}\n}", "title": "" }, { "docid": "aab0c6a814e938cb13ed7b029b1e4eb7", "score...
c5230bece2f6c425a2bbb0ff7658f57b
LatestStaked is a free data retrieval call binding the contract method 0x01d9717d. Solidity: function latestStaked(address rollup, address staker) view returns(uint256, bytes32)
[ { "docid": "9f378231f112b692c6852f033faca2a9", "score": "0.8345199", "text": "func (_ValidatorUtils *ValidatorUtilsSession) LatestStaked(rollup common.Address, staker common.Address) (*big.Int, [32]byte, error) {\n\treturn _ValidatorUtils.Contract.LatestStaked(&_ValidatorUtils.CallOpts, rollup, staker)\...
[ { "docid": "5cc5de25d337f2ebf1506cc29b2b683d", "score": "0.8383744", "text": "func (_ValidatorUtils *ValidatorUtilsCallerSession) LatestStaked(rollup common.Address, staker common.Address) (*big.Int, [32]byte, error) {\n\treturn _ValidatorUtils.Contract.LatestStaked(&_ValidatorUtils.CallOpts, rollup, st...
fd0611839395768ae007d54ee0ac9601
Validate checks the field values on CustomerResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
[ { "docid": "3842e0ded24e890018099e09d3b937ae", "score": "0.7989751", "text": "func (m *CustomerResponse) Validate() error {\n\tif m == nil {\n\t\treturn nil\n\t}\n\n\t// no validation rules for CustomerNumber\n\n\t// no validation rules for Alias\n\n\t// no validation rules for Mobile\n\n\t// no validat...
[ { "docid": "c07f7cebd18f7caf7d47ade7b936e43e", "score": "0.74895656", "text": "func (m *SearchCustomersResponse) Validate(formats strfmt.Registry) error {\n\tvar res []error\n\n\tif err := m.validateCustomers(formats); err != nil {\n\t\tres = append(res, err)\n\t}\n\n\tif err := m.validateErrors(formats...
cf080e500d71ad921a02e8b3d40e3712
Setters always write values, regardless of default
[ { "docid": "9725321f66f58a17de19e369cbe9b98b", "score": "0.0", "text": "func SetBoolSlot(fbb *flatbuffers.Builder, slot int, value bool) {\n\tif value {\n\t\tSetByteSlot(fbb, slot, 1)\n\t} else {\n\t\tSetByteSlot(fbb, slot, 0)\n\t}\n}", "title": "" } ]
[ { "docid": "1cc156185628b4eeb17437441bcb93d5", "score": "0.5790446", "text": "func Set(config configmap.Getter, opt interface{}) (err error) {\n\tdefaultItems, err := Items(opt)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdefStruct := reflect.ValueOf(opt).Elem()\n\tfor _, defaultItem := range defaultItem...
3beb1b8cd885f62d7001ac866b38a767
The builtin f64 function returns operand 1 casted from type i64 to type f64.
[ { "docid": "ba1984da2ecc6967ff808495b1cde5c8", "score": "0.7703726", "text": "func opI64ToF64(expr *CXExpression, fp int) {\n\toutB0 := float64(ReadI64(fp, expr.Inputs[0]))\n\tWriteF64(GetOffset_i64(fp, expr.Outputs[0]), outB0)\n}", "title": "" } ]
[ { "docid": "edaa8a805b4670961eaf001d02c4688d", "score": "0.7278064", "text": "func opUI64ToF64(prgrm *CXProgram) {\n\texpr := prgrm.GetExpr()\n\tfp := prgrm.GetFramePointer()\n\n\toutV0 := float64(ReadUI64(fp, expr.Inputs[0]))\n\tWriteF64(GetFinalOffset(fp, expr.Outputs[0]), outV0)\n}", "title": "" ...
dd124bbe82e3accde55029e5d6b8bba9
Compile compiles a qlang source file.
[ { "docid": "3ec9a0c9093b6712bdde7205f1f98f26", "score": "0.56153345", "text": "func (p *Compiler) Compile(fname string) int {\n\n\tcodeText, err := ReadFile(fname)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treturn p.Cl(codeText, fname)\n}", "title": "" } ]
[ { "docid": "a98e7c4129be09d9e845bdd59b9d6f2c", "score": "0.6335856", "text": "func Compile(source []byte, name string, opts Opts) ([]byte, error) {\n\tvar err error\n\n\toutdir := opts.Output\n\tif outdir == \"\" {\n\t\toutdir, err = ioutil.TempDir(\"\", \"cbpfc-clang\")\n\t\tif err != nil {\n\t\t\tretu...
c558d7cbe7a77e51070c691a6961d0b0
GroupByInt groups elements into a map keyed by int. See: GROUPBY START OMIT
[ { "docid": "a8a7e73e86cd7a100def0f86bc7da092", "score": "0.829445", "text": "func (rcv DifferentTypes) GroupByInt(fn func(DifferentType) int) map[int]DifferentTypes {\n\t// GROUPBY END OMIT\n\tresult := make(map[int]DifferentTypes)\n\tfor _, v := range rcv {\n\t\tkey := fn(v)\n\t\tresult[key] = append(r...
[ { "docid": "8c3c07845d8d7e259b2d89f254088d9b", "score": "0.591257", "text": "func MapIntKeys(rec map[int]interface{}) []int {\n\tkeys := make([]int, 0, len(rec))\n\tfor k := range rec {\n\t\tkeys = append(keys, k)\n\t}\n\treturn keys\n}", "title": "" }, { "docid": "31a471cd91b0db6245a6e70bd3...
600a6694133924a0ca22aeec3b62b5cc
GetTCPCheck returns configuration version and the requested tcp check in the specified parent. Returns error on fail or if tcp check does not exist
[ { "docid": "c33855f379a4cb0db12290d6b3f65db8", "score": "0.81128734", "text": "func (c *client) GetTCPCheck(id int64, parentType string, parentName string, transactionID string) (int64, *models.TCPCheck, error) {\n\tp, err := c.GetParser(transactionID)\n\tif err != nil {\n\t\treturn 0, nil, err\n\t}\n\t...
[ { "docid": "7b57433a86b037518ae35887cccffd51", "score": "0.7207517", "text": "func (c *client) GetTCPChecks(parentType, parentName string, transactionID string) (int64, models.TCPChecks, error) {\n\tp, err := c.GetParser(transactionID)\n\tif err != nil {\n\t\treturn 0, nil, err\n\t}\n\n\tv, err := c.Get...
1dab691f1311c4e656e1ecbf69c84ed8
String returns the string representation
[ { "docid": "3f60070c1894341a6333b12cda909cb6", "score": "0.0", "text": "func (s AdminRemoveUserFromGroupOutput) String() string {\n\treturn awsutil.Prettify(s)\n}", "title": "" } ]
[ { "docid": "ec007bbe3327b5255b8b1c9f1bd93d5e", "score": "0.7395052", "text": "func (r QueryResCheckProof) String() string {\n\tjson, _ := json.Marshal(r)\n\treturn string(json)\n}", "title": "" }, { "docid": "da4d8b897637d127f500cb4192484dc7", "score": "0.7215058", "text": "func (s C...
5daa9290cdb893a0c787aed4a760debf
/ Description: This function takes a Height as the argument, returns the list of blocks stored in that Height or None if the Height doesn't exist. Argument: int32 Return type: []Block
[ { "docid": "b2fe183989aa8afd36a65c9546caea00", "score": "0.7262827", "text": "func (blockChain *BlockChain) Get(height int32) (blocks []Block) {\n\tif blockChain.Length < height {\n\t\treturn nil\n\t} else {\n\t\treturn blockChain.Chain[height]\n\t}\n\n}", "title": "" } ]
[ { "docid": "fee81a9615baa8d31aac9d5726a880cb", "score": "0.7512186", "text": "func (bc *BlockChain) Get(height int32) []Block {\n\t//find the corresponding list\n\tblockList := bc.Chain[height]\n\tif len(blockList) == 0 {\n\t\treturn nil\n\t}\n\treturn blockList\n}", "title": "" }, { "docid"...
b5d466730ac7663ac5716bcecf652092
This provides BasicAuthentication which has username=abc and pass=123
[ { "docid": "b093850f7431a8562e3fbe8dc017b204", "score": "0.6942495", "text": "func basicAuthentication(endpoint func(http.ResponseWriter, *http.Request)) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tw.Header().Set(\"Content-Type\", \"application/json\")\n...
[ { "docid": "008fc9de9ed35541b4a778079256d0a7", "score": "0.79781276", "text": "func (r *Request) BasicAuth(username string, password string) Interface {\n\tr.username, r.password = username, password\n\treturn r\n}", "title": "" }, { "docid": "3fb9778ea607de2c49509561d4e19415", "score": ...
d6ce4495daed1d89fe31ca38f399ebed
Round returns round of value.
[ { "docid": "9feefa7793512aefae292a7cc097f7db", "score": "0.68518764", "text": "func Round(val float64, roundOn float64, places int) (newVal float64) {\n\tvar round float64\n\tpow := math.Pow(10, float64(places))\n\tdigit := pow * val\n\t_, div := math.Modf(digit)\n\tif div >= roundOn {\n\t\tround = math...
[ { "docid": "06651c429311a4152fd54b8dabef8c95", "score": "0.75964326", "text": "func Round(val float64) int64 {\r\n\tif val < 0 {\r\n\t\treturn int64(val - 0.5)\r\n\t}\r\n\treturn int64(val + 0.5)\r\n}", "title": "" }, { "docid": "d22a62c388567ee4cb7f6a78b7d61cfe", "score": "0.7306053", ...
e26f416e66dc3a72560f27b51b5bbb4c
SetContext adds the context to the get Id4n params
[ { "docid": "3e865c96a32fffa67656cd2ccef186ae", "score": "0.7553849", "text": "func (o *GETID4NParams) SetContext(ctx context.Context) {\n\to.Context = ctx\n}", "title": "" } ]
[ { "docid": "3bb9a192f28c07c90796a98a2feb0e4c", "score": "0.7256765", "text": "func (o *GETID4NParams) WithContext(ctx context.Context) *GETID4NParams {\n\to.SetContext(ctx)\n\treturn o\n}", "title": "" }, { "docid": "bf73743018642b252e5d92ecc98e792e", "score": "0.6430246", "text": "f...
5059be7befdb868e22a11ce2523ba302
IsShareHolders returns true if there is shareHolders, false otherwise
[ { "docid": "3325dc8d75d5bfded0b7b376ff4ec8f7", "score": "0.8559687", "text": "func (obj *section) IsShareHolders() bool {\n\treturn obj.holders != nil\n}", "title": "" } ]
[ { "docid": "42bb045eabb29fac3bcbaf251cb35ee2", "score": "0.6718412", "text": "func (o *RemoteItem) HasShared() bool {\n\tif o != nil && o.Shared != nil {\n\t\treturn true\n\t}\n\n\treturn false\n}", "title": "" }, { "docid": "b109568a026677729eb6aadcfab7fb89", "score": "0.6634848", "...
6c0c49a240051ee1e741efe825322f68
SetShort sets the "short" field.
[ { "docid": "bc44435345ab4a142659ff20bdcbdbd2", "score": "0.8634658", "text": "func (sc *StockCreate) SetShort(s string) *StockCreate {\n\tsc.mutation.SetShort(s)\n\treturn sc\n}", "title": "" } ]
[ { "docid": "3e12d75f88a70d6e482f1ea8d53c5869", "score": "0.88374615", "text": "func (u *StateUpsert) SetShort(v string) *StateUpsert {\n\tu.Set(state.FieldShort, v)\n\treturn u\n}", "title": "" }, { "docid": "3abee5b46520644d940ef3aefd93cb83", "score": "0.88289875", "text": "func (u ...
48f0b557da11fb9508430ce71346762d
Run checks the name of the called binary and executes the corresponding handler
[ { "docid": "5ec12189380e02db1bc23f856b32e960", "score": "0.72350854", "text": "func (h *Handler) Run() error {\n\tswitch path.Base(os.Args[0]) {\n\tcase \"check\":\n\t\th.setMode(CHECK)\n\t\treturn h.Check()\n\tcase \"in\":\n\t\th.setMode(IN)\n\t\treturn h.In()\n\tcase \"out\":\n\t\th.setMode(OUT)\n\t\t...
[ { "docid": "abdcb4ab84a49b5e1b617e176b0a3999", "score": "0.67739165", "text": "func HandleRun(w http.ResponseWriter, r *http.Request) {\r\n\r\n\tvar err error\r\n\r\n\t//get the name and the hash from the path\r\n\turlPart := strings.Split(r.URL.Path, \"/\")\r\n\r\n\tname := urlPart[2]\r\n\thash := urlP...
0f8f042d1556a7addf94a0d3a1de311d
GetAdverts returns list of the advert in reply
[ { "docid": "889647e8c89492589aa3655a42eab646", "score": "0.7190109", "text": "func (b *Body) GetAdverts() *[]Advert {\n\treturn b.Embedded.Estates\n}", "title": "" } ]
[ { "docid": "a25a9dbd4f98974199aa4763c4c7d15b", "score": "0.6352129", "text": "func (s *AdminAdvertiserService) List(ctx context.Context, opts *AdminAdvertiserListOpts) ([]*Advertiser, *Response, error) {\n\tpath := \"/3.0/admin/advertisers\"\n\n\treq, err := s.client.NewRequestOpts(ctx, http.MethodGet, ...