java
stringlengths 28
1.4k
| C#
stringlengths 27
1.38k
|
---|---|
public String toString() {return getClass().getName() + " [" +formatAsString() +"]";} | public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");sb.Append(FormatAsString);sb.Append("]");return sb.ToString();} |
public String getRemoteName() {return remoteName;} | public virtual string GetRemoteName(){return remoteName;} |
public CherryPickCommand cherryPick() {return new CherryPickCommand(repo);} | public virtual CherryPickCommand CherryPick(){return new CherryPickCommand(repo);} |
public HSSFClientAnchor createClientAnchor(){return new HSSFClientAnchor();} | public NPOI.SS.UserModel.IClientAnchor CreateClientAnchor(){return new HSSFClientAnchor();} |
public DeleteProfileResult deleteProfile(DeleteProfileRequest request) {request = beforeClientExecution(request);return executeDeleteProfile(request);} | public virtual DeleteProfileResponse DeleteProfile(DeleteProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteProfileResponseUnmarshaller.Instance;return Invoke<DeleteProfileResponse>(request, options);} |
@Override public int size() {return count(entrySet().iterator());} | public override int size(){return java.util.TreeMap<K, V>.count(this.entrySet().iterator());} |
public ByteBuffer put(ByteBuffer buf) {throw new ReadOnlyBufferException();} | public override java.nio.ByteBuffer put(java.nio.ByteBuffer buf){throw new System.NotImplementedException();} |
public CreateBranchCommand setStartPoint(RevCommit startPoint) {checkCallable();this.startCommit = startPoint;this.startPoint = null;return this;} | public virtual NGit.Api.CreateBranchCommand SetStartPoint(string startPoint){CheckCallable();this.startPoint = startPoint;this.startCommit = null;return this;} |
public ListOnPremisesInstancesResult listOnPremisesInstances(ListOnPremisesInstancesRequest request) {request = beforeClientExecution(request);return executeListOnPremisesInstances(request);} | public virtual ListOnPremisesInstancesResponse ListOnPremisesInstances(ListOnPremisesInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListOnPremisesInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListOnPremisesInstancesResponseUnmarshaller.Instance;return Invoke<ListOnPremisesInstancesResponse>(request, options);} |
public int[] clear() {if (perField.postingsArray != null) {bytesUsed.addAndGet(-(perField.postingsArray.size * perField.postingsArray.bytesPerPosting()));perField.postingsArray = null;perField.newPostingsArray();}return null;} | public override int[] Clear(){if (perField.postingsArray != null){bytesUsed.AddAndGet(-(perField.postingsArray.size * perField.postingsArray.BytesPerPosting()));perField.postingsArray = null;}return null;} |
public String getSourcePath() {return outCandidate.sourcePath.getPath();} | public virtual string GetSourcePath(){return currentSource.sourcePath.GetPath();} |
public static SingletonPredictionContext create(PredictionContext parent, int returnState) {if ( returnState == EMPTY_RETURN_STATE && parent == null ) {return EMPTY;}return new SingletonPredictionContext(parent, returnState);} | public static PredictionContext Create(PredictionContext parent, int returnState){if (returnState == EMPTY_RETURN_STATE && parent == null){return PredictionContext.EMPTY;}return new SingletonPredictionContext(parent, returnState);} |
public void cleanupSession(String sessionID) throws IOException {if (sessionID.isEmpty()) { throw new IllegalArgumentException("sessionID cannot be empty");}IOUtils.rm(workDir.resolve(sessionID));} | public virtual void CleanupSession(string sessionId){if (string.IsNullOrEmpty(sessionId)) throw new ArgumentException("sessionID cannot be empty", "sessionId");string sessionDirectory = Path.Combine(workingDirectory, sessionId);System.IO.Directory.Delete(sessionDirectory, true);} |
public DescribeSnapshotCopyGrantsResult describeSnapshotCopyGrants(DescribeSnapshotCopyGrantsRequest request) {request = beforeClientExecution(request);return executeDescribeSnapshotCopyGrants(request);} | public virtual DescribeSnapshotCopyGrantsResponse DescribeSnapshotCopyGrants(DescribeSnapshotCopyGrantsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSnapshotCopyGrantsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSnapshotCopyGrantsResponseUnmarshaller.Instance;return Invoke<DescribeSnapshotCopyGrantsResponse>(request, options);} |
public String toString() {return Utils.join(Arrays.asList(opnds).iterator(), "&&");} | public override string ToString(){return Utils.Join("&&", opnds);} |
public DescribeApplicationResult describeApplication(DescribeApplicationRequest request) {request = beforeClientExecution(request);return executeDescribeApplication(request);} | public virtual DescribeApplicationResponse DescribeApplication(DescribeApplicationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeApplicationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeApplicationResponseUnmarshaller.Instance;return Invoke<DescribeApplicationResponse>(request, options);} |
@Override public E set(int index, E object) {Object[] a = array;if (index >= size) {throwIndexOutOfBoundsException(index, size);}@SuppressWarnings("unchecked") E result = (E) a[index];a[index] = object;return result;} | public override E set(int index, E @object){object[] a = array;if (index >= _size){throwIndexOutOfBoundsException(index, _size);}E result = (E)a[index];a[index] = @object;return result;} |
public void set(int x, int y) {this.x = x;this.y = y;} | public virtual void set(int x, int y){this.x = x;this.y = y;} |
public BatchSendMessagesRequest() {super("OnsMqtt", "2019-12-11", "BatchSendMessages", "onsmqtt");setMethod(MethodType.POST);} | public BatchSendMessagesRequest(): base("OnsMqtt", "2019-12-11", "BatchSendMessages", "onsmqtt", "openAPI"){Method = MethodType.POST;} |
public DeleteEgressOnlyInternetGatewayResult deleteEgressOnlyInternetGateway(DeleteEgressOnlyInternetGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteEgressOnlyInternetGateway(request);} | public virtual DeleteEgressOnlyInternetGatewayResponse DeleteEgressOnlyInternetGateway(DeleteEgressOnlyInternetGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEgressOnlyInternetGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEgressOnlyInternetGatewayResponseUnmarshaller.Instance;return Invoke<DeleteEgressOnlyInternetGatewayResponse>(request, options);} |
public static String byteToHex(int value) {StringBuilder sb = new StringBuilder(4);writeHex(sb, value & 0xFFL, 2, "0x");return sb.toString();} | public static char[] ByteToHex(int value){return ToHexChars(value, 1);} |
public DescribeLoadBalancerPoliciesResult describeLoadBalancerPolicies(DescribeLoadBalancerPoliciesRequest request) {request = beforeClientExecution(request);return executeDescribeLoadBalancerPolicies(request);} | public virtual DescribeLoadBalancerPoliciesResponse DescribeLoadBalancerPolicies(DescribeLoadBalancerPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoadBalancerPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoadBalancerPoliciesResponseUnmarshaller.Instance;return Invoke<DescribeLoadBalancerPoliciesResponse>(request, options);} |
public void close() throws IOException {try {beginWrite();dst.close();} catch (InterruptedIOException e) {throw writeTimedOut(e);} finally {endWrite();}} | public override void Close(){try{BeginWrite();dst.Close();}catch (ThreadInterruptedException){throw WriteTimedOut();}finally{EndWrite();}} |
public UpdateVirtualInterfaceAttributesResult updateVirtualInterfaceAttributes(UpdateVirtualInterfaceAttributesRequest request) {request = beforeClientExecution(request);return executeUpdateVirtualInterfaceAttributes(request);} | public virtual UpdateVirtualInterfaceAttributesResponse UpdateVirtualInterfaceAttributes(UpdateVirtualInterfaceAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateVirtualInterfaceAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateVirtualInterfaceAttributesResponseUnmarshaller.Instance;return Invoke<UpdateVirtualInterfaceAttributesResponse>(request, options);} |
public ScandinavianNormalizationFilter(TokenStream input) {super(input);} | public ScandinavianNormalizationFilter(TokenStream input): base(input){charTermAttribute = AddAttribute<ICharTermAttribute>();} |
public DeleteHumanLoopResult deleteHumanLoop(DeleteHumanLoopRequest request) {request = beforeClientExecution(request);return executeDeleteHumanLoop(request);} | public virtual DeleteHumanLoopResponse DeleteHumanLoop(DeleteHumanLoopRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteHumanLoopRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteHumanLoopResponseUnmarshaller.Instance;return Invoke<DeleteHumanLoopResponse>(request, options);} |
public void onWindowFocusChanged(boolean hasWindowFocus) {super.onWindowFocusChanged(hasWindowFocus);if (!hasWindowFocus && !mPopup.isDropDownAlwaysVisible()) {dismissDropDown();}} | public override void onWindowFocusChanged(bool hasWindowFocus_1){base.onWindowFocusChanged(hasWindowFocus_1);if (!hasWindowFocus_1 && !mPopup.isDropDownAlwaysVisible()){dismissDropDown();}} |
public GetApnsSandboxChannelResult getApnsSandboxChannel(GetApnsSandboxChannelRequest request) {request = beforeClientExecution(request);return executeGetApnsSandboxChannel(request);} | public virtual GetApnsSandboxChannelResponse GetApnsSandboxChannel(GetApnsSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApnsSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApnsSandboxChannelResponseUnmarshaller.Instance;return Invoke<GetApnsSandboxChannelResponse>(request, options);} |
public TreeFilter clone() {final TreeFilter n = a.clone();return n == a ? this : new NotTreeFilter(n);} | public override TreeFilter Clone(){TreeFilter n = a.Clone();return n == a ? this : new NGit.Treewalk.Filter.NotTreeFilter(n);} |
public void addBuilder(String nodeName, QueryBuilder builder) {builders.put(nodeName, builder);} | public virtual void AddBuilder(string nodeName, IQueryBuilder builder){builders[nodeName] = builder;} |
public static boolean isSupported(int bitsPerValue) {return Arrays.binarySearch(SUPPORTED_BITS_PER_VALUE, bitsPerValue) >= 0;} | public static bool IsSupported(int bitsPerValue){return Array.BinarySearch(SUPPORTED_BITS_PER_VALUE, bitsPerValue) >= 0;} |
@Override public V getValue() {return mapEntry.getValue();} | public virtual V getValue(){return mapEntry.getValue();} |
public DeletedArea3DPtg(LittleEndianInput in) {field_1_index_extern_sheet = in.readUShort();unused1 = in.readInt();unused2 = in.readInt();} | public DeletedArea3DPtg(ILittleEndianInput in1){field_1_index_extern_sheet = in1.ReadUShort();unused1 = in1.ReadInt();unused2 = in1.ReadInt();} |
public String toString() {return "NativeFSLock(path=" + path + ",impl=" + lock + ",creationTime=" + creationTime + ")";} | public override string ToString(){return $"{nameof(NativeFSLock)}@{path}";} |
public CreateVolumeResult createVolume(CreateVolumeRequest request) {request = beforeClientExecution(request);return executeCreateVolume(request);} | public virtual CreateVolumeResponse CreateVolume(CreateVolumeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVolumeRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVolumeResponseUnmarshaller.Instance;return Invoke<CreateVolumeResponse>(request, options);} |
public EvaluationCell getCell(int rowIndex, int columnIndex) {HSSFRow row = _hs.getRow(rowIndex);if (row == null) {return null;}HSSFCell cell = row.getCell(columnIndex);if (cell == null) {return null;}return new HSSFEvaluationCell(cell, this);} | public IEvaluationCell GetCell(int rowIndex, int columnIndex){HSSFRow row = (HSSFRow)_hs.GetRow(rowIndex);if (row == null){return null;}ICell cell = (HSSFCell)row.GetCell(columnIndex);if (cell == null){return null;}return new HSSFEvaluationCell(cell, this);} |
public DeleteBasePathMappingResult deleteBasePathMapping(DeleteBasePathMappingRequest request) {request = beforeClientExecution(request);return executeDeleteBasePathMapping(request);} | public virtual DeleteBasePathMappingResponse DeleteBasePathMapping(DeleteBasePathMappingRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteBasePathMappingRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteBasePathMappingResponseUnmarshaller.Instance;return Invoke<DeleteBasePathMappingResponse>(request, options);} |
public void removeState(ATNState state) {states.set(state.stateNumber, null); } | public virtual void RemoveState(ATNState state){states[state.stateNumber] = null;} |
public boolean equals(Object other) {if (!(other instanceof ShortBuffer)) {return false;}ShortBuffer otherBuffer = (ShortBuffer) other;if (remaining() != otherBuffer.remaining()) {return false;}int myPosition = position;int otherPosition = otherBuffer.position;boolean equalSoFar = true;while (equalSoFar && (myPosition < limit)) {equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;} | public override bool Equals(object other){if (!(other is java.nio.ShortBuffer)){return false;}java.nio.ShortBuffer otherBuffer = (java.nio.ShortBuffer)other;if (remaining() != otherBuffer.remaining()){return false;}int myPosition = _position;int otherPosition = otherBuffer._position;bool equalSoFar = true;while (equalSoFar && (myPosition < _limit)){equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;} |
public boolean equals(final Object o) {if (!(o instanceof PropertySet)) {return false;}final PropertySet ps = (PropertySet) o;int byteOrder1 = ps.getByteOrder();int byteOrder2 = getByteOrder();ClassID classID1 = ps.getClassID();ClassID classID2 = getClassID();int format1 = ps.getFormat();int format2 = getFormat();int osVersion1 = ps.getOSVersion();int osVersion2 = getOSVersion();int sectionCount1 = ps.getSectionCount();int sectionCount2 = getSectionCount();if (byteOrder1 != byteOrder2 ||!classID1.equals(classID2) ||format1 != format2 ||osVersion1 != osVersion2 ||sectionCount1 != sectionCount2) {return false;}return getSections().containsAll(ps.getSections());} | public override bool Equals(Object o){if (o == null || !(o is PropertySet))return false;PropertySet ps = (PropertySet)o;int byteOrder1 = ps.ByteOrder;int byteOrder2 = ByteOrder;ClassID classID1 = ps.ClassID;ClassID classID2 = ClassID;int format1 = ps.Format;int format2 = Format;int osVersion1 = ps.OSVersion;int osVersion2 = OSVersion;int sectionCount1 = ps.SectionCount;int sectionCount2 = SectionCount;if (byteOrder1 != byteOrder2 ||!classID1.Equals(classID2) ||format1 != format2 ||osVersion1 != osVersion2 ||sectionCount1 != sectionCount2)return false;return Util.AreEqual(Sections, ps.Sections);} |
public static int getEstimatedNumberUniqueValuesAllowingForCollisions(int setSize, int numRecordedBits) {double setSizeAsDouble = setSize;double numRecordedBitsAsDouble = numRecordedBits;double saturation = numRecordedBitsAsDouble / setSizeAsDouble;double logInverseSaturation = Math.log(1 - saturation) * -1;return (int) (setSizeAsDouble * logInverseSaturation);} | public static int GetEstimatedNumberUniqueValuesAllowingForCollisions(int setSize, int numRecordedBits){double setSizeAsDouble = setSize;double numRecordedBitsAsDouble = numRecordedBits;var saturation = numRecordedBitsAsDouble/setSizeAsDouble;var logInverseSaturation = Math.Log(1 - saturation)*-1;return (int) (setSizeAsDouble*logInverseSaturation);} |
public static boolean isGitRepository(File dir, FS fs) {return fs.resolve(dir, Constants.OBJECTS).exists()&& fs.resolve(dir, "refs").exists() && (fs.resolve(dir, Constants.REFTABLE).exists()|| isValidHead(new File(dir, Constants.HEAD)));} | public static bool IsGitRepository(FilePath dir, FS fs){return fs.Resolve(dir, "objects").Exists() && fs.Resolve(dir, "refs").Exists() &&IsValidHead(new FilePath(dir, Constants.HEAD));} |
public void setBackgroundImage(int pictureIndex){setPropertyValue(new EscherSimpleProperty( EscherPropertyTypes.FILL__PATTERNTEXTURE, false, true, pictureIndex));setPropertyValue(new EscherSimpleProperty( EscherPropertyTypes.FILL__FILLTYPE, false, false, FILL_TYPE_PICTURE));EscherBSERecord bse = getPatriarch().getSheet().getWorkbook().getWorkbook().getBSERecord(pictureIndex);bse.setRef(bse.getRef() + 1);} | public void SetBackgroundImage(int pictureIndex){SetPropertyValue(new EscherSimpleProperty(EscherProperties.FILL__PATTERNTEXTURE, false, true, pictureIndex));SetPropertyValue(new EscherSimpleProperty(EscherProperties.FILL__FILLTYPE, false, false, FILL_TYPE_PICTURE));EscherBSERecord bse = ((HSSFWorkbook)((HSSFPatriarch)Patriarch).Sheet.Workbook).Workbook.GetBSERecord(pictureIndex);bse.Ref = (bse.Ref + 1);} |
public DirectPostingsFormat(int minSkipCount, int lowFreqCutoff) {super("Direct");this.minSkipCount = minSkipCount;this.lowFreqCutoff = lowFreqCutoff;} | public DirectPostingsFormat(int minSkipCount, int lowFreqCutoff): base(){_minSkipCount = minSkipCount;_lowFreqCutoff = lowFreqCutoff;} |
public RecyclingByteBlockAllocator(int blockSize, int maxBufferedBlocks,Counter bytesUsed) {super(blockSize);freeByteBlocks = new byte[maxBufferedBlocks][];this.maxBufferedBlocks = maxBufferedBlocks;this.bytesUsed = bytesUsed;} | public RecyclingByteBlockAllocator(int blockSize, int maxBufferedBlocks, Counter bytesUsed): base(blockSize){freeByteBlocks = new byte[maxBufferedBlocks][];this.maxBufferedBlocks = maxBufferedBlocks;this.bytesUsed = bytesUsed;} |
public int stemPrefix(char s[], int len) {for (int i = 0; i < prefixes.length; i++)if (startsWithCheckLength(s, len, prefixes[i]))return deleteN(s, 0, len, prefixes[i].length);return len;} | public virtual int StemPrefix(char[] s, int len){for (int i = 0; i < prefixes.Length; i++){if (StartsWithCheckLength(s, len, prefixes[i])){return StemmerUtil.DeleteN(s, 0, len, prefixes[i].Length);}}return len;} |
public String toString() {final StringBuilder s = new StringBuilder();for (Entry q = head; q != null; q = q.next)describe(s, q.commit);return s.toString();} | public override string ToString(){StringBuilder s = new StringBuilder();for (DateRevQueue.Entry q = head; q != null; q = q.next){Describe(s, q.commit);}return s.ToString();} |
public CodingErrorAction malformedInputAction() {return malformedInputAction;} | public virtual java.nio.charset.CodingErrorAction malformedInputAction(){return _malformedInputAction;} |
public Result(IntsRef input, T output) {this.input = input;this.output = output;} | public Result(Int32sRef input, T output){this.Input = input;this.Output = output;} |
public String getInflectionForm(int wordId) {return null; } | public string GetInflectionForm(int wordId){return null; } |
public void removeComments() {remove1stProperty(PropertyIDMap.PID_COMMENTS);} | public void RemoveComments(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_COMMENTS);} |
public GetBlacklistReportsResult getBlacklistReports(GetBlacklistReportsRequest request) {request = beforeClientExecution(request);return executeGetBlacklistReports(request);} | public virtual GetBlacklistReportsResponse GetBlacklistReports(GetBlacklistReportsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBlacklistReportsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBlacklistReportsResponseUnmarshaller.Instance;return Invoke<GetBlacklistReportsResponse>(request, options);} |
public String getMessages() {return messageWriter != null ? messageWriter.toString() : ""; } | public virtual string GetMessages(){return messageWriter != null ? messageWriter.ToString() : string.Empty;} |
public boolean equals(Object object) {if (!(object instanceof StringCharacterIterator)) {return false;}StringCharacterIterator it = (StringCharacterIterator) object;return string.equals(it.string) && start == it.start && end == it.end&& offset == it.offset;} | public override bool Equals(object @object){if (!(@object is java.text.StringCharacterIterator)){return false;}java.text.StringCharacterIterator it = (java.text.StringCharacterIterator)@object;return @string.Equals(it.@string) && start == it.start && end == it.end && offset== it.offset;} |
public AddFacetToObjectResult addFacetToObject(AddFacetToObjectRequest request) {request = beforeClientExecution(request);return executeAddFacetToObject(request);} | public virtual AddFacetToObjectResponse AddFacetToObject(AddFacetToObjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddFacetToObjectRequestMarshaller.Instance;options.ResponseUnmarshaller = AddFacetToObjectResponseUnmarshaller.Instance;return Invoke<AddFacetToObjectResponse>(request, options);} |
public ParseException generateParseException() {jj_expentries.clear();boolean[] la1tokens = new boolean[34];if (jj_kind >= 0) {la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 25; i++) {if (jj_la1[i] == jj_gen) {for (int j = 0; j < 32; j++) {if ((jj_la1_0[i] & (1<<j)) != 0) {la1tokens[j] = true;}if ((jj_la1_1[i] & (1<<j)) != 0) {la1tokens[32+j] = true;}}}}for (int i = 0; i < 34; i++) {if (la1tokens[i]) {jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.add(jj_expentry);}}jj_endpos = 0;jj_rescan_token();jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.size()][];for (int i = 0; i < jj_expentries.size(); i++) {exptokseq[i] = jj_expentries.get(i);}return new ParseException(token, exptokseq, tokenImage);} | public virtual ParseException GenerateParseException(){jj_expentries.Clear();bool[] la1tokens = new bool[24];if (jj_kind >= 0){la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 10; i++){if (jj_la1[i] == jj_gen){for (int j = 0; j < 32; j++){if ((jj_la1_0[i] & (1 << j)) != 0){la1tokens[j] = true;}}}}for (int i = 0; i < 24; i++){if (la1tokens[i]){jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.Add(jj_expentry);}}jj_endpos = 0;Jj_rescan_token();Jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.Count][];for (int i = 0; i < jj_expentries.Count; i++){exptokseq[i] = jj_expentries[i];}return new ParseException(Token, exptokseq, QueryParserConstants.TokenImage);} |
public final int correctOffset(int currentOff) {final int corrected = correct(currentOff);return (input instanceof CharFilter) ? ((CharFilter) input).correctOffset(corrected) : corrected;} | public int CorrectOffset(int currentOff){int corrected = Correct(currentOff);return (m_input is CharFilter) ? ((CharFilter)m_input).CorrectOffset(corrected) : corrected;} |
public static ContinuableRecordOutput createForCountingOnly() {return new ContinuableRecordOutput(NOPOutput, -777); } | public static ContinuableRecordOutput CreateForCountingOnly(){return new ContinuableRecordOutput(NOPOutput, -777); } |
public DisassociateAddressRequest(String publicIp) {setPublicIp(publicIp);} | public DisassociateAddressRequest(string publicIp){_publicIp = publicIp;} |
public DescribeVirtualGatewaysResult describeVirtualGateways(DescribeVirtualGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeVirtualGateways(request);} | public virtual DescribeVirtualGatewaysResponse DescribeVirtualGateways(DescribeVirtualGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVirtualGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVirtualGatewaysResponseUnmarshaller.Instance;return Invoke<DescribeVirtualGatewaysResponse>(request, options);} |
public void setSheetHidden(int sheetnum, boolean hidden) {setSheetHidden(sheetnum, hidden ? SheetVisibility.HIDDEN : SheetVisibility.VISIBLE);} | public void SetSheetHidden(int sheetnum, bool hidden){BoundSheetRecord bsr = boundsheets[sheetnum];bsr.IsHidden=hidden;} |
public static Cell createCell(Row row, int column, String value, CellStyle style) {Cell cell = getCell(row, column);cell.setCellValue(cell.getRow().getSheet().getWorkbook().getCreationHelper().createRichTextString(value));if (style != null) {cell.setCellStyle(style);}return cell;} | public static ICell CreateCell(IRow row, int column, String value, ICellStyle style){ICell cell = GetCell(row, column);cell.SetCellValue(cell.Row.Sheet.Workbook.GetCreationHelper().CreateRichTextString(value));if (style != null){cell.CellStyle = style;}return cell;} |
public CreateCacheParameterGroupRequest(String cacheParameterGroupName, String cacheParameterGroupFamily, String description) {setCacheParameterGroupName(cacheParameterGroupName);setCacheParameterGroupFamily(cacheParameterGroupFamily);setDescription(description);} | public CreateCacheParameterGroupRequest(string cacheParameterGroupName, string cacheParameterGroupFamily, string description){_cacheParameterGroupName = cacheParameterGroupName;_cacheParameterGroupFamily = cacheParameterGroupFamily;_description = description;} |
public DirCacheEntry(byte[] path, int stage) {checkPath(path);if (stage < 0 || 3 < stage)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().invalidStageForPath,stage, toString(path)));info = new byte[INFO_LEN];infoOffset = 0;this.path = path;int flags = ((stage & 0x3) << 12);if (path.length < NAME_MASK)flags |= path.length;elseflags |= NAME_MASK;NB.encodeInt16(info, infoOffset + P_FLAGS, flags);} | public DirCacheEntry(byte[] newPath, int stage){if (!IsValidPath(newPath)){throw new InvalidPathException(ToString(newPath));}if (stage < 0 || 3 < stage){throw new ArgumentException(MessageFormat.Format(JGitText.Get().invalidStageForPath, stage, ToString(newPath)));}info = new byte[INFO_LEN];infoOffset = 0;path = newPath;int flags = ((stage & unchecked((int)(0x3))) << 12);if (path.Length < NAME_MASK){flags |= path.Length;}else{flags |= NAME_MASK;}NB.EncodeInt16(info, infoOffset + P_FLAGS, flags);} |
public FileOutputStream(String path, boolean append) throws FileNotFoundException {this(new File(path), append);} | public FileOutputStream(string path, bool append) : this(new java.io.File(path),append){throw new System.NotImplementedException();} |
public DescribeVolumesResult describeVolumes() {return describeVolumes(new DescribeVolumesRequest());} | public virtual DescribeVolumesResponse DescribeVolumes(){return DescribeVolumes(new DescribeVolumesRequest());} |
public String toString() {return String.valueOf(label);} | public override string ToString(){return token.ToString();} |
public MutableValue duplicate() {MutableValueDouble v = new MutableValueDouble();v.value = this.value;v.exists = this.exists;return v;} | public override MutableValue Duplicate(){MutableValueDouble v = new MutableValueDouble();v.Value = this.Value;v.Exists = this.Exists;return v;} |
public boolean shouldBeRecursive() {for (byte b : pathRaw)if (b == '/')return true;return false;} | public override bool ShouldBeRecursive(){foreach (byte b in pathRaw){if (b == '/'){return true;}}return false;} |
public boolean equals( Object o ) {return o instanceof BasqueStemmer;} | public override bool Equals(object o){return o is BasqueStemmer;} |
public SheetBuilder setSheetName(String sheetName) {this.sheetName = sheetName;return this;} | public SheetBuilder SetSheetName(String sheetName){this.sheetName = sheetName;return this;} |
public ListTimeLinesRequest() {super("CloudPhoto", "2017-07-11", "ListTimeLines", "cloudphoto");setProtocol(ProtocolType.HTTPS);} | public ListTimeLinesRequest(): base("CloudPhoto", "2017-07-11", "ListTimeLines", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;} |
public DescribeStackResourcesResult describeStackResources(DescribeStackResourcesRequest request) {request = beforeClientExecution(request);return executeDescribeStackResources(request);} | public virtual DescribeStackResourcesResponse DescribeStackResources(DescribeStackResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStackResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStackResourcesResponseUnmarshaller.Instance;return Invoke<DescribeStackResourcesResponse>(request, options);} |
public UpdateBotResult updateBot(UpdateBotRequest request) {request = beforeClientExecution(request);return executeUpdateBot(request);} | public virtual UpdateBotResponse UpdateBot(UpdateBotRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBotRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBotResponseUnmarshaller.Instance;return Invoke<UpdateBotResponse>(request, options);} |
public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol) {return symbol >= minVocabSymbol&& symbol <= maxVocabSymbol&& !super.matches(symbol, minVocabSymbol, maxVocabSymbol);} | public override bool Matches(int symbol, int minVocabSymbol, int maxVocabSymbol){return symbol >= minVocabSymbol && symbol <= maxVocabSymbol && !base.Matches(symbol, minVocabSymbol, maxVocabSymbol);} |
public void fillTo(int toIndex, int val) {while (count < toIndex)add(val);} | public virtual void FillTo(int toIndex, int val){while (count < toIndex){Add(val);}} |
public static long[] grow(long[] array, int minSize) {assert minSize >= 0: "size must be positive (got " + minSize + "): likely integer overflow?";if (array.length < minSize) {return growExact(array, oversize(minSize, Long.BYTES));} else return array;} | public static short[] Grow(short[] array, int minSize){Debug.Assert(minSize >= 0, "size must be positive (got " + minSize + "): likely integer overflow?");if (array.Length < minSize){short[] newArray = new short[Oversize(minSize, RamUsageEstimator.NUM_BYTES_INT16)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}} |
public ExportSnapshotResult exportSnapshot(ExportSnapshotRequest request) {request = beforeClientExecution(request);return executeExportSnapshot(request);} | public virtual ExportSnapshotResponse ExportSnapshot(ExportSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExportSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = ExportSnapshotResponseUnmarshaller.Instance;return Invoke<ExportSnapshotResponse>(request, options);} |
public boolean hasChildOfType(short recordId) {return _childRecords.stream().anyMatch(r -> r.getRecordId() == recordId);} | public bool HasChildOfType(short recordId){for (IEnumerator iterator = ChildRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord r = (EscherRecord)iterator.Current;if (r.RecordId == recordId){return true;}}return false;} |
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {int bytesRemaining = readHeader( data, offset );thedata = IOUtils.safelyAllocate(bytesRemaining, MAX_RECORD_LENGTH);System.arraycopy( data, offset + 8, thedata, 0, bytesRemaining );return bytesRemaining + 8;} | public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);_thedata = new byte[bytesRemaining];Array.Copy(data, offset + 8, _thedata, 0, bytesRemaining);return bytesRemaining + 8;} |
public RmCommand addFilepattern(String filepattern) {checkCallable();filepatterns.add(filepattern);return this;} | public virtual NGit.Api.RmCommand AddFilepattern(string filepattern){CheckCallable();filepatterns.AddItem(filepattern);return this;} |
public GetEmailIdentityResult getEmailIdentity(GetEmailIdentityRequest request) {request = beforeClientExecution(request);return executeGetEmailIdentity(request);} | public virtual GetEmailIdentityResponse GetEmailIdentity(GetEmailIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEmailIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEmailIdentityResponseUnmarshaller.Instance;return Invoke<GetEmailIdentityResponse>(request, options);} |
public E remove(int location) {try {ListIterator<E> it = listIterator(location);E result = it.next();it.remove();return result;} catch (NoSuchElementException e) {throw new IndexOutOfBoundsException();}} | public override E remove(int location){try{java.util.ListIterator<E> it = listIterator(location);E result = it.next();it.remove();return result;}catch (java.util.NoSuchElementException){throw new System.IndexOutOfRangeException();}} |
public CanonicalTreeParser next() {CanonicalTreeParser p = this;for (;;) {if (p.nextPtr == p.raw.length) {if (p.parent == null) {p.currPtr = p.nextPtr;return p;}p = (CanonicalTreeParser) p.parent;continue;}p.prevPtr = p.currPtr;p.currPtr = p.nextPtr;p.parseEntry();return p;}} | public virtual NGit.Treewalk.CanonicalTreeParser Next(){NGit.Treewalk.CanonicalTreeParser p = this;for (; ; ){if (p.nextPtr == p.raw.Length){if (p.parent == null){p.currPtr = p.nextPtr;return p;}p = (NGit.Treewalk.CanonicalTreeParser)p.parent;continue;}p.prevPtr = p.currPtr;p.currPtr = p.nextPtr;p.ParseEntry();return p;}} |
public UpdateClusterConfigResult updateClusterConfig(UpdateClusterConfigRequest request) {request = beforeClientExecution(request);return executeUpdateClusterConfig(request);} | public virtual UpdateClusterConfigResponse UpdateClusterConfig(UpdateClusterConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateClusterConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateClusterConfigResponseUnmarshaller.Instance;return Invoke<UpdateClusterConfigResponse>(request, options);} |
public Point(int x, int y) {this.x = x;this.y = y;} | public Point(int x, int y){this.x = x;this.y = y;} |
public void cloneStyleFrom(ExtendedFormatRecord source) {field_1_font_index = source.field_1_font_index;field_2_format_index = source.field_2_format_index;field_3_cell_options = source.field_3_cell_options;field_4_alignment_options = source.field_4_alignment_options;field_5_indention_options = source.field_5_indention_options;field_6_border_options = source.field_6_border_options;field_7_palette_options = source.field_7_palette_options;field_8_adtl_palette_options = source.field_8_adtl_palette_options;field_9_fill_palette_options = source.field_9_fill_palette_options;} | public void CloneStyleFrom(ExtendedFormatRecord source){field_1_font_index = source.field_1_font_index;field_2_format_index = source.field_2_format_index;field_3_cell_options = source.field_3_cell_options;field_4_alignment_options = source.field_4_alignment_options;field_5_indention_options = source.field_5_indention_options;field_6_border_options = source.field_6_border_options;field_7_palette_options = source.field_7_palette_options;field_8_adtl_palette_options = source.field_8_adtl_palette_options;field_9_fill_palette_options = source.field_9_fill_palette_options;} |
public GetInvitationConfigurationResult getInvitationConfiguration(GetInvitationConfigurationRequest request) {request = beforeClientExecution(request);return executeGetInvitationConfiguration(request);} | public virtual GetInvitationConfigurationResponse GetInvitationConfiguration(GetInvitationConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInvitationConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInvitationConfigurationResponseUnmarshaller.Instance;return Invoke<GetInvitationConfigurationResponse>(request, options);} |
public RevTag parseTag(AnyObjectId id) throws MissingObjectException,IncorrectObjectTypeException, IOException {RevObject c = parseAny(id);if (!(c instanceof RevTag))throw new IncorrectObjectTypeException(id.toObjectId(),Constants.TYPE_TAG);return (RevTag) c;} | public virtual RevTag ParseTag(AnyObjectId id){RevObject c = ParseAny(id);if (!(c is RevTag)){throw new IncorrectObjectTypeException(id.ToObjectId(), Constants.TYPE_TAG);}return (RevTag)c;} |
public List<String> matchAlmost(String key) {return matchAlmost(key, defaultNumReturnValues);} | public virtual IList<string> MatchAlmost(string key){return MatchAlmost(key, defaultNumReturnValues);} |
public boolean remove(Object o) {synchronized (Hashtable.this) {int oldSize = size;Hashtable.this.remove(o);return size != oldSize;}} | public override bool remove(object o){lock (this._enclosing){int oldSize = this._enclosing._size;this._enclosing.remove(o);return this._enclosing._size != oldSize;}} |
public StringEval(String value) {if (value == null) {throw new IllegalArgumentException("value must not be null");}_value = value;} | public StringEval(String value){if (value == null){throw new ArgumentException("value must not be null");}this.value = value;} |
public BatchGetOnPremisesInstancesResult batchGetOnPremisesInstances(BatchGetOnPremisesInstancesRequest request) {request = beforeClientExecution(request);return executeBatchGetOnPremisesInstances(request);} | public virtual BatchGetOnPremisesInstancesResponse BatchGetOnPremisesInstances(BatchGetOnPremisesInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetOnPremisesInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetOnPremisesInstancesResponseUnmarshaller.Instance;return Invoke<BatchGetOnPremisesInstancesResponse>(request, options);} |
public void update(Config rc) {final List<String> vlst = new ArrayList<>();vlst.clear();for (URIish u : getURIs())vlst.add(u.toPrivateString());rc.setStringList(SECTION, getName(), KEY_URL, vlst);vlst.clear();for (URIish u : getPushURIs())vlst.add(u.toPrivateString());rc.setStringList(SECTION, getName(), KEY_PUSHURL, vlst);vlst.clear();for (RefSpec u : getFetchRefSpecs())vlst.add(u.toString());rc.setStringList(SECTION, getName(), KEY_FETCH, vlst);vlst.clear();for (RefSpec u : getPushRefSpecs())vlst.add(u.toString());rc.setStringList(SECTION, getName(), KEY_PUSH, vlst);set(rc, KEY_UPLOADPACK, getUploadPack(), DEFAULT_UPLOAD_PACK);set(rc, KEY_RECEIVEPACK, getReceivePack(), DEFAULT_RECEIVE_PACK);set(rc, KEY_TAGOPT, getTagOpt().option(), TagOpt.AUTO_FOLLOW.option());set(rc, KEY_MIRROR, mirror, DEFAULT_MIRROR);set(rc, KEY_TIMEOUT, timeout, 0);} | public virtual void Update(Config rc){IList<string> vlst = new AList<string>();vlst.Clear();foreach (URIish u in URIs){vlst.AddItem(u.ToPrivateString());}rc.SetStringList(SECTION, Name, KEY_URL, vlst);vlst.Clear();foreach (URIish u_1 in PushURIs){vlst.AddItem(u_1.ToPrivateString());}rc.SetStringList(SECTION, Name, KEY_PUSHURL, vlst);vlst.Clear();foreach (RefSpec u_2 in FetchRefSpecs){vlst.AddItem(u_2.ToString());}rc.SetStringList(SECTION, Name, KEY_FETCH, vlst);vlst.Clear();foreach (RefSpec u_3 in PushRefSpecs){vlst.AddItem(u_3.ToString());}rc.SetStringList(SECTION, Name, KEY_PUSH, vlst);Set(rc, KEY_UPLOADPACK, UploadPack, DEFAULT_UPLOAD_PACK);Set(rc, KEY_RECEIVEPACK, ReceivePack, DEFAULT_RECEIVE_PACK);Set(rc, KEY_TAGOPT, TagOpt.Option(), NGit.Transport.TagOpt.AUTO_FOLLOW.Option());Set(rc, KEY_MIRROR, mirror, DEFAULT_MIRROR);Set(rc, KEY_TIMEOUT, timeout, 0);if (!oldName.Equals(name)){rc.UnsetSection(SECTION, oldName);oldName = name;}} |
public String toString() {StringBuilder sb = new StringBuilder();sb.append("[OBJ]\n");for (final SubRecord record : subrecords) {sb.append("SUBRECORD: ").append(record);}sb.append("[/OBJ]\n");return sb.toString();} | public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append("[OBJ]\n");for (int i = 0; i < subrecords.Count; i++){SubRecord record = subrecords[i];sb.Append("SUBRECORD: ").Append(record.ToString());}sb.Append("[/OBJ]\n");return sb.ToString();} |
public StashCreateCommand setPerson(PersonIdent person) {this.person = person;return this;} | public virtual NGit.Api.StashCreateCommand SetPerson(PersonIdent person){this.person = person;return this;} |
public GetDefaultCreditSpecificationResult getDefaultCreditSpecification(GetDefaultCreditSpecificationRequest request) {request = beforeClientExecution(request);return executeGetDefaultCreditSpecification(request);} | public virtual GetDefaultCreditSpecificationResponse GetDefaultCreditSpecification(GetDefaultCreditSpecificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDefaultCreditSpecificationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDefaultCreditSpecificationResponseUnmarshaller.Instance;return Invoke<GetDefaultCreditSpecificationResponse>(request, options);} |
public static IntervalSet of(int a) {IntervalSet s = new IntervalSet();s.add(a);return s;} | public static Antlr4.Runtime.Misc.IntervalSet Of(int a){Antlr4.Runtime.Misc.IntervalSet s = new Antlr4.Runtime.Misc.IntervalSet();s.Add(a);return s;} |
public static int idealFloatArraySize(int need) {return idealByteArraySize(need * 4) / 4;} | public static int idealFloatArraySize(int need){return idealByteArraySize(need * 4) / 4;} |
public GetJobManifestResult getJobManifest(GetJobManifestRequest request) {request = beforeClientExecution(request);return executeGetJobManifest(request);} | public virtual GetJobManifestResponse GetJobManifest(GetJobManifestRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetJobManifestRequestMarshaller.Instance;options.ResponseUnmarshaller = GetJobManifestResponseUnmarshaller.Instance;return Invoke<GetJobManifestResponse>(request, options);} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.