java
stringlengths 28
1.4k
| C#
stringlengths 27
1.38k
|
---|---|
public long ramBytesUsed() {return indexReader.ramBytesUsed();} | public override long RamBytesUsed(){return indexReader.RamBytesUsed();} |
public short getCalcMode(){return field_1_calcmode;} | public short GetCalcMode(){return field_1_calcmode;} |
public DeleteStreamResult deleteStream(DeleteStreamRequest request) {request = beforeClientExecution(request);return executeDeleteStream(request);} | public virtual DeleteStreamResponse DeleteStream(DeleteStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteStreamResponseUnmarshaller.Instance;return Invoke<DeleteStreamResponse>(request, options);} |
public DoubleBuffer put(double[] src, int srcOffset, int doubleCount) {Arrays.checkOffsetAndCount(src.length, srcOffset, doubleCount);if (doubleCount > remaining()) {throw new BufferOverflowException();}for (int i = srcOffset; i < srcOffset + doubleCount; ++i) {put(src[i]);}return this;} | public virtual java.nio.DoubleBuffer put(double[] src, int srcOffset, int doubleCount){java.util.Arrays.checkOffsetAndCount(src.Length, srcOffset, doubleCount);if (doubleCount > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = srcOffset; i < srcOffset + doubleCount; ++i){put(src[i]);}}return this;} |
public RevokeSecurityGroupEgressResult revokeSecurityGroupEgress(RevokeSecurityGroupEgressRequest request) {request = beforeClientExecution(request);return executeRevokeSecurityGroupEgress(request);} | public virtual RevokeSecurityGroupEgressResponse RevokeSecurityGroupEgress(RevokeSecurityGroupEgressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeSecurityGroupEgressRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeSecurityGroupEgressResponseUnmarshaller.Instance;return Invoke<RevokeSecurityGroupEgressResponse>(request, options);} |
public CreateRepoWebhookRequest() {super("cr", "2016-06-07", "CreateRepoWebhook", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/webhooks");setMethod(MethodType.PUT);} | public CreateRepoWebhookRequest(): base("cr", "2016-06-07", "CreateRepoWebhook", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/webhooks";Method = MethodType.PUT;} |
public int getCnt(Character way) {Cell c = at(way);return (c == null) ? -1 : c.cnt;} | public int GetCnt(char way){Cell c = At(way);return (c == null) ? -1 : c.cnt;} |
public SortField[] getSort() {return fields;} | public virtual SortField[] GetSort(){return fields;} |
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[BOF RECORD]\n");buffer.append(" .version = ").append(HexDump.shortToHex(getVersion())).append("\n");buffer.append(" .type = ").append(HexDump.shortToHex(getType()));buffer.append(" (").append(getTypeName()).append(")").append("\n");buffer.append(" .build = ").append(HexDump.shortToHex(getBuild())).append("\n");buffer.append(" .buildyear= ").append(getBuildYear()).append("\n");buffer.append(" .history = ").append(HexDump.intToHex(getHistoryBitMask())).append("\n");buffer.append(" .reqver = ").append(HexDump.intToHex(getRequiredVersion())).append("\n");buffer.append("[/BOF RECORD]\n");return buffer.toString();} | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[BOF RECORD]\n");buffer.Append(" .version = ").Append(StringUtil.ToHexString(Version)).Append("\n");buffer.Append(" .type = ").Append(StringUtil.ToHexString((int) Type)).Append("\n");buffer.Append(" (").Append(TypeName).Append(")").Append("\n");buffer.Append(" .build = ").Append(StringUtil.ToHexString(Build)).Append("\n");buffer.Append(" .buildyear = ").Append(BuildYear).Append("\n");buffer.Append(" .history = ").Append(StringUtil.ToHexString(HistoryBitMask)).Append("\n");buffer.Append(" .requiredversion = ").Append(StringUtil.ToHexString(RequiredVersion)).Append("\n");buffer.Append("[/BOF RECORD]\n");return buffer.ToString();} |
public DBInstance createDBInstance(CreateDBInstanceRequest request) {request = beforeClientExecution(request);return executeCreateDBInstance(request);} | public virtual CreateDBInstanceResponse CreateDBInstance(CreateDBInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBInstanceResponseUnmarshaller.Instance;return Invoke<CreateDBInstanceResponse>(request, options);} |
public CreateStackInstancesResult createStackInstances(CreateStackInstancesRequest request) {request = beforeClientExecution(request);return executeCreateStackInstances(request);} | public virtual CreateStackInstancesResponse CreateStackInstances(CreateStackInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStackInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStackInstancesResponseUnmarshaller.Instance;return Invoke<CreateStackInstancesResponse>(request, options);} |
public int serialize( int offset, byte[] data, EscherSerializationListener listener ){listener.beforeRecordSerialize( offset, getRecordId(), this );LittleEndian.putShort(data, offset, getOptions());LittleEndian.putShort(data, offset+2, getRecordId());int remainingBytes = 0;for (EscherRecord r : this) {remainingBytes += r.getRecordSize();}remainingBytes += _remainingLength;LittleEndian.putInt(data, offset+4, remainingBytes);int pos = offset+8;for (EscherRecord r : this) {pos += r.serialize(pos, data, listener );}listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );return pos - offset;} | public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);int remainingBytes = 0;for (IEnumerator iterator = ChildRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord r = (EscherRecord)iterator.Current;remainingBytes += r.RecordSize;}remainingBytes += _remainingLength;LittleEndian.PutInt(data, offset + 4, remainingBytes);int pos = offset + 8;for (IEnumerator iterator = ChildRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord r = (EscherRecord)iterator.Current;pos += r.Serialize(pos, data, listener);}listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);return pos - offset;} |
public String toString() {return "SnapshotDeletionPolicy.SnapshotCommitPoint(" + cp + ")";} | public override string ToString(){return "SnapshotDeletionPolicy.SnapshotCommitPoint(" + m_cp + ")";} |
public MissingRecordAwareHSSFListener(HSSFListener listener) {resetCounts();childListener = listener;} | public MissingRecordAwareHSSFListener(IHSSFListener listener){ResetCounts();childListener = listener;} |
public int clear(final int holder){return holder & ~_mask;} | public int Clear(int holder){return (holder & ~this._mask);} |
public void serialize(LittleEndianOutput out) {out.writeInt(field_13_border_styles1);out.writeInt(field_14_border_styles2);} | public void Serialize(ILittleEndianOutput out1){out1.WriteInt(field_13_border_styles1);out1.WriteInt(field_14_border_styles2);} |
public void setParams(String params) {super.setParams(params);traversalSize = (int)Float.parseFloat(params);} | public override void SetParams(string @params){base.SetParams(@params);m_traversalSize = (int)float.Parse(@params, CultureInfo.InvariantCulture);} |
public String toStringTree(List<String> ruleNames) {return Trees.toStringTree(this, ruleNames);} | public virtual string ToStringTree(IList<string> ruleNames){return Trees.ToStringTree(this, ruleNames);} |
public HSSFTextbox createTextbox(HSSFClientAnchor anchor) {HSSFTextbox shape = new HSSFTextbox(null, anchor);addShape(shape);onCreate(shape);return shape;} | public HSSFSimpleShape CreateTextbox(IClientAnchor anchor){HSSFTextbox shape = new HSSFTextbox(null, (HSSFAnchor)anchor);AddShape(shape);OnCreate(shape);return shape;} |
public UpdateDevicePolicyConfigurationResult updateDevicePolicyConfiguration(UpdateDevicePolicyConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateDevicePolicyConfiguration(request);} | public virtual UpdateDevicePolicyConfigurationResponse UpdateDevicePolicyConfiguration(UpdateDevicePolicyConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDevicePolicyConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDevicePolicyConfigurationResponseUnmarshaller.Instance;return Invoke<UpdateDevicePolicyConfigurationResponse>(request, options);} |
public float norm(int passageStart) {return 1 + 1 / (float) Math.log(pivot + passageStart);} | public virtual float Norm(int passageStart){return 1 + 1 / (float)Math.Log(pivot + passageStart);} |
public Record nextRecord() {Record r;r = getNextUnreadRecord();if (r != null) {return r;}while (true) {if (!_recStream.hasNextRecord()) {return null;}if (_lastRecordWasEOFLevelZero) {if (_recStream.getNextSid() != BOFRecord.sid) {return null;}}_recStream.nextRecord();r = readNextRecord();if (r == null) {continue;}return r;}} | public Record NextRecord(){Record r;r = GetNextUnreadRecord();if (r != null){return r;}while (true){if (!_recStream.HasNextRecord){return null;}_recStream.NextRecord();if (_lastRecordWasEOFLevelZero){if (_recStream.Sid != BOFRecord.sid){return null;}}r = ReadNextRecord();if (r == null){continue;}return r;}} |
public final FileDescriptor getFD() throws IOException {return fd;} | public java.io.FileDescriptor getFD(){throw new System.NotImplementedException();} |
public MoveAlbumPhotosRequest() {super("CloudPhoto", "2017-07-11", "MoveAlbumPhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);} | public MoveAlbumPhotosRequest(): base("CloudPhoto", "2017-07-11", "MoveAlbumPhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;} |
public UpdateStackSetResult updateStackSet(UpdateStackSetRequest request) {request = beforeClientExecution(request);return executeUpdateStackSet(request);} | public virtual UpdateStackSetResponse UpdateStackSet(UpdateStackSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateStackSetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateStackSetResponseUnmarshaller.Instance;return Invoke<UpdateStackSetResponse>(request, options);} |
public static double acosh(double d) {return Math.log(Math.sqrt(Math.pow(d, 2) - 1) + d);} | public static double Acosh(double d){return Math.Log(Math.Sqrt(Math.Pow(d, 2) - 1) + d);} |
public int stem(char s[], int len) {for (int i = 0; i < len; i++)switch(s[i]) {case 'ä':case 'à':case 'á':case 'â': s[i] = 'a'; break;case 'ö':case 'ò':case 'ó':case 'ô': s[i] = 'o'; break;case 'ï':case 'ì':case 'í':case 'î': s[i] = 'i'; break;case 'ü':case 'ù':case 'ú':case 'û': s[i] = 'u'; break;}len = step1(s, len);return step2(s, len);} | public virtual int Stem(char[] s, int len){for (int i = 0; i < len; i++){switch (s[i]){case 'ä':case 'à':case 'á':case 'â':s[i] = 'a';break;case 'ö':case 'ò':case 'ó':case 'ô':s[i] = 'o';break;case 'ï':case 'ì':case 'í':case 'î':s[i] = 'i';break;case 'ü':case 'ù':case 'ú':case 'û':s[i] = 'u';break;}}len = Step1(s, len);return Step2(s, len);} |
public CreateProposalResult createProposal(CreateProposalRequest request) {request = beforeClientExecution(request);return executeCreateProposal(request);} | public virtual CreateProposalResponse CreateProposal(CreateProposalRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateProposalRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateProposalResponseUnmarshaller.Instance;return Invoke<CreateProposalResponse>(request, options);} |
public boolean didFetchIncludeTags() {return false;} | public virtual bool DidFetchIncludeTags(){return false;} |
public RevCommit peek() {return head != null ? head.commit : null;} | public virtual RevCommit Peek(){return head != null ? head.commit : null;} |
public HSSFBorderFormatting getBorderFormatting() {return getBorderFormatting(false);} | public IBorderFormatting GetBorderFormatting(){return GetBorderFormatting(false);} |
public DeletedArea3DPtg(int externSheetIndex) {field_1_index_extern_sheet = externSheetIndex;unused1 = 0;unused2 = 0;} | public DeletedArea3DPtg(int externSheetIndex){field_1_index_extern_sheet = externSheetIndex;unused1 = 0;unused2 = 0;} |
public SheetRecordCollector() {_totalSize = 0;_list = new ArrayList<>(128);} | public SheetRecordCollector(){_totalSize = 0;_list = new ArrayList(128);} |
public RemovePermissionResult removePermission(RemovePermissionRequest request) {request = beforeClientExecution(request);return executeRemovePermission(request);} | public virtual RemovePermissionResponse RemovePermission(RemovePermissionRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemovePermissionRequestMarshaller.Instance;options.ResponseUnmarshaller = RemovePermissionResponseUnmarshaller.Instance;return Invoke<RemovePermissionResponse>(request, options);} |
public Cluster modifyClusterIamRoles(ModifyClusterIamRolesRequest request) {request = beforeClientExecution(request);return executeModifyClusterIamRoles(request);} | public virtual ModifyClusterIamRolesResponse ModifyClusterIamRoles(ModifyClusterIamRolesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterIamRolesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterIamRolesResponseUnmarshaller.Instance;return Invoke<ModifyClusterIamRolesResponse>(request, options);} |
public AreaFormatRecord(RecordInputStream in) {field_1_foregroundColor = in.readInt();field_2_backgroundColor = in.readInt();field_3_pattern = in.readShort();field_4_formatFlags = in.readShort();field_5_forecolorIndex = in.readShort();field_6_backcolorIndex = in.readShort();} | public AreaFormatRecord(RecordInputStream in1){field_1_foregroundColor = in1.ReadInt();field_2_backgroundColor = in1.ReadInt();field_3_pattern = in1.ReadShort();field_4_formatFlags = in1.ReadShort();field_5_forecolorIndex = in1.ReadShort();field_6_backcolorIndex = in1.ReadShort();} |
public int available() {return _lei.available();} | public int Available(){return _lei.Available();} |
public final String toString() {return toString("");} | public override string ToString(){return ToString("");} |
public short setShort(final short holder){return ( short ) set(holder);} | public short SetShort(short holder){return (short)this.Set(holder);} |
public synchronized void setFlushPending(ThreadState perThread) {assert !perThread.flushPending;if (perThread.dwpt.getNumDocsInRAM() > 0) {perThread.flushPending = true; final long bytes = perThread.bytesUsed;flushBytes += bytes;activeBytes -= bytes;numPending++; assert assertMemory();} } | public void SetFlushPending(ThreadState perThread){lock (this){Debug.Assert(!perThread.flushPending);if (perThread.dwpt.NumDocsInRAM > 0){perThread.flushPending = true; long bytes = perThread.bytesUsed;flushBytes += bytes;activeBytes -= bytes;numPending++; Debug.Assert(AssertMemory());} }} |
public StringBuilder insert(int offset, char[] ch) {insert0(offset, ch);return this;} | public java.lang.StringBuilder insert(int offset, char[] ch){insert0(offset, ch);return this;} |
public StoredField(String name, double value) {super(name, TYPE);fieldsData = value;} | public StoredField(string name, double value): base(name, TYPE){FieldsData = new Double(value);} |
public String getName() {return String.format(Locale.ROOT, "Jelinek-Mercer(%f)", getLambda());} | public override string GetName(){return "Jelinek-Mercer(" + Number.ToString(Lambda) + ")";} |
public ReleaseAddressRequest(String publicIp) {setPublicIp(publicIp);} | public ReleaseAddressRequest(string publicIp){_publicIp = publicIp;} |
public DeleteKeyPairResult deleteKeyPair(DeleteKeyPairRequest request) {request = beforeClientExecution(request);return executeDeleteKeyPair(request);} | public virtual DeleteKeyPairResponse DeleteKeyPair(DeleteKeyPairRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteKeyPairRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteKeyPairResponseUnmarshaller.Instance;return Invoke<DeleteKeyPairResponse>(request, options);} |
public byte[] getColor(int byteIndex) {int i = byteIndex - FIRST_COLOR_INDEX;if (i < 0 || i >= _colors.size()) {return null;}return _colors.get(i).getTriplet();} | public byte[] GetColor(short byteIndex){int i = byteIndex - FIRST_COLOR_INDEX;if (i < 0 || i >= field_2_colors.Count){return null;}PColor color = (PColor)field_2_colors[i];return new byte[] { color._red, color._green, color._blue };} |
public int indexOfValue(E value) {if (mGarbage) {gc();}for (int i = 0; i < mSize; i++)if (mValues[i] == value)return i;return -1;} | public virtual int indexOfValue(E value){if (mGarbage){gc();}{for (int i = 0; i < mSize; i++){if (Sharpen.Util.Equals(value, mValues[i])){return i;}}}return -1;} |
public URIish setScheme(String n) {final URIish r = new URIish(this);r.scheme = n;return r;} | public virtual NGit.Transport.URIish SetScheme(string n){NGit.Transport.URIish r = new NGit.Transport.URIish(this);r.scheme = n;return r;} |
public void print(char[] charArray) {print(new String(charArray, 0, charArray.length));} | public virtual void print(char[] charArray){print(new string(charArray, 0, charArray.Length));} |
public CommonToken(int type, String text) {this.type = type;this.channel = DEFAULT_CHANNEL;this.text = text;this.source = EMPTY_SOURCE;} | public CommonToken(int type, string text){this._type = type;this._channel = TokenConstants.DefaultChannel;this._text = text;this.source = EmptySource;} |
public final String toString() { return field + ":" + text(); } | public override string ToString(){return Field + ":" + Text();} |
public LongBuffer compact() {if (byteBuffer.isReadOnly()) {throw new ReadOnlyBufferException();}byteBuffer.limit(limit * SizeOf.LONG);byteBuffer.position(position * SizeOf.LONG);byteBuffer.compact();byteBuffer.clear();position = limit - position;limit = capacity;mark = UNSET_MARK;return this;} | public override java.nio.LongBuffer compact(){if (byteBuffer.isReadOnly()){throw new java.nio.ReadOnlyBufferException();}byteBuffer.limit(_limit * libcore.io.SizeOf.LONG);byteBuffer.position(_position * libcore.io.SizeOf.LONG);byteBuffer.compact();byteBuffer.clear();_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;} |
public ATNSimulator(ATN atn,PredictionContextCache sharedContextCache){this.atn = atn;this.sharedContextCache = sharedContextCache;} | public ATNSimulator(ATN atn, PredictionContextCache sharedContextCache){this.atn = atn;this.sharedContextCache = sharedContextCache;} |
public CachedOrdinalsReader(OrdinalsReader source) {this.source = source;} | public CachedOrdinalsReader(OrdinalsReader source){this.source = source;} |
public static CompareResult valueOf(boolean matches) {if(matches) {return EQUAL ;}return LESS_THAN;} | public static CompareResult ValueOf(bool matches){if (matches){return Equal;}return LessThan;} |
public void serialize(LittleEndianOutput out) {out.writeShort(getVersion());out.writeShort(getType());out.writeShort(getBuild());out.writeShort(getBuildYear());out.writeInt(getHistoryBitMask());out.writeInt(getRequiredVersion());} | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Version);out1.WriteShort((int) Type);out1.WriteShort(Build);out1.WriteShort(BuildYear);out1.WriteInt(HistoryBitMask);out1.WriteInt(RequiredVersion);} |
public File getAbsoluteFile() {return new File(getAbsolutePath());} | public java.io.File getAbsoluteFile(){return new java.io.File(getAbsolutePath());} |
public DescribeTemplatePermissionsResult describeTemplatePermissions(DescribeTemplatePermissionsRequest request) {request = beforeClientExecution(request);return executeDescribeTemplatePermissions(request);} | public virtual DescribeTemplatePermissionsResponse DescribeTemplatePermissions(DescribeTemplatePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTemplatePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTemplatePermissionsResponseUnmarshaller.Instance;return Invoke<DescribeTemplatePermissionsResponse>(request, options);} |
public WorkflowExecutionCount countOpenWorkflowExecutions(CountOpenWorkflowExecutionsRequest request) {request = beforeClientExecution(request);return executeCountOpenWorkflowExecutions(request);} | public virtual CountOpenWorkflowExecutionsResponse CountOpenWorkflowExecutions(CountOpenWorkflowExecutionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CountOpenWorkflowExecutionsRequestMarshaller.Instance;options.ResponseUnmarshaller = CountOpenWorkflowExecutionsResponseUnmarshaller.Instance;return Invoke<CountOpenWorkflowExecutionsResponse>(request, options);} |
public DescribeAccountLimitsResult describeAccountLimits() {return describeAccountLimits(new DescribeAccountLimitsRequest());} | public virtual DescribeAccountLimitsResponse DescribeAccountLimits(){return DescribeAccountLimits(new DescribeAccountLimitsRequest());} |
public Object get(CharSequence key) {if (fst == null) {return null;}Arc<Long> arc = new Arc<>();Long result = null;try {result = lookupPrefix(new BytesRef(key), arc);} catch (IOException bogus) { throw new RuntimeException(bogus); }if (result == null || !arc.isFinal()) {return null;} else {return Integer.valueOf(decodeWeight(result + arc.nextFinalOutput()));}} | public virtual object Get(string key){if (fst == null){return null;}FST.Arc<long?> arc = new FST.Arc<long?>();long? result = null;try{result = LookupPrefix(new BytesRef(key), arc);}catch (IOException bogus){throw new Exception(bogus.ToString(), bogus);}if (result == null || !arc.IsFinal){return null;}else{return DecodeWeight(result.GetValueOrDefault() + arc.NextFinalOutput.GetValueOrDefault());}} |
public CreateGameServerGroupResult createGameServerGroup(CreateGameServerGroupRequest request) {request = beforeClientExecution(request);return executeCreateGameServerGroup(request);} | public virtual CreateGameServerGroupResponse CreateGameServerGroup(CreateGameServerGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateGameServerGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateGameServerGroupResponseUnmarshaller.Instance;return Invoke<CreateGameServerGroupResponse>(request, options);} |
public static boolean isInternalDateFormat(int format) {switch(format) {case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16:case 0x2d:case 0x2e:case 0x2f:return true;}return false;} | public static bool IsInternalDateFormat(int format){bool retval = false;switch (format){case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16:case 0x2d:case 0x2e:case 0x2f:retval = true;break;default:retval = false;break;}return retval;} |
public PackFile getPackFile() {return newPack;} | public virtual PackFile GetPackFile(){return newPack;} |
public CreateInternetGatewayResult createInternetGateway() {return createInternetGateway(new CreateInternetGatewayRequest());} | public virtual CreateInternetGatewayResponse CreateInternetGateway(){return CreateInternetGateway(new CreateInternetGatewayRequest());} |
public void drawPolyline(int[] xPoints, int[] yPoints,int nPoints){if (logger.check( POILogger.WARN ))logger.log(POILogger.WARN,"drawPolyline not supported");} | public void DrawPolyline(int[] xPoints, int[] yPoints,int nPoints){if (Logger.Check(POILogger.WARN))Logger.Log(POILogger.WARN, "DrawPolyline not supported");} |
public void close() {unpackedObjectCache.clear();final PackList packs = packList.get();if (packs != NO_PACKS && packList.compareAndSet(packs, NO_PACKS)) {for (PackFile p : packs.packs)p.close();}AlternateHandle[] alt = alternates.get();if (alt != null && alternates.compareAndSet(alt, null)) {for(AlternateHandle od : alt)od.close();}} | public override void Close(){unpackedObjectCache.Clear();ObjectDirectory.PackList packs = packList.Get();packList.Set(NO_PACKS);foreach (PackFile p in packs.packs){p.Close();}FileObjectDatabase.AlternateHandle[] alt = alternates.Get();if (alt != null){alternates.Set(null);foreach (FileObjectDatabase.AlternateHandle od in alt){od.Close();}}} |
public List<Token> getHiddenTokensToRight(int tokenIndex, int channel) {lazyInit();if ( tokenIndex<0 || tokenIndex>=tokens.size() ) {throw new IndexOutOfBoundsException(tokenIndex+" not in 0.."+(tokens.size()-1));}int nextOnChannel =nextTokenOnChannel(tokenIndex + 1, Lexer.DEFAULT_TOKEN_CHANNEL);int to;int from = tokenIndex+1;if ( nextOnChannel == -1 ) to = size()-1;else to = nextOnChannel;return filterForChannel(from, to, channel);} | public virtual IList<IToken> GetHiddenTokensToRight(int tokenIndex, int channel){LazyInit();if (tokenIndex < 0 || tokenIndex >= tokens.Count){throw new ArgumentOutOfRangeException(tokenIndex + " not in 0.." + (tokens.Count - 1));}int nextOnChannel = NextTokenOnChannel(tokenIndex + 1, Lexer.DefaultTokenChannel);int to;int from = tokenIndex + 1;if (nextOnChannel == -1){to = Size - 1;}else{to = nextOnChannel;}return FilterForChannel(from, to, channel);} |
public int size() {return Hashtable.this.size();} | public override int size(){return this._enclosing.size();} |
public CustomAvailabilityZone deleteCustomAvailabilityZone(DeleteCustomAvailabilityZoneRequest request) {request = beforeClientExecution(request);return executeDeleteCustomAvailabilityZone(request);} | public virtual DeleteCustomAvailabilityZoneResponse DeleteCustomAvailabilityZone(DeleteCustomAvailabilityZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCustomAvailabilityZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCustomAvailabilityZoneResponseUnmarshaller.Instance;return Invoke<DeleteCustomAvailabilityZoneResponse>(request, options);} |
public BatchUnsuspendUserResult batchUnsuspendUser(BatchUnsuspendUserRequest request) {request = beforeClientExecution(request);return executeBatchUnsuspendUser(request);} | public virtual BatchUnsuspendUserResponse BatchUnsuspendUser(BatchUnsuspendUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchUnsuspendUserRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchUnsuspendUserResponseUnmarshaller.Instance;return Invoke<BatchUnsuspendUserResponse>(request, options);} |
public DeleteAccountSettingResult deleteAccountSetting(DeleteAccountSettingRequest request) {request = beforeClientExecution(request);return executeDeleteAccountSetting(request);} | public virtual DeleteAccountSettingResponse DeleteAccountSetting(DeleteAccountSettingRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAccountSettingRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAccountSettingResponseUnmarshaller.Instance;return Invoke<DeleteAccountSettingResponse>(request, options);} |
public static SemanticContext or(SemanticContext a, SemanticContext b) {if ( a == null ) return b;if ( b == null ) return a;if ( a == NONE || b == NONE ) return NONE;OR result = new OR(a, b);if (result.opnds.length == 1) {return result.opnds[0];}return result;} | public OR(SemanticContext a, SemanticContext b){HashSet<SemanticContext> operands = new HashSet<SemanticContext>();if (a is SemanticContext.OR){operands.UnionWith(((OR)a).opnds);}else{operands.Add(a);}if (b is SemanticContext.OR){operands.UnionWith(((OR)b).opnds);}else{operands.Add(b);}IList<SemanticContext.PrecedencePredicate> precedencePredicates = FilterPrecedencePredicates(operands);if (precedencePredicates.Count > 0){SemanticContext.PrecedencePredicate reduced = precedencePredicates.Max();operands.Add(reduced);}this.opnds = operands.ToArray();} |
public ListHumanLoopsResult listHumanLoops(ListHumanLoopsRequest request) {request = beforeClientExecution(request);return executeListHumanLoops(request);} | public virtual ListHumanLoopsResponse ListHumanLoops(ListHumanLoopsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHumanLoopsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHumanLoopsResponseUnmarshaller.Instance;return Invoke<ListHumanLoopsResponse>(request, options);} |
public ValueEval evaluate(ValueEval[] args, int srcCellRow, int srcCellCol) {int maxN = args.length;if(maxN < 1) {return ErrorEval.VALUE_INVALID;}ValueEval firstArg = args[0];try {if(firstArg instanceof NumericValueEval) {return evaluateSingleProduct(args);}if(firstArg instanceof RefEval) {return evaluateSingleProduct(args);}if (firstArg instanceof TwoDEval) {TwoDEval ae = (TwoDEval) firstArg;if(ae.isRow() && ae.isColumn()) {return evaluateSingleProduct(args);}return evaluateAreaSumProduct(args);}} catch (EvaluationException e) {return e.getErrorEval();}throw new RuntimeException("Invalid arg type for SUMPRODUCT: ("+ firstArg.getClass().getName() + ")");} | public ValueEval Evaluate(ValueEval[] args, int srcCellRow, int srcCellCol){int maxN = args.Length;if (maxN < 1){return ErrorEval.VALUE_INVALID;}ValueEval firstArg = args[0];try{if (firstArg is NumericValueEval){return EvaluateSingleProduct(args);}if (firstArg is RefEval){return EvaluateSingleProduct(args);}if (firstArg is TwoDEval){TwoDEval ae = (TwoDEval)firstArg;if (ae.IsRow && ae.IsColumn){return EvaluateSingleProduct(args);}return EvaluateAreaSumProduct(args);}}catch (EvaluationException e){return e.GetErrorEval();}throw new RuntimeException("Invalid arg type for SUMPRODUCT: ("+ firstArg.GetType().Name + ")");} |
public DescribeParameterGroupsResult describeParameterGroups(DescribeParameterGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeParameterGroups(request);} | public virtual DescribeParameterGroupsResponse DescribeParameterGroups(DescribeParameterGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeParameterGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeParameterGroupsResponseUnmarshaller.Instance;return Invoke<DescribeParameterGroupsResponse>(request, options);} |
public static char[] grow(char[] array, int minSize) {assert minSize >= 0: "size must be positive (got " + minSize + "): likely integer overflow?";if (array.length < minSize) {return growExact(array, oversize(minSize, Character.BYTES));} else return array;} | public static bool[] Grow(bool[] array, int minSize){Debug.Assert(minSize >= 0, "size must be positive (got " + minSize + "): likely integer overflow?");if (array.Length < minSize){bool[] newArray = new bool[Oversize(minSize, 1)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}} |
public double readDouble() throws IOException {return primitiveTypes.readDouble();} | public virtual double readDouble(){throw new System.NotImplementedException();} |
public void setTokenSource(TokenSource tokenSource) {this.tokenSource = tokenSource;tokens.clear();p = -1;fetchedEOF = false;} | public virtual void SetTokenSource(ITokenSource tokenSource){this._tokenSource = tokenSource;tokens.Clear();p = -1;this.fetchedEOF = false;} |
public void reset(Parser recognizer) {endErrorCondition(recognizer);} | public virtual void Reset(Parser recognizer){EndErrorCondition(recognizer);} |
public DescribeVpcPeeringAuthorizationsResult describeVpcPeeringAuthorizations(DescribeVpcPeeringAuthorizationsRequest request) {request = beforeClientExecution(request);return executeDescribeVpcPeeringAuthorizations(request);} | public virtual DescribeVpcPeeringAuthorizationsResponse DescribeVpcPeeringAuthorizations(DescribeVpcPeeringAuthorizationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcPeeringAuthorizationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcPeeringAuthorizationsResponseUnmarshaller.Instance;return Invoke<DescribeVpcPeeringAuthorizationsResponse>(request, options);} |
public CreateDocumentationVersionResult createDocumentationVersion(CreateDocumentationVersionRequest request) {request = beforeClientExecution(request);return executeCreateDocumentationVersion(request);} | public virtual CreateDocumentationVersionResponse CreateDocumentationVersion(CreateDocumentationVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDocumentationVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDocumentationVersionResponseUnmarshaller.Instance;return Invoke<CreateDocumentationVersionResponse>(request, options);} |
public CreateClusterResult createCluster(CreateClusterRequest request) {request = beforeClientExecution(request);return executeCreateCluster(request);} | public virtual CreateClusterResponse CreateCluster(CreateClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateClusterResponseUnmarshaller.Instance;return Invoke<CreateClusterResponse>(request, options);} |
public DoubleBuffer compact() {if (byteBuffer.isReadOnly()) {throw new ReadOnlyBufferException();}byteBuffer.limit(limit * SizeOf.DOUBLE);byteBuffer.position(position * SizeOf.DOUBLE);byteBuffer.compact();byteBuffer.clear();position = limit - position;limit = capacity;mark = UNSET_MARK;return this;} | public override java.nio.DoubleBuffer compact(){if (byteBuffer.isReadOnly()){throw new java.nio.ReadOnlyBufferException();}byteBuffer.limit(_limit * libcore.io.SizeOf.DOUBLE);byteBuffer.position(_position * libcore.io.SizeOf.DOUBLE);byteBuffer.compact();byteBuffer.clear();_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;} |
public int[] grow() {final int[] ord = super.grow();boost = ArrayUtil.grow(boost, ord.length);if (termState.length < ord.length) {TermStates[] tmpTermState = new TermStates[ArrayUtil.oversize(ord.length, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];System.arraycopy(termState, 0, tmpTermState, 0, termState.length);termState = tmpTermState;}assert termState.length >= ord.length && boost.length >= ord.length;return ord;} | public override int[] Grow(){int[] ord = base.Grow();boost = ArrayUtil.Grow(boost, ord.Length);if (termState.Length < ord.Length){TermContext[] tmpTermState = new TermContext[ArrayUtil.Oversize(ord.Length, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];Array.Copy(termState, 0, tmpTermState, 0, termState.Length);termState = tmpTermState;}Debug.Assert(termState.Length >= ord.Length && boost.Length >= ord.Length);return ord;} |
public DefaultColWidthRecord(RecordInputStream in){field_1_col_width = in.readUShort();} | public DefaultColWidthRecord(RecordInputStream in1){field_1_col_width = in1.ReadUShort();} |
public GetAttributesResult getAttributes(GetAttributesRequest request) {request = beforeClientExecution(request);return executeGetAttributes(request);} | public virtual GetAttributesResponse GetAttributes(GetAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAttributesResponseUnmarshaller.Instance;return Invoke<GetAttributesResponse>(request, options);} |
public GetSubUserListRequest() {super("cr", "2016-06-07", "GetSubUserList", "cr");setUriPattern("/users/subAccount");setMethod(MethodType.GET);} | public GetSubUserListRequest(): base("cr", "2016-06-07", "GetSubUserList", "cr", "openAPI"){UriPattern = "/users/subAccount";Method = MethodType.GET;} |
public void setQueryConfigHandler(QueryConfigHandler queryConfigHandler) {this.queryConfigHandler = queryConfigHandler;} | public virtual void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler){this.queryConfigHandler = queryConfigHandler;} |
public WindowCacheConfig() {packedGitOpenFiles = 128;packedGitLimit = 10 * MB;useStrongRefs = false;packedGitWindowSize = 8 * KB;packedGitMMAP = false;deltaBaseCacheLimit = 10 * MB;streamFileThreshold = PackConfig.DEFAULT_BIG_FILE_THRESHOLD;} | public WindowCacheConfig(){packedGitOpenFiles = 128;packedGitLimit = 10 * MB;packedGitWindowSize = 8 * KB;packedGitMMAP = false;deltaBaseCacheLimit = 10 * MB;streamFileThreshold = PackConfig.DEFAULT_BIG_FILE_THRESHOLD;} |
public MutableFPNumber copy() {return new MutableFPNumber(_significand, _binaryExponent);} | public MutableFPNumber Copy(){return new MutableFPNumber(_significand, _binaryExponent);} |
public ShortBuffer asReadOnlyBuffer() {ShortToByteBufferAdapter buf = new ShortToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf.limit = limit;buf.position = position;buf.mark = mark;buf.byteBuffer.order = byteBuffer.order;return buf;} | public override java.nio.ShortBuffer asReadOnlyBuffer(){java.nio.ShortToByteBufferAdapter buf = new java.nio.ShortToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf._limit = _limit;buf._position = _position;buf._mark = _mark;buf.byteBuffer._order = byteBuffer._order;return buf;} |
public DescribeReservedCacheNodesResult describeReservedCacheNodes(DescribeReservedCacheNodesRequest request) {request = beforeClientExecution(request);return executeDescribeReservedCacheNodes(request);} | public virtual DescribeReservedCacheNodesResponse DescribeReservedCacheNodes(DescribeReservedCacheNodesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedCacheNodesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedCacheNodesResponseUnmarshaller.Instance;return Invoke<DescribeReservedCacheNodesResponse>(request, options);} |
public ListOperationsResult listOperations(ListOperationsRequest request) {request = beforeClientExecution(request);return executeListOperations(request);} | public virtual ListOperationsResponse ListOperations(ListOperationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListOperationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListOperationsResponseUnmarshaller.Instance;return Invoke<ListOperationsResponse>(request, options);} |
public SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest() {super("Domain-intl", "2017-12-18", "SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential", "domain");setMethod(MethodType.POST);} | public SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredentialRequest(): base("Domain-intl", "2017-12-18", "SaveTaskForSubmittingDomainRealNameVerificationByIdentityCredential", "domain", "openAPI"){Method = MethodType.POST;} |
public BatchReadResult batchRead(BatchReadRequest request) {request = beforeClientExecution(request);return executeBatchRead(request);} | public virtual BatchReadResponse BatchRead(BatchReadRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchReadRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchReadResponseUnmarshaller.Instance;return Invoke<BatchReadResponse>(request, options);} |
public InstanceProfileCredentials fetch(int retryTimes) throws ClientException {for (int i = 0; i <= retryTimes; i++) {try {return fetch();} catch (ClientException e) {if (i == retryTimes) {throw e;}}}throw new ClientException("Failed to connect ECS Metadata Service: Max retry times exceeded.");} | public InstanceProfileCredentials Fetch(int retryTimes){for (var i = 0; i <= retryTimes; i++){try{return Fetch();}catch (ClientException e){if (i == retryTimes){throw new ClientException(e.ErrorCode, e.ErrorMessage);}}}throw new ClientException("Failed to connect ECS Metadata Service: Max retry times exceeded.");} |
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex) {Date now = new Date(System.currentTimeMillis());return new NumberEval(DateUtil.getExcelDate(now));} | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex){return new NumberEval(DateUtil.GetExcelDate(DateTime.Now));} |
public static int idealIntArraySize(int need) {return idealByteArraySize(need * 4) / 4;} | public static int idealIntArraySize(int need){return idealByteArraySize(need * 4) / 4;} |
public long record(IndexSearcher searcher) throws IOException {ensureOpen();final long version = ((DirectoryReader) searcher.getIndexReader()).getVersion();SearcherTracker tracker = searchers.get(version);if (tracker == null) {tracker = new SearcherTracker(searcher);if (searchers.putIfAbsent(version, tracker) != null) {tracker.close();}} else if (tracker.searcher != searcher) {throw new IllegalArgumentException("the provided searcher has the same underlying reader version yet the searcher instance differs from before (new=" + searcher + " vs old=" + tracker.searcher);}return version;} | public virtual long Record(IndexSearcher searcher){EnsureOpen();var version = ((DirectoryReader)searcher.IndexReader).Version;var factoryMethodCalled = false;var tracker = _searchers.GetOrAdd(version, l => new Lazy<SearcherTracker>(() => { factoryMethodCalled = true; return new SearcherTracker(searcher); })).Value;if (!factoryMethodCalled && tracker.Searcher != searcher){throw new ArgumentException("the provided searcher has the same underlying reader version yet the searcher instance differs from before (new=" + searcher + " vs old=" + tracker.Searcher);}return version;} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.