id
int32 0
10.3k
| java
stringlengths 29
1.4k
| cs
stringlengths 28
1.38k
|
---|---|---|
7,700 | public boolean isAboveMinRep() {int sc = _significand.bitLength() - C_64;return _significand.compareTo(BI_MIN_BASE.shiftLeft(sc)) > 0;}
| public bool IsAboveMinRep(){int sc = _significand.BitLength() - C_64;return _significand.CompareTo(BI_MIN_BASE.ShiftLeft(sc)) > 0;}
|
7,701 | public AssociateContactWithAddressBookResult associateContactWithAddressBook(AssociateContactWithAddressBookRequest request) {request = beforeClientExecution(request);return executeAssociateContactWithAddressBook(request);}
| public virtual AssociateContactWithAddressBookResponse AssociateContactWithAddressBook(AssociateContactWithAddressBookRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateContactWithAddressBookRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateContactWithAddressBookResponseUnmarshaller.Instance;return Invoke<AssociateContactWithAddressBookResponse>(request, options);}
|
7,702 | public DeleteFolderResult deleteFolder(DeleteFolderRequest request) {request = beforeClientExecution(request);return executeDeleteFolder(request);}
| public virtual DeleteFolderResponse DeleteFolder(DeleteFolderRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFolderRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFolderResponseUnmarshaller.Instance;return Invoke<DeleteFolderResponse>(request, options);}
|
7,703 | public PhraseWildcardQuery build() {return new PhraseWildcardQuery(field, phraseTerms, slop, maxMultiTermExpansions, segmentOptimizationEnabled);}
| public override WAH8DocIdSet Build(){if (this.wordNum != -1){AddWord(wordNum, (byte)word);}return base.Build();}
|
7,704 | public DescribeJobFlowsResult describeJobFlows() {return describeJobFlows(new DescribeJobFlowsRequest());}
| public virtual DescribeJobFlowsResponse DescribeJobFlows(){return DescribeJobFlows(new DescribeJobFlowsRequest());}
|
7,705 | public float tf(float freq) {return baselineTf(freq);}
| public override float Tf(float freq){return BaselineTf(freq);}
|
7,706 | public DescribePublishingDestinationResult describePublishingDestination(DescribePublishingDestinationRequest request) {request = beforeClientExecution(request);return executeDescribePublishingDestination(request);}
| public virtual DescribePublishingDestinationResponse DescribePublishingDestination(DescribePublishingDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePublishingDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePublishingDestinationResponseUnmarshaller.Instance;return Invoke<DescribePublishingDestinationResponse>(request, options);}
|
7,707 | public int getLeftId(int wordId) {return LEFT_ID;}
| public int GetLeftId(int wordId){return LEFT_ID;}
|
7,708 | public static NormalisedDecimal create(BigInteger frac, int binaryExponent) {int pow10;if (binaryExponent > 49 || binaryExponent < 46) {int x = (29 << 19) - binaryExponent * LOG_BASE_10_OF_2_TIMES_2_POW_20;x += C_2_POW_19; pow10 = -(x >> 20);} else {pow10 = 0;}MutableFPNumber cc = new MutableFPNumber(frac, binaryExponent);if (pow10 != 0) {cc.multiplyByPowerOfTen(-pow10);}switch (cc.get64BitNormalisedExponent()) {case 46:if (cc.isAboveMinRep()) {break;}case 44:case 45:cc.multiplyByPowerOfTen(1);pow10--;break;case 47:case 48:break;case 49:if (cc.isBelowMaxRep()) {break;}case 50:cc.multiplyByPowerOfTen(-1);pow10++;break;default:throw new IllegalStateException("Bad binary exp " + cc.get64BitNormalisedExponent() + ".");}cc.normalise64bit();return cc.createNormalisedDecimal(pow10);}
| public static NormalisedDecimal Create(BigInteger frac, int binaryExponent){int pow10;if (binaryExponent > 49 || binaryExponent < 46){int x = (29 << 19) - binaryExponent * LOG_BASE_10_OF_2_TIMES_2_POW_20;x += C_2_POW_19; pow10 = -(x >> 20);}else{pow10 = 0;}MutableFPNumber cc = new MutableFPNumber(frac, binaryExponent);if (pow10 != 0){cc.multiplyByPowerOfTen(-pow10);}switch (cc.Get64BitNormalisedExponent()){case 46:if (cc.IsAboveMinRep()){break;}goto case 44;case 44:case 45:cc.multiplyByPowerOfTen(1);pow10--;break;case 47:case 48:break;case 49:if (cc.IsBelowMaxRep()){break;}goto case 50;case 50:cc.multiplyByPowerOfTen(-1);pow10++;break;default:throw new InvalidOperationException("Bad binary exp " + cc.Get64BitNormalisedExponent() + ".");}cc.Normalise64bit();return cc.CreateNormalisedDecimal(pow10);}
|
7,709 | public String toString() {return "DoubleRange(" + label + ": " + min + " to " + max + ")";}
| public override string ToString(){return "DoubleRange(" + minIncl + " to " + maxIncl + ")";}
|
7,710 | public void setRefLogIdent(PersonIdent pi) {destination.setRefLogIdent(pi);}
| public virtual void SetRefLogIdent(PersonIdent pi){destination.SetRefLogIdent(pi);}
|
7,711 | public final void yybegin(int newState) {zzLexicalState = newState;}
| public void YyBegin(int newState){zzLexicalState = newState;}
|
7,712 | public Trie(boolean forward) {rows.add(new Row());root = 0;this.forward = forward;}
| public Trie(bool forward){rows.Add(new Row());root = 0;this.forward = forward;}
|
7,713 | public DeleteTagsRequest(java.util.List<String> resources) {setResources(resources);}
| public DeleteTagsRequest(List<string> resources){_resources = resources;}
|
7,714 | public ObjectProtectRecord clone() {return copy();}
| public override Object Clone(){ObjectProtectRecord rec = new ObjectProtectRecord();rec.field_1_protect = field_1_protect;return rec;}
|
7,715 | public static FuncVarPtg create(String pName, int numArgs) {return create(numArgs, lookupIndex(pName));}
| public static FuncVarPtg Create(String pName, int numArgs){return Create(numArgs, LookupIndex(pName));}
|
7,716 | public void clear() {this.processors.clear();}
| public virtual void Clear(){this.processors.Clear();}
|
7,717 | public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeDouble(getValue());}
| public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteDouble(Value);}
|
7,718 | public NullReader(int valueCount) {this.valueCount = valueCount;}
| public NullReader(int valueCount){this.valueCount = valueCount;}
|
7,719 | public CreateVaultResult createVault(CreateVaultRequest request) {request = beforeClientExecution(request);return executeCreateVault(request);}
| public virtual CreateVaultResponse CreateVault(CreateVaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVaultRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVaultResponseUnmarshaller.Instance;return Invoke<CreateVaultResponse>(request, options);}
|
7,720 | @Override public void add(int index, E object) {Object[] a = array;int s = size;if (index > s || index < 0) {throwIndexOutOfBoundsException(index, s);}if (s < a.length) {System.arraycopy(a, index, a, index + 1, s - index);} else {Object[] newArray = new Object[newCapacity(s)];System.arraycopy(a, 0, newArray, 0, index);System.arraycopy(a, index, newArray, index + 1, s - index);array = a = newArray;}a[index] = object;size = s + 1;modCount++;}
| public override void add(int index, E @object){object[] a = array;int s = _size;if (index > s || index < 0){throwIndexOutOfBoundsException(index, s);}if (s < a.Length){System.Array.Copy(a, index, a, index + 1, s - index);}else{object[] newArray = new object[newCapacity(s)];System.Array.Copy(a, 0, newArray, 0, index);System.Array.Copy(a, index, newArray, index + 1, s - index);array = a = newArray;}a[index] = @object;_size = s + 1;modCount++;}
|
7,721 | public int read(char[] c, int off, int len) {if (left > len) {s.getChars(upto, upto+len, c, off);upto += len;left -= len;return len;} else if (0 == left) {return -1;} else {s.getChars(upto, upto+left, c, off);int r = left;left = 0;upto = s.length();return r;}}
| public override int Read(char[] c, int off, int len){if (pos < size){len = Math.Min(len, size - pos);s.CopyTo(pos, c, off, pos + len - pos);pos += len;return len;}else{s = null;return -1;}}
|
7,722 | public DeleteDeploymentResult deleteDeployment(DeleteDeploymentRequest request) {request = beforeClientExecution(request);return executeDeleteDeployment(request);}
| public virtual DeleteDeploymentResponse DeleteDeployment(DeleteDeploymentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDeploymentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDeploymentResponseUnmarshaller.Instance;return Invoke<DeleteDeploymentResponse>(request, options);}
|
7,723 | public String toString() {return getClass().getSimpleName() + "(bitsPerValue=" + bitsPerValue+ ",size=" + size() + ",blocks=" + blocks.length + ")";}
| public override string ToString(){return this.GetType().Name + "(bitsPerValue=" + m_bitsPerValue + ", size=" + Count + ", elements.length=" + blocks.Length + ")";}
|
7,724 | public VectorValueSource(List<ValueSource> sources) {this.sources = sources;}
| public VectorValueSource(IList<ValueSource> sources){this.m_sources = sources;}
|
7,725 | public HSSFShape(HSSFShape parent, HSSFAnchor anchor) {this.parent = parent;this.anchor = anchor;this._escherContainer = createSpContainer();_optRecord = _escherContainer.getChildById(EscherOptRecord.RECORD_ID);_objRecord = createObjRecord();}
| public HSSFShape(HSSFShape parent, HSSFAnchor anchor){this.parent = parent;this.anchor = anchor;this._escherContainer = CreateSpContainer();_optRecord = (EscherOptRecord)_escherContainer.GetChildById(EscherOptRecord.RECORD_ID);_objRecord = CreateObjRecord();}
|
7,726 | public GalicianMinimalStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| public GalicianMinimalStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
7,727 | public DescribeFpgaImageAttributeResult describeFpgaImageAttribute(DescribeFpgaImageAttributeRequest request) {request = beforeClientExecution(request);return executeDescribeFpgaImageAttribute(request);}
| public virtual DescribeFpgaImageAttributeResponse DescribeFpgaImageAttribute(DescribeFpgaImageAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFpgaImageAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFpgaImageAttributeResponseUnmarshaller.Instance;return Invoke<DescribeFpgaImageAttributeResponse>(request, options);}
|
7,728 | public ValueFiller getValueFiller() {return new ValueFiller() {private final MutableValueBool mval = new MutableValueBool();@Override
| public override ValueFiller GetValueFiller(){return new ValueFillerAnonymousInnerClassHelper(this);}
|
7,729 | public static int update(int hash, Object value) {return update(hash, value != null ? value.hashCode() : 0);}
| public static int Update(int hash, object value){return Update(hash, value != null ? value.GetHashCode() : 0);}
|
7,730 | public DescribeModelVersionsResult describeModelVersions(DescribeModelVersionsRequest request) {request = beforeClientExecution(request);return executeDescribeModelVersions(request);}
| public virtual DescribeModelVersionsResponse DescribeModelVersions(DescribeModelVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeModelVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeModelVersionsResponseUnmarshaller.Instance;return Invoke<DescribeModelVersionsResponse>(request, options);}
|
7,731 | public static IndexCommit findIndexCommit(Directory dir, String userData) throws IOException {Collection<IndexCommit> commits = DirectoryReader.listCommits(dir);for (final IndexCommit ic : commits) {Map<String,String> map = ic.getUserData();String ud = null;if (map != null) {ud = map.get(USER_DATA);}if (ud != null && ud.equals(userData)) {return ic;}}throw new IOException("index does not contain commit with userData: " + userData);}
| public static IndexCommit FindIndexCommit(Store.Directory dir, string userData){IList<IndexCommit> commits = DirectoryReader.ListCommits(dir);foreach (IndexCommit ic in commits){IDictionary<string, string> map = ic.UserData;string ud = null;if (map != null){map.TryGetValue(USER_DATA, out ud);}if (ud != null && ud.Equals(userData, StringComparison.Ordinal)){return ic;}}throw new IOException("index does not contain commit with userData: " + userData);}
|
7,732 | public IndexEnum(FST<Long> fst) {fstEnum = new BytesRefFSTEnum<>(fst);}
| public IndexEnum(FST<long?> fst){fstEnum = new BytesRefFSTEnum<long?>(fst);}
|
7,733 | public HSSFEvaluationSheet(HSSFSheet hs) {_hs = hs;}
| public HSSFEvaluationSheet(HSSFSheet hs){_hs = hs;}
|
7,734 | public void update(int b) {if (upto == buffer.length) {flush();}buffer[upto++] = (byte) b;}
| public virtual void Update(int b){if (upto == buffer.Length){Flush();}buffer[upto++] = (byte)b;}
|
7,735 | public PutPartnerEventsResult putPartnerEvents(PutPartnerEventsRequest request) {request = beforeClientExecution(request);return executePutPartnerEvents(request);}
| public virtual PutPartnerEventsResponse PutPartnerEvents(PutPartnerEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutPartnerEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutPartnerEventsResponseUnmarshaller.Instance;return Invoke<PutPartnerEventsResponse>(request, options);}
|
7,736 | public boolean isThin() {return thin;}
| public virtual bool IsThin(){return thin;}
|
7,737 | public String toStringTree() {return toString();}
| public virtual string ToStringTree(){return ToString();}
|
7,738 | public PackConfig(Repository db) {fromConfig(db.getConfig());}
| public PackConfig(Repository db){FromConfig(db.GetConfig());}
|
7,739 | public void setDeltaCompress(boolean deltaCompress) {this.deltaCompress = deltaCompress;}
| public virtual void SetDeltaCompress(bool deltaCompress){this.deltaCompress = deltaCompress;}
|
7,740 | public ListTrafficPolicyInstancesByHostedZoneResult listTrafficPolicyInstancesByHostedZone(ListTrafficPolicyInstancesByHostedZoneRequest request) {request = beforeClientExecution(request);return executeListTrafficPolicyInstancesByHostedZone(request);}
| public virtual ListTrafficPolicyInstancesByHostedZoneResponse ListTrafficPolicyInstancesByHostedZone(ListTrafficPolicyInstancesByHostedZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTrafficPolicyInstancesByHostedZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTrafficPolicyInstancesByHostedZoneResponseUnmarshaller.Instance;return Invoke<ListTrafficPolicyInstancesByHostedZoneResponse>(request, options);}
|
7,741 | public EscherRecord findFirstWithId(short id) {return findFirstWithId(id, getEscherRecords());}
| public EscherRecord FindFirstWithId(short id){return FindFirstWithId(id, EscherRecords);}
|
7,742 | public byte[] getEntryPathBuffer() {return path;}
| public virtual byte[] GetEntryPathBuffer(){return path;}
|
7,743 | public void setFont(Font f){font = f;}
| public void SetFont(Font f){font = f;}
|
7,744 | public void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final int byte0 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = byte0 >>> 2;final int byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte0 & 3) << 4) | (byte1 >>> 4);final int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 15) << 2) | (byte2 >>> 6);values[valuesOffset++] = byte2 & 63;}}
| public override void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){int byte0 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (int)((uint)byte0 >> 2);int byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte0 & 3) << 4) | ((int)((uint)byte1 >> 4));int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 15) << 2) | ((int)((uint)byte2 >> 6));values[valuesOffset++] = byte2 & 63;}}
|
7,745 | public boolean hasAnchoringBounds() {return anchoringBounds;}
| public bool hasAnchoringBounds(){return anchoringBounds;}
|
7,746 | public void drawPolygon(int[] xPoints, int[] yPoints,int nPoints){int right = findBiggest(xPoints);int bottom = findBiggest(yPoints);int left = findSmallest(xPoints);int top = findSmallest(yPoints);HSSFPolygon shape = escherGroup.createPolygon(new HSSFChildAnchor(left,top,right,bottom) );shape.setPolygonDrawArea(right - left, bottom - top);shape.setPoints(addToAll(xPoints, -left), addToAll(yPoints, -top));shape.setLineStyleColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());shape.setLineWidth(0);shape.setNoFill(true);}
| public void DrawPolygon(int[] xPoints, int[] yPoints, int nPoints){int right = FindBiggest(xPoints);int bottom = FindBiggest(yPoints);int left = FindSmallest(xPoints);int top = FindSmallest(yPoints);HSSFPolygon shape = escherGroup.CreatePolygon(new HSSFChildAnchor(left, top, right, bottom));shape.SetPolygonDrawArea(right - left, bottom - top);shape.SetPoints(AddToAll(xPoints, -left), AddToAll(yPoints, -top));shape.SetLineStyleColor(foreground.R, foreground.G, foreground.B);shape.LineWidth = (0);shape.IsNoFill = (true);}
|
7,747 | public String getAccessKeyId() {return getCredentials().getAccessKeyId();}
| public new string GetAccessKeyId(){return GetCredentials().GetAccessKeyId();}
|
7,748 | public PutDedicatedIpWarmupAttributesResult putDedicatedIpWarmupAttributes(PutDedicatedIpWarmupAttributesRequest request) {request = beforeClientExecution(request);return executePutDedicatedIpWarmupAttributes(request);}
| public virtual PutDedicatedIpWarmupAttributesResponse PutDedicatedIpWarmupAttributes(PutDedicatedIpWarmupAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutDedicatedIpWarmupAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutDedicatedIpWarmupAttributesResponseUnmarshaller.Instance;return Invoke<PutDedicatedIpWarmupAttributesResponse>(request, options);}
|
7,749 | public void print(char ch) {print(String.valueOf(ch));}
| public virtual void print(char ch){print(ch.ToString());}
|
7,750 | public String buildExtensionField(String extensionKey) {return buildExtensionField(extensionKey, "");}
| public virtual string BuildExtensionField(string extensionKey){return BuildExtensionField(extensionKey, "");}
|
7,751 | public CompareFacesResult compareFaces(CompareFacesRequest request) {request = beforeClientExecution(request);return executeCompareFaces(request);}
| public virtual CompareFacesResponse CompareFaces(CompareFacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = CompareFacesRequestMarshaller.Instance;options.ResponseUnmarshaller = CompareFacesResponseUnmarshaller.Instance;return Invoke<CompareFacesResponse>(request, options);}
|
7,752 | public PatchFormatException(List<FormatError> errors) {super(MessageFormat.format(JGitText.get().patchFormatException, errors));this.errors = errors;}
| public PatchFormatException(IList<FormatError> errors) : base(MessageFormat.Format(JGitText.Get().patchFormatException, errors)){this.errors = errors;}
|
7,753 | public String finish() {sb.append(formatTrailer());return sb.toString();}
| public virtual string Finish(){sb.Append(FormatTrailer());return sb.ToString();}
|
7,754 | public int getLevelForDistance(double dist) {if (dist == 0)return maxLevels;for (int i = 0; i < maxLevels-1; i++) {if(dist > levelW[i] && dist > levelH[i]) {return i+1;}}return maxLevels;}
| public override int GetLevelForDistance(double dist){if (dist == 0){return m_maxLevels;}for (int i = 0; i < m_maxLevels - 1; i++){if (dist > levelW[i] && dist > levelH[i]){return i + 1;}}return m_maxLevels;}
|
7,755 | public int[] init() {final int[] ord = super.init();boost = new float[ArrayUtil.oversize(ord.length, Float.BYTES)];termState = new TermStates[ArrayUtil.oversize(ord.length, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];assert termState.length >= ord.length && boost.length >= ord.length;return ord;}
| public override int[] Init(){int[] ord = base.Init();boost = new float[ArrayUtil.Oversize(ord.Length, RamUsageEstimator.NUM_BYTES_SINGLE)];termState = new TermContext[ArrayUtil.Oversize(ord.Length, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];Debug.Assert(termState.Length >= ord.Length && boost.Length >= ord.Length);return ord;}
|
7,756 | public final void yyreset(java.io.Reader reader) {zzReader = reader;zzAtBOL = true;zzAtEOF = false;zzEOFDone = false;zzEndRead = zzStartRead = 0;zzCurrentPos = zzMarkedPos = 0;zzFinalHighSurrogate = 0;yyline = yychar = yycolumn = 0;zzLexicalState = YYINITIAL;if (zzBuffer.length > ZZ_BUFFERSIZE)zzBuffer = new char[ZZ_BUFFERSIZE];}
| public void YyReset(TextReader reader){zzReader = reader;zzAtBOL = true;zzAtEOF = false;zzEOFDone = false;zzEndRead = zzStartRead = 0;zzCurrentPos = zzMarkedPos = 0;yyline = yyChar = yycolumn = 0;zzLexicalState = YYINITIAL;if (zzBuffer.Length > ZZ_BUFFERSIZE){zzBuffer = new char[ZZ_BUFFERSIZE];}}
|
7,757 | public void deleteFile(String name) {throw new UnsupportedOperationException();}
| public override void DeleteFile(string name){throw new NotSupportedException();}
|
7,758 | public StopTrainingDocumentClassifierResult stopTrainingDocumentClassifier(StopTrainingDocumentClassifierRequest request) {request = beforeClientExecution(request);return executeStopTrainingDocumentClassifier(request);}
| public virtual StopTrainingDocumentClassifierResponse StopTrainingDocumentClassifier(StopTrainingDocumentClassifierRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTrainingDocumentClassifierRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTrainingDocumentClassifierResponseUnmarshaller.Instance;return Invoke<StopTrainingDocumentClassifierResponse>(request, options);}
|
7,759 | public TermStats(int docFreq, long totalTermFreq) {this.docFreq = docFreq;this.totalTermFreq = totalTermFreq;}
| public TermStats(int docFreq, long totalTermFreq){this.DocFreq = docFreq;this.TotalTermFreq = totalTermFreq;}
|
7,760 | public GetAuthorizersResult getAuthorizers(GetAuthorizersRequest request) {request = beforeClientExecution(request);return executeGetAuthorizers(request);}
| public virtual GetAuthorizersResponse GetAuthorizers(GetAuthorizersRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAuthorizersRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAuthorizersResponseUnmarshaller.Instance;return Invoke<GetAuthorizersResponse>(request, options);}
|
7,761 | public void dispatch(RepositoryEvent event) {List<ListenerHandle> list = lists.get(event.getListenerType());if (list != null) {for (ListenerHandle handle : list)event.dispatch(handle.listener);}}
| public virtual void Dispatch(RepositoryEvent @event){IList<ListenerHandle> list = lists.Get(@event.GetListenerType());if (list != null){foreach (ListenerHandle handle in list){@event.Dispatch(handle.listener);}}}
|
7,762 | public String toString(String field) {StringBuilder buffer = new StringBuilder();buffer.append("spanNot(");buffer.append(include.toString(field));buffer.append(", ");buffer.append(exclude.toString(field));buffer.append(", ");buffer.append(Integer.toString(pre));buffer.append(", ");buffer.append(Integer.toString(post));buffer.append(")");return buffer.toString();}
| public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append("spanNot(");buffer.Append(include.ToString(field));buffer.Append(", ");buffer.Append(exclude.ToString(field));buffer.Append(", ");buffer.Append(Convert.ToString(pre));buffer.Append(", ");buffer.Append(Convert.ToString(post));buffer.Append(")");buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}
|
7,763 | public SearchGameSessionsResult searchGameSessions(SearchGameSessionsRequest request) {request = beforeClientExecution(request);return executeSearchGameSessions(request);}
| public virtual SearchGameSessionsResponse SearchGameSessions(SearchGameSessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchGameSessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchGameSessionsResponseUnmarshaller.Instance;return Invoke<SearchGameSessionsResponse>(request, options);}
|
7,764 | public int stem(char s[], int len) {if (len < 4)return len;for (int i = 0; i < len; i++)switch(s[i]) {case 'ä':case 'å': s[i] = 'a'; break;case 'ö': s[i] = 'o'; break;}len = step1(s, len);len = step2(s, len);len = step3(s, len);len = norm1(s, len);len = norm2(s, len);return len;}
| public virtual int Stem(char[] s, int len){if (len < 4){return len;}for (int i = 0; i < len; i++){switch (s[i]){case 'ä':case 'å':s[i] = 'a';break;case 'ö':s[i] = 'o';break;}}len = Step1(s, len);len = Step2(s, len);len = Step3(s, len);len = Norm1(s, len);len = Norm2(s, len);return len;}
|
7,765 | public PutConfigurationSetReputationOptionsResult putConfigurationSetReputationOptions(PutConfigurationSetReputationOptionsRequest request) {request = beforeClientExecution(request);return executePutConfigurationSetReputationOptions(request);}
| public virtual PutConfigurationSetReputationOptionsResponse PutConfigurationSetReputationOptions(PutConfigurationSetReputationOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConfigurationSetReputationOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConfigurationSetReputationOptionsResponseUnmarshaller.Instance;return Invoke<PutConfigurationSetReputationOptionsResponse>(request, options);}
|
7,766 | public ListAttendeeTagsResult listAttendeeTags(ListAttendeeTagsRequest request) {request = beforeClientExecution(request);return executeListAttendeeTags(request);}
| public virtual ListAttendeeTagsResponse ListAttendeeTags(ListAttendeeTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAttendeeTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAttendeeTagsResponseUnmarshaller.Instance;return Invoke<ListAttendeeTagsResponse>(request, options);}
|
7,767 | public static void validateSheetName(String sheetName) {if (sheetName == null) {throw new IllegalArgumentException("sheetName must not be null");}int len = sheetName.length();if (len < 1 || len > 31) {throw new IllegalArgumentException("sheetName '" + sheetName+ "' is invalid - character count MUST be greater than or equal to 1 and less than or equal to 31");}for (int i=0; i<len; i++) {char ch = sheetName.charAt(i);switch (ch) {case '/':case '\\':case '?':case '*':case ']':case '[':case ':':break;default:continue;}throw new IllegalArgumentException("Invalid char (" + ch+ ") found at index (" + i + ") in sheet name '" + sheetName + "'");}if (sheetName.charAt(0) == '\'' || sheetName.charAt(len-1) == '\'') {throw new IllegalArgumentException("Invalid sheet name '" + sheetName+ "'. Sheet names must not begin or end with (').");}}
| public static void ValidateSheetName(String sheetName) {if (sheetName == null) {throw new ArgumentException("sheetName must not be null");}int len = sheetName.Length;if (len < 1 || len > 31) {throw new ArgumentException("sheetName '" + sheetName+ "' is invalid - character count MUST be greater than or equal to 1 and less than or equal to 31");}for (int i=0; i<len; i++) {char ch = sheetName[i];switch (ch) {case '/':case '\\':case '?':case '*':case ']':case '[':case ':':break;default:continue;}throw new ArgumentException("Invalid char (" + ch+ ") found at index (" + i + ") in sheet name '" + sheetName + "'");}if (sheetName[0] == '\'' || sheetName[len-1] == '\'') {throw new ArgumentException("Invalid sheet name '" + sheetName+ "'. Sheet names must not begin or end with (').");}}
|
7,768 | public long getPosition() {return getPointer();}
| public long GetPosition(){return outerInstance.GetPointer();}
|
7,769 | public void reset(DataOutput out) {assert out != null;this.out = out;off = 0;ord = 0L;finished = false;}
| public virtual void Reset(DataOutput @out){Debug.Assert(@out != null);this.m_out = @out;m_off = 0;m_ord = 0L;m_finished = false;}
|
7,770 | public String toString(String field) {final StringBuilder buffer = new StringBuilder();if (!term.field().equals(field)) {buffer.append(term.field());buffer.append(":");}buffer.append(term.text());buffer.append('~');buffer.append(maxEdits);return buffer.toString();}
| public override string ToString(string field){var buffer = new StringBuilder();if (!term.Field.Equals(field, StringComparison.Ordinal)){buffer.Append(term.Field);buffer.Append(":");}buffer.Append(term.Text());buffer.Append('~');buffer.Append(Convert.ToString(maxEdits));buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}
|
7,771 | public RevFilter clone() {return new MaxCountRevFilter(maxCount);}
| public override RevFilter Clone(){return new NGit.Revwalk.Filter.MaxCountRevFilter(maxCount);}
|
7,772 | public DisableUserResult disableUser(DisableUserRequest request) {request = beforeClientExecution(request);return executeDisableUser(request);}
| public virtual DisableUserResponse DisableUser(DisableUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableUserRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableUserResponseUnmarshaller.Instance;return Invoke<DisableUserResponse>(request, options);}
|
7,773 | public void append(String stringToMatch) {for (int i = 0; i < stringToMatch.length(); i++) {final char c = stringToMatch.charAt(i);if (!extendStringToMatchByOneCharacter(c))break;}}
| public virtual void Append(string stringToMatch){for (int i = 0; i < stringToMatch.Length; i++){char c = stringToMatch[i];ExtendStringToMatchByOneCharacter(c);}}
|
7,774 | public StopTrainingJobResult stopTrainingJob(StopTrainingJobRequest request) {request = beforeClientExecution(request);return executeStopTrainingJob(request);}
| public virtual StopTrainingJobResponse StopTrainingJob(StopTrainingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTrainingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTrainingJobResponseUnmarshaller.Instance;return Invoke<StopTrainingJobResponse>(request, options);}
|
7,775 | public IndexInput openInput(String name, IOContext context) throws IOException {ensureOpen();final String id = IndexFileNames.stripSegmentName(name);final FileEntry entry = entries.get(id);if (entry == null) {String datFileName = IndexFileNames.segmentFileName(segmentName, "", Lucene50CompoundFormat.DATA_EXTENSION);throw new FileNotFoundException("No sub-file with id " + id + " found in compound file \"" + datFileName + "\" (fileName=" + name + " files: " + entries.keySet() + ")");}return handle.slice(name, entry.offset, entry.length);}
| public override IndexInput OpenInput(string name, IOContext context){lock (this){EnsureOpen();Debug.Assert(!openForWrite);string id = IndexFileNames.StripSegmentName(name);if (!entries.TryGetValue(id, out FileEntry entry) || entry == null){throw new FileNotFoundException("No sub-file with id " + id +" found (fileName=" + name + " files: " +string.Format(J2N.Text.StringFormatter.InvariantCulture, "{0}", entries.Keys) + ")");}return handle.OpenSlice(name, entry.Offset, entry.Length);}}
|
7,776 | public GetSnowballUsageResult getSnowballUsage(GetSnowballUsageRequest request) {request = beforeClientExecution(request);return executeGetSnowballUsage(request);}
| public virtual GetSnowballUsageResponse GetSnowballUsage(GetSnowballUsageRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSnowballUsageRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSnowballUsageResponseUnmarshaller.Instance;return Invoke<GetSnowballUsageResponse>(request, options);}
|
7,777 | public DeleteUserProfileResult deleteUserProfile(DeleteUserProfileRequest request) {request = beforeClientExecution(request);return executeDeleteUserProfile(request);}
| public virtual DeleteUserProfileResponse DeleteUserProfile(DeleteUserProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUserProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUserProfileResponseUnmarshaller.Instance;return Invoke<DeleteUserProfileResponse>(request, options);}
|
7,778 | public int compare(ConfigLine a, ConfigLine b) {return compare2(a.section, a.subsection, a.name,b.section, b.subsection, b.name);}
| public virtual int Compare(ConfigLine a, ConfigLine b){var value = Compare2(a.section, a.subsection, a.name, b.section, b.subsection, b.name);return value != 0 ? value : string.CompareOrdinal (a.value, b.value);}
|
7,779 | public LongBuffer asReadOnlyBuffer() {return duplicate();}
| public override java.nio.LongBuffer asReadOnlyBuffer(){return duplicate();}
|
7,780 | public HSSFComment createCellComment(ClientAnchor anchor) {return createComment((HSSFAnchor) anchor);}
| public IComment CreateCellComment(IClientAnchor anchor){return CreateComment((HSSFAnchor)anchor);}
|
7,781 | public CollatedTermAttributeImpl(Collator collator) {this.collator = (Collator) collator.clone();}
| public CollatedTermAttributeImpl(Collator collator){this.collator = (Collator)collator.Clone();}
|
7,782 | public UpdatePipelineStatusResult updatePipelineStatus(UpdatePipelineStatusRequest request) {request = beforeClientExecution(request);return executeUpdatePipelineStatus(request);}
| public virtual UpdatePipelineStatusResponse UpdatePipelineStatus(UpdatePipelineStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePipelineStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePipelineStatusResponseUnmarshaller.Instance;return Invoke<UpdatePipelineStatusResponse>(request, options);}
|
7,783 | public void copyTo(char[] tmp, StringBuilder w) {toHexCharArray(tmp);w.append(tmp, 0, Constants.OBJECT_ID_STRING_LENGTH);}
| public virtual void CopyTo(char[] tmp, StringBuilder w){ToHexCharArray(tmp);w.Append(tmp, 0, Constants.OBJECT_ID_STRING_LENGTH);}
|
7,784 | public BytesReader getBytesReader() {if (fst == null) {return null;} else {return fst.getBytesReader();}}
| public FST.BytesReader GetBytesReader(){if (fst == null){return null;}else{return fst.GetBytesReader();}}
|
7,785 | public CreateRouteTableResult createRouteTable(CreateRouteTableRequest request) {request = beforeClientExecution(request);return executeCreateRouteTable(request);}
| public virtual CreateRouteTableResponse CreateRouteTable(CreateRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRouteTableResponseUnmarshaller.Instance;return Invoke<CreateRouteTableResponse>(request, options);}
|
7,786 | public String toString(String field) {return "ToParentBlockJoinQuery ("+childQuery.toString()+")";}
| public override string ToString(string field){return "ToParentBlockJoinQuery (" + _childQuery + ")";}
|
7,787 | public DisassociateClientVpnTargetNetworkResult disassociateClientVpnTargetNetwork(DisassociateClientVpnTargetNetworkRequest request) {request = beforeClientExecution(request);return executeDisassociateClientVpnTargetNetwork(request);}
| public virtual DisassociateClientVpnTargetNetworkResponse DisassociateClientVpnTargetNetwork(DisassociateClientVpnTargetNetworkRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateClientVpnTargetNetworkRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateClientVpnTargetNetworkResponseUnmarshaller.Instance;return Invoke<DisassociateClientVpnTargetNetworkResponse>(request, options);}
|
7,788 | public String toString() {return "<slop value='" + getValueString() + "'>" + "\n"+ getChild().toString() + "\n</slop>";}
| public override string ToString(){return "<slop value='" + GetValueString() + "'>" + "\n"+ GetChild().ToString() + "\n</slop>";}
|
7,789 | public GetExportJobsResult getExportJobs(GetExportJobsRequest request) {request = beforeClientExecution(request);return executeGetExportJobs(request);}
| public virtual GetExportJobsResponse GetExportJobs(GetExportJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetExportJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetExportJobsResponseUnmarshaller.Instance;return Invoke<GetExportJobsResponse>(request, options);}
|
7,790 | public UpdateBaiduChannelResult updateBaiduChannel(UpdateBaiduChannelRequest request) {request = beforeClientExecution(request);return executeUpdateBaiduChannel(request);}
| public virtual UpdateBaiduChannelResponse UpdateBaiduChannel(UpdateBaiduChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBaiduChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBaiduChannelResponseUnmarshaller.Instance;return Invoke<UpdateBaiduChannelResponse>(request, options);}
|
7,791 | public ImportApiResult importApi(ImportApiRequest request) {request = beforeClientExecution(request);return executeImportApi(request);}
| public virtual ImportApiResponse ImportApi(ImportApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportApiRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportApiResponseUnmarshaller.Instance;return Invoke<ImportApiResponse>(request, options);}
|
7,792 | public synchronized int read() {return pos < count ? buffer.charAt(pos++) & 0xFF : -1;}
| public override int read(){lock (this){return pos < count ? buffer[pos++] & unchecked((int)(0xFF)) : -1;}}
|
7,793 | public GetUserResult getUser(GetUserRequest request) {request = beforeClientExecution(request);return executeGetUser(request);}
| public virtual GetUserResponse GetUser(GetUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUserRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUserResponseUnmarshaller.Instance;return Invoke<GetUserResponse>(request, options);}
|
7,794 | public GetHealthCheckLastFailureReasonResult getHealthCheckLastFailureReason(GetHealthCheckLastFailureReasonRequest request) {request = beforeClientExecution(request);return executeGetHealthCheckLastFailureReason(request);}
| public virtual GetHealthCheckLastFailureReasonResponse GetHealthCheckLastFailureReason(GetHealthCheckLastFailureReasonRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHealthCheckLastFailureReasonRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHealthCheckLastFailureReasonResponseUnmarshaller.Instance;return Invoke<GetHealthCheckLastFailureReasonResponse>(request, options);}
|
7,795 | public String getRawQuery() {return query;}
| public string getRawQuery(){return query;}
|
7,796 | public static void fill(long[] array, int start, int end, long value) {Arrays.checkStartAndEnd(array.length, start, end);for (int i = start; i < end; i++) {array[i] = value;}}
| public static void fill(long[] array, int start, int end, long value){java.util.Arrays.checkStartAndEnd(array.Length, start, end);{for (int i = start; i < end; i++){array[i] = value;}}}
|
7,797 | public boolean equals(Object obj) {if (obj instanceof StatePair) {StatePair p = (StatePair) obj;return p.s1 == s1 && p.s2 == s2;} else return false;}
| public override bool Equals(object obj){if (obj is StatePair){StatePair p = (StatePair)obj;return p.S1 == S1 && p.S2 == S2;}else{return false;}}
|
7,798 | public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[OLD STRING]\n");buffer.append(" .string = ").append(getString()).append("\n");buffer.append("[/OLD STRING]\n");return buffer.toString();}
| public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[OLD STRING]\n");buffer.Append(" .string = ").Append(GetString()).Append("\n");buffer.Append("[/OLD STRING]\n");return buffer.ToString();}
|
7,799 | public ExecutePolicyResult executePolicy(ExecutePolicyRequest request) {request = beforeClientExecution(request);return executeExecutePolicy(request);}
| public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExecutePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = ExecutePolicyResponseUnmarshaller.Instance;return Invoke<ExecutePolicyResponse>(request, options);}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.