java
stringlengths 28
1.4k
| C#
stringlengths 27
1.38k
|
---|---|
public String toString() {final StringBuilder r = new StringBuilder();r.append(getSeverity().name().toLowerCase(Locale.ROOT));r.append(": at offset "); r.append(getOffset());r.append(": "); r.append(getMessage());r.append("\n"); r.append(" in "); r.append(getLineText());return r.toString();} | public override string ToString(){StringBuilder r = new StringBuilder();r.Append(GetSeverity().ToString().ToLower());r.Append(": at offset ");r.Append(GetOffset());r.Append(": ");r.Append(GetMessage());r.Append("\n");r.Append(" in ");r.Append(GetLineText());return r.ToString();} |
public IntBuffer slice() {return new ReadWriteIntArrayBuffer(remaining(), backingArray, offset + position);} | public override java.nio.IntBuffer slice(){return new java.nio.ReadWriteIntArrayBuffer(remaining(), backingArray, offset + _position);} |
public DeleteApplicationResult deleteApplication(DeleteApplicationRequest request) {request = beforeClientExecution(request);return executeDeleteApplication(request);} | public virtual DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance;return Invoke<DeleteApplicationResponse>(request, options);} |
public TokenOffsetPayloadTokenFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}} | public TokenOffsetPayloadTokenFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}} |
public boolean equals(Object o) {if (this.getClass() != o.getClass()) return false;MultiFunction other = (MultiFunction)o;return this.sources.equals(other.sources);} | public override bool Equals(object o){if (this.GetType() != o.GetType()){return false;}var other = (MultiFunction)o;return JCG.ListEqualityComparer<ValueSource>.Default.Equals(this.m_sources, other.m_sources);} |
public SpanQuery getSpanQuery(Element e) throws ParserException {SpanQueryBuilder builder = builders.get(e.getNodeName());if (builder == null) {throw new ParserException("No SpanQueryObjectBuilder defined for node " + e.getNodeName());}return builder.getSpanQuery(e);} | public virtual SpanQuery GetSpanQuery(XmlElement e){ISpanQueryBuilder builder;if (!builders.TryGetValue(e.Name, out builder) || builder == null){throw new ParserException("No SpanQueryObjectBuilder defined for node " + e.Name);}return builder.GetSpanQuery(e);} |
public void incRef() {final int rc = refCount.incrementAndGet();assert rc > 1: "seg=" + info;} | public virtual void IncRef(){int rc = refCount.IncrementAndGet();Debug.Assert(rc > 1);} |
public String formula() {return _formula;} | public String formula(){return _formula;} |
public T removeTop() {T currentTop = top;if (iter.hasNext()) {top = iter.next();} else {top = null;}return currentTop;} | public T RemoveTop(){T currentTop = top;if (iter.MoveNext()){top = iter.Current;}else{top = default(T);}return currentTop;} |
public ObjectId getExpectedOldObjectId() {return expValue;} | public virtual ObjectId GetExpectedOldObjectId(){return expValue;} |
public DefaultPassageFormatter(String preTag, String postTag, String ellipsis, boolean escape) {if (preTag == null || postTag == null || ellipsis == null) {throw new NullPointerException();}this.preTag = preTag;this.postTag = postTag;this.ellipsis = ellipsis;this.escape = escape;} | public DefaultPassageFormatter(string preTag, string postTag, string ellipsis, bool escape){if (preTag == null || postTag == null || ellipsis == null){throw new ArgumentException(); }this.m_preTag = preTag;this.m_postTag = postTag;this.m_ellipsis = ellipsis;this.m_escape = escape;} |
public UpdateImagePermissionsResult updateImagePermissions(UpdateImagePermissionsRequest request) {request = beforeClientExecution(request);return executeUpdateImagePermissions(request);} | public virtual UpdateImagePermissionsResponse UpdateImagePermissions(UpdateImagePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateImagePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateImagePermissionsResponseUnmarshaller.Instance;return Invoke<UpdateImagePermissionsResponse>(request, options);} |
public ListCustomVerificationEmailTemplatesResult listCustomVerificationEmailTemplates(ListCustomVerificationEmailTemplatesRequest request) {request = beforeClientExecution(request);return executeListCustomVerificationEmailTemplates(request);} | public virtual ListCustomVerificationEmailTemplatesResponse ListCustomVerificationEmailTemplates(ListCustomVerificationEmailTemplatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListCustomVerificationEmailTemplatesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListCustomVerificationEmailTemplatesResponseUnmarshaller.Instance;return Invoke<ListCustomVerificationEmailTemplatesResponse>(request, options);} |
public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException {return IoBridge.read(fd, buffer, byteOffset, byteCount);} | public virtual int read(byte[] buffer, int byteOffset, int byteCount){throw new System.NotImplementedException();} |
public StringCharacterIterator(String value, int location) {string = value;start = 0;end = string.length();if (location < 0 || location > end) {throw new IllegalArgumentException();}offset = location;} | public StringCharacterIterator(string value, int location){@string = value;start = 0;end = @string.Length;if (location < 0 || location > end){throw new System.ArgumentException();}offset = location;} |
public DeleteQueryLoggingConfigResult deleteQueryLoggingConfig(DeleteQueryLoggingConfigRequest request) {request = beforeClientExecution(request);return executeDeleteQueryLoggingConfig(request);} | public virtual DeleteQueryLoggingConfigResponse DeleteQueryLoggingConfig(DeleteQueryLoggingConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteQueryLoggingConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteQueryLoggingConfigResponseUnmarshaller.Instance;return Invoke<DeleteQueryLoggingConfigResponse>(request, options);} |
public InvalidPatternException(String message, String pattern) {super(message);this.pattern = pattern;} | public InvalidPatternException(string message, string pattern) : base(message){this.pattern = pattern;} |
public int resolveNameXIx(int refIndex, int definedNameIndex) {int extBookIndex = _externSheetRecord.getExtbookIndexFromRefIndex(refIndex);return _externalBookBlocks[extBookIndex].getNameIx(definedNameIndex);} | public int ResolveNameXIx(int refIndex, int definedNameIndex){int extBookIndex = _externSheetRecord.GetExtbookIndexFromRefIndex(refIndex);return _externalBookBlocks[extBookIndex].GetNameIx(definedNameIndex);} |
public boolean equals(Object obj) {if (this == obj)return true;if (!super.equals(obj))return false;if (getClass() != obj.getClass())return false;FuzzyQuery other = (FuzzyQuery) obj;if (maxEdits != other.maxEdits)return false;if (prefixLength != other.prefixLength)return false;if (maxExpansions != other.maxExpansions)return false;if (transpositions != other.transpositions)return false;if (term == null) {if (other.term != null)return false;} else if (!term.equals(other.term))return false;return true;} | public override bool Equals(object obj){if (this == obj){return true;}if (!base.Equals(obj)){return false;}if (this.GetType() != obj.GetType()){return false;}FuzzyQuery other = (FuzzyQuery)obj;if (maxEdits != other.maxEdits){return false;}if (prefixLength != other.prefixLength){return false;}if (maxExpansions != other.maxExpansions){return false;}if (transpositions != other.transpositions){return false;}if (term == null){if (other.term != null){return false;}}else if (!term.Equals(other.term)){return false;}return true;} |
public Term getLuceneTerm(String fieldName) {return new Term(fieldName, getTermText());} | public virtual Term GetLuceneTerm(string fieldName){return new Term(fieldName, TermText);} |
public static MessageDigest newMessageDigest() {try {return MessageDigest.getInstance(LONG_HASH_FUNCTION);} catch (NoSuchAlgorithmException nsae) {throw new RuntimeException(MessageFormat.format(LfsText.get().requiredHashFunctionNotAvailable,LONG_HASH_FUNCTION), nsae);}} | 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 void reset() {synchronized (lock) {count = 0;}} | public virtual void reset(){lock (@lock){count = 0;}} |
public HyphenationTree() {stoplist = new HashMap<>(23); classmap = new TernaryTree();vspace = new ByteVector();vspace.alloc(1); } | public HyphenationTree(){m_stoplist = new JCG.Dictionary<string, IList<object>>(23); m_classmap = new TernaryTree();m_vspace = new ByteVector();m_vspace.Alloc(1); } |
public DescribeCollectionResult describeCollection(DescribeCollectionRequest request) {request = beforeClientExecution(request);return executeDescribeCollection(request);} | public virtual DescribeCollectionResponse DescribeCollection(DescribeCollectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCollectionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCollectionResponseUnmarshaller.Instance;return Invoke<DescribeCollectionResponse>(request, options);} |
public synchronized StringBuffer insert(int index, char[] chars) {insert0(index, chars);return this;} | public java.lang.StringBuffer insert(int index, char[] chars){lock (this){insert0(index, chars);return this;}} |
public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long byte0 = blocks[blocksOffset++] & 0xFF;final long byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 2) | (byte1 >>> 6);final long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 63) << 4) | (byte2 >>> 4);final long byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 6) | (byte3 >>> 2);final long byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 3) << 8) | byte4;}} | public override void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long byte0 = blocks[blocksOffset++] & 0xFF;long byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 2) | ((long)((ulong)byte1 >> 6));long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 63) << 4) | ((long)((ulong)byte2 >> 4));long byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 6) | ((long)((ulong)byte3 >> 2));long byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 3) << 8) | byte4;}} |
public GetSearchRequest() {super("cr", "2016-06-07", "GetSearch", "cr");setUriPattern("/search-delete");setMethod(MethodType.GET);} | public GetSearchRequest(): base("cr", "2016-06-07", "GetSearch", "cr", "openAPI"){UriPattern = "/search-delete";Method = MethodType.GET;} |
public void consume() {boolean skipEofCheck;if (p >= 0) {if (fetchedEOF) {skipEofCheck = p < tokens.size() - 1;}else {skipEofCheck = p < tokens.size();}}else {skipEofCheck = false;}if (!skipEofCheck && LA(1) == EOF) {throw new IllegalStateException("cannot consume EOF");}if (sync(p + 1)) {p = adjustSeekIndex(p + 1);}} | public virtual void Consume(){bool skipEofCheck;if (p >= 0){if (fetchedEOF){skipEofCheck = p < tokens.Count - 1;}else{skipEofCheck = p < tokens.Count;}}else{skipEofCheck = false;}if (!skipEofCheck && LA(1) == IntStreamConstants.EOF){throw new InvalidOperationException("cannot consume EOF");}if (Sync(p + 1)){p = AdjustSeekIndex(p + 1);}} |
public CharBlockArray append(String s) {int remain = s.length();int offset = 0;while (remain > 0) {if (this.current.length == this.blockSize) {addBlock();}int toCopy = remain;int remainingInBlock = this.blockSize - this.current.length;if (remainingInBlock < toCopy) {toCopy = remainingInBlock;}s.getChars(offset, offset + toCopy, this.current.chars, this.current.length);offset += toCopy;remain -= toCopy;this.current.length += toCopy;}this.length += s.length();return this;} | public virtual CharBlockArray Append(string s){int remain = s.Length;int offset = 0;while (remain > 0){if (this.current.length == this.blockSize){AddBlock();}int toCopy = remain;int remainingInBlock = this.blockSize - this.current.length;if (remainingInBlock < toCopy){toCopy = remainingInBlock;}s.CopyTo(offset, this.current.chars, this.current.length, toCopy);offset += toCopy;remain -= toCopy;this.current.length += toCopy;}this.length += s.Length;return this;} |
public ConfigureHealthCheckResult configureHealthCheck(ConfigureHealthCheckRequest request) {request = beforeClientExecution(request);return executeConfigureHealthCheck(request);} | public virtual ConfigureHealthCheckResponse ConfigureHealthCheck(ConfigureHealthCheckRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfigureHealthCheckRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfigureHealthCheckResponseUnmarshaller.Instance;return Invoke<ConfigureHealthCheckResponse>(request, options);} |
public CommonRoaRequest(String product) {super(product);setSysAcceptFormat(FormatType.JSON);} | public CommonRoaRequest(string product) : base(product){AcceptFormat = FormatType.JSON;} |
public static int strlen(char[] a) {return strlen(a, 0);} | public static int StrLen(char[] a){return StrLen(a, 0);} |
public void setReaderValue(Reader value) {if (!(fieldsData instanceof Reader)) {throw new IllegalArgumentException("cannot change value type from " + fieldsData.getClass().getSimpleName() + " to Reader");}fieldsData = value;} | public virtual void SetReaderValue(TextReader value){if (!(FieldsData is TextReader)){throw new ArgumentException("cannot change value type from " + FieldsData.GetType().Name + " to TextReader");}FieldsData = value;} |
public DeleteUsagePlanResult deleteUsagePlan(DeleteUsagePlanRequest request) {request = beforeClientExecution(request);return executeDeleteUsagePlan(request);} | public virtual DeleteUsagePlanResponse DeleteUsagePlan(DeleteUsagePlanRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUsagePlanRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUsagePlanResponseUnmarshaller.Instance;return Invoke<DeleteUsagePlanResponse>(request, options);} |
public DeleteThreatIntelSetResult deleteThreatIntelSet(DeleteThreatIntelSetRequest request) {request = beforeClientExecution(request);return executeDeleteThreatIntelSet(request);} | public virtual DeleteThreatIntelSetResponse DeleteThreatIntelSet(DeleteThreatIntelSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteThreatIntelSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteThreatIntelSetResponseUnmarshaller.Instance;return Invoke<DeleteThreatIntelSetResponse>(request, options);} |
public DescribePlacementGroupsResult describePlacementGroups(DescribePlacementGroupsRequest request) {request = beforeClientExecution(request);return executeDescribePlacementGroups(request);} | public virtual DescribePlacementGroupsResponse DescribePlacementGroups(DescribePlacementGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePlacementGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePlacementGroupsResponseUnmarshaller.Instance;return Invoke<DescribePlacementGroupsResponse>(request, options);} |
public EnableAddOnResult enableAddOn(EnableAddOnRequest request) {request = beforeClientExecution(request);return executeEnableAddOn(request);} | public virtual EnableAddOnResponse EnableAddOn(EnableAddOnRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableAddOnRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableAddOnResponseUnmarshaller.Instance;return Invoke<EnableAddOnResponse>(request, options);} |
public TreeFilter clone() {final TreeFilter[] s = new TreeFilter[subfilters.length];for (int i = 0; i < s.length; i++)s[i] = subfilters[i].clone();return new List(s);} | public override RevFilter Clone(){RevFilter[] s = new RevFilter[subfilters.Length];for (int i = 0; i < s.Length; i++){s[i] = subfilters[i].Clone();}return new AndRevFilter.List(s);} |
public ListTagsForResourceOutput listTagsForResource(ListTagsForResourceRequest request) {request = beforeClientExecution(request);return executeListTagsForResource(request);} | public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;return Invoke<ListTagsForResourceResponse>(request, options);} |
public WeightedSpanTerm getWeightedSpanTerm(String token) {return fieldWeightedSpanTerms.get(token);} | public virtual WeightedSpanTerm GetWeightedSpanTerm(string token){WeightedSpanTerm result;fieldWeightedSpanTerms.TryGetValue(token, out result);return result;} |
public Slope() {func = new LinearRegressionFunction(FUNCTION.SLOPE);} | public Slope(){func = new LinearRegressionFunction(LinearRegressionFunction.FUNCTION.SLOPE);} |
public String toStringUnquoted() {return getTruncated();} | public override string ToStringUnquoted(){return Truncated;} |
public UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest request) {request = beforeClientExecution(request);return executeUpdateSubnetGroup(request);} | public virtual UpdateSubnetGroupResponse UpdateSubnetGroup(UpdateSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSubnetGroupResponseUnmarshaller.Instance;return Invoke<UpdateSubnetGroupResponse>(request, options);} |
public void remove(int index) {checkIndex(index);_cfHeaders.remove(index);} | public void Remove(int index){CheckIndex(index);_cfHeaders.RemoveAt(index);} |
public static long pop_intersect(long[] arr1, long[] arr2, int wordOffset, int numWords) {long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i) {popCount += Long.bitCount(arr1[i] & arr2[i]);}return popCount;} | public static long Pop_Intersect(long[] arr1, long[] arr2, int wordOffset, int numWords){long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i){popCount += (arr1[i] & arr2[i]).PopCount();}return popCount;} |
public boolean shouldBeRecursive() {return true;} | public override bool ShouldBeRecursive(){return true;} |
public JapaneseBaseFormFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}} | public JapaneseBaseFormFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new ArgumentException("Unknown parameters: " + args);}} |
public void visitContainedRecords(RecordVisitor rv) {rv.visitRecord(header);for (CFRuleBase rule : rules) {rv.visitRecord(rule);}} | public override void VisitContainedRecords(RecordVisitor rv){rv.VisitRecord(header);for (int i = 0; i < rules.Count; i++){CFRuleRecord rule = rules[i];rv.VisitRecord(rule);}} |
public void dumpDrawingGroupRecords(boolean fat) {DrawingGroupRecord r = (DrawingGroupRecord) workbook.findFirstRecordBySid( DrawingGroupRecord.sid );if (r == null) {return;}r.decode();List<EscherRecord> escherRecords = r.getEscherRecords();PrintWriter w = new PrintWriter(new OutputStreamWriter(System.out, Charset.defaultCharset()));for (EscherRecord escherRecord : escherRecords) {if (fat) {System.out.println(escherRecord);} else {escherRecord.display(w, 0);}}w.flush();} | public void DumpDrawingGroupRecords(bool fat){DrawingGroupRecord r = (DrawingGroupRecord)workbook.FindFirstRecordBySid(DrawingGroupRecord.sid);r.Decode();IList escherRecords = r.EscherRecords;for (IEnumerator iterator = escherRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord escherRecord = (EscherRecord)iterator.Current;if (fat)Console.WriteLine(escherRecord.ToString());elseescherRecord.Display(0);}} |
public int getLinesDeleted() {return nDeleted;} | public virtual int GetLinesDeleted(){return nDeleted;} |
public String toString() {StringBuilder sb = new StringBuilder(64);sb.append(getClass().getName()).append(" [");sb.append(_offset).append("...").append(getLastIndex());sb.append("]");return sb.toString();} | public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");sb.Append(_offset).Append("...").Append(LastIndex);sb.Append("]");return sb.ToString();} |
public int[] compact() {assert bytesStart != null : "bytesStart is null - not initialized";int upto = 0;for (int i = 0; i < hashSize; i++) {if (ids[i] != -1) {if (upto < i) {ids[upto] = ids[i];ids[i] = -1;}upto++;}}assert upto == count;lastCount = count;return ids;} | public int[] Compact(){Debug.Assert(bytesStart != null, "bytesStart is null - not initialized");int upto = 0;for (int i = 0; i < hashSize; i++){if (ids[i] != -1){if (upto < i){ids[upto] = ids[i];ids[i] = -1;}upto++;}}Debug.Assert(upto == count);lastCount = count;return ids;} |
public AccessKey(String userName, String accessKeyId, StatusType status, String secretAccessKey) {setUserName(userName);setAccessKeyId(accessKeyId);setStatus(status.toString());setSecretAccessKey(secretAccessKey);} | public AccessKey(string userName, string accessKeyId, StatusType status, string secretAccessKey){_userName = userName;_accessKeyId = accessKeyId;_status = status;_secretAccessKey = secretAccessKey;} |
public GetDomainResult getDomain(GetDomainRequest request) {request = beforeClientExecution(request);return executeGetDomain(request);} | public virtual GetDomainResponse GetDomain(GetDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainResponseUnmarshaller.Instance;return Invoke<GetDomainResponse>(request, options);} |
public ListTypeRegistrationsResult listTypeRegistrations(ListTypeRegistrationsRequest request) {request = beforeClientExecution(request);return executeListTypeRegistrations(request);} | public virtual ListTypeRegistrationsResponse ListTypeRegistrations(ListTypeRegistrationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTypeRegistrationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTypeRegistrationsResponseUnmarshaller.Instance;return Invoke<ListTypeRegistrationsResponse>(request, options);} |
public boolean isSymbolic() {return false;} | public virtual bool IsSymbolic(){return false;} |
public DeleteTableRequest(String tableName) {setTableName(tableName);} | public DeleteTableRequest(string tableName){_tableName = tableName;} |
public UpdateAccountSettingsResult updateAccountSettings(UpdateAccountSettingsRequest request) {request = beforeClientExecution(request);return executeUpdateAccountSettings(request);} | public virtual UpdateAccountSettingsResponse UpdateAccountSettings(UpdateAccountSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAccountSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAccountSettingsResponseUnmarshaller.Instance;return Invoke<UpdateAccountSettingsResponse>(request, options);} |
public SearcherTracker(IndexSearcher searcher) {this.searcher = searcher;version = ((DirectoryReader) searcher.getIndexReader()).getVersion();searcher.getIndexReader().incRef();recordTimeSec = System.nanoTime() / NANOS_PER_SEC;} | public SearcherTracker(IndexSearcher searcher){Searcher = searcher;Version = ((DirectoryReader)searcher.IndexReader).Version;searcher.IndexReader.IncRef();RecordTimeSec = Time.NanoTime() / NANOS_PER_SEC;} |
public Principal(String accountId) {this("AWS", accountId);if (accountId == null) {throw new IllegalArgumentException("Null AWS account ID specified");}} | public Principal(string accountId): this(AWS_PROVIDER, accountId){if (accountId == null){throw new ArgumentNullException("accountId");}} |
public V setValue(V object) {V result = value;value = object;return result;} | public V setValue(V @object){V result = value;value = @object;return result;} |
public ListMomentPhotosRequest() {super("CloudPhoto", "2017-07-11", "ListMomentPhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);} | public ListMomentPhotosRequest(): base("CloudPhoto", "2017-07-11", "ListMomentPhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;} |
public boolean contains(Object o) {return map.containsKey(o);} | public virtual bool Contains(object o){return map.ContainsKey(o);} |
public LinearOffsetRange(int offset, int length) {if(length == 0) {throw new RuntimeException("length may not be zero");}_offset = offset;_length = length;} | public LinearOffsetRange(int offset, int length){if (length == 0){throw new ArgumentException("Length may not be zero");}_offset = offset;_Length = length;} |
public ListPipelinesResult listPipelines() {return listPipelines(new ListPipelinesRequest());} | public virtual ListPipelinesResponse ListPipelines(){return ListPipelines(new ListPipelinesRequest());} |
public static boolean indexExists(Directory directory) throws IOException {String[] files = directory.listAll();String prefix = IndexFileNames.SEGMENTS + "_";for(String file : files) {if (file.startsWith(prefix)) {return true;}}return false;} | public static bool IndexExists(Directory directory){string[] files;try{files = directory.ListAll();} catch (DirectoryNotFoundException nsde) {return false;}if (files != null){string prefix = IndexFileNames.SEGMENTS + "_";foreach (string file in files){if (file.StartsWith(prefix, StringComparison.Ordinal) || file.Equals(IndexFileNames.SEGMENTS_GEN, StringComparison.Ordinal)){return true;}}}return false;} |
public DisassociateFromMasterAccountResult disassociateFromMasterAccount(DisassociateFromMasterAccountRequest request) {request = beforeClientExecution(request);return executeDisassociateFromMasterAccount(request);} | public virtual DisassociateFromMasterAccountResponse DisassociateFromMasterAccount(DisassociateFromMasterAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateFromMasterAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateFromMasterAccountResponseUnmarshaller.Instance;return Invoke<DisassociateFromMasterAccountResponse>(request, options);} |
public GetVoiceTemplateResult getVoiceTemplate(GetVoiceTemplateRequest request) {request = beforeClientExecution(request);return executeGetVoiceTemplate(request);} | public virtual GetVoiceTemplateResponse GetVoiceTemplate(GetVoiceTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceTemplateResponseUnmarshaller.Instance;return Invoke<GetVoiceTemplateResponse>(request, options);} |
public long ramBytesUsed() {return RamUsageEstimator.sizeOf(filter.getBits());} | public virtual long RamBytesUsed(){return RamUsageEstimator.SizeOf(_filter.GetBits());} |
public RejectInvitationResult rejectInvitation(RejectInvitationRequest request) {request = beforeClientExecution(request);return executeRejectInvitation(request);} | public virtual RejectInvitationResponse RejectInvitation(RejectInvitationRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectInvitationRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectInvitationResponseUnmarshaller.Instance;return Invoke<RejectInvitationResponse>(request, options);} |
public RejectQualificationRequestResult rejectQualificationRequest(RejectQualificationRequestRequest request) {request = beforeClientExecution(request);return executeRejectQualificationRequest(request);} | public virtual RejectQualificationRequestResponse RejectQualificationRequest(RejectQualificationRequestRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectQualificationRequestRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectQualificationRequestResponseUnmarshaller.Instance;return Invoke<RejectQualificationRequestResponse>(request, options);} |
public final long[] array() {return protectedArray();} | public sealed override object array(){return protectedArray();} |
public void writeChars(String value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeChars(value);} | public virtual void writeChars(string value){throw new System.NotImplementedException();} |
public void finish(FieldInfos fis, int numDocs) throws IOException {if (numDocsWritten != numDocs) {throw new RuntimeException("mergeVectors produced an invalid result: mergedDocs is " + numDocs + " but vec numDocs is " + numDocsWritten + " file=" + out.toString() + "; now aborting this merge to prevent index corruption");}write(END);newLine();SimpleTextUtil.writeChecksum(out, scratch);} | public override void Finish(FieldInfos fis, int numDocs){if (_numDocsWritten != numDocs){throw new Exception("mergeVectors produced an invalid result: mergedDocs is " + numDocs +" but vec numDocs is " + _numDocsWritten + " file=" + _output +"; now aborting this merge to prevent index corruption");}Write(END);NewLine();SimpleTextUtil.WriteChecksum(_output, _scratch);} |
public void readBytes(byte[] b, int offset, int len) throws IOException {while (len > 0) {final int cnt = is.read(b, offset, len);if (cnt < 0) {throw new EOFException();}len -= cnt;offset += cnt;}} | public override void ReadBytes(byte[] b, int offset, int len){while (len > 0){int cnt = _reader.Read(b, offset, len);if (cnt < 0){throw new EndOfStreamException();}len -= cnt;offset += cnt;}} |
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().ramBytesUsed();}return ramBytesUsed;} | public override long RamBytesUsed(){long sizeInBytes = 0;foreach (KeyValuePair<string, FieldsProducer> entry in formats){sizeInBytes += entry.Key.Length * RamUsageEstimator.NUM_BYTES_CHAR;sizeInBytes += entry.Value.RamBytesUsed();}return sizeInBytes;} |
public boolean equals(Object obj) {if (this == obj) return true;if (null == obj || getClass() != obj.getClass()) return false;JaroWinklerDistance o = (JaroWinklerDistance)obj;return (Float.floatToIntBits(o.threshold)== Float.floatToIntBits(this.threshold));} | public override bool Equals(object obj){if (this == obj){return true;}if (null == obj || this.GetType() != obj.GetType()){return false;}JaroWinklerDistance o = (JaroWinklerDistance)obj;return (J2N.BitConversion.SingleToInt32Bits(o.threshold) == J2N.BitConversion.SingleToInt32Bits(this.threshold));} |
public BatchRefUpdate addCommand(ReceiveCommand... cmd) {return addCommand(Arrays.asList(cmd));} | public virtual NGit.BatchRefUpdate AddCommand(ReceiveCommand cmd){commands.AddItem(cmd);return this;} |
public void write(byte[] buf, int off, int len) throws IOException {try {beginWrite();dst.write(buf, off, len);} catch (InterruptedIOException e) {throw writeTimedOut(e);} finally {endWrite();}} | public override void Write(byte[] buf, int off, int len){try{BeginWrite();dst.Write(buf, off, len);}catch (ThreadInterruptedException){throw WriteTimedOut();}finally{EndWrite();}} |
public DeregisterGameServerResult deregisterGameServer(DeregisterGameServerRequest request) {request = beforeClientExecution(request);return executeDeregisterGameServer(request);} | public virtual DeregisterGameServerResponse DeregisterGameServer(DeregisterGameServerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterGameServerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterGameServerResponseUnmarshaller.Instance;return Invoke<DeregisterGameServerResponse>(request, options);} |
public void write(byte[] b) {try {super.write(b);} catch (IOException e) {throw new RuntimeException(e);}} | public void Write(byte[] b){try{out1.Write(b, 0, b.Length);}catch (IOException e){throw new RuntimeException(e);}} |
public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol) {return symbol >= from && symbol <= to;} | public override bool Matches(int symbol, int minVocabSymbol, int maxVocabSymbol){return symbol >= from && symbol <= to;} |
public void finish(FieldInfos fis, int numDocs) throws IOException {if (numBufferedDocs > 0) {flush();numDirtyChunks++; } else {assert bufferedDocs.size() == 0;}if (docBase != numDocs) {throw new RuntimeException("Wrote " + docBase + " docs, finish called with numDocs=" + numDocs);}indexWriter.finish(numDocs, fieldsStream.getFilePointer());fieldsStream.writeVLong(numChunks);fieldsStream.writeVLong(numDirtyChunks);CodecUtil.writeFooter(fieldsStream);assert bufferedDocs.size() == 0;} | public override void Finish(FieldInfos fis, int numDocs){if (numBufferedDocs > 0){Flush();}else{Debug.Assert(bufferedDocs.Length == 0);}if (docBase != numDocs){throw new Exception("Wrote " + docBase + " docs, finish called with numDocs=" + numDocs);}indexWriter.Finish(numDocs, fieldsStream.GetFilePointer());CodecUtil.WriteFooter(fieldsStream);Debug.Assert(bufferedDocs.Length == 0);} |
public Iterator<String> iterator() {final Iterator<String> i = names.values().iterator();return new Iterator<String>();} | public override Sharpen.Iterator<string> Iterator(){Sharpen.Iterator<string> i = names.Values.Iterator();return new _Iterator_276(i);} |
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[DEFAULTCOLWIDTH]\n");buffer.append(" .colwidth = ").append(Integer.toHexString(getColWidth())).append("\n");buffer.append("[/DEFAULTCOLWIDTH]\n");return buffer.toString();} | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[DEFAULTCOLWIDTH]\n");buffer.Append(" .colwidth = ").Append(StringUtil.ToHexString(ColWidth)).Append("\n");buffer.Append("[/DEFAULTCOLWIDTH]\n");return buffer.ToString();} |
public DataValidityTable(RecordStream rs) {_headerRec = (DVALRecord) rs.getNext();List<DVRecord> temp = new ArrayList<>();while (rs.peekNextClass() == DVRecord.class) {temp.add((DVRecord) rs.getNext());}_validationList = temp;} | public DataValidityTable(RecordStream rs){_headerRec = (DVALRecord)rs.GetNext();IList temp = new ArrayList();while (rs.PeekNextClass() == typeof(DVRecord)){temp.Add(rs.GetNext());}_validationList = temp;} |
public DeleteRoomMembershipResult deleteRoomMembership(DeleteRoomMembershipRequest request) {request = beforeClientExecution(request);return executeDeleteRoomMembership(request);} | public virtual DeleteRoomMembershipResponse DeleteRoomMembership(DeleteRoomMembershipRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRoomMembershipRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRoomMembershipResponseUnmarshaller.Instance;return Invoke<DeleteRoomMembershipResponse>(request, options);} |
public QueryParserTokenManager(CharStream stream, int lexState){this(stream);SwitchTo(lexState);} | public QueryParserTokenManager(ICharStream stream, int lexState):this(stream){SwitchTo(lexState);} |
public RebootDBInstanceRequest(String dBInstanceIdentifier) {setDBInstanceIdentifier(dBInstanceIdentifier);} | public RebootDBInstanceRequest(string dbInstanceIdentifier){_dbInstanceIdentifier = dbInstanceIdentifier;} |
public CreateAutoScalingGroupResult createAutoScalingGroup(CreateAutoScalingGroupRequest request) {request = beforeClientExecution(request);return executeCreateAutoScalingGroup(request);} | public virtual CreateAutoScalingGroupResponse CreateAutoScalingGroup(CreateAutoScalingGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAutoScalingGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAutoScalingGroupResponseUnmarshaller.Instance;return Invoke<CreateAutoScalingGroupResponse>(request, options);} |
public K floorKey(K key) {Entry<K, V> entry = findBounded(key, FLOOR);return entry != null ? entry.getKey() : null;} | public K floorKey(K key){java.util.MapClass.Entry<K, V> entry = this.findBounded(key, java.util.TreeMap.Relation.FLOOR);return entry != null ? entry.getKey() : default(K);} |
public boolean include(RevWalk walker, RevCommit c) {return true;} | public override bool Include(RevWalk walker, RevCommit c){return true;} |
public boolean isValidating() {return getFeature (XmlPullParser.FEATURE_VALIDATION);} | public virtual bool isValidating(){return getFeature(org.xmlpull.v1.XmlPullParserClass.FEATURE_VALIDATION);} |
public synchronized void write(int oneByte) {if (out == null) {setError();return;}try {out.write(oneByte);int b = oneByte & 0xFF;boolean isNewline = b == 0x0A || b == 0x15;if (autoFlush && isNewline) {flush();}} catch (IOException e) {setError();}} | public override void write(int oneByte){lock (this){if (@out == null){setError();return;}try{@out.write(oneByte);int b = oneByte & unchecked((int)(0xFF));bool isNewline = b == unchecked((int)(0x0A)) || b == unchecked((int)(0x15));if (autoFlush && isNewline){flush();}}catch (System.IO.IOException){setError();}}} |
public UpdateScalingParametersResult updateScalingParameters(UpdateScalingParametersRequest request) {request = beforeClientExecution(request);return executeUpdateScalingParameters(request);} | public virtual UpdateScalingParametersResponse UpdateScalingParameters(UpdateScalingParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateScalingParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateScalingParametersResponseUnmarshaller.Instance;return Invoke<UpdateScalingParametersResponse>(request, options);} |
public ModifyDBClusterParameterGroupResult modifyDBClusterParameterGroup(ModifyDBClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeModifyDBClusterParameterGroup(request);} | public virtual ModifyDBClusterParameterGroupResponse ModifyDBClusterParameterGroup(ModifyDBClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBClusterParameterGroupResponseUnmarshaller.Instance;return Invoke<ModifyDBClusterParameterGroupResponse>(request, options);} |
public GetOperationsForResourceResult getOperationsForResource(GetOperationsForResourceRequest request) {request = beforeClientExecution(request);return executeGetOperationsForResource(request);} | public virtual GetOperationsForResourceResponse GetOperationsForResource(GetOperationsForResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOperationsForResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOperationsForResourceResponseUnmarshaller.Instance;return Invoke<GetOperationsForResourceResponse>(request, options);} |
public NLPTokenizerOp(TokenizerModel model) {tokenizer = new TokenizerME(model);} | public NLPTokenizerOp(TokenizerModel model){tokenizer = new TokenizerME(model);} |
public StartImageScanRequest() {super("cr", "2016-06-07", "StartImageScan", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scan");setMethod(MethodType.PUT);} | public StartImageScanRequest(): base("cr", "2016-06-07", "StartImageScan", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scan";Method = MethodType.PUT;} |
public UpdateFleetResult updateFleet(UpdateFleetRequest request) {request = beforeClientExecution(request);return executeUpdateFleet(request);} | public virtual UpdateFleetResponse UpdateFleet(UpdateFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFleetResponseUnmarshaller.Instance;return Invoke<UpdateFleetResponse>(request, options);} |