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,599 | public DeleteCacheClusterRequest(String cacheClusterId) {setCacheClusterId(cacheClusterId);}
| [
"public",
"DeleteCacheClusterRequest",
"(",
"String",
"cacheClusterId",
")",
"{",
"setCacheClusterId",
"(",
"cacheClusterId",
")",
";",
"}"
] | public DeleteCacheClusterRequest(string cacheClusterId){_cacheClusterId = cacheClusterId;}
| train | false |
8,601 | public GroupingSearch setAllGroupHeads(boolean allGroupHeads) {this.allGroupHeads = allGroupHeads;return this;}
| [
"public",
"GroupingSearch",
"setAllGroupHeads",
"(",
"boolean",
"allGroupHeads",
")",
"{",
"this",
".",
"allGroupHeads",
"=",
"allGroupHeads",
";",
"return",
"this",
";",
"}"
] | public virtual GroupingSearch SetAllGroupHeads(bool allGroupHeads){this.allGroupHeads = allGroupHeads;return this;}
| train | false |
8,602 | public String dequote(String in) {final byte[] b = Constants.encode(in);return dequote(b, 0, b.length);}
| [
"public",
"String",
"dequote",
"(",
"String",
"in",
")",
"{",
"final",
"byte",
"[",
"]",
"b",
"=",
"Constants",
".",
"encode",
"(",
"in",
")",
";",
"return",
"dequote",
"(",
"b",
",",
"0",
",",
"b",
".",
"length",
")",
";",
"}"
] | public virtual string Dequote(string @in){byte[] b = Constants.Encode(@in);return Dequote(b, 0, b.Length);}
| train | false |
8,603 | public boolean isEmpty() {return entrySet().isEmpty();}
| [
"public",
"boolean",
"isEmpty",
"(",
")",
"{",
"return",
"entrySet",
"(",
")",
".",
"isEmpty",
"(",
")",
";",
"}"
] | public override bool IsEmpty(){return EntrySet().IsEmpty();}
| train | false |
8,604 | public Query makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf) {return SrndBooleanQuery.makeBooleanQuery( makeLuceneSubQueriesField(fieldName, qf), BooleanClause.Occur.MUST);}
| [
"public",
"Query",
"makeLuceneQueryFieldNoBoost",
"(",
"String",
"fieldName",
",",
"BasicQueryFactory",
"qf",
")",
"{",
"return",
"SrndBooleanQuery",
".",
"makeBooleanQuery",
"(",
"makeLuceneSubQueriesField",
"(",
"fieldName",
",",
"qf",
")",
",",
"BooleanClause",
"."... | public override Search.Query MakeLuceneQueryFieldNoBoost(string fieldName, BasicQueryFactory qf){return SrndBooleanQuery.MakeBooleanQuery( MakeLuceneSubQueriesField(fieldName, qf), Occur.MUST);}
| train | false |
8,605 | public long getSize() {return data.length;}
| [
"public",
"long",
"getSize",
"(",
")",
"{",
"return",
"data",
".",
"length",
";",
"}"
] | public override long GetSize(){return data.Length;}
| train | false |
8,606 | public CreatePhoneNumberOrderResult createPhoneNumberOrder(CreatePhoneNumberOrderRequest request) {request = beforeClientExecution(request);return executeCreatePhoneNumberOrder(request);}
| [
"public",
"CreatePhoneNumberOrderResult",
"createPhoneNumberOrder",
"(",
"CreatePhoneNumberOrderRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreatePhoneNumberOrder",
"(",
"request",
")",
";",
"}"
] | public virtual CreatePhoneNumberOrderResponse CreatePhoneNumberOrder(CreatePhoneNumberOrderRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePhoneNumberOrderRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePhoneNumberOrderResponseUnmarshaller.Instance;return Invoke<Crea... | train | true |
8,607 | public ShortBuffer get(short[] dst, int dstOffset, int shortCount) {byteBuffer.limit(limit * SizeOf.SHORT);byteBuffer.position(position * SizeOf.SHORT);if (byteBuffer instanceof DirectByteBuffer) {((DirectByteBuffer) byteBuffer).get(dst, dstOffset, shortCount);} else {((HeapByteBuffer) byteBuffer).get(dst, dstOffset, s... | [
"public",
"ShortBuffer",
"get",
"(",
"short",
"[",
"]",
"dst",
",",
"int",
"dstOffset",
",",
"int",
"shortCount",
")",
"{",
"byteBuffer",
".",
"limit",
"(",
"limit",
"*",
"SizeOf",
".",
"SHORT",
")",
";",
"byteBuffer",
".",
"position",
"(",
"position",
... | public override java.nio.ShortBuffer get(short[] dst, int dstOffset, int shortCount){byteBuffer.limit(_limit * libcore.io.SizeOf.SHORT);byteBuffer.position(_position * libcore.io.SizeOf.SHORT);if (byteBuffer is java.nio.DirectByteBuffer){((java.nio.DirectByteBuffer)byteBuffer).get(dst, dstOffset, shortCount);}else{((ja... | train | false |
8,608 | public DetectModerationLabelsResult detectModerationLabels(DetectModerationLabelsRequest request) {request = beforeClientExecution(request);return executeDetectModerationLabels(request);}
| [
"public",
"DetectModerationLabelsResult",
"detectModerationLabels",
"(",
"DetectModerationLabelsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDetectModerationLabels",
"(",
"request",
")",
";",
"}"
] | public virtual DetectModerationLabelsResponse DetectModerationLabels(DetectModerationLabelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectModerationLabelsRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectModerationLabelsResponseUnmarshaller.Instance;return Invoke<Dete... | train | true |
8,609 | public UncalcedRecord(RecordInputStream in) {_reserved = in.readShort(); }
| [
"public",
"UncalcedRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"_reserved",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"}"
] | public UncalcedRecord(RecordInputStream in1){_reserved = in1.ReadShort();}
| train | false |
8,610 | public String handlePart(Matcher m, String part, CellFormatType type,StringBuffer desc) {int pos = desc.length();char firstCh = part.charAt(0);switch (firstCh) {case '[':if (part.length() < 3)break;if (topmost != null)throw new IllegalArgumentException("Duplicate '[' times in format");part = part.toLowerCase(Locale.ROO... | [
"public",
"String",
"handlePart",
"(",
"Matcher",
"m",
",",
"String",
"part",
",",
"CellFormatType",
"type",
",",
"StringBuffer",
"desc",
")",
"{",
"int",
"pos",
"=",
"desc",
".",
"length",
"(",
")",
";",
"char",
"firstCh",
"=",
"part",
".",
"charAt",
... | public String HandlePart(Match m, String part, CellFormatType type,StringBuilder desc){int pos = desc.Length;char firstCh = part[0];switch (firstCh){case '[':if (part.Length < 3)break;if (_formatter.topmost != null)throw new ArgumentException("Duplicate '[' times in format");part = part.ToLower();int specLen = part.Len... | train | false |
8,611 | public long ramBytesUsed() {long sizeInBytes = ((delegateFieldsProducer!=null) ? delegateFieldsProducer.ramBytesUsed() : 0);for(Map.Entry<String,FuzzySet> entry: bloomsByFieldName.entrySet()) {sizeInBytes += entry.getKey().length() * Character.BYTES;sizeInBytes += entry.getValue().ramBytesUsed();}return sizeInBytes;}
| [
"public",
"long",
"ramBytesUsed",
"(",
")",
"{",
"long",
"sizeInBytes",
"=",
"(",
"(",
"delegateFieldsProducer",
"!=",
"null",
")",
"?",
"delegateFieldsProducer",
".",
"ramBytesUsed",
"(",
")",
":",
"0",
")",
";",
"for",
"(",
"Map",
".",
"Entry",
"<",
"S... | public override long RamBytesUsed(){var sizeInBytes = ((_delegateFieldsProducer != null) ? _delegateFieldsProducer.RamBytesUsed() : 0);foreach (var entry in _bloomsByFieldName){sizeInBytes += entry.Key.Length * RamUsageEstimator.NUM_BYTES_CHAR;sizeInBytes += entry.Value.RamBytesUsed();}return sizeInBytes;}
| train | false |
8,612 | public CreateImageRequest(String instanceId, String name) {setInstanceId(instanceId);setName(name);}
| [
"public",
"CreateImageRequest",
"(",
"String",
"instanceId",
",",
"String",
"name",
")",
"{",
"setInstanceId",
"(",
"instanceId",
")",
";",
"setName",
"(",
"name",
")",
";",
"}"
] | public CreateImageRequest(string instanceId, string name){_instanceId = instanceId;_name = name;}
| train | false |
8,613 | public SendDiagnosticInterruptResult sendDiagnosticInterrupt(SendDiagnosticInterruptRequest request) {request = beforeClientExecution(request);return executeSendDiagnosticInterrupt(request);}
| [
"public",
"SendDiagnosticInterruptResult",
"sendDiagnosticInterrupt",
"(",
"SendDiagnosticInterruptRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSendDiagnosticInterrupt",
"(",
"request",
")",
";",
"}"
] | public virtual SendDiagnosticInterruptResponse SendDiagnosticInterrupt(SendDiagnosticInterruptRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendDiagnosticInterruptRequestMarshaller.Instance;options.ResponseUnmarshaller = SendDiagnosticInterruptResponseUnmarshaller.Instance;return Invoke... | train | false |
8,614 | public int lastIndexOf(Object object) {Object[] snapshot = elements;return lastIndexOf(object, snapshot, 0, snapshot.length);}
| [
"public",
"int",
"lastIndexOf",
"(",
"Object",
"object",
")",
"{",
"Object",
"[",
"]",
"snapshot",
"=",
"elements",
";",
"return",
"lastIndexOf",
"(",
"object",
",",
"snapshot",
",",
"0",
",",
"snapshot",
".",
"length",
")",
";",
"}"
] | public virtual int lastIndexOf(object @object){object[] snapshot = elements;return lastIndexOf(@object, snapshot, 0, snapshot.Length);}
| train | true |
8,615 | public AbortDocumentVersionUploadResult abortDocumentVersionUpload(AbortDocumentVersionUploadRequest request) {request = beforeClientExecution(request);return executeAbortDocumentVersionUpload(request);}
| [
"public",
"AbortDocumentVersionUploadResult",
"abortDocumentVersionUpload",
"(",
"AbortDocumentVersionUploadRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAbortDocumentVersionUpload",
"(",
"request",
")",
";... | public virtual AbortDocumentVersionUploadResponse AbortDocumentVersionUpload(AbortDocumentVersionUploadRequest request){var options = new InvokeOptions();options.RequestMarshaller = AbortDocumentVersionUploadRequestMarshaller.Instance;options.ResponseUnmarshaller = AbortDocumentVersionUploadResponseUnmarshaller.Instanc... | train | true |
8,616 | public PaneInformation(short x, short y, short top, short left, byte active, boolean frozen) {this.x = x;this.y = y;this.topRow = top;this.leftColumn = left;this.activePane = active;this.frozen = frozen;}
| [
"public",
"PaneInformation",
"(",
"short",
"x",
",",
"short",
"y",
",",
"short",
"top",
",",
"short",
"left",
",",
"byte",
"active",
",",
"boolean",
"frozen",
")",
"{",
"this",
".",
"x",
"=",
"x",
";",
"this",
".",
"y",
"=",
"y",
";",
"this",
"."... | public PaneInformation(short x, short y, short top, short left, byte active, bool frozen){this.x = x;this.y = y;this.topRow = top;this.leftColumn = left;this.activePane = active;this.frozen = frozen;}
| train | false |
8,617 | public DescribeScalingProcessTypesResult describeScalingProcessTypes(DescribeScalingProcessTypesRequest request) {request = beforeClientExecution(request);return executeDescribeScalingProcessTypes(request);}
| [
"public",
"DescribeScalingProcessTypesResult",
"describeScalingProcessTypes",
"(",
"DescribeScalingProcessTypesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeScalingProcessTypes",
"(",
"request",
")",
... | public virtual DescribeScalingProcessTypesResponse DescribeScalingProcessTypes(DescribeScalingProcessTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScalingProcessTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScalingProcessTypesResponseUnmarshaller.In... | train | true |
8,618 | public static boolean endsWith(char s[], int len, char suffix[]) {final int suffixLen = suffix.length;if (suffixLen > len)return false;for (int i = suffixLen - 1; i >= 0; i--)if (s[len -(suffixLen - i)] != suffix[i])return false;return true;}
| [
"public",
"static",
"boolean",
"endsWith",
"(",
"char",
"s",
"[",
"]",
",",
"int",
"len",
",",
"char",
"suffix",
"[",
"]",
")",
"{",
"final",
"int",
"suffixLen",
"=",
"suffix",
".",
"length",
";",
"if",
"(",
"suffixLen",
">",
"len",
")",
"return",
... | public static bool EndsWith(char[] s, int len, char[] suffix){int suffixLen = suffix.Length;if (suffixLen > len){return false;}for (int i = suffixLen - 1; i >= 0; i--){if (s[len - (suffixLen - i)] != suffix[i]){return false;}}return true;}
| train | false |
8,619 | public void warnIfOpen() {if (allocationSite == null || !ENABLED) {return;}String message =("A resource was acquired at attached stack trace but never released. "+ "See java.io.Closeable for information on avoiding resource leaks.");REPORTER.report(message, allocationSite);}
| [
"public",
"void",
"warnIfOpen",
"(",
")",
"{",
"if",
"(",
"allocationSite",
"==",
"null",
"||",
"!",
"ENABLED",
")",
"{",
"return",
";",
"}",
"String",
"message",
"=",
"(",
"\"A resource was acquired at attached stack trace but never released. \"",
"+",
"\"See java.... | public void warnIfOpen(){if (allocationSite == null || !ENABLED){return;}string message = ("A resource was acquired at attached stack trace but never released. "+ "See java.io.Closeable for information on avoiding resource leaks.");REPORTER.report(message, allocationSite);}
| train | true |
8,620 | public GetImageScanRequest() {super("cr", "2016-06-07", "GetImageScan", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scan");setMethod(MethodType.GET);}
| [
"public",
"GetImageScanRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"GetImageScan\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scan\"",
")",
";",
"setMethod",
"(",
"MethodType",
".... | public GetImageScanRequest(): base("cr", "2016-06-07", "GetImageScan", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scan";Method = MethodType.GET;}
| train | false |
8,621 | public ListSkillsStoreCategoriesResult listSkillsStoreCategories(ListSkillsStoreCategoriesRequest request) {request = beforeClientExecution(request);return executeListSkillsStoreCategories(request);}
| [
"public",
"ListSkillsStoreCategoriesResult",
"listSkillsStoreCategories",
"(",
"ListSkillsStoreCategoriesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListSkillsStoreCategories",
"(",
"request",
")",
";",
... | public virtual ListSkillsStoreCategoriesResponse ListSkillsStoreCategories(ListSkillsStoreCategoriesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSkillsStoreCategoriesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSkillsStoreCategoriesResponseUnmarshaller.Instance;ret... | train | true |
8,622 | public int getHeight() {return mImage.getHeight();}
| [
"public",
"int",
"getHeight",
"(",
")",
"{",
"return",
"mImage",
".",
"getHeight",
"(",
")",
";",
"}"
] | public virtual int getHeight(){return mBitmap.getHeight();}
| train | false |
8,623 | public void applyFont(Font font) {applyFont(0, _string.getCharCount(), font);}
| [
"public",
"void",
"applyFont",
"(",
"Font",
"font",
")",
"{",
"applyFont",
"(",
"0",
",",
"_string",
".",
"getCharCount",
"(",
")",
",",
"font",
")",
";",
"}"
] | public void ApplyFont(short fontIndex){ApplyFont(0, _string.CharCount, fontIndex);}
| train | false |
8,624 | public DetectEntitiesResult detectEntities(DetectEntitiesRequest request) {request = beforeClientExecution(request);return executeDetectEntities(request);}
| [
"public",
"DetectEntitiesResult",
"detectEntities",
"(",
"DetectEntitiesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDetectEntities",
"(",
"request",
")",
";",
"}"
] | public virtual DetectEntitiesResponse DetectEntities(DetectEntitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectEntitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectEntitiesResponseUnmarshaller.Instance;return Invoke<DetectEntitiesResponse>(request, options);}
| train | true |
8,625 | public void copyRawTo(ByteBuffer w) {w.putInt(w1);w.putInt(w2);w.putInt(w3);w.putInt(w4);w.putInt(w5);}
| [
"public",
"void",
"copyRawTo",
"(",
"ByteBuffer",
"w",
")",
"{",
"w",
".",
"putInt",
"(",
"w1",
")",
";",
"w",
".",
"putInt",
"(",
"w2",
")",
";",
"w",
".",
"putInt",
"(",
"w3",
")",
";",
"w",
".",
"putInt",
"(",
"w4",
")",
";",
"w",
".",
"... | public virtual void CopyRawTo(ByteBuffer w){w.PutInt(w1);w.PutInt(w2);w.PutInt(w3);w.PutInt(w4);w.PutInt(w5);}
| train | false |
8,626 | public final char[] array() {return protectedArray();}
| [
"public",
"final",
"char",
"[",
"]",
"array",
"(",
")",
"{",
"return",
"protectedArray",
"(",
")",
";",
"}"
] | public sealed override object array(){return protectedArray();}
| train | false |
8,627 | public void seekExact(long ord) throws IOException {if (indexEnum == null) {throw new IllegalStateException("terms index was not loaded");}assert ord < numTerms;in.seek(indexEnum.seek(ord));boolean result = nextBlock();assert result;indexIsCurrent = true;didIndexNext = false;seekPending = false;state.ord = indexEnum.or... | [
"public",
"void",
"seekExact",
"(",
"long",
"ord",
")",
"throws",
"IOException",
"{",
"if",
"(",
"indexEnum",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"terms index was not loaded\"",
")",
";",
"}",
"assert",
"ord",
"<",
"numTerms... | public override void SeekExact(long ord){if (indexEnum == null){throw new InvalidOperationException("terms index was not loaded");}Debug.Assert(ord < outerInstance.numTerms);input.Seek(indexEnum.Seek(ord));bool result = NextBlock();Debug.Assert(result);indexIsCurrent = true;didIndexNext = false;blocksSinceSeek = 0;seek... | train | false |
8,628 | public String toString() {StringBuilder sb = new StringBuilder();sb.append('[');final int end = offset + length;for(int i=offset;i<end;i++) {if (i > offset) {sb.append(' ');}sb.append(Integer.toHexString(bytes[i]&0xff));}sb.append(']');return sb.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"sb",
".",
"append",
"(",
"'['",
")",
";",
"final",
"int",
"end",
"=",
"offset",
"+",
"length",
";",
"for",
"(",
"int",
"i",
"=",
"off... | public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append('[');int end = Offset + Length;for (int i = Offset; i < end; i++){if (i > Offset){sb.Append(' ');}sb.Append((bytes[i] & 0xff).ToString("x"));}sb.Append(']');return sb.ToString();}
| train | false |
8,629 | public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(" [FEATURE PROTECTION]\n");buffer.append(" Self Relative = " + fSD);buffer.append(" Password Verifier = " + passwordVerifier);buffer.append(" Title = " + title);buffer.append(" Security Descriptor Size = " + securityDescriptor.le... | [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\" [FEATURE PROTECTION]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" Self Relative = \"",
"+",
"fSD",
"... | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(" [FEATURE PROTECTION]\n");buffer.Append(" Self Relative = " + fSD);buffer.Append(" Password Verifier = " + passwordVerifier);buffer.Append(" Title = " + title);buffer.Append(" Security Descriptor Size = " + securityDescr... | train | false |
8,630 | public void setCRC(int crc32) {crc = crc32;}
| [
"public",
"void",
"setCRC",
"(",
"int",
"crc32",
")",
"{",
"crc",
"=",
"crc32",
";",
"}"
] | public virtual void SetCRC(int crc32){crc = crc32;}
| train | false |
8,631 | public DoubleRange(String label, double minIn, boolean minInclusive, double maxIn, boolean maxInclusive) {super(label);if (Double.isNaN(minIn)) {throw new IllegalArgumentException("min cannot be NaN");}if (!minInclusive) {minIn = Math.nextUp(minIn);}if (Double.isNaN(maxIn)) {throw new IllegalArgumentException("max cann... | [
"public",
"DoubleRange",
"(",
"String",
"label",
",",
"double",
"minIn",
",",
"boolean",
"minInclusive",
",",
"double",
"maxIn",
",",
"boolean",
"maxInclusive",
")",
"{",
"super",
"(",
"label",
")",
";",
"if",
"(",
"Double",
".",
"isNaN",
"(",
"minIn",
"... | public DoubleRange(string label, double minIn, bool minInclusive, double maxIn, bool maxInclusive): base(label){this.Min = minIn;this.Max = maxIn;this.MinInclusive = minInclusive;this.MaxInclusive = maxInclusive;if (double.IsNaN(Min)){throw new System.ArgumentException("min cannot be NaN");}if (!minInclusive){minIn += ... | train | false |
8,632 | public int getBATEntriesPerBlock() {return bigBlockSize / LittleEndianConsts.INT_SIZE;}
| [
"public",
"int",
"getBATEntriesPerBlock",
"(",
")",
"{",
"return",
"bigBlockSize",
"/",
"LittleEndianConsts",
".",
"INT_SIZE",
";",
"}"
] | public int GetBATEntriesPerBlock(){return bigBlockSize / LittleEndianConsts.INT_SIZE;}
| train | false |
8,633 | public CreatePublishingDestinationResult createPublishingDestination(CreatePublishingDestinationRequest request) {request = beforeClientExecution(request);return executeCreatePublishingDestination(request);}
| [
"public",
"CreatePublishingDestinationResult",
"createPublishingDestination",
"(",
"CreatePublishingDestinationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreatePublishingDestination",
"(",
"request",
")",
... | public virtual CreatePublishingDestinationResponse CreatePublishingDestination(CreatePublishingDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePublishingDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePublishingDestinationResponseUnmarshaller.In... | train | false |
8,634 | public void skipBytes(long count) {pos += count;}
| [
"public",
"void",
"skipBytes",
"(",
"long",
"count",
")",
"{",
"pos",
"+=",
"count",
";",
"}"
] | public override void SkipBytes(long count){pos += (int)count;}
| train | false |
8,635 | public String toString() {return "jarowinkler(" + threshold + ")";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"jarowinkler(\"",
"+",
"threshold",
"+",
"\")\"",
";",
"}"
] | public override string ToString(){return "jarowinkler(" + threshold + ")";}
| train | false |
8,636 | public DeleteInvitationsResult deleteInvitations(DeleteInvitationsRequest request) {request = beforeClientExecution(request);return executeDeleteInvitations(request);}
| [
"public",
"DeleteInvitationsResult",
"deleteInvitations",
"(",
"DeleteInvitationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteInvitations",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteInvitationsResponse DeleteInvitations(DeleteInvitationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteInvitationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteInvitationsResponseUnmarshaller.Instance;return Invoke<DeleteInvitationsResponse>(re... | train | true |
8,637 | public DelimitedPayloadTokenFilterFactory(Map<String, String> args) {super(args);encoderClass = require(args, ENCODER_ATTR);delimiter = getChar(args, DELIMITER_ATTR, '|');if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"DelimitedPayloadTokenFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"encoderClass",
"=",
"require",
"(",
"args",
",",
"ENCODER_ATTR",
")",
";",
"delimiter",
"=",
"getChar",
"(",
"... | public DelimitedPayloadTokenFilterFactory(IDictionary<string, string> args): base(args){encoderClass = Require(args, ENCODER_ATTR);delimiter = GetChar(args, DELIMITER_ATTR, '|');if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
| train | false |
8,638 | public ListSmartHomeAppliancesResult listSmartHomeAppliances(ListSmartHomeAppliancesRequest request) {request = beforeClientExecution(request);return executeListSmartHomeAppliances(request);}
| [
"public",
"ListSmartHomeAppliancesResult",
"listSmartHomeAppliances",
"(",
"ListSmartHomeAppliancesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListSmartHomeAppliances",
"(",
"request",
")",
";",
"}"
] | public virtual ListSmartHomeAppliancesResponse ListSmartHomeAppliances(ListSmartHomeAppliancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSmartHomeAppliancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSmartHomeAppliancesResponseUnmarshaller.Instance;return Invoke... | train | true |
8,639 | public void dispatch(ConfigChangedListener listener) {listener.onConfigChanged(this);}
| [
"public",
"void",
"dispatch",
"(",
"ConfigChangedListener",
"listener",
")",
"{",
"listener",
".",
"onConfigChanged",
"(",
"this",
")",
";",
"}"
] | public override void Dispatch(ConfigChangedListener listener){listener.OnConfigChanged(this);}
| train | false |
8,640 | public File[] listFiles() {return filenamesToFiles(list());}
| [
"public",
"File",
"[",
"]",
"listFiles",
"(",
")",
"{",
"return",
"filenamesToFiles",
"(",
"list",
"(",
")",
")",
";",
"}"
] | public java.io.File[] listFiles(){return filenamesToFiles(list());}
| train | false |
8,641 | public DedicatedCapacityInner getByResourceGroup(String resourceGroupName, String dedicatedCapacityName) {return getByResourceGroupWithServiceResponseAsync(resourceGroupName, dedicatedCapacityName).toBlocking().single().body();}
| [
"public",
"DedicatedCapacityInner",
"getByResourceGroup",
"(",
"String",
"resourceGroupName",
",",
"String",
"dedicatedCapacityName",
")",
"{",
"return",
"getByResourceGroupWithServiceResponseAsync",
"(",
"resourceGroupName",
",",
"dedicatedCapacityName",
")",
".",
"toBlocking"... | public async Task<AzureOperationResponse<DedicatedCapacity>> GetDetailsWithHttpMessagesAsync(string resourceGroupName, string dedicatedCapacityName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)){return await innerCapacityOperations.GetDetailsWit... | train | false |
8,642 | public void seekExact(long ord) {assert ord < info.terms.size();termUpto = (int) ord;info.terms.get(info.sortedTerms[termUpto], br);}
| [
"public",
"void",
"seekExact",
"(",
"long",
"ord",
")",
"{",
"assert",
"ord",
"<",
"info",
".",
"terms",
".",
"size",
"(",
")",
";",
"termUpto",
"=",
"(",
"int",
")",
"ord",
";",
"info",
".",
"terms",
".",
"get",
"(",
"info",
".",
"sortedTerms",
... | public override void SeekExact(long ord){Debug.Assert(ord < info.terms.Count);termUpto = (int)ord;}
| train | false |
8,643 | public CreateTrialComponentResult createTrialComponent(CreateTrialComponentRequest request) {request = beforeClientExecution(request);return executeCreateTrialComponent(request);}
| [
"public",
"CreateTrialComponentResult",
"createTrialComponent",
"(",
"CreateTrialComponentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateTrialComponent",
"(",
"request",
")",
";",
"}"
] | public virtual CreateTrialComponentResponse CreateTrialComponent(CreateTrialComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTrialComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTrialComponentResponseUnmarshaller.Instance;return Invoke<CreateTrialCom... | train | false |
8,644 | public UpdateResourceResult updateResource(UpdateResourceRequest request) {request = beforeClientExecution(request);return executeUpdateResource(request);}
| [
"public",
"UpdateResourceResult",
"updateResource",
"(",
"UpdateResourceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateResource",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateResourceResponse UpdateResource(UpdateResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateResourceResponseUnmarshaller.Instance;return Invoke<UpdateResourceResponse>(request, options);}
| train | true |
8,645 | public long length() {try {return channel.size();} catch (IOException ioe) {throw new RuntimeException("IOException during length(): " + this, ioe);}}
| [
"public",
"long",
"length",
"(",
")",
"{",
"try",
"{",
"return",
"channel",
".",
"size",
"(",
")",
";",
"}",
"catch",
"(",
"IOException",
"ioe",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"IOException during length(): \"",
"+",
"this",
",",
"ioe"... | public long length(){try{return channel.size();}catch (IOException ioe){throw new Exception("IOException during length(): " + this, ioe);}}
| train | false |
8,647 | public static boolean isContainer(short options, short recordId){if(recordId >= EscherContainerRecord.DGG_CONTAINER && recordId<= EscherContainerRecord.SOLVER_CONTAINER){return true;} else {if (recordId == EscherTextboxRecord.RECORD_ID) {return false;} else {return ( options & (short) 0x000F ) == (short) 0x000F;}}}
| [
"public",
"static",
"boolean",
"isContainer",
"(",
"short",
"options",
",",
"short",
"recordId",
")",
"{",
"if",
"(",
"recordId",
">=",
"EscherContainerRecord",
".",
"DGG_CONTAINER",
"&&",
"recordId",
"<=",
"EscherContainerRecord",
".",
"SOLVER_CONTAINER",
")",
"{... | public static bool IsContainer(short options, short recordId){if (recordId >= EscherContainerRecord.DGG_CONTAINER && recordId<= EscherContainerRecord.SOLVER_CONTAINER){return true;}else{if (recordId == EscherTextboxRecord.RECORD_ID){return false;}else{return (options & (short)0x000F) == (short)0x000F;}}}
| train | false |
8,648 | public boolean exists(String fileName) {assert locked();if (!refCounts.containsKey(fileName)) {return false;} else {return getRefCount(fileName).count > 0;}}
| [
"public",
"boolean",
"exists",
"(",
"String",
"fileName",
")",
"{",
"assert",
"locked",
"(",
")",
";",
"if",
"(",
"!",
"refCounts",
".",
"containsKey",
"(",
"fileName",
")",
")",
"{",
"return",
"false",
";",
"}",
"else",
"{",
"return",
"getRefCount",
"... | public bool Exists(string fileName){Debug.Assert(IsLocked);return refCounts.TryGetValue(fileName, out RefCount value) ? value.count > 0 : false;}
| train | false |
8,649 | public STSAssumeRoleSessionCredentialsProvider withSTSClient(IAcsClient client) {this.stsClient = client;return this;}
| [
"public",
"STSAssumeRoleSessionCredentialsProvider",
"withSTSClient",
"(",
"IAcsClient",
"client",
")",
"{",
"this",
".",
"stsClient",
"=",
"client",
";",
"return",
"this",
";",
"}"
] | public void WithSTSClient(IAcsClient client){stsClient = client;}
| train | false |
8,650 | public AcceptMatchResult acceptMatch(AcceptMatchRequest request) {request = beforeClientExecution(request);return executeAcceptMatch(request);}
| [
"public",
"AcceptMatchResult",
"acceptMatch",
"(",
"AcceptMatchRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAcceptMatch",
"(",
"request",
")",
";",
"}"
] | public virtual AcceptMatchResponse AcceptMatch(AcceptMatchRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptMatchRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptMatchResponseUnmarshaller.Instance;return Invoke<AcceptMatchResponse>(request, options);}
| train | true |
8,651 | public static RevFilter create(int skip) {if (skip < 0)throw new IllegalArgumentException(JGitText.get().skipMustBeNonNegative);return new SkipRevFilter(skip);}
| [
"public",
"static",
"RevFilter",
"create",
"(",
"int",
"skip",
")",
"{",
"if",
"(",
"skip",
"<",
"0",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"skipMustBeNonNegative",
")",
";",
"return",
"new",
"SkipRevF... | public static RevFilter Create(int skip){if (skip < 0){throw new ArgumentException(JGitText.Get().skipMustBeNonNegative);}return new NGit.Revwalk.Filter.SkipRevFilter(skip);}
| train | false |
8,652 | public GetHITResult getHIT(GetHITRequest request) {request = beforeClientExecution(request);return executeGetHIT(request);}
| [
"public",
"GetHITResult",
"getHIT",
"(",
"GetHITRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetHIT",
"(",
"request",
")",
";",
"}"
] | public virtual GetHITResponse GetHIT(GetHITRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHITRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHITResponseUnmarshaller.Instance;return Invoke<GetHITResponse>(request, options);}
| train | true |
8,653 | public StopStreamProcessorResult stopStreamProcessor(StopStreamProcessorRequest request) {request = beforeClientExecution(request);return executeStopStreamProcessor(request);}
| [
"public",
"StopStreamProcessorResult",
"stopStreamProcessor",
"(",
"StopStreamProcessorRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStopStreamProcessor",
"(",
"request",
")",
";",
"}"
] | public virtual StopStreamProcessorResponse StopStreamProcessor(StopStreamProcessorRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopStreamProcessorRequestMarshaller.Instance;options.ResponseUnmarshaller = StopStreamProcessorResponseUnmarshaller.Instance;return Invoke<StopStreamProcessor... | train | true |
8,654 | public static AttrPtg createIf(int dist) {return new AttrPtg(optiIf.set(0), dist, null, -1);}
| [
"public",
"static",
"AttrPtg",
"createIf",
"(",
"int",
"dist",
")",
"{",
"return",
"new",
"AttrPtg",
"(",
"optiIf",
".",
"set",
"(",
"0",
")",
",",
"dist",
",",
"null",
",",
"-",
"1",
")",
";",
"}"
] | public static AttrPtg CreateIf(int dist){return new AttrPtg(optiIf.Set(0), dist, null, -1);}
| train | false |
8,655 | public DeleteIAMPolicyAssignmentResult deleteIAMPolicyAssignment(DeleteIAMPolicyAssignmentRequest request) {request = beforeClientExecution(request);return executeDeleteIAMPolicyAssignment(request);}
| [
"public",
"DeleteIAMPolicyAssignmentResult",
"deleteIAMPolicyAssignment",
"(",
"DeleteIAMPolicyAssignmentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteIAMPolicyAssignment",
"(",
"request",
")",
";",
... | public virtual DeleteIAMPolicyAssignmentResponse DeleteIAMPolicyAssignment(DeleteIAMPolicyAssignmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIAMPolicyAssignmentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIAMPolicyAssignmentResponseUnmarshaller.Instance;ret... | train | false |
8,656 | public UpdateCampaignResult updateCampaign(UpdateCampaignRequest request) {request = beforeClientExecution(request);return executeUpdateCampaign(request);}
| [
"public",
"UpdateCampaignResult",
"updateCampaign",
"(",
"UpdateCampaignRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateCampaign",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateCampaignResponse UpdateCampaign(UpdateCampaignRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateCampaignRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateCampaignResponseUnmarshaller.Instance;return Invoke<UpdateCampaignResponse>(request, options);}
| train | true |
8,657 | public LexerActionExecutor fixOffsetBeforeMatch(int offset) {LexerAction[] updatedLexerActions = null;for (int i = 0; i < lexerActions.length; i++) {if (lexerActions[i].isPositionDependent() && !(lexerActions[i] instanceof LexerIndexedCustomAction)) {if (updatedLexerActions == null) {updatedLexerActions = lexerActions.... | [
"public",
"LexerActionExecutor",
"fixOffsetBeforeMatch",
"(",
"int",
"offset",
")",
"{",
"LexerAction",
"[",
"]",
"updatedLexerActions",
"=",
"null",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"lexerActions",
".",
"length",
";",
"i",
"++",
")",
... | public virtual Antlr4.Runtime.Atn.LexerActionExecutor FixOffsetBeforeMatch(int offset){ILexerAction[] updatedLexerActions = null;for (int i = 0; i < lexerActions.Length; i++){if (lexerActions[i].IsPositionDependent && !(lexerActions[i] is LexerIndexedCustomAction)){if (updatedLexerActions == null){updatedLexerActions =... | train | false |
8,658 | public void protectSheet(String password, boolean shouldProtectObjects,boolean shouldProtectScenarios) {if (password == null) {_passwordRecord = null;_protectRecord = null;_objectProtectRecord = null;_scenarioProtectRecord = null;return;}ProtectRecord prec = getProtect();PasswordRecord pass = getPassword();prec.setProt... | [
"public",
"void",
"protectSheet",
"(",
"String",
"password",
",",
"boolean",
"shouldProtectObjects",
",",
"boolean",
"shouldProtectScenarios",
")",
"{",
"if",
"(",
"password",
"==",
"null",
")",
"{",
"_passwordRecord",
"=",
"null",
";",
"_protectRecord",
"=",
"n... | public void ProtectSheet(String password, bool shouldProtectObjects,bool shouldProtectScenarios){if (password == null){_passwordRecord = null;_protectRecord = null;_objectProtectRecord = null;_scenarioProtectRecord = null;return;}ProtectRecord prec = this.Protect;PasswordRecord pass = this.Password;prec.Protect = true;... | train | false |
8,659 | public PackedDataOutput(DataOutput out) {this.out = out;current = 0;remainingBits = 8;}
| [
"public",
"PackedDataOutput",
"(",
"DataOutput",
"out",
")",
"{",
"this",
".",
"out",
"=",
"out",
";",
"current",
"=",
"0",
";",
"remainingBits",
"=",
"8",
";",
"}"
] | public PackedDataOutput(DataOutput @out){this.@out = @out;current = 0;remainingBits = 8;}
| train | false |
8,660 | public CFRuleBase getRule(int idx) {checkRuleIndex(idx);return rules.get(idx);}
| [
"public",
"CFRuleBase",
"getRule",
"(",
"int",
"idx",
")",
"{",
"checkRuleIndex",
"(",
"idx",
")",
";",
"return",
"rules",
".",
"get",
"(",
"idx",
")",
";",
"}"
] | public CFRuleRecord GetRule(int idx){CheckRuleIndex(idx);return rules[idx];}
| train | false |
8,661 | public FieldCacheSource(String field) {this.field=field;}
| [
"public",
"FieldCacheSource",
"(",
"String",
"field",
")",
"{",
"this",
".",
"field",
"=",
"field",
";",
"}"
] | public FieldCacheSource(string field){this.m_field = field;}
| train | false |
8,662 | public IndonesianStemFilterFactory(Map<String,String> args) {super(args);stemDerivational = getBoolean(args, "stemDerivational", true);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"IndonesianStemFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"stemDerivational",
"=",
"getBoolean",
"(",
"args",
",",
"\"stemDerivational\"",
",",
"true",
")",
";",
"if",
"(",
"!"... | public IndonesianStemFilterFactory(IDictionary<string, string> args): base(args){stemDerivational = GetBoolean(args, "stemDerivational", true);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
| train | false |
8,663 | public boolean isOffsetOverlap( WeightedPhraseInfo other ){int so = getStartOffset();int eo = getEndOffset();int oso = other.getStartOffset();int oeo = other.getEndOffset();if( so <= oso && oso < eo ) return true;if( so < oeo && oeo <= eo ) return true;if( oso <= so && so < oeo ) return true;if( oso < eo && eo <= oeo )... | [
"public",
"boolean",
"isOffsetOverlap",
"(",
"WeightedPhraseInfo",
"other",
")",
"{",
"int",
"so",
"=",
"getStartOffset",
"(",
")",
";",
"int",
"eo",
"=",
"getEndOffset",
"(",
")",
";",
"int",
"oso",
"=",
"other",
".",
"getStartOffset",
"(",
")",
";",
"i... | public virtual bool IsOffsetOverlap(WeightedPhraseInfo other){int so = StartOffset;int eo = EndOffset;int oso = other.StartOffset;int oeo = other.EndOffset;if (so <= oso && oso < eo) return true;if (so < oeo && oeo <= eo) return true;if (oso <= so && so < oeo) return true;if (oso < eo && eo <= oeo) return true;return f... | train | false |
8,664 | public MergeAlgorithm(DiffAlgorithm diff) {this.diffAlg = diff;}
| [
"public",
"MergeAlgorithm",
"(",
"DiffAlgorithm",
"diff",
")",
"{",
"this",
".",
"diffAlg",
"=",
"diff",
";",
"}"
] | public MergeAlgorithm(DiffAlgorithm diff){this.diffAlg = diff;}
| train | false |
8,665 | public void serialize(LittleEndianOutput out) {out.writeInt(field_1_xAxisUpperLeft);out.writeInt(field_2_yAxisUpperLeft);out.writeInt(field_3_xSize);out.writeInt(field_4_ySize);out.writeByte(field_5_type);out.writeByte(field_6_spacing);out.writeShort(field_7_options);}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeInt",
"(",
"field_1_xAxisUpperLeft",
")",
";",
"out",
".",
"writeInt",
"(",
"field_2_yAxisUpperLeft",
")",
";",
"out",
".",
"writeInt",
"(",
"field_3_xSize",
")",
";",... | public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(field_1_xAxisUpperLeft);out1.WriteInt(field_2_yAxisUpperLeft);out1.WriteInt(field_3_xSize);out1.WriteInt(field_4_ySize);out1.WriteByte(field_5_type);out1.WriteByte(field_6_spacing);out1.WriteShort(field_7_options);}
| train | false |
8,667 | public CodingErrorAction unmappableCharacterAction() {return unmappableCharacterAction;}
| [
"public",
"CodingErrorAction",
"unmappableCharacterAction",
"(",
")",
"{",
"return",
"unmappableCharacterAction",
";",
"}"
] | public virtual java.nio.charset.CodingErrorAction unmappableCharacterAction(){return _unmappableCharacterAction;}
| train | false |
8,668 | public Set<String> getSet(Map<String,String> args, String name) {String s = args.remove(name);if (s == null) {return null;} else {Set<String> set = null;Matcher matcher = ITEM_PATTERN.matcher(s);if (matcher.find()) {set = new HashSet<>();set.add(matcher.group(0));while (matcher.find()) {set.add(matcher.group(0));}}retu... | [
"public",
"Set",
"<",
"String",
">",
"getSet",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
",",
"String",
"name",
")",
"{",
"String",
"s",
"=",
"args",
".",
"remove",
"(",
"name",
")",
";",
"if",
"(",
"s",
"==",
"null",
")",
"{",
"re... | public virtual ISet<string> GetSet(IDictionary<string, string> args, string name){string s;if (args.TryGetValue(name, out s)){args.Remove(name);ISet<string> set = null;Match matcher = ITEM_PATTERN.Match(s);if (matcher.Success){set = new JCG.HashSet<string>{matcher.Groups[0].Value};matcher = matcher.NextMatch();while (m... | train | false |
8,669 | public AbstractTreeIterator createSubtreeIterator(ObjectReader reader)throws IncorrectObjectTypeException, IOException {if (currentSubtree == null)throw new IncorrectObjectTypeException(getEntryObjectId(),Constants.TYPE_TREE);return new DirCacheIterator(this, currentSubtree);}
| [
"public",
"AbstractTreeIterator",
"createSubtreeIterator",
"(",
"ObjectReader",
"reader",
")",
"throws",
"IncorrectObjectTypeException",
",",
"IOException",
"{",
"if",
"(",
"currentSubtree",
"==",
"null",
")",
"throw",
"new",
"IncorrectObjectTypeException",
"(",
"getEntry... | public override AbstractTreeIterator CreateSubtreeIterator(ObjectReader reader){if (currentSubtree == null){throw new IncorrectObjectTypeException(EntryObjectId, Constants.TYPE_TREE);}return new NGit.Dircache.DirCacheIterator(this, currentSubtree);}
| train | false |
8,670 | public Explanation[] getDetails() {return details.toArray(new Explanation[0]);}
| [
"public",
"Explanation",
"[",
"]",
"getDetails",
"(",
")",
"{",
"return",
"details",
".",
"toArray",
"(",
"new",
"Explanation",
"[",
"0",
"]",
")",
";",
"}"
] | public virtual Explanation[] GetDetails(){if (details == null){return null;}return details.ToArray();}
| train | false |
8,671 | public String toString() {if ( text==null ) {return "<DeleteOp@"+tokens.get(index)+".."+tokens.get(lastIndex)+">";}return "<ReplaceOp@"+tokens.get(index)+".."+tokens.get(lastIndex)+":\""+text+"\">";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"if",
"(",
"text",
"==",
"null",
")",
"{",
"return",
"\"<DeleteOp@\"",
"+",
"tokens",
".",
"get",
"(",
"index",
")",
"+",
"\"..\"",
"+",
"tokens",
".",
"get",
"(",
"lastIndex",
")",
"+",
"\">\"",
";",
... | public override string ToString(){string opName = GetType().FullName;int index = opName.IndexOf('$');opName = Sharpen.Runtime.Substring(opName, index + 1, opName.Length);return "<" + opName + "@" + tokens.Get(this.index) + ":\"" + text + "\">";}
| train | false |
8,672 | public String toString(){StringBuilder buffer = new StringBuilder();buffer.append( "[TopMargin]\n" );buffer.append( " .margin = " ).append( " (" ).append( getMargin() ).append( " )\n" );buffer.append( "[/TopMargin]\n" );return buffer.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[TopMargin]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .margin = \"",
")",
".",
"app... | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[TopMargin]\n");buffer.Append(" .margin = ").Append(" (").Append(Margin).Append(" )\n");buffer.Append("[/TopMargin]\n");return buffer.ToString();}
| train | false |
8,673 | static public double fv(double r, int nper, double c, double pv) {return fv(r, nper, c, pv, 0);}
| [
"static",
"public",
"double",
"fv",
"(",
"double",
"r",
",",
"int",
"nper",
",",
"double",
"c",
",",
"double",
"pv",
")",
"{",
"return",
"fv",
"(",
"r",
",",
"nper",
",",
"c",
",",
"pv",
",",
"0",
")",
";",
"}"
] | static public double FV(double r, int nper, double c, double pv){return FV(r, nper, c, pv, 0);}
| train | false |
8,674 | @Override public boolean remove(Object object) {Object[] a = array;int s = size;if (object != null) {for (int i = 0; i < s; i++) {if (object.equals(a[i])) {System.arraycopy(a, i + 1, a, i, --s - i);a[s] = null; size = s;modCount++;return true;}}} else {for (int i = 0; i < s; i++) {if (a[i] == null) {System.arraycopy(a... | [
"@",
"Override",
"public",
"boolean",
"remove",
"(",
"Object",
"object",
")",
"{",
"Object",
"[",
"]",
"a",
"=",
"array",
";",
"int",
"s",
"=",
"size",
";",
"if",
"(",
"object",
"!=",
"null",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i"... | public override bool remove(object @object){object[] a = array;int s = _size;if (@object != null){{for (int i = 0; i < s; i++){if (@object.Equals(a[i])){System.Array.Copy(a, i + 1, a, i, --s - i);a[s] = null;_size = s;modCount++;return true;}}}}else{{for (int i = 0; i < s; i++){if (a[i] == null){System.Array.Copy(a, i ... | train | false |
8,675 | public MergeCellsRecord(CellRangeAddress[] regions, int startIndex, int numberOfRegions) {_regions = regions;_startIndex = startIndex;_numberOfRegions = numberOfRegions;}
| [
"public",
"MergeCellsRecord",
"(",
"CellRangeAddress",
"[",
"]",
"regions",
",",
"int",
"startIndex",
",",
"int",
"numberOfRegions",
")",
"{",
"_regions",
"=",
"regions",
";",
"_startIndex",
"=",
"startIndex",
";",
"_numberOfRegions",
"=",
"numberOfRegions",
";",
... | public MergeCellsRecord(CellRangeAddress[] regions, int startIndex, int numberOfRegions){_regions = regions;_startIndex = startIndex;_numberOfRegions = numberOfRegions;}
| train | false |
8,676 | public Cluster resizeCluster(ResizeClusterRequest request) {request = beforeClientExecution(request);return executeResizeCluster(request);}
| [
"public",
"Cluster",
"resizeCluster",
"(",
"ResizeClusterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeResizeCluster",
"(",
"request",
")",
";",
"}"
] | public virtual ResizeClusterResponse ResizeCluster(ResizeClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResizeClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = ResizeClusterResponseUnmarshaller.Instance;return Invoke<ResizeClusterResponse>(request, options);}
| train | true |
8,677 | public int getParent(int ordinal) throws IOException {ensureOpen();Objects.checkIndex(ordinal, nextID);int[] parents = getTaxoArrays().parents();assert ordinal < parents.length : "requested ordinal (" + ordinal + "); parents.length (" + parents.length + ") !";return parents[ordinal];}
| [
"public",
"int",
"getParent",
"(",
"int",
"ordinal",
")",
"throws",
"IOException",
"{",
"ensureOpen",
"(",
")",
";",
"Objects",
".",
"checkIndex",
"(",
"ordinal",
",",
"nextID",
")",
";",
"int",
"[",
"]",
"parents",
"=",
"getTaxoArrays",
"(",
")",
".",
... | public virtual int GetParent(int ordinal){EnsureOpen();if (ordinal >= nextID){throw new System.IndexOutOfRangeException("requested ordinal is bigger than the largest ordinal in the taxonomy");}int[] parents = GetTaxoArrays().Parents;Debug.Assert(ordinal < parents.Length, "requested ordinal (" + ordinal + "); parents.le... | train | false |
8,678 | @Override public Iterator<Multiset.Entry<E>> iterator() {final Iterator<Map.Entry<E, AtomicInteger>> backingEntries= backingMap.entrySet().iterator();return new Iterator<Multiset.Entry<E>>();}
| [
"@",
"Override",
"public",
"Iterator",
"<",
"Multiset",
".",
"Entry",
"<",
"E",
">",
">",
"iterator",
"(",
")",
"{",
"final",
"Iterator",
"<",
"Map",
".",
"Entry",
"<",
"E",
",",
"AtomicInteger",
">",
">",
"backingEntries",
"=",
"backingMap",
".",
"ent... | public override java.util.Iterator<java.util.MapClass.Entry<K, V>> iterator(){return new java.util.Hashtable<K, V>.EntryIterator(this._enclosing);}
| train | false |
8,680 | public static String getInflectionTypeTranslation(String s) {return inflTypeTranslations.get(s);}
| [
"public",
"static",
"String",
"getInflectionTypeTranslation",
"(",
"String",
"s",
")",
"{",
"return",
"inflTypeTranslations",
".",
"get",
"(",
"s",
")",
";",
"}"
] | public static string GetInflectionTypeTranslation(string s){string result;inflTypeTranslations.TryGetValue(s, out result);return result;}
| train | false |
8,682 | public String getNewPath() {return newPath;}
| [
"public",
"String",
"getNewPath",
"(",
")",
"{",
"return",
"newPath",
";",
"}"
] | public virtual string GetNewPath(){return newPath;}
| train | false |
8,683 | public UserSViewBegin(byte[] data) {_rawData = data;}
| [
"public",
"UserSViewBegin",
"(",
"byte",
"[",
"]",
"data",
")",
"{",
"_rawData",
"=",
"data",
";",
"}"
] | public UserSViewBegin(byte[] data){_rawData = data;}
| train | false |
8,684 | public CreateMountTargetResult createMountTarget(CreateMountTargetRequest request) {request = beforeClientExecution(request);return executeCreateMountTarget(request);}
| [
"public",
"CreateMountTargetResult",
"createMountTarget",
"(",
"CreateMountTargetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateMountTarget",
"(",
"request",
")",
";",
"}"
] | public virtual CreateMountTargetResponse CreateMountTarget(CreateMountTargetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateMountTargetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateMountTargetResponseUnmarshaller.Instance;return Invoke<CreateMountTargetResponse>(re... | train | true |
8,685 | public DeleteSubnetRequest(String subnetId) {setSubnetId(subnetId);}
| [
"public",
"DeleteSubnetRequest",
"(",
"String",
"subnetId",
")",
"{",
"setSubnetId",
"(",
"subnetId",
")",
";",
"}"
] | public DeleteSubnetRequest(string subnetId){_subnetId = subnetId;}
| train | false |
8,686 | public void setTitle(String title) {this.title = title;}
| [
"public",
"void",
"setTitle",
"(",
"String",
"title",
")",
"{",
"this",
".",
"title",
"=",
"title",
";",
"}"
] | public void SetTitle(String title){this.title = title;}
| train | false |
8,687 | public char current() {if (offset == end) {return DONE;}return string.charAt(offset);}
| [
"public",
"char",
"current",
"(",
")",
"{",
"if",
"(",
"offset",
"==",
"end",
")",
"{",
"return",
"DONE",
";",
"}",
"return",
"string",
".",
"charAt",
"(",
"offset",
")",
";",
"}"
] | public char current(){if (offset == end){return java.text.CharacterIteratorClass.DONE;}return @string[offset];}
| train | false |
8,689 | public FloatBuffer put(int index, float c) {checkIndex(index);backingArray[offset + index] = c;return this;}
| [
"public",
"FloatBuffer",
"put",
"(",
"int",
"index",
",",
"float",
"c",
")",
"{",
"checkIndex",
"(",
"index",
")",
";",
"backingArray",
"[",
"offset",
"+",
"index",
"]",
"=",
"c",
";",
"return",
"this",
";",
"}"
] | public override java.nio.FloatBuffer put(int index, float c){checkIndex(index);backingArray[offset + index] = c;return this;}
| train | false |
8,690 | public ListGroupPoliciesRequest(String groupName) {setGroupName(groupName);}
| [
"public",
"ListGroupPoliciesRequest",
"(",
"String",
"groupName",
")",
"{",
"setGroupName",
"(",
"groupName",
")",
";",
"}"
] | public ListGroupPoliciesRequest(string groupName){_groupName = groupName;}
| train | false |
8,691 | public void setDeltaSearchWindowSize(int objectCount) {if (objectCount <= 2)setDeltaCompress(false);elsedeltaSearchWindowSize = objectCount;}
| [
"public",
"void",
"setDeltaSearchWindowSize",
"(",
"int",
"objectCount",
")",
"{",
"if",
"(",
"objectCount",
"<=",
"2",
")",
"setDeltaCompress",
"(",
"false",
")",
";",
"elsedeltaSearchWindowSize",
"=",
"objectCount",
";",
"}"
] | public virtual void SetDeltaSearchWindowSize(int objectCount){if (objectCount <= 2){SetDeltaCompress(false);}else{deltaSearchWindowSize = objectCount;}}
| train | false |
8,694 | public int getNameIndex(String name) {for (int k = 0; k < names.size(); k++) {String nameName = getNameName(k);if (nameName.equalsIgnoreCase(name)) {return k;}}return -1;}
| [
"public",
"int",
"getNameIndex",
"(",
"String",
"name",
")",
"{",
"for",
"(",
"int",
"k",
"=",
"0",
";",
"k",
"<",
"names",
".",
"size",
"(",
")",
";",
"k",
"++",
")",
"{",
"String",
"nameName",
"=",
"getNameName",
"(",
"k",
")",
";",
"if",
"("... | public int GetNameIndex(String name){int retval = -1;for (int k = 0; k < names.Count; k++){String nameName = GetNameName(k);if (nameName.Equals(name, StringComparison.OrdinalIgnoreCase)){retval = k;break;}}return retval;}
| train | false |
8,695 | public void seek(int index) {if (index == currentCharIndex) {return;}if (index > currentCharIndex) {sync(index - currentCharIndex);index = Math.min(index, getBufferStartIndex() + n - 1);}int i = index - getBufferStartIndex();if ( i < 0 ) {throw new IllegalArgumentException("cannot seek to negative index " + index);}els... | [
"public",
"void",
"seek",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"index",
"==",
"currentCharIndex",
")",
"{",
"return",
";",
"}",
"if",
"(",
"index",
">",
"currentCharIndex",
")",
"{",
"sync",
"(",
"index",
"-",
"currentCharIndex",
")",
";",
"index"... | public virtual void Seek(int index){if (index == currentCharIndex){return;}if (index > currentCharIndex){Sync(index - currentCharIndex);index = Math.Min(index, BufferStartIndex + n - 1);}int i = index - BufferStartIndex;if (i < 0){throw new ArgumentException("cannot seek to negative index " + index);}else{if (i >= n){t... | train | false |
8,696 | public void readBytes(byte[] b, int offset, int len) {System.arraycopy(data, pos, b, offset, len);pos += len;}
| [
"public",
"void",
"readBytes",
"(",
"byte",
"[",
"]",
"b",
",",
"int",
"offset",
",",
"int",
"len",
")",
"{",
"System",
".",
"arraycopy",
"(",
"data",
",",
"pos",
",",
"b",
",",
"offset",
",",
"len",
")",
";",
"pos",
"+=",
"len",
";",
"}"
] | public override void ReadBytes(byte[] b, int offset, int len){Array.Copy(data, pos, b, offset, len);pos += len;}
| train | false |
8,697 | public ListGraphsResult listGraphs(ListGraphsRequest request) {request = beforeClientExecution(request);return executeListGraphs(request);}
| [
"public",
"ListGraphsResult",
"listGraphs",
"(",
"ListGraphsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListGraphs",
"(",
"request",
")",
";",
"}"
] | public virtual ListGraphsResponse ListGraphs(ListGraphsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGraphsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGraphsResponseUnmarshaller.Instance;return Invoke<ListGraphsResponse>(request, options);}
| train | false |
8,698 | public ATNDeserializer(ATNDeserializationOptions deserializationOptions) {if (deserializationOptions == null) {deserializationOptions = ATNDeserializationOptions.getDefaultOptions();}this.deserializationOptions = deserializationOptions;}
| [
"public",
"ATNDeserializer",
"(",
"ATNDeserializationOptions",
"deserializationOptions",
")",
"{",
"if",
"(",
"deserializationOptions",
"==",
"null",
")",
"{",
"deserializationOptions",
"=",
"ATNDeserializationOptions",
".",
"getDefaultOptions",
"(",
")",
";",
"}",
"thi... | public ATNDeserializer(ATNDeserializationOptions deserializationOptions){if (deserializationOptions == null){deserializationOptions = ATNDeserializationOptions.Default;}this.deserializationOptions = deserializationOptions;}
| train | false |
8,700 | public CanonicalTreeParser getParent() {return (CanonicalTreeParser) parent;}
| [
"public",
"CanonicalTreeParser",
"getParent",
"(",
")",
"{",
"return",
"(",
"CanonicalTreeParser",
")",
"parent",
";",
"}"
] | public virtual NGit.Treewalk.CanonicalTreeParser GetParent(){return (NGit.Treewalk.CanonicalTreeParser)parent;}
| train | false |
8,701 | public DetectDominantLanguageResult detectDominantLanguage(DetectDominantLanguageRequest request) {request = beforeClientExecution(request);return executeDetectDominantLanguage(request);}
| [
"public",
"DetectDominantLanguageResult",
"detectDominantLanguage",
"(",
"DetectDominantLanguageRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDetectDominantLanguage",
"(",
"request",
")",
";",
"}"
] | public virtual DetectDominantLanguageResponse DetectDominantLanguage(DetectDominantLanguageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectDominantLanguageRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectDominantLanguageResponseUnmarshaller.Instance;return Invoke<Dete... | train | true |
8,702 | public void removePageCount() {remove1stProperty(PropertyIDMap.PID_PAGECOUNT);}
| [
"public",
"void",
"removePageCount",
"(",
")",
"{",
"remove1stProperty",
"(",
"PropertyIDMap",
".",
"PID_PAGECOUNT",
")",
";",
"}"
] | public void RemovePageCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_PAGECOUNT);}
| train | false |
8,705 | public FooterRecord clone() {return copy();}
| [
"public",
"FooterRecord",
"clone",
"(",
")",
"{",
"return",
"copy",
"(",
")",
";",
"}"
] | public override Object Clone(){return new FooterRecord(this.Text);}
| train | false |
8,706 | public int stem(final char s[], int len) {if (len < 4) return len;if (len > 5 && endsWith(s, len, "ища"))return len - 3;len = removeArticle(s, len);len = removePlural(s, len);if (len > 3) {if (endsWith(s, len, "я"))len--;if (endsWith(s, len, "а") ||endsWith(s, len, "о") ||endsWith(s, len, "е"))len--;}if (len > 4 && end... | [
"public",
"int",
"stem",
"(",
"final",
"char",
"s",
"[",
"]",
",",
"int",
"len",
")",
"{",
"if",
"(",
"len",
"<",
"4",
")",
"return",
"len",
";",
"if",
"(",
"len",
">",
"5",
"&&",
"endsWith",
"(",
"s",
",",
"len",
",",
"\"ища\"",
")",
")",
... | public virtual int Stem(char[] s, int len){if (len < 4) {return len;}if (len > 5 && StemmerUtil.EndsWith(s, len, "ища")){return len - 3;}len = RemoveArticle(s, len);len = RemovePlural(s, len);if (len > 3){if (StemmerUtil.EndsWith(s, len, "я")){len--;}if (StemmerUtil.EndsWith(s, len, "а") || StemmerUtil.EndsWith(s, len,... | train | false |
8,707 | public synchronized CharSequence subSequence(int start, int end) {return super.substring(start, end);}
| [
"public",
"synchronized",
"CharSequence",
"subSequence",
"(",
"int",
"start",
",",
"int",
"end",
")",
"{",
"return",
"super",
".",
"substring",
"(",
"start",
",",
"end",
")",
";",
"}"
] | public override java.lang.CharSequence SubSequence(int start, int end){lock (this){return java.lang.CharSequenceProxy.Wrap(base.substring(start, end));}}
| train | false |
8,708 | public DisableVpcClassicLinkDnsSupportResult disableVpcClassicLinkDnsSupport(DisableVpcClassicLinkDnsSupportRequest request) {request = beforeClientExecution(request);return executeDisableVpcClassicLinkDnsSupport(request);}
| [
"public",
"DisableVpcClassicLinkDnsSupportResult",
"disableVpcClassicLinkDnsSupport",
"(",
"DisableVpcClassicLinkDnsSupportRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisableVpcClassicLinkDnsSupport",
"(",
"r... | public virtual DisableVpcClassicLinkDnsSupportResponse DisableVpcClassicLinkDnsSupport(DisableVpcClassicLinkDnsSupportRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableVpcClassicLinkDnsSupportRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableVpcClassicLinkDnsSupportRes... | train | true |
8,709 | public static FormulaError forInt(byte type) throws IllegalArgumentException {FormulaError err = bmap.get(type);if(err == null) throw new IllegalArgumentException("Unknown error type: " + type);return err;}
| [
"public",
"static",
"FormulaError",
"forInt",
"(",
"byte",
"type",
")",
"throws",
"IllegalArgumentException",
"{",
"FormulaError",
"err",
"=",
"bmap",
".",
"get",
"(",
"type",
")",
";",
"if",
"(",
"err",
"==",
"null",
")",
"throw",
"new",
"IllegalArgumentExc... | public static FormulaError ForInt(byte type){if (bmap.ContainsKey(type))return bmap[type];throw new ArgumentException("Unknown error type: " + type);}
| train | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.