yijunyu/c-to-rust huggingface dataset:
// Original:
public WeightedPhraseInfo( Collection< WeightedPhraseInfo > toMerge ) {Iterator< WeightedPhraseInfo > toMergeItr = toMerge.iterator();if ( !toMergeItr.hasNext() ) {throw new IllegalArgumentException( "toMerge must contain at least one WeightedPhraseInfo." );}WeightedPhraseInfo first = toMergeItr.next();@SuppressWarnings( { "rawtypes", "unchecked" } )Iterator< Toffs >[] allToffs = new Iterator[ toMerge.size() ];termsInfos = new ArrayList<>();seqnum = first.seqnum;boost = first.boost;allToffs[ 0 ] = first.termsOffsets.iterator();int index = 1;while ( toMergeItr.hasNext() ) {WeightedPhraseInfo info = toMergeItr.next();boost += info.boost;termsInfos.addAll( info.termsInfos );allToffs[ index++ ] = info.termsOffsets.iterator();}MergedIterator< Toffs > itr = new MergedIterator<>( false, allToffs );termsOffsets = new ArrayList<>();if ( !itr.hasNext() ) {return;}Toffs work = itr.next();while ( itr.hasNext() ) {Toffs current = itr.next();if ( current.startOffset <= work.endOffset ) {work.endOffset = Math.max( work.endOffset, current.endOffset );} else {termsOffsets.add( work );work = current;}}termsOffsets.add( work );}

// Translation:
public WeightedPhraseInfo(ICollection<WeightedPhraseInfo> toMerge){IEnumerator<Toffs>[] allToffs = new IEnumerator<Toffs>[toMerge.Count];try{using (IEnumerator<WeightedPhraseInfo> toMergeItr = toMerge.GetEnumerator()){if (!toMergeItr.MoveNext()){throw new ArgumentException("toMerge must contain at least one WeightedPhraseInfo.");}WeightedPhraseInfo first = toMergeItr.Current;termsInfos = new List<TermInfo>();seqnum = first.seqnum;boost = first.boost;allToffs[0] = first.termsOffsets.GetEnumerator();int index = 1;while (toMergeItr.MoveNext()){WeightedPhraseInfo info = toMergeItr.Current;boost += info.boost;termsInfos.AddRange(info.termsInfos);allToffs[index++] = info.termsOffsets.GetEnumerator();}using (MergedIterator<Toffs> itr = new MergedIterator<Toffs>(false, allToffs)){termsOffsets = new List<Toffs>();if (!itr.MoveNext()){return;}Toffs work = itr.Current;while (itr.MoveNext()){Toffs current = itr.Current;if (current.StartOffset <= work.EndOffset){work.EndOffset = Math.Max(work.EndOffset, current.EndOffset);}else{termsOffsets.Add(work);work = current;}}termsOffsets.Add(work);}}}finally{foreach (var allToff in allToffs){allToff.Dispose();}}}
// Original:
public DescribeLoadBalancerPolicyTypesResult describeLoadBalancerPolicyTypes(DescribeLoadBalancerPolicyTypesRequest request) {request = beforeClientExecution(request);return executeDescribeLoadBalancerPolicyTypes(request);}

// Translation:
public virtual DescribeLoadBalancerPolicyTypesResponse DescribeLoadBalancerPolicyTypes(DescribeLoadBalancerPolicyTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoadBalancerPolicyTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoadBalancerPolicyTypesResponseUnmarshaller.Instance;return Invoke<DescribeLoadBalancerPolicyTypesResponse>(request, options);}
// Original:
public Entry<K, V> next() {return nextEntry();}

// Translation:
public override java.util.MapClass.Entry<K, V> next(){return this.nextEntry();}
// Original:
public int getCmd(Character way) {Cell c = at(way);return (c == null) ? -1 : c.cmd;}

// Translation:
public int GetCmd(char way){Cell c = At(way);return (c == null) ? -1 : c.cmd;}
// Original:
public int readInt(){int ch1 = _in.readUByte();int ch2 = _in.readUByte();int ch3 = _in.readUByte();int ch4 = _in.readUByte();return (ch4 << 24) + (ch3 << 16) + (ch2 << 8) + (ch1 << 0);}

// Translation:
public int ReadInt(){int ch1 = _in.ReadUByte();int ch2 = _in.ReadUByte();int ch3 = _in.ReadUByte();int ch4 = _in.ReadUByte();return (ch4 << 24) + (ch3 << 16) + (ch2 << 8) + (ch1 << 0);}
// Original:
public String toString() {return "Reverse" + super.toString(); }

// Translation:
public override string ToString(){return "Reverse" + base.ToString();}
// Original:
public Explanation explain(Explanation freq, long norm) {return SimilarityBase.this.explain(stats, freq, getLengthValue(norm));}

// Translation:
public override Explanation Explain(int doc, Explanation freq){return outerInstance.Explain(stats, doc, freq, norms == null ? 1F : outerInstance.DecodeNormValue((byte)norms.Get(doc)));}
// Original:
public static ListenerList getGlobalListenerList() {return globalListeners;}

// Translation:
public static ListenerList GetGlobalListenerList(){return globalListeners;}
// Original:
public GetInvitationsCountResult getInvitationsCount(GetInvitationsCountRequest request) {request = beforeClientExecution(request);return executeGetInvitationsCount(request);}

// Translation:
public virtual GetInvitationsCountResponse GetInvitationsCount(GetInvitationsCountRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInvitationsCountRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInvitationsCountResponseUnmarshaller.Instance;return Invoke<GetInvitationsCountResponse>(request, options);}
// Original:
public static boolean equals(float[] array1, float[] array2) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length != array2.length) {return false;}for (int i = 0; i < array1.length; i++) {if (Float.floatToIntBits(array1[i]) != Float.floatToIntBits(array2[i])) {return false;}}return true;}

// Translation:
public static bool equals(float[] array1, float[] array2){if (array1 == array2){return true;}if (array1 == null || array2 == null || array1.Length != array2.Length){return false;}{for (int i = 0; i < array1.Length; i++){if (Sharpen.Util.FloatToIntBits(array1[i]) != Sharpen.Util.FloatToIntBits(array2[i])){return false;}}}return true;}
// Original:
public final V setValue(V value) {if (value == null) {throw new NullPointerException();}V oldValue = this.value;this.value = value;return oldValue;}

// Translation:
public virtual V setValue(V value){if ((object)value == null){throw new System.ArgumentNullException();}V oldValue = this.value;this.value = value;return oldValue;}
// Original:
@Override public boolean isEmpty() {return Impl.this.isEmpty();}

// Translation:
public override bool isEmpty(){return this._enclosing._size == 0;}
// Original:
public void setCategoryLabelsCellRange(CellRangeAddressBase range) {Integer count = setVerticalCellRange(dataCategoryLabels, range);if (count == null){return;}series.setNumCategories((short)(int)count);}

// Translation:
public void SetCategoryLabelsCellRange(CellRangeAddressBase range){int count = SetVerticalCellRange(dataCategoryLabels, range);series.NumCategories = (short)count;}
// Original:
final public SrndQuery OrQuery() throws ParseException {SrndQuery q;ArrayList<SrndQuery> queries = null;Token oprt = null;q = AndQuery();label_2:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case OR:;break;default:jj_la1[0] = jj_gen;break label_2;}oprt = jj_consume_token(OR);if (queries == null) {queries = new ArrayList<SrndQuery>();queries.add(q);}q = AndQuery();queries.add(q);}{if (true) return (queries == null) ? q : getOrQuery(queries, true , oprt);}throw new Error("Missing return statement in function");}

// Translation:
public SrndQuery OrQuery(){SrndQuery q;IList<SrndQuery> queries = null;Token oprt = null;q = AndQuery();while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.OR:;break;default:jj_la1[0] = jj_gen;goto label_2;}oprt = Jj_consume_token(RegexpToken.OR);if (queries == null){queries = new List<SrndQuery>();queries.Add(q);}q = AndQuery();queries.Add(q);}label_2:{ if (true) return (queries == null) ? q : GetOrQuery(queries, true , oprt); }throw new Exception("Missing return statement in function");}
// Original:
public DeleteScheduledActionResult deleteScheduledAction(DeleteScheduledActionRequest request) {request = beforeClientExecution(request);return executeDeleteScheduledAction(request);}

// Translation:
public virtual DeleteScheduledActionResponse DeleteScheduledAction(DeleteScheduledActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteScheduledActionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteScheduledActionResponseUnmarshaller.Instance;return Invoke<DeleteScheduledActionResponse>(request, options);}
// Original:
public CharBuffer put(String str, int start, int end) {if (start < 0 || end < start || end > str.length()) {throw new IndexOutOfBoundsException("str.length()=" + str.length() +", start=" + start + ", end=" + end);}if (end - start > remaining()) {throw new BufferOverflowException();}for (int i = start; i < end; i++) {put(str.charAt(i));}return this;}

// Translation:
public virtual java.nio.CharBuffer put(string str, int start, int end){if (start < 0 || end < start || end > str.Length){throw new System.IndexOutOfRangeException("str.length()=" + str.Length + ", start="+ start + ", end=" + end);}if (end - start > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = start; i < end; i++){put(str[i]);}}return this;}
// Original:
public void serialize(LittleEndianOutput out) {out.writeShort(rt);out.writeShort(grbitFrt);out.writeShort(iObjectKind);out.write(unused);}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(rt);out1.WriteShort(grbitFrt);out1.WriteShort(iObjectKind);out1.Write(unused);}
// Original:
public ChangeInfo(String id, ChangeStatus status, java.util.Date submittedAt) {setId(id);setStatus(status.toString());setSubmittedAt(submittedAt);}

// Translation:
public ChangeInfo(string id, ChangeStatus status, DateTime submittedAt){_id = id;_status = status;_submittedAt = submittedAt;}
// Original:
public SwedishLightStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public SwedishLightStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public ErrorMatcher(int errorCode, CmpOp operator) {super(operator);_value = errorCode;}

// Translation:
public ErrorMatcher(int errorCode, CmpOp operator1): base(operator1){;_value = errorCode;}
// Original:
public static Console getConsole() {return console;}

// Translation:
public static java.io.Console getConsole(){return console;}
// Original:
public UpdateTrialComponentResult updateTrialComponent(UpdateTrialComponentRequest request) {request = beforeClientExecution(request);return executeUpdateTrialComponent(request);}

// Translation:
public virtual UpdateTrialComponentResponse UpdateTrialComponent(UpdateTrialComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTrialComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTrialComponentResponseUnmarshaller.Instance;return Invoke<UpdateTrialComponentResponse>(request, options);}
// Original:
public AddCommand setWorkingTreeIterator(WorkingTreeIterator f) {workingTreeIterator = f;return this;}

// Translation:
public virtual NGit.Api.AddCommand SetWorkingTreeIterator(WorkingTreeIterator f){workingTreeIterator = f;return this;}
// Original:
public RefWriter(Map<String, Ref> refs) {if (refs instanceof RefMap)this.refs = refs.values();elsethis.refs = RefComparator.sort(refs.values());}

// Translation:
public RefWriter(IDictionary<string, Ref> refs){if (refs is RefMap){this.refs = refs.Values;}else{this.refs = RefComparator.Sort(refs.Values);}}
// Original:
public LazyAreaEval(int firstRowIndex, int firstColumnIndex, int lastRowIndex,int lastColumnIndex, SheetRangeEvaluator evaluator) {super(evaluator, firstRowIndex, firstColumnIndex, lastRowIndex, lastColumnIndex);_evaluator = evaluator;}

// Translation:
public LazyAreaEval(int firstRowIndex, int firstColumnIndex, int lastRowIndex,int lastColumnIndex, SheetRangeEvaluator evaluator) :base(evaluator, firstRowIndex, firstColumnIndex, lastRowIndex, lastColumnIndex){_evaluator = evaluator;}
// Original:
public BatchSuspendUserResult batchSuspendUser(BatchSuspendUserRequest request) {request = beforeClientExecution(request);return executeBatchSuspendUser(request);}

// Translation:
public virtual BatchSuspendUserResponse BatchSuspendUser(BatchSuspendUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchSuspendUserRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchSuspendUserResponseUnmarshaller.Instance;return Invoke<BatchSuspendUserResponse>(request, options);}
// Original:
public CreateVpnGatewayRequest(GatewayType type) {setType(type.toString());}

// Translation:
public CreateVpnGatewayRequest(GatewayType type){_type = type;}
// Original:
public BundleInstanceResult bundleInstance(BundleInstanceRequest request) {request = beforeClientExecution(request);return executeBundleInstance(request);}

// Translation:
public virtual BundleInstanceResponse BundleInstance(BundleInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = BundleInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = BundleInstanceResponseUnmarshaller.Instance;return Invoke<BundleInstanceResponse>(request, options);}
// Original:
public ListDeploymentsResult listDeployments(ListDeploymentsRequest request) {request = beforeClientExecution(request);return executeListDeployments(request);}

// Translation:
public virtual ListDeploymentsResponse ListDeployments(ListDeploymentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeploymentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeploymentsResponseUnmarshaller.Instance;return Invoke<ListDeploymentsResponse>(request, options);}
// Original:
public String toString() {return "(FOLLOW(" + path.toString() + ")" + " AND " + ANY_DIFF.toString() + ")";}

// Translation:
public override string ToString(){return "(FOLLOW(" + path.ToString() + ")" + " AND " + ANY_DIFF.ToString() + ")";}
// Original:
public DetectFacesResult detectFaces(DetectFacesRequest request) {request = beforeClientExecution(request);return executeDetectFaces(request);}

// Translation:
public virtual DetectFacesResponse DetectFaces(DetectFacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectFacesRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectFacesResponseUnmarshaller.Instance;return Invoke<DetectFacesResponse>(request, options);}
// Original:
public GetRegionsResult getRegions(GetRegionsRequest request) {request = beforeClientExecution(request);return executeGetRegions(request);}

// Translation:
public virtual GetRegionsResponse GetRegions(GetRegionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRegionsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRegionsResponseUnmarshaller.Instance;return Invoke<GetRegionsResponse>(request, options);}
// Original:
public WikipediaTokenizerFactory(Map<String,String> args) {super(args);tokenOutput = getInt(args, TOKEN_OUTPUT, WikipediaTokenizer.TOKENS_ONLY);untokenizedTypes = getSet(args, UNTOKENIZED_TYPES);if (untokenizedTypes == null) {untokenizedTypes = Collections.emptySet();}if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public WikipediaTokenizerFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public int getSheetIndex(String name) {int retval = -1;final int size = boundsheets.size();for (int k = 0; k < size; k++) {String sheet = getSheetName(k);if (sheet.equalsIgnoreCase(name)) {retval = k;break;}}return retval;}

// Translation:
public int GetSheetIndex(String name){int retval = -1;for (int k = 0; k < boundsheets.Count; k++){String sheet = GetSheetName(k);if (sheet.Equals(name,StringComparison.OrdinalIgnoreCase)){retval = k;break;}}return retval;}
// Original:
public PagedBytesDataInput getDataInput() {if (!frozen) {throw new IllegalStateException("must call freeze() before getDataInput");}return new PagedBytesDataInput();}

// Translation:
public PagedBytesDataInput GetDataInput(){if (!frozen){throw new InvalidOperationException("must call Freeze() before GetDataInput()");}return new PagedBytesDataInput(this);}
// Original:
public AddTagsToResourceResult addTagsToResource(AddTagsToResourceRequest request) {request = beforeClientExecution(request);return executeAddTagsToResource(request);}

// Translation:
public virtual AddTagsToResourceResponse AddTagsToResource(AddTagsToResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddTagsToResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = AddTagsToResourceResponseUnmarshaller.Instance;return Invoke<AddTagsToResourceResponse>(request, options);}
// Original:
public static int oversize(int minTargetSize, int bytesPerElement) {if (minTargetSize < 0) {throw new IllegalArgumentException("invalid array size " + minTargetSize);}if (minTargetSize == 0) {return 0;}if (minTargetSize > MAX_ARRAY_LENGTH) {throw new IllegalArgumentException("requested array size " + minTargetSize + " exceeds maximum array in java (" + MAX_ARRAY_LENGTH + ")");}int extra = minTargetSize >> 3;if (extra < 3) {extra = 3;}int newSize = minTargetSize + extra;if (newSize+7 < 0 || newSize+7 > MAX_ARRAY_LENGTH) {return MAX_ARRAY_LENGTH;}if (Constants.JRE_IS_64BIT) {switch(bytesPerElement) {case 4:return (newSize + 1) & 0x7ffffffe;case 2:return (newSize + 3) & 0x7ffffffc;case 1:return (newSize + 7) & 0x7ffffff8;case 8:default:return newSize;}} else {switch(bytesPerElement) {case 2:return (newSize + 1) & 0x7ffffffe;case 1:return (newSize + 3) & 0x7ffffffc;case 4:case 8:default:return newSize;}}}

// Translation:
public static int Oversize(int minTargetSize, int bytesPerElement){if (minTargetSize < 0){throw new System.ArgumentException("invalid array size " + minTargetSize);}if (minTargetSize == 0){return 0;}int extra = minTargetSize >> 3;if (extra < 3){extra = 3;}int newSize = minTargetSize + extra;if (newSize + 7 < 0){return int.MaxValue;}if (Constants.RUNTIME_IS_64BIT){switch (bytesPerElement){case 4:return (newSize + 1) & 0x7ffffffe;case 2:return (newSize + 3) & 0x7ffffffc;case 1:return (newSize + 7) & 0x7ffffff8;case 8:default:return newSize;}}else{switch (bytesPerElement){case 2:return (newSize + 1) & 0x7ffffffe;case 1:return (newSize + 3) & 0x7ffffffc;case 4:case 8:default:return newSize;}}}
// Original:
public IntervalSet complement(IntSet vocabulary) {if ( vocabulary==null || vocabulary.isNil() ) {return null; }IntervalSet vocabularyIS;if (vocabulary instanceof IntervalSet) {vocabularyIS = (IntervalSet)vocabulary;}else {vocabularyIS = new IntervalSet();vocabularyIS.addAll(vocabulary);}return vocabularyIS.subtract(this);}

// Translation:
public virtual Antlr4.Runtime.Misc.IntervalSet Complement(IIntSet vocabulary){if (vocabulary == null || vocabulary.IsNil){return null;}Antlr4.Runtime.Misc.IntervalSet vocabularyIS;if (vocabulary is Antlr4.Runtime.Misc.IntervalSet){vocabularyIS = (Antlr4.Runtime.Misc.IntervalSet)vocabulary;}else{vocabularyIS = new Antlr4.Runtime.Misc.IntervalSet();vocabularyIS.AddAll(vocabulary);}return vocabularyIS.Subtract(this);}
// Original:
public BatchRefUpdate setRefLogMessage(String msg, boolean appendStatus) {if (msg == null && !appendStatus)disableRefLog();else if (msg == null && appendStatus) {refLogMessage = ""; refLogIncludeResult = true;} else {refLogMessage = msg;refLogIncludeResult = appendStatus;}return this;}

// Translation:
public virtual NGit.BatchRefUpdate SetRefLogMessage(string msg, bool appendStatus){if (msg == null && !appendStatus){DisableRefLog();}else{if (msg == null && appendStatus){refLogMessage = string.Empty;refLogIncludeResult = true;}else{refLogMessage = msg;refLogIncludeResult = appendStatus;}}return this;}
// Original:
public GetApnsVoipSandboxChannelResult getApnsVoipSandboxChannel(GetApnsVoipSandboxChannelRequest request) {request = beforeClientExecution(request);return executeGetApnsVoipSandboxChannel(request);}

// Translation:
public virtual GetApnsVoipSandboxChannelResponse GetApnsVoipSandboxChannel(GetApnsVoipSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApnsVoipSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApnsVoipSandboxChannelResponseUnmarshaller.Instance;return Invoke<GetApnsVoipSandboxChannelResponse>(request, options);}
// Original:
public TokenStream create(TokenStream input) {return new ArabicNormalizationFilter(input);}

// Translation:
public override TokenStream Create(TokenStream input){return new ArabicNormalizationFilter(input);}
// Original:
@Override public boolean contains(Object o) {return Impl.this.containsValue(o);}

// Translation:
public override bool contains(object o){return this._enclosing.containsValue(o);}
// Original:
@Override public boolean isEmpty() {synchronized (mutex) {return c.isEmpty();}}

// Translation:
public virtual bool isEmpty(){lock (mutex){return c.isEmpty();}}
// Original:
public long get(int index) {return 0;}

// Translation:
public override long Get(int index){return 0;}
// Original:
public DescribeSecurityGroupsResult describeSecurityGroups() {return describeSecurityGroups(new DescribeSecurityGroupsRequest());}

// Translation:
public virtual DescribeSecurityGroupsResponse DescribeSecurityGroups(){return DescribeSecurityGroups(new DescribeSecurityGroupsRequest());}
// Original:
public ListPartsRequest(String accountId, String vaultName, String uploadId) {setAccountId(accountId);setVaultName(vaultName);setUploadId(uploadId);}

// Translation:
public ListPartsRequest(string accountId, string vaultName, string uploadId){_accountId = accountId;_vaultName = vaultName;_uploadId = uploadId;}
// Original:
public GetCloudFrontOriginAccessIdentityRequest(String id) {setId(id);}

// Translation:
public GetCloudFrontOriginAccessIdentityRequest(string id){_id = id;}
// Original:
public DescribeAlarmHistoryResult describeAlarmHistory(DescribeAlarmHistoryRequest request) {request = beforeClientExecution(request);return executeDescribeAlarmHistory(request);}

// Translation:
public virtual DescribeAlarmHistoryResponse DescribeAlarmHistory(DescribeAlarmHistoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAlarmHistoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAlarmHistoryResponseUnmarshaller.Instance;return Invoke<DescribeAlarmHistoryResponse>(request, options);}
// Original:
public DescribeJobRequest(String accountId, String vaultName, String jobId) {setAccountId(accountId);setVaultName(vaultName);setJobId(jobId);}

// Translation:
public DescribeJobRequest(string accountId, string vaultName, string jobId){_accountId = accountId;_vaultName = vaultName;_jobId = jobId;}
// Original:
public DeleteTagCommand setTags(String... tags) {checkCallable();this.tags.clear();this.tags.addAll(Arrays.asList(tags));return this;}

// Translation:
public virtual NGit.Api.DeleteTagCommand SetTags(params string[] tags){CheckCallable();this.tags.Clear();foreach (string tagName in tags){this.tags.AddItem(tagName);}return this;}
// Original:
public ListVoiceConnectorGroupsResult listVoiceConnectorGroups(ListVoiceConnectorGroupsRequest request) {request = beforeClientExecution(request);return executeListVoiceConnectorGroups(request);}

// Translation:
public virtual ListVoiceConnectorGroupsResponse ListVoiceConnectorGroups(ListVoiceConnectorGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListVoiceConnectorGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListVoiceConnectorGroupsResponseUnmarshaller.Instance;return Invoke<ListVoiceConnectorGroupsResponse>(request, options);}
// Original:
public Intercept() {func = new LinearRegressionFunction(FUNCTION.INTERCEPT);}

// Translation:
public Intercept(){func = new LinearRegressionFunction(LinearRegressionFunction.FUNCTION.INTERCEPT);}