id_within_dataset int64 0 10.3k | snippet stringlengths 29 1.4k | tokens listlengths 10 314 | cs stringlengths 28 1.38k | split_within_dataset stringclasses 1
value | is_duplicated bool 2
classes |
|---|---|---|---|---|---|
5,517 | public GetOSSImageAccessRequest() {super("industry-brain", "2018-07-12", "GetOSSImageAccess");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"GetOSSImageAccessRequest",
"(",
")",
"{",
"super",
"(",
"\"industry-brain\"",
",",
"\"2018-07-12\"",
",",
"\"GetOSSImageAccess\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public GetOSSImageAccessRequest(): base("industry-brain", "2018-07-12", "GetOSSImageAccess"){Protocol = ProtocolType.HTTPS;}
| train | false |
5,518 | public DeleteFleetsResult deleteFleets(DeleteFleetsRequest request) {request = beforeClientExecution(request);return executeDeleteFleets(request);}
| [
"public",
"DeleteFleetsResult",
"deleteFleets",
"(",
"DeleteFleetsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteFleets",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteFleetsResponse DeleteFleets(DeleteFleetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFleetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFleetsResponseUnmarshaller.Instance;return Invoke<DeleteFleetsResponse>(request, options);}
| train | true |
5,519 | public void set(E object) {if (expectedModCount == modCount) {try {AbstractList.this.set(lastPosition, object);} catch (IndexOutOfBoundsException e) {throw new IllegalStateException();}} else {throw new ConcurrentModificationException();}}
| [
"public",
"void",
"set",
"(",
"E",
"object",
")",
"{",
"if",
"(",
"expectedModCount",
"==",
"modCount",
")",
"{",
"try",
"{",
"AbstractList",
".",
"this",
".",
"set",
"(",
"lastPosition",
",",
"object",
")",
";",
"}",
"catch",
"(",
"IndexOutOfBoundsExcep... | public void set(E @object){if (this.expectedModCount == this._enclosing.modCount){try{this._enclosing.set(this.lastPosition, @object);}catch (System.IndexOutOfRangeException){throw new System.InvalidOperationException();}}else{throw new java.util.ConcurrentModificationException();}}
| train | false |
5,520 | public InvalidationBatch(Paths paths, String callerReference) {setPaths(paths);setCallerReference(callerReference);}
| [
"public",
"InvalidationBatch",
"(",
"Paths",
"paths",
",",
"String",
"callerReference",
")",
"{",
"setPaths",
"(",
"paths",
")",
";",
"setCallerReference",
"(",
"callerReference",
")",
";",
"}"
] | public InvalidationBatch(Paths paths, string callerReference){_paths = paths;_callerReference = callerReference;}
| train | false |
5,521 | public int getPrecision() {return p;}
| [
"public",
"int",
"getPrecision",
"(",
")",
"{",
"return",
"p",
";",
"}"
] | public virtual int getPrecision(){return p;}
| train | false |
5,522 | public boolean addSubRecord(SubRecord o) {return subrecords.add(o);}
| [
"public",
"boolean",
"addSubRecord",
"(",
"SubRecord",
"o",
")",
"{",
"return",
"subrecords",
".",
"add",
"(",
"o",
")",
";",
"}"
] | public void AddSubRecord(SubRecord o){subrecords.Add(o);}
| train | false |
5,523 | public int serialize(int offset, byte[] data, EscherSerializationListener listener) {listener.beforeRecordSerialize( offset, getRecordId(), this );int pos = offset;LittleEndian.putShort( data, pos, getOptions() ); pos += 2;LittleEndian.putShort( data, pos, getRecordId() ); pos += 2;LittleEndian.putInt(... | [
"public",
"int",
"serialize",
"(",
"int",
"offset",
",",
"byte",
"[",
"]",
"data",
",",
"EscherSerializationListener",
"listener",
")",
"{",
"listener",
".",
"beforeRecordSerialize",
"(",
"offset",
",",
"getRecordId",
"(",
")",
",",
"this",
")",
";",
"int",
... | public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);int pos = offset;LittleEndian.PutShort(data, pos, Options); pos += 2;LittleEndian.PutShort(data, pos, RecordId); pos += 2;LittleEndian.PutInt(data, pos, RecordSize - 8); po... | train | false |
5,524 | public static final ObjectId fromRaw(int[] is) {return fromRaw(is, 0);}
| [
"public",
"static",
"final",
"ObjectId",
"fromRaw",
"(",
"int",
"[",
"]",
"is",
")",
"{",
"return",
"fromRaw",
"(",
"is",
",",
"0",
")",
";",
"}"
] | public static NGit.ObjectId FromRaw(byte[] bs){return FromRaw(bs, 0);}
| train | false |
5,525 | public DisassociateIpGroupsResult disassociateIpGroups(DisassociateIpGroupsRequest request) {request = beforeClientExecution(request);return executeDisassociateIpGroups(request);}
| [
"public",
"DisassociateIpGroupsResult",
"disassociateIpGroups",
"(",
"DisassociateIpGroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisassociateIpGroups",
"(",
"request",
")",
";",
"}"
] | public virtual DisassociateIpGroupsResponse DisassociateIpGroups(DisassociateIpGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateIpGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateIpGroupsResponseUnmarshaller.Instance;return Invoke<DisassociateIp... | train | true |
5,526 | public static void mkdirs(File d, boolean skipExisting)throws IOException {if (!d.mkdirs()) {if (skipExisting && d.isDirectory())return;throw new IOException(MessageFormat.format(JGitText.get().mkDirsFailed, d.getAbsolutePath()));}}
| [
"public",
"static",
"void",
"mkdirs",
"(",
"File",
"d",
",",
"boolean",
"skipExisting",
")",
"throws",
"IOException",
"{",
"if",
"(",
"!",
"d",
".",
"mkdirs",
"(",
")",
")",
"{",
"if",
"(",
"skipExisting",
"&&",
"d",
".",
"isDirectory",
"(",
")",
")"... | public static void Mkdirs(FilePath d, bool skipExisting){if (!d.Mkdirs()){if (skipExisting && d.IsDirectory()){return;}throw new IOException(MessageFormat.Format(JGitText.Get().mkDirsFailed, d.GetAbsolutePath()));}}
| train | false |
5,527 | public GetImageManifestRequest() {super("cr", "2016-06-07", "GetImageManifest", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/manifest");setMethod(MethodType.GET);}
| [
"public",
"GetImageManifestRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"GetImageManifest\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/manifest\"",
")",
";",
"setMethod",
"(",
"Metho... | public GetImageManifestRequest(): base("cr", "2016-06-07", "GetImageManifest", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/manifest";Method = MethodType.GET;}
| train | false |
5,528 | public ListIdentitiesResult listIdentities(ListIdentitiesRequest request) {request = beforeClientExecution(request);return executeListIdentities(request);}
| [
"public",
"ListIdentitiesResult",
"listIdentities",
"(",
"ListIdentitiesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListIdentities",
"(",
"request",
")",
";",
"}"
] | public virtual ListIdentitiesResponse ListIdentities(ListIdentitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIdentitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIdentitiesResponseUnmarshaller.Instance;return Invoke<ListIdentitiesResponse>(request, options);}
| train | true |
5,529 | public final String toString() {return getClass().getName() + " [" +_sfr.getRange() +"]";}
| [
"public",
"final",
"String",
"toString",
"(",
")",
"{",
"return",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
"+",
"\" [\"",
"+",
"_sfr",
".",
"getRange",
"(",
")",
"+",
"\"]\"",
";",
"}"
] | public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");sb.Append(_sfr.Range.ToString());sb.Append("]");return sb.ToString();}
| train | false |
5,530 | public byte[] toByteArray() {byte[] result = new byte[LittleEndianConsts.INT_SIZE*2+_value.length];LittleEndianByteArrayOutputStream bos = new LittleEndianByteArrayOutputStream(result,0);try {bos.writeInt(LittleEndianConsts.INT_SIZE + _value.length);bos.writeInt(_format);bos.write(_value);return result;} finally {IOUti... | [
"public",
"byte",
"[",
"]",
"toByteArray",
"(",
")",
"{",
"byte",
"[",
"]",
"result",
"=",
"new",
"byte",
"[",
"LittleEndianConsts",
".",
"INT_SIZE",
"*",
"2",
"+",
"_value",
".",
"length",
"]",
";",
"LittleEndianByteArrayOutputStream",
"bos",
"=",
"new",
... | public byte[] ToByteArray(){byte[] result = new byte[Size];LittleEndian.PutInt(result, 0 * LittleEndian.INT_SIZE,LittleEndian.INT_SIZE + _value.Length);LittleEndian.PutInt(result, 1 * LittleEndian.INT_SIZE, _format);System.Array.Copy(_value, 0, result, LittleEndian.INT_SIZE+ LittleEndian.INT_SIZE, _value.Length);return... | train | false |
5,531 | public void update(byte[] b, int off, int len) {if (len >= buffer.length) {flush();in.update(b, off, len);} else {if (upto + len > buffer.length) {flush();}System.arraycopy(b, off, buffer, upto, len);upto += len;}}
| [
"public",
"void",
"update",
"(",
"byte",
"[",
"]",
"b",
",",
"int",
"off",
",",
"int",
"len",
")",
"{",
"if",
"(",
"len",
">=",
"buffer",
".",
"length",
")",
"{",
"flush",
"(",
")",
";",
"in",
".",
"update",
"(",
"b",
",",
"off",
",",
"len",
... | public virtual void Update(byte[] b, int off, int len){if (len >= buffer.Length){Flush();@in.Update(b, off, len);}else{if (upto + len > buffer.Length){Flush();}System.Buffer.BlockCopy(b, off, buffer, upto, len);upto += len;}}
| train | false |
5,532 | public HSSFPicture createPicture(ClientAnchor anchor, int pictureIndex) {return createPicture((HSSFClientAnchor) anchor, pictureIndex);}
| [
"public",
"HSSFPicture",
"createPicture",
"(",
"ClientAnchor",
"anchor",
",",
"int",
"pictureIndex",
")",
"{",
"return",
"createPicture",
"(",
"(",
"HSSFClientAnchor",
")",
"anchor",
",",
"pictureIndex",
")",
";",
"}"
] | public IPicture CreatePicture(HSSFClientAnchor anchor, int pictureIndex){HSSFPicture shape = new HSSFPicture(null, (HSSFClientAnchor)anchor);shape.PictureIndex = pictureIndex;AddShape(shape);OnCreate(shape);return shape;}
| train | false |
5,533 | public String getAccessKeySecret() {return legacyCredential.getAccessSecret();}
| [
"public",
"String",
"getAccessKeySecret",
"(",
")",
"{",
"return",
"legacyCredential",
".",
"getAccessSecret",
"(",
")",
";",
"}"
] | public string GetAccessKeySecret(){return legacyCredential.AccessSecret;}
| train | false |
5,535 | public CreateResolverEndpointResult createResolverEndpoint(CreateResolverEndpointRequest request) {request = beforeClientExecution(request);return executeCreateResolverEndpoint(request);}
| [
"public",
"CreateResolverEndpointResult",
"createResolverEndpoint",
"(",
"CreateResolverEndpointRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateResolverEndpoint",
"(",
"request",
")",
";",
"}"
] | public virtual CreateResolverEndpointResponse CreateResolverEndpoint(CreateResolverEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateResolverEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateResolverEndpointResponseUnmarshaller.Instance;return Invoke<Crea... | train | true |
5,536 | public HunspellStemFilterFactory(Map<String,String> args) {super(args);dictionaryFiles = require(args, PARAM_DICTIONARY);affixFile = get(args, PARAM_AFFIX);ignoreCase = getBoolean(args, PARAM_IGNORE_CASE, false);longestOnly = getBoolean(args, PARAM_LONGEST_ONLY, false);getBoolean(args, "strictAffixParsing", true);getIn... | [
"public",
"HunspellStemFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"dictionaryFiles",
"=",
"require",
"(",
"args",
",",
"PARAM_DICTIONARY",
")",
";",
"affixFile",
"=",
"get",
"(",
"args",... | public HunspellStemFilterFactory(IDictionary<string, string> args): base(args){dictionaryFiles = Require(args, PARAM_DICTIONARY);affixFile = Get(args, PARAM_AFFIX);ignoreCase = GetBoolean(args, PARAM_IGNORE_CASE, false);longestOnly = GetBoolean(args, PARAM_LONGEST_ONLY, false);GetBoolean(args, "strictAffixParsing", tru... | train | false |
5,538 | public CancelSpotInstanceRequestsResult cancelSpotInstanceRequests(CancelSpotInstanceRequestsRequest request) {request = beforeClientExecution(request);return executeCancelSpotInstanceRequests(request);}
| [
"public",
"CancelSpotInstanceRequestsResult",
"cancelSpotInstanceRequests",
"(",
"CancelSpotInstanceRequestsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCancelSpotInstanceRequests",
"(",
"request",
")",
";... | public virtual CancelSpotInstanceRequestsResponse CancelSpotInstanceRequests(CancelSpotInstanceRequestsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelSpotInstanceRequestsRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelSpotInstanceRequestsResponseUnmarshaller.Instanc... | train | true |
5,539 | public void serialize(LittleEndianOutput out) {out.writeShort(field_1_print_headers);}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"field_1_print_headers",
")",
";",
"}"
] | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_print_headers);}
| train | false |
5,541 | public DeleteVaultAccessPolicyResult deleteVaultAccessPolicy(DeleteVaultAccessPolicyRequest request) {request = beforeClientExecution(request);return executeDeleteVaultAccessPolicy(request);}
| [
"public",
"DeleteVaultAccessPolicyResult",
"deleteVaultAccessPolicy",
"(",
"DeleteVaultAccessPolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteVaultAccessPolicy",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteVaultAccessPolicyResponse DeleteVaultAccessPolicy(DeleteVaultAccessPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVaultAccessPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVaultAccessPolicyResponseUnmarshaller.Instance;return Invoke... | train | true |
5,542 | public SpanOrBuilder(SpanQueryBuilder factory) {this.factory = factory;}
| [
"public",
"SpanOrBuilder",
"(",
"SpanQueryBuilder",
"factory",
")",
"{",
"this",
".",
"factory",
"=",
"factory",
";",
"}"
] | public SpanOrBuilder(ISpanQueryBuilder factory){this.factory = factory;}
| train | false |
5,543 | public DescribeConnectionsOnInterconnectResult describeConnectionsOnInterconnect(DescribeConnectionsOnInterconnectRequest request) {request = beforeClientExecution(request);return executeDescribeConnectionsOnInterconnect(request);}
| [
"public",
"DescribeConnectionsOnInterconnectResult",
"describeConnectionsOnInterconnect",
"(",
"DescribeConnectionsOnInterconnectRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeConnectionsOnInterconnect",
"... | public virtual DescribeConnectionsOnInterconnectResponse DescribeConnectionsOnInterconnect(DescribeConnectionsOnInterconnectRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeConnectionsOnInterconnectRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeConnectionsOnInter... | train | false |
5,544 | public MultiBoolFunction(List<ValueSource> sources) {this.sources = sources;}
| [
"public",
"MultiBoolFunction",
"(",
"List",
"<",
"ValueSource",
">",
"sources",
")",
"{",
"this",
".",
"sources",
"=",
"sources",
";",
"}"
] | public MultiBoolFunction(IList<ValueSource> sources){this.m_sources = sources;}
| train | false |
5,545 | public TokenStream create(TokenStream input) {return new ICUTransformFilter(input, transliterator);}
| [
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"ICUTransformFilter",
"(",
"input",
",",
"transliterator",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new ICUTransformFilter(input, transliterator);}
| train | false |
5,546 | public void extendA() {endA++;}
| [
"public",
"void",
"extendA",
"(",
")",
"{",
"endA",
"++",
";",
"}"
] | public virtual void ExtendA(){endA++;}
| train | false |
5,547 | public DeleteReceiptRuleSetResult deleteReceiptRuleSet(DeleteReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeDeleteReceiptRuleSet(request);}
| [
"public",
"DeleteReceiptRuleSetResult",
"deleteReceiptRuleSet",
"(",
"DeleteReceiptRuleSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteReceiptRuleSet",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteReceiptRuleSetResponse DeleteReceiptRuleSet(DeleteReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteReceiptRuleSetResponseUnmarshaller.Instance;return Invoke<DeleteReceiptR... | train | true |
5,548 | public PutRetentionPolicyRequest(String logGroupName, Integer retentionInDays) {setLogGroupName(logGroupName);setRetentionInDays(retentionInDays);}
| [
"public",
"PutRetentionPolicyRequest",
"(",
"String",
"logGroupName",
",",
"Integer",
"retentionInDays",
")",
"{",
"setLogGroupName",
"(",
"logGroupName",
")",
";",
"setRetentionInDays",
"(",
"retentionInDays",
")",
";",
"}"
] | public PutRetentionPolicyRequest(string logGroupName, int retentionInDays){_logGroupName = logGroupName;_retentionInDays = retentionInDays;}
| train | false |
5,549 | public void insertRow(RowRecord row) {_rowRecords.put(Integer.valueOf(row.getRowNumber()), row);_rowRecordValues = null;if ((row.getRowNumber() < _firstrow) || (_firstrow == -1)) {_firstrow = row.getRowNumber();}if ((row.getRowNumber() > _lastrow) || (_lastrow == -1)) {_lastrow = row.getRowNumber();}}
| [
"public",
"void",
"insertRow",
"(",
"RowRecord",
"row",
")",
"{",
"_rowRecords",
".",
"put",
"(",
"Integer",
".",
"valueOf",
"(",
"row",
".",
"getRowNumber",
"(",
")",
")",
",",
"row",
")",
";",
"_rowRecordValues",
"=",
"null",
";",
"if",
"(",
"(",
"... | public void InsertRow(RowRecord row){_rowRecords[row.RowNumber] = row;_rowRecordValues = null;if (row.RowNumber < firstrow|| firstrow == -1){firstrow = row.RowNumber;}if (row.RowNumber > lastrow|| lastrow == -1){lastrow = row.RowNumber;}}
| train | false |
5,550 | public String toString() {return "TermState";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"TermState\"",
";",
"}"
] | public override string ToString(){return "TermState";}
| train | false |
5,551 | public LsRemoteCommand setHeads(boolean heads) {this.heads = heads;return this;}
| [
"public",
"LsRemoteCommand",
"setHeads",
"(",
"boolean",
"heads",
")",
"{",
"this",
".",
"heads",
"=",
"heads",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.LsRemoteCommand SetHeads(bool heads){this.heads = heads;return this;}
| train | false |
5,552 | public void remove(String key) {deleteNode(getNode(key.trim().toLowerCase(locale)));}
| [
"public",
"void",
"remove",
"(",
"String",
"key",
")",
"{",
"deleteNode",
"(",
"getNode",
"(",
"key",
".",
"trim",
"(",
")",
".",
"toLowerCase",
"(",
"locale",
")",
")",
")",
";",
"}"
] | public virtual void Remove(string key){DeleteNode(GetNode(this.culture.TextInfo.ToLower(key.Trim())));}
| train | false |
5,553 | public Object[][] getTokenArrayValues() {if (_arrayValues == null) {throw new IllegalStateException("array values not read yet");}Object[][] result = new Object[_nRows][_nColumns];for (int r = 0; r < _nRows; r++) {Object[] rowData = result[r];for (int c = 0; c < _nColumns; c++) {rowData[c] = _arrayValues[getValueIndex(... | [
"public",
"Object",
"[",
"]",
"[",
"]",
"getTokenArrayValues",
"(",
")",
"{",
"if",
"(",
"_arrayValues",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"array values not read yet\"",
")",
";",
"}",
"Object",
"[",
"]",
"[",
"]",
"re... | public Object[][] GetTokenArrayValues(){if (_arrayValues == null){throw new InvalidOperationException("array values not read yet");}Object[][] result = new Object[_nRows][];for (int r = 0; r < _nRows; r++){result[r] = new object[_nColumns];for (int c = 0; c < _nColumns; c++){result[r][c] = _arrayValues[GetValueIndex(c,... | train | false |
5,554 | public PutIntegrationResponseResult putIntegrationResponse(PutIntegrationResponseRequest request) {request = beforeClientExecution(request);return executePutIntegrationResponse(request);}
| [
"public",
"PutIntegrationResponseResult",
"putIntegrationResponse",
"(",
"PutIntegrationResponseRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutIntegrationResponse",
"(",
"request",
")",
";",
"}"
] | public virtual PutIntegrationResponseResponse PutIntegrationResponse(PutIntegrationResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutIntegrationResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = PutIntegrationResponseResponseUnmarshaller.Instance;return Invoke<PutI... | train | true |
5,555 | public void write(String str, int offset, int count) throws IOException {synchronized (lock) {if (count < 0) {throw new StringIndexOutOfBoundsException(str, offset, count);}if (str == null) {throw new NullPointerException("str == null");}if ((offset | count) < 0 || offset > str.length() - count) {throw new StringIndexO... | [
"public",
"void",
"write",
"(",
"String",
"str",
",",
"int",
"offset",
",",
"int",
"count",
")",
"throws",
"IOException",
"{",
"synchronized",
"(",
"lock",
")",
"{",
"if",
"(",
"count",
"<",
"0",
")",
"{",
"throw",
"new",
"StringIndexOutOfBoundsException",... | public override void write(string str, int offset, int count){lock (@lock){if (count < 0){throw new java.lang.StringIndexOutOfBoundsException(str, offset, count);}if (str == null){throw new System.ArgumentNullException("str == null");}if ((offset | count) < 0 || offset > str.Length - count){throw new java.lang.StringIn... | train | true |
5,556 | public String subscriptionId() {return this.subscriptionId;}
| [
"public",
"String",
"subscriptionId",
"(",
")",
"{",
"return",
"this",
".",
"subscriptionId",
";",
"}"
] | public string SubscriptionId { get; set; }
| train | false |
5,557 | public HSSFPicture createPicture(HSSFClientAnchor anchor, int pictureIndex) {HSSFPicture shape = new HSSFPicture(null, anchor);shape.setPictureIndex(pictureIndex);addShape(shape);onCreate(shape);return shape;}
| [
"public",
"HSSFPicture",
"createPicture",
"(",
"HSSFClientAnchor",
"anchor",
",",
"int",
"pictureIndex",
")",
"{",
"HSSFPicture",
"shape",
"=",
"new",
"HSSFPicture",
"(",
"null",
",",
"anchor",
")",
";",
"shape",
".",
"setPictureIndex",
"(",
"pictureIndex",
")",... | public IPicture CreatePicture(HSSFClientAnchor anchor, int pictureIndex){HSSFPicture shape = new HSSFPicture(null, (HSSFClientAnchor)anchor);shape.PictureIndex = pictureIndex;AddShape(shape);OnCreate(shape);return shape;}
| train | false |
5,558 | public ReleaseStaticIpResult releaseStaticIp(ReleaseStaticIpRequest request) {request = beforeClientExecution(request);return executeReleaseStaticIp(request);}
| [
"public",
"ReleaseStaticIpResult",
"releaseStaticIp",
"(",
"ReleaseStaticIpRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeReleaseStaticIp",
"(",
"request",
")",
";",
"}"
] | public virtual ReleaseStaticIpResponse ReleaseStaticIp(ReleaseStaticIpRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReleaseStaticIpRequestMarshaller.Instance;options.ResponseUnmarshaller = ReleaseStaticIpResponseUnmarshaller.Instance;return Invoke<ReleaseStaticIpResponse>(request, optio... | train | true |
5,559 | public ListConfigurationSetsResult listConfigurationSets(ListConfigurationSetsRequest request) {request = beforeClientExecution(request);return executeListConfigurationSets(request);}
| [
"public",
"ListConfigurationSetsResult",
"listConfigurationSets",
"(",
"ListConfigurationSetsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListConfigurationSets",
"(",
"request",
")",
";",
"}"
] | public virtual ListConfigurationSetsResponse ListConfigurationSets(ListConfigurationSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListConfigurationSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListConfigurationSetsResponseUnmarshaller.Instance;return Invoke<ListConfi... | train | true |
5,560 | public UpdateRecordsResult updateRecords(UpdateRecordsRequest request) {request = beforeClientExecution(request);return executeUpdateRecords(request);}
| [
"public",
"UpdateRecordsResult",
"updateRecords",
"(",
"UpdateRecordsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateRecords",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateRecordsResponse UpdateRecords(UpdateRecordsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRecordsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRecordsResponseUnmarshaller.Instance;return Invoke<UpdateRecordsResponse>(request, options);}
| train | true |
5,561 | public Token emit() {Token t = _factory.create(_tokenFactorySourcePair, _type, _text, _channel, _tokenStartCharIndex, getCharIndex()-1,_tokenStartLine, _tokenStartCharPositionInLine);emit(t);return t;}
| [
"public",
"Token",
"emit",
"(",
")",
"{",
"Token",
"t",
"=",
"_factory",
".",
"create",
"(",
"_tokenFactorySourcePair",
",",
"_type",
",",
"_text",
",",
"_channel",
",",
"_tokenStartCharIndex",
",",
"getCharIndex",
"(",
")",
"-",
"1",
",",
"_tokenStartLine",... | public virtual IToken Emit(){IToken t = _factory.Create(_tokenFactorySourcePair, _type, _text, _channel, _tokenStartCharIndex, CharIndex - 1, _tokenStartLine, _tokenStartColumn);Emit(t);return t;}
| train | false |
5,562 | public synchronized IndexCommit snapshot() throws IOException {if (!initCalled) {throw new IllegalStateException("this instance is not being used by IndexWriter; be sure to use the instance returned from writer.getConfig().getIndexDeletionPolicy()");}if (lastCommit == null) {throw new IllegalStateException("No index co... | [
"public",
"synchronized",
"IndexCommit",
"snapshot",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"!",
"initCalled",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"this instance is not being used by IndexWriter; be sure to use the instance returned from writer... | public virtual IndexCommit Snapshot(){lock (this){if (!initCalled){throw new InvalidOperationException("this instance is not being used by IndexWriter; be sure to use the instance returned from writer.getConfig().getIndexDeletionPolicy()");}if (m_lastCommit == null){throw new InvalidOperationException("No index commit ... | train | false |
5,563 | public void build(InputIterator iter) throws IOException {synchronized (searcherMgrLock) {if (searcherMgr != null) {searcherMgr.close();searcherMgr = null;}if (writer != null) {writer.close();writer = null;}boolean success = false;try {writer = new IndexWriter(dir,getIndexWriterConfig(getGramAnalyzer(), IndexWriterConf... | [
"public",
"void",
"build",
"(",
"InputIterator",
"iter",
")",
"throws",
"IOException",
"{",
"synchronized",
"(",
"searcherMgrLock",
")",
"{",
"if",
"(",
"searcherMgr",
"!=",
"null",
")",
"{",
"searcherMgr",
".",
"close",
"(",
")",
";",
"searcherMgr",
"=",
... | public override void Build(IInputIterator iter){if (m_searcherMgr != null){m_searcherMgr.Dispose();m_searcherMgr = null;}if (writer != null){writer.Dispose();writer = null;}AtomicReader r = null;bool success = false;try{writer = new IndexWriter(dir, GetIndexWriterConfig(matchVersion, GramAnalyzer, OpenMode.CREATE));Byt... | train | false |
5,564 | public ShortBuffer put(ShortBuffer buf) {throw new ReadOnlyBufferException();}
| [
"public",
"ShortBuffer",
"put",
"(",
"ShortBuffer",
"buf",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] | public override java.nio.ShortBuffer put(short c){throw new java.nio.ReadOnlyBufferException();}
| train | false |
5,565 | public int stemSuffix(char s[], int len) {for (int i = 0; i < suffixes.length; i++)if (endsWithCheckLength(s, len, suffixes[i]))len = deleteN(s, len - suffixes[i].length, len, suffixes[i].length);return len;}
| [
"public",
"int",
"stemSuffix",
"(",
"char",
"s",
"[",
"]",
",",
"int",
"len",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"suffixes",
".",
"length",
";",
"i",
"++",
")",
"if",
"(",
"endsWithCheckLength",
"(",
"s",
",",
"len",
","... | public virtual int StemSuffix(char[] s, int len){for (int i = 0; i < suffixes.Length; i++){if (EndsWithCheckLength(s, len, suffixes[i])){len = StemmerUtil.DeleteN(s, len - suffixes[i].Length, len, suffixes[i].Length);}}return len;}
| train | false |
5,566 | public SeriesListRecord(RecordInputStream in) {int nItems = in.readUShort();short[] ss = new short[nItems];for (int i = 0; i < nItems; i++) {ss[i] = in.readShort();}field_1_seriesNumbers = ss;}
| [
"public",
"SeriesListRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"int",
"nItems",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"short",
"[",
"]",
"ss",
"=",
"new",
"short",
"[",
"nItems",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",... | public SeriesListRecord(RecordInputStream in1){int nItems = in1.ReadUShort();short[] ss = new short[nItems];for (int i = 0; i < nItems; i++) {ss[i] = in1.ReadShort();}field_1_seriesNumbers = ss;}
| train | false |
5,567 | public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerModeAction)) {return false;}return mode == ((LexerModeAction)obj).mode;}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"obj",
"==",
"this",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"!",
"(",
"obj",
"instanceof",
"LexerModeAction",
")",
")",
"{",
"return",
"false",
";",
"}",
"r... | public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerModeAction)){return false;}}return mode == ((Antlr4.Runtime.Atn.LexerModeAction)obj).mode;}
| train | false |
5,568 | public String getLineDelimiter() {if (size() == 0) {return null;}int e = getEnd(0);if (content[e - 1] != '\n') {return null;}if (content.length > 1 && e > 1 && content[e - 2] == '\r') {return "\r\n"; }return "\n"; }
| [
"public",
"String",
"getLineDelimiter",
"(",
")",
"{",
"if",
"(",
"size",
"(",
")",
"==",
"0",
")",
"{",
"return",
"null",
";",
"}",
"int",
"e",
"=",
"getEnd",
"(",
"0",
")",
";",
"if",
"(",
"content",
"[",
"e",
"-",
"1",
"]",
"!=",
"'\\n'",
... | public virtual string GetLineDelimiter(){if (Size() == 0){return null;}int e = GetEnd(0);if (content[e - 1] != '\n'){return null;}if (content.Length > 1 && content[e - 2] == '\r'){return "\r\n";}else{return "\n";}}
| train | false |
5,569 | public NormalisedDecimal roundUnits() {long wholePart = _wholePart;if (_fractionalPart >= FRAC_HALF) {wholePart++;}int de = _relativeDecimalExponent;if (wholePart < MAX_REP_WHOLE_PART) {return new NormalisedDecimal(wholePart, 0, de);}return new NormalisedDecimal(wholePart/10, 0, de+1);}
| [
"public",
"NormalisedDecimal",
"roundUnits",
"(",
")",
"{",
"long",
"wholePart",
"=",
"_wholePart",
";",
"if",
"(",
"_fractionalPart",
">=",
"FRAC_HALF",
")",
"{",
"wholePart",
"++",
";",
"}",
"int",
"de",
"=",
"_relativeDecimalExponent",
";",
"if",
"(",
"wh... | public NormalisedDecimal RoundUnits(){long wholePart = _wholePart;if (_fractionalPart >= FRAC_HALF){wholePart++;}int de = _relativeDecimalExponent;if (wholePart < MAX_REP_WHOLE_PART){return new NormalisedDecimal(wholePart, 0, de);}return new NormalisedDecimal(wholePart / 10, 0, de + 1);}
| train | false |
5,570 | public PLSAggregate(RecordStream rs) {_pls = rs.getNext();if (rs.peekNextSid()==ContinueRecord.sid) {List<ContinueRecord> temp = new ArrayList<>();while (rs.peekNextSid()==ContinueRecord.sid) {temp.add((ContinueRecord)rs.getNext());}_plsContinues = new ContinueRecord[temp.size()];temp.toArray(_plsContinues);} else {_pl... | [
"public",
"PLSAggregate",
"(",
"RecordStream",
"rs",
")",
"{",
"_pls",
"=",
"rs",
".",
"getNext",
"(",
")",
";",
"if",
"(",
"rs",
".",
"peekNextSid",
"(",
")",
"==",
"ContinueRecord",
".",
"sid",
")",
"{",
"List",
"<",
"ContinueRecord",
">",
"temp",
... | public PLSAggregate(RecordStream rs){_pls = rs.GetNext();if (rs.PeekNextSid() == ContinueRecord.sid){List<ContinueRecord> temp = new List<ContinueRecord>();while (rs.PeekNextSid() == ContinueRecord.sid){temp.Add((ContinueRecord)rs.GetNext());}_plsContinues = new ContinueRecord[temp.Count];_plsContinues = temp.ToArray()... | train | false |
5,571 | public AssociateDelegateToResourceResult associateDelegateToResource(AssociateDelegateToResourceRequest request) {request = beforeClientExecution(request);return executeAssociateDelegateToResource(request);}
| [
"public",
"AssociateDelegateToResourceResult",
"associateDelegateToResource",
"(",
"AssociateDelegateToResourceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociateDelegateToResource",
"(",
"request",
")",
... | public virtual AssociateDelegateToResourceResponse AssociateDelegateToResource(AssociateDelegateToResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateDelegateToResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateDelegateToResourceResponseUnmarshaller.In... | train | true |
5,572 | public static void setDefault(CredentialsProvider p) {defaultProvider = p;}
| [
"public",
"static",
"void",
"setDefault",
"(",
"CredentialsProvider",
"p",
")",
"{",
"defaultProvider",
"=",
"p",
";",
"}"
] | public static void SetDefault(CredentialsProvider p){defaultProvider = p;}
| train | false |
5,573 | public EscherProperty getEscherProperty( int index ){return properties.get( index );}
| [
"public",
"EscherProperty",
"getEscherProperty",
"(",
"int",
"index",
")",
"{",
"return",
"properties",
".",
"get",
"(",
"index",
")",
";",
"}"
] | public EscherProperty GetEscherProperty(int index){return properties[index];}
| train | false |
5,574 | @Override public void add(int index, E object) {synchronized (CopyOnWriteArrayList.this) {slice.checkPositionIndex(index);slice.checkConcurrentModification(elements);CopyOnWriteArrayList.this.add(index + slice.from, object);slice = new Slice(elements, slice.from, slice.to + 1);}}
| [
"@",
"Override",
"public",
"void",
"add",
"(",
"int",
"index",
",",
"E",
"object",
")",
"{",
"synchronized",
"(",
"CopyOnWriteArrayList",
".",
"this",
")",
"{",
"slice",
".",
"checkPositionIndex",
"(",
"index",
")",
";",
"slice",
".",
"checkConcurrentModific... | public virtual void add(int index, E e){lock (this){object[] newElements = new object[elements.Length + 1];System.Array.Copy(elements, 0, newElements, 0, index);newElements[index] = e;System.Array.Copy(elements, index, newElements, index + 1, elements.Length - index);elements = newElements;}}
| train | false |
5,575 | public static BitField getInstance(int mask) {BitField f = instances.get(Integer.valueOf(mask));if (f == null) {f = new BitField(mask);instances.put(Integer.valueOf(mask), f);}return f;}
| [
"public",
"static",
"BitField",
"getInstance",
"(",
"int",
"mask",
")",
"{",
"BitField",
"f",
"=",
"instances",
".",
"get",
"(",
"Integer",
".",
"valueOf",
"(",
"mask",
")",
")",
";",
"if",
"(",
"f",
"==",
"null",
")",
"{",
"f",
"=",
"new",
"BitFie... | public static BitField GetInstance(int mask){BitField f = (BitField)instances[mask];if (f == null){f = new BitField(mask);instances[mask] = f;}return f;}
| train | false |
5,576 | public boolean get(int doc) {final int reader = ReaderUtil.subIndex(doc, starts);assert reader != -1;final Bits bits = subs[reader];if (bits == null) {return defaultValue;} else {assert checkLength(reader, doc);return bits.get(doc-starts[reader]);}}
| [
"public",
"boolean",
"get",
"(",
"int",
"doc",
")",
"{",
"final",
"int",
"reader",
"=",
"ReaderUtil",
".",
"subIndex",
"(",
"doc",
",",
"starts",
")",
";",
"assert",
"reader",
"!=",
"-",
"1",
";",
"final",
"Bits",
"bits",
"=",
"subs",
"[",
"reader",
... | public bool Get(int doc){int reader = ReaderUtil.SubIndex(doc, starts);Debug.Assert(reader != -1);IBits bits = subs[reader];if (bits == null){return sefaultValue;}else{Debug.Assert(CheckLength(reader, doc));return bits.Get(doc - starts[reader]);}}
| train | false |
5,577 | public DeleteFieldLevelEncryptionProfileResult deleteFieldLevelEncryptionProfile(DeleteFieldLevelEncryptionProfileRequest request) {request = beforeClientExecution(request);return executeDeleteFieldLevelEncryptionProfile(request);}
| [
"public",
"DeleteFieldLevelEncryptionProfileResult",
"deleteFieldLevelEncryptionProfile",
"(",
"DeleteFieldLevelEncryptionProfileRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteFieldLevelEncryptionProfile",
"... | public virtual DeleteFieldLevelEncryptionProfileResponse DeleteFieldLevelEncryptionProfile(DeleteFieldLevelEncryptionProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFieldLevelEncryptionProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFieldLevelEncryption... | train | true |
5,578 | public EscherComplexProperty(short id, byte[] complexData) {this(id, complexData == null ? 0 : complexData.length);setComplexData(complexData);}
| [
"public",
"EscherComplexProperty",
"(",
"short",
"id",
",",
"byte",
"[",
"]",
"complexData",
")",
"{",
"this",
"(",
"id",
",",
"complexData",
"==",
"null",
"?",
"0",
":",
"complexData",
".",
"length",
")",
";",
"setComplexData",
"(",
"complexData",
")",
... | public EscherComplexProperty(short id, byte[] complexData): base(id){this._complexData = complexData;}
| train | false |
5,579 | public TermVectorsReader clone() {if (in == null) {throw new AlreadyClosedException("this TermVectorsReader is closed");}return new SimpleTextTermVectorsReader(offsets, in.clone());}
| [
"public",
"TermVectorsReader",
"clone",
"(",
")",
"{",
"if",
"(",
"in",
"==",
"null",
")",
"{",
"throw",
"new",
"AlreadyClosedException",
"(",
"\"this TermVectorsReader is closed\"",
")",
";",
"}",
"return",
"new",
"SimpleTextTermVectorsReader",
"(",
"offsets",
",... | public override object Clone(){if (_input == null){throw new ObjectDisposedException(this.GetType().GetTypeInfo().FullName, "this TermVectorsReader is closed");}return new SimpleTextTermVectorsReader(_offsets, (IndexInput)_input.Clone());}
| train | false |
5,581 | public final int getEndB() {return endB;}
| [
"public",
"final",
"int",
"getEndB",
"(",
")",
"{",
"return",
"endB",
";",
"}"
] | public int GetEndB(){return endB;}
| train | false |
5,582 | public DescribeAutoMLJobResult describeAutoMLJob(DescribeAutoMLJobRequest request) {request = beforeClientExecution(request);return executeDescribeAutoMLJob(request);}
| [
"public",
"DescribeAutoMLJobResult",
"describeAutoMLJob",
"(",
"DescribeAutoMLJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeAutoMLJob",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeAutoMLJobResponse DescribeAutoMLJob(DescribeAutoMLJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAutoMLJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAutoMLJobResponseUnmarshaller.Instance;return Invoke<DescribeAutoMLJobResponse>(re... | train | false |
5,583 | public SelectionRecord(int activeCellRow, int activeCellCol) {field_1_pane = 3; field_2_row_active_cell = activeCellRow;field_3_col_active_cell = activeCellCol;field_4_active_cell_ref_index = 0;field_6_refs = new CellRangeAddress8Bit[] {new CellRangeAddress8Bit(activeCellRow, activeCellRow, activeCellCol, activeCellCol... | [
"public",
"SelectionRecord",
"(",
"int",
"activeCellRow",
",",
"int",
"activeCellCol",
")",
"{",
"field_1_pane",
"=",
"3",
";",
"field_2_row_active_cell",
"=",
"activeCellRow",
";",
"field_3_col_active_cell",
"=",
"activeCellCol",
";",
"field_4_active_cell_ref_index",
"... | public SelectionRecord(int activeCellRow, int activeCellCol){field_1_pane = 3; field_2_row_active_cell = activeCellRow;field_3_col_active_cell = activeCellCol;field_4_ref_active_cell = 0;field_6_refs = new CellRangeAddress8Bit[] {new CellRangeAddress8Bit(activeCellRow, activeCellRow, activeCellCol, activeCellCol),};}
| train | false |
5,584 | public InvalidationBatch(String callerReference) {setCallerReference(callerReference);}
| [
"public",
"InvalidationBatch",
"(",
"String",
"callerReference",
")",
"{",
"setCallerReference",
"(",
"callerReference",
")",
";",
"}"
] | public InvalidationBatch(string callerReference){_callerReference = callerReference;}
| train | false |
5,585 | public int compareTo(IndexCommit commit) {if (getDirectory() != commit.getDirectory()) {throw new UnsupportedOperationException("cannot compare IndexCommits from different Directory instances");}long gen = getGeneration();long comgen = commit.getGeneration();return Long.compare(gen, comgen);}
| [
"public",
"int",
"compareTo",
"(",
"IndexCommit",
"commit",
")",
"{",
"if",
"(",
"getDirectory",
"(",
")",
"!=",
"commit",
".",
"getDirectory",
"(",
")",
")",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
"\"cannot compare IndexCommits from different Di... | public virtual int CompareTo(IndexCommit commit){if (Directory != commit.Directory){throw new System.NotSupportedException("cannot compare IndexCommits from different Directory instances");}long gen = Generation;long comgen = commit.Generation;if (gen < comgen){return -1;}else if (gen > comgen){return 1;}else{return 0;... | train | false |
5,586 | public void serialize(LittleEndianOutput out) {out.writeShort(getOptions());out.writeShort(getTopRow());out.writeShort(getLeftCol());out.writeInt(getHeaderColor());out.writeShort(getPageBreakZoom());out.writeShort(getNormalZoom());out.writeInt(getReserved());}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"getOptions",
"(",
")",
")",
";",
"out",
".",
"writeShort",
"(",
"getTopRow",
"(",
")",
")",
";",
"out",
".",
"writeShort",
"(",
"getLeftCol",
"(",
... | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Options);out1.WriteShort(TopRow);out1.WriteShort(LeftCol);out1.WriteInt(HeaderColor);out1.WriteShort(PageBreakZoom);out1.WriteShort(NormalZoom);out1.WriteInt(Reserved);}
| train | false |
5,587 | public PhoneticFilter create(TokenStream input) {return new PhoneticFilter(input, getEncoder(), inject);}
| [
"public",
"PhoneticFilter",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"PhoneticFilter",
"(",
"input",
",",
"getEncoder",
"(",
")",
",",
"inject",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new PhoneticFilter(input, GetEncoder(), inject);}
| train | false |
5,588 | public StartMatchmakingResult startMatchmaking(StartMatchmakingRequest request) {request = beforeClientExecution(request);return executeStartMatchmaking(request);}
| [
"public",
"StartMatchmakingResult",
"startMatchmaking",
"(",
"StartMatchmakingRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStartMatchmaking",
"(",
"request",
")",
";",
"}"
] | public virtual StartMatchmakingResponse StartMatchmaking(StartMatchmakingRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartMatchmakingRequestMarshaller.Instance;options.ResponseUnmarshaller = StartMatchmakingResponseUnmarshaller.Instance;return Invoke<StartMatchmakingResponse>(request,... | train | true |
5,589 | public CreateReusableDelegationSetResult createReusableDelegationSet(CreateReusableDelegationSetRequest request) {request = beforeClientExecution(request);return executeCreateReusableDelegationSet(request);}
| [
"public",
"CreateReusableDelegationSetResult",
"createReusableDelegationSet",
"(",
"CreateReusableDelegationSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateReusableDelegationSet",
"(",
"request",
")",
... | public virtual CreateReusableDelegationSetResponse CreateReusableDelegationSet(CreateReusableDelegationSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateReusableDelegationSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateReusableDelegationSetResponseUnmarshaller.In... | train | true |
5,590 | public GC setProgressMonitor(ProgressMonitor pm) {this.pm = (pm == null) ? NullProgressMonitor.INSTANCE : pm;return this;}
| [
"public",
"GC",
"setProgressMonitor",
"(",
"ProgressMonitor",
"pm",
")",
"{",
"this",
".",
"pm",
"=",
"(",
"pm",
"==",
"null",
")",
"?",
"NullProgressMonitor",
".",
"INSTANCE",
":",
"pm",
";",
"return",
"this",
";",
"}"
] | public virtual GC SetProgressMonitor(ProgressMonitor pm){this.pm = (pm == null) ? NullProgressMonitor.INSTANCE : pm;return this;}
| train | false |
5,591 | public synchronized String getRegionId() {return regionId;}
| [
"public",
"synchronized",
"String",
"getRegionId",
"(",
")",
"{",
"return",
"regionId",
";",
"}"
] | public string GetRegionId(){return regionId;}
| train | false |
5,592 | public CreateVpcEndpointServiceConfigurationResult createVpcEndpointServiceConfiguration(CreateVpcEndpointServiceConfigurationRequest request) {request = beforeClientExecution(request);return executeCreateVpcEndpointServiceConfiguration(request);}
| [
"public",
"CreateVpcEndpointServiceConfigurationResult",
"createVpcEndpointServiceConfiguration",
"(",
"CreateVpcEndpointServiceConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateVpcEndpointServiceCon... | public virtual CreateVpcEndpointServiceConfigurationResponse CreateVpcEndpointServiceConfiguration(CreateVpcEndpointServiceConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpcEndpointServiceConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVpcE... | train | true |
5,593 | public IndexableField getField(FieldInfo fieldInfo) {fieldNames.add(fieldInfo.name);List<LazyField> values = fields.get(fieldInfo.number);if (null == values) {values = new ArrayList<>();fields.put(fieldInfo.number, values);}LazyField value = new LazyField(fieldInfo.name, fieldInfo.number);values.add(value);synchronized... | [
"public",
"IndexableField",
"getField",
"(",
"FieldInfo",
"fieldInfo",
")",
"{",
"fieldNames",
".",
"add",
"(",
"fieldInfo",
".",
"name",
")",
";",
"List",
"<",
"LazyField",
">",
"values",
"=",
"fields",
".",
"get",
"(",
"fieldInfo",
".",
"number",
")",
... | public virtual IIndexableField GetField(FieldInfo fieldInfo){fieldNames.Add(fieldInfo.Name);IList<LazyField> values;if (!fields.TryGetValue(fieldInfo.Number, out values) || null == values){values = new List<LazyField>();fields[fieldInfo.Number] = values;}LazyField value = new LazyField(this, fieldInfo.Name, fieldInfo.N... | train | false |
5,594 | public static int nextHighestPowerOfTwo(int v) {v--;v |= v >> 1;v |= v >> 2;v |= v >> 4;v |= v >> 8;v |= v >> 16;v++;return v;}
| [
"public",
"static",
"int",
"nextHighestPowerOfTwo",
"(",
"int",
"v",
")",
"{",
"v",
"--",
";",
"v",
"|=",
"v",
">",
">",
"1",
";",
"v",
"|=",
"v",
">",
">",
"2",
";",
"v",
"|=",
"v",
">",
">",
"4",
";",
"v",
"|=",
"v",
">",
">",
"8",
";",... | public static int NextHighestPowerOfTwo(int v){v--;v |= v >> 1;v |= v >> 2;v |= v >> 4;v |= v >> 8;v |= v >> 16;v++;return v;}
| train | true |
5,595 | public boolean contains(int x, int y) {return isValid() &&x >= this.x &&y >= this.y &&x < (this.x + this.w) &&y < (this.y + this.h);}
| [
"public",
"boolean",
"contains",
"(",
"int",
"x",
",",
"int",
"y",
")",
"{",
"return",
"isValid",
"(",
")",
"&&",
"x",
">=",
"this",
".",
"x",
"&&",
"y",
">=",
"this",
".",
"y",
"&&",
"x",
"<",
"(",
"this",
".",
"x",
"+",
"this",
".",
"w",
... | public bool contains(int x, int y){return left < right && top < bottom && x >= left && x < right && y >= top && y <bottom;}
| train | false |
5,596 | public int getFormat() {return PACK_DELTA;}
| [
"public",
"int",
"getFormat",
"(",
")",
"{",
"return",
"PACK_DELTA",
";",
"}"
] | public override int GetFormat(){return PACK_DELTA;}
| train | false |
5,597 | public Tag(String key) {setKey(key);}
| [
"public",
"Tag",
"(",
"String",
"key",
")",
"{",
"setKey",
"(",
"key",
")",
";",
"}"
] | public Tag(string key){_key = key;}
| train | false |
5,598 | public InactivatePhotosRequest() {super("CloudPhoto", "2017-07-11", "InactivatePhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"InactivatePhotosRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"InactivatePhotos\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public InactivatePhotosRequest(): base("CloudPhoto", "2017-07-11", "InactivatePhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
5,599 | public DescribeEventSubscriptionsResult describeEventSubscriptions() {return describeEventSubscriptions(new DescribeEventSubscriptionsRequest());}
| [
"public",
"DescribeEventSubscriptionsResult",
"describeEventSubscriptions",
"(",
")",
"{",
"return",
"describeEventSubscriptions",
"(",
"new",
"DescribeEventSubscriptionsRequest",
"(",
")",
")",
";",
"}"
] | public virtual DescribeEventSubscriptionsResponse DescribeEventSubscriptions(){return DescribeEventSubscriptions(new DescribeEventSubscriptionsRequest());}
| train | false |
5,600 | public short get(int index) {checkIndex(index);return byteBuffer.getShort(index * SizeOf.SHORT);}
| [
"public",
"short",
"get",
"(",
"int",
"index",
")",
"{",
"checkIndex",
"(",
"index",
")",
";",
"return",
"byteBuffer",
".",
"getShort",
"(",
"index",
"*",
"SizeOf",
".",
"SHORT",
")",
";",
"}"
] | public override short get(int index){checkIndex(index);return byteBuffer.getShort(index * libcore.io.SizeOf.SHORT);}
| train | false |
5,601 | public boolean isExportAll() {return exportAll;}
| [
"public",
"boolean",
"isExportAll",
"(",
")",
"{",
"return",
"exportAll",
";",
"}"
] | public virtual bool IsExportAll(){return exportAll;}
| train | false |
5,602 | public static void validateSecondArg(int comparisonOperator, String paramValue) {switch (comparisonOperator) {case BETWEEN:case NOT_BETWEEN:if (paramValue == null) {throw new IllegalArgumentException("expr2 must be supplied for 'between' comparisons");}}}
| [
"public",
"static",
"void",
"validateSecondArg",
"(",
"int",
"comparisonOperator",
",",
"String",
"paramValue",
")",
"{",
"switch",
"(",
"comparisonOperator",
")",
"{",
"case",
"BETWEEN",
":",
"case",
"NOT_BETWEEN",
":",
"if",
"(",
"paramValue",
"==",
"null",
... | public static void ValidateSecondArg(int comparisonOperator, String paramValue){switch (comparisonOperator){case BETWEEN:if (paramValue == null){throw new ArgumentException("expr2 must be supplied for 'between' comparisons");}break;case NOT_BETWEEN:if (paramValue == null){throw new ArgumentException("expr2 must be supp... | train | false |
5,603 | public V next() {V v = nextValue;advance();return v;}
| [
"public",
"V",
"next",
"(",
")",
"{",
"V",
"v",
"=",
"nextValue",
";",
"advance",
"(",
")",
";",
"return",
"v",
";",
"}"
] | public override V next(){return this.nextEntry().value;}
| train | false |
5,604 | public UpdateSchemaResult updateSchema(UpdateSchemaRequest request) {request = beforeClientExecution(request);return executeUpdateSchema(request);}
| [
"public",
"UpdateSchemaResult",
"updateSchema",
"(",
"UpdateSchemaRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateSchema",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateSchemaResponse UpdateSchema(UpdateSchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSchemaResponseUnmarshaller.Instance;return Invoke<UpdateSchemaResponse>(request, options);}
| train | true |
5,605 | public PortugueseMinimalStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"PortugueseMinimalStemFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
... | public PortugueseMinimalStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
| train | false |
5,606 | public SeriesChartGroupIndexRecord(RecordInputStream in) {field_1_chartGroupIndex = in.readShort();}
| [
"public",
"SeriesChartGroupIndexRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_chartGroupIndex",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"}"
] | public SeriesChartGroupIndexRecord(RecordInputStream in1){field_1_chartGroupIndex = in1.ReadShort();}
| train | false |
5,607 | public ValueEval evaluate(int srcCellRow, int srcCellCol) {return ErrorEval.NA;}
| [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcCellRow",
",",
"int",
"srcCellCol",
")",
"{",
"return",
"ErrorEval",
".",
"NA",
";",
"}"
] | public override ValueEval Evaluate(int srcCellRow, int srcCellCol){return ErrorEval.NA;}
| train | false |
5,608 | public E get(int key) {return get(key, null);}
| [
"public",
"E",
"get",
"(",
"int",
"key",
")",
"{",
"return",
"get",
"(",
"key",
",",
"null",
")",
";",
"}"
] | public virtual E get(int key){return get(key, default(E));}
| train | false |
5,609 | public DescribeComponentConfigurationResult describeComponentConfiguration(DescribeComponentConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeComponentConfiguration(request);}
| [
"public",
"DescribeComponentConfigurationResult",
"describeComponentConfiguration",
"(",
"DescribeComponentConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeComponentConfiguration",
"(",
"reque... | public virtual DescribeComponentConfigurationResponse DescribeComponentConfiguration(DescribeComponentConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeComponentConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeComponentConfigurationResponse... | train | false |
5,610 | public CellRangeAddressList copy() {CellRangeAddressList result = new CellRangeAddressList();int nItems = _list.size();for (int k = 0; k < nItems; k++) {CellRangeAddress region = _list.get(k);result.addCellRangeAddress(region.copy());}return result;}
| [
"public",
"CellRangeAddressList",
"copy",
"(",
")",
"{",
"CellRangeAddressList",
"result",
"=",
"new",
"CellRangeAddressList",
"(",
")",
";",
"int",
"nItems",
"=",
"_list",
".",
"size",
"(",
")",
";",
"for",
"(",
"int",
"k",
"=",
"0",
";",
"k",
"<",
"n... | public CellRangeAddressList Copy(){CellRangeAddressList result = new CellRangeAddressList();int nItems = _list.Count;for (int k = 0; k < nItems; k++){CellRangeAddress region = (CellRangeAddress)_list[k];result.AddCellRangeAddress(region.Copy());}return result;}
| train | false |
5,611 | public DescribeClientVpnAuthorizationRulesResult describeClientVpnAuthorizationRules(DescribeClientVpnAuthorizationRulesRequest request) {request = beforeClientExecution(request);return executeDescribeClientVpnAuthorizationRules(request);}
| [
"public",
"DescribeClientVpnAuthorizationRulesResult",
"describeClientVpnAuthorizationRules",
"(",
"DescribeClientVpnAuthorizationRulesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeClientVpnAuthorizationRul... | public virtual DescribeClientVpnAuthorizationRulesResponse DescribeClientVpnAuthorizationRules(DescribeClientVpnAuthorizationRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClientVpnAuthorizationRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClientVpnA... | train | true |
5,612 | public HSSFConditionalFormattingRule getRule(int idx) {CFRuleBase ruleRecord = cfAggregate.getRule(idx);return new HSSFConditionalFormattingRule(sheet, ruleRecord);}
| [
"public",
"HSSFConditionalFormattingRule",
"getRule",
"(",
"int",
"idx",
")",
"{",
"CFRuleBase",
"ruleRecord",
"=",
"cfAggregate",
".",
"getRule",
"(",
"idx",
")",
";",
"return",
"new",
"HSSFConditionalFormattingRule",
"(",
"sheet",
",",
"ruleRecord",
")",
";",
... | public IConditionalFormattingRule GetRule(int idx){CFRuleRecord ruleRecord = cfAggregate.GetRule(idx);return new HSSFConditionalFormattingRule(_workbook, ruleRecord);}
| train | false |
5,613 | public final Ref getAdvertisedRef(String name) {return advertisedRefs.get(name);}
| [
"public",
"final",
"Ref",
"getAdvertisedRef",
"(",
"String",
"name",
")",
"{",
"return",
"advertisedRefs",
".",
"get",
"(",
"name",
")",
";",
"}"
] | public Ref GetAdvertisedRef(string name){return advertisedRefs.Get(name);}
| train | false |
5,614 | public int getType() {return delegate().getType();}
| [
"public",
"int",
"getType",
"(",
")",
"{",
"return",
"delegate",
"(",
")",
".",
"getType",
"(",
")",
";",
"}"
] | public override int GetType(){return type;}
| train | false |
5,615 | public DeleteCustomVerificationEmailTemplateResult deleteCustomVerificationEmailTemplate(DeleteCustomVerificationEmailTemplateRequest request) {request = beforeClientExecution(request);return executeDeleteCustomVerificationEmailTemplate(request);}
| [
"public",
"DeleteCustomVerificationEmailTemplateResult",
"deleteCustomVerificationEmailTemplate",
"(",
"DeleteCustomVerificationEmailTemplateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteCustomVerificationEma... | public virtual DeleteCustomVerificationEmailTemplateResponse DeleteCustomVerificationEmailTemplate(DeleteCustomVerificationEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCustomVerificationEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCust... | train | true |
5,616 | public void setRefLogMessage(String msg) {if (msg == null)disableRefLog();elsedestination.setRefLogMessage(msg, false);}
| [
"public",
"void",
"setRefLogMessage",
"(",
"String",
"msg",
")",
"{",
"if",
"(",
"msg",
"==",
"null",
")",
"disableRefLog",
"(",
")",
";",
"elsedestination",
".",
"setRefLogMessage",
"(",
"msg",
",",
"false",
")",
";",
"}"
] | public virtual void SetRefLogMessage(string msg){if (msg == null){DisableRefLog();}else{destination.SetRefLogMessage(msg, false);}}
| train | false |
5,617 | public CreateVpcEndpointConnectionNotificationResult createVpcEndpointConnectionNotification(CreateVpcEndpointConnectionNotificationRequest request) {request = beforeClientExecution(request);return executeCreateVpcEndpointConnectionNotification(request);}
| [
"public",
"CreateVpcEndpointConnectionNotificationResult",
"createVpcEndpointConnectionNotification",
"(",
"CreateVpcEndpointConnectionNotificationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateVpcEndpointConn... | public virtual CreateVpcEndpointConnectionNotificationResponse CreateVpcEndpointConnectionNotification(CreateVpcEndpointConnectionNotificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpcEndpointConnectionNotificationRequestMarshaller.Instance;options.ResponseUnmarshaller = Cr... | train | true |
5,618 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {int rnum;if (arg0 instanceof AreaEval) {rnum = ((AreaEval) arg0).getFirstColumn();} else if (arg0 instanceof RefEval) {rnum = ((RefEval) arg0).getColumn();} else {return ErrorEval.VALUE_INVALID;}return new NumberEval(rnum + 1);}
| [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"arg0",
")",
"{",
"int",
"rnum",
";",
"if",
"(",
"arg0",
"instanceof",
"AreaEval",
")",
"{",
"rnum",
"=",
"(",
"(",
"AreaEval",
")",
"arg0",
")"... | public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){int rnum;if (arg0 is AreaEval){rnum = ((AreaEval)arg0).FirstColumn;}else if (arg0 is RefEval){rnum = ((RefEval)arg0).Column;}else{return ErrorEval.VALUE_INVALID;}return new NumberEval(rnum + 1);}
| train | false |
5,619 | public CompleteMultipartUploadRequest(String accountId, String vaultName, String uploadId, String archiveSize, String checksum) {setAccountId(accountId);setVaultName(vaultName);setUploadId(uploadId);setArchiveSize(archiveSize);setChecksum(checksum);}
| [
"public",
"CompleteMultipartUploadRequest",
"(",
"String",
"accountId",
",",
"String",
"vaultName",
",",
"String",
"uploadId",
",",
"String",
"archiveSize",
",",
"String",
"checksum",
")",
"{",
"setAccountId",
"(",
"accountId",
")",
";",
"setVaultName",
"(",
"vaul... | public CompleteMultipartUploadRequest(string accountId, string vaultName, string uploadId, string archiveSize, string checksum){_accountId = accountId;_vaultName = vaultName;_uploadId = uploadId;_archiveSize = archiveSize;_checksum = checksum;}
| train | false |
5,620 | public void clearRect(int x, int y, int width, int height){Color color = foreground;setColor(background);fillRect(x,y,width,height);setColor(color);}
| [
"public",
"void",
"clearRect",
"(",
"int",
"x",
",",
"int",
"y",
",",
"int",
"width",
",",
"int",
"height",
")",
"{",
"Color",
"color",
"=",
"foreground",
";",
"setColor",
"(",
"background",
")",
";",
"fillRect",
"(",
"x",
",",
"y",
",",
"width",
"... | public void ClearRect(int x, int y, int width, int height){Color color = foreground;SetColor(background);FillRect(x, y, width, height);SetColor(color);}
| train | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.