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 |
|---|---|---|---|---|---|
8,812
|
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {int bytesRemaining = readHeader( data, offset );int pos = offset + 8;remainingData = (bytesRemaining == 0) ? EMPTY : IOUtils.safelyAllocate(bytesRemaining, MAX_RECORD_LENGTH);System.arraycopy( data, pos, remainingData, 0, bytesRemaining );return 8 + bytesRemaining;}
|
[
"public",
"int",
"fillFields",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"offset",
",",
"EscherRecordFactory",
"recordFactory",
")",
"{",
"int",
"bytesRemaining",
"=",
"readHeader",
"(",
"data",
",",
"offset",
")",
";",
"int",
"pos",
"=",
"offset",
"+",
"8",
";",
"remainingData",
"=",
"(",
"bytesRemaining",
"==",
"0",
")",
"?",
"EMPTY",
":",
"IOUtils",
".",
"safelyAllocate",
"(",
"bytesRemaining",
",",
"MAX_RECORD_LENGTH",
")",
";",
"System",
".",
"arraycopy",
"(",
"data",
",",
"pos",
",",
"remainingData",
",",
"0",
",",
"bytesRemaining",
")",
";",
"return",
"8",
"+",
"bytesRemaining",
";",
"}"
] |
public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);int pos = offset + 8;remainingData = new byte[bytesRemaining];Array.Copy(data, pos, remainingData, 0, bytesRemaining);return 8 + bytesRemaining;}
|
train
| false
|
8,813
|
public void startFragment(TextFragment newFragment) {foundTerms = new HashSet<>();totalScore = 0;}
|
[
"public",
"void",
"startFragment",
"(",
"TextFragment",
"newFragment",
")",
"{",
"foundTerms",
"=",
"new",
"HashSet",
"<",
">",
"(",
")",
";",
"totalScore",
"=",
"0",
";",
"}"
] |
public virtual void StartFragment(TextFragment newFragment){foundTerms = new JCG.HashSet<string>();totalScore = 0;}
|
train
| false
|
8,814
|
public boolean equals(ATNConfig other) {if (this == other) {return true;}else if (!(other instanceof LexerATNConfig)) {return false;}LexerATNConfig lexerOther = (LexerATNConfig)other;if (passedThroughNonGreedyDecision != lexerOther.passedThroughNonGreedyDecision) {return false;}if (!ObjectEqualityComparator.INSTANCE.equals(lexerActionExecutor, lexerOther.lexerActionExecutor)) {return false;}return super.equals(other);}
|
[
"public",
"boolean",
"equals",
"(",
"ATNConfig",
"other",
")",
"{",
"if",
"(",
"this",
"==",
"other",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"!",
"(",
"other",
"instanceof",
"LexerATNConfig",
")",
")",
"{",
"return",
"false",
";",
"}",
"LexerATNConfig",
"lexerOther",
"=",
"(",
"LexerATNConfig",
")",
"other",
";",
"if",
"(",
"passedThroughNonGreedyDecision",
"!=",
"lexerOther",
".",
"passedThroughNonGreedyDecision",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"!",
"ObjectEqualityComparator",
".",
"INSTANCE",
".",
"equals",
"(",
"lexerActionExecutor",
",",
"lexerOther",
".",
"lexerActionExecutor",
")",
")",
"{",
"return",
"false",
";",
"}",
"return",
"super",
".",
"equals",
"(",
"other",
")",
";",
"}"
] |
public override bool Equals(ATNConfig other){if (this == other){return true;}else if (!(other is LexerATNConfig)){return false;}LexerATNConfig lexerOther = (LexerATNConfig)other;if (passedThroughNonGreedyDecision != lexerOther.passedThroughNonGreedyDecision){return false;}if (!(lexerActionExecutor==null ? lexerOther.lexerActionExecutor==null : lexerActionExecutor.Equals(lexerOther.lexerActionExecutor))){return false;}return base.Equals(other);}
|
train
| false
|
8,815
|
public DescribeCacheParameterGroupsRequest(String cacheParameterGroupName) {setCacheParameterGroupName(cacheParameterGroupName);}
|
[
"public",
"DescribeCacheParameterGroupsRequest",
"(",
"String",
"cacheParameterGroupName",
")",
"{",
"setCacheParameterGroupName",
"(",
"cacheParameterGroupName",
")",
";",
"}"
] |
public DescribeCacheParameterGroupsRequest(string cacheParameterGroupName){_cacheParameterGroupName = cacheParameterGroupName;}
|
train
| false
|
8,816
|
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(" [Pattern Formatting]\n");buffer.append(" .fillpattern= ").append(Integer.toHexString(getFillPattern())).append("\n");buffer.append(" .fgcoloridx= ").append(Integer.toHexString(getFillForegroundColor())).append("\n");buffer.append(" .bgcoloridx= ").append(Integer.toHexString(getFillBackgroundColor())).append("\n");buffer.append(" [/Pattern Formatting]\n");return buffer.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\" [Pattern Formatting]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .fillpattern= \"",
")",
".",
"append",
"(",
"Integer",
".",
"toHexString",
"(",
"getFillPattern",
"(",
")",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .fgcoloridx= \"",
")",
".",
"append",
"(",
"Integer",
".",
"toHexString",
"(",
"getFillForegroundColor",
"(",
")",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .bgcoloridx= \"",
")",
".",
"append",
"(",
"Integer",
".",
"toHexString",
"(",
"getFillBackgroundColor",
"(",
")",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" [/Pattern Formatting]\\n\"",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] |
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(" [Pattern Formatting]\n");buffer.Append(" .Fillpattern= ").Append(StringUtil.ToHexString((int) FillPattern)).Append("\n");buffer.Append(" .fgcoloridx= ").Append(StringUtil.ToHexString(FillForegroundColor)).Append("\n");buffer.Append(" .bgcoloridx= ").Append(StringUtil.ToHexString(FillBackgroundColor)).Append("\n");buffer.Append(" [/Pattern Formatting]\n");return buffer.ToString();}
|
train
| false
|
8,817
|
public boolean equals(Object o) {return o instanceof FileKey && path.equals(((FileKey) o).path);}
|
[
"public",
"boolean",
"equals",
"(",
"Object",
"o",
")",
"{",
"return",
"o",
"instanceof",
"FileKey",
"&&",
"path",
".",
"equals",
"(",
"(",
"(",
"FileKey",
")",
"o",
")",
".",
"path",
")",
";",
"}"
] |
public override bool Equals(object o){return o is RepositoryCache.FileKey && path.Equals(((RepositoryCache.FileKey)o).path);}
|
train
| false
|
8,818
|
public UntagAttendeeResult untagAttendee(UntagAttendeeRequest request) {request = beforeClientExecution(request);return executeUntagAttendee(request);}
|
[
"public",
"UntagAttendeeResult",
"untagAttendee",
"(",
"UntagAttendeeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUntagAttendee",
"(",
"request",
")",
";",
"}"
] |
public virtual UntagAttendeeResponse UntagAttendee(UntagAttendeeRequest request){var options = new InvokeOptions();options.RequestMarshaller = UntagAttendeeRequestMarshaller.Instance;options.ResponseUnmarshaller = UntagAttendeeResponseUnmarshaller.Instance;return Invoke<UntagAttendeeResponse>(request, options);}
|
train
| false
|
8,820
|
public MultiTerms(Terms[] subs, ReaderSlice[] subSlices) throws IOException { this.subs = subs;this.subSlices = subSlices;assert subs.length > 0 : "inefficient: don't use MultiTerms over one sub";boolean _hasFreqs = true;boolean _hasOffsets = true;boolean _hasPositions = true;boolean _hasPayloads = false;for(int i=0;i<subs.length;i++) {_hasFreqs &= subs[i].hasFreqs();_hasOffsets &= subs[i].hasOffsets();_hasPositions &= subs[i].hasPositions();_hasPayloads |= subs[i].hasPayloads();}hasFreqs = _hasFreqs;hasOffsets = _hasOffsets;hasPositions = _hasPositions;hasPayloads = hasPositions && _hasPayloads; }
|
[
"public",
"MultiTerms",
"(",
"Terms",
"[",
"]",
"subs",
",",
"ReaderSlice",
"[",
"]",
"subSlices",
")",
"throws",
"IOException",
"{",
"this",
".",
"subs",
"=",
"subs",
";",
"this",
".",
"subSlices",
"=",
"subSlices",
";",
"assert",
"subs",
".",
"length",
">",
"0",
":",
"\"inefficient: don't use MultiTerms over one sub\"",
";",
"boolean",
"_hasFreqs",
"=",
"true",
";",
"boolean",
"_hasOffsets",
"=",
"true",
";",
"boolean",
"_hasPositions",
"=",
"true",
";",
"boolean",
"_hasPayloads",
"=",
"false",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"subs",
".",
"length",
";",
"i",
"++",
")",
"{",
"_hasFreqs",
"&=",
"subs",
"[",
"i",
"]",
".",
"hasFreqs",
"(",
")",
";",
"_hasOffsets",
"&=",
"subs",
"[",
"i",
"]",
".",
"hasOffsets",
"(",
")",
";",
"_hasPositions",
"&=",
"subs",
"[",
"i",
"]",
".",
"hasPositions",
"(",
")",
";",
"_hasPayloads",
"|=",
"subs",
"[",
"i",
"]",
".",
"hasPayloads",
"(",
")",
";",
"}",
"hasFreqs",
"=",
"_hasFreqs",
";",
"hasOffsets",
"=",
"_hasOffsets",
";",
"hasPositions",
"=",
"_hasPositions",
";",
"hasPayloads",
"=",
"hasPositions",
"&&",
"_hasPayloads",
";",
"}"
] |
public MultiTerms(Terms[] subs, ReaderSlice[] subSlices){this.subs = subs;this.subSlices = subSlices;IComparer<BytesRef> _termComp = null;Debug.Assert(subs.Length > 0, "inefficient: don't use MultiTerms over one sub");bool _hasFreqs = true;bool _hasOffsets = true;bool _hasPositions = true;bool _hasPayloads = false;for (int i = 0; i < subs.Length; i++){if (_termComp == null){_termComp = subs[i].Comparer;}else{IComparer<BytesRef> subTermComp = subs[i].Comparer;if (subTermComp != null && !subTermComp.Equals(_termComp)){throw new InvalidOperationException("sub-readers have different BytesRef.Comparers; cannot merge");}}_hasFreqs &= subs[i].HasFreqs;_hasOffsets &= subs[i].HasOffsets;_hasPositions &= subs[i].HasPositions;_hasPayloads |= subs[i].HasPayloads;}termComp = _termComp;hasFreqs = _hasFreqs;hasOffsets = _hasOffsets;hasPositions = _hasPositions;hasPayloads = hasPositions && _hasPayloads; }
|
train
| false
|
8,821
|
public DescribeGameSessionPlacementResult describeGameSessionPlacement(DescribeGameSessionPlacementRequest request) {request = beforeClientExecution(request);return executeDescribeGameSessionPlacement(request);}
|
[
"public",
"DescribeGameSessionPlacementResult",
"describeGameSessionPlacement",
"(",
"DescribeGameSessionPlacementRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeGameSessionPlacement",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeGameSessionPlacementResponse DescribeGameSessionPlacement(DescribeGameSessionPlacementRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGameSessionPlacementRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGameSessionPlacementResponseUnmarshaller.Instance;return Invoke<DescribeGameSessionPlacementResponse>(request, options);}
|
train
| true
|
8,822
|
public SynonymMap(FST<BytesRef> fst, BytesRefHash words, int maxHorizontalContext) {this.fst = fst;this.words = words;this.maxHorizontalContext = maxHorizontalContext;}
|
[
"public",
"SynonymMap",
"(",
"FST",
"<",
"BytesRef",
">",
"fst",
",",
"BytesRefHash",
"words",
",",
"int",
"maxHorizontalContext",
")",
"{",
"this",
".",
"fst",
"=",
"fst",
";",
"this",
".",
"words",
"=",
"words",
";",
"this",
".",
"maxHorizontalContext",
"=",
"maxHorizontalContext",
";",
"}"
] |
public SynonymMap(FST<BytesRef> fst, BytesRefHash words, int maxHorizontalContext){this.fst = fst;this.words = words;this.maxHorizontalContext = maxHorizontalContext;}
|
train
| false
|
8,823
|
public DeleteTrialComponentResult deleteTrialComponent(DeleteTrialComponentRequest request) {request = beforeClientExecution(request);return executeDeleteTrialComponent(request);}
|
[
"public",
"DeleteTrialComponentResult",
"deleteTrialComponent",
"(",
"DeleteTrialComponentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteTrialComponent",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteTrialComponentResponse DeleteTrialComponent(DeleteTrialComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrialComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrialComponentResponseUnmarshaller.Instance;return Invoke<DeleteTrialComponentResponse>(request, options);}
|
train
| false
|
8,824
|
public RevisionSyntaxException(String revstr) {this.revstr = revstr;}
|
[
"public",
"RevisionSyntaxException",
"(",
"String",
"revstr",
")",
"{",
"this",
".",
"revstr",
"=",
"revstr",
";",
"}"
] |
public RevisionSyntaxException(string revstr){this.revstr = revstr;}
|
train
| false
|
8,825
|
public void startWorker() {startWorkers(1);}
|
[
"public",
"void",
"startWorker",
"(",
")",
"{",
"startWorkers",
"(",
"1",
")",
";",
"}"
] |
public virtual void StartWorker(){StartWorkers(1);}
|
train
| false
|
8,826
|
public SubscribeToEventResult subscribeToEvent(SubscribeToEventRequest request) {request = beforeClientExecution(request);return executeSubscribeToEvent(request);}
|
[
"public",
"SubscribeToEventResult",
"subscribeToEvent",
"(",
"SubscribeToEventRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSubscribeToEvent",
"(",
"request",
")",
";",
"}"
] |
public virtual SubscribeToEventResponse SubscribeToEvent(SubscribeToEventRequest request){var options = new InvokeOptions();options.RequestMarshaller = SubscribeToEventRequestMarshaller.Instance;options.ResponseUnmarshaller = SubscribeToEventResponseUnmarshaller.Instance;return Invoke<SubscribeToEventResponse>(request, options);}
|
train
| true
|
8,827
|
public PutScheduledUpdateGroupActionResult putScheduledUpdateGroupAction(PutScheduledUpdateGroupActionRequest request) {request = beforeClientExecution(request);return executePutScheduledUpdateGroupAction(request);}
|
[
"public",
"PutScheduledUpdateGroupActionResult",
"putScheduledUpdateGroupAction",
"(",
"PutScheduledUpdateGroupActionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutScheduledUpdateGroupAction",
"(",
"request",
")",
";",
"}"
] |
public virtual PutScheduledUpdateGroupActionResponse PutScheduledUpdateGroupAction(PutScheduledUpdateGroupActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutScheduledUpdateGroupActionRequestMarshaller.Instance;options.ResponseUnmarshaller = PutScheduledUpdateGroupActionResponseUnmarshaller.Instance;return Invoke<PutScheduledUpdateGroupActionResponse>(request, options);}
|
train
| true
|
8,828
|
public int doLogic() throws Exception {if (maxNumSegments == -1) {throw new IllegalStateException("required argument (maxNumSegments) was not specified");}IndexWriter iw = getRunData().getIndexWriter();iw.forceMerge(maxNumSegments);return 1;}
|
[
"public",
"int",
"doLogic",
"(",
")",
"throws",
"Exception",
"{",
"if",
"(",
"maxNumSegments",
"==",
"-",
"1",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"required argument (maxNumSegments) was not specified\"",
")",
";",
"}",
"IndexWriter",
"iw",
"=",
"getRunData",
"(",
")",
".",
"getIndexWriter",
"(",
")",
";",
"iw",
".",
"forceMerge",
"(",
"maxNumSegments",
")",
";",
"return",
"1",
";",
"}"
] |
public override int DoLogic(){if (maxNumSegments == -1){throw new InvalidOperationException("required argument (maxNumSegments) was not specified");}IndexWriter iw = RunData.IndexWriter;iw.ForceMerge(maxNumSegments);return 1;}
|
train
| false
|
8,829
|
public String getSheetName(int sheetIndex) {return _uBook.getSheetName(sheetIndex);}
|
[
"public",
"String",
"getSheetName",
"(",
"int",
"sheetIndex",
")",
"{",
"return",
"_uBook",
".",
"getSheetName",
"(",
"sheetIndex",
")",
";",
"}"
] |
public String GetSheetName(int sheetIndex){return _uBook.GetSheetName(sheetIndex);}
|
train
| false
|
8,830
|
public DescribeConnectionLoaResult describeConnectionLoa(DescribeConnectionLoaRequest request) {request = beforeClientExecution(request);return executeDescribeConnectionLoa(request);}
|
[
"public",
"DescribeConnectionLoaResult",
"describeConnectionLoa",
"(",
"DescribeConnectionLoaRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeConnectionLoa",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeConnectionLoaResponse DescribeConnectionLoa(DescribeConnectionLoaRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeConnectionLoaRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeConnectionLoaResponseUnmarshaller.Instance;return Invoke<DescribeConnectionLoaResponse>(request, options);}
|
train
| false
|
8,831
|
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[NOTE]\n");buffer.append(" .row = ").append(field_1_row).append("\n");buffer.append(" .col = ").append(field_2_col).append("\n");buffer.append(" .flags = ").append(field_3_flags).append("\n");buffer.append(" .shapeid= ").append(field_4_shapeid).append("\n");buffer.append(" .author = ").append(field_6_author).append("\n");buffer.append("[/NOTE]\n");return buffer.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[NOTE]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .row = \"",
")",
".",
"append",
"(",
"field_1_row",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .col = \"",
")",
".",
"append",
"(",
"field_2_col",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .flags = \"",
")",
".",
"append",
"(",
"field_3_flags",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .shapeid= \"",
")",
".",
"append",
"(",
"field_4_shapeid",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .author = \"",
")",
".",
"append",
"(",
"field_6_author",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\"[/NOTE]\\n\"",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] |
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[NOTE]\n");buffer.Append(" .recordid = 0x" + StringUtil.ToHexString(Sid) + ", size = " + RecordSize + "\n");buffer.Append(" .row = " + field_1_row + "\n");buffer.Append(" .col = " + field_2_col + "\n");buffer.Append(" .flags = " + field_3_flags + "\n");buffer.Append(" .shapeid = " + field_4_shapeid + "\n");buffer.Append(" .author = " + field_6_author + "\n");buffer.Append("[/NOTE]\n");return buffer.ToString();}
|
train
| false
|
8,833
|
public String toString() {return description();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"description",
"(",
")",
";",
"}"
] |
public override string ToString(){return GetDescription();}
|
train
| false
|
8,834
|
public synchronized Credential getCredential() {if (null == credential && null != icredential) {credential = icredential.fresh();}return credential;}
|
[
"public",
"synchronized",
"Credential",
"getCredential",
"(",
")",
"{",
"if",
"(",
"null",
"==",
"credential",
"&&",
"null",
"!=",
"icredential",
")",
"{",
"credential",
"=",
"icredential",
".",
"fresh",
"(",
")",
";",
"}",
"return",
"credential",
";",
"}"
] |
public Credential GetCredential(){if (null == _credential && null != iCredentialProvider){_credential = iCredentialProvider.Fresh();}return _credential;}
|
train
| false
|
8,835
|
public OptionGroup copyOptionGroup(CopyOptionGroupRequest request) {request = beforeClientExecution(request);return executeCopyOptionGroup(request);}
|
[
"public",
"OptionGroup",
"copyOptionGroup",
"(",
"CopyOptionGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCopyOptionGroup",
"(",
"request",
")",
";",
"}"
] |
public virtual CopyOptionGroupResponse CopyOptionGroup(CopyOptionGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyOptionGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyOptionGroupResponseUnmarshaller.Instance;return Invoke<CopyOptionGroupResponse>(request, options);}
|
train
| true
|
8,836
|
public InfoSubRecord(RecordInputStream in){field_1_stream_pos = in.readInt();field_2_bucket_sst_offset = in.readShort();field_3_zero = in.readShort();}
|
[
"public",
"InfoSubRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_stream_pos",
"=",
"in",
".",
"readInt",
"(",
")",
";",
"field_2_bucket_sst_offset",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_3_zero",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"}"
] |
public InfoSubRecord(RecordInputStream in1){field_1_stream_pos = in1.ReadInt();field_2_bucket_sst_offset = in1.ReadShort();field_3_zero = in1.ReadShort();}
|
train
| false
|
8,838
|
public SendAlexaOfferToMasterResult sendAlexaOfferToMaster(SendAlexaOfferToMasterRequest request) {request = beforeClientExecution(request);return executeSendAlexaOfferToMaster(request);}
|
[
"public",
"SendAlexaOfferToMasterResult",
"sendAlexaOfferToMaster",
"(",
"SendAlexaOfferToMasterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSendAlexaOfferToMaster",
"(",
"request",
")",
";",
"}"
] |
public virtual SendAlexaOfferToMasterResponse SendAlexaOfferToMaster(SendAlexaOfferToMasterRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendAlexaOfferToMasterRequestMarshaller.Instance;options.ResponseUnmarshaller = SendAlexaOfferToMasterResponseUnmarshaller.Instance;return Invoke<SendAlexaOfferToMasterResponse>(request, options);}
|
train
| false
|
8,839
|
public DescribeEndpointConfigResult describeEndpointConfig(DescribeEndpointConfigRequest request) {request = beforeClientExecution(request);return executeDescribeEndpointConfig(request);}
|
[
"public",
"DescribeEndpointConfigResult",
"describeEndpointConfig",
"(",
"DescribeEndpointConfigRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeEndpointConfig",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeEndpointConfigResponse DescribeEndpointConfig(DescribeEndpointConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEndpointConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEndpointConfigResponseUnmarshaller.Instance;return Invoke<DescribeEndpointConfigResponse>(request, options);}
|
train
| true
|
8,840
|
public PushCommand setProgressMonitor(ProgressMonitor monitor) {checkCallable();if (monitor == null) {monitor = NullProgressMonitor.INSTANCE;}this.monitor = monitor;return this;}
|
[
"public",
"PushCommand",
"setProgressMonitor",
"(",
"ProgressMonitor",
"monitor",
")",
"{",
"checkCallable",
"(",
")",
";",
"if",
"(",
"monitor",
"==",
"null",
")",
"{",
"monitor",
"=",
"NullProgressMonitor",
".",
"INSTANCE",
";",
"}",
"this",
".",
"monitor",
"=",
"monitor",
";",
"return",
"this",
";",
"}"
] |
public virtual NGit.Api.PushCommand SetProgressMonitor(ProgressMonitor monitor){CheckCallable();this.monitor = monitor;return this;}
|
train
| false
|
8,841
|
public FloatBuffer get(float[] dst, int dstOffset, int floatCount) {byteBuffer.limit(limit * SizeOf.FLOAT);byteBuffer.position(position * SizeOf.FLOAT);if (byteBuffer instanceof DirectByteBuffer) {((DirectByteBuffer) byteBuffer).get(dst, dstOffset, floatCount);} else {((HeapByteBuffer) byteBuffer).get(dst, dstOffset, floatCount);}this.position += floatCount;return this;}
|
[
"public",
"FloatBuffer",
"get",
"(",
"float",
"[",
"]",
"dst",
",",
"int",
"dstOffset",
",",
"int",
"floatCount",
")",
"{",
"byteBuffer",
".",
"limit",
"(",
"limit",
"*",
"SizeOf",
".",
"FLOAT",
")",
";",
"byteBuffer",
".",
"position",
"(",
"position",
"*",
"SizeOf",
".",
"FLOAT",
")",
";",
"if",
"(",
"byteBuffer",
"instanceof",
"DirectByteBuffer",
")",
"{",
"(",
"(",
"DirectByteBuffer",
")",
"byteBuffer",
")",
".",
"get",
"(",
"dst",
",",
"dstOffset",
",",
"floatCount",
")",
";",
"}",
"else",
"{",
"(",
"(",
"HeapByteBuffer",
")",
"byteBuffer",
")",
".",
"get",
"(",
"dst",
",",
"dstOffset",
",",
"floatCount",
")",
";",
"}",
"this",
".",
"position",
"+=",
"floatCount",
";",
"return",
"this",
";",
"}"
] |
public override java.nio.FloatBuffer get(float[] dst, int dstOffset, int floatCount){byteBuffer.limit(_limit * libcore.io.SizeOf.FLOAT);byteBuffer.position(_position * libcore.io.SizeOf.FLOAT);if (byteBuffer is java.nio.DirectByteBuffer){((java.nio.DirectByteBuffer)byteBuffer).get(dst, dstOffset, floatCount);}else{((java.nio.HeapByteBuffer)byteBuffer).get(dst, dstOffset, floatCount);}this._position += floatCount;return this;}
|
train
| false
|
8,842
|
public boolean shouldBeRecursive() {for (TreeFilter f : subfilters)if (f.shouldBeRecursive())return true;return false;}
|
[
"public",
"boolean",
"shouldBeRecursive",
"(",
")",
"{",
"for",
"(",
"TreeFilter",
"f",
":",
"subfilters",
")",
"if",
"(",
"f",
".",
"shouldBeRecursive",
"(",
")",
")",
"return",
"true",
";",
"return",
"false",
";",
"}"
] |
public override bool ShouldBeRecursive(){foreach (TreeFilter f in subfilters){if (f.ShouldBeRecursive()){return true;}}return false;}
|
train
| false
|
8,843
|
public static void putUnicodeLE(String input, LittleEndianOutput out) {byte[] bytes = input.getBytes(UTF16LE);out.write(bytes);}
|
[
"public",
"static",
"void",
"putUnicodeLE",
"(",
"String",
"input",
",",
"LittleEndianOutput",
"out",
")",
"{",
"byte",
"[",
"]",
"bytes",
"=",
"input",
".",
"getBytes",
"(",
"UTF16LE",
")",
";",
"out",
".",
"write",
"(",
"bytes",
")",
";",
"}"
] |
public static void PutUnicodeLE(String input, ILittleEndianOutput out1){byte[] bytes = UTF16LE.GetBytes(input);out1.Write(bytes);}
|
train
| false
|
8,844
|
public ReservedNode acceptReservedNodeExchange(AcceptReservedNodeExchangeRequest request) {request = beforeClientExecution(request);return executeAcceptReservedNodeExchange(request);}
|
[
"public",
"ReservedNode",
"acceptReservedNodeExchange",
"(",
"AcceptReservedNodeExchangeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAcceptReservedNodeExchange",
"(",
"request",
")",
";",
"}"
] |
public virtual AcceptReservedNodeExchangeResponse AcceptReservedNodeExchange(AcceptReservedNodeExchangeRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptReservedNodeExchangeRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptReservedNodeExchangeResponseUnmarshaller.Instance;return Invoke<AcceptReservedNodeExchangeResponse>(request, options);}
|
train
| true
|
8,845
|
public ClusterSecurityGroup authorizeClusterSecurityGroupIngress(AuthorizeClusterSecurityGroupIngressRequest request) {request = beforeClientExecution(request);return executeAuthorizeClusterSecurityGroupIngress(request);}
|
[
"public",
"ClusterSecurityGroup",
"authorizeClusterSecurityGroupIngress",
"(",
"AuthorizeClusterSecurityGroupIngressRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAuthorizeClusterSecurityGroupIngress",
"(",
"request",
")",
";",
"}"
] |
public virtual AuthorizeClusterSecurityGroupIngressResponse AuthorizeClusterSecurityGroupIngress(AuthorizeClusterSecurityGroupIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = AuthorizeClusterSecurityGroupIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = AuthorizeClusterSecurityGroupIngressResponseUnmarshaller.Instance;return Invoke<AuthorizeClusterSecurityGroupIngressResponse>(request, options);}
|
train
| true
|
8,846
|
public ListVaultsResult listVaults(ListVaultsRequest request) {request = beforeClientExecution(request);return executeListVaults(request);}
|
[
"public",
"ListVaultsResult",
"listVaults",
"(",
"ListVaultsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListVaults",
"(",
"request",
")",
";",
"}"
] |
public virtual ListVaultsResponse ListVaults(ListVaultsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListVaultsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListVaultsResponseUnmarshaller.Instance;return Invoke<ListVaultsResponse>(request, options);}
|
train
| true
|
8,847
|
public void add(UDFFinder toolPack){_usedToolPacks.add(toolPack);}
|
[
"public",
"void",
"add",
"(",
"UDFFinder",
"toolPack",
")",
"{",
"_usedToolPacks",
".",
"add",
"(",
"toolPack",
")",
";",
"}"
] |
public void Add(UDFFinder toolPack){_usedToolPacks.Add(toolPack);}
|
train
| false
|
8,848
|
public CreateRealtimeEndpointResult createRealtimeEndpoint(CreateRealtimeEndpointRequest request) {request = beforeClientExecution(request);return executeCreateRealtimeEndpoint(request);}
|
[
"public",
"CreateRealtimeEndpointResult",
"createRealtimeEndpoint",
"(",
"CreateRealtimeEndpointRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateRealtimeEndpoint",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateRealtimeEndpointResponse CreateRealtimeEndpoint(CreateRealtimeEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRealtimeEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRealtimeEndpointResponseUnmarshaller.Instance;return Invoke<CreateRealtimeEndpointResponse>(request, options);}
|
train
| true
|
8,849
|
public final void recurseClearCachedFormulaResults(IEvaluationListener listener) {if (listener == null) {recurseClearCachedFormulaResults();} else {listener.onClearCachedValue(this);recurseClearCachedFormulaResults(listener, 1);}}
|
[
"public",
"final",
"void",
"recurseClearCachedFormulaResults",
"(",
"IEvaluationListener",
"listener",
")",
"{",
"if",
"(",
"listener",
"==",
"null",
")",
"{",
"recurseClearCachedFormulaResults",
"(",
")",
";",
"}",
"else",
"{",
"listener",
".",
"onClearCachedValue",
"(",
"this",
")",
";",
"recurseClearCachedFormulaResults",
"(",
"listener",
",",
"1",
")",
";",
"}",
"}"
] |
public void RecurseClearCachedFormulaResults(IEvaluationListener listener){if (listener == null){RecurseClearCachedFormulaResults();}else{listener.OnClearCachedValue(this);RecurseClearCachedFormulaResults(listener, 1);}}
|
train
| false
|
8,850
|
public PageBreakRecord(RecordInputStream in) {final int nBreaks = in.readShort();_breaks.ensureCapacity(nBreaks + 2);for(int k = 0; k < nBreaks; k++) {_breaks.add(new Break(in));}initMap();}
|
[
"public",
"PageBreakRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"final",
"int",
"nBreaks",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"_breaks",
".",
"ensureCapacity",
"(",
"nBreaks",
"+",
"2",
")",
";",
"for",
"(",
"int",
"k",
"=",
"0",
";",
"k",
"<",
"nBreaks",
";",
"k",
"++",
")",
"{",
"_breaks",
".",
"add",
"(",
"new",
"Break",
"(",
"in",
")",
")",
";",
"}",
"initMap",
"(",
")",
";",
"}"
] |
public PageBreakRecord(RecordInputStream in1){int nBreaks = in1.ReadShort();_breaks = new List<Break>(nBreaks + 2);_breakMap = new Hashtable();for (int k = 0; k < nBreaks; k++){Break br = new Break(in1);_breaks.Add(br);_breakMap[br.main] = br;}}
|
train
| false
|
8,851
|
public String toString() {return attSource.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"attSource",
".",
"toString",
"(",
")",
";",
"}"
] |
public override string ToString(){return Image;}
|
train
| false
|
8,853
|
public FileInputStream(String path) throws FileNotFoundException {this(new File(path));}
|
[
"public",
"FileInputStream",
"(",
"String",
"path",
")",
"throws",
"FileNotFoundException",
"{",
"this",
"(",
"new",
"File",
"(",
"path",
")",
")",
";",
"}"
] |
public FileInputStream(string path) : this(new java.io.File(path)){throw new System.NotImplementedException();}
|
train
| false
|
8,854
|
public SetDataRetrievalPolicyResult setDataRetrievalPolicy(SetDataRetrievalPolicyRequest request) {request = beforeClientExecution(request);return executeSetDataRetrievalPolicy(request);}
|
[
"public",
"SetDataRetrievalPolicyResult",
"setDataRetrievalPolicy",
"(",
"SetDataRetrievalPolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSetDataRetrievalPolicy",
"(",
"request",
")",
";",
"}"
] |
public virtual SetDataRetrievalPolicyResponse SetDataRetrievalPolicy(SetDataRetrievalPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetDataRetrievalPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = SetDataRetrievalPolicyResponseUnmarshaller.Instance;return Invoke<SetDataRetrievalPolicyResponse>(request, options);}
|
train
| true
|
8,855
|
public ScoreDoc(int doc, float score, int shardIndex) {this.doc = doc;this.score = score;this.shardIndex = shardIndex;}
|
[
"public",
"ScoreDoc",
"(",
"int",
"doc",
",",
"float",
"score",
",",
"int",
"shardIndex",
")",
"{",
"this",
".",
"doc",
"=",
"doc",
";",
"this",
".",
"score",
"=",
"score",
";",
"this",
".",
"shardIndex",
"=",
"shardIndex",
";",
"}"
] |
public ScoreDoc(int doc, float score, int shardIndex){this.Doc = doc;this.Score = score;this.ShardIndex = shardIndex;}
|
train
| false
|
8,856
|
public SpanNotQuery(SpanQuery include, SpanQuery exclude, int pre, int post) {this.include = Objects.requireNonNull(include);this.exclude = Objects.requireNonNull(exclude);this.pre = pre;this.post = post;if (include.getField() != null && exclude.getField() != null && !include.getField().equals(exclude.getField()))throw new IllegalArgumentException("Clauses must have same field.");}
|
[
"public",
"SpanNotQuery",
"(",
"SpanQuery",
"include",
",",
"SpanQuery",
"exclude",
",",
"int",
"pre",
",",
"int",
"post",
")",
"{",
"this",
".",
"include",
"=",
"Objects",
".",
"requireNonNull",
"(",
"include",
")",
";",
"this",
".",
"exclude",
"=",
"Objects",
".",
"requireNonNull",
"(",
"exclude",
")",
";",
"this",
".",
"pre",
"=",
"pre",
";",
"this",
".",
"post",
"=",
"post",
";",
"if",
"(",
"include",
".",
"getField",
"(",
")",
"!=",
"null",
"&&",
"exclude",
".",
"getField",
"(",
")",
"!=",
"null",
"&&",
"!",
"include",
".",
"getField",
"(",
")",
".",
"equals",
"(",
"exclude",
".",
"getField",
"(",
")",
")",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Clauses must have same field.\"",
")",
";",
"}"
] |
public SpanNotQuery(SpanQuery include, SpanQuery exclude, int pre, int post){this.include = include;this.exclude = exclude;this.pre = (pre >= 0) ? pre : 0;this.post = (post >= 0) ? post : 0;if (include.Field != null && exclude.Field != null && !include.Field.Equals(exclude.Field, StringComparison.Ordinal)){throw new System.ArgumentException("Clauses must have same field.");}}
|
train
| false
|
8,857
|
public void visitContainedRecords(RecordVisitor rv) {if (_validationList.isEmpty()) {return;}rv.visitRecord(_headerRec);_validationList.forEach(rv::visitRecord);}
|
[
"public",
"void",
"visitContainedRecords",
"(",
"RecordVisitor",
"rv",
")",
"{",
"if",
"(",
"_validationList",
".",
"isEmpty",
"(",
")",
")",
"{",
"return",
";",
"}",
"rv",
".",
"visitRecord",
"(",
"_headerRec",
")",
";",
"_validationList",
".",
"forEach",
"(",
"rv",
"::",
"visitRecord",
")",
";",
"}"
] |
public override void VisitContainedRecords(RecordVisitor rv){if (_validationList.Count == 0){return;}rv.VisitRecord(_headerRec);for (int i = 0; i < _validationList.Count; i++){rv.VisitRecord((Record)_validationList[i]);}}
|
train
| false
|
8,858
|
public void addArea(int rowFrom, int colFrom, int rowTo, int colTo) {_mergedRegions.add(new CellRangeAddress(rowFrom, rowTo, colFrom, colTo));}
|
[
"public",
"void",
"addArea",
"(",
"int",
"rowFrom",
",",
"int",
"colFrom",
",",
"int",
"rowTo",
",",
"int",
"colTo",
")",
"{",
"_mergedRegions",
".",
"add",
"(",
"new",
"CellRangeAddress",
"(",
"rowFrom",
",",
"rowTo",
",",
"colFrom",
",",
"colTo",
")",
")",
";",
"}"
] |
public void AddArea(int rowFrom, int colFrom, int rowTo, int colTo){_mergedRegions.Add(new CellRangeAddress(rowFrom, rowTo, colFrom, colTo));}
|
train
| false
|
8,859
|
public HungarianLightStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
|
[
"public",
"HungarianLightStemFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] |
public HungarianLightStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
train
| false
|
8,860
|
public int readDataSize() {return _lei.readUShort();}
|
[
"public",
"int",
"readDataSize",
"(",
")",
"{",
"return",
"_lei",
".",
"readUShort",
"(",
")",
";",
"}"
] |
public int ReadDataSize(){return _lei.ReadUShort();}
|
train
| false
|
8,861
|
public DescribeAdjustmentTypesResult describeAdjustmentTypes(DescribeAdjustmentTypesRequest request) {request = beforeClientExecution(request);return executeDescribeAdjustmentTypes(request);}
|
[
"public",
"DescribeAdjustmentTypesResult",
"describeAdjustmentTypes",
"(",
"DescribeAdjustmentTypesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeAdjustmentTypes",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeAdjustmentTypesResponse DescribeAdjustmentTypes(DescribeAdjustmentTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAdjustmentTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAdjustmentTypesResponseUnmarshaller.Instance;return Invoke<DescribeAdjustmentTypesResponse>(request, options);}
|
train
| true
|
8,862
|
public DefineSuggesterResult defineSuggester(DefineSuggesterRequest request) {request = beforeClientExecution(request);return executeDefineSuggester(request);}
|
[
"public",
"DefineSuggesterResult",
"defineSuggester",
"(",
"DefineSuggesterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDefineSuggester",
"(",
"request",
")",
";",
"}"
] |
public virtual DefineSuggesterResponse DefineSuggester(DefineSuggesterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DefineSuggesterRequestMarshaller.Instance;options.ResponseUnmarshaller = DefineSuggesterResponseUnmarshaller.Instance;return Invoke<DefineSuggesterResponse>(request, options);}
|
train
| true
|
8,863
|
public GetJourneyDateRangeKpiResult getJourneyDateRangeKpi(GetJourneyDateRangeKpiRequest request) {request = beforeClientExecution(request);return executeGetJourneyDateRangeKpi(request);}
|
[
"public",
"GetJourneyDateRangeKpiResult",
"getJourneyDateRangeKpi",
"(",
"GetJourneyDateRangeKpiRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetJourneyDateRangeKpi",
"(",
"request",
")",
";",
"}"
] |
public virtual GetJourneyDateRangeKpiResponse GetJourneyDateRangeKpi(GetJourneyDateRangeKpiRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetJourneyDateRangeKpiRequestMarshaller.Instance;options.ResponseUnmarshaller = GetJourneyDateRangeKpiResponseUnmarshaller.Instance;return Invoke<GetJourneyDateRangeKpiResponse>(request, options);}
|
train
| false
|
8,864
|
public PushCommand add(String nameOrSpec) {if (0 <= nameOrSpec.indexOf(':')) {refSpecs.add(new RefSpec(nameOrSpec));} else {Ref src;try {src = repo.findRef(nameOrSpec);} catch (IOException e) {throw new JGitInternalException(JGitText.get().exceptionCaughtDuringExecutionOfPushCommand,e);}if (src != null)add(src);}return this;}
|
[
"public",
"PushCommand",
"add",
"(",
"String",
"nameOrSpec",
")",
"{",
"if",
"(",
"0",
"<=",
"nameOrSpec",
".",
"indexOf",
"(",
"':'",
")",
")",
"{",
"refSpecs",
".",
"add",
"(",
"new",
"RefSpec",
"(",
"nameOrSpec",
")",
")",
";",
"}",
"else",
"{",
"Ref",
"src",
";",
"try",
"{",
"src",
"=",
"repo",
".",
"findRef",
"(",
"nameOrSpec",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"throw",
"new",
"JGitInternalException",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"exceptionCaughtDuringExecutionOfPushCommand",
",",
"e",
")",
";",
"}",
"if",
"(",
"src",
"!=",
"null",
")",
"add",
"(",
"src",
")",
";",
"}",
"return",
"this",
";",
"}"
] |
public virtual NGit.Api.PushCommand Add(string nameOrSpec){if (0 <= nameOrSpec.IndexOf(':')){refSpecs.AddItem(new RefSpec(nameOrSpec));}else{Ref src;try{src = repo.GetRef(nameOrSpec);}catch (IOException e){throw new JGitInternalException(JGitText.Get().exceptionCaughtDuringExecutionOfPushCommand, e);}if (src != null){Add(src);}}return this;}
|
train
| false
|
8,865
|
public DescribeDataSourceResult describeDataSource(DescribeDataSourceRequest request) {request = beforeClientExecution(request);return executeDescribeDataSource(request);}
|
[
"public",
"DescribeDataSourceResult",
"describeDataSource",
"(",
"DescribeDataSourceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeDataSource",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeDataSourceResponse DescribeDataSource(DescribeDataSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDataSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDataSourceResponseUnmarshaller.Instance;return Invoke<DescribeDataSourceResponse>(request, options);}
|
train
| false
|
8,866
|
public AutoCRLFInputStream(InputStream in, boolean detectBinary) {this.in = in;this.detectBinary = detectBinary;}
|
[
"public",
"AutoCRLFInputStream",
"(",
"InputStream",
"in",
",",
"boolean",
"detectBinary",
")",
"{",
"this",
".",
"in",
"=",
"in",
";",
"this",
".",
"detectBinary",
"=",
"detectBinary",
";",
"}"
] |
public AutoCRLFInputStream(InputStream @in, bool detectBinary){this.@in = @in;this.detectBinary = detectBinary;}
|
train
| false
|
8,867
|
public byte[] getRawRecord(){return _rawData;}
|
[
"public",
"byte",
"[",
"]",
"getRawRecord",
"(",
")",
"{",
"return",
"_rawData",
";",
"}"
] |
public byte[] GetRawRecord(){return _rawData;}
|
train
| false
|
8,868
|
public LongBuffer put(LongBuffer buf) {throw new ReadOnlyBufferException();}
|
[
"public",
"LongBuffer",
"put",
"(",
"LongBuffer",
"buf",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] |
public override java.nio.LongBuffer put(java.nio.LongBuffer buf){throw new java.nio.ReadOnlyBufferException();}
|
train
| false
|
8,869
|
@Override public E set(int location, E object) {synchronized (mutex) {return list.set(location, object);}}
|
[
"@",
"Override",
"public",
"E",
"set",
"(",
"int",
"location",
",",
"E",
"object",
")",
"{",
"synchronized",
"(",
"mutex",
")",
"{",
"return",
"list",
".",
"set",
"(",
"location",
",",
"object",
")",
";",
"}",
"}"
] |
public virtual E set(int location, E @object){lock (mutex){return list.set(location, @object);}}
|
train
| false
|
8,870
|
public void jumpDrawablesToCurrentState() {super.jumpDrawablesToCurrentState();if (mProgressDrawable != null) mProgressDrawable.jumpToCurrentState();if (mIndeterminateDrawable != null) mIndeterminateDrawable.jumpToCurrentState();}
|
[
"public",
"void",
"jumpDrawablesToCurrentState",
"(",
")",
"{",
"super",
".",
"jumpDrawablesToCurrentState",
"(",
")",
";",
"if",
"(",
"mProgressDrawable",
"!=",
"null",
")",
"mProgressDrawable",
".",
"jumpToCurrentState",
"(",
")",
";",
"if",
"(",
"mIndeterminateDrawable",
"!=",
"null",
")",
"mIndeterminateDrawable",
".",
"jumpToCurrentState",
"(",
")",
";",
"}"
] |
public override void jumpDrawablesToCurrentState(){base.jumpDrawablesToCurrentState();if (mProgressDrawable != null){mProgressDrawable.jumpToCurrentState();}if (mIndeterminateDrawable != null){mIndeterminateDrawable.jumpToCurrentState();}}
|
train
| true
|
8,871
|
public boolean contains(Object object) {Link<E> link = voidLink.next;if (object != null) {while (link != voidLink) {if (object.equals(link.data)) {return true;}link = link.next;}} else {while (link != voidLink) {if (link.data == null) {return true;}link = link.next;}}return false;}
|
[
"public",
"boolean",
"contains",
"(",
"Object",
"object",
")",
"{",
"Link",
"<",
"E",
">",
"link",
"=",
"voidLink",
".",
"next",
";",
"if",
"(",
"object",
"!=",
"null",
")",
"{",
"while",
"(",
"link",
"!=",
"voidLink",
")",
"{",
"if",
"(",
"object",
".",
"equals",
"(",
"link",
".",
"data",
")",
")",
"{",
"return",
"true",
";",
"}",
"link",
"=",
"link",
".",
"next",
";",
"}",
"}",
"else",
"{",
"while",
"(",
"link",
"!=",
"voidLink",
")",
"{",
"if",
"(",
"link",
".",
"data",
"==",
"null",
")",
"{",
"return",
"true",
";",
"}",
"link",
"=",
"link",
".",
"next",
";",
"}",
"}",
"return",
"false",
";",
"}"
] |
public override bool contains(object @object){java.util.LinkedList.Link<E> link = voidLink.next;if (@object != null){while (link != voidLink){if (@object.Equals(link.data)){return true;}link = link.next;}}else{while (link != voidLink){if ((object)link.data == null){return true;}link = link.next;}}return false;}
|
train
| false
|
8,873
|
public IndexSearcher acquire(long version) {ensureOpen();final SearcherTracker tracker = searchers.get(version);if (tracker != null &&tracker.searcher.getIndexReader().tryIncRef()) {return tracker.searcher;}return null;}
|
[
"public",
"IndexSearcher",
"acquire",
"(",
"long",
"version",
")",
"{",
"ensureOpen",
"(",
")",
";",
"final",
"SearcherTracker",
"tracker",
"=",
"searchers",
".",
"get",
"(",
"version",
")",
";",
"if",
"(",
"tracker",
"!=",
"null",
"&&",
"tracker",
".",
"searcher",
".",
"getIndexReader",
"(",
")",
".",
"tryIncRef",
"(",
")",
")",
"{",
"return",
"tracker",
".",
"searcher",
";",
"}",
"return",
"null",
";",
"}"
] |
public virtual IndexSearcher Acquire(long version){EnsureOpen();Lazy<SearcherTracker> tracker;if (_searchers.TryGetValue(version, out tracker) && tracker.IsValueCreated && tracker.Value.Searcher.IndexReader.TryIncRef()){return tracker.Value.Searcher;}return null;}
|
train
| false
|
8,874
|
public void setDateToBeFormatted(double date) {this.dateToBeFormatted = date;}
|
[
"public",
"void",
"setDateToBeFormatted",
"(",
"double",
"date",
")",
"{",
"this",
".",
"dateToBeFormatted",
"=",
"date",
";",
"}"
] |
public void SetDateToBeFormatted(double date){this.dateToBeFormatted = date;}
|
train
| false
|
8,875
|
public CreateIntegrationResponseResult createIntegrationResponse(CreateIntegrationResponseRequest request) {request = beforeClientExecution(request);return executeCreateIntegrationResponse(request);}
|
[
"public",
"CreateIntegrationResponseResult",
"createIntegrationResponse",
"(",
"CreateIntegrationResponseRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateIntegrationResponse",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateIntegrationResponseResponse CreateIntegrationResponse(CreateIntegrationResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIntegrationResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIntegrationResponseResponseUnmarshaller.Instance;return Invoke<CreateIntegrationResponseResponse>(request, options);}
|
train
| true
|
8,877
|
public synchronized void dropChanges() {pendingDeletes.dropChanges();dropMergingUpdates();}
|
[
"public",
"synchronized",
"void",
"dropChanges",
"(",
")",
"{",
"pendingDeletes",
".",
"dropChanges",
"(",
")",
";",
"dropMergingUpdates",
"(",
")",
";",
"}"
] |
public virtual void DropChanges(){lock (this){pendingDeleteCount = 0;DropMergingUpdates();}}
|
train
| false
|
8,878
|
public static int footerLength() {return 16;}
|
[
"public",
"static",
"int",
"footerLength",
"(",
")",
"{",
"return",
"16",
";",
"}"
] |
public static int FooterLength(){return 16;}
|
train
| false
|
8,879
|
public DeleteDBParameterGroupRequest(String dBParameterGroupName) {setDBParameterGroupName(dBParameterGroupName);}
|
[
"public",
"DeleteDBParameterGroupRequest",
"(",
"String",
"dBParameterGroupName",
")",
"{",
"setDBParameterGroupName",
"(",
"dBParameterGroupName",
")",
";",
"}"
] |
public DeleteDBParameterGroupRequest(string dbParameterGroupName){_dbParameterGroupName = dbParameterGroupName;}
|
train
| false
|
8,880
|
public GetDedicatedIpsResult getDedicatedIps(GetDedicatedIpsRequest request) {request = beforeClientExecution(request);return executeGetDedicatedIps(request);}
|
[
"public",
"GetDedicatedIpsResult",
"getDedicatedIps",
"(",
"GetDedicatedIpsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDedicatedIps",
"(",
"request",
")",
";",
"}"
] |
public virtual GetDedicatedIpsResponse GetDedicatedIps(GetDedicatedIpsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDedicatedIpsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDedicatedIpsResponseUnmarshaller.Instance;return Invoke<GetDedicatedIpsResponse>(request, options);}
|
train
| true
|
8,881
|
public DeleteArchiveResult deleteArchive(DeleteArchiveRequest request) {request = beforeClientExecution(request);return executeDeleteArchive(request);}
|
[
"public",
"DeleteArchiveResult",
"deleteArchive",
"(",
"DeleteArchiveRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteArchive",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteArchiveResponse DeleteArchive(DeleteArchiveRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteArchiveRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteArchiveResponseUnmarshaller.Instance;return Invoke<DeleteArchiveResponse>(request, options);}
|
train
| true
|
8,882
|
public ResourceRecordSet(String name, RRType type) {setName(name);setType(type.toString());}
|
[
"public",
"ResourceRecordSet",
"(",
"String",
"name",
",",
"RRType",
"type",
")",
"{",
"setName",
"(",
"name",
")",
";",
"setType",
"(",
"type",
".",
"toString",
"(",
")",
")",
";",
"}"
] |
public ResourceRecordSet(string name, RRType type){_name = name;_type = type;}
|
train
| false
|
8,883
|
public ArabicNormalizationFilter(TokenStream input) {super(input);}
|
[
"public",
"ArabicNormalizationFilter",
"(",
"TokenStream",
"input",
")",
"{",
"super",
"(",
"input",
")",
";",
"}"
] |
public ArabicNormalizationFilter(TokenStream input): base(input){termAtt = AddAttribute<ICharTermAttribute>();}
|
train
| false
|
8,884
|
public ReceiveMessageResult receiveMessage(ReceiveMessageRequest request) {request = beforeClientExecution(request);return executeReceiveMessage(request);}
|
[
"public",
"ReceiveMessageResult",
"receiveMessage",
"(",
"ReceiveMessageRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeReceiveMessage",
"(",
"request",
")",
";",
"}"
] |
public virtual ReceiveMessageResponse ReceiveMessage(ReceiveMessageRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReceiveMessageRequestMarshaller.Instance;options.ResponseUnmarshaller = ReceiveMessageResponseUnmarshaller.Instance;return Invoke<ReceiveMessageResponse>(request, options);}
|
train
| true
|
8,885
|
public CharSequence getFully(CharSequence key) {Row now = getRow(root);int w;Cell c;int cmd = -1;StrEnum e = new StrEnum(key, forward);Character ch = null;Character aux = null;for (int i = 0; i < key.length();) {ch = e.next();i++;c = now.at(ch);if (c == null) {return null;}cmd = c.cmd;for (int skip = c.skip; skip > 0; skip--) {if (i < key.length()) {aux = e.next();} else {return null;}i++;}w = now.getRef(ch);if (w >= 0) {now = getRow(w);} else if (i < key.length()) {return null;}}return (cmd == -1) ? null : cmds.get(cmd);}
|
[
"public",
"CharSequence",
"getFully",
"(",
"CharSequence",
"key",
")",
"{",
"Row",
"now",
"=",
"getRow",
"(",
"root",
")",
";",
"int",
"w",
";",
"Cell",
"c",
";",
"int",
"cmd",
"=",
"-",
"1",
";",
"StrEnum",
"e",
"=",
"new",
"StrEnum",
"(",
"key",
",",
"forward",
")",
";",
"Character",
"ch",
"=",
"null",
";",
"Character",
"aux",
"=",
"null",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"key",
".",
"length",
"(",
")",
";",
")",
"{",
"ch",
"=",
"e",
".",
"next",
"(",
")",
";",
"i",
"++",
";",
"c",
"=",
"now",
".",
"at",
"(",
"ch",
")",
";",
"if",
"(",
"c",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"cmd",
"=",
"c",
".",
"cmd",
";",
"for",
"(",
"int",
"skip",
"=",
"c",
".",
"skip",
";",
"skip",
">",
"0",
";",
"skip",
"--",
")",
"{",
"if",
"(",
"i",
"<",
"key",
".",
"length",
"(",
")",
")",
"{",
"aux",
"=",
"e",
".",
"next",
"(",
")",
";",
"}",
"else",
"{",
"return",
"null",
";",
"}",
"i",
"++",
";",
"}",
"w",
"=",
"now",
".",
"getRef",
"(",
"ch",
")",
";",
"if",
"(",
"w",
">=",
"0",
")",
"{",
"now",
"=",
"getRow",
"(",
"w",
")",
";",
"}",
"else",
"if",
"(",
"i",
"<",
"key",
".",
"length",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"}",
"return",
"(",
"cmd",
"==",
"-",
"1",
")",
"?",
"null",
":",
"cmds",
".",
"get",
"(",
"cmd",
")",
";",
"}"
] |
public virtual string GetFully(string key){Row now = GetRow(root);int w;Cell c;int cmd = -1;StrEnum e = new StrEnum(key, forward);char ch;char aux;for (int i = 0; i < key.Length;){ch = e.Next();i++;c = now.At(ch);if (c == null){return null;}cmd = c.cmd;for (int skip = c.skip; skip > 0; skip--){if (i < key.Length){aux = e.Next();}else{return null;}i++;}w = now.GetRef(ch);if (w >= 0){now = GetRow(w);}else if (i < key.Length){return null;}}return (cmd == -1) ? null : cmds[cmd];}
|
train
| false
|
8,886
|
public Span[] getNames(String[] words) {Span[] names = nameFinder.find(words);return names;}
|
[
"public",
"Span",
"[",
"]",
"getNames",
"(",
"String",
"[",
"]",
"words",
")",
"{",
"Span",
"[",
"]",
"names",
"=",
"nameFinder",
".",
"find",
"(",
"words",
")",
";",
"return",
"names",
";",
"}"
] |
public virtual Span[] GetNames(string[] words){Span[] names = nameFinder.find(words);return names;}
|
train
| false
|
8,887
|
public void reset() {used = false;}
|
[
"public",
"void",
"reset",
"(",
")",
"{",
"used",
"=",
"false",
";",
"}"
] |
public override void Reset(){used = false;}
|
train
| false
|
8,888
|
public AnalyticsPrefixPredicate(String prefix) {this.prefix = prefix;}
|
[
"public",
"AnalyticsPrefixPredicate",
"(",
"String",
"prefix",
")",
"{",
"this",
".",
"prefix",
"=",
"prefix",
";",
"}"
] |
public AnalyticsPrefixPredicate(string prefix){this.prefix = prefix;}
|
train
| false
|
8,889
|
public byte readByte() {return (byte) readUByte();}
|
[
"public",
"byte",
"readByte",
"(",
")",
"{",
"return",
"(",
"byte",
")",
"readUByte",
"(",
")",
";",
"}"
] |
public override int ReadByte(){return delegate1.ReadByte();}
|
train
| false
|
8,890
|
public CreateImportJobResult createImportJob(CreateImportJobRequest request) {request = beforeClientExecution(request);return executeCreateImportJob(request);}
|
[
"public",
"CreateImportJobResult",
"createImportJob",
"(",
"CreateImportJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateImportJob",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateImportJobResponse CreateImportJob(CreateImportJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateImportJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateImportJobResponseUnmarshaller.Instance;return Invoke<CreateImportJobResponse>(request, options);}
|
train
| true
|
8,891
|
public byte[] build() {ByteArrayOutputStream os = new ByteArrayOutputStream();try (OutputStreamWriter w = new OutputStreamWriter(os,UTF_8)) {w.write("object "); getObjectId().copyTo(w);w.write('\n');w.write("type "); w.write(Constants.typeString(getObjectType()));w.write("\n"); w.write("tag "); w.write(getTag());w.write("\n"); if (getTagger() != null) {w.write("tagger "); w.write(getTagger().toExternalString());w.write('\n');}w.write('\n');if (getMessage() != null)w.write(getMessage());} catch (IOException err) {throw new RuntimeException(err);}return os.toByteArray();}
|
[
"public",
"byte",
"[",
"]",
"build",
"(",
")",
"{",
"ByteArrayOutputStream",
"os",
"=",
"new",
"ByteArrayOutputStream",
"(",
")",
";",
"try",
"(",
"OutputStreamWriter",
"w",
"=",
"new",
"OutputStreamWriter",
"(",
"os",
",",
"UTF_8",
")",
")",
"{",
"w",
".",
"write",
"(",
"\"object \"",
")",
";",
"getObjectId",
"(",
")",
".",
"copyTo",
"(",
"w",
")",
";",
"w",
".",
"write",
"(",
"'\\n'",
")",
";",
"w",
".",
"write",
"(",
"\"type \"",
")",
";",
"w",
".",
"write",
"(",
"Constants",
".",
"typeString",
"(",
"getObjectType",
"(",
")",
")",
")",
";",
"w",
".",
"write",
"(",
"\"\\n\"",
")",
";",
"w",
".",
"write",
"(",
"\"tag \"",
")",
";",
"w",
".",
"write",
"(",
"getTag",
"(",
")",
")",
";",
"w",
".",
"write",
"(",
"\"\\n\"",
")",
";",
"if",
"(",
"getTagger",
"(",
")",
"!=",
"null",
")",
"{",
"w",
".",
"write",
"(",
"\"tagger \"",
")",
";",
"w",
".",
"write",
"(",
"getTagger",
"(",
")",
".",
"toExternalString",
"(",
")",
")",
";",
"w",
".",
"write",
"(",
"'\\n'",
")",
";",
"}",
"w",
".",
"write",
"(",
"'\\n'",
")",
";",
"if",
"(",
"getMessage",
"(",
")",
"!=",
"null",
")",
"w",
".",
"write",
"(",
"getMessage",
"(",
")",
")",
";",
"}",
"catch",
"(",
"IOException",
"err",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"err",
")",
";",
"}",
"return",
"os",
".",
"toByteArray",
"(",
")",
";",
"}"
] |
public virtual byte[] Build(){ByteArrayOutputStream os = new ByteArrayOutputStream();OutputStreamWriter w = new OutputStreamWriter(os, Constants.CHARSET);try{w.Write("object ");GetObjectId().CopyTo(w);w.Write('\n');w.Write("type ");w.Write(Constants.TypeString(GetObjectType()));w.Write("\n");w.Write("tag ");w.Write(GetTag());w.Write("\n");if (GetTagger() != null){w.Write("tagger ");w.Write(GetTagger().ToExternalString());w.Write('\n');}w.Write('\n');if (GetMessage() != null){w.Write(GetMessage());}w.Close();}catch (IOException err){throw new RuntimeException(err);}return os.ToByteArray();}
|
train
| false
|
8,892
|
public boolean equals(ATNConfig a, ATNConfig b) {if ( a==b ) return true;if ( a==null || b==null ) return false;return a.state.stateNumber==b.state.stateNumber&& a.alt==b.alt&& a.semanticContext.equals(b.semanticContext);}
|
[
"public",
"boolean",
"equals",
"(",
"ATNConfig",
"a",
",",
"ATNConfig",
"b",
")",
"{",
"if",
"(",
"a",
"==",
"b",
")",
"return",
"true",
";",
"if",
"(",
"a",
"==",
"null",
"||",
"b",
"==",
"null",
")",
"return",
"false",
";",
"return",
"a",
".",
"state",
".",
"stateNumber",
"==",
"b",
".",
"state",
".",
"stateNumber",
"&&",
"a",
".",
"alt",
"==",
"b",
".",
"alt",
"&&",
"a",
".",
"semanticContext",
".",
"equals",
"(",
"b",
".",
"semanticContext",
")",
";",
"}"
] |
public bool Equals(ATNConfig a, ATNConfig b){if (a == b) return true;if (a == null || b == null) return false;return a.state.stateNumber == b.state.stateNumber&& a.alt == b.alt&& a.semanticContext.Equals(b.semanticContext);}
|
train
| false
|
8,893
|
public CreateMemberResult createMember(CreateMemberRequest request) {request = beforeClientExecution(request);return executeCreateMember(request);}
|
[
"public",
"CreateMemberResult",
"createMember",
"(",
"CreateMemberRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateMember",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateMemberResponse CreateMember(CreateMemberRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateMemberRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateMemberResponseUnmarshaller.Instance;return Invoke<CreateMemberResponse>(request, options);}
|
train
| false
|
8,894
|
public void removeParCount() {remove1stProperty(PropertyIDMap.PID_PARCOUNT);}
|
[
"public",
"void",
"removeParCount",
"(",
")",
"{",
"remove1stProperty",
"(",
"PropertyIDMap",
".",
"PID_PARCOUNT",
")",
";",
"}"
] |
public void RemoveParCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_PARCOUNT);}
|
train
| false
|
8,895
|
public DeleteDeliveryStreamResult deleteDeliveryStream(DeleteDeliveryStreamRequest request) {request = beforeClientExecution(request);return executeDeleteDeliveryStream(request);}
|
[
"public",
"DeleteDeliveryStreamResult",
"deleteDeliveryStream",
"(",
"DeleteDeliveryStreamRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDeliveryStream",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteDeliveryStreamResponse DeleteDeliveryStream(DeleteDeliveryStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDeliveryStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDeliveryStreamResponseUnmarshaller.Instance;return Invoke<DeleteDeliveryStreamResponse>(request, options);}
|
train
| true
|
8,896
|
public static RevFilter create(int maxCount) {if (maxCount < 0)throw new IllegalArgumentException(JGitText.get().maxCountMustBeNonNegative);return new MaxCountRevFilter(maxCount);}
|
[
"public",
"static",
"RevFilter",
"create",
"(",
"int",
"maxCount",
")",
"{",
"if",
"(",
"maxCount",
"<",
"0",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"maxCountMustBeNonNegative",
")",
";",
"return",
"new",
"MaxCountRevFilter",
"(",
"maxCount",
")",
";",
"}"
] |
public static RevFilter Create(int maxCount){if (maxCount < 0){throw new ArgumentException(JGitText.Get().maxCountMustBeNonNegative);}return new NGit.Revwalk.Filter.MaxCountRevFilter(maxCount);}
|
train
| false
|
8,897
|
public PeerVpcResult peerVpc(PeerVpcRequest request) {request = beforeClientExecution(request);return executePeerVpc(request);}
|
[
"public",
"PeerVpcResult",
"peerVpc",
"(",
"PeerVpcRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePeerVpc",
"(",
"request",
")",
";",
"}"
] |
public virtual PeerVpcResponse PeerVpc(PeerVpcRequest request){var options = new InvokeOptions();options.RequestMarshaller = PeerVpcRequestMarshaller.Instance;options.ResponseUnmarshaller = PeerVpcResponseUnmarshaller.Instance;return Invoke<PeerVpcResponse>(request, options);}
|
train
| true
|
8,898
|
public GetResolverRuleResult getResolverRule(GetResolverRuleRequest request) {request = beforeClientExecution(request);return executeGetResolverRule(request);}
|
[
"public",
"GetResolverRuleResult",
"getResolverRule",
"(",
"GetResolverRuleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetResolverRule",
"(",
"request",
")",
";",
"}"
] |
public virtual GetResolverRuleResponse GetResolverRule(GetResolverRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetResolverRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = GetResolverRuleResponseUnmarshaller.Instance;return Invoke<GetResolverRuleResponse>(request, options);}
|
train
| true
|
8,899
|
public DeleteScalingPolicyResult deleteScalingPolicy(DeleteScalingPolicyRequest request) {request = beforeClientExecution(request);return executeDeleteScalingPolicy(request);}
|
[
"public",
"DeleteScalingPolicyResult",
"deleteScalingPolicy",
"(",
"DeleteScalingPolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteScalingPolicy",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteScalingPolicyResponse DeleteScalingPolicy(DeleteScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteScalingPolicyResponseUnmarshaller.Instance;return Invoke<DeleteScalingPolicyResponse>(request, options);}
|
train
| true
|
8,900
|
public TokenStream create(TokenStream input) {return new SwedishLightStemFilter(input);}
|
[
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"SwedishLightStemFilter",
"(",
"input",
")",
";",
"}"
] |
public override TokenStream Create(TokenStream input){return new SwedishLightStemFilter(input);}
|
train
| false
|
8,901
|
public void serialize(LittleEndianOutput out) {out.writeShort(getRowNumber());out.writeShort(getFirstCol() == -1 ? (short)0 : getFirstCol());out.writeShort(getLastCol() == -1 ? (short)0 : getLastCol());out.writeShort(getHeight());out.writeShort(getOptimize());out.writeShort(field_6_reserved);out.writeShort(getOptionFlags());out.writeShort(getOptionFlags2());}
|
[
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"getRowNumber",
"(",
")",
")",
";",
"out",
".",
"writeShort",
"(",
"getFirstCol",
"(",
")",
"==",
"-",
"1",
"?",
"(",
"short",
")",
"0",
":",
"getFirstCol",
"(",
")",
")",
";",
"out",
".",
"writeShort",
"(",
"getLastCol",
"(",
")",
"==",
"-",
"1",
"?",
"(",
"short",
")",
"0",
":",
"getLastCol",
"(",
")",
")",
";",
"out",
".",
"writeShort",
"(",
"getHeight",
"(",
")",
")",
";",
"out",
".",
"writeShort",
"(",
"getOptimize",
"(",
")",
")",
";",
"out",
".",
"writeShort",
"(",
"field_6_reserved",
")",
";",
"out",
".",
"writeShort",
"(",
"getOptionFlags",
"(",
")",
")",
";",
"out",
".",
"writeShort",
"(",
"getOptionFlags2",
"(",
")",
")",
";",
"}"
] |
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(RowNumber);out1.WriteShort(FirstCol == -1 ? (short)0 : FirstCol);out1.WriteShort(LastCol == -1 ? (short)0 : LastCol);out1.WriteShort(Height);out1.WriteShort(Optimize);out1.WriteShort(field_6_reserved);out1.WriteShort(OptionFlags);out1.WriteShort(OptionFlags2);}
|
train
| false
|
8,902
|
public GetCredentialsForIdentityResult getCredentialsForIdentity(GetCredentialsForIdentityRequest request) {request = beforeClientExecution(request);return executeGetCredentialsForIdentity(request);}
|
[
"public",
"GetCredentialsForIdentityResult",
"getCredentialsForIdentity",
"(",
"GetCredentialsForIdentityRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetCredentialsForIdentity",
"(",
"request",
")",
";",
"}"
] |
public virtual GetCredentialsForIdentityResponse GetCredentialsForIdentity(GetCredentialsForIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCredentialsForIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCredentialsForIdentityResponseUnmarshaller.Instance;return Invoke<GetCredentialsForIdentityResponse>(request, options);}
|
train
| true
|
8,903
|
public DeleteFileSystemResult deleteFileSystem(DeleteFileSystemRequest request) {request = beforeClientExecution(request);return executeDeleteFileSystem(request);}
|
[
"public",
"DeleteFileSystemResult",
"deleteFileSystem",
"(",
"DeleteFileSystemRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteFileSystem",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteFileSystemResponse DeleteFileSystem(DeleteFileSystemRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFileSystemRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFileSystemResponseUnmarshaller.Instance;return Invoke<DeleteFileSystemResponse>(request, options);}
|
train
| true
|
8,904
|
public DeleteGameServerGroupResult deleteGameServerGroup(DeleteGameServerGroupRequest request) {request = beforeClientExecution(request);return executeDeleteGameServerGroup(request);}
|
[
"public",
"DeleteGameServerGroupResult",
"deleteGameServerGroup",
"(",
"DeleteGameServerGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteGameServerGroup",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteGameServerGroupResponse DeleteGameServerGroup(DeleteGameServerGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGameServerGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGameServerGroupResponseUnmarshaller.Instance;return Invoke<DeleteGameServerGroupResponse>(request, options);}
|
train
| false
|
8,905
|
public AutoCRLFOutputStream(OutputStream out) {this(out, true);}
|
[
"public",
"AutoCRLFOutputStream",
"(",
"OutputStream",
"out",
")",
"{",
"this",
"(",
"out",
",",
"true",
")",
";",
"}"
] |
public AutoCRLFOutputStream(OutputStream @out){this.@out = @out;}
|
train
| false
|
8,906
|
public DescribeLocationsResult describeLocations(DescribeLocationsRequest request) {request = beforeClientExecution(request);return executeDescribeLocations(request);}
|
[
"public",
"DescribeLocationsResult",
"describeLocations",
"(",
"DescribeLocationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeLocations",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeLocationsResponse DescribeLocations(DescribeLocationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLocationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLocationsResponseUnmarshaller.Instance;return Invoke<DescribeLocationsResponse>(request, options);}
|
train
| true
|
8,907
|
public CopyWorkspaceImageResult copyWorkspaceImage(CopyWorkspaceImageRequest request) {request = beforeClientExecution(request);return executeCopyWorkspaceImage(request);}
|
[
"public",
"CopyWorkspaceImageResult",
"copyWorkspaceImage",
"(",
"CopyWorkspaceImageRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCopyWorkspaceImage",
"(",
"request",
")",
";",
"}"
] |
public virtual CopyWorkspaceImageResponse CopyWorkspaceImage(CopyWorkspaceImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyWorkspaceImageRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyWorkspaceImageResponseUnmarshaller.Instance;return Invoke<CopyWorkspaceImageResponse>(request, options);}
|
train
| false
|
8,908
|
public UpdateAliasResult updateAlias(UpdateAliasRequest request) {request = beforeClientExecution(request);return executeUpdateAlias(request);}
|
[
"public",
"UpdateAliasResult",
"updateAlias",
"(",
"UpdateAliasRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateAlias",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateAliasResponse UpdateAlias(UpdateAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAliasResponseUnmarshaller.Instance;return Invoke<UpdateAliasResponse>(request, options);}
|
train
| true
|
8,909
|
public static final int nextLF(byte[] b, int ptr, char chrA) {final int sz = b.length;while (ptr < sz) {final byte c = b[ptr++];if (c == chrA || c == '\n')return ptr;}return ptr;}
|
[
"public",
"static",
"final",
"int",
"nextLF",
"(",
"byte",
"[",
"]",
"b",
",",
"int",
"ptr",
",",
"char",
"chrA",
")",
"{",
"final",
"int",
"sz",
"=",
"b",
".",
"length",
";",
"while",
"(",
"ptr",
"<",
"sz",
")",
"{",
"final",
"byte",
"c",
"=",
"b",
"[",
"ptr",
"++",
"]",
";",
"if",
"(",
"c",
"==",
"chrA",
"||",
"c",
"==",
"'\\n'",
")",
"return",
"ptr",
";",
"}",
"return",
"ptr",
";",
"}"
] |
public static int NextLF(byte[] b, int ptr, char chrA){int sz = b.Length;while (ptr < sz){byte c = b[ptr++];if (c == chrA || c == '\n'){return ptr;}}return ptr;}
|
train
| false
|
8,910
|
public static long checkFooter(ChecksumIndexInput in) throws IOException {validateFooter(in);long actualChecksum = in.getChecksum();long expectedChecksum = readCRC(in);if (expectedChecksum != actualChecksum) {throw new CorruptIndexException("checksum failed (hardware problem?) : expected=" + Long.toHexString(expectedChecksum) +" actual=" + Long.toHexString(actualChecksum), in);}return actualChecksum;}
|
[
"public",
"static",
"long",
"checkFooter",
"(",
"ChecksumIndexInput",
"in",
")",
"throws",
"IOException",
"{",
"validateFooter",
"(",
"in",
")",
";",
"long",
"actualChecksum",
"=",
"in",
".",
"getChecksum",
"(",
")",
";",
"long",
"expectedChecksum",
"=",
"readCRC",
"(",
"in",
")",
";",
"if",
"(",
"expectedChecksum",
"!=",
"actualChecksum",
")",
"{",
"throw",
"new",
"CorruptIndexException",
"(",
"\"checksum failed (hardware problem?) : expected=\"",
"+",
"Long",
".",
"toHexString",
"(",
"expectedChecksum",
")",
"+",
"\" actual=\"",
"+",
"Long",
".",
"toHexString",
"(",
"actualChecksum",
")",
",",
"in",
")",
";",
"}",
"return",
"actualChecksum",
";",
"}"
] |
public static long CheckFooter(ChecksumIndexInput @in){ValidateFooter(@in);long actualChecksum = @in.Checksum;long expectedChecksum = @in.ReadInt64();if (expectedChecksum != actualChecksum){throw new System.IO.IOException("checksum failed (hardware problem?) : expected=" + expectedChecksum.ToString("x") + " actual=" + actualChecksum.ToString("x") + " (resource=" + @in + ")");}if (@in.GetFilePointer() != @in.Length){throw new System.IO.IOException("did not read all bytes from file: read " + @in.GetFilePointer() + " vs size " + @in.Length + " (resource: " + @in + ")");}return actualChecksum;}
|
train
| false
|
8,911
|
public GetLoadBalancersResult getLoadBalancers(GetLoadBalancersRequest request) {request = beforeClientExecution(request);return executeGetLoadBalancers(request);}
|
[
"public",
"GetLoadBalancersResult",
"getLoadBalancers",
"(",
"GetLoadBalancersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetLoadBalancers",
"(",
"request",
")",
";",
"}"
] |
public virtual GetLoadBalancersResponse GetLoadBalancers(GetLoadBalancersRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetLoadBalancersRequestMarshaller.Instance;options.ResponseUnmarshaller = GetLoadBalancersResponseUnmarshaller.Instance;return Invoke<GetLoadBalancersResponse>(request, options);}
|
train
| true
|
8,912
|
public GetRepoListByNamespaceRequest() {super("cr", "2016-06-07", "GetRepoListByNamespace", "cr");setUriPattern("/repos/[RepoNamespace]");setMethod(MethodType.GET);}
|
[
"public",
"GetRepoListByNamespaceRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"GetRepoListByNamespace\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/repos/[RepoNamespace]\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"GET",
")",
";",
"}"
] |
public GetRepoListByNamespaceRequest(): base("cr", "2016-06-07", "GetRepoListByNamespace", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]";Method = MethodType.GET;}
|
train
| false
|
8,913
|
public boolean add(QueryNodeProcessor processor) {boolean added = this.processors.add(processor);if (added) {processor.setQueryConfigHandler(this.queryConfig);}return added;}
|
[
"public",
"boolean",
"add",
"(",
"QueryNodeProcessor",
"processor",
")",
"{",
"boolean",
"added",
"=",
"this",
".",
"processors",
".",
"add",
"(",
"processor",
")",
";",
"if",
"(",
"added",
")",
"{",
"processor",
".",
"setQueryConfigHandler",
"(",
"this",
".",
"queryConfig",
")",
";",
"}",
"return",
"added",
";",
"}"
] |
public virtual bool Add(IQueryNodeProcessor processor){this.processors.Add(processor);bool added = processors.Contains(processor);if (added){processor.SetQueryConfigHandler(this.queryConfig);}return added;}
|
train
| false
|
8,914
|
public PutEventStreamResult putEventStream(PutEventStreamRequest request) {request = beforeClientExecution(request);return executePutEventStream(request);}
|
[
"public",
"PutEventStreamResult",
"putEventStream",
"(",
"PutEventStreamRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutEventStream",
"(",
"request",
")",
";",
"}"
] |
public virtual PutEventStreamResponse PutEventStream(PutEventStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutEventStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = PutEventStreamResponseUnmarshaller.Instance;return Invoke<PutEventStreamResponse>(request, options);}
|
train
| true
|
8,915
|
public int getRenameLimit() {return renameLimit;}
|
[
"public",
"int",
"getRenameLimit",
"(",
")",
"{",
"return",
"renameLimit",
";",
"}"
] |
public virtual int GetRenameLimit(){return renameLimit;}
|
train
| false
|
8,916
|
public char next() {if (++index >= limit) {index = limit;return DONE;} else {return current();}}
|
[
"public",
"char",
"next",
"(",
")",
"{",
"if",
"(",
"++",
"index",
">=",
"limit",
")",
"{",
"index",
"=",
"limit",
";",
"return",
"DONE",
";",
"}",
"else",
"{",
"return",
"current",
"(",
")",
";",
"}",
"}"
] |
public override char Next(){if (++index >= limit){index = limit;return Done;}else{return Current;}}
|
train
| false
|
8,917
|
public final ObjectId getDeltaBaseId() {return deltaBase;}
|
[
"public",
"final",
"ObjectId",
"getDeltaBaseId",
"(",
")",
"{",
"return",
"deltaBase",
";",
"}"
] |
public virtual ObjectId GetDeltaBaseId(){return deltaBase;}
|
train
| false
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.