id_within_dataset
int64 0
10.3k
| snippet
stringlengths 29
1.4k
| tokens
listlengths 10
314
| cs
stringlengths 28
1.38k
| split_within_dataset
stringclasses 1
value | is_duplicated
bool 2
classes |
|---|---|---|---|---|---|
6,685
|
@Override public final boolean equals(Object o) {if (!(o instanceof Entry)) {return false;}Entry<?, ?> e = (Entry<?, ?>) o;return Objects.equal(e.getKey(), key)&& Objects.equal(e.getValue(), value);}
|
[
"@",
"Override",
"public",
"final",
"boolean",
"equals",
"(",
"Object",
"o",
")",
"{",
"if",
"(",
"!",
"(",
"o",
"instanceof",
"Entry",
")",
")",
"{",
"return",
"false",
";",
"}",
"Entry",
"<",
"?",
",",
"?",
">",
"e",
"=",
"(",
"Entry",
"<",
"?",
",",
"?",
">",
")",
"o",
";",
"return",
"Objects",
".",
"equal",
"(",
"e",
".",
"getKey",
"(",
")",
",",
"key",
")",
"&&",
"Objects",
".",
"equal",
"(",
"e",
".",
"getValue",
"(",
")",
",",
"value",
")",
";",
"}"
] |
public sealed override bool Equals(object o){if (!(o is java.util.MapClass.Entry<K, V>)){return false;}java.util.MapClass.Entry<object, object> e = (java.util.MapClass.Entry<object, object>)o;return libcore.util.Objects.equal(e.getKey(), key) && libcore.util.Objects.equal(e.getValue(), value);}
|
train
| false
|
6,686
|
public ObjectId getOldObjectId() {return oldValue;}
|
[
"public",
"ObjectId",
"getOldObjectId",
"(",
")",
"{",
"return",
"oldValue",
";",
"}"
] |
public virtual ObjectId GetOldObjectId(){return oldValue;}
|
train
| false
|
6,687
|
public AuthorizeIpRulesResult authorizeIpRules(AuthorizeIpRulesRequest request) {request = beforeClientExecution(request);return executeAuthorizeIpRules(request);}
|
[
"public",
"AuthorizeIpRulesResult",
"authorizeIpRules",
"(",
"AuthorizeIpRulesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAuthorizeIpRules",
"(",
"request",
")",
";",
"}"
] |
public virtual AuthorizeIpRulesResponse AuthorizeIpRules(AuthorizeIpRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = AuthorizeIpRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = AuthorizeIpRulesResponseUnmarshaller.Instance;return Invoke<AuthorizeIpRulesResponse>(request, options);}
|
train
| true
|
6,688
|
public GetPrivateAccessUrlsRequest() {super("CloudPhoto", "2017-07-11", "GetPrivateAccessUrls", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
|
[
"public",
"GetPrivateAccessUrlsRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"GetPrivateAccessUrls\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] |
public GetPrivateAccessUrlsRequest(): base("CloudPhoto", "2017-07-11", "GetPrivateAccessUrls", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
|
train
| false
|
6,689
|
public boolean remove(Object o) {int oldSize = size;HashMap.this.remove(o);return size != oldSize;}
|
[
"public",
"boolean",
"remove",
"(",
"Object",
"o",
")",
"{",
"int",
"oldSize",
"=",
"size",
";",
"HashMap",
".",
"this",
".",
"remove",
"(",
"o",
")",
";",
"return",
"size",
"!=",
"oldSize",
";",
"}"
] |
public override bool remove(object o){lock (this._enclosing){int oldSize = this._enclosing._size;this._enclosing.remove(o);return this._enclosing._size != oldSize;}}
|
train
| false
|
6,690
|
@Override public int size() {return filteredEntrySet.size();}
|
[
"@",
"Override",
"public",
"int",
"size",
"(",
")",
"{",
"return",
"filteredEntrySet",
".",
"size",
"(",
")",
";",
"}"
] |
public override int size(){return this._enclosing._size;}
|
train
| false
|
6,691
|
public PutConfigurationSetTrackingOptionsResult putConfigurationSetTrackingOptions(PutConfigurationSetTrackingOptionsRequest request) {request = beforeClientExecution(request);return executePutConfigurationSetTrackingOptions(request);}
|
[
"public",
"PutConfigurationSetTrackingOptionsResult",
"putConfigurationSetTrackingOptions",
"(",
"PutConfigurationSetTrackingOptionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutConfigurationSetTrackingOptions",
"(",
"request",
")",
";",
"}"
] |
public virtual PutConfigurationSetTrackingOptionsResponse PutConfigurationSetTrackingOptions(PutConfigurationSetTrackingOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConfigurationSetTrackingOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConfigurationSetTrackingOptionsResponseUnmarshaller.Instance;return Invoke<PutConfigurationSetTrackingOptionsResponse>(request, options);}
|
train
| true
|
6,692
|
public static final ObjectId fromString(byte[] buf, int offset) {return fromHexString(buf, offset);}
|
[
"public",
"static",
"final",
"ObjectId",
"fromString",
"(",
"byte",
"[",
"]",
"buf",
",",
"int",
"offset",
")",
"{",
"return",
"fromHexString",
"(",
"buf",
",",
"offset",
")",
";",
"}"
] |
public static NGit.ObjectId FromString(byte[] buf, int offset){return FromHexString(buf, offset);}
|
train
| false
|
6,693
|
public GetRelationalDatabaseResult getRelationalDatabase(GetRelationalDatabaseRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabase(request);}
|
[
"public",
"GetRelationalDatabaseResult",
"getRelationalDatabase",
"(",
"GetRelationalDatabaseRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetRelationalDatabase",
"(",
"request",
")",
";",
"}"
] |
public virtual GetRelationalDatabaseResponse GetRelationalDatabase(GetRelationalDatabaseRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseResponseUnmarshaller.Instance;return Invoke<GetRelationalDatabaseResponse>(request, options);}
|
train
| true
|
6,694
|
public JschSession(Session session, URIish uri) {sock = session;this.uri = uri;}
|
[
"public",
"JschSession",
"(",
"Session",
"session",
",",
"URIish",
"uri",
")",
"{",
"sock",
"=",
"session",
";",
"this",
".",
"uri",
"=",
"uri",
";",
"}"
] |
public JschSession(Session session, URIish uri){sock = session;this.uri = uri;}
|
train
| false
|
6,695
|
public SetCognitoEventsResult setCognitoEvents(SetCognitoEventsRequest request) {request = beforeClientExecution(request);return executeSetCognitoEvents(request);}
|
[
"public",
"SetCognitoEventsResult",
"setCognitoEvents",
"(",
"SetCognitoEventsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSetCognitoEvents",
"(",
"request",
")",
";",
"}"
] |
public virtual SetCognitoEventsResponse SetCognitoEvents(SetCognitoEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetCognitoEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = SetCognitoEventsResponseUnmarshaller.Instance;return Invoke<SetCognitoEventsResponse>(request, options);}
|
train
| true
|
6,696
|
public BatchDetectEntitiesResult batchDetectEntities(BatchDetectEntitiesRequest request) {request = beforeClientExecution(request);return executeBatchDetectEntities(request);}
|
[
"public",
"BatchDetectEntitiesResult",
"batchDetectEntities",
"(",
"BatchDetectEntitiesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBatchDetectEntities",
"(",
"request",
")",
";",
"}"
] |
public virtual BatchDetectEntitiesResponse BatchDetectEntities(BatchDetectEntitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDetectEntitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDetectEntitiesResponseUnmarshaller.Instance;return Invoke<BatchDetectEntitiesResponse>(request, options);}
|
train
| true
|
6,697
|
public synchronized int codePointCount(int beginIndex, int endIndex) {return super.codePointCount(beginIndex, endIndex);}
|
[
"public",
"synchronized",
"int",
"codePointCount",
"(",
"int",
"beginIndex",
",",
"int",
"endIndex",
")",
"{",
"return",
"super",
".",
"codePointCount",
"(",
"beginIndex",
",",
"endIndex",
")",
";",
"}"
] |
public override int codePointCount(int beginIndex, int endIndex){lock (this){return base.codePointCount(beginIndex, endIndex);}}
|
train
| false
|
6,698
|
public GenerateClientCertificateResult generateClientCertificate(GenerateClientCertificateRequest request) {request = beforeClientExecution(request);return executeGenerateClientCertificate(request);}
|
[
"public",
"GenerateClientCertificateResult",
"generateClientCertificate",
"(",
"GenerateClientCertificateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGenerateClientCertificate",
"(",
"request",
")",
";",
"}"
] |
public virtual GenerateClientCertificateResponse GenerateClientCertificate(GenerateClientCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GenerateClientCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = GenerateClientCertificateResponseUnmarshaller.Instance;return Invoke<GenerateClientCertificateResponse>(request, options);}
|
train
| true
|
6,699
|
public final void writeDouble(double val) throws IOException {writeLong(Double.doubleToLongBits(val));}
|
[
"public",
"final",
"void",
"writeDouble",
"(",
"double",
"val",
")",
"throws",
"IOException",
"{",
"writeLong",
"(",
"Double",
".",
"doubleToLongBits",
"(",
"val",
")",
")",
";",
"}"
] |
public virtual void writeDouble(double val){throw new System.NotImplementedException();}
|
train
| false
|
6,701
|
public final char yycharat(int pos) {return zzBuffer[zzStartRead+pos];}
|
[
"public",
"final",
"char",
"yycharat",
"(",
"int",
"pos",
")",
"{",
"return",
"zzBuffer",
"[",
"zzStartRead",
"+",
"pos",
"]",
";",
"}"
] |
public char YyCharAt(int pos){return zzBuffer[zzStartRead + pos];}
|
train
| false
|
6,702
|
public void pushMode(int m) {if ( LexerATNSimulator.debug ) System.out.println("pushMode "+m);_modeStack.push(_mode);mode(m);}
|
[
"public",
"void",
"pushMode",
"(",
"int",
"m",
")",
"{",
"if",
"(",
"LexerATNSimulator",
".",
"debug",
")",
"System",
".",
"out",
".",
"println",
"(",
"\"pushMode \"",
"+",
"m",
")",
";",
"_modeStack",
".",
"push",
"(",
"_mode",
")",
";",
"mode",
"(",
"m",
")",
";",
"}"
] |
public virtual void PushMode(int m){_modeStack.Push(_mode);Mode(m);}
|
train
| false
|
6,703
|
public Set<String> getCapabilities() {return command.getCapabilities();}
|
[
"public",
"Set",
"<",
"String",
">",
"getCapabilities",
"(",
")",
"{",
"return",
"command",
".",
"getCapabilities",
"(",
")",
";",
"}"
] |
public virtual ICollection<string> GetCapabilities(){return capabilities;}
|
train
| false
|
6,704
|
public DescribeReservedInstancesListingsResult describeReservedInstancesListings() {return describeReservedInstancesListings(new DescribeReservedInstancesListingsRequest());}
|
[
"public",
"DescribeReservedInstancesListingsResult",
"describeReservedInstancesListings",
"(",
")",
"{",
"return",
"describeReservedInstancesListings",
"(",
"new",
"DescribeReservedInstancesListingsRequest",
"(",
")",
")",
";",
"}"
] |
public virtual DescribeReservedInstancesListingsResponse DescribeReservedInstancesListings(){return DescribeReservedInstancesListings(new DescribeReservedInstancesListingsRequest());}
|
train
| false
|
6,705
|
public RegisterInstanceEventNotificationAttributesResult registerInstanceEventNotificationAttributes(RegisterInstanceEventNotificationAttributesRequest request) {request = beforeClientExecution(request);return executeRegisterInstanceEventNotificationAttributes(request);}
|
[
"public",
"RegisterInstanceEventNotificationAttributesResult",
"registerInstanceEventNotificationAttributes",
"(",
"RegisterInstanceEventNotificationAttributesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRegisterInstanceEventNotificationAttributes",
"(",
"request",
")",
";",
"}"
] |
public virtual RegisterInstanceEventNotificationAttributesResponse RegisterInstanceEventNotificationAttributes(RegisterInstanceEventNotificationAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterInstanceEventNotificationAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterInstanceEventNotificationAttributesResponseUnmarshaller.Instance;return Invoke<RegisterInstanceEventNotificationAttributesResponse>(request, options);}
|
train
| false
|
6,706
|
public PutRuleResult putRule(PutRuleRequest request) {request = beforeClientExecution(request);return executePutRule(request);}
|
[
"public",
"PutRuleResult",
"putRule",
"(",
"PutRuleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutRule",
"(",
"request",
")",
";",
"}"
] |
public virtual PutRuleResponse PutRule(PutRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = PutRuleResponseUnmarshaller.Instance;return Invoke<PutRuleResponse>(request, options);}
|
train
| true
|
6,708
|
public CleanCommand setPaths(Set<String> paths) {this.paths = paths;return this;}
|
[
"public",
"CleanCommand",
"setPaths",
"(",
"Set",
"<",
"String",
">",
"paths",
")",
"{",
"this",
".",
"paths",
"=",
"paths",
";",
"return",
"this",
";",
"}"
] |
public virtual NGit.Api.CleanCommand SetPaths(ICollection<string> paths){this.paths = paths;return this;}
|
train
| false
|
6,710
|
public StartDocumentTextDetectionResult startDocumentTextDetection(StartDocumentTextDetectionRequest request) {request = beforeClientExecution(request);return executeStartDocumentTextDetection(request);}
|
[
"public",
"StartDocumentTextDetectionResult",
"startDocumentTextDetection",
"(",
"StartDocumentTextDetectionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStartDocumentTextDetection",
"(",
"request",
")",
";",
"}"
] |
public virtual StartDocumentTextDetectionResponse StartDocumentTextDetection(StartDocumentTextDetectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDocumentTextDetectionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDocumentTextDetectionResponseUnmarshaller.Instance;return Invoke<StartDocumentTextDetectionResponse>(request, options);}
|
train
| true
|
6,711
|
public String getLine() {return firstWant.getLine();}
|
[
"public",
"String",
"getLine",
"(",
")",
"{",
"return",
"firstWant",
".",
"getLine",
"(",
")",
";",
"}"
] |
public virtual string GetLine(){return line;}
|
train
| false
|
6,712
|
public ValueEval getItem(int index) {if(index > _size) {throw new ArrayIndexOutOfBoundsException("Specified index (" + index+ ") is outside the allowed range (0.." + (_size-1) + ")");}return _tableArray.getValue(_rowIndex, index);}
|
[
"public",
"ValueEval",
"getItem",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"index",
">",
"_size",
")",
"{",
"throw",
"new",
"ArrayIndexOutOfBoundsException",
"(",
"\"Specified index (\"",
"+",
"index",
"+",
"\") is outside the allowed range (0..\"",
"+",
"(",
"_size",
"-",
"1",
")",
"+",
"\")\"",
")",
";",
"}",
"return",
"_tableArray",
".",
"getValue",
"(",
"_rowIndex",
",",
"index",
")",
";",
"}"
] |
public ValueEval GetItem(int index){if (index > _size){throw new IndexOutOfRangeException("Specified index (" + index+ ") is outside the allowed range (0.." + (_size - 1) + ")");}return _tableArray.GetRelativeValue(_rowIndex, index);}
|
train
| false
|
6,714
|
public SubmoduleSyncCommand(Repository repo) {super(repo);paths = new ArrayList<>();}
|
[
"public",
"SubmoduleSyncCommand",
"(",
"Repository",
"repo",
")",
"{",
"super",
"(",
"repo",
")",
";",
"paths",
"=",
"new",
"ArrayList",
"<",
">",
"(",
")",
";",
"}"
] |
protected internal SubmoduleSyncCommand(Repository repo) : base(repo){paths = new AList<string>();}
|
train
| false
|
6,715
|
public void registerWorkflowType(RegisterWorkflowTypeRequest request) {request = beforeClientExecution(request);executeRegisterWorkflowType(request);}
|
[
"public",
"void",
"registerWorkflowType",
"(",
"RegisterWorkflowTypeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"executeRegisterWorkflowType",
"(",
"request",
")",
";",
"}"
] |
public virtual RegisterWorkflowTypeResponse RegisterWorkflowType(RegisterWorkflowTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterWorkflowTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterWorkflowTypeResponseUnmarshaller.Instance;return Invoke<RegisterWorkflowTypeResponse>(request, options);}
|
train
| false
|
6,716
|
public UnescapedCharSequence(char[] chars, boolean[] wasEscaped, int offset,int length) {this.chars = new char[length];this.wasEscaped = new boolean[length];System.arraycopy(chars, offset, this.chars, 0, length);System.arraycopy(wasEscaped, offset, this.wasEscaped, 0, length);}
|
[
"public",
"UnescapedCharSequence",
"(",
"char",
"[",
"]",
"chars",
",",
"boolean",
"[",
"]",
"wasEscaped",
",",
"int",
"offset",
",",
"int",
"length",
")",
"{",
"this",
".",
"chars",
"=",
"new",
"char",
"[",
"length",
"]",
";",
"this",
".",
"wasEscaped",
"=",
"new",
"boolean",
"[",
"length",
"]",
";",
"System",
".",
"arraycopy",
"(",
"chars",
",",
"offset",
",",
"this",
".",
"chars",
",",
"0",
",",
"length",
")",
";",
"System",
".",
"arraycopy",
"(",
"wasEscaped",
",",
"offset",
",",
"this",
".",
"wasEscaped",
",",
"0",
",",
"length",
")",
";",
"}"
] |
public UnescapedCharSequence(char[] chars, bool[] wasEscaped, int offset,int length){this.chars = new char[length];this.wasEscaped = new bool[length];System.Array.Copy(chars, offset, this.chars, 0, length);System.Array.Copy(wasEscaped, offset, this.wasEscaped, 0, length);}
|
train
| false
|
6,717
|
public CreateDatasetGroupResult createDatasetGroup(CreateDatasetGroupRequest request) {request = beforeClientExecution(request);return executeCreateDatasetGroup(request);}
|
[
"public",
"CreateDatasetGroupResult",
"createDatasetGroup",
"(",
"CreateDatasetGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateDatasetGroup",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateDatasetGroupResponse CreateDatasetGroup(CreateDatasetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDatasetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDatasetGroupResponseUnmarshaller.Instance;return Invoke<CreateDatasetGroupResponse>(request, options);}
|
train
| false
|
6,718
|
public boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;FieldVals other = (FieldVals) obj;if (fieldName == null) {if (other.fieldName != null)return false;} else if (!fieldName.equals(other.fieldName))return false;if (maxEdits != other.maxEdits) {return false;}if (prefixLength != other.prefixLength)return false;if (queryString == null) {if (other.queryString != null)return false;} else if (!queryString.equals(other.queryString))return false;return true;}
|
[
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"this",
"==",
"obj",
")",
"return",
"true",
";",
"if",
"(",
"obj",
"==",
"null",
")",
"return",
"false",
";",
"if",
"(",
"getClass",
"(",
")",
"!=",
"obj",
".",
"getClass",
"(",
")",
")",
"return",
"false",
";",
"FieldVals",
"other",
"=",
"(",
"FieldVals",
")",
"obj",
";",
"if",
"(",
"fieldName",
"==",
"null",
")",
"{",
"if",
"(",
"other",
".",
"fieldName",
"!=",
"null",
")",
"return",
"false",
";",
"}",
"else",
"if",
"(",
"!",
"fieldName",
".",
"equals",
"(",
"other",
".",
"fieldName",
")",
")",
"return",
"false",
";",
"if",
"(",
"maxEdits",
"!=",
"other",
".",
"maxEdits",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"prefixLength",
"!=",
"other",
".",
"prefixLength",
")",
"return",
"false",
";",
"if",
"(",
"queryString",
"==",
"null",
")",
"{",
"if",
"(",
"other",
".",
"queryString",
"!=",
"null",
")",
"return",
"false",
";",
"}",
"else",
"if",
"(",
"!",
"queryString",
".",
"equals",
"(",
"other",
".",
"queryString",
")",
")",
"return",
"false",
";",
"return",
"true",
";",
"}"
] |
public override bool Equals(object obj){if (this == obj)return true;if (obj == null)return false;if (GetType() != obj.GetType())return false;FieldVals other = (FieldVals)obj;if (fieldName == null){if (other.fieldName != null)return false;}else if (!fieldName.Equals(other.fieldName, StringComparison.Ordinal))return false;if (J2N.BitConversion.SingleToInt32Bits(minSimilarity) != J2N.BitConversion.SingleToInt32Bits(other.minSimilarity))return false;if (prefixLength != other.prefixLength)return false;if (queryString == null){if (other.queryString != null)return false;}else if (!queryString.Equals(other.queryString, StringComparison.Ordinal))return false;return true;}
|
train
| false
|
6,719
|
public BuildSuggestersResult buildSuggesters(BuildSuggestersRequest request) {request = beforeClientExecution(request);return executeBuildSuggesters(request);}
|
[
"public",
"BuildSuggestersResult",
"buildSuggesters",
"(",
"BuildSuggestersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBuildSuggesters",
"(",
"request",
")",
";",
"}"
] |
public virtual BuildSuggestersResponse BuildSuggesters(BuildSuggestersRequest request){var options = new InvokeOptions();options.RequestMarshaller = BuildSuggestersRequestMarshaller.Instance;options.ResponseUnmarshaller = BuildSuggestersResponseUnmarshaller.Instance;return Invoke<BuildSuggestersResponse>(request, options);}
|
train
| true
|
6,720
|
public GetRelationalDatabaseBundlesResult getRelationalDatabaseBundles(GetRelationalDatabaseBundlesRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseBundles(request);}
|
[
"public",
"GetRelationalDatabaseBundlesResult",
"getRelationalDatabaseBundles",
"(",
"GetRelationalDatabaseBundlesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetRelationalDatabaseBundles",
"(",
"request",
")",
";",
"}"
] |
public virtual GetRelationalDatabaseBundlesResponse GetRelationalDatabaseBundles(GetRelationalDatabaseBundlesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseBundlesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseBundlesResponseUnmarshaller.Instance;return Invoke<GetRelationalDatabaseBundlesResponse>(request, options);}
|
train
| true
|
6,721
|
public String getMessages() {return messageBuffer != null ? messageBuffer.toString() : ""; }
|
[
"public",
"String",
"getMessages",
"(",
")",
"{",
"return",
"messageBuffer",
"!=",
"null",
"?",
"messageBuffer",
".",
"toString",
"(",
")",
":",
"\"\"",
";",
"}"
] |
public virtual string GetMessages(){return messageBuffer != null ? messageBuffer.ToString() : string.Empty;}
|
train
| false
|
6,722
|
public DelimitedPayloadTokenFilter(TokenStream input, char delimiter, PayloadEncoder encoder) {super(input);this.delimiter = delimiter;this.encoder = encoder;}
|
[
"public",
"DelimitedPayloadTokenFilter",
"(",
"TokenStream",
"input",
",",
"char",
"delimiter",
",",
"PayloadEncoder",
"encoder",
")",
"{",
"super",
"(",
"input",
")",
";",
"this",
".",
"delimiter",
"=",
"delimiter",
";",
"this",
".",
"encoder",
"=",
"encoder",
";",
"}"
] |
public DelimitedPayloadTokenFilter(TokenStream input, char delimiter, IPayloadEncoder encoder): base(input){this.delimiter = delimiter;this.encoder = encoder;termAtt = AddAttribute<ICharTermAttribute>();payAtt = AddAttribute<IPayloadAttribute>();}
|
train
| false
|
6,723
|
public void setPrintArea(int sheetIndex, int startColumn, int endColumn,int startRow, int endRow) {CellReference cell = new CellReference(startRow, startColumn, true, true);String reference = cell.formatAsString();cell = new CellReference(endRow, endColumn, true, true);reference = reference+":"+cell.formatAsString();setPrintArea(sheetIndex, reference);}
|
[
"public",
"void",
"setPrintArea",
"(",
"int",
"sheetIndex",
",",
"int",
"startColumn",
",",
"int",
"endColumn",
",",
"int",
"startRow",
",",
"int",
"endRow",
")",
"{",
"CellReference",
"cell",
"=",
"new",
"CellReference",
"(",
"startRow",
",",
"startColumn",
",",
"true",
",",
"true",
")",
";",
"String",
"reference",
"=",
"cell",
".",
"formatAsString",
"(",
")",
";",
"cell",
"=",
"new",
"CellReference",
"(",
"endRow",
",",
"endColumn",
",",
"true",
",",
"true",
")",
";",
"reference",
"=",
"reference",
"+",
"\":\"",
"+",
"cell",
".",
"formatAsString",
"(",
")",
";",
"setPrintArea",
"(",
"sheetIndex",
",",
"reference",
")",
";",
"}"
] |
public void SetPrintArea(int sheetIndex, int startColumn, int endColumn,int startRow, int endRow){CellReference cell = new CellReference(startRow, startColumn, true, true);String reference = cell.FormatAsString();cell = new CellReference(endRow, endColumn, true, true);reference = reference + ":" + cell.FormatAsString();SetPrintArea(sheetIndex, reference);}
|
train
| false
|
6,724
|
public void normalise64bit() {int oldBitLen = _significand.bitLength();int sc = oldBitLen - C_64;if (sc == 0) {return;}if (sc < 0) {throw new IllegalStateException("Not enough precision");}_binaryExponent += sc;if (sc > 32) {int highShift = (sc-1) & 0xFFFFE0;_significand = _significand.shiftRight(highShift);sc -= highShift;oldBitLen -= highShift;}if (sc < 1) {throw new IllegalStateException();}_significand = Rounder.round(_significand, sc);if (_significand.bitLength() > oldBitLen) {sc++;_binaryExponent++;}_significand = _significand.shiftRight(sc);}
|
[
"public",
"void",
"normalise64bit",
"(",
")",
"{",
"int",
"oldBitLen",
"=",
"_significand",
".",
"bitLength",
"(",
")",
";",
"int",
"sc",
"=",
"oldBitLen",
"-",
"C_64",
";",
"if",
"(",
"sc",
"==",
"0",
")",
"{",
"return",
";",
"}",
"if",
"(",
"sc",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"Not enough precision\"",
")",
";",
"}",
"_binaryExponent",
"+=",
"sc",
";",
"if",
"(",
"sc",
">",
"32",
")",
"{",
"int",
"highShift",
"=",
"(",
"sc",
"-",
"1",
")",
"&",
"0xFFFFE0",
";",
"_significand",
"=",
"_significand",
".",
"shiftRight",
"(",
"highShift",
")",
";",
"sc",
"-=",
"highShift",
";",
"oldBitLen",
"-=",
"highShift",
";",
"}",
"if",
"(",
"sc",
"<",
"1",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
")",
";",
"}",
"_significand",
"=",
"Rounder",
".",
"round",
"(",
"_significand",
",",
"sc",
")",
";",
"if",
"(",
"_significand",
".",
"bitLength",
"(",
")",
">",
"oldBitLen",
")",
"{",
"sc",
"++",
";",
"_binaryExponent",
"++",
";",
"}",
"_significand",
"=",
"_significand",
".",
"shiftRight",
"(",
"sc",
")",
";",
"}"
] |
public void Normalise64bit(){int oldBitLen = _significand.BitLength();int sc = oldBitLen - C_64;if (sc == 0){return;}if (sc < 0){throw new InvalidOperationException("Not enough precision");}_binaryExponent += sc;if (sc > 32){int highShift = (sc - 1) & 0xFFFFE0;_significand = _significand>>(highShift);sc -= highShift;oldBitLen -= highShift;}if (sc < 1){throw new InvalidOperationException();}_significand = Rounder.Round(_significand, sc);if (_significand.BitLength() > oldBitLen){sc++;_binaryExponent++;}_significand = _significand>>(sc);}
|
train
| false
|
6,725
|
public ObjRecord(RecordInputStream in) {byte[] subRecordData = in.readRemainder();if (LittleEndian.getUShort(subRecordData, 0) != CommonObjectDataSubRecord.sid) {_uninterpretedData = subRecordData;return;}LittleEndianByteArrayInputStream subRecStream = new LittleEndianByteArrayInputStream(subRecordData);CommonObjectDataSubRecord cmo = (CommonObjectDataSubRecord)SubRecord.createSubRecord(subRecStream, 0);subrecords.add(cmo);while (true) {SubRecord subRecord = SubRecord.createSubRecord(subRecStream, cmo.getObjectType());subrecords.add(subRecord);if (subRecord.isTerminating()) {break;}}final int nRemainingBytes = subRecordData.length-subRecStream.getReadIndex();if (nRemainingBytes > 0) {_isPaddedToQuadByteMultiple = subRecordData.length % MAX_PAD_ALIGNMENT == 0;if (nRemainingBytes >= (_isPaddedToQuadByteMultiple ? MAX_PAD_ALIGNMENT : NORMAL_PAD_ALIGNMENT)) {if (!canPaddingBeDiscarded(subRecordData, nRemainingBytes)) {String msg = "Leftover " + nRemainingBytes+ " bytes in subrecord data " + HexDump.toHex(subRecordData);throw new RecordFormatException(msg);}_isPaddedToQuadByteMultiple = false;}} else {_isPaddedToQuadByteMultiple = false;}_uninterpretedData = null;}
|
[
"public",
"ObjRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"byte",
"[",
"]",
"subRecordData",
"=",
"in",
".",
"readRemainder",
"(",
")",
";",
"if",
"(",
"LittleEndian",
".",
"getUShort",
"(",
"subRecordData",
",",
"0",
")",
"!=",
"CommonObjectDataSubRecord",
".",
"sid",
")",
"{",
"_uninterpretedData",
"=",
"subRecordData",
";",
"return",
";",
"}",
"LittleEndianByteArrayInputStream",
"subRecStream",
"=",
"new",
"LittleEndianByteArrayInputStream",
"(",
"subRecordData",
")",
";",
"CommonObjectDataSubRecord",
"cmo",
"=",
"(",
"CommonObjectDataSubRecord",
")",
"SubRecord",
".",
"createSubRecord",
"(",
"subRecStream",
",",
"0",
")",
";",
"subrecords",
".",
"add",
"(",
"cmo",
")",
";",
"while",
"(",
"true",
")",
"{",
"SubRecord",
"subRecord",
"=",
"SubRecord",
".",
"createSubRecord",
"(",
"subRecStream",
",",
"cmo",
".",
"getObjectType",
"(",
")",
")",
";",
"subrecords",
".",
"add",
"(",
"subRecord",
")",
";",
"if",
"(",
"subRecord",
".",
"isTerminating",
"(",
")",
")",
"{",
"break",
";",
"}",
"}",
"final",
"int",
"nRemainingBytes",
"=",
"subRecordData",
".",
"length",
"-",
"subRecStream",
".",
"getReadIndex",
"(",
")",
";",
"if",
"(",
"nRemainingBytes",
">",
"0",
")",
"{",
"_isPaddedToQuadByteMultiple",
"=",
"subRecordData",
".",
"length",
"%",
"MAX_PAD_ALIGNMENT",
"==",
"0",
";",
"if",
"(",
"nRemainingBytes",
">=",
"(",
"_isPaddedToQuadByteMultiple",
"?",
"MAX_PAD_ALIGNMENT",
":",
"NORMAL_PAD_ALIGNMENT",
")",
")",
"{",
"if",
"(",
"!",
"canPaddingBeDiscarded",
"(",
"subRecordData",
",",
"nRemainingBytes",
")",
")",
"{",
"String",
"msg",
"=",
"\"Leftover \"",
"+",
"nRemainingBytes",
"+",
"\" bytes in subrecord data \"",
"+",
"HexDump",
".",
"toHex",
"(",
"subRecordData",
")",
";",
"throw",
"new",
"RecordFormatException",
"(",
"msg",
")",
";",
"}",
"_isPaddedToQuadByteMultiple",
"=",
"false",
";",
"}",
"}",
"else",
"{",
"_isPaddedToQuadByteMultiple",
"=",
"false",
";",
"}",
"_uninterpretedData",
"=",
"null",
";",
"}"
] |
public ObjRecord(RecordInputStream in1){byte[] subRecordData = in1.ReadRemainder();if (LittleEndian.GetUShort(subRecordData, 0) != CommonObjectDataSubRecord.sid){_uninterpretedData = subRecordData;subrecords = null;return;}subrecords = new List<SubRecord>();using (MemoryStream bais = new MemoryStream(subRecordData)){LittleEndianInputStream subRecStream = new LittleEndianInputStream(bais);CommonObjectDataSubRecord cmo = (CommonObjectDataSubRecord)SubRecord.CreateSubRecord(subRecStream, 0);subrecords.Add(cmo);while (true){SubRecord subRecord = SubRecord.CreateSubRecord(subRecStream, cmo.ObjectType);subrecords.Add(subRecord);if (subRecord.IsTerminating){break;}}int nRemainingBytes = subRecStream.Available();if (nRemainingBytes > 0){_isPaddedToQuadByteMultiple = subRecordData.Length % MAX_PAD_ALIGNMENT == 0;if (nRemainingBytes >= (_isPaddedToQuadByteMultiple ? MAX_PAD_ALIGNMENT : NORMAL_PAD_ALIGNMENT)){if (!CanPaddingBeDiscarded(subRecordData, nRemainingBytes)){String msg = "Leftover " + nRemainingBytes+ " bytes in subrecord data " + HexDump.ToHex(subRecordData);throw new RecordFormatException(msg);}_isPaddedToQuadByteMultiple = false;}}else{_isPaddedToQuadByteMultiple = false;}_uninterpretedData = null;}}
|
train
| false
|
6,726
|
public FrenchLightStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
|
[
"public",
"FrenchLightStemFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] |
public FrenchLightStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
train
| false
|
6,727
|
@Override public int size() {Slice slice = this.slice;return slice.to - slice.from;}
|
[
"@",
"Override",
"public",
"int",
"size",
"(",
")",
"{",
"Slice",
"slice",
"=",
"this",
".",
"slice",
";",
"return",
"slice",
".",
"to",
"-",
"slice",
".",
"from",
";",
"}"
] |
public virtual int size(){return elements.Length;}
|
train
| false
|
6,728
|
public boolean equals(Object other) {if (!(other instanceof IntBuffer)) {return false;}IntBuffer otherBuffer = (IntBuffer) other;if (remaining() != otherBuffer.remaining()) {return false;}int myPosition = position;int otherPosition = otherBuffer.position;boolean equalSoFar = true;while (equalSoFar && (myPosition < limit)) {equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}
|
[
"public",
"boolean",
"equals",
"(",
"Object",
"other",
")",
"{",
"if",
"(",
"!",
"(",
"other",
"instanceof",
"IntBuffer",
")",
")",
"{",
"return",
"false",
";",
"}",
"IntBuffer",
"otherBuffer",
"=",
"(",
"IntBuffer",
")",
"other",
";",
"if",
"(",
"remaining",
"(",
")",
"!=",
"otherBuffer",
".",
"remaining",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"int",
"myPosition",
"=",
"position",
";",
"int",
"otherPosition",
"=",
"otherBuffer",
".",
"position",
";",
"boolean",
"equalSoFar",
"=",
"true",
";",
"while",
"(",
"equalSoFar",
"&&",
"(",
"myPosition",
"<",
"limit",
")",
")",
"{",
"equalSoFar",
"=",
"get",
"(",
"myPosition",
"++",
")",
"==",
"otherBuffer",
".",
"get",
"(",
"otherPosition",
"++",
")",
";",
"}",
"return",
"equalSoFar",
";",
"}"
] |
public override bool Equals(object other){if (!(other is java.nio.IntBuffer)){return false;}java.nio.IntBuffer otherBuffer = (java.nio.IntBuffer)other;if (remaining() != otherBuffer.remaining()){return false;}int myPosition = _position;int otherPosition = otherBuffer._position;bool equalSoFar = true;while (equalSoFar && (myPosition < _limit)){equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}
|
train
| false
|
6,730
|
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[CALCMODE]\n");buffer.append(" .calcmode = ").append(Integer.toHexString(getCalcMode())).append("\n");buffer.append("[/CALCMODE]\n");return buffer.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[CALCMODE]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .calcmode = \"",
")",
".",
"append",
"(",
"Integer",
".",
"toHexString",
"(",
"getCalcMode",
"(",
")",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\"[/CALCMODE]\\n\"",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] |
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[CALCMODE]\n");buffer.Append(" .calcmode = ").Append(StringUtil.ToHexString(GetCalcMode())).Append("\n");buffer.Append("[/CALCMODE]\n");return buffer.ToString();}
|
train
| false
|
6,731
|
public void setCurrent(String value){current = value.toCharArray();cursor = 0;limit = value.length();limit_backward = 0;bra = cursor;ket = limit;}
|
[
"public",
"void",
"setCurrent",
"(",
"String",
"value",
")",
"{",
"current",
"=",
"value",
".",
"toCharArray",
"(",
")",
";",
"cursor",
"=",
"0",
";",
"limit",
"=",
"value",
".",
"length",
"(",
")",
";",
"limit_backward",
"=",
"0",
";",
"bra",
"=",
"cursor",
";",
"ket",
"=",
"limit",
";",
"}"
] |
public virtual void SetCurrent(string value){m_current = value.ToCharArray();m_cursor = 0;m_limit = value.Length;m_limit_backward = 0;m_bra = m_cursor;m_ket = m_limit;}
|
train
| false
|
6,732
|
public ShortBuffer put(int index, short c) {checkIndex(index);backingArray[offset + index] = c;return this;}
|
[
"public",
"ShortBuffer",
"put",
"(",
"int",
"index",
",",
"short",
"c",
")",
"{",
"checkIndex",
"(",
"index",
")",
";",
"backingArray",
"[",
"offset",
"+",
"index",
"]",
"=",
"c",
";",
"return",
"this",
";",
"}"
] |
public override java.nio.ShortBuffer put(int index, short c){checkIndex(index);backingArray[offset + index] = c;return this;}
|
train
| false
|
6,733
|
public EventSubscription deleteEventSubscription(DeleteEventSubscriptionRequest request) {request = beforeClientExecution(request);return executeDeleteEventSubscription(request);}
|
[
"public",
"EventSubscription",
"deleteEventSubscription",
"(",
"DeleteEventSubscriptionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteEventSubscription",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteEventSubscriptionResponse DeleteEventSubscription(DeleteEventSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEventSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEventSubscriptionResponseUnmarshaller.Instance;return Invoke<DeleteEventSubscriptionResponse>(request, options);}
|
train
| true
|
6,734
|
public void setTokenType(String tokenType) {this.tokenType = tokenType;}
|
[
"public",
"void",
"setTokenType",
"(",
"String",
"tokenType",
")",
"{",
"this",
".",
"tokenType",
"=",
"tokenType",
";",
"}"
] |
public void SetTokenType(string tokenType){this.tokenType = tokenType;}
|
train
| false
|
6,735
|
public NumericDocValuesField(String name, long value) {this(name, Long.valueOf(value));}
|
[
"public",
"NumericDocValuesField",
"(",
"String",
"name",
",",
"long",
"value",
")",
"{",
"this",
"(",
"name",
",",
"Long",
".",
"valueOf",
"(",
"value",
")",
")",
";",
"}"
] |
public NumericDocValuesField(string name, long value): base(name, TYPE){FieldsData = new Int64(value);}
|
train
| false
|
6,736
|
public AddTagsRequest(String resourceId) {setResourceId(resourceId);}
|
[
"public",
"AddTagsRequest",
"(",
"String",
"resourceId",
")",
"{",
"setResourceId",
"(",
"resourceId",
")",
";",
"}"
] |
public AddTagsRequest(string resourceId){_resourceId = resourceId;}
|
train
| false
|
6,737
|
public ValueEval getRefEval(int rowIndex, int columnIndex) {SheetRangeEvaluator sre = getRefEvaluatorForCurrentSheet();return new LazyRefEval(rowIndex, columnIndex, sre);}
|
[
"public",
"ValueEval",
"getRefEval",
"(",
"int",
"rowIndex",
",",
"int",
"columnIndex",
")",
"{",
"SheetRangeEvaluator",
"sre",
"=",
"getRefEvaluatorForCurrentSheet",
"(",
")",
";",
"return",
"new",
"LazyRefEval",
"(",
"rowIndex",
",",
"columnIndex",
",",
"sre",
")",
";",
"}"
] |
public ValueEval GetRefEval(int rowIndex, int columnIndex){SheetRangeEvaluator sre = GetRefEvaluatorForCurrentSheet();return new LazyRefEval(rowIndex, columnIndex, sre);}
|
train
| false
|
6,738
|
public DescribeTaskDefinitionResult describeTaskDefinition(DescribeTaskDefinitionRequest request) {request = beforeClientExecution(request);return executeDescribeTaskDefinition(request);}
|
[
"public",
"DescribeTaskDefinitionResult",
"describeTaskDefinition",
"(",
"DescribeTaskDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeTaskDefinition",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeTaskDefinitionResponse DescribeTaskDefinition(DescribeTaskDefinitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTaskDefinitionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTaskDefinitionResponseUnmarshaller.Instance;return Invoke<DescribeTaskDefinitionResponse>(request, options);}
|
train
| true
|
6,739
|
public void sort() {if (count > 1) ArrayUtil.timSort(points, 0, count);}
|
[
"public",
"void",
"sort",
"(",
")",
"{",
"if",
"(",
"count",
">",
"1",
")",
"ArrayUtil",
".",
"timSort",
"(",
"points",
",",
"0",
",",
"count",
")",
";",
"}"
] |
public void Sort(){if (count > 1){ArrayUtil.TimSort(points, 0, count);}}
|
train
| false
|
6,740
|
public static final RevFilter before(long ts) {return new Before(ts);}
|
[
"public",
"static",
"final",
"RevFilter",
"before",
"(",
"long",
"ts",
")",
"{",
"return",
"new",
"Before",
"(",
"ts",
")",
";",
"}"
] |
public static RevFilter Before(DateTime ts){return Before(ts.GetTime());}
|
train
| false
|
6,741
|
public void set(E object) {throw new UnsupportedOperationException();}
|
[
"public",
"void",
"set",
"(",
"E",
"object",
")",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
")",
";",
"}"
] |
public virtual void set(E @object){throw new System.NotSupportedException();}
|
train
| false
|
6,742
|
public EscherDggRecord getDgg() {return dgg;}
|
[
"public",
"EscherDggRecord",
"getDgg",
"(",
")",
"{",
"return",
"dgg",
";",
"}"
] |
public EscherDggRecord GetDgg(){return dgg;}
|
train
| false
|
6,743
|
public ListenerHandle addConfigChangedListener(ConfigChangedListener listener) {return addListener(ConfigChangedListener.class, listener);}
|
[
"public",
"ListenerHandle",
"addConfigChangedListener",
"(",
"ConfigChangedListener",
"listener",
")",
"{",
"return",
"addListener",
"(",
"ConfigChangedListener",
".",
"class",
",",
"listener",
")",
";",
"}"
] |
public virtual ListenerHandle AddConfigChangedListener(ConfigChangedListener listener){return AddListener<ConfigChangedListener>(listener);}
|
train
| false
|
6,744
|
public DetectSentimentResult detectSentiment(DetectSentimentRequest request) {request = beforeClientExecution(request);return executeDetectSentiment(request);}
|
[
"public",
"DetectSentimentResult",
"detectSentiment",
"(",
"DetectSentimentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDetectSentiment",
"(",
"request",
")",
";",
"}"
] |
public virtual DetectSentimentResponse DetectSentiment(DetectSentimentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectSentimentRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectSentimentResponseUnmarshaller.Instance;return Invoke<DetectSentimentResponse>(request, options);}
|
train
| true
|
6,746
|
public HeaderRecord clone() {return copy();}
|
[
"public",
"HeaderRecord",
"clone",
"(",
")",
"{",
"return",
"copy",
"(",
")",
";",
"}"
] |
public override Object Clone(){return new HeaderRecord(this.Text);}
|
train
| false
|
6,747
|
public CreateEndpointConfigResult createEndpointConfig(CreateEndpointConfigRequest request) {request = beforeClientExecution(request);return executeCreateEndpointConfig(request);}
|
[
"public",
"CreateEndpointConfigResult",
"createEndpointConfig",
"(",
"CreateEndpointConfigRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateEndpointConfig",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateEndpointConfigResponse CreateEndpointConfig(CreateEndpointConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEndpointConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEndpointConfigResponseUnmarshaller.Instance;return Invoke<CreateEndpointConfigResponse>(request, options);}
|
train
| true
|
6,748
|
public Interpolator getInterpolator() {return mInterpolator;}
|
[
"public",
"Interpolator",
"getInterpolator",
"(",
")",
"{",
"return",
"mInterpolator",
";",
"}"
] |
public virtual android.view.animation.Interpolator getInterpolator(){return mInterpolator;}
|
train
| false
|
6,749
|
public GetSolutionMetricsResult getSolutionMetrics(GetSolutionMetricsRequest request) {request = beforeClientExecution(request);return executeGetSolutionMetrics(request);}
|
[
"public",
"GetSolutionMetricsResult",
"getSolutionMetrics",
"(",
"GetSolutionMetricsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetSolutionMetrics",
"(",
"request",
")",
";",
"}"
] |
public virtual GetSolutionMetricsResponse GetSolutionMetrics(GetSolutionMetricsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSolutionMetricsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSolutionMetricsResponseUnmarshaller.Instance;return Invoke<GetSolutionMetricsResponse>(request, options);}
|
train
| false
|
6,750
|
public StopActivityStreamResult stopActivityStream(StopActivityStreamRequest request) {request = beforeClientExecution(request);return executeStopActivityStream(request);}
|
[
"public",
"StopActivityStreamResult",
"stopActivityStream",
"(",
"StopActivityStreamRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStopActivityStream",
"(",
"request",
")",
";",
"}"
] |
public virtual StopActivityStreamResponse StopActivityStream(StopActivityStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopActivityStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = StopActivityStreamResponseUnmarshaller.Instance;return Invoke<StopActivityStreamResponse>(request, options);}
|
train
| false
|
6,751
|
public ListTypedLinkFacetAttributesResult listTypedLinkFacetAttributes(ListTypedLinkFacetAttributesRequest request) {request = beforeClientExecution(request);return executeListTypedLinkFacetAttributes(request);}
|
[
"public",
"ListTypedLinkFacetAttributesResult",
"listTypedLinkFacetAttributes",
"(",
"ListTypedLinkFacetAttributesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListTypedLinkFacetAttributes",
"(",
"request",
")",
";",
"}"
] |
public virtual ListTypedLinkFacetAttributesResponse ListTypedLinkFacetAttributes(ListTypedLinkFacetAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTypedLinkFacetAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTypedLinkFacetAttributesResponseUnmarshaller.Instance;return Invoke<ListTypedLinkFacetAttributesResponse>(request, options);}
|
train
| true
|
6,752
|
public ListSentimentDetectionJobsResult listSentimentDetectionJobs(ListSentimentDetectionJobsRequest request) {request = beforeClientExecution(request);return executeListSentimentDetectionJobs(request);}
|
[
"public",
"ListSentimentDetectionJobsResult",
"listSentimentDetectionJobs",
"(",
"ListSentimentDetectionJobsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListSentimentDetectionJobs",
"(",
"request",
")",
";",
"}"
] |
public virtual ListSentimentDetectionJobsResponse ListSentimentDetectionJobs(ListSentimentDetectionJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSentimentDetectionJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSentimentDetectionJobsResponseUnmarshaller.Instance;return Invoke<ListSentimentDetectionJobsResponse>(request, options);}
|
train
| true
|
6,753
|
public GetAccountSendingEnabledResult getAccountSendingEnabled(GetAccountSendingEnabledRequest request) {request = beforeClientExecution(request);return executeGetAccountSendingEnabled(request);}
|
[
"public",
"GetAccountSendingEnabledResult",
"getAccountSendingEnabled",
"(",
"GetAccountSendingEnabledRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetAccountSendingEnabled",
"(",
"request",
")",
";",
"}"
] |
public virtual GetAccountSendingEnabledResponse GetAccountSendingEnabled(GetAccountSendingEnabledRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAccountSendingEnabledRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAccountSendingEnabledResponseUnmarshaller.Instance;return Invoke<GetAccountSendingEnabledResponse>(request, options);}
|
train
| true
|
6,754
|
public static int getBuiltinFormat(String pFmt) {String fmt = "TEXT".equalsIgnoreCase(pFmt) ? "@" : pFmt;int i = -1;for (String f : _formats) {i++;if (f.equals(fmt)) {return i;}}return -1;}
|
[
"public",
"static",
"int",
"getBuiltinFormat",
"(",
"String",
"pFmt",
")",
"{",
"String",
"fmt",
"=",
"\"TEXT\"",
".",
"equalsIgnoreCase",
"(",
"pFmt",
")",
"?",
"\"@\"",
":",
"pFmt",
";",
"int",
"i",
"=",
"-",
"1",
";",
"for",
"(",
"String",
"f",
":",
"_formats",
")",
"{",
"i",
"++",
";",
"if",
"(",
"f",
".",
"equals",
"(",
"fmt",
")",
")",
"{",
"return",
"i",
";",
"}",
"}",
"return",
"-",
"1",
";",
"}"
] |
public static int GetBuiltinFormat(String pFmt){String fmt;if (string.Compare(pFmt, ("TEXT"), StringComparison.OrdinalIgnoreCase) == 0){fmt = "@";}else{fmt = pFmt;}for (int i = 0; i < _formats.Length; i++){if (fmt.Equals(_formats[i])){return i;}}return -1;}
|
train
| false
|
6,755
|
public void simpleValue(StringBuffer toAppendTo, Object value) {formatValue(toAppendTo, value);}
|
[
"public",
"void",
"simpleValue",
"(",
"StringBuffer",
"toAppendTo",
",",
"Object",
"value",
")",
"{",
"formatValue",
"(",
"toAppendTo",
",",
"value",
")",
";",
"}"
] |
public override void SimpleValue(StringBuilder toAppendTo, Object value){FormatValue(toAppendTo, value);}
|
train
| false
|
6,756
|
public BatchCheckLayerAvailabilityResult batchCheckLayerAvailability(BatchCheckLayerAvailabilityRequest request) {request = beforeClientExecution(request);return executeBatchCheckLayerAvailability(request);}
|
[
"public",
"BatchCheckLayerAvailabilityResult",
"batchCheckLayerAvailability",
"(",
"BatchCheckLayerAvailabilityRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBatchCheckLayerAvailability",
"(",
"request",
")",
";",
"}"
] |
public virtual BatchCheckLayerAvailabilityResponse BatchCheckLayerAvailability(BatchCheckLayerAvailabilityRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchCheckLayerAvailabilityRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchCheckLayerAvailabilityResponseUnmarshaller.Instance;return Invoke<BatchCheckLayerAvailabilityResponse>(request, options);}
|
train
| true
|
6,757
|
public void clearSubRecords() {subrecords.clear();}
|
[
"public",
"void",
"clearSubRecords",
"(",
")",
"{",
"subrecords",
".",
"clear",
"(",
")",
";",
"}"
] |
public void ClearSubRecords(){subrecords.Clear();}
|
train
| false
|
6,758
|
public List<Ref> call() throws GitAPIException {checkCallable();List<Ref> tags = new ArrayList<>();try (RevWalk revWalk = new RevWalk(repo)) {List<Ref> refList = repo.getRefDatabase().getRefsByPrefix(Constants.R_TAGS);for (Ref ref : refList) {tags.add(ref);}} catch (IOException e) {throw new JGitInternalException(e.getMessage(), e);}Collections.sort(tags,(Ref o1, Ref o2) -> o1.getName().compareTo(o2.getName()));setCallable(false);return tags;}
|
[
"public",
"List",
"<",
"Ref",
">",
"call",
"(",
")",
"throws",
"GitAPIException",
"{",
"checkCallable",
"(",
")",
";",
"List",
"<",
"Ref",
">",
"tags",
"=",
"new",
"ArrayList",
"<",
">",
"(",
")",
";",
"try",
"(",
"RevWalk",
"revWalk",
"=",
"new",
"RevWalk",
"(",
"repo",
")",
")",
"{",
"List",
"<",
"Ref",
">",
"refList",
"=",
"repo",
".",
"getRefDatabase",
"(",
")",
".",
"getRefsByPrefix",
"(",
"Constants",
".",
"R_TAGS",
")",
";",
"for",
"(",
"Ref",
"ref",
":",
"refList",
")",
"{",
"tags",
".",
"add",
"(",
"ref",
")",
";",
"}",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"throw",
"new",
"JGitInternalException",
"(",
"e",
".",
"getMessage",
"(",
")",
",",
"e",
")",
";",
"}",
"Collections",
".",
"sort",
"(",
"tags",
",",
"(",
"Ref",
"o1",
",",
"Ref",
"o2",
")",
"->",
"o1",
".",
"getName",
"(",
")",
".",
"compareTo",
"(",
"o2",
".",
"getName",
"(",
")",
")",
")",
";",
"setCallable",
"(",
"false",
")",
";",
"return",
"tags",
";",
"}"
] |
public override IList<Ref> Call(){CheckCallable();IDictionary<string, Ref> refList;IList<Ref> tags = new AList<Ref>();RevWalk revWalk = new RevWalk(repo);try{refList = repo.RefDatabase.GetRefs(Constants.R_TAGS);foreach (Ref @ref in refList.Values){tags.AddItem(@ref);}}catch (IOException e){throw new JGitInternalException(e.Message, e);}finally{revWalk.Release();}tags.Sort(new _IComparer_92());SetCallable(false);return tags;}
|
train
| false
|
6,759
|
public synchronized void clear() {cache.clear();}
|
[
"public",
"synchronized",
"void",
"clear",
"(",
")",
"{",
"cache",
".",
"clear",
"(",
")",
";",
"}"
] |
public virtual void Clear(){lock (this){cache.Clear();}}
|
train
| false
|
6,760
|
public int indexOf(E object, int from) {Object[] snapshot = elements;return indexOf(object, snapshot, from, snapshot.length);}
|
[
"public",
"int",
"indexOf",
"(",
"E",
"object",
",",
"int",
"from",
")",
"{",
"Object",
"[",
"]",
"snapshot",
"=",
"elements",
";",
"return",
"indexOf",
"(",
"object",
",",
"snapshot",
",",
"from",
",",
"snapshot",
".",
"length",
")",
";",
"}"
] |
public virtual int indexOf(E @object, int from){object[] snapshot = elements;return indexOf(@object, snapshot, from, snapshot.Length);}
|
train
| true
|
6,762
|
public PasswordRecord getPasswordRecord() {return _passwordRecord;}
|
[
"public",
"PasswordRecord",
"getPasswordRecord",
"(",
")",
"{",
"return",
"_passwordRecord",
";",
"}"
] |
public PasswordRecord GetPasswordRecord(){return _passwordRecord;}
|
train
| false
|
6,763
|
public SlicedIndexInput clone() {SlicedIndexInput clone = (SlicedIndexInput)super.clone();clone.base = base.clone();clone.fileOffset = fileOffset;clone.length = length;return clone;}
|
[
"public",
"SlicedIndexInput",
"clone",
"(",
")",
"{",
"SlicedIndexInput",
"clone",
"=",
"(",
"SlicedIndexInput",
")",
"super",
".",
"clone",
"(",
")",
";",
"clone",
".",
"base",
"=",
"base",
".",
"clone",
"(",
")",
";",
"clone",
".",
"fileOffset",
"=",
"fileOffset",
";",
"clone",
".",
"length",
"=",
"length",
";",
"return",
"clone",
";",
"}"
] |
public override object Clone(){SlicedIndexInput clone = (SlicedIndexInput)base.Clone();clone.@base = (IndexInput)@base.Clone();clone.fileOffset = fileOffset;clone.length = length;return clone;}
|
train
| false
|
6,764
|
public int getSourceLine(int idx) {return sourceLines[idx] - 1;}
|
[
"public",
"int",
"getSourceLine",
"(",
"int",
"idx",
")",
"{",
"return",
"sourceLines",
"[",
"idx",
"]",
"-",
"1",
";",
"}"
] |
public virtual int GetSourceLine(int idx){return sourceLines[idx] - 1;}
|
train
| false
|
6,765
|
public DeleteResolverRuleResult deleteResolverRule(DeleteResolverRuleRequest request) {request = beforeClientExecution(request);return executeDeleteResolverRule(request);}
|
[
"public",
"DeleteResolverRuleResult",
"deleteResolverRule",
"(",
"DeleteResolverRuleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteResolverRule",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteResolverRuleResponse DeleteResolverRule(DeleteResolverRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteResolverRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteResolverRuleResponseUnmarshaller.Instance;return Invoke<DeleteResolverRuleResponse>(request, options);}
|
train
| true
|
6,767
|
@Override public Set<K> keySet() {return navigableKeySet();}
|
[
"@",
"Override",
"public",
"Set",
"<",
"K",
">",
"keySet",
"(",
")",
"{",
"return",
"navigableKeySet",
"(",
")",
";",
"}"
] |
public override java.util.Set<K> keySet(){return this.navigableKeySet();}
|
train
| false
|
6,768
|
public boolean stem() {if (!r_more_than_one_syllable_word()){return false;}limit_backward = cursor;cursor = limit;int v_1 = limit - cursor;r_stem_nominal_verb_suffixes();cursor = limit - v_1;if (!(B_continue_stemming_noun_suffixes)){return false;}int v_2 = limit - cursor;r_stem_noun_suffixes();cursor = limit - v_2;cursor = limit_backward;if (!r_postlude()){return false;}return true;}
|
[
"public",
"boolean",
"stem",
"(",
")",
"{",
"if",
"(",
"!",
"r_more_than_one_syllable_word",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"limit_backward",
"=",
"cursor",
";",
"cursor",
"=",
"limit",
";",
"int",
"v_1",
"=",
"limit",
"-",
"cursor",
";",
"r_stem_nominal_verb_suffixes",
"(",
")",
";",
"cursor",
"=",
"limit",
"-",
"v_1",
";",
"if",
"(",
"!",
"(",
"B_continue_stemming_noun_suffixes",
")",
")",
"{",
"return",
"false",
";",
"}",
"int",
"v_2",
"=",
"limit",
"-",
"cursor",
";",
"r_stem_noun_suffixes",
"(",
")",
";",
"cursor",
"=",
"limit",
"-",
"v_2",
";",
"cursor",
"=",
"limit_backward",
";",
"if",
"(",
"!",
"r_postlude",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"return",
"true",
";",
"}"
] |
public override bool Stem(){int v_1;int v_2;if (!r_more_than_one_syllable_word()){return false;}m_limit_backward = m_cursor; m_cursor = m_limit;v_1 = m_limit - m_cursor;do{if (!r_stem_nominal_verb_suffixes()){goto lab0;}} while (false);lab0:m_cursor = m_limit - v_1;if (!(B_continue_stemming_noun_suffixes)){return false;}v_2 = m_limit - m_cursor;do{if (!r_stem_noun_suffixes()){goto lab1;}} while (false);lab1:m_cursor = m_limit - v_2;m_cursor = m_limit_backward; if (!r_postlude()){return false;}return true;}
|
train
| true
|
6,769
|
public ListShardsResult listShards(ListShardsRequest request) {request = beforeClientExecution(request);return executeListShards(request);}
|
[
"public",
"ListShardsResult",
"listShards",
"(",
"ListShardsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListShards",
"(",
"request",
")",
";",
"}"
] |
public virtual ListShardsResponse ListShards(ListShardsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListShardsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListShardsResponseUnmarshaller.Instance;return Invoke<ListShardsResponse>(request, options);}
|
train
| true
|
6,770
|
public SearcherAndTaxonomy(IndexSearcher searcher, DirectoryTaxonomyReader taxonomyReader) {this.searcher = searcher;this.taxonomyReader = taxonomyReader;}
|
[
"public",
"SearcherAndTaxonomy",
"(",
"IndexSearcher",
"searcher",
",",
"DirectoryTaxonomyReader",
"taxonomyReader",
")",
"{",
"this",
".",
"searcher",
"=",
"searcher",
";",
"this",
".",
"taxonomyReader",
"=",
"taxonomyReader",
";",
"}"
] |
public SearcherAndTaxonomy(IndexSearcher searcher, DirectoryTaxonomyReader taxonomyReader){this.Searcher = searcher;this.TaxonomyReader = taxonomyReader;}
|
train
| false
|
6,771
|
public TreeFilter clone() {return this;}
|
[
"public",
"TreeFilter",
"clone",
"(",
")",
"{",
"return",
"this",
";",
"}"
] |
public override TreeFilter Clone(){return this;}
|
train
| false
|
6,774
|
public Position get(int pos) {while(pos >= nextPos) {if (count == positions.length) {Position[] newPositions = new Position[ArrayUtil.oversize(1+count, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];System.arraycopy(positions, nextWrite, newPositions, 0, positions.length-nextWrite);System.arraycopy(positions, 0, newPositions, positions.length-nextWrite, nextWrite);for(int i=positions.length;i<newPositions.length;i++) {newPositions[i] = new Position();}nextWrite = positions.length;positions = newPositions;}if (nextWrite == positions.length) {nextWrite = 0;}assert positions[nextWrite].count == 0;positions[nextWrite++].pos = nextPos++;count++;}assert inBounds(pos);final int index = getIndex(pos);assert positions[index].pos == pos;return positions[index];}
|
[
"public",
"Position",
"get",
"(",
"int",
"pos",
")",
"{",
"while",
"(",
"pos",
">=",
"nextPos",
")",
"{",
"if",
"(",
"count",
"==",
"positions",
".",
"length",
")",
"{",
"Position",
"[",
"]",
"newPositions",
"=",
"new",
"Position",
"[",
"ArrayUtil",
".",
"oversize",
"(",
"1",
"+",
"count",
",",
"RamUsageEstimator",
".",
"NUM_BYTES_OBJECT_REF",
")",
"]",
";",
"System",
".",
"arraycopy",
"(",
"positions",
",",
"nextWrite",
",",
"newPositions",
",",
"0",
",",
"positions",
".",
"length",
"-",
"nextWrite",
")",
";",
"System",
".",
"arraycopy",
"(",
"positions",
",",
"0",
",",
"newPositions",
",",
"positions",
".",
"length",
"-",
"nextWrite",
",",
"nextWrite",
")",
";",
"for",
"(",
"int",
"i",
"=",
"positions",
".",
"length",
";",
"i",
"<",
"newPositions",
".",
"length",
";",
"i",
"++",
")",
"{",
"newPositions",
"[",
"i",
"]",
"=",
"new",
"Position",
"(",
")",
";",
"}",
"nextWrite",
"=",
"positions",
".",
"length",
";",
"positions",
"=",
"newPositions",
";",
"}",
"if",
"(",
"nextWrite",
"==",
"positions",
".",
"length",
")",
"{",
"nextWrite",
"=",
"0",
";",
"}",
"assert",
"positions",
"[",
"nextWrite",
"]",
".",
"count",
"==",
"0",
";",
"positions",
"[",
"nextWrite",
"++",
"]",
".",
"pos",
"=",
"nextPos",
"++",
";",
"count",
"++",
";",
"}",
"assert",
"inBounds",
"(",
"pos",
")",
";",
"final",
"int",
"index",
"=",
"getIndex",
"(",
"pos",
")",
";",
"assert",
"positions",
"[",
"index",
"]",
".",
"pos",
"==",
"pos",
";",
"return",
"positions",
"[",
"index",
"]",
";",
"}"
] |
public Position Get(int pos){while (pos >= nextPos){if (count == positions.Length){Position[] newPositions = new Position[ArrayUtil.Oversize(1 + count, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];System.Array.Copy(positions, nextWrite, newPositions, 0, positions.Length - nextWrite);System.Array.Copy(positions, 0, newPositions, positions.Length - nextWrite, nextWrite);for (int i = positions.Length; i < newPositions.Length; i++){newPositions[i] = new Position();}nextWrite = positions.Length;positions = newPositions;}if (nextWrite == positions.Length){nextWrite = 0;}Debug.Assert(positions[nextWrite].count == 0);positions[nextWrite++].pos = nextPos++;count++;}Debug.Assert(InBounds(pos));int index = GetIndex(pos);Debug.Assert(positions[index].pos == pos);return positions[index];}
|
train
| false
|
6,775
|
public synchronized void reset() {pos = 0;}
|
[
"public",
"synchronized",
"void",
"reset",
"(",
")",
"{",
"pos",
"=",
"0",
";",
"}"
] |
public override void reset(){lock (this){pos = 0;}}
|
train
| false
|
6,776
|
public void configure(FacetsConfig config) {for(int i=0;i<maxDims;i++) {config.setHierarchical(Integer.toString(i), true);config.setMultiValued(Integer.toString(i), true);}}
|
[
"public",
"void",
"configure",
"(",
"FacetsConfig",
"config",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"maxDims",
";",
"i",
"++",
")",
"{",
"config",
".",
"setHierarchical",
"(",
"Integer",
".",
"toString",
"(",
"i",
")",
",",
"true",
")",
";",
"config",
".",
"setMultiValued",
"(",
"Integer",
".",
"toString",
"(",
"i",
")",
",",
"true",
")",
";",
"}",
"}"
] |
public override void Configure(FacetsConfig config){for (int i = 0; i < maxDims; i++){config.SetHierarchical(i.ToString(CultureInfo.InvariantCulture), true);config.SetMultiValued(i.ToString(CultureInfo.InvariantCulture), true);}}
|
train
| false
|
6,777
|
public boolean equals(Object obj) {if (obj == null)return false;if (obj == this)return true;if (obj.getClass() != getClass())return false;HSSFClientAnchor anchor = (HSSFClientAnchor) obj;return anchor.getCol1() == getCol1() && anchor.getCol2() == getCol2() && anchor.getDx1() == getDx1()&& anchor.getDx2() == getDx2() && anchor.getDy1() == getDy1() && anchor.getDy2() == getDy2()&& anchor.getRow1() == getRow1() && anchor.getRow2() == getRow2() && anchor.getAnchorType() == getAnchorType();}
|
[
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"obj",
"==",
"null",
")",
"return",
"false",
";",
"if",
"(",
"obj",
"==",
"this",
")",
"return",
"true",
";",
"if",
"(",
"obj",
".",
"getClass",
"(",
")",
"!=",
"getClass",
"(",
")",
")",
"return",
"false",
";",
"HSSFClientAnchor",
"anchor",
"=",
"(",
"HSSFClientAnchor",
")",
"obj",
";",
"return",
"anchor",
".",
"getCol1",
"(",
")",
"==",
"getCol1",
"(",
")",
"&&",
"anchor",
".",
"getCol2",
"(",
")",
"==",
"getCol2",
"(",
")",
"&&",
"anchor",
".",
"getDx1",
"(",
")",
"==",
"getDx1",
"(",
")",
"&&",
"anchor",
".",
"getDx2",
"(",
")",
"==",
"getDx2",
"(",
")",
"&&",
"anchor",
".",
"getDy1",
"(",
")",
"==",
"getDy1",
"(",
")",
"&&",
"anchor",
".",
"getDy2",
"(",
")",
"==",
"getDy2",
"(",
")",
"&&",
"anchor",
".",
"getRow1",
"(",
")",
"==",
"getRow1",
"(",
")",
"&&",
"anchor",
".",
"getRow2",
"(",
")",
"==",
"getRow2",
"(",
")",
"&&",
"anchor",
".",
"getAnchorType",
"(",
")",
"==",
"getAnchorType",
"(",
")",
";",
"}"
] |
public override bool Equals(Object obj){if (obj == null)return false;if (obj == this)return true;if (obj.GetType() != GetType())return false;HSSFClientAnchor anchor = (HSSFClientAnchor)obj;return anchor.Col1 == Col1 && anchor.Col2 == Col2 && anchor.Dx1 == Dx1&& anchor.Dx2 == Dx2 && anchor.Dy1 == Dy1 && anchor.Dy2 == Dy2&& anchor.Row1 == Row1 && anchor.Row2 == Row2 && anchor.AnchorType == AnchorType;}
|
train
| false
|
6,778
|
public Set<String> getMissing() {return Collections.unmodifiableSet(diff.getMissing());}
|
[
"public",
"Set",
"<",
"String",
">",
"getMissing",
"(",
")",
"{",
"return",
"Collections",
".",
"unmodifiableSet",
"(",
"diff",
".",
"getMissing",
"(",
")",
")",
";",
"}"
] |
public virtual ICollection<string> GetMissing(){return Sharpen.Collections.UnmodifiableSet(diff.GetMissing());}
|
train
| false
|
6,779
|
public static IndexWriterConfig createWriterConfig(Config config, PerfRunData runData, OpenMode mode, IndexCommit commit) {IndexWriterConfig iwConf = new IndexWriterConfig(runData.getAnalyzer());iwConf.setOpenMode(mode);IndexDeletionPolicy indexDeletionPolicy = getIndexDeletionPolicy(config);iwConf.setIndexDeletionPolicy(indexDeletionPolicy);if (commit != null) {iwConf.setIndexCommit(commit);}final String mergeScheduler = config.get("merge.scheduler","org.apache.lucene.index.ConcurrentMergeScheduler");if (mergeScheduler.equals(NoMergeScheduler.class.getName())) {iwConf.setMergeScheduler(NoMergeScheduler.INSTANCE);} else {try {iwConf.setMergeScheduler(Class.forName(mergeScheduler).asSubclass(MergeScheduler.class).getConstructor().newInstance());} catch (Exception e) {}}}
|
[
"public",
"static",
"IndexWriterConfig",
"createWriterConfig",
"(",
"Config",
"config",
",",
"PerfRunData",
"runData",
",",
"OpenMode",
"mode",
",",
"IndexCommit",
"commit",
")",
"{",
"IndexWriterConfig",
"iwConf",
"=",
"new",
"IndexWriterConfig",
"(",
"runData",
".",
"getAnalyzer",
"(",
")",
")",
";",
"iwConf",
".",
"setOpenMode",
"(",
"mode",
")",
";",
"IndexDeletionPolicy",
"indexDeletionPolicy",
"=",
"getIndexDeletionPolicy",
"(",
"config",
")",
";",
"iwConf",
".",
"setIndexDeletionPolicy",
"(",
"indexDeletionPolicy",
")",
";",
"if",
"(",
"commit",
"!=",
"null",
")",
"{",
"iwConf",
".",
"setIndexCommit",
"(",
"commit",
")",
";",
"}",
"final",
"String",
"mergeScheduler",
"=",
"config",
".",
"get",
"(",
"\"merge.scheduler\"",
",",
"\"org.apache.lucene.index.ConcurrentMergeScheduler\"",
")",
";",
"if",
"(",
"mergeScheduler",
".",
"equals",
"(",
"NoMergeScheduler",
".",
"class",
".",
"getName",
"(",
")",
")",
")",
"{",
"iwConf",
".",
"setMergeScheduler",
"(",
"NoMergeScheduler",
".",
"INSTANCE",
")",
";",
"}",
"else",
"{",
"try",
"{",
"iwConf",
".",
"setMergeScheduler",
"(",
"Class",
".",
"forName",
"(",
"mergeScheduler",
")",
".",
"asSubclass",
"(",
"MergeScheduler",
".",
"class",
")",
".",
"getConstructor",
"(",
")",
".",
"newInstance",
"(",
")",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"}",
"}",
"}"
] |
public static IndexWriterConfig CreateWriterConfig(Config config, PerfRunData runData, OpenMode mode, IndexCommit commit){LuceneVersion version = (LuceneVersion)Enum.Parse(typeof(LuceneVersion), config.Get("writer.version", LuceneVersion.LUCENE_48.ToString()));IndexWriterConfig iwConf = new IndexWriterConfig(version, runData.Analyzer);iwConf.OpenMode = mode;IndexDeletionPolicy indexDeletionPolicy = GetIndexDeletionPolicy(config);iwConf.IndexDeletionPolicy = indexDeletionPolicy;if (commit != null)iwConf.IndexCommit = commit;string mergeScheduler = config.Get("merge.scheduler","Lucene.Net.Index.ConcurrentMergeScheduler, Lucene.Net");if (mergeScheduler.Contains(".ConcurrentMergeScheduler,")){mergeScheduler = "Lucene.Net.Index.TaskMergeScheduler, Lucene.Net";}Type mergeSchedulerType = Type.GetType(mergeScheduler);if (mergeSchedulerType == null){throw new Exception("Unrecognized merge scheduler type '" + mergeScheduler + "'");}else if (mergeSchedulerType.Equals(typeof(NoMergeScheduler))){iwConf.MergeScheduler = NoMergeScheduler.INSTANCE;}else{try{iwConf.MergeScheduler = (IMergeScheduler)Activator.CreateInstance(mergeSchedulerType);}catch (Exception e){}}}
|
train
| false
|
6,780
|
public GetCapacityReservationUsageResult getCapacityReservationUsage(GetCapacityReservationUsageRequest request) {request = beforeClientExecution(request);return executeGetCapacityReservationUsage(request);}
|
[
"public",
"GetCapacityReservationUsageResult",
"getCapacityReservationUsage",
"(",
"GetCapacityReservationUsageRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetCapacityReservationUsage",
"(",
"request",
")",
";",
"}"
] |
public virtual GetCapacityReservationUsageResponse GetCapacityReservationUsage(GetCapacityReservationUsageRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCapacityReservationUsageRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCapacityReservationUsageResponseUnmarshaller.Instance;return Invoke<GetCapacityReservationUsageResponse>(request, options);}
|
train
| false
|
6,781
|
public void addRule(HSSFConditionalFormattingRule cfRule) {cfAggregate.addRule(cfRule.getCfRuleRecord());}
|
[
"public",
"void",
"addRule",
"(",
"HSSFConditionalFormattingRule",
"cfRule",
")",
"{",
"cfAggregate",
".",
"addRule",
"(",
"cfRule",
".",
"getCfRuleRecord",
"(",
")",
")",
";",
"}"
] |
public void AddRule(HSSFConditionalFormattingRule cfRule){cfAggregate.AddRule(cfRule.CfRuleRecord);}
|
train
| false
|
6,782
|
public DocState(boolean reuseFields, FieldType ft, FieldType bodyFt) {this.reuseFields = reuseFields;if (reuseFields) {fields = new HashMap<>();numericFields = new HashMap<>();fields.put(BODY_FIELD, new Field(BODY_FIELD, "", bodyFt));fields.put(TITLE_FIELD, new Field(TITLE_FIELD, "", ft));fields.put(DATE_FIELD, new Field(DATE_FIELD, "", ft));fields.put(ID_FIELD, new StringField(ID_FIELD, "", Field.Store.YES));fields.put(NAME_FIELD, new Field(NAME_FIELD, "", ft));numericFields.put(DATE_MSEC_FIELD, new LongPoint(DATE_MSEC_FIELD, 0L));numericFields.put(TIME_SEC_FIELD, new IntPoint(TIME_SEC_FIELD, 0));doc = new Document();} else {numericFields = null;fields = null;doc = null;}}
|
[
"public",
"DocState",
"(",
"boolean",
"reuseFields",
",",
"FieldType",
"ft",
",",
"FieldType",
"bodyFt",
")",
"{",
"this",
".",
"reuseFields",
"=",
"reuseFields",
";",
"if",
"(",
"reuseFields",
")",
"{",
"fields",
"=",
"new",
"HashMap",
"<",
">",
"(",
")",
";",
"numericFields",
"=",
"new",
"HashMap",
"<",
">",
"(",
")",
";",
"fields",
".",
"put",
"(",
"BODY_FIELD",
",",
"new",
"Field",
"(",
"BODY_FIELD",
",",
"\"\"",
",",
"bodyFt",
")",
")",
";",
"fields",
".",
"put",
"(",
"TITLE_FIELD",
",",
"new",
"Field",
"(",
"TITLE_FIELD",
",",
"\"\"",
",",
"ft",
")",
")",
";",
"fields",
".",
"put",
"(",
"DATE_FIELD",
",",
"new",
"Field",
"(",
"DATE_FIELD",
",",
"\"\"",
",",
"ft",
")",
")",
";",
"fields",
".",
"put",
"(",
"ID_FIELD",
",",
"new",
"StringField",
"(",
"ID_FIELD",
",",
"\"\"",
",",
"Field",
".",
"Store",
".",
"YES",
")",
")",
";",
"fields",
".",
"put",
"(",
"NAME_FIELD",
",",
"new",
"Field",
"(",
"NAME_FIELD",
",",
"\"\"",
",",
"ft",
")",
")",
";",
"numericFields",
".",
"put",
"(",
"DATE_MSEC_FIELD",
",",
"new",
"LongPoint",
"(",
"DATE_MSEC_FIELD",
",",
"0L",
")",
")",
";",
"numericFields",
".",
"put",
"(",
"TIME_SEC_FIELD",
",",
"new",
"IntPoint",
"(",
"TIME_SEC_FIELD",
",",
"0",
")",
")",
";",
"doc",
"=",
"new",
"Document",
"(",
")",
";",
"}",
"else",
"{",
"numericFields",
"=",
"null",
";",
"fields",
"=",
"null",
";",
"doc",
"=",
"null",
";",
"}",
"}"
] |
public DocState(bool reuseFields, FieldType ft, FieldType bodyFt){this.reuseFields = reuseFields;if (reuseFields){fields = new Dictionary<string, Field>();numericFields = new Dictionary<string, Field>();fields[BODY_FIELD] = new Field(BODY_FIELD, "", bodyFt);fields[TITLE_FIELD] = new Field(TITLE_FIELD, "", ft);fields[DATE_FIELD] = new Field(DATE_FIELD, "", ft);fields[ID_FIELD] = new StringField(ID_FIELD, "", Field.Store.YES);fields[NAME_FIELD] = new Field(NAME_FIELD, "", ft);numericFields[DATE_MSEC_FIELD] = new Int64Field(DATE_MSEC_FIELD, 0L, Field.Store.NO);numericFields[TIME_SEC_FIELD] = new Int32Field(TIME_SEC_FIELD, 0, Field.Store.NO);doc = new Document();}else{numericFields = null;fields = null;doc = null;}}
|
train
| false
|
6,783
|
public char[] getValue() {return value;}
|
[
"public",
"char",
"[",
"]",
"getValue",
"(",
")",
"{",
"return",
"value",
";",
"}"
] |
public virtual char[] GetValue(){return value;}
|
train
| false
|
6,784
|
public void updateNameCommentRecordCache(final NameCommentRecord commentRecord) {if(commentRecords.containsValue(commentRecord)) {for(Entry<String,NameCommentRecord> entry : commentRecords.entrySet()) {if(entry.getValue().equals(commentRecord)) {commentRecords.remove(entry.getKey());break;}}}commentRecords.put(commentRecord.getNameText(), commentRecord);}
|
[
"public",
"void",
"updateNameCommentRecordCache",
"(",
"final",
"NameCommentRecord",
"commentRecord",
")",
"{",
"if",
"(",
"commentRecords",
".",
"containsValue",
"(",
"commentRecord",
")",
")",
"{",
"for",
"(",
"Entry",
"<",
"String",
",",
"NameCommentRecord",
">",
"entry",
":",
"commentRecords",
".",
"entrySet",
"(",
")",
")",
"{",
"if",
"(",
"entry",
".",
"getValue",
"(",
")",
".",
"equals",
"(",
"commentRecord",
")",
")",
"{",
"commentRecords",
".",
"remove",
"(",
"entry",
".",
"getKey",
"(",
")",
")",
";",
"break",
";",
"}",
"}",
"}",
"commentRecords",
".",
"put",
"(",
"commentRecord",
".",
"getNameText",
"(",
")",
",",
"commentRecord",
")",
";",
"}"
] |
public void UpdateNameCommentRecordCache(NameCommentRecord commentRecord){if (commentRecords.ContainsValue(commentRecord)){foreach (KeyValuePair<string, NameCommentRecord> entry in commentRecords){if (entry.Value.Equals(commentRecord)){commentRecords.Remove(entry.Key);break;}}}commentRecords[commentRecord.NameText] = commentRecord;}
|
train
| false
|
6,786
|
public Query getQuery(Element n) throws ParserException {QueryBuilder builder = builders.get(n.getNodeName());if (builder == null) {throw new ParserException("No QueryObjectBuilder defined for node " + n.getNodeName());}return builder.getQuery(n);}
|
[
"public",
"Query",
"getQuery",
"(",
"Element",
"n",
")",
"throws",
"ParserException",
"{",
"QueryBuilder",
"builder",
"=",
"builders",
".",
"get",
"(",
"n",
".",
"getNodeName",
"(",
")",
")",
";",
"if",
"(",
"builder",
"==",
"null",
")",
"{",
"throw",
"new",
"ParserException",
"(",
"\"No QueryObjectBuilder defined for node \"",
"+",
"n",
".",
"getNodeName",
"(",
")",
")",
";",
"}",
"return",
"builder",
".",
"getQuery",
"(",
"n",
")",
";",
"}"
] |
public virtual Query GetQuery(XmlElement n){IQueryBuilder builder;if (!builders.TryGetValue(n.Name, out builder) || builder == null){throw new ParserException("No QueryObjectBuilder defined for node " + n.Name);}return builder.GetQuery(n);}
|
train
| false
|
6,787
|
public static double nper(double r, double y, double p, double f, boolean t) {double retval = 0;if (r == 0) {retval = -1 * (f + p) / y;} else {double r1 = r + 1;double ryr = (t ? r1 : 1) * y / r;double a1 = ((ryr - f) < 0)? Math.log(f - ryr): Math.log(ryr - f);double a2 = ((ryr - f) < 0)? Math.log(-p - ryr): Math.log(p + ryr);double a3 = Math.log(r1);retval = (a1 - a2) / a3;}return retval;}
|
[
"public",
"static",
"double",
"nper",
"(",
"double",
"r",
",",
"double",
"y",
",",
"double",
"p",
",",
"double",
"f",
",",
"boolean",
"t",
")",
"{",
"double",
"retval",
"=",
"0",
";",
"if",
"(",
"r",
"==",
"0",
")",
"{",
"retval",
"=",
"-",
"1",
"*",
"(",
"f",
"+",
"p",
")",
"/",
"y",
";",
"}",
"else",
"{",
"double",
"r1",
"=",
"r",
"+",
"1",
";",
"double",
"ryr",
"=",
"(",
"t",
"?",
"r1",
":",
"1",
")",
"*",
"y",
"/",
"r",
";",
"double",
"a1",
"=",
"(",
"(",
"ryr",
"-",
"f",
")",
"<",
"0",
")",
"?",
"Math",
".",
"log",
"(",
"f",
"-",
"ryr",
")",
":",
"Math",
".",
"log",
"(",
"ryr",
"-",
"f",
")",
";",
"double",
"a2",
"=",
"(",
"(",
"ryr",
"-",
"f",
")",
"<",
"0",
")",
"?",
"Math",
".",
"log",
"(",
"-",
"p",
"-",
"ryr",
")",
":",
"Math",
".",
"log",
"(",
"p",
"+",
"ryr",
")",
";",
"double",
"a3",
"=",
"Math",
".",
"log",
"(",
"r1",
")",
";",
"retval",
"=",
"(",
"a1",
"-",
"a2",
")",
"/",
"a3",
";",
"}",
"return",
"retval",
";",
"}"
] |
public static double nper(double r, double y, double p, double f, bool t){double retval = 0;if (r == 0){retval = -1 * (f + p) / y;}else{double r1 = r + 1;double ryr = (t ? r1 : 1) * y / r;double a1 = ((ryr - f) < 0)? Math.Log(f - ryr): Math.Log(ryr - f);double a2 = ((ryr - f) < 0)? Math.Log(-p - ryr): Math.Log(p + ryr);double a3 = Math.Log(r1);retval = (a1 - a2) / a3;}return retval;}
|
train
| false
|
6,788
|
public AndQueryNode(List<QueryNode> clauses) {super(clauses);if ((clauses == null) || (clauses.size() == 0)) {throw new IllegalArgumentException("AND query must have at least one clause");}}
|
[
"public",
"AndQueryNode",
"(",
"List",
"<",
"QueryNode",
">",
"clauses",
")",
"{",
"super",
"(",
"clauses",
")",
";",
"if",
"(",
"(",
"clauses",
"==",
"null",
")",
"||",
"(",
"clauses",
".",
"size",
"(",
")",
"==",
"0",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"AND query must have at least one clause\"",
")",
";",
"}",
"}"
] |
public AndQueryNode(IList<IQueryNode> clauses): base(clauses){if ((clauses == null) || (clauses.Count == 0)){throw new ArgumentException("AND query must have at least one clause");}}
|
train
| false
|
6,789
|
public SeriesListRecord(short[] seriesNumbers) {field_1_seriesNumbers = (seriesNumbers == null) ? null : seriesNumbers.clone();}
|
[
"public",
"SeriesListRecord",
"(",
"short",
"[",
"]",
"seriesNumbers",
")",
"{",
"field_1_seriesNumbers",
"=",
"(",
"seriesNumbers",
"==",
"null",
")",
"?",
"null",
":",
"seriesNumbers",
".",
"clone",
"(",
")",
";",
"}"
] |
public SeriesListRecord(short[] seriesNumbers){field_1_seriesNumbers = seriesNumbers;}
|
train
| false
|
6,790
|
public String toString() {return value + ", " + begin + ", " + end;}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"value",
"+",
"\", \"",
"+",
"begin",
"+",
"\", \"",
"+",
"end",
";",
"}"
] |
public override string ToString(){return value + ", " + begin + ", " + end;}
|
train
| false
|
6,791
|
public String toString() {return "<StandardQueryParser config=\"" + this.getQueryConfigHandler()+ "\"/>";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"<StandardQueryParser config=\\\"\"",
"+",
"this",
".",
"getQueryConfigHandler",
"(",
")",
"+",
"\"\\\"/>\"",
";",
"}"
] |
public override string ToString(){return "<StandardQueryParser config=\"" + this.QueryConfigHandler+ "\"/>";}
|
train
| false
|
6,792
|
public DescribeActivitiesResult describeActivities(DescribeActivitiesRequest request) {request = beforeClientExecution(request);return executeDescribeActivities(request);}
|
[
"public",
"DescribeActivitiesResult",
"describeActivities",
"(",
"DescribeActivitiesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeActivities",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeActivitiesResponse DescribeActivities(DescribeActivitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeActivitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeActivitiesResponseUnmarshaller.Instance;return Invoke<DescribeActivitiesResponse>(request, options);}
|
train
| true
|
6,793
|
public int writeTokenValueBytes(LittleEndianOutput out) {out.writeByte(_nColumns-1);out.writeShort(_nRows-1);ConstantValueParser.encode(out, _arrayValues);return 3 + ConstantValueParser.getEncodedSize(_arrayValues);}
|
[
"public",
"int",
"writeTokenValueBytes",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeByte",
"(",
"_nColumns",
"-",
"1",
")",
";",
"out",
".",
"writeShort",
"(",
"_nRows",
"-",
"1",
")",
";",
"ConstantValueParser",
".",
"encode",
"(",
"out",
",",
"_arrayValues",
")",
";",
"return",
"3",
"+",
"ConstantValueParser",
".",
"getEncodedSize",
"(",
"_arrayValues",
")",
";",
"}"
] |
public int WriteTokenValueBytes(ILittleEndianOutput out1){out1.WriteByte(_nColumns - 1);out1.WriteShort(_nRows - 1);ConstantValueParser.Encode(out1, _arrayValues);return 3 + ConstantValueParser.GetEncodedSize(_arrayValues);}
|
train
| false
|
6,794
|
public DescribeFleetMetadataResult describeFleetMetadata(DescribeFleetMetadataRequest request) {request = beforeClientExecution(request);return executeDescribeFleetMetadata(request);}
|
[
"public",
"DescribeFleetMetadataResult",
"describeFleetMetadata",
"(",
"DescribeFleetMetadataRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeFleetMetadata",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeFleetMetadataResponse DescribeFleetMetadata(DescribeFleetMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetMetadataResponseUnmarshaller.Instance;return Invoke<DescribeFleetMetadataResponse>(request, options);}
|
train
| true
|
6,795
|
public GlobalCluster modifyGlobalCluster(ModifyGlobalClusterRequest request) {request = beforeClientExecution(request);return executeModifyGlobalCluster(request);}
|
[
"public",
"GlobalCluster",
"modifyGlobalCluster",
"(",
"ModifyGlobalClusterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyGlobalCluster",
"(",
"request",
")",
";",
"}"
] |
public virtual ModifyGlobalClusterResponse ModifyGlobalCluster(ModifyGlobalClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyGlobalClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyGlobalClusterResponseUnmarshaller.Instance;return Invoke<ModifyGlobalClusterResponse>(request, options);}
|
train
| true
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.