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 |
|---|---|---|---|---|---|
1,710
|
public DataValidationConstraint createNumericConstraint(int validationType,int operatorType, String formula1, String formula2) {return DVConstraint.createNumericConstraint(validationType, operatorType, formula1, formula2);}
|
[
"public",
"DataValidationConstraint",
"createNumericConstraint",
"(",
"int",
"validationType",
",",
"int",
"operatorType",
",",
"String",
"formula1",
",",
"String",
"formula2",
")",
"{",
"return",
"DVConstraint",
".",
"createNumericConstraint",
"(",
"validationType",
",",
"operatorType",
",",
"formula1",
",",
"formula2",
")",
";",
"}"
] |
public IDataValidationConstraint CreateNumericConstraint(int validationType, int operatorType, String formula1, String formula2){return DVConstraint.CreateNumericConstraint(validationType, operatorType, formula1, formula2);}
|
train
| false
|
1,711
|
public int read(byte[] buffer) throws IOException {return read(buffer, 0, buffer.length);}
|
[
"public",
"int",
"read",
"(",
"byte",
"[",
"]",
"buffer",
")",
"throws",
"IOException",
"{",
"return",
"read",
"(",
"buffer",
",",
"0",
",",
"buffer",
".",
"length",
")",
";",
"}"
] |
public virtual int read(byte[] buffer){throw new System.NotImplementedException();}
|
train
| false
|
1,712
|
public String toFormulaString() {return _value ? "TRUE" : "FALSE";}
|
[
"public",
"String",
"toFormulaString",
"(",
")",
"{",
"return",
"_value",
"?",
"\"TRUE\"",
":",
"\"FALSE\"",
";",
"}"
] |
public override String ToFormulaString(){return field_1_value ? "TRUE" : "FALSE";}
|
train
| false
|
1,713
|
public void write(char[] chars, int offset, int count) {Arrays.checkOffsetAndCount(chars.length, offset, count);if (count == 0) {return;}buf.append(chars, offset, count);}
|
[
"public",
"void",
"write",
"(",
"char",
"[",
"]",
"chars",
",",
"int",
"offset",
",",
"int",
"count",
")",
"{",
"Arrays",
".",
"checkOffsetAndCount",
"(",
"chars",
".",
"length",
",",
"offset",
",",
"count",
")",
";",
"if",
"(",
"count",
"==",
"0",
")",
"{",
"return",
";",
"}",
"buf",
".",
"append",
"(",
"chars",
",",
"offset",
",",
"count",
")",
";",
"}"
] |
public override void write(char[] chars, int offset, int count){java.util.Arrays.checkOffsetAndCount(chars.Length, offset, count);if (count == 0){return;}buf.append(chars, offset, count);}
|
train
| false
|
1,715
|
public RevokeDBSecurityGroupIngressRequest(String dBSecurityGroupName) {setDBSecurityGroupName(dBSecurityGroupName);}
|
[
"public",
"RevokeDBSecurityGroupIngressRequest",
"(",
"String",
"dBSecurityGroupName",
")",
"{",
"setDBSecurityGroupName",
"(",
"dBSecurityGroupName",
")",
";",
"}"
] |
public RevokeDBSecurityGroupIngressRequest(string dbSecurityGroupName){_dbSecurityGroupName = dbSecurityGroupName;}
|
train
| false
|
1,716
|
public InitiateDocumentVersionUploadResult initiateDocumentVersionUpload(InitiateDocumentVersionUploadRequest request) {request = beforeClientExecution(request);return executeInitiateDocumentVersionUpload(request);}
|
[
"public",
"InitiateDocumentVersionUploadResult",
"initiateDocumentVersionUpload",
"(",
"InitiateDocumentVersionUploadRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeInitiateDocumentVersionUpload",
"(",
"request",
")",
";",
"}"
] |
public virtual InitiateDocumentVersionUploadResponse InitiateDocumentVersionUpload(InitiateDocumentVersionUploadRequest request){var options = new InvokeOptions();options.RequestMarshaller = InitiateDocumentVersionUploadRequestMarshaller.Instance;options.ResponseUnmarshaller = InitiateDocumentVersionUploadResponseUnmarshaller.Instance;return Invoke<InitiateDocumentVersionUploadResponse>(request, options);}
|
train
| true
|
1,717
|
public MemAreaPtg(int subexLen) {field_1_reserved = 0;field_2_subex_len = subexLen;}
|
[
"public",
"MemAreaPtg",
"(",
"int",
"subexLen",
")",
"{",
"field_1_reserved",
"=",
"0",
";",
"field_2_subex_len",
"=",
"subexLen",
";",
"}"
] |
public MemAreaPtg(int subexLen){field_1_reserved = 0;field_2_subex_len = subexLen;}
|
train
| false
|
1,718
|
public FtrHeader() {associatedRange = new CellRangeAddress(0, 0, 0, 0);}
|
[
"public",
"FtrHeader",
"(",
")",
"{",
"associatedRange",
"=",
"new",
"CellRangeAddress",
"(",
"0",
",",
"0",
",",
"0",
",",
"0",
")",
";",
"}"
] |
public FtrHeader(){reserved = new byte[8];}
|
train
| false
|
1,719
|
public IntBuffer compact() {if (byteBuffer.isReadOnly()) {throw new ReadOnlyBufferException();}byteBuffer.limit(limit * SizeOf.INT);byteBuffer.position(position * SizeOf.INT);byteBuffer.compact();byteBuffer.clear();position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}
|
[
"public",
"IntBuffer",
"compact",
"(",
")",
"{",
"if",
"(",
"byteBuffer",
".",
"isReadOnly",
"(",
")",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}",
"byteBuffer",
".",
"limit",
"(",
"limit",
"*",
"SizeOf",
".",
"INT",
")",
";",
"byteBuffer",
".",
"position",
"(",
"position",
"*",
"SizeOf",
".",
"INT",
")",
";",
"byteBuffer",
".",
"compact",
"(",
")",
";",
"byteBuffer",
".",
"clear",
"(",
")",
";",
"position",
"=",
"limit",
"-",
"position",
";",
"limit",
"=",
"capacity",
";",
"mark",
"=",
"UNSET_MARK",
";",
"return",
"this",
";",
"}"
] |
public override java.nio.IntBuffer compact(){if (byteBuffer.isReadOnly()){throw new java.nio.ReadOnlyBufferException();}byteBuffer.limit(_limit * libcore.io.SizeOf.INT);byteBuffer.position(_position * libcore.io.SizeOf.INT);byteBuffer.compact();byteBuffer.clear();_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}
|
train
| false
|
1,720
|
public String getRawAuthority() {return authority;}
|
[
"public",
"String",
"getRawAuthority",
"(",
")",
"{",
"return",
"authority",
";",
"}"
] |
public string getRawAuthority(){return authority;}
|
train
| false
|
1,721
|
public void write(byte[] b, int off, int len) throws IOException {if ((off < 0) || (off > b.length) || (len < 0) ||((off + len) > b.length) || ((off + len) < 0)) {throw new IndexOutOfBoundsException();} else if (len == 0) {return;}do {createBlockIfNeeded();int writeBytes = Math.min(buffer.remaining(), len);buffer.put(b, off, writeBytes);off += writeBytes;len -= writeBytes;} while (len > 0);}
|
[
"public",
"void",
"write",
"(",
"byte",
"[",
"]",
"b",
",",
"int",
"off",
",",
"int",
"len",
")",
"throws",
"IOException",
"{",
"if",
"(",
"(",
"off",
"<",
"0",
")",
"||",
"(",
"off",
">",
"b",
".",
"length",
")",
"||",
"(",
"len",
"<",
"0",
")",
"||",
"(",
"(",
"off",
"+",
"len",
")",
">",
"b",
".",
"length",
")",
"||",
"(",
"(",
"off",
"+",
"len",
")",
"<",
"0",
")",
")",
"{",
"throw",
"new",
"IndexOutOfBoundsException",
"(",
")",
";",
"}",
"else",
"if",
"(",
"len",
"==",
"0",
")",
"{",
"return",
";",
"}",
"do",
"{",
"createBlockIfNeeded",
"(",
")",
";",
"int",
"writeBytes",
"=",
"Math",
".",
"min",
"(",
"buffer",
".",
"remaining",
"(",
")",
",",
"len",
")",
";",
"buffer",
".",
"put",
"(",
"b",
",",
"off",
",",
"writeBytes",
")",
";",
"off",
"+=",
"writeBytes",
";",
"len",
"-=",
"writeBytes",
";",
"}",
"while",
"(",
"len",
">",
"0",
")",
";",
"}"
] |
public override void Write(byte[] b, int off, int len){if ((off < 0) || (off > b.Length) || (len < 0) ||((off + len) > b.Length) || ((off + len) < 0)){throw new IndexOutOfRangeException();}else if (len == 0){return;}do{CreateBlockIfNeeded();int writeBytes = Math.Min(buffer.Remaining(), len);buffer.Write(b, off, writeBytes);off += writeBytes;len -= writeBytes;} while (len > 0);}
|
train
| false
|
1,722
|
public static void validateSimple(String s, String legal)throws URISyntaxException {for (int i = 0; i < s.length(); i++) {char ch = s.charAt(i);if (!((ch >= 'a' && ch <= 'z')|| (ch >= 'A' && ch <= 'Z')|| (ch >= '0' && ch <= '9')|| legal.indexOf(ch) > -1)) {throw new URISyntaxException(s, "Illegal character", i);}}}
|
[
"public",
"static",
"void",
"validateSimple",
"(",
"String",
"s",
",",
"String",
"legal",
")",
"throws",
"URISyntaxException",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"s",
".",
"length",
"(",
")",
";",
"i",
"++",
")",
"{",
"char",
"ch",
"=",
"s",
".",
"charAt",
"(",
"i",
")",
";",
"if",
"(",
"!",
"(",
"(",
"ch",
">=",
"'a'",
"&&",
"ch",
"<=",
"'z'",
")",
"||",
"(",
"ch",
">=",
"'A'",
"&&",
"ch",
"<=",
"'Z'",
")",
"||",
"(",
"ch",
">=",
"'0'",
"&&",
"ch",
"<=",
"'9'",
")",
"||",
"legal",
".",
"indexOf",
"(",
"ch",
")",
">",
"-",
"1",
")",
")",
"{",
"throw",
"new",
"URISyntaxException",
"(",
"s",
",",
"\"Illegal character\"",
",",
"i",
")",
";",
"}",
"}",
"}"
] |
public static void validateSimple(string s, string legal){{for (int i = 0; i < s.Length; i++){char ch = s[i];if (!((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <='9') || legal.IndexOf(ch) > -1)){throw new java.net.URISyntaxException(s, "Illegal character", i);}}}}
|
train
| true
|
1,723
|
public static String readUnicodeString(LittleEndianInput in) {int nChars = in.readUShort();byte flag = in.readByte();if ((flag & 0x01) == 0) {return readCompressedUnicode(in, nChars);}return readUnicodeLE(in, nChars);}
|
[
"public",
"static",
"String",
"readUnicodeString",
"(",
"LittleEndianInput",
"in",
")",
"{",
"int",
"nChars",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"byte",
"flag",
"=",
"in",
".",
"readByte",
"(",
")",
";",
"if",
"(",
"(",
"flag",
"&",
"0x01",
")",
"==",
"0",
")",
"{",
"return",
"readCompressedUnicode",
"(",
"in",
",",
"nChars",
")",
";",
"}",
"return",
"readUnicodeLE",
"(",
"in",
",",
"nChars",
")",
";",
"}"
] |
public static String ReadUnicodeString(ILittleEndianInput in1){int nChars = in1.ReadUShort();byte flag = (byte)in1.ReadByte();if ((flag & 0x01) == 0){return ReadCompressedUnicode(in1, nChars);}return ReadUnicodeLE(in1, nChars);}
|
train
| false
|
1,724
|
public DocValuesOrdinalsReader(String field) {this.field = field;}
|
[
"public",
"DocValuesOrdinalsReader",
"(",
"String",
"field",
")",
"{",
"this",
".",
"field",
"=",
"field",
";",
"}"
] |
public DocValuesOrdinalsReader(string field){this.field = field;}
|
train
| false
|
1,725
|
public AdvertiseByoipCidrResult advertiseByoipCidr(AdvertiseByoipCidrRequest request) {request = beforeClientExecution(request);return executeAdvertiseByoipCidr(request);}
|
[
"public",
"AdvertiseByoipCidrResult",
"advertiseByoipCidr",
"(",
"AdvertiseByoipCidrRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAdvertiseByoipCidr",
"(",
"request",
")",
";",
"}"
] |
public virtual AdvertiseByoipCidrResponse AdvertiseByoipCidr(AdvertiseByoipCidrRequest request){var options = new InvokeOptions();options.RequestMarshaller = AdvertiseByoipCidrRequestMarshaller.Instance;options.ResponseUnmarshaller = AdvertiseByoipCidrResponseUnmarshaller.Instance;return Invoke<AdvertiseByoipCidrResponse>(request, options);}
|
train
| true
|
1,726
|
public DescribeAlarmsResult describeAlarms() {return describeAlarms(new DescribeAlarmsRequest());}
|
[
"public",
"DescribeAlarmsResult",
"describeAlarms",
"(",
")",
"{",
"return",
"describeAlarms",
"(",
"new",
"DescribeAlarmsRequest",
"(",
")",
")",
";",
"}"
] |
public virtual DescribeAlarmsResponse DescribeAlarms(){return DescribeAlarms(new DescribeAlarmsRequest());}
|
train
| false
|
1,727
|
public DescribeCrossAccountAccessRoleResult describeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest request) {request = beforeClientExecution(request);return executeDescribeCrossAccountAccessRole(request);}
|
[
"public",
"DescribeCrossAccountAccessRoleResult",
"describeCrossAccountAccessRole",
"(",
"DescribeCrossAccountAccessRoleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeCrossAccountAccessRole",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeCrossAccountAccessRoleResponse DescribeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCrossAccountAccessRoleRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCrossAccountAccessRoleResponseUnmarshaller.Instance;return Invoke<DescribeCrossAccountAccessRoleResponse>(request, options);}
|
train
| true
|
1,728
|
public StringBuilder reverse() {reverse0();return this;}
|
[
"public",
"StringBuilder",
"reverse",
"(",
")",
"{",
"reverse0",
"(",
")",
";",
"return",
"this",
";",
"}"
] |
public java.lang.StringBuilder reverse(){reverse0();return this;}
|
train
| false
|
1,729
|
public DescribeImagesResult describeImages(DescribeImagesRequest request) {request = beforeClientExecution(request);return executeDescribeImages(request);}
|
[
"public",
"DescribeImagesResult",
"describeImages",
"(",
"DescribeImagesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeImages",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeImagesResponse DescribeImages(DescribeImagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeImagesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeImagesResponseUnmarshaller.Instance;return Invoke<DescribeImagesResponse>(request, options);}
|
train
| true
|
1,730
|
public CreateDhcpOptionsRequest(java.util.List<DhcpConfiguration> dhcpConfigurations) {setDhcpConfigurations(dhcpConfigurations);}
|
[
"public",
"CreateDhcpOptionsRequest",
"(",
"java",
".",
"util",
".",
"List",
"<",
"DhcpConfiguration",
">",
"dhcpConfigurations",
")",
"{",
"setDhcpConfigurations",
"(",
"dhcpConfigurations",
")",
";",
"}"
] |
public CreateDhcpOptionsRequest(List<DhcpConfiguration> dhcpConfigurations){_dhcpConfigurations = dhcpConfigurations;}
|
train
| false
|
1,731
|
public StartChatContactResult startChatContact(StartChatContactRequest request) {request = beforeClientExecution(request);return executeStartChatContact(request);}
|
[
"public",
"StartChatContactResult",
"startChatContact",
"(",
"StartChatContactRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStartChatContact",
"(",
"request",
")",
";",
"}"
] |
public virtual StartChatContactResponse StartChatContact(StartChatContactRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartChatContactRequestMarshaller.Instance;options.ResponseUnmarshaller = StartChatContactResponseUnmarshaller.Instance;return Invoke<StartChatContactResponse>(request, options);}
|
train
| false
|
1,732
|
public GetCampaignsResult getCampaigns(GetCampaignsRequest request) {request = beforeClientExecution(request);return executeGetCampaigns(request);}
|
[
"public",
"GetCampaignsResult",
"getCampaigns",
"(",
"GetCampaignsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetCampaigns",
"(",
"request",
")",
";",
"}"
] |
public virtual GetCampaignsResponse GetCampaigns(GetCampaignsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCampaignsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCampaignsResponseUnmarshaller.Instance;return Invoke<GetCampaignsResponse>(request, options);}
|
train
| true
|
1,733
|
public GetAssessmentReportResult getAssessmentReport(GetAssessmentReportRequest request) {request = beforeClientExecution(request);return executeGetAssessmentReport(request);}
|
[
"public",
"GetAssessmentReportResult",
"getAssessmentReport",
"(",
"GetAssessmentReportRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetAssessmentReport",
"(",
"request",
")",
";",
"}"
] |
public virtual GetAssessmentReportResponse GetAssessmentReport(GetAssessmentReportRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAssessmentReportRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAssessmentReportResponseUnmarshaller.Instance;return Invoke<GetAssessmentReportResponse>(request, options);}
|
train
| true
|
1,734
|
public void reportAmbiguity(Parser recognizer,DFA dfa,int startIndex,int stopIndex,boolean exact,BitSet ambigAlts,ATNConfigSet configs){if (exactOnly && !exact) {return;}String format = "reportAmbiguity d=%s: ambigAlts=%s, input='%s'";String decision = getDecisionDescription(recognizer, dfa);BitSet conflictingAlts = getConflictingAlts(ambigAlts, configs);String text = recognizer.getTokenStream().getText(Interval.of(startIndex, stopIndex));String message = String.format(format, decision, conflictingAlts, text);recognizer.notifyErrorListeners(message);}
|
[
"public",
"void",
"reportAmbiguity",
"(",
"Parser",
"recognizer",
",",
"DFA",
"dfa",
",",
"int",
"startIndex",
",",
"int",
"stopIndex",
",",
"boolean",
"exact",
",",
"BitSet",
"ambigAlts",
",",
"ATNConfigSet",
"configs",
")",
"{",
"if",
"(",
"exactOnly",
"&&",
"!",
"exact",
")",
"{",
"return",
";",
"}",
"String",
"format",
"=",
"\"reportAmbiguity d=%s: ambigAlts=%s, input='%s'\"",
";",
"String",
"decision",
"=",
"getDecisionDescription",
"(",
"recognizer",
",",
"dfa",
")",
";",
"BitSet",
"conflictingAlts",
"=",
"getConflictingAlts",
"(",
"ambigAlts",
",",
"configs",
")",
";",
"String",
"text",
"=",
"recognizer",
".",
"getTokenStream",
"(",
")",
".",
"getText",
"(",
"Interval",
".",
"of",
"(",
"startIndex",
",",
"stopIndex",
")",
")",
";",
"String",
"message",
"=",
"String",
".",
"format",
"(",
"format",
",",
"decision",
",",
"conflictingAlts",
",",
"text",
")",
";",
"recognizer",
".",
"notifyErrorListeners",
"(",
"message",
")",
";",
"}"
] |
public override void ReportAmbiguity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, bool exact, BitSet ambigAlts, ATNConfigSet configs){if (exactOnly && !exact){return;}string format = "reportAmbiguity d={0}: ambigAlts={1}, input='{2}'";string decision = GetDecisionDescription(recognizer, dfa);BitSet conflictingAlts = GetConflictingAlts(ambigAlts, configs);string text = ((ITokenStream)recognizer.InputStream).GetText(Interval.Of(startIndex, stopIndex));string message = string.Format(format, decision, conflictingAlts, text);recognizer.NotifyErrorListeners(message);}
|
train
| false
|
1,735
|
public Object[] toArray() {synchronized (Hashtable.this) {return super.toArray();}}
|
[
"public",
"Object",
"[",
"]",
"toArray",
"(",
")",
"{",
"synchronized",
"(",
"Hashtable",
".",
"this",
")",
"{",
"return",
"super",
".",
"toArray",
"(",
")",
";",
"}",
"}"
] |
public override object[] toArray(){lock (this._enclosing){return base.toArray();}}
|
train
| false
|
1,736
|
public boolean contains(Object o) {if (o instanceof RevFlag)return (mask & ((RevFlag) o).mask) != 0;return false;}
|
[
"public",
"boolean",
"contains",
"(",
"Object",
"o",
")",
"{",
"if",
"(",
"o",
"instanceof",
"RevFlag",
")",
"return",
"(",
"mask",
"&",
"(",
"(",
"RevFlag",
")",
"o",
")",
".",
"mask",
")",
"!=",
"0",
";",
"return",
"false",
";",
"}"
] |
public override bool Contains(object o){if (o is RevFlag){return (mask & ((RevFlag)o).mask) != 0;}return false;}
|
train
| false
|
1,737
|
public DisableAlarmActionsResult disableAlarmActions(DisableAlarmActionsRequest request) {request = beforeClientExecution(request);return executeDisableAlarmActions(request);}
|
[
"public",
"DisableAlarmActionsResult",
"disableAlarmActions",
"(",
"DisableAlarmActionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisableAlarmActions",
"(",
"request",
")",
";",
"}"
] |
public virtual DisableAlarmActionsResponse DisableAlarmActions(DisableAlarmActionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableAlarmActionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableAlarmActionsResponseUnmarshaller.Instance;return Invoke<DisableAlarmActionsResponse>(request, options);}
|
train
| true
|
1,738
|
public RegisterDBProxyTargetsResult registerDBProxyTargets(RegisterDBProxyTargetsRequest request) {request = beforeClientExecution(request);return executeRegisterDBProxyTargets(request);}
|
[
"public",
"RegisterDBProxyTargetsResult",
"registerDBProxyTargets",
"(",
"RegisterDBProxyTargetsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRegisterDBProxyTargets",
"(",
"request",
")",
";",
"}"
] |
public virtual RegisterDBProxyTargetsResponse RegisterDBProxyTargets(RegisterDBProxyTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterDBProxyTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterDBProxyTargetsResponseUnmarshaller.Instance;return Invoke<RegisterDBProxyTargetsResponse>(request, options);}
|
train
| false
|
1,740
|
public boolean containsColumn(int columnIndex) {return _firstCol <= columnIndex && columnIndex <= _lastCol;}
|
[
"public",
"boolean",
"containsColumn",
"(",
"int",
"columnIndex",
")",
"{",
"return",
"_firstCol",
"<=",
"columnIndex",
"&&",
"columnIndex",
"<=",
"_lastCol",
";",
"}"
] |
public bool ContainsColumn(int columnIndex){return _first_col <= columnIndex && columnIndex <= _last_col;}
|
train
| false
|
1,741
|
public Hashtable() {table = (HashtableEntry<K, V>[]) EMPTY_TABLE;threshold = -1; }
|
[
"public",
"Hashtable",
"(",
")",
"{",
"table",
"=",
"(",
"HashtableEntry",
"<",
"K",
",",
"V",
">",
"[",
"]",
")",
"EMPTY_TABLE",
";",
"threshold",
"=",
"-",
"1",
";",
"}"
] |
public Hashtable(){table = (java.util.Hashtable.HashtableEntry<K, V>[])EMPTY_TABLE;threshold = -1;}
|
train
| false
|
1,742
|
public final AttributeFactory getAttributeFactory() {return this.factory;}
|
[
"public",
"final",
"AttributeFactory",
"getAttributeFactory",
"(",
")",
"{",
"return",
"this",
".",
"factory",
";",
"}"
] |
public AttributeFactory GetAttributeFactory(){return this.factory;}
|
train
| false
|
1,743
|
public void onChange(boolean selfChange) {refreshData();}
|
[
"public",
"void",
"onChange",
"(",
"boolean",
"selfChange",
")",
"{",
"refreshData",
"(",
")",
";",
"}"
] |
public override void onChange(bool selfChange){this._enclosing.onContentChanged();}
|
train
| false
|
1,744
|
public ListObjectAttributesResult listObjectAttributes(ListObjectAttributesRequest request) {request = beforeClientExecution(request);return executeListObjectAttributes(request);}
|
[
"public",
"ListObjectAttributesResult",
"listObjectAttributes",
"(",
"ListObjectAttributesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListObjectAttributes",
"(",
"request",
")",
";",
"}"
] |
public virtual ListObjectAttributesResponse ListObjectAttributes(ListObjectAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListObjectAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListObjectAttributesResponseUnmarshaller.Instance;return Invoke<ListObjectAttributesResponse>(request, options);}
|
train
| true
|
1,745
|
public GetDeploymentsResult getDeployments(GetDeploymentsRequest request) {request = beforeClientExecution(request);return executeGetDeployments(request);}
|
[
"public",
"GetDeploymentsResult",
"getDeployments",
"(",
"GetDeploymentsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDeployments",
"(",
"request",
")",
";",
"}"
] |
public virtual GetDeploymentsResponse GetDeployments(GetDeploymentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDeploymentsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDeploymentsResponseUnmarshaller.Instance;return Invoke<GetDeploymentsResponse>(request, options);}
|
train
| true
|
1,746
|
public ListWorkGroupsResult listWorkGroups(ListWorkGroupsRequest request) {request = beforeClientExecution(request);return executeListWorkGroups(request);}
|
[
"public",
"ListWorkGroupsResult",
"listWorkGroups",
"(",
"ListWorkGroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListWorkGroups",
"(",
"request",
")",
";",
"}"
] |
public virtual ListWorkGroupsResponse ListWorkGroups(ListWorkGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListWorkGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListWorkGroupsResponseUnmarshaller.Instance;return Invoke<ListWorkGroupsResponse>(request, options);}
|
train
| true
|
1,747
|
public CreatePhotoStoreRequest() {super("CloudPhoto", "2017-07-11", "CreatePhotoStore", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
|
[
"public",
"CreatePhotoStoreRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"CreatePhotoStore\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] |
public CreatePhotoStoreRequest(): base("CloudPhoto", "2017-07-11", "CreatePhotoStore", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
|
train
| false
|
1,748
|
public PutMethodResult putMethod(PutMethodRequest request) {request = beforeClientExecution(request);return executePutMethod(request);}
|
[
"public",
"PutMethodResult",
"putMethod",
"(",
"PutMethodRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutMethod",
"(",
"request",
")",
";",
"}"
] |
public virtual PutMethodResponse PutMethod(PutMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = PutMethodResponseUnmarshaller.Instance;return Invoke<PutMethodResponse>(request, options);}
|
train
| true
|
1,749
|
public DescribeServiceAccessPoliciesResult describeServiceAccessPolicies(DescribeServiceAccessPoliciesRequest request) {request = beforeClientExecution(request);return executeDescribeServiceAccessPolicies(request);}
|
[
"public",
"DescribeServiceAccessPoliciesResult",
"describeServiceAccessPolicies",
"(",
"DescribeServiceAccessPoliciesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeServiceAccessPolicies",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeServiceAccessPoliciesResponse DescribeServiceAccessPolicies(DescribeServiceAccessPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeServiceAccessPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeServiceAccessPoliciesResponseUnmarshaller.Instance;return Invoke<DescribeServiceAccessPoliciesResponse>(request, options);}
|
train
| true
|
1,750
|
public DescribeCacheParameterGroupsResult describeCacheParameterGroups() {return describeCacheParameterGroups(new DescribeCacheParameterGroupsRequest());}
|
[
"public",
"DescribeCacheParameterGroupsResult",
"describeCacheParameterGroups",
"(",
")",
"{",
"return",
"describeCacheParameterGroups",
"(",
"new",
"DescribeCacheParameterGroupsRequest",
"(",
")",
")",
";",
"}"
] |
public virtual DescribeCacheParameterGroupsResponse DescribeCacheParameterGroups(){return DescribeCacheParameterGroups(new DescribeCacheParameterGroupsRequest());}
|
train
| false
|
1,751
|
public Float getAndIncrement(String key) {String key2 = key.trim().toLowerCase(locale);TSTNode node = getNode(key2);if (node == null) {return null;}Float aux = (Float) (node.data);if (aux == null) {aux = 1f;} else {aux = (float) (aux.intValue() + 1);}put(key2, aux);return aux;}
|
[
"public",
"Float",
"getAndIncrement",
"(",
"String",
"key",
")",
"{",
"String",
"key2",
"=",
"key",
".",
"trim",
"(",
")",
".",
"toLowerCase",
"(",
"locale",
")",
";",
"TSTNode",
"node",
"=",
"getNode",
"(",
"key2",
")",
";",
"if",
"(",
"node",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"Float",
"aux",
"=",
"(",
"Float",
")",
"(",
"node",
".",
"data",
")",
";",
"if",
"(",
"aux",
"==",
"null",
")",
"{",
"aux",
"=",
"1f",
";",
"}",
"else",
"{",
"aux",
"=",
"(",
"float",
")",
"(",
"aux",
".",
"intValue",
"(",
")",
"+",
"1",
")",
";",
"}",
"put",
"(",
"key2",
",",
"aux",
")",
";",
"return",
"aux",
";",
"}"
] |
public virtual float? GetAndIncrement(string key){string key2 = culture.TextInfo.ToLower(key.Trim());TSTNode node = GetNode(key2);if (node == null){return null;}float? aux = (float?)(node.data);if (aux == null){aux = new float?(1);}else{aux = new float?((int)aux + 1);}Put(key2, aux);return aux;}
|
train
| false
|
1,753
|
public RetrieveDomainAuthCodeResult retrieveDomainAuthCode(RetrieveDomainAuthCodeRequest request) {request = beforeClientExecution(request);return executeRetrieveDomainAuthCode(request);}
|
[
"public",
"RetrieveDomainAuthCodeResult",
"retrieveDomainAuthCode",
"(",
"RetrieveDomainAuthCodeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRetrieveDomainAuthCode",
"(",
"request",
")",
";",
"}"
] |
public virtual RetrieveDomainAuthCodeResponse RetrieveDomainAuthCode(RetrieveDomainAuthCodeRequest request){var options = new InvokeOptions();options.RequestMarshaller = RetrieveDomainAuthCodeRequestMarshaller.Instance;options.ResponseUnmarshaller = RetrieveDomainAuthCodeResponseUnmarshaller.Instance;return Invoke<RetrieveDomainAuthCodeResponse>(request, options);}
|
train
| true
|
1,754
|
public GetRelationalDatabaseMetricDataResult getRelationalDatabaseMetricData(GetRelationalDatabaseMetricDataRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseMetricData(request);}
|
[
"public",
"GetRelationalDatabaseMetricDataResult",
"getRelationalDatabaseMetricData",
"(",
"GetRelationalDatabaseMetricDataRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetRelationalDatabaseMetricData",
"(",
"request",
")",
";",
"}"
] |
public virtual GetRelationalDatabaseMetricDataResponse GetRelationalDatabaseMetricData(GetRelationalDatabaseMetricDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseMetricDataRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseMetricDataResponseUnmarshaller.Instance;return Invoke<GetRelationalDatabaseMetricDataResponse>(request, options);}
|
train
| true
|
1,755
|
public Entry<K, V> pollFirstEntry() {Node<K, V> result = endpoint(true);if (result != null) {removeInternal(result);}return immutableCopy(result);}
|
[
"public",
"Entry",
"<",
"K",
",",
"V",
">",
"pollFirstEntry",
"(",
")",
"{",
"Node",
"<",
"K",
",",
"V",
">",
"result",
"=",
"endpoint",
"(",
"true",
")",
";",
"if",
"(",
"result",
"!=",
"null",
")",
"{",
"removeInternal",
"(",
"result",
")",
";",
"}",
"return",
"immutableCopy",
"(",
"result",
")",
";",
"}"
] |
public java.util.MapClass.Entry<K, V> pollFirstEntry(){java.util.TreeMap.Node<K, V> result = this.endpoint(true);if (result != null){this._enclosing.removeInternal(result);}return this._enclosing.immutableCopy(result);}
|
train
| false
|
1,756
|
public LimitTokenPositionFilter(TokenStream in, int maxTokenPosition, boolean consumeAllTokens) {super(in);if (maxTokenPosition < 1) {throw new IllegalArgumentException("maxTokenPosition must be greater than zero");}this.maxTokenPosition = maxTokenPosition;this.consumeAllTokens = consumeAllTokens;}
|
[
"public",
"LimitTokenPositionFilter",
"(",
"TokenStream",
"in",
",",
"int",
"maxTokenPosition",
",",
"boolean",
"consumeAllTokens",
")",
"{",
"super",
"(",
"in",
")",
";",
"if",
"(",
"maxTokenPosition",
"<",
"1",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"maxTokenPosition must be greater than zero\"",
")",
";",
"}",
"this",
".",
"maxTokenPosition",
"=",
"maxTokenPosition",
";",
"this",
".",
"consumeAllTokens",
"=",
"consumeAllTokens",
";",
"}"
] |
public LimitTokenPositionFilter(TokenStream @in, int maxTokenPosition, bool consumeAllTokens): base(@in){if (maxTokenPosition < 1){throw new System.ArgumentException("maxTokenPosition must be greater than zero");}this.maxTokenPosition = maxTokenPosition;this.consumeAllTokens = consumeAllTokens;posIncAtt = AddAttribute<IPositionIncrementAttribute>();}
|
train
| false
|
1,757
|
public ViewFieldsRecord(RecordInputStream in) {_sxaxis = in.readShort();_cSub = in.readShort();_grbitSub = in.readShort();_cItm = in.readShort();int cchName = in.readUShort();if (cchName != STRING_NOT_PRESENT_LEN) {int flag = in.readByte();if ((flag & 0x01) != 0) {_name = in.readUnicodeLEString(cchName);} else {_name = in.readCompressedUnicode(cchName);}}}
|
[
"public",
"ViewFieldsRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"_sxaxis",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"_cSub",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"_grbitSub",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"_cItm",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"int",
"cchName",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"if",
"(",
"cchName",
"!=",
"STRING_NOT_PRESENT_LEN",
")",
"{",
"int",
"flag",
"=",
"in",
".",
"readByte",
"(",
")",
";",
"if",
"(",
"(",
"flag",
"&",
"0x01",
")",
"!=",
"0",
")",
"{",
"_name",
"=",
"in",
".",
"readUnicodeLEString",
"(",
"cchName",
")",
";",
"}",
"else",
"{",
"_name",
"=",
"in",
".",
"readCompressedUnicode",
"(",
"cchName",
")",
";",
"}",
"}",
"}"
] |
public ViewFieldsRecord(RecordInputStream in1){sxaxis = in1.ReadShort();cSub = in1.ReadShort();grbitSub = in1.ReadShort();cItm = in1.ReadShort();int cchName = in1.ReadUShort();if (cchName != STRING_NOT_PRESENT_LEN){int flag = in1.ReadByte();if ((flag & 0x01) != 0){_name = in1.ReadUnicodeLEString(cchName);}else{_name = in1.ReadCompressedUnicode(cchName);}}}
|
train
| false
|
1,758
|
public synchronized static DefaultProfile getProfile(String regionId, String accessKeyId, String secret) {Credential creden = new Credential(accessKeyId, secret);profile = new DefaultProfile(regionId, creden);return profile;}
|
[
"public",
"synchronized",
"static",
"DefaultProfile",
"getProfile",
"(",
"String",
"regionId",
",",
"String",
"accessKeyId",
",",
"String",
"secret",
")",
"{",
"Credential",
"creden",
"=",
"new",
"Credential",
"(",
"accessKeyId",
",",
"secret",
")",
";",
"profile",
"=",
"new",
"DefaultProfile",
"(",
"regionId",
",",
"creden",
")",
";",
"return",
"profile",
";",
"}"
] |
public static DefaultProfile GetProfile(string regionId, string accessKeyId, string secret){var credential = new Credential(accessKeyId, secret);_profile = new DefaultProfile(regionId, credential);return _profile;}
|
train
| false
|
1,759
|
public int indexOf(String string) {return indexOf(string, 0);}
|
[
"public",
"int",
"indexOf",
"(",
"String",
"string",
")",
"{",
"return",
"indexOf",
"(",
"string",
",",
"0",
")",
";",
"}"
] |
public virtual int indexOf(string @string){return indexOf(@string, 0);}
|
train
| false
|
1,760
|
public ListAppsResult listApps(ListAppsRequest request) {request = beforeClientExecution(request);return executeListApps(request);}
|
[
"public",
"ListAppsResult",
"listApps",
"(",
"ListAppsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListApps",
"(",
"request",
")",
";",
"}"
] |
public virtual ListAppsResponse ListApps(ListAppsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAppsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAppsResponseUnmarshaller.Instance;return Invoke<ListAppsResponse>(request, options);}
|
train
| true
|
1,761
|
public ListAttachedIndicesResult listAttachedIndices(ListAttachedIndicesRequest request) {request = beforeClientExecution(request);return executeListAttachedIndices(request);}
|
[
"public",
"ListAttachedIndicesResult",
"listAttachedIndices",
"(",
"ListAttachedIndicesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListAttachedIndices",
"(",
"request",
")",
";",
"}"
] |
public virtual ListAttachedIndicesResponse ListAttachedIndices(ListAttachedIndicesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAttachedIndicesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAttachedIndicesResponseUnmarshaller.Instance;return Invoke<ListAttachedIndicesResponse>(request, options);}
|
train
| true
|
1,762
|
public void addShape(HSSFShape shape) {shape.setPatriarch(this);_shapes.add(shape);}
|
[
"public",
"void",
"addShape",
"(",
"HSSFShape",
"shape",
")",
"{",
"shape",
".",
"setPatriarch",
"(",
"this",
")",
";",
"_shapes",
".",
"add",
"(",
"shape",
")",
";",
"}"
] |
public void AddShape(HSSFShape shape){shape.Patriarch = this;_shapes.Add(shape);}
|
train
| false
|
1,763
|
public CreateNatGatewayResult createNatGateway(CreateNatGatewayRequest request) {request = beforeClientExecution(request);return executeCreateNatGateway(request);}
|
[
"public",
"CreateNatGatewayResult",
"createNatGateway",
"(",
"CreateNatGatewayRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateNatGateway",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateNatGatewayResponse CreateNatGateway(CreateNatGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNatGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNatGatewayResponseUnmarshaller.Instance;return Invoke<CreateNatGatewayResponse>(request, options);}
|
train
| true
|
1,764
|
public GetApnsVoipChannelResult getApnsVoipChannel(GetApnsVoipChannelRequest request) {request = beforeClientExecution(request);return executeGetApnsVoipChannel(request);}
|
[
"public",
"GetApnsVoipChannelResult",
"getApnsVoipChannel",
"(",
"GetApnsVoipChannelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetApnsVoipChannel",
"(",
"request",
")",
";",
"}"
] |
public virtual GetApnsVoipChannelResponse GetApnsVoipChannel(GetApnsVoipChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApnsVoipChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApnsVoipChannelResponseUnmarshaller.Instance;return Invoke<GetApnsVoipChannelResponse>(request, options);}
|
train
| true
|
1,765
|
public ReplaceTransitGatewayRouteResult replaceTransitGatewayRoute(ReplaceTransitGatewayRouteRequest request) {request = beforeClientExecution(request);return executeReplaceTransitGatewayRoute(request);}
|
[
"public",
"ReplaceTransitGatewayRouteResult",
"replaceTransitGatewayRoute",
"(",
"ReplaceTransitGatewayRouteRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeReplaceTransitGatewayRoute",
"(",
"request",
")",
";",
"}"
] |
public virtual ReplaceTransitGatewayRouteResponse ReplaceTransitGatewayRoute(ReplaceTransitGatewayRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReplaceTransitGatewayRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = ReplaceTransitGatewayRouteResponseUnmarshaller.Instance;return Invoke<ReplaceTransitGatewayRouteResponse>(request, options);}
|
train
| true
|
1,767
|
public ParseTreePattern compile(String pattern, int patternRuleIndex) {List<? extends Token> tokenList = tokenize(pattern);ListTokenSource tokenSrc = new ListTokenSource(tokenList);CommonTokenStream tokens = new CommonTokenStream(tokenSrc);ParserInterpreter parserInterp = new ParserInterpreter(parser.getGrammarFileName(),parser.getVocabulary(),Arrays.asList(parser.getRuleNames()),parser.getATNWithBypassAlts(),tokens);ParseTree tree = null;try {parserInterp.setErrorHandler(new BailErrorStrategy());tree = parserInterp.parse(patternRuleIndex);}catch (ParseCancellationException e) {throw (RecognitionException)e.getCause();}catch (RecognitionException re) {throw re;}catch (Exception e) {throw new CannotInvokeStartRule(e);}if ( tokens.LA(1)!=Token.EOF ) {throw new StartRuleDoesNotConsumeFullPattern();}return new ParseTreePattern(this, pattern, patternRuleIndex, tree);}
|
[
"public",
"ParseTreePattern",
"compile",
"(",
"String",
"pattern",
",",
"int",
"patternRuleIndex",
")",
"{",
"List",
"<",
"?",
"extends",
"Token",
">",
"tokenList",
"=",
"tokenize",
"(",
"pattern",
")",
";",
"ListTokenSource",
"tokenSrc",
"=",
"new",
"ListTokenSource",
"(",
"tokenList",
")",
";",
"CommonTokenStream",
"tokens",
"=",
"new",
"CommonTokenStream",
"(",
"tokenSrc",
")",
";",
"ParserInterpreter",
"parserInterp",
"=",
"new",
"ParserInterpreter",
"(",
"parser",
".",
"getGrammarFileName",
"(",
")",
",",
"parser",
".",
"getVocabulary",
"(",
")",
",",
"Arrays",
".",
"asList",
"(",
"parser",
".",
"getRuleNames",
"(",
")",
")",
",",
"parser",
".",
"getATNWithBypassAlts",
"(",
")",
",",
"tokens",
")",
";",
"ParseTree",
"tree",
"=",
"null",
";",
"try",
"{",
"parserInterp",
".",
"setErrorHandler",
"(",
"new",
"BailErrorStrategy",
"(",
")",
")",
";",
"tree",
"=",
"parserInterp",
".",
"parse",
"(",
"patternRuleIndex",
")",
";",
"}",
"catch",
"(",
"ParseCancellationException",
"e",
")",
"{",
"throw",
"(",
"RecognitionException",
")",
"e",
".",
"getCause",
"(",
")",
";",
"}",
"catch",
"(",
"RecognitionException",
"re",
")",
"{",
"throw",
"re",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"throw",
"new",
"CannotInvokeStartRule",
"(",
"e",
")",
";",
"}",
"if",
"(",
"tokens",
".",
"LA",
"(",
"1",
")",
"!=",
"Token",
".",
"EOF",
")",
"{",
"throw",
"new",
"StartRuleDoesNotConsumeFullPattern",
"(",
")",
";",
"}",
"return",
"new",
"ParseTreePattern",
"(",
"this",
",",
"pattern",
",",
"patternRuleIndex",
",",
"tree",
")",
";",
"}"
] |
public virtual ParseTreePattern Compile(string pattern, int patternRuleIndex){IList<IToken> tokenList = Tokenize(pattern);ListTokenSource tokenSrc = new ListTokenSource(tokenList);CommonTokenStream tokens = new CommonTokenStream(tokenSrc);ParserInterpreter parserInterp = new ParserInterpreter(parser.GrammarFileName, parser.Vocabulary, Arrays.AsList(parser.RuleNames), parser.GetATNWithBypassAlts(), tokens);IParseTree tree = null;try{parserInterp.ErrorHandler = new BailErrorStrategy();tree = parserInterp.Parse(patternRuleIndex);}catch (ParseCanceledException e){throw (RecognitionException)e.InnerException;}catch (RecognitionException){throw;}catch (Exception e){throw new ParseTreePatternMatcher.CannotInvokeStartRule(e);}if (tokens.LA(1) != TokenConstants.EOF){throw new ParseTreePatternMatcher.StartRuleDoesNotConsumeFullPattern();}return new ParseTreePattern(this, pattern, patternRuleIndex, tree);}
|
train
| false
|
1,768
|
public GetRelationalDatabaseLogEventsResult getRelationalDatabaseLogEvents(GetRelationalDatabaseLogEventsRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseLogEvents(request);}
|
[
"public",
"GetRelationalDatabaseLogEventsResult",
"getRelationalDatabaseLogEvents",
"(",
"GetRelationalDatabaseLogEventsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetRelationalDatabaseLogEvents",
"(",
"request",
")",
";",
"}"
] |
public virtual GetRelationalDatabaseLogEventsResponse GetRelationalDatabaseLogEvents(GetRelationalDatabaseLogEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseLogEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseLogEventsResponseUnmarshaller.Instance;return Invoke<GetRelationalDatabaseLogEventsResponse>(request, options);}
|
train
| true
|
1,769
|
public TokenStream create(TokenStream input) {return new BeiderMorseFilter(input, engine, languageSet);}
|
[
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"BeiderMorseFilter",
"(",
"input",
",",
"engine",
",",
"languageSet",
")",
";",
"}"
] |
public override TokenStream Create(TokenStream input){return new BeiderMorseFilter(input, engine, languageSet);}
|
train
| false
|
1,770
|
public FloatBuffer duplicate() {return copy(this, mark);}
|
[
"public",
"FloatBuffer",
"duplicate",
"(",
")",
"{",
"return",
"copy",
"(",
"this",
",",
"mark",
")",
";",
"}"
] |
public override java.nio.FloatBuffer duplicate(){return copy(this, _mark);}
|
train
| false
|
1,771
|
public ClasspathResourceLoader(Class<?> clazz) {this(clazz, clazz.getClassLoader());}
|
[
"public",
"ClasspathResourceLoader",
"(",
"Class",
"<",
"?",
">",
"clazz",
")",
"{",
"this",
"(",
"clazz",
",",
"clazz",
".",
"getClassLoader",
"(",
")",
")",
";",
"}"
] |
public ClasspathResourceLoader(Type clazz){this.clazz = clazz;}
|
train
| false
|
1,772
|
public DescribeRouteTablesResult describeRouteTables(DescribeRouteTablesRequest request) {request = beforeClientExecution(request);return executeDescribeRouteTables(request);}
|
[
"public",
"DescribeRouteTablesResult",
"describeRouteTables",
"(",
"DescribeRouteTablesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeRouteTables",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeRouteTablesResponse DescribeRouteTables(DescribeRouteTablesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRouteTablesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRouteTablesResponseUnmarshaller.Instance;return Invoke<DescribeRouteTablesResponse>(request, options);}
|
train
| true
|
1,773
|
public void setRenameCallback(RenameCallback callback) {renameCallback = callback;}
|
[
"public",
"void",
"setRenameCallback",
"(",
"RenameCallback",
"callback",
")",
"{",
"renameCallback",
"=",
"callback",
";",
"}"
] |
public virtual void SetRenameCallback(RenameCallback callback){renameCallback = callback;}
|
train
| false
|
1,774
|
public DimensionsRecord createDimensions() {DimensionsRecord result = new DimensionsRecord();result.setFirstRow(_firstrow);result.setLastRow(_lastrow);result.setFirstCol((short) _valuesAgg.getFirstCellNum());result.setLastCol((short) _valuesAgg.getLastCellNum());return result;}
|
[
"public",
"DimensionsRecord",
"createDimensions",
"(",
")",
"{",
"DimensionsRecord",
"result",
"=",
"new",
"DimensionsRecord",
"(",
")",
";",
"result",
".",
"setFirstRow",
"(",
"_firstrow",
")",
";",
"result",
".",
"setLastRow",
"(",
"_lastrow",
")",
";",
"result",
".",
"setFirstCol",
"(",
"(",
"short",
")",
"_valuesAgg",
".",
"getFirstCellNum",
"(",
")",
")",
";",
"result",
".",
"setLastCol",
"(",
"(",
"short",
")",
"_valuesAgg",
".",
"getLastCellNum",
"(",
")",
")",
";",
"return",
"result",
";",
"}"
] |
public DimensionsRecord CreateDimensions(){DimensionsRecord result = new DimensionsRecord();result.FirstRow=(firstrow);result.LastRow=(lastrow);result.FirstCol =_valuesAgg.FirstCellNum;result.LastCol = _valuesAgg.LastCellNum;return result;}
|
train
| false
|
1,775
|
public StopTransformJobResult stopTransformJob(StopTransformJobRequest request) {request = beforeClientExecution(request);return executeStopTransformJob(request);}
|
[
"public",
"StopTransformJobResult",
"stopTransformJob",
"(",
"StopTransformJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStopTransformJob",
"(",
"request",
")",
";",
"}"
] |
public virtual StopTransformJobResponse StopTransformJob(StopTransformJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTransformJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTransformJobResponseUnmarshaller.Instance;return Invoke<StopTransformJobResponse>(request, options);}
|
train
| true
|
1,777
|
public QueryAuthenticationRequest() {super("LinkFace", "2018-07-20", "QueryAuthentication");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
|
[
"public",
"QueryAuthenticationRequest",
"(",
")",
"{",
"super",
"(",
"\"LinkFace\"",
",",
"\"2018-07-20\"",
",",
"\"QueryAuthentication\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] |
public QueryAuthenticationRequest(): base("LinkFace", "2018-07-20", "QueryAuthentication"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
|
train
| false
|
1,778
|
public PrintStream append(char c) {print(c);return this;}
|
[
"public",
"PrintStream",
"append",
"(",
"char",
"c",
")",
"{",
"print",
"(",
"c",
")",
";",
"return",
"this",
";",
"}"
] |
public virtual java.io.PrintStream append(char c){print(c);return this;}
|
train
| false
|
1,779
|
public StartKeyPhrasesDetectionJobResult startKeyPhrasesDetectionJob(StartKeyPhrasesDetectionJobRequest request) {request = beforeClientExecution(request);return executeStartKeyPhrasesDetectionJob(request);}
|
[
"public",
"StartKeyPhrasesDetectionJobResult",
"startKeyPhrasesDetectionJob",
"(",
"StartKeyPhrasesDetectionJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStartKeyPhrasesDetectionJob",
"(",
"request",
")",
";",
"}"
] |
public virtual StartKeyPhrasesDetectionJobResponse StartKeyPhrasesDetectionJob(StartKeyPhrasesDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartKeyPhrasesDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StartKeyPhrasesDetectionJobResponseUnmarshaller.Instance;return Invoke<StartKeyPhrasesDetectionJobResponse>(request, options);}
|
train
| true
|
1,780
|
public QueryPhraseMap searchPhrase( final List<TermInfo> phraseCandidate ){QueryPhraseMap currMap = this;for( TermInfo ti : phraseCandidate ){currMap = currMap.subMap.get( ti.getText() );if( currMap == null ) return null;}return currMap.isValidTermOrPhrase( phraseCandidate ) ? currMap : null;}
|
[
"public",
"QueryPhraseMap",
"searchPhrase",
"(",
"final",
"List",
"<",
"TermInfo",
">",
"phraseCandidate",
")",
"{",
"QueryPhraseMap",
"currMap",
"=",
"this",
";",
"for",
"(",
"TermInfo",
"ti",
":",
"phraseCandidate",
")",
"{",
"currMap",
"=",
"currMap",
".",
"subMap",
".",
"get",
"(",
"ti",
".",
"getText",
"(",
")",
")",
";",
"if",
"(",
"currMap",
"==",
"null",
")",
"return",
"null",
";",
"}",
"return",
"currMap",
".",
"isValidTermOrPhrase",
"(",
"phraseCandidate",
")",
"?",
"currMap",
":",
"null",
";",
"}"
] |
public virtual QueryPhraseMap SearchPhrase(IList<TermInfo> phraseCandidate){QueryPhraseMap currMap = this;foreach (TermInfo ti in phraseCandidate){currMap.subMap.TryGetValue(ti.Text, out currMap);if (currMap == null) return null;}return currMap.IsValidTermOrPhrase(phraseCandidate) ? currMap : null;}
|
train
| false
|
1,781
|
public void add(Term term) {if (term == null) {throw new IllegalArgumentException("Term must not be null");}this.terms.add(term);}
|
[
"public",
"void",
"add",
"(",
"Term",
"term",
")",
"{",
"if",
"(",
"term",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Term must not be null\"",
")",
";",
"}",
"this",
".",
"terms",
".",
"add",
"(",
"term",
")",
";",
"}"
] |
public virtual void Add(Term term){if (term == null){throw new ArgumentException("Term must not be null");}this.m_terms.Add(term);}
|
train
| false
|
1,782
|
public ListEmailIdentitiesResult listEmailIdentities(ListEmailIdentitiesRequest request) {request = beforeClientExecution(request);return executeListEmailIdentities(request);}
|
[
"public",
"ListEmailIdentitiesResult",
"listEmailIdentities",
"(",
"ListEmailIdentitiesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListEmailIdentities",
"(",
"request",
")",
";",
"}"
] |
public virtual ListEmailIdentitiesResponse ListEmailIdentities(ListEmailIdentitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEmailIdentitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEmailIdentitiesResponseUnmarshaller.Instance;return Invoke<ListEmailIdentitiesResponse>(request, options);}
|
train
| true
|
1,783
|
public MutableFPNumber(BigInteger frac, int binaryExponent) {_significand = frac;_binaryExponent = binaryExponent;}
|
[
"public",
"MutableFPNumber",
"(",
"BigInteger",
"frac",
",",
"int",
"binaryExponent",
")",
"{",
"_significand",
"=",
"frac",
";",
"_binaryExponent",
"=",
"binaryExponent",
";",
"}"
] |
public MutableFPNumber(BigInteger frac, int binaryExponent){_significand = frac;_binaryExponent = binaryExponent;}
|
train
| false
|
1,784
|
public CreateNetworkProfileResult createNetworkProfile(CreateNetworkProfileRequest request) {request = beforeClientExecution(request);return executeCreateNetworkProfile(request);}
|
[
"public",
"CreateNetworkProfileResult",
"createNetworkProfile",
"(",
"CreateNetworkProfileRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateNetworkProfile",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateNetworkProfileResponse CreateNetworkProfile(CreateNetworkProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNetworkProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNetworkProfileResponseUnmarshaller.Instance;return Invoke<CreateNetworkProfileResponse>(request, options);}
|
train
| true
|
1,785
|
public Transition removeTransition(int index) {return transitions.remove(index);}
|
[
"public",
"Transition",
"removeTransition",
"(",
"int",
"index",
")",
"{",
"return",
"transitions",
".",
"remove",
"(",
"index",
")",
";",
"}"
] |
public virtual void RemoveTransition(int index){transitions.RemoveAt(index);}
|
train
| false
|
1,786
|
public int doLogic() throws Exception {final PerfRunData runData = getRunData();IndexWriter w = runData.getIndexWriter();if (w == null) {throw new RuntimeException("please open the writer before invoking NearRealtimeReader");}if (runData.getIndexReader() != null) {throw new RuntimeException("please close the existing reader before invoking NearRealtimeReader");}long t = System.currentTimeMillis();DirectoryReader r = DirectoryReader.open(w);runData.setIndexReader(r);r.decRef();reopenCount = 0;while(!stopNow) {long waitForMsec = (pauseMSec - (System.currentTimeMillis() - t));if (waitForMsec > 0) {Thread.sleep(waitForMsec);}t = System.currentTimeMillis();final DirectoryReader newReader = DirectoryReader.openIfChanged(r);if (newReader != null) {final int delay = (int) (System.currentTimeMillis()-t);if (reopenTimes.length == reopenCount) {reopenTimes = ArrayUtil.grow(reopenTimes, 1+reopenCount);}reopenTimes[reopenCount++] = delay;runData.setIndexReader(newReader);newReader.decRef();r = newReader;}}stopNow = false;return reopenCount;}
|
[
"public",
"int",
"doLogic",
"(",
")",
"throws",
"Exception",
"{",
"final",
"PerfRunData",
"runData",
"=",
"getRunData",
"(",
")",
";",
"IndexWriter",
"w",
"=",
"runData",
".",
"getIndexWriter",
"(",
")",
";",
"if",
"(",
"w",
"==",
"null",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"please open the writer before invoking NearRealtimeReader\"",
")",
";",
"}",
"if",
"(",
"runData",
".",
"getIndexReader",
"(",
")",
"!=",
"null",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"please close the existing reader before invoking NearRealtimeReader\"",
")",
";",
"}",
"long",
"t",
"=",
"System",
".",
"currentTimeMillis",
"(",
")",
";",
"DirectoryReader",
"r",
"=",
"DirectoryReader",
".",
"open",
"(",
"w",
")",
";",
"runData",
".",
"setIndexReader",
"(",
"r",
")",
";",
"r",
".",
"decRef",
"(",
")",
";",
"reopenCount",
"=",
"0",
";",
"while",
"(",
"!",
"stopNow",
")",
"{",
"long",
"waitForMsec",
"=",
"(",
"pauseMSec",
"-",
"(",
"System",
".",
"currentTimeMillis",
"(",
")",
"-",
"t",
")",
")",
";",
"if",
"(",
"waitForMsec",
">",
"0",
")",
"{",
"Thread",
".",
"sleep",
"(",
"waitForMsec",
")",
";",
"}",
"t",
"=",
"System",
".",
"currentTimeMillis",
"(",
")",
";",
"final",
"DirectoryReader",
"newReader",
"=",
"DirectoryReader",
".",
"openIfChanged",
"(",
"r",
")",
";",
"if",
"(",
"newReader",
"!=",
"null",
")",
"{",
"final",
"int",
"delay",
"=",
"(",
"int",
")",
"(",
"System",
".",
"currentTimeMillis",
"(",
")",
"-",
"t",
")",
";",
"if",
"(",
"reopenTimes",
".",
"length",
"==",
"reopenCount",
")",
"{",
"reopenTimes",
"=",
"ArrayUtil",
".",
"grow",
"(",
"reopenTimes",
",",
"1",
"+",
"reopenCount",
")",
";",
"}",
"reopenTimes",
"[",
"reopenCount",
"++",
"]",
"=",
"delay",
";",
"runData",
".",
"setIndexReader",
"(",
"newReader",
")",
";",
"newReader",
".",
"decRef",
"(",
")",
";",
"r",
"=",
"newReader",
";",
"}",
"}",
"stopNow",
"=",
"false",
";",
"return",
"reopenCount",
";",
"}"
] |
public override int DoLogic(){PerfRunData runData = RunData;IndexWriter w = runData.IndexWriter;if (w == null){throw new Exception("please open the writer before invoking NearRealtimeReader");}if (runData.GetIndexReader() != null){throw new Exception("please close the existing reader before invoking NearRealtimeReader");}long t = J2N.Time.CurrentTimeMilliseconds();DirectoryReader r = DirectoryReader.Open(w, true);runData.SetIndexReader(r);r.DecRef();reopenCount = 0;while (!Stop){long waitForMsec = (pauseMSec - (J2N.Time.CurrentTimeMilliseconds() - t));if (waitForMsec > 0){Thread.Sleep((int)waitForMsec);}t = J2N.Time.CurrentTimeMilliseconds();DirectoryReader newReader = DirectoryReader.OpenIfChanged(r);if (newReader != null){int delay = (int)(J2N.Time.CurrentTimeMilliseconds() - t);if (reopenTimes.Length == reopenCount){reopenTimes = ArrayUtil.Grow(reopenTimes, 1 + reopenCount);}reopenTimes[reopenCount++] = delay;runData.SetIndexReader(newReader);newReader.DecRef();r = newReader;}}Stop = false;return reopenCount;}
|
train
| false
|
1,787
|
public PutAttributesResult putAttributes(PutAttributesRequest request) {request = beforeClientExecution(request);return executePutAttributes(request);}
|
[
"public",
"PutAttributesResult",
"putAttributes",
"(",
"PutAttributesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutAttributes",
"(",
"request",
")",
";",
"}"
] |
public virtual PutAttributesResponse PutAttributes(PutAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAttributesResponseUnmarshaller.Instance;return Invoke<PutAttributesResponse>(request, options);}
|
train
| true
|
1,788
|
public DeleteLocalGatewayRouteTableVpcAssociationResult deleteLocalGatewayRouteTableVpcAssociation(DeleteLocalGatewayRouteTableVpcAssociationRequest request) {request = beforeClientExecution(request);return executeDeleteLocalGatewayRouteTableVpcAssociation(request);}
|
[
"public",
"DeleteLocalGatewayRouteTableVpcAssociationResult",
"deleteLocalGatewayRouteTableVpcAssociation",
"(",
"DeleteLocalGatewayRouteTableVpcAssociationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteLocalGatewayRouteTableVpcAssociation",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteLocalGatewayRouteTableVpcAssociationResponse DeleteLocalGatewayRouteTableVpcAssociation(DeleteLocalGatewayRouteTableVpcAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLocalGatewayRouteTableVpcAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLocalGatewayRouteTableVpcAssociationResponseUnmarshaller.Instance;return Invoke<DeleteLocalGatewayRouteTableVpcAssociationResponse>(request, options);}
|
train
| false
|
1,789
|
public TreeFilter clone() {return this;}
|
[
"public",
"TreeFilter",
"clone",
"(",
")",
"{",
"return",
"this",
";",
"}"
] |
public override RevFilter Clone(){return this;}
|
train
| false
|
1,791
|
public void back(int delta) {while (--delta >= 0) {if (currentSubtree != null)nextSubtreePos--;ptr--;parseEntry(false);if (currentSubtree != null)ptr -= currentSubtree.getEntrySpan() - 1;}}
|
[
"public",
"void",
"back",
"(",
"int",
"delta",
")",
"{",
"while",
"(",
"--",
"delta",
">=",
"0",
")",
"{",
"if",
"(",
"currentSubtree",
"!=",
"null",
")",
"nextSubtreePos",
"--",
";",
"ptr",
"--",
";",
"parseEntry",
"(",
"false",
")",
";",
"if",
"(",
"currentSubtree",
"!=",
"null",
")",
"ptr",
"-=",
"currentSubtree",
".",
"getEntrySpan",
"(",
")",
"-",
"1",
";",
"}",
"}"
] |
public override void Back(int delta){while (--delta >= 0){if (currentSubtree != null){nextSubtreePos--;}ptr--;ParseEntry();if (currentSubtree != null){ptr -= currentSubtree.GetEntrySpan() - 1;}}}
|
train
| false
|
1,792
|
public Map<String, SubmoduleStatus> call() throws GitAPIException {checkCallable();try (SubmoduleWalk generator = SubmoduleWalk.forIndex(repo)) {if (!paths.isEmpty())generator.setFilter(PathFilterGroup.createFromStrings(paths));Map<String, SubmoduleStatus> statuses = new HashMap<>();while (generator.next()) {SubmoduleStatus status = getStatus(generator);statuses.put(status.getPath(), status);}return statuses;} catch (IOException | ConfigInvalidException e) {throw new JGitInternalException(e.getMessage(), e);}}
|
[
"public",
"Map",
"<",
"String",
",",
"SubmoduleStatus",
">",
"call",
"(",
")",
"throws",
"GitAPIException",
"{",
"checkCallable",
"(",
")",
";",
"try",
"(",
"SubmoduleWalk",
"generator",
"=",
"SubmoduleWalk",
".",
"forIndex",
"(",
"repo",
")",
")",
"{",
"if",
"(",
"!",
"paths",
".",
"isEmpty",
"(",
")",
")",
"generator",
".",
"setFilter",
"(",
"PathFilterGroup",
".",
"createFromStrings",
"(",
"paths",
")",
")",
";",
"Map",
"<",
"String",
",",
"SubmoduleStatus",
">",
"statuses",
"=",
"new",
"HashMap",
"<",
">",
"(",
")",
";",
"while",
"(",
"generator",
".",
"next",
"(",
")",
")",
"{",
"SubmoduleStatus",
"status",
"=",
"getStatus",
"(",
"generator",
")",
";",
"statuses",
".",
"put",
"(",
"status",
".",
"getPath",
"(",
")",
",",
"status",
")",
";",
"}",
"return",
"statuses",
";",
"}",
"catch",
"(",
"IOException",
"|",
"ConfigInvalidException",
"e",
")",
"{",
"throw",
"new",
"JGitInternalException",
"(",
"e",
".",
"getMessage",
"(",
")",
",",
"e",
")",
";",
"}",
"}"
] |
public override IDictionary<string, SubmoduleStatus> Call(){CheckCallable();try{SubmoduleWalk generator = SubmoduleWalk.ForIndex(repo);if (!paths.IsEmpty()){generator.SetFilter(PathFilterGroup.CreateFromStrings(paths));}IDictionary<string, SubmoduleStatus> statuses = new Dictionary<string, SubmoduleStatus>();while (generator.Next()){SubmoduleStatus status = GetStatus(generator);statuses.Put(status.GetPath(), status);}return statuses;}catch (IOException e){throw new JGitInternalException(e.Message, e);}catch (ConfigInvalidException e){throw new JGitInternalException(e.Message, e);}}
|
train
| false
|
1,793
|
public synchronized int available() {return count - pos;}
|
[
"public",
"synchronized",
"int",
"available",
"(",
")",
"{",
"return",
"count",
"-",
"pos",
";",
"}"
] |
public override int available(){lock (this){return count - pos;}}
|
train
| false
|
1,794
|
public SmallStream(int type, byte[] data) {this.type = type;this.data = data;}
|
[
"public",
"SmallStream",
"(",
"int",
"type",
",",
"byte",
"[",
"]",
"data",
")",
"{",
"this",
".",
"type",
"=",
"type",
";",
"this",
".",
"data",
"=",
"data",
";",
"}"
] |
public SmallStream(int type, byte[] data){this.type = type;this.data = data;}
|
train
| false
|
1,795
|
public String escapeExtensionField(String extfield) {return QueryParserBase.escape(extfield);}
|
[
"public",
"String",
"escapeExtensionField",
"(",
"String",
"extfield",
")",
"{",
"return",
"QueryParserBase",
".",
"escape",
"(",
"extfield",
")",
";",
"}"
] |
public virtual string EscapeExtensionField(string extfield){return QueryParserBase.Escape(extfield);}
|
train
| false
|
1,796
|
public QueryScorer(Query query) {init(query, null, null, true);}
|
[
"public",
"QueryScorer",
"(",
"Query",
"query",
")",
"{",
"init",
"(",
"query",
",",
"null",
",",
"null",
",",
"true",
")",
";",
"}"
] |
public QueryScorer(Query query){Init(query, null, null, true);}
|
train
| false
|
1,797
|
public int getHighIx() {return _highIx;}
|
[
"public",
"int",
"getHighIx",
"(",
")",
"{",
"return",
"_highIx",
";",
"}"
] |
public int GetHighIx(){return _highIx;}
|
train
| false
|
1,798
|
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[VCENTER]\n");buffer.append(" .vcenter = ").append(getVCenter()).append("\n");buffer.append("[/VCENTER]\n");return buffer.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[VCENTER]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .vcenter = \"",
")",
".",
"append",
"(",
"getVCenter",
"(",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\"[/VCENTER]\\n\"",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] |
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[VCENTER]\n");buffer.Append(" .vcenter = ").Append(VCenter).Append("\n");buffer.Append("[/VCENTER]\n");return buffer.ToString();}
|
train
| false
|
1,799
|
public int size(){return _limit;}
|
[
"public",
"int",
"size",
"(",
")",
"{",
"return",
"_limit",
";",
"}"
] |
public int Size(){return _limit;}
|
train
| false
|
1,800
|
public PredictCategoryRequest() {super("visionai-poc", "2020-04-08", "PredictCategory");setMethod(MethodType.POST);}
|
[
"public",
"PredictCategoryRequest",
"(",
")",
"{",
"super",
"(",
"\"visionai-poc\"",
",",
"\"2020-04-08\"",
",",
"\"PredictCategory\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] |
public PredictCategoryRequest(): base("visionai-poc", "2020-04-08", "PredictCategory"){Method = MethodType.POST;}
|
train
| false
|
1,801
|
public DeleteLagResult deleteLag(DeleteLagRequest request) {request = beforeClientExecution(request);return executeDeleteLag(request);}
|
[
"public",
"DeleteLagResult",
"deleteLag",
"(",
"DeleteLagRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteLag",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteLagResponse DeleteLag(DeleteLagRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLagRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLagResponseUnmarshaller.Instance;return Invoke<DeleteLagResponse>(request, options);}
|
train
| true
|
1,803
|
public void end() {state.end();}
|
[
"public",
"void",
"end",
"(",
")",
"{",
"state",
".",
"end",
"(",
")",
";",
"}"
] |
public void End(){state.End();}
|
train
| false
|
1,804
|
public BooleanMatcher(boolean value, CmpOp operator) {super(operator);_value = boolToInt(value);}
|
[
"public",
"BooleanMatcher",
"(",
"boolean",
"value",
",",
"CmpOp",
"operator",
")",
"{",
"super",
"(",
"operator",
")",
";",
"_value",
"=",
"boolToInt",
"(",
"value",
")",
";",
"}"
] |
public BooleanMatcher(bool value, CmpOp optr): base(optr){_value = BoolToInt(value);}
|
train
| false
|
1,805
|
public SheetVector(RefEval re) {_size = re.getNumberOfSheets();_re = re;}
|
[
"public",
"SheetVector",
"(",
"RefEval",
"re",
")",
"{",
"_size",
"=",
"re",
".",
"getNumberOfSheets",
"(",
")",
";",
"_re",
"=",
"re",
";",
"}"
] |
public SheetVector(RefEval re){_size = re.NumberOfSheets;_re = re;}
|
train
| false
|
1,806
|
public UpdateGameSessionResult updateGameSession(UpdateGameSessionRequest request) {request = beforeClientExecution(request);return executeUpdateGameSession(request);}
|
[
"public",
"UpdateGameSessionResult",
"updateGameSession",
"(",
"UpdateGameSessionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateGameSession",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateGameSessionResponse UpdateGameSession(UpdateGameSessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGameSessionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGameSessionResponseUnmarshaller.Instance;return Invoke<UpdateGameSessionResponse>(request, options);}
|
train
| true
|
1,807
|
public String getName() {return String.format(Locale.ROOT, "Dirichlet(%f)", getMu());}
|
[
"public",
"String",
"getName",
"(",
")",
"{",
"return",
"String",
".",
"format",
"(",
"Locale",
".",
"ROOT",
",",
"\"Dirichlet(%f)\"",
",",
"getMu",
"(",
")",
")",
";",
"}"
] |
public override string GetName(){return "Dirichlet(" + Number.ToString(Mu) + ")";}
|
train
| false
|
1,808
|
public void decompress(DataInput in, int originalLength, int offset, int length, BytesRef bytes) throws IOException {assert offset + length <= originalLength;if (length == 0) {bytes.length = 0;return;}final int compressedLength = in.readVInt();final int paddedLength = compressedLength + 1;compressed = ArrayUtil.grow(compressed, paddedLength);in.readBytes(compressed, 0, compressedLength);compressed[compressedLength] = 0; final Inflater decompressor = new Inflater(true);try {decompressor.setInput(compressed, 0, paddedLength);bytes.offset = bytes.length = 0;bytes.bytes = ArrayUtil.grow(bytes.bytes, originalLength);try {bytes.length = decompressor.inflate(bytes.bytes, bytes.length, originalLength);} catch (DataFormatException e) {throw new IOException(e);}if (!decompressor.finished()) {throw new CorruptIndexException("Invalid decoder state: needsInput=" + decompressor.needsInput()+ ", needsDict=" + decompressor.needsDictionary(), in);}} finally {decompressor.end();}if (bytes.length != originalLength) {throw new CorruptIndexException("Lengths mismatch: " + bytes.length + " != " + originalLength, in);}bytes.offset = offset;bytes.length = length;}
|
[
"public",
"void",
"decompress",
"(",
"DataInput",
"in",
",",
"int",
"originalLength",
",",
"int",
"offset",
",",
"int",
"length",
",",
"BytesRef",
"bytes",
")",
"throws",
"IOException",
"{",
"assert",
"offset",
"+",
"length",
"<=",
"originalLength",
";",
"if",
"(",
"length",
"==",
"0",
")",
"{",
"bytes",
".",
"length",
"=",
"0",
";",
"return",
";",
"}",
"final",
"int",
"compressedLength",
"=",
"in",
".",
"readVInt",
"(",
")",
";",
"final",
"int",
"paddedLength",
"=",
"compressedLength",
"+",
"1",
";",
"compressed",
"=",
"ArrayUtil",
".",
"grow",
"(",
"compressed",
",",
"paddedLength",
")",
";",
"in",
".",
"readBytes",
"(",
"compressed",
",",
"0",
",",
"compressedLength",
")",
";",
"compressed",
"[",
"compressedLength",
"]",
"=",
"0",
";",
"final",
"Inflater",
"decompressor",
"=",
"new",
"Inflater",
"(",
"true",
")",
";",
"try",
"{",
"decompressor",
".",
"setInput",
"(",
"compressed",
",",
"0",
",",
"paddedLength",
")",
";",
"bytes",
".",
"offset",
"=",
"bytes",
".",
"length",
"=",
"0",
";",
"bytes",
".",
"bytes",
"=",
"ArrayUtil",
".",
"grow",
"(",
"bytes",
".",
"bytes",
",",
"originalLength",
")",
";",
"try",
"{",
"bytes",
".",
"length",
"=",
"decompressor",
".",
"inflate",
"(",
"bytes",
".",
"bytes",
",",
"bytes",
".",
"length",
",",
"originalLength",
")",
";",
"}",
"catch",
"(",
"DataFormatException",
"e",
")",
"{",
"throw",
"new",
"IOException",
"(",
"e",
")",
";",
"}",
"if",
"(",
"!",
"decompressor",
".",
"finished",
"(",
")",
")",
"{",
"throw",
"new",
"CorruptIndexException",
"(",
"\"Invalid decoder state: needsInput=\"",
"+",
"decompressor",
".",
"needsInput",
"(",
")",
"+",
"\", needsDict=\"",
"+",
"decompressor",
".",
"needsDictionary",
"(",
")",
",",
"in",
")",
";",
"}",
"}",
"finally",
"{",
"decompressor",
".",
"end",
"(",
")",
";",
"}",
"if",
"(",
"bytes",
".",
"length",
"!=",
"originalLength",
")",
"{",
"throw",
"new",
"CorruptIndexException",
"(",
"\"Lengths mismatch: \"",
"+",
"bytes",
".",
"length",
"+",
"\" != \"",
"+",
"originalLength",
",",
"in",
")",
";",
"}",
"bytes",
".",
"offset",
"=",
"offset",
";",
"bytes",
".",
"length",
"=",
"length",
";",
"}"
] |
public override void Decompress(DataInput input, int originalLength, int offset, int length, BytesRef bytes){Debug.Assert(offset + length <= originalLength);if (length == 0){bytes.Length = 0;return;}byte[] compressedBytes = new byte[input.ReadVInt32()];input.ReadBytes(compressedBytes, 0, compressedBytes.Length);byte[] decompressedBytes = null;using (MemoryStream decompressedStream = new MemoryStream()){using (MemoryStream compressedStream = new MemoryStream(compressedBytes)){using (DeflateStream dStream = new DeflateStream(compressedStream, System.IO.Compression.CompressionMode.Decompress)){dStream.CopyTo(decompressedStream);}}decompressedBytes = decompressedStream.ToArray();}if (decompressedBytes.Length != originalLength){throw new CorruptIndexException("Length mismatch: " + decompressedBytes.Length + " != " + originalLength + " (resource=" + input + ")");}bytes.Bytes = decompressedBytes;bytes.Offset = offset;bytes.Length = length;}
|
train
| false
|
1,809
|
public Pair<String,String> splitExtensionField(String defaultField,String field) {int indexOf = field.indexOf(this.extensionFieldDelimiter);if (indexOf < 0)return new Pair<>(field, null);final String indexField = indexOf == 0 ? defaultField : field.substring(0,indexOf);final String extensionKey = field.substring(indexOf + 1);return new Pair<>(indexField, extensionKey);}
|
[
"public",
"Pair",
"<",
"String",
",",
"String",
">",
"splitExtensionField",
"(",
"String",
"defaultField",
",",
"String",
"field",
")",
"{",
"int",
"indexOf",
"=",
"field",
".",
"indexOf",
"(",
"this",
".",
"extensionFieldDelimiter",
")",
";",
"if",
"(",
"indexOf",
"<",
"0",
")",
"return",
"new",
"Pair",
"<",
">",
"(",
"field",
",",
"null",
")",
";",
"final",
"String",
"indexField",
"=",
"indexOf",
"==",
"0",
"?",
"defaultField",
":",
"field",
".",
"substring",
"(",
"0",
",",
"indexOf",
")",
";",
"final",
"String",
"extensionKey",
"=",
"field",
".",
"substring",
"(",
"indexOf",
"+",
"1",
")",
";",
"return",
"new",
"Pair",
"<",
">",
"(",
"indexField",
",",
"extensionKey",
")",
";",
"}"
] |
public virtual Tuple<string, string> SplitExtensionField(string defaultField, string field){int indexOf = field.IndexOf(this.extensionFieldDelimiter);if (indexOf < 0)return new Tuple<string, string>(field, null);string indexField = indexOf == 0 ? defaultField : field.Substring(0, indexOf);string extensionKey = field.Substring(indexOf + 1);return new Tuple<string, string>(indexField, extensionKey);}
|
train
| false
|
1,810
|
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[FRAME]\n");buffer.append(" .borderType = ").append("0x").append(HexDump.toHex( getBorderType ())).append(" (").append( getBorderType() ).append(" )");buffer.append(System.getProperty("line.separator"));buffer.append(" .options = ").append("0x").append(HexDump.toHex( getOptions ())).append(" (").append( getOptions() ).append(" )");buffer.append(System.getProperty("line.separator"));buffer.append(" .autoSize = ").append(isAutoSize()).append('\n');buffer.append(" .autoPosition = ").append(isAutoPosition()).append('\n');buffer.append("[/FRAME]\n");return buffer.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[FRAME]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .borderType = \"",
")",
".",
"append",
"(",
"\"0x\"",
")",
".",
"append",
"(",
"HexDump",
".",
"toHex",
"(",
"getBorderType",
"(",
")",
")",
")",
".",
"append",
"(",
"\" (\"",
")",
".",
"append",
"(",
"getBorderType",
"(",
")",
")",
".",
"append",
"(",
"\" )\"",
")",
";",
"buffer",
".",
"append",
"(",
"System",
".",
"getProperty",
"(",
"\"line.separator\"",
")",
")",
";",
"buffer",
".",
"append",
"(",
"\" .options = \"",
")",
".",
"append",
"(",
"\"0x\"",
")",
".",
"append",
"(",
"HexDump",
".",
"toHex",
"(",
"getOptions",
"(",
")",
")",
")",
".",
"append",
"(",
"\" (\"",
")",
".",
"append",
"(",
"getOptions",
"(",
")",
")",
".",
"append",
"(",
"\" )\"",
")",
";",
"buffer",
".",
"append",
"(",
"System",
".",
"getProperty",
"(",
"\"line.separator\"",
")",
")",
";",
"buffer",
".",
"append",
"(",
"\" .autoSize = \"",
")",
".",
"append",
"(",
"isAutoSize",
"(",
")",
")",
".",
"append",
"(",
"'\\n'",
")",
";",
"buffer",
".",
"append",
"(",
"\" .autoPosition = \"",
")",
".",
"append",
"(",
"isAutoPosition",
"(",
")",
")",
".",
"append",
"(",
"'\\n'",
")",
";",
"buffer",
".",
"append",
"(",
"\"[/FRAME]\\n\"",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] |
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[FRAME]\n");buffer.Append(" .borderType = ").Append("0x").Append(HexDump.ToHex(BorderType)).Append(" (").Append(BorderType).Append(" )");buffer.Append(Environment.NewLine);buffer.Append(" .options = ").Append("0x").Append(HexDump.ToHex(Options)).Append(" (").Append(Options).Append(" )");buffer.Append(Environment.NewLine);buffer.Append(" .autoSize = ").Append(IsAutoSize).Append('\n');buffer.Append(" .autoPosition = ").Append(IsAutoPosition).Append('\n');buffer.Append("[/FRAME]\n");return buffer.ToString();}
|
train
| false
|
1,811
|
public Cluster pauseCluster(PauseClusterRequest request) {request = beforeClientExecution(request);return executePauseCluster(request);}
|
[
"public",
"Cluster",
"pauseCluster",
"(",
"PauseClusterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePauseCluster",
"(",
"request",
")",
";",
"}"
] |
public virtual PauseClusterResponse PauseCluster(PauseClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = PauseClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = PauseClusterResponseUnmarshaller.Instance;return Invoke<PauseClusterResponse>(request, options);}
|
train
| false
|
1,812
|
public void setValue(String newValue) {value = newValue;}
|
[
"public",
"void",
"setValue",
"(",
"String",
"newValue",
")",
"{",
"value",
"=",
"newValue",
";",
"}"
] |
public virtual void SetValue(string newValue){value = newValue;}
|
train
| false
|
1,813
|
public AllocateAddressResult allocateAddress(AllocateAddressRequest request) {request = beforeClientExecution(request);return executeAllocateAddress(request);}
|
[
"public",
"AllocateAddressResult",
"allocateAddress",
"(",
"AllocateAddressRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAllocateAddress",
"(",
"request",
")",
";",
"}"
] |
public virtual AllocateAddressResponse AllocateAddress(AllocateAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = AllocateAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = AllocateAddressResponseUnmarshaller.Instance;return Invoke<AllocateAddressResponse>(request, options);}
|
train
| true
|
1,814
|
public GetNetworkProfileResult getNetworkProfile(GetNetworkProfileRequest request) {request = beforeClientExecution(request);return executeGetNetworkProfile(request);}
|
[
"public",
"GetNetworkProfileResult",
"getNetworkProfile",
"(",
"GetNetworkProfileRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetNetworkProfile",
"(",
"request",
")",
";",
"}"
] |
public virtual GetNetworkProfileResponse GetNetworkProfile(GetNetworkProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetNetworkProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = GetNetworkProfileResponseUnmarshaller.Instance;return Invoke<GetNetworkProfileResponse>(request, options);}
|
train
| true
|
1,815
|
public static void reThrow(Throwable th) throws IOException {if (th != null) {throw rethrowAlways(th);}}
|
[
"public",
"static",
"void",
"reThrow",
"(",
"Throwable",
"th",
")",
"throws",
"IOException",
"{",
"if",
"(",
"th",
"!=",
"null",
")",
"{",
"throw",
"rethrowAlways",
"(",
"th",
")",
";",
"}",
"}"
] |
public static void ReThrow(Exception th){if (th != null){if (th is System.IO.IOException){throw th;}ReThrowUnchecked(th);}}
|
train
| false
|
1,816
|
public void removeCell(CellValueRecordInterface cvRec) {if (cvRec instanceof FormulaRecordAggregate) {((FormulaRecordAggregate)cvRec).notifyFormulaChanging();}_valuesAgg.removeCell(cvRec);}
|
[
"public",
"void",
"removeCell",
"(",
"CellValueRecordInterface",
"cvRec",
")",
"{",
"if",
"(",
"cvRec",
"instanceof",
"FormulaRecordAggregate",
")",
"{",
"(",
"(",
"FormulaRecordAggregate",
")",
"cvRec",
")",
".",
"notifyFormulaChanging",
"(",
")",
";",
"}",
"_valuesAgg",
".",
"removeCell",
"(",
"cvRec",
")",
";",
"}"
] |
public void RemoveCell(CellValueRecordInterface cvRec){if (cvRec is FormulaRecordAggregate){((FormulaRecordAggregate)cvRec).NotifyFormulaChanging();}_valuesAgg.RemoveCell(cvRec);}
|
train
| false
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.