id
int32 0
10.3k
| java
stringlengths 29
1.4k
| cs
stringlengths 28
1.38k
|
---|---|---|
7,800 | public UpdateEmailTemplateResult updateEmailTemplate(UpdateEmailTemplateRequest request) {request = beforeClientExecution(request);return executeUpdateEmailTemplate(request);}
| public virtual UpdateEmailTemplateResponse UpdateEmailTemplate(UpdateEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEmailTemplateResponseUnmarshaller.Instance;return Invoke<UpdateEmailTemplateResponse>(request, options);}
|
7,801 | public boolean equalsContents(final Object o) {final CustomProperty c = (CustomProperty) o;final String name1 = c.getName();final String name2 = this.getName();boolean equalNames = true;if (name1 == null) {equalNames = name2 == null;} else {equalNames = name1.equals(name2);}return equalNames && c.getID() == this.getID()&& c.getType() == this.getType()&& c.getValue().equals(this.getValue());}
| public bool EqualsContents(Object o){CustomProperty c = (CustomProperty)o;String name1 = c.Name;String name2 = this.Name;bool equalNames = true;if (name1 == null)equalNames = name2 == null;elseequalNames = name1.Equals(name2);return equalNames && c.ID == this.ID&& c.Type == this.Type&& c.Value.Equals(this.Value);}
|
7,802 | public DuplicateFormatFlagsException(String f) {if (f == null) {throw new NullPointerException();}flags = f;}
| public DuplicateFormatFlagsException(string f){if (f == null){throw new System.ArgumentNullException();}flags = f;}
|
7,803 | public synchronized void mark(int readlimit) {marklimit = readlimit;markpos = pos;}
| public override void mark(int readlimit){lock (this){marklimit = readlimit;markpos = pos;}}
|
7,804 | public final int prefixCompare(AnyObjectId other) {int cmp;cmp = NB.compareUInt32(w1, mask(1, other.w1));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w2, mask(2, other.w2));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w3, mask(3, other.w3));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w4, mask(4, other.w4));if (cmp != 0)return cmp;return NB.compareUInt32(w5, mask(5, other.w5));}
| public int PrefixCompare(AnyObjectId other){int cmp;cmp = NB.CompareUInt32(w1, Mask(1, other.w1));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w2, Mask(2, other.w2));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w3, Mask(3, other.w3));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w4, Mask(4, other.w4));if (cmp != 0){return cmp;}return NB.CompareUInt32(w5, Mask(5, other.w5));}
|
7,805 | public UpdateRequestValidatorResult updateRequestValidator(UpdateRequestValidatorRequest request) {request = beforeClientExecution(request);return executeUpdateRequestValidator(request);}
| public virtual UpdateRequestValidatorResponse UpdateRequestValidator(UpdateRequestValidatorRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRequestValidatorRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRequestValidatorResponseUnmarshaller.Instance;return Invoke<UpdateRequestValidatorResponse>(request, options);}
|
7,806 | public Extensions(char extensionFieldDelimiter) {this.extensionFieldDelimiter = extensionFieldDelimiter;}
| public Extensions(char extensionFieldDelimiter){this.extensionFieldDelimiter = extensionFieldDelimiter;}
|
7,807 | public TokenStream create(TokenStream input) {return new EnglishMinimalStemFilter(input);}
| public override TokenStream Create(TokenStream input){return new EnglishMinimalStemFilter(input);}
|
7,808 | public QueryText getPathElement(int index) {return values.get(index);}
| public virtual QueryText GetPathElement(int index){return values[index];}
|
7,809 | public void serialize(LittleEndianOutput out) {out.writeShort(_sid);out.writeShort(_data.length);out.write(_data);}
| public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(_sid);out1.WriteShort(_data.Length);out1.Write(_data);}
|
7,810 | public void setQueryConfigHandler(QueryConfigHandler queryConfigHandler) {this.queryConfig = queryConfigHandler;for (QueryNodeProcessor processor : this.processors) {processor.setQueryConfigHandler(this.queryConfig);}}
| public virtual void SetQueryConfigHandler(QueryConfigHandler queryConfigHandler){this.queryConfig = queryConfigHandler;foreach (IQueryNodeProcessor processor in this.processors){processor.SetQueryConfigHandler(this.queryConfig);}}
|
7,811 | public DeleteGameSessionQueueResult deleteGameSessionQueue(DeleteGameSessionQueueRequest request) {request = beforeClientExecution(request);return executeDeleteGameSessionQueue(request);}
| public virtual DeleteGameSessionQueueResponse DeleteGameSessionQueue(DeleteGameSessionQueueRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGameSessionQueueRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGameSessionQueueResponseUnmarshaller.Instance;return Invoke<DeleteGameSessionQueueResponse>(request, options);}
|
7,812 | public List<DFAState> getStates() {List<DFAState> result = new ArrayList<DFAState>(states.keySet());Collections.sort(result, new Comparator<DFAState>() {@Override
| public List<DFAState> GetStates(){List<DFAState> result = new List<DFAState>(states.Keys);result.Sort((x, y) => x.stateNumber - y.stateNumber);return result;}
|
7,813 | public static CmpOp getOperator(String value) {int len = value.length();if (len < 1) {return OP_NONE;}char firstChar = value.charAt(0);switch(firstChar) {case '=':return OP_EQ;case '>':if (len > 1) {switch(value.charAt(1)) {case '=':return OP_GE;}}return OP_GT;case '<':if (len > 1) {switch(value.charAt(1)) {case '=':return OP_LE;case '>':return OP_NE;}}return OP_LT;}return OP_NONE;}
| public static CmpOp GetOperator(String value){int len = value.Length;if (len < 1){return OP_NONE;}char firstChar = value[0];switch (firstChar){case '=':return OP_EQ;case '>':if (len > 1){switch (value[1]){case '=':return OP_GE;}}return OP_GT;case '<':if (len > 1){switch (value[1]){case '=':return OP_LE;case '>':return OP_NE;}}return OP_LT;}return OP_NONE;}
|
7,814 | public void addChars( char[] characters, int[] widths ){for ( int i = 0; i < characters.length; i++ ){charWidths.put( Character.valueOf(characters[i]), Integer.valueOf(widths[i]));}}
| public void AddChars(char[] Chars, int[] widths){for (int i = 0; i < Chars.Length; i++){if (Chars[i] != ' '){charWidths[Chars[i]] = widths[i];}}}
|
7,815 | public ShortBuffer duplicate() {return copy(this, mark);}
| public override java.nio.ShortBuffer duplicate(){return copy(this, _mark);}
|
7,816 | public void setValidating(boolean validating) {features.put (XmlPullParser.FEATURE_VALIDATION, validating);}
| public virtual void setValidating(bool validating){features.put(org.xmlpull.v1.XmlPullParserClass.FEATURE_VALIDATION, validating);}
|
7,817 | public DedicatedCapacityInner create(String resourceGroupName, String dedicatedCapacityName, DedicatedCapacityInner capacityParameters) {return createWithServiceResponseAsync(resourceGroupName, dedicatedCapacityName, capacityParameters).toBlocking().last().body();}
| public async Task<AzureOperationResponse<DedicatedCapacity>> CreateWithHttpMessagesAsync(string resourceGroupName, string dedicatedCapacityName, DedicatedCapacity capacityParameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)){return await innerCapacityOperations.CreateWithHttpMessagesAsync(resourceGroupName, dedicatedCapacityName, capacityParameters, customHeaders, cancellationToken).ConfigureAwait(false);}
|
7,818 | public CancelIngestionResult cancelIngestion(CancelIngestionRequest request) {request = beforeClientExecution(request);return executeCancelIngestion(request);}
| public virtual CancelIngestionResponse CancelIngestion(CancelIngestionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelIngestionRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelIngestionResponseUnmarshaller.Instance;return Invoke<CancelIngestionResponse>(request, options);}
|
7,819 | public void setEncoding(String encodingName) {encoding = Charset.forName(encodingName);}
| public virtual void SetEncoding(string encodingName){encoding = Sharpen.Extensions.GetEncoding(encodingName);}
|
7,820 | public DeleteTemplateAliasResult deleteTemplateAlias(DeleteTemplateAliasRequest request) {request = beforeClientExecution(request);return executeDeleteTemplateAlias(request);}
| public virtual DeleteTemplateAliasResponse DeleteTemplateAlias(DeleteTemplateAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTemplateAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTemplateAliasResponseUnmarshaller.Instance;return Invoke<DeleteTemplateAliasResponse>(request, options);}
|
7,821 | public String resolveNameXText(int refIndex, int definedNameIndex, InternalWorkbook workbook) {int extBookIndex = _externSheetRecord.getExtbookIndexFromRefIndex(refIndex);int firstTabIndex = _externSheetRecord.getFirstSheetIndexFromRefIndex(refIndex);if (firstTabIndex == -1) {throw new RuntimeException("Referenced sheet could not be found");}ExternalBookBlock externalBook = _externalBookBlocks[extBookIndex];if (externalBook._externalNameRecords.length > definedNameIndex) {return _externalBookBlocks[extBookIndex].getNameText(definedNameIndex);} else if (firstTabIndex == -2) {NameRecord nr = getNameRecord(definedNameIndex);int sheetNumber = nr.getSheetNumber();StringBuilder text = new StringBuilder(64);if (sheetNumber > 0) {String sheetName = workbook.getSheetName(sheetNumber - 1);SheetNameFormatter.appendFormat(text, sheetName);text.append("!");}text.append(nr.getNameText());return text.toString();} else {throw new ArrayIndexOutOfBoundsException("Ext Book Index relative but beyond the supported length, was " +extBookIndex + " but maximum is " + _externalBookBlocks.length);}}
| public String ResolveNameXText(int refIndex, int definedNameIndex, InternalWorkbook workbook){int extBookIndex = _externSheetRecord.GetExtbookIndexFromRefIndex(refIndex);int firstTabIndex = _externSheetRecord.GetFirstSheetIndexFromRefIndex(refIndex);if (firstTabIndex == -1){throw new RuntimeException("Referenced sheet could not be found");}ExternalBookBlock externalBook = _externalBookBlocks[extBookIndex];if (externalBook._externalNameRecords.Length > definedNameIndex){return _externalBookBlocks[extBookIndex].GetNameText(definedNameIndex);}else if (firstTabIndex == -2){NameRecord nr = GetNameRecord(definedNameIndex);int sheetNumber = nr.SheetNumber;StringBuilder text = new StringBuilder();if (sheetNumber > 0){String sheetName = workbook.GetSheetName(sheetNumber - 1);SheetNameFormatter.AppendFormat(text, sheetName);text.Append("!");}text.Append(nr.NameText);return text.ToString();}else{throw new IndexOutOfRangeException("Ext Book Index relative but beyond the supported length, was " +extBookIndex + " but maximum is " + _externalBookBlocks.Length);}}
|
7,822 | public InetAddress getRemoteAddress() {return peer;}
| public virtual IPAddress GetRemoteAddress(){return peer;}
|
7,823 | public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerTypeAction)) {return false;}return type == ((LexerTypeAction)obj).type;}
| public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerTypeAction)){return false;}}return type == ((Antlr4.Runtime.Atn.LexerTypeAction)obj).type;}
|
7,824 | public RefValueArray(RefEval ref) {super(ref.getNumberOfSheets());_ref = ref;_width = ref.getNumberOfSheets();}
| public RefValueArray(RefEval ref1): base(ref1.NumberOfSheets){_ref = ref1;_width = ref1.NumberOfSheets;}
|
7,825 | public static Git wrap(Repository repo) {return new Git(repo);}
| public static NGit.Api.Git Wrap(Repository repo){return new NGit.Api.Git(repo);}
|
7,826 | public int get64BitNormalisedExponent() {return _binaryExponent + _significand.bitLength() - C_64;}
| public int Get64BitNormalisedExponent(){return _binaryExponent + _significand.BitLength() - C_64;}
|
7,827 | public GetRepoWebhookRequest() {super("cr", "2016-06-07", "GetRepoWebhook", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/webhooks");setMethod(MethodType.GET);}
| public GetRepoWebhookRequest(): base("cr", "2016-06-07", "GetRepoWebhook", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/webhooks";Method = MethodType.GET;}
|
7,828 | public Object merge(Object first, Object second) {List<T> outputList = new ArrayList<>();if (!(first instanceof List)) {outputList.add((T) first);} else {outputList.addAll((List<T>) first);}if (!(second instanceof List)) {outputList.add((T) second);} else {outputList.addAll((List<T>) second);}return outputList;}
| public override object Merge(object first, object second){IList<T> outputList = new JCG.List<T>();if (!(first is IList<T> firstList)){outputList.Add((T)first);}else{foreach (T value in firstList){outputList.Add(value);}}if (!(second is IList<T> secondList)){outputList.Add((T)second);}else{foreach (T value in secondList){outputList.Add(value);}}return outputList;}
|
7,829 | public UpdateThreatIntelSetResult updateThreatIntelSet(UpdateThreatIntelSetRequest request) {request = beforeClientExecution(request);return executeUpdateThreatIntelSet(request);}
| public virtual UpdateThreatIntelSetResponse UpdateThreatIntelSet(UpdateThreatIntelSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateThreatIntelSetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateThreatIntelSetResponseUnmarshaller.Instance;return Invoke<UpdateThreatIntelSetResponse>(request, options);}
|
7,830 | public final float getFloat(int index) {return Float.intBitsToFloat(getInt(index));}
| public sealed override float getFloat(int index){return Sharpen.Util.IntBitsToFloat(getInt(index));}
|
7,831 | public SortingFields(final Fields in, FieldInfos infos, Sorter.DocMap docMap) {super(in);this.docMap = docMap;this.infos = infos;}
| public SortingFields(Fields input, FieldInfos infos, Sorter.DocMap docMap): base(input){this.docMap = docMap;this.infos = infos;}
|
7,832 | public static SupBookRecord createAddInFunctions() {return new SupBookRecord(true, (short)1 );}
| public static SupBookRecord CreateAddInFunctions(){return new SupBookRecord(true, (short)1);}
|
7,833 | public ImportClientVpnClientCertificateRevocationListResult importClientVpnClientCertificateRevocationList(ImportClientVpnClientCertificateRevocationListRequest request) {request = beforeClientExecution(request);return executeImportClientVpnClientCertificateRevocationList(request);}
| public virtual ImportClientVpnClientCertificateRevocationListResponse ImportClientVpnClientCertificateRevocationList(ImportClientVpnClientCertificateRevocationListRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportClientVpnClientCertificateRevocationListRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportClientVpnClientCertificateRevocationListResponseUnmarshaller.Instance;return Invoke<ImportClientVpnClientCertificateRevocationListResponse>(request, options);}
|
7,834 | public GetVoiceConnectorOriginationResult getVoiceConnectorOrigination(GetVoiceConnectorOriginationRequest request) {request = beforeClientExecution(request);return executeGetVoiceConnectorOrigination(request);}
| public virtual GetVoiceConnectorOriginationResponse GetVoiceConnectorOrigination(GetVoiceConnectorOriginationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceConnectorOriginationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceConnectorOriginationResponseUnmarshaller.Instance;return Invoke<GetVoiceConnectorOriginationResponse>(request, options);}
|
7,835 | public GetTypedLinkFacetInformationResult getTypedLinkFacetInformation(GetTypedLinkFacetInformationRequest request) {request = beforeClientExecution(request);return executeGetTypedLinkFacetInformation(request);}
| public virtual GetTypedLinkFacetInformationResponse GetTypedLinkFacetInformation(GetTypedLinkFacetInformationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTypedLinkFacetInformationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTypedLinkFacetInformationResponseUnmarshaller.Instance;return Invoke<GetTypedLinkFacetInformationResponse>(request, options);}
|
7,836 | public PhraseSlopQueryNode(QueryNode query, int value) {if (query == null) {throw new QueryNodeError(new MessageImpl(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED, "query", "null"));}this.value = value;setLeaf(false);allocate();add(query);}
| public PhraseSlopQueryNode(IQueryNode query, int value){if (query == null){throw new QueryNodeError(new Message(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED, "query", "null"));}this.value = value;IsLeaf = false;Allocate();Add(query);}
|
7,837 | public UpdateDeploymentGroupResult updateDeploymentGroup(UpdateDeploymentGroupRequest request) {request = beforeClientExecution(request);return executeUpdateDeploymentGroup(request);}
| public virtual UpdateDeploymentGroupResponse UpdateDeploymentGroup(UpdateDeploymentGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDeploymentGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDeploymentGroupResponseUnmarshaller.Instance;return Invoke<UpdateDeploymentGroupResponse>(request, options);}
|
7,838 | public DeleteVaultNotificationsRequest(String accountId, String vaultName) {setAccountId(accountId);setVaultName(vaultName);}
| public DeleteVaultNotificationsRequest(string accountId, string vaultName){_accountId = accountId;_vaultName = vaultName;}
|
7,839 | @Override public boolean contains(Object key) {return subMap.containsKey(key);}
| public override bool contains(object o){return this._enclosing.containsKey(o);}
|
7,840 | public int get(String name, int dflt) {int vals[] = (int[]) valByRound.get(name);if (vals != null) {return vals[roundNumber % vals.length];}String sval = props.getProperty(name, "" + dflt);if (sval.indexOf(":") < 0) {return Integer.parseInt(sval);}int k = sval.indexOf(":");String colName = sval.substring(0, k);sval = sval.substring(k + 1);colForValByRound.put(name, colName);vals = propToIntArray(sval);valByRound.put(name, vals);return vals[roundNumber % vals.length];}
| public virtual int Get(string name, int dflt){int[] vals;object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){vals = (int[])temp;return vals[roundNumber % vals.Length];}string sval;if (!props.TryGetValue(name, out sval)){sval = dflt.ToString(CultureInfo.InvariantCulture);}if (sval.IndexOf(':') < 0){return int.Parse(sval, CultureInfo.InvariantCulture);}int k = sval.IndexOf(':');string colName = sval.Substring(0, k - 0);sval = sval.Substring(k + 1);colForValByRound[name] = colName;vals = PropToInt32Array(sval);valByRound[name] = vals;return vals[roundNumber % vals.Length];}
|
7,841 | public DeleteGitHubAccountTokenResult deleteGitHubAccountToken(DeleteGitHubAccountTokenRequest request) {request = beforeClientExecution(request);return executeDeleteGitHubAccountToken(request);}
| public virtual DeleteGitHubAccountTokenResponse DeleteGitHubAccountToken(DeleteGitHubAccountTokenRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGitHubAccountTokenRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGitHubAccountTokenResponseUnmarshaller.Instance;return Invoke<DeleteGitHubAccountTokenResponse>(request, options);}
|
7,842 | public GetPasswordDataRequest(String instanceId) {setInstanceId(instanceId);}
| public GetPasswordDataRequest(string instanceId){_instanceId = instanceId;}
|
7,843 | public GetCloudFrontOriginAccessIdentityConfigRequest(String id) {setId(id);}
| public GetCloudFrontOriginAccessIdentityConfigRequest(string id){_id = id;}
|
7,844 | public STSAssumeRoleSessionCredentialsProvider withRoleSessionDurationSeconds(long roleSessionDurationSeconds) {if (roleSessionDurationSeconds < 900 || roleSessionDurationSeconds > 3600) {throw new IllegalArgumentException("Assume Role session duration should be in the range of 15min - 1Hr");}this.roleSessionDurationSeconds = roleSessionDurationSeconds;return this;}
| public void WithRoleSessionDurationSeconds(long roleSessionDurationSeconds){if (roleSessionDurationSeconds < 180 || roleSessionDurationSeconds > 3600){throw new ArgumentOutOfRangeException("Assume Role session duration should be in the range of 3min - 1Hr");}this.roleSessionDurationSeconds = roleSessionDurationSeconds;}
|
7,845 | final public QueryNode ModClause(CharSequence field) throws ParseException {QueryNode q;ModifierQueryNode.Modifier mods;mods = Modifiers();q = Clause(field);if (mods != ModifierQueryNode.Modifier.MOD_NONE) {q = new ModifierQueryNode(q, mods);}{if (true) return q;}throw new Error("Missing return statement in function");}
| public IQueryNode ModClause(string field){IQueryNode q;Modifier mods;mods = Modifiers();q = Clause(field);if (mods != Modifier.MOD_NONE){q = new ModifierQueryNode(q, mods);}{ if (true) return q; }throw new Exception("Missing return statement in function");}
|
7,846 | public AbbreviatedObjectId getOldId(int nthParent) {return oldIds[nthParent];}
| public virtual AbbreviatedObjectId GetOldId(int nthParent){return oldIds[nthParent];}
|
7,847 | public HttpRequest(String strUrl, Map<String, String> tmpHeaders) {super(strUrl);if (null != tmpHeaders) {this.headers = tmpHeaders;}}
| public HttpRequest(string strUrl, Dictionary<string, string> tmpHeaders){Url = strUrl;if (null != tmpHeaders){Headers = tmpHeaders;}}
|
7,848 | public AcceptInvitationResult acceptInvitation(AcceptInvitationRequest request) {request = beforeClientExecution(request);return executeAcceptInvitation(request);}
| public virtual AcceptInvitationResponse AcceptInvitation(AcceptInvitationRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptInvitationRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptInvitationResponseUnmarshaller.Instance;return Invoke<AcceptInvitationResponse>(request, options);}
|
7,849 | public int getFormatIndex(CellValueRecordInterface cell) {ExtendedFormatRecord xfr = _xfRecords.get(cell.getXFIndex());if (xfr == null) {logger.log( POILogger.ERROR, "Cell " + cell.getRow() + "," + cell.getColumn()+ " uses XF with index " + cell.getXFIndex() + ", but we don't have that");return -1;}return xfr.getFormatIndex();}
| public int GetFormatIndex(CellValueRecordInterface cell){ExtendedFormatRecord xfr = (ExtendedFormatRecord)xfRecords[cell.XFIndex];if (xfr == null){logger.Log(POILogger.ERROR, "Cell " + cell.Row + "," + cell.Column + " uses XF with index " + cell.XFIndex + ", but we don't have that");return -1;}return xfr.FormatIndex;}
|
7,850 | public final File getFile() {return path;}
| public FilePath GetFile(){return path;}
|
7,851 | public void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int j = 0; j < iterations; ++j) {final byte block = blocks[blocksOffset++];values[valuesOffset++] = (block >>> 4) & 15;values[valuesOffset++] = block & 15;}}
| public override void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){for (int j = 0; j < iterations; ++j){var block = blocks[blocksOffset++];values[valuesOffset++] = ((int)((uint)block >> 4)) & 15;values[valuesOffset++] = block & 15;}}
|
7,852 | public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName());sb.append(" [");if (externalWorkbookNumber >= 0) {sb.append(" [");sb.append("workbook=").append(getExternalWorkbookNumber());sb.append("] ");}sb.append("sheet=").append(firstSheetName);if (lastSheetName != null) {sb.append(" : ");sb.append("sheet=").append(lastSheetName);}sb.append(" ! ");sb.append(formatReferenceAsString());sb.append("]");return sb.toString();}
| public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(this.GetType().Name);sb.Append(" [");if (externalWorkbookNumber >= 0){sb.Append(" [");sb.Append("workbook=").Append(ExternalWorkbookNumber);sb.Append("] ");}sb.Append("sheet=").Append(firstSheetName);if (lastSheetName != null){sb.Append(" : ");sb.Append("sheet=").Append(lastSheetName);}sb.Append(" ! ");sb.Append(FormatReferenceAsString());sb.Append("]");return sb.ToString();}
|
7,853 | public PushCommand setRefSpecs(List<RefSpec> specs) {checkCallable();this.refSpecs.clear();this.refSpecs.addAll(specs);return this;}
| public virtual NGit.Api.PushCommand SetRefSpecs(IList<RefSpec> specs){CheckCallable();this.refSpecs.Clear();Sharpen.Collections.AddAll(this.refSpecs, specs);return this;}
|
7,854 | public static boolean isBinary(byte[] raw, int length) {if (length > FIRST_FEW_BYTES)length = FIRST_FEW_BYTES;for (int ptr = 0; ptr < length; ptr++)if (raw[ptr] == '\0')return true;return false;}
| public static bool IsBinary(byte[] raw, int length){if (length > FIRST_FEW_BYTES){length = FIRST_FEW_BYTES;}for (int ptr = 0; ptr < length; ptr++){if (raw[ptr] == '\0'){return true;}}return false;}
|
7,855 | @Override public void clear() {AbstractBiMap.this.clear();}
| public override void clear(){this._enclosing.clear();}
|
7,856 | public PackingPhase getPhase() {return phase;}
| public virtual PackWriter.PackingPhase GetPhase(){return this.phase;}
|
7,857 | public State clone() {State clone = new State();clone.attribute = attribute.clone();if (next != null) {clone.next = next.clone();}return clone;}
| public object Clone(){State clone = new State();clone.attribute = (Attribute)attribute.Clone();if (next != null){clone.next = (State)next.Clone();}return clone;}
|
7,858 | public static double acosh(double a) {return Math.log(Math.sqrt(a * a - 1.0d) + a);}
| public static double Acosh(double a){return Math.Log(Math.Sqrt(a * a - 1.0d) + a);}
|
7,859 | public GetSearchSuggestionsResult getSearchSuggestions(GetSearchSuggestionsRequest request) {request = beforeClientExecution(request);return executeGetSearchSuggestions(request);}
| public virtual GetSearchSuggestionsResponse GetSearchSuggestions(GetSearchSuggestionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSearchSuggestionsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSearchSuggestionsResponseUnmarshaller.Instance;return Invoke<GetSearchSuggestionsResponse>(request, options);}
|
7,860 | public static Date getJavaDate(double date, boolean use1904windowing, TimeZone tz) {return getJavaDate(date, use1904windowing, tz, false);}
| public static DateTime getJavaDate(double date, bool use1904windowing, TimeZone tz){return GetJavaCalendar(date, use1904windowing, false);}
|
7,861 | public ListVerifiedEmailAddressesResult listVerifiedEmailAddresses(ListVerifiedEmailAddressesRequest request) {request = beforeClientExecution(request);return executeListVerifiedEmailAddresses(request);}
| public virtual ListVerifiedEmailAddressesResponse ListVerifiedEmailAddresses(ListVerifiedEmailAddressesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListVerifiedEmailAddressesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListVerifiedEmailAddressesResponseUnmarshaller.Instance;return Invoke<ListVerifiedEmailAddressesResponse>(request, options);}
|
7,862 | public int compareTo(QualityQuery other) {try {int n = Integer.parseInt(queryID);int nOther = Integer.parseInt(other.queryID);return n - nOther;} catch (NumberFormatException e) {return queryID.compareTo(other.queryID);}}
| public virtual int CompareTo(QualityQuery other){try{int n = int.Parse(queryID, CultureInfo.InvariantCulture);int nOther = int.Parse(other.queryID, CultureInfo.InvariantCulture);return n - nOther;}catch (FormatException ){return queryID.CompareToOrdinal(other.queryID);}}
|
7,863 | public void setExportAll(boolean export) {exportAll = export;}
| public virtual void SetExportAll(bool export){exportAll = export;}
|
7,864 | public LexerATNConfig(LexerATNConfig c, ATNState state,PredictionContext context) {super(c, state, context, c.semanticContext);this.lexerActionExecutor = c.lexerActionExecutor;this.passedThroughNonGreedyDecision = checkNonGreedyDecision(c, state);}
| public LexerATNConfig(LexerATNConfig c, ATNState state,PredictionContext context): base(c, state, context, c.semanticContext){this.lexerActionExecutor = c.lexerActionExecutor;this.passedThroughNonGreedyDecision = checkNonGreedyDecision(c, state);}
|
7,865 | public DescribeScheduledActionsResult describeScheduledActions(DescribeScheduledActionsRequest request) {request = beforeClientExecution(request);return executeDescribeScheduledActions(request);}
| public virtual DescribeScheduledActionsResponse DescribeScheduledActions(DescribeScheduledActionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScheduledActionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScheduledActionsResponseUnmarshaller.Instance;return Invoke<DescribeScheduledActionsResponse>(request, options);}
|
7,866 | public boolean isAdjacentBefore(ColumnInfoRecord other) {return _lastCol == other._firstCol - 1;}
| public bool IsAdjacentBefore(ColumnInfoRecord other){return _last_col == other._first_col - 1;}
|
7,867 | public QueryScorer(Query query, IndexReader reader, String field, String defaultField) {this.defaultField = defaultField;init(query, field, reader, true);}
| public QueryScorer(Query query, IndexReader reader, string field, string defaultField){this.defaultField = defaultField.Intern();Init(query, field, reader, true);}
|
7,868 | public CreateConfigurationSetTrackingOptionsResult createConfigurationSetTrackingOptions(CreateConfigurationSetTrackingOptionsRequest request) {request = beforeClientExecution(request);return executeCreateConfigurationSetTrackingOptions(request);}
| public virtual CreateConfigurationSetTrackingOptionsResponse CreateConfigurationSetTrackingOptions(CreateConfigurationSetTrackingOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConfigurationSetTrackingOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConfigurationSetTrackingOptionsResponseUnmarshaller.Instance;return Invoke<CreateConfigurationSetTrackingOptionsResponse>(request, options);}
|
7,869 | public synchronized int offsetByCodePoints(int index, int codePointOffset) {return super.offsetByCodePoints(index, codePointOffset);}
| public override int offsetByCodePoints(int index, int codePointOffset){lock (this){return base.offsetByCodePoints(index, codePointOffset);}}
|
7,870 | public void write(char[] buf) {write(buf, 0, buf.length);}
| public override void write(char[] buf){write(buf, 0, buf.Length);}
|
7,871 | public GetSdkResult getSdk(GetSdkRequest request) {request = beforeClientExecution(request);return executeGetSdk(request);}
| public virtual GetSdkResponse GetSdk(GetSdkRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSdkRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSdkResponseUnmarshaller.Instance;return Invoke<GetSdkResponse>(request, options);}
|
7,872 | public PutEmailIdentityDkimAttributesResult putEmailIdentityDkimAttributes(PutEmailIdentityDkimAttributesRequest request) {request = beforeClientExecution(request);return executePutEmailIdentityDkimAttributes(request);}
| public virtual PutEmailIdentityDkimAttributesResponse PutEmailIdentityDkimAttributes(PutEmailIdentityDkimAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutEmailIdentityDkimAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutEmailIdentityDkimAttributesResponseUnmarshaller.Instance;return Invoke<PutEmailIdentityDkimAttributesResponse>(request, options);}
|
7,873 | public WorkflowExecutionDetail describeWorkflowExecution(DescribeWorkflowExecutionRequest request) {request = beforeClientExecution(request);return executeDescribeWorkflowExecution(request);}
| public virtual DescribeWorkflowExecutionResponse DescribeWorkflowExecution(DescribeWorkflowExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkflowExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkflowExecutionResponseUnmarshaller.Instance;return Invoke<DescribeWorkflowExecutionResponse>(request, options);}
|
7,874 | public CloudFrontOriginAccessIdentityConfig(String callerReference) {setCallerReference(callerReference);}
| public CloudFrontOriginAccessIdentityConfig(string callerReference){_callerReference = callerReference;}
|
7,875 | public final String validate(String uri, int start, int end, String name)throws URISyntaxException {for (int i = start; i < end; ) {char ch = uri.charAt(i);if ((ch >= 'a' && ch <= 'z')|| (ch >= 'A' && ch <= 'Z')|| (ch >= '0' && ch <= '9')|| isRetained(ch)) {i++;} else if (ch == '%') {if (i + 2 >= end) {throw new URISyntaxException(uri, "Incomplete % sequence in " + name, i);}int d1 = hexToInt(uri.charAt(i + 1));int d2 = hexToInt(uri.charAt(i + 2));if (d1 == -1 || d2 == -1) {throw new URISyntaxException(uri, "Invalid % sequence: "+ uri.substring(i, i + 3) + " in " + name, i);}i += 3;} else {throw new URISyntaxException(uri, "Illegal character in " + name, i);}}return uri.substring(start, end);}
| public string validate(string uri, int start, int end, string name){{for (int i = start; i < end; ){char ch = uri[i];if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9') || isRetained(ch)){i++;}else{if (ch == '%'){if (i + 2 >= end){throw new java.net.URISyntaxException(uri, "Incomplete % sequence in " + name, i);}int d1 = hexToInt(uri[i + 1]);int d2 = hexToInt(uri[i + 2]);if (d1 == -1 || d2 == -1){throw new java.net.URISyntaxException(uri, "Invalid % sequence: " + Sharpen.StringHelper.Substring(uri, i, i + 3) + " in " + name, i);}i += 3;}else{throw new java.net.URISyntaxException(uri, "Illegal character in " + name, i);}}}}return Sharpen.StringHelper.Substring(uri, start, end);}
|
7,876 | public UnbufferedCharStream(Reader input, int bufferSize) {this(bufferSize);this.input = input;fill(1); }
| public UnbufferedCharStream(TextReader input, int bufferSize): this(bufferSize){this.input = input;Fill(1);}
|
7,877 | public ContinuableRecordInput(RecordInputStream in){_in = in;}
| public ContinuableRecordInput(RecordInputStream in1){_in = in1;}
|
7,878 | public StoredFieldsReader clone() {if (in == null) {throw new AlreadyClosedException("this FieldsReader is closed");}return new SimpleTextStoredFieldsReader(offsets, in.clone(), fieldInfos);}
| public override object Clone(){if (_input == null){throw new ObjectDisposedException(this.GetType().GetTypeInfo().FullName, "this FieldsReader is closed");}return new SimpleTextStoredFieldsReader(_offsets, (IndexInput) _input.Clone(), _fieldInfos);}
|
7,879 | public Initial(LittleEndianInput in) {_reserved0 = in.readInt();_reserved1 = in.readUShort();_reserved2 = in.readUByte();}
| public Initial(ILittleEndianInput in1){_reserved0 = in1.ReadInt();_reserved1 = in1.ReadUShort();_reserved2 = in1.ReadUByte();}
|
7,880 | public synchronized int getProgress() {return mIndeterminate ? 0 : mProgress;}
| public virtual int getProgress(){lock (this){return mIndeterminate ? 0 : mProgress;}}
|
7,881 | public CreateNamedQueryResult createNamedQuery(CreateNamedQueryRequest request) {request = beforeClientExecution(request);return executeCreateNamedQuery(request);}
| public virtual CreateNamedQueryResponse CreateNamedQuery(CreateNamedQueryRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNamedQueryRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNamedQueryResponseUnmarshaller.Instance;return Invoke<CreateNamedQueryResponse>(request, options);}
|
7,882 | public static DoubleBuffer allocate(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}return new ReadWriteDoubleArrayBuffer(capacity);}
| public static java.nio.DoubleBuffer allocate(int capacity_1){if (capacity_1 < 0){throw new System.ArgumentException();}return new java.nio.ReadWriteDoubleArrayBuffer(capacity_1);}
|
7,883 | public final String toString() {return getClass().getName() + " [" + _operator.getRepresentation() + getValueText() + "]";}
| public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(this.GetType().Name).Append(" [");sb.Append(_operator.Representation);sb.Append(ValueText);sb.Append("]");return sb.ToString();}
|
7,884 | public LongBuffer asReadOnlyBuffer() {return ReadOnlyLongArrayBuffer.copy(this, mark);}
| public override java.nio.LongBuffer asReadOnlyBuffer(){return java.nio.ReadOnlyLongArrayBuffer.copy(this, _mark);}
|
7,885 | public CreateFlowDefinitionResult createFlowDefinition(CreateFlowDefinitionRequest request) {request = beforeClientExecution(request);return executeCreateFlowDefinition(request);}
| public virtual CreateFlowDefinitionResponse CreateFlowDefinition(CreateFlowDefinitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFlowDefinitionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFlowDefinitionResponseUnmarshaller.Instance;return Invoke<CreateFlowDefinitionResponse>(request, options);}
|
7,886 | public GetOpenIdTokenResult getOpenIdToken(GetOpenIdTokenRequest request) {request = beforeClientExecution(request);return executeGetOpenIdToken(request);}
| public virtual GetOpenIdTokenResponse GetOpenIdToken(GetOpenIdTokenRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOpenIdTokenRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOpenIdTokenResponseUnmarshaller.Instance;return Invoke<GetOpenIdTokenResponse>(request, options);}
|
7,887 | public GetDocumentationPartResult getDocumentationPart(GetDocumentationPartRequest request) {request = beforeClientExecution(request);return executeGetDocumentationPart(request);}
| public virtual GetDocumentationPartResponse GetDocumentationPart(GetDocumentationPartRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDocumentationPartRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDocumentationPartResponseUnmarshaller.Instance;return Invoke<GetDocumentationPartResponse>(request, options);}
|
7,888 | public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {int nArgs = args.length;if (nArgs < 2) {return ErrorEval.VALUE_INVALID;}try {double rate = NumericFunction.singleOperandEvaluate(args[0], srcRowIndex, srcColumnIndex);ValueEval[] vargs = new ValueEval[args.length-1];System.arraycopy(args, 1, vargs, 0, vargs.length);double[] values = AggregateFunction.ValueCollector.collectValues(vargs);double result = FinanceLib.npv(rate, values);NumericFunction.checkValue(result);return new NumberEval(result);} catch (EvaluationException e) {return e.getErrorEval();}}
| public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){int nArgs = args.Length;if (nArgs < 2){return ErrorEval.VALUE_INVALID;}try{double rate = NumericFunction.SingleOperandEvaluate(args[0], srcRowIndex, srcColumnIndex);ValueEval[] vargs = new ValueEval[args.Length - 1];Array.Copy(args, 1, vargs, 0, vargs.Length);double[] values = AggregateFunction.ValueCollector.CollectValues(vargs);double result = FinanceLib.npv(rate, values);NumericFunction.CheckValue(result);return new NumberEval(result);}catch (EvaluationException e){return e.GetErrorEval();}}
|
7,889 | public String suggestFileExtension() {switch (EscherRecordTypes.forTypeID(blip.getRecordId())) {case BLIP_WMF:return "wmf";case BLIP_EMF:return "emf";case BLIP_PICT:return "pict";case BLIP_PNG:return "png";case BLIP_JPEG:return "jpeg";case BLIP_DIB:return "dib";default:return "";}}
| public String SuggestFileExtension(){switch (blip.RecordId){case EscherMetafileBlip.RECORD_ID_WMF:return "wmf";case EscherMetafileBlip.RECORD_ID_EMF:return "emf";case EscherMetafileBlip.RECORD_ID_PICT:return "pict";case EscherBitmapBlip.RECORD_ID_PNG:return "png";case EscherBitmapBlip.RECORD_ID_JPEG:return "jpeg";case EscherBitmapBlip.RECORD_ID_DIB:return "dib";default:return "";}}
|
7,890 | public AsyncResponsePostRequest() {super("industry-brain", "2018-07-12", "AsyncResponsePost");setMethod(MethodType.POST);}
| public AsyncResponsePostRequest(): base("industry-brain", "2018-07-12", "AsyncResponsePost"){Method = MethodType.POST;}
|
7,891 | public static final RevFilter between(long since, long until) {return new Between(since, until);}
| public static RevFilter Between(long since, long until){return new CommitTimeRevFilterBetween(since, until);}
|
7,892 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1) {double val;double d1;try {val = singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);d1 = singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return e.getErrorEval();}int nPlaces = (int)d1;if (nPlaces > 127) {return ErrorEval.VALUE_INVALID;}return new NumberEval(val);}
| 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);}
|
7,893 | public Iterator<T> iterator() {return new MyIterator();}
| public override Sharpen.Iterator<T> Iterator(){return new BlockList<T>.MyIterator(this);}
|
7,894 | public void reset(int[] docs, long[] offsets) {this.docs = docs;this.offsets = offsets;}
| public void Reset(int[] docs, long[] offsets){this.docs = docs;this.offsets = offsets;}
|
7,895 | public ObjectId getObjectId() {return object;}
| public virtual ObjectId GetObjectId(){return @object;}
|
7,896 | public String toString() {return "fileName=" + fileName + " size=" + size;}
| public override string ToString(){return string.Format("fileName={0} length={1}", FileName, Length);}
|
7,897 | public boolean isSubTotal(int rowIndex, int columnIndex){SheetRefEvaluator _sre = _evaluator.getSheetEvaluator(_evaluator.getFirstSheetIndex());return _sre.isSubTotal(getFirstRow() + rowIndex, getFirstColumn() + columnIndex);}
| public override bool IsSubTotal(int rowIndex, int columnIndex){SheetRefEvaluator _sre = _evaluator.GetSheetEvaluator(_evaluator.FirstSheetIndex);return _sre.IsSubTotal(FirstRow + rowIndex, FirstColumn + columnIndex);}
|
7,898 | public DeleteCollectionResult deleteCollection(DeleteCollectionRequest request) {request = beforeClientExecution(request);return executeDeleteCollection(request);}
| public virtual DeleteCollectionResponse DeleteCollection(DeleteCollectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCollectionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCollectionResponseUnmarshaller.Instance;return Invoke<DeleteCollectionResponse>(request, options);}
|
7,899 | public void write(byte[] b) {writeContinueIfRequired(b.length);_ulrOutput.write(b);}
| public void Write(byte[] b){_out.Write(b);_size += b.Length;}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.