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 |
|---|---|---|---|---|---|
5,728 | public DeleteAlgorithmResult deleteAlgorithm(DeleteAlgorithmRequest request) {request = beforeClientExecution(request);return executeDeleteAlgorithm(request);}
| [
"public",
"DeleteAlgorithmResult",
"deleteAlgorithm",
"(",
"DeleteAlgorithmRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteAlgorithm",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteAlgorithmResponse DeleteAlgorithm(DeleteAlgorithmRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAlgorithmRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAlgorithmResponseUnmarshaller.Instance;return Invoke<DeleteAlgorithmResponse>(request, optio... | train | true |
5,729 | public void setPrefix(String prefix) {this.prefix = prefix;}
| [
"public",
"void",
"setPrefix",
"(",
"String",
"prefix",
")",
"{",
"this",
".",
"prefix",
"=",
"prefix",
";",
"}"
] | public virtual void SetPrefix(string prefix){this.m_prefix = prefix;}
| train | false |
5,730 | public Collection<ChildScorable> getChildren() {return Collections.singleton(new ChildScorable(childScorer, "BLOCK_JOIN"));}
| [
"public",
"Collection",
"<",
"ChildScorable",
">",
"getChildren",
"(",
")",
"{",
"return",
"Collections",
".",
"singleton",
"(",
"new",
"ChildScorable",
"(",
"childScorer",
",",
"\"BLOCK_JOIN\"",
")",
")",
";",
"}"
] | public override ICollection<ChildScorer> GetChildren(){return new List<ChildScorer> { new ChildScorer(_childScorer, "BLOCK_JOIN") };}
| train | false |
5,731 | public void run() {sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_SELECTED);}
| [
"public",
"void",
"run",
"(",
")",
"{",
"sendAccessibilityEvent",
"(",
"AccessibilityEvent",
".",
"TYPE_VIEW_SELECTED",
")",
";",
"}"
] | public virtual void run(){this._enclosing.sendAccessibilityEvent(android.view.accessibility.AccessibilityEvent.TYPE_VIEW_SELECTED);}
| train | false |
5,732 | public String apiVersion() {return this.apiVersion;}
| [
"public",
"String",
"apiVersion",
"(",
")",
"{",
"return",
"this",
".",
"apiVersion",
";",
"}"
] | public Azure.Storage.Files.Shares.Models.FileProperty Properties { get; internal set; }
| train | false |
5,733 | public OpenNLPPOSFilter create(TokenStream in) {try {return new OpenNLPPOSFilter(in, OpenNLPOpsFactory.getPOSTagger(posTaggerModelFile));} catch (IOException e) {throw new IllegalArgumentException(e);}}
| [
"public",
"OpenNLPPOSFilter",
"create",
"(",
"TokenStream",
"in",
")",
"{",
"try",
"{",
"return",
"new",
"OpenNLPPOSFilter",
"(",
"in",
",",
"OpenNLPOpsFactory",
".",
"getPOSTagger",
"(",
"posTaggerModelFile",
")",
")",
";",
"}",
"catch",
"(",
"IOException",
"... | public override TokenStream Create(TokenStream input){try{return new OpenNLPPOSFilter(input, OpenNLPOpsFactory.GetPOSTagger(posTaggerModelFile));}catch (IOException e){throw new ArgumentException(e.ToString(), e);}}
| train | false |
5,734 | public SendBulkTemplatedEmailResult sendBulkTemplatedEmail(SendBulkTemplatedEmailRequest request) {request = beforeClientExecution(request);return executeSendBulkTemplatedEmail(request);}
| [
"public",
"SendBulkTemplatedEmailResult",
"sendBulkTemplatedEmail",
"(",
"SendBulkTemplatedEmailRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSendBulkTemplatedEmail",
"(",
"request",
")",
";",
"}"
] | public virtual SendBulkTemplatedEmailResponse SendBulkTemplatedEmail(SendBulkTemplatedEmailRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendBulkTemplatedEmailRequestMarshaller.Instance;options.ResponseUnmarshaller = SendBulkTemplatedEmailResponseUnmarshaller.Instance;return Invoke<Send... | train | true |
5,736 | public TotalTermFreqValueSource(String field, String val, String indexedField, BytesRef indexedBytes) {this.field = field;this.val = val;this.indexedField = indexedField;this.indexedBytes = indexedBytes;}
| [
"public",
"TotalTermFreqValueSource",
"(",
"String",
"field",
",",
"String",
"val",
",",
"String",
"indexedField",
",",
"BytesRef",
"indexedBytes",
")",
"{",
"this",
".",
"field",
"=",
"field",
";",
"this",
".",
"val",
"=",
"val",
";",
"this",
".",
"indexe... | public TotalTermFreqValueSource(string field, string val, string indexedField, BytesRef indexedBytes){this.m_field = field;this.m_val = val;this.m_indexedField = indexedField;this.m_indexedBytes = indexedBytes;}
| train | false |
5,737 | public static final int encoding(byte[] b, int ptr) {final int sz = b.length;while (ptr < sz) {if (b[ptr] == '\n')return -1;if (b[ptr] == 'e')break;ptr = nextLF(b, ptr);}return match(b, ptr, encoding);}
| [
"public",
"static",
"final",
"int",
"encoding",
"(",
"byte",
"[",
"]",
"b",
",",
"int",
"ptr",
")",
"{",
"final",
"int",
"sz",
"=",
"b",
".",
"length",
";",
"while",
"(",
"ptr",
"<",
"sz",
")",
"{",
"if",
"(",
"b",
"[",
"ptr",
"]",
"==",
"'\\... | public static int Encoding(byte[] b, int ptr){int sz = b.Length;while (ptr < sz){if (b[ptr] == '\n'){return -1;}if (b[ptr] == 'e'){break;}ptr = NextLF(b, ptr);}return Match(b, ptr, ObjectChecker.encoding);}
| train | false |
5,738 | public void init(ByteBlockPool pool, int startIndex, int endIndex) {assert endIndex-startIndex >= 0;assert startIndex >= 0;assert endIndex >= 0;this.pool = pool;this.endIndex = endIndex;level = 0;bufferUpto = startIndex / ByteBlockPool.BYTE_BLOCK_SIZE;bufferOffset = bufferUpto * ByteBlockPool.BYTE_BLOCK_SIZE;buffer = p... | [
"public",
"void",
"init",
"(",
"ByteBlockPool",
"pool",
",",
"int",
"startIndex",
",",
"int",
"endIndex",
")",
"{",
"assert",
"endIndex",
"-",
"startIndex",
">=",
"0",
";",
"assert",
"startIndex",
">=",
"0",
";",
"assert",
"endIndex",
">=",
"0",
";",
"th... | public void Init(ByteBlockPool pool, int startIndex, int endIndex){Debug.Assert(endIndex - startIndex >= 0);Debug.Assert(startIndex >= 0);Debug.Assert(endIndex >= 0);this.pool = pool;this.EndIndex = endIndex;level = 0;bufferUpto = startIndex / ByteBlockPool.BYTE_BLOCK_SIZE;BufferOffset = bufferUpto * ByteBlockPool.BYTE... | train | false |
5,739 | public MergeCellsRecord(RecordInputStream in) {int nRegions = in.readUShort();CellRangeAddress[] cras = new CellRangeAddress[nRegions];for (int i = 0; i < nRegions; i++) {cras[i] = new CellRangeAddress(in);}_numberOfRegions = nRegions;_startIndex = 0;_regions = cras;}
| [
"public",
"MergeCellsRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"int",
"nRegions",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"CellRangeAddress",
"[",
"]",
"cras",
"=",
"new",
"CellRangeAddress",
"[",
"nRegions",
"]",
";",
"for",
"(",
"int",
"i",... | public MergeCellsRecord(RecordInputStream in1){int nRegions = in1.ReadUShort();CellRangeAddress[] cras = new CellRangeAddress[nRegions];for (int i = 0; i < nRegions; i++){cras[i] = new CellRangeAddress(in1);}_numberOfRegions = nRegions;_startIndex = 0;_regions = cras;}
| train | false |
5,740 | public List<? extends FileHeader> getFiles() {return files;}
| [
"public",
"List",
"<",
"?",
"extends",
"FileHeader",
">",
"getFiles",
"(",
")",
"{",
"return",
"files",
";",
"}"
] | public virtual IList<FileHeader> GetFiles(){return files;}
| train | false |
5,742 | public DescribeClusterTracksResult describeClusterTracks(DescribeClusterTracksRequest request) {request = beforeClientExecution(request);return executeDescribeClusterTracks(request);}
| [
"public",
"DescribeClusterTracksResult",
"describeClusterTracks",
"(",
"DescribeClusterTracksRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeClusterTracks",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeClusterTracksResponse DescribeClusterTracks(DescribeClusterTracksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterTracksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterTracksResponseUnmarshaller.Instance;return Invoke<DescribeC... | train | true |
5,743 | public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName());sb.append(" [");if (externalWorkbookNumber >= 0) {sb.append(" [");sb.append("workbook=").append(getExternalWorkbookNumber());sb.append("] ");}sb.append("sheet=").append(getSheetName());sb.append(" ! ");sb.append(FormulaErro... | [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"sb",
".",
"append",
"(",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
")",
";",
"sb",
".",
"append",
"(",
"\" [\"",
")",
";",
"if"... | public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name);sb.Append(" [");if (externalWorkbookNumber >= 0){sb.Append(" [");sb.Append("workbook=").Append(ExternalWorkbookNumber);sb.Append("] ");}if (sheetName != null){SheetNameFormatter.AppendFormat(sb, sheetName);}sb.Append(" ! ... | train | false |
5,744 | public void setParsedExpression(Ptg[] ptgs) {field_8_parsed_expr = Formula.create(ptgs);}
| [
"public",
"void",
"setParsedExpression",
"(",
"Ptg",
"[",
"]",
"ptgs",
")",
"{",
"field_8_parsed_expr",
"=",
"Formula",
".",
"create",
"(",
"ptgs",
")",
";",
"}"
] | public void SetParsedExpression(Ptg[] ptgs){field_8_parsed_expr = NPOI.SS.Formula.Formula.Create(ptgs);}
| train | false |
5,745 | public ActivityTypeInfos listActivityTypes(ListActivityTypesRequest request) {request = beforeClientExecution(request);return executeListActivityTypes(request);}
| [
"public",
"ActivityTypeInfos",
"listActivityTypes",
"(",
"ListActivityTypesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListActivityTypes",
"(",
"request",
")",
";",
"}"
] | public virtual ListActivityTypesResponse ListActivityTypes(ListActivityTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListActivityTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListActivityTypesResponseUnmarshaller.Instance;return Invoke<ListActivityTypesResponse>(re... | train | true |
5,746 | public DescribeDBSecurityGroupsResult describeDBSecurityGroups() {return describeDBSecurityGroups(new DescribeDBSecurityGroupsRequest());}
| [
"public",
"DescribeDBSecurityGroupsResult",
"describeDBSecurityGroups",
"(",
")",
"{",
"return",
"describeDBSecurityGroups",
"(",
"new",
"DescribeDBSecurityGroupsRequest",
"(",
")",
")",
";",
"}"
] | public virtual DescribeDBSecurityGroupsResponse DescribeDBSecurityGroups(){return DescribeDBSecurityGroups(new DescribeDBSecurityGroupsRequest());}
| train | false |
5,747 | public <T> Collection<T> getAllMatchingGroups() {return (Collection<T>) matchingGroups;}
| [
"public",
"<",
"T",
">",
"Collection",
"<",
"T",
">",
"getAllMatchingGroups",
"(",
")",
"{",
"return",
"(",
"Collection",
"<",
"T",
">",
")",
"matchingGroups",
";",
"}"
] | public virtual ICollection GetAllMatchingGroups(){return matchingGroups;}
| train | false |
5,748 | public void setCachedResultBoolean(boolean value) {specialCachedValue = FormulaSpecialCachedValue.createCachedBoolean(value);}
| [
"public",
"void",
"setCachedResultBoolean",
"(",
"boolean",
"value",
")",
"{",
"specialCachedValue",
"=",
"FormulaSpecialCachedValue",
".",
"createCachedBoolean",
"(",
"value",
")",
";",
"}"
] | public void SetCachedResultBoolean(bool value){specialCachedValue = SpecialCachedValue.CreateCachedBoolean(value);}
| train | false |
5,749 | public static boolean doesFormulaReferToDeletedCell(Ptg[] ptgs) {for (Ptg ptg : ptgs) {if (isDeletedCellRef(ptg)) {return true;}}return false;}
| [
"public",
"static",
"boolean",
"doesFormulaReferToDeletedCell",
"(",
"Ptg",
"[",
"]",
"ptgs",
")",
"{",
"for",
"(",
"Ptg",
"ptg",
":",
"ptgs",
")",
"{",
"if",
"(",
"isDeletedCellRef",
"(",
"ptg",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return"... | public static bool DoesFormulaReferToDeletedCell(Ptg[] ptgs){for (int i = 0; i < ptgs.Length; i++){if (IsDeletedCellRef(ptgs[i])){return true;}}return false;}
| train | false |
5,752 | public DeleteIPSetResult deleteIPSet(DeleteIPSetRequest request) {request = beforeClientExecution(request);return executeDeleteIPSet(request);}
| [
"public",
"DeleteIPSetResult",
"deleteIPSet",
"(",
"DeleteIPSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteIPSet",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteIPSetResponse DeleteIPSet(DeleteIPSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIPSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIPSetResponseUnmarshaller.Instance;return Invoke<DeleteIPSetResponse>(request, options);}
| train | true |
5,753 | public StaticCredentialsProvider(AlibabaCloudCredentials credentials) {this.credentials = credentials;}
| [
"public",
"StaticCredentialsProvider",
"(",
"AlibabaCloudCredentials",
"credentials",
")",
"{",
"this",
".",
"credentials",
"=",
"credentials",
";",
"}"
] | public StaticCredentialsProvider(AlibabaCloudCredentials credentials){this.credentials = credentials;}
| train | false |
5,755 | public DescribeEntityRecognizerResult describeEntityRecognizer(DescribeEntityRecognizerRequest request) {request = beforeClientExecution(request);return executeDescribeEntityRecognizer(request);}
| [
"public",
"DescribeEntityRecognizerResult",
"describeEntityRecognizer",
"(",
"DescribeEntityRecognizerRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeEntityRecognizer",
"(",
"request",
")",
";",
"}"... | public virtual DescribeEntityRecognizerResponse DescribeEntityRecognizer(DescribeEntityRecognizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEntityRecognizerRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEntityRecognizerResponseUnmarshaller.Instance;return I... | train | true |
5,756 | public void removeTitle() {remove1stProperty(PropertyIDMap.PID_TITLE);}
| [
"public",
"void",
"removeTitle",
"(",
")",
"{",
"remove1stProperty",
"(",
"PropertyIDMap",
".",
"PID_TITLE",
")",
";",
"}"
] | public void RemoveTitle(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_TITLE);}
| train | false |
5,757 | public GetDigestResult getDigest(GetDigestRequest request) {request = beforeClientExecution(request);return executeGetDigest(request);}
| [
"public",
"GetDigestResult",
"getDigest",
"(",
"GetDigestRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDigest",
"(",
"request",
")",
";",
"}"
] | public virtual GetDigestResponse GetDigest(GetDigestRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDigestRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDigestResponseUnmarshaller.Instance;return Invoke<GetDigestResponse>(request, options);}
| train | false |
5,758 | public CreateStackResult createStack(CreateStackRequest request) {request = beforeClientExecution(request);return executeCreateStack(request);}
| [
"public",
"CreateStackResult",
"createStack",
"(",
"CreateStackRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateStack",
"(",
"request",
")",
";",
"}"
] | public virtual CreateStackResponse CreateStack(CreateStackRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStackRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStackResponseUnmarshaller.Instance;return Invoke<CreateStackResponse>(request, options);}
| train | true |
5,759 | public boolean adjustFormula(Ptg[] ptgs, int currentExternSheetIx) {boolean refsWereChanged = false;for(int i=0; i<ptgs.length; i++) {Ptg newPtg = adjustPtg(ptgs[i], currentExternSheetIx);if (newPtg != null) {refsWereChanged = true;ptgs[i] = newPtg;}}return refsWereChanged;}
| [
"public",
"boolean",
"adjustFormula",
"(",
"Ptg",
"[",
"]",
"ptgs",
",",
"int",
"currentExternSheetIx",
")",
"{",
"boolean",
"refsWereChanged",
"=",
"false",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"ptgs",
".",
"length",
";",
"i",
"++",
... | public bool AdjustFormula(Ptg[] ptgs, int currentExternSheetIx){bool refsWereChanged = false;for (int i = 0; i < ptgs.Length; i++){Ptg newPtg = AdjustPtg(ptgs[i], currentExternSheetIx);if (newPtg != null){refsWereChanged = true;ptgs[i] = newPtg;}}return refsWereChanged;}
| train | false |
5,760 | public void print(Object o) {print(String.valueOf(o));}
| [
"public",
"void",
"print",
"(",
"Object",
"o",
")",
"{",
"print",
"(",
"String",
".",
"valueOf",
"(",
"o",
")",
")",
";",
"}"
] | public virtual void print(object o){print(Sharpen.StringHelper.GetValueOf(o));}
| train | false |
5,761 | public void setParams(String params) {super.setParams(params);useAddIndexesDir = Boolean.parseBoolean(params);}
| [
"public",
"void",
"setParams",
"(",
"String",
"params",
")",
"{",
"super",
".",
"setParams",
"(",
"params",
")",
";",
"useAddIndexesDir",
"=",
"Boolean",
".",
"parseBoolean",
"(",
"params",
")",
";",
"}"
] | public override void SetParams(string @params){base.SetParams(@params);useAddIndexesDir = bool.Parse(@params);}
| train | false |
5,762 | public void close() throws IOException {if (isOpen && !isClone) {try {channel.close();} finally {if (!isClone) {fis.close();}}}}
| [
"public",
"void",
"close",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"isOpen",
"&&",
"!",
"isClone",
")",
"{",
"try",
"{",
"channel",
".",
"close",
"(",
")",
";",
"}",
"finally",
"{",
"if",
"(",
"!",
"isClone",
")",
"{",
"fis",
".",
"clo... | public void close() throws IOException{if (isOpen && !isClone){try{channel.close();}finally{if (!isClone){fis.close();}}}}
| train | false |
5,764 | public void unlinkSharedFormulas() {for (int i = 0; i < _numberOfFormulas; i++) {_frAggs[i].unlinkSharedFormula();}}
| [
"public",
"void",
"unlinkSharedFormulas",
"(",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"_numberOfFormulas",
";",
"i",
"++",
")",
"{",
"_frAggs",
"[",
"i",
"]",
".",
"unlinkSharedFormula",
"(",
")",
";",
"}",
"}"
] | public void UnlinkSharedFormulas(){for (int i = 0; i < _numberOfFormulas; i++){_frAggs[i].UnlinkSharedFormula();}}
| train | false |
5,766 | public void removeHeadingPair() {remove1stProperty(PropertyIDMap.PID_HEADINGPAIR);}
| [
"public",
"void",
"removeHeadingPair",
"(",
")",
"{",
"remove1stProperty",
"(",
"PropertyIDMap",
".",
"PID_HEADINGPAIR",
")",
";",
"}"
] | public void RemoveHeadingPair(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_HEADINGPAIR);}
| train | false |
5,767 | public synchronized String[] getPOSTags(String[] words) {return tagger.tag(words);}
| [
"public",
"synchronized",
"String",
"[",
"]",
"getPOSTags",
"(",
"String",
"[",
"]",
"words",
")",
"{",
"return",
"tagger",
".",
"tag",
"(",
"words",
")",
";",
"}"
] | public virtual string[] GetPOSTags(string[] words){lock (this){return tagger.tag(words);}}
| train | false |
5,768 | public TermsEnum intersect(CompiledAutomaton compiled, BytesRef startTerm) throws IOException {if (compiled.type != CompiledAutomaton.AUTOMATON_TYPE.NORMAL) {throw new IllegalArgumentException("please use CompiledAutomaton.getTermsEnum instead");}return new IntersectTermsEnum(this, compiled.automaton, compiled.runAutom... | [
"public",
"TermsEnum",
"intersect",
"(",
"CompiledAutomaton",
"compiled",
",",
"BytesRef",
"startTerm",
")",
"throws",
"IOException",
"{",
"if",
"(",
"compiled",
".",
"type",
"!=",
"CompiledAutomaton",
".",
"AUTOMATON_TYPE",
".",
"NORMAL",
")",
"{",
"throw",
"ne... | public override TermsEnum Intersect(CompiledAutomaton compiled, BytesRef startTerm){if (compiled.Type != CompiledAutomaton.AUTOMATON_TYPE.NORMAL){throw new System.ArgumentException("please use CompiledAutomaton.getTermsEnum instead");}return new IntersectEnum(this, compiled, startTerm);}
| train | false |
5,769 | public AttachLoadBalancerToSubnetsResult attachLoadBalancerToSubnets(AttachLoadBalancerToSubnetsRequest request) {request = beforeClientExecution(request);return executeAttachLoadBalancerToSubnets(request);}
| [
"public",
"AttachLoadBalancerToSubnetsResult",
"attachLoadBalancerToSubnets",
"(",
"AttachLoadBalancerToSubnetsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAttachLoadBalancerToSubnets",
"(",
"request",
")",
... | public virtual AttachLoadBalancerToSubnetsResponse AttachLoadBalancerToSubnets(AttachLoadBalancerToSubnetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachLoadBalancerToSubnetsRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachLoadBalancerToSubnetsResponseUnmarshaller.In... | train | true |
5,770 | public PrecedenceQueryParser() {setQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(getQueryConfigHandler()));}
| [
"public",
"PrecedenceQueryParser",
"(",
")",
"{",
"setQueryNodeProcessor",
"(",
"new",
"PrecedenceQueryNodeProcessorPipeline",
"(",
"getQueryConfigHandler",
"(",
")",
")",
")",
";",
"}"
] | public PrecedenceQueryParser(){SetQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(QueryConfigHandler));}
| train | false |
5,771 | public CommonToken(int type) {this.type = type;this.source = EMPTY_SOURCE;}
| [
"public",
"CommonToken",
"(",
"int",
"type",
")",
"{",
"this",
".",
"type",
"=",
"type",
";",
"this",
".",
"source",
"=",
"EMPTY_SOURCE",
";",
"}"
] | public CommonToken(int type){this._type = type;this.source = EmptySource;}
| train | false |
5,772 | public DeleteEmailChannelResult deleteEmailChannel(DeleteEmailChannelRequest request) {request = beforeClientExecution(request);return executeDeleteEmailChannel(request);}
| [
"public",
"DeleteEmailChannelResult",
"deleteEmailChannel",
"(",
"DeleteEmailChannelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteEmailChannel",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteEmailChannelResponse DeleteEmailChannel(DeleteEmailChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEmailChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEmailChannelResponseUnmarshaller.Instance;return Invoke<DeleteEmailChannelRespon... | train | true |
5,773 | public DeleteNotificationSubscriptionResult deleteNotificationSubscription(DeleteNotificationSubscriptionRequest request) {request = beforeClientExecution(request);return executeDeleteNotificationSubscription(request);}
| [
"public",
"DeleteNotificationSubscriptionResult",
"deleteNotificationSubscription",
"(",
"DeleteNotificationSubscriptionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteNotificationSubscription",
"(",
"reque... | public virtual DeleteNotificationSubscriptionResponse DeleteNotificationSubscription(DeleteNotificationSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNotificationSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNotificationSubscriptionResponse... | train | true |
5,774 | public void close() throws IOException {synchronized (lock) {if (isClosed()) {return;}Throwable thrown = null;try {flushInternal();} catch (Throwable e) {thrown = e;}buf = null;try {out.close();} catch (Throwable e) {if (thrown == null) {thrown = e;}}out = null;if (thrown != null) {SneakyThrow.sneakyThrow(thrown);}}}
| [
"public",
"void",
"close",
"(",
")",
"throws",
"IOException",
"{",
"synchronized",
"(",
"lock",
")",
"{",
"if",
"(",
"isClosed",
"(",
")",
")",
"{",
"return",
";",
"}",
"Throwable",
"thrown",
"=",
"null",
";",
"try",
"{",
"flushInternal",
"(",
")",
"... | public override void close(){lock (@lock){if (isClosed()){return;}System.Exception thrown = null;try{flushInternal();}catch (System.Exception e){thrown = e;}buf = null;try{@out.close();}catch (System.Exception e){if (thrown == null){thrown = e;}}@out = null;if (thrown != null){Sharpen.Util.Throw(thrown);}}}
| train | false |
5,776 | public ListPipelinesResult listPipelines(ListPipelinesRequest request) {request = beforeClientExecution(request);return executeListPipelines(request);}
| [
"public",
"ListPipelinesResult",
"listPipelines",
"(",
"ListPipelinesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListPipelines",
"(",
"request",
")",
";",
"}"
] | public virtual ListPipelinesResponse ListPipelines(ListPipelinesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPipelinesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPipelinesResponseUnmarshaller.Instance;return Invoke<ListPipelinesResponse>(request, options);}
| train | true |
5,777 | public ConfirmProductInstanceResult confirmProductInstance(ConfirmProductInstanceRequest request) {request = beforeClientExecution(request);return executeConfirmProductInstance(request);}
| [
"public",
"ConfirmProductInstanceResult",
"confirmProductInstance",
"(",
"ConfirmProductInstanceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeConfirmProductInstance",
"(",
"request",
")",
";",
"}"
] | public virtual ConfirmProductInstanceResponse ConfirmProductInstance(ConfirmProductInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfirmProductInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfirmProductInstanceResponseUnmarshaller.Instance;return Invoke<Conf... | train | true |
5,778 | public CreateProjectResult createProject(CreateProjectRequest request) {request = beforeClientExecution(request);return executeCreateProject(request);}
| [
"public",
"CreateProjectResult",
"createProject",
"(",
"CreateProjectRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateProject",
"(",
"request",
")",
";",
"}"
] | public virtual CreateProjectResponse CreateProject(CreateProjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateProjectRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateProjectResponseUnmarshaller.Instance;return Invoke<CreateProjectResponse>(request, options);}
| train | true |
5,779 | public ListMomentsRequest() {super("CloudPhoto", "2017-07-11", "ListMoments", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"ListMomentsRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"ListMoments\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public ListMomentsRequest(): base("CloudPhoto", "2017-07-11", "ListMoments", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
5,780 | public String getCCByGB2312Id(int ccid) {if (ccid < 0 || ccid > AbstractDictionary.GB2312_CHAR_NUM)return "";int cc1 = ccid / 94 + 161;int cc2 = ccid % 94 + 161;byte[] buffer = new byte[2];buffer[0] = (byte) cc1;buffer[1] = (byte) cc2;try {String cchar = new String(buffer, "GB2312");return cchar;} catch (UnsupportedEnc... | [
"public",
"String",
"getCCByGB2312Id",
"(",
"int",
"ccid",
")",
"{",
"if",
"(",
"ccid",
"<",
"0",
"||",
"ccid",
">",
"AbstractDictionary",
".",
"GB2312_CHAR_NUM",
")",
"return",
"\"\"",
";",
"int",
"cc1",
"=",
"ccid",
"/",
"94",
"+",
"161",
";",
"int",... | public virtual string GetCCByGB2312Id(int ccid){if (ccid < 0 || ccid > AbstractDictionary.GB2312_CHAR_NUM)return "";int cc1 = ccid / 94 + 161;int cc2 = ccid % 94 + 161;byte[] buffer = new byte[2];buffer[0] = (byte)cc1;buffer[1] = (byte)cc2;try{string cchar = Encoding.GetEncoding("GB2312").GetString(buffer);return cchar... | train | false |
5,781 | public static RevFilter create(RevFilter a, RevFilter b) {if (a == ALL || b == ALL)return ALL;return new Binary(a, b);}
| [
"public",
"static",
"RevFilter",
"create",
"(",
"RevFilter",
"a",
",",
"RevFilter",
"b",
")",
"{",
"if",
"(",
"a",
"==",
"ALL",
"||",
"b",
"==",
"ALL",
")",
"return",
"ALL",
";",
"return",
"new",
"Binary",
"(",
"a",
",",
"b",
")",
";",
"}"
] | public static RevFilter Create(RevFilter a, RevFilter b){if (a == ALL || b == ALL){return ALL;}return new OrRevFilter.Binary(a, b);}
| train | false |
5,782 | public UpdateTableRequest(String tableName, ProvisionedThroughput provisionedThroughput) {setTableName(tableName);setProvisionedThroughput(provisionedThroughput);}
| [
"public",
"UpdateTableRequest",
"(",
"String",
"tableName",
",",
"ProvisionedThroughput",
"provisionedThroughput",
")",
"{",
"setTableName",
"(",
"tableName",
")",
";",
"setProvisionedThroughput",
"(",
"provisionedThroughput",
")",
";",
"}"
] | public UpdateTableRequest(string tableName, ProvisionedThroughput provisionedThroughput){_tableName = tableName;_provisionedThroughput = provisionedThroughput;}
| train | false |
5,783 | public Repository getRepository() {return db;}
| [
"public",
"Repository",
"getRepository",
"(",
")",
"{",
"return",
"db",
";",
"}"
] | public virtual Repository GetRepository(){return db;}
| train | false |
5,784 | public ShortBuffer compact() {if (byteBuffer.isReadOnly()) {throw new ReadOnlyBufferException();}byteBuffer.limit(limit * SizeOf.SHORT);byteBuffer.position(position * SizeOf.SHORT);byteBuffer.compact();byteBuffer.clear();position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}
| [
"public",
"ShortBuffer",
"compact",
"(",
")",
"{",
"if",
"(",
"byteBuffer",
".",
"isReadOnly",
"(",
")",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}",
"byteBuffer",
".",
"limit",
"(",
"limit",
"*",
"SizeOf",
".",
"SHORT",
")",
... | public override java.nio.ShortBuffer compact(){if (byteBuffer.isReadOnly()){throw new java.nio.ReadOnlyBufferException();}byteBuffer.limit(_limit * libcore.io.SizeOf.SHORT);byteBuffer.position(_position * libcore.io.SizeOf.SHORT);byteBuffer.compact();byteBuffer.clear();_position = _limit - _position;_limit = _capacity;... | train | false |
5,785 | public CreateInstanceExportTaskResult createInstanceExportTask(CreateInstanceExportTaskRequest request) {request = beforeClientExecution(request);return executeCreateInstanceExportTask(request);}
| [
"public",
"CreateInstanceExportTaskResult",
"createInstanceExportTask",
"(",
"CreateInstanceExportTaskRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateInstanceExportTask",
"(",
"request",
")",
";",
"}"... | public virtual CreateInstanceExportTaskResponse CreateInstanceExportTask(CreateInstanceExportTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateInstanceExportTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateInstanceExportTaskResponseUnmarshaller.Instance;return I... | train | true |
5,786 | public String toString() {return "MultiDocsAndPositionsEnum(" + Arrays.toString(getSubs()) + ")";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"MultiDocsAndPositionsEnum(\"",
"+",
"Arrays",
".",
"toString",
"(",
"getSubs",
"(",
")",
")",
"+",
"\")\"",
";",
"}"
] | public override string ToString(){return "MultiDocsAndPositionsEnum(" + Arrays.ToString(Subs) + ")";}
| train | false |
5,787 | public DescribeStacksResult describeStacks(DescribeStacksRequest request) {request = beforeClientExecution(request);return executeDescribeStacks(request);}
| [
"public",
"DescribeStacksResult",
"describeStacks",
"(",
"DescribeStacksRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeStacks",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeStacksResponse DescribeStacks(DescribeStacksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStacksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStacksResponseUnmarshaller.Instance;return Invoke<DescribeStacksResponse>(request, options);}
| train | true |
5,788 | public void serialize(LittleEndianOutput out) {out.writeShort(field_1_xf_index);if (isBuiltin()) {out.writeByte(field_2_builtin_style);out.writeByte(field_3_outline_style_level);} else {out.writeShort(field_4_name.length());out.writeByte(field_3_stringHasMultibyte ? 0x01 : 0x00);if (field_3_stringHasMultibyte) {StringU... | [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"field_1_xf_index",
")",
";",
"if",
"(",
"isBuiltin",
"(",
")",
")",
"{",
"out",
".",
"writeByte",
"(",
"field_2_builtin_style",
")",
";",
"out",
".",... | public override void Serialize(ILittleEndianOutput o){o.WriteShort(field_1_xf_index);if (IsBuiltin){o.WriteByte(field_2_builtin_style);o.WriteByte(field_3_outline_style_level);}else{o.WriteShort(field_4_name.Length);o.WriteByte(field_3_stringHasMultibyte ? 0x01 : 0x00);if (field_3_stringHasMultibyte){StringUtil.PutUnic... | train | false |
5,789 | public void write(byte[] b, int off, int len) throws IOException {deflater.setInput(b, off, len);for (;;) {if (outPtr == zbuf.length)throw new EOFException();int n = deflater.deflate(zbuf, outPtr, zbuf.length - outPtr);if (n == 0) {if (deflater.needsInput())break;throw new IOException();}outPtr += n;}}
| [
"public",
"void",
"write",
"(",
"byte",
"[",
"]",
"b",
",",
"int",
"off",
",",
"int",
"len",
")",
"throws",
"IOException",
"{",
"deflater",
".",
"setInput",
"(",
"b",
",",
"off",
",",
"len",
")",
";",
"for",
"(",
";",
";",
")",
"{",
"if",
"(",
... | public override void Write(byte[] b, int off, int len){deflater.SetInput(b, off, len);for (; ; ){if (outPtr == zbuf.Length){throw new EOFException();}int n = deflater.Deflate(zbuf, outPtr, zbuf.Length - outPtr);if (n == 0){if (deflater.IsNeedingInput){break;}throw new IOException();}outPtr += n;}}
| train | false |
5,790 | public String toFormulaString() {return " ";}
| [
"public",
"String",
"toFormulaString",
"(",
")",
"{",
"return",
"\" \"",
";",
"}"
] | public override String ToFormulaString(){return " ";}
| train | false |
5,791 | public StringBuffer insert(int index, double d) {return insert(index, Double.toString(d));}
| [
"public",
"StringBuffer",
"insert",
"(",
"int",
"index",
",",
"double",
"d",
")",
"{",
"return",
"insert",
"(",
"index",
",",
"Double",
".",
"toString",
"(",
"d",
")",
")",
";",
"}"
] | public java.lang.StringBuffer insert(int index, double d){return insert(index, System.Convert.ToString(d));}
| train | false |
5,792 | public FieldWriter addField(FieldInfo field, long termsFilePointer) {SimpleFieldWriter writer = new SimpleFieldWriter(field, termsFilePointer);fields.add(writer);return writer;}
| [
"public",
"FieldWriter",
"addField",
"(",
"FieldInfo",
"field",
",",
"long",
"termsFilePointer",
")",
"{",
"SimpleFieldWriter",
"writer",
"=",
"new",
"SimpleFieldWriter",
"(",
"field",
",",
"termsFilePointer",
")",
";",
"fields",
".",
"add",
"(",
"writer",
")",
... | public override FieldWriter AddField(FieldInfo field, long termsFilePointer){SimpleFieldWriter writer = new SimpleFieldWriter(this, field, termsFilePointer);fields.Add(writer);return writer;}
| train | false |
5,793 | public DeleteUserEndpointsResult deleteUserEndpoints(DeleteUserEndpointsRequest request) {request = beforeClientExecution(request);return executeDeleteUserEndpoints(request);}
| [
"public",
"DeleteUserEndpointsResult",
"deleteUserEndpoints",
"(",
"DeleteUserEndpointsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteUserEndpoints",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteUserEndpointsResponse DeleteUserEndpoints(DeleteUserEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUserEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUserEndpointsResponseUnmarshaller.Instance;return Invoke<DeleteUserEndpoints... | train | true |
5,794 | public HSSFColor addColor( byte red, byte green, byte blue ){byte[] b = _palette.getColor(PaletteRecord.FIRST_COLOR_INDEX);short i;for (i = PaletteRecord.FIRST_COLOR_INDEX; i < PaletteRecord.STANDARD_PALETTE_SIZE + PaletteRecord.FIRST_COLOR_INDEX; b = _palette.getColor(++i)){if (b == null){setColorAtIndex( i, red, gree... | [
"public",
"HSSFColor",
"addColor",
"(",
"byte",
"red",
",",
"byte",
"green",
",",
"byte",
"blue",
")",
"{",
"byte",
"[",
"]",
"b",
"=",
"_palette",
".",
"getColor",
"(",
"PaletteRecord",
".",
"FIRST_COLOR_INDEX",
")",
";",
"short",
"i",
";",
"for",
"("... | public HSSFColor AddColor(byte red, byte green, byte blue){byte[] b = palette.GetColor(PaletteRecord.FIRST_COLOR_INDEX);short i;for (i = (short)PaletteRecord.FIRST_COLOR_INDEX; i < PaletteRecord.STANDARD_PALETTE_SIZE + PaletteRecord.FIRST_COLOR_INDEX; b = palette.GetColor(++i)){if (b == null){SetColorAtIndex(i, red, gr... | train | false |
5,795 | public boolean isRenameDetectionEnabled() {return renameDetectionType != RenameDetectionType.FALSE;}
| [
"public",
"boolean",
"isRenameDetectionEnabled",
"(",
")",
"{",
"return",
"renameDetectionType",
"!=",
"RenameDetectionType",
".",
"FALSE",
";",
"}"
] | public virtual bool IsRenameDetectionEnabled(){return renameDetectionType != DiffConfig.RenameDetectionType.FALSE;}
| train | false |
5,796 | public static boolean safe(String pattern) {for (int i = 0; i < pattern.length(); i++) {final char c = pattern.charAt(i);switch (c) {case '.':case '?':case '*':case '+':case '{':case '}':case '(':case ')':case '[':case ']':case '\\':return false;}}return true;}
| [
"public",
"static",
"boolean",
"safe",
"(",
"String",
"pattern",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"pattern",
".",
"length",
"(",
")",
";",
"i",
"++",
")",
"{",
"final",
"char",
"c",
"=",
"pattern",
".",
"charAt",
"(",
... | public static bool Safe(string pattern){for (int i = 0; i < pattern.Length; i++){char c = pattern[i];switch (c){case '.':case '?':case '*':case '+':case '{':case '}':case '(':case ')':case '[':case ']':case '\\':{return false;}}}return true;}
| train | false |
5,797 | public void SwitchTo(int lexState){if (lexState >= 3 || lexState < 0)throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}
| [
"public",
"void",
"SwitchTo",
"(",
"int",
"lexState",
")",
"{",
"if",
"(",
"lexState",
">=",
"3",
"||",
"lexState",
"<",
"0",
")",
"throw",
"new",
"TokenMgrError",
"(",
"\"Error: Ignoring invalid lexical state : \"",
"+",
"lexState",
"+",
"\". State unchanged.\"",... | public void SwitchTo(int lexState){if (lexState >= 2 || lexState < 0)throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}
| train | false |
5,798 | public CreateDeliverabilityTestReportResult createDeliverabilityTestReport(CreateDeliverabilityTestReportRequest request) {request = beforeClientExecution(request);return executeCreateDeliverabilityTestReport(request);}
| [
"public",
"CreateDeliverabilityTestReportResult",
"createDeliverabilityTestReport",
"(",
"CreateDeliverabilityTestReportRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateDeliverabilityTestReport",
"(",
"reque... | public virtual CreateDeliverabilityTestReportResponse CreateDeliverabilityTestReport(CreateDeliverabilityTestReportRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDeliverabilityTestReportRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDeliverabilityTestReportResponse... | train | true |
5,801 | public String getRemoteName() {return remoteName;}
| [
"public",
"String",
"getRemoteName",
"(",
")",
"{",
"return",
"remoteName",
";",
"}"
] | public virtual string GetRemoteName(){return remoteName;}
| train | false |
5,802 | public CherryPickCommand cherryPick() {return new CherryPickCommand(repo);}
| [
"public",
"CherryPickCommand",
"cherryPick",
"(",
")",
"{",
"return",
"new",
"CherryPickCommand",
"(",
"repo",
")",
";",
"}"
] | public virtual CherryPickCommand CherryPick(){return new CherryPickCommand(repo);}
| train | false |
5,803 | public HSSFClientAnchor createClientAnchor(){return new HSSFClientAnchor();}
| [
"public",
"HSSFClientAnchor",
"createClientAnchor",
"(",
")",
"{",
"return",
"new",
"HSSFClientAnchor",
"(",
")",
";",
"}"
] | public NPOI.SS.UserModel.IClientAnchor CreateClientAnchor(){return new HSSFClientAnchor();}
| train | false |
5,804 | public DeleteProfileResult deleteProfile(DeleteProfileRequest request) {request = beforeClientExecution(request);return executeDeleteProfile(request);}
| [
"public",
"DeleteProfileResult",
"deleteProfile",
"(",
"DeleteProfileRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteProfile",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteProfileResponse DeleteProfile(DeleteProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteProfileResponseUnmarshaller.Instance;return Invoke<DeleteProfileResponse>(request, options);}
| train | true |
5,805 | @Override public int size() {return count(entrySet().iterator());}
| [
"@",
"Override",
"public",
"int",
"size",
"(",
")",
"{",
"return",
"count",
"(",
"entrySet",
"(",
")",
".",
"iterator",
"(",
")",
")",
";",
"}"
] | public override int size(){return java.util.TreeMap<K, V>.count(this.entrySet().iterator());}
| train | false |
5,806 | public ByteBuffer put(ByteBuffer buf) {throw new ReadOnlyBufferException();}
| [
"public",
"ByteBuffer",
"put",
"(",
"ByteBuffer",
"buf",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] | public override java.nio.ByteBuffer put(java.nio.ByteBuffer buf){throw new System.NotImplementedException();}
| train | false |
5,808 | public ListOnPremisesInstancesResult listOnPremisesInstances(ListOnPremisesInstancesRequest request) {request = beforeClientExecution(request);return executeListOnPremisesInstances(request);}
| [
"public",
"ListOnPremisesInstancesResult",
"listOnPremisesInstances",
"(",
"ListOnPremisesInstancesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListOnPremisesInstances",
"(",
"request",
")",
";",
"}"
] | public virtual ListOnPremisesInstancesResponse ListOnPremisesInstances(ListOnPremisesInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListOnPremisesInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListOnPremisesInstancesResponseUnmarshaller.Instance;return Invoke... | train | true |
5,809 | public int[] clear() {if (perField.postingsArray != null) {bytesUsed.addAndGet(-(perField.postingsArray.size * perField.postingsArray.bytesPerPosting()));perField.postingsArray = null;perField.newPostingsArray();}return null;}
| [
"public",
"int",
"[",
"]",
"clear",
"(",
")",
"{",
"if",
"(",
"perField",
".",
"postingsArray",
"!=",
"null",
")",
"{",
"bytesUsed",
".",
"addAndGet",
"(",
"-",
"(",
"perField",
".",
"postingsArray",
".",
"size",
"*",
"perField",
".",
"postingsArray",
... | public override int[] Clear(){if (perField.postingsArray != null){bytesUsed.AddAndGet(-(perField.postingsArray.size * perField.postingsArray.BytesPerPosting()));perField.postingsArray = null;}return null;}
| train | false |
5,810 | public String getSourcePath() {return outCandidate.sourcePath.getPath();}
| [
"public",
"String",
"getSourcePath",
"(",
")",
"{",
"return",
"outCandidate",
".",
"sourcePath",
".",
"getPath",
"(",
")",
";",
"}"
] | public virtual string GetSourcePath(){return currentSource.sourcePath.GetPath();}
| train | false |
5,811 | public static SingletonPredictionContext create(PredictionContext parent, int returnState) {if ( returnState == EMPTY_RETURN_STATE && parent == null ) {return EMPTY;}return new SingletonPredictionContext(parent, returnState);}
| [
"public",
"static",
"SingletonPredictionContext",
"create",
"(",
"PredictionContext",
"parent",
",",
"int",
"returnState",
")",
"{",
"if",
"(",
"returnState",
"==",
"EMPTY_RETURN_STATE",
"&&",
"parent",
"==",
"null",
")",
"{",
"return",
"EMPTY",
";",
"}",
"retur... | public static PredictionContext Create(PredictionContext parent, int returnState){if (returnState == EMPTY_RETURN_STATE && parent == null){return PredictionContext.EMPTY;}return new SingletonPredictionContext(parent, returnState);}
| train | false |
5,812 | public void cleanupSession(String sessionID) throws IOException {if (sessionID.isEmpty()) { throw new IllegalArgumentException("sessionID cannot be empty");}IOUtils.rm(workDir.resolve(sessionID));}
| [
"public",
"void",
"cleanupSession",
"(",
"String",
"sessionID",
")",
"throws",
"IOException",
"{",
"if",
"(",
"sessionID",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"sessionID cannot be empty\"",
")",
";",
"}",
"IOUti... | public virtual void CleanupSession(string sessionId){if (string.IsNullOrEmpty(sessionId)) throw new ArgumentException("sessionID cannot be empty", "sessionId");string sessionDirectory = Path.Combine(workingDirectory, sessionId);System.IO.Directory.Delete(sessionDirectory, true);}
| train | false |
5,813 | public DescribeSnapshotCopyGrantsResult describeSnapshotCopyGrants(DescribeSnapshotCopyGrantsRequest request) {request = beforeClientExecution(request);return executeDescribeSnapshotCopyGrants(request);}
| [
"public",
"DescribeSnapshotCopyGrantsResult",
"describeSnapshotCopyGrants",
"(",
"DescribeSnapshotCopyGrantsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeSnapshotCopyGrants",
"(",
"request",
")",
";... | public virtual DescribeSnapshotCopyGrantsResponse DescribeSnapshotCopyGrants(DescribeSnapshotCopyGrantsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSnapshotCopyGrantsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSnapshotCopyGrantsResponseUnmarshaller.Instanc... | train | true |
5,815 | public DescribeApplicationResult describeApplication(DescribeApplicationRequest request) {request = beforeClientExecution(request);return executeDescribeApplication(request);}
| [
"public",
"DescribeApplicationResult",
"describeApplication",
"(",
"DescribeApplicationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeApplication",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeApplicationResponse DescribeApplication(DescribeApplicationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeApplicationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeApplicationResponseUnmarshaller.Instance;return Invoke<DescribeApplication... | train | true |
5,816 | @Override public E set(int index, E object) {Object[] a = array;if (index >= size) {throwIndexOutOfBoundsException(index, size);}@SuppressWarnings("unchecked") E result = (E) a[index];a[index] = object;return result;}
| [
"@",
"Override",
"public",
"E",
"set",
"(",
"int",
"index",
",",
"E",
"object",
")",
"{",
"Object",
"[",
"]",
"a",
"=",
"array",
";",
"if",
"(",
"index",
">=",
"size",
")",
"{",
"throwIndexOutOfBoundsException",
"(",
"index",
",",
"size",
")",
";",
... | public override E set(int index, E @object){object[] a = array;if (index >= _size){throwIndexOutOfBoundsException(index, _size);}E result = (E)a[index];a[index] = @object;return result;}
| train | false |
5,817 | public void set(int x, int y) {this.x = x;this.y = y;}
| [
"public",
"void",
"set",
"(",
"int",
"x",
",",
"int",
"y",
")",
"{",
"this",
".",
"x",
"=",
"x",
";",
"this",
".",
"y",
"=",
"y",
";",
"}"
] | public virtual void set(int x, int y){this.x = x;this.y = y;}
| train | false |
5,818 | public BatchSendMessagesRequest() {super("OnsMqtt", "2019-12-11", "BatchSendMessages", "onsmqtt");setMethod(MethodType.POST);}
| [
"public",
"BatchSendMessagesRequest",
"(",
")",
"{",
"super",
"(",
"\"OnsMqtt\"",
",",
"\"2019-12-11\"",
",",
"\"BatchSendMessages\"",
",",
"\"onsmqtt\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] | public BatchSendMessagesRequest(): base("OnsMqtt", "2019-12-11", "BatchSendMessages", "onsmqtt", "openAPI"){Method = MethodType.POST;}
| train | false |
5,819 | public DeleteEgressOnlyInternetGatewayResult deleteEgressOnlyInternetGateway(DeleteEgressOnlyInternetGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteEgressOnlyInternetGateway(request);}
| [
"public",
"DeleteEgressOnlyInternetGatewayResult",
"deleteEgressOnlyInternetGateway",
"(",
"DeleteEgressOnlyInternetGatewayRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteEgressOnlyInternetGateway",
"(",
"r... | public virtual DeleteEgressOnlyInternetGatewayResponse DeleteEgressOnlyInternetGateway(DeleteEgressOnlyInternetGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEgressOnlyInternetGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEgressOnlyInternetGatewayRes... | train | true |
5,820 | public static String byteToHex(int value) {StringBuilder sb = new StringBuilder(4);writeHex(sb, value & 0xFFL, 2, "0x");return sb.toString();}
| [
"public",
"static",
"String",
"byteToHex",
"(",
"int",
"value",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
"4",
")",
";",
"writeHex",
"(",
"sb",
",",
"value",
"&",
"0xFFL",
",",
"2",
",",
"\"0x\"",
")",
";",
"return",
"sb",
".... | public static char[] ByteToHex(int value){return ToHexChars(value, 1);}
| train | false |
5,821 | public DescribeLoadBalancerPoliciesResult describeLoadBalancerPolicies(DescribeLoadBalancerPoliciesRequest request) {request = beforeClientExecution(request);return executeDescribeLoadBalancerPolicies(request);}
| [
"public",
"DescribeLoadBalancerPoliciesResult",
"describeLoadBalancerPolicies",
"(",
"DescribeLoadBalancerPoliciesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeLoadBalancerPolicies",
"(",
"request",
"... | public virtual DescribeLoadBalancerPoliciesResponse DescribeLoadBalancerPolicies(DescribeLoadBalancerPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoadBalancerPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoadBalancerPoliciesResponseUnmarshall... | train | true |
5,822 | public void close() throws IOException {try {beginWrite();dst.close();} catch (InterruptedIOException e) {throw writeTimedOut(e);} finally {endWrite();}}
| [
"public",
"void",
"close",
"(",
")",
"throws",
"IOException",
"{",
"try",
"{",
"beginWrite",
"(",
")",
";",
"dst",
".",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"InterruptedIOException",
"e",
")",
"{",
"throw",
"writeTimedOut",
"(",
"e",
")",
";",
... | public override void Close(){try{BeginWrite();dst.Close();}catch (ThreadInterruptedException){throw WriteTimedOut();}finally{EndWrite();}}
| train | false |
5,823 | public UpdateVirtualInterfaceAttributesResult updateVirtualInterfaceAttributes(UpdateVirtualInterfaceAttributesRequest request) {request = beforeClientExecution(request);return executeUpdateVirtualInterfaceAttributes(request);}
| [
"public",
"UpdateVirtualInterfaceAttributesResult",
"updateVirtualInterfaceAttributes",
"(",
"UpdateVirtualInterfaceAttributesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateVirtualInterfaceAttributes",
"(",
... | public virtual UpdateVirtualInterfaceAttributesResponse UpdateVirtualInterfaceAttributes(UpdateVirtualInterfaceAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateVirtualInterfaceAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateVirtualInterfaceAttribut... | train | true |
5,824 | public ScandinavianNormalizationFilter(TokenStream input) {super(input);}
| [
"public",
"ScandinavianNormalizationFilter",
"(",
"TokenStream",
"input",
")",
"{",
"super",
"(",
"input",
")",
";",
"}"
] | public ScandinavianNormalizationFilter(TokenStream input): base(input){charTermAttribute = AddAttribute<ICharTermAttribute>();}
| train | false |
5,825 | public DeleteHumanLoopResult deleteHumanLoop(DeleteHumanLoopRequest request) {request = beforeClientExecution(request);return executeDeleteHumanLoop(request);}
| [
"public",
"DeleteHumanLoopResult",
"deleteHumanLoop",
"(",
"DeleteHumanLoopRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteHumanLoop",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteHumanLoopResponse DeleteHumanLoop(DeleteHumanLoopRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteHumanLoopRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteHumanLoopResponseUnmarshaller.Instance;return Invoke<DeleteHumanLoopResponse>(request, optio... | train | false |
5,826 | public void onWindowFocusChanged(boolean hasWindowFocus) {super.onWindowFocusChanged(hasWindowFocus);if (!hasWindowFocus && !mPopup.isDropDownAlwaysVisible()) {dismissDropDown();}}
| [
"public",
"void",
"onWindowFocusChanged",
"(",
"boolean",
"hasWindowFocus",
")",
"{",
"super",
".",
"onWindowFocusChanged",
"(",
"hasWindowFocus",
")",
";",
"if",
"(",
"!",
"hasWindowFocus",
"&&",
"!",
"mPopup",
".",
"isDropDownAlwaysVisible",
"(",
")",
")",
"{"... | public override void onWindowFocusChanged(bool hasWindowFocus_1){base.onWindowFocusChanged(hasWindowFocus_1);if (!hasWindowFocus_1 && !mPopup.isDropDownAlwaysVisible()){dismissDropDown();}}
| train | false |
5,827 | public GetApnsSandboxChannelResult getApnsSandboxChannel(GetApnsSandboxChannelRequest request) {request = beforeClientExecution(request);return executeGetApnsSandboxChannel(request);}
| [
"public",
"GetApnsSandboxChannelResult",
"getApnsSandboxChannel",
"(",
"GetApnsSandboxChannelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetApnsSandboxChannel",
"(",
"request",
")",
";",
"}"
] | public virtual GetApnsSandboxChannelResponse GetApnsSandboxChannel(GetApnsSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApnsSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApnsSandboxChannelResponseUnmarshaller.Instance;return Invoke<GetApnsSa... | train | true |
5,828 | public TreeFilter clone() {final TreeFilter n = a.clone();return n == a ? this : new NotTreeFilter(n);}
| [
"public",
"TreeFilter",
"clone",
"(",
")",
"{",
"final",
"TreeFilter",
"n",
"=",
"a",
".",
"clone",
"(",
")",
";",
"return",
"n",
"==",
"a",
"?",
"this",
":",
"new",
"NotTreeFilter",
"(",
"n",
")",
";",
"}"
] | public override TreeFilter Clone(){TreeFilter n = a.Clone();return n == a ? this : new NGit.Treewalk.Filter.NotTreeFilter(n);}
| train | false |
5,829 | public void addBuilder(String nodeName, QueryBuilder builder) {builders.put(nodeName, builder);}
| [
"public",
"void",
"addBuilder",
"(",
"String",
"nodeName",
",",
"QueryBuilder",
"builder",
")",
"{",
"builders",
".",
"put",
"(",
"nodeName",
",",
"builder",
")",
";",
"}"
] | public virtual void AddBuilder(string nodeName, IQueryBuilder builder){builders[nodeName] = builder;}
| train | false |
5,830 | public static boolean isSupported(int bitsPerValue) {return Arrays.binarySearch(SUPPORTED_BITS_PER_VALUE, bitsPerValue) >= 0;}
| [
"public",
"static",
"boolean",
"isSupported",
"(",
"int",
"bitsPerValue",
")",
"{",
"return",
"Arrays",
".",
"binarySearch",
"(",
"SUPPORTED_BITS_PER_VALUE",
",",
"bitsPerValue",
")",
">=",
"0",
";",
"}"
] | public static bool IsSupported(int bitsPerValue){return Array.BinarySearch(SUPPORTED_BITS_PER_VALUE, bitsPerValue) >= 0;}
| train | false |
5,831 | @Override public V getValue() {return mapEntry.getValue();}
| [
"@",
"Override",
"public",
"V",
"getValue",
"(",
")",
"{",
"return",
"mapEntry",
".",
"getValue",
"(",
")",
";",
"}"
] | public virtual V getValue(){return mapEntry.getValue();}
| train | false |
5,832 | public DeletedArea3DPtg(LittleEndianInput in) {field_1_index_extern_sheet = in.readUShort();unused1 = in.readInt();unused2 = in.readInt();}
| [
"public",
"DeletedArea3DPtg",
"(",
"LittleEndianInput",
"in",
")",
"{",
"field_1_index_extern_sheet",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"unused1",
"=",
"in",
".",
"readInt",
"(",
")",
";",
"unused2",
"=",
"in",
".",
"readInt",
"(",
")",
";",
"... | public DeletedArea3DPtg(ILittleEndianInput in1){field_1_index_extern_sheet = in1.ReadUShort();unused1 = in1.ReadInt();unused2 = in1.ReadInt();}
| train | false |
5,833 | public String toString() {return "NativeFSLock(path=" + path + ",impl=" + lock + ",creationTime=" + creationTime + ")";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"NativeFSLock(path=\"",
"+",
"path",
"+",
"\",impl=\"",
"+",
"lock",
"+",
"\",creationTime=\"",
"+",
"creationTime",
"+",
"\")\"",
";",
"}"
] | public override string ToString(){return $"{nameof(NativeFSLock)}@{path}";}
| train | false |
5,834 | public CreateVolumeResult createVolume(CreateVolumeRequest request) {request = beforeClientExecution(request);return executeCreateVolume(request);}
| [
"public",
"CreateVolumeResult",
"createVolume",
"(",
"CreateVolumeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateVolume",
"(",
"request",
")",
";",
"}"
] | public virtual CreateVolumeResponse CreateVolume(CreateVolumeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVolumeRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVolumeResponseUnmarshaller.Instance;return Invoke<CreateVolumeResponse>(request, options);}
| train | true |
5,835 | public EvaluationCell getCell(int rowIndex, int columnIndex) {HSSFRow row = _hs.getRow(rowIndex);if (row == null) {return null;}HSSFCell cell = row.getCell(columnIndex);if (cell == null) {return null;}return new HSSFEvaluationCell(cell, this);}
| [
"public",
"EvaluationCell",
"getCell",
"(",
"int",
"rowIndex",
",",
"int",
"columnIndex",
")",
"{",
"HSSFRow",
"row",
"=",
"_hs",
".",
"getRow",
"(",
"rowIndex",
")",
";",
"if",
"(",
"row",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"HSSFCell"... | public IEvaluationCell GetCell(int rowIndex, int columnIndex){HSSFRow row = (HSSFRow)_hs.GetRow(rowIndex);if (row == null){return null;}ICell cell = (HSSFCell)row.GetCell(columnIndex);if (cell == null){return null;}return new HSSFEvaluationCell(cell, this);}
| train | false |
5,836 | public DeleteBasePathMappingResult deleteBasePathMapping(DeleteBasePathMappingRequest request) {request = beforeClientExecution(request);return executeDeleteBasePathMapping(request);}
| [
"public",
"DeleteBasePathMappingResult",
"deleteBasePathMapping",
"(",
"DeleteBasePathMappingRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteBasePathMapping",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteBasePathMappingResponse DeleteBasePathMapping(DeleteBasePathMappingRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteBasePathMappingRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteBasePathMappingResponseUnmarshaller.Instance;return Invoke<DeleteBas... | train | true |
5,837 | public void removeState(ATNState state) {states.set(state.stateNumber, null); }
| [
"public",
"void",
"removeState",
"(",
"ATNState",
"state",
")",
"{",
"states",
".",
"set",
"(",
"state",
".",
"stateNumber",
",",
"null",
")",
";",
"}"
] | public virtual void RemoveState(ATNState state){states[state.stateNumber] = null;}
| train | false |
5,839 | public boolean equals(final Object o) {if (!(o instanceof PropertySet)) {return false;}final PropertySet ps = (PropertySet) o;int byteOrder1 = ps.getByteOrder();int byteOrder2 = getByteOrder();ClassID classID1 = ps.getClassID();ClassID classID2 = getClassID();int format1 = ps.getFormat();int format2 = getFormat();int o... | [
"public",
"boolean",
"equals",
"(",
"final",
"Object",
"o",
")",
"{",
"if",
"(",
"!",
"(",
"o",
"instanceof",
"PropertySet",
")",
")",
"{",
"return",
"false",
";",
"}",
"final",
"PropertySet",
"ps",
"=",
"(",
"PropertySet",
")",
"o",
";",
"int",
"byt... | public override bool Equals(Object o){if (o == null || !(o is PropertySet))return false;PropertySet ps = (PropertySet)o;int byteOrder1 = ps.ByteOrder;int byteOrder2 = ByteOrder;ClassID classID1 = ps.ClassID;ClassID classID2 = ClassID;int format1 = ps.Format;int format2 = Format;int osVersion1 = ps.OSVersion;int osVersi... | train | false |
5,840 | public static int getEstimatedNumberUniqueValuesAllowingForCollisions(int setSize, int numRecordedBits) {double setSizeAsDouble = setSize;double numRecordedBitsAsDouble = numRecordedBits;double saturation = numRecordedBitsAsDouble / setSizeAsDouble;double logInverseSaturation = Math.log(1 - saturation) * -1;return (int... | [
"public",
"static",
"int",
"getEstimatedNumberUniqueValuesAllowingForCollisions",
"(",
"int",
"setSize",
",",
"int",
"numRecordedBits",
")",
"{",
"double",
"setSizeAsDouble",
"=",
"setSize",
";",
"double",
"numRecordedBitsAsDouble",
"=",
"numRecordedBits",
";",
"double",
... | public static int GetEstimatedNumberUniqueValuesAllowingForCollisions(int setSize, int numRecordedBits){double setSizeAsDouble = setSize;double numRecordedBitsAsDouble = numRecordedBits;var saturation = numRecordedBitsAsDouble/setSizeAsDouble;var logInverseSaturation = Math.Log(1 - saturation)*-1;return (int) (setSizeA... | train | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.