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 |
|---|---|---|---|---|---|
9,240 | public void print(int i) {print(String.valueOf(i));}
| [
"public",
"void",
"print",
"(",
"int",
"i",
")",
"{",
"print",
"(",
"String",
".",
"valueOf",
"(",
"i",
")",
")",
";",
"}"
] | public virtual void print(int i){print(i.ToString());}
| train | false |
9,242 | public CreateAdditionalAssignmentsForHITResult createAdditionalAssignmentsForHIT(CreateAdditionalAssignmentsForHITRequest request) {request = beforeClientExecution(request);return executeCreateAdditionalAssignmentsForHIT(request);}
| [
"public",
"CreateAdditionalAssignmentsForHITResult",
"createAdditionalAssignmentsForHIT",
"(",
"CreateAdditionalAssignmentsForHITRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateAdditionalAssignmentsForHIT",
"... | public virtual CreateAdditionalAssignmentsForHITResponse CreateAdditionalAssignmentsForHIT(CreateAdditionalAssignmentsForHITRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAdditionalAssignmentsForHITRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAdditionalAssignment... | train | true |
9,243 | public DeleteEventRequest() {super("CloudPhoto", "2017-07-11", "DeleteEvent", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"DeleteEventRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"DeleteEvent\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public DeleteEventRequest(): base("CloudPhoto", "2017-07-11", "DeleteEvent", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
9,244 | public long getSize() {return size;}
| [
"public",
"long",
"getSize",
"(",
")",
"{",
"return",
"size",
";",
"}"
] | public override long GetSize(){return size;}
| train | false |
9,245 | public void undeprecateWorkflowType(UndeprecateWorkflowTypeRequest request) {request = beforeClientExecution(request);executeUndeprecateWorkflowType(request);}
| [
"public",
"void",
"undeprecateWorkflowType",
"(",
"UndeprecateWorkflowTypeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"executeUndeprecateWorkflowType",
"(",
"request",
")",
";",
"}"
] | public virtual UndeprecateWorkflowTypeResponse UndeprecateWorkflowType(UndeprecateWorkflowTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = UndeprecateWorkflowTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = UndeprecateWorkflowTypeResponseUnmarshaller.Instance;return Invoke... | train | false |
9,246 | public boolean removeValue(final int o){boolean rval = false;for (int j = 0; !rval && (j < _limit); j++){if (o == _array[ j ]){if (j+1 < _limit) {System.arraycopy(_array, j + 1, _array, j, _limit - j);}_limit--;rval = true;}}return rval;}
| [
"public",
"boolean",
"removeValue",
"(",
"final",
"int",
"o",
")",
"{",
"boolean",
"rval",
"=",
"false",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"!",
"rval",
"&&",
"(",
"j",
"<",
"_limit",
")",
";",
"j",
"++",
")",
"{",
"if",
"(",
"o",
"=... | public bool RemoveValue(int o){bool rval = false;for (int j = 0; !rval && (j < _limit); j++){if (o == _array[j]){if (j + 1 < _limit){Array.Copy(_array, j + 1, _array, j, _limit - j);}_limit--;rval = true;}}return rval;}
| train | false |
9,247 | public String toString() {return new String(buf, 0, size());}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"new",
"String",
"(",
"buf",
",",
"0",
",",
"size",
"(",
")",
")",
";",
"}"
] | public override string ToString(){return new string(m_buf, 0, Length);}
| train | false |
9,248 | public void setDirCacheIterator(TreeWalk walk, int treeId) {state.walk = walk;state.dirCacheTree = treeId;}
| [
"public",
"void",
"setDirCacheIterator",
"(",
"TreeWalk",
"walk",
",",
"int",
"treeId",
")",
"{",
"state",
".",
"walk",
"=",
"walk",
";",
"state",
".",
"dirCacheTree",
"=",
"treeId",
";",
"}"
] | public virtual void SetDirCacheIterator(TreeWalk walk, int treeId){state.walk = walk;state.dirCacheTree = treeId;}
| train | false |
9,249 | public DescribeOrganizationResult describeOrganization(DescribeOrganizationRequest request) {request = beforeClientExecution(request);return executeDescribeOrganization(request);}
| [
"public",
"DescribeOrganizationResult",
"describeOrganization",
"(",
"DescribeOrganizationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeOrganization",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeOrganizationResponse DescribeOrganization(DescribeOrganizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeOrganizationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeOrganizationResponseUnmarshaller.Instance;return Invoke<DescribeOrgani... | train | true |
9,250 | public CharsRef(int capacity) {chars = new char[capacity];}
| [
"public",
"CharsRef",
"(",
"int",
"capacity",
")",
"{",
"chars",
"=",
"new",
"char",
"[",
"capacity",
"]",
";",
"}"
] | public CharsRef(int capacity){chars = new char[capacity];}
| train | false |
9,251 | public RebootInstanceResult rebootInstance(RebootInstanceRequest request) {request = beforeClientExecution(request);return executeRebootInstance(request);}
| [
"public",
"RebootInstanceResult",
"rebootInstance",
"(",
"RebootInstanceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRebootInstance",
"(",
"request",
")",
";",
"}"
] | public virtual RebootInstanceResponse RebootInstance(RebootInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebootInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = RebootInstanceResponseUnmarshaller.Instance;return Invoke<RebootInstanceResponse>(request, options);}
| train | true |
9,253 | public long ramBytesUsed() {long ramBytesUsed = BASE_RAM_BYTES_USED;ramBytesUsed += fields.size() * 2L * RamUsageEstimator.NUM_BYTES_OBJECT_REF;ramBytesUsed += formats.size() * 2L * RamUsageEstimator.NUM_BYTES_OBJECT_REF;for(Map.Entry<String,FieldsProducer> entry: formats.entrySet()) {ramBytesUsed += entry.getValue().r... | [
"public",
"long",
"ramBytesUsed",
"(",
")",
"{",
"long",
"ramBytesUsed",
"=",
"BASE_RAM_BYTES_USED",
";",
"ramBytesUsed",
"+=",
"fields",
".",
"size",
"(",
")",
"*",
"2L",
"*",
"RamUsageEstimator",
".",
"NUM_BYTES_OBJECT_REF",
";",
"ramBytesUsed",
"+=",
"formats... | public override long RamBytesUsed(){long size = 0;foreach (KeyValuePair<string, DocValuesProducer> entry in formats){size += (entry.Key.Length * RamUsageEstimator.NUM_BYTES_CHAR)+ entry.Value.RamBytesUsed();}return size;}
| train | false |
9,254 | public ExportApiResult exportApi(ExportApiRequest request) {request = beforeClientExecution(request);return executeExportApi(request);}
| [
"public",
"ExportApiResult",
"exportApi",
"(",
"ExportApiRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeExportApi",
"(",
"request",
")",
";",
"}"
] | public virtual ExportApiResponse ExportApi(ExportApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExportApiRequestMarshaller.Instance;options.ResponseUnmarshaller = ExportApiResponseUnmarshaller.Instance;return Invoke<ExportApiResponse>(request, options);}
| train | false |
9,255 | public void setExpectedOldObjectId(AnyObjectId id) {expValue = id != null ? id.toObjectId() : null;}
| [
"public",
"void",
"setExpectedOldObjectId",
"(",
"AnyObjectId",
"id",
")",
"{",
"expValue",
"=",
"id",
"!=",
"null",
"?",
"id",
".",
"toObjectId",
"(",
")",
":",
"null",
";",
"}"
] | public virtual void SetExpectedOldObjectId(AnyObjectId id){expValue = id != null ? id.ToObjectId() : null;}
| train | false |
9,256 | public void skipBytes(long count) {pos += count;}
| [
"public",
"void",
"skipBytes",
"(",
"long",
"count",
")",
"{",
"pos",
"+=",
"count",
";",
"}"
] | public override void SkipBytes(int count){pos += count;}
| train | false |
9,258 | public boolean isPopupShowing() {return mPopup.isShowing();}
| [
"public",
"boolean",
"isPopupShowing",
"(",
")",
"{",
"return",
"mPopup",
".",
"isShowing",
"(",
")",
";",
"}"
] | public virtual bool isPopupShowing(){return mPopup.isShowing();}
| train | false |
9,259 | public DBClusterSnapshot deleteDBClusterSnapshot(DeleteDBClusterSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteDBClusterSnapshot(request);}
| [
"public",
"DBClusterSnapshot",
"deleteDBClusterSnapshot",
"(",
"DeleteDBClusterSnapshotRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDBClusterSnapshot",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteDBClusterSnapshotResponse DeleteDBClusterSnapshot(DeleteDBClusterSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBClusterSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBClusterSnapshotResponseUnmarshaller.Instance;return Invoke... | train | true |
9,260 | public Filter(String name, java.util.List<String> values) {setName(name);setValues(values);}
| [
"public",
"Filter",
"(",
"String",
"name",
",",
"java",
".",
"util",
".",
"List",
"<",
"String",
">",
"values",
")",
"{",
"setName",
"(",
"name",
")",
";",
"setValues",
"(",
"values",
")",
";",
"}"
] | public Filter(string name, List<string> values){_name = name;_values = values;}
| train | false |
9,261 | public SearchRoomsResult searchRooms(SearchRoomsRequest request) {request = beforeClientExecution(request);return executeSearchRooms(request);}
| [
"public",
"SearchRoomsResult",
"searchRooms",
"(",
"SearchRoomsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSearchRooms",
"(",
"request",
")",
";",
"}"
] | public virtual SearchRoomsResponse SearchRooms(SearchRoomsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchRoomsRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchRoomsResponseUnmarshaller.Instance;return Invoke<SearchRoomsResponse>(request, options);}
| train | true |
9,262 | public int read(byte[] buf, int off, int cnt) throws IOException {try {beginRead();return super.read(buf, off, cnt);} catch (InterruptedIOException e) {throw readTimedOut(e);} finally {endRead();}}
| [
"public",
"int",
"read",
"(",
"byte",
"[",
"]",
"buf",
",",
"int",
"off",
",",
"int",
"cnt",
")",
"throws",
"IOException",
"{",
"try",
"{",
"beginRead",
"(",
")",
";",
"return",
"super",
".",
"read",
"(",
"buf",
",",
"off",
",",
"cnt",
")",
";",
... | public override int Read(byte[] buf, int off, int cnt){try{BeginRead();return base.Read(buf, off, cnt);}catch (ThreadInterruptedException){throw ReadTimedOut();}finally{EndRead();}}
| train | false |
9,263 | public DeleteLoadBalancerTlsCertificateResult deleteLoadBalancerTlsCertificate(DeleteLoadBalancerTlsCertificateRequest request) {request = beforeClientExecution(request);return executeDeleteLoadBalancerTlsCertificate(request);}
| [
"public",
"DeleteLoadBalancerTlsCertificateResult",
"deleteLoadBalancerTlsCertificate",
"(",
"DeleteLoadBalancerTlsCertificateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteLoadBalancerTlsCertificate",
"(",
... | public virtual DeleteLoadBalancerTlsCertificateResponse DeleteLoadBalancerTlsCertificate(DeleteLoadBalancerTlsCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLoadBalancerTlsCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLoadBalancerTlsCertifica... | train | true |
9,264 | public static MessageDigest newMessageDigest() {try {return MessageDigest.getInstance(HASH_FUNCTION);} catch (NoSuchAlgorithmException nsae) {throw new RuntimeException(MessageFormat.format(JGitText.get().requiredHashFunctionNotAvailable, HASH_FUNCTION), nsae);}}
| [
"public",
"static",
"MessageDigest",
"newMessageDigest",
"(",
")",
"{",
"try",
"{",
"return",
"MessageDigest",
".",
"getInstance",
"(",
"HASH_FUNCTION",
")",
";",
"}",
"catch",
"(",
"NoSuchAlgorithmException",
"nsae",
")",
"{",
"throw",
"new",
"RuntimeException",
... | public static MessageDigest NewMessageDigest(){try{return MessageDigest.GetInstance(HASH_FUNCTION);}catch (NoSuchAlgorithmException nsae){throw new RuntimeException(MessageFormat.Format(JGitText.Get().requiredHashFunctionNotAvailable, HASH_FUNCTION), nsae);}}
| train | false |
9,265 | public IfFunction(ValueSource ifSource, ValueSource trueSource, ValueSource falseSource) {this.ifSource = ifSource;this.trueSource = trueSource;this.falseSource = falseSource;}
| [
"public",
"IfFunction",
"(",
"ValueSource",
"ifSource",
",",
"ValueSource",
"trueSource",
",",
"ValueSource",
"falseSource",
")",
"{",
"this",
".",
"ifSource",
"=",
"ifSource",
";",
"this",
".",
"trueSource",
"=",
"trueSource",
";",
"this",
".",
"falseSource",
... | public IfFunction(ValueSource ifSource, ValueSource trueSource, ValueSource falseSource){this.ifSource = ifSource;this.trueSource = trueSource;this.falseSource = falseSource;}
| train | false |
9,266 | public static double npv(double r, double[] cfs) {double npv = 0;double r1 = r + 1;double trate = r1;for (int i=0, iSize=cfs.length; i<iSize; i++) {npv += cfs[i] / trate;trate *= r1;}return npv;}
| [
"public",
"static",
"double",
"npv",
"(",
"double",
"r",
",",
"double",
"[",
"]",
"cfs",
")",
"{",
"double",
"npv",
"=",
"0",
";",
"double",
"r1",
"=",
"r",
"+",
"1",
";",
"double",
"trate",
"=",
"r1",
";",
"for",
"(",
"int",
"i",
"=",
"0",
"... | public static double npv(double r, double[] cfs){double npv = 0;double r1 = r + 1;double trate = r1;for (int i = 0, iSize = cfs.Length; i < iSize; i++){npv += cfs[i] / trate;trate *= r1;}return npv;}
| train | false |
9,267 | public StandardQueryTreeBuilder() {setBuilder(GroupQueryNode.class, new GroupQueryNodeBuilder());setBuilder(FieldQueryNode.class, new FieldQueryNodeBuilder());setBuilder(BooleanQueryNode.class, new BooleanQueryNodeBuilder());setBuilder(FuzzyQueryNode.class, new FuzzyQueryNodeBuilder());setBuilder(PointQueryNode.class, ... | [
"public",
"StandardQueryTreeBuilder",
"(",
")",
"{",
"setBuilder",
"(",
"GroupQueryNode",
".",
"class",
",",
"new",
"GroupQueryNodeBuilder",
"(",
")",
")",
";",
"setBuilder",
"(",
"FieldQueryNode",
".",
"class",
",",
"new",
"FieldQueryNodeBuilder",
"(",
")",
")"... | public StandardQueryTreeBuilder(){SetBuilder(typeof(GroupQueryNode), new GroupQueryNodeBuilder());SetBuilder(typeof(FieldQueryNode), new FieldQueryNodeBuilder());SetBuilder(typeof(BooleanQueryNode), new BooleanQueryNodeBuilder());SetBuilder(typeof(FuzzyQueryNode), new FuzzyQueryNodeBuilder());SetBuilder(typeof(NumericQ... | train | false |
9,268 | public StringBuilder append(double d) {RealToString.getInstance().appendDouble(this, d);return this;}
| [
"public",
"StringBuilder",
"append",
"(",
"double",
"d",
")",
"{",
"RealToString",
".",
"getInstance",
"(",
")",
".",
"appendDouble",
"(",
"this",
",",
"d",
")",
";",
"return",
"this",
";",
"}"
] | public java.lang.StringBuilder append(bool b){append0(b ? "true" : "false");return this;}
| train | false |
9,269 | public Tag(String key, String value) {setKey(key);setValue(value);}
| [
"public",
"Tag",
"(",
"String",
"key",
",",
"String",
"value",
")",
"{",
"setKey",
"(",
"key",
")",
";",
"setValue",
"(",
"value",
")",
";",
"}"
] | public Tag(string key, string value){_key = key;_value = value;}
| train | false |
9,270 | public FederatedUser(String federatedUserId, String arn) {setFederatedUserId(federatedUserId);setArn(arn);}
| [
"public",
"FederatedUser",
"(",
"String",
"federatedUserId",
",",
"String",
"arn",
")",
"{",
"setFederatedUserId",
"(",
"federatedUserId",
")",
";",
"setArn",
"(",
"arn",
")",
";",
"}"
] | public FederatedUser(string federatedUserId, string arn){_federatedUserId = federatedUserId;_arn = arn;}
| train | false |
9,271 | public QueryRescorer(Query query) {this.query = query;}
| [
"public",
"QueryRescorer",
"(",
"Query",
"query",
")",
"{",
"this",
".",
"query",
"=",
"query",
";",
"}"
] | public QueryRescorer(Query query){this.query = query;}
| train | false |
9,272 | public void setRule(int idx, HSSFConditionalFormattingRule cfRule) {cfAggregate.setRule(idx, cfRule.getCfRuleRecord());}
| [
"public",
"void",
"setRule",
"(",
"int",
"idx",
",",
"HSSFConditionalFormattingRule",
"cfRule",
")",
"{",
"cfAggregate",
".",
"setRule",
"(",
"idx",
",",
"cfRule",
".",
"getCfRuleRecord",
"(",
")",
")",
";",
"}"
] | public void SetRule(int idx, HSSFConditionalFormattingRule cfRule){cfAggregate.SetRule(idx, cfRule.CfRuleRecord);}
| train | false |
9,273 | public RenameDetector getRenameDetector() {return renameDetector;}
| [
"public",
"RenameDetector",
"getRenameDetector",
"(",
")",
"{",
"return",
"renameDetector",
";",
"}"
] | public virtual RenameDetector GetRenameDetector(){return renameDetector;}
| train | false |
9,274 | public UpdateTemplatePermissionsResult updateTemplatePermissions(UpdateTemplatePermissionsRequest request) {request = beforeClientExecution(request);return executeUpdateTemplatePermissions(request);}
| [
"public",
"UpdateTemplatePermissionsResult",
"updateTemplatePermissions",
"(",
"UpdateTemplatePermissionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateTemplatePermissions",
"(",
"request",
")",
";",
... | public virtual UpdateTemplatePermissionsResponse UpdateTemplatePermissions(UpdateTemplatePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTemplatePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTemplatePermissionsResponseUnmarshaller.Instance;ret... | train | false |
9,275 | public DoubleBuffer put(int index, double c) {checkIndex(index);byteBuffer.putDouble(index * SizeOf.DOUBLE, c);return this;}
| [
"public",
"DoubleBuffer",
"put",
"(",
"int",
"index",
",",
"double",
"c",
")",
"{",
"checkIndex",
"(",
"index",
")",
";",
"byteBuffer",
".",
"putDouble",
"(",
"index",
"*",
"SizeOf",
".",
"DOUBLE",
",",
"c",
")",
";",
"return",
"this",
";",
"}"
] | public override java.nio.DoubleBuffer put(int index, double c){checkIndex(index);byteBuffer.putDouble(index * libcore.io.SizeOf.DOUBLE, c);return this;}
| train | false |
9,276 | public ResetInstanceAttributeResult resetInstanceAttribute(ResetInstanceAttributeRequest request) {request = beforeClientExecution(request);return executeResetInstanceAttribute(request);}
| [
"public",
"ResetInstanceAttributeResult",
"resetInstanceAttribute",
"(",
"ResetInstanceAttributeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeResetInstanceAttribute",
"(",
"request",
")",
";",
"}"
] | public virtual ResetInstanceAttributeResponse ResetInstanceAttribute(ResetInstanceAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetInstanceAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetInstanceAttributeResponseUnmarshaller.Instance;return Invoke<Rese... | train | true |
9,277 | public DirectoryEntry getDirectory() throws IOException {EmbeddedObjectRefSubRecord subRecord = findObjectRecord();int streamId = subRecord.getStreamId().intValue();String streamName = "MBD" + HexDump.toHex(streamId);Entry entry = _root.getEntry(streamName);if (entry instanceof DirectoryEntry) {return (DirectoryEntry) ... | [
"public",
"DirectoryEntry",
"getDirectory",
"(",
")",
"throws",
"IOException",
"{",
"EmbeddedObjectRefSubRecord",
"subRecord",
"=",
"findObjectRecord",
"(",
")",
";",
"int",
"streamId",
"=",
"subRecord",
".",
"getStreamId",
"(",
")",
".",
"intValue",
"(",
")",
"... | public DirectoryEntry GetDirectory(){EmbeddedObjectRefSubRecord subRecord = FindObjectRecord();int? streamId = ((EmbeddedObjectRefSubRecord)subRecord).StreamId;String streamName = "MBD" + HexDump.ToHex((int)streamId);Entry entry = _root.GetEntry(streamName);if (entry is DirectoryEntry){return (DirectoryEntry)entry;}els... | train | false |
9,278 | public HashMap(int capacity) {if (capacity < 0) {throw new IllegalArgumentException("Capacity: " + capacity);}if (capacity == 0) {@SuppressWarnings("unchecked")HashMapEntry<K, V>[] tab = (HashMapEntry<K, V>[]) EMPTY_TABLE;table = tab;threshold = -1; return;}if (capacity < MINIMUM_CAPACITY) {capacity = MINIMUM_CAPACITY;... | [
"public",
"HashMap",
"(",
"int",
"capacity",
")",
"{",
"if",
"(",
"capacity",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Capacity: \"",
"+",
"capacity",
")",
";",
"}",
"if",
"(",
"capacity",
"==",
"0",
")",
"{",
"@",
"Suppr... | public HashMap(int capacity){if (capacity < 0){throw new System.ArgumentException("Capacity: " + capacity);}if (capacity == 0){java.util.HashMap.HashMapEntry<K, V>[] tab = (java.util.HashMap.HashMapEntry<K, V>[])EMPTY_TABLE;table = tab;threshold = -1;return;}if (capacity < java.util.HashMap.MINIMUM_CAPACITY){capacity =... | train | false |
9,279 | public int getCachedErrorValue() {return specialCachedValue.getErrorValue();}
| [
"public",
"int",
"getCachedErrorValue",
"(",
")",
"{",
"return",
"specialCachedValue",
".",
"getErrorValue",
"(",
")",
";",
"}"
] | public int GetCachedErrorValue(){return specialCachedValue.GetErrorValue();}
| train | false |
9,280 | public void add(BytesRef utf8) throws IOException {if (writer == null) {throw new IllegalStateException();}writer.write(utf8);}
| [
"public",
"void",
"add",
"(",
"BytesRef",
"utf8",
")",
"throws",
"IOException",
"{",
"if",
"(",
"writer",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
")",
";",
"}",
"writer",
".",
"write",
"(",
"utf8",
")",
";",
"}"
] | public virtual void Add(BytesRef utf8){if (writer == null){throw new InvalidOperationException();}writer.Write(utf8);}
| train | false |
9,281 | public UpdateHITReviewStatusResult updateHITReviewStatus(UpdateHITReviewStatusRequest request) {request = beforeClientExecution(request);return executeUpdateHITReviewStatus(request);}
| [
"public",
"UpdateHITReviewStatusResult",
"updateHITReviewStatus",
"(",
"UpdateHITReviewStatusRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateHITReviewStatus",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateHITReviewStatusResponse UpdateHITReviewStatus(UpdateHITReviewStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateHITReviewStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateHITReviewStatusResponseUnmarshaller.Instance;return Invoke<UpdateHIT... | train | true |
9,282 | public ScandinavianNormalizationFilterFactory(Map<String, String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"ScandinavianNormalizationFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"("... | public ScandinavianNormalizationFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
| train | false |
9,283 | public DBSnapshotAttributesResult describeDBSnapshotAttributes(DescribeDBSnapshotAttributesRequest request) {request = beforeClientExecution(request);return executeDescribeDBSnapshotAttributes(request);}
| [
"public",
"DBSnapshotAttributesResult",
"describeDBSnapshotAttributes",
"(",
"DescribeDBSnapshotAttributesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeDBSnapshotAttributes",
"(",
"request",
")",
";... | public virtual DescribeDBSnapshotAttributesResponse DescribeDBSnapshotAttributes(DescribeDBSnapshotAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBSnapshotAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBSnapshotAttributesResponseUnmarshall... | train | true |
9,284 | public GetNamespaceAuthorizationListRequest() {super("cr", "2016-06-07", "GetNamespaceAuthorizationList", "cr");setUriPattern("/namespace/[Namespace]/authorizations");setMethod(MethodType.GET);}
| [
"public",
"GetNamespaceAuthorizationListRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"GetNamespaceAuthorizationList\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/namespace/[Namespace]/authorizations\"",
")",
";",
"setMethod",
"("... | public GetNamespaceAuthorizationListRequest(): base("cr", "2016-06-07", "GetNamespaceAuthorizationList", "cr", "openAPI"){UriPattern = "/namespace/[Namespace]/authorizations";Method = MethodType.GET;}
| train | false |
9,285 | public LowFreqTerm(int[] postings, byte[] payloads, int docFreq, int totalTermFreq) {this.postings = postings;this.payloads = payloads;this.docFreq = docFreq;this.totalTermFreq = totalTermFreq;}
| [
"public",
"LowFreqTerm",
"(",
"int",
"[",
"]",
"postings",
",",
"byte",
"[",
"]",
"payloads",
",",
"int",
"docFreq",
",",
"int",
"totalTermFreq",
")",
"{",
"this",
".",
"postings",
"=",
"postings",
";",
"this",
".",
"payloads",
"=",
"payloads",
";",
"t... | public LowFreqTerm(int[] postings, byte[] payloads, int docFreq, int totalTermFreq){this.postings = postings;this.payloads = payloads;this.docFreq = docFreq;this.totalTermFreq = totalTermFreq;}
| train | false |
9,286 | public void reset() {state = null;consumed = true;keepOrig = false;matched = false;}
| [
"public",
"void",
"reset",
"(",
")",
"{",
"state",
"=",
"null",
";",
"consumed",
"=",
"true",
";",
"keepOrig",
"=",
"false",
";",
"matched",
"=",
"false",
";",
"}"
] | public void Reset(){state = null;consumed = true;keepOrig = false;matched = false;}
| train | false |
9,288 | public static int entrySize(FileMode mode, int nameLen) {return mode.copyToLength() + nameLen + OBJECT_ID_LENGTH + 2;}
| [
"public",
"static",
"int",
"entrySize",
"(",
"FileMode",
"mode",
",",
"int",
"nameLen",
")",
"{",
"return",
"mode",
".",
"copyToLength",
"(",
")",
"+",
"nameLen",
"+",
"OBJECT_ID_LENGTH",
"+",
"2",
";",
"}"
] | public static int EntrySize(FileMode mode, int nameLen){return mode.CopyToLength() + nameLen + Constants.OBJECT_ID_LENGTH + 2;}
| train | false |
9,290 | public EventSubscription modifyEventSubscription(ModifyEventSubscriptionRequest request) {request = beforeClientExecution(request);return executeModifyEventSubscription(request);}
| [
"public",
"EventSubscription",
"modifyEventSubscription",
"(",
"ModifyEventSubscriptionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyEventSubscription",
"(",
"request",
")",
";",
"}"
] | public virtual ModifyEventSubscriptionResponse ModifyEventSubscription(ModifyEventSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyEventSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyEventSubscriptionResponseUnmarshaller.Instance;return Invoke... | train | true |
9,291 | public NormalizeCharMap build() {final FST<CharsRef> map;try {final Outputs<CharsRef> outputs = CharSequenceOutputs.getSingleton();final FSTCompiler<CharsRef> fstCompiler = new FSTCompiler<>(FST.INPUT_TYPE.BYTE2, outputs);final IntsRefBuilder scratch = new IntsRefBuilder();for(Map.Entry<String,String> ent : pendingPair... | [
"public",
"NormalizeCharMap",
"build",
"(",
")",
"{",
"final",
"FST",
"<",
"CharsRef",
">",
"map",
";",
"try",
"{",
"final",
"Outputs",
"<",
"CharsRef",
">",
"outputs",
"=",
"CharSequenceOutputs",
".",
"getSingleton",
"(",
")",
";",
"final",
"FSTCompiler",
... | public virtual NormalizeCharMap Build(){FST<CharsRef> map;try{Outputs<CharsRef> outputs = CharSequenceOutputs.Singleton;Builder<CharsRef> builder = new Builder<CharsRef>(FST.INPUT_TYPE.BYTE2, outputs);Int32sRef scratch = new Int32sRef();foreach (var ent in pendingPairs){builder.Add(Lucene.Net.Util.Fst.Util.ToUTF16(ent.... | train | false |
9,292 | public BootstrapActions(String bucket) {this.bucket = bucket;}
| [
"public",
"BootstrapActions",
"(",
"String",
"bucket",
")",
"{",
"this",
".",
"bucket",
"=",
"bucket",
";",
"}"
] | public BootstrapActions(string bucket){this.bucket = bucket;}
| train | false |
9,293 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {ValueEval ve;try {ve = OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {ve = e.getErrorEval();}return BoolEval.valueOf(evaluate(ve));}
| [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"arg0",
")",
"{",
"ValueEval",
"ve",
";",
"try",
"{",
"ve",
"=",
"OperandResolver",
".",
"getSingleValue",
"(",
"arg0",
",",
"srcRowIndex",
",",
"sr... | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){ValueEval ve;try{ve = OperandResolver.GetSingleValue(arg0, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){ve = e.GetErrorEval();}return BoolEval.ValueOf(Evaluate(ve));}
| train | false |
9,294 | public static IndexDeletionPolicy getIndexDeletionPolicy(Config config) {String deletionPolicyName = config.get("deletion.policy", "org.apache.lucene.index.KeepOnlyLastCommitDeletionPolicy");if (deletionPolicyName.equals(NoDeletionPolicy.class.getName())) {return NoDeletionPolicy.INSTANCE;} else {try {return Class.forN... | [
"public",
"static",
"IndexDeletionPolicy",
"getIndexDeletionPolicy",
"(",
"Config",
"config",
")",
"{",
"String",
"deletionPolicyName",
"=",
"config",
".",
"get",
"(",
"\"deletion.policy\"",
",",
"\"org.apache.lucene.index.KeepOnlyLastCommitDeletionPolicy\"",
")",
";",
"if"... | public static IndexDeletionPolicy GetIndexDeletionPolicy(Config config){string deletionPolicyName = config.Get("deletion.policy", "Lucene.Net.Index.KeepOnlyLastCommitDeletionPolicy, Lucene.Net");Type deletionPolicyType = Type.GetType(deletionPolicyName);if (deletionPolicyType == null){throw new Exception("Unrecognized ... | train | false |
9,295 | public FontRecord(RecordInputStream in) {field_1_font_height = in.readShort();field_2_attributes = in.readShort();field_3_color_palette_index = in.readShort();field_4_bold_weight = in.readShort();field_5_super_sub_script = in.readShort();field_6_underline = in.readByte();field_7_fa... | [
"public",
"FontRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_font_height",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_2_attributes",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_3_color_palette_index",
"=",
"in",
".",
"readShort",
"... | public FontRecord(RecordInputStream in1){field_1_font_height = in1.ReadShort();field_2_attributes = in1.ReadShort();field_3_color_palette_index = in1.ReadShort();field_4_bold_weight = in1.ReadShort();field_5_base_sub_script = in1.ReadShort();field_6_underline = (byte)in1.ReadByte();field_7_family = (byte)in1.ReadByte()... | train | false |
9,296 | public String getRefLogMessage() {return destination.getRefLogMessage();}
| [
"public",
"String",
"getRefLogMessage",
"(",
")",
"{",
"return",
"destination",
".",
"getRefLogMessage",
"(",
")",
";",
"}"
] | public virtual string GetRefLogMessage(){return destination.GetRefLogMessage();}
| train | false |
9,297 | public String toString() {return subSlice.toString()+":"+terms;}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"subSlice",
".",
"toString",
"(",
")",
"+",
"\":\"",
"+",
"terms",
";",
"}"
] | public override string ToString(){return SubSlice.ToString() + ":" + Terms;}
| train | false |
9,298 | public IntBuffer asReadOnlyBuffer() {return ReadOnlyIntArrayBuffer.copy(this, mark);}
| [
"public",
"IntBuffer",
"asReadOnlyBuffer",
"(",
")",
"{",
"return",
"ReadOnlyIntArrayBuffer",
".",
"copy",
"(",
"this",
",",
"mark",
")",
";",
"}"
] | public override java.nio.IntBuffer asReadOnlyBuffer(){return java.nio.ReadOnlyIntArrayBuffer.copy(this, _mark);}
| train | false |
9,299 | public void clear() {super.clear();}
| [
"public",
"void",
"clear",
"(",
")",
"{",
"super",
".",
"clear",
"(",
")",
";",
"}"
] | protected internal override void Clear(){base.Clear();}
| train | false |
9,301 | public ByteBuffer next() {if(nextBlock == POIFSConstants.END_OF_CHAIN) {throw new IndexOutOfBoundsException("Can't read past the end of the stream");}try {loopDetector.claim(nextBlock);ByteBuffer data = blockStore.getBlockAt(nextBlock);nextBlock = blockStore.getNextBlock(nextBlock);return data;} catch(IOException e) {t... | [
"public",
"ByteBuffer",
"next",
"(",
")",
"{",
"if",
"(",
"nextBlock",
"==",
"POIFSConstants",
".",
"END_OF_CHAIN",
")",
"{",
"throw",
"new",
"IndexOutOfBoundsException",
"(",
"\"Can't read past the end of the stream\"",
")",
";",
"}",
"try",
"{",
"loopDetector",
... | public ByteBuffer Next(){if (nextBlock == POIFSConstants.END_OF_CHAIN){throw new IndexOutOfRangeException("Can't read past the end of the stream");}try{loopDetector.Claim(nextBlock);ByteBuffer data = pStream.blockStore.GetBlockAt(nextBlock);nextBlock = pStream.blockStore.GetNextBlock(nextBlock);return data;}catch (IOEx... | train | false |
9,302 | public DFAState getCurrentState() {return currentState;}
| [
"public",
"DFAState",
"getCurrentState",
"(",
")",
"{",
"return",
"currentState",
";",
"}"
] | public DFAState getCurrentState(){return currentState;}
| train | false |
9,303 | public E lower(E e) {return backingMap.lowerKey(e);}
| [
"public",
"E",
"lower",
"(",
"E",
"e",
")",
"{",
"return",
"backingMap",
".",
"lowerKey",
"(",
"e",
")",
";",
"}"
] | public virtual E lower(E e){return backingMap.lowerKey(e);}
| train | false |
9,304 | public FinnishLightStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"FinnishLightStemFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Un... | public FinnishLightStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
| train | false |
9,305 | public String toString() {StringBuilder retval = new StringBuilder();retval.append("[MERGEDCELLS]").append("\n");retval.append(" .numregions =").append(getNumAreas()).append("\n");for (int k = 0; k < _numberOfRegions; k++) {CellRangeAddress r = _regions[_startIndex + k];retval.append(" .rowfrom =").append(r.get... | [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"retval",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"retval",
".",
"append",
"(",
"\"[MERGEDCELLS]\"",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"retval",
".",
"append",
"(",
"\" .nu... | public override String ToString(){StringBuilder retval = new StringBuilder();retval.Append("[MERGEDCELLS]").Append("\n");retval.Append(" .numregions =").Append(NumAreas).Append("\n");for (int k = 0; k < _numberOfRegions; k++){CellRangeAddress region = _regions[_startIndex + k];retval.Append(" .rowfrom =").Ap... | train | false |
9,306 | public String getString(int begin, int end, boolean dropLF) {if (begin == end)return ""; int s = getStart(begin);int e = getEnd(end - 1);if (dropLF && content[e - 1] == '\n')e--;return decode(s, e);}
| [
"public",
"String",
"getString",
"(",
"int",
"begin",
",",
"int",
"end",
",",
"boolean",
"dropLF",
")",
"{",
"if",
"(",
"begin",
"==",
"end",
")",
"return",
"\"\"",
";",
"int",
"s",
"=",
"getStart",
"(",
"begin",
")",
";",
"int",
"e",
"=",
"getEnd"... | public virtual string GetString(int begin, int end, bool dropLF){if (begin == end){return string.Empty;}int s = GetStart(begin);int e = GetEnd(end - 1);if (dropLF && content[e - 1] == '\n'){e--;}return Decode(s, e);}
| train | false |
9,307 | public RevokeDomainAccessResult revokeDomainAccess(RevokeDomainAccessRequest request) {request = beforeClientExecution(request);return executeRevokeDomainAccess(request);}
| [
"public",
"RevokeDomainAccessResult",
"revokeDomainAccess",
"(",
"RevokeDomainAccessRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRevokeDomainAccess",
"(",
"request",
")",
";",
"}"
] | public virtual RevokeDomainAccessResponse RevokeDomainAccess(RevokeDomainAccessRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeDomainAccessRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeDomainAccessResponseUnmarshaller.Instance;return Invoke<RevokeDomainAccessRespon... | train | true |
9,308 | public GetPhotoStoreRequest() {super("CloudPhoto", "2017-07-11", "GetPhotoStore", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"GetPhotoStoreRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"GetPhotoStore\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public GetPhotoStoreRequest(): base("CloudPhoto", "2017-07-11", "GetPhotoStore", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
9,309 | public DescribeVirtualInterfacesResult describeVirtualInterfaces(DescribeVirtualInterfacesRequest request) {request = beforeClientExecution(request);return executeDescribeVirtualInterfaces(request);}
| [
"public",
"DescribeVirtualInterfacesResult",
"describeVirtualInterfaces",
"(",
"DescribeVirtualInterfacesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeVirtualInterfaces",
"(",
"request",
")",
";",
... | public virtual DescribeVirtualInterfacesResponse DescribeVirtualInterfaces(DescribeVirtualInterfacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVirtualInterfacesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVirtualInterfacesResponseUnmarshaller.Instance;ret... | train | true |
9,310 | public EmptyTreeIterator createEmptyTreeIterator() {return new EmptyTreeIterator(this);}
| [
"public",
"EmptyTreeIterator",
"createEmptyTreeIterator",
"(",
")",
"{",
"return",
"new",
"EmptyTreeIterator",
"(",
"this",
")",
";",
"}"
] | public virtual EmptyTreeIterator CreateEmptyTreeIterator(){return new EmptyTreeIterator(this);}
| train | false |
9,311 | public File[] listFiles(FileFilter filter) {File[] files = listFiles();if (filter == null || files == null) {return files;}List<File> result = new ArrayList<File>(files.length);for (File file : files) {if (filter.accept(file)) {result.add(file);}}return result.toArray(new File[result.size()]);}
| [
"public",
"File",
"[",
"]",
"listFiles",
"(",
"FileFilter",
"filter",
")",
"{",
"File",
"[",
"]",
"files",
"=",
"listFiles",
"(",
")",
";",
"if",
"(",
"filter",
"==",
"null",
"||",
"files",
"==",
"null",
")",
"{",
"return",
"files",
";",
"}",
"List... | public java.io.File[] listFiles(java.io.FileFilter filter){java.io.File[] files = listFiles();if (filter == null || files == null){return files;}java.util.List<java.io.File> result = new java.util.ArrayList<java.io.File>(files.Length);foreach (java.io.File file in files){if (filter.accept(file)){result.add(file);}}retu... | train | true |
9,312 | public CharSequence toQueryString(EscapeQuerySyntax escaper) {if (isDefaultField(this.field)) {return this.text;} else {return this.field + ":" + this.text;}}
| [
"public",
"CharSequence",
"toQueryString",
"(",
"EscapeQuerySyntax",
"escaper",
")",
"{",
"if",
"(",
"isDefaultField",
"(",
"this",
".",
"field",
")",
")",
"{",
"return",
"this",
".",
"text",
";",
"}",
"else",
"{",
"return",
"this",
".",
"field",
"+",
"\... | public override string ToQueryString(IEscapeQuerySyntax escaper){if (IsDefaultField(this.m_field)){return this.m_text.ToString();}else{return this.m_field + ":" + this.m_text;}}
| train | false |
9,313 | public WithdrawByoipCidrResult withdrawByoipCidr(WithdrawByoipCidrRequest request) {request = beforeClientExecution(request);return executeWithdrawByoipCidr(request);}
| [
"public",
"WithdrawByoipCidrResult",
"withdrawByoipCidr",
"(",
"WithdrawByoipCidrRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeWithdrawByoipCidr",
"(",
"request",
")",
";",
"}"
] | public virtual WithdrawByoipCidrResponse WithdrawByoipCidr(WithdrawByoipCidrRequest request){var options = new InvokeOptions();options.RequestMarshaller = WithdrawByoipCidrRequestMarshaller.Instance;options.ResponseUnmarshaller = WithdrawByoipCidrResponseUnmarshaller.Instance;return Invoke<WithdrawByoipCidrResponse>(re... | train | true |
9,314 | public void serialize(LittleEndianOutput out) {out.writeShort(field_1_formatFlags);}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"field_1_formatFlags",
")",
";",
"}"
] | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_formatFlags);}
| train | false |
9,315 | public CharBuffer put(int index, char c) {checkIndex(index);byteBuffer.putChar(index * SizeOf.CHAR, c);return this;}
| [
"public",
"CharBuffer",
"put",
"(",
"int",
"index",
",",
"char",
"c",
")",
"{",
"checkIndex",
"(",
"index",
")",
";",
"byteBuffer",
".",
"putChar",
"(",
"index",
"*",
"SizeOf",
".",
"CHAR",
",",
"c",
")",
";",
"return",
"this",
";",
"}"
] | public override java.nio.CharBuffer put(int index, char c){checkIndex(index);byteBuffer.putChar(index * libcore.io.SizeOf.CHAR, c);return this;}
| train | false |
9,316 | public ICUTransformFilterFactory(Map<String,String> args) {super(args);String id = require(args, "id");String direction = get(args, "direction", Arrays.asList("forward", "reverse"), "forward", false);int dir = "forward".equals(direction) ? Transliterator.FORWARD : Transliterator.REVERSE;transliterator = Transliterator.... | [
"public",
"ICUTransformFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"String",
"id",
"=",
"require",
"(",
"args",
",",
"\"id\"",
")",
";",
"String",
"direction",
"=",
"get",
"(",
"args"... | public ICUTransformFilterFactory(IDictionary<string, string> args): base(args){string id = Require(args, "id");string direction = Get(args, "direction", new string[] { "forward", "reverse" }, "forward", false);TransliterationDirection dir = "forward".Equals(direction, StringComparison.Ordinal) ? Transliterator.Forward ... | train | false |
9,317 | public UpdateFilterResult updateFilter(UpdateFilterRequest request) {request = beforeClientExecution(request);return executeUpdateFilter(request);}
| [
"public",
"UpdateFilterResult",
"updateFilter",
"(",
"UpdateFilterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateFilter",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateFilterResponse UpdateFilter(UpdateFilterRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFilterRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFilterResponseUnmarshaller.Instance;return Invoke<UpdateFilterResponse>(request, options);}
| train | true |
9,319 | public final int compareTo(Term other) {if (field.equals(other.field)) {return bytes.compareTo(other.bytes);} else {return field.compareTo(other.field);}}
| [
"public",
"final",
"int",
"compareTo",
"(",
"Term",
"other",
")",
"{",
"if",
"(",
"field",
".",
"equals",
"(",
"other",
".",
"field",
")",
")",
"{",
"return",
"bytes",
".",
"compareTo",
"(",
"other",
".",
"bytes",
")",
";",
"}",
"else",
"{",
"retur... | public int CompareTo(Term other){int compare = Field.CompareToOrdinal(other.Field);if (compare == 0){return Bytes.CompareTo(other.Bytes);}else{return compare;}}
| train | false |
9,320 | public ErrorHandler getErrorHandler () {return (theErrorHandler == this) ? null : theErrorHandler;}
| [
"public",
"ErrorHandler",
"getErrorHandler",
"(",
")",
"{",
"return",
"(",
"theErrorHandler",
"==",
"this",
")",
"?",
"null",
":",
"theErrorHandler",
";",
"}"
] | public void close (){lock (this.mBlock) {if (this.mParseState != null) {this.mParseState.Dispose ();this.mParseState = null;this.mBlock.decOpenCountLocked ();}}}
| train | false |
9,321 | public float getSaturation() {int numBitsSet = filter.cardinality();return (float) numBitsSet / (float) bloomSize;}
| [
"public",
"float",
"getSaturation",
"(",
")",
"{",
"int",
"numBitsSet",
"=",
"filter",
".",
"cardinality",
"(",
")",
";",
"return",
"(",
"float",
")",
"numBitsSet",
"/",
"(",
"float",
")",
"bloomSize",
";",
"}"
] | public virtual float GetSaturation(){var numBitsSet = _filter.Cardinality();return numBitsSet/(float) _bloomSize;}
| train | false |
9,322 | public DeleteResolverEndpointResult deleteResolverEndpoint(DeleteResolverEndpointRequest request) {request = beforeClientExecution(request);return executeDeleteResolverEndpoint(request);}
| [
"public",
"DeleteResolverEndpointResult",
"deleteResolverEndpoint",
"(",
"DeleteResolverEndpointRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteResolverEndpoint",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteResolverEndpointResponse DeleteResolverEndpoint(DeleteResolverEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteResolverEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteResolverEndpointResponseUnmarshaller.Instance;return Invoke<Dele... | train | true |
9,323 | public AssociateHostedConnectionResult associateHostedConnection(AssociateHostedConnectionRequest request) {request = beforeClientExecution(request);return executeAssociateHostedConnection(request);}
| [
"public",
"AssociateHostedConnectionResult",
"associateHostedConnection",
"(",
"AssociateHostedConnectionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociateHostedConnection",
"(",
"request",
")",
";",
... | public virtual AssociateHostedConnectionResponse AssociateHostedConnection(AssociateHostedConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateHostedConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateHostedConnectionResponseUnmarshaller.Instance;ret... | train | true |
9,324 | public final String name() {return this.canonicalName;}
| [
"public",
"final",
"String",
"name",
"(",
")",
"{",
"return",
"this",
".",
"canonicalName",
";",
"}"
] | public string name(){return this.canonicalName;}
| train | false |
9,325 | public static void registerFunction(String name, Function func){FunctionEval.registerFunction(name, func);}
| [
"public",
"static",
"void",
"registerFunction",
"(",
"String",
"name",
",",
"Function",
"func",
")",
"{",
"FunctionEval",
".",
"registerFunction",
"(",
"name",
",",
"func",
")",
";",
"}"
] | public static void RegisterFunction(String name, FreeRefFunction func){AnalysisToolPak.RegisterFunction(name, func);}
| train | false |
9,326 | public GetRepoBuildStatusRequest() {super("cr", "2016-06-07", "GetRepoBuildStatus", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/build/[BuildId]/status");setMethod(MethodType.GET);}
| [
"public",
"GetRepoBuildStatusRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"GetRepoBuildStatus\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/repos/[RepoNamespace]/[RepoName]/build/[BuildId]/status\"",
")",
";",
"setMethod",
"(",
... | public GetRepoBuildStatusRequest(): base("cr", "2016-06-07", "GetRepoBuildStatus", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/build/[BuildId]/status";Method = MethodType.GET;}
| train | false |
9,327 | public GetFramedPhotoUrlsRequest() {super("CloudPhoto", "2017-07-11", "GetFramedPhotoUrls", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"GetFramedPhotoUrlsRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"GetFramedPhotoUrls\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public GetFramedPhotoUrlsRequest(): base("CloudPhoto", "2017-07-11", "GetFramedPhotoUrls", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
9,328 | public SimpleHTMLFormatter(String preTag, String postTag) {this.preTag = preTag;this.postTag = postTag;}
| [
"public",
"SimpleHTMLFormatter",
"(",
"String",
"preTag",
",",
"String",
"postTag",
")",
"{",
"this",
".",
"preTag",
"=",
"preTag",
";",
"this",
".",
"postTag",
"=",
"postTag",
";",
"}"
] | public SimpleHTMLFormatter(string preTag, string postTag){this.preTag = preTag;this.postTag = postTag;}
| train | false |
9,329 | public void setData(byte[] b, int start, int length){thedata = IOUtils.safelyAllocate(length, MAX_RECORD_LENGTH);System.arraycopy(b,start,thedata,0,length);}
| [
"public",
"void",
"setData",
"(",
"byte",
"[",
"]",
"b",
",",
"int",
"start",
",",
"int",
"length",
")",
"{",
"thedata",
"=",
"IOUtils",
".",
"safelyAllocate",
"(",
"length",
",",
"MAX_RECORD_LENGTH",
")",
";",
"System",
".",
"arraycopy",
"(",
"b",
","... | public void SetData(byte[] b, int start, int length){_thedata = new byte[length];Array.Copy(b, start, _thedata, 0, length);}
| train | false |
9,330 | public String getKey() {return key;}
| [
"public",
"String",
"getKey",
"(",
")",
"{",
"return",
"key",
";",
"}"
] | public virtual string getKey(){return key;}
| train | false |
9,331 | public AttachVolumeRequest(String volumeId, String instanceId, String device) {setVolumeId(volumeId);setInstanceId(instanceId);setDevice(device);}
| [
"public",
"AttachVolumeRequest",
"(",
"String",
"volumeId",
",",
"String",
"instanceId",
",",
"String",
"device",
")",
"{",
"setVolumeId",
"(",
"volumeId",
")",
";",
"setInstanceId",
"(",
"instanceId",
")",
";",
"setDevice",
"(",
"device",
")",
";",
"}"
] | public AttachVolumeRequest(string volumeId, string instanceId, string device){_volumeId = volumeId;_instanceId = instanceId;_device = device;}
| train | false |
9,332 | public long ramBytesUsed() {long size = BASE_RAM_BYTES_USED + RamUsageEstimator.shallowSizeOf(blocks);if (blocks.length > 0) {size += (blocks.length - 1) * bytesUsedPerBlock;size += RamUsageEstimator.sizeOf(blocks[blocks.length - 1]);}return size;}
| [
"public",
"long",
"ramBytesUsed",
"(",
")",
"{",
"long",
"size",
"=",
"BASE_RAM_BYTES_USED",
"+",
"RamUsageEstimator",
".",
"shallowSizeOf",
"(",
"blocks",
")",
";",
"if",
"(",
"blocks",
".",
"length",
">",
"0",
")",
"{",
"size",
"+=",
"(",
"blocks",
"."... | public long RamBytesUsed(){return (blocks.Count + (currentBlock != null ? 1 : 0)) * bytesUsedPerBlock;}
| train | false |
9,333 | @Override public Object[] toArray() {return Lists.newArrayList(iterator()).toArray();}
| [
"@",
"Override",
"public",
"Object",
"[",
"]",
"toArray",
"(",
")",
"{",
"return",
"Lists",
".",
"newArrayList",
"(",
"iterator",
"(",
")",
")",
".",
"toArray",
"(",
")",
";",
"}"
] | public override object[] toArray(){lock (this._enclosing){return base.toArray();}}
| train | false |
9,335 | public boolean equals(Object o) {return this == o;}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"o",
")",
"{",
"return",
"this",
"==",
"o",
";",
"}"
] | public override bool Equals(object o){return this == o;}
| train | false |
9,336 | public ChangeResourceRecordSetsResult changeResourceRecordSets(ChangeResourceRecordSetsRequest request) {request = beforeClientExecution(request);return executeChangeResourceRecordSets(request);}
| [
"public",
"ChangeResourceRecordSetsResult",
"changeResourceRecordSets",
"(",
"ChangeResourceRecordSetsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeChangeResourceRecordSets",
"(",
"request",
")",
";",
"}"... | public virtual ChangeResourceRecordSetsResponse ChangeResourceRecordSets(ChangeResourceRecordSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ChangeResourceRecordSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ChangeResourceRecordSetsResponseUnmarshaller.Instance;return I... | train | true |
9,337 | public Iterator<K> iterator() {return newKeyIterator();}
| [
"public",
"Iterator",
"<",
"K",
">",
"iterator",
"(",
")",
"{",
"return",
"newKeyIterator",
"(",
")",
";",
"}"
] | public override java.util.Iterator<K> iterator(){return new java.util.Hashtable<K, V>.KeyIterator(this._enclosing);}
| train | false |
9,338 | @Override public boolean equals(Object o) {return o instanceof ReverseComparator2&& ((ReverseComparator2) o).cmp.equals(cmp);}
| [
"@",
"Override",
"public",
"boolean",
"equals",
"(",
"Object",
"o",
")",
"{",
"return",
"o",
"instanceof",
"ReverseComparator2",
"&&",
"(",
"(",
"ReverseComparator2",
")",
"o",
")",
".",
"cmp",
".",
"equals",
"(",
"cmp",
")",
";",
"}"
] | public override bool Equals(object o){return o is java.util.Collections.ReverseComparator2<T> && ((java.util.Collections.ReverseComparator2<T>)o).cmp.Equals(cmp);}
| train | false |
9,339 | public boolean isCheckEofAfterPackFooter() {return checkEofAfterPackFooter;}
| [
"public",
"boolean",
"isCheckEofAfterPackFooter",
"(",
")",
"{",
"return",
"checkEofAfterPackFooter",
";",
"}"
] | public virtual bool IsCheckEofAfterPackFooter(){return checkEofAfterPackFooter;}
| train | false |
9,340 | public DescribeDirectConnectGatewayAssociationProposalsResult describeDirectConnectGatewayAssociationProposals(DescribeDirectConnectGatewayAssociationProposalsRequest request) {request = beforeClientExecution(request);return executeDescribeDirectConnectGatewayAssociationProposals(request);}
| [
"public",
"DescribeDirectConnectGatewayAssociationProposalsResult",
"describeDirectConnectGatewayAssociationProposals",
"(",
"DescribeDirectConnectGatewayAssociationProposalsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"e... | public virtual DescribeDirectConnectGatewayAssociationProposalsResponse DescribeDirectConnectGatewayAssociationProposals(DescribeDirectConnectGatewayAssociationProposalsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDirectConnectGatewayAssociationProposalsRequestMarshaller.Instan... | train | true |
9,341 | public void reset(byte[] bytes, int offset, int len) {this.bytes = bytes;pos = offset;limit = offset + len;}
| [
"public",
"void",
"reset",
"(",
"byte",
"[",
"]",
"bytes",
",",
"int",
"offset",
",",
"int",
"len",
")",
"{",
"this",
".",
"bytes",
"=",
"bytes",
";",
"pos",
"=",
"offset",
";",
"limit",
"=",
"offset",
"+",
"len",
";",
"}"
] | public void Reset(byte[] bytes, int offset, int len){this.bytes = bytes;pos = offset;limit = offset + len;}
| train | false |
9,342 | public ByteBuffer putFloat(int index, float value) {throw new ReadOnlyBufferException();}
| [
"public",
"ByteBuffer",
"putFloat",
"(",
"int",
"index",
",",
"float",
"value",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] | public override java.nio.ByteBuffer putFloat(int index, float value){throw new System.NotImplementedException();}
| train | false |
9,343 | public boolean equals(Object obj) {if (obj == null)return false;if (! getClass().equals(obj.getClass()))return false;return toString().equals(obj.toString());}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"obj",
"==",
"null",
")",
"return",
"false",
";",
"if",
"(",
"!",
"getClass",
"(",
")",
".",
"equals",
"(",
"obj",
".",
"getClass",
"(",
")",
")",
")",
"return",
"false",
"... | public override bool Equals(object obj){if (obj == null)return false;if (!GetType().Equals(obj.GetType()))return false;return ToString().Equals(obj.ToString(), StringComparison.Ordinal);}
| train | false |
9,344 | public PutSchemaFromJsonResult putSchemaFromJson(PutSchemaFromJsonRequest request) {request = beforeClientExecution(request);return executePutSchemaFromJson(request);}
| [
"public",
"PutSchemaFromJsonResult",
"putSchemaFromJson",
"(",
"PutSchemaFromJsonRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutSchemaFromJson",
"(",
"request",
")",
";",
"}"
] | public virtual PutSchemaFromJsonResponse PutSchemaFromJson(PutSchemaFromJsonRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutSchemaFromJsonRequestMarshaller.Instance;options.ResponseUnmarshaller = PutSchemaFromJsonResponseUnmarshaller.Instance;return Invoke<PutSchemaFromJsonResponse>(re... | train | true |
9,345 | public UnassignPrivateIpAddressesResult unassignPrivateIpAddresses(UnassignPrivateIpAddressesRequest request) {request = beforeClientExecution(request);return executeUnassignPrivateIpAddresses(request);}
| [
"public",
"UnassignPrivateIpAddressesResult",
"unassignPrivateIpAddresses",
"(",
"UnassignPrivateIpAddressesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUnassignPrivateIpAddresses",
"(",
"request",
")",
";... | public virtual UnassignPrivateIpAddressesResponse UnassignPrivateIpAddresses(UnassignPrivateIpAddressesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UnassignPrivateIpAddressesRequestMarshaller.Instance;options.ResponseUnmarshaller = UnassignPrivateIpAddressesResponseUnmarshaller.Instanc... | train | true |
9,346 | public ArrayPtg finishReading(LittleEndianInput in) {int nColumns = in.readUByte();short nRows = in.readShort();nColumns++;nRows++;int totalCount = nRows * nColumns;Object[] arrayValues = ConstantValueParser.parse(in, totalCount);ArrayPtg result = new ArrayPtg(_reserved0, _reserved1, _reserved2, nColumns, nRows, arrayV... | [
"public",
"ArrayPtg",
"finishReading",
"(",
"LittleEndianInput",
"in",
")",
"{",
"int",
"nColumns",
"=",
"in",
".",
"readUByte",
"(",
")",
";",
"short",
"nRows",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"nColumns",
"++",
";",
"nRows",
"++",
";",
"in... | public ArrayPtg FinishReading(ILittleEndianInput in1){int nColumns = in1.ReadUByte();short nRows = in1.ReadShort();nColumns++;nRows++;int totalCount = nRows * nColumns;Object[] arrayValues = ConstantValueParser.Parse(in1, totalCount);ArrayPtg result = new ArrayPtg(_reserved0, _reserved1, _reserved2, nColumns, nRows, ar... | train | false |
9,347 | public NativeUnixDirectory(Path path, Directory delegate) throws IOException {this(path, DEFAULT_MERGE_BUFFER_SIZE, DEFAULT_MIN_BYTES_DIRECT, FSLockFactory.getDefault(), delegate);}
| [
"public",
"NativeUnixDirectory",
"(",
"Path",
"path",
",",
"Directory",
"delegate",
")",
"throws",
"IOException",
"{",
"this",
"(",
"path",
",",
"DEFAULT_MERGE_BUFFER_SIZE",
",",
"DEFAULT_MIN_BYTES_DIRECT",
",",
"FSLockFactory",
".",
"getDefault",
"(",
")",
",",
"... | public NativeUnixDirectory(File path, Directory @delegate) throws IOException{this(path, DEFAULT_MERGE_BUFFER_SIZE, DEFAULT_MIN_BYTES_DIRECT, @delegate);}
| train | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.