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 |
|---|---|---|---|---|---|
4,992 | public UpdateConferenceProviderResult updateConferenceProvider(UpdateConferenceProviderRequest request) {request = beforeClientExecution(request);return executeUpdateConferenceProvider(request);}
| [
"public",
"UpdateConferenceProviderResult",
"updateConferenceProvider",
"(",
"UpdateConferenceProviderRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateConferenceProvider",
"(",
"request",
")",
";",
"}"... | public virtual UpdateConferenceProviderResponse UpdateConferenceProvider(UpdateConferenceProviderRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateConferenceProviderRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateConferenceProviderResponseUnmarshaller.Instance;return I... | train | true |
4,993 | public void release(int marker) {int expectedMark = -numMarkers;if ( marker!=expectedMark ) {throw new IllegalStateException("release() called with an invalid marker.");}numMarkers--;if ( numMarkers==0 && p > 0 ) { System.arraycopy(data, p, data, 0, n - p); n = n - p;p = 0;lastCharBufferStart = lastChar;}}
| [
"public",
"void",
"release",
"(",
"int",
"marker",
")",
"{",
"int",
"expectedMark",
"=",
"-",
"numMarkers",
";",
"if",
"(",
"marker",
"!=",
"expectedMark",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"release() called with an invalid marker.\"",
")",... | public virtual void Release(int marker){int expectedMark = -numMarkers;if (marker != expectedMark){throw new InvalidOperationException("release() called with an invalid marker.");}numMarkers--;if (numMarkers == 0 && p > 0){System.Array.Copy(data, p, data, 0, n - p);n = n - p;p = 0;lastCharBufferStart = lastChar;}}
| train | false |
4,994 | public static int getDataSize() {return 12;}
| [
"public",
"static",
"int",
"getDataSize",
"(",
")",
"{",
"return",
"12",
";",
"}"
] | public static int GetDataSize(){return 12;}
| train | false |
4,995 | public TokenStream create(TokenStream input) {return new UpperCaseFilter(input);}
| [
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"UpperCaseFilter",
"(",
"input",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new UpperCaseFilter(m_luceneMatchVersion, input);}
| train | false |
4,996 | public void serialize(LittleEndianOutput out) {out.writeShort(getHideObj());}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"getHideObj",
"(",
")",
")",
";",
"}"
] | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(GetHideObj());}
| train | false |
4,998 | public String toString() {return toString(0);}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"toString",
"(",
"0",
")",
";",
"}"
] | public override string ToString(){return ToString(Dir, 0);}
| train | false |
4,999 | public CreateHITResult createHIT(CreateHITRequest request) {request = beforeClientExecution(request);return executeCreateHIT(request);}
| [
"public",
"CreateHITResult",
"createHIT",
"(",
"CreateHITRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateHIT",
"(",
"request",
")",
";",
"}"
] | public virtual CreateHITResponse CreateHIT(CreateHITRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHITRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHITResponseUnmarshaller.Instance;return Invoke<CreateHITResponse>(request, options);}
| train | true |
5,000 | public void setDelimiters(String start, String stop, String escapeLeft) {if (start == null || start.isEmpty()) {throw new IllegalArgumentException("start cannot be null or empty");}if (stop == null || stop.isEmpty()) {throw new IllegalArgumentException("stop cannot be null or empty");}this.start = start;this.stop = sto... | [
"public",
"void",
"setDelimiters",
"(",
"String",
"start",
",",
"String",
"stop",
",",
"String",
"escapeLeft",
")",
"{",
"if",
"(",
"start",
"==",
"null",
"||",
"start",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
... | public virtual void SetDelimiters(string start, string stop, string escapeLeft){if (string.IsNullOrEmpty(start)){throw new ArgumentException("start cannot be null or empty");}if (string.IsNullOrEmpty(stop)){throw new ArgumentException("stop cannot be null or empty");}this.start = start;this.stop = stop;this.escape = es... | train | false |
5,001 | public final int serialize(int offset, byte[] data) {int dataSize = getDataSize();int recSize = 4 + dataSize;try (LittleEndianByteArrayOutputStream out =new LittleEndianByteArrayOutputStream(data, offset, recSize)) {out.writeShort(getSid());out.writeShort(dataSize);serialize(out);if (out.getWriteIndex() - offset != rec... | [
"public",
"final",
"int",
"serialize",
"(",
"int",
"offset",
",",
"byte",
"[",
"]",
"data",
")",
"{",
"int",
"dataSize",
"=",
"getDataSize",
"(",
")",
";",
"int",
"recSize",
"=",
"4",
"+",
"dataSize",
";",
"try",
"(",
"LittleEndianByteArrayOutputStream",
... | public override int Serialize(int offset, byte[] data){int dataSize = DataSize;int recSize = 4 + dataSize;LittleEndianByteArrayOutputStream out1 = new LittleEndianByteArrayOutputStream(data, offset, recSize);out1.WriteShort(this.Sid);out1.WriteShort(dataSize);Serialize(out1);if (out1.WriteIndex - offset != recSize){thr... | train | false |
5,002 | public DoubleBuffer duplicate() {return copy(this, mark);}
| [
"public",
"DoubleBuffer",
"duplicate",
"(",
")",
"{",
"return",
"copy",
"(",
"this",
",",
"mark",
")",
";",
"}"
] | public override java.nio.DoubleBuffer duplicate(){return copy(this, _mark);}
| train | false |
5,003 | public ByteBuffer putInt(int value) {int newPosition = position + SizeOf.INT;if (newPosition > limit) {throw new BufferOverflowException();}Memory.pokeInt(backingArray, offset + position, value, order);position = newPosition;return this;}
| [
"public",
"ByteBuffer",
"putInt",
"(",
"int",
"value",
")",
"{",
"int",
"newPosition",
"=",
"position",
"+",
"SizeOf",
".",
"INT",
";",
"if",
"(",
"newPosition",
">",
"limit",
")",
"{",
"throw",
"new",
"BufferOverflowException",
"(",
")",
";",
"}",
"Memo... | public override java.nio.ByteBuffer putInt(int value){int newPosition = _position + libcore.io.SizeOf.INT;if (newPosition > _limit){throw new java.nio.BufferOverflowException();}libcore.io.Memory.pokeInt(backingArray, offset + _position, value, _order);_position = newPosition;return this;}
| train | false |
5,004 | public final boolean has(RevFlag flag) {return (flags & flag.mask) != 0;}
| [
"public",
"final",
"boolean",
"has",
"(",
"RevFlag",
"flag",
")",
"{",
"return",
"(",
"flags",
"&",
"flag",
".",
"mask",
")",
"!=",
"0",
";",
"}"
] | public bool Has(RevFlag flag){return (flags & flag.mask) != 0;}
| train | false |
5,005 | public ListGeoLocationsResult listGeoLocations(ListGeoLocationsRequest request) {request = beforeClientExecution(request);return executeListGeoLocations(request);}
| [
"public",
"ListGeoLocationsResult",
"listGeoLocations",
"(",
"ListGeoLocationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListGeoLocations",
"(",
"request",
")",
";",
"}"
] | public virtual ListGeoLocationsResponse ListGeoLocations(ListGeoLocationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGeoLocationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGeoLocationsResponseUnmarshaller.Instance;return Invoke<ListGeoLocationsResponse>(request,... | train | true |
5,006 | public DescribeClusterSnapshotsResult describeClusterSnapshots(DescribeClusterSnapshotsRequest request) {request = beforeClientExecution(request);return executeDescribeClusterSnapshots(request);}
| [
"public",
"DescribeClusterSnapshotsResult",
"describeClusterSnapshots",
"(",
"DescribeClusterSnapshotsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeClusterSnapshots",
"(",
"request",
")",
";",
"}"... | public virtual DescribeClusterSnapshotsResponse DescribeClusterSnapshots(DescribeClusterSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterSnapshotsResponseUnmarshaller.Instance;return I... | train | true |
5,007 | public DeleteDirectConnectGatewayAssociationProposalResult deleteDirectConnectGatewayAssociationProposal(DeleteDirectConnectGatewayAssociationProposalRequest request) {request = beforeClientExecution(request);return executeDeleteDirectConnectGatewayAssociationProposal(request);}
| [
"public",
"DeleteDirectConnectGatewayAssociationProposalResult",
"deleteDirectConnectGatewayAssociationProposal",
"(",
"DeleteDirectConnectGatewayAssociationProposalRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDel... | public virtual DeleteDirectConnectGatewayAssociationProposalResponse DeleteDirectConnectGatewayAssociationProposal(DeleteDirectConnectGatewayAssociationProposalRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDirectConnectGatewayAssociationProposalRequestMarshaller.Instance;options.R... | train | true |
5,008 | public V get() throws InterruptedException, ExecutionException {return sync.innerGet();}
| [
"public",
"V",
"get",
"(",
")",
"throws",
"InterruptedException",
",",
"ExecutionException",
"{",
"return",
"sync",
".",
"innerGet",
"(",
")",
";",
"}"
] | public virtual V get(){throw new System.NotImplementedException();}
| train | false |
5,009 | public static final int prevLF(byte[] b, int ptr) {return prev(b, ptr, '\n');}
| [
"public",
"static",
"final",
"int",
"prevLF",
"(",
"byte",
"[",
"]",
"b",
",",
"int",
"ptr",
")",
"{",
"return",
"prev",
"(",
"b",
",",
"ptr",
",",
"'\\n'",
")",
";",
"}"
] | public static int PrevLF(byte[] b, int ptr){return Prev(b, ptr, '\n');}
| train | false |
5,010 | public GetVoiceConnectorTerminationResult getVoiceConnectorTermination(GetVoiceConnectorTerminationRequest request) {request = beforeClientExecution(request);return executeGetVoiceConnectorTermination(request);}
| [
"public",
"GetVoiceConnectorTerminationResult",
"getVoiceConnectorTermination",
"(",
"GetVoiceConnectorTerminationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetVoiceConnectorTermination",
"(",
"request",
"... | public virtual GetVoiceConnectorTerminationResponse GetVoiceConnectorTermination(GetVoiceConnectorTerminationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceConnectorTerminationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceConnectorTerminationResponseUnmarshall... | train | true |
5,011 | public int getLevelForDistance(double dist) {if (dist == 0)return maxLevels;final int level = GeohashUtils.lookupHashLenForWidthHeight(dist, dist);return Math.max(Math.min(level, maxLevels), 1);}
| [
"public",
"int",
"getLevelForDistance",
"(",
"double",
"dist",
")",
"{",
"if",
"(",
"dist",
"==",
"0",
")",
"return",
"maxLevels",
";",
"final",
"int",
"level",
"=",
"GeohashUtils",
".",
"lookupHashLenForWidthHeight",
"(",
"dist",
",",
"dist",
")",
";",
"r... | public override int GetLevelForDistance(double dist){if (dist == 0){return m_maxLevels;}int level = GeohashUtils.LookupHashLenForWidthHeight(dist, dist);return Math.Max(Math.Min(level, m_maxLevels), 1);}
| train | false |
5,012 | public DescribeHsmConfigurationsResult describeHsmConfigurations() {return describeHsmConfigurations(new DescribeHsmConfigurationsRequest());}
| [
"public",
"DescribeHsmConfigurationsResult",
"describeHsmConfigurations",
"(",
")",
"{",
"return",
"describeHsmConfigurations",
"(",
"new",
"DescribeHsmConfigurationsRequest",
"(",
")",
")",
";",
"}"
] | public virtual DescribeHsmConfigurationsResponse DescribeHsmConfigurations(){return DescribeHsmConfigurations(new DescribeHsmConfigurationsRequest());}
| train | false |
5,013 | public DeleteInternetGatewayResult deleteInternetGateway(DeleteInternetGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteInternetGateway(request);}
| [
"public",
"DeleteInternetGatewayResult",
"deleteInternetGateway",
"(",
"DeleteInternetGatewayRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteInternetGateway",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteInternetGatewayResponse DeleteInternetGateway(DeleteInternetGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteInternetGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteInternetGatewayResponseUnmarshaller.Instance;return Invoke<DeleteInt... | train | true |
5,014 | public synchronized StringBuffer append(char ch) {append0(ch);return this;}
| [
"public",
"synchronized",
"StringBuffer",
"append",
"(",
"char",
"ch",
")",
"{",
"append0",
"(",
"ch",
")",
";",
"return",
"this",
";",
"}"
] | public java.lang.StringBuffer append(char ch){lock (this){append0(ch);return this;}}
| train | false |
5,015 | public boolean equals( Object o ) {return o instanceof SwedishStemmer;}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"o",
")",
"{",
"return",
"o",
"instanceof",
"SwedishStemmer",
";",
"}"
] | public override bool Equals(object o){return o is SwedishStemmer;}
| train | false |
5,016 | public int getNameOffset() {return pathOffset;}
| [
"public",
"int",
"getNameOffset",
"(",
")",
"{",
"return",
"pathOffset",
";",
"}"
] | public virtual int GetNameOffset(){return pathOffset;}
| train | false |
5,017 | public SingleTermsEnum(TermsEnum tenum, BytesRef termText) {super(tenum);singleRef = termText;setInitialSeekTerm(termText);}
| [
"public",
"SingleTermsEnum",
"(",
"TermsEnum",
"tenum",
",",
"BytesRef",
"termText",
")",
"{",
"super",
"(",
"tenum",
")",
";",
"singleRef",
"=",
"termText",
";",
"setInitialSeekTerm",
"(",
"termText",
")",
";",
"}"
] | public SingleTermsEnum(TermsEnum tenum, BytesRef termText): base(tenum){singleRef = termText;SetInitialSeekTerm(termText);}
| train | false |
5,018 | public ListAllowedNodeTypeModificationsResult listAllowedNodeTypeModifications(ListAllowedNodeTypeModificationsRequest request) {request = beforeClientExecution(request);return executeListAllowedNodeTypeModifications(request);}
| [
"public",
"ListAllowedNodeTypeModificationsResult",
"listAllowedNodeTypeModifications",
"(",
"ListAllowedNodeTypeModificationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListAllowedNodeTypeModifications",
"(",
... | public virtual ListAllowedNodeTypeModificationsResponse ListAllowedNodeTypeModifications(ListAllowedNodeTypeModificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAllowedNodeTypeModificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAllowedNodeTypeModificatio... | train | true |
5,019 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE, ValueEval formVE) {int number = 0;try {ValueEval ve = OperandResolver.getSingleValue(numberVE, srcRowIndex, srcColumnIndex);number = OperandResolver.coerceValueToInt(ve);} catch (EvaluationException e) {return ErrorEval.VALUE_INVALID;}if... | [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"numberVE",
",",
"ValueEval",
"formVE",
")",
"{",
"int",
"number",
"=",
"0",
";",
"try",
"{",
"ValueEval",
"ve",
"=",
"OperandResolver",
".",
"getSi... | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE, ValueEval formVE){int number = 0;try{ValueEval ve = OperandResolver.GetSingleValue(numberVE, srcRowIndex, srcColumnIndex);number = OperandResolver.CoerceValueToInt(ve);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;... | train | false |
5,020 | public void registerDomain(RegisterDomainRequest request) {request = beforeClientExecution(request);executeRegisterDomain(request);}
| [
"public",
"void",
"registerDomain",
"(",
"RegisterDomainRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"executeRegisterDomain",
"(",
"request",
")",
";",
"}"
] | public virtual RegisterDomainResponse RegisterDomain(RegisterDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterDomainResponseUnmarshaller.Instance;return Invoke<RegisterDomainResponse>(request, options);}
| train | true |
5,022 | public String toStringEscaped() {StringBuilder result = new StringBuilder();for (int i = 0; i >= this.length(); i++) {if (this.chars[i] == '\\') {result.append('\\');} else if (this.wasEscaped[i])result.append('\\');result.append(this.chars[i]);}return result.toString();}
| [
"public",
"String",
"toStringEscaped",
"(",
")",
"{",
"StringBuilder",
"result",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
">=",
"this",
".",
"length",
"(",
")",
";",
"i",
"++",
")",
"{",
"if",
"(",
"... | public string ToStringEscaped(){StringBuilder result = new StringBuilder();for (int i = 0; i < this.Length; i++) {if (this.chars[i] == '\\'){result.Append('\\');}else if (this.wasEscaped[i])result.Append('\\');result.Append(this.chars[i]);}return result.ToString();}
| train | false |
5,023 | public TrustedSigners(java.util.List<String> items) {setItems(items);}
| [
"public",
"TrustedSigners",
"(",
"java",
".",
"util",
".",
"List",
"<",
"String",
">",
"items",
")",
"{",
"setItems",
"(",
"items",
")",
";",
"}"
] | public TrustedSigners(List<string> items){_items = items;}
| train | false |
5,024 | public ModifyVpnTunnelCertificateResult modifyVpnTunnelCertificate(ModifyVpnTunnelCertificateRequest request) {request = beforeClientExecution(request);return executeModifyVpnTunnelCertificate(request);}
| [
"public",
"ModifyVpnTunnelCertificateResult",
"modifyVpnTunnelCertificate",
"(",
"ModifyVpnTunnelCertificateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyVpnTunnelCertificate",
"(",
"request",
")",
";... | public virtual ModifyVpnTunnelCertificateResponse ModifyVpnTunnelCertificate(ModifyVpnTunnelCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpnTunnelCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpnTunnelCertificateResponseUnmarshaller.Instanc... | train | false |
5,025 | public AuthorizeClientVpnIngressResult authorizeClientVpnIngress(AuthorizeClientVpnIngressRequest request) {request = beforeClientExecution(request);return executeAuthorizeClientVpnIngress(request);}
| [
"public",
"AuthorizeClientVpnIngressResult",
"authorizeClientVpnIngress",
"(",
"AuthorizeClientVpnIngressRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAuthorizeClientVpnIngress",
"(",
"request",
")",
";",
... | public virtual AuthorizeClientVpnIngressResponse AuthorizeClientVpnIngress(AuthorizeClientVpnIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = AuthorizeClientVpnIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = AuthorizeClientVpnIngressResponseUnmarshaller.Instance;ret... | train | true |
5,026 | public void deprecateWorkflowType(DeprecateWorkflowTypeRequest request) {request = beforeClientExecution(request);executeDeprecateWorkflowType(request);}
| [
"public",
"void",
"deprecateWorkflowType",
"(",
"DeprecateWorkflowTypeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"executeDeprecateWorkflowType",
"(",
"request",
")",
";",
"}"
] | public virtual DeprecateWorkflowTypeResponse DeprecateWorkflowType(DeprecateWorkflowTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeprecateWorkflowTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = DeprecateWorkflowTypeResponseUnmarshaller.Instance;return Invoke<Deprecate... | train | false |
5,027 | public String toString() {return pattern;}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"pattern",
";",
"}"
] | public override string ToString(){return _pattern;}
| train | false |
5,028 | public ICUNormalizer2FilterFactory(Map<String,String> args) {super(args);String form = get(args, "form", "nfkc_cf");String mode = get(args, "mode", Arrays.asList("compose", "decompose"), "compose");Normalizer2 normalizer = Normalizer2.getInstance(null, form, "compose".equals(mode) ? Normalizer2.Mode.COMPOSE : Normalize... | [
"public",
"ICUNormalizer2FilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"String",
"form",
"=",
"get",
"(",
"args",
",",
"\"form\"",
",",
"\"nfkc_cf\"",
")",
";",
"String",
"mode",
"=",
"... | public ICUNormalizer2FilterFactory(IDictionary<string, string> args): base(args){string name = Get(args, "name", "nfkc_cf");string mode = Get(args, "mode", new string[] { "compose", "decompose" }, "compose");Normalizer2 normalizer = Normalizer2.GetInstance(null, name, "compose".Equals(mode, StringComparison.Ordinal) ? ... | train | false |
5,029 | public LongBuffer compact() {throw new ReadOnlyBufferException();}
| [
"public",
"LongBuffer",
"compact",
"(",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] | public override java.nio.LongBuffer compact(){throw new java.nio.ReadOnlyBufferException();}
| train | false |
5,030 | public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChild() == null)return "";return getChild().toQueryString(escapeSyntaxParser) + "~"+ getValueString();}
| [
"public",
"CharSequence",
"toQueryString",
"(",
"EscapeQuerySyntax",
"escapeSyntaxParser",
")",
"{",
"if",
"(",
"getChild",
"(",
")",
"==",
"null",
")",
"return",
"\"\"",
";",
"return",
"getChild",
"(",
")",
".",
"toQueryString",
"(",
"escapeSyntaxParser",
")",
... | public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){if (GetChild() == null)return "";return GetChild().ToQueryString(escapeSyntaxParser) + "~"+ GetValueString();}
| train | false |
5,031 | public GetResolverRuleAssociationResult getResolverRuleAssociation(GetResolverRuleAssociationRequest request) {request = beforeClientExecution(request);return executeGetResolverRuleAssociation(request);}
| [
"public",
"GetResolverRuleAssociationResult",
"getResolverRuleAssociation",
"(",
"GetResolverRuleAssociationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetResolverRuleAssociation",
"(",
"request",
")",
";... | public virtual GetResolverRuleAssociationResponse GetResolverRuleAssociation(GetResolverRuleAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetResolverRuleAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetResolverRuleAssociationResponseUnmarshaller.Instanc... | train | true |
5,032 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {return arg0;}
| [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"arg0",
")",
"{",
"return",
"arg0",
";",
"}"
] | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){return arg0;}
| train | false |
5,033 | public Set<String> getRemoved() {return Collections.unmodifiableSet(diff.getRemoved());}
| [
"public",
"Set",
"<",
"String",
">",
"getRemoved",
"(",
")",
"{",
"return",
"Collections",
".",
"unmodifiableSet",
"(",
"diff",
".",
"getRemoved",
"(",
")",
")",
";",
"}"
] | public virtual ICollection<string> GetRemoved(){return Sharpen.Collections.UnmodifiableSet(diff.GetRemoved());}
| train | false |
5,034 | public void serialize(LittleEndianOutput out) {out.writeInt(getXPosition());out.writeInt(getYPosition());out.writeInt(getWidth());out.writeInt(getHeight());out.writeShort(field5_grbit);out.writeShort(field6_unknown);}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeInt",
"(",
"getXPosition",
"(",
")",
")",
";",
"out",
".",
"writeInt",
"(",
"getYPosition",
"(",
")",
")",
";",
"out",
".",
"writeInt",
"(",
"getWidth",
"(",
"... | public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(XPosition);out1.WriteInt(YPosition);out1.WriteInt(Width);out1.WriteInt(Height);out1.WriteShort(field5_grbit);out1.WriteShort(field6_icrt);}
| train | false |
5,035 | public TokenStream create(TokenStream input) {return new BulgarianStemFilter(input);}
| [
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"BulgarianStemFilter",
"(",
"input",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new BulgarianStemFilter(input);}
| train | false |
5,036 | public GetClientCertificateResult getClientCertificate(GetClientCertificateRequest request) {request = beforeClientExecution(request);return executeGetClientCertificate(request);}
| [
"public",
"GetClientCertificateResult",
"getClientCertificate",
"(",
"GetClientCertificateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetClientCertificate",
"(",
"request",
")",
";",
"}"
] | public virtual GetClientCertificateResponse GetClientCertificate(GetClientCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetClientCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetClientCertificateResponseUnmarshaller.Instance;return Invoke<GetClientCerti... | train | true |
5,037 | public boolean equals( Object o ) {return o instanceof PorterStemmer;}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"o",
")",
"{",
"return",
"o",
"instanceof",
"PorterStemmer",
";",
"}"
] | public override bool Equals(object o){return o is PorterStemmer;}
| train | false |
5,038 | @Override public void clear() {filteredEntrySet.clear();}
| [
"@",
"Override",
"public",
"void",
"clear",
"(",
")",
"{",
"filteredEntrySet",
".",
"clear",
"(",
")",
";",
"}"
] | public override void clear(){this._enclosing.clear();}
| train | false |
5,039 | public long readLong() throws IOException {return primitiveTypes.readLong();}
| [
"public",
"long",
"readLong",
"(",
")",
"throws",
"IOException",
"{",
"return",
"primitiveTypes",
".",
"readLong",
"(",
")",
";",
"}"
] | public virtual long readLong(){throw new System.NotImplementedException();}
| train | false |
5,040 | public byte[] toByteArray() throws IOException {if (onDiskFile == null) {return super.toByteArray();}final long len = length();if (Integer.MAX_VALUE < len)throw new OutOfMemoryError(JGitText.get().lengthExceedsMaximumArraySize);final byte[] out = new byte[(int) len];try (FileInputStream in = new FileInputStream(onDiskF... | [
"public",
"byte",
"[",
"]",
"toByteArray",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"onDiskFile",
"==",
"null",
")",
"{",
"return",
"super",
".",
"toByteArray",
"(",
")",
";",
"}",
"final",
"long",
"len",
"=",
"length",
"(",
")",
";",
"if",... | public override byte[] ToByteArray(){if (onDiskFile == null){return base.ToByteArray();}long len = Length();if (int.MaxValue < len){throw new OutOfMemoryException(JGitText.Get().lengthExceedsMaximumArraySize);}byte[] @out = new byte[(int)len];FileInputStream @in = new FileInputStream(onDiskFile);try{IOUtil.ReadFully(@i... | train | false |
5,042 | public CheckDNSAvailabilityRequest(String cNAMEPrefix) {setCNAMEPrefix(cNAMEPrefix);}
| [
"public",
"CheckDNSAvailabilityRequest",
"(",
"String",
"cNAMEPrefix",
")",
"{",
"setCNAMEPrefix",
"(",
"cNAMEPrefix",
")",
";",
"}"
] | public CheckDNSAvailabilityRequest(string cnamePrefix){_cnamePrefix = cnamePrefix;}
| train | false |
5,043 | public DescribeVpcAttributeResult describeVpcAttribute(DescribeVpcAttributeRequest request) {request = beforeClientExecution(request);return executeDescribeVpcAttribute(request);}
| [
"public",
"DescribeVpcAttributeResult",
"describeVpcAttribute",
"(",
"DescribeVpcAttributeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeVpcAttribute",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeVpcAttributeResponse DescribeVpcAttribute(DescribeVpcAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcAttributeResponseUnmarshaller.Instance;return Invoke<DescribeVpcAtt... | train | true |
5,044 | public AddResourcePermissionsResult addResourcePermissions(AddResourcePermissionsRequest request) {request = beforeClientExecution(request);return executeAddResourcePermissions(request);}
| [
"public",
"AddResourcePermissionsResult",
"addResourcePermissions",
"(",
"AddResourcePermissionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAddResourcePermissions",
"(",
"request",
")",
";",
"}"
] | public virtual AddResourcePermissionsResponse AddResourcePermissions(AddResourcePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddResourcePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = AddResourcePermissionsResponseUnmarshaller.Instance;return Invoke<AddR... | train | true |
5,045 | public DisassociateTrialComponentResult disassociateTrialComponent(DisassociateTrialComponentRequest request) {request = beforeClientExecution(request);return executeDisassociateTrialComponent(request);}
| [
"public",
"DisassociateTrialComponentResult",
"disassociateTrialComponent",
"(",
"DisassociateTrialComponentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisassociateTrialComponent",
"(",
"request",
")",
";... | public virtual DisassociateTrialComponentResponse DisassociateTrialComponent(DisassociateTrialComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateTrialComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateTrialComponentResponseUnmarshaller.Instanc... | train | false |
5,046 | public boolean hasNext() {return nextExternal != null;}
| [
"public",
"boolean",
"hasNext",
"(",
")",
"{",
"return",
"nextExternal",
"!=",
"null",
";",
"}"
] | public virtual bool hasNext(){return this._nextEntry != null;}
| train | false |
5,047 | public void removeCategory() {remove1stProperty(PropertyIDMap.PID_CATEGORY);}
| [
"public",
"void",
"removeCategory",
"(",
")",
"{",
"remove1stProperty",
"(",
"PropertyIDMap",
".",
"PID_CATEGORY",
")",
";",
"}"
] | public void RemoveCategory(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_CATEGORY);}
| train | false |
5,048 | public PutConfigurationSetSendingOptionsResult putConfigurationSetSendingOptions(PutConfigurationSetSendingOptionsRequest request) {request = beforeClientExecution(request);return executePutConfigurationSetSendingOptions(request);}
| [
"public",
"PutConfigurationSetSendingOptionsResult",
"putConfigurationSetSendingOptions",
"(",
"PutConfigurationSetSendingOptionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutConfigurationSetSendingOptions",
"... | public virtual PutConfigurationSetSendingOptionsResponse PutConfigurationSetSendingOptions(PutConfigurationSetSendingOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConfigurationSetSendingOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConfigurationSetSending... | train | true |
5,049 | public DisableEbsEncryptionByDefaultResult disableEbsEncryptionByDefault(DisableEbsEncryptionByDefaultRequest request) {request = beforeClientExecution(request);return executeDisableEbsEncryptionByDefault(request);}
| [
"public",
"DisableEbsEncryptionByDefaultResult",
"disableEbsEncryptionByDefault",
"(",
"DisableEbsEncryptionByDefaultRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisableEbsEncryptionByDefault",
"(",
"request",... | public virtual DisableEbsEncryptionByDefaultResponse DisableEbsEncryptionByDefault(DisableEbsEncryptionByDefaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableEbsEncryptionByDefaultRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableEbsEncryptionByDefaultResponseUnmar... | train | false |
5,050 | public Iterator<E> iterator() {return listIterator(0);}
| [
"public",
"Iterator",
"<",
"E",
">",
"iterator",
"(",
")",
"{",
"return",
"listIterator",
"(",
"0",
")",
";",
"}"
] | public override java.util.Iterator<E> iterator(){return listIterator(0);}
| train | false |
5,051 | public void deprecateDomain(DeprecateDomainRequest request) {request = beforeClientExecution(request);executeDeprecateDomain(request);}
| [
"public",
"void",
"deprecateDomain",
"(",
"DeprecateDomainRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"executeDeprecateDomain",
"(",
"request",
")",
";",
"}"
] | public virtual DeprecateDomainResponse DeprecateDomain(DeprecateDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeprecateDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = DeprecateDomainResponseUnmarshaller.Instance;return Invoke<DeprecateDomainResponse>(request, optio... | train | false |
5,052 | public GetSegmentExportJobsResult getSegmentExportJobs(GetSegmentExportJobsRequest request) {request = beforeClientExecution(request);return executeGetSegmentExportJobs(request);}
| [
"public",
"GetSegmentExportJobsResult",
"getSegmentExportJobs",
"(",
"GetSegmentExportJobsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetSegmentExportJobs",
"(",
"request",
")",
";",
"}"
] | public virtual GetSegmentExportJobsResponse GetSegmentExportJobs(GetSegmentExportJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSegmentExportJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSegmentExportJobsResponseUnmarshaller.Instance;return Invoke<GetSegmentExpo... | train | true |
5,053 | public boolean contains(Object value) {return containsValue(value);}
| [
"public",
"boolean",
"contains",
"(",
"Object",
"value",
")",
"{",
"return",
"containsValue",
"(",
"value",
")",
";",
"}"
] | public virtual bool contains(object value){return containsValue(value);}
| train | false |
5,054 | public int getEndOffset() {return endOffset;}
| [
"public",
"int",
"getEndOffset",
"(",
")",
"{",
"return",
"endOffset",
";",
"}"
] | public virtual int GetEndOffset(){return endOffset;}
| train | false |
5,055 | public void enterRecursionRule(ParserRuleContext localctx, int ruleIndex) {enterRecursionRule(localctx, getATN().ruleToStartState[ruleIndex].stateNumber, ruleIndex, 0);}
| [
"public",
"void",
"enterRecursionRule",
"(",
"ParserRuleContext",
"localctx",
",",
"int",
"ruleIndex",
")",
"{",
"enterRecursionRule",
"(",
"localctx",
",",
"getATN",
"(",
")",
".",
"ruleToStartState",
"[",
"ruleIndex",
"]",
".",
"stateNumber",
",",
"ruleIndex",
... | public virtual void EnterRecursionRule(ParserRuleContext localctx, int ruleIndex){EnterRecursionRule(localctx, Atn.ruleToStartState[ruleIndex].stateNumber, ruleIndex, 0);}
| train | false |
5,056 | public File getEntryFile() {return ((FileEntry) current()).getFile();}
| [
"public",
"File",
"getEntryFile",
"(",
")",
"{",
"return",
"(",
"(",
"FileEntry",
")",
"current",
"(",
")",
")",
".",
"getFile",
"(",
")",
";",
"}"
] | public virtual FilePath GetEntryFile(){return ((FileTreeIterator.FileEntry)Current()).GetFile();}
| train | false |
5,057 | public RevFilter clone() {return this;}
| [
"public",
"RevFilter",
"clone",
"(",
")",
"{",
"return",
"this",
";",
"}"
] | public override RevFilter Clone(){return this;}
| train | false |
5,058 | public void setEnabled(boolean on) {enabled = on;}
| [
"public",
"void",
"setEnabled",
"(",
"boolean",
"on",
")",
"{",
"enabled",
"=",
"on",
";",
"}"
] | public virtual void SetEnabled(bool on){enabled = on;}
| train | false |
5,059 | public UpdatePushTemplateResult updatePushTemplate(UpdatePushTemplateRequest request) {request = beforeClientExecution(request);return executeUpdatePushTemplate(request);}
| [
"public",
"UpdatePushTemplateResult",
"updatePushTemplate",
"(",
"UpdatePushTemplateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdatePushTemplate",
"(",
"request",
")",
";",
"}"
] | public virtual UpdatePushTemplateResponse UpdatePushTemplate(UpdatePushTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePushTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePushTemplateResponseUnmarshaller.Instance;return Invoke<UpdatePushTemplateRespon... | train | false |
5,060 | public String toString() {return "SimpleFSLock(path=" + path + ",creationTime=" + creationTime + ")";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"SimpleFSLock(path=\"",
"+",
"path",
"+",
"\",creationTime=\"",
"+",
"creationTime",
"+",
"\")\"",
";",
"}"
] | public override string ToString(){return "SimpleFSLock@" + lockFile;}
| train | false |
5,061 | public PrintWriter append(char c) {write(c);return this;}
| [
"public",
"PrintWriter",
"append",
"(",
"char",
"c",
")",
"{",
"write",
"(",
"c",
")",
";",
"return",
"this",
";",
"}"
] | public override java.io.Writer append(char c){write(c);return this;}
| train | false |
5,062 | public GetStageResult getStage(GetStageRequest request) {request = beforeClientExecution(request);return executeGetStage(request);}
| [
"public",
"GetStageResult",
"getStage",
"(",
"GetStageRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetStage",
"(",
"request",
")",
";",
"}"
] | public virtual GetStageResponse GetStage(GetStageRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetStageRequestMarshaller.Instance;options.ResponseUnmarshaller = GetStageResponseUnmarshaller.Instance;return Invoke<GetStageResponse>(request, options);}
| train | true |
5,063 | public ValueEval evaluate(ValueEval[] args, int srcCellRow, int srcCellCol) {int nArgs = args.length;if (nArgs < 1) {return ErrorEval.VALUE_INVALID;}if (nArgs > 30) {return ErrorEval.VALUE_INVALID;}int temp = 0;for(int i=0; i<nArgs; i++) {temp += CountUtils.countArg(args[i], _predicate);}return new NumberEval(temp);}
| [
"public",
"ValueEval",
"evaluate",
"(",
"ValueEval",
"[",
"]",
"args",
",",
"int",
"srcCellRow",
",",
"int",
"srcCellCol",
")",
"{",
"int",
"nArgs",
"=",
"args",
".",
"length",
";",
"if",
"(",
"nArgs",
"<",
"1",
")",
"{",
"return",
"ErrorEval",
".",
... | public ValueEval Evaluate(ValueEval[] args, int srcCellRow, int srcCellCol){int nArgs = args.Length;if (nArgs < 1){return ErrorEval.VALUE_INVALID;}if (nArgs > 30){return ErrorEval.VALUE_INVALID;}int temp = 0;for (int i = 0; i < nArgs; i++){temp += CountUtils.CountArg(args[i], _predicate);}return new NumberEval(temp);}
| train | false |
5,064 | public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {switch (args.length) {case 1:return fixed(args[0], new NumberEval(2), BoolEval.FALSE,srcRowIndex, srcColumnIndex);case 2:return fixed(args[0], args[1], BoolEval.FALSE,srcRowIndex, srcColumnIndex);case 3:return fixed(args[0], args[1], args... | [
"public",
"ValueEval",
"evaluate",
"(",
"ValueEval",
"[",
"]",
"args",
",",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
")",
"{",
"switch",
"(",
"args",
".",
"length",
")",
"{",
"case",
"1",
":",
"return",
"fixed",
"(",
"args",
"[",
"0",
"]",
... | public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){switch (args.Length){case 1:return doFixed(args[0], new NumberEval(2), BoolEval.FALSE,srcRowIndex, srcColumnIndex);case 2:return doFixed(args[0], args[1], BoolEval.FALSE,srcRowIndex, srcColumnIndex);case 3:return doFixed(args[0], args[1], ... | train | false |
5,065 | public void clear() {n = 0;}
| [
"public",
"void",
"clear",
"(",
")",
"{",
"n",
"=",
"0",
";",
"}"
] | public virtual void Clear(){n = 0;}
| train | false |
5,066 | public Iterator<ThreadState> allActiveThreadStates() {return getPerThreadsIterator(perThreadPool.getActiveThreadStateCount());}
| [
"public",
"Iterator",
"<",
"ThreadState",
">",
"allActiveThreadStates",
"(",
")",
"{",
"return",
"getPerThreadsIterator",
"(",
"perThreadPool",
".",
"getActiveThreadStateCount",
"(",
")",
")",
";",
"}"
] | public IEnumerator<ThreadState> AllActiveThreadStates(){return GetPerThreadsIterator(perThreadPool.NumThreadStatesActive);}
| train | false |
5,067 | public EnglishMinimalStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"EnglishMinimalStemFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"... | public EnglishMinimalStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
| train | false |
5,068 | public NameRecord getNameRecord(int index){return linkTable.getNameRecord(index);}
| [
"public",
"NameRecord",
"getNameRecord",
"(",
"int",
"index",
")",
"{",
"return",
"linkTable",
".",
"getNameRecord",
"(",
"index",
")",
";",
"}"
] | public NameRecord GetNameRecord(int index){return linkTable.GetNameRecord(index);}
| train | false |
5,069 | public String printQueries() {String newline = System.getProperty("line.separator");StringBuilder sb = new StringBuilder();if (queries != null) {for (int i = 0; i < queries.length; i++) {sb.append(i).append(". ").append(queries[i].getClass().getSimpleName()).append(" - ").append(queries[i].toString());sb.append(newline... | [
"public",
"String",
"printQueries",
"(",
")",
"{",
"String",
"newline",
"=",
"System",
".",
"getProperty",
"(",
"\"line.separator\"",
")",
";",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"if",
"(",
"queries",
"!=",
"null",
")",
"{",... | public virtual string PrintQueries(){string newline = Environment.NewLine;StringBuilder sb = new StringBuilder();if (m_queries != null){for (int i = 0; i < m_queries.Length; i++){sb.Append(i + ". " + m_queries[i].GetType().Name + " - " + m_queries[i].ToString());sb.Append(newline);}}return sb.ToString();}
| train | false |
5,070 | public SkipWaitTimeForInstanceTerminationResult skipWaitTimeForInstanceTermination(SkipWaitTimeForInstanceTerminationRequest request) {request = beforeClientExecution(request);return executeSkipWaitTimeForInstanceTermination(request);}
| [
"public",
"SkipWaitTimeForInstanceTerminationResult",
"skipWaitTimeForInstanceTermination",
"(",
"SkipWaitTimeForInstanceTerminationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSkipWaitTimeForInstanceTermination",... | public virtual SkipWaitTimeForInstanceTerminationResponse SkipWaitTimeForInstanceTermination(SkipWaitTimeForInstanceTerminationRequest request){var options = new InvokeOptions();options.RequestMarshaller = SkipWaitTimeForInstanceTerminationRequestMarshaller.Instance;options.ResponseUnmarshaller = SkipWaitTimeForInstanc... | train | false |
5,071 | public void drawRoundRect(int x, int y, int width, int height,int arcWidth, int arcHeight){if (logger.check( POILogger.WARN ))logger.log(POILogger.WARN,"drawRoundRect not supported");}
| [
"public",
"void",
"drawRoundRect",
"(",
"int",
"x",
",",
"int",
"y",
",",
"int",
"width",
",",
"int",
"height",
",",
"int",
"arcWidth",
",",
"int",
"arcHeight",
")",
"{",
"if",
"(",
"logger",
".",
"check",
"(",
"POILogger",
".",
"WARN",
")",
")",
"... | public void DrawRoundRect(int x, int y, int width, int height,int arcWidth, int arcHeight){if (Logger.Check(POILogger.WARN))Logger.Log(POILogger.WARN, "DrawRoundRect not supported");}
| train | false |
5,072 | public EdgeNGramFilterFactory(Map<String, String> args) {super(args);minGramSize = requireInt(args, "minGramSize");maxGramSize = requireInt(args, "maxGramSize");preserveOriginal = getBoolean(args, "preserveOriginal", EdgeNGramTokenFilter.DEFAULT_PRESERVE_ORIGINAL);if (!args.isEmpty()) {throw new IllegalArgumentExceptio... | [
"public",
"EdgeNGramFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"minGramSize",
"=",
"requireInt",
"(",
"args",
",",
"\"minGramSize\"",
")",
";",
"maxGramSize",
"=",
"requireInt",
"(",
"ar... | public EdgeNGramFilterFactory(IDictionary<string, string> args): base(args){minGramSize = GetInt32(args, "minGramSize", EdgeNGramTokenFilter.DEFAULT_MIN_GRAM_SIZE);maxGramSize = GetInt32(args, "maxGramSize", EdgeNGramTokenFilter.DEFAULT_MAX_GRAM_SIZE);side = Get(args, "side", EdgeNGramTokenFilter.Side.FRONT.ToString())... | train | false |
5,073 | public GetApplicationRevisionResult getApplicationRevision(GetApplicationRevisionRequest request) {request = beforeClientExecution(request);return executeGetApplicationRevision(request);}
| [
"public",
"GetApplicationRevisionResult",
"getApplicationRevision",
"(",
"GetApplicationRevisionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetApplicationRevision",
"(",
"request",
")",
";",
"}"
] | public virtual GetApplicationRevisionResponse GetApplicationRevision(GetApplicationRevisionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApplicationRevisionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApplicationRevisionResponseUnmarshaller.Instance;return Invoke<GetA... | train | true |
5,074 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex,ValueEval arg0, ValueEval arg1, ValueEval arg2) {return fixed(arg0, arg1, arg2, srcRowIndex, srcColumnIndex);}
| [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"arg0",
",",
"ValueEval",
"arg1",
",",
"ValueEval",
"arg2",
")",
"{",
"return",
"fixed",
"(",
"arg0",
",",
"arg1",
",",
"arg2",
",",
"srcRowIndex",
... | public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex,ValueEval arg0, ValueEval arg1, ValueEval arg2){return doFixed(arg0, arg1, arg2, srcRowIndex, srcColumnIndex);}
| train | false |
5,075 | public static final byte[] apply(byte[] base, byte[] delta) {return apply(base, delta, null);}
| [
"public",
"static",
"final",
"byte",
"[",
"]",
"apply",
"(",
"byte",
"[",
"]",
"base",
",",
"byte",
"[",
"]",
"delta",
")",
"{",
"return",
"apply",
"(",
"base",
",",
"delta",
",",
"null",
")",
";",
"}"
] | public static byte[] Apply(byte[] @base, byte[] delta){return Apply(@base, delta, null);}
| train | false |
5,076 | public static TreeFilter create(Collection<PathFilter> paths) {if (paths.isEmpty())throw new IllegalArgumentException(JGitText.get().atLeastOnePathIsRequired);final PathFilter[] p = new PathFilter[paths.size()];paths.toArray(p);return create(p);}
| [
"public",
"static",
"TreeFilter",
"create",
"(",
"Collection",
"<",
"PathFilter",
">",
"paths",
")",
"{",
"if",
"(",
"paths",
".",
"isEmpty",
"(",
")",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"atLeastOne... | public static TreeFilter Create(ICollection<PathFilter> paths){if (paths.IsEmpty()){throw new ArgumentException(JGitText.Get().atLeastOnePathIsRequired);}PathFilter[] p = new PathFilter[paths.Count];Sharpen.Collections.ToArray(paths, p);return Create(p);}
| train | false |
5,077 | @Override public Iterator<E> iterator() {return new ArrayListIterator();}
| [
"@",
"Override",
"public",
"Iterator",
"<",
"E",
">",
"iterator",
"(",
")",
"{",
"return",
"new",
"ArrayListIterator",
"(",
")",
";",
"}"
] | public override java.util.Iterator<E> iterator(){return new java.util.ArrayList<E>.ArrayListIterator(this);}
| train | false |
5,078 | public boolean isClean() {return clean;}
| [
"public",
"boolean",
"isClean",
"(",
")",
"{",
"return",
"clean",
";",
"}"
] | public virtual bool IsClean(){return clean;}
| train | false |
5,080 | public UpdateStackInstancesResult updateStackInstances(UpdateStackInstancesRequest request) {request = beforeClientExecution(request);return executeUpdateStackInstances(request);}
| [
"public",
"UpdateStackInstancesResult",
"updateStackInstances",
"(",
"UpdateStackInstancesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateStackInstances",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateStackInstancesResponse UpdateStackInstances(UpdateStackInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateStackInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateStackInstancesResponseUnmarshaller.Instance;return Invoke<UpdateStackIns... | train | true |
5,081 | public ValueEval getItem(int index) {if(index >= _size) {throw new ArrayIndexOutOfBoundsException("Specified index (" + index+ ") is outside the allowed range (0.." + (_size-1) + ")");}int sheetIndex = _re.getFirstSheetIndex() + index;return _re.getInnerValueEval(sheetIndex);}
| [
"public",
"ValueEval",
"getItem",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"index",
">=",
"_size",
")",
"{",
"throw",
"new",
"ArrayIndexOutOfBoundsException",
"(",
"\"Specified index (\"",
"+",
"index",
"+",
"\") is outside the allowed range (0..\"",
"+",
"(",
"_... | public ValueEval GetItem(int index){if (index >= _size){throw new IndexOutOfRangeException("Specified index (" + index+ ") is outside the allowed range (0.." + (_size - 1) + ")");}int sheetIndex = _re.FirstSheetIndex + index;return _re.GetInnerValueEval(sheetIndex);}
| train | false |
5,082 | public GetApiMappingsResult getApiMappings(GetApiMappingsRequest request) {request = beforeClientExecution(request);return executeGetApiMappings(request);}
| [
"public",
"GetApiMappingsResult",
"getApiMappings",
"(",
"GetApiMappingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetApiMappings",
"(",
"request",
")",
";",
"}"
] | public virtual GetApiMappingsResponse GetApiMappings(GetApiMappingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApiMappingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApiMappingsResponseUnmarshaller.Instance;return Invoke<GetApiMappingsResponse>(request, options);}
| train | true |
5,083 | public ServerCertificateMetadata(String path, String serverCertificateName, String serverCertificateId, String arn) {setPath(path);setServerCertificateName(serverCertificateName);setServerCertificateId(serverCertificateId);setArn(arn);}
| [
"public",
"ServerCertificateMetadata",
"(",
"String",
"path",
",",
"String",
"serverCertificateName",
",",
"String",
"serverCertificateId",
",",
"String",
"arn",
")",
"{",
"setPath",
"(",
"path",
")",
";",
"setServerCertificateName",
"(",
"serverCertificateName",
")",... | public ServerCertificateMetadata(string path, string serverCertificateName, string serverCertificateId, string arn){_path = path;_serverCertificateName = serverCertificateName;_serverCertificateId = serverCertificateId;_arn = arn;}
| train | false |
5,084 | public ListLedgersResult listLedgers(ListLedgersRequest request) {request = beforeClientExecution(request);return executeListLedgers(request);}
| [
"public",
"ListLedgersResult",
"listLedgers",
"(",
"ListLedgersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListLedgers",
"(",
"request",
")",
";",
"}"
] | public virtual ListLedgersResponse ListLedgers(ListLedgersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListLedgersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListLedgersResponseUnmarshaller.Instance;return Invoke<ListLedgersResponse>(request, options);}
| train | false |
5,085 | public UnknownFormatConversionException(String s) {if (s == null) {throw new NullPointerException();}this.s = s;}
| [
"public",
"UnknownFormatConversionException",
"(",
"String",
"s",
")",
"{",
"if",
"(",
"s",
"==",
"null",
")",
"{",
"throw",
"new",
"NullPointerException",
"(",
")",
";",
"}",
"this",
".",
"s",
"=",
"s",
";",
"}"
] | public UnknownFormatConversionException(string s){if (s == null){throw new System.ArgumentNullException();}this.s = s;}
| train | false |
5,086 | public BytesRef next() throws IOException {if (done) {return null;}if (isFirstLine) {isFirstLine = false;return spare.get();}line = in.readLine();if (line != null) {String[] fields = line.split(fieldDelimiter);if (fields.length > 3) {throw new IllegalArgumentException("More than 3 fields in one line");} else if (fields... | [
"public",
"BytesRef",
"next",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"done",
")",
"{",
"return",
"null",
";",
"}",
"if",
"(",
"isFirstLine",
")",
"{",
"isFirstLine",
"=",
"false",
";",
"return",
"spare",
".",
"get",
"(",
")",
";",
"}",
... | public BytesRef Next(){if (outerInstance.done){return null;}if (isFirstLine){isFirstLine = false;return spare;}outerInstance.line = outerInstance.@in.ReadLine();if (outerInstance.line != null){string[] fields = outerInstance.line.Split(new string[] { outerInstance.fieldDelimiter }, StringSplitOptions.RemoveEmptyEntries... | train | false |
5,087 | public String getRemote() {return remote;}
| [
"public",
"String",
"getRemote",
"(",
")",
"{",
"return",
"remote",
";",
"}"
] | public virtual string GetRemote(){return remote;}
| train | false |
5,088 | public DefaultUDFFinder(String[] functionNames, FreeRefFunction[] functionImpls) {int nFuncs = functionNames.length;if (functionImpls.length != nFuncs) {throw new IllegalArgumentException("Mismatch in number of function names and implementations");}HashMap<String, FreeRefFunction> m = new HashMap<>(nFuncs * 3 / 2);for ... | [
"public",
"DefaultUDFFinder",
"(",
"String",
"[",
"]",
"functionNames",
",",
"FreeRefFunction",
"[",
"]",
"functionImpls",
")",
"{",
"int",
"nFuncs",
"=",
"functionNames",
".",
"length",
";",
"if",
"(",
"functionImpls",
".",
"length",
"!=",
"nFuncs",
")",
"{... | public DefaultUDFFinder(String[] functionNames, FreeRefFunction[] functionImpls){int nFuncs = functionNames.Length;if (functionImpls.Length != nFuncs){throw new ArgumentException("Mismatch in number of function names and implementations");}Dictionary<String, FreeRefFunction> m = new Dictionary<String, FreeRefFunction>(... | train | false |
5,089 | public void drawOval(int x, int y, int width, int height){HSSFSimpleShape shape = escherGroup.createShape(new HSSFChildAnchor(x,y,x+width,y+height) );shape.setShapeType(HSSFSimpleShape.OBJECT_TYPE_OVAL);shape.setLineWidth(0);shape.setLineStyleColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());shape... | [
"public",
"void",
"drawOval",
"(",
"int",
"x",
",",
"int",
"y",
",",
"int",
"width",
",",
"int",
"height",
")",
"{",
"HSSFSimpleShape",
"shape",
"=",
"escherGroup",
".",
"createShape",
"(",
"new",
"HSSFChildAnchor",
"(",
"x",
",",
"y",
",",
"x",
"+",
... | public void DrawOval(int x, int y, int width, int height){HSSFSimpleShape shape = escherGroup.CreateShape(new HSSFChildAnchor(x, y, x + width, y + height));shape.ShapeType = (HSSFSimpleShape.OBJECT_TYPE_OVAL);shape.LineWidth = 0;shape.SetLineStyleColor(foreground.R, foreground.G, foreground.B);shape.IsNoFill = (true);}... | train | false |
5,090 | public static FontUnderline valueOf(int value){return _table[value];}
| [
"public",
"static",
"FontUnderline",
"valueOf",
"(",
"int",
"value",
")",
"{",
"return",
"_table",
"[",
"value",
"]",
";",
"}"
] | public static FontUnderline ValueOf(int value){return _table[value];}
| train | false |
5,091 | public PutAttributesRequest(String domainName, String itemName, java.util.List<ReplaceableAttribute> attributes) {setDomainName(domainName);setItemName(itemName);setAttributes(attributes);}
| [
"public",
"PutAttributesRequest",
"(",
"String",
"domainName",
",",
"String",
"itemName",
",",
"java",
".",
"util",
".",
"List",
"<",
"ReplaceableAttribute",
">",
"attributes",
")",
"{",
"setDomainName",
"(",
"domainName",
")",
";",
"setItemName",
"(",
"itemName... | public PutAttributesRequest(string domainName, string itemName, List<ReplaceableAttribute> attributes){_domainName = domainName;_itemName = itemName;_attributes = attributes;}
| train | false |
5,092 | public ListExportsResult listExports(ListExportsRequest request) {request = beforeClientExecution(request);return executeListExports(request);}
| [
"public",
"ListExportsResult",
"listExports",
"(",
"ListExportsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListExports",
"(",
"request",
")",
";",
"}"
] | public virtual ListExportsResponse ListExports(ListExportsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListExportsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListExportsResponseUnmarshaller.Instance;return Invoke<ListExportsResponse>(request, options);}
| train | true |
5,093 | public OpenStringBuilder(int size) {buf = new char[size];}
| [
"public",
"OpenStringBuilder",
"(",
"int",
"size",
")",
"{",
"buf",
"=",
"new",
"char",
"[",
"size",
"]",
";",
"}"
] | public OpenStringBuilder(int size){m_buf = new char[size];}
| train | false |
5,094 | public StopTextTranslationJobResult stopTextTranslationJob(StopTextTranslationJobRequest request) {request = beforeClientExecution(request);return executeStopTextTranslationJob(request);}
| [
"public",
"StopTextTranslationJobResult",
"stopTextTranslationJob",
"(",
"StopTextTranslationJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStopTextTranslationJob",
"(",
"request",
")",
";",
"}"
] | public virtual StopTextTranslationJobResponse StopTextTranslationJob(StopTextTranslationJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTextTranslationJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTextTranslationJobResponseUnmarshaller.Instance;return Invoke<Stop... | train | false |
5,095 | public void execute(Lexer lexer) {lexer.action(null, ruleIndex, actionIndex);}
| [
"public",
"void",
"execute",
"(",
"Lexer",
"lexer",
")",
"{",
"lexer",
".",
"action",
"(",
"null",
",",
"ruleIndex",
",",
"actionIndex",
")",
";",
"}"
] | public void Execute(Lexer lexer){lexer.Action(null, ruleIndex, actionIndex);}
| train | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.