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 |
|---|---|---|---|---|---|
3,198 | public int serializeSimplePart(byte[] data, int pos) {LittleEndian.putShort(data, pos, getId());LittleEndian.putInt(data, pos + 2, complexData.length);return 6;}
| [
"public",
"int",
"serializeSimplePart",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"pos",
")",
"{",
"LittleEndian",
".",
"putShort",
"(",
"data",
",",
"pos",
",",
"getId",
"(",
")",
")",
";",
"LittleEndian",
".",
"putInt",
"(",
"data",
",",
"pos",
"+... | public override int SerializeSimplePart(byte[] data, int pos){LittleEndian.PutShort(data, pos, Id);LittleEndian.PutInt(data, pos + 2, _complexData.Length);return 6;}
| train | false |
3,199 | public InputMismatchException(Parser recognizer) {super(recognizer, recognizer.getInputStream(), recognizer._ctx);this.setOffendingToken(recognizer.getCurrentToken());}
| [
"public",
"InputMismatchException",
"(",
"Parser",
"recognizer",
")",
"{",
"super",
"(",
"recognizer",
",",
"recognizer",
".",
"getInputStream",
"(",
")",
",",
"recognizer",
".",
"_ctx",
")",
";",
"this",
".",
"setOffendingToken",
"(",
"recognizer",
".",
"getC... | public InputMismatchException(Parser recognizer): base(recognizer, ((ITokenStream)recognizer.InputStream), recognizer.RuleContext){this.OffendingToken = recognizer.CurrentToken;}
| train | false |
3,201 | public Trec1MQReader(String name) {super();this.name = name;}
| [
"public",
"Trec1MQReader",
"(",
"String",
"name",
")",
"{",
"super",
"(",
")",
";",
"this",
".",
"name",
"=",
"name",
";",
"}"
] | public Trec1MQReader(string name): base(){this.name = name;}
| train | false |
3,202 | public String toString() {return "MergeInfo [totalMaxDoc=" + totalMaxDoc+ ", estimatedMergeBytes=" + estimatedMergeBytes + ", isExternal="+ isExternal + ", mergeMaxNumSegments=" + mergeMaxNumSegments + "]";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"MergeInfo [totalMaxDoc=\"",
"+",
"totalMaxDoc",
"+",
"\", estimatedMergeBytes=\"",
"+",
"estimatedMergeBytes",
"+",
"\", isExternal=\"",
"+",
"isExternal",
"+",
"\", mergeMaxNumSegments=\"",
"+",
"mergeMaxNumSegmen... | public override string ToString(){return "MergeInfo [totalDocCount=" + TotalDocCount+ ", estimatedMergeBytes=" + EstimatedMergeBytes + ", isExternal="+ IsExternal + ", mergeMaxNumSegments=" + MergeMaxNumSegments + "]";}
| train | false |
3,203 | public GetVaultNotificationsRequest(String vaultName) {setVaultName(vaultName);}
| [
"public",
"GetVaultNotificationsRequest",
"(",
"String",
"vaultName",
")",
"{",
"setVaultName",
"(",
"vaultName",
")",
";",
"}"
] | public GetVaultNotificationsRequest(string vaultName){_vaultName = vaultName;}
| train | false |
3,204 | public DisassociatePhoneNumbersFromVoiceConnectorGroupResult disassociatePhoneNumbersFromVoiceConnectorGroup(DisassociatePhoneNumbersFromVoiceConnectorGroupRequest request) {request = beforeClientExecution(request);return executeDisassociatePhoneNumbersFromVoiceConnectorGroup(request);}
| [
"public",
"DisassociatePhoneNumbersFromVoiceConnectorGroupResult",
"disassociatePhoneNumbersFromVoiceConnectorGroup",
"(",
"DisassociatePhoneNumbersFromVoiceConnectorGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"exec... | public virtual DisassociatePhoneNumbersFromVoiceConnectorGroupResponse DisassociatePhoneNumbersFromVoiceConnectorGroup(DisassociatePhoneNumbersFromVoiceConnectorGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociatePhoneNumbersFromVoiceConnectorGroupRequestMarshaller.Instance;o... | train | false |
3,205 | public int size() {return ConcurrentHashMap.this.size();}
| [
"public",
"int",
"size",
"(",
")",
"{",
"return",
"ConcurrentHashMap",
".",
"this",
".",
"size",
"(",
")",
";",
"}"
] | public override int size(){return this._enclosing.size();}
| train | false |
3,206 | public void addPattern(String pattern, String ivalue) {int k = ivalues.find(ivalue);if (k <= 0) {k = packValues(ivalue);ivalues.insert(ivalue, (char) k);}insert(pattern, (char) k);}
| [
"public",
"void",
"addPattern",
"(",
"String",
"pattern",
",",
"String",
"ivalue",
")",
"{",
"int",
"k",
"=",
"ivalues",
".",
"find",
"(",
"ivalue",
")",
";",
"if",
"(",
"k",
"<=",
"0",
")",
"{",
"k",
"=",
"packValues",
"(",
"ivalue",
")",
";",
"... | public virtual void AddPattern(string pattern, string ivalue){int k = ivalues.Find(ivalue);if (k <= 0){k = PackValues(ivalue);ivalues.Insert(ivalue, (char)k);}Insert(pattern, (char)k);}
| train | true |
3,207 | public boolean isSheetHidden(int sheetnum) {return getBoundSheetRec(sheetnum).isHidden();}
| [
"public",
"boolean",
"isSheetHidden",
"(",
"int",
"sheetnum",
")",
"{",
"return",
"getBoundSheetRec",
"(",
"sheetnum",
")",
".",
"isHidden",
"(",
")",
";",
"}"
] | public bool IsSheetHidden(int sheetnum){return GetBoundSheetRec(sheetnum).IsHidden;}
| train | false |
3,208 | public AddUserToGroupRequest(String groupName, String userName) {setGroupName(groupName);setUserName(userName);}
| [
"public",
"AddUserToGroupRequest",
"(",
"String",
"groupName",
",",
"String",
"userName",
")",
"{",
"setGroupName",
"(",
"groupName",
")",
";",
"setUserName",
"(",
"userName",
")",
";",
"}"
] | public AddUserToGroupRequest(string groupName, string userName){_groupName = groupName;_userName = userName;}
| train | false |
3,209 | public static double sumsq(double[] values) {double sumsq = 0;for (double value : values) {sumsq += value * value;}return sumsq;}
| [
"public",
"static",
"double",
"sumsq",
"(",
"double",
"[",
"]",
"values",
")",
"{",
"double",
"sumsq",
"=",
"0",
";",
"for",
"(",
"double",
"value",
":",
"values",
")",
"{",
"sumsq",
"+=",
"value",
"*",
"value",
";",
"}",
"return",
"sumsq",
";",
"}... | public static double Sumsq(double[] values){double sumsq = 0;for (int i = 0, iSize = values.Length; i < iSize; i++){sumsq += values[i] * values[i];}return sumsq;}
| train | false |
3,210 | public DeleteHostedZoneRequest(String id) {setId(id);}
| [
"public",
"DeleteHostedZoneRequest",
"(",
"String",
"id",
")",
"{",
"setId",
"(",
"id",
")",
";",
"}"
] | public DeleteHostedZoneRequest(string id){_id = id;}
| train | false |
3,211 | public UserSViewEnd(RecordInputStream in) {_rawData = in.readRemainder();}
| [
"public",
"UserSViewEnd",
"(",
"RecordInputStream",
"in",
")",
"{",
"_rawData",
"=",
"in",
".",
"readRemainder",
"(",
")",
";",
"}"
] | public UserSViewEnd(RecordInputStream in1){_rawData = in1.ReadRemainder();}
| train | false |
3,212 | public BatchPutScheduledUpdateGroupActionResult batchPutScheduledUpdateGroupAction(BatchPutScheduledUpdateGroupActionRequest request) {request = beforeClientExecution(request);return executeBatchPutScheduledUpdateGroupAction(request);}
| [
"public",
"BatchPutScheduledUpdateGroupActionResult",
"batchPutScheduledUpdateGroupAction",
"(",
"BatchPutScheduledUpdateGroupActionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBatchPutScheduledUpdateGroupAction",... | public virtual BatchPutScheduledUpdateGroupActionResponse BatchPutScheduledUpdateGroupAction(BatchPutScheduledUpdateGroupActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchPutScheduledUpdateGroupActionRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchPutScheduledUpdat... | train | true |
3,213 | public static EvaluationException numberError() {return new EvaluationException(ErrorEval.NUM_ERROR);}
| [
"public",
"static",
"EvaluationException",
"numberError",
"(",
")",
"{",
"return",
"new",
"EvaluationException",
"(",
"ErrorEval",
".",
"NUM_ERROR",
")",
";",
"}"
] | public static EvaluationException NumberError(){return new EvaluationException(ErrorEval.NUM_ERROR);}
| train | false |
3,214 | public String displayName() {return this.displayName;}
| [
"public",
"String",
"displayName",
"(",
")",
"{",
"return",
"this",
".",
"displayName",
";",
"}"
] | public virtual ISubscriptionOperations Subscription { get; private set; }
| train | false |
3,215 | public final boolean equals(Object o) {if (o instanceof AnyObjectId) {return equals((AnyObjectId) o);}return false;}
| [
"public",
"final",
"boolean",
"equals",
"(",
"Object",
"o",
")",
"{",
"if",
"(",
"o",
"instanceof",
"AnyObjectId",
")",
"{",
"return",
"equals",
"(",
"(",
"AnyObjectId",
")",
"o",
")",
";",
"}",
"return",
"false",
";",
"}"
] | public sealed override bool Equals(object o){if (o is AnyObjectId){return Equals((AnyObjectId)o);}else{return false;}}
| train | false |
3,216 | public DescribeSpotFleetRequestHistoryResult describeSpotFleetRequestHistory(DescribeSpotFleetRequestHistoryRequest request) {request = beforeClientExecution(request);return executeDescribeSpotFleetRequestHistory(request);}
| [
"public",
"DescribeSpotFleetRequestHistoryResult",
"describeSpotFleetRequestHistory",
"(",
"DescribeSpotFleetRequestHistoryRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeSpotFleetRequestHistory",
"(",
"r... | public virtual DescribeSpotFleetRequestHistoryResponse DescribeSpotFleetRequestHistory(DescribeSpotFleetRequestHistoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSpotFleetRequestHistoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSpotFleetRequestHistoryRes... | train | true |
3,217 | public InventoryPrefixPredicate(String prefix) {this.prefix = prefix;}
| [
"public",
"InventoryPrefixPredicate",
"(",
"String",
"prefix",
")",
"{",
"this",
".",
"prefix",
"=",
"prefix",
";",
"}"
] | public InventoryPrefixPredicate(string prefix){this.prefix = prefix;}
| train | false |
3,218 | public static synchronized MergeStrategy[] get() {final MergeStrategy[] r = new MergeStrategy[STRATEGIES.size()];STRATEGIES.values().toArray(r);return r;}
| [
"public",
"static",
"synchronized",
"MergeStrategy",
"[",
"]",
"get",
"(",
")",
"{",
"final",
"MergeStrategy",
"[",
"]",
"r",
"=",
"new",
"MergeStrategy",
"[",
"STRATEGIES",
".",
"size",
"(",
")",
"]",
";",
"STRATEGIES",
".",
"values",
"(",
")",
".",
"... | public static MergeStrategy[] Get(){lock (typeof(MergeStrategy)){MergeStrategy[] r = new MergeStrategy[STRATEGIES.Count];Sharpen.Collections.ToArray(STRATEGIES.Values, r);return r;}}
| train | false |
3,219 | public DeleteVoiceConnectorTerminationCredentialsResult deleteVoiceConnectorTerminationCredentials(DeleteVoiceConnectorTerminationCredentialsRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceConnectorTerminationCredentials(request);}
| [
"public",
"DeleteVoiceConnectorTerminationCredentialsResult",
"deleteVoiceConnectorTerminationCredentials",
"(",
"DeleteVoiceConnectorTerminationCredentialsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteVoiceC... | public virtual DeleteVoiceConnectorTerminationCredentialsResponse DeleteVoiceConnectorTerminationCredentials(DeleteVoiceConnectorTerminationCredentialsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVoiceConnectorTerminationCredentialsRequestMarshaller.Instance;options.ResponseUnmar... | train | true |
3,220 | public int mark() {if (numMarkers == 0) {lastCharBufferStart = lastChar;}int mark = -numMarkers - 1;numMarkers++;return mark;}
| [
"public",
"int",
"mark",
"(",
")",
"{",
"if",
"(",
"numMarkers",
"==",
"0",
")",
"{",
"lastCharBufferStart",
"=",
"lastChar",
";",
"}",
"int",
"mark",
"=",
"-",
"numMarkers",
"-",
"1",
";",
"numMarkers",
"++",
";",
"return",
"mark",
";",
"}"
] | public virtual int Mark(){if (numMarkers == 0){lastCharBufferStart = lastChar;}int mark = -numMarkers - 1;numMarkers++;return mark;}
| train | false |
3,221 | public ScoreCachingWrappingScorer(Scorable scorer) {this.in = scorer;}
| [
"public",
"ScoreCachingWrappingScorer",
"(",
"Scorable",
"scorer",
")",
"{",
"this",
".",
"in",
"=",
"scorer",
";",
"}"
] | public ScoreCachingWrappingScorer(Scorer scorer): base(scorer.m_weight){this.scorer = scorer;}
| train | false |
3,222 | public void skip(long count) throws IOException {assert count >= 0;if (ord + count > valueCount || ord + count < 0) {throw new EOFException();}final int skipBuffer = (int) Math.min(count, blockSize - off);off += skipBuffer;ord += skipBuffer;count -= skipBuffer;if (count == 0L) {return;}assert off == blockSize;while (co... | [
"public",
"void",
"skip",
"(",
"long",
"count",
")",
"throws",
"IOException",
"{",
"assert",
"count",
">=",
"0",
";",
"if",
"(",
"ord",
"+",
"count",
">",
"valueCount",
"||",
"ord",
"+",
"count",
"<",
"0",
")",
"{",
"throw",
"new",
"EOFException",
"(... | public void Skip(long count){Debug.Assert(count >= 0);if (ord + count > valueCount || ord + count < 0){throw new System.IO.EndOfStreamException();}int skipBuffer = (int)Math.Min(count, blockSize - off);off += skipBuffer;ord += skipBuffer;count -= skipBuffer;if (count == 0L){return;}Debug.Assert(off == blockSize);while ... | train | false |
3,223 | public GetDownloadUrlsRequest() {super("CloudPhoto", "2017-07-11", "GetDownloadUrls", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"GetDownloadUrlsRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"GetDownloadUrls\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public GetDownloadUrlsRequest(): base("CloudPhoto", "2017-07-11", "GetDownloadUrls", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
3,224 | public ListSecurityProfilesResult listSecurityProfiles(ListSecurityProfilesRequest request) {request = beforeClientExecution(request);return executeListSecurityProfiles(request);}
| [
"public",
"ListSecurityProfilesResult",
"listSecurityProfiles",
"(",
"ListSecurityProfilesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListSecurityProfiles",
"(",
"request",
")",
";",
"}"
] | public virtual ListSecurityProfilesResponse ListSecurityProfiles(ListSecurityProfilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSecurityProfilesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSecurityProfilesResponseUnmarshaller.Instance;return Invoke<ListSecurityPr... | train | true |
3,226 | public TerminalNode getToken(int ttype, int i) {if ( children==null || i < 0 || i >= children.size() ) {return null;}int j = -1; for (ParseTree o : children) {if ( o instanceof TerminalNode ) {TerminalNode tnode = (TerminalNode)o;Token symbol = tnode.getSymbol();if ( symbol.getType()==ttype ) {j++;if ( j == i ) {return... | [
"public",
"TerminalNode",
"getToken",
"(",
"int",
"ttype",
",",
"int",
"i",
")",
"{",
"if",
"(",
"children",
"==",
"null",
"||",
"i",
"<",
"0",
"||",
"i",
">=",
"children",
".",
"size",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"int",
"j",
... | public virtual ITerminalNode GetToken(int ttype, int i){if (children == null || i < 0 || i >= children.Count){return null;}int j = -1;foreach (IParseTree o in children){if (o is ITerminalNode){ITerminalNode tnode = (ITerminalNode)o;IToken symbol = tnode.Symbol;if (symbol.Type == ttype){j++;if (j == i){return tnode;}}}}... | train | false |
3,227 | public void serialize(LittleEndianOutput out) {out.writeShort(_offset);out.writeShort(_fontIndex);}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"_offset",
")",
";",
"out",
".",
"writeShort",
"(",
"_fontIndex",
")",
";",
"}"
] | public void Serialize(ILittleEndianOutput out1){out1.WriteShort(m_offset);out1.WriteShort(m_fontIndex);}
| train | false |
3,228 | public void incrementOpen() {useCnt.incrementAndGet();}
| [
"public",
"void",
"incrementOpen",
"(",
")",
"{",
"useCnt",
".",
"incrementAndGet",
"(",
")",
";",
"}"
] | public virtual void IncrementOpen(){useCnt.IncrementAndGet();}
| train | false |
3,229 | public OneMerge(List<SegmentCommitInfo> segments) {if (0 == segments.size()) {throw new RuntimeException("segments must include at least one segment");}this.segments = new ArrayList<>(segments);int count = 0;for(SegmentCommitInfo info : segments) {count += info.info.maxDoc();}totalMaxDoc = count;mergeProgress = new One... | [
"public",
"OneMerge",
"(",
"List",
"<",
"SegmentCommitInfo",
">",
"segments",
")",
"{",
"if",
"(",
"0",
"==",
"segments",
".",
"size",
"(",
")",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"segments must include at least one segment\"",
")",
";",
"}",... | public OneMerge(IList<SegmentCommitInfo> segments){if (0 == segments.Count){throw new Exception("segments must include at least one segment");}this.Segments = new List<SegmentCommitInfo>(segments);int count = 0;foreach (SegmentCommitInfo info in segments){count += info.Info.DocCount;}TotalDocCount = count;}
| train | false |
3,231 | public String toString() {StringBuilder sb = new StringBuilder(64);sb.append(getClass().getName());sb.append(" [");if (_isQuoted) {sb.append("'").append(_name).append("'");} else {sb.append(_name);}sb.append("]");return sb.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
"64",
")",
";",
"sb",
".",
"append",
"(",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
")",
";",
"sb",
".",
"append",
"(",
"\" [\"",
")",
";"... | public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(this.GetType().Name);sb.Append(" [");if (_isQuoted){sb.Append("'").Append(_name).Append("'");}else{sb.Append(_name);}sb.Append("]");return sb.ToString();}
| train | false |
3,232 | public AssociateWebsiteCertificateAuthorityResult associateWebsiteCertificateAuthority(AssociateWebsiteCertificateAuthorityRequest request) {request = beforeClientExecution(request);return executeAssociateWebsiteCertificateAuthority(request);}
| [
"public",
"AssociateWebsiteCertificateAuthorityResult",
"associateWebsiteCertificateAuthority",
"(",
"AssociateWebsiteCertificateAuthorityRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociateWebsiteCertificateAut... | public virtual AssociateWebsiteCertificateAuthorityResponse AssociateWebsiteCertificateAuthority(AssociateWebsiteCertificateAuthorityRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateWebsiteCertificateAuthorityRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateWebsi... | train | true |
3,233 | public RevFilter clone() {return new PatternSearch(pattern());}
| [
"public",
"RevFilter",
"clone",
"(",
")",
"{",
"return",
"new",
"PatternSearch",
"(",
"pattern",
"(",
")",
")",
";",
"}"
] | public override RevFilter Clone(){return new AuthorRevFilter.PatternSearch(Pattern());}
| train | false |
3,234 | public PredictionContext getParent(int index) {return null;}
| [
"public",
"PredictionContext",
"getParent",
"(",
"int",
"index",
")",
"{",
"return",
"null",
";",
"}"
] | public override PredictionContext GetParent(int index){return null;}
| train | false |
3,235 | public AttachVpnGatewayRequest(String vpnGatewayId, String vpcId) {setVpnGatewayId(vpnGatewayId);setVpcId(vpcId);}
| [
"public",
"AttachVpnGatewayRequest",
"(",
"String",
"vpnGatewayId",
",",
"String",
"vpcId",
")",
"{",
"setVpnGatewayId",
"(",
"vpnGatewayId",
")",
";",
"setVpcId",
"(",
"vpcId",
")",
";",
"}"
] | public AttachVpnGatewayRequest(string vpnGatewayId, string vpcId){_vpnGatewayId = vpnGatewayId;_vpcId = vpcId;}
| train | false |
3,236 | public void onUpdate(DocumentsWriterFlushControl control, ThreadState state) {onInsert(control, state);onDelete(control, state);}
| [
"public",
"void",
"onUpdate",
"(",
"DocumentsWriterFlushControl",
"control",
",",
"ThreadState",
"state",
")",
"{",
"onInsert",
"(",
"control",
",",
"state",
")",
";",
"onDelete",
"(",
"control",
",",
"state",
")",
";",
"}"
] | public virtual void OnUpdate(DocumentsWriterFlushControl control, ThreadState state){OnInsert(control, state);OnDelete(control, state);}
| train | false |
3,237 | public UpdateComponentResult updateComponent(UpdateComponentRequest request) {request = beforeClientExecution(request);return executeUpdateComponent(request);}
| [
"public",
"UpdateComponentResult",
"updateComponent",
"(",
"UpdateComponentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateComponent",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateComponentResponse UpdateComponent(UpdateComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance;return Invoke<UpdateComponentResponse>(request, optio... | train | false |
3,238 | public DeleteDashboardResult deleteDashboard(DeleteDashboardRequest request) {request = beforeClientExecution(request);return executeDeleteDashboard(request);}
| [
"public",
"DeleteDashboardResult",
"deleteDashboard",
"(",
"DeleteDashboardRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDashboard",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteDashboardResponse DeleteDashboard(DeleteDashboardRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDashboardRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDashboardResponseUnmarshaller.Instance;return Invoke<DeleteDashboardResponse>(request, optio... | train | false |
3,239 | public byte[] getByteBlock() {if (freeBlocks == 0) {bytesUsed.addAndGet(blockSize);return new byte[blockSize];}final byte[] b = freeByteBlocks[--freeBlocks];freeByteBlocks[freeBlocks] = null;return b;}
| [
"public",
"byte",
"[",
"]",
"getByteBlock",
"(",
")",
"{",
"if",
"(",
"freeBlocks",
"==",
"0",
")",
"{",
"bytesUsed",
".",
"addAndGet",
"(",
"blockSize",
")",
";",
"return",
"new",
"byte",
"[",
"blockSize",
"]",
";",
"}",
"final",
"byte",
"[",
"]",
... | public override byte[] GetByteBlock(){if (freeBlocks == 0){bytesUsed.AddAndGet(m_blockSize);return new byte[m_blockSize];}var b = freeByteBlocks[--freeBlocks];freeByteBlocks[freeBlocks] = null;return b;}
| train | false |
3,240 | public DisableLoggingResult disableLogging(DisableLoggingRequest request) {request = beforeClientExecution(request);return executeDisableLogging(request);}
| [
"public",
"DisableLoggingResult",
"disableLogging",
"(",
"DisableLoggingRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisableLogging",
"(",
"request",
")",
";",
"}"
] | public virtual DisableLoggingResponse DisableLogging(DisableLoggingRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableLoggingRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableLoggingResponseUnmarshaller.Instance;return Invoke<DisableLoggingResponse>(request, options);}
| train | true |
3,241 | public TokenStream create(TokenStream input) {return new CJKWidthFilter(input);}
| [
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"CJKWidthFilter",
"(",
"input",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new CJKWidthFilter(input);}
| train | false |
3,242 | public void reset(int startOffset, int endOffset) {bufferUpto = startOffset / INT_BLOCK_SIZE;bufferOffset = bufferUpto * INT_BLOCK_SIZE;this.end = endOffset;upto = startOffset;level = 1;buffer = pool.buffers[bufferUpto];upto = startOffset & INT_BLOCK_MASK;final int firstSize = IntBlockPool.LEVEL_SIZE_ARRAY[0];if (start... | [
"public",
"void",
"reset",
"(",
"int",
"startOffset",
",",
"int",
"endOffset",
")",
"{",
"bufferUpto",
"=",
"startOffset",
"/",
"INT_BLOCK_SIZE",
";",
"bufferOffset",
"=",
"bufferUpto",
"*",
"INT_BLOCK_SIZE",
";",
"this",
".",
"end",
"=",
"endOffset",
";",
"... | public void Reset(int startOffset, int endOffset){bufferUpto = startOffset / INT32_BLOCK_SIZE;bufferOffset = bufferUpto * INT32_BLOCK_SIZE;this.end = endOffset;upto = startOffset;level = 1;buffer = pool.buffers[bufferUpto];upto = startOffset & INT32_BLOCK_MASK;int firstSize = Int32BlockPool.LEVEL_SIZE_ARRAY[0];if (star... | train | false |
3,243 | public long ramBytesUsed() {return values.ramBytesUsed()+ super.ramBytesUsed()+ Long.BYTES+ RamUsageEstimator.NUM_BYTES_OBJECT_REF;}
| [
"public",
"long",
"ramBytesUsed",
"(",
")",
"{",
"return",
"values",
".",
"ramBytesUsed",
"(",
")",
"+",
"super",
".",
"ramBytesUsed",
"(",
")",
"+",
"Long",
".",
"BYTES",
"+",
"RamUsageEstimator",
".",
"NUM_BYTES_OBJECT_REF",
";",
"}"
] | public long RamBytesUsed(){return RamUsageEstimator.AlignObjectSize(3 * RamUsageEstimator.NUM_BYTES_OBJECT_REF) + docIDs.RamBytesUsed() + offsets.RamBytesUsed();}
| train | false |
3,244 | public PutItemOutcome putItem(Item item) {return putItemDelegate.putItem(item);}
| [
"public",
"PutItemOutcome",
"putItem",
"(",
"Item",
"item",
")",
"{",
"return",
"putItemDelegate",
".",
"putItem",
"(",
"item",
")",
";",
"}"
] | public void PutItem(Document doc){PutItem(doc, null);}
| train | false |
3,246 | public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[DELTA]\n");buffer.append(" .maxchange = ").append(getMaxChange()).append("\n");buffer.append("[/DELTA]\n");return buffer.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[DELTA]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .maxchange = \"",
")",
".",
"append",
"(",
... | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[DELTA]\n");buffer.Append(" .maxChange = ").Append(MaxChange).Append("\n");buffer.Append("[/DELTA]\n");return buffer.ToString();}
| train | false |
3,247 | public StartFaceDetectionResult startFaceDetection(StartFaceDetectionRequest request) {request = beforeClientExecution(request);return executeStartFaceDetection(request);}
| [
"public",
"StartFaceDetectionResult",
"startFaceDetection",
"(",
"StartFaceDetectionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStartFaceDetection",
"(",
"request",
")",
";",
"}"
] | public virtual StartFaceDetectionResponse StartFaceDetection(StartFaceDetectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartFaceDetectionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartFaceDetectionResponseUnmarshaller.Instance;return Invoke<StartFaceDetectionRespon... | train | true |
3,248 | public DataValidation createValidation(DataValidationConstraint constraint, CellRangeAddressList cellRangeAddressList) {return new HSSFDataValidation(cellRangeAddressList, constraint);}
| [
"public",
"DataValidation",
"createValidation",
"(",
"DataValidationConstraint",
"constraint",
",",
"CellRangeAddressList",
"cellRangeAddressList",
")",
"{",
"return",
"new",
"HSSFDataValidation",
"(",
"cellRangeAddressList",
",",
"constraint",
")",
";",
"}"
] | public IDataValidation CreateValidation(IDataValidationConstraint constraint, CellRangeAddressList cellRangeAddressList){return new HSSFDataValidation(cellRangeAddressList, constraint);}
| train | false |
3,249 | public DocumentStoredFieldVisitor(Set<String> fieldsToAdd) {this.fieldsToAdd = fieldsToAdd;}
| [
"public",
"DocumentStoredFieldVisitor",
"(",
"Set",
"<",
"String",
">",
"fieldsToAdd",
")",
"{",
"this",
".",
"fieldsToAdd",
"=",
"fieldsToAdd",
";",
"}"
] | public DocumentStoredFieldVisitor(ISet<string> fieldsToAdd){this.fieldsToAdd = fieldsToAdd;}
| train | false |
3,250 | public TokenStream create(TokenStream tokenStream) {return new HunspellStemFilter(tokenStream, dictionary, true, longestOnly);}
| [
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"tokenStream",
")",
"{",
"return",
"new",
"HunspellStemFilter",
"(",
"tokenStream",
",",
"dictionary",
",",
"true",
",",
"longestOnly",
")",
";",
"}"
] | public override TokenStream Create(TokenStream tokenStream){return new HunspellStemFilter(tokenStream, dictionary, true, longestOnly);}
| train | false |
3,251 | public Repository getRepository() {return repository;}
| [
"public",
"Repository",
"getRepository",
"(",
")",
"{",
"return",
"repository",
";",
"}"
] | public virtual Repository GetRepository(){return repository;}
| train | false |
3,252 | public DeleteMLModelResult deleteMLModel(DeleteMLModelRequest request) {request = beforeClientExecution(request);return executeDeleteMLModel(request);}
| [
"public",
"DeleteMLModelResult",
"deleteMLModel",
"(",
"DeleteMLModelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteMLModel",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteMLModelResponse DeleteMLModel(DeleteMLModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMLModelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMLModelResponseUnmarshaller.Instance;return Invoke<DeleteMLModelResponse>(request, options);}
| train | true |
3,253 | public GetAccountLimitResult getAccountLimit(GetAccountLimitRequest request) {request = beforeClientExecution(request);return executeGetAccountLimit(request);}
| [
"public",
"GetAccountLimitResult",
"getAccountLimit",
"(",
"GetAccountLimitRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetAccountLimit",
"(",
"request",
")",
";",
"}"
] | public virtual GetAccountLimitResponse GetAccountLimit(GetAccountLimitRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAccountLimitRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAccountLimitResponseUnmarshaller.Instance;return Invoke<GetAccountLimitResponse>(request, optio... | train | true |
3,255 | public ModifyClientVpnEndpointResult modifyClientVpnEndpoint(ModifyClientVpnEndpointRequest request) {request = beforeClientExecution(request);return executeModifyClientVpnEndpoint(request);}
| [
"public",
"ModifyClientVpnEndpointResult",
"modifyClientVpnEndpoint",
"(",
"ModifyClientVpnEndpointRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyClientVpnEndpoint",
"(",
"request",
")",
";",
"}"
] | public virtual ModifyClientVpnEndpointResponse ModifyClientVpnEndpoint(ModifyClientVpnEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClientVpnEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClientVpnEndpointResponseUnmarshaller.Instance;return Invoke... | train | true |
3,256 | public final boolean containsRow(int row) {return _firstRow <= row && _lastRow >= row;}
| [
"public",
"final",
"boolean",
"containsRow",
"(",
"int",
"row",
")",
"{",
"return",
"_firstRow",
"<=",
"row",
"&&",
"_lastRow",
">=",
"row",
";",
"}"
] | public bool ContainsRow(int row){return (_firstRow <= row) && (_lastRow >= row);}
| train | false |
3,257 | public int available() {return remainingBytes();}
| [
"public",
"int",
"available",
"(",
")",
"{",
"return",
"remainingBytes",
"(",
")",
";",
"}"
] | public override int Available(){return delegate1.Available();}
| train | false |
3,258 | public RequestEnvironmentInfoRequest(EnvironmentInfoType infoType) {setInfoType(infoType.toString());}
| [
"public",
"RequestEnvironmentInfoRequest",
"(",
"EnvironmentInfoType",
"infoType",
")",
"{",
"setInfoType",
"(",
"infoType",
".",
"toString",
"(",
")",
")",
";",
"}"
] | public RequestEnvironmentInfoRequest(EnvironmentInfoType infoType){_infoType = infoType;}
| train | false |
3,259 | public void write(byte[] buf) throws IOException {write(buf, 0, buf.length);}
| [
"public",
"void",
"write",
"(",
"byte",
"[",
"]",
"buf",
")",
"throws",
"IOException",
"{",
"write",
"(",
"buf",
",",
"0",
",",
"buf",
".",
"length",
")",
";",
"}"
] | public override void Write(int b){try{BeginWrite();dst.Write(b);}catch (ThreadInterruptedException){throw WriteTimedOut();}finally{EndWrite();}}
| train | false |
3,260 | public ResetDBClusterParameterGroupResult resetDBClusterParameterGroup(ResetDBClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeResetDBClusterParameterGroup(request);}
| [
"public",
"ResetDBClusterParameterGroupResult",
"resetDBClusterParameterGroup",
"(",
"ResetDBClusterParameterGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeResetDBClusterParameterGroup",
"(",
"request",
"... | public virtual ResetDBClusterParameterGroupResponse ResetDBClusterParameterGroup(ResetDBClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetDBClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetDBClusterParameterGroupResponseUnmarshall... | train | true |
3,261 | public void unwriteProtectWorkbook() {this.workbook.unwriteProtectWorkbook();}
| [
"public",
"void",
"unwriteProtectWorkbook",
"(",
")",
"{",
"this",
".",
"workbook",
".",
"unwriteProtectWorkbook",
"(",
")",
";",
"}"
] | public void UnwriteProtectWorkbook(){this.workbook.UnwriteProtectWorkbook();}
| train | false |
3,262 | public ANTLRInputStream(String input) {this.data = input.toCharArray();this.n = input.length();}
| [
"public",
"ANTLRInputStream",
"(",
"String",
"input",
")",
"{",
"this",
".",
"data",
"=",
"input",
".",
"toCharArray",
"(",
")",
";",
"this",
".",
"n",
"=",
"input",
".",
"length",
"(",
")",
";",
"}"
] | public AntlrInputStream(string input){this.data = input.ToCharArray();this.n = input.Length;}
| train | false |
3,263 | public ByteBuffer putShort(short value) {throw new ReadOnlyBufferException();}
| [
"public",
"ByteBuffer",
"putShort",
"(",
"short",
"value",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] | public override java.nio.ByteBuffer putShort(short value){throw new java.nio.ReadOnlyBufferException();}
| train | false |
3,264 | public ReplaceIamInstanceProfileAssociationResult replaceIamInstanceProfileAssociation(ReplaceIamInstanceProfileAssociationRequest request) {request = beforeClientExecution(request);return executeReplaceIamInstanceProfileAssociation(request);}
| [
"public",
"ReplaceIamInstanceProfileAssociationResult",
"replaceIamInstanceProfileAssociation",
"(",
"ReplaceIamInstanceProfileAssociationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeReplaceIamInstanceProfileAssoc... | public virtual ReplaceIamInstanceProfileAssociationResponse ReplaceIamInstanceProfileAssociation(ReplaceIamInstanceProfileAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReplaceIamInstanceProfileAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = ReplaceIamInst... | train | true |
3,265 | public void add(String name, Expression expression) {map.put(name, expression);}
| [
"public",
"void",
"add",
"(",
"String",
"name",
",",
"Expression",
"expression",
")",
"{",
"map",
".",
"put",
"(",
"name",
",",
"expression",
")",
";",
"}"
] | public void Add(string name, Expression expression){map[name] = expression;}
| train | false |
3,266 | public Ref3DPtg(CellReference c, int externIdx) {super(c);setExternSheetIndex(externIdx);}
| [
"public",
"Ref3DPtg",
"(",
"CellReference",
"c",
",",
"int",
"externIdx",
")",
"{",
"super",
"(",
"c",
")",
";",
"setExternSheetIndex",
"(",
"externIdx",
")",
";",
"}"
] | public Ref3DPtg(CellReference cr, int externIdx):base(cr){ExternSheetIndex = externIdx;}
| train | false |
3,267 | public int readUShort() {byte[] buf = new byte[LittleEndianConsts.SHORT_SIZE];try {checkEOF(read(buf), LittleEndianConsts.SHORT_SIZE);} catch (IOException e) {throw new RuntimeException(e);}return LittleEndian.getUShort(buf);}
| [
"public",
"int",
"readUShort",
"(",
")",
"{",
"byte",
"[",
"]",
"buf",
"=",
"new",
"byte",
"[",
"LittleEndianConsts",
".",
"SHORT_SIZE",
"]",
";",
"try",
"{",
"checkEOF",
"(",
"read",
"(",
"buf",
")",
",",
"LittleEndianConsts",
".",
"SHORT_SIZE",
")",
... | public int ReadUShort(){int ch1;int ch2;try{ch1 = in1.ReadByte();ch2 = in1.ReadByte();}catch (IOException e){throw new RuntimeException(e);}CheckEOF(ch1 | ch2);return (ch2 << 8) + (ch1 << 0);}
| train | false |
3,268 | public int stem(char s[], int len) {len = removeCase(s, len);len = removePossessives(s, len);if (len > 0) {len = normalize(s, len);}return len;}
| [
"public",
"int",
"stem",
"(",
"char",
"s",
"[",
"]",
",",
"int",
"len",
")",
"{",
"len",
"=",
"removeCase",
"(",
"s",
",",
"len",
")",
";",
"len",
"=",
"removePossessives",
"(",
"s",
",",
"len",
")",
";",
"if",
"(",
"len",
">",
"0",
")",
"{",... | public virtual int Stem(char[] s, int len){len = RemoveCase(s, len);len = RemovePossessives(s, len);if (len > 0){len = Normalize(s, len);}return len;}
| train | false |
3,269 | public static int getNearestSetSize(int maxNumberOfBits){int result=usableBitSetSizes[0];for (int i = 0; i < usableBitSetSizes.length; i++) {if(usableBitSetSizes[i]<=maxNumberOfBits){result=usableBitSetSizes[i];}}return result;}
| [
"public",
"static",
"int",
"getNearestSetSize",
"(",
"int",
"maxNumberOfBits",
")",
"{",
"int",
"result",
"=",
"usableBitSetSizes",
"[",
"0",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"usableBitSetSizes",
".",
"length",
";",
"i",
"++",
... | public static int GetNearestSetSize(int maxNumberOfBits){var result = _usableBitSetSizes[0];foreach (var t in _usableBitSetSizes.Where(t => t <= maxNumberOfBits)){result = t;}return result;}
| train | false |
3,270 | public String toString() {return "AbbreviatedObjectId[" + name() + "]"; }
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"AbbreviatedObjectId[\"",
"+",
"name",
"(",
")",
"+",
"\"]\"",
";",
"}"
] | public override string ToString(){return "AbbreviatedObjectId[" + Name + "]";}
| train | false |
3,271 | public ListFacesRequest() {super("CloudPhoto", "2017-07-11", "ListFaces", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"ListFacesRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"ListFaces\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public ListFacesRequest(): base("CloudPhoto", "2017-07-11", "ListFaces", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
3,272 | public BytesRef(int capacity) {this.bytes = new byte[capacity];}
| [
"public",
"BytesRef",
"(",
"int",
"capacity",
")",
"{",
"this",
".",
"bytes",
"=",
"new",
"byte",
"[",
"capacity",
"]",
";",
"}"
] | public BytesRef(int capacity){this.bytes = new byte[capacity];}
| train | false |
3,273 | public DescribeFargateProfileResult describeFargateProfile(DescribeFargateProfileRequest request) {request = beforeClientExecution(request);return executeDescribeFargateProfile(request);}
| [
"public",
"DescribeFargateProfileResult",
"describeFargateProfile",
"(",
"DescribeFargateProfileRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeFargateProfile",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeFargateProfileResponse DescribeFargateProfile(DescribeFargateProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFargateProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFargateProfileResponseUnmarshaller.Instance;return Invoke<Desc... | train | false |
3,274 | public GetOpenIdTokenForDeveloperIdentityResult getOpenIdTokenForDeveloperIdentity(GetOpenIdTokenForDeveloperIdentityRequest request) {request = beforeClientExecution(request);return executeGetOpenIdTokenForDeveloperIdentity(request);}
| [
"public",
"GetOpenIdTokenForDeveloperIdentityResult",
"getOpenIdTokenForDeveloperIdentity",
"(",
"GetOpenIdTokenForDeveloperIdentityRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetOpenIdTokenForDeveloperIdentity",... | public virtual GetOpenIdTokenForDeveloperIdentityResponse GetOpenIdTokenForDeveloperIdentity(GetOpenIdTokenForDeveloperIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOpenIdTokenForDeveloperIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOpenIdTokenForDevel... | train | true |
3,275 | public int countBytesWritten() {return _countBytesWritten;}
| [
"public",
"int",
"countBytesWritten",
"(",
")",
"{",
"return",
"_countBytesWritten",
";",
"}"
] | public int CountBytesWritten(){return _countBytesWritten;}
| train | false |
3,276 | public boolean containsAll(final IntList c){boolean rval = true;if (this != c){for (int j = 0; rval && (j < c._limit); j++){if (!contains(c._array[ j ])){rval = false;}}}return rval;}
| [
"public",
"boolean",
"containsAll",
"(",
"final",
"IntList",
"c",
")",
"{",
"boolean",
"rval",
"=",
"true",
";",
"if",
"(",
"this",
"!=",
"c",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"rval",
"&&",
"(",
"j",
"<",
"c",
".",
"_limit",
")"... | public bool ContainsAll(IntList c){bool rval = true;if (this != c){for (int j = 0; rval && (j < c._limit); j++){if (!Contains(c._array[j])){rval = false;}}}return rval;}
| train | false |
3,277 | public void setTreeFilter(TreeFilter newFilter) {assertNotStarted();treeFilter = newFilter != null ? newFilter : TreeFilter.ALL;}
| [
"public",
"void",
"setTreeFilter",
"(",
"TreeFilter",
"newFilter",
")",
"{",
"assertNotStarted",
"(",
")",
";",
"treeFilter",
"=",
"newFilter",
"!=",
"null",
"?",
"newFilter",
":",
"TreeFilter",
".",
"ALL",
";",
"}"
] | public virtual void SetTreeFilter(TreeFilter newFilter){AssertNotStarted();treeFilter = newFilter != null ? newFilter : TreeFilter.ALL;}
| train | false |
3,278 | public DBInstance promoteReadReplica(PromoteReadReplicaRequest request) {request = beforeClientExecution(request);return executePromoteReadReplica(request);}
| [
"public",
"DBInstance",
"promoteReadReplica",
"(",
"PromoteReadReplicaRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePromoteReadReplica",
"(",
"request",
")",
";",
"}"
] | public virtual PromoteReadReplicaResponse PromoteReadReplica(PromoteReadReplicaRequest request){var options = new InvokeOptions();options.RequestMarshaller = PromoteReadReplicaRequestMarshaller.Instance;options.ResponseUnmarshaller = PromoteReadReplicaResponseUnmarshaller.Instance;return Invoke<PromoteReadReplicaRespon... | train | true |
3,279 | public final short getShort() {int newPosition = position + SizeOf.SHORT;if (newPosition > limit) {throw new BufferUnderflowException();}short result = Memory.peekShort(backingArray, offset + position, order);position = newPosition;return result;}
| [
"public",
"final",
"short",
"getShort",
"(",
")",
"{",
"int",
"newPosition",
"=",
"position",
"+",
"SizeOf",
".",
"SHORT",
";",
"if",
"(",
"newPosition",
">",
"limit",
")",
"{",
"throw",
"new",
"BufferUnderflowException",
"(",
")",
";",
"}",
"short",
"re... | public sealed override short getShort(){int newPosition = _position + libcore.io.SizeOf.SHORT;if (newPosition > _limit){throw new java.nio.BufferUnderflowException();}short result = libcore.io.Memory.peekShort(backingArray, offset + _position, _order);_position = newPosition;return result;}
| train | false |
3,280 | public AttachClassicLinkVpcResult attachClassicLinkVpc(AttachClassicLinkVpcRequest request) {request = beforeClientExecution(request);return executeAttachClassicLinkVpc(request);}
| [
"public",
"AttachClassicLinkVpcResult",
"attachClassicLinkVpc",
"(",
"AttachClassicLinkVpcRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAttachClassicLinkVpc",
"(",
"request",
")",
";",
"}"
] | public virtual AttachClassicLinkVpcResponse AttachClassicLinkVpc(AttachClassicLinkVpcRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachClassicLinkVpcRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachClassicLinkVpcResponseUnmarshaller.Instance;return Invoke<AttachClassicL... | train | true |
3,282 | public ByteArrayDataOutput() {reset(BytesRef.EMPTY_BYTES);}
| [
"public",
"ByteArrayDataOutput",
"(",
")",
"{",
"reset",
"(",
"BytesRef",
".",
"EMPTY_BYTES",
")",
";",
"}"
] | public ByteArrayDataOutput(){Reset(BytesRef.EMPTY_BYTES);}
| train | false |
3,283 | public void balance() {int i = 0, n = length;String[] k = new String[n];char[] v = new char[n];Iterator iter = new Iterator();while (iter.hasMoreElements()) {v[i] = iter.getValue();k[i++] = iter.nextElement();}init();insertBalanced(k, v, 0, n);}
| [
"public",
"void",
"balance",
"(",
")",
"{",
"int",
"i",
"=",
"0",
",",
"n",
"=",
"length",
";",
"String",
"[",
"]",
"k",
"=",
"new",
"String",
"[",
"n",
"]",
";",
"char",
"[",
"]",
"v",
"=",
"new",
"char",
"[",
"n",
"]",
";",
"Iterator",
"i... | public virtual void Balance(){int i = 0, n = m_length;string[] k = new string[n];char[] v = new char[n];Iterator iter = new Iterator(this);while (iter.MoveNext()){v[i] = iter.Value;k[i++] = iter.Current;}Init();InsertBalanced(k, v, 0, n);}
| train | true |
3,284 | public MultiPhraseQueryNode() {setLeaf(false);allocate();}
| [
"public",
"MultiPhraseQueryNode",
"(",
")",
"{",
"setLeaf",
"(",
"false",
")",
";",
"allocate",
"(",
")",
";",
"}"
] | public MultiPhraseQueryNode(){IsLeaf = false;Allocate();}
| train | false |
3,285 | public PublishRequest(String topicArn, String message, String subject) {setTopicArn(topicArn);setMessage(message);setSubject(subject);}
| [
"public",
"PublishRequest",
"(",
"String",
"topicArn",
",",
"String",
"message",
",",
"String",
"subject",
")",
"{",
"setTopicArn",
"(",
"topicArn",
")",
";",
"setMessage",
"(",
"message",
")",
";",
"setSubject",
"(",
"subject",
")",
";",
"}"
] | public PublishRequest(string topicArn, string message, string subject){_topicArn = topicArn;_message = message;_subject = subject;}
| train | false |
3,286 | public SendCommandResult sendCommand(SendCommandRequest request) {request = beforeClientExecution(request);return executeSendCommand(request);}
| [
"public",
"SendCommandResult",
"sendCommand",
"(",
"SendCommandRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSendCommand",
"(",
"request",
")",
";",
"}"
] | public virtual SendCommandResponse SendCommand(SendCommandRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendCommandRequestMarshaller.Instance;options.ResponseUnmarshaller = SendCommandResponseUnmarshaller.Instance;return Invoke<SendCommandResponse>(request, options);}
| train | true |
3,287 | public ListDeploymentInstancesResult listDeploymentInstances(ListDeploymentInstancesRequest request) {request = beforeClientExecution(request);return executeListDeploymentInstances(request);}
| [
"public",
"ListDeploymentInstancesResult",
"listDeploymentInstances",
"(",
"ListDeploymentInstancesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListDeploymentInstances",
"(",
"request",
")",
";",
"}"
] | public virtual ListDeploymentInstancesResponse ListDeploymentInstances(ListDeploymentInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeploymentInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeploymentInstancesResponseUnmarshaller.Instance;return Invoke... | train | false |
3,288 | public Iterator<E> iterator() {return delegate().iterator(); }
| [
"public",
"Iterator",
"<",
"E",
">",
"iterator",
"(",
")",
"{",
"return",
"delegate",
"(",
")",
".",
"iterator",
"(",
")",
";",
"}"
] | public virtual java.util.Iterator<E> iterator(){lock (mutex){return c.iterator();}}
| train | false |
3,289 | public ProvisionedThroughput(Long readCapacityUnits, Long writeCapacityUnits) {setReadCapacityUnits(readCapacityUnits);setWriteCapacityUnits(writeCapacityUnits);}
| [
"public",
"ProvisionedThroughput",
"(",
"Long",
"readCapacityUnits",
",",
"Long",
"writeCapacityUnits",
")",
"{",
"setReadCapacityUnits",
"(",
"readCapacityUnits",
")",
";",
"setWriteCapacityUnits",
"(",
"writeCapacityUnits",
")",
";",
"}"
] | public ProvisionedThroughput(long readCapacityUnits, long writeCapacityUnits){_readCapacityUnits = readCapacityUnits;_writeCapacityUnits = writeCapacityUnits;}
| train | false |
3,290 | public DescribeTagsResult describeTags() {return describeTags(new DescribeTagsRequest());}
| [
"public",
"DescribeTagsResult",
"describeTags",
"(",
")",
"{",
"return",
"describeTags",
"(",
"new",
"DescribeTagsRequest",
"(",
")",
")",
";",
"}"
] | public virtual DescribeTagsResponse DescribeTags(){return DescribeTags(new DescribeTagsRequest());}
| train | false |
3,291 | public DeprovisionByoipCidrResult deprovisionByoipCidr(DeprovisionByoipCidrRequest request) {request = beforeClientExecution(request);return executeDeprovisionByoipCidr(request);}
| [
"public",
"DeprovisionByoipCidrResult",
"deprovisionByoipCidr",
"(",
"DeprovisionByoipCidrRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeprovisionByoipCidr",
"(",
"request",
")",
";",
"}"
] | public virtual DeprovisionByoipCidrResponse DeprovisionByoipCidr(DeprovisionByoipCidrRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeprovisionByoipCidrRequestMarshaller.Instance;options.ResponseUnmarshaller = DeprovisionByoipCidrResponseUnmarshaller.Instance;return Invoke<DeprovisionByo... | train | true |
3,292 | public boolean isDone(TreeWalk walker) {return pathRaw.length == walker.getPathLength();}
| [
"public",
"boolean",
"isDone",
"(",
"TreeWalk",
"walker",
")",
"{",
"return",
"pathRaw",
".",
"length",
"==",
"walker",
".",
"getPathLength",
"(",
")",
";",
"}"
] | public virtual bool IsDone(TreeWalk walker){return pathRaw.Length == walker.GetPathLength();}
| train | false |
3,293 | public String buildExtensionField(String extensionKey, String field) {StringBuilder builder = new StringBuilder(field);builder.append(this.extensionFieldDelimiter);builder.append(extensionKey);return escapeExtensionField(builder.toString());}
| [
"public",
"String",
"buildExtensionField",
"(",
"String",
"extensionKey",
",",
"String",
"field",
")",
"{",
"StringBuilder",
"builder",
"=",
"new",
"StringBuilder",
"(",
"field",
")",
";",
"builder",
".",
"append",
"(",
"this",
".",
"extensionFieldDelimiter",
")... | public virtual string BuildExtensionField(string extensionKey, string field){StringBuilder builder = new StringBuilder(field);builder.Append(this.extensionFieldDelimiter);builder.Append(extensionKey);return EscapeExtensionField(builder.ToString());}
| train | false |
3,295 | public boolean equals(Object obj) {if (!(obj instanceof Loc)) {return false;}Loc other = (Loc) obj;return _bookSheetColumn == other._bookSheetColumn && _rowIndex == other._rowIndex;}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"!",
"(",
"obj",
"instanceof",
"Loc",
")",
")",
"{",
"return",
"false",
";",
"}",
"Loc",
"other",
"=",
"(",
"Loc",
")",
"obj",
";",
"return",
"_bookSheetColumn",
"==",
"other",... | public override bool Equals(Object obj){Loc other = (Loc)obj;return _bookSheetColumn == other._bookSheetColumn && _rowIndex == other._rowIndex;}
| train | false |
3,296 | public DeleteDeploymentConfigResult deleteDeploymentConfig(DeleteDeploymentConfigRequest request) {request = beforeClientExecution(request);return executeDeleteDeploymentConfig(request);}
| [
"public",
"DeleteDeploymentConfigResult",
"deleteDeploymentConfig",
"(",
"DeleteDeploymentConfigRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDeploymentConfig",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteDeploymentConfigResponse DeleteDeploymentConfig(DeleteDeploymentConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDeploymentConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDeploymentConfigResponseUnmarshaller.Instance;return Invoke<Dele... | train | true |
3,297 | public StartQueryExecutionResult startQueryExecution(StartQueryExecutionRequest request) {request = beforeClientExecution(request);return executeStartQueryExecution(request);}
| [
"public",
"StartQueryExecutionResult",
"startQueryExecution",
"(",
"StartQueryExecutionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStartQueryExecution",
"(",
"request",
")",
";",
"}"
] | public virtual StartQueryExecutionResponse StartQueryExecution(StartQueryExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartQueryExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartQueryExecutionResponseUnmarshaller.Instance;return Invoke<StartQueryExecution... | train | true |
3,298 | public GetRepoListRequest() {super("cr", "2016-06-07", "GetRepoList", "cr");setUriPattern("/repos");setMethod(MethodType.GET);}
| [
"public",
"GetRepoListRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"GetRepoList\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/repos\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"GET",
")",
";",
"}"
] | public GetRepoListRequest(): base("cr", "2016-06-07", "GetRepoList", "cr", "openAPI"){UriPattern = "/repos";Method = MethodType.GET;}
| train | false |
3,299 | public CreateDistributionResult createDistribution(CreateDistributionRequest request) {request = beforeClientExecution(request);return executeCreateDistribution(request);}
| [
"public",
"CreateDistributionResult",
"createDistribution",
"(",
"CreateDistributionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateDistribution",
"(",
"request",
")",
";",
"}"
] | public virtual CreateDistributionResponse CreateDistribution(CreateDistributionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDistributionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDistributionResponseUnmarshaller.Instance;return Invoke<CreateDistributionRespon... | train | true |
3,300 | public LongField(final int offset)throws ArrayIndexOutOfBoundsException{if (offset < 0){throw new ArrayIndexOutOfBoundsException("Illegal offset: "+ offset);}_offset = offset;}
| [
"public",
"LongField",
"(",
"final",
"int",
"offset",
")",
"throws",
"ArrayIndexOutOfBoundsException",
"{",
"if",
"(",
"offset",
"<",
"0",
")",
"{",
"throw",
"new",
"ArrayIndexOutOfBoundsException",
"(",
"\"Illegal offset: \"",
"+",
"offset",
")",
";",
"}",
"_of... | public LongField(int offset){if (offset < 0){throw new IndexOutOfRangeException("Illegal offset: " + offset);}_offset = offset;}
| train | false |
3,301 | public String toString() {StringBuilder b = new StringBuilder();b.append(" target=").append(target());b.append(" label=0x").append(Integer.toHexString(label()));if (flag(BIT_FINAL_ARC)) {b.append(" final");}if (flag(BIT_LAST_ARC)) {b.append(" last");}if (flag(BIT_TARGET_NEXT)) {b.append(" targetNext");}if (flag(BIT_STO... | [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"b",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"b",
".",
"append",
"(",
"\" target=\"",
")",
".",
"append",
"(",
"target",
"(",
")",
")",
";",
"b",
".",
"append",
"(",
"\" label=0x\"",
... | public override string ToString(){var b = new StringBuilder();b.Append("node=" + Node);b.Append(" target=" + Target);b.Append(" label=" + Label);if (Flag(BIT_LAST_ARC)) b.Append(" last");if (Flag(BIT_FINAL_ARC)) b.Append(" final");if (Flag(BIT_TARGET_NEXT)) b.Append(" targetNext");if (Flag(BIT_ARC_HAS_OUTPUT)) b.Append... | train | false |
3,302 | public final int getRefCount() {return refCount.get();}
| [
"public",
"final",
"int",
"getRefCount",
"(",
")",
"{",
"return",
"refCount",
".",
"get",
"(",
")",
";",
"}"
] | public int GetRefCount() {return refCount;}
| train | false |
3,303 | public int readInt() {byte[] buf = new byte[LittleEndianConsts.INT_SIZE];try {checkEOF(read(buf), buf.length);} catch (IOException e) {throw new RuntimeException(e);}return LittleEndian.getInt(buf);}
| [
"public",
"int",
"readInt",
"(",
")",
"{",
"byte",
"[",
"]",
"buf",
"=",
"new",
"byte",
"[",
"LittleEndianConsts",
".",
"INT_SIZE",
"]",
";",
"try",
"{",
"checkEOF",
"(",
"read",
"(",
"buf",
")",
",",
"buf",
".",
"length",
")",
";",
"}",
"catch",
... | public int ReadInt(){int ch1;int ch2;int ch3;int ch4;try{ch1 = in1.ReadByte();ch2 = in1.ReadByte();ch3 = in1.ReadByte();ch4 = in1.ReadByte();}catch (IOException e){throw new RuntimeException(e);}CheckEOF(ch1 | ch2 | ch3 | ch4);return (ch4 << 24) + (ch3 << 16) + (ch2 << 8) + (ch1 << 0);}
| train | false |
3,304 | public BatchCreateAttendeeResult batchCreateAttendee(BatchCreateAttendeeRequest request) {request = beforeClientExecution(request);return executeBatchCreateAttendee(request);}
| [
"public",
"BatchCreateAttendeeResult",
"batchCreateAttendee",
"(",
"BatchCreateAttendeeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBatchCreateAttendee",
"(",
"request",
")",
";",
"}"
] | public virtual BatchCreateAttendeeResponse BatchCreateAttendee(BatchCreateAttendeeRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchCreateAttendeeRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchCreateAttendeeResponseUnmarshaller.Instance;return Invoke<BatchCreateAttendee... | train | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.