_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c17500
train
// Equals generates a string comparing rhs to the given lhs. // Equals generates an expression of type bool.
{ "resource": "" }
c17501
train
// EqualsPtr is the same as Equals except `lhs` and `rhs` are expected to be a // reference to a value of the given type.
{ "resource": "" }
c17502
train
// NewClient builds a new client which sends requests over the given // transport, encoding them using the given protocol.
{ "resource": "" }
c17503
train
// Send sends the given request envelope over this transport.
{ "resource": "" }
c17504
train
// Constant generates code for `const` expressions in Thrift files.
{ "resource": "" }
c17505
train
// ConstantValue generates an expression containing the given constant value of // the given type. // // The constant must already have been linked to the given type.
{ "resource": "" }
c17506
train
// verifyUniqueEnumItemLabels verifies that the labels for the enum items in // the given enum don't conflict.
{ "resource": "" }
c17507
train
// enumUniqueItems returns a subset of the given list of enum items where // there are no value collisions between items.
{ "resource": "" }
c17508
train
// claim requests the given name in the namespace. If the name is already // claimed, an error will be returned.
{ "resource": "" }
c17509
train
// compileConstant builds a Constant from the given AST constant.
{ "resource": "" }
c17510
train
// Link resolves any references made by the constant.
{ "resource": "" }
c17511
train
// isAllCaps checks if a string contains all capital letters only. Non-letters // are not considered.
{ "resource": "" }
c17512
train
// pascalCase combines the given words using PascalCase. // // If allowAllCaps is true, when an all-caps word that is not a known // abbreviation is encountered, it is left unchanged. Otherwise, it is // Titlecased.
{ "resource": "" }
c17513
train
// goCase converts strings into PascalCase.
{ "resource": "" }
c17514
train
// NewServer builds a new server which reads requests from the given Reader // and writes responses to the given Writer.
{ "resource": "" }
c17515
train
// Serve serves the given Handler with the Server. // // Only one request is served at a time. The server stops handling requests if // there is an IO error or an unhandled error is received from the Handler. // // This blocks until the server is stopped using Stop.
{ "resource": "" }
c17516
train
// Stop tells the Server that it's okay to stop Serve. // // This is a no-op if the server wasn't already running.
{ "resource": "" }
c17517
train
// embedIDL generate Go code with a full copy of the IDL embeded.
{ "resource": "" }
c17518
train
// String returns a readable string representation of a Argument // struct.
{ "resource": "" }
c17519
train
// Equals returns true if all the fields of this Argument match the // provided Argument. // // This function performs a deep comparison.
{ "resource": "" }
c17520
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of Argument.
{ "resource": "" }
c17521
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of Feature. // Enums are logged as objects, where the value is logged with key "value", and // if this value's name is known, the name is logged with key "name".
{ "resource": "" }
c17522
train
// String returns a readable string representation of Feature.
{ "resource": "" }
c17523
train
// MarshalJSON serializes Feature into JSON. // // If the enum value is recognized, its name is returned. Otherwise, // its integer value is returned. // // This implements json.Marshaler.
{ "resource": "" }
c17524
train
// String returns a readable string representation of a Function // struct.
{ "resource": "" }
c17525
train
// Equals returns true if all the fields of this Function match the // provided Function. // // This function performs a deep comparison.
{ "resource": "" }
c17526
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of Function.
{ "resource": "" }
c17527
train
// GetArguments returns the value of Arguments if it is set or its // zero value if it is unset.
{ "resource": "" }
c17528
train
// GetReturnType returns the value of ReturnType if it is set or its // zero value if it is unset.
{ "resource": "" }
c17529
train
// GetExceptions returns the value of Exceptions if it is set or its // zero value if it is unset.
{ "resource": "" }
c17530
train
// GetOneWay returns the value of OneWay if it is set or its // zero value if it is unset.
{ "resource": "" }
c17531
train
// String returns a readable string representation of a GenerateServiceRequest // struct.
{ "resource": "" }
c17532
train
// Equals returns true if all the fields of this GenerateServiceRequest match the // provided GenerateServiceRequest. // // This function performs a deep comparison.
{ "resource": "" }
c17533
train
// MarshalLogArray implements zapcore.ArrayMarshaler, enabling // fast logging of _List_ServiceID_Zapper.
{ "resource": "" }
c17534
train
// MarshalLogArray implements zapcore.ArrayMarshaler, enabling // fast logging of _Map_ServiceID_Service_Zapper.
{ "resource": "" }
c17535
train
// MarshalLogArray implements zapcore.ArrayMarshaler, enabling // fast logging of _Map_ModuleID_Module_Item_Zapper.
{ "resource": "" }
c17536
train
// MarshalLogArray implements zapcore.ArrayMarshaler, enabling // fast logging of _Map_ModuleID_Module_Zapper.
{ "resource": "" }
c17537
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of GenerateServiceRequest.
{ "resource": "" }
c17538
train
// GetRootServices returns the value of RootServices if it is set or its // zero value if it is unset.
{ "resource": "" }
c17539
train
// GetServices returns the value of Services if it is set or its // zero value if it is unset.
{ "resource": "" }
c17540
train
// GetModules returns the value of Modules if it is set or its // zero value if it is unset.
{ "resource": "" }
c17541
train
// GetPackagePrefix returns the value of PackagePrefix if it is set or its // zero value if it is unset.
{ "resource": "" }
c17542
train
// GetThriftRoot returns the value of ThriftRoot if it is set or its // zero value if it is unset.
{ "resource": "" }
c17543
train
// String returns a readable string representation of a GenerateServiceResponse // struct.
{ "resource": "" }
c17544
train
// Equals returns true if all the fields of this GenerateServiceResponse match the // provided GenerateServiceResponse. // // This function performs a deep comparison.
{ "resource": "" }
c17545
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of _Map_String_Binary_Zapper.
{ "resource": "" }
c17546
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of GenerateServiceResponse.
{ "resource": "" }
c17547
train
// GetFiles returns the value of Files if it is set or its // zero value if it is unset.
{ "resource": "" }
c17548
train
// String returns a readable string representation of a HandshakeRequest // struct.
{ "resource": "" }
c17549
train
// Equals returns true if all the fields of this HandshakeRequest match the // provided HandshakeRequest. // // This function performs a deep comparison.
{ "resource": "" }
c17550
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of HandshakeRequest.
{ "resource": "" }
c17551
train
// String returns a readable string representation of a HandshakeResponse // struct.
{ "resource": "" }
c17552
train
// Equals returns true if all the fields of this HandshakeResponse match the // provided HandshakeResponse. // // This function performs a deep comparison.
{ "resource": "" }
c17553
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of HandshakeResponse.
{ "resource": "" }
c17554
train
// GetAPIVersion returns the value of APIVersion if it is set or its // zero value if it is unset.
{ "resource": "" }
c17555
train
// GetFeatures returns the value of Features if it is set or its // zero value if it is unset.
{ "resource": "" }
c17556
train
// GetLibraryVersion returns the value of LibraryVersion if it is set or its // zero value if it is unset.
{ "resource": "" }
c17557
train
// String returns a readable string representation of a Module // struct.
{ "resource": "" }
c17558
train
// Equals returns true if all the fields of this Module match the // provided Module. // // This function performs a deep comparison.
{ "resource": "" }
c17559
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of Module.
{ "resource": "" }
c17560
train
// GetDirectory returns the value of Directory if it is set or its // zero value if it is unset.
{ "resource": "" }
c17561
train
// GetThriftFilePath returns the value of ThriftFilePath if it is set or its // zero value if it is unset.
{ "resource": "" }
c17562
train
// ToWire translates ModuleID into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation.
{ "resource": "" }
c17563
train
// String returns a readable string representation of ModuleID.
{ "resource": "" }
c17564
train
// Equals returns true if this ModuleID is equal to the provided // ModuleID.
{ "resource": "" }
c17565
train
// String returns a readable string representation of a Service // struct.
{ "resource": "" }
c17566
train
// Equals returns true if all the fields of this Service match the // provided Service. // // This function performs a deep comparison.
{ "resource": "" }
c17567
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of Service.
{ "resource": "" }
c17568
train
// GetParentID returns the value of ParentID if it is set or its // zero value if it is unset.
{ "resource": "" }
c17569
train
// GetFunctions returns the value of Functions if it is set or its // zero value if it is unset.
{ "resource": "" }
c17570
train
// GetModuleID returns the value of ModuleID if it is set or its // zero value if it is unset.
{ "resource": "" }
c17571
train
// String returns a readable string representation of ServiceID.
{ "resource": "" }
c17572
train
// FromWire deserializes ServiceID from its Thrift-level // representation. The Thrift-level representation may be obtained // from a ThriftRW protocol implementation.
{ "resource": "" }
c17573
train
// Equals returns true if this ServiceID is equal to the provided // ServiceID.
{ "resource": "" }
c17574
train
// SimpleType_Values returns all recognized values of SimpleType.
{ "resource": "" }
c17575
train
// ToWire translates SimpleType into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // // Enums are represented as 32-bit integers over the wire.
{ "resource": "" }
c17576
train
// String returns a readable string representation of SimpleType.
{ "resource": "" }
c17577
train
// String returns a readable string representation of a Type // struct.
{ "resource": "" }
c17578
train
// Equals returns true if all the fields of this Type match the // provided Type. // // This function performs a deep comparison.
{ "resource": "" }
c17579
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of Type.
{ "resource": "" }
c17580
train
// GetSimpleType returns the value of SimpleType if it is set or its // zero value if it is unset.
{ "resource": "" }
c17581
train
// GetSliceType returns the value of SliceType if it is set or its // zero value if it is unset.
{ "resource": "" }
c17582
train
// GetKeyValueSliceType returns the value of KeyValueSliceType if it is set or its // zero value if it is unset.
{ "resource": "" }
c17583
train
// GetMapType returns the value of MapType if it is set or its // zero value if it is unset.
{ "resource": "" }
c17584
train
// GetReferenceType returns the value of ReferenceType if it is set or its // zero value if it is unset.
{ "resource": "" }
c17585
train
// GetPointerType returns the value of PointerType if it is set or its // zero value if it is unset.
{ "resource": "" }
c17586
train
// String returns a readable string representation of a TypePair // struct.
{ "resource": "" }
c17587
train
// Equals returns true if all the fields of this TypePair match the // provided TypePair. // // This function performs a deep comparison.
{ "resource": "" }
c17588
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of TypePair.
{ "resource": "" }
c17589
train
// GetLeft returns the value of Left if it is set or its // zero value if it is unset.
{ "resource": "" }
c17590
train
// GetRight returns the value of Right if it is set or its // zero value if it is unset.
{ "resource": "" }
c17591
train
// String returns a readable string representation of a TypeReference // struct.
{ "resource": "" }
c17592
train
// Equals returns true if all the fields of this TypeReference match the // provided TypeReference. // // This function performs a deep comparison.
{ "resource": "" }
c17593
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of TypeReference.
{ "resource": "" }
c17594
train
// capitalize changes the first letter of a string to upper case.
{ "resource": "" }
c17595
train
// fileBaseName returns the base name of the given file without the extension.
{ "resource": "" }
c17596
train
// splitInclude splits the given string at the first ".". // // If the given string doesn't have a '.', the second returned string contains // the entirety of it.
{ "resource": "" }
c17597
train
// MapItemListToSlice builds a slice of values from the given MapItemList.
{ "resource": "" }
c17598
train
// NewClient builds a new Client which uses the given writer to send requests // and the given reader to read their responses.
{ "resource": "" }
c17599
train
// Send sends the given frame and returns its response.
{ "resource": "" }