id_within_dataset
int64 0
10.3k
| snippet
stringlengths 29
1.4k
| tokens
listlengths 10
314
| cs
stringlengths 28
1.38k
| split_within_dataset
stringclasses 1
value | is_duplicated
bool 2
classes |
|---|---|---|---|---|---|
1,502
|
public PipedInputStream(PipedOutputStream out) throws IOException {connect(out);}
|
[
"public",
"PipedInputStream",
"(",
"PipedOutputStream",
"out",
")",
"throws",
"IOException",
"{",
"connect",
"(",
"out",
")",
";",
"}"
] |
public PipedInputStream(java.io.PipedOutputStream @out){throw new System.NotImplementedException();}
|
train
| false
|
1,503
|
public IntBuffer slice() {byteBuffer.limit(limit * SizeOf.INT);byteBuffer.position(position * SizeOf.INT);ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());IntBuffer result = new IntToByteBufferAdapter(bb);byteBuffer.clear();return result;}
|
[
"public",
"IntBuffer",
"slice",
"(",
")",
"{",
"byteBuffer",
".",
"limit",
"(",
"limit",
"*",
"SizeOf",
".",
"INT",
")",
";",
"byteBuffer",
".",
"position",
"(",
"position",
"*",
"SizeOf",
".",
"INT",
")",
";",
"ByteBuffer",
"bb",
"=",
"byteBuffer",
".",
"slice",
"(",
")",
".",
"order",
"(",
"byteBuffer",
".",
"order",
"(",
")",
")",
";",
"IntBuffer",
"result",
"=",
"new",
"IntToByteBufferAdapter",
"(",
"bb",
")",
";",
"byteBuffer",
".",
"clear",
"(",
")",
";",
"return",
"result",
";",
"}"
] |
public override java.nio.IntBuffer slice(){byteBuffer.limit(_limit * libcore.io.SizeOf.INT);byteBuffer.position(_position * libcore.io.SizeOf.INT);java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());java.nio.IntBuffer result = new java.nio.IntToByteBufferAdapter(bb);byteBuffer.clear();return result;}
|
train
| false
|
1,504
|
public CreateDeploymentConfigResult createDeploymentConfig(CreateDeploymentConfigRequest request) {request = beforeClientExecution(request);return executeCreateDeploymentConfig(request);}
|
[
"public",
"CreateDeploymentConfigResult",
"createDeploymentConfig",
"(",
"CreateDeploymentConfigRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateDeploymentConfig",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateDeploymentConfigResponse CreateDeploymentConfig(CreateDeploymentConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDeploymentConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDeploymentConfigResponseUnmarshaller.Instance;return Invoke<CreateDeploymentConfigResponse>(request, options);}
|
train
| true
|
1,505
|
public HSSFColor findColor(byte red, byte green, byte blue){byte[] b = _palette.getColor(PaletteRecord.FIRST_COLOR_INDEX);for (short i = PaletteRecord.FIRST_COLOR_INDEX; b != null;b = _palette.getColor(++i)){if (b[0] == red && b[1] == green && b[2] == blue){return new CustomColor(i, b);}}return null;}
|
[
"public",
"HSSFColor",
"findColor",
"(",
"byte",
"red",
",",
"byte",
"green",
",",
"byte",
"blue",
")",
"{",
"byte",
"[",
"]",
"b",
"=",
"_palette",
".",
"getColor",
"(",
"PaletteRecord",
".",
"FIRST_COLOR_INDEX",
")",
";",
"for",
"(",
"short",
"i",
"=",
"PaletteRecord",
".",
"FIRST_COLOR_INDEX",
";",
"b",
"!=",
"null",
";",
"b",
"=",
"_palette",
".",
"getColor",
"(",
"++",
"i",
")",
")",
"{",
"if",
"(",
"b",
"[",
"0",
"]",
"==",
"red",
"&&",
"b",
"[",
"1",
"]",
"==",
"green",
"&&",
"b",
"[",
"2",
"]",
"==",
"blue",
")",
"{",
"return",
"new",
"CustomColor",
"(",
"i",
",",
"b",
")",
";",
"}",
"}",
"return",
"null",
";",
"}"
] |
public HSSFColor FindColor(byte red, byte green, byte blue){byte[] b = palette.GetColor(PaletteRecord.FIRST_COLOR_INDEX);for (short i = (short)PaletteRecord.FIRST_COLOR_INDEX; b != null;b = palette.GetColor(++i)){if (b[0] == red && b[1] == green && b[2] == blue){return new CustomColor(i, b);}}return null;}
|
train
| false
|
1,506
|
public boolean canEncode(char c) {return implCanEncode(CharBuffer.wrap(new char[] { c }));}
|
[
"public",
"boolean",
"canEncode",
"(",
"char",
"c",
")",
"{",
"return",
"implCanEncode",
"(",
"CharBuffer",
".",
"wrap",
"(",
"new",
"char",
"[",
"]",
"{",
"c",
"}",
")",
")",
";",
"}"
] |
public virtual bool canEncode(char c){return implCanEncode(java.nio.CharBuffer.wrap(new char[] { c }));}
|
train
| false
|
1,507
|
public NetworkInterface(String macAddress) {mac = macAddress;path = "/network/interfaces/macs/" + mac + "/";}
|
[
"public",
"NetworkInterface",
"(",
"String",
"macAddress",
")",
"{",
"mac",
"=",
"macAddress",
";",
"path",
"=",
"\"/network/interfaces/macs/\"",
"+",
"mac",
"+",
"\"/\"",
";",
"}"
] |
public NetworkInterface(string macAddress){_mac = macAddress;_path = string.Format(CultureInfo.InvariantCulture, "/network/interfaces/macs/{0}/", _mac);}
|
train
| false
|
1,508
|
public final boolean isAccept(int state) {return accept.get(state);}
|
[
"public",
"final",
"boolean",
"isAccept",
"(",
"int",
"state",
")",
"{",
"return",
"accept",
".",
"get",
"(",
"state",
")",
";",
"}"
] |
public bool IsAccept(int state){return m_accept[state];}
|
train
| false
|
1,509
|
public String toStringTree() {return toStringTree((List<String>)null);}
|
[
"public",
"String",
"toStringTree",
"(",
")",
"{",
"return",
"toStringTree",
"(",
"(",
"List",
"<",
"String",
">",
")",
"null",
")",
";",
"}"
] |
public virtual string ToStringTree(){return ToStringTree((IList<string>)null);}
|
train
| false
|
1,510
|
public TermRangeQuery(String field, BytesRef lowerTerm, BytesRef upperTerm, boolean includeLower, boolean includeUpper) {super(new Term(field, lowerTerm), toAutomaton(lowerTerm, upperTerm, includeLower, includeUpper), Integer.MAX_VALUE, true);this.lowerTerm = lowerTerm;this.upperTerm = upperTerm;this.includeLower = includeLower;this.includeUpper = includeUpper;}
|
[
"public",
"TermRangeQuery",
"(",
"String",
"field",
",",
"BytesRef",
"lowerTerm",
",",
"BytesRef",
"upperTerm",
",",
"boolean",
"includeLower",
",",
"boolean",
"includeUpper",
")",
"{",
"super",
"(",
"new",
"Term",
"(",
"field",
",",
"lowerTerm",
")",
",",
"toAutomaton",
"(",
"lowerTerm",
",",
"upperTerm",
",",
"includeLower",
",",
"includeUpper",
")",
",",
"Integer",
".",
"MAX_VALUE",
",",
"true",
")",
";",
"this",
".",
"lowerTerm",
"=",
"lowerTerm",
";",
"this",
".",
"upperTerm",
"=",
"upperTerm",
";",
"this",
".",
"includeLower",
"=",
"includeLower",
";",
"this",
".",
"includeUpper",
"=",
"includeUpper",
";",
"}"
] |
public TermRangeQuery(string field, BytesRef lowerTerm, BytesRef upperTerm, bool includeLower, bool includeUpper): base(field){this.lowerTerm = lowerTerm;this.upperTerm = upperTerm;this.includeLower = includeLower;this.includeUpper = includeUpper;}
|
train
| false
|
1,511
|
public ScanResult scan(String tableName, java.util.List<String> attributesToGet) {return scan(new ScanRequest().withTableName(tableName).withAttributesToGet(attributesToGet));}
|
[
"public",
"ScanResult",
"scan",
"(",
"String",
"tableName",
",",
"java",
".",
"util",
".",
"List",
"<",
"String",
">",
"attributesToGet",
")",
"{",
"return",
"scan",
"(",
"new",
"ScanRequest",
"(",
")",
".",
"withTableName",
"(",
"tableName",
")",
".",
"withAttributesToGet",
"(",
"attributesToGet",
")",
")",
";",
"}"
] |
public virtual ScanResponse Scan(string tableName, List<string> attributesToGet){var request = new ScanRequest();request.TableName = tableName;request.AttributesToGet = attributesToGet;return Scan(request);}
|
train
| true
|
1,512
|
public StopLabelingJobResult stopLabelingJob(StopLabelingJobRequest request) {request = beforeClientExecution(request);return executeStopLabelingJob(request);}
|
[
"public",
"StopLabelingJobResult",
"stopLabelingJob",
"(",
"StopLabelingJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStopLabelingJob",
"(",
"request",
")",
";",
"}"
] |
public virtual StopLabelingJobResponse StopLabelingJob(StopLabelingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopLabelingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopLabelingJobResponseUnmarshaller.Instance;return Invoke<StopLabelingJobResponse>(request, options);}
|
train
| true
|
1,513
|
public PublishSchemaResult publishSchema(PublishSchemaRequest request) {request = beforeClientExecution(request);return executePublishSchema(request);}
|
[
"public",
"PublishSchemaResult",
"publishSchema",
"(",
"PublishSchemaRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePublishSchema",
"(",
"request",
")",
";",
"}"
] |
public virtual PublishSchemaResponse PublishSchema(PublishSchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = PublishSchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = PublishSchemaResponseUnmarshaller.Instance;return Invoke<PublishSchemaResponse>(request, options);}
|
train
| true
|
1,514
|
public DeleteAttributesRequest(String domainName, String itemName, java.util.List<Attribute> attributes) {setDomainName(domainName);setItemName(itemName);setAttributes(attributes);}
|
[
"public",
"DeleteAttributesRequest",
"(",
"String",
"domainName",
",",
"String",
"itemName",
",",
"java",
".",
"util",
".",
"List",
"<",
"Attribute",
">",
"attributes",
")",
"{",
"setDomainName",
"(",
"domainName",
")",
";",
"setItemName",
"(",
"itemName",
")",
";",
"setAttributes",
"(",
"attributes",
")",
";",
"}"
] |
public DeleteAttributesRequest(string domainName, string itemName, List<Attribute> attributes){_domainName = domainName;_itemName = itemName;_attributes = attributes;}
|
train
| false
|
1,515
|
public ObjectId toObjectId() {return this;}
|
[
"public",
"ObjectId",
"toObjectId",
"(",
")",
"{",
"return",
"this",
";",
"}"
] |
public override NGit.ObjectId ToObjectId(){return this;}
|
train
| false
|
1,516
|
@Override public ListIterator<E> listIterator() {return listIterator(0);}
|
[
"@",
"Override",
"public",
"ListIterator",
"<",
"E",
">",
"listIterator",
"(",
")",
"{",
"return",
"listIterator",
"(",
"0",
")",
";",
"}"
] |
public virtual java.util.ListIterator<E> listIterator(){object[] snapshot = elements;return new java.util.concurrent.CopyOnWriteArrayList.CowIterator<E>(snapshot, 0,snapshot.Length);}
|
train
| false
|
1,517
|
public ExternalBookBlock() {_externalBookRecord = SupBookRecord.createAddInFunctions();_externalNameRecords = new ExternalNameRecord[0];_crnBlocks = new CRNBlock[0];}
|
[
"public",
"ExternalBookBlock",
"(",
")",
"{",
"_externalBookRecord",
"=",
"SupBookRecord",
".",
"createAddInFunctions",
"(",
")",
";",
"_externalNameRecords",
"=",
"new",
"ExternalNameRecord",
"[",
"0",
"]",
";",
"_crnBlocks",
"=",
"new",
"CRNBlock",
"[",
"0",
"]",
";",
"}"
] |
public ExternalBookBlock(){_externalBookRecord = SupBookRecord.CreateAddInFunctions();_externalNameRecords = new ExternalNameRecord[0];_crnBlocks = new CRNBlock[0];}
|
train
| false
|
1,518
|
public String getFragment() {return decode(fragment);}
|
[
"public",
"String",
"getFragment",
"(",
")",
"{",
"return",
"decode",
"(",
"fragment",
")",
";",
"}"
] |
public string getFragment(){return decode(fragment);}
|
train
| false
|
1,520
|
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 java.nio.ReadOnlyBufferException();}
|
train
| false
|
1,521
|
public static InternalWorkbook createStubWorkbook(ExternSheetRecord[] externs,BoundSheetRecord[] bounds) {return createStubWorkbook(externs, bounds, null);}
|
[
"public",
"static",
"InternalWorkbook",
"createStubWorkbook",
"(",
"ExternSheetRecord",
"[",
"]",
"externs",
",",
"BoundSheetRecord",
"[",
"]",
"bounds",
")",
"{",
"return",
"createStubWorkbook",
"(",
"externs",
",",
"bounds",
",",
"null",
")",
";",
"}"
] |
public static InternalWorkbook CreateStubWorkbook(ExternSheetRecord[] externs,BoundSheetRecord[] bounds){return CreateStubWorkbook(externs, bounds, null);}
|
train
| false
|
1,522
|
public IndexDocumentsResult indexDocuments(IndexDocumentsRequest request) {request = beforeClientExecution(request);return executeIndexDocuments(request);}
|
[
"public",
"IndexDocumentsResult",
"indexDocuments",
"(",
"IndexDocumentsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeIndexDocuments",
"(",
"request",
")",
";",
"}"
] |
public virtual IndexDocumentsResponse IndexDocuments(IndexDocumentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = IndexDocumentsRequestMarshaller.Instance;options.ResponseUnmarshaller = IndexDocumentsResponseUnmarshaller.Instance;return Invoke<IndexDocumentsResponse>(request, options);}
|
train
| true
|
1,523
|
public String toStringTree(Parser recog) {return Trees.toStringTree(this, recog);}
|
[
"public",
"String",
"toStringTree",
"(",
"Parser",
"recog",
")",
"{",
"return",
"Trees",
".",
"toStringTree",
"(",
"this",
",",
"recog",
")",
";",
"}"
] |
public virtual string ToStringTree(Parser recog){return Trees.ToStringTree(this, recog);}
|
train
| false
|
1,524
|
public FieldsConsumer fieldsConsumer(SegmentWriteState state)throws IOException {if (delegatePostingsFormat == null) {throw new UnsupportedOperationException("Error - " + getClass().getName()+ " has been constructed without a choice of PostingsFormat");}FieldsConsumer fieldsConsumer = delegatePostingsFormat.fieldsConsumer(state);return new BloomFilteredFieldsConsumer(fieldsConsumer, state);}
|
[
"public",
"FieldsConsumer",
"fieldsConsumer",
"(",
"SegmentWriteState",
"state",
")",
"throws",
"IOException",
"{",
"if",
"(",
"delegatePostingsFormat",
"==",
"null",
")",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
"\"Error - \"",
"+",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
"+",
"\" has been constructed without a choice of PostingsFormat\"",
")",
";",
"}",
"FieldsConsumer",
"fieldsConsumer",
"=",
"delegatePostingsFormat",
".",
"fieldsConsumer",
"(",
"state",
")",
";",
"return",
"new",
"BloomFilteredFieldsConsumer",
"(",
"fieldsConsumer",
",",
"state",
")",
";",
"}"
] |
public override FieldsConsumer FieldsConsumer(SegmentWriteState state){if (_delegatePostingsFormat == null){throw new InvalidOperationException("Error - constructed without a choice of PostingsFormat");}return new BloomFilteredFieldsConsumer(this, _delegatePostingsFormat.FieldsConsumer(state), state);}
|
train
| false
|
1,525
|
public String toString() {return super.toString() + "(\"" + pattern.pattern() + "\")";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"super",
".",
"toString",
"(",
")",
"+",
"\"(\\\"\"",
"+",
"pattern",
".",
"pattern",
"(",
")",
"+",
"\"\\\")\"",
";",
"}"
] |
public override string ToString(){return base.ToString() + "(\"" + pattern.Pattern() + "\")";}
|
train
| false
|
1,526
|
public static String stripTags(String buf, int start) {if (start>0) {buf = buf.substring(start);}return buf.replaceAll("<[^>]*>", " ");}
|
[
"public",
"static",
"String",
"stripTags",
"(",
"String",
"buf",
",",
"int",
"start",
")",
"{",
"if",
"(",
"start",
">",
"0",
")",
"{",
"buf",
"=",
"buf",
".",
"substring",
"(",
"start",
")",
";",
"}",
"return",
"buf",
".",
"replaceAll",
"(",
"\"<[^>]*>\"",
",",
"\" \"",
")",
";",
"}"
] |
public static string StripTags(StringBuilder buf, int start){return StripTags(buf.ToString(start, buf.Length - start), 0);}
|
train
| false
|
1,527
|
public Reader create(Reader input) {return new JapaneseIterationMarkCharFilter(input, normalizeKanji, normalizeKana);}
|
[
"public",
"Reader",
"create",
"(",
"Reader",
"input",
")",
"{",
"return",
"new",
"JapaneseIterationMarkCharFilter",
"(",
"input",
",",
"normalizeKanji",
",",
"normalizeKana",
")",
";",
"}"
] |
public override TextReader Create(TextReader input){return new JapaneseIterationMarkCharFilter(input, normalizeKanji, normalizeKana);}
|
train
| false
|
1,528
|
public int getKeyProgressIncrement() {return mKeyProgressIncrement;}
|
[
"public",
"int",
"getKeyProgressIncrement",
"(",
")",
"{",
"return",
"mKeyProgressIncrement",
";",
"}"
] |
public virtual int getKeyProgressIncrement(){return mKeyProgressIncrement;}
|
train
| false
|
1,530
|
public long copyUsingLengthPrefix(BytesRef bytes) {if (bytes.length >= 32768) {throw new IllegalArgumentException("max length is 32767 (got " + bytes.length + ")");}if (upto + bytes.length + 2 > blockSize) {if (bytes.length + 2 > blockSize) {throw new IllegalArgumentException("block size " + blockSize + " is too small to store length " + bytes.length + " bytes");}if (currentBlock != null) {addBlock(currentBlock);}currentBlock = new byte[blockSize];upto = 0;}final long pointer = getPointer();if (bytes.length < 128) {currentBlock[upto++] = (byte) bytes.length;} else {currentBlock[upto++] = (byte) (0x80 | (bytes.length >> 8));currentBlock[upto++] = (byte) (bytes.length & 0xff);}System.arraycopy(bytes.bytes, bytes.offset, currentBlock, upto, bytes.length);upto += bytes.length;return pointer;}
|
[
"public",
"long",
"copyUsingLengthPrefix",
"(",
"BytesRef",
"bytes",
")",
"{",
"if",
"(",
"bytes",
".",
"length",
">=",
"32768",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"max length is 32767 (got \"",
"+",
"bytes",
".",
"length",
"+",
"\")\"",
")",
";",
"}",
"if",
"(",
"upto",
"+",
"bytes",
".",
"length",
"+",
"2",
">",
"blockSize",
")",
"{",
"if",
"(",
"bytes",
".",
"length",
"+",
"2",
">",
"blockSize",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"block size \"",
"+",
"blockSize",
"+",
"\" is too small to store length \"",
"+",
"bytes",
".",
"length",
"+",
"\" bytes\"",
")",
";",
"}",
"if",
"(",
"currentBlock",
"!=",
"null",
")",
"{",
"addBlock",
"(",
"currentBlock",
")",
";",
"}",
"currentBlock",
"=",
"new",
"byte",
"[",
"blockSize",
"]",
";",
"upto",
"=",
"0",
";",
"}",
"final",
"long",
"pointer",
"=",
"getPointer",
"(",
")",
";",
"if",
"(",
"bytes",
".",
"length",
"<",
"128",
")",
"{",
"currentBlock",
"[",
"upto",
"++",
"]",
"=",
"(",
"byte",
")",
"bytes",
".",
"length",
";",
"}",
"else",
"{",
"currentBlock",
"[",
"upto",
"++",
"]",
"=",
"(",
"byte",
")",
"(",
"0x80",
"|",
"(",
"bytes",
".",
"length",
">",
">",
"8",
")",
")",
";",
"currentBlock",
"[",
"upto",
"++",
"]",
"=",
"(",
"byte",
")",
"(",
"bytes",
".",
"length",
"&",
"0xff",
")",
";",
"}",
"System",
".",
"arraycopy",
"(",
"bytes",
".",
"bytes",
",",
"bytes",
".",
"offset",
",",
"currentBlock",
",",
"upto",
",",
"bytes",
".",
"length",
")",
";",
"upto",
"+=",
"bytes",
".",
"length",
";",
"return",
"pointer",
";",
"}"
] |
public long CopyUsingLengthPrefix(BytesRef bytes){if (bytes.Length >= 32768){throw new System.ArgumentException("max length is 32767 (got " + bytes.Length + ")");}if (upto + bytes.Length + 2 > blockSize){if (bytes.Length + 2 > blockSize){throw new System.ArgumentException("block size " + blockSize + " is too small to store length " + bytes.Length + " bytes");}if (currentBlock != null){blocks.Add(currentBlock);blockEnd.Add(upto);}currentBlock = new byte[blockSize];upto = 0;}long pointer = GetPointer();if (bytes.Length < 128){currentBlock[upto++] = (byte)bytes.Length;}else{currentBlock[upto++] = unchecked((byte)(0x80 | (bytes.Length >> 8)));currentBlock[upto++] = unchecked((byte)(bytes.Length & 0xff));}Array.Copy(bytes.Bytes, bytes.Offset, currentBlock, upto, bytes.Length);upto += bytes.Length;return pointer;}
|
train
| false
|
1,531
|
public HighFreqTerm(int[] docIDs, int[] freqs, int[][] positions, byte[][][] payloads, long totalTermFreq) {this.docIDs = docIDs;this.freqs = freqs;this.positions = positions;this.payloads = payloads;this.totalTermFreq = totalTermFreq;}
|
[
"public",
"HighFreqTerm",
"(",
"int",
"[",
"]",
"docIDs",
",",
"int",
"[",
"]",
"freqs",
",",
"int",
"[",
"]",
"[",
"]",
"positions",
",",
"byte",
"[",
"]",
"[",
"]",
"[",
"]",
"payloads",
",",
"long",
"totalTermFreq",
")",
"{",
"this",
".",
"docIDs",
"=",
"docIDs",
";",
"this",
".",
"freqs",
"=",
"freqs",
";",
"this",
".",
"positions",
"=",
"positions",
";",
"this",
".",
"payloads",
"=",
"payloads",
";",
"this",
".",
"totalTermFreq",
"=",
"totalTermFreq",
";",
"}"
] |
public HighFreqTerm(int[] docIDs, int[] freqs, int[][] positions, byte[][][] payloads,long totalTermFreq){this.docIDs = docIDs;this.freqs = freqs;this.positions = positions;this.payloads = payloads;this.totalTermFreq = totalTermFreq;}
|
train
| false
|
1,532
|
public TermQuery newTermQuery(Term term) throws TooManyBasicQueries {checkMax();return new TermQuery(term);}
|
[
"public",
"TermQuery",
"newTermQuery",
"(",
"Term",
"term",
")",
"throws",
"TooManyBasicQueries",
"{",
"checkMax",
"(",
")",
";",
"return",
"new",
"TermQuery",
"(",
"term",
")",
";",
"}"
] |
public virtual TermQuery NewTermQuery(Term term){CheckMax();return new TermQuery(term);}
|
train
| false
|
1,533
|
public HindiStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
|
[
"public",
"HindiStemFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] |
public HindiStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
train
| false
|
1,534
|
public DecisionInfo[] getDecisionInfo() {return atnSimulator.getDecisionInfo();}
|
[
"public",
"DecisionInfo",
"[",
"]",
"getDecisionInfo",
"(",
")",
"{",
"return",
"atnSimulator",
".",
"getDecisionInfo",
"(",
")",
";",
"}"
] |
public DecisionInfo[] getDecisionInfo(){return atnSimulator.getDecisionInfo();}
|
train
| false
|
1,535
|
public String toString() {return "<regexp field='" + this.field + "' term='" + this.text + "'/>";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"<regexp field='\"",
"+",
"this",
".",
"field",
"+",
"\"' term='\"",
"+",
"this",
".",
"text",
"+",
"\"'/>\"",
";",
"}"
] |
public override string ToString(){return "<regexp field='" + this.field + "' term='" + this.text + "'/>";}
|
train
| false
|
1,536
|
public CreateStackSetResult createStackSet(CreateStackSetRequest request) {request = beforeClientExecution(request);return executeCreateStackSet(request);}
|
[
"public",
"CreateStackSetResult",
"createStackSet",
"(",
"CreateStackSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateStackSet",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateStackSetResponse CreateStackSet(CreateStackSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStackSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStackSetResponseUnmarshaller.Instance;return Invoke<CreateStackSetResponse>(request, options);}
|
train
| true
|
1,537
|
public SendMessagesResult sendMessages(SendMessagesRequest request) {request = beforeClientExecution(request);return executeSendMessages(request);}
|
[
"public",
"SendMessagesResult",
"sendMessages",
"(",
"SendMessagesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSendMessages",
"(",
"request",
")",
";",
"}"
] |
public virtual SendMessagesResponse SendMessages(SendMessagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendMessagesRequestMarshaller.Instance;options.ResponseUnmarshaller = SendMessagesResponseUnmarshaller.Instance;return Invoke<SendMessagesResponse>(request, options);}
|
train
| true
|
1,538
|
public synchronized void setCharAt(int index, char ch) {super.setCharAt(index, ch);}
|
[
"public",
"synchronized",
"void",
"setCharAt",
"(",
"int",
"index",
",",
"char",
"ch",
")",
"{",
"super",
".",
"setCharAt",
"(",
"index",
",",
"ch",
")",
";",
"}"
] |
public override void setCharAt(int index, char ch){lock (this){base.setCharAt(index, ch);}}
|
train
| false
|
1,539
|
public CreateIntegrationResult createIntegration(CreateIntegrationRequest request) {request = beforeClientExecution(request);return executeCreateIntegration(request);}
|
[
"public",
"CreateIntegrationResult",
"createIntegration",
"(",
"CreateIntegrationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateIntegration",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateIntegrationResponse CreateIntegration(CreateIntegrationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIntegrationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIntegrationResponseUnmarshaller.Instance;return Invoke<CreateIntegrationResponse>(request, options);}
|
train
| true
|
1,540
|
public void execute(Lexer lexer) {lexer.mode(mode);}
|
[
"public",
"void",
"execute",
"(",
"Lexer",
"lexer",
")",
"{",
"lexer",
".",
"mode",
"(",
"mode",
")",
";",
"}"
] |
public void Execute(Lexer lexer){lexer.Mode(mode);}
|
train
| false
|
1,541
|
public void readFully(byte[] dst) throws IOException {primitiveTypes.readFully(dst);}
|
[
"public",
"void",
"readFully",
"(",
"byte",
"[",
"]",
"dst",
")",
"throws",
"IOException",
"{",
"primitiveTypes",
".",
"readFully",
"(",
"dst",
")",
";",
"}"
] |
public virtual void readFully(byte[] dst){throw new System.NotImplementedException();}
|
train
| false
|
1,542
|
public final void decRef() throws IOException {ensureOpen();final int rc = refCount.decrementAndGet();if (rc == 0) {boolean success = false;try {doClose();closed = true;success = true;} finally {if (!success) {refCount.incrementAndGet();}}} else if (rc < 0) {throw new IllegalStateException("too many decRef calls: refCount is " + rc + " after decrement");}}
|
[
"public",
"final",
"void",
"decRef",
"(",
")",
"throws",
"IOException",
"{",
"ensureOpen",
"(",
")",
";",
"final",
"int",
"rc",
"=",
"refCount",
".",
"decrementAndGet",
"(",
")",
";",
"if",
"(",
"rc",
"==",
"0",
")",
"{",
"boolean",
"success",
"=",
"false",
";",
"try",
"{",
"doClose",
"(",
")",
";",
"closed",
"=",
"true",
";",
"success",
"=",
"true",
";",
"}",
"finally",
"{",
"if",
"(",
"!",
"success",
")",
"{",
"refCount",
".",
"incrementAndGet",
"(",
")",
";",
"}",
"}",
"}",
"else",
"if",
"(",
"rc",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"too many decRef calls: refCount is \"",
"+",
"rc",
"+",
"\" after decrement\"",
")",
";",
"}",
"}"
] |
public void DecRef(){EnsureOpen();int rc = refCount.DecrementAndGet();if (rc == 0){bool success = false;try{DoClose();closed = true;success = true;}finally{if (!success){refCount.IncrementAndGet();}}}else if (rc < 0){throw new ThreadStateException("too many decRef calls: refCount is " + rc + " after decrement");}}
|
train
| false
|
1,543
|
public String toString() {if ( dfa.s0==null ) return null;StringBuilder buf = new StringBuilder();List<DFAState> states = dfa.getStates();for (DFAState s : states) {int n = 0;if ( s.edges!=null ) n = s.edges.length;for (int i=0; i<n; i++) {DFAState t = s.edges[i];if ( t!=null && t.stateNumber != Integer.MAX_VALUE ) {buf.append(getStateString(s));String label = getEdgeLabel(i);buf.append("-").append(label).append("->").append(getStateString(t)).append('\n');}}}String output = buf.toString();if ( output.length()==0 ) return null;return output;}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"if",
"(",
"dfa",
".",
"s0",
"==",
"null",
")",
"return",
"null",
";",
"StringBuilder",
"buf",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"List",
"<",
"DFAState",
">",
"states",
"=",
"dfa",
".",
"getStates",
"(",
")",
";",
"for",
"(",
"DFAState",
"s",
":",
"states",
")",
"{",
"int",
"n",
"=",
"0",
";",
"if",
"(",
"s",
".",
"edges",
"!=",
"null",
")",
"n",
"=",
"s",
".",
"edges",
".",
"length",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"n",
";",
"i",
"++",
")",
"{",
"DFAState",
"t",
"=",
"s",
".",
"edges",
"[",
"i",
"]",
";",
"if",
"(",
"t",
"!=",
"null",
"&&",
"t",
".",
"stateNumber",
"!=",
"Integer",
".",
"MAX_VALUE",
")",
"{",
"buf",
".",
"append",
"(",
"getStateString",
"(",
"s",
")",
")",
";",
"String",
"label",
"=",
"getEdgeLabel",
"(",
"i",
")",
";",
"buf",
".",
"append",
"(",
"\"-\"",
")",
".",
"append",
"(",
"label",
")",
".",
"append",
"(",
"\"->\"",
")",
".",
"append",
"(",
"getStateString",
"(",
"t",
")",
")",
".",
"append",
"(",
"'\\n'",
")",
";",
"}",
"}",
"}",
"String",
"output",
"=",
"buf",
".",
"toString",
"(",
")",
";",
"if",
"(",
"output",
".",
"length",
"(",
")",
"==",
"0",
")",
"return",
"null",
";",
"return",
"output",
";",
"}"
] |
public override string ToString(){if (dfa.s0 == null){return null;}StringBuilder buf = new StringBuilder();if (dfa.states != null){List<DFAState> states = new List<DFAState>(dfa.states.Values);states.Sort((x,y)=>x.stateNumber - y.stateNumber);foreach (DFAState s in states){int n = s.edges != null ? s.edges.Length : 0;for (int i = 0; i < n; i++){DFAState t = s.edges[i];if (t != null && t.stateNumber != int.MaxValue){buf.Append(GetStateString(s));String label = GetEdgeLabel(i);buf.Append("-");buf.Append(label);buf.Append("->");buf.Append(GetStateString(t));buf.Append('\n');}}}}string output = buf.ToString();if (output.Length == 0){return null;}return output;}
|
train
| false
|
1,544
|
public static void register(Repository db) {if (db.getDirectory() != null) {FileKey key = FileKey.exact(db.getDirectory(), db.getFS());cache.registerRepository(key, db);}}
|
[
"public",
"static",
"void",
"register",
"(",
"Repository",
"db",
")",
"{",
"if",
"(",
"db",
".",
"getDirectory",
"(",
")",
"!=",
"null",
")",
"{",
"FileKey",
"key",
"=",
"FileKey",
".",
"exact",
"(",
"db",
".",
"getDirectory",
"(",
")",
",",
"db",
".",
"getFS",
"(",
")",
")",
";",
"cache",
".",
"registerRepository",
"(",
"key",
",",
"db",
")",
";",
"}",
"}"
] |
public static void Register(Repository db){if (db.Directory != null){RepositoryCache.FileKey key = RepositoryCache.FileKey.Exact(db.Directory, db.FileSystem);cache.RegisterRepository(key, db);}}
|
train
| false
|
1,545
|
public GetConfigurationSetEventDestinationsResult getConfigurationSetEventDestinations(GetConfigurationSetEventDestinationsRequest request) {request = beforeClientExecution(request);return executeGetConfigurationSetEventDestinations(request);}
|
[
"public",
"GetConfigurationSetEventDestinationsResult",
"getConfigurationSetEventDestinations",
"(",
"GetConfigurationSetEventDestinationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetConfigurationSetEventDestinations",
"(",
"request",
")",
";",
"}"
] |
public virtual GetConfigurationSetEventDestinationsResponse GetConfigurationSetEventDestinations(GetConfigurationSetEventDestinationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetConfigurationSetEventDestinationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetConfigurationSetEventDestinationsResponseUnmarshaller.Instance;return Invoke<GetConfigurationSetEventDestinationsResponse>(request, options);}
|
train
| true
|
1,546
|
public ByteBuffer put(byte value) {throw new ReadOnlyBufferException();}
|
[
"public",
"ByteBuffer",
"put",
"(",
"byte",
"value",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] |
public override java.nio.ByteBuffer put(byte value){throw new System.NotImplementedException();}
|
train
| false
|
1,547
|
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2) {AreaEval aeRange;AreaEval aeSum;try {aeRange = convertRangeArg(arg0);aeSum = createSumRange(arg2, aeRange);} catch (EvaluationException e) {return e.getErrorEval();}return eval(srcRowIndex, srcColumnIndex, arg1, aeRange, aeSum);}
|
[
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"arg0",
",",
"ValueEval",
"arg1",
",",
"ValueEval",
"arg2",
")",
"{",
"AreaEval",
"aeRange",
";",
"AreaEval",
"aeSum",
";",
"try",
"{",
"aeRange",
"=",
"convertRangeArg",
"(",
"arg0",
")",
";",
"aeSum",
"=",
"createSumRange",
"(",
"arg2",
",",
"aeRange",
")",
";",
"}",
"catch",
"(",
"EvaluationException",
"e",
")",
"{",
"return",
"e",
".",
"getErrorEval",
"(",
")",
";",
"}",
"return",
"eval",
"(",
"srcRowIndex",
",",
"srcColumnIndex",
",",
"arg1",
",",
"aeRange",
",",
"aeSum",
")",
";",
"}"
] |
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2){AreaEval aeRange;AreaEval aeSum;try{aeRange = ConvertRangeArg(arg0);aeSum = CreateSumRange(arg2, aeRange);}catch (EvaluationException e){return e.GetErrorEval();}return Eval(srcRowIndex, srcColumnIndex, arg1, aeRange, aeSum);}
|
train
| false
|
1,548
|
public MoPenAddGroupMemberRequest() {super("MoPen", "2018-02-11", "MoPenAddGroupMember", "mopen");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
|
[
"public",
"MoPenAddGroupMemberRequest",
"(",
")",
"{",
"super",
"(",
"\"MoPen\"",
",",
"\"2018-02-11\"",
",",
"\"MoPenAddGroupMember\"",
",",
"\"mopen\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] |
public MoPenAddGroupMemberRequest(): base("MoPen", "2018-02-11", "MoPenAddGroupMember", "mopen", "openAPI"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
|
train
| false
|
1,549
|
public DeleteAssessmentTargetResult deleteAssessmentTarget(DeleteAssessmentTargetRequest request) {request = beforeClientExecution(request);return executeDeleteAssessmentTarget(request);}
|
[
"public",
"DeleteAssessmentTargetResult",
"deleteAssessmentTarget",
"(",
"DeleteAssessmentTargetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteAssessmentTarget",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteAssessmentTargetResponse DeleteAssessmentTarget(DeleteAssessmentTargetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAssessmentTargetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAssessmentTargetResponseUnmarshaller.Instance;return Invoke<DeleteAssessmentTargetResponse>(request, options);}
|
train
| true
|
1,550
|
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[SXDI]\n");buffer.append(" .isxvdData = ").append(HexDump.shortToHex(isxvdData)).append("\n");buffer.append(" .iiftab = ").append(HexDump.shortToHex(iiftab)).append("\n");buffer.append(" .df = ").append(HexDump.shortToHex(df)).append("\n");buffer.append(" .isxvd = ").append(HexDump.shortToHex(isxvd)).append("\n");buffer.append(" .isxvi = ").append(HexDump.shortToHex(isxvi)).append("\n");buffer.append(" .ifmt = ").append(HexDump.shortToHex(ifmt)).append("\n");buffer.append("[/SXDI]\n");return buffer.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[SXDI]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .isxvdData = \"",
")",
".",
"append",
"(",
"HexDump",
".",
"shortToHex",
"(",
"isxvdData",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .iiftab = \"",
")",
".",
"append",
"(",
"HexDump",
".",
"shortToHex",
"(",
"iiftab",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .df = \"",
")",
".",
"append",
"(",
"HexDump",
".",
"shortToHex",
"(",
"df",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .isxvd = \"",
")",
".",
"append",
"(",
"HexDump",
".",
"shortToHex",
"(",
"isxvd",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .isxvi = \"",
")",
".",
"append",
"(",
"HexDump",
".",
"shortToHex",
"(",
"isxvi",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .ifmt = \"",
")",
".",
"append",
"(",
"HexDump",
".",
"shortToHex",
"(",
"ifmt",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\"[/SXDI]\\n\"",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] |
public override string ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[SXDI]\n");buffer.Append(" .isxvdData = ").Append(HexDump.ShortToHex(isxvdData)).Append("\n");buffer.Append(" .iiftab = ").Append(HexDump.ShortToHex(iiftab)).Append("\n");buffer.Append(" .df = ").Append(HexDump.ShortToHex(df)).Append("\n");buffer.Append(" .isxvd = ").Append(HexDump.ShortToHex(isxvd)).Append("\n");buffer.Append(" .isxvi = ").Append(HexDump.ShortToHex(isxvi)).Append("\n");buffer.Append(" .ifmt = ").Append(HexDump.ShortToHex(ifmt)).Append("\n");buffer.Append("[/SXDI]\n");return buffer.ToString();}
|
train
| false
|
1,551
|
public String toString() {return "LL";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"LL\"",
";",
"}"
] |
public override string ToString(){return "LL";}
|
train
| false
|
1,552
|
public DescribeReservedInstancesOfferingsResult describeReservedInstancesOfferings(DescribeReservedInstancesOfferingsRequest request) {request = beforeClientExecution(request);return executeDescribeReservedInstancesOfferings(request);}
|
[
"public",
"DescribeReservedInstancesOfferingsResult",
"describeReservedInstancesOfferings",
"(",
"DescribeReservedInstancesOfferingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeReservedInstancesOfferings",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeReservedInstancesOfferingsResponse DescribeReservedInstancesOfferings(DescribeReservedInstancesOfferingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedInstancesOfferingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedInstancesOfferingsResponseUnmarshaller.Instance;return Invoke<DescribeReservedInstancesOfferingsResponse>(request, options);}
|
train
| true
|
1,553
|
public void setNextEnum(TermsEnum termsEnum) {this.termsEnum = termsEnum;this.boostAtt = termsEnum.attributes().addAttribute(BoostAttribute.class);}
|
[
"public",
"void",
"setNextEnum",
"(",
"TermsEnum",
"termsEnum",
")",
"{",
"this",
".",
"termsEnum",
"=",
"termsEnum",
";",
"this",
".",
"boostAtt",
"=",
"termsEnum",
".",
"attributes",
"(",
")",
".",
"addAttribute",
"(",
"BoostAttribute",
".",
"class",
")",
";",
"}"
] |
public override void SetNextEnum(TermsEnum termsEnum){this.termsEnum = termsEnum;this.boostAtt = termsEnum.Attributes.AddAttribute<IBoostAttribute>();}
|
train
| false
|
1,554
|
public RevFilter clone() {return new PatternSearch(pattern());}
|
[
"public",
"RevFilter",
"clone",
"(",
")",
"{",
"return",
"new",
"PatternSearch",
"(",
"pattern",
"(",
")",
")",
";",
"}"
] |
public override RevFilter Clone(){return new MessageRevFilter.PatternSearch(Pattern());}
|
train
| false
|
1,555
|
public GetRouteResponseResult getRouteResponse(GetRouteResponseRequest request) {request = beforeClientExecution(request);return executeGetRouteResponse(request);}
|
[
"public",
"GetRouteResponseResult",
"getRouteResponse",
"(",
"GetRouteResponseRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetRouteResponse",
"(",
"request",
")",
";",
"}"
] |
public virtual GetRouteResponseResponse GetRouteResponse(GetRouteResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRouteResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRouteResponseResponseUnmarshaller.Instance;return Invoke<GetRouteResponseResponse>(request, options);}
|
train
| true
|
1,556
|
public UpdateLagResult updateLag(UpdateLagRequest request) {request = beforeClientExecution(request);return executeUpdateLag(request);}
|
[
"public",
"UpdateLagResult",
"updateLag",
"(",
"UpdateLagRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateLag",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateLagResponse UpdateLag(UpdateLagRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateLagRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateLagResponseUnmarshaller.Instance;return Invoke<UpdateLagResponse>(request, options);}
|
train
| true
|
1,557
|
public DescribeEndpointResult describeEndpoint(DescribeEndpointRequest request) {request = beforeClientExecution(request);return executeDescribeEndpoint(request);}
|
[
"public",
"DescribeEndpointResult",
"describeEndpoint",
"(",
"DescribeEndpointRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeEndpoint",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeEndpointResponse DescribeEndpoint(DescribeEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEndpointResponseUnmarshaller.Instance;return Invoke<DescribeEndpointResponse>(request, options);}
|
train
| true
|
1,558
|
public void addPositionSpans(List<PositionSpan> positionSpans) {this.positionSpans.addAll(positionSpans);}
|
[
"public",
"void",
"addPositionSpans",
"(",
"List",
"<",
"PositionSpan",
">",
"positionSpans",
")",
"{",
"this",
".",
"positionSpans",
".",
"addAll",
"(",
"positionSpans",
")",
";",
"}"
] |
public virtual void AddPositionSpans(IList<PositionSpan> positionSpans){this._positionSpans.AddRange(positionSpans);}
|
train
| false
|
1,559
|
public boolean remove(Object object) {return backingMap.remove(object) != null;}
|
[
"public",
"boolean",
"remove",
"(",
"Object",
"object",
")",
"{",
"return",
"backingMap",
".",
"remove",
"(",
"object",
")",
"!=",
"null",
";",
"}"
] |
public override bool remove(object @object){return backingMap.remove(@object) != null;}
|
train
| false
|
1,560
|
public ListPartsResult listParts(ListPartsRequest request) {request = beforeClientExecution(request);return executeListParts(request);}
|
[
"public",
"ListPartsResult",
"listParts",
"(",
"ListPartsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListParts",
"(",
"request",
")",
";",
"}"
] |
public virtual ListPartsResponse ListParts(ListPartsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPartsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPartsResponseUnmarshaller.Instance;return Invoke<ListPartsResponse>(request, options);}
|
train
| true
|
1,561
|
public void setForceUpdate(boolean b) {force = b;}
|
[
"public",
"void",
"setForceUpdate",
"(",
"boolean",
"b",
")",
"{",
"force",
"=",
"b",
";",
"}"
] |
public virtual void SetForceUpdate(bool b){force = b;}
|
train
| false
|
1,562
|
public void removeCustomProperties() {if (getSectionCount() < 2) {}}
|
[
"public",
"void",
"removeCustomProperties",
"(",
")",
"{",
"if",
"(",
"getSectionCount",
"(",
")",
"<",
"2",
")",
"{",
"}",
"}"
] |
public void RemoveCustomProperties(){if (SectionCount >= 2){}}
|
train
| false
|
1,563
|
public int available() {return remaining();}
|
[
"public",
"int",
"available",
"(",
")",
"{",
"return",
"remaining",
"(",
")",
";",
"}"
] |
public int Available(){return _lei.Available();}
|
train
| false
|
1,564
|
public GetInstanceResult getInstance(GetInstanceRequest request) {request = beforeClientExecution(request);return executeGetInstance(request);}
|
[
"public",
"GetInstanceResult",
"getInstance",
"(",
"GetInstanceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetInstance",
"(",
"request",
")",
";",
"}"
] |
public virtual GetInstanceResponse GetInstance(GetInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstanceResponseUnmarshaller.Instance;return Invoke<GetInstanceResponse>(request, options);}
|
train
| true
|
1,565
|
public UpdateSmsChannelResult updateSmsChannel(UpdateSmsChannelRequest request) {request = beforeClientExecution(request);return executeUpdateSmsChannel(request);}
|
[
"public",
"UpdateSmsChannelResult",
"updateSmsChannel",
"(",
"UpdateSmsChannelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateSmsChannel",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateSmsChannelResponse UpdateSmsChannel(UpdateSmsChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSmsChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSmsChannelResponseUnmarshaller.Instance;return Invoke<UpdateSmsChannelResponse>(request, options);}
|
train
| true
|
1,566
|
public CreateEgressOnlyInternetGatewayResult createEgressOnlyInternetGateway(CreateEgressOnlyInternetGatewayRequest request) {request = beforeClientExecution(request);return executeCreateEgressOnlyInternetGateway(request);}
|
[
"public",
"CreateEgressOnlyInternetGatewayResult",
"createEgressOnlyInternetGateway",
"(",
"CreateEgressOnlyInternetGatewayRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateEgressOnlyInternetGateway",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateEgressOnlyInternetGatewayResponse CreateEgressOnlyInternetGateway(CreateEgressOnlyInternetGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEgressOnlyInternetGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEgressOnlyInternetGatewayResponseUnmarshaller.Instance;return Invoke<CreateEgressOnlyInternetGatewayResponse>(request, options);}
|
train
| true
|
1,567
|
public GetResourcesResult getResources(GetResourcesRequest request) {request = beforeClientExecution(request);return executeGetResources(request);}
|
[
"public",
"GetResourcesResult",
"getResources",
"(",
"GetResourcesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetResources",
"(",
"request",
")",
";",
"}"
] |
public virtual GetResourcesResponse GetResources(GetResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetResourcesResponseUnmarshaller.Instance;return Invoke<GetResourcesResponse>(request, options);}
|
train
| true
|
1,568
|
public ByteBlockPool(Allocator allocator) {this.allocator = allocator;}
|
[
"public",
"ByteBlockPool",
"(",
"Allocator",
"allocator",
")",
"{",
"this",
".",
"allocator",
"=",
"allocator",
";",
"}"
] |
public ByteBlockPool(Allocator allocator){ByteUpto = BYTE_BLOCK_SIZE;ByteOffset = -BYTE_BLOCK_SIZE;this.allocator = allocator;}
|
train
| false
|
1,569
|
public ListStepsResult listSteps(ListStepsRequest request) {request = beforeClientExecution(request);return executeListSteps(request);}
|
[
"public",
"ListStepsResult",
"listSteps",
"(",
"ListStepsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListSteps",
"(",
"request",
")",
";",
"}"
] |
public virtual ListStepsResponse ListSteps(ListStepsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStepsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStepsResponseUnmarshaller.Instance;return Invoke<ListStepsResponse>(request, options);}
|
train
| true
|
1,570
|
public boolean readBoolean() throws IOException {return primitiveTypes.readBoolean();}
|
[
"public",
"boolean",
"readBoolean",
"(",
")",
"throws",
"IOException",
"{",
"return",
"primitiveTypes",
".",
"readBoolean",
"(",
")",
";",
"}"
] |
public virtual bool readBoolean(){throw new System.NotImplementedException();}
|
train
| false
|
1,571
|
public PutLogEventsRequest(String logGroupName, String logStreamName, java.util.List<InputLogEvent> logEvents) {setLogGroupName(logGroupName);setLogStreamName(logStreamName);setLogEvents(logEvents);}
|
[
"public",
"PutLogEventsRequest",
"(",
"String",
"logGroupName",
",",
"String",
"logStreamName",
",",
"java",
".",
"util",
".",
"List",
"<",
"InputLogEvent",
">",
"logEvents",
")",
"{",
"setLogGroupName",
"(",
"logGroupName",
")",
";",
"setLogStreamName",
"(",
"logStreamName",
")",
";",
"setLogEvents",
"(",
"logEvents",
")",
";",
"}"
] |
public PutLogEventsRequest(string logGroupName, string logStreamName, List<InputLogEvent> logEvents){_logGroupName = logGroupName;_logStreamName = logStreamName;_logEvents = logEvents;}
|
train
| false
|
1,572
|
public void reset(int sliceOffset) {this.offset = sliceOffset;}
|
[
"public",
"void",
"reset",
"(",
"int",
"sliceOffset",
")",
"{",
"this",
".",
"offset",
"=",
"sliceOffset",
";",
"}"
] |
public virtual void Reset(int sliceOffset){this.offset = sliceOffset;}
|
train
| false
|
1,573
|
public GetAttendeeResult getAttendee(GetAttendeeRequest request) {request = beforeClientExecution(request);return executeGetAttendee(request);}
|
[
"public",
"GetAttendeeResult",
"getAttendee",
"(",
"GetAttendeeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetAttendee",
"(",
"request",
")",
";",
"}"
] |
public virtual GetAttendeeResponse GetAttendee(GetAttendeeRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAttendeeRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAttendeeResponseUnmarshaller.Instance;return Invoke<GetAttendeeResponse>(request, options);}
|
train
| false
|
1,574
|
public long getFilePointer() {return pointer + pos;}
|
[
"public",
"long",
"getFilePointer",
"(",
")",
"{",
"return",
"pointer",
"+",
"pos",
";",
"}"
] |
public override long GetFilePointer(){return pointer + pos;}
|
train
| false
|
1,577
|
public int readDataSize() {readPlain(buffer, 0, LittleEndianConsts.SHORT_SIZE);int dataSize = LittleEndian.getUShort(buffer, 0);ccis.setNextRecordSize(dataSize);return dataSize;}
|
[
"public",
"int",
"readDataSize",
"(",
")",
"{",
"readPlain",
"(",
"buffer",
",",
"0",
",",
"LittleEndianConsts",
".",
"SHORT_SIZE",
")",
";",
"int",
"dataSize",
"=",
"LittleEndian",
".",
"getUShort",
"(",
"buffer",
",",
"0",
")",
";",
"ccis",
".",
"setNextRecordSize",
"(",
"dataSize",
")",
";",
"return",
"dataSize",
";",
"}"
] |
public int ReadDataSize(){int dataSize = _le.ReadUShort();_rc4.SkipTwoBytes();return dataSize;}
|
train
| false
|
1,578
|
public RemoveUserFromGroupRequest(String groupName, String userName) {setGroupName(groupName);setUserName(userName);}
|
[
"public",
"RemoveUserFromGroupRequest",
"(",
"String",
"groupName",
",",
"String",
"userName",
")",
"{",
"setGroupName",
"(",
"groupName",
")",
";",
"setUserName",
"(",
"userName",
")",
";",
"}"
] |
public RemoveUserFromGroupRequest(string groupName, string userName){_groupName = groupName;_userName = userName;}
|
train
| false
|
1,579
|
public PutImageResult putImage(PutImageRequest request) {request = beforeClientExecution(request);return executePutImage(request);}
|
[
"public",
"PutImageResult",
"putImage",
"(",
"PutImageRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutImage",
"(",
"request",
")",
";",
"}"
] |
public virtual PutImageResponse PutImage(PutImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutImageRequestMarshaller.Instance;options.ResponseUnmarshaller = PutImageResponseUnmarshaller.Instance;return Invoke<PutImageResponse>(request, options);}
|
train
| true
|
1,580
|
public boolean stem() {limit_backward = cursor;cursor = limit;int v_1 = limit - cursor;r_endings();cursor = limit - v_1;int v_2 = limit - cursor;r_undouble();cursor = limit - v_2;int v_3 = limit - cursor;r_respell();cursor = limit - v_3;cursor = limit_backward;return true;}
|
[
"public",
"boolean",
"stem",
"(",
")",
"{",
"limit_backward",
"=",
"cursor",
";",
"cursor",
"=",
"limit",
";",
"int",
"v_1",
"=",
"limit",
"-",
"cursor",
";",
"r_endings",
"(",
")",
";",
"cursor",
"=",
"limit",
"-",
"v_1",
";",
"int",
"v_2",
"=",
"limit",
"-",
"cursor",
";",
"r_undouble",
"(",
")",
";",
"cursor",
"=",
"limit",
"-",
"v_2",
";",
"int",
"v_3",
"=",
"limit",
"-",
"cursor",
";",
"r_respell",
"(",
")",
";",
"cursor",
"=",
"limit",
"-",
"v_3",
";",
"cursor",
"=",
"limit_backward",
";",
"return",
"true",
";",
"}"
] |
public override bool Stem(){int v_1;int v_2;int v_3;m_limit_backward = m_cursor; m_cursor = m_limit;v_1 = m_limit - m_cursor;do{if (!r_endings()){goto lab0;}} while (false);lab0:m_cursor = m_limit - v_1;v_2 = m_limit - m_cursor;do{if (!r_undouble()){goto lab1;}} while (false);lab1:m_cursor = m_limit - v_2;v_3 = m_limit - m_cursor;do{if (!r_respell()){goto lab2;}} while (false);lab2:m_cursor = m_limit - v_3;m_cursor = m_limit_backward; return true;}
|
train
| false
|
1,581
|
public IntervalSet[] getDecisionLookahead(ATNState s) {if ( s==null ) {return null;}IntervalSet[] look = new IntervalSet[s.getNumberOfTransitions()];for (int alt = 0; alt < s.getNumberOfTransitions(); alt++) {look[alt] = new IntervalSet();Set<ATNConfig> lookBusy = new HashSet<ATNConfig>();boolean seeThruPreds = false; _LOOK(s.transition(alt).target, null, PredictionContext.EMPTY,look[alt], lookBusy, new BitSet(), seeThruPreds, false);if ( look[alt].size()==0 || look[alt].contains(HIT_PRED) ) {look[alt] = null;}}return look;}
|
[
"public",
"IntervalSet",
"[",
"]",
"getDecisionLookahead",
"(",
"ATNState",
"s",
")",
"{",
"if",
"(",
"s",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"IntervalSet",
"[",
"]",
"look",
"=",
"new",
"IntervalSet",
"[",
"s",
".",
"getNumberOfTransitions",
"(",
")",
"]",
";",
"for",
"(",
"int",
"alt",
"=",
"0",
";",
"alt",
"<",
"s",
".",
"getNumberOfTransitions",
"(",
")",
";",
"alt",
"++",
")",
"{",
"look",
"[",
"alt",
"]",
"=",
"new",
"IntervalSet",
"(",
")",
";",
"Set",
"<",
"ATNConfig",
">",
"lookBusy",
"=",
"new",
"HashSet",
"<",
"ATNConfig",
">",
"(",
")",
";",
"boolean",
"seeThruPreds",
"=",
"false",
";",
"_LOOK",
"(",
"s",
".",
"transition",
"(",
"alt",
")",
".",
"target",
",",
"null",
",",
"PredictionContext",
".",
"EMPTY",
",",
"look",
"[",
"alt",
"]",
",",
"lookBusy",
",",
"new",
"BitSet",
"(",
")",
",",
"seeThruPreds",
",",
"false",
")",
";",
"if",
"(",
"look",
"[",
"alt",
"]",
".",
"size",
"(",
")",
"==",
"0",
"||",
"look",
"[",
"alt",
"]",
".",
"contains",
"(",
"HIT_PRED",
")",
")",
"{",
"look",
"[",
"alt",
"]",
"=",
"null",
";",
"}",
"}",
"return",
"look",
";",
"}"
] |
public virtual IntervalSet[] GetDecisionLookahead(ATNState s){if (s == null){return null;}IntervalSet[] look = new IntervalSet[s.NumberOfTransitions];for (int alt = 0; alt < s.NumberOfTransitions; alt++){look[alt] = new IntervalSet();HashSet<ATNConfig> lookBusy = new HashSet<ATNConfig>();bool seeThruPreds = false;Look(s.Transition(alt).target, null, PredictionContext.EMPTY, look[alt], lookBusy, new BitSet(), seeThruPreds, false);if (look[alt].Count == 0 || look[alt].Contains(HitPred)){look[alt] = null;}}return look;}
|
train
| false
|
1,582
|
public static Ptg createPtg(LittleEndianInput in) {byte id = in.readByte();if (id < 0x20) {return createBasePtg(id, in);}Ptg retval = createClassifiedPtg(id, in);if (id >= 0x60) {retval.setClass(CLASS_ARRAY);} else if (id >= 0x40) {retval.setClass(CLASS_VALUE);} else {retval.setClass(CLASS_REF);}return retval;}
|
[
"public",
"static",
"Ptg",
"createPtg",
"(",
"LittleEndianInput",
"in",
")",
"{",
"byte",
"id",
"=",
"in",
".",
"readByte",
"(",
")",
";",
"if",
"(",
"id",
"<",
"0x20",
")",
"{",
"return",
"createBasePtg",
"(",
"id",
",",
"in",
")",
";",
"}",
"Ptg",
"retval",
"=",
"createClassifiedPtg",
"(",
"id",
",",
"in",
")",
";",
"if",
"(",
"id",
">=",
"0x60",
")",
"{",
"retval",
".",
"setClass",
"(",
"CLASS_ARRAY",
")",
";",
"}",
"else",
"if",
"(",
"id",
">=",
"0x40",
")",
"{",
"retval",
".",
"setClass",
"(",
"CLASS_VALUE",
")",
";",
"}",
"else",
"{",
"retval",
".",
"setClass",
"(",
"CLASS_REF",
")",
";",
"}",
"return",
"retval",
";",
"}"
] |
public static Ptg CreatePtg(ILittleEndianInput in1){byte id = (byte)in1.ReadByte();if (id < 0x20){return CreateBasePtg(id, in1);}Ptg retval = CreateClassifiedPtg(id, in1);if (id >= 0x60){retval.PtgClass = CLASS_ARRAY;}else if (id >= 0x40){retval.PtgClass = CLASS_VALUE;}else{retval.PtgClass = CLASS_REF;}return retval;}
|
train
| false
|
1,583
|
public ListEntitiesDetectionJobsResult listEntitiesDetectionJobs(ListEntitiesDetectionJobsRequest request) {request = beforeClientExecution(request);return executeListEntitiesDetectionJobs(request);}
|
[
"public",
"ListEntitiesDetectionJobsResult",
"listEntitiesDetectionJobs",
"(",
"ListEntitiesDetectionJobsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListEntitiesDetectionJobs",
"(",
"request",
")",
";",
"}"
] |
public virtual ListEntitiesDetectionJobsResponse ListEntitiesDetectionJobs(ListEntitiesDetectionJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEntitiesDetectionJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEntitiesDetectionJobsResponseUnmarshaller.Instance;return Invoke<ListEntitiesDetectionJobsResponse>(request, options);}
|
train
| true
|
1,584
|
public ListReviewableHITsResult listReviewableHITs(ListReviewableHITsRequest request) {request = beforeClientExecution(request);return executeListReviewableHITs(request);}
|
[
"public",
"ListReviewableHITsResult",
"listReviewableHITs",
"(",
"ListReviewableHITsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListReviewableHITs",
"(",
"request",
")",
";",
"}"
] |
public virtual ListReviewableHITsResponse ListReviewableHITs(ListReviewableHITsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListReviewableHITsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListReviewableHITsResponseUnmarshaller.Instance;return Invoke<ListReviewableHITsResponse>(request, options);}
|
train
| true
|
1,585
|
public OperationEvaluationContext(WorkbookEvaluator bookEvaluator, EvaluationWorkbook workbook, int sheetIndex, int srcRowNum,int srcColNum, EvaluationTracker tracker) {this(bookEvaluator, workbook, sheetIndex, srcRowNum, srcColNum, tracker, true);}
|
[
"public",
"OperationEvaluationContext",
"(",
"WorkbookEvaluator",
"bookEvaluator",
",",
"EvaluationWorkbook",
"workbook",
",",
"int",
"sheetIndex",
",",
"int",
"srcRowNum",
",",
"int",
"srcColNum",
",",
"EvaluationTracker",
"tracker",
")",
"{",
"this",
"(",
"bookEvaluator",
",",
"workbook",
",",
"sheetIndex",
",",
"srcRowNum",
",",
"srcColNum",
",",
"tracker",
",",
"true",
")",
";",
"}"
] |
public OperationEvaluationContext(WorkbookEvaluator bookEvaluator, IEvaluationWorkbook workbook, int sheetIndex, int srcRowNum,int srcColNum, EvaluationTracker tracker){_bookEvaluator = bookEvaluator;_workbook = workbook;_sheetIndex = sheetIndex;_rowIndex = srcRowNum;_columnIndex = srcColNum;_tracker = tracker;}
|
train
| false
|
1,586
|
public void setMaxDocFreqPct(int maxPercentage) {setMaxDocFreq(Math.toIntExact((long) maxPercentage * ir.maxDoc() / 100));}
|
[
"public",
"void",
"setMaxDocFreqPct",
"(",
"int",
"maxPercentage",
")",
"{",
"setMaxDocFreq",
"(",
"Math",
".",
"toIntExact",
"(",
"(",
"long",
")",
"maxPercentage",
"*",
"ir",
".",
"maxDoc",
"(",
")",
"/",
"100",
")",
")",
";",
"}"
] |
public void SetMaxDocFreqPct(int maxPercentage){this.MaxDocFreq = maxPercentage * ir.NumDocs / 100;}
|
train
| false
|
1,587
|
public final void lazySet(V newValue) {unsafe.putOrderedObject(this, valueOffset, newValue);}
|
[
"public",
"final",
"void",
"lazySet",
"(",
"V",
"newValue",
")",
"{",
"unsafe",
".",
"putOrderedObject",
"(",
"this",
",",
"valueOffset",
",",
"newValue",
")",
";",
"}"
] |
public void lazySet(V newValue){value = newValue;}
|
train
| false
|
1,588
|
public UpdateVpcLinkResult updateVpcLink(UpdateVpcLinkRequest request) {request = beforeClientExecution(request);return executeUpdateVpcLink(request);}
|
[
"public",
"UpdateVpcLinkResult",
"updateVpcLink",
"(",
"UpdateVpcLinkRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateVpcLink",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateVpcLinkResponse UpdateVpcLink(UpdateVpcLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateVpcLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateVpcLinkResponseUnmarshaller.Instance;return Invoke<UpdateVpcLinkResponse>(request, options);}
|
train
| true
|
1,589
|
public void removeNoteCount() {remove1stProperty(PropertyIDMap.PID_NOTECOUNT);}
|
[
"public",
"void",
"removeNoteCount",
"(",
")",
"{",
"remove1stProperty",
"(",
"PropertyIDMap",
".",
"PID_NOTECOUNT",
")",
";",
"}"
] |
public void RemoveNoteCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_NOTECOUNT);}
|
train
| false
|
1,590
|
public Ref setValue(Ref value) {Ref prior = put(getKey(), value);ref = value;return prior;}
|
[
"public",
"Ref",
"setValue",
"(",
"Ref",
"value",
")",
"{",
"Ref",
"prior",
"=",
"put",
"(",
"getKey",
"(",
")",
",",
"value",
")",
";",
"ref",
"=",
"value",
";",
"return",
"prior",
";",
"}"
] |
public virtual Ref SetValue(Ref value){Ref prior = this._enclosing.Put(this.Key, value);this.@ref = value;return prior;}
|
train
| false
|
1,591
|
public RevCommit getSourceCommit(int idx) {return sourceCommits[idx];}
|
[
"public",
"RevCommit",
"getSourceCommit",
"(",
"int",
"idx",
")",
"{",
"return",
"sourceCommits",
"[",
"idx",
"]",
";",
"}"
] |
public virtual RevCommit GetSourceCommit(int idx){return sourceCommits[idx];}
|
train
| false
|
1,593
|
public GetDistributionResult getDistribution(GetDistributionRequest request) {request = beforeClientExecution(request);return executeGetDistribution(request);}
|
[
"public",
"GetDistributionResult",
"getDistribution",
"(",
"GetDistributionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDistribution",
"(",
"request",
")",
";",
"}"
] |
public virtual GetDistributionResponse GetDistribution(GetDistributionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDistributionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDistributionResponseUnmarshaller.Instance;return Invoke<GetDistributionResponse>(request, options);}
|
train
| true
|
1,594
|
public long seek(long ord) {long idx = ord / indexInterval;assert idx < fieldIndex.numIndexTerms;final long offset = fieldIndex.termOffsets.get(idx);final int length = (int) (fieldIndex.termOffsets.get(1+idx) - offset);termBytesReader.fillSlice(term, fieldIndex.termBytesStart + offset, length);this.ord = idx * indexInterval;return fieldIndex.termsStart + fieldIndex.termsDictOffsets.get(idx);}
|
[
"public",
"long",
"seek",
"(",
"long",
"ord",
")",
"{",
"long",
"idx",
"=",
"ord",
"/",
"indexInterval",
";",
"assert",
"idx",
"<",
"fieldIndex",
".",
"numIndexTerms",
";",
"final",
"long",
"offset",
"=",
"fieldIndex",
".",
"termOffsets",
".",
"get",
"(",
"idx",
")",
";",
"final",
"int",
"length",
"=",
"(",
"int",
")",
"(",
"fieldIndex",
".",
"termOffsets",
".",
"get",
"(",
"1",
"+",
"idx",
")",
"-",
"offset",
")",
";",
"termBytesReader",
".",
"fillSlice",
"(",
"term",
",",
"fieldIndex",
".",
"termBytesStart",
"+",
"offset",
",",
"length",
")",
";",
"this",
".",
"ord",
"=",
"idx",
"*",
"indexInterval",
";",
"return",
"fieldIndex",
".",
"termsStart",
"+",
"fieldIndex",
".",
"termsDictOffsets",
".",
"get",
"(",
"idx",
")",
";",
"}"
] |
public override long Seek(long ord){int idx = (int)(ord / outerInstance.totalIndexInterval);Debug.Assert(idx < fieldIndex.numIndexTerms);long offset = fieldIndex.termOffsets.Get(idx);int length = (int)(fieldIndex.termOffsets.Get(1 + idx) - offset);outerInstance.termBytesReader.FillSlice(term, fieldIndex.termBytesStart + offset, length);this.ord = idx * outerInstance.totalIndexInterval;return fieldIndex.termsStart + fieldIndex.termsDictOffsets.Get(idx);}
|
train
| false
|
1,595
|
public DescribeInterconnectsResult describeInterconnects(DescribeInterconnectsRequest request) {request = beforeClientExecution(request);return executeDescribeInterconnects(request);}
|
[
"public",
"DescribeInterconnectsResult",
"describeInterconnects",
"(",
"DescribeInterconnectsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeInterconnects",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeInterconnectsResponse DescribeInterconnects(DescribeInterconnectsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInterconnectsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInterconnectsResponseUnmarshaller.Instance;return Invoke<DescribeInterconnectsResponse>(request, options);}
|
train
| true
|
1,596
|
public static EvaluationException invalidValue() {return new EvaluationException(ErrorEval.VALUE_INVALID);}
|
[
"public",
"static",
"EvaluationException",
"invalidValue",
"(",
")",
"{",
"return",
"new",
"EvaluationException",
"(",
"ErrorEval",
".",
"VALUE_INVALID",
")",
";",
"}"
] |
public static EvaluationException InvalidValue(){return new EvaluationException(ErrorEval.VALUE_INVALID);}
|
train
| false
|
1,597
|
public static String escapeWhitespace(String s, boolean escapeSpaces) {StringBuilder buf = new StringBuilder();for (char c : s.toCharArray()) {if ( c==' ' && escapeSpaces ) buf.append('\u00B7');else if ( c=='\t' ) buf.append("\\t");else if ( c=='\n' ) buf.append("\\n");else if ( c=='\r' ) buf.append("\\r");else buf.append(c);}return buf.toString();}
|
[
"public",
"static",
"String",
"escapeWhitespace",
"(",
"String",
"s",
",",
"boolean",
"escapeSpaces",
")",
"{",
"StringBuilder",
"buf",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"for",
"(",
"char",
"c",
":",
"s",
".",
"toCharArray",
"(",
")",
")",
"{",
"if",
"(",
"c",
"==",
"' '",
"&&",
"escapeSpaces",
")",
"buf",
".",
"append",
"(",
"'·'",
")",
";",
"else",
"if",
"(",
"c",
"==",
"'\\t'",
")",
"buf",
".",
"append",
"(",
"\"\\\\t\"",
")",
";",
"else",
"if",
"(",
"c",
"==",
"'\\n'",
")",
"buf",
".",
"append",
"(",
"\"\\\\n\"",
")",
";",
"else",
"if",
"(",
"c",
"==",
"'\\r'",
")",
"buf",
".",
"append",
"(",
"\"\\\\r\"",
")",
";",
"else",
"buf",
".",
"append",
"(",
"c",
")",
";",
"}",
"return",
"buf",
".",
"toString",
"(",
")",
";",
"}"
] |
public static string EscapeWhitespace(string s, bool escapeSpaces){StringBuilder buf = new StringBuilder();foreach (char c in s.ToCharArray()){if (c == ' ' && escapeSpaces){buf.Append('\u00B7');}else{if (c == '\t'){buf.Append("\\t");}else{if (c == '\n'){buf.Append("\\n");}else{if (c == '\r'){buf.Append("\\r");}else{buf.Append(c);}}}}}return buf.ToString();}
|
train
| false
|
1,598
|
public DescribeOrderableClusterOptionsResult describeOrderableClusterOptions(DescribeOrderableClusterOptionsRequest request) {request = beforeClientExecution(request);return executeDescribeOrderableClusterOptions(request);}
|
[
"public",
"DescribeOrderableClusterOptionsResult",
"describeOrderableClusterOptions",
"(",
"DescribeOrderableClusterOptionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeOrderableClusterOptions",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeOrderableClusterOptionsResponse DescribeOrderableClusterOptions(DescribeOrderableClusterOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeOrderableClusterOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeOrderableClusterOptionsResponseUnmarshaller.Instance;return Invoke<DescribeOrderableClusterOptionsResponse>(request, options);}
|
train
| true
|
1,599
|
public DeleteArchiveRequest(String vaultName, String archiveId) {setVaultName(vaultName);setArchiveId(archiveId);}
|
[
"public",
"DeleteArchiveRequest",
"(",
"String",
"vaultName",
",",
"String",
"archiveId",
")",
"{",
"setVaultName",
"(",
"vaultName",
")",
";",
"setArchiveId",
"(",
"archiveId",
")",
";",
"}"
] |
public DeleteArchiveRequest(string vaultName, string archiveId){_vaultName = vaultName;_archiveId = archiveId;}
|
train
| false
|
1,600
|
public DescribeSnapshotsResult describeSnapshots(DescribeSnapshotsRequest request) {request = beforeClientExecution(request);return executeDescribeSnapshots(request);}
|
[
"public",
"DescribeSnapshotsResult",
"describeSnapshots",
"(",
"DescribeSnapshotsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeSnapshots",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeSnapshotsResponse DescribeSnapshots(DescribeSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSnapshotsResponseUnmarshaller.Instance;return Invoke<DescribeSnapshotsResponse>(request, options);}
|
train
| true
|
1,601
|
public BatchDeleteClusterSnapshotsResult batchDeleteClusterSnapshots(BatchDeleteClusterSnapshotsRequest request) {request = beforeClientExecution(request);return executeBatchDeleteClusterSnapshots(request);}
|
[
"public",
"BatchDeleteClusterSnapshotsResult",
"batchDeleteClusterSnapshots",
"(",
"BatchDeleteClusterSnapshotsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBatchDeleteClusterSnapshots",
"(",
"request",
")",
";",
"}"
] |
public virtual BatchDeleteClusterSnapshotsResponse BatchDeleteClusterSnapshots(BatchDeleteClusterSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDeleteClusterSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDeleteClusterSnapshotsResponseUnmarshaller.Instance;return Invoke<BatchDeleteClusterSnapshotsResponse>(request, options);}
|
train
| true
|
1,602
|
public DescribeClientVpnRoutesResult describeClientVpnRoutes(DescribeClientVpnRoutesRequest request) {request = beforeClientExecution(request);return executeDescribeClientVpnRoutes(request);}
|
[
"public",
"DescribeClientVpnRoutesResult",
"describeClientVpnRoutes",
"(",
"DescribeClientVpnRoutesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeClientVpnRoutes",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeClientVpnRoutesResponse DescribeClientVpnRoutes(DescribeClientVpnRoutesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClientVpnRoutesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClientVpnRoutesResponseUnmarshaller.Instance;return Invoke<DescribeClientVpnRoutesResponse>(request, options);}
|
train
| true
|
1,603
|
public String toString() {String padd = getPadding();StringBuilder sb = new StringBuilder(super.toString());sb.append(parallel ? " [" : " {");sb.append(NEW_LINE);for (final PerfTask task : tasks) {sb.append(task.toString());sb.append(NEW_LINE);}sb.append(padd);sb.append(!letChildReport ? ">" : (parallel ? "]" : "}"));if (fixedTime) {sb.append(' ').append(NumberFormat.getNumberInstance(Locale.ROOT).format(runTimeSec)).append('s');} else if (repetitions>1) {sb.append(" * ").append(repetitions);} else if (repetitions==REPEAT_EXHAUST) {sb.append(" * EXHAUST");}if (rate>0) {sb.append(", rate: ").append(rate).append('/').append(perMin ? "min" : "sec");}if (getRunInBackground()) {sb.append(" &");int x = getBackgroundDeltaPriority();if (x != 0) {sb.append(x);}}return sb.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"String",
"padd",
"=",
"getPadding",
"(",
")",
";",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
"super",
".",
"toString",
"(",
")",
")",
";",
"sb",
".",
"append",
"(",
"parallel",
"?",
"\" [\"",
":",
"\" {\"",
")",
";",
"sb",
".",
"append",
"(",
"NEW_LINE",
")",
";",
"for",
"(",
"final",
"PerfTask",
"task",
":",
"tasks",
")",
"{",
"sb",
".",
"append",
"(",
"task",
".",
"toString",
"(",
")",
")",
";",
"sb",
".",
"append",
"(",
"NEW_LINE",
")",
";",
"}",
"sb",
".",
"append",
"(",
"padd",
")",
";",
"sb",
".",
"append",
"(",
"!",
"letChildReport",
"?",
"\">\"",
":",
"(",
"parallel",
"?",
"\"]\"",
":",
"\"}\"",
")",
")",
";",
"if",
"(",
"fixedTime",
")",
"{",
"sb",
".",
"append",
"(",
"' '",
")",
".",
"append",
"(",
"NumberFormat",
".",
"getNumberInstance",
"(",
"Locale",
".",
"ROOT",
")",
".",
"format",
"(",
"runTimeSec",
")",
")",
".",
"append",
"(",
"'s'",
")",
";",
"}",
"else",
"if",
"(",
"repetitions",
">",
"1",
")",
"{",
"sb",
".",
"append",
"(",
"\" * \"",
")",
".",
"append",
"(",
"repetitions",
")",
";",
"}",
"else",
"if",
"(",
"repetitions",
"==",
"REPEAT_EXHAUST",
")",
"{",
"sb",
".",
"append",
"(",
"\" * EXHAUST\"",
")",
";",
"}",
"if",
"(",
"rate",
">",
"0",
")",
"{",
"sb",
".",
"append",
"(",
"\", rate: \"",
")",
".",
"append",
"(",
"rate",
")",
".",
"append",
"(",
"'/'",
")",
".",
"append",
"(",
"perMin",
"?",
"\"min\"",
":",
"\"sec\"",
")",
";",
"}",
"if",
"(",
"getRunInBackground",
"(",
")",
")",
"{",
"sb",
".",
"append",
"(",
"\" &\"",
")",
";",
"int",
"x",
"=",
"getBackgroundDeltaPriority",
"(",
")",
";",
"if",
"(",
"x",
"!=",
"0",
")",
"{",
"sb",
".",
"append",
"(",
"x",
")",
";",
"}",
"}",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}"
] |
public override string ToString(){string padd = GetPadding();StringBuilder sb = new StringBuilder(base.ToString());sb.Append(parallel ? " [" : " {");sb.Append(NEW_LINE);foreach (PerfTask task in tasks){sb.Append(task.ToString());sb.Append(NEW_LINE);}sb.Append(padd);sb.Append(!letChildReport ? ">" : (parallel ? "]" : "}"));if (fixedTime){sb.AppendFormat(CultureInfo.InvariantCulture, " {0:N}s", runTimeSec);}else if (repetitions > 1){sb.Append(" * " + repetitions);}else if (repetitions == REPEAT_EXHAUST){sb.Append(" * EXHAUST");}if (rate > 0){sb.Append(", rate: " + rate + "/" + (perMin ? "min" : "sec"));}if (RunInBackground){sb.Append(" &");int x = BackgroundDeltaPriority;if (x != 0){sb.Append(x);}}return sb.ToString();}
|
train
| false
|
1,604
|
public void serialize(LittleEndianOutput out) {out.writeDouble(field_1_minimumAxisValue);out.writeDouble(field_2_maximumAxisValue);out.writeDouble(field_3_majorIncrement);out.writeDouble(field_4_minorIncrement);out.writeDouble(field_5_categoryAxisCross);out.writeShort(field_6_options);}
|
[
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeDouble",
"(",
"field_1_minimumAxisValue",
")",
";",
"out",
".",
"writeDouble",
"(",
"field_2_maximumAxisValue",
")",
";",
"out",
".",
"writeDouble",
"(",
"field_3_majorIncrement",
")",
";",
"out",
".",
"writeDouble",
"(",
"field_4_minorIncrement",
")",
";",
"out",
".",
"writeDouble",
"(",
"field_5_categoryAxisCross",
")",
";",
"out",
".",
"writeShort",
"(",
"field_6_options",
")",
";",
"}"
] |
public override void Serialize(ILittleEndianOutput out1){out1.WriteDouble(field_1_minimumAxisValue);out1.WriteDouble(field_2_maximumAxisValue);out1.WriteDouble(field_3_majorIncrement);out1.WriteDouble(field_4_minorIncrement);out1.WriteDouble(field_5_categoryAxisCross);out1.WriteShort(field_6_options);}
|
train
| false
|
1,605
|
public final void makeReadOnly() {readOnly = true;}
|
[
"public",
"final",
"void",
"makeReadOnly",
"(",
")",
"{",
"readOnly",
"=",
"true",
";",
"}"
] |
public void MakeReadOnly(){readOnly = true;}
|
train
| false
|
1,606
|
public DescribeDirectConnectGatewaysResult describeDirectConnectGateways(DescribeDirectConnectGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeDirectConnectGateways(request);}
|
[
"public",
"DescribeDirectConnectGatewaysResult",
"describeDirectConnectGateways",
"(",
"DescribeDirectConnectGatewaysRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeDirectConnectGateways",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeDirectConnectGatewaysResponse DescribeDirectConnectGateways(DescribeDirectConnectGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDirectConnectGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDirectConnectGatewaysResponseUnmarshaller.Instance;return Invoke<DescribeDirectConnectGatewaysResponse>(request, options);}
|
train
| true
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.