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 |
|---|---|---|---|---|---|
7,749 | public PatchFormatException(List<FormatError> errors) {super(MessageFormat.format(JGitText.get().patchFormatException, errors));this.errors = errors;}
| [
"public",
"PatchFormatException",
"(",
"List",
"<",
"FormatError",
">",
"errors",
")",
"{",
"super",
"(",
"MessageFormat",
".",
"format",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"patchFormatException",
",",
"errors",
")",
")",
";",
"this",
".",
"errors... | public PatchFormatException(IList<FormatError> errors) : base(MessageFormat.Format(JGitText.Get().patchFormatException, errors)){this.errors = errors;}
| train | false |
7,750 | public String finish() {sb.append(formatTrailer());return sb.toString();}
| [
"public",
"String",
"finish",
"(",
")",
"{",
"sb",
".",
"append",
"(",
"formatTrailer",
"(",
")",
")",
";",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}"
] | public virtual string Finish(){sb.Append(FormatTrailer());return sb.ToString();}
| train | false |
7,752 | public int[] init() {final int[] ord = super.init();boost = new float[ArrayUtil.oversize(ord.length, Float.BYTES)];termState = new TermStates[ArrayUtil.oversize(ord.length, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];assert termState.length >= ord.length && boost.length >= ord.length;return ord;}
| [
"public",
"int",
"[",
"]",
"init",
"(",
")",
"{",
"final",
"int",
"[",
"]",
"ord",
"=",
"super",
".",
"init",
"(",
")",
";",
"boost",
"=",
"new",
"float",
"[",
"ArrayUtil",
".",
"oversize",
"(",
"ord",
".",
"length",
",",
"Float",
".",
"BYTES",
... | public override int[] Init(){int[] ord = base.Init();boost = new float[ArrayUtil.Oversize(ord.Length, RamUsageEstimator.NUM_BYTES_SINGLE)];termState = new TermContext[ArrayUtil.Oversize(ord.Length, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];Debug.Assert(termState.Length >= ord.Length && boost.Length >= ord.Length);return... | train | false |
7,754 | public void deleteFile(String name) {throw new UnsupportedOperationException();}
| [
"public",
"void",
"deleteFile",
"(",
"String",
"name",
")",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
")",
";",
"}"
] | public override void DeleteFile(string name){throw new NotSupportedException();}
| train | false |
7,755 | public StopTrainingDocumentClassifierResult stopTrainingDocumentClassifier(StopTrainingDocumentClassifierRequest request) {request = beforeClientExecution(request);return executeStopTrainingDocumentClassifier(request);}
| [
"public",
"StopTrainingDocumentClassifierResult",
"stopTrainingDocumentClassifier",
"(",
"StopTrainingDocumentClassifierRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStopTrainingDocumentClassifier",
"(",
"reque... | public virtual StopTrainingDocumentClassifierResponse StopTrainingDocumentClassifier(StopTrainingDocumentClassifierRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTrainingDocumentClassifierRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTrainingDocumentClassifierResponse... | train | true |
7,756 | public TermStats(int docFreq, long totalTermFreq) {this.docFreq = docFreq;this.totalTermFreq = totalTermFreq;}
| [
"public",
"TermStats",
"(",
"int",
"docFreq",
",",
"long",
"totalTermFreq",
")",
"{",
"this",
".",
"docFreq",
"=",
"docFreq",
";",
"this",
".",
"totalTermFreq",
"=",
"totalTermFreq",
";",
"}"
] | public TermStats(int docFreq, long totalTermFreq){this.DocFreq = docFreq;this.TotalTermFreq = totalTermFreq;}
| train | false |
7,757 | public GetAuthorizersResult getAuthorizers(GetAuthorizersRequest request) {request = beforeClientExecution(request);return executeGetAuthorizers(request);}
| [
"public",
"GetAuthorizersResult",
"getAuthorizers",
"(",
"GetAuthorizersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetAuthorizers",
"(",
"request",
")",
";",
"}"
] | public virtual GetAuthorizersResponse GetAuthorizers(GetAuthorizersRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAuthorizersRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAuthorizersResponseUnmarshaller.Instance;return Invoke<GetAuthorizersResponse>(request, options);}
| train | true |
7,758 | public void dispatch(RepositoryEvent event) {List<ListenerHandle> list = lists.get(event.getListenerType());if (list != null) {for (ListenerHandle handle : list)event.dispatch(handle.listener);}}
| [
"public",
"void",
"dispatch",
"(",
"RepositoryEvent",
"event",
")",
"{",
"List",
"<",
"ListenerHandle",
">",
"list",
"=",
"lists",
".",
"get",
"(",
"event",
".",
"getListenerType",
"(",
")",
")",
";",
"if",
"(",
"list",
"!=",
"null",
")",
"{",
"for",
... | public virtual void Dispatch(RepositoryEvent @event){IList<ListenerHandle> list = lists.Get(@event.GetListenerType());if (list != null){foreach (ListenerHandle handle in list){@event.Dispatch(handle.listener);}}}
| train | false |
7,759 | public String toString(String field) {StringBuilder buffer = new StringBuilder();buffer.append("spanNot(");buffer.append(include.toString(field));buffer.append(", ");buffer.append(exclude.toString(field));buffer.append(", ");buffer.append(Integer.toString(pre));buffer.append(", ");buffer.append(Integer.toString(post));... | [
"public",
"String",
"toString",
"(",
"String",
"field",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"spanNot(\"",
")",
";",
"buffer",
".",
"append",
"(",
"include",
".",
"toString",
"(",
... | public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append("spanNot(");buffer.Append(include.ToString(field));buffer.Append(", ");buffer.Append(exclude.ToString(field));buffer.Append(", ");buffer.Append(Convert.ToString(pre));buffer.Append(", ");buffer.Append(Convert.ToString... | train | false |
7,760 | public SearchGameSessionsResult searchGameSessions(SearchGameSessionsRequest request) {request = beforeClientExecution(request);return executeSearchGameSessions(request);}
| [
"public",
"SearchGameSessionsResult",
"searchGameSessions",
"(",
"SearchGameSessionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSearchGameSessions",
"(",
"request",
")",
";",
"}"
] | public virtual SearchGameSessionsResponse SearchGameSessions(SearchGameSessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchGameSessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchGameSessionsResponseUnmarshaller.Instance;return Invoke<SearchGameSessionsRespon... | train | true |
7,761 | public int stem(char s[], int len) {if (len < 4)return len;for (int i = 0; i < len; i++)switch(s[i]) {case 'ä':case 'å': s[i] = 'a'; break;case 'ö': s[i] = 'o'; break;}len = step1(s, len);len = step2(s, len);len = step3(s, len);len = norm1(s, len);len = norm2(s, len);return len;}
| [
"public",
"int",
"stem",
"(",
"char",
"s",
"[",
"]",
",",
"int",
"len",
")",
"{",
"if",
"(",
"len",
"<",
"4",
")",
"return",
"len",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"len",
";",
"i",
"++",
")",
"switch",
"(",
"s",
"[",... | public virtual int Stem(char[] s, int len){if (len < 4){return len;}for (int i = 0; i < len; i++){switch (s[i]){case 'ä':case 'å':s[i] = 'a';break;case 'ö':s[i] = 'o';break;}}len = Step1(s, len);len = Step2(s, len);len = Step3(s, len);len = Norm1(s, len);len = Norm2(s, len);return len;}
| train | false |
7,762 | public PutConfigurationSetReputationOptionsResult putConfigurationSetReputationOptions(PutConfigurationSetReputationOptionsRequest request) {request = beforeClientExecution(request);return executePutConfigurationSetReputationOptions(request);}
| [
"public",
"PutConfigurationSetReputationOptionsResult",
"putConfigurationSetReputationOptions",
"(",
"PutConfigurationSetReputationOptionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutConfigurationSetReputationO... | public virtual PutConfigurationSetReputationOptionsResponse PutConfigurationSetReputationOptions(PutConfigurationSetReputationOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConfigurationSetReputationOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConfigurati... | train | true |
7,763 | public ListAttendeeTagsResult listAttendeeTags(ListAttendeeTagsRequest request) {request = beforeClientExecution(request);return executeListAttendeeTags(request);}
| [
"public",
"ListAttendeeTagsResult",
"listAttendeeTags",
"(",
"ListAttendeeTagsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListAttendeeTags",
"(",
"request",
")",
";",
"}"
] | public virtual ListAttendeeTagsResponse ListAttendeeTags(ListAttendeeTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAttendeeTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAttendeeTagsResponseUnmarshaller.Instance;return Invoke<ListAttendeeTagsResponse>(request,... | train | false |
7,764 | public static void validateSheetName(String sheetName) {if (sheetName == null) {throw new IllegalArgumentException("sheetName must not be null");}int len = sheetName.length();if (len < 1 || len > 31) {throw new IllegalArgumentException("sheetName '" + sheetName+ "' is invalid - character count MUST be greater than or e... | [
"public",
"static",
"void",
"validateSheetName",
"(",
"String",
"sheetName",
")",
"{",
"if",
"(",
"sheetName",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"sheetName must not be null\"",
")",
";",
"}",
"int",
"len",
"=",
"sheetName... | public static void ValidateSheetName(String sheetName) {if (sheetName == null) {throw new ArgumentException("sheetName must not be null");}int len = sheetName.Length;if (len < 1 || len > 31) {throw new ArgumentException("sheetName '" + sheetName+ "' is invalid - character count MUST be greater than or equal to 1 and le... | train | false |
7,765 | public long getPosition() {return getPointer();}
| [
"public",
"long",
"getPosition",
"(",
")",
"{",
"return",
"getPointer",
"(",
")",
";",
"}"
] | public long GetPosition(){return outerInstance.GetPointer();}
| train | false |
7,766 | public void reset(DataOutput out) {assert out != null;this.out = out;off = 0;ord = 0L;finished = false;}
| [
"public",
"void",
"reset",
"(",
"DataOutput",
"out",
")",
"{",
"assert",
"out",
"!=",
"null",
";",
"this",
".",
"out",
"=",
"out",
";",
"off",
"=",
"0",
";",
"ord",
"=",
"0L",
";",
"finished",
"=",
"false",
";",
"}"
] | public virtual void Reset(DataOutput @out){Debug.Assert(@out != null);this.m_out = @out;m_off = 0;m_ord = 0L;m_finished = false;}
| train | false |
7,768 | public RevFilter clone() {return new MaxCountRevFilter(maxCount);}
| [
"public",
"RevFilter",
"clone",
"(",
")",
"{",
"return",
"new",
"MaxCountRevFilter",
"(",
"maxCount",
")",
";",
"}"
] | public override RevFilter Clone(){return new NGit.Revwalk.Filter.MaxCountRevFilter(maxCount);}
| train | false |
7,769 | public DisableUserResult disableUser(DisableUserRequest request) {request = beforeClientExecution(request);return executeDisableUser(request);}
| [
"public",
"DisableUserResult",
"disableUser",
"(",
"DisableUserRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisableUser",
"(",
"request",
")",
";",
"}"
] | public virtual DisableUserResponse DisableUser(DisableUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableUserRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableUserResponseUnmarshaller.Instance;return Invoke<DisableUserResponse>(request, options);}
| train | true |
7,770 | public void append(String stringToMatch) {for (int i = 0; i < stringToMatch.length(); i++) {final char c = stringToMatch.charAt(i);if (!extendStringToMatchByOneCharacter(c))break;}}
| [
"public",
"void",
"append",
"(",
"String",
"stringToMatch",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"stringToMatch",
".",
"length",
"(",
")",
";",
"i",
"++",
")",
"{",
"final",
"char",
"c",
"=",
"stringToMatch",
".",
"charAt",
"(... | public virtual void Append(string stringToMatch){for (int i = 0; i < stringToMatch.Length; i++){char c = stringToMatch[i];ExtendStringToMatchByOneCharacter(c);}}
| train | true |
7,771 | public StopTrainingJobResult stopTrainingJob(StopTrainingJobRequest request) {request = beforeClientExecution(request);return executeStopTrainingJob(request);}
| [
"public",
"StopTrainingJobResult",
"stopTrainingJob",
"(",
"StopTrainingJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStopTrainingJob",
"(",
"request",
")",
";",
"}"
] | public virtual StopTrainingJobResponse StopTrainingJob(StopTrainingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTrainingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTrainingJobResponseUnmarshaller.Instance;return Invoke<StopTrainingJobResponse>(request, optio... | train | true |
7,772 | public IndexInput openInput(String name, IOContext context) throws IOException {ensureOpen();final String id = IndexFileNames.stripSegmentName(name);final FileEntry entry = entries.get(id);if (entry == null) {String datFileName = IndexFileNames.segmentFileName(segmentName, "", Lucene50CompoundFormat.DATA_EXTENSION);thr... | [
"public",
"IndexInput",
"openInput",
"(",
"String",
"name",
",",
"IOContext",
"context",
")",
"throws",
"IOException",
"{",
"ensureOpen",
"(",
")",
";",
"final",
"String",
"id",
"=",
"IndexFileNames",
".",
"stripSegmentName",
"(",
"name",
")",
";",
"final",
... | public override IndexInput OpenInput(string name, IOContext context){lock (this){EnsureOpen();Debug.Assert(!openForWrite);string id = IndexFileNames.StripSegmentName(name);if (!entries.TryGetValue(id, out FileEntry entry) || entry == null){throw new FileNotFoundException("No sub-file with id " + id +" found (fileName="... | train | false |
7,773 | public GetSnowballUsageResult getSnowballUsage(GetSnowballUsageRequest request) {request = beforeClientExecution(request);return executeGetSnowballUsage(request);}
| [
"public",
"GetSnowballUsageResult",
"getSnowballUsage",
"(",
"GetSnowballUsageRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetSnowballUsage",
"(",
"request",
")",
";",
"}"
] | public virtual GetSnowballUsageResponse GetSnowballUsage(GetSnowballUsageRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSnowballUsageRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSnowballUsageResponseUnmarshaller.Instance;return Invoke<GetSnowballUsageResponse>(request,... | train | true |
7,774 | public DeleteUserProfileResult deleteUserProfile(DeleteUserProfileRequest request) {request = beforeClientExecution(request);return executeDeleteUserProfile(request);}
| [
"public",
"DeleteUserProfileResult",
"deleteUserProfile",
"(",
"DeleteUserProfileRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteUserProfile",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteUserProfileResponse DeleteUserProfile(DeleteUserProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUserProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUserProfileResponseUnmarshaller.Instance;return Invoke<DeleteUserProfileResponse>(re... | train | true |
7,775 | public int compare(ConfigLine a, ConfigLine b) {return compare2(a.section, a.subsection, a.name,b.section, b.subsection, b.name);}
| [
"public",
"int",
"compare",
"(",
"ConfigLine",
"a",
",",
"ConfigLine",
"b",
")",
"{",
"return",
"compare2",
"(",
"a",
".",
"section",
",",
"a",
".",
"subsection",
",",
"a",
".",
"name",
",",
"b",
".",
"section",
",",
"b",
".",
"subsection",
",",
"b... | public virtual int Compare(ConfigLine a, ConfigLine b){var value = Compare2(a.section, a.subsection, a.name, b.section, b.subsection, b.name);return value != 0 ? value : string.CompareOrdinal (a.value, b.value);}
| train | false |
7,776 | public LongBuffer asReadOnlyBuffer() {return duplicate();}
| [
"public",
"LongBuffer",
"asReadOnlyBuffer",
"(",
")",
"{",
"return",
"duplicate",
"(",
")",
";",
"}"
] | public override java.nio.LongBuffer asReadOnlyBuffer(){return duplicate();}
| train | false |
7,777 | public HSSFComment createCellComment(ClientAnchor anchor) {return createComment((HSSFAnchor) anchor);}
| [
"public",
"HSSFComment",
"createCellComment",
"(",
"ClientAnchor",
"anchor",
")",
"{",
"return",
"createComment",
"(",
"(",
"HSSFAnchor",
")",
"anchor",
")",
";",
"}"
] | public IComment CreateCellComment(IClientAnchor anchor){return CreateComment((HSSFAnchor)anchor);}
| train | false |
7,778 | public CollatedTermAttributeImpl(Collator collator) {this.collator = (Collator) collator.clone();}
| [
"public",
"CollatedTermAttributeImpl",
"(",
"Collator",
"collator",
")",
"{",
"this",
".",
"collator",
"=",
"(",
"Collator",
")",
"collator",
".",
"clone",
"(",
")",
";",
"}"
] | public CollatedTermAttributeImpl(Collator collator){this.collator = (Collator)collator.Clone();}
| train | false |
7,779 | public UpdatePipelineStatusResult updatePipelineStatus(UpdatePipelineStatusRequest request) {request = beforeClientExecution(request);return executeUpdatePipelineStatus(request);}
| [
"public",
"UpdatePipelineStatusResult",
"updatePipelineStatus",
"(",
"UpdatePipelineStatusRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdatePipelineStatus",
"(",
"request",
")",
";",
"}"
] | public virtual UpdatePipelineStatusResponse UpdatePipelineStatus(UpdatePipelineStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePipelineStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePipelineStatusResponseUnmarshaller.Instance;return Invoke<UpdatePipeline... | train | true |
7,780 | public void copyTo(char[] tmp, StringBuilder w) {toHexCharArray(tmp);w.append(tmp, 0, Constants.OBJECT_ID_STRING_LENGTH);}
| [
"public",
"void",
"copyTo",
"(",
"char",
"[",
"]",
"tmp",
",",
"StringBuilder",
"w",
")",
"{",
"toHexCharArray",
"(",
"tmp",
")",
";",
"w",
".",
"append",
"(",
"tmp",
",",
"0",
",",
"Constants",
".",
"OBJECT_ID_STRING_LENGTH",
")",
";",
"}"
] | public virtual void CopyTo(char[] tmp, StringBuilder w){ToHexCharArray(tmp);w.Append(tmp, 0, Constants.OBJECT_ID_STRING_LENGTH);}
| train | false |
7,781 | public BytesReader getBytesReader() {if (fst == null) {return null;} else {return fst.getBytesReader();}}
| [
"public",
"BytesReader",
"getBytesReader",
"(",
")",
"{",
"if",
"(",
"fst",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"else",
"{",
"return",
"fst",
".",
"getBytesReader",
"(",
")",
";",
"}",
"}"
] | public FST.BytesReader GetBytesReader(){if (fst == null){return null;}else{return fst.GetBytesReader();}}
| train | false |
7,782 | public CreateRouteTableResult createRouteTable(CreateRouteTableRequest request) {request = beforeClientExecution(request);return executeCreateRouteTable(request);}
| [
"public",
"CreateRouteTableResult",
"createRouteTable",
"(",
"CreateRouteTableRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateRouteTable",
"(",
"request",
")",
";",
"}"
] | public virtual CreateRouteTableResponse CreateRouteTable(CreateRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRouteTableResponseUnmarshaller.Instance;return Invoke<CreateRouteTableResponse>(request,... | train | true |
7,783 | public String toString(String field) {return "ToParentBlockJoinQuery ("+childQuery.toString()+")";}
| [
"public",
"String",
"toString",
"(",
"String",
"field",
")",
"{",
"return",
"\"ToParentBlockJoinQuery (\"",
"+",
"childQuery",
".",
"toString",
"(",
")",
"+",
"\")\"",
";",
"}"
] | public override string ToString(string field){return "ToParentBlockJoinQuery (" + _childQuery + ")";}
| train | false |
7,784 | public DisassociateClientVpnTargetNetworkResult disassociateClientVpnTargetNetwork(DisassociateClientVpnTargetNetworkRequest request) {request = beforeClientExecution(request);return executeDisassociateClientVpnTargetNetwork(request);}
| [
"public",
"DisassociateClientVpnTargetNetworkResult",
"disassociateClientVpnTargetNetwork",
"(",
"DisassociateClientVpnTargetNetworkRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisassociateClientVpnTargetNetwork",... | public virtual DisassociateClientVpnTargetNetworkResponse DisassociateClientVpnTargetNetwork(DisassociateClientVpnTargetNetworkRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateClientVpnTargetNetworkRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateClientVpnT... | train | true |
7,785 | public String toString() {return "<slop value='" + getValueString() + "'>" + "\n"+ getChild().toString() + "\n</slop>";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"<slop value='\"",
"+",
"getValueString",
"(",
")",
"+",
"\"'>\"",
"+",
"\"\\n\"",
"+",
"getChild",
"(",
")",
".",
"toString",
"(",
")",
"+",
"\"\\n</slop>\"",
";",
"}"
] | public override string ToString(){return "<slop value='" + GetValueString() + "'>" + "\n"+ GetChild().ToString() + "\n</slop>";}
| train | false |
7,786 | public GetExportJobsResult getExportJobs(GetExportJobsRequest request) {request = beforeClientExecution(request);return executeGetExportJobs(request);}
| [
"public",
"GetExportJobsResult",
"getExportJobs",
"(",
"GetExportJobsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetExportJobs",
"(",
"request",
")",
";",
"}"
] | public virtual GetExportJobsResponse GetExportJobs(GetExportJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetExportJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetExportJobsResponseUnmarshaller.Instance;return Invoke<GetExportJobsResponse>(request, options);}
| train | true |
7,787 | public UpdateBaiduChannelResult updateBaiduChannel(UpdateBaiduChannelRequest request) {request = beforeClientExecution(request);return executeUpdateBaiduChannel(request);}
| [
"public",
"UpdateBaiduChannelResult",
"updateBaiduChannel",
"(",
"UpdateBaiduChannelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateBaiduChannel",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateBaiduChannelResponse UpdateBaiduChannel(UpdateBaiduChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBaiduChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBaiduChannelResponseUnmarshaller.Instance;return Invoke<UpdateBaiduChannelRespon... | train | true |
7,788 | public ImportApiResult importApi(ImportApiRequest request) {request = beforeClientExecution(request);return executeImportApi(request);}
| [
"public",
"ImportApiResult",
"importApi",
"(",
"ImportApiRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeImportApi",
"(",
"request",
")",
";",
"}"
] | public virtual ImportApiResponse ImportApi(ImportApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportApiRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportApiResponseUnmarshaller.Instance;return Invoke<ImportApiResponse>(request, options);}
| train | false |
7,789 | public synchronized int read() {return pos < count ? buffer.charAt(pos++) & 0xFF : -1;}
| [
"public",
"synchronized",
"int",
"read",
"(",
")",
"{",
"return",
"pos",
"<",
"count",
"?",
"buffer",
".",
"charAt",
"(",
"pos",
"++",
")",
"&",
"0xFF",
":",
"-",
"1",
";",
"}"
] | public override int read(){lock (this){return pos < count ? buffer[pos++] & unchecked((int)(0xFF)) : -1;}}
| train | false |
7,790 | public GetUserResult getUser(GetUserRequest request) {request = beforeClientExecution(request);return executeGetUser(request);}
| [
"public",
"GetUserResult",
"getUser",
"(",
"GetUserRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetUser",
"(",
"request",
")",
";",
"}"
] | public virtual GetUserResponse GetUser(GetUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUserRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUserResponseUnmarshaller.Instance;return Invoke<GetUserResponse>(request, options);}
| train | true |
7,791 | public GetHealthCheckLastFailureReasonResult getHealthCheckLastFailureReason(GetHealthCheckLastFailureReasonRequest request) {request = beforeClientExecution(request);return executeGetHealthCheckLastFailureReason(request);}
| [
"public",
"GetHealthCheckLastFailureReasonResult",
"getHealthCheckLastFailureReason",
"(",
"GetHealthCheckLastFailureReasonRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetHealthCheckLastFailureReason",
"(",
"r... | public virtual GetHealthCheckLastFailureReasonResponse GetHealthCheckLastFailureReason(GetHealthCheckLastFailureReasonRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHealthCheckLastFailureReasonRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHealthCheckLastFailureReasonRes... | train | true |
7,792 | public String getRawQuery() {return query;}
| [
"public",
"String",
"getRawQuery",
"(",
")",
"{",
"return",
"query",
";",
"}"
] | public string getRawQuery(){return query;}
| train | false |
7,794 | public boolean equals(Object obj) {if (obj instanceof StatePair) {StatePair p = (StatePair) obj;return p.s1 == s1 && p.s2 == s2;} else return false;}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"obj",
"instanceof",
"StatePair",
")",
"{",
"StatePair",
"p",
"=",
"(",
"StatePair",
")",
"obj",
";",
"return",
"p",
".",
"s1",
"==",
"s1",
"&&",
"p",
".",
"s2",
"==",
"s2",
... | public override bool Equals(object obj){if (obj is StatePair){StatePair p = (StatePair)obj;return p.S1 == S1 && p.S2 == S2;}else{return false;}}
| train | false |
7,795 | public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[OLD STRING]\n");buffer.append(" .string = ").append(getString()).append("\n");buffer.append("[/OLD STRING]\n");return buffer.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[OLD STRING]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .string = \"",
")",
".",
"appen... | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[OLD STRING]\n");buffer.Append(" .string = ").Append(GetString()).Append("\n");buffer.Append("[/OLD STRING]\n");return buffer.ToString();}
| train | false |
7,796 | public ExecutePolicyResult executePolicy(ExecutePolicyRequest request) {request = beforeClientExecution(request);return executeExecutePolicy(request);}
| [
"public",
"ExecutePolicyResult",
"executePolicy",
"(",
"ExecutePolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeExecutePolicy",
"(",
"request",
")",
";",
"}"
] | public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExecutePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = ExecutePolicyResponseUnmarshaller.Instance;return Invoke<ExecutePolicyResponse>(request, options);}
| train | true |
7,797 | public UpdateEmailTemplateResult updateEmailTemplate(UpdateEmailTemplateRequest request) {request = beforeClientExecution(request);return executeUpdateEmailTemplate(request);}
| [
"public",
"UpdateEmailTemplateResult",
"updateEmailTemplate",
"(",
"UpdateEmailTemplateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateEmailTemplate",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateEmailTemplateResponse UpdateEmailTemplate(UpdateEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEmailTemplateResponseUnmarshaller.Instance;return Invoke<UpdateEmailTemplate... | train | false |
7,798 | public boolean equalsContents(final Object o) {final CustomProperty c = (CustomProperty) o;final String name1 = c.getName();final String name2 = this.getName();boolean equalNames = true;if (name1 == null) {equalNames = name2 == null;} else {equalNames = name1.equals(name2);}return equalNames && c.getID() == this.getID(... | [
"public",
"boolean",
"equalsContents",
"(",
"final",
"Object",
"o",
")",
"{",
"final",
"CustomProperty",
"c",
"=",
"(",
"CustomProperty",
")",
"o",
";",
"final",
"String",
"name1",
"=",
"c",
".",
"getName",
"(",
")",
";",
"final",
"String",
"name2",
"=",... | public bool EqualsContents(Object o){CustomProperty c = (CustomProperty)o;String name1 = c.Name;String name2 = this.Name;bool equalNames = true;if (name1 == null)equalNames = name2 == null;elseequalNames = name1.Equals(name2);return equalNames && c.ID == this.ID&& c.Type == this.Type&& c.Value.Equals(this.Value);}
| train | false |
7,799 | public DuplicateFormatFlagsException(String f) {if (f == null) {throw new NullPointerException();}flags = f;}
| [
"public",
"DuplicateFormatFlagsException",
"(",
"String",
"f",
")",
"{",
"if",
"(",
"f",
"==",
"null",
")",
"{",
"throw",
"new",
"NullPointerException",
"(",
")",
";",
"}",
"flags",
"=",
"f",
";",
"}"
] | public DuplicateFormatFlagsException(string f){if (f == null){throw new System.ArgumentNullException();}flags = f;}
| train | false |
7,800 | public synchronized void mark(int readlimit) {marklimit = readlimit;markpos = pos;}
| [
"public",
"synchronized",
"void",
"mark",
"(",
"int",
"readlimit",
")",
"{",
"marklimit",
"=",
"readlimit",
";",
"markpos",
"=",
"pos",
";",
"}"
] | public override void mark(int readlimit){lock (this){marklimit = readlimit;markpos = pos;}}
| train | false |
7,801 | public final int prefixCompare(AnyObjectId other) {int cmp;cmp = NB.compareUInt32(w1, mask(1, other.w1));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w2, mask(2, other.w2));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w3, mask(3, other.w3));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w4, mask(4, other.w4));if (c... | [
"public",
"final",
"int",
"prefixCompare",
"(",
"AnyObjectId",
"other",
")",
"{",
"int",
"cmp",
";",
"cmp",
"=",
"NB",
".",
"compareUInt32",
"(",
"w1",
",",
"mask",
"(",
"1",
",",
"other",
".",
"w1",
")",
")",
";",
"if",
"(",
"cmp",
"!=",
"0",
")... | public int PrefixCompare(AnyObjectId other){int cmp;cmp = NB.CompareUInt32(w1, Mask(1, other.w1));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w2, Mask(2, other.w2));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w3, Mask(3, other.w3));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w4, Mask(4, other.w4));if (cm... | train | false |
7,802 | public UpdateRequestValidatorResult updateRequestValidator(UpdateRequestValidatorRequest request) {request = beforeClientExecution(request);return executeUpdateRequestValidator(request);}
| [
"public",
"UpdateRequestValidatorResult",
"updateRequestValidator",
"(",
"UpdateRequestValidatorRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateRequestValidator",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateRequestValidatorResponse UpdateRequestValidator(UpdateRequestValidatorRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRequestValidatorRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRequestValidatorResponseUnmarshaller.Instance;return Invoke<Upda... | train | true |
7,803 | public Extensions(char extensionFieldDelimiter) {this.extensionFieldDelimiter = extensionFieldDelimiter;}
| [
"public",
"Extensions",
"(",
"char",
"extensionFieldDelimiter",
")",
"{",
"this",
".",
"extensionFieldDelimiter",
"=",
"extensionFieldDelimiter",
";",
"}"
] | public Extensions(char extensionFieldDelimiter){this.extensionFieldDelimiter = extensionFieldDelimiter;}
| train | false |
7,804 | public TokenStream create(TokenStream input) {return new EnglishMinimalStemFilter(input);}
| [
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"EnglishMinimalStemFilter",
"(",
"input",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new EnglishMinimalStemFilter(input);}
| train | false |
7,805 | public QueryText getPathElement(int index) {return values.get(index);}
| [
"public",
"QueryText",
"getPathElement",
"(",
"int",
"index",
")",
"{",
"return",
"values",
".",
"get",
"(",
"index",
")",
";",
"}"
] | public virtual QueryText GetPathElement(int index){return values[index];}
| train | false |
7,806 | public void serialize(LittleEndianOutput out) {out.writeShort(_sid);out.writeShort(_data.length);out.write(_data);}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"_sid",
")",
";",
"out",
".",
"writeShort",
"(",
"_data",
".",
"length",
")",
";",
"out",
".",
"write",
"(",
"_data",
")",
";",
"}"
] | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(_sid);out1.WriteShort(_data.Length);out1.Write(_data);}
| train | false |
7,807 | public void setQueryConfigHandler(QueryConfigHandler queryConfigHandler) {this.queryConfig = queryConfigHandler;for (QueryNodeProcessor processor : this.processors) {processor.setQueryConfigHandler(this.queryConfig);}}
| [
"public",
"void",
"setQueryConfigHandler",
"(",
"QueryConfigHandler",
"queryConfigHandler",
")",
"{",
"this",
".",
"queryConfig",
"=",
"queryConfigHandler",
";",
"for",
"(",
"QueryNodeProcessor",
"processor",
":",
"this",
".",
"processors",
")",
"{",
"processor",
".... | public virtual void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler){this.queryConfig = queryConfigHandler;foreach (IQueryNodeProcessor processor in this.processors){processor.SetQueryConfigHandler(this.queryConfig);}}
| train | false |
7,808 | public DeleteGameSessionQueueResult deleteGameSessionQueue(DeleteGameSessionQueueRequest request) {request = beforeClientExecution(request);return executeDeleteGameSessionQueue(request);}
| [
"public",
"DeleteGameSessionQueueResult",
"deleteGameSessionQueue",
"(",
"DeleteGameSessionQueueRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteGameSessionQueue",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteGameSessionQueueResponse DeleteGameSessionQueue(DeleteGameSessionQueueRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGameSessionQueueRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGameSessionQueueResponseUnmarshaller.Instance;return Invoke<Dele... | train | true |
7,809 | public List<DFAState> getStates() {List<DFAState> result = new ArrayList<DFAState>(states.keySet());Collections.sort(result, new Comparator<DFAState>());}
| [
"public",
"List",
"<",
"DFAState",
">",
"getStates",
"(",
")",
"{",
"List",
"<",
"DFAState",
">",
"result",
"=",
"new",
"ArrayList",
"<",
"DFAState",
">",
"(",
"states",
".",
"keySet",
"(",
")",
")",
";",
"Collections",
".",
"sort",
"(",
"result",
",... | public List<DFAState> GetStates(){List<DFAState> result = new List<DFAState>(states.Keys);result.Sort((x, y) => x.stateNumber - y.stateNumber);return result;}
| train | false |
7,810 | public static CmpOp getOperator(String value) {int len = value.length();if (len < 1) {return OP_NONE;}char firstChar = value.charAt(0);switch(firstChar) {case '=':return OP_EQ;case '>':if (len > 1) {switch(value.charAt(1)) {case '=':return OP_GE;}}return OP_GT;case '<':if (len > 1) {switch(value.charAt(1)) {case '=':re... | [
"public",
"static",
"CmpOp",
"getOperator",
"(",
"String",
"value",
")",
"{",
"int",
"len",
"=",
"value",
".",
"length",
"(",
")",
";",
"if",
"(",
"len",
"<",
"1",
")",
"{",
"return",
"OP_NONE",
";",
"}",
"char",
"firstChar",
"=",
"value",
".",
"ch... | public static CmpOp GetOperator(String value){int len = value.Length;if (len < 1){return OP_NONE;}char firstChar = value[0];switch (firstChar){case '=':return OP_EQ;case '>':if (len > 1){switch (value[1]){case '=':return OP_GE;}}return OP_GT;case '<':if (len > 1){switch (value[1]){case '=':return OP_LE;case '>':return ... | train | false |
7,811 | public void addChars( char[] characters, int[] widths ){for ( int i = 0; i < characters.length; i++ ){charWidths.put( Character.valueOf(characters[i]), Integer.valueOf(widths[i]));}}
| [
"public",
"void",
"addChars",
"(",
"char",
"[",
"]",
"characters",
",",
"int",
"[",
"]",
"widths",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"characters",
".",
"length",
";",
"i",
"++",
")",
"{",
"charWidths",
".",
"put",
"(",
... | public void AddChars(char[] Chars, int[] widths){for (int i = 0; i < Chars.Length; i++){if (Chars[i] != ' '){charWidths[Chars[i]] = widths[i];}}}
| train | false |
7,812 | public ShortBuffer duplicate() {return copy(this, mark);}
| [
"public",
"ShortBuffer",
"duplicate",
"(",
")",
"{",
"return",
"copy",
"(",
"this",
",",
"mark",
")",
";",
"}"
] | public override java.nio.ShortBuffer duplicate(){return copy(this, _mark);}
| train | false |
7,813 | public void setValidating(boolean validating) {features.put (XmlPullParser.FEATURE_VALIDATION, validating);}
| [
"public",
"void",
"setValidating",
"(",
"boolean",
"validating",
")",
"{",
"features",
".",
"put",
"(",
"XmlPullParser",
".",
"FEATURE_VALIDATION",
",",
"validating",
")",
";",
"}"
] | public virtual void setValidating(bool validating){features.put(org.xmlpull.v1.XmlPullParserClass.FEATURE_VALIDATION, validating);}
| train | false |
7,814 | public DedicatedCapacityInner create(String resourceGroupName, String dedicatedCapacityName, DedicatedCapacityInner capacityParameters) {return createWithServiceResponseAsync(resourceGroupName, dedicatedCapacityName, capacityParameters).toBlocking().last().body();}
| [
"public",
"DedicatedCapacityInner",
"create",
"(",
"String",
"resourceGroupName",
",",
"String",
"dedicatedCapacityName",
",",
"DedicatedCapacityInner",
"capacityParameters",
")",
"{",
"return",
"createWithServiceResponseAsync",
"(",
"resourceGroupName",
",",
"dedicatedCapacity... | public async Task<AzureOperationResponse<DedicatedCapacity>> CreateWithHttpMessagesAsync(string resourceGroupName, string dedicatedCapacityName, DedicatedCapacity capacityParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)){return await inn... | train | false |
7,815 | public CancelIngestionResult cancelIngestion(CancelIngestionRequest request) {request = beforeClientExecution(request);return executeCancelIngestion(request);}
| [
"public",
"CancelIngestionResult",
"cancelIngestion",
"(",
"CancelIngestionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCancelIngestion",
"(",
"request",
")",
";",
"}"
] | public virtual CancelIngestionResponse CancelIngestion(CancelIngestionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelIngestionRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelIngestionResponseUnmarshaller.Instance;return Invoke<CancelIngestionResponse>(request, optio... | train | false |
7,816 | public void setEncoding(String encodingName) {encoding = Charset.forName(encodingName);}
| [
"public",
"void",
"setEncoding",
"(",
"String",
"encodingName",
")",
"{",
"encoding",
"=",
"Charset",
".",
"forName",
"(",
"encodingName",
")",
";",
"}"
] | public virtual void SetEncoding(string encodingName){encoding = Sharpen.Extensions.GetEncoding(encodingName);}
| train | false |
7,817 | public DeleteTemplateAliasResult deleteTemplateAlias(DeleteTemplateAliasRequest request) {request = beforeClientExecution(request);return executeDeleteTemplateAlias(request);}
| [
"public",
"DeleteTemplateAliasResult",
"deleteTemplateAlias",
"(",
"DeleteTemplateAliasRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteTemplateAlias",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteTemplateAliasResponse DeleteTemplateAlias(DeleteTemplateAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTemplateAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTemplateAliasResponseUnmarshaller.Instance;return Invoke<DeleteTemplateAlias... | train | false |
7,818 | public String resolveNameXText(int refIndex, int definedNameIndex, InternalWorkbook workbook) {int extBookIndex = _externSheetRecord.getExtbookIndexFromRefIndex(refIndex);int firstTabIndex = _externSheetRecord.getFirstSheetIndexFromRefIndex(refIndex);if (firstTabIndex == -1) {throw new RuntimeException("Referenced shee... | [
"public",
"String",
"resolveNameXText",
"(",
"int",
"refIndex",
",",
"int",
"definedNameIndex",
",",
"InternalWorkbook",
"workbook",
")",
"{",
"int",
"extBookIndex",
"=",
"_externSheetRecord",
".",
"getExtbookIndexFromRefIndex",
"(",
"refIndex",
")",
";",
"int",
"fi... | public String ResolveNameXText(int refIndex, int definedNameIndex, InternalWorkbook workbook){int extBookIndex = _externSheetRecord.GetExtbookIndexFromRefIndex(refIndex);int firstTabIndex = _externSheetRecord.GetFirstSheetIndexFromRefIndex(refIndex);if (firstTabIndex == -1){throw new RuntimeException("Referenced sheet ... | train | false |
7,819 | public InetAddress getRemoteAddress() {return peer;}
| [
"public",
"InetAddress",
"getRemoteAddress",
"(",
")",
"{",
"return",
"peer",
";",
"}"
] | public virtual IPAddress GetRemoteAddress(){return peer;}
| train | false |
7,820 | public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerTypeAction)) {return false;}return type == ((LexerTypeAction)obj).type;}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"obj",
"==",
"this",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"!",
"(",
"obj",
"instanceof",
"LexerTypeAction",
")",
")",
"{",
"return",
"false",
";",
"}",
"r... | public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerTypeAction)){return false;}}return type == ((Antlr4.Runtime.Atn.LexerTypeAction)obj).type;}
| train | false |
7,821 | public RefValueArray(RefEval ref) {super(ref.getNumberOfSheets());_ref = ref;_width = ref.getNumberOfSheets();}
| [
"public",
"RefValueArray",
"(",
"RefEval",
"ref",
")",
"{",
"super",
"(",
"ref",
".",
"getNumberOfSheets",
"(",
")",
")",
";",
"_ref",
"=",
"ref",
";",
"_width",
"=",
"ref",
".",
"getNumberOfSheets",
"(",
")",
";",
"}"
] | public RefValueArray(RefEval ref1): base(ref1.NumberOfSheets){_ref = ref1;_width = ref1.NumberOfSheets;}
| train | false |
7,822 | public static Git wrap(Repository repo) {return new Git(repo);}
| [
"public",
"static",
"Git",
"wrap",
"(",
"Repository",
"repo",
")",
"{",
"return",
"new",
"Git",
"(",
"repo",
")",
";",
"}"
] | public static NGit.Api.Git Wrap(Repository repo){return new NGit.Api.Git(repo);}
| train | false |
7,823 | public int get64BitNormalisedExponent() {return _binaryExponent + _significand.bitLength() - C_64;}
| [
"public",
"int",
"get64BitNormalisedExponent",
"(",
")",
"{",
"return",
"_binaryExponent",
"+",
"_significand",
".",
"bitLength",
"(",
")",
"-",
"C_64",
";",
"}"
] | public int Get64BitNormalisedExponent(){return _binaryExponent + _significand.BitLength() - C_64;}
| train | false |
7,824 | public GetRepoWebhookRequest() {super("cr", "2016-06-07", "GetRepoWebhook", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/webhooks");setMethod(MethodType.GET);}
| [
"public",
"GetRepoWebhookRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"GetRepoWebhook\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/repos/[RepoNamespace]/[RepoName]/webhooks\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
... | public GetRepoWebhookRequest(): base("cr", "2016-06-07", "GetRepoWebhook", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/webhooks";Method = MethodType.GET;}
| train | false |
7,825 | public Object merge(Object first, Object second) {List<T> outputList = new ArrayList<>();if (!(first instanceof List)) {outputList.add((T) first);} else {outputList.addAll((List<T>) first);}if (!(second instanceof List)) {outputList.add((T) second);} else {outputList.addAll((List<T>) second);}return outputList;}
| [
"public",
"Object",
"merge",
"(",
"Object",
"first",
",",
"Object",
"second",
")",
"{",
"List",
"<",
"T",
">",
"outputList",
"=",
"new",
"ArrayList",
"<",
">",
"(",
")",
";",
"if",
"(",
"!",
"(",
"first",
"instanceof",
"List",
")",
")",
"{",
"outpu... | public override object Merge(object first, object second){IList<T> outputList = new JCG.List<T>();if (!(first is IList<T> firstList)){outputList.Add((T)first);}else{foreach (T value in firstList){outputList.Add(value);}}if (!(second is IList<T> secondList)){outputList.Add((T)second);}else{foreach (T value in secondList... | train | false |
7,826 | public UpdateThreatIntelSetResult updateThreatIntelSet(UpdateThreatIntelSetRequest request) {request = beforeClientExecution(request);return executeUpdateThreatIntelSet(request);}
| [
"public",
"UpdateThreatIntelSetResult",
"updateThreatIntelSet",
"(",
"UpdateThreatIntelSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateThreatIntelSet",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateThreatIntelSetResponse UpdateThreatIntelSet(UpdateThreatIntelSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateThreatIntelSetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateThreatIntelSetResponseUnmarshaller.Instance;return Invoke<UpdateThreatIn... | train | true |
7,827 | public final float getFloat(int index) {return Float.intBitsToFloat(getInt(index));}
| [
"public",
"final",
"float",
"getFloat",
"(",
"int",
"index",
")",
"{",
"return",
"Float",
".",
"intBitsToFloat",
"(",
"getInt",
"(",
"index",
")",
")",
";",
"}"
] | public sealed override float getFloat(int index){return Sharpen.Util.IntBitsToFloat(getInt(index));}
| train | false |
7,828 | public SortingFields(final Fields in, FieldInfos infos, Sorter.DocMap docMap) {super(in);this.docMap = docMap;this.infos = infos;}
| [
"public",
"SortingFields",
"(",
"final",
"Fields",
"in",
",",
"FieldInfos",
"infos",
",",
"Sorter",
".",
"DocMap",
"docMap",
")",
"{",
"super",
"(",
"in",
")",
";",
"this",
".",
"docMap",
"=",
"docMap",
";",
"this",
".",
"infos",
"=",
"infos",
";",
"... | public SortingFields(Fields input, FieldInfos infos, Sorter.DocMap docMap): base(input){this.docMap = docMap;this.infos = infos;}
| train | false |
7,829 | public static SupBookRecord createAddInFunctions() {return new SupBookRecord(true, (short)1 );}
| [
"public",
"static",
"SupBookRecord",
"createAddInFunctions",
"(",
")",
"{",
"return",
"new",
"SupBookRecord",
"(",
"true",
",",
"(",
"short",
")",
"1",
")",
";",
"}"
] | public static SupBookRecord CreateAddInFunctions(){return new SupBookRecord(true, (short)1);}
| train | false |
7,830 | public ImportClientVpnClientCertificateRevocationListResult importClientVpnClientCertificateRevocationList(ImportClientVpnClientCertificateRevocationListRequest request) {request = beforeClientExecution(request);return executeImportClientVpnClientCertificateRevocationList(request);}
| [
"public",
"ImportClientVpnClientCertificateRevocationListResult",
"importClientVpnClientCertificateRevocationList",
"(",
"ImportClientVpnClientCertificateRevocationListRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"execute... | public virtual ImportClientVpnClientCertificateRevocationListResponse ImportClientVpnClientCertificateRevocationList(ImportClientVpnClientCertificateRevocationListRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportClientVpnClientCertificateRevocationListRequestMarshaller.Instance;optio... | train | true |
7,831 | public GetVoiceConnectorOriginationResult getVoiceConnectorOrigination(GetVoiceConnectorOriginationRequest request) {request = beforeClientExecution(request);return executeGetVoiceConnectorOrigination(request);}
| [
"public",
"GetVoiceConnectorOriginationResult",
"getVoiceConnectorOrigination",
"(",
"GetVoiceConnectorOriginationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetVoiceConnectorOrigination",
"(",
"request",
"... | public virtual GetVoiceConnectorOriginationResponse GetVoiceConnectorOrigination(GetVoiceConnectorOriginationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceConnectorOriginationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceConnectorOriginationResponseUnmarshall... | train | true |
7,832 | public GetTypedLinkFacetInformationResult getTypedLinkFacetInformation(GetTypedLinkFacetInformationRequest request) {request = beforeClientExecution(request);return executeGetTypedLinkFacetInformation(request);}
| [
"public",
"GetTypedLinkFacetInformationResult",
"getTypedLinkFacetInformation",
"(",
"GetTypedLinkFacetInformationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetTypedLinkFacetInformation",
"(",
"request",
"... | public virtual GetTypedLinkFacetInformationResponse GetTypedLinkFacetInformation(GetTypedLinkFacetInformationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTypedLinkFacetInformationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTypedLinkFacetInformationResponseUnmarshall... | train | true |
7,834 | public UpdateDeploymentGroupResult updateDeploymentGroup(UpdateDeploymentGroupRequest request) {request = beforeClientExecution(request);return executeUpdateDeploymentGroup(request);}
| [
"public",
"UpdateDeploymentGroupResult",
"updateDeploymentGroup",
"(",
"UpdateDeploymentGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateDeploymentGroup",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateDeploymentGroupResponse UpdateDeploymentGroup(UpdateDeploymentGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDeploymentGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDeploymentGroupResponseUnmarshaller.Instance;return Invoke<UpdateDep... | train | true |
7,835 | public DeleteVaultNotificationsRequest(String accountId, String vaultName) {setAccountId(accountId);setVaultName(vaultName);}
| [
"public",
"DeleteVaultNotificationsRequest",
"(",
"String",
"accountId",
",",
"String",
"vaultName",
")",
"{",
"setAccountId",
"(",
"accountId",
")",
";",
"setVaultName",
"(",
"vaultName",
")",
";",
"}"
] | public DeleteVaultNotificationsRequest(string accountId, string vaultName){_accountId = accountId;_vaultName = vaultName;}
| train | false |
7,836 | @Override public boolean contains(Object key) {return subMap.containsKey(key);}
| [
"@",
"Override",
"public",
"boolean",
"contains",
"(",
"Object",
"key",
")",
"{",
"return",
"subMap",
".",
"containsKey",
"(",
"key",
")",
";",
"}"
] | public override bool contains(object o){return this._enclosing.containsKey(o);}
| train | false |
7,838 | public DeleteGitHubAccountTokenResult deleteGitHubAccountToken(DeleteGitHubAccountTokenRequest request) {request = beforeClientExecution(request);return executeDeleteGitHubAccountToken(request);}
| [
"public",
"DeleteGitHubAccountTokenResult",
"deleteGitHubAccountToken",
"(",
"DeleteGitHubAccountTokenRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteGitHubAccountToken",
"(",
"request",
")",
";",
"}"... | public virtual DeleteGitHubAccountTokenResponse DeleteGitHubAccountToken(DeleteGitHubAccountTokenRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGitHubAccountTokenRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGitHubAccountTokenResponseUnmarshaller.Instance;return I... | train | true |
7,839 | public GetPasswordDataRequest(String instanceId) {setInstanceId(instanceId);}
| [
"public",
"GetPasswordDataRequest",
"(",
"String",
"instanceId",
")",
"{",
"setInstanceId",
"(",
"instanceId",
")",
";",
"}"
] | public GetPasswordDataRequest(string instanceId){_instanceId = instanceId;}
| train | false |
7,840 | public GetCloudFrontOriginAccessIdentityConfigRequest(String id) {setId(id);}
| [
"public",
"GetCloudFrontOriginAccessIdentityConfigRequest",
"(",
"String",
"id",
")",
"{",
"setId",
"(",
"id",
")",
";",
"}"
] | public GetCloudFrontOriginAccessIdentityConfigRequest(string id){_id = id;}
| train | false |
7,841 | public STSAssumeRoleSessionCredentialsProvider withRoleSessionDurationSeconds(long roleSessionDurationSeconds) {if (roleSessionDurationSeconds < 900 || roleSessionDurationSeconds > 3600) {throw new IllegalArgumentException("Assume Role session duration should be in the range of 15min - 1Hr");}this.roleSessionDurationSe... | [
"public",
"STSAssumeRoleSessionCredentialsProvider",
"withRoleSessionDurationSeconds",
"(",
"long",
"roleSessionDurationSeconds",
")",
"{",
"if",
"(",
"roleSessionDurationSeconds",
"<",
"900",
"||",
"roleSessionDurationSeconds",
">",
"3600",
")",
"{",
"throw",
"new",
"Illeg... | public void WithRoleSessionDurationSeconds(long roleSessionDurationSeconds){if (roleSessionDurationSeconds < 180 || roleSessionDurationSeconds > 3600){throw new ArgumentOutOfRangeException("Assume Role session duration should be in the range of 3min - 1Hr");}this.roleSessionDurationSeconds = roleSessionDurationSeconds;... | train | false |
7,842 | final public QueryNode ModClause(CharSequence field) throws ParseException {QueryNode q;ModifierQueryNode.Modifier mods;mods = Modifiers();q = Clause(field);if (mods != ModifierQueryNode.Modifier.MOD_NONE) {q = new ModifierQueryNode(q, mods);}{if (true) return q;}throw new Error("Missing return statement in function");... | [
"final",
"public",
"QueryNode",
"ModClause",
"(",
"CharSequence",
"field",
")",
"throws",
"ParseException",
"{",
"QueryNode",
"q",
";",
"ModifierQueryNode",
".",
"Modifier",
"mods",
";",
"mods",
"=",
"Modifiers",
"(",
")",
";",
"q",
"=",
"Clause",
"(",
"fiel... | public IQueryNode ModClause(string field){IQueryNode q;Modifier mods;mods = Modifiers();q = Clause(field);if (mods != Modifier.MOD_NONE){q = new ModifierQueryNode(q, mods);}{ if (true) return q; }throw new Exception("Missing return statement in function");}
| train | false |
7,843 | public AbbreviatedObjectId getOldId(int nthParent) {return oldIds[nthParent];}
| [
"public",
"AbbreviatedObjectId",
"getOldId",
"(",
"int",
"nthParent",
")",
"{",
"return",
"oldIds",
"[",
"nthParent",
"]",
";",
"}"
] | public virtual AbbreviatedObjectId GetOldId(int nthParent){return oldIds[nthParent];}
| train | false |
7,844 | public HttpRequest(String strUrl, Map<String, String> tmpHeaders) {super(strUrl);if (null != tmpHeaders) {this.headers = tmpHeaders;}}
| [
"public",
"HttpRequest",
"(",
"String",
"strUrl",
",",
"Map",
"<",
"String",
",",
"String",
">",
"tmpHeaders",
")",
"{",
"super",
"(",
"strUrl",
")",
";",
"if",
"(",
"null",
"!=",
"tmpHeaders",
")",
"{",
"this",
".",
"headers",
"=",
"tmpHeaders",
";",
... | public HttpRequest(string strUrl, Dictionary<string, string> tmpHeaders){Url = strUrl;if (null != tmpHeaders){Headers = tmpHeaders;}}
| train | false |
7,845 | public AcceptInvitationResult acceptInvitation(AcceptInvitationRequest request) {request = beforeClientExecution(request);return executeAcceptInvitation(request);}
| [
"public",
"AcceptInvitationResult",
"acceptInvitation",
"(",
"AcceptInvitationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAcceptInvitation",
"(",
"request",
")",
";",
"}"
] | public virtual AcceptInvitationResponse AcceptInvitation(AcceptInvitationRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptInvitationRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptInvitationResponseUnmarshaller.Instance;return Invoke<AcceptInvitationResponse>(request,... | train | true |
7,846 | public int getFormatIndex(CellValueRecordInterface cell) {ExtendedFormatRecord xfr = _xfRecords.get(cell.getXFIndex());if (xfr == null) {logger.log( POILogger.ERROR, "Cell " + cell.getRow() + "," + cell.getColumn()+ " uses XF with index " + cell.getXFIndex() + ", but we don't have that");return -1;}return xfr.getFormat... | [
"public",
"int",
"getFormatIndex",
"(",
"CellValueRecordInterface",
"cell",
")",
"{",
"ExtendedFormatRecord",
"xfr",
"=",
"_xfRecords",
".",
"get",
"(",
"cell",
".",
"getXFIndex",
"(",
")",
")",
";",
"if",
"(",
"xfr",
"==",
"null",
")",
"{",
"logger",
".",... | public int GetFormatIndex(CellValueRecordInterface cell){ExtendedFormatRecord xfr = (ExtendedFormatRecord)xfRecords[cell.XFIndex];if (xfr == null){logger.Log(POILogger.ERROR, "Cell " + cell.Row + "," + cell.Column + " uses XF with index " + cell.XFIndex + ", but we don't have that");return -1;}return xfr.FormatIndex;}
| train | true |
7,847 | public final File getFile() {return path;}
| [
"public",
"final",
"File",
"getFile",
"(",
")",
"{",
"return",
"path",
";",
"}"
] | public FilePath GetFile(){return path;}
| train | false |
7,850 | public PushCommand setRefSpecs(List<RefSpec> specs) {checkCallable();this.refSpecs.clear();this.refSpecs.addAll(specs);return this;}
| [
"public",
"PushCommand",
"setRefSpecs",
"(",
"List",
"<",
"RefSpec",
">",
"specs",
")",
"{",
"checkCallable",
"(",
")",
";",
"this",
".",
"refSpecs",
".",
"clear",
"(",
")",
";",
"this",
".",
"refSpecs",
".",
"addAll",
"(",
"specs",
")",
";",
"return",... | public virtual NGit.Api.PushCommand SetRefSpecs(IList<RefSpec> specs){CheckCallable();this.refSpecs.Clear();Sharpen.Collections.AddAll(this.refSpecs, specs);return this;}
| train | false |
7,851 | public static boolean isBinary(byte[] raw, int length) {if (length > FIRST_FEW_BYTES)length = FIRST_FEW_BYTES;for (int ptr = 0; ptr < length; ptr++)if (raw[ptr] == '\0')return true;return false;}
| [
"public",
"static",
"boolean",
"isBinary",
"(",
"byte",
"[",
"]",
"raw",
",",
"int",
"length",
")",
"{",
"if",
"(",
"length",
">",
"FIRST_FEW_BYTES",
")",
"length",
"=",
"FIRST_FEW_BYTES",
";",
"for",
"(",
"int",
"ptr",
"=",
"0",
";",
"ptr",
"<",
"le... | public static bool IsBinary(byte[] raw, int length){if (length > FIRST_FEW_BYTES){length = FIRST_FEW_BYTES;}for (int ptr = 0; ptr < length; ptr++){if (raw[ptr] == '\0'){return true;}}return false;}
| train | false |
7,852 | @Override public void clear() {AbstractBiMap.this.clear();}
| [
"@",
"Override",
"public",
"void",
"clear",
"(",
")",
"{",
"AbstractBiMap",
".",
"this",
".",
"clear",
"(",
")",
";",
"}"
] | public override void clear(){this._enclosing.clear();}
| train | false |
7,853 | public PackingPhase getPhase() {return phase;}
| [
"public",
"PackingPhase",
"getPhase",
"(",
")",
"{",
"return",
"phase",
";",
"}"
] | public virtual PackWriter.PackingPhase GetPhase(){return this.phase;}
| train | false |
7,854 | public State clone() {State clone = new State();clone.attribute = attribute.clone();if (next != null) {clone.next = next.clone();}return clone;}
| [
"public",
"State",
"clone",
"(",
")",
"{",
"State",
"clone",
"=",
"new",
"State",
"(",
")",
";",
"clone",
".",
"attribute",
"=",
"attribute",
".",
"clone",
"(",
")",
";",
"if",
"(",
"next",
"!=",
"null",
")",
"{",
"clone",
".",
"next",
"=",
"next... | public object Clone(){State clone = new State();clone.attribute = (Attribute)attribute.Clone();if (next != null){clone.next = (State)next.Clone();}return clone;}
| train | false |
7,855 | public static double acosh(double a) {return Math.log(Math.sqrt(a * a - 1.0d) + a);}
| [
"public",
"static",
"double",
"acosh",
"(",
"double",
"a",
")",
"{",
"return",
"Math",
".",
"log",
"(",
"Math",
".",
"sqrt",
"(",
"a",
"*",
"a",
"-",
"1.0d",
")",
"+",
"a",
")",
";",
"}"
] | public static double Acosh(double a){return Math.Log(Math.Sqrt(a * a - 1.0d) + a);}
| train | false |
7,856 | public GetSearchSuggestionsResult getSearchSuggestions(GetSearchSuggestionsRequest request) {request = beforeClientExecution(request);return executeGetSearchSuggestions(request);}
| [
"public",
"GetSearchSuggestionsResult",
"getSearchSuggestions",
"(",
"GetSearchSuggestionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetSearchSuggestions",
"(",
"request",
")",
";",
"}"
] | public virtual GetSearchSuggestionsResponse GetSearchSuggestions(GetSearchSuggestionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSearchSuggestionsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSearchSuggestionsResponseUnmarshaller.Instance;return Invoke<GetSearchSugge... | train | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.