java
stringlengths 28
1.4k
| C#
stringlengths 27
1.38k
|
---|---|
public CreateTransitGatewayVpcAttachmentResult createTransitGatewayVpcAttachment(CreateTransitGatewayVpcAttachmentRequest request) {request = beforeClientExecution(request);return executeCreateTransitGatewayVpcAttachment(request);} | public virtual CreateTransitGatewayVpcAttachmentResponse CreateTransitGatewayVpcAttachment(CreateTransitGatewayVpcAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitGatewayVpcAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitGatewayVpcAttachmentResponseUnmarshaller.Instance;return Invoke<CreateTransitGatewayVpcAttachmentResponse>(request, options);} |
public boolean isLarge() {return true;} | public override bool IsLarge(){return true;} |
public DisassociateSubnetCidrBlockResult disassociateSubnetCidrBlock(DisassociateSubnetCidrBlockRequest request) {request = beforeClientExecution(request);return executeDisassociateSubnetCidrBlock(request);} | public virtual DisassociateSubnetCidrBlockResponse DisassociateSubnetCidrBlock(DisassociateSubnetCidrBlockRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateSubnetCidrBlockRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateSubnetCidrBlockResponseUnmarshaller.Instance;return Invoke<DisassociateSubnetCidrBlockResponse>(request, options);} |
public static byte[] encode(String str) {final ByteBuffer bb = UTF_8.encode(str);final int len = bb.limit();if (bb.hasArray() && bb.arrayOffset() == 0) {final byte[] arr = bb.array();if (arr.length == len)return arr;}final byte[] arr = new byte[len];bb.get(arr);return arr;} | public static byte[] Encode(string str){ByteBuffer bb = NGit.Constants.CHARSET.Encode(str);int len = bb.Limit();if (bb.HasArray() && bb.ArrayOffset() == 0){byte[] arr = ((byte[])bb.Array());if (arr.Length == len){return arr;}}byte[] arr_1 = new byte[len];bb.Get(arr_1);return arr_1;} |
public DescribePlacementGroupsResult describePlacementGroups() {return describePlacementGroups(new DescribePlacementGroupsRequest());} | public virtual DescribePlacementGroupsResponse DescribePlacementGroups(){return DescribePlacementGroups(new DescribePlacementGroupsRequest());} |
public UpdateTrialResult updateTrial(UpdateTrialRequest request) {request = beforeClientExecution(request);return executeUpdateTrial(request);} | public virtual UpdateTrialResponse UpdateTrial(UpdateTrialRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTrialRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTrialResponseUnmarshaller.Instance;return Invoke<UpdateTrialResponse>(request, options);} |
public DeleteTransitGatewayPeeringAttachmentResult deleteTransitGatewayPeeringAttachment(DeleteTransitGatewayPeeringAttachmentRequest request) {request = beforeClientExecution(request);return executeDeleteTransitGatewayPeeringAttachment(request);} | public virtual DeleteTransitGatewayPeeringAttachmentResponse DeleteTransitGatewayPeeringAttachment(DeleteTransitGatewayPeeringAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTransitGatewayPeeringAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTransitGatewayPeeringAttachmentResponseUnmarshaller.Instance;return Invoke<DeleteTransitGatewayPeeringAttachmentResponse>(request, options);} |
public boolean isLarge() {try {getCachedBytes();return false;} catch (LargeObjectException tooBig) {return true;}} | public virtual bool IsLarge(){try{GetCachedBytes();return false;}catch (LargeObjectException){return true;}} |
public synchronized Collection<V> values() {Collection<V> vs = values;return (vs != null) ? vs : (values = new Values());} | public virtual java.util.Collection<V> values(){lock (this){java.util.Collection<V> vs = _values;return (vs != null) ? vs : (_values = new java.util.Hashtable<K, V>.Values(this));}} |
public EscherComplexProperty(short propertyNumber, boolean isBlipId, byte[] complexData) {this(propertyNumber, isBlipId, complexData == null ? 0 : complexData.length);setComplexData(complexData);} | public EscherComplexProperty(short propertyNumber, bool isBlipId, byte[] complexData): base(propertyNumber, true, isBlipId){this._complexData = complexData;} |
public DeleteMatchmakingRuleSetResult deleteMatchmakingRuleSet(DeleteMatchmakingRuleSetRequest request) {request = beforeClientExecution(request);return executeDeleteMatchmakingRuleSet(request);} | public virtual DeleteMatchmakingRuleSetResponse DeleteMatchmakingRuleSet(DeleteMatchmakingRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMatchmakingRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMatchmakingRuleSetResponseUnmarshaller.Instance;return Invoke<DeleteMatchmakingRuleSetResponse>(request, options);} |
public UnassignIpv6AddressesResult unassignIpv6Addresses(UnassignIpv6AddressesRequest request) {request = beforeClientExecution(request);return executeUnassignIpv6Addresses(request);} | public virtual UnassignIpv6AddressesResponse UnassignIpv6Addresses(UnassignIpv6AddressesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UnassignIpv6AddressesRequestMarshaller.Instance;options.ResponseUnmarshaller = UnassignIpv6AddressesResponseUnmarshaller.Instance;return Invoke<UnassignIpv6AddressesResponse>(request, options);} |
public boolean equals(Object _other) {if ((_other instanceof FacetResult) == false) {return false;}FacetResult other = (FacetResult) _other;return value.equals(other.value) &&childCount == other.childCount &&Arrays.equals(labelValues, other.labelValues);} | public override bool Equals(object other){if ((other is FacetResult) == false){return false;}FacetResult other2 = (FacetResult)other;return Value.Equals(other2.Value) && ChildCount == other2.ChildCount && Arrays.Equals(LabelValues, other2.LabelValues);} |
public ConfirmSubscriptionRequest(String topicArn, String token) {setTopicArn(topicArn);setToken(token);} | public ConfirmSubscriptionRequest(string topicArn, string token){_topicArn = topicArn;_token = token;} |
public Ref put(String keyName, Ref value) {String name = toRefName(keyName);if (!name.equals(value.getName()))throw new IllegalArgumentException();if (!resolved.isEmpty()) {for (Ref ref : resolved)loose = loose.put(ref);resolved = RefList.emptyList();}int idx = loose.find(name);if (0 <= idx) {Ref prior = loose.get(name);loose = loose.set(idx, value);return prior;}Ref prior = get(keyName);loose = loose.add(idx, value);sizeIsValid = false;return prior;} | public override Ref Put(string keyName, Ref value){string name = ToRefName(keyName);if (!name.Equals(value.GetName())){throw new ArgumentException();}if (!resolved.IsEmpty()){foreach (Ref @ref in resolved){loose = loose.Put(@ref);}resolved = RefList.EmptyList();}int idx = loose.Find(name);if (0 <= idx){Ref prior = loose.Get(name);loose = loose.Set(idx, value);return prior;}else{Ref prior = Get(keyName);loose = loose.Add(idx, value);sizeIsValid = false;return prior;}} |
public void respondActivityTaskCanceled(RespondActivityTaskCanceledRequest request) {request = beforeClientExecution(request);executeRespondActivityTaskCanceled(request);} | public virtual RespondActivityTaskCanceledResponse RespondActivityTaskCanceled(RespondActivityTaskCanceledRequest request){var options = new InvokeOptions();options.RequestMarshaller = RespondActivityTaskCanceledRequestMarshaller.Instance;options.ResponseUnmarshaller = RespondActivityTaskCanceledResponseUnmarshaller.Instance;return Invoke<RespondActivityTaskCanceledResponse>(request, options);} |
public DocumentInputStream createDocumentInputStream(final Entry document)throws IOException{if (!document.isDocumentEntry()) {throw new IOException("Entry '" + document.getName()+ "' is not a DocumentEntry");}DocumentEntry entry = (DocumentEntry)document;return new DocumentInputStream(entry);} | public DocumentInputStream CreateDocumentInputStream(Entry document){if (!document.IsDocumentEntry){throw new IOException("Entry '" + document.Name+ "' is not a DocumentEntry");}DocumentEntry entry = (DocumentEntry)document;return new DocumentInputStream(entry);} |
public DescribeInstanceStatusResult describeInstanceStatus() {return describeInstanceStatus(new DescribeInstanceStatusRequest());} | public virtual DescribeInstanceStatusResponse DescribeInstanceStatus(){return DescribeInstanceStatus(new DescribeInstanceStatusRequest());} |
public boolean requiresCommitBody() {return true;} | public virtual bool RequiresCommitBody(){return true;} |
public BinaryHunk getReverseBinaryHunk() {return reverseBinaryHunk;} | public virtual BinaryHunk GetReverseBinaryHunk(){return reverseBinaryHunk;} |
public static synchronized CoderResult malformedForLength(int length)throws IllegalArgumentException {if (length > 0) {Integer key = Integer.valueOf(length);synchronized (_malformedErrors) {CoderResult r = _malformedErrors.get(key);if (r == null) {r = new CoderResult(TYPE_MALFORMED_INPUT, length);_malformedErrors.put(key, r);}return r;}}throw new IllegalArgumentException("Length must be greater than 0; was " + length);} | public static java.nio.charset.CoderResult malformedForLength(int length_1){lock (typeof(CoderResult)){if (length_1 > 0){int key = Sharpen.Util.IntValueOf(length_1);lock (_malformedErrors){java.nio.charset.CoderResult r = _malformedErrors.get(key);if (r == null){r = new java.nio.charset.CoderResult(TYPE_MALFORMED_INPUT, length_1);_malformedErrors.put(key, r);}return r;}}throw new System.ArgumentException("Length must be greater than 0; was " + length_1);}} |
public ByteBuffer get(byte[] dst, int dstOffset, int byteCount) {Arrays.checkOffsetAndCount(dst.length, dstOffset, byteCount);if (byteCount > remaining()) {throw new BufferUnderflowException();}for (int i = dstOffset; i < dstOffset + byteCount; ++i) {dst[i] = get();}return this;} | public virtual java.nio.ByteBuffer get(byte[] dst, int dstOffset, int byteCount){java.util.Arrays.checkOffsetAndCount(dst.Length, dstOffset, byteCount);if (byteCount > remaining()){throw new java.nio.BufferUnderflowException();}{for (int i = dstOffset; i < dstOffset + byteCount; ++i){dst[i] = get();}}return this;} |
public final ObjectId getObjectId(int nthPosition) {if (nthPosition >= 0)return getObjectId((long) nthPosition);final int u31 = nthPosition >>> 1;final int one = nthPosition & 1;return getObjectId(((long) u31) << 1 | one);} | public ObjectId GetObjectId(int nthPosition){if (nthPosition >= 0){return GetObjectId((long)nthPosition);}int u31 = (int)(((uint)nthPosition) >> 1);int one = nthPosition & 1;return GetObjectId(((long)u31) << 1 | one);} |
public UpdateRoomMembershipResult updateRoomMembership(UpdateRoomMembershipRequest request) {request = beforeClientExecution(request);return executeUpdateRoomMembership(request);} | public virtual UpdateRoomMembershipResponse UpdateRoomMembership(UpdateRoomMembershipRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRoomMembershipRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRoomMembershipResponseUnmarshaller.Instance;return Invoke<UpdateRoomMembershipResponse>(request, options);} |
public void formatValue(StringBuffer toAppendTo, Object value) {double elapsed = ((Number) value).doubleValue();if (elapsed < 0) {toAppendTo.append('-');elapsed = -elapsed;}Object[] parts = new Long[specs.size()];for (int i = 0; i < specs.size(); i++) {parts[i] = specs.get(i).valueFor(elapsed);}try (Formatter formatter = new Formatter(toAppendTo, Locale.ROOT)) {formatter.format(printfFmt, parts);}} | public override void FormatValue(StringBuilder toAppendTo, Object value){double elapsed = ((double)value);if (elapsed < 0){toAppendTo.Append('-');elapsed = -elapsed;}long[] parts = new long[specs.Count];for (int i = 0; i < specs.Count; i++){parts[i] = specs[(i)].ValueFor(elapsed);}string[] fmtPart = printfFmt.Split(":. []".ToCharArray());string split = string.Empty;int pos = 0;int index = 0;Regex regFmt = new Regex("D\\d+");foreach (string fmt in fmtPart){pos += fmt.Length;if (pos < printfFmt.Length){split = printfFmt[pos].ToString();pos++;}elsesplit = string.Empty;if (regFmt.IsMatch(fmt)){toAppendTo.Append(parts[index].ToString(fmt)).Append(split);index++;}else{toAppendTo.Append(fmt).Append(split);}}} |
public void writeDouble(double v) {writeContinueIfRequired(8);_ulrOutput.writeDouble(v);} | public void WriteDouble(double v){WriteContinueIfRequired(8);_ulrOutput.WriteDouble(v);} |
public CancelExportTaskResult cancelExportTask(CancelExportTaskRequest request) {request = beforeClientExecution(request);return executeCancelExportTask(request);} | public virtual CancelExportTaskResponse CancelExportTask(CancelExportTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelExportTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelExportTaskResponseUnmarshaller.Instance;return Invoke<CancelExportTaskResponse>(request, options);} |
public String toString() {if (length == 0) {return "FacetLabel: []";}String[] parts = new String[length];System.arraycopy(components, 0, parts, 0, length);return "FacetLabel: " + Arrays.toString(parts);} | public override string ToString(){if (Length == 0){return "FacetLabel: []";}string[] parts = new string[Length];Array.Copy(Components, 0, parts, 0, Length);return "FacetLabel: " + Arrays.ToString(parts);} |
public DescribeEventTrackerResult describeEventTracker(DescribeEventTrackerRequest request) {request = beforeClientExecution(request);return executeDescribeEventTracker(request);} | public virtual DescribeEventTrackerResponse DescribeEventTracker(DescribeEventTrackerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEventTrackerRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEventTrackerResponseUnmarshaller.Instance;return Invoke<DescribeEventTrackerResponse>(request, options);} |
public UpdateJourneyResult updateJourney(UpdateJourneyRequest request) {request = beforeClientExecution(request);return executeUpdateJourney(request);} | public virtual UpdateJourneyResponse UpdateJourney(UpdateJourneyRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateJourneyRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateJourneyResponseUnmarshaller.Instance;return Invoke<UpdateJourneyResponse>(request, options);} |
public RemoveTagsFromVaultResult removeTagsFromVault(RemoveTagsFromVaultRequest request) {request = beforeClientExecution(request);return executeRemoveTagsFromVault(request);} | public virtual RemoveTagsFromVaultResponse RemoveTagsFromVault(RemoveTagsFromVaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveTagsFromVaultRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveTagsFromVaultResponseUnmarshaller.Instance;return Invoke<RemoveTagsFromVaultResponse>(request, options);} |
public RevertCommand include(Ref commit) {checkCallable();commits.add(commit);return this;} | public virtual NGit.Api.RevertCommand Include(Ref commit){CheckCallable();commits.AddItem(commit);return this;} |
public DeleteFargateProfileResult deleteFargateProfile(DeleteFargateProfileRequest request) {request = beforeClientExecution(request);return executeDeleteFargateProfile(request);} | public virtual DeleteFargateProfileResponse DeleteFargateProfile(DeleteFargateProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFargateProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFargateProfileResponseUnmarshaller.Instance;return Invoke<DeleteFargateProfileResponse>(request, options);} |
public boolean evaluate(int cmpResult) {switch (_code) {case NONE:case EQ:return cmpResult == 0;case NE: return cmpResult != 0;case LT: return cmpResult < 0;case LE: return cmpResult <= 0;case GT: return cmpResult > 0;case GE: return cmpResult >= 0;}throw new RuntimeException("Cannot call boolean evaluate on non-equality operator '"+ _representation + "'");} | public bool Evaluate(int cmpResult){switch (_code){case NONE:case EQ:return cmpResult == 0;case NE: return cmpResult != 0;case LT: return cmpResult < 0;case LE: return cmpResult <= 0;case GT: return cmpResult > 0;case GE: return cmpResult >= 0;}throw new Exception("Cannot call bool Evaluate on non-equality operator '"+ _representation + "'");} |
public SeriesRecord getSeries() {return series;} | public SeriesRecord GetSeries(){return series;} |
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[UNCALCED]\n");buffer.append(" _reserved: ").append(_reserved).append('\n');buffer.append("[/UNCALCED]\n");return buffer.toString();} | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[UNCALCED]\n");buffer.Append("[/UNCALCED]\n");return buffer.ToString();} |
public ListBotsResult listBots(ListBotsRequest request) {request = beforeClientExecution(request);return executeListBots(request);} | public virtual ListBotsResponse ListBots(ListBotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListBotsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListBotsResponseUnmarshaller.Instance;return Invoke<ListBotsResponse>(request, options);} |
public int getPort() {return port;} | public int getPort(){return port;} |
public void writeLong(long value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeLong(value);} | public virtual void writeLong(long value){throw new System.NotImplementedException();} |
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {I_MatchPredicate mp = createCriteriaPredicate(arg1, srcRowIndex, srcColumnIndex);if(mp == null) {return NumberEval.ZERO;}double result = countMatchingCellsInArea(arg0, mp);return new NumberEval(result);} | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){IMatchPredicate mp = CreateCriteriaPredicate(arg1, srcRowIndex, srcColumnIndex);if (mp == null){return NumberEval.ZERO;}double result = CountMatchingCellsInArea(arg0, mp);return new NumberEval(result);} |
public boolean requiresCommitBody() {return true;} | public override bool RequiresCommitBody(){return true;} |
public DeleteVpcResult deleteVpc(DeleteVpcRequest request) {request = beforeClientExecution(request);return executeDeleteVpc(request);} | public virtual DeleteVpcResponse DeleteVpc(DeleteVpcRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpcRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpcResponseUnmarshaller.Instance;return Invoke<DeleteVpcResponse>(request, options);} |
public VoteOnProposalResult voteOnProposal(VoteOnProposalRequest request) {request = beforeClientExecution(request);return executeVoteOnProposal(request);} | public virtual VoteOnProposalResponse VoteOnProposal(VoteOnProposalRequest request){var options = new InvokeOptions();options.RequestMarshaller = VoteOnProposalRequestMarshaller.Instance;options.ResponseUnmarshaller = VoteOnProposalResponseUnmarshaller.Instance;return Invoke<VoteOnProposalResponse>(request, options);} |
public void grow() {costs = ArrayUtil.grow(costs, 1+count);lastRightID = ArrayUtil.grow(lastRightID, 1+count);backPos = ArrayUtil.grow(backPos, 1+count);backIndex = ArrayUtil.grow(backIndex, 1+count);backID = ArrayUtil.grow(backID, 1+count);final Type[] newBackType = new Type[backID.length];System.arraycopy(backType, 0, newBackType, 0, backType.length);backType = newBackType;} | public void Grow(){costs = ArrayUtil.Grow(costs, 1 + count);lastRightID = ArrayUtil.Grow(lastRightID, 1 + count);backPos = ArrayUtil.Grow(backPos, 1 + count);backIndex = ArrayUtil.Grow(backIndex, 1 + count);backID = ArrayUtil.Grow(backID, 1 + count);JapaneseTokenizerType[] newBackType = new JapaneseTokenizerType[backID.Length];System.Array.Copy(backType, 0, newBackType, 0, backType.Length);backType = newBackType;} |
public String toString() {return "MERGE_BASE"; } | public override string ToString(){return "MERGE_BASE";} |
public float readFloat() throws IOException {return primitiveTypes.readFloat();} | public virtual float readFloat(){throw new System.NotImplementedException();} |
public String substring(int start) {if (start >= 0 && start <= count) {if (start == count) {return "";}return new String(value, start, count - start);}throw indexAndLength(start);} | public virtual string substring(int start){if (start >= 0 && start <= count){if (start == count){return string.Empty;}return new string(value, start, count - start);}throw indexAndLength(start);} |
public DBCellRecord(RecordInputStream in) {field_1_row_offset = in.readUShort();int size = in.remaining();field_2_cell_offsets = new short[ size / 2 ];for (int i=0;i<field_2_cell_offsets.length;i++) {field_2_cell_offsets[ i ] = in.readShort();}} | public DBCellRecord(RecordInputStream in1){field_1_row_offset = in1.ReadUShort();int size = in1.Remaining;field_2_cell_offsets = new short[size / 2];for (int i = 0; i < field_2_cell_offsets.Length; i++){field_2_cell_offsets[i] = in1.ReadShort();}} |
public DefaultAcsClient(IClientProfile profile) {this(profile, new StaticCredentialsProvider(profile));} | public DefaultAcsClient(IClientProfile profile) : this(){clientProfile = profile;credentialsProvider = new StaticCredentialsProvider(profile);clientProfile.SetCredentialsProvider(credentialsProvider);} |
public int findStartOffset(StringBuilder buffer, int start) {if( start > buffer.length() || start < 1 ) return start;int offset, count = maxScan;for( offset = start; offset > 0 && count > 0; count-- ){if( boundaryChars.contains( buffer.charAt( offset - 1 ) ) ) return offset;offset--;}if (offset == 0) {return 0;}return start;} | public virtual int FindStartOffset(StringBuilder buffer, int start){if (start > buffer.Length || start < 1) return start;int offset, count = m_maxScan;for (offset = start; offset > 0 && count > 0; count--){if (m_boundaryChars.Contains(buffer[offset - 1])) return offset;offset--;}if (offset == 0){return 0;}return start;} |
public BufferedTokenStream(TokenSource tokenSource) {if (tokenSource == null) {throw new NullPointerException("tokenSource cannot be null");}this.tokenSource = tokenSource;} | public BufferedTokenStream(ITokenSource tokenSource){if (tokenSource == null){throw new ArgumentNullException("tokenSource cannot be null");}this._tokenSource = tokenSource;} |
public final boolean isDirect() {return false;} | public sealed override bool isDirect(){return false;} |
public TokenMgrError(String message, int reason) {super(message);errorCode = reason;} | public TokenMgrError(string message, int reason): base(message){errorCode = reason;} |
public int getCells() {int size = 0;for (Row row : rows)size += row.getCells();return size;} | public virtual int GetCells(){int size = 0;foreach (Row row in rows)size += row.GetCells();return size;} |
public int findStartOfRowOutlineGroup(int row) {RowRecord rowRecord = this.getRow( row );int level = rowRecord.getOutlineLevel();int currentRow = row;while (currentRow >= 0 && this.getRow( currentRow ) != null) {rowRecord = this.getRow( currentRow );if (rowRecord.getOutlineLevel() < level) {return currentRow + 1;}currentRow--;}return currentRow + 1;} | public int FindStartOfRowOutlineGroup(int row){RowRecord rowRecord = this.GetRow(row);int level = rowRecord.OutlineLevel;int currentRow = row;while (this.GetRow(currentRow) != null){rowRecord = this.GetRow(currentRow);if (rowRecord.OutlineLevel < level)return currentRow + 1;currentRow--;}return currentRow + 1;} |
public DirCacheBuildIterator(DirCacheBuilder dcb) {super(dcb.getDirCache());builder = dcb;} | public DirCacheBuildIterator(DirCacheBuilder dcb) : base(dcb.GetDirCache()){builder = dcb;} |
public DeleteGraphResult deleteGraph(DeleteGraphRequest request) {request = beforeClientExecution(request);return executeDeleteGraph(request);} | public virtual DeleteGraphResponse DeleteGraph(DeleteGraphRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGraphRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGraphResponseUnmarshaller.Instance;return Invoke<DeleteGraphResponse>(request, options);} |
public String toString() {return "id=" + id + " version=" + version + " files=" + sourceFiles;} | public override string ToString(){return string.Format("id={0} version={1} files={2}", Id, Version, SourceFiles);} |
public static Calendar parseDate(String strVal) throws EvaluationException {String[] parts = Pattern.compile("/").split(strVal);if (parts.length != 3) {throw new EvaluationException(ErrorEval.VALUE_INVALID);}String part2 = parts[2];int spacePos = part2.indexOf(' ');if (spacePos > 0) {part2 = part2.substring(0, spacePos);}int f0;int f1;int f2;try {f0 = Integer.parseInt(parts[0]);f1 = Integer.parseInt(parts[1]);f2 = Integer.parseInt(part2);} catch (NumberFormatException e) {throw new EvaluationException(ErrorEval.VALUE_INVALID);}if (f0 < 0 || f1 < 0 || f2 < 0 || (f0 > 12 && f1 > 12 && f2 > 12)) {throw new EvaluationException(ErrorEval.VALUE_INVALID);}if (f0 >= 1900 && f0 < 9999) {return makeDate(f0, f1, f2);}throw new RuntimeException("Unable to determine date format for text '" + strVal + "'");} | public static DateTime ParseDate(String strVal){String[] parts = strVal.Split("-/".ToCharArray());if (parts.Length != 3){throw new EvaluationException(ErrorEval.VALUE_INVALID);}String part2 = parts[2];int spacePos = part2.IndexOf(' ');if (spacePos > 0){part2 = part2.Substring(0, spacePos);}int f0;int f1;int f2;try{f0 = int.Parse(parts[0]);f1 = int.Parse(parts[1]);f2 = int.Parse(part2);}catch (FormatException){throw new EvaluationException(ErrorEval.VALUE_INVALID);}if (f0 < 0 || f1 < 0 || f2 < 0 || (f0 > 12 && f1 > 12 && f2 > 12)){throw new EvaluationException(ErrorEval.VALUE_INVALID);}if (f0 >= 1900 && f0 < 9999){return MakeDate(f0, f1, f2);}if (false){return MakeDate(f2, f0, f1);}throw new RuntimeException("Unable to determine date format for text '" + strVal + "'");} |
public void removeMMClipCount() {remove1stProperty(PropertyIDMap.PID_MMCLIPCOUNT);} | public void RemoveMMClipCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_MMCLIPCOUNT);} |
public void setDeltaCacheSize(long size) {deltaCacheSize = size;} | public virtual void SetDeltaCacheSize(long size){deltaCacheSize = size;} |
public UpdateKnowledgeRequest() {super("Chatbot", "2017-10-11", "UpdateKnowledge", "beebot");setMethod(MethodType.POST);} | public UpdateKnowledgeRequest(): base("Chatbot", "2017-10-11", "UpdateKnowledge", "beebot", "openAPI"){Method = MethodType.POST;} |
public void readBytes(byte[] b, int offset, int len) {for(int i=0;i<len;i++) {b[offset+i] = bytes[pos--];}} | public override void ReadBytes(byte[] b, int offset, int len){for (int i = 0; i < len; i++){b[offset + i] = bytes[pos--];}} |
public void fillArc(int x, int y, int width, int height,int startAngle, int arcAngle){if (logger.check( POILogger.WARN ))logger.log(POILogger.WARN,"fillArc not supported");} | public void FillArc(int x, int y, int width, int height,int startAngle, int arcAngle){if (Logger.Check(POILogger.WARN))Logger.Log(POILogger.WARN, "FillArc not supported");} |
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex,ValueEval arg0, ValueEval arg1) {double result;try {ValueVector vvY = createValueVector(arg0);ValueVector vvX = createValueVector(arg1);int size = vvX.getSize();if (size == 0 || vvY.getSize() != size) {return ErrorEval.NA;}result = evaluateInternal(vvX, vvY, size);} catch (EvaluationException e) {return e.getErrorEval();}if (Double.isNaN(result) || Double.isInfinite(result)) {return ErrorEval.NUM_ERROR;}return new NumberEval(result);} | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex,ValueEval arg0, ValueEval arg1){double result;try{ValueVector vvY = CreateValueVector(arg0);ValueVector vvX = CreateValueVector(arg1);int size = vvX.Size;if (size == 0 || vvY.Size != size){return ErrorEval.NA;}result = EvaluateInternal(vvX, vvY, size);}catch (EvaluationException e){return e.GetErrorEval();}if (Double.IsNaN(result) || Double.IsInfinity(result)){return ErrorEval.NUM_ERROR;}return new NumberEval(result);} |
public void copyUpdatedCells(Workbook workbook) {_sewb.copyUpdatedCells(workbook);} | public void CopyUpdatedCells(IWorkbook workbook){_sewb.CopyUpdatedCells(workbook);} |
@Override public final String toString() {return key + "=" + value;} | public sealed override string ToString(){return key + "=" + value;} |
public DescribeReservedInstancesOfferingsResult describeReservedInstancesOfferings() {return describeReservedInstancesOfferings(new DescribeReservedInstancesOfferingsRequest());} | public virtual DescribeReservedInstancesOfferingsResponse DescribeReservedInstancesOfferings(){return DescribeReservedInstancesOfferings(new DescribeReservedInstancesOfferingsRequest());} |
public CacheParameterGroup createCacheParameterGroup(CreateCacheParameterGroupRequest request) {request = beforeClientExecution(request);return executeCreateCacheParameterGroup(request);} | public virtual CreateCacheParameterGroupResponse CreateCacheParameterGroup(CreateCacheParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCacheParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCacheParameterGroupResponseUnmarshaller.Instance;return Invoke<CreateCacheParameterGroupResponse>(request, options);} |
public OldStringRecord(RecordInputStream in) {sid = in.getSid();if (in.getSid() == biff2_sid) {field_1_string_len = (short)in.readUByte();} else {field_1_string_len = in.readShort();}field_2_bytes = IOUtils.safelyAllocate(field_1_string_len, MAX_RECORD_LENGTH);in.read(field_2_bytes, 0, field_1_string_len);} | public OldStringRecord(RecordInputStream in1){sid = in1.Sid;if (in1.Sid == biff2_sid){field_1_string_len = (short)in1.ReadUByte();}else{field_1_string_len = in1.ReadShort();}field_2_bytes = new byte[field_1_string_len];in1.Read(field_2_bytes, 0, field_1_string_len);} |
public long ramBytesUsed() {return TERMS_BASE_RAM_BYTES_USED + (fst!=null ? fst.ramBytesUsed() : 0)+ RamUsageEstimator.sizeOf(scratch.bytes()) + RamUsageEstimator.sizeOf(scratchUTF16.chars());} | public virtual long RamBytesUsed(){return (_fst != null) ? _fst.GetSizeInBytes() : 0;} |
public void fillRect(int x, int y, int width, int height){HSSFSimpleShape shape = escherGroup.createShape(new HSSFChildAnchor( x, y, x + width, y + height ) );shape.setShapeType(HSSFSimpleShape.OBJECT_TYPE_RECTANGLE);shape.setLineStyle(HSSFShape.LINESTYLE_NONE);shape.setFillColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());shape.setLineStyleColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());} | public void FillRect(int x, int y, int width, int height){HSSFSimpleShape shape = escherGroup.CreateShape(new HSSFChildAnchor(x, y, x + width, y + height));shape.ShapeType = (HSSFSimpleShape.OBJECT_TYPE_RECTANGLE);shape.LineStyle = LineStyle.None;shape.SetFillColor(foreground.R, foreground.G, foreground.B);shape.SetLineStyleColor(foreground.R, foreground.G, foreground.B);} |
public void add(OneMerge merge) {merges.add(merge);} | public virtual void Add(OneMerge merge){Merges.Add(merge);} |
public long computeNorm(FieldInvertState state) {return sims[0].computeNorm(state);} | public override long ComputeNorm(FieldInvertState state){return m_sims[0].ComputeNorm(state);} |
public PolicyAttribute(String attributeName, String attributeValue) {setAttributeName(attributeName);setAttributeValue(attributeValue);} | public PolicyAttribute(string attributeName, string attributeValue){_attributeName = attributeName;_attributeValue = attributeValue;} |
public String getAccessKeyId() {return publicKeyId;} | public string GetAccessKeyId(){return publicKeyId;} |
public ListJourneysResult listJourneys(ListJourneysRequest request) {request = beforeClientExecution(request);return executeListJourneys(request);} | public virtual ListJourneysResponse ListJourneys(ListJourneysRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListJourneysRequestMarshaller.Instance;options.ResponseUnmarshaller = ListJourneysResponseUnmarshaller.Instance;return Invoke<ListJourneysResponse>(request, options);} |
public FormulaCellCacheEntry getOrCreateFormulaCellEntry(EvaluationCell cell) {FormulaCellCacheEntry result = _formulaCellCache.get(cell);if (result == null) {result = new FormulaCellCacheEntry();_formulaCellCache.put(cell, result);}return result;} | public FormulaCellCacheEntry GetOrCreateFormulaCellEntry(IEvaluationCell cell){FormulaCellCacheEntry result = _formulaCellCache.Get(cell);if (result == null){result = new FormulaCellCacheEntry();_formulaCellCache.Put(cell, result);}return result;} |
public StartHumanLoopResult startHumanLoop(StartHumanLoopRequest request) {request = beforeClientExecution(request);return executeStartHumanLoop(request);} | public virtual StartHumanLoopResponse StartHumanLoop(StartHumanLoopRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartHumanLoopRequestMarshaller.Instance;options.ResponseUnmarshaller = StartHumanLoopResponseUnmarshaller.Instance;return Invoke<StartHumanLoopResponse>(request, options);} |
public List<RefSpec> getRefSpecs() {return refSpecs;} | public virtual IList<RefSpec> GetRefSpecs(){return refSpecs;} |
public void build(InputIterator iterator) throws IOException {if (iterator.hasPayloads()) {throw new IllegalArgumentException("this suggester doesn't support payloads");}if (iterator.hasContexts()) {throw new IllegalArgumentException("this suggester doesn't support contexts");}count = 0;BytesRef scratch = new BytesRef();InputIterator iter = new WFSTInputIterator(tempDir, tempFileNamePrefix, iterator);IntsRefBuilder scratchInts = new IntsRefBuilder();BytesRefBuilder previous = null;PositiveIntOutputs outputs = PositiveIntOutputs.getSingleton();FSTCompiler<Long> fstCompiler = new FSTCompiler<>(FST.INPUT_TYPE.BYTE1, outputs);while ((scratch = iter.next()) != null) {long cost = iter.weight();if (previous == null) {previous = new BytesRefBuilder();} else if (scratch.equals(previous.get())) {continue; }Util.toIntsRef(scratch, scratchInts);fstCompiler.add(scratchInts.get(), cost);previous.copyBytes(scratch);count++;}fst = fstCompiler.compile();} | public override void Build(IInputIterator iterator){if (iterator.HasPayloads){throw new ArgumentException("this suggester doesn't support payloads");}if (iterator.HasContexts){throw new ArgumentException("this suggester doesn't support contexts");}count = 0;var scratch = new BytesRef();IInputIterator iter = new WFSTInputIterator(this, iterator);var scratchInts = new Int32sRef();BytesRef previous = null;var outputs = PositiveInt32Outputs.Singleton;var builder = new Builder<long?>(FST.INPUT_TYPE.BYTE1, outputs);while ((scratch = iter.Next()) != null){long cost = iter.Weight;if (previous == null){previous = new BytesRef();}else if (scratch.Equals(previous)){continue; }Lucene.Net.Util.Fst.Util.ToInt32sRef(scratch, scratchInts);builder.Add(scratchInts, cost);previous.CopyBytes(scratch);count++;}fst = builder.Finish();} |
public Comparator<? super K> comparator() {if (ascending) {return TreeMap.this.comparator();} else {return Collections.reverseOrder(comparator);}} | public java.util.Comparator<K> comparator(){if (this.ascending){return this._enclosing.comparator();}else{return java.util.Collections.reverseOrder<K>(this._enclosing._comparator);}} |
public PrintHeadersRecord(RecordInputStream in) {field_1_print_headers = in.readShort();} | public PrintHeadersRecord(RecordInputStream in1){field_1_print_headers = in1.ReadShort();} |
public DeleteBranchCommand branchDelete() {return new DeleteBranchCommand(repo);} | public virtual DeleteBranchCommand BranchDelete(){return new DeleteBranchCommand(repo);} |
public DetectLabelsResult detectLabels(DetectLabelsRequest request) {request = beforeClientExecution(request);return executeDetectLabels(request);} | public virtual DetectLabelsResponse DetectLabels(DetectLabelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectLabelsRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectLabelsResponseUnmarshaller.Instance;return Invoke<DetectLabelsResponse>(request, options);} |
public FnGroupCountRecord(RecordInputStream in){field_1_count = in.readShort();} | public FnGroupCountRecord(RecordInputStream in1){field_1_count = in1.ReadShort();} |
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {double result;try {double d0 = singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);double multi = Math.pow(10d,d1);if(d0 < 0) result = -Math.floor(-d0 * multi) / multi;else result = Math.floor(d0 * multi) / multi;checkValue(result);}catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);} | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){double result;try{double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = Evaluate(d0, d1);NumericFunction.CheckValue(result);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);} |
public DoubleBuffer put(double[] src, int srcOffset, int doubleCount) {if (doubleCount > remaining()) {throw new BufferOverflowException();}System.arraycopy(src, srcOffset, backingArray, offset + position, doubleCount);position += doubleCount;return this;} | public override java.nio.DoubleBuffer put(double[] src, int srcOffset, int doubleCount){if (doubleCount > remaining()){throw new java.nio.BufferOverflowException();}System.Array.Copy(src, srcOffset, backingArray, offset + _position, doubleCount);_position += doubleCount;return this;} |
public CharSequence toQueryString(EscapeQuerySyntax escaper) {if (isDefaultField(this.field)) {return getTermEscaped(escaper) + "~" + this.similarity;} else {return this.field + ":" + getTermEscaped(escaper) + "~" + this.similarity;}} | public override string ToQueryString(IEscapeQuerySyntax escaper){if (IsDefaultField(this.m_field)){return GetTermEscaped(escaper) + "~" + this.similarity;}else{return this.m_field + ":" + GetTermEscaped(escaper) + "~" + this.similarity;}} |
public AbstractBlockPackedWriter(DataOutput out, int blockSize) {checkBlockSize(blockSize, MIN_BLOCK_SIZE, MAX_BLOCK_SIZE);reset(out);values = new long[blockSize];} | public AbstractBlockPackedWriter(DataOutput @out, int blockSize){PackedInt32s.CheckBlockSize(blockSize, MIN_BLOCK_SIZE, MAX_BLOCK_SIZE);Reset(@out);m_values = new long[blockSize];} |
public String getMessage() {return message;} | public virtual string GetMessage(){return message;} |
public ListAttendeesResult listAttendees(ListAttendeesRequest request) {request = beforeClientExecution(request);return executeListAttendees(request);} | public virtual ListAttendeesResponse ListAttendees(ListAttendeesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAttendeesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAttendeesResponseUnmarshaller.Instance;return Invoke<ListAttendeesResponse>(request, options);} |
public void reset() {upto = count = 0;posIncr = 1;} | public virtual void Reset(){upto = count = 0;posIncr = 1;} |
public FeatHdrRecord clone() {return copy();} | public override Object Clone(){return CloneViaReserialise();} |
public synchronized void addElement(E object) {if (elementCount == elementData.length) {growByOne();}elementData[elementCount++] = object;modCount++;} | public virtual void addElement(E @object){lock (this){if (elementCount == elementData.Length){growByOne();}elementData[elementCount++] = @object;modCount++;}} |
public long fileLength(String name) throws IOException {ensureOpen();if (pendingDeletes.contains(name)) {throw new NoSuchFileException("file \"" + name + "\" is pending delete");}return Files.size(directory.resolve(name));} | public override long FileLength(string name){EnsureOpen();FileInfo file = new FileInfo(Path.Combine(m_directory.FullName, name));long len = file.Length;if (len == 0 && !file.Exists){throw new FileNotFoundException(name);}else{return len;}} |
public PutExternalModelResult putExternalModel(PutExternalModelRequest request) {request = beforeClientExecution(request);return executePutExternalModel(request);} | public virtual PutExternalModelResponse PutExternalModel(PutExternalModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutExternalModelRequestMarshaller.Instance;options.ResponseUnmarshaller = PutExternalModelResponseUnmarshaller.Instance;return Invoke<PutExternalModelResponse>(request, options);} |
public PutConferencePreferenceResult putConferencePreference(PutConferencePreferenceRequest request) {request = beforeClientExecution(request);return executePutConferencePreference(request);} | public virtual PutConferencePreferenceResponse PutConferencePreference(PutConferencePreferenceRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConferencePreferenceRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConferencePreferenceResponseUnmarshaller.Instance;return Invoke<PutConferencePreferenceResponse>(request, options);} |
public int size() {return size;} | public override int size(){return _size;} |
public CreateApiMappingResult createApiMapping(CreateApiMappingRequest request) {request = beforeClientExecution(request);return executeCreateApiMapping(request);} | public virtual CreateApiMappingResponse CreateApiMapping(CreateApiMappingRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateApiMappingRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateApiMappingResponseUnmarshaller.Instance;return Invoke<CreateApiMappingResponse>(request, options);} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.