id_within_dataset int64 0 10.3k | snippet stringlengths 29 1.4k | tokens listlengths 10 314 | cs stringlengths 28 1.38k | split_within_dataset stringclasses 1
value | is_duplicated bool 2
classes |
|---|---|---|---|---|---|
7,857 | public static Date getJavaDate(double date, boolean use1904windowing, TimeZone tz) {return getJavaDate(date, use1904windowing, tz, false);}
| [
"public",
"static",
"Date",
"getJavaDate",
"(",
"double",
"date",
",",
"boolean",
"use1904windowing",
",",
"TimeZone",
"tz",
")",
"{",
"return",
"getJavaDate",
"(",
"date",
",",
"use1904windowing",
",",
"tz",
",",
"false",
")",
";",
"}"
] | public static DateTime getJavaDate(double date, bool use1904windowing, TimeZone tz){return GetJavaCalendar(date, use1904windowing, false);}
| train | false |
7,858 | public ListVerifiedEmailAddressesResult listVerifiedEmailAddresses(ListVerifiedEmailAddressesRequest request) {request = beforeClientExecution(request);return executeListVerifiedEmailAddresses(request);}
| [
"public",
"ListVerifiedEmailAddressesResult",
"listVerifiedEmailAddresses",
"(",
"ListVerifiedEmailAddressesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListVerifiedEmailAddresses",
"(",
"request",
")",
";... | public virtual ListVerifiedEmailAddressesResponse ListVerifiedEmailAddresses(ListVerifiedEmailAddressesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListVerifiedEmailAddressesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListVerifiedEmailAddressesResponseUnmarshaller.Instanc... | train | true |
7,859 | public int compareTo(QualityQuery other) {try {int n = Integer.parseInt(queryID);int nOther = Integer.parseInt(other.queryID);return n - nOther;} catch (NumberFormatException e) {return queryID.compareTo(other.queryID);}}
| [
"public",
"int",
"compareTo",
"(",
"QualityQuery",
"other",
")",
"{",
"try",
"{",
"int",
"n",
"=",
"Integer",
".",
"parseInt",
"(",
"queryID",
")",
";",
"int",
"nOther",
"=",
"Integer",
".",
"parseInt",
"(",
"other",
".",
"queryID",
")",
";",
"return",... | public virtual int CompareTo(QualityQuery other){try{int n = int.Parse(queryID, CultureInfo.InvariantCulture);int nOther = int.Parse(other.queryID, CultureInfo.InvariantCulture);return n - nOther;}catch (FormatException ){return queryID.CompareToOrdinal(other.queryID);}}
| train | false |
7,860 | public void setExportAll(boolean export) {exportAll = export;}
| [
"public",
"void",
"setExportAll",
"(",
"boolean",
"export",
")",
"{",
"exportAll",
"=",
"export",
";",
"}"
] | public virtual void SetExportAll(bool export){exportAll = export;}
| train | false |
7,862 | public DescribeScheduledActionsResult describeScheduledActions(DescribeScheduledActionsRequest request) {request = beforeClientExecution(request);return executeDescribeScheduledActions(request);}
| [
"public",
"DescribeScheduledActionsResult",
"describeScheduledActions",
"(",
"DescribeScheduledActionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeScheduledActions",
"(",
"request",
")",
";",
"}"... | public virtual DescribeScheduledActionsResponse DescribeScheduledActions(DescribeScheduledActionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScheduledActionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScheduledActionsResponseUnmarshaller.Instance;return I... | train | true |
7,863 | public boolean isAdjacentBefore(ColumnInfoRecord other) {return _lastCol == other._firstCol - 1;}
| [
"public",
"boolean",
"isAdjacentBefore",
"(",
"ColumnInfoRecord",
"other",
")",
"{",
"return",
"_lastCol",
"==",
"other",
".",
"_firstCol",
"-",
"1",
";",
"}"
] | public bool IsAdjacentBefore(ColumnInfoRecord other){return _last_col == other._first_col - 1;}
| train | false |
7,865 | public CreateConfigurationSetTrackingOptionsResult createConfigurationSetTrackingOptions(CreateConfigurationSetTrackingOptionsRequest request) {request = beforeClientExecution(request);return executeCreateConfigurationSetTrackingOptions(request);}
| [
"public",
"CreateConfigurationSetTrackingOptionsResult",
"createConfigurationSetTrackingOptions",
"(",
"CreateConfigurationSetTrackingOptionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateConfigurationSetTrack... | public virtual CreateConfigurationSetTrackingOptionsResponse CreateConfigurationSetTrackingOptions(CreateConfigurationSetTrackingOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConfigurationSetTrackingOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConf... | train | true |
7,866 | public synchronized int offsetByCodePoints(int index, int codePointOffset) {return super.offsetByCodePoints(index, codePointOffset);}
| [
"public",
"synchronized",
"int",
"offsetByCodePoints",
"(",
"int",
"index",
",",
"int",
"codePointOffset",
")",
"{",
"return",
"super",
".",
"offsetByCodePoints",
"(",
"index",
",",
"codePointOffset",
")",
";",
"}"
] | public override int offsetByCodePoints(int index, int codePointOffset){lock (this){return base.offsetByCodePoints(index, codePointOffset);}}
| train | false |
7,867 | public void write(char[] buf) {write(buf, 0, buf.length);}
| [
"public",
"void",
"write",
"(",
"char",
"[",
"]",
"buf",
")",
"{",
"write",
"(",
"buf",
",",
"0",
",",
"buf",
".",
"length",
")",
";",
"}"
] | public override void write(char[] buf){write(buf, 0, buf.Length);}
| train | false |
7,868 | public GetSdkResult getSdk(GetSdkRequest request) {request = beforeClientExecution(request);return executeGetSdk(request);}
| [
"public",
"GetSdkResult",
"getSdk",
"(",
"GetSdkRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetSdk",
"(",
"request",
")",
";",
"}"
] | public virtual GetSdkResponse GetSdk(GetSdkRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSdkRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSdkResponseUnmarshaller.Instance;return Invoke<GetSdkResponse>(request, options);}
| train | true |
7,869 | public PutEmailIdentityDkimAttributesResult putEmailIdentityDkimAttributes(PutEmailIdentityDkimAttributesRequest request) {request = beforeClientExecution(request);return executePutEmailIdentityDkimAttributes(request);}
| [
"public",
"PutEmailIdentityDkimAttributesResult",
"putEmailIdentityDkimAttributes",
"(",
"PutEmailIdentityDkimAttributesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutEmailIdentityDkimAttributes",
"(",
"reque... | public virtual PutEmailIdentityDkimAttributesResponse PutEmailIdentityDkimAttributes(PutEmailIdentityDkimAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutEmailIdentityDkimAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutEmailIdentityDkimAttributesResponse... | train | true |
7,870 | public WorkflowExecutionDetail describeWorkflowExecution(DescribeWorkflowExecutionRequest request) {request = beforeClientExecution(request);return executeDescribeWorkflowExecution(request);}
| [
"public",
"WorkflowExecutionDetail",
"describeWorkflowExecution",
"(",
"DescribeWorkflowExecutionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeWorkflowExecution",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeWorkflowExecutionResponse DescribeWorkflowExecution(DescribeWorkflowExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkflowExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkflowExecutionResponseUnmarshaller.Instance;ret... | train | true |
7,871 | public CloudFrontOriginAccessIdentityConfig(String callerReference) {setCallerReference(callerReference);}
| [
"public",
"CloudFrontOriginAccessIdentityConfig",
"(",
"String",
"callerReference",
")",
"{",
"setCallerReference",
"(",
"callerReference",
")",
";",
"}"
] | public CloudFrontOriginAccessIdentityConfig(string callerReference){_callerReference = callerReference;}
| train | false |
7,872 | public final String validate(String uri, int start, int end, String name)throws URISyntaxException {for (int i = start; i < end; ) {char ch = uri.charAt(i);if ((ch >= 'a' && ch <= 'z')|| (ch >= 'A' && ch <= 'Z')|| (ch >= '0' && ch <= '9')|| isRetained(ch)) {i++;} else if (ch == '%') {if (i + 2 >= end) {throw new URISyn... | [
"public",
"final",
"String",
"validate",
"(",
"String",
"uri",
",",
"int",
"start",
",",
"int",
"end",
",",
"String",
"name",
")",
"throws",
"URISyntaxException",
"{",
"for",
"(",
"int",
"i",
"=",
"start",
";",
"i",
"<",
"end",
";",
")",
"{",
"char",... | public string validate(string uri, int start, int end, string name){{for (int i = start; i < end; ){char ch = uri[i];if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9') || isRetained(ch)){i++;}else{if (ch == '%'){if (i + 2 >= end){throw new java.net.URISyntaxException(uri, "Incomplete %... | train | true |
7,874 | public ContinuableRecordInput(RecordInputStream in){_in = in;}
| [
"public",
"ContinuableRecordInput",
"(",
"RecordInputStream",
"in",
")",
"{",
"_in",
"=",
"in",
";",
"}"
] | public ContinuableRecordInput(RecordInputStream in1){_in = in1;}
| train | false |
7,875 | public StoredFieldsReader clone() {if (in == null) {throw new AlreadyClosedException("this FieldsReader is closed");}return new SimpleTextStoredFieldsReader(offsets, in.clone(), fieldInfos);}
| [
"public",
"StoredFieldsReader",
"clone",
"(",
")",
"{",
"if",
"(",
"in",
"==",
"null",
")",
"{",
"throw",
"new",
"AlreadyClosedException",
"(",
"\"this FieldsReader is closed\"",
")",
";",
"}",
"return",
"new",
"SimpleTextStoredFieldsReader",
"(",
"offsets",
",",
... | public override object Clone(){if (_input == null){throw new ObjectDisposedException(this.GetType().GetTypeInfo().FullName, "this FieldsReader is closed");}return new SimpleTextStoredFieldsReader(_offsets, (IndexInput) _input.Clone(), _fieldInfos);}
| train | false |
7,876 | public Initial(LittleEndianInput in) {_reserved0 = in.readInt();_reserved1 = in.readUShort();_reserved2 = in.readUByte();}
| [
"public",
"Initial",
"(",
"LittleEndianInput",
"in",
")",
"{",
"_reserved0",
"=",
"in",
".",
"readInt",
"(",
")",
";",
"_reserved1",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"_reserved2",
"=",
"in",
".",
"readUByte",
"(",
")",
";",
"}"
] | public Initial(ILittleEndianInput in1){_reserved0 = in1.ReadInt();_reserved1 = in1.ReadUShort();_reserved2 = in1.ReadUByte();}
| train | false |
7,877 | public synchronized int getProgress() {return mIndeterminate ? 0 : mProgress;}
| [
"public",
"synchronized",
"int",
"getProgress",
"(",
")",
"{",
"return",
"mIndeterminate",
"?",
"0",
":",
"mProgress",
";",
"}"
] | public virtual int getProgress(){lock (this){return mIndeterminate ? 0 : mProgress;}}
| train | false |
7,878 | public CreateNamedQueryResult createNamedQuery(CreateNamedQueryRequest request) {request = beforeClientExecution(request);return executeCreateNamedQuery(request);}
| [
"public",
"CreateNamedQueryResult",
"createNamedQuery",
"(",
"CreateNamedQueryRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateNamedQuery",
"(",
"request",
")",
";",
"}"
] | public virtual CreateNamedQueryResponse CreateNamedQuery(CreateNamedQueryRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNamedQueryRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNamedQueryResponseUnmarshaller.Instance;return Invoke<CreateNamedQueryResponse>(request,... | train | true |
7,879 | public static DoubleBuffer allocate(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}return new ReadWriteDoubleArrayBuffer(capacity);}
| [
"public",
"static",
"DoubleBuffer",
"allocate",
"(",
"int",
"capacity",
")",
"{",
"if",
"(",
"capacity",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
")",
";",
"}",
"return",
"new",
"ReadWriteDoubleArrayBuffer",
"(",
"capacity",
")",
... | public static java.nio.DoubleBuffer allocate(int capacity_1){if (capacity_1 < 0){throw new System.ArgumentException();}return new java.nio.ReadWriteDoubleArrayBuffer(capacity_1);}
| train | false |
7,880 | public final String toString() {return getClass().getName() + " [" + _operator.getRepresentation() + getValueText() + "]";}
| [
"public",
"final",
"String",
"toString",
"(",
")",
"{",
"return",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
"+",
"\" [\"",
"+",
"_operator",
".",
"getRepresentation",
"(",
")",
"+",
"getValueText",
"(",
")",
"+",
"\"]\"",
";",
"}"
] | public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(this.GetType().Name).Append(" [");sb.Append(_operator.Representation);sb.Append(ValueText);sb.Append("]");return sb.ToString();}
| train | false |
7,881 | public LongBuffer asReadOnlyBuffer() {return ReadOnlyLongArrayBuffer.copy(this, mark);}
| [
"public",
"LongBuffer",
"asReadOnlyBuffer",
"(",
")",
"{",
"return",
"ReadOnlyLongArrayBuffer",
".",
"copy",
"(",
"this",
",",
"mark",
")",
";",
"}"
] | public override java.nio.LongBuffer asReadOnlyBuffer(){return java.nio.ReadOnlyLongArrayBuffer.copy(this, _mark);}
| train | false |
7,882 | public CreateFlowDefinitionResult createFlowDefinition(CreateFlowDefinitionRequest request) {request = beforeClientExecution(request);return executeCreateFlowDefinition(request);}
| [
"public",
"CreateFlowDefinitionResult",
"createFlowDefinition",
"(",
"CreateFlowDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateFlowDefinition",
"(",
"request",
")",
";",
"}"
] | public virtual CreateFlowDefinitionResponse CreateFlowDefinition(CreateFlowDefinitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFlowDefinitionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFlowDefinitionResponseUnmarshaller.Instance;return Invoke<CreateFlowDefi... | train | false |
7,883 | public GetOpenIdTokenResult getOpenIdToken(GetOpenIdTokenRequest request) {request = beforeClientExecution(request);return executeGetOpenIdToken(request);}
| [
"public",
"GetOpenIdTokenResult",
"getOpenIdToken",
"(",
"GetOpenIdTokenRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetOpenIdToken",
"(",
"request",
")",
";",
"}"
] | public virtual GetOpenIdTokenResponse GetOpenIdToken(GetOpenIdTokenRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOpenIdTokenRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOpenIdTokenResponseUnmarshaller.Instance;return Invoke<GetOpenIdTokenResponse>(request, options);}
| train | true |
7,884 | public GetDocumentationPartResult getDocumentationPart(GetDocumentationPartRequest request) {request = beforeClientExecution(request);return executeGetDocumentationPart(request);}
| [
"public",
"GetDocumentationPartResult",
"getDocumentationPart",
"(",
"GetDocumentationPartRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDocumentationPart",
"(",
"request",
")",
";",
"}"
] | public virtual GetDocumentationPartResponse GetDocumentationPart(GetDocumentationPartRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDocumentationPartRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDocumentationPartResponseUnmarshaller.Instance;return Invoke<GetDocumentati... | train | true |
7,885 | public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {int nArgs = args.length;if (nArgs < 2) {return ErrorEval.VALUE_INVALID;}try {double rate = NumericFunction.singleOperandEvaluate(args[0], srcRowIndex, srcColumnIndex);ValueEval[] vargs = new ValueEval[args.length-1];System.arraycopy(args,... | [
"public",
"ValueEval",
"evaluate",
"(",
"ValueEval",
"[",
"]",
"args",
",",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
")",
"{",
"int",
"nArgs",
"=",
"args",
".",
"length",
";",
"if",
"(",
"nArgs",
"<",
"2",
")",
"{",
"return",
"ErrorEval",
".... | public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){int nArgs = args.Length;if (nArgs < 2){return ErrorEval.VALUE_INVALID;}try{double rate = NumericFunction.SingleOperandEvaluate(args[0], srcRowIndex, srcColumnIndex);ValueEval[] vargs = new ValueEval[args.Length - 1];Array.Copy(args, 1, var... | train | false |
7,886 | public String suggestFileExtension() {switch (EscherRecordTypes.forTypeID(blip.getRecordId())) {case BLIP_WMF:return "wmf";case BLIP_EMF:return "emf";case BLIP_PICT:return "pict";case BLIP_PNG:return "png";case BLIP_JPEG:return "jpeg";case BLIP_DIB:return "dib";default:return "";}}
| [
"public",
"String",
"suggestFileExtension",
"(",
")",
"{",
"switch",
"(",
"EscherRecordTypes",
".",
"forTypeID",
"(",
"blip",
".",
"getRecordId",
"(",
")",
")",
")",
"{",
"case",
"BLIP_WMF",
":",
"return",
"\"wmf\"",
";",
"case",
"BLIP_EMF",
":",
"return",
... | public String SuggestFileExtension(){switch (blip.RecordId){case EscherMetafileBlip.RECORD_ID_WMF:return "wmf";case EscherMetafileBlip.RECORD_ID_EMF:return "emf";case EscherMetafileBlip.RECORD_ID_PICT:return "pict";case EscherBitmapBlip.RECORD_ID_PNG:return "png";case EscherBitmapBlip.RECORD_ID_JPEG:return "jpeg";case ... | train | false |
7,887 | public AsyncResponsePostRequest() {super("industry-brain", "2018-07-12", "AsyncResponsePost");setMethod(MethodType.POST);}
| [
"public",
"AsyncResponsePostRequest",
"(",
")",
"{",
"super",
"(",
"\"industry-brain\"",
",",
"\"2018-07-12\"",
",",
"\"AsyncResponsePost\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] | public AsyncResponsePostRequest(): base("industry-brain", "2018-07-12", "AsyncResponsePost"){Method = MethodType.POST;}
| train | false |
7,888 | public static final RevFilter between(long since, long until) {return new Between(since, until);}
| [
"public",
"static",
"final",
"RevFilter",
"between",
"(",
"long",
"since",
",",
"long",
"until",
")",
"{",
"return",
"new",
"Between",
"(",
"since",
",",
"until",
")",
";",
"}"
] | public static RevFilter Between(long since, long until){return new CommitTimeRevFilterBetween(since, until);}
| train | false |
7,889 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1) {double val;double d1;try {val = singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);d1 = singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return e.getErrorEval();}int nPlaces = (i... | [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"arg0",
",",
"ValueEval",
"arg1",
")",
"{",
"double",
"val",
";",
"double",
"d1",
";",
"try",
"{",
"val",
"=",
"singleOperandEvaluate",
"(",
"arg0",... | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){double result;try{double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = Evaluate(d0, d1);Nu... | train | false |
7,890 | public Iterator<T> iterator() {return new MyIterator();}
| [
"public",
"Iterator",
"<",
"T",
">",
"iterator",
"(",
")",
"{",
"return",
"new",
"MyIterator",
"(",
")",
";",
"}"
] | public override Sharpen.Iterator<T> Iterator(){return new BlockList<T>.MyIterator(this);}
| train | false |
7,891 | public void reset(int[] docs, long[] offsets) {this.docs = docs;this.offsets = offsets;}
| [
"public",
"void",
"reset",
"(",
"int",
"[",
"]",
"docs",
",",
"long",
"[",
"]",
"offsets",
")",
"{",
"this",
".",
"docs",
"=",
"docs",
";",
"this",
".",
"offsets",
"=",
"offsets",
";",
"}"
] | public void Reset(int[] docs, long[] offsets){this.docs = docs;this.offsets = offsets;}
| train | false |
7,892 | public ObjectId getObjectId() {return object;}
| [
"public",
"ObjectId",
"getObjectId",
"(",
")",
"{",
"return",
"object",
";",
"}"
] | public virtual ObjectId GetObjectId(){return @object;}
| train | false |
7,893 | public String toString() {return "fileName=" + fileName + " size=" + size;}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"fileName=\"",
"+",
"fileName",
"+",
"\" size=\"",
"+",
"size",
";",
"}"
] | public override string ToString(){return string.Format("fileName={0} length={1}", FileName, Length);}
| train | false |
7,894 | public boolean isSubTotal(int rowIndex, int columnIndex){SheetRefEvaluator _sre = _evaluator.getSheetEvaluator(_evaluator.getFirstSheetIndex());return _sre.isSubTotal(getFirstRow() + rowIndex, getFirstColumn() + columnIndex);}
| [
"public",
"boolean",
"isSubTotal",
"(",
"int",
"rowIndex",
",",
"int",
"columnIndex",
")",
"{",
"SheetRefEvaluator",
"_sre",
"=",
"_evaluator",
".",
"getSheetEvaluator",
"(",
"_evaluator",
".",
"getFirstSheetIndex",
"(",
")",
")",
";",
"return",
"_sre",
".",
"... | public override bool IsSubTotal(int rowIndex, int columnIndex){SheetRefEvaluator _sre = _evaluator.GetSheetEvaluator(_evaluator.FirstSheetIndex);return _sre.IsSubTotal(FirstRow + rowIndex, FirstColumn + columnIndex);}
| train | false |
7,895 | public DeleteCollectionResult deleteCollection(DeleteCollectionRequest request) {request = beforeClientExecution(request);return executeDeleteCollection(request);}
| [
"public",
"DeleteCollectionResult",
"deleteCollection",
"(",
"DeleteCollectionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteCollection",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteCollectionResponse DeleteCollection(DeleteCollectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCollectionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCollectionResponseUnmarshaller.Instance;return Invoke<DeleteCollectionResponse>(request,... | train | true |
7,897 | public Drawable getIndeterminateDrawable() {return mIndeterminateDrawable;}
| [
"public",
"Drawable",
"getIndeterminateDrawable",
"(",
")",
"{",
"return",
"mIndeterminateDrawable",
";",
"}"
] | public virtual android.graphics.drawable.Drawable getIndeterminateDrawable(){return mIndeterminateDrawable;}
| train | false |
7,898 | public void write(byte[] b, int offset, int len) {checkPosition(len);System.arraycopy(b, offset, _buf, _writeIndex, len);_writeIndex += len;}
| [
"public",
"void",
"write",
"(",
"byte",
"[",
"]",
"b",
",",
"int",
"offset",
",",
"int",
"len",
")",
"{",
"checkPosition",
"(",
"len",
")",
";",
"System",
".",
"arraycopy",
"(",
"b",
",",
"offset",
",",
"_buf",
",",
"_writeIndex",
",",
"len",
")",
... | public void Write(byte[] b, int offset, int len){CheckPosition(len);System.Array.Copy(b, offset, _buf, _writeIndex, len);_writeIndex += len;}
| train | false |
7,899 | public ListWebsiteCertificateAuthoritiesResult listWebsiteCertificateAuthorities(ListWebsiteCertificateAuthoritiesRequest request) {request = beforeClientExecution(request);return executeListWebsiteCertificateAuthorities(request);}
| [
"public",
"ListWebsiteCertificateAuthoritiesResult",
"listWebsiteCertificateAuthorities",
"(",
"ListWebsiteCertificateAuthoritiesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListWebsiteCertificateAuthorities",
"... | public virtual ListWebsiteCertificateAuthoritiesResponse ListWebsiteCertificateAuthorities(ListWebsiteCertificateAuthoritiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListWebsiteCertificateAuthoritiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListWebsiteCertificateAuth... | train | true |
7,900 | public RevWalk(ObjectReader or, int depth) {super(or);this.depth = depth;this.deepenNots = Collections.emptyList();this.UNSHALLOW = newFlag("UNSHALLOW"); this.REINTERESTING = newFlag("REINTERESTING"); this.DEEPEN_NOT = newFlag("DEEPEN_NOT"); }
| [
"public",
"RevWalk",
"(",
"ObjectReader",
"or",
",",
"int",
"depth",
")",
"{",
"super",
"(",
"or",
")",
";",
"this",
".",
"depth",
"=",
"depth",
";",
"this",
".",
"deepenNots",
"=",
"Collections",
".",
"emptyList",
"(",
")",
";",
"this",
".",
"UNSHAL... | public RevWalk(ObjectReader or, int depth) : base(or){this.depth = depth;this.UNSHALLOW = NewFlag("UNSHALLOW");this.REINTERESTING = NewFlag("REINTERESTING");}
| train | false |
7,901 | public DeleteLogStreamRequest(String logGroupName, String logStreamName) {setLogGroupName(logGroupName);setLogStreamName(logStreamName);}
| [
"public",
"DeleteLogStreamRequest",
"(",
"String",
"logGroupName",
",",
"String",
"logStreamName",
")",
"{",
"setLogGroupName",
"(",
"logGroupName",
")",
";",
"setLogStreamName",
"(",
"logStreamName",
")",
";",
"}"
] | public DeleteLogStreamRequest(string logGroupName, string logStreamName){_logGroupName = logGroupName;_logStreamName = logStreamName;}
| train | false |
7,902 | public PrintWriter append(CharSequence csq) {if (csq == null) {csq = "null";}append(csq, 0, csq.length());return this;}
| [
"public",
"PrintWriter",
"append",
"(",
"CharSequence",
"csq",
")",
"{",
"if",
"(",
"csq",
"==",
"null",
")",
"{",
"csq",
"=",
"\"null\"",
";",
"}",
"append",
"(",
"csq",
",",
"0",
",",
"csq",
".",
"length",
"(",
")",
")",
";",
"return",
"this",
... | public override java.io.Writer append(java.lang.CharSequence csq){if (csq == null){csq = java.lang.CharSequenceProxy.Wrap("null");}append(csq, 0, csq.Length);return this;}
| train | false |
7,903 | public boolean include(TreeWalk walker)throws MissingObjectException,IncorrectObjectTypeException, IOException {count++;if (count % stepSize == 0) {if (count <= total)monitor.update(stepSize);if (monitor.isCancelled())throw StopWalkException.INSTANCE;}return true;}
| [
"public",
"boolean",
"include",
"(",
"TreeWalk",
"walker",
")",
"throws",
"MissingObjectException",
",",
"IncorrectObjectTypeException",
",",
"IOException",
"{",
"count",
"++",
";",
"if",
"(",
"count",
"%",
"stepSize",
"==",
"0",
")",
"{",
"if",
"(",
"count",
... | public override bool Include(TreeWalk walker){count++;if (count % stepSize == 0){if (count <= total){monitor.Update(stepSize);}if (monitor.IsCancelled()){throw StopWalkException.INSTANCE;}}return true;}
| train | false |
7,904 | public RevObject getObjectId() {return id;}
| [
"public",
"RevObject",
"getObjectId",
"(",
")",
"{",
"return",
"id",
";",
"}"
] | public virtual RevObject GetObjectId(){return id;}
| train | false |
7,905 | public void setFlushOnEnd(boolean flushOnEnd) {this.flushOnEnd = flushOnEnd;}
| [
"public",
"void",
"setFlushOnEnd",
"(",
"boolean",
"flushOnEnd",
")",
"{",
"this",
".",
"flushOnEnd",
"=",
"flushOnEnd",
";",
"}"
] | public virtual void SetFlushOnEnd(bool flushOnEnd){this.flushOnEnd = flushOnEnd;}
| train | false |
7,906 | public ListAutoMLJobsResult listAutoMLJobs(ListAutoMLJobsRequest request) {request = beforeClientExecution(request);return executeListAutoMLJobs(request);}
| [
"public",
"ListAutoMLJobsResult",
"listAutoMLJobs",
"(",
"ListAutoMLJobsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListAutoMLJobs",
"(",
"request",
")",
";",
"}"
] | public virtual ListAutoMLJobsResponse ListAutoMLJobs(ListAutoMLJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAutoMLJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAutoMLJobsResponseUnmarshaller.Instance;return Invoke<ListAutoMLJobsResponse>(request, options);}
| train | false |
7,907 | public void addBuilder(String nodeName, SpanQueryBuilder builder) {builders.put(nodeName, builder);}
| [
"public",
"void",
"addBuilder",
"(",
"String",
"nodeName",
",",
"SpanQueryBuilder",
"builder",
")",
"{",
"builders",
".",
"put",
"(",
"nodeName",
",",
"builder",
")",
";",
"}"
] | public virtual void AddBuilder(string nodeName, ISpanQueryBuilder builder){builders[nodeName] = builder;}
| train | false |
7,908 | public DescribeReplicationGroupsResult describeReplicationGroups() {return describeReplicationGroups(new DescribeReplicationGroupsRequest());}
| [
"public",
"DescribeReplicationGroupsResult",
"describeReplicationGroups",
"(",
")",
"{",
"return",
"describeReplicationGroups",
"(",
"new",
"DescribeReplicationGroupsRequest",
"(",
")",
")",
";",
"}"
] | public virtual DescribeReplicationGroupsResponse DescribeReplicationGroups(){return DescribeReplicationGroups(new DescribeReplicationGroupsRequest());}
| train | false |
7,909 | public void removeAllCellsValuesForRow(int rowIndex) {if (rowIndex < 0 || rowIndex > MAX_ROW_INDEX) {throw new IllegalArgumentException("Specified rowIndex " + rowIndex+ " is outside the allowable range (0.." +MAX_ROW_INDEX + ")");}if (rowIndex >= records.length) {return;}records[rowIndex] = null;}
| [
"public",
"void",
"removeAllCellsValuesForRow",
"(",
"int",
"rowIndex",
")",
"{",
"if",
"(",
"rowIndex",
"<",
"0",
"||",
"rowIndex",
">",
"MAX_ROW_INDEX",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Specified rowIndex \"",
"+",
"rowIndex",
"+",
... | public void RemoveAllCellsValuesForRow(int rowIndex){if (rowIndex < 0 || rowIndex > MAX_ROW_INDEX){throw new ArgumentException("Specified rowIndex " + rowIndex+ " is outside the allowable range (0.." + MAX_ROW_INDEX + ")");}if (rowIndex >= records.Length){return;}records[rowIndex] = null;}
| train | false |
7,910 | public DeleteProxySessionResult deleteProxySession(DeleteProxySessionRequest request) {request = beforeClientExecution(request);return executeDeleteProxySession(request);}
| [
"public",
"DeleteProxySessionResult",
"deleteProxySession",
"(",
"DeleteProxySessionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteProxySession",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteProxySessionResponse DeleteProxySession(DeleteProxySessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteProxySessionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteProxySessionResponseUnmarshaller.Instance;return Invoke<DeleteProxySessionRespon... | train | false |
7,911 | public DescribePoliciesResult describePolicies() {return describePolicies(new DescribePoliciesRequest());}
| [
"public",
"DescribePoliciesResult",
"describePolicies",
"(",
")",
"{",
"return",
"describePolicies",
"(",
"new",
"DescribePoliciesRequest",
"(",
")",
")",
";",
"}"
] | public virtual DescribePoliciesResponse DescribePolicies(){return DescribePolicies(new DescribePoliciesRequest());}
| train | false |
7,912 | public NumberFormatIndexRecord(RecordInputStream in) {field_1_formatIndex = in.readShort();}
| [
"public",
"NumberFormatIndexRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_formatIndex",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"}"
] | public NumberFormatIndexRecord(RecordInputStream in1){field_1_formatIndex = in1.ReadShort();}
| train | false |
7,913 | public CreatePrivateVirtualInterfaceResult createPrivateVirtualInterface(CreatePrivateVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeCreatePrivateVirtualInterface(request);}
| [
"public",
"CreatePrivateVirtualInterfaceResult",
"createPrivateVirtualInterface",
"(",
"CreatePrivateVirtualInterfaceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreatePrivateVirtualInterface",
"(",
"request",... | public virtual CreatePrivateVirtualInterfaceResponse CreatePrivateVirtualInterface(CreatePrivateVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePrivateVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePrivateVirtualInterfaceResponseUnmar... | train | true |
7,914 | @Override public E get(int location) {return list.get(location);}
| [
"@",
"Override",
"public",
"E",
"get",
"(",
"int",
"location",
")",
"{",
"return",
"list",
".",
"get",
"(",
"location",
")",
";",
"}"
] | public virtual E get(int location){return list.get(location);}
| train | false |
7,915 | public String getPath() {return decode(path);}
| [
"public",
"String",
"getPath",
"(",
")",
"{",
"return",
"decode",
"(",
"path",
")",
";",
"}"
] | public string getPath(){return decode(path);}
| train | false |
7,916 | public static String longToHex(long value) {StringBuilder sb = new StringBuilder(18);writeHex(sb, value, 16, "0x");return sb.toString();}
| [
"public",
"static",
"String",
"longToHex",
"(",
"long",
"value",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
"18",
")",
";",
"writeHex",
"(",
"sb",
",",
"value",
",",
"16",
",",
"\"0x\"",
")",
";",
"return",
"sb",
".",
"toString"... | public static char[] LongToHex(long value){return ToHexChars(value, 8);}
| train | false |
7,918 | public int compareTo( Toffs other ) {int diff = getStartOffset() - other.getStartOffset();if ( diff != 0 ) {return diff;}return getEndOffset() - other.getEndOffset();}
| [
"public",
"int",
"compareTo",
"(",
"Toffs",
"other",
")",
"{",
"int",
"diff",
"=",
"getStartOffset",
"(",
")",
"-",
"other",
".",
"getStartOffset",
"(",
")",
";",
"if",
"(",
"diff",
"!=",
"0",
")",
"{",
"return",
"diff",
";",
"}",
"return",
"getEndOf... | public virtual int CompareTo(Toffs other){int diff = StartOffset - other.StartOffset;if (diff != 0){return diff;}return EndOffset - other.EndOffset;}
| train | false |
7,919 | public UpdateNetworkProfileResult updateNetworkProfile(UpdateNetworkProfileRequest request) {request = beforeClientExecution(request);return executeUpdateNetworkProfile(request);}
| [
"public",
"UpdateNetworkProfileResult",
"updateNetworkProfile",
"(",
"UpdateNetworkProfileRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateNetworkProfile",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateNetworkProfileResponse UpdateNetworkProfile(UpdateNetworkProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateNetworkProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateNetworkProfileResponseUnmarshaller.Instance;return Invoke<UpdateNetworkP... | train | true |
7,920 | public GetRelationalDatabaseParametersResult getRelationalDatabaseParameters(GetRelationalDatabaseParametersRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseParameters(request);}
| [
"public",
"GetRelationalDatabaseParametersResult",
"getRelationalDatabaseParameters",
"(",
"GetRelationalDatabaseParametersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetRelationalDatabaseParameters",
"(",
"r... | public virtual GetRelationalDatabaseParametersResponse GetRelationalDatabaseParameters(GetRelationalDatabaseParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseParametersRes... | train | true |
7,922 | public boolean remove(Object object) {return removeFirstOccurrenceImpl(object);}
| [
"public",
"boolean",
"remove",
"(",
"Object",
"object",
")",
"{",
"return",
"removeFirstOccurrenceImpl",
"(",
"object",
")",
";",
"}"
] | public override bool remove(object @object){return removeFirstOccurrenceImpl(@object);}
| train | false |
7,923 | public DConRefRecord(RecordInputStream inStream) {if (inStream.getSid() != sid) {throw new RecordFormatException("Wrong sid: " + inStream.getSid());}firstRow = inStream.readUShort();lastRow = inStream.readUShort();firstCol = inStream.readUByte();lastCol = inStream.readUByte();charCount = inStream.readUShort();charType ... | [
"public",
"DConRefRecord",
"(",
"RecordInputStream",
"inStream",
")",
"{",
"if",
"(",
"inStream",
".",
"getSid",
"(",
")",
"!=",
"sid",
")",
"{",
"throw",
"new",
"RecordFormatException",
"(",
"\"Wrong sid: \"",
"+",
"inStream",
".",
"getSid",
"(",
")",
")",
... | public DConRefRecord(RecordInputStream inStream){if (inStream.Sid != sid)throw new RecordFormatException("Wrong sid: " + inStream.Sid);firstRow = inStream.ReadUShort();lastRow = inStream.ReadUShort();firstCol = inStream.ReadUByte();lastCol = inStream.ReadUByte();charCount = inStream.ReadUShort();charType = inStream.Rea... | train | false |
7,924 | public int getSheetIndex(EvaluationSheet evalSheet) {HSSFSheet sheet = ((HSSFEvaluationSheet)evalSheet).getHSSFSheet();return _uBook.getSheetIndex(sheet);}
| [
"public",
"int",
"getSheetIndex",
"(",
"EvaluationSheet",
"evalSheet",
")",
"{",
"HSSFSheet",
"sheet",
"=",
"(",
"(",
"HSSFEvaluationSheet",
")",
"evalSheet",
")",
".",
"getHSSFSheet",
"(",
")",
";",
"return",
"_uBook",
".",
"getSheetIndex",
"(",
"sheet",
")",... | public int GetSheetIndex(IEvaluationSheet evalSheet){HSSFSheet sheet = ((HSSFEvaluationSheet)evalSheet).HSSFSheet;return _uBook.GetSheetIndex(sheet);}
| train | false |
7,925 | public synchronized int codePointAt(int index) {return super.codePointAt(index);}
| [
"public",
"synchronized",
"int",
"codePointAt",
"(",
"int",
"index",
")",
"{",
"return",
"super",
".",
"codePointAt",
"(",
"index",
")",
";",
"}"
] | public override int codePointAt(int index){lock (this){return base.codePointAt(index);}}
| train | false |
7,926 | public DeleteRepoBuildRuleRequest() {super("cr", "2016-06-07", "DeleteRepoBuildRule", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]");setMethod(MethodType.DELETE);}
| [
"public",
"DeleteRepoBuildRuleRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"DeleteRepoBuildRule\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]\"",
")",
";",
"setMethod",
"(",
... | public DeleteRepoBuildRuleRequest(): base("cr", "2016-06-07", "DeleteRepoBuildRule", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]";Method = MethodType.DELETE;}
| train | false |
7,927 | public UpdateEmailChannelResult updateEmailChannel(UpdateEmailChannelRequest request) {request = beforeClientExecution(request);return executeUpdateEmailChannel(request);}
| [
"public",
"UpdateEmailChannelResult",
"updateEmailChannel",
"(",
"UpdateEmailChannelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateEmailChannel",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateEmailChannelResponse UpdateEmailChannel(UpdateEmailChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEmailChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEmailChannelResponseUnmarshaller.Instance;return Invoke<UpdateEmailChannelRespon... | train | true |
7,928 | public TabIdRecord(RecordInputStream in) {int nTabs = in.remaining() / 2;_tabids = new short[nTabs];for (int i = 0; i < _tabids.length; i++) {_tabids[i] = in.readShort();}}
| [
"public",
"TabIdRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"int",
"nTabs",
"=",
"in",
".",
"remaining",
"(",
")",
"/",
"2",
";",
"_tabids",
"=",
"new",
"short",
"[",
"nTabs",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"_ta... | public TabIdRecord(RecordInputStream in1){_tabids = new short[in1.Remaining / 2];for (int k = 0; k < _tabids.Length; k++){_tabids[k] = in1.ReadShort();}}
| train | false |
7,929 | public String toFormulaString(){return ",";}
| [
"public",
"String",
"toFormulaString",
"(",
")",
"{",
"return",
"\",\"",
";",
"}"
] | public override String ToFormulaString(){return ",";}
| train | false |
7,930 | public CreateConnectionResult createConnection(CreateConnectionRequest request) {request = beforeClientExecution(request);return executeCreateConnection(request);}
| [
"public",
"CreateConnectionResult",
"createConnection",
"(",
"CreateConnectionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateConnection",
"(",
"request",
")",
";",
"}"
] | public virtual CreateConnectionResponse CreateConnection(CreateConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConnectionResponseUnmarshaller.Instance;return Invoke<CreateConnectionResponse>(request,... | train | true |
7,931 | public int calculateWorkdays(double start, double end, double[] holidays) {int saturdaysPast = this.pastDaysOfWeek(start, end, Calendar.SATURDAY);int sundaysPast = this.pastDaysOfWeek(start, end, Calendar.SUNDAY);int nonWeekendHolidays = this.calculateNonWeekendHolidays(start, end, holidays);return (int) (end - start +... | [
"public",
"int",
"calculateWorkdays",
"(",
"double",
"start",
",",
"double",
"end",
",",
"double",
"[",
"]",
"holidays",
")",
"{",
"int",
"saturdaysPast",
"=",
"this",
".",
"pastDaysOfWeek",
"(",
"start",
",",
"end",
",",
"Calendar",
".",
"SATURDAY",
")",
... | public int CalculateWorkdays(double start, double end, double[] holidays){int saturdaysPast = this.PastDaysOfWeek(start, end, DayOfWeek.Saturday);int sundaysPast = this.PastDaysOfWeek(start, end, DayOfWeek.Sunday);int nonWeekendHolidays = this.CalculateNonWeekendHolidays(start, end, holidays);return (int)(end - start +... | train | false |
7,932 | public IndexFormatTooNewException(String resourceDescription, int version, int minVersion, int maxVersion) {super("Format version is not supported (resource " + resourceDescription + "): "+ version + " (needs to be between " + minVersion + " and " + maxVersion + ")");this.resourceDescription = resourceDescription;this.... | [
"public",
"IndexFormatTooNewException",
"(",
"String",
"resourceDescription",
",",
"int",
"version",
",",
"int",
"minVersion",
",",
"int",
"maxVersion",
")",
"{",
"super",
"(",
"\"Format version is not supported (resource \"",
"+",
"resourceDescription",
"+",
"\"): \"",
... | public IndexFormatTooNewException(string resourceDesc, int version, int minVersion, int maxVersion): base("Format version is not supported (resource: " + resourceDesc + "): " + version + " (needs to be between " + minVersion + " and " + maxVersion + ")"){Debug.Assert(resourceDesc != null);}
| train | false |
7,933 | public void apply(DirCacheEntry ent) {throw new UnsupportedOperationException(JGitText.get().noApplyInDelete);}
| [
"public",
"void",
"apply",
"(",
"DirCacheEntry",
"ent",
")",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"noApplyInDelete",
")",
";",
"}"
] | public override void Apply(DirCacheEntry ent){throw new NotSupportedException(JGitText.Get().noApplyInDelete);}
| train | false |
7,934 | public boolean isNewFragment() {position += posIncAtt.getPositionIncrement();if (waitForPos <= position) {waitForPos = -1;} else if (waitForPos != -1) {return false;}WeightedSpanTerm wSpanTerm = queryScorer.getWeightedSpanTerm(termAtt.toString());if (wSpanTerm != null) {List<PositionSpan> positionSpans = wSpanTerm.getP... | [
"public",
"boolean",
"isNewFragment",
"(",
")",
"{",
"position",
"+=",
"posIncAtt",
".",
"getPositionIncrement",
"(",
")",
";",
"if",
"(",
"waitForPos",
"<=",
"position",
")",
"{",
"waitForPos",
"=",
"-",
"1",
";",
"}",
"else",
"if",
"(",
"waitForPos",
"... | public virtual bool IsNewFragment(){position += posIncAtt.PositionIncrement;if (waitForPos == position){waitForPos = -1;}else if (waitForPos != -1){return false;}WeightedSpanTerm wSpanTerm = queryScorer.GetWeightedSpanTerm(termAtt.ToString());if (wSpanTerm != null){IList<PositionSpan> positionSpans = wSpanTerm.Position... | train | false |
7,935 | public StopMatchmakingResult stopMatchmaking(StopMatchmakingRequest request) {request = beforeClientExecution(request);return executeStopMatchmaking(request);}
| [
"public",
"StopMatchmakingResult",
"stopMatchmaking",
"(",
"StopMatchmakingRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStopMatchmaking",
"(",
"request",
")",
";",
"}"
] | public virtual StopMatchmakingResponse StopMatchmaking(StopMatchmakingRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopMatchmakingRequestMarshaller.Instance;options.ResponseUnmarshaller = StopMatchmakingResponseUnmarshaller.Instance;return Invoke<StopMatchmakingResponse>(request, optio... | train | true |
7,936 | public DescribeClientVpnTargetNetworksResult describeClientVpnTargetNetworks(DescribeClientVpnTargetNetworksRequest request) {request = beforeClientExecution(request);return executeDescribeClientVpnTargetNetworks(request);}
| [
"public",
"DescribeClientVpnTargetNetworksResult",
"describeClientVpnTargetNetworks",
"(",
"DescribeClientVpnTargetNetworksRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeClientVpnTargetNetworks",
"(",
"r... | public virtual DescribeClientVpnTargetNetworksResponse DescribeClientVpnTargetNetworks(DescribeClientVpnTargetNetworksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClientVpnTargetNetworksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClientVpnTargetNetworksRes... | train | true |
7,937 | public FloatBuffer put(FloatBuffer buf) {throw new ReadOnlyBufferException();}
| [
"public",
"FloatBuffer",
"put",
"(",
"FloatBuffer",
"buf",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] | public override java.nio.FloatBuffer put(java.nio.FloatBuffer buf){throw new java.nio.ReadOnlyBufferException();}
| train | false |
7,938 | public final IntBuffer asIntBuffer() {return IntToByteBufferAdapter.asIntBuffer(this);}
| [
"public",
"final",
"IntBuffer",
"asIntBuffer",
"(",
")",
"{",
"return",
"IntToByteBufferAdapter",
".",
"asIntBuffer",
"(",
"this",
")",
";",
"}"
] | public sealed override java.nio.IntBuffer asIntBuffer(){return java.nio.IntToByteBufferAdapter.asIntBuffer(this);}
| train | false |
7,939 | public RemovePermissionResult removePermission(String queueUrl, String label) {return removePermission(new RemovePermissionRequest().withQueueUrl(queueUrl).withLabel(label));}
| [
"public",
"RemovePermissionResult",
"removePermission",
"(",
"String",
"queueUrl",
",",
"String",
"label",
")",
"{",
"return",
"removePermission",
"(",
"new",
"RemovePermissionRequest",
"(",
")",
".",
"withQueueUrl",
"(",
"queueUrl",
")",
".",
"withLabel",
"(",
"l... | public virtual RemovePermissionResponse RemovePermission(string queueUrl, string label){var request = new RemovePermissionRequest();request.QueueUrl = queueUrl;request.Label = label;return RemovePermission(request);}
| train | true |
7,940 | public void inform(ResourceLoader loader) {if (encoderClass.equals("float")){encoder = new FloatEncoder();} else if (encoderClass.equals("integer")){encoder = new IntegerEncoder();} else if (encoderClass.equals("identity")){encoder = new IdentityEncoder();} else {encoder = loader.newInstance(encoderClass, PayloadEncode... | [
"public",
"void",
"inform",
"(",
"ResourceLoader",
"loader",
")",
"{",
"if",
"(",
"encoderClass",
".",
"equals",
"(",
"\"float\"",
")",
")",
"{",
"encoder",
"=",
"new",
"FloatEncoder",
"(",
")",
";",
"}",
"else",
"if",
"(",
"encoderClass",
".",
"equals",... | public virtual void Inform(IResourceLoader loader){if (encoderClass.Equals("float", StringComparison.Ordinal)){encoder = new SingleEncoder();}else if (encoderClass.Equals("integer", StringComparison.Ordinal)){encoder = new IntegerEncoder();}else if (encoderClass.Equals("identity", StringComparison.Ordinal)){encoder = n... | train | false |
7,941 | public GetHealthCheckResult getHealthCheck(GetHealthCheckRequest request) {request = beforeClientExecution(request);return executeGetHealthCheck(request);}
| [
"public",
"GetHealthCheckResult",
"getHealthCheck",
"(",
"GetHealthCheckRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetHealthCheck",
"(",
"request",
")",
";",
"}"
] | public virtual GetHealthCheckResponse GetHealthCheck(GetHealthCheckRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHealthCheckRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHealthCheckResponseUnmarshaller.Instance;return Invoke<GetHealthCheckResponse>(request, options);}
| train | true |
7,942 | public ListNotebookInstanceLifecycleConfigsResult listNotebookInstanceLifecycleConfigs(ListNotebookInstanceLifecycleConfigsRequest request) {request = beforeClientExecution(request);return executeListNotebookInstanceLifecycleConfigs(request);}
| [
"public",
"ListNotebookInstanceLifecycleConfigsResult",
"listNotebookInstanceLifecycleConfigs",
"(",
"ListNotebookInstanceLifecycleConfigsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListNotebookInstanceLifecycleC... | public virtual ListNotebookInstanceLifecycleConfigsResponse ListNotebookInstanceLifecycleConfigs(ListNotebookInstanceLifecycleConfigsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListNotebookInstanceLifecycleConfigsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListNotebookIn... | train | true |
7,943 | public int next(int n) {if (n < 0) {for (int i = 0; i < -n; i++) {previous();}} else {for (int i = 0; i < n; i++) {next();}}return current();}
| [
"public",
"int",
"next",
"(",
"int",
"n",
")",
"{",
"if",
"(",
"n",
"<",
"0",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"-",
"n",
";",
"i",
"++",
")",
"{",
"previous",
"(",
")",
";",
"}",
"}",
"else",
"{",
"for",
"(",
... | public override int Next(int n){if (n < 0){for (int i = 0; i < -n; i++){Previous();}}else{for (int i = 0; i < n; i++){Next();}}return Current;}
| train | false |
7,944 | public static long calculateMaximumSize(final HeaderBlock header){return calculateMaximumSize(header.getBigBlockSize(), header.getBATCount());}
| [
"public",
"static",
"long",
"calculateMaximumSize",
"(",
"final",
"HeaderBlock",
"header",
")",
"{",
"return",
"calculateMaximumSize",
"(",
"header",
".",
"getBigBlockSize",
"(",
")",
",",
"header",
".",
"getBATCount",
"(",
")",
")",
";",
"}"
] | public static long CalculateMaximumSize(HeaderBlock header){return CalculateMaximumSize(header.BigBlockSize, header.BATCount);}
| train | false |
7,945 | public String toString() {return "character=" + _character + ",fontIndex=" + _fontIndex;}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"character=\"",
"+",
"_character",
"+",
"\",fontIndex=\"",
"+",
"_fontIndex",
";",
"}"
] | public override String ToString(){return "character=" + _character + ",fontIndex=" + _fontIndex;}
| train | false |
7,946 | public static float[] grow(float[] array, int minSize) {assert minSize >= 0: "size must be positive (got " + minSize + "): likely integer overflow?";if (array.length < minSize) {float[] copy = new float[oversize(minSize, Float.BYTES)];System.arraycopy(array, 0, copy, 0, array.length);return copy;} else return array;}
| [
"public",
"static",
"float",
"[",
"]",
"grow",
"(",
"float",
"[",
"]",
"array",
",",
"int",
"minSize",
")",
"{",
"assert",
"minSize",
">=",
"0",
":",
"\"size must be positive (got \"",
"+",
"minSize",
"+",
"\"): likely integer overflow?\"",
";",
"if",
"(",
"... | public static float[] Grow(float[] array, int minSize){Debug.Assert(minSize >= 0, "size must be positive (got " + minSize + "): likely integer overflow?");if (array.Length < minSize){float[] newArray = new float[Oversize(minSize, RamUsageEstimator.NUM_BYTES_SINGLE)];Array.Copy(array, 0, newArray, 0, array.Length);retur... | train | false |
7,947 | public String getDataFormatString() {if (getDataFormatStringCache.get() != null) {if (lastDateFormat.get() == getDataFormat() && _workbook.getFormats().equals(lastFormats.get())) {return getDataFormatStringCache.get();}}lastFormats.set(_workbook.getFormats());lastDateFormat.set(getDataFormat());getDataFormatStringCache... | [
"public",
"String",
"getDataFormatString",
"(",
")",
"{",
"if",
"(",
"getDataFormatStringCache",
".",
"get",
"(",
")",
"!=",
"null",
")",
"{",
"if",
"(",
"lastDateFormat",
".",
"get",
"(",
")",
"==",
"getDataFormat",
"(",
")",
"&&",
"_workbook",
".",
"ge... | public String GetDataFormatString(){if (getDataFormatStringCache != null){if (lastDateFormat == DataFormat && _workbook.Formats.Equals(lastFormats)){return getDataFormatStringCache;}}lastFormats = _workbook.Formats;lastDateFormat = DataFormat;getDataFormatStringCache = GetDataFormatString(_workbook);return getDataForma... | train | false |
7,948 | public UpdateSignalingChannelResult updateSignalingChannel(UpdateSignalingChannelRequest request) {request = beforeClientExecution(request);return executeUpdateSignalingChannel(request);}
| [
"public",
"UpdateSignalingChannelResult",
"updateSignalingChannel",
"(",
"UpdateSignalingChannelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateSignalingChannel",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateSignalingChannelResponse UpdateSignalingChannel(UpdateSignalingChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSignalingChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSignalingChannelResponseUnmarshaller.Instance;return Invoke<Upda... | train | false |
7,949 | public MoPenSendMqttMessageRequest() {super("MoPen", "2018-02-11", "MoPenSendMqttMessage", "mopen");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
| [
"public",
"MoPenSendMqttMessageRequest",
"(",
")",
"{",
"super",
"(",
"\"MoPen\"",
",",
"\"2018-02-11\"",
",",
"\"MoPenSendMqttMessage\"",
",",
"\"mopen\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"setMethod",
"(",
"MethodType",
".",
... | public MoPenSendMqttMessageRequest(): base("MoPen", "2018-02-11", "MoPenSendMqttMessage", "mopen", "openAPI"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
| train | false |
7,950 | public TreeSet(SortedSet<E> set) {this(set.comparator());Iterator<E> it = set.iterator();while (it.hasNext()) {add(it.next());}}
| [
"public",
"TreeSet",
"(",
"SortedSet",
"<",
"E",
">",
"set",
")",
"{",
"this",
"(",
"set",
".",
"comparator",
"(",
")",
")",
";",
"Iterator",
"<",
"E",
">",
"it",
"=",
"set",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"it",
".",
"hasNext",
"... | public TreeSet(java.util.SortedSet<E> set) : this(set.comparator()){java.util.Iterator<E> it = set.iterator();while (it.hasNext()){add(it.next());}}
| train | false |
7,951 | public DisassociateMembersResult disassociateMembers(DisassociateMembersRequest request) {request = beforeClientExecution(request);return executeDisassociateMembers(request);}
| [
"public",
"DisassociateMembersResult",
"disassociateMembers",
"(",
"DisassociateMembersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisassociateMembers",
"(",
"request",
")",
";",
"}"
] | public virtual DisassociateMembersResponse DisassociateMembers(DisassociateMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateMembersResponseUnmarshaller.Instance;return Invoke<DisassociateMembers... | train | true |
7,952 | public DeleteVpcLinkResult deleteVpcLink(DeleteVpcLinkRequest request) {request = beforeClientExecution(request);return executeDeleteVpcLink(request);}
| [
"public",
"DeleteVpcLinkResult",
"deleteVpcLink",
"(",
"DeleteVpcLinkRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteVpcLink",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteVpcLinkResponse DeleteVpcLink(DeleteVpcLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpcLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpcLinkResponseUnmarshaller.Instance;return Invoke<DeleteVpcLinkResponse>(request, options);}
| train | true |
7,953 | public DescribeDBSnapshotsResult describeDBSnapshots() {return describeDBSnapshots(new DescribeDBSnapshotsRequest());}
| [
"public",
"DescribeDBSnapshotsResult",
"describeDBSnapshots",
"(",
")",
"{",
"return",
"describeDBSnapshots",
"(",
"new",
"DescribeDBSnapshotsRequest",
"(",
")",
")",
";",
"}"
] | public virtual DescribeDBSnapshotsResponse DescribeDBSnapshots(){return DescribeDBSnapshots(new DescribeDBSnapshotsRequest());}
| train | false |
7,954 | public void clear() {if(_evaluationListener != null) {_evaluationListener.onClearWholeCache();}_plainCellCache.clear();_formulaCellCache.clear();}
| [
"public",
"void",
"clear",
"(",
")",
"{",
"if",
"(",
"_evaluationListener",
"!=",
"null",
")",
"{",
"_evaluationListener",
".",
"onClearWholeCache",
"(",
")",
";",
"}",
"_plainCellCache",
".",
"clear",
"(",
")",
";",
"_formulaCellCache",
".",
"clear",
"(",
... | public void Clear(){if (_evaluationListener != null){_evaluationListener.OnClearWholeCache();}_plainCellCache.Clear();_formulaCellCache.Clear();}
| train | false |
7,955 | public void setDiffAlgorithm(DiffAlgorithm alg) {diffAlgorithm = alg;}
| [
"public",
"void",
"setDiffAlgorithm",
"(",
"DiffAlgorithm",
"alg",
")",
"{",
"diffAlgorithm",
"=",
"alg",
";",
"}"
] | public virtual void SetDiffAlgorithm(DiffAlgorithm alg){diffAlgorithm = alg;}
| train | false |
7,956 | public DVALRecord(RecordInputStream in) {field_1_options = in.readShort();field_2_horiz_pos = in.readInt();field_3_vert_pos = in.readInt();field_cbo_id = in.readInt();field_5_dv_no = in.readInt();}
| [
"public",
"DVALRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_options",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_2_horiz_pos",
"=",
"in",
".",
"readInt",
"(",
")",
";",
"field_3_vert_pos",
"=",
"in",
".",
"readInt",
"(",
")",
";",
... | public DVALRecord(RecordInputStream in1){this.field_1_options = in1.ReadShort();this.field_2_horiz_pos = in1.ReadInt();this.field_3_vert_pos = in1.ReadInt();this.field_cbo_id = in1.ReadInt();this.field_5_dv_no = in1.ReadInt();}
| train | false |
7,957 | public IndexInput clone() {throw new UnsupportedOperationException();}
| [
"public",
"IndexInput",
"clone",
"(",
")",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
")",
";",
"}"
] | public override object Clone(){throw new NotSupportedException();}
| train | false |
7,958 | public Appendable append(CharSequence csq, int start, int end) {reserve(end-start);for (int i=start; i<end; i++) {unsafeWrite(csq.charAt(i));}return this;}
| [
"public",
"Appendable",
"append",
"(",
"CharSequence",
"csq",
",",
"int",
"start",
",",
"int",
"end",
")",
"{",
"reserve",
"(",
"end",
"-",
"start",
")",
";",
"for",
"(",
"int",
"i",
"=",
"start",
";",
"i",
"<",
"end",
";",
"i",
"++",
")",
"{",
... | public virtual OpenStringBuilder Append(ICharSequence csq, int startIndex, int length) {EnsureCapacity(length - startIndex);for (int i = startIndex; i < length; i++){UnsafeWrite(csq[i]);}return this;}
| train | true |
7,959 | public DescribeJobFlowsResult describeJobFlows(DescribeJobFlowsRequest request) {request = beforeClientExecution(request);return executeDescribeJobFlows(request);}
| [
"public",
"DescribeJobFlowsResult",
"describeJobFlows",
"(",
"DescribeJobFlowsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeJobFlows",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeJobFlowsResponse DescribeJobFlows(DescribeJobFlowsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeJobFlowsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeJobFlowsResponseUnmarshaller.Instance;return Invoke<DescribeJobFlowsResponse>(request,... | train | false |
7,960 | public LowerCaseFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"LowerCaseFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown p... | public LowerCaseFilterFactory(IDictionary<string, string> args): base(args){AssureMatchVersion();if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
| train | false |
7,962 | public DisassociateResolverRuleResult disassociateResolverRule(DisassociateResolverRuleRequest request) {request = beforeClientExecution(request);return executeDisassociateResolverRule(request);}
| [
"public",
"DisassociateResolverRuleResult",
"disassociateResolverRule",
"(",
"DisassociateResolverRuleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisassociateResolverRule",
"(",
"request",
")",
";",
"}"... | public virtual DisassociateResolverRuleResponse DisassociateResolverRule(DisassociateResolverRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateResolverRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateResolverRuleResponseUnmarshaller.Instance;return I... | train | true |
7,963 | public static boolean isUnicodeString(final String value) {return !value.equals(new String(value.getBytes(ISO_8859_1), ISO_8859_1));}
| [
"public",
"static",
"boolean",
"isUnicodeString",
"(",
"final",
"String",
"value",
")",
"{",
"return",
"!",
"value",
".",
"equals",
"(",
"new",
"String",
"(",
"value",
".",
"getBytes",
"(",
"ISO_8859_1",
")",
",",
"ISO_8859_1",
")",
")",
";",
"}"
] | public static bool IsUnicodeString(String value){return !value.Equals(ISO_8859_1.GetString(ISO_8859_1.GetBytes(value)));}
| train | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.