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 |
|---|---|---|---|---|---|
105
|
public UpdateObjectAttributesResult updateObjectAttributes(UpdateObjectAttributesRequest request) {request = beforeClientExecution(request);return executeUpdateObjectAttributes(request);}
|
[
"public",
"UpdateObjectAttributesResult",
"updateObjectAttributes",
"(",
"UpdateObjectAttributesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateObjectAttributes",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateObjectAttributesResponse UpdateObjectAttributes(UpdateObjectAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateObjectAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateObjectAttributesResponseUnmarshaller.Instance;return Invoke<UpdateObjectAttributesResponse>(request, options);}
|
train
| true
|
106
|
public GetGameSessionLogUrlResult getGameSessionLogUrl(GetGameSessionLogUrlRequest request) {request = beforeClientExecution(request);return executeGetGameSessionLogUrl(request);}
|
[
"public",
"GetGameSessionLogUrlResult",
"getGameSessionLogUrl",
"(",
"GetGameSessionLogUrlRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetGameSessionLogUrl",
"(",
"request",
")",
";",
"}"
] |
public virtual GetGameSessionLogUrlResponse GetGameSessionLogUrl(GetGameSessionLogUrlRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetGameSessionLogUrlRequestMarshaller.Instance;options.ResponseUnmarshaller = GetGameSessionLogUrlResponseUnmarshaller.Instance;return Invoke<GetGameSessionLogUrlResponse>(request, options);}
|
train
| true
|
107
|
public RefCount(T object) {this.object = object;}
|
[
"public",
"RefCount",
"(",
"T",
"object",
")",
"{",
"this",
".",
"object",
"=",
"object",
";",
"}"
] |
public RefCount(T @object){this.m_object = @object;}
|
train
| false
|
108
|
public ByteBuffer put(int index, byte b) {checkIndex(index);backingArray[offset + index] = b;return this;}
|
[
"public",
"ByteBuffer",
"put",
"(",
"int",
"index",
",",
"byte",
"b",
")",
"{",
"checkIndex",
"(",
"index",
")",
";",
"backingArray",
"[",
"offset",
"+",
"index",
"]",
"=",
"b",
";",
"return",
"this",
";",
"}"
] |
public override java.nio.ByteBuffer put(int index, byte b){checkIndex(index);backingArray[offset + index] = b;return this;}
|
train
| false
|
109
|
public IntervalSet LOOK(ATNState s, ATNState stopState, RuleContext ctx) {IntervalSet r = new IntervalSet();boolean seeThruPreds = true; PredictionContext lookContext = ctx != null ? PredictionContext.fromRuleContext(s.atn, ctx) : null;_LOOK(s, stopState, lookContext,r, new HashSet<ATNConfig>(), new BitSet(), seeThruPreds, true);return r;}
|
[
"public",
"IntervalSet",
"LOOK",
"(",
"ATNState",
"s",
",",
"ATNState",
"stopState",
",",
"RuleContext",
"ctx",
")",
"{",
"IntervalSet",
"r",
"=",
"new",
"IntervalSet",
"(",
")",
";",
"boolean",
"seeThruPreds",
"=",
"true",
";",
"PredictionContext",
"lookContext",
"=",
"ctx",
"!=",
"null",
"?",
"PredictionContext",
".",
"fromRuleContext",
"(",
"s",
".",
"atn",
",",
"ctx",
")",
":",
"null",
";",
"_LOOK",
"(",
"s",
",",
"stopState",
",",
"lookContext",
",",
"r",
",",
"new",
"HashSet",
"<",
"ATNConfig",
">",
"(",
")",
",",
"new",
"BitSet",
"(",
")",
",",
"seeThruPreds",
",",
"true",
")",
";",
"return",
"r",
";",
"}"
] |
public virtual IntervalSet Look(ATNState s, ATNState stopState, RuleContext ctx){IntervalSet r = new IntervalSet();bool seeThruPreds = true;PredictionContext lookContext = ctx != null ? PredictionContext.FromRuleContext(s.atn, ctx) : null;Look(s, stopState, lookContext, r, new HashSet<ATNConfig>(), new BitSet(), seeThruPreds, true);return r;}
|
train
| false
|
110
|
public int getValidationType() {return _validationType;}
|
[
"public",
"int",
"getValidationType",
"(",
")",
"{",
"return",
"_validationType",
";",
"}"
] |
public int GetValidationType(){return _validationType;}
|
train
| false
|
111
|
public DeleteTagCommand tagDelete() {return new DeleteTagCommand(repo);}
|
[
"public",
"DeleteTagCommand",
"tagDelete",
"(",
")",
"{",
"return",
"new",
"DeleteTagCommand",
"(",
"repo",
")",
";",
"}"
] |
public virtual DeleteTagCommand TagDelete(){return new DeleteTagCommand(repo);}
|
train
| false
|
112
|
public SortRescorer(Sort sort) {this.sort = sort;}
|
[
"public",
"SortRescorer",
"(",
"Sort",
"sort",
")",
"{",
"this",
".",
"sort",
"=",
"sort",
";",
"}"
] |
public SortRescorer(Sort sort){this.sort = sort;}
|
train
| false
|
113
|
public void verifyBelongsToWorkbook(HSSFWorkbook wb) {if(wb.getWorkbook() != _workbook) {throw new IllegalArgumentException("This Style does not belong to the supplied Workbook. Are you trying to assign a style from one workbook to the cell of a differnt workbook?");}}
|
[
"public",
"void",
"verifyBelongsToWorkbook",
"(",
"HSSFWorkbook",
"wb",
")",
"{",
"if",
"(",
"wb",
".",
"getWorkbook",
"(",
")",
"!=",
"_workbook",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"This Style does not belong to the supplied Workbook. Are you trying to assign a style from one workbook to the cell of a differnt workbook?\"",
")",
";",
"}",
"}"
] |
public void VerifyBelongsToWorkbook(HSSFWorkbook wb){if (wb.Workbook != _workbook){throw new ArgumentException("This Style does not belong to the supplied Workbook. Are you trying to assign a style from one workbook to the cell of a differnt workbook?");}}
|
train
| false
|
114
|
public StringBuffer insert(int index, Object obj) {return insert(index, obj == null ? "null" : obj.toString());}
|
[
"public",
"StringBuffer",
"insert",
"(",
"int",
"index",
",",
"Object",
"obj",
")",
"{",
"return",
"insert",
"(",
"index",
",",
"obj",
"==",
"null",
"?",
"\"null\"",
":",
"obj",
".",
"toString",
"(",
")",
")",
";",
"}"
] |
public java.lang.StringBuffer insert(int index, object obj){return insert(index, obj == null ? "null" : obj.ToString());}
|
train
| false
|
115
|
public boolean containsKey(CharSequence cs) {if(cs == null)throw new NullPointerException();return false;}
|
[
"public",
"boolean",
"containsKey",
"(",
"CharSequence",
"cs",
")",
"{",
"if",
"(",
"cs",
"==",
"null",
")",
"throw",
"new",
"NullPointerException",
"(",
")",
";",
"return",
"false",
";",
"}"
] |
public override bool ContainsKey(ICharSequence text){if (text == null){throw new ArgumentNullException("text");}return false;}
|
train
| false
|
116
|
public int compareTo(HSSFRichTextString r) {return _string.compareTo(r._string);}
|
[
"public",
"int",
"compareTo",
"(",
"HSSFRichTextString",
"r",
")",
"{",
"return",
"_string",
".",
"compareTo",
"(",
"r",
".",
"_string",
")",
";",
"}"
] |
public int CompareTo(HSSFRichTextString other){return _string.CompareTo(other._string);}
|
train
| false
|
117
|
public RequestSpotInstancesRequest(String spotPrice) {setSpotPrice(spotPrice);}
|
[
"public",
"RequestSpotInstancesRequest",
"(",
"String",
"spotPrice",
")",
"{",
"setSpotPrice",
"(",
"spotPrice",
")",
";",
"}"
] |
public RequestSpotInstancesRequest(string spotPrice){_spotPrice = spotPrice;}
|
train
| false
|
118
|
public ObjectId getNewObjectId() {return newObjectId;}
|
[
"public",
"ObjectId",
"getNewObjectId",
"(",
")",
"{",
"return",
"newObjectId",
";",
"}"
] |
public virtual ObjectId GetNewObjectId(){return newObjectId;}
|
train
| false
|
119
|
public void setDeltaBaseAsOffset(boolean deltaBaseAsOffset) {this.deltaBaseAsOffset = deltaBaseAsOffset;}
|
[
"public",
"void",
"setDeltaBaseAsOffset",
"(",
"boolean",
"deltaBaseAsOffset",
")",
"{",
"this",
".",
"deltaBaseAsOffset",
"=",
"deltaBaseAsOffset",
";",
"}"
] |
public virtual void SetDeltaBaseAsOffset(bool deltaBaseAsOffset){this.deltaBaseAsOffset = deltaBaseAsOffset;}
|
train
| false
|
121
|
public TruncateTokenFilter(TokenStream input, int length) {super(input);if (length < 1)throw new IllegalArgumentException("length parameter must be a positive number: " + length);this.length = length;}
|
[
"public",
"TruncateTokenFilter",
"(",
"TokenStream",
"input",
",",
"int",
"length",
")",
"{",
"super",
"(",
"input",
")",
";",
"if",
"(",
"length",
"<",
"1",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"length parameter must be a positive number: \"",
"+",
"length",
")",
";",
"this",
".",
"length",
"=",
"length",
";",
"}"
] |
public TruncateTokenFilter(TokenStream input, int length): base(input){if (length < 1){throw new System.ArgumentOutOfRangeException("length parameter must be a positive number: " + length);}this.length = length;this.termAttribute = AddAttribute<ICharTermAttribute>();this.keywordAttr = AddAttribute<IKeywordAttribute>();}
|
train
| false
|
122
|
public ListDomainsResult listDomains() {return listDomains(new ListDomainsRequest());}
|
[
"public",
"ListDomainsResult",
"listDomains",
"(",
")",
"{",
"return",
"listDomains",
"(",
"new",
"ListDomainsRequest",
"(",
")",
")",
";",
"}"
] |
public virtual ListDomainsResponse ListDomains(){return ListDomains(new ListDomainsRequest());}
|
train
| false
|
123
|
public ArabicStemFilter create(TokenStream input) {return new ArabicStemFilter(input);}
|
[
"public",
"ArabicStemFilter",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"ArabicStemFilter",
"(",
"input",
")",
";",
"}"
] |
public override TokenStream Create(TokenStream input){return new ArabicStemFilter(input);}
|
train
| false
|
125
|
public BlameGenerator setDiffAlgorithm(DiffAlgorithm algorithm) {diffAlgorithm = algorithm;return this;}
|
[
"public",
"BlameGenerator",
"setDiffAlgorithm",
"(",
"DiffAlgorithm",
"algorithm",
")",
"{",
"diffAlgorithm",
"=",
"algorithm",
";",
"return",
"this",
";",
"}"
] |
public virtual NGit.Blame.BlameGenerator SetDiffAlgorithm(DiffAlgorithm algorithm){diffAlgorithm = algorithm;return this;}
|
train
| false
|
126
|
public GroupingSearch setIncludeMaxScore(boolean includeMaxScore) {this.includeMaxScore = includeMaxScore;return this;}
|
[
"public",
"GroupingSearch",
"setIncludeMaxScore",
"(",
"boolean",
"includeMaxScore",
")",
"{",
"this",
".",
"includeMaxScore",
"=",
"includeMaxScore",
";",
"return",
"this",
";",
"}"
] |
public virtual GroupingSearch SetIncludeMaxScore(bool includeMaxScore){this.includeMaxScore = includeMaxScore;return this;}
|
train
| false
|
127
|
public Field[] createIndexableFields(Shape shape) {double distErr = SpatialArgs.calcDistanceFromErrPct(shape, distErrPct, ctx);return createIndexableFields(shape, distErr);}
|
[
"public",
"Field",
"[",
"]",
"createIndexableFields",
"(",
"Shape",
"shape",
")",
"{",
"double",
"distErr",
"=",
"SpatialArgs",
".",
"calcDistanceFromErrPct",
"(",
"shape",
",",
"distErrPct",
",",
"ctx",
")",
";",
"return",
"createIndexableFields",
"(",
"shape",
",",
"distErr",
")",
";",
"}"
] |
public override Field[] CreateIndexableFields(IShape shape){double distErr = SpatialArgs.CalcDistanceFromErrPct(shape, m_distErrPct, m_ctx);return CreateIndexableFields(shape, distErr);}
|
train
| false
|
128
|
public PutMethodResponseResult putMethodResponse(PutMethodResponseRequest request) {request = beforeClientExecution(request);return executePutMethodResponse(request);}
|
[
"public",
"PutMethodResponseResult",
"putMethodResponse",
"(",
"PutMethodResponseRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutMethodResponse",
"(",
"request",
")",
";",
"}"
] |
public virtual PutMethodResponseResponse PutMethodResponse(PutMethodResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutMethodResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = PutMethodResponseResponseUnmarshaller.Instance;return Invoke<PutMethodResponseResponse>(request, options);}
|
train
| true
|
129
|
public LegacyCredentials(Credential legacyCrendential) {this.legacyCredential = legacyCrendential;}
|
[
"public",
"LegacyCredentials",
"(",
"Credential",
"legacyCrendential",
")",
"{",
"this",
".",
"legacyCredential",
"=",
"legacyCrendential",
";",
"}"
] |
public LegacyCredentials(Credential legacyCredential){this.legacyCredential = legacyCredential;}
|
train
| false
|
130
|
public DescribeFeatureTransformationResult describeFeatureTransformation(DescribeFeatureTransformationRequest request) {request = beforeClientExecution(request);return executeDescribeFeatureTransformation(request);}
|
[
"public",
"DescribeFeatureTransformationResult",
"describeFeatureTransformation",
"(",
"DescribeFeatureTransformationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeFeatureTransformation",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeFeatureTransformationResponse DescribeFeatureTransformation(DescribeFeatureTransformationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFeatureTransformationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFeatureTransformationResponseUnmarshaller.Instance;return Invoke<DescribeFeatureTransformationResponse>(request, options);}
|
train
| false
|
131
|
public DeleteRouteResult deleteRoute(DeleteRouteRequest request) {request = beforeClientExecution(request);return executeDeleteRoute(request);}
|
[
"public",
"DeleteRouteResult",
"deleteRoute",
"(",
"DeleteRouteRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteRoute",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteRouteResponse DeleteRoute(DeleteRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRouteResponseUnmarshaller.Instance;return Invoke<DeleteRouteResponse>(request, options);}
|
train
| true
|
132
|
public AssociatePhoneNumbersWithVoiceConnectorResult associatePhoneNumbersWithVoiceConnector(AssociatePhoneNumbersWithVoiceConnectorRequest request) {request = beforeClientExecution(request);return executeAssociatePhoneNumbersWithVoiceConnector(request);}
|
[
"public",
"AssociatePhoneNumbersWithVoiceConnectorResult",
"associatePhoneNumbersWithVoiceConnector",
"(",
"AssociatePhoneNumbersWithVoiceConnectorRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociatePhoneNumbersWithVoiceConnector",
"(",
"request",
")",
";",
"}"
] |
public virtual AssociatePhoneNumbersWithVoiceConnectorResponse AssociatePhoneNumbersWithVoiceConnector(AssociatePhoneNumbersWithVoiceConnectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociatePhoneNumbersWithVoiceConnectorRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociatePhoneNumbersWithVoiceConnectorResponseUnmarshaller.Instance;return Invoke<AssociatePhoneNumbersWithVoiceConnectorResponse>(request, options);}
|
train
| true
|
134
|
public short readShort(){return _in.readShort();}
|
[
"public",
"short",
"readShort",
"(",
")",
"{",
"return",
"_in",
".",
"readShort",
"(",
")",
";",
"}"
] |
public short ReadShort(){return _in.ReadShort();}
|
train
| false
|
135
|
public UpdatePipelineNotificationsResult updatePipelineNotifications(UpdatePipelineNotificationsRequest request) {request = beforeClientExecution(request);return executeUpdatePipelineNotifications(request);}
|
[
"public",
"UpdatePipelineNotificationsResult",
"updatePipelineNotifications",
"(",
"UpdatePipelineNotificationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdatePipelineNotifications",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdatePipelineNotificationsResponse UpdatePipelineNotifications(UpdatePipelineNotificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePipelineNotificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePipelineNotificationsResponseUnmarshaller.Instance;return Invoke<UpdatePipelineNotificationsResponse>(request, options);}
|
train
| true
|
136
|
public StringWriter append(char c) {write(c);return this;}
|
[
"public",
"StringWriter",
"append",
"(",
"char",
"c",
")",
"{",
"write",
"(",
"c",
")",
";",
"return",
"this",
";",
"}"
] |
public override java.io.Writer append(char c){write(c);return this;}
|
train
| false
|
137
|
public Iterator<V> iterator() {return new ValueIterator();}
|
[
"public",
"Iterator",
"<",
"V",
">",
"iterator",
"(",
")",
"{",
"return",
"new",
"ValueIterator",
"(",
")",
";",
"}"
] |
public override java.util.Iterator<V> iterator(){return new java.util.Hashtable<K, V>.ValueIterator(this._enclosing);}
|
train
| false
|
138
|
public UnitsRecord(RecordInputStream in) {field_1_units = in.readShort();}
|
[
"public",
"UnitsRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_units",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"}"
] |
public UnitsRecord(RecordInputStream in1){field_1_units = in1.ReadShort();}
|
train
| false
|
139
|
public boolean isEmpty() {return first;}
|
[
"public",
"boolean",
"isEmpty",
"(",
")",
"{",
"return",
"first",
";",
"}"
] |
public virtual bool IsEmpty(){return first;}
|
train
| false
|
140
|
public String toString() {return "ANY_DIFF"; }
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"ANY_DIFF\"",
";",
"}"
] |
public override string ToString(){return "ANY_DIFF";}
|
train
| false
|
141
|
public UpdateDomainNameResult updateDomainName(UpdateDomainNameRequest request) {request = beforeClientExecution(request);return executeUpdateDomainName(request);}
|
[
"public",
"UpdateDomainNameResult",
"updateDomainName",
"(",
"UpdateDomainNameRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateDomainName",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateDomainNameResponse UpdateDomainName(UpdateDomainNameRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDomainNameRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDomainNameResponseUnmarshaller.Instance;return Invoke<UpdateDomainNameResponse>(request, options);}
|
train
| true
|
142
|
public DeleteSnapshotRequest(String snapshotId) {setSnapshotId(snapshotId);}
|
[
"public",
"DeleteSnapshotRequest",
"(",
"String",
"snapshotId",
")",
"{",
"setSnapshotId",
"(",
"snapshotId",
")",
";",
"}"
] |
public DeleteSnapshotRequest(string snapshotId){_snapshotId = snapshotId;}
|
train
| false
|
144
|
public SliceReader(IntBlockPool pool) {this.pool = pool;}
|
[
"public",
"SliceReader",
"(",
"IntBlockPool",
"pool",
")",
"{",
"this",
".",
"pool",
"=",
"pool",
";",
"}"
] |
public SliceReader(Int32BlockPool pool){this.pool = pool;}
|
train
| false
|
145
|
public void setDeltaSearchMemoryLimit(long memoryLimit) {deltaSearchMemoryLimit = memoryLimit;}
|
[
"public",
"void",
"setDeltaSearchMemoryLimit",
"(",
"long",
"memoryLimit",
")",
"{",
"deltaSearchMemoryLimit",
"=",
"memoryLimit",
";",
"}"
] |
public virtual void SetDeltaSearchMemoryLimit(long memoryLimit){deltaSearchMemoryLimit = memoryLimit;}
|
train
| false
|
146
|
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[BOOKBOOL]\n");buffer.append(" .savelinkvalues = ").append(Integer.toHexString(getSaveLinkValues())).append("\n");buffer.append("[/BOOKBOOL]\n");return buffer.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[BOOKBOOL]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .savelinkvalues = \"",
")",
".",
"append",
"(",
"Integer",
".",
"toHexString",
"(",
"getSaveLinkValues",
"(",
")",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\"[/BOOKBOOL]\\n\"",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] |
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[BOOKBOOL]\n");buffer.Append(" .savelinkvalues = ").Append(StringUtil.ToHexString(SaveLinkValues)).Append("\n");buffer.Append("[/BOOKBOOL]\n");return buffer.ToString();}
|
train
| false
|
147
|
public DescribeTransitGatewayAttachmentsResult describeTransitGatewayAttachments(DescribeTransitGatewayAttachmentsRequest request) {request = beforeClientExecution(request);return executeDescribeTransitGatewayAttachments(request);}
|
[
"public",
"DescribeTransitGatewayAttachmentsResult",
"describeTransitGatewayAttachments",
"(",
"DescribeTransitGatewayAttachmentsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeTransitGatewayAttachments",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeTransitGatewayAttachmentsResponse DescribeTransitGatewayAttachments(DescribeTransitGatewayAttachmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTransitGatewayAttachmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTransitGatewayAttachmentsResponseUnmarshaller.Instance;return Invoke<DescribeTransitGatewayAttachmentsResponse>(request, options);}
|
train
| true
|
148
|
public CreateVpcResult createVpc(CreateVpcRequest request) {request = beforeClientExecution(request);return executeCreateVpc(request);}
|
[
"public",
"CreateVpcResult",
"createVpc",
"(",
"CreateVpcRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateVpc",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateVpcResponse CreateVpc(CreateVpcRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpcRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVpcResponseUnmarshaller.Instance;return Invoke<CreateVpcResponse>(request, options);}
|
train
| true
|
149
|
public DescribeElasticGpusResult describeElasticGpus(DescribeElasticGpusRequest request) {request = beforeClientExecution(request);return executeDescribeElasticGpus(request);}
|
[
"public",
"DescribeElasticGpusResult",
"describeElasticGpus",
"(",
"DescribeElasticGpusRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeElasticGpus",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeElasticGpusResponse DescribeElasticGpus(DescribeElasticGpusRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeElasticGpusRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeElasticGpusResponseUnmarshaller.Instance;return Invoke<DescribeElasticGpusResponse>(request, options);}
|
train
| true
|
150
|
public IntBuffer put(int c) {if (position == limit) {throw new BufferOverflowException();}byteBuffer.putInt(position++ * SizeOf.INT, c);return this;}
|
[
"public",
"IntBuffer",
"put",
"(",
"int",
"c",
")",
"{",
"if",
"(",
"position",
"==",
"limit",
")",
"{",
"throw",
"new",
"BufferOverflowException",
"(",
")",
";",
"}",
"byteBuffer",
".",
"putInt",
"(",
"position",
"++",
"*",
"SizeOf",
".",
"INT",
",",
"c",
")",
";",
"return",
"this",
";",
"}"
] |
public override java.nio.IntBuffer put(int c){if (_position == _limit){throw new java.nio.BufferOverflowException();}byteBuffer.putInt(_position++ * libcore.io.SizeOf.INT, c);return this;}
|
train
| false
|
151
|
public UpdateEndpointsBatchResult updateEndpointsBatch(UpdateEndpointsBatchRequest request) {request = beforeClientExecution(request);return executeUpdateEndpointsBatch(request);}
|
[
"public",
"UpdateEndpointsBatchResult",
"updateEndpointsBatch",
"(",
"UpdateEndpointsBatchRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateEndpointsBatch",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateEndpointsBatchResponse UpdateEndpointsBatch(UpdateEndpointsBatchRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEndpointsBatchRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEndpointsBatchResponseUnmarshaller.Instance;return Invoke<UpdateEndpointsBatchResponse>(request, options);}
|
train
| true
|
152
|
public void fromRaw(byte[] bs, int p) {w1 = NB.decodeInt32(bs, p);w2 = NB.decodeInt32(bs, p + 4);w3 = NB.decodeInt32(bs, p + 8);w4 = NB.decodeInt32(bs, p + 12);w5 = NB.decodeInt32(bs, p + 16);}
|
[
"public",
"void",
"fromRaw",
"(",
"byte",
"[",
"]",
"bs",
",",
"int",
"p",
")",
"{",
"w1",
"=",
"NB",
".",
"decodeInt32",
"(",
"bs",
",",
"p",
")",
";",
"w2",
"=",
"NB",
".",
"decodeInt32",
"(",
"bs",
",",
"p",
"+",
"4",
")",
";",
"w3",
"=",
"NB",
".",
"decodeInt32",
"(",
"bs",
",",
"p",
"+",
"8",
")",
";",
"w4",
"=",
"NB",
".",
"decodeInt32",
"(",
"bs",
",",
"p",
"+",
"12",
")",
";",
"w5",
"=",
"NB",
".",
"decodeInt32",
"(",
"bs",
",",
"p",
"+",
"16",
")",
";",
"}"
] |
public virtual void FromRaw(byte[] bs, int p){w1 = NB.DecodeInt32(bs, p);w2 = NB.DecodeInt32(bs, p + 4);w3 = NB.DecodeInt32(bs, p + 8);w4 = NB.DecodeInt32(bs, p + 12);w5 = NB.DecodeInt32(bs, p + 16);}
|
train
| false
|
153
|
public static OpenSshConfig get(FS fs) {File home = fs.userHome();if (home == null)home = new File(".").getAbsoluteFile(); final File config = new File(new File(home, SshConstants.SSH_DIR),SshConstants.CONFIG);return new OpenSshConfig(home, config);}
|
[
"public",
"static",
"OpenSshConfig",
"get",
"(",
"FS",
"fs",
")",
"{",
"File",
"home",
"=",
"fs",
".",
"userHome",
"(",
")",
";",
"if",
"(",
"home",
"==",
"null",
")",
"home",
"=",
"new",
"File",
"(",
"\".\"",
")",
".",
"getAbsoluteFile",
"(",
")",
";",
"final",
"File",
"config",
"=",
"new",
"File",
"(",
"new",
"File",
"(",
"home",
",",
"SshConstants",
".",
"SSH_DIR",
")",
",",
"SshConstants",
".",
"CONFIG",
")",
";",
"return",
"new",
"OpenSshConfig",
"(",
"home",
",",
"config",
")",
";",
"}"
] |
public static NGit.Transport.OpenSshConfig Get(FS fs){FilePath home = fs.UserHome();if (home == null){home = new FilePath(".").GetAbsoluteFile();}FilePath config = new FilePath(new FilePath(home, ".ssh"), Constants.CONFIG);NGit.Transport.OpenSshConfig osc = new NGit.Transport.OpenSshConfig(home, config);osc.Refresh();return osc;}
|
train
| false
|
154
|
public VCenterRecord(RecordInputStream in) {field_1_vcenter = in.readShort();}
|
[
"public",
"VCenterRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_vcenter",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"}"
] |
public VCenterRecord(RecordInputStream in1){field_1_vcenter = in1.ReadShort();}
|
train
| false
|
155
|
public synchronized InputStream obtainFile(String sessionID, String source, String fileName) throws IOException {ensureOpen();ReplicationSession session = sessions.get(sessionID);if (session != null && session.isExpired(expirationThresholdMilllis)) {releaseSession(sessionID);session = null;}if (session == null) {throw new SessionExpiredException("session (" + sessionID + ") expired while obtaining file: source=" + source+ " file=" + fileName);}sessions.get(sessionID).markAccessed();return session.revision.revision.open(source, fileName);}
|
[
"public",
"synchronized",
"InputStream",
"obtainFile",
"(",
"String",
"sessionID",
",",
"String",
"source",
",",
"String",
"fileName",
")",
"throws",
"IOException",
"{",
"ensureOpen",
"(",
")",
";",
"ReplicationSession",
"session",
"=",
"sessions",
".",
"get",
"(",
"sessionID",
")",
";",
"if",
"(",
"session",
"!=",
"null",
"&&",
"session",
".",
"isExpired",
"(",
"expirationThresholdMilllis",
")",
")",
"{",
"releaseSession",
"(",
"sessionID",
")",
";",
"session",
"=",
"null",
";",
"}",
"if",
"(",
"session",
"==",
"null",
")",
"{",
"throw",
"new",
"SessionExpiredException",
"(",
"\"session (\"",
"+",
"sessionID",
"+",
"\") expired while obtaining file: source=\"",
"+",
"source",
"+",
"\" file=\"",
"+",
"fileName",
")",
";",
"}",
"sessions",
".",
"get",
"(",
"sessionID",
")",
".",
"markAccessed",
"(",
")",
";",
"return",
"session",
".",
"revision",
".",
"revision",
".",
"open",
"(",
"source",
",",
"fileName",
")",
";",
"}"
] |
public virtual Stream ObtainFile(string sessionId, string source, string fileName){lock (padlock){EnsureOpen();ReplicationSession session;if (sessions.TryGetValue(sessionId, out session) && session != null && session.IsExpired(ExpirationThreshold)){ReleaseSession(sessionId);session = null;}if (session == null){throw new SessionExpiredException(string.Format("session ({0}) expired while obtaining file: source={1} file={2}", sessionId, source, fileName));}sessions[sessionId].MarkAccessed();return session.Revision.Revision.Open(source, fileName);}}
|
train
| false
|
156
|
public DownloadDefaultKeyPairResult downloadDefaultKeyPair(DownloadDefaultKeyPairRequest request) {request = beforeClientExecution(request);return executeDownloadDefaultKeyPair(request);}
|
[
"public",
"DownloadDefaultKeyPairResult",
"downloadDefaultKeyPair",
"(",
"DownloadDefaultKeyPairRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDownloadDefaultKeyPair",
"(",
"request",
")",
";",
"}"
] |
public virtual DownloadDefaultKeyPairResponse DownloadDefaultKeyPair(DownloadDefaultKeyPairRequest request){var options = new InvokeOptions();options.RequestMarshaller = DownloadDefaultKeyPairRequestMarshaller.Instance;options.ResponseUnmarshaller = DownloadDefaultKeyPairResponseUnmarshaller.Instance;return Invoke<DownloadDefaultKeyPairResponse>(request, options);}
|
train
| true
|
157
|
public DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest request) {request = beforeClientExecution(request);return executeDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(request);}
|
[
"public",
"DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult",
"describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations",
"(",
"DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResponse DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResponseUnmarshaller.Instance;return Invoke<DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResponse>(request, options);}
|
train
| false
|
158
|
public ResetEbsDefaultKmsKeyIdResult resetEbsDefaultKmsKeyId(ResetEbsDefaultKmsKeyIdRequest request) {request = beforeClientExecution(request);return executeResetEbsDefaultKmsKeyId(request);}
|
[
"public",
"ResetEbsDefaultKmsKeyIdResult",
"resetEbsDefaultKmsKeyId",
"(",
"ResetEbsDefaultKmsKeyIdRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeResetEbsDefaultKmsKeyId",
"(",
"request",
")",
";",
"}"
] |
public virtual ResetEbsDefaultKmsKeyIdResponse ResetEbsDefaultKmsKeyId(ResetEbsDefaultKmsKeyIdRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetEbsDefaultKmsKeyIdRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetEbsDefaultKmsKeyIdResponseUnmarshaller.Instance;return Invoke<ResetEbsDefaultKmsKeyIdResponse>(request, options);}
|
train
| false
|
159
|
public int getPropertiesPerBlock() {return bigBlockSize / POIFSConstants.PROPERTY_SIZE;}
|
[
"public",
"int",
"getPropertiesPerBlock",
"(",
")",
"{",
"return",
"bigBlockSize",
"/",
"POIFSConstants",
".",
"PROPERTY_SIZE",
";",
"}"
] |
public int GetPropertiesPerBlock(){return bigBlockSize / POIFSConstants.PROPERTY_SIZE;}
|
train
| false
|
160
|
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE) {return this.evaluate(srcRowIndex, srcColumnIndex, numberVE, null);}
|
[
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"numberVE",
")",
"{",
"return",
"this",
".",
"evaluate",
"(",
"srcRowIndex",
",",
"srcColumnIndex",
",",
"numberVE",
",",
"null",
")",
";",
"}"
] |
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE){return this.Evaluate(srcRowIndex, srcColumnIndex, numberVE, null);}
|
train
| false
|
161
|
public GetFindingsStatisticsResult getFindingsStatistics(GetFindingsStatisticsRequest request) {request = beforeClientExecution(request);return executeGetFindingsStatistics(request);}
|
[
"public",
"GetFindingsStatisticsResult",
"getFindingsStatistics",
"(",
"GetFindingsStatisticsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetFindingsStatistics",
"(",
"request",
")",
";",
"}"
] |
public virtual GetFindingsStatisticsResponse GetFindingsStatistics(GetFindingsStatisticsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFindingsStatisticsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFindingsStatisticsResponseUnmarshaller.Instance;return Invoke<GetFindingsStatisticsResponse>(request, options);}
|
train
| true
|
162
|
public DBCluster modifyDBCluster(ModifyDBClusterRequest request) {request = beforeClientExecution(request);return executeModifyDBCluster(request);}
|
[
"public",
"DBCluster",
"modifyDBCluster",
"(",
"ModifyDBClusterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyDBCluster",
"(",
"request",
")",
";",
"}"
] |
public virtual ModifyDBClusterResponse ModifyDBCluster(ModifyDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBClusterResponseUnmarshaller.Instance;return Invoke<ModifyDBClusterResponse>(request, options);}
|
train
| true
|
163
|
public LimitTokenCountFilterFactory(Map<String, String> args) {super(args);maxTokenCount = requireInt(args, MAX_TOKEN_COUNT_KEY);consumeAllTokens = getBoolean(args, CONSUME_ALL_TOKENS_KEY, false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
|
[
"public",
"LimitTokenCountFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"maxTokenCount",
"=",
"requireInt",
"(",
"args",
",",
"MAX_TOKEN_COUNT_KEY",
")",
";",
"consumeAllTokens",
"=",
"getBoolean",
"(",
"args",
",",
"CONSUME_ALL_TOKENS_KEY",
",",
"false",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] |
public LimitTokenCountFilterFactory(IDictionary<string, string> args): base(args){maxTokenCount = RequireInt32(args, MAX_TOKEN_COUNT_KEY);consumeAllTokens = GetBoolean(args, CONSUME_ALL_TOKENS_KEY, false);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
train
| false
|
164
|
public MatchNoDocsQuery build(QueryNode queryNode) throws QueryNodeException {if (!(queryNode instanceof MatchNoDocsQueryNode)) {throw new QueryNodeException(new MessageImpl(QueryParserMessages.LUCENE_QUERY_CONVERSION_ERROR, queryNode.toQueryString(new EscapeQuerySyntaxImpl()), queryNode.getClass().getName()));}return new MatchNoDocsQuery();}
|
[
"public",
"MatchNoDocsQuery",
"build",
"(",
"QueryNode",
"queryNode",
")",
"throws",
"QueryNodeException",
"{",
"if",
"(",
"!",
"(",
"queryNode",
"instanceof",
"MatchNoDocsQueryNode",
")",
")",
"{",
"throw",
"new",
"QueryNodeException",
"(",
"new",
"MessageImpl",
"(",
"QueryParserMessages",
".",
"LUCENE_QUERY_CONVERSION_ERROR",
",",
"queryNode",
".",
"toQueryString",
"(",
"new",
"EscapeQuerySyntaxImpl",
"(",
")",
")",
",",
"queryNode",
".",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
")",
")",
";",
"}",
"return",
"new",
"MatchNoDocsQuery",
"(",
")",
";",
"}"
] |
public virtual Query Build(IQueryNode queryNode){if (!(queryNode is MatchNoDocsQueryNode)){throw new QueryNodeException(new Message(QueryParserMessages.LUCENE_QUERY_CONVERSION_ERROR, queryNode.ToQueryString(new EscapeQuerySyntax()), queryNode.GetType().Name));}return new BooleanQuery();}
|
train
| false
|
165
|
public GetUserPolicyRequest(String userName, String policyName) {setUserName(userName);setPolicyName(policyName);}
|
[
"public",
"GetUserPolicyRequest",
"(",
"String",
"userName",
",",
"String",
"policyName",
")",
"{",
"setUserName",
"(",
"userName",
")",
";",
"setPolicyName",
"(",
"policyName",
")",
";",
"}"
] |
public GetUserPolicyRequest(string userName, string policyName){_userName = userName;_policyName = policyName;}
|
train
| false
|
166
|
public Cluster rotateEncryptionKey(RotateEncryptionKeyRequest request) {request = beforeClientExecution(request);return executeRotateEncryptionKey(request);}
|
[
"public",
"Cluster",
"rotateEncryptionKey",
"(",
"RotateEncryptionKeyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRotateEncryptionKey",
"(",
"request",
")",
";",
"}"
] |
public virtual RotateEncryptionKeyResponse RotateEncryptionKey(RotateEncryptionKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = RotateEncryptionKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = RotateEncryptionKeyResponseUnmarshaller.Instance;return Invoke<RotateEncryptionKeyResponse>(request, options);}
|
train
| true
|
167
|
public int getLinesAdded() {return nAdded;}
|
[
"public",
"int",
"getLinesAdded",
"(",
")",
"{",
"return",
"nAdded",
";",
"}"
] |
public virtual int GetLinesAdded(){return nAdded;}
|
train
| false
|
168
|
public List<Token> getHiddenTokensToLeft(int tokenIndex, int channel) {lazyInit();if ( tokenIndex<0 || tokenIndex>=tokens.size() ) {throw new IndexOutOfBoundsException(tokenIndex+" not in 0.."+(tokens.size()-1));}if (tokenIndex == 0) {return null;}int prevOnChannel =previousTokenOnChannel(tokenIndex - 1, Lexer.DEFAULT_TOKEN_CHANNEL);if ( prevOnChannel == tokenIndex - 1 ) return null;int from = prevOnChannel+1;int to = tokenIndex-1;return filterForChannel(from, to, channel);}
|
[
"public",
"List",
"<",
"Token",
">",
"getHiddenTokensToLeft",
"(",
"int",
"tokenIndex",
",",
"int",
"channel",
")",
"{",
"lazyInit",
"(",
")",
";",
"if",
"(",
"tokenIndex",
"<",
"0",
"||",
"tokenIndex",
">=",
"tokens",
".",
"size",
"(",
")",
")",
"{",
"throw",
"new",
"IndexOutOfBoundsException",
"(",
"tokenIndex",
"+",
"\" not in 0..\"",
"+",
"(",
"tokens",
".",
"size",
"(",
")",
"-",
"1",
")",
")",
";",
"}",
"if",
"(",
"tokenIndex",
"==",
"0",
")",
"{",
"return",
"null",
";",
"}",
"int",
"prevOnChannel",
"=",
"previousTokenOnChannel",
"(",
"tokenIndex",
"-",
"1",
",",
"Lexer",
".",
"DEFAULT_TOKEN_CHANNEL",
")",
";",
"if",
"(",
"prevOnChannel",
"==",
"tokenIndex",
"-",
"1",
")",
"return",
"null",
";",
"int",
"from",
"=",
"prevOnChannel",
"+",
"1",
";",
"int",
"to",
"=",
"tokenIndex",
"-",
"1",
";",
"return",
"filterForChannel",
"(",
"from",
",",
"to",
",",
"channel",
")",
";",
"}"
] |
public virtual IList<IToken> GetHiddenTokensToLeft(int tokenIndex, int channel){LazyInit();if (tokenIndex < 0 || tokenIndex >= tokens.Count){throw new ArgumentOutOfRangeException(tokenIndex + " not in 0.." + (tokens.Count - 1));}if (tokenIndex == 0){return null;}int prevOnChannel = PreviousTokenOnChannel(tokenIndex - 1, Lexer.DefaultTokenChannel);if (prevOnChannel == tokenIndex - 1){return null;}int from = prevOnChannel + 1;int to = tokenIndex - 1;return FilterForChannel(from, to, channel);}
|
train
| false
|
169
|
public ValidDBInstanceModificationsMessage describeValidDBInstanceModifications(DescribeValidDBInstanceModificationsRequest request) {request = beforeClientExecution(request);return executeDescribeValidDBInstanceModifications(request);}
|
[
"public",
"ValidDBInstanceModificationsMessage",
"describeValidDBInstanceModifications",
"(",
"DescribeValidDBInstanceModificationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeValidDBInstanceModifications",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeValidDBInstanceModificationsResponse DescribeValidDBInstanceModifications(DescribeValidDBInstanceModificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeValidDBInstanceModificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeValidDBInstanceModificationsResponseUnmarshaller.Instance;return Invoke<DescribeValidDBInstanceModificationsResponse>(request, options);}
|
train
| true
|
170
|
public final void add(RevFlag flag) {flags |= flag.mask;}
|
[
"public",
"final",
"void",
"add",
"(",
"RevFlag",
"flag",
")",
"{",
"flags",
"|=",
"flag",
".",
"mask",
";",
"}"
] |
public void Add(RevFlag flag){flags |= flag.mask;}
|
train
| false
|
171
|
public void clear() {Iterator<E> it = iterator();while (it.hasNext()) {it.next();it.remove();}}
|
[
"public",
"void",
"clear",
"(",
")",
"{",
"Iterator",
"<",
"E",
">",
"it",
"=",
"iterator",
"(",
")",
";",
"while",
"(",
"it",
".",
"hasNext",
"(",
")",
")",
"{",
"it",
".",
"next",
"(",
")",
";",
"it",
".",
"remove",
"(",
")",
";",
"}",
"}"
] |
public virtual void clear(){java.util.Iterator<E> it = iterator();while (it.hasNext()){it.next();it.remove();}}
|
train
| true
|
172
|
public RegisterImageResult registerImage(RegisterImageRequest request) {request = beforeClientExecution(request);return executeRegisterImage(request);}
|
[
"public",
"RegisterImageResult",
"registerImage",
"(",
"RegisterImageRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRegisterImage",
"(",
"request",
")",
";",
"}"
] |
public virtual RegisterImageResponse RegisterImage(RegisterImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterImageRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterImageResponseUnmarshaller.Instance;return Invoke<RegisterImageResponse>(request, options);}
|
train
| true
|
173
|
public boolean equals(Object other) {return sameClassAs(other) &&term.equals(((TermQuery) other).term);}
|
[
"public",
"boolean",
"equals",
"(",
"Object",
"other",
")",
"{",
"return",
"sameClassAs",
"(",
"other",
")",
"&&",
"term",
".",
"equals",
"(",
"(",
"(",
"TermQuery",
")",
"other",
")",
".",
"term",
")",
";",
"}"
] |
public override bool Equals(object o){if (!(o is TermQuery)){return false;}TermQuery other = (TermQuery)o;return (this.Boost == other.Boost) && this.term.Equals(other.term);}
|
train
| false
|
174
|
public URI(String scheme, String authority, String path, String query,String fragment) throws URISyntaxException {if (scheme != null && path != null && !path.isEmpty() && path.charAt(0) != '/') {throw new URISyntaxException(path, "Relative path");}StringBuilder uri = new StringBuilder();if (scheme != null) {uri.append(scheme);uri.append(':');}if (authority != null) {uri.append("");AUTHORITY_ENCODER.appendEncoded(uri, authority);}if (path != null) {PATH_ENCODER.appendEncoded(uri, path);}if (query != null) {uri.append('?');ALL_LEGAL_ENCODER.appendEncoded(uri, query);}if (fragment != null) {uri.append('#');ALL_LEGAL_ENCODER.appendEncoded(uri, fragment);}parseURI(uri.toString(), false);}
|
[
"public",
"URI",
"(",
"String",
"scheme",
",",
"String",
"authority",
",",
"String",
"path",
",",
"String",
"query",
",",
"String",
"fragment",
")",
"throws",
"URISyntaxException",
"{",
"if",
"(",
"scheme",
"!=",
"null",
"&&",
"path",
"!=",
"null",
"&&",
"!",
"path",
".",
"isEmpty",
"(",
")",
"&&",
"path",
".",
"charAt",
"(",
"0",
")",
"!=",
"'/'",
")",
"{",
"throw",
"new",
"URISyntaxException",
"(",
"path",
",",
"\"Relative path\"",
")",
";",
"}",
"StringBuilder",
"uri",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"if",
"(",
"scheme",
"!=",
"null",
")",
"{",
"uri",
".",
"append",
"(",
"scheme",
")",
";",
"uri",
".",
"append",
"(",
"':'",
")",
";",
"}",
"if",
"(",
"authority",
"!=",
"null",
")",
"{",
"uri",
".",
"append",
"(",
"\"\"",
")",
";",
"AUTHORITY_ENCODER",
".",
"appendEncoded",
"(",
"uri",
",",
"authority",
")",
";",
"}",
"if",
"(",
"path",
"!=",
"null",
")",
"{",
"PATH_ENCODER",
".",
"appendEncoded",
"(",
"uri",
",",
"path",
")",
";",
"}",
"if",
"(",
"query",
"!=",
"null",
")",
"{",
"uri",
".",
"append",
"(",
"'?'",
")",
";",
"ALL_LEGAL_ENCODER",
".",
"appendEncoded",
"(",
"uri",
",",
"query",
")",
";",
"}",
"if",
"(",
"fragment",
"!=",
"null",
")",
"{",
"uri",
".",
"append",
"(",
"'#'",
")",
";",
"ALL_LEGAL_ENCODER",
".",
"appendEncoded",
"(",
"uri",
",",
"fragment",
")",
";",
"}",
"parseURI",
"(",
"uri",
".",
"toString",
"(",
")",
",",
"false",
")",
";",
"}"
] |
public URI(string scheme, string authority, string path, string query, string fragment){if (scheme != null && path != null && !string.IsNullOrEmpty(path) && path[0] != '/'){throw new java.net.URISyntaxException(path, "Relative path");}java.lang.StringBuilder uri = new java.lang.StringBuilder();if (scheme != null){uri.append(scheme);uri.append(':');}if (authority != null){uri.append("");AUTHORITY_ENCODER.appendEncoded(uri, authority);}if (path != null){PATH_ENCODER.appendEncoded(uri, path);}if (query != null){uri.append('?');ALL_LEGAL_ENCODER.appendEncoded(uri, query);}if (fragment != null){uri.append('#');ALL_LEGAL_ENCODER.appendEncoded(uri, fragment);}parseURI(uri.ToString(), false);}
|
train
| false
|
175
|
public BlameGenerator(Repository repository, String path) {this.repository = repository;this.resultPath = PathFilter.create(path);idBuf = new MutableObjectId();setFollowFileRenames(true);initRevPool(false);remaining = -1;}
|
[
"public",
"BlameGenerator",
"(",
"Repository",
"repository",
",",
"String",
"path",
")",
"{",
"this",
".",
"repository",
"=",
"repository",
";",
"this",
".",
"resultPath",
"=",
"PathFilter",
".",
"create",
"(",
"path",
")",
";",
"idBuf",
"=",
"new",
"MutableObjectId",
"(",
")",
";",
"setFollowFileRenames",
"(",
"true",
")",
";",
"initRevPool",
"(",
"false",
")",
";",
"remaining",
"=",
"-",
"1",
";",
"}"
] |
public BlameGenerator(Repository repository, string path){this.repository = repository;this.resultPath = PathFilter.Create(path);idBuf = new MutableObjectId();SetFollowFileRenames(true);InitRevPool(false);remaining = -1;}
|
train
| false
|
176
|
public synchronized void writeTo(OutputStream out) throws IOException {out.write(buf, 0, count);}
|
[
"public",
"synchronized",
"void",
"writeTo",
"(",
"OutputStream",
"out",
")",
"throws",
"IOException",
"{",
"out",
".",
"write",
"(",
"buf",
",",
"0",
",",
"count",
")",
";",
"}"
] |
public virtual void writeTo(java.io.OutputStream @out){throw new System.NotImplementedException();}
|
train
| false
|
178
|
public DescribeGroupResult describeGroup(DescribeGroupRequest request) {request = beforeClientExecution(request);return executeDescribeGroup(request);}
|
[
"public",
"DescribeGroupResult",
"describeGroup",
"(",
"DescribeGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeGroup",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeGroupResponse DescribeGroup(DescribeGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGroupResponseUnmarshaller.Instance;return Invoke<DescribeGroupResponse>(request, options);}
|
train
| true
|
179
|
public EnableVpcClassicLinkResult enableVpcClassicLink(EnableVpcClassicLinkRequest request) {request = beforeClientExecution(request);return executeEnableVpcClassicLink(request);}
|
[
"public",
"EnableVpcClassicLinkResult",
"enableVpcClassicLink",
"(",
"EnableVpcClassicLinkRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeEnableVpcClassicLink",
"(",
"request",
")",
";",
"}"
] |
public virtual EnableVpcClassicLinkResponse EnableVpcClassicLink(EnableVpcClassicLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableVpcClassicLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableVpcClassicLinkResponseUnmarshaller.Instance;return Invoke<EnableVpcClassicLinkResponse>(request, options);}
|
train
| true
|
180
|
public DescribeStacksResult describeStacks() {return describeStacks(new DescribeStacksRequest());}
|
[
"public",
"DescribeStacksResult",
"describeStacks",
"(",
")",
"{",
"return",
"describeStacks",
"(",
"new",
"DescribeStacksRequest",
"(",
")",
")",
";",
"}"
] |
public virtual DescribeStacksResponse DescribeStacks(){return DescribeStacks(new DescribeStacksRequest());}
|
train
| false
|
181
|
public CharBuffer duplicate() {return copy(this);}
|
[
"public",
"CharBuffer",
"duplicate",
"(",
")",
"{",
"return",
"copy",
"(",
"this",
")",
";",
"}"
] |
public override java.nio.CharBuffer duplicate(){return copy(this);}
|
train
| false
|
182
|
public static double mod(double n, double d) {if (d == 0) {return Double.NaN;}else if (sign(n) == sign(d)) {return n % d;}else {return ((n % d) + d) % d;}}
|
[
"public",
"static",
"double",
"mod",
"(",
"double",
"n",
",",
"double",
"d",
")",
"{",
"if",
"(",
"d",
"==",
"0",
")",
"{",
"return",
"Double",
".",
"NaN",
";",
"}",
"else",
"if",
"(",
"sign",
"(",
"n",
")",
"==",
"sign",
"(",
"d",
")",
")",
"{",
"return",
"n",
"%",
"d",
";",
"}",
"else",
"{",
"return",
"(",
"(",
"n",
"%",
"d",
")",
"+",
"d",
")",
"%",
"d",
";",
"}",
"}"
] |
public static double Mod(double n, double d){double result = 0;if (d == 0){result = double.NaN;}else if (Sign(n) == Sign(d)){result = n % d;}else{result = ((n % d) + d) % d;}return result;}
|
train
| false
|
183
|
public static String getLocalizedMessage(String key, Locale locale) {Object message = getResourceBundleObject(key, locale);if (message == null) {return "Message with key:" + key + " and locale: " + locale+ " not found.";}return message.toString();}
|
[
"public",
"static",
"String",
"getLocalizedMessage",
"(",
"String",
"key",
",",
"Locale",
"locale",
")",
"{",
"Object",
"message",
"=",
"getResourceBundleObject",
"(",
"key",
",",
"locale",
")",
";",
"if",
"(",
"message",
"==",
"null",
")",
"{",
"return",
"\"Message with key:\"",
"+",
"key",
"+",
"\" and locale: \"",
"+",
"locale",
"+",
"\" not found.\"",
";",
"}",
"return",
"message",
".",
"toString",
"(",
")",
";",
"}"
] |
public static string GetLocalizedMessage(string key, CultureInfo locale){string message = GetResourceBundleObject(key, locale);if (message == null){return "Message with key:" + key + " and locale: " + locale+ " not found.";}return message;}
|
train
| false
|
186
|
public GetInvalidationResult getInvalidation(GetInvalidationRequest request) {request = beforeClientExecution(request);return executeGetInvalidation(request);}
|
[
"public",
"GetInvalidationResult",
"getInvalidation",
"(",
"GetInvalidationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetInvalidation",
"(",
"request",
")",
";",
"}"
] |
public virtual GetInvalidationResponse GetInvalidation(GetInvalidationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInvalidationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInvalidationResponseUnmarshaller.Instance;return Invoke<GetInvalidationResponse>(request, options);}
|
train
| true
|
187
|
public String formatAsString() {return formatAsString(null, false);}
|
[
"public",
"String",
"formatAsString",
"(",
")",
"{",
"return",
"formatAsString",
"(",
"null",
",",
"false",
")",
";",
"}"
] |
public String FormatAsString(){return FormatAsString(null, false);}
|
train
| false
|
189
|
public AddApplicationInputProcessingConfigurationResult addApplicationInputProcessingConfiguration(AddApplicationInputProcessingConfigurationRequest request) {request = beforeClientExecution(request);return executeAddApplicationInputProcessingConfiguration(request);}
|
[
"public",
"AddApplicationInputProcessingConfigurationResult",
"addApplicationInputProcessingConfiguration",
"(",
"AddApplicationInputProcessingConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAddApplicationInputProcessingConfiguration",
"(",
"request",
")",
";",
"}"
] |
public virtual AddApplicationInputProcessingConfigurationResponse AddApplicationInputProcessingConfiguration(AddApplicationInputProcessingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddApplicationInputProcessingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = AddApplicationInputProcessingConfigurationResponseUnmarshaller.Instance;return Invoke<AddApplicationInputProcessingConfigurationResponse>(request, options);}
|
train
| true
|
190
|
public static TermRangeQuery newStringRange(String field, String lowerTerm, String upperTerm, boolean includeLower, boolean includeUpper) {BytesRef lower = lowerTerm == null ? null : new BytesRef(lowerTerm);BytesRef upper = upperTerm == null ? null : new BytesRef(upperTerm);return new TermRangeQuery(field, lower, upper, includeLower, includeUpper);}
|
[
"public",
"static",
"TermRangeQuery",
"newStringRange",
"(",
"String",
"field",
",",
"String",
"lowerTerm",
",",
"String",
"upperTerm",
",",
"boolean",
"includeLower",
",",
"boolean",
"includeUpper",
")",
"{",
"BytesRef",
"lower",
"=",
"lowerTerm",
"==",
"null",
"?",
"null",
":",
"new",
"BytesRef",
"(",
"lowerTerm",
")",
";",
"BytesRef",
"upper",
"=",
"upperTerm",
"==",
"null",
"?",
"null",
":",
"new",
"BytesRef",
"(",
"upperTerm",
")",
";",
"return",
"new",
"TermRangeQuery",
"(",
"field",
",",
"lower",
",",
"upper",
",",
"includeLower",
",",
"includeUpper",
")",
";",
"}"
] |
public static TermRangeQuery NewStringRange(string field, string lowerTerm, string upperTerm, bool includeLower, bool includeUpper){BytesRef lower = lowerTerm == null ? null : new BytesRef(lowerTerm);BytesRef upper = upperTerm == null ? null : new BytesRef(upperTerm);return new TermRangeQuery(field, lower, upper, includeLower, includeUpper);}
|
train
| false
|
192
|
public int checkExternSheet(int firstSheetIndex, int lastSheetIndex) {int thisWbIndex = -1; for (int i = 0; i < _externalBookBlocks.length; i++) {SupBookRecord ebr = _externalBookBlocks[i].getExternalBookRecord();if (ebr.isInternalReferences()) {thisWbIndex = i;break;}}if (thisWbIndex < 0) {throw new RuntimeException("Could not find 'internal references' EXTERNALBOOK");}int i = _externSheetRecord.getRefIxForSheet(thisWbIndex, firstSheetIndex, lastSheetIndex);if (i >= 0) {return i;}return _externSheetRecord.addRef(thisWbIndex, firstSheetIndex, lastSheetIndex);}
|
[
"public",
"int",
"checkExternSheet",
"(",
"int",
"firstSheetIndex",
",",
"int",
"lastSheetIndex",
")",
"{",
"int",
"thisWbIndex",
"=",
"-",
"1",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"_externalBookBlocks",
".",
"length",
";",
"i",
"++",
")",
"{",
"SupBookRecord",
"ebr",
"=",
"_externalBookBlocks",
"[",
"i",
"]",
".",
"getExternalBookRecord",
"(",
")",
";",
"if",
"(",
"ebr",
".",
"isInternalReferences",
"(",
")",
")",
"{",
"thisWbIndex",
"=",
"i",
";",
"break",
";",
"}",
"}",
"if",
"(",
"thisWbIndex",
"<",
"0",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"Could not find 'internal references' EXTERNALBOOK\"",
")",
";",
"}",
"int",
"i",
"=",
"_externSheetRecord",
".",
"getRefIxForSheet",
"(",
"thisWbIndex",
",",
"firstSheetIndex",
",",
"lastSheetIndex",
")",
";",
"if",
"(",
"i",
">=",
"0",
")",
"{",
"return",
"i",
";",
"}",
"return",
"_externSheetRecord",
".",
"addRef",
"(",
"thisWbIndex",
",",
"firstSheetIndex",
",",
"lastSheetIndex",
")",
";",
"}"
] |
public int CheckExternSheet(int firstSheetIndex, int lastSheetIndex){int thisWbIndex = -1; for (int i = 0; i < _externalBookBlocks.Length; i++){SupBookRecord ebr = _externalBookBlocks[i].GetExternalBookRecord();if (ebr.IsInternalReferences){thisWbIndex = i;break;}}if (thisWbIndex < 0){throw new InvalidOperationException("Could not find 'internal references' EXTERNALBOOK");}int j = _externSheetRecord.GetRefIxForSheet(thisWbIndex, firstSheetIndex, lastSheetIndex);if (j >= 0){return j;}return _externSheetRecord.AddRef(thisWbIndex, firstSheetIndex, lastSheetIndex);}
|
train
| false
|
193
|
public DescribeSentimentDetectionJobResult describeSentimentDetectionJob(DescribeSentimentDetectionJobRequest request) {request = beforeClientExecution(request);return executeDescribeSentimentDetectionJob(request);}
|
[
"public",
"DescribeSentimentDetectionJobResult",
"describeSentimentDetectionJob",
"(",
"DescribeSentimentDetectionJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeSentimentDetectionJob",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeSentimentDetectionJobResponse DescribeSentimentDetectionJob(DescribeSentimentDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSentimentDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSentimentDetectionJobResponseUnmarshaller.Instance;return Invoke<DescribeSentimentDetectionJobResponse>(request, options);}
|
train
| true
|
194
|
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[UNITS]\n");buffer.append(" .units = ").append("0x").append(HexDump.toHex( getUnits ())).append(" (").append( getUnits() ).append(" )");buffer.append(System.getProperty("line.separator"));buffer.append("[/UNITS]\n");return buffer.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[UNITS]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .units = \"",
")",
".",
"append",
"(",
"\"0x\"",
")",
".",
"append",
"(",
"HexDump",
".",
"toHex",
"(",
"getUnits",
"(",
")",
")",
")",
".",
"append",
"(",
"\" (\"",
")",
".",
"append",
"(",
"getUnits",
"(",
")",
")",
".",
"append",
"(",
"\" )\"",
")",
";",
"buffer",
".",
"append",
"(",
"System",
".",
"getProperty",
"(",
"\"line.separator\"",
")",
")",
";",
"buffer",
".",
"append",
"(",
"\"[/UNITS]\\n\"",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] |
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[UNITS]\n");buffer.Append(" .units = ").Append("0x").Append(HexDump.ToHex(Units)).Append(" (").Append(Units).Append(" )");buffer.Append(Environment.NewLine);buffer.Append("[/UNITS]\n");return buffer.ToString();}
|
train
| false
|
195
|
public NavigableMap<K, V> tailMap(K from, boolean inclusive) {Bound fromBound = inclusive ? INCLUSIVE : EXCLUSIVE;return subMap(from, fromBound, null, NO_BOUND);}
|
[
"public",
"NavigableMap",
"<",
"K",
",",
"V",
">",
"tailMap",
"(",
"K",
"from",
",",
"boolean",
"inclusive",
")",
"{",
"Bound",
"fromBound",
"=",
"inclusive",
"?",
"INCLUSIVE",
":",
"EXCLUSIVE",
";",
"return",
"subMap",
"(",
"from",
",",
"fromBound",
",",
"null",
",",
"NO_BOUND",
")",
";",
"}"
] |
public java.util.NavigableMap<K, V> tailMap(K from, bool inclusive){java.util.TreeMap.Bound fromBound = inclusive ? java.util.TreeMap.Bound.INCLUSIVE: java.util.TreeMap.Bound.EXCLUSIVE;return this.subMap(from, fromBound, default(K), java.util.TreeMap.Bound.NO_BOUND);}
|
train
| false
|
196
|
public static int compareTo(Ref o1, Ref o2) {return o1.getName().compareTo(o2.getName());}
|
[
"public",
"static",
"int",
"compareTo",
"(",
"Ref",
"o1",
",",
"Ref",
"o2",
")",
"{",
"return",
"o1",
".",
"getName",
"(",
")",
".",
"compareTo",
"(",
"o2",
".",
"getName",
"(",
")",
")",
";",
"}"
] |
public static int CompareTo(Ref o1, Ref o2){return Sharpen.Runtime.CompareOrdinal(o1.GetName(), o2.GetName());}
|
train
| false
|
197
|
public PutEventsConfigurationResult putEventsConfiguration(PutEventsConfigurationRequest request) {request = beforeClientExecution(request);return executePutEventsConfiguration(request);}
|
[
"public",
"PutEventsConfigurationResult",
"putEventsConfiguration",
"(",
"PutEventsConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutEventsConfiguration",
"(",
"request",
")",
";",
"}"
] |
public virtual PutEventsConfigurationResponse PutEventsConfiguration(PutEventsConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutEventsConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutEventsConfigurationResponseUnmarshaller.Instance;return Invoke<PutEventsConfigurationResponse>(request, options);}
|
train
| false
|
198
|
public DetachFromIndexResult detachFromIndex(DetachFromIndexRequest request) {request = beforeClientExecution(request);return executeDetachFromIndex(request);}
|
[
"public",
"DetachFromIndexResult",
"detachFromIndex",
"(",
"DetachFromIndexRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDetachFromIndex",
"(",
"request",
")",
";",
"}"
] |
public virtual DetachFromIndexResponse DetachFromIndex(DetachFromIndexRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachFromIndexRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachFromIndexResponseUnmarshaller.Instance;return Invoke<DetachFromIndexResponse>(request, options);}
|
train
| true
|
199
|
public RebaseCommand rebase() {return new RebaseCommand(repo);}
|
[
"public",
"RebaseCommand",
"rebase",
"(",
")",
"{",
"return",
"new",
"RebaseCommand",
"(",
"repo",
")",
";",
"}"
] |
public virtual RebaseCommand Rebase(){return new RebaseCommand(repo);}
|
train
| false
|
200
|
public SearchGroup<T> next() {assert iter.hasNext();final SearchGroup<T> group = iter.next();if (group.sortValues == null) {throw new IllegalArgumentException("group.sortValues is null; you must pass fillFields=true to the first pass collector");}return group;}
|
[
"public",
"SearchGroup",
"<",
"T",
">",
"next",
"(",
")",
"{",
"assert",
"iter",
".",
"hasNext",
"(",
")",
";",
"final",
"SearchGroup",
"<",
"T",
">",
"group",
"=",
"iter",
".",
"next",
"(",
")",
";",
"if",
"(",
"group",
".",
"sortValues",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"group.sortValues is null; you must pass fillFields=true to the first pass collector\"",
")",
";",
"}",
"return",
"group",
";",
"}"
] |
public ISearchGroup<T> Next(){ISearchGroup<T> group = iter.Current;if (group.SortValues == null){throw new ArgumentException("group.sortValues is null; you must pass fillFields=true to the first pass collector");}return group;}
|
train
| false
|
201
|
public UpdateMLModelResult updateMLModel(UpdateMLModelRequest request) {request = beforeClientExecution(request);return executeUpdateMLModel(request);}
|
[
"public",
"UpdateMLModelResult",
"updateMLModel",
"(",
"UpdateMLModelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateMLModel",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateMLModelResponse UpdateMLModel(UpdateMLModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateMLModelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateMLModelResponseUnmarshaller.Instance;return Invoke<UpdateMLModelResponse>(request, options);}
|
train
| true
|
202
|
public CreateIPSetResult createIPSet(CreateIPSetRequest request) {request = beforeClientExecution(request);return executeCreateIPSet(request);}
|
[
"public",
"CreateIPSetResult",
"createIPSet",
"(",
"CreateIPSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateIPSet",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateIPSetResponse CreateIPSet(CreateIPSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIPSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIPSetResponseUnmarshaller.Instance;return Invoke<CreateIPSetResponse>(request, options);}
|
train
| true
|
203
|
public FieldDateResolutionFCListener(QueryConfigHandler config) {this.config = config;}
|
[
"public",
"FieldDateResolutionFCListener",
"(",
"QueryConfigHandler",
"config",
")",
"{",
"this",
".",
"config",
"=",
"config",
";",
"}"
] |
public FieldDateResolutionFCListener(QueryConfigHandler config){this.config = config;}
|
train
| false
|
204
|
@Override public boolean containsValue(Object value) {HashMapEntry[] tab = table;int len = tab.length;if (value == null) {for (int i = 0; i < len; i++) {for (HashMapEntry e = tab[i]; e != null; e = e.next) {if (e.value == null) {return true;}}}return entryForNullKey != null && entryForNullKey.value == null;}for (int i = 0; i < len; i++) {for (HashMapEntry e = tab[i]; e != null; e = e.next) {if (value.equals(e.value)) {return true;}}}return entryForNullKey != null && value.equals(entryForNullKey.value);}
|
[
"@",
"Override",
"public",
"boolean",
"containsValue",
"(",
"Object",
"value",
")",
"{",
"HashMapEntry",
"[",
"]",
"tab",
"=",
"table",
";",
"int",
"len",
"=",
"tab",
".",
"length",
";",
"if",
"(",
"value",
"==",
"null",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"len",
";",
"i",
"++",
")",
"{",
"for",
"(",
"HashMapEntry",
"e",
"=",
"tab",
"[",
"i",
"]",
";",
"e",
"!=",
"null",
";",
"e",
"=",
"e",
".",
"next",
")",
"{",
"if",
"(",
"e",
".",
"value",
"==",
"null",
")",
"{",
"return",
"true",
";",
"}",
"}",
"}",
"return",
"entryForNullKey",
"!=",
"null",
"&&",
"entryForNullKey",
".",
"value",
"==",
"null",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"len",
";",
"i",
"++",
")",
"{",
"for",
"(",
"HashMapEntry",
"e",
"=",
"tab",
"[",
"i",
"]",
";",
"e",
"!=",
"null",
";",
"e",
"=",
"e",
".",
"next",
")",
"{",
"if",
"(",
"value",
".",
"equals",
"(",
"e",
".",
"value",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"}",
"return",
"entryForNullKey",
"!=",
"null",
"&&",
"value",
".",
"equals",
"(",
"entryForNullKey",
".",
"value",
")",
";",
"}"
] |
public override bool containsValue(object value){java.util.HashMap.HashMapEntry<K, V>[] tab = table;int len = tab.Length;if (value == null){{for (int i = 0; i < len; i++){{for (java.util.HashMap.HashMapEntry<K, V> e = tab[i]; e != null; e = e.next){if (e.value == null){return true;}}}}}return entryForNullKey != null && (object)entryForNullKey.value == null;}{for (int i_1 = 0; i_1 < len; i_1++){{for (java.util.HashMap.HashMapEntry<K, V> e = tab[i_1]; e != null; e = e.next){if (value.Equals(e.value)){return true;}}}}}return entryForNullKey != null && value.Equals(entryForNullKey.value);}
|
train
| false
|
205
|
public DescribeWorkspaceBundlesResult describeWorkspaceBundles(DescribeWorkspaceBundlesRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspaceBundles(request);}
|
[
"public",
"DescribeWorkspaceBundlesResult",
"describeWorkspaceBundles",
"(",
"DescribeWorkspaceBundlesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeWorkspaceBundles",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeWorkspaceBundlesResponse DescribeWorkspaceBundles(DescribeWorkspaceBundlesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspaceBundlesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspaceBundlesResponseUnmarshaller.Instance;return Invoke<DescribeWorkspaceBundlesResponse>(request, options);}
|
train
| true
|
207
|
public void serialize(LittleEndianOutput out) {out.writeShort(sid); out.writeShort(_reserved0);out.writeInt(_engineId);}
|
[
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"sid",
")",
";",
"out",
".",
"writeShort",
"(",
"_reserved0",
")",
";",
"out",
".",
"writeInt",
"(",
"_engineId",
")",
";",
"}"
] |
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(sid); out1.WriteShort(_reserved0);out1.WriteInt(_engineId);}
|
train
| false
|
208
|
public static CharBuffer allocate(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}return new ReadWriteCharArrayBuffer(capacity);}
|
[
"public",
"static",
"CharBuffer",
"allocate",
"(",
"int",
"capacity",
")",
"{",
"if",
"(",
"capacity",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
")",
";",
"}",
"return",
"new",
"ReadWriteCharArrayBuffer",
"(",
"capacity",
")",
";",
"}"
] |
public static java.nio.CharBuffer allocate(int capacity_1){if (capacity_1 < 0){throw new System.ArgumentException();}return new java.nio.ReadWriteCharArrayBuffer(capacity_1);}
|
train
| false
|
210
|
public DeletePipelineResult deletePipeline(DeletePipelineRequest request) {request = beforeClientExecution(request);return executeDeletePipeline(request);}
|
[
"public",
"DeletePipelineResult",
"deletePipeline",
"(",
"DeletePipelineRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeletePipeline",
"(",
"request",
")",
";",
"}"
] |
public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeletePipelineRequestMarshaller.Instance;options.ResponseUnmarshaller = DeletePipelineResponseUnmarshaller.Instance;return Invoke<DeletePipelineResponse>(request, options);}
|
train
| true
|
211
|
public InterfaceHdrRecord(int codePage) {_codepage = codePage;}
|
[
"public",
"InterfaceHdrRecord",
"(",
"int",
"codePage",
")",
"{",
"_codepage",
"=",
"codePage",
";",
"}"
] |
public InterfaceHdrRecord(int codePage){_codepage = codePage;}
|
train
| false
|
212
|
public DescribeScalingParametersResult describeScalingParameters(DescribeScalingParametersRequest request) {request = beforeClientExecution(request);return executeDescribeScalingParameters(request);}
|
[
"public",
"DescribeScalingParametersResult",
"describeScalingParameters",
"(",
"DescribeScalingParametersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeScalingParameters",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeScalingParametersResponse DescribeScalingParameters(DescribeScalingParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScalingParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScalingParametersResponseUnmarshaller.Instance;return Invoke<DescribeScalingParametersResponse>(request, options);}
|
train
| true
|
213
|
public Entry<K, V> higherEntry(K key) {return immutableCopy(findBounded(key, HIGHER));}
|
[
"public",
"Entry",
"<",
"K",
",",
"V",
">",
"higherEntry",
"(",
"K",
"key",
")",
"{",
"return",
"immutableCopy",
"(",
"findBounded",
"(",
"key",
",",
"HIGHER",
")",
")",
";",
"}"
] |
public java.util.MapClass.Entry<K, V> higherEntry(K key){return this._enclosing.immutableCopy(this.findBounded(key, java.util.TreeMap.Relation.HIGHER));}
|
train
| false
|
214
|
public CreateSpotDatafeedSubscriptionRequest(String bucket) {setBucket(bucket);}
|
[
"public",
"CreateSpotDatafeedSubscriptionRequest",
"(",
"String",
"bucket",
")",
"{",
"setBucket",
"(",
"bucket",
")",
";",
"}"
] |
public CreateSpotDatafeedSubscriptionRequest(string bucket){_bucket = bucket;}
|
train
| false
|
215
|
public String getLocalizedMessage() {return getLocalizedMessage(Locale.getDefault());}
|
[
"public",
"String",
"getLocalizedMessage",
"(",
")",
"{",
"return",
"getLocalizedMessage",
"(",
"Locale",
".",
"getDefault",
"(",
")",
")",
";",
"}"
] |
public virtual string GetLocalizedMessage(){return GetLocalizedMessage(CultureInfo.InvariantCulture);}
|
train
| false
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.