id_within_dataset int64 0 10.3k | snippet stringlengths 29 1.4k | tokens listlengths 10 314 | cs stringlengths 28 1.38k | split_within_dataset stringclasses 1
value | is_duplicated bool 2
classes |
|---|---|---|---|---|---|
8,279 | public static int finish(int hash, int numberOfWords) {hash = hash ^ (numberOfWords * 4);hash = hash ^ (hash >>> 16);hash = hash * 0x85EBCA6B;hash = hash ^ (hash >>> 13);hash = hash * 0xC2B2AE35;hash = hash ^ (hash >>> 16);return hash;}
| [
"public",
"static",
"int",
"finish",
"(",
"int",
"hash",
",",
"int",
"numberOfWords",
")",
"{",
"hash",
"=",
"hash",
"^",
"(",
"numberOfWords",
"*",
"4",
")",
";",
"hash",
"=",
"hash",
"^",
"(",
"hash",
">",
">",
">",
"16",
")",
";",
"hash",
"=",... | public static int Finish(int hash, int numberOfWords){hash = hash ^ (numberOfWords * 4);hash = hash ^ ((int)(((uint)hash) >> 16));hash = hash * unchecked((int)(0x85EBCA6B));hash = hash ^ ((int)(((uint)hash) >> 13));hash = hash * unchecked((int)(0xC2B2AE35));hash = hash ^ ((int)(((uint)hash) >> 16));return hash;}
| train | false |
8,280 | public StempelFilter(TokenStream in, StempelStemmer stemmer, int minLength) {super(in);this.stemmer = stemmer;this.minLength = minLength;}
| [
"public",
"StempelFilter",
"(",
"TokenStream",
"in",
",",
"StempelStemmer",
"stemmer",
",",
"int",
"minLength",
")",
"{",
"super",
"(",
"in",
")",
";",
"this",
".",
"stemmer",
"=",
"stemmer",
";",
"this",
".",
"minLength",
"=",
"minLength",
";",
"}"
] | public StempelFilter(TokenStream @in, StempelStemmer stemmer, int minLength): base(@in){this.stemmer = stemmer;this.minLength = minLength;this.termAtt = AddAttribute<ICharTermAttribute>();this.keywordAtt = AddAttribute<IKeywordAttribute>();}
| train | false |
8,281 | public GetIntegrationResponseResult getIntegrationResponse(GetIntegrationResponseRequest request) {request = beforeClientExecution(request);return executeGetIntegrationResponse(request);}
| [
"public",
"GetIntegrationResponseResult",
"getIntegrationResponse",
"(",
"GetIntegrationResponseRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetIntegrationResponse",
"(",
"request",
")",
";",
"}"
] | public virtual GetIntegrationResponseResponse GetIntegrationResponse(GetIntegrationResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIntegrationResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIntegrationResponseResponseUnmarshaller.Instance;return Invoke<GetI... | train | true |
8,282 | public PostToConnectionResult postToConnection(PostToConnectionRequest request) {request = beforeClientExecution(request);return executePostToConnection(request);}
| [
"public",
"PostToConnectionResult",
"postToConnection",
"(",
"PostToConnectionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePostToConnection",
"(",
"request",
")",
";",
"}"
] | public virtual PostToConnectionResponse PostToConnection(PostToConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = PostToConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = PostToConnectionResponseUnmarshaller.Instance;return Invoke<PostToConnectionResponse>(request,... | train | true |
8,283 | public TermRangeQueryNode(FieldQueryNode lower, FieldQueryNode upper,boolean lowerInclusive, boolean upperInclusive) {setBounds(lower, upper, lowerInclusive, upperInclusive);}
| [
"public",
"TermRangeQueryNode",
"(",
"FieldQueryNode",
"lower",
",",
"FieldQueryNode",
"upper",
",",
"boolean",
"lowerInclusive",
",",
"boolean",
"upperInclusive",
")",
"{",
"setBounds",
"(",
"lower",
",",
"upper",
",",
"lowerInclusive",
",",
"upperInclusive",
")",
... | public TermRangeQueryNode(FieldQueryNode lower, FieldQueryNode upper,bool lowerInclusive, bool upperInclusive){SetBounds(lower, upper, lowerInclusive, upperInclusive);}
| train | false |
8,285 | public CreateSchemaResult createSchema(CreateSchemaRequest request) {request = beforeClientExecution(request);return executeCreateSchema(request);}
| [
"public",
"CreateSchemaResult",
"createSchema",
"(",
"CreateSchemaRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateSchema",
"(",
"request",
")",
";",
"}"
] | public virtual CreateSchemaResponse CreateSchema(CreateSchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSchemaResponseUnmarshaller.Instance;return Invoke<CreateSchemaResponse>(request, options);}
| train | true |
8,286 | public V get(char[] text, int off, int len) {if(text == null)throw new NullPointerException();return null;}
| [
"public",
"V",
"get",
"(",
"char",
"[",
"]",
"text",
",",
"int",
"off",
",",
"int",
"len",
")",
"{",
"if",
"(",
"text",
"==",
"null",
")",
"throw",
"new",
"NullPointerException",
"(",
")",
";",
"return",
"null",
";",
"}"
] | public override V Get(char[] text, int offset, int length){if (text == null){throw new ArgumentNullException("text");}return default(V);}
| train | false |
8,287 | public List<CharsRef> stem(String word) {return stem(word.toCharArray(), word.length());}
| [
"public",
"List",
"<",
"CharsRef",
">",
"stem",
"(",
"String",
"word",
")",
"{",
"return",
"stem",
"(",
"word",
".",
"toCharArray",
"(",
")",
",",
"word",
".",
"length",
"(",
")",
")",
";",
"}"
] | public IList<CharsRef> Stem(string word){return Stem(word.ToCharArray(), word.Length);}
| train | false |
8,288 | public DeleteSmsTemplateResult deleteSmsTemplate(DeleteSmsTemplateRequest request) {request = beforeClientExecution(request);return executeDeleteSmsTemplate(request);}
| [
"public",
"DeleteSmsTemplateResult",
"deleteSmsTemplate",
"(",
"DeleteSmsTemplateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteSmsTemplate",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteSmsTemplateResponse DeleteSmsTemplate(DeleteSmsTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSmsTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSmsTemplateResponseUnmarshaller.Instance;return Invoke<DeleteSmsTemplateResponse>(re... | train | false |
8,289 | public void setPassword(short pw) {field_1_password = pw;}
| [
"public",
"void",
"setPassword",
"(",
"short",
"pw",
")",
"{",
"field_1_password",
"=",
"pw",
";",
"}"
] | public void SetPassword(short pw){field_1_password = pw;}
| train | false |
8,290 | public CharBuffer append(char c) {return put(c);}
| [
"public",
"CharBuffer",
"append",
"(",
"char",
"c",
")",
"{",
"return",
"put",
"(",
"c",
")",
";",
"}"
] | public virtual java.nio.CharBuffer append(char c){return put(c);}
| train | false |
8,291 | public PutVoiceConnectorLoggingConfigurationResult putVoiceConnectorLoggingConfiguration(PutVoiceConnectorLoggingConfigurationRequest request) {request = beforeClientExecution(request);return executePutVoiceConnectorLoggingConfiguration(request);}
| [
"public",
"PutVoiceConnectorLoggingConfigurationResult",
"putVoiceConnectorLoggingConfiguration",
"(",
"PutVoiceConnectorLoggingConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutVoiceConnectorLoggingCon... | public virtual PutVoiceConnectorLoggingConfigurationResponse PutVoiceConnectorLoggingConfiguration(PutVoiceConnectorLoggingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutVoiceConnectorLoggingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutVoiceCo... | train | false |
8,292 | public boolean isAbsolute() {return path.length() > 0 && path.charAt(0) == separatorChar;}
| [
"public",
"boolean",
"isAbsolute",
"(",
")",
"{",
"return",
"path",
".",
"length",
"(",
")",
">",
"0",
"&&",
"path",
".",
"charAt",
"(",
"0",
")",
"==",
"separatorChar",
";",
"}"
] | public bool isAbsolute(){return path.Length > 0 && path[0] == separatorChar;}
| train | false |
8,293 | public CreateSnapshotRequest(String volumeId, String description) {setVolumeId(volumeId);setDescription(description);}
| [
"public",
"CreateSnapshotRequest",
"(",
"String",
"volumeId",
",",
"String",
"description",
")",
"{",
"setVolumeId",
"(",
"volumeId",
")",
";",
"setDescription",
"(",
"description",
")",
";",
"}"
] | public CreateSnapshotRequest(string volumeId, string description){_volumeId = volumeId;_description = description;}
| train | false |
8,294 | public static ReaderIterator getReaderIteratorNoHeader(DataInput in, Format format, int version,int valueCount, int bitsPerValue, int mem) {checkVersion(version);return new PackedReaderIterator(format, version, valueCount, bitsPerValue, in, mem);}
| [
"public",
"static",
"ReaderIterator",
"getReaderIteratorNoHeader",
"(",
"DataInput",
"in",
",",
"Format",
"format",
",",
"int",
"version",
",",
"int",
"valueCount",
",",
"int",
"bitsPerValue",
",",
"int",
"mem",
")",
"{",
"checkVersion",
"(",
"version",
")",
"... | public static IReaderIterator GetReaderIteratorNoHeader(DataInput @in, Format format, int version, int valueCount, int bitsPerValue, int mem){CheckVersion(version);return new PackedReaderIterator(format, version, valueCount, bitsPerValue, @in, mem);}
| train | false |
8,295 | public DoubleBuffer put(int index, double c) {throw new ReadOnlyBufferException();}
| [
"public",
"DoubleBuffer",
"put",
"(",
"int",
"index",
",",
"double",
"c",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] | public override java.nio.DoubleBuffer put(int index, double c){throw new java.nio.ReadOnlyBufferException();}
| train | false |
8,296 | public StashDropCommand stashDrop() {return new StashDropCommand(repo);}
| [
"public",
"StashDropCommand",
"stashDrop",
"(",
")",
"{",
"return",
"new",
"StashDropCommand",
"(",
"repo",
")",
";",
"}"
] | public virtual StashDropCommand StashDrop(){return new StashDropCommand(repo);}
| train | false |
8,297 | public boolean isUnmappable() {return this.type == TYPE_UNMAPPABLE_CHAR;}
| [
"public",
"boolean",
"isUnmappable",
"(",
")",
"{",
"return",
"this",
".",
"type",
"==",
"TYPE_UNMAPPABLE_CHAR",
";",
"}"
] | public virtual bool isUnmappable(){return this.type == TYPE_UNMAPPABLE_CHAR;}
| train | false |
8,298 | public byte readByte() {checkPosition(1);return (byte)read();}
| [
"public",
"byte",
"readByte",
"(",
")",
"{",
"checkPosition",
"(",
"1",
")",
";",
"return",
"(",
"byte",
")",
"read",
"(",
")",
";",
"}"
] | public int ReadByte(){CheckPosition(1);return _buf[_ReadIndex++];}
| train | false |
8,300 | public CustomAnalyzerConfig build() {return new CustomAnalyzerConfig(this);}
| [
"public",
"CustomAnalyzerConfig",
"build",
"(",
")",
"{",
"return",
"new",
"CustomAnalyzerConfig",
"(",
"this",
")",
";",
"}"
] | public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}
| train | false |
8,301 | public UpdateAddressBookResult updateAddressBook(UpdateAddressBookRequest request) {request = beforeClientExecution(request);return executeUpdateAddressBook(request);}
| [
"public",
"UpdateAddressBookResult",
"updateAddressBook",
"(",
"UpdateAddressBookRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateAddressBook",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateAddressBookResponse UpdateAddressBook(UpdateAddressBookRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAddressBookRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAddressBookResponseUnmarshaller.Instance;return Invoke<UpdateAddressBookResponse>(re... | train | true |
8,302 | public String toString() {return String.format("Point [%dx%d]", x, y);}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"String",
".",
"format",
"(",
"\"Point [%dx%d]\"",
",",
"x",
",",
"y",
")",
";",
"}"
] | public override string ToString(){return "Point(" + x + ", " + y + ")";}
| train | false |
8,303 | public DescribeAccountAttributesResult describeAccountAttributes(DescribeAccountAttributesRequest request) {request = beforeClientExecution(request);return executeDescribeAccountAttributes(request);}
| [
"public",
"DescribeAccountAttributesResult",
"describeAccountAttributes",
"(",
"DescribeAccountAttributesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeAccountAttributes",
"(",
"request",
")",
";",
... | public virtual DescribeAccountAttributesResponse DescribeAccountAttributes(DescribeAccountAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAccountAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAccountAttributesResponseUnmarshaller.Instance;ret... | train | true |
8,306 | public DescribeClusterParameterGroupsResult describeClusterParameterGroups(DescribeClusterParameterGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeClusterParameterGroups(request);}
| [
"public",
"DescribeClusterParameterGroupsResult",
"describeClusterParameterGroups",
"(",
"DescribeClusterParameterGroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeClusterParameterGroups",
"(",
"reque... | public virtual DescribeClusterParameterGroupsResponse DescribeClusterParameterGroups(DescribeClusterParameterGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterParameterGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterParameterGroupsResponse... | train | true |
8,307 | public BatchGetApplicationsResult batchGetApplications(BatchGetApplicationsRequest request) {request = beforeClientExecution(request);return executeBatchGetApplications(request);}
| [
"public",
"BatchGetApplicationsResult",
"batchGetApplications",
"(",
"BatchGetApplicationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBatchGetApplications",
"(",
"request",
")",
";",
"}"
] | public virtual BatchGetApplicationsResponse BatchGetApplications(BatchGetApplicationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetApplicationsRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetApplicationsResponseUnmarshaller.Instance;return Invoke<BatchGetApplic... | train | true |
8,308 | public String toString() {return "dels=" + Arrays.toString(item);}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"dels=\"",
"+",
"Arrays",
".",
"toString",
"(",
"item",
")",
";",
"}"
] | public override string ToString(){return "dels=" + Arrays.ToString((Term[])item);}
| train | false |
8,309 | public FreeRefFunction findFunction(String name) {FreeRefFunction evaluatorForFunction;for (UDFFinder pack : _usedToolPacks) {evaluatorForFunction = pack.findFunction(name);if (evaluatorForFunction != null) {return evaluatorForFunction;}}return null;}
| [
"public",
"FreeRefFunction",
"findFunction",
"(",
"String",
"name",
")",
"{",
"FreeRefFunction",
"evaluatorForFunction",
";",
"for",
"(",
"UDFFinder",
"pack",
":",
"_usedToolPacks",
")",
"{",
"evaluatorForFunction",
"=",
"pack",
".",
"findFunction",
"(",
"name",
"... | public override FreeRefFunction FindFunction(String name){FreeRefFunction evaluatorForFunction;foreach (UDFFinder pack in _usedToolPacks){evaluatorForFunction = pack.FindFunction(name);if (evaluatorForFunction != null){return evaluatorForFunction;}}return null;}
| train | false |
8,310 | public String toString(){StringBuilder sb = new StringBuilder();sb.append("[LABEL]\n");sb.append(" .row = ").append(HexDump.shortToHex(getRow())).append("\n");sb.append(" .column = ").append(HexDump.shortToHex(getColumn())).append("\n");sb.append(" .xfindex = ").append(HexDump.shortToHex(getXFIndex(... | [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"sb",
".",
"append",
"(",
"\"[LABEL]\\n\"",
")",
";",
"sb",
".",
"append",
"(",
"\" .row = \"",
")",
".",
"append",
"(",
"HexDump",
... | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[LABEL]\n");buffer.Append(" .row = ").Append(StringUtil.ToHexString(Row)).Append("\n");buffer.Append(" .column = ").Append(StringUtil.ToHexString(Column)).Append("\n");buffer.Append(" .xfindex ... | train | false |
8,311 | public static void verifyLabel(String label) {if (label == null || label.isEmpty()) {throw new IllegalArgumentException("empty or null components not allowed; got: " + label);}}
| [
"public",
"static",
"void",
"verifyLabel",
"(",
"String",
"label",
")",
"{",
"if",
"(",
"label",
"==",
"null",
"||",
"label",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"empty or null components not allowed; got: \"",
... | public static void VerifyLabel(string label){if (string.IsNullOrEmpty(label)){throw new System.ArgumentException("empty or null components not allowed; got: " + label);}}
| train | false |
8,312 | public boolean setReadOnly() {return setWritable(false, false);}
| [
"public",
"boolean",
"setReadOnly",
"(",
")",
"{",
"return",
"setWritable",
"(",
"false",
",",
"false",
")",
";",
"}"
] | public bool setReadOnly(){return setWritable(false, false);}
| train | false |
8,313 | public CopyImageResult copyImage(CopyImageRequest request) {request = beforeClientExecution(request);return executeCopyImage(request);}
| [
"public",
"CopyImageResult",
"copyImage",
"(",
"CopyImageRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCopyImage",
"(",
"request",
")",
";",
"}"
] | public virtual CopyImageResponse CopyImage(CopyImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyImageRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyImageResponseUnmarshaller.Instance;return Invoke<CopyImageResponse>(request, options);}
| train | true |
8,314 | public CreateTrainingJobResult createTrainingJob(CreateTrainingJobRequest request) {request = beforeClientExecution(request);return executeCreateTrainingJob(request);}
| [
"public",
"CreateTrainingJobResult",
"createTrainingJob",
"(",
"CreateTrainingJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateTrainingJob",
"(",
"request",
")",
";",
"}"
] | public virtual CreateTrainingJobResponse CreateTrainingJob(CreateTrainingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTrainingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTrainingJobResponseUnmarshaller.Instance;return Invoke<CreateTrainingJobResponse>(re... | train | true |
8,315 | public DescribeDomainsResult describeDomains(DescribeDomainsRequest request) {request = beforeClientExecution(request);return executeDescribeDomains(request);}
| [
"public",
"DescribeDomainsResult",
"describeDomains",
"(",
"DescribeDomainsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeDomains",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeDomainsResponse DescribeDomains(DescribeDomainsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDomainsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDomainsResponseUnmarshaller.Instance;return Invoke<DescribeDomainsResponse>(request, optio... | train | true |
8,316 | public String toString() {return "ngram(" + n + ")";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"ngram(\"",
"+",
"n",
"+",
"\")\"",
";",
"}"
] | public override string ToString(){return "ngram(" + n + ")";}
| train | false |
8,317 | public boolean formatMatches(ColumnInfoRecord other) {if (_xfIndex != other._xfIndex) {return false;}if (_options != other._options) {return false;}if (_colWidth != other._colWidth) {return false;}return true;}
| [
"public",
"boolean",
"formatMatches",
"(",
"ColumnInfoRecord",
"other",
")",
"{",
"if",
"(",
"_xfIndex",
"!=",
"other",
".",
"_xfIndex",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"_options",
"!=",
"other",
".",
"_options",
")",
"{",
"return",
"fa... | public bool FormatMatches(ColumnInfoRecord other){if (_xf_index != other._xf_index){return false;}if (_options != other._options){return false;}if (_col_width != other._col_width){return false;}return true;}
| train | false |
8,318 | public AddCommand add() {return new AddCommand(repo);}
| [
"public",
"AddCommand",
"add",
"(",
")",
"{",
"return",
"new",
"AddCommand",
"(",
"repo",
")",
";",
"}"
] | public virtual AddCommand Add(){return new AddCommand(repo);}
| train | false |
8,319 | public final int limit() {return limit;}
| [
"public",
"final",
"int",
"limit",
"(",
")",
"{",
"return",
"limit",
";",
"}"
] | public int limit(){return _limit;}
| train | false |
8,320 | public CharBuffer asReadOnlyBuffer() {return ReadOnlyCharArrayBuffer.copy(this, mark);}
| [
"public",
"CharBuffer",
"asReadOnlyBuffer",
"(",
")",
"{",
"return",
"ReadOnlyCharArrayBuffer",
".",
"copy",
"(",
"this",
",",
"mark",
")",
";",
"}"
] | public override java.nio.CharBuffer asReadOnlyBuffer(){return java.nio.ReadOnlyCharArrayBuffer.copy(this, _mark);}
| train | false |
8,321 | public synchronized boolean add(E object) {if (elementCount == elementData.length) {growByOne();}elementData[elementCount++] = object;modCount++;return true;}
| [
"public",
"synchronized",
"boolean",
"add",
"(",
"E",
"object",
")",
"{",
"if",
"(",
"elementCount",
"==",
"elementData",
".",
"length",
")",
"{",
"growByOne",
"(",
")",
";",
"}",
"elementData",
"[",
"elementCount",
"++",
"]",
"=",
"object",
";",
"modCou... | public override bool add(E @object){lock (this){if (elementCount == elementData.Length){growByOne();}elementData[elementCount++] = @object;modCount++;return true;}}
| train | false |
8,322 | public TSTNode getNode(CharSequence key) {return getNode(key, rootNode);}
| [
"public",
"TSTNode",
"getNode",
"(",
"CharSequence",
"key",
")",
"{",
"return",
"getNode",
"(",
"key",
",",
"rootNode",
")",
";",
"}"
] | public virtual TSTNode GetNode(string key){return GetNode(key, rootNode);}
| train | false |
8,323 | public GetEventStreamResult getEventStream(GetEventStreamRequest request) {request = beforeClientExecution(request);return executeGetEventStream(request);}
| [
"public",
"GetEventStreamResult",
"getEventStream",
"(",
"GetEventStreamRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetEventStream",
"(",
"request",
")",
";",
"}"
] | public virtual GetEventStreamResponse GetEventStream(GetEventStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEventStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEventStreamResponseUnmarshaller.Instance;return Invoke<GetEventStreamResponse>(request, options);}
| train | true |
8,324 | public SendMessageBatchResult sendMessageBatch(SendMessageBatchRequest request) {request = beforeClientExecution(request);return executeSendMessageBatch(request);}
| [
"public",
"SendMessageBatchResult",
"sendMessageBatch",
"(",
"SendMessageBatchRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSendMessageBatch",
"(",
"request",
")",
";",
"}"
] | public virtual SendMessageBatchResponse SendMessageBatch(SendMessageBatchRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendMessageBatchRequestMarshaller.Instance;options.ResponseUnmarshaller = SendMessageBatchResponseUnmarshaller.Instance;return Invoke<SendMessageBatchResponse>(request,... | train | true |
8,325 | public DescribeDirectConnectGatewayAttachmentsResult describeDirectConnectGatewayAttachments(DescribeDirectConnectGatewayAttachmentsRequest request) {request = beforeClientExecution(request);return executeDescribeDirectConnectGatewayAttachments(request);}
| [
"public",
"DescribeDirectConnectGatewayAttachmentsResult",
"describeDirectConnectGatewayAttachments",
"(",
"DescribeDirectConnectGatewayAttachmentsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeDirectConnect... | public virtual DescribeDirectConnectGatewayAttachmentsResponse DescribeDirectConnectGatewayAttachments(DescribeDirectConnectGatewayAttachmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDirectConnectGatewayAttachmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = De... | train | true |
8,326 | public Object add(Object prefix, Object output) {assert !(prefix instanceof List);if (!(output instanceof List)) {return outputs.add((T) prefix, (T) output);} else {List<T> outputList = (List<T>) output;List<T> addedList = new ArrayList<>(outputList.size());for(T _output : outputList) {addedList.add(outputs.add((T) pre... | [
"public",
"Object",
"add",
"(",
"Object",
"prefix",
",",
"Object",
"output",
")",
"{",
"assert",
"!",
"(",
"prefix",
"instanceof",
"List",
")",
";",
"if",
"(",
"!",
"(",
"output",
"instanceof",
"List",
")",
")",
"{",
"return",
"outputs",
".",
"add",
... | public override object Add(object prefix, object output){Debug.Assert(!(prefix is IList));if (!(output is IList)){return outputs.Add((T)prefix, (T)output);}else{IList outputList = (IList)output;IList<T> addedList = new JCG.List<T>(outputList.Count);foreach (object _output in outputList){addedList.Add(outputs.Add((T)pre... | train | false |
8,327 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2, ValueEval arg3) {return evaluate(srcRowIndex, srcColumnIndex, arg0, arg1, arg2, arg3, DEFAULT_ARG4);}
| [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"arg0",
",",
"ValueEval",
"arg1",
",",
"ValueEval",
"arg2",
",",
"ValueEval",
"arg3",
")",
"{",
"return",
"evaluate",
"(",
"srcRowIndex",
",",
"srcCol... | public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2, ValueEval arg3){return Evaluate(srcRowIndex, srcColumnIndex, arg0, arg1, arg2, arg3, DEFAULT_ARG4);}
| train | false |
8,328 | public static List<ParseTree> findAllNodes(ParseTree t, int index, boolean findTokens) {List<ParseTree> nodes = new ArrayList<ParseTree>();_findAllNodes(t, index, findTokens, nodes);return nodes;}
| [
"public",
"static",
"List",
"<",
"ParseTree",
">",
"findAllNodes",
"(",
"ParseTree",
"t",
",",
"int",
"index",
",",
"boolean",
"findTokens",
")",
"{",
"List",
"<",
"ParseTree",
">",
"nodes",
"=",
"new",
"ArrayList",
"<",
"ParseTree",
">",
"(",
")",
";",
... | public static IList<IParseTree> FindAllNodes(IParseTree t, int index, bool findTokens){IList<IParseTree> nodes = new List<IParseTree>();_findAllNodes(t, index, findTokens, nodes);return nodes;}
| train | false |
8,329 | public boolean containsChart() {EscherOptRecord optRecord = (EscherOptRecord)_boundAggregate.findFirstWithId(EscherOptRecord.RECORD_ID);if (optRecord == null) {return false;}for (EscherProperty prop : optRecord.getEscherProperties()) {if (prop.getPropertyNumber() == 896 && prop.isComplex()) {EscherComplexProperty cp = ... | [
"public",
"boolean",
"containsChart",
"(",
")",
"{",
"EscherOptRecord",
"optRecord",
"=",
"(",
"EscherOptRecord",
")",
"_boundAggregate",
".",
"findFirstWithId",
"(",
"EscherOptRecord",
".",
"RECORD_ID",
")",
";",
"if",
"(",
"optRecord",
"==",
"null",
")",
"{",
... | public bool ContainsChart(){EscherOptRecord optRecord = (EscherOptRecord)_boundAggregate.FindFirstWithId(EscherOptRecord.RECORD_ID);if (optRecord == null){return false;}for (IEnumerator it = optRecord.EscherProperties.GetEnumerator(); it.MoveNext(); ){EscherProperty prop = (EscherProperty)it.Current;if (prop.PropertyNu... | train | false |
8,330 | public int getWidth() {return w;}
| [
"public",
"int",
"getWidth",
"(",
")",
"{",
"return",
"w",
";",
"}"
] | public virtual int getWidth(){return w;}
| train | false |
8,331 | public StopInstanceResult stopInstance(StopInstanceRequest request) {request = beforeClientExecution(request);return executeStopInstance(request);}
| [
"public",
"StopInstanceResult",
"stopInstance",
"(",
"StopInstanceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStopInstance",
"(",
"request",
")",
";",
"}"
] | public virtual StopInstanceResponse StopInstance(StopInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = StopInstanceResponseUnmarshaller.Instance;return Invoke<StopInstanceResponse>(request, options);}
| train | true |
8,332 | public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[TABLE]\n");buffer.append(" .range = ").append(getRange()).append("\n");buffer.append(" .flags = ") .append(HexDump.byteToHex(field_5_flags)).append("\n");buffer.append(" .alwaysClc= ").append(isAlwaysCalc()).append("\n")... | [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[TABLE]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .range = \"",
")",
".",
"append",
"(",
"... | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[TABLE]\n");buffer.Append(" .range = ").Append(Range.ToString()).Append("\n");buffer.Append(" .flags = ").Append(HexDump.ByteToHex(field_5_flags)).Append("\n");buffer.Append(" .alwaysClc= ").Append(IsAlwaysCalc).A... | train | false |
8,333 | public RemoveTagsResult removeTags(RemoveTagsRequest request) {request = beforeClientExecution(request);return executeRemoveTags(request);}
| [
"public",
"RemoveTagsResult",
"removeTags",
"(",
"RemoveTagsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRemoveTags",
"(",
"request",
")",
";",
"}"
] | public virtual RemoveTagsResponse RemoveTags(RemoveTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveTagsResponseUnmarshaller.Instance;return Invoke<RemoveTagsResponse>(request, options);}
| train | true |
8,334 | public boolean hasNext() {if (next == null)next = peek();return next != null;}
| [
"public",
"boolean",
"hasNext",
"(",
")",
"{",
"if",
"(",
"next",
"==",
"null",
")",
"next",
"=",
"peek",
"(",
")",
";",
"return",
"next",
"!=",
"null",
";",
"}"
] | public override bool HasNext(){if (this.next == null){this.next = this.Peek();}return this.next != null;}
| train | false |
8,335 | public long byteCount(int packedIntsVersion, int valueCount, int bitsPerValue) {return (long) Math.ceil((double) valueCount * bitsPerValue / 8);}
| [
"public",
"long",
"byteCount",
"(",
"int",
"packedIntsVersion",
",",
"int",
"valueCount",
",",
"int",
"bitsPerValue",
")",
"{",
"return",
"(",
"long",
")",
"Math",
".",
"ceil",
"(",
"(",
"double",
")",
"valueCount",
"*",
"bitsPerValue",
"/",
"8",
")",
";... | public virtual long ByteCount(int packedIntsVersion, int valueCount, int bitsPerValue){return 8L * Int64Count(packedIntsVersion, valueCount, bitsPerValue);}
| train | false |
8,336 | public GetQueueUrlRequest(String queueName) {setQueueName(queueName);}
| [
"public",
"GetQueueUrlRequest",
"(",
"String",
"queueName",
")",
"{",
"setQueueName",
"(",
"queueName",
")",
";",
"}"
] | public GetQueueUrlRequest(string queueName){_queueName = queueName;}
| train | false |
8,338 | public ListInstanceGroupsResult listInstanceGroups(ListInstanceGroupsRequest request) {request = beforeClientExecution(request);return executeListInstanceGroups(request);}
| [
"public",
"ListInstanceGroupsResult",
"listInstanceGroups",
"(",
"ListInstanceGroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListInstanceGroups",
"(",
"request",
")",
";",
"}"
] | public virtual ListInstanceGroupsResponse ListInstanceGroups(ListInstanceGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListInstanceGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListInstanceGroupsResponseUnmarshaller.Instance;return Invoke<ListInstanceGroupsRespon... | train | true |
8,339 | public TruncateTokenFilterFactory(Map<String, String> args) {super(args);prefixLength = Byte.parseByte(get(args, PREFIX_LENGTH_KEY, "5"));if (prefixLength < 1)throw new IllegalArgumentException(PREFIX_LENGTH_KEY + " parameter must be a positive number: " + prefixLength);if (!args.isEmpty()) {throw new IllegalArgumentEx... | [
"public",
"TruncateTokenFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"prefixLength",
"=",
"Byte",
".",
"parseByte",
"(",
"get",
"(",
"args",
",",
"PREFIX_LENGTH_KEY",
",",
"\"5\"",
")",
... | public TruncateTokenFilterFactory(IDictionary<string, string> args): base(args){var prefixLengthString = Get(args, PREFIX_LENGTH_KEY, "5");prefixLength = sbyte.Parse(prefixLengthString, NumberStyles.Integer, CultureInfo.InvariantCulture);if (prefixLength < 1){throw new System.ArgumentException(PREFIX_LENGTH_KEY + " par... | train | false |
8,340 | public GetDetectorResult getDetector(GetDetectorRequest request) {request = beforeClientExecution(request);return executeGetDetector(request);}
| [
"public",
"GetDetectorResult",
"getDetector",
"(",
"GetDetectorRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDetector",
"(",
"request",
")",
";",
"}"
] | public virtual GetDetectorResponse GetDetector(GetDetectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDetectorRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDetectorResponseUnmarshaller.Instance;return Invoke<GetDetectorResponse>(request, options);}
| train | true |
8,341 | public void set(int index, int n) {if (count < index)throw new ArrayIndexOutOfBoundsException(index);else if (count == index)add(n);elseentries[index] = n;}
| [
"public",
"void",
"set",
"(",
"int",
"index",
",",
"int",
"n",
")",
"{",
"if",
"(",
"count",
"<",
"index",
")",
"throw",
"new",
"ArrayIndexOutOfBoundsException",
"(",
"index",
")",
";",
"else",
"if",
"(",
"count",
"==",
"index",
")",
"add",
"(",
"n",... | public virtual void Set(int index, int n){if (count < index){throw Sharpen.Extensions.CreateIndexOutOfRangeException(index);}else{if (count == index){Add(n);}else{entries[index] = n;}}}
| train | false |
8,342 | public StatePair(int s1, int s2) {this.s1 = s1;this.s2 = s2;this.s = -1;}
| [
"public",
"StatePair",
"(",
"int",
"s1",
",",
"int",
"s2",
")",
"{",
"this",
".",
"s1",
"=",
"s1",
";",
"this",
".",
"s2",
"=",
"s2",
";",
"this",
".",
"s",
"=",
"-",
"1",
";",
"}"
] | public StatePair(State s1, State s2){this.S1 = s1;this.S2 = s2;}
| train | false |
8,343 | public DetachDiskResult detachDisk(DetachDiskRequest request) {request = beforeClientExecution(request);return executeDetachDisk(request);}
| [
"public",
"DetachDiskResult",
"detachDisk",
"(",
"DetachDiskRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDetachDisk",
"(",
"request",
")",
";",
"}"
] | public virtual DetachDiskResponse DetachDisk(DetachDiskRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachDiskRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachDiskResponseUnmarshaller.Instance;return Invoke<DetachDiskResponse>(request, options);}
| train | true |
8,344 | public void clear() {count = 0;}
| [
"public",
"void",
"clear",
"(",
")",
"{",
"count",
"=",
"0",
";",
"}"
] | public virtual void Clear(){count = 0;}
| train | false |
8,346 | public FieldDoc(int doc, float score, Object[] fields, int shardIndex) {super(doc, score, shardIndex);this.fields = fields;}
| [
"public",
"FieldDoc",
"(",
"int",
"doc",
",",
"float",
"score",
",",
"Object",
"[",
"]",
"fields",
",",
"int",
"shardIndex",
")",
"{",
"super",
"(",
"doc",
",",
"score",
",",
"shardIndex",
")",
";",
"this",
".",
"fields",
"=",
"fields",
";",
"}"
] | public FieldDoc(int doc, float score, object[] fields, int shardIndex): base(doc, score, shardIndex){this.fields = fields;}
| train | false |
8,347 | public ResourceRecord(String value) {setValue(value);}
| [
"public",
"ResourceRecord",
"(",
"String",
"value",
")",
"{",
"setValue",
"(",
"value",
")",
";",
"}"
] | public ResourceRecord(string value){_value = value;}
| train | false |
8,348 | public String getAuthority() {return decode(authority);}
| [
"public",
"String",
"getAuthority",
"(",
")",
"{",
"return",
"decode",
"(",
"authority",
")",
";",
"}"
] | public string getAuthority(){return decode(authority);}
| train | false |
8,349 | public void flush() throws IOException {drain();output.flush();}
| [
"public",
"void",
"flush",
"(",
")",
"throws",
"IOException",
"{",
"drain",
"(",
")",
";",
"output",
".",
"flush",
"(",
")",
";",
"}"
] | public override void flush(){throw new System.NotImplementedException();}
| train | false |
8,350 | public ListMultipartUploadsRequest(String accountId, String vaultName) {setAccountId(accountId);setVaultName(vaultName);}
| [
"public",
"ListMultipartUploadsRequest",
"(",
"String",
"accountId",
",",
"String",
"vaultName",
")",
"{",
"setAccountId",
"(",
"accountId",
")",
";",
"setVaultName",
"(",
"vaultName",
")",
";",
"}"
] | public ListMultipartUploadsRequest(string accountId, string vaultName){_accountId = accountId;_vaultName = vaultName;}
| train | false |
8,351 | public UpdateRouteResponseResult updateRouteResponse(UpdateRouteResponseRequest request) {request = beforeClientExecution(request);return executeUpdateRouteResponse(request);}
| [
"public",
"UpdateRouteResponseResult",
"updateRouteResponse",
"(",
"UpdateRouteResponseRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateRouteResponse",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateRouteResponseResponse UpdateRouteResponse(UpdateRouteResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRouteResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRouteResponseResponseUnmarshaller.Instance;return Invoke<UpdateRouteResponse... | train | true |
8,352 | public boolean containsKey(Object name) {return get(name) != null;}
| [
"public",
"boolean",
"containsKey",
"(",
"Object",
"name",
")",
"{",
"return",
"get",
"(",
"name",
")",
"!=",
"null",
";",
"}"
] | public override bool ContainsKey(object name){return Get(name) != null;}
| train | false |
8,353 | public SimpleRateLimiter(double mbPerSec) {setMBPerSec(mbPerSec);lastNS = System.nanoTime();}
| [
"public",
"SimpleRateLimiter",
"(",
"double",
"mbPerSec",
")",
"{",
"setMBPerSec",
"(",
"mbPerSec",
")",
";",
"lastNS",
"=",
"System",
".",
"nanoTime",
"(",
")",
";",
"}"
] | public SimpleRateLimiter(double mbPerSec){SetMbPerSec(mbPerSec);}
| train | false |
8,354 | public void releaseSession(RemoteSession session) {session.disconnect();}
| [
"public",
"void",
"releaseSession",
"(",
"RemoteSession",
"session",
")",
"{",
"session",
".",
"disconnect",
"(",
")",
";",
"}"
] | public virtual void ReleaseSession(RemoteSession session){session.Disconnect();}
| train | false |
8,355 | public SetQuotaRequest() {super("CloudPhoto", "2017-07-11", "SetQuota", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"SetQuotaRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"SetQuota\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public SetQuotaRequest(): base("CloudPhoto", "2017-07-11", "SetQuota", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
8,356 | public ParserATNSimulator(Parser parser, ATN atn,DFA[] decisionToDFA,PredictionContextCache sharedContextCache){super(atn, sharedContextCache);this.parser = parser;this.decisionToDFA = decisionToDFA;}
| [
"public",
"ParserATNSimulator",
"(",
"Parser",
"parser",
",",
"ATN",
"atn",
",",
"DFA",
"[",
"]",
"decisionToDFA",
",",
"PredictionContextCache",
"sharedContextCache",
")",
"{",
"super",
"(",
"atn",
",",
"sharedContextCache",
")",
";",
"this",
".",
"parser",
"... | public ParserATNSimulator(Parser parser, ATN atn,DFA[] decisionToDFA,PredictionContextCache sharedContextCache): base(atn, sharedContextCache){this.parser = parser;this.decisionToDFA = decisionToDFA;}
| train | false |
8,357 | public void remove() {Object[] a = array;int removalIdx = removalIndex;if (modCount != expectedModCount) {throw new ConcurrentModificationException();}if (removalIdx < 0) {throw new IllegalStateException();}System.arraycopy(a, removalIdx + 1, a, removalIdx, remaining);a[--size] = null; removalIndex = -1;expectedModCou... | [
"public",
"void",
"remove",
"(",
")",
"{",
"Object",
"[",
"]",
"a",
"=",
"array",
";",
"int",
"removalIdx",
"=",
"removalIndex",
";",
"if",
"(",
"modCount",
"!=",
"expectedModCount",
")",
"{",
"throw",
"new",
"ConcurrentModificationException",
"(",
")",
";... | public virtual void remove(){object[] a = this._enclosing.array;int removalIdx = this.removalIndex;if (this._enclosing.modCount != this.expectedModCount){throw new java.util.ConcurrentModificationException();}if (removalIdx < 0){throw new System.InvalidOperationException();}System.Array.Copy(a, removalIdx + 1, a, remov... | train | false |
8,358 | public T getPointAt(int index) {return elements[index];}
| [
"public",
"T",
"getPointAt",
"(",
"int",
"index",
")",
"{",
"return",
"elements",
"[",
"index",
"]",
";",
"}"
] | public T GetPointAt(int index) {return elements[index];}
| train | false |
8,359 | public StatusCommand setWorkingTreeIt(WorkingTreeIterator workingTreeIt) {this.workingTreeIt = workingTreeIt;return this;}
| [
"public",
"StatusCommand",
"setWorkingTreeIt",
"(",
"WorkingTreeIterator",
"workingTreeIt",
")",
"{",
"this",
".",
"workingTreeIt",
"=",
"workingTreeIt",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.StatusCommand SetWorkingTreeIt(WorkingTreeIterator workingTreeIt){this.workingTreeIt = workingTreeIt;return this;}
| train | false |
8,360 | public CharBlockArray append(CharSequence chars) {return append(chars, 0, chars.length());}
| [
"public",
"CharBlockArray",
"append",
"(",
"CharSequence",
"chars",
")",
"{",
"return",
"append",
"(",
"chars",
",",
"0",
",",
"chars",
".",
"length",
"(",
")",
")",
";",
"}"
] | public virtual CharBlockArray Append(ICharSequence chars){return Append(chars, 0, chars.Length);}
| train | false |
8,361 | public void clear() {current.clear();}
| [
"public",
"void",
"clear",
"(",
")",
"{",
"current",
".",
"clear",
"(",
")",
";",
"}"
] | public override void Clear(){current.Clear();}
| train | false |
8,362 | public String toFormulaString() {return FormulaError.forInt(field_1_error_code).getString();}
| [
"public",
"String",
"toFormulaString",
"(",
")",
"{",
"return",
"FormulaError",
".",
"forInt",
"(",
"field_1_error_code",
")",
".",
"getString",
"(",
")",
";",
"}"
] | public override String ToFormulaString(){return HSSFErrorConstants.GetText(field_1_error_code);}
| train | false |
8,363 | public FtPioGrbitSubRecord clone() {return copy();}
| [
"public",
"FtPioGrbitSubRecord",
"clone",
"(",
")",
"{",
"return",
"copy",
"(",
")",
";",
"}"
] | public override Object Clone(){FtPioGrbitSubRecord rec = new FtPioGrbitSubRecord();rec.flags = this.flags;return rec;}
| train | false |
8,364 | public PositionSpan(int start, int end) {this.start = start;this.end = end;}
| [
"public",
"PositionSpan",
"(",
"int",
"start",
",",
"int",
"end",
")",
"{",
"this",
".",
"start",
"=",
"start",
";",
"this",
".",
"end",
"=",
"end",
";",
"}"
] | public PositionSpan(int start, int end){this.Start = start;this.End = end;}
| train | false |
8,365 | public void setParams(String params) {super.setParams(params);StringTokenizer st = new StringTokenizer(params, ",");while (st.hasMoreTokens()) {String param = st.nextToken();StringTokenizer expr = new StringTokenizer(param, ":");String key = expr.nextToken();String value = expr.nextToken();if (key.equals("impl")) {if (... | [
"public",
"void",
"setParams",
"(",
"String",
"params",
")",
"{",
"super",
".",
"setParams",
"(",
"params",
")",
";",
"StringTokenizer",
"st",
"=",
"new",
"StringTokenizer",
"(",
"params",
",",
"\",\"",
")",
";",
"while",
"(",
"st",
".",
"hasMoreTokens",
... | public override void SetParams(string @params){base.SetParams(@params);StringTokenizer st = new StringTokenizer(@params, ",");while (st.MoveNext()){string param = st.Current;StringTokenizer expr = new StringTokenizer(param, ":");string key = expr.MoveNext() ? expr.Current : string.Empty;string value = expr.MoveNext() ?... | train | false |
8,366 | public DeleteBuildResult deleteBuild(DeleteBuildRequest request) {request = beforeClientExecution(request);return executeDeleteBuild(request);}
| [
"public",
"DeleteBuildResult",
"deleteBuild",
"(",
"DeleteBuildRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteBuild",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteBuildResponse DeleteBuild(DeleteBuildRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteBuildRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteBuildResponseUnmarshaller.Instance;return Invoke<DeleteBuildResponse>(request, options);}
| train | true |
8,367 | public DescribeVolumeStatusResult describeVolumeStatus() {return describeVolumeStatus(new DescribeVolumeStatusRequest());}
| [
"public",
"DescribeVolumeStatusResult",
"describeVolumeStatus",
"(",
")",
"{",
"return",
"describeVolumeStatus",
"(",
"new",
"DescribeVolumeStatusRequest",
"(",
")",
")",
";",
"}"
] | public virtual DescribeVolumeStatusResponse DescribeVolumeStatus(){return DescribeVolumeStatus(new DescribeVolumeStatusRequest());}
| train | false |
8,368 | public String getFlags() {return f;}
| [
"public",
"String",
"getFlags",
"(",
")",
"{",
"return",
"f",
";",
"}"
] | public virtual string getFlags(){return f;}
| train | false |
8,369 | public ShowNoteCommand setObjectId(RevObject id) {checkCallable();this.id = id;return this;}
| [
"public",
"ShowNoteCommand",
"setObjectId",
"(",
"RevObject",
"id",
")",
"{",
"checkCallable",
"(",
")",
";",
"this",
".",
"id",
"=",
"id",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.ShowNoteCommand SetObjectId(RevObject id){CheckCallable();this.id = id;return this;}
| train | false |
8,370 | public PatternReplaceFilter create(TokenStream input) {return new PatternReplaceFilter(input, pattern, replacement, replaceAll);}
| [
"public",
"PatternReplaceFilter",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"PatternReplaceFilter",
"(",
"input",
",",
"pattern",
",",
"replacement",
",",
"replaceAll",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new PatternReplaceFilter(input, pattern, replacement, replaceAll);}
| train | false |
8,371 | public void reset() throws IOException {drain();output.writeByte(TC_RESET);resetState();}
| [
"public",
"void",
"reset",
"(",
")",
"throws",
"IOException",
"{",
"drain",
"(",
")",
";",
"output",
".",
"writeByte",
"(",
"TC_RESET",
")",
";",
"resetState",
"(",
")",
";",
"}"
] | public virtual void reset(){throw new System.NotImplementedException();}
| train | false |
8,372 | public Ptg get3DReferencePtg(CellReference cr, SheetIdentifier sheet) {int extIx = getSheetExtIx(sheet);return new Ref3DPtg(cr, extIx);}
| [
"public",
"Ptg",
"get3DReferencePtg",
"(",
"CellReference",
"cr",
",",
"SheetIdentifier",
"sheet",
")",
"{",
"int",
"extIx",
"=",
"getSheetExtIx",
"(",
"sheet",
")",
";",
"return",
"new",
"Ref3DPtg",
"(",
"cr",
",",
"extIx",
")",
";",
"}"
] | public Ptg Get3DReferencePtg(CellReference cr, SheetIdentifier sheet){int extIx = GetSheetExtIx(sheet);return new Ref3DPtg(cr, extIx);}
| train | false |
8,374 | public TokenStream create(TokenStream input) {return new ICUFoldingFilter(input, normalizer);}
| [
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"ICUFoldingFilter",
"(",
"input",
",",
"normalizer",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new ICUFoldingFilter(input);}
| train | false |
8,375 | public CharSequence toQueryString(EscapeQuerySyntax escaper) {return "[NTF]";}
| [
"public",
"CharSequence",
"toQueryString",
"(",
"EscapeQuerySyntax",
"escaper",
")",
"{",
"return",
"\"[NTF]\"",
";",
"}"
] | public override string ToQueryString(IEscapeQuerySyntax escaper){return "[NTF]";}
| train | false |
8,376 | public StashCreateCommand setWorkingDirectoryMessage(String message) {workingDirectoryMessage = message;return this;}
| [
"public",
"StashCreateCommand",
"setWorkingDirectoryMessage",
"(",
"String",
"message",
")",
"{",
"workingDirectoryMessage",
"=",
"message",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.StashCreateCommand SetWorkingDirectoryMessage(string message){workingDirectoryMessage = message;return this;}
| train | false |
8,377 | public SheetRangeEvaluator(int onlySheetIndex, SheetRefEvaluator sheetEvaluator) {this(onlySheetIndex, onlySheetIndex, new SheetRefEvaluator[] {sheetEvaluator});}
| [
"public",
"SheetRangeEvaluator",
"(",
"int",
"onlySheetIndex",
",",
"SheetRefEvaluator",
"sheetEvaluator",
")",
"{",
"this",
"(",
"onlySheetIndex",
",",
"onlySheetIndex",
",",
"new",
"SheetRefEvaluator",
"[",
"]",
"{",
"sheetEvaluator",
"}",
")",
";",
"}"
] | public SheetRangeEvaluator(int onlySheetIndex, SheetRefEvaluator sheetEvaluator): this(onlySheetIndex, onlySheetIndex, new SheetRefEvaluator[] { sheetEvaluator });
| train | false |
8,378 | public static long[] grow(long[] array, int minSize) {assert minSize >= 0: "size must be positive (got " + minSize + "): likely integer overflow?";if (array.length < minSize) {return growExact(array, oversize(minSize, Long.BYTES));} else return array;}
| [
"public",
"static",
"long",
"[",
"]",
"grow",
"(",
"long",
"[",
"]",
"array",
",",
"int",
"minSize",
")",
"{",
"assert",
"minSize",
">=",
"0",
":",
"\"size must be positive (got \"",
"+",
"minSize",
"+",
"\"): likely integer overflow?\"",
";",
"if",
"(",
"ar... | public static int[] Grow(int[] array, int minSize){Debug.Assert(minSize >= 0, "size must be positive (got " + minSize + "): likely integer overflow?");if (array.Length < minSize){int[] newArray = new int[Oversize(minSize, RamUsageEstimator.NUM_BYTES_INT32)];Array.Copy(array, 0, newArray, 0, array.Length);return newArra... | train | false |
8,379 | public static RevFilter create(Collection<RevFilter> list) {if (list.size() < 2)throw new IllegalArgumentException(JGitText.get().atLeastTwoFiltersNeeded);final RevFilter[] subfilters = new RevFilter[list.size()];list.toArray(subfilters);if (subfilters.length == 2)return create(subfilters[0], subfilters[1]);return new ... | [
"public",
"static",
"RevFilter",
"create",
"(",
"Collection",
"<",
"RevFilter",
">",
"list",
")",
"{",
"if",
"(",
"list",
".",
"size",
"(",
")",
"<",
"2",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"atL... | public static RevFilter Create(ICollection<RevFilter> list){if (list.Count < 2){throw new ArgumentException(JGitText.Get().atLeastTwoFiltersNeeded);}RevFilter[] subfilters = new RevFilter[list.Count];Sharpen.Collections.ToArray(list, subfilters);if (subfilters.Length == 2){return Create(subfilters[0], subfilters[1]);}r... | train | false |
8,380 | public DeregisterOnPremisesInstanceResult deregisterOnPremisesInstance(DeregisterOnPremisesInstanceRequest request) {request = beforeClientExecution(request);return executeDeregisterOnPremisesInstance(request);}
| [
"public",
"DeregisterOnPremisesInstanceResult",
"deregisterOnPremisesInstance",
"(",
"DeregisterOnPremisesInstanceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeregisterOnPremisesInstance",
"(",
"request",
"... | public virtual DeregisterOnPremisesInstanceResponse DeregisterOnPremisesInstance(DeregisterOnPremisesInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterOnPremisesInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterOnPremisesInstanceResponseUnmarshall... | train | true |
8,381 | public ListDeliverabilityTestReportsResult listDeliverabilityTestReports(ListDeliverabilityTestReportsRequest request) {request = beforeClientExecution(request);return executeListDeliverabilityTestReports(request);}
| [
"public",
"ListDeliverabilityTestReportsResult",
"listDeliverabilityTestReports",
"(",
"ListDeliverabilityTestReportsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListDeliverabilityTestReports",
"(",
"request",... | public virtual ListDeliverabilityTestReportsResponse ListDeliverabilityTestReports(ListDeliverabilityTestReportsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeliverabilityTestReportsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeliverabilityTestReportsResponseUnmar... | train | true |
8,382 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1) {double dn;try {ValueEval ve1 = OperandResolver.getSingleValue(arg1, srcRowIndex, srcColumnIndex);dn = OperandResolver.coerceValueToDouble(ve1);} catch (EvaluationException e1) {return ErrorEval.VALUE_INVALID;}if (dn < 1.0) {r... | [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"arg0",
",",
"ValueEval",
"arg1",
")",
"{",
"double",
"dn",
";",
"try",
"{",
"ValueEval",
"ve1",
"=",
"OperandResolver",
".",
"getSingleValue",
"(",
... | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1){double dn;try{ValueEval ve1 = OperandResolver.GetSingleValue(arg1, srcRowIndex, srcColumnIndex);dn = OperandResolver.CoerceValueToDouble(ve1);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}if (dn < 1.0){... | train | false |
8,383 | public ByteArrayDataInput() {reset(BytesRef.EMPTY_BYTES);}
| [
"public",
"ByteArrayDataInput",
"(",
")",
"{",
"reset",
"(",
"BytesRef",
".",
"EMPTY_BYTES",
")",
";",
"}"
] | public ByteArrayDataInput(){Reset(BytesRef.EMPTY_BYTES);}
| train | false |
8,384 | public ByteBuffer putDouble(double value) {throw new ReadOnlyBufferException();}
| [
"public",
"ByteBuffer",
"putDouble",
"(",
"double",
"value",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] | public override java.nio.ByteBuffer putDouble(double value){throw new System.NotImplementedException();}
| train | false |
8,385 | public ChangeMessageVisibilityResult changeMessageVisibility(ChangeMessageVisibilityRequest request) {request = beforeClientExecution(request);return executeChangeMessageVisibility(request);}
| [
"public",
"ChangeMessageVisibilityResult",
"changeMessageVisibility",
"(",
"ChangeMessageVisibilityRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeChangeMessageVisibility",
"(",
"request",
")",
";",
"}"
] | public virtual ChangeMessageVisibilityResponse ChangeMessageVisibility(ChangeMessageVisibilityRequest request){var options = new InvokeOptions();options.RequestMarshaller = ChangeMessageVisibilityRequestMarshaller.Instance;options.ResponseUnmarshaller = ChangeMessageVisibilityResponseUnmarshaller.Instance;return Invoke... | train | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.