yijunyu/c-to-rust huggingface dataset:
// Original:
public TokenStream create(TokenStream input) {return new StempelFilter(input, new StempelStemmer(PolishAnalyzer.getDefaultTable()));}

// Translation:
public override TokenStream Create(TokenStream input){return new StempelFilter(input, new StempelStemmer(PolishAnalyzer.DefaultTable));}
// Original:
public static byte[] grow(byte[] array) {return grow(array, 1 + array.length);}

// Translation:
public static double[] Grow(double[] array){return Grow(array, 1 + array.Length);}
// Original:
public DocFreqSorter(int maxDoc) {super(maxDoc / 64);this.tmpDocs = new int[maxDoc / 64];}

// Translation:
public DocFreqSorter(int maxDoc): base(maxDoc / 64){this.tmpDocs = new int[maxDoc / 64];}
// Original:
public void add(int a, int b) {add(Interval.of(a, b));}

// Translation:
public virtual void Add(int a, int b){Add(Interval.Of(a, b));}
// Original:
public void cloneStyleFrom(HSSFCellStyle source) {_format.cloneStyleFrom(source._format);if(_workbook != source._workbook) {lastDateFormat.set(Short.MIN_VALUE);lastFormats.remove();getDataFormatStringCache.remove();short fmt = (short)_workbook.createFormat(source.getDataFormatString() );setDataFormat(fmt);FontRecord fr = _workbook.createNewFont();fr.cloneStyleFrom(source._workbook.getFontRecordAt(source.getFontIndexAsInt()));HSSFFont font = new HSSFFont((short)_workbook.getFontIndex(fr), fr);setFont(font);}}

// Translation:
public void CloneStyleFrom(HSSFCellStyle source){_format.CloneStyleFrom(source._format);if (_workbook != source._workbook){lastDateFormat = short.MinValue;lastFormats = null;getDataFormatStringCache = null;short fmt = (short)_workbook.CreateFormat(source.GetDataFormatString());this.DataFormat=(fmt);FontRecord fr = _workbook.CreateNewFont();fr.CloneStyleFrom(source._workbook.GetFontRecordAt(source.FontIndex));HSSFFont font = new HSSFFont((short)_workbook.GetFontIndex(fr), fr);this.SetFont(font);}}
// Original:
public DeleteIdentitiesResult deleteIdentities(DeleteIdentitiesRequest request) {request = beforeClientExecution(request);return executeDeleteIdentities(request);}

// Translation:
public virtual DeleteIdentitiesResponse DeleteIdentities(DeleteIdentitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIdentitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIdentitiesResponseUnmarshaller.Instance;return Invoke<DeleteIdentitiesResponse>(request, options);}
// Original:
public void nextSlice() {final int nextIndex = ((buffer[limit]&0xff)<<24) + ((buffer[1+limit]&0xff)<<16) + ((buffer[2+limit]&0xff)<<8) + (buffer[3+limit]&0xff);level = ByteBlockPool.NEXT_LEVEL_ARRAY[level];final int newSize = ByteBlockPool.LEVEL_SIZE_ARRAY[level];bufferUpto = nextIndex / ByteBlockPool.BYTE_BLOCK_SIZE;bufferOffset = bufferUpto * ByteBlockPool.BYTE_BLOCK_SIZE;buffer = pool.buffers[bufferUpto];upto = nextIndex & ByteBlockPool.BYTE_BLOCK_MASK;if (nextIndex + newSize >= endIndex) {assert endIndex - nextIndex > 0;limit = endIndex - bufferOffset;} else {limit = upto+newSize-4;}}

// Translation:
public void NextSlice(){int nextIndex = ((buffer[limit] & 0xff) << 24) + ((buffer[1 + limit] & 0xff) << 16) + ((buffer[2 + limit] & 0xff) << 8) + (buffer[3 + limit] & 0xff);level = ByteBlockPool.NEXT_LEVEL_ARRAY[level];int newSize = ByteBlockPool.LEVEL_SIZE_ARRAY[level];bufferUpto = nextIndex / ByteBlockPool.BYTE_BLOCK_SIZE;BufferOffset = bufferUpto * ByteBlockPool.BYTE_BLOCK_SIZE;buffer = pool.Buffers[bufferUpto];upto = nextIndex & ByteBlockPool.BYTE_BLOCK_MASK;if (nextIndex + newSize >= EndIndex){Debug.Assert(EndIndex - nextIndex > 0);limit = EndIndex - BufferOffset;}else{limit = upto + newSize - 4;}}
// Original:
public DeleteMessageBatchRequest(String queueUrl, java.util.List<DeleteMessageBatchRequestEntry> entries) {setQueueUrl(queueUrl);setEntries(entries);}

// Translation:
public DeleteMessageBatchRequest(string queueUrl, List<DeleteMessageBatchRequestEntry> entries){_queueUrl = queueUrl;_entries = entries;}
// Original:
public ReservedCacheNode purchaseReservedCacheNodesOffering(PurchaseReservedCacheNodesOfferingRequest request) {request = beforeClientExecution(request);return executePurchaseReservedCacheNodesOffering(request);}

// Translation:
public virtual PurchaseReservedCacheNodesOfferingResponse PurchaseReservedCacheNodesOffering(PurchaseReservedCacheNodesOfferingRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseReservedCacheNodesOfferingRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseReservedCacheNodesOfferingResponseUnmarshaller.Instance;return Invoke<PurchaseReservedCacheNodesOfferingResponse>(request, options);}
// Original:
public String getLineText() {final int eol = RawParseUtils.nextLF(buf, offset);return RawParseUtils.decode(UTF_8, buf, offset, eol);}

// Translation:
public virtual string GetLineText(){int eol = RawParseUtils.NextLF(buf, offset);return RawParseUtils.Decode(Constants.CHARSET, buf, offset, eol);}
// Original:
public DescribeNotificationConfigurationsResult describeNotificationConfigurations(DescribeNotificationConfigurationsRequest request) {request = beforeClientExecution(request);return executeDescribeNotificationConfigurations(request);}

// Translation:
public virtual DescribeNotificationConfigurationsResponse DescribeNotificationConfigurations(DescribeNotificationConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNotificationConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNotificationConfigurationsResponseUnmarshaller.Instance;return Invoke<DescribeNotificationConfigurationsResponse>(request, options);}
// Original:
@Override public boolean remove(Object object) {if (!esDelegate.remove(object)) {return false;}Entry<?, ?> entry = (Entry<?, ?>) object;inverse.delegate.remove(entry.getValue());return true;}

// Translation:
public override bool remove(object o){if (!(o is java.util.MapClass.Entry<K, V>)){return false;}java.util.MapClass.Entry<object, object> e = (java.util.MapClass.Entry<object, object>)o;return this._enclosing.removeMapping(e.getKey(), e.getValue());}
// Original:
public static byte[] grow(byte[] array) {return grow(array, 1 + array.length);}

// Translation:
public static byte[] Grow(byte[] array){return Grow(array, 1 + array.Length);}
// Original:
public IndexAndTaxonomyRevision(IndexWriter indexWriter, SnapshotDirectoryTaxonomyWriter taxoWriter)throws IOException {IndexDeletionPolicy delPolicy = indexWriter.getConfig().getIndexDeletionPolicy();if (!(delPolicy instanceof SnapshotDeletionPolicy)) {throw new IllegalArgumentException("IndexWriter must be created with SnapshotDeletionPolicy");}this.indexWriter = indexWriter;this.taxoWriter = taxoWriter;this.indexSDP = (SnapshotDeletionPolicy) delPolicy;this.taxoSDP = taxoWriter.getDeletionPolicy();this.indexCommit = indexSDP.snapshot();this.taxoCommit = taxoSDP.snapshot();this.version = revisionVersion(indexCommit, taxoCommit);this.sourceFiles = revisionFiles(indexCommit, taxoCommit);}

// Translation:
public IndexAndTaxonomyRevision(IndexWriter indexWriter, SnapshotDirectoryTaxonomyWriter taxonomyWriter){this.indexSdp = indexWriter.Config.IndexDeletionPolicy as SnapshotDeletionPolicy;if (indexSdp == null)throw new ArgumentException("IndexWriter must be created with SnapshotDeletionPolicy", "indexWriter");this.indexWriter = indexWriter;this.taxonomyWriter = taxonomyWriter;this.taxonomySdp = taxonomyWriter.DeletionPolicy;this.indexCommit = indexSdp.Snapshot();this.taxonomyCommit = taxonomySdp.Snapshot();this.version = RevisionVersion(indexCommit, taxonomyCommit);this.sourceFiles = RevisionFiles(indexCommit, taxonomyCommit);}
// Original:
public synchronized String toString() {return super.toString();}

// Translation:
public override string ToString(){lock (this){return base.ToString();}}
// Original:
public static int hashCode(Object o) {return (o == null) ? 0 : o.hashCode();}

// Translation:
public static int hashCode(object o){return (o == null) ? 0 : o.GetHashCode();}
// Original:
public GetModelTemplateResult getModelTemplate(GetModelTemplateRequest request) {request = beforeClientExecution(request);return executeGetModelTemplate(request);}

// Translation:
public virtual GetModelTemplateResponse GetModelTemplate(GetModelTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetModelTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetModelTemplateResponseUnmarshaller.Instance;return Invoke<GetModelTemplateResponse>(request, options);}
// Original:
public XORShift64Random(long seed) {x = seed == 0 ? 0xdeadbeef : seed;}

// Translation:
public XORShift64Random(long seed){x = seed == 0 ? 0xdeadbeef : seed;}
// Original:
public HeaderFooterRecord(RecordInputStream in) {_rawData = in.readRemainder();}

// Translation:
public HeaderFooterRecord(RecordInputStream in1){_rawData = in1.ReadRemainder();}
// Original:
public HSSFPolygon createPolygon(HSSFClientAnchor anchor) {HSSFPolygon shape = new HSSFPolygon(null, anchor);addShape(shape);onCreate(shape);return shape;}

// Translation:
public HSSFPolygon CreatePolygon(IClientAnchor anchor){HSSFPolygon shape = new HSSFPolygon(null, (HSSFAnchor)anchor);AddShape(shape);OnCreate(shape);return shape;}
// Original:
public boolean equals(Object other) {if (other == null) {return false;}if (other instanceof BytesRef) {return this.bytesEquals((BytesRef) other);}return false;}

// Translation:
public override bool Equals(object other){if (other == null){return false;}if (other is BytesRef){return this.BytesEquals((BytesRef)other);}return false;}
// Original:
public void decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = blocks[blocksOffset++];for (int shift = 48; shift >= 0; shift -= 16) {values[valuesOffset++] = (block >>> shift) & 65535;}}}

// Translation:
public override void Decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = blocks[blocksOffset++];for (int shift = 48; shift >= 0; shift -= 16){values[valuesOffset++] = ((long)((ulong)block >> shift)) & 65535;}}}
// Original:
public int serialize(int offset, byte[] data, EscherSerializationListener listener) {listener.beforeRecordSerialize( offset, getRecordId(), this );if (remainingData == null) {remainingData = EMPTY;}LittleEndian.putShort( data, offset, getOptions() );LittleEndian.putShort( data, offset + 2, getRecordId() );LittleEndian.putInt( data, offset + 4, remainingData.length );System.arraycopy( remainingData, 0, data, offset + 8, remainingData.length );int pos = offset + 8 + remainingData.length;listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );return pos - offset;}

// Translation:
public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);if (remainingData == null) remainingData = new byte[0];LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);LittleEndian.PutInt(data, offset + 4, remainingData.Length);Array.Copy(remainingData, 0, data, offset + 8, remainingData.Length);int pos = offset + 8 + remainingData.Length;listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);return pos - offset;}
// Original:
public boolean equals(Object o) {if (! super.equals(o)) {return false;}SpanPositionRangeQuery other = (SpanPositionRangeQuery)o;return this.end == other.end && this.start == other.start;}

// Translation:
public override bool Equals(object o){if (this == o){return true;}if (!(o is SpanPositionRangeQuery)){return false;}SpanPositionRangeQuery other = (SpanPositionRangeQuery)o;return this.m_end == other.m_end && this.m_start == other.m_start && this.m_match.Equals(other.m_match) && this.Boost == other.Boost;}
// Original:
public CreateSignalingChannelResult createSignalingChannel(CreateSignalingChannelRequest request) {request = beforeClientExecution(request);return executeCreateSignalingChannel(request);}

// Translation:
public virtual CreateSignalingChannelResponse CreateSignalingChannel(CreateSignalingChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSignalingChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSignalingChannelResponseUnmarshaller.Instance;return Invoke<CreateSignalingChannelResponse>(request, options);}
// Original:
public IndexDiffFilter(int dirCacheIndex, int workingTreeIndex,boolean honorIgnores) {this.dirCache = dirCacheIndex;this.workingTree = workingTreeIndex;this.honorIgnores = honorIgnores;}

// Translation:
public IndexDiffFilter(int dirCacheIndex, int workingTreeIndex, bool honorIgnores){this.dirCache = dirCacheIndex;this.workingTree = workingTreeIndex;this.honorIgnores = honorIgnores;}
// Original:
public String toString() {StringBuilder sb = new StringBuilder("[" + getClass().getSimpleName() + ": ");sb.append("minMergeSize=").append(minMergeSize).append(", ");sb.append("mergeFactor=").append(mergeFactor).append(", ");sb.append("maxMergeSize=").append(maxMergeSize).append(", ");sb.append("maxMergeSizeForForcedMerge=").append(maxMergeSizeForForcedMerge).append(", ");sb.append("calibrateSizeByDeletes=").append(calibrateSizeByDeletes).append(", ");sb.append("maxMergeDocs=").append(maxMergeDocs).append(", ");sb.append("maxCFSSegmentSizeMB=").append(getMaxCFSSegmentSizeMB()).append(", ");sb.append("noCFSRatio=").append(noCFSRatio);sb.append("]");return sb.toString();}

// Translation:
public override string ToString(){StringBuilder sb = new StringBuilder("[" + this.GetType().Name + ": ");sb.Append("minMergeSize=").Append(m_minMergeSize).Append(", ");sb.Append("mergeFactor=").Append(m_mergeFactor).Append(", ");sb.Append("maxMergeSize=").Append(m_maxMergeSize).Append(", ");sb.Append("maxMergeSizeForForcedMerge=").Append(m_maxMergeSizeForForcedMerge).Append(", ");sb.Append("calibrateSizeByDeletes=").Append(m_calibrateSizeByDeletes).Append(", ");sb.Append("maxMergeDocs=").Append(m_maxMergeDocs).Append(", ");sb.Append("maxCFSSegmentSizeMB=").Append(MaxCFSSegmentSizeMB).Append(", ");sb.Append("noCFSRatio=").Append(m_noCFSRatio);sb.Append("]");return sb.ToString();}
// Original:
public static void encode(StringBuilder urlstr, String key) {if (key == null || key.length() == 0)return;try {urlstr.append(URLEncoder.encode(key, UTF_8.name()));} catch (UnsupportedEncodingException e) {throw new RuntimeException(JGitText.get().couldNotURLEncodeToUTF8, e);}}

// Translation:
public static void Encode(StringBuilder urlstr, string key){if (key == null || key.Length == 0){return;}try{urlstr.Append(URLEncoder.Encode(key, "UTF-8"));}catch (UnsupportedEncodingException e){throw new RuntimeException(JGitText.Get().couldNotURLEncodeToUTF8, e);}}
// Original:
public DescribeTemplateResult describeTemplate(DescribeTemplateRequest request) {request = beforeClientExecution(request);return executeDescribeTemplate(request);}

// Translation:
public virtual DescribeTemplateResponse DescribeTemplate(DescribeTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTemplateResponseUnmarshaller.Instance;return Invoke<DescribeTemplateResponse>(request, options);}
// Original:
public boolean mkdirs() {if (exists()) {return false;}if (mkdir()) {return true;}String parentDir = getParent();if (parentDir == null) {return false;}return (new File(parentDir).mkdirs() && mkdir());}

// Translation:
public bool mkdirs(){if (exists()){return false;}if (mkdir()){return true;}string parentDir = getParent();if (parentDir == null){return false;}return (new java.io.File(parentDir).mkdirs() && mkdir());}
// Original:
public HeaderBlock(InputStream stream) throws IOException {this(readFirst512(stream));if(bigBlockSize.getBigBlockSize() != 512) {int rest = bigBlockSize.getBigBlockSize() - 512;byte[] tmp = IOUtils.safelyAllocate(rest, MAX_RECORD_LENGTH);IOUtils.readFully(stream, tmp);}}

// Translation:
public HeaderBlock(Stream stream){try{stream.Position = 0;PrivateHeaderBlock(ReadFirst512(stream));if (bigBlockSize.GetBigBlockSize() != 512){int rest = bigBlockSize.GetBigBlockSize() - 512;byte[] temp = new byte[rest];IOUtils.ReadFully(stream, temp);}}catch(IOException ex){throw ex;}}
// Original:
public void recover(LexerNoViableAltException e) {if (_input.LA(1) != IntStream.EOF) {getInterpreter().consume(_input);}}

// Translation:
public virtual void Recover(LexerNoViableAltException e){if (_input.LA(1) != IntStreamConstants.EOF){Interpreter.Consume(_input);}}
// Original:
public E valueAt(int index) {if (mGarbage) {gc();}return (E) mValues[index];}

// Translation:
public virtual E valueAt(int index){if (mGarbage){gc();}return (E)mValues[index];}
// Original:
public AttachToIndexResult attachToIndex(AttachToIndexRequest request) {request = beforeClientExecution(request);return executeAttachToIndex(request);}

// Translation:
public virtual AttachToIndexResponse AttachToIndex(AttachToIndexRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachToIndexRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachToIndexResponseUnmarshaller.Instance;return Invoke<AttachToIndexResponse>(request, options);}
// Original:
public CreateMembersResult createMembers(CreateMembersRequest request) {request = beforeClientExecution(request);return executeCreateMembers(request);}

// Translation:
public virtual CreateMembersResponse CreateMembers(CreateMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateMembersResponseUnmarshaller.Instance;return Invoke<CreateMembersResponse>(request, options);}
// Original:
public double get() {if (position == limit) {throw new BufferUnderflowException();}return byteBuffer.getDouble(position++ * SizeOf.DOUBLE);}

// Translation:
public override double get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return byteBuffer.getDouble(_position++ * libcore.io.SizeOf.DOUBLE);}
// Original:
public WorkflowExecutionInfos listOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest request) {request = beforeClientExecution(request);return executeListOpenWorkflowExecutions(request);}

// Translation:
public virtual ListOpenWorkflowExecutionsResponse ListOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListOpenWorkflowExecutionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListOpenWorkflowExecutionsResponseUnmarshaller.Instance;return Invoke<ListOpenWorkflowExecutionsResponse>(request, options);}
// Original:
public CharSequence getFirstPathElement() {return values.get(0).value;}

// Translation:
public virtual string GetFirstPathElement(){return values[0].Value;}
// Original:
public static int toEMU(double points){return (int)Math.rint(EMU_PER_POINT*points);}

// Translation:
public static int ToEMU(double value){return (int)Math.Round(EMU_PER_POINT * value);}
// Original:
public DeleteRequestValidatorResult deleteRequestValidator(DeleteRequestValidatorRequest request) {request = beforeClientExecution(request);return executeDeleteRequestValidator(request);}

// Translation:
public virtual DeleteRequestValidatorResponse DeleteRequestValidator(DeleteRequestValidatorRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRequestValidatorRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRequestValidatorResponseUnmarshaller.Instance;return Invoke<DeleteRequestValidatorResponse>(request, options);}
// Original:
public Repository open(boolean mustExist) throws IOException {if (mustExist && !isGitRepository(path, fs))throw new RepositoryNotFoundException(path);return new FileRepository(path);}

// Translation:
public virtual Repository Open(bool mustExist){if (mustExist && !IsGitRepository(path, fs)){throw new RepositoryNotFoundException(path);}return new FileRepository(path);}
// Original:
public GetOnPremisesInstanceResult getOnPremisesInstance(GetOnPremisesInstanceRequest request) {request = beforeClientExecution(request);return executeGetOnPremisesInstance(request);}

// Translation:
public virtual GetOnPremisesInstanceResponse GetOnPremisesInstance(GetOnPremisesInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOnPremisesInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOnPremisesInstanceResponseUnmarshaller.Instance;return Invoke<GetOnPremisesInstanceResponse>(request, options);}
// Original:
public String toString(){StringBuilder sb = new StringBuilder();sb.append( '(' ).append( startOffset ).append( ',' ).append( endOffset ).append( ')' );return sb.toString();}

// Translation:
public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append('(').Append(startOffset).Append(',').Append(endOffset).Append(')');return sb.ToString();}
// Original:
public short getFontAtIndex( int index ) {int size = _string.getFormatRunCount();FormatRun currentRun = null;for (int i=0;i<size;i++) {FormatRun r = _string.getFormatRun(i);if (r.getCharacterPos() > index) {break;}currentRun = r;}if (currentRun == null) {return NO_FONT;}return currentRun.getFontIndex();}

// Translation:
public short GetFontAtIndex(int index){int size = _string.FormatRunCount;UnicodeString.FormatRun currentRun = null;for (int i = 0; i < size; i++){UnicodeString.FormatRun r = _string.GetFormatRun(i);if (r.CharacterPos > index)break;else currentRun = r;}if (currentRun == null)return NO_FONT;else return currentRun.FontIndex;}
// Original:
public StopMonitoringMembersResult stopMonitoringMembers(StopMonitoringMembersRequest request) {request = beforeClientExecution(request);return executeStopMonitoringMembers(request);}

// Translation:
public virtual StopMonitoringMembersResponse StopMonitoringMembers(StopMonitoringMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopMonitoringMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = StopMonitoringMembersResponseUnmarshaller.Instance;return Invoke<StopMonitoringMembersResponse>(request, options);}
// Original:
public DetachLoadBalancerFromSubnetsResult detachLoadBalancerFromSubnets(DetachLoadBalancerFromSubnetsRequest request) {request = beforeClientExecution(request);return executeDetachLoadBalancerFromSubnets(request);}

// Translation:
public virtual DetachLoadBalancerFromSubnetsResponse DetachLoadBalancerFromSubnets(DetachLoadBalancerFromSubnetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachLoadBalancerFromSubnetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachLoadBalancerFromSubnetsResponseUnmarshaller.Instance;return Invoke<DetachLoadBalancerFromSubnetsResponse>(request, options);}
// Original:
public HSSFCell getCell(int cellnum, MissingCellPolicy policy) {HSSFCell cell = retrieveCell(cellnum);switch (policy) {case RETURN_NULL_AND_BLANK:return cell;case RETURN_BLANK_AS_NULL:boolean isBlank = (cell != null && cell.getCellType() == CellType.BLANK);return (isBlank) ? null : cell;case CREATE_NULL_AS_BLANK:return (cell == null) ? createCell(cellnum, CellType.BLANK) : cell;default:throw new IllegalArgumentException("Illegal policy " + policy);}}

// Translation:
public ICell GetCell(int cellnum, MissingCellPolicy policy){ICell cell = RetrieveCell(cellnum);if (policy == MissingCellPolicy.RETURN_NULL_AND_BLANK){return cell;}if (policy == MissingCellPolicy.RETURN_BLANK_AS_NULL){if (cell == null) return cell;if (cell.CellType == CellType.Blank){return null;}return cell;}if (policy == MissingCellPolicy.CREATE_NULL_AS_BLANK){if (cell == null){return CreateCell(cellnum, CellType.Blank);}return cell;}throw new ArgumentException("Illegal policy " + policy + " (" + policy.id + ")");}
// Original:
public SimpleQQParser(String qqName, String indexField) {this(new String[] { qqName }, indexField);}

// Translation:
public SimpleQQParser(string qqName, string indexField): this(new string[] { qqName }