id
int32
0
10.3k
java
stringlengths
29
1.4k
cs
stringlengths
28
1.38k
6,300
public CacheCluster createCacheCluster(CreateCacheClusterRequest request) {request = beforeClientExecution(request);return executeCreateCacheCluster(request);}
public virtual CreateCacheClusterResponse CreateCacheCluster(CreateCacheClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCacheClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCacheClusterResponseUnmarshaller.Instance;return Invoke<CreateCacheClusterResponse>(request, options);}
6,301
public boolean equals(Object _other) {if ((_other instanceof LabelAndValue) == false) {return false;}LabelAndValue other = (LabelAndValue) _other;return label.equals(other.label) && value.equals(other.value);}
public override bool Equals(object other){if ((other is LabelAndValue) == false){return false;}LabelAndValue _other = (LabelAndValue)other;return Label.Equals(_other.Label, StringComparison.Ordinal) && Value.Equals(_other.Value);}
6,302
public JobFlowInstancesDetail(String masterInstanceType, String slaveInstanceType, Integer instanceCount) {setMasterInstanceType(masterInstanceType);setSlaveInstanceType(slaveInstanceType);setInstanceCount(instanceCount);}
public JobFlowInstancesDetail(string masterInstanceType, string slaveInstanceType, int instanceCount){_masterInstanceType = masterInstanceType;_slaveInstanceType = slaveInstanceType;_instanceCount = instanceCount;}
6,303
public boolean stem() {r_mark_regions();limit_backward = cursor;cursor = limit;int v_2 = limit - cursor;r_attached_pronoun();cursor = limit - v_2;int v_3 = limit - cursor;lab0: {lab1: {int v_4 = limit - cursor;lab2: {if (!r_standard_suffix()){break lab2;}break lab1;}cursor = limit - v_4;if (!r_verb_suffix()){break lab0;}}}cursor = limit - v_3;int v_5 = limit - cursor;r_residual_suffix();cursor = limit - v_5;cursor = limit_backward;int v_6 = cursor;r_cleaning();cursor = v_6;return true;}
public override bool Stem(){int v_1;int v_2;int v_3;int v_4;int v_5;int v_6;v_1 = m_cursor;do{if (!r_mark_regions()){goto lab0;}} while (false);lab0:m_cursor = v_1;m_limit_backward = m_cursor; m_cursor = m_limit;v_2 = m_limit - m_cursor;do{if (!r_attached_pronoun()){goto lab1;}} while (false);lab1:m_cursor = m_limit - v_2;v_3 = m_limit - m_cursor;do{do{v_4 = m_limit - m_cursor;do{if (!r_standard_suffix()){goto lab4;}goto lab3;} while (false);lab4:m_cursor = m_limit - v_4;if (!r_verb_suffix()){goto lab2;}} while (false);lab3:;} while (false);lab2:m_cursor = m_limit - v_3;v_5 = m_limit - m_cursor;do{if (!r_residual_suffix()){goto lab5;}} while (false);lab5:m_cursor = m_limit - v_5;m_cursor = m_limit_backward; v_6 = m_cursor;do{if (!r_cleaning()){goto lab6;}} while (false);lab6:m_cursor = v_6;return true;}
6,304
public HSSFPictureData( EscherBlipRecord blip ){this.blip = blip;}
public HSSFPictureData(EscherBlipRecord blip){this.blip = blip;}
6,305
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[PALETTE]\n");buffer.append(" numcolors = ").append(_colors.size()).append('\n');for (int i = 0; i < _colors.size(); i++) {PColor c = _colors.get(i);buffer.append("* colornum = ").append(i).append('\n');buffer.append(c);buffer.append("
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[PALETTE]\n");buffer.Append(" numcolors = ").Append(field_2_colors.Count).Append('\n');for (int k = 0; k < field_2_colors.Count; k++){PColor c = (PColor)field_2_colors[k];buffer.Append("* colornum = ").Append(k).Append('\n');buffer.Append(c.ToString());buffer.Append("
6,306
public String[] list(FilenameFilter filter) {String[] filenames = list();if (filter == null || filenames == null) {return filenames;}List<String> result = new ArrayList<String>(filenames.length);for (String filename : filenames) {if (filter.accept(this, filename)) {result.add(filename);}}return result.toArray(new String[result.size()]);}
public string[] list(java.io.FilenameFilter filter){string[] filenames = list();if (filter == null || filenames == null){return filenames;}java.util.List<string> result = new java.util.ArrayList<string>(filenames.Length);foreach (string filename in filenames){if (filter.accept(this, filename)){result.add(filename);}}return result.toArray(new string[result.size()]);}
6,307
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1) {String arg;int index;try {arg = evaluateStringArg(arg0, srcRowIndex, srcColumnIndex);index = evaluateIntArg(arg1, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return e.getErrorEval();}if(index < 0) {return ErrorEval.VALUE_INVALID;}String result;if (_isLeft) {result = arg.substring(0, Math.min(arg.length(), index));} else {result = arg.substring(Math.max(0, arg.length()-index));}return new StringEval(result);}
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1){String arg;int index;try{arg = TextFunction.EvaluateStringArg(arg0, srcRowIndex, srcColumnIndex);index = TextFunction.EvaluateIntArg(arg1, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e.GetErrorEval();}if (index < 0){return ErrorEval.VALUE_INVALID;}String result;if (_isLeft){result = arg.Substring(0, Math.Min(arg.Length, index));}else{result = arg.Substring(Math.Max(0, arg.Length - index));}return new StringEval(result);}
6,308
public void serialize(LittleEndianOutput out) {out.writeShort(sid);out.writeShort(reserved.length);out.write(reserved);}
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(sid);out1.WriteShort(reserved.Length);out1.Write(reserved);}
6,309
public HadoopJarStepConfig(String jar) {setJar(jar);}
public HadoopJarStepConfig(string jar){_jar = jar;}
6,310
public CharArrayWriter append(char c) {write(c);return this;}
public override java.io.Writer append(char c){write(c);return this;}
6,311
public GetChannelsResult getChannels(GetChannelsRequest request) {request = beforeClientExecution(request);return executeGetChannels(request);}
public virtual GetChannelsResponse GetChannels(GetChannelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetChannelsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetChannelsResponseUnmarshaller.Instance;return Invoke<GetChannelsResponse>(request, options);}
6,312
public File getParentFile() {String tempParent = getParent();if (tempParent == null) {return null;}return new File(tempParent);}
public java.io.File getParentFile(){string tempParent = getParent();if (tempParent == null){return null;}return new java.io.File(tempParent);}
6,313
public URI resolve(String relative) {return resolve(create(relative));}
public java.net.URI resolve(string relative){return resolve(create(relative));}
6,314
public static IntervalSet of(int a, int b) {IntervalSet s = new IntervalSet();s.add(a,b);return s;}
public static Antlr4.Runtime.Misc.IntervalSet Of(int a, int b){Antlr4.Runtime.Misc.IntervalSet s = new Antlr4.Runtime.Misc.IntervalSet();s.Add(a, b);return s;}
6,315
public void setCompressionLevel(int level) {compressionLevel = level;}
public virtual void SetCompressionLevel(int level){compressionLevel = level;}
6,316
public void reset() {offset = 0;length = 0;lastTrailingHighSurrogate = 0;}
public void Reset(){offset = 0;length = 0;lastTrailingHighSurrogate = (char)0;}
6,317
public AttributeValue(String s) {setS(s);}
public AttributeValue(string s){_s = s;}
6,318
public Token(int kind, String image){this.kind = kind;this.image = image;}
public Token(int start, int end){CheckOffsets(start, end);startOffset = start;endOffset = end;}
6,319
public XmlSerializer newSerializer() throws XmlPullParserException {if (serializerClasses == null) {throw new XmlPullParserException("Factory initialization incomplete - has not tried "+classNamesLocation);}if(serializerClasses.size() == 0) {throw new XmlPullParserException("No valid serializer classes found in "+classNamesLocation);}final StringBuilder issues = new StringBuilder ();for (int i = 0; i < serializerClasses.size (); i++) {final Class ppClass = (Class) serializerClasses.get(i);try {final XmlSerializer ser = (XmlSerializer) ppClass.newInstance();return ser;} catch(Exception ex) {issues.append (ppClass.getName () + ": "+ ex.toString ()+"; ");}}throw new XmlPullParserException ("could not create serializer: "+issues);}
public virtual org.xmlpull.v1.XmlSerializer newSerializer(){if (serializerClasses == null){throw new org.xmlpull.v1.XmlPullParserException("Factory initialization incomplete - has not tried "+ classNamesLocation);}if (serializerClasses.size() == 0){throw new org.xmlpull.v1.XmlPullParserException("No valid serializer classes found in "+ classNamesLocation);}java.lang.StringBuilder issues = new java.lang.StringBuilder();{for (int i = 0; i < serializerClasses.size(); i++){System.Type ppClass = (System.Type)serializerClasses.get(i);try{org.xmlpull.v1.XmlSerializer ser = (org.xmlpull.v1.XmlSerializer)System.Activator.CreateInstance(ppClass);return ser;}catch (System.Exception ex){issues.append(ppClass.FullName + ": " + ex.ToString() + "; ");}}}throw new org.xmlpull.v1.XmlPullParserException("could not create serializer: " +issues);}
6,320
public UpdateDomainContactPrivacyResult updateDomainContactPrivacy(UpdateDomainContactPrivacyRequest request) {request = beforeClientExecution(request);return executeUpdateDomainContactPrivacy(request);}
public virtual UpdateDomainContactPrivacyResponse UpdateDomainContactPrivacy(UpdateDomainContactPrivacyRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDomainContactPrivacyRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDomainContactPrivacyResponseUnmarshaller.Instance;return Invoke<UpdateDomainContactPrivacyResponse>(request, options);}
6,321
public String toString(String enc) throws UnsupportedEncodingException {return new String(buf, 0, count, enc);}
public virtual string toString(string enc){throw new System.NotImplementedException();}
6,322
public DescribeStaleSecurityGroupsResult describeStaleSecurityGroups(DescribeStaleSecurityGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeStaleSecurityGroups(request);}
public virtual DescribeStaleSecurityGroupsResponse DescribeStaleSecurityGroups(DescribeStaleSecurityGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStaleSecurityGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStaleSecurityGroupsResponseUnmarshaller.Instance;return Invoke<DescribeStaleSecurityGroupsResponse>(request, options);}
6,323
public DisassociateWebsiteCertificateAuthorityResult disassociateWebsiteCertificateAuthority(DisassociateWebsiteCertificateAuthorityRequest request) {request = beforeClientExecution(request);return executeDisassociateWebsiteCertificateAuthority(request);}
public virtual DisassociateWebsiteCertificateAuthorityResponse DisassociateWebsiteCertificateAuthority(DisassociateWebsiteCertificateAuthorityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateWebsiteCertificateAuthorityRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateWebsiteCertificateAuthorityResponseUnmarshaller.Instance;return Invoke<DisassociateWebsiteCertificateAuthorityResponse>(request, options);}
6,324
public DeleteTransitGatewayVpcAttachmentResult deleteTransitGatewayVpcAttachment(DeleteTransitGatewayVpcAttachmentRequest request) {request = beforeClientExecution(request);return executeDeleteTransitGatewayVpcAttachment(request);}
public virtual DeleteTransitGatewayVpcAttachmentResponse DeleteTransitGatewayVpcAttachment(DeleteTransitGatewayVpcAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTransitGatewayVpcAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTransitGatewayVpcAttachmentResponseUnmarshaller.Instance;return Invoke<DeleteTransitGatewayVpcAttachmentResponse>(request, options);}
6,325
public ObjectId idFor(TreeFormatter formatter) {return formatter.computeId(this);}
public virtual ObjectId IdFor(TreeFormatter formatter){return formatter.ComputeId(this);}
6,326
public static boolean startsWith(char s[], int len, String prefix) {final int prefixLen = prefix.length();if (prefixLen > len)return false;for (int i = 0; i < prefixLen; i++)if (s[i] != prefix.charAt(i))return false;return true;}
public static bool StartsWith(char[] s, int len, string prefix){int prefixLen = prefix.Length;if (prefixLen > len){return false;}for (int i = 0; i < prefixLen; i++){if (s[i] != prefix[i]){return false;}}return true;}
6,327
public UpdateBatchPredictionResult updateBatchPrediction(UpdateBatchPredictionRequest request) {request = beforeClientExecution(request);return executeUpdateBatchPrediction(request);}
public virtual UpdateBatchPredictionResponse UpdateBatchPrediction(UpdateBatchPredictionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBatchPredictionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBatchPredictionResponseUnmarshaller.Instance;return Invoke<UpdateBatchPredictionResponse>(request, options);}
6,328
public final void remove(RevFlag flag) {flags &= ~flag.mask;}
public void Remove(RevFlag flag){flags &= ~flag.mask;}
6,329
public void SwitchTo(int lexState){if (lexState >= 2 || lexState < 0)throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}
public virtual void SwitchTo(int lexState){if (lexState >= 3 || lexState < 0)throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}
6,330
public String toString() {StringBuilder sb = new StringBuilder("[ArrayPtg]\n");sb.append("nRows = ").append(getRowCount()).append("\n");sb.append("nCols = ").append(getColumnCount()).append("\n");if (_arrayValues == null) {sb.append(" #values#uninitialised#\n");} else {sb.append(" ").append(toFormulaString());}return sb.toString();}
public override String ToString(){StringBuilder buffer = new StringBuilder("[ArrayPtg]\n");buffer.Append("columns = ").Append(ColumnCount).Append("\n");buffer.Append("rows = ").Append(RowCount).Append("\n");for (int x = 0; x < ColumnCount; x++){for (int y = 0; y < RowCount; y++){Object o = _arrayValues.GetValue(GetValueIndex(x, y));buffer.Append("[").Append(x).Append("][").Append(y).Append("] = ").Append(o).Append("\n");}}return buffer.ToString();}
6,331
public ObjectId getHeadId() {return headId;}
public virtual ObjectId GetHeadId(){return headId;}
6,332
public GetAssociatedIpv6PoolCidrsResult getAssociatedIpv6PoolCidrs(GetAssociatedIpv6PoolCidrsRequest request) {request = beforeClientExecution(request);return executeGetAssociatedIpv6PoolCidrs(request);}
public virtual GetAssociatedIpv6PoolCidrsResponse GetAssociatedIpv6PoolCidrs(GetAssociatedIpv6PoolCidrsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAssociatedIpv6PoolCidrsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAssociatedIpv6PoolCidrsResponseUnmarshaller.Instance;return Invoke<GetAssociatedIpv6PoolCidrsResponse>(request, options);}
6,333
public void copyValue(Cell destCell) {switch (_cellType) {case BLANK: destCell.setBlank(); return;case NUMERIC: destCell.setCellValue(_numberValue); return;case BOOLEAN: destCell.setCellValue(_booleanValue); return;case STRING: destCell.setCellValue(_stringValue); return;case ERROR: destCell.setCellErrorValue((byte)_errorValue); return;default: throw new IllegalStateException("Unexpected data type (" + _cellType + ")");}}
public void CopyValue(ICell destCell){switch (_cellType){case CellType.Blank: destCell.SetCellType(CellType.Blank); return;case CellType.Numeric: destCell.SetCellValue(_numberValue); return;case CellType.Boolean: destCell.SetCellValue(_boolValue); return;case CellType.String: destCell.SetCellValue(_stringValue); return;case CellType.Error: destCell.SetCellErrorValue((byte)_errorValue); return;}throw new InvalidOperationException("Unexpected data type (" + _cellType + ")");}
6,334
public DescribeLaunchTemplateVersionsResult describeLaunchTemplateVersions(DescribeLaunchTemplateVersionsRequest request) {request = beforeClientExecution(request);return executeDescribeLaunchTemplateVersions(request);}
public virtual DescribeLaunchTemplateVersionsResponse DescribeLaunchTemplateVersions(DescribeLaunchTemplateVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLaunchTemplateVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLaunchTemplateVersionsResponseUnmarshaller.Instance;return Invoke<DescribeLaunchTemplateVersionsResponse>(request, options);}
6,335
public static DVConstraint createCustomFormulaConstraint(String formula) {if (formula == null) {throw new IllegalArgumentException("formula must be supplied");}return new DVConstraint(ValidationType.FORMULA, OperatorType.IGNORED, formula, null, null, null, null);}
public static DVConstraint CreateCustomFormulaConstraint(String formula){if (formula == null){throw new ArgumentException("formula must be supplied");}return new DVConstraint(ValidationType.FORMULA, OperatorType.IGNORED, formula, null, double.NaN, double.NaN, null);}
6,336
public DeleteProjectVersionResult deleteProjectVersion(DeleteProjectVersionRequest request) {request = beforeClientExecution(request);return executeDeleteProjectVersion(request);}
public virtual DeleteProjectVersionResponse DeleteProjectVersion(DeleteProjectVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteProjectVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteProjectVersionResponseUnmarshaller.Instance;return Invoke<DeleteProjectVersionResponse>(request, options);}
6,337
public String toStringUnquoted() {return getTermText();}
public override string ToStringUnquoted(){return TermText;}
6,338
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[RECALCID]\n");buffer.append(" .reserved = ").append(HexDump.shortToHex(_reserved0)).append("\n");buffer.append(" .engineId = ").append(HexDump.intToHex(_engineId)).append("\n");buffer.append("[/RECALCID]\n");return buffer.toString();}
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[RECALCID]\n");buffer.Append(" .reserved = ").Append(HexDump.ShortToHex(_reserved0)).Append("\n");buffer.Append(" .engineId = ").Append(HexDump.IntToHex(_engineId)).Append("\n");buffer.Append("[/RECALCID]\n");return buffer.ToString();}
6,339
public String toString() {return "RandomAccessInput(" + IndexInput.this.toString() + ")";}
public override string ToString(){return resourceDescription;}
6,340
public static int countArg(ValueEval eval, I_MatchPredicate criteriaPredicate) {if (eval == null) {throw new IllegalArgumentException("eval must not be null");}if (eval instanceof ThreeDEval) {return countMatchingCellsInArea((ThreeDEval) eval, criteriaPredicate);}if (eval instanceof TwoDEval) {throw new IllegalArgumentException("Count requires 3D Evals, 2D ones aren't supported");}if (eval instanceof RefEval) {return CountUtils.countMatchingCellsInRef((RefEval) eval, criteriaPredicate);}return criteriaPredicate.matches(eval) ? 1 : 0;}
public static int CountArg(ValueEval eval, IMatchPredicate criteriaPredicate){if (eval == null){throw new ArgumentException("eval must not be null");}if (eval is ThreeDEval){return CountUtils.CountMatchingCellsInArea((ThreeDEval)eval, criteriaPredicate);}if (eval is TwoDEval){throw new ArgumentException("Count requires 3D Evals, 2D ones aren't supported");}if (eval is RefEval){return CountUtils.CountMatchingCellsInRef((RefEval)eval, criteriaPredicate);}return criteriaPredicate.Matches(eval) ? 1 : 0;}
6,341
public void parse(byte[] buf, int ptr, int end) {while (ptr < end)ptr = parseFile(buf, ptr, end);}
public virtual void Parse(byte[] buf, int ptr, int end){while (ptr < end){ptr = ParseFile(buf, ptr, end);}}
6,342
public ListQueuesResult listQueues(String queueNamePrefix) {return listQueues(new ListQueuesRequest().withQueueNamePrefix(queueNamePrefix));}
public virtual ListQueuesResponse ListQueues(string queueNamePrefix){var request = new ListQueuesRequest();request.QueueNamePrefix = queueNamePrefix;return ListQueues(request);}
6,343
public DescribeVolumeAttributeResult describeVolumeAttribute(DescribeVolumeAttributeRequest request) {request = beforeClientExecution(request);return executeDescribeVolumeAttribute(request);}
public virtual DescribeVolumeAttributeResponse DescribeVolumeAttribute(DescribeVolumeAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVolumeAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVolumeAttributeResponseUnmarshaller.Instance;return Invoke<DescribeVolumeAttributeResponse>(request, options);}
6,344
public Trie optimize(Trie orig) {List<CharSequence> cmds = orig.cmds;List<Row> rows = new ArrayList<>();List<Row> orows = orig.rows;int remap[] = new int[orows.size()];for (int j = orows.size() - 1; j >= 0; j--) {liftUp(orows.get(j), orows);}Arrays.fill(remap, -1);rows = removeGaps(orig.root, orows, new ArrayList<Row>(), remap);return new Trie(orig.forward, remap[orig.root], cmds, rows);}
public override Trie Optimize(Trie orig){IList<string> cmds = orig.cmds;IList<Row> rows = new List<Row>();IList<Row> orows = orig.rows;int[] remap = new int[orows.Count];for (int j = orows.Count - 1; j >= 0; j--){LiftUp(orows[j], orows);}Arrays.Fill(remap, -1);rows = RemoveGaps(orig.root, orows, new List<Row>(), remap);return new Trie(orig.forward, remap[orig.root], cmds, rows);}
6,345
public WorkingTreeOptions getOptions() {return state.options;}
public virtual WorkingTreeOptions GetOptions(){return state.options;}
6,346
public SendInvitationResult sendInvitation(SendInvitationRequest request) {request = beforeClientExecution(request);return executeSendInvitation(request);}
public virtual SendInvitationResponse SendInvitation(SendInvitationRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendInvitationRequestMarshaller.Instance;options.ResponseUnmarshaller = SendInvitationResponseUnmarshaller.Instance;return Invoke<SendInvitationResponse>(request, options);}
6,347
public DeleteAlarmsResult deleteAlarms(DeleteAlarmsRequest request) {request = beforeClientExecution(request);return executeDeleteAlarms(request);}
public virtual DeleteAlarmsResponse DeleteAlarms(DeleteAlarmsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAlarmsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAlarmsResponseUnmarshaller.Instance;return Invoke<DeleteAlarmsResponse>(request, options);}
6,348
public static void main(String[] args) throws Exception {FSDirectory dir = null;String inputStr = null;String field = null;if (args.length == 3) {dir = FSDirectory.open(Paths.get(args[0]));field = args[1];inputStr = args[2];} else {usage();System.exit(1);}getTermInfo(dir,new Term(field, inputStr));}
public static void Main(string[] args){FSDirectory dir = null;string inputStr = null;string field = null;if (args.Length == 3){dir = FSDirectory.Open(new DirectoryInfo(args[0]));field = args[1];inputStr = args[2];}else{throw new ArgumentException();}TermInfo(dir, new Term(field, inputStr));}
6,349
public DBSnapshotAttributesResult modifyDBSnapshotAttribute(ModifyDBSnapshotAttributeRequest request) {request = beforeClientExecution(request);return executeModifyDBSnapshotAttribute(request);}
public virtual ModifyDBSnapshotAttributeResponse ModifyDBSnapshotAttribute(ModifyDBSnapshotAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBSnapshotAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBSnapshotAttributeResponseUnmarshaller.Instance;return Invoke<ModifyDBSnapshotAttributeResponse>(request, options);}
6,350
public static final String readUTF(DataInput in) throws IOException {return decodeUTF(in.readUnsignedShort(), in);}
public static string readUTF(java.io.DataInput @in){throw new System.NotImplementedException();}
6,351
public synchronized E remove(int index) {@SuppressWarnings("unchecked")E removed = (E) elements[index];removeRange(index, index + 1);return removed;}
public virtual E remove(int index){lock (this){E removed = (E)elements[index];removeRange(index, index + 1);return removed;}}
6,352
public byte[] getElement(int index) {int actualSize = getActualSizeOfElements(getSizeOfElements());byte[] result = IOUtils.safelyAllocate(actualSize, MAX_RECORD_LENGTH);System.arraycopy(getComplexData(), FIXED_SIZE + index * actualSize, result, 0, result.length );return result;}
public byte[] GetElement(int index){int actualSize = GetActualSizeOfElements(SizeOfElements);byte[] result = new byte[actualSize];Array.Copy(_complexData, FIXED_SIZE + index * actualSize, result, 0, result.Length);return result;}
6,353
public String signString(String stringToSign, AlibabaCloudCredentials credentials) {return null;}
public override string SignString(string stringToSign, AlibabaCloudCredentials credentials){return SignString(stringToSign, credentials.GetAccessKeyId());}
6,354
public void writeData(final ByteBuffer block) {block.put( serialize() );}
public void WriteData(ByteBuffer block){block.Write(Serialize());}
6,355
public void setSshSessionFactory(SshSessionFactory factory) {if (factory == null)throw new NullPointerException(JGitText.get().theFactoryMustNotBeNull);if (sock != null)throw new IllegalStateException(JGitText.get().anSSHSessionHasBeenAlreadyCreated);sch = factory;}
public virtual void SetSshSessionFactory(SshSessionFactory factory){if (factory == null){throw new ArgumentNullException(JGitText.Get().theFactoryMustNotBeNull);}if (sock != null){throw new InvalidOperationException(JGitText.Get().anSSHSessionHasBeenAlreadyCreated);}sch = factory;}
6,356
public PipedReader(PipedWriter out) throws IOException {connect(out);}
public PipedReader(java.io.PipedWriter @out){throw new System.NotImplementedException();}
6,357
public RawText getSourceContents() {return outCandidate.sourceText;}
public virtual RawText GetSourceContents(){return currentSource.sourceText;}
6,358
public static <T> T[] copyOfRange(T[] original, int start, int end) {int originalLength = original.length; if (start > end) {throw new IllegalArgumentException();}if (start < 0 || start > originalLength) {throw new ArrayIndexOutOfBoundsException();}int resultLength = end - start;int copyLength = Math.min(resultLength, originalLength - start);T[] result = (T[]) Array.newInstance(original.getClass().getComponentType(), resultLength);System.arraycopy(original, start, result, 0, copyLength);return result;}
public static int[] copyOfRange(int[] original, int start, int end){if (start > end){throw new System.ArgumentException();}int originalLength = original.Length;if (start < 0 || start > originalLength){throw new System.IndexOutOfRangeException();}int resultLength = end - start;int copyLength = System.Math.Min(resultLength, originalLength - start);int[] result = new int[resultLength];System.Array.Copy(original, start, result, 0, copyLength);return result;}
6,359
public boolean isPeeled() {return false;}
public override bool IsPeeled(){return false;}
6,360
public ProgressMonitor getProgressMonitor() {return monitor;}
public virtual ProgressMonitor GetProgressMonitor(){return monitor;}
6,361
public Content(String data) {setData(data);}
public Content(string data){_data = data;}
6,362
public boolean add(Object o) {return map.put(o, PLACEHOLDER) == null;}
public virtual bool Add(object o){return map.Put(o);}
6,363
public String getLockMessage() {return lockMessage;}
public virtual string GetLockMessage(){return lockMessage;}
6,364
public E previous() {if (index > from) {return (E) snapshot[--index];} else {throw new NoSuchElementException();}}
public virtual E previous(){if (index > from){return (E)snapshot[--index];}else{throw new java.util.NoSuchElementException();}}
6,365
public InviteUsersResult inviteUsers(InviteUsersRequest request) {request = beforeClientExecution(request);return executeInviteUsers(request);}
public virtual InviteUsersResponse InviteUsers(InviteUsersRequest request){var options = new InvokeOptions();options.RequestMarshaller = InviteUsersRequestMarshaller.Instance;options.ResponseUnmarshaller = InviteUsersResponseUnmarshaller.Instance;return Invoke<InviteUsersResponse>(request, options);}
6,366
public boolean lessThan(ShardRef first, ShardRef second) {assert first != second;ScoreDoc firstScoreDoc = shardHits[first.shardIndex][first.hitIndex];ScoreDoc secondScoreDoc = shardHits[second.shardIndex][second.hitIndex];if (firstScoreDoc.score < secondScoreDoc.score) {return false;} else if (firstScoreDoc.score > secondScoreDoc.score) {return true;} else {return tieBreakLessThan(first, firstScoreDoc, second, secondScoreDoc, tieBreakerComparator);}}
protected internal override bool LessThan(ShardRef first, ShardRef second){Debug.Assert(first != second);float firstScore = shardHits[first.ShardIndex][first.HitIndex].Score;float secondScore = shardHits[second.ShardIndex][second.HitIndex].Score;if (firstScore < secondScore){return false;}else if (firstScore > secondScore){return true;}else{if (first.ShardIndex < second.ShardIndex){return true;}else if (first.ShardIndex > second.ShardIndex){return false;}else{Debug.Assert(first.HitIndex != second.HitIndex);return first.HitIndex < second.HitIndex;}}}
6,367
public ListSubscriptionsRequest(String nextToken) {setNextToken(nextToken);}
public ListSubscriptionsRequest(string nextToken){_nextToken = nextToken;}
6,368
public RemoveTagsFromResourceResult removeTagsFromResource(RemoveTagsFromResourceRequest request) {request = beforeClientExecution(request);return executeRemoveTagsFromResource(request);}
public virtual RemoveTagsFromResourceResponse RemoveTagsFromResource(RemoveTagsFromResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveTagsFromResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveTagsFromResourceResponseUnmarshaller.Instance;return Invoke<RemoveTagsFromResourceResponse>(request, options);}
6,369
public ListHostedZonesResult listHostedZones() {return listHostedZones(new ListHostedZonesRequest());}
public virtual ListHostedZonesResponse ListHostedZones(){return ListHostedZones(new ListHostedZonesRequest());}
6,370
public String toString() {StringBuilder sb = new StringBuilder(64);sb.append(getClass().getName()).append(" [");if(isSemiVolatile()) {sb.append("volatile ");}if(isSpace()) {sb.append("space count=").append((_data >> 8) & 0x00FF);sb.append(" type=").append(_data & 0x00FF).append(" ");}if(isOptimizedIf()) {sb.append("if dist=").append(_data);} else if(isOptimizedChoose()) {sb.append("choose nCases=").append(_data);} else if(isSkip()) {sb.append("skip dist=").append(_data);} else if(isSum()) {sb.append("sum ");} else if(isBaxcel()) {sb.append("assign ");}sb.append("]");return sb.toString();}
public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");if (IsSemiVolatile){sb.Append("volatile ");}if (IsSpace){sb.Append("space count=").Append((field_2_data >> 8) & 0x00FF);sb.Append(" type=").Append(field_2_data & 0x00FF).Append(" ");}if (IsOptimizedIf){sb.Append("if dist=").Append(Data);}else if (IsOptimizedChoose){sb.Append("choose nCases=").Append(Data);}else if (IsSkip){sb.Append("skip dist=").Append(Data);}else if (IsSum){sb.Append("sum ");}else if (IsBaxcel){sb.Append("assign ");}sb.Append("]");return sb.ToString();}
6,371
public static double stdev(double[] v) {double r = Double.NaN;if (v!=null && v.length > 1) {r = Math.sqrt( devsq(v) / (v.length - 1) );}return r;}
public static double stdev(double[] v){double r = double.NaN;if (v != null && v.Length > 1){r = Math.Sqrt(devsq(v) / (v.Length - 1));}return r;}
6,372
public GetVoiceConnectorLoggingConfigurationResult getVoiceConnectorLoggingConfiguration(GetVoiceConnectorLoggingConfigurationRequest request) {request = beforeClientExecution(request);return executeGetVoiceConnectorLoggingConfiguration(request);}
public virtual GetVoiceConnectorLoggingConfigurationResponse GetVoiceConnectorLoggingConfiguration(GetVoiceConnectorLoggingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceConnectorLoggingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceConnectorLoggingConfigurationResponseUnmarshaller.Instance;return Invoke<GetVoiceConnectorLoggingConfigurationResponse>(request, options);}
6,373
public GetQueueUrlResult getQueueUrl(GetQueueUrlRequest request) {request = beforeClientExecution(request);return executeGetQueueUrl(request);}
public virtual GetQueueUrlResponse GetQueueUrl(GetQueueUrlRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetQueueUrlRequestMarshaller.Instance;options.ResponseUnmarshaller = GetQueueUrlResponseUnmarshaller.Instance;return Invoke<GetQueueUrlResponse>(request, options);}
6,374
public TblPtg(LittleEndianInput in) {field_1_first_row = in.readUShort();field_2_first_col = in.readUShort();}
public TblPtg(ILittleEndianInput in1){field_1_first_row = in1.ReadUShort();field_2_first_col = in1.ReadUShort();}
6,375
public long ramBytesUsed() {long size = 0;for (PackedInts.Reader reader : subReaders) {size += reader.ramBytesUsed();}return size;}
public long RamBytesUsed(){long size = 0;foreach (PackedInt32s.Reader reader in subReaders){size += reader.RamBytesUsed();}return size;}
6,376
public CreateInternetGatewayResult createInternetGateway(CreateInternetGatewayRequest request) {request = beforeClientExecution(request);return executeCreateInternetGateway(request);}
public virtual CreateInternetGatewayResponse CreateInternetGateway(CreateInternetGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateInternetGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateInternetGatewayResponseUnmarshaller.Instance;return Invoke<CreateInternetGatewayResponse>(request, options);}
6,377
public void setInputStream(IntStream input) {this._input = null;this._tokenFactorySourcePair = new Pair<TokenSource, CharStream>(this, _input);reset();this._input = (CharStream)input;this._tokenFactorySourcePair = new Pair<TokenSource, CharStream>(this, _input);}
public virtual void SetInputStream(ICharStream input){this._input = null;this._tokenFactorySourcePair = Tuple.Create((ITokenSource)this, _input);Reset();this._input = input;this._tokenFactorySourcePair = Tuple.Create((ITokenSource)this, _input);}
6,378
public ExpPtg(int firstRow, int firstCol) {this.field_1_first_row = firstRow;this.field_2_first_col = firstCol;}
public ExpPtg(int firstRow, int firstCol){this.field_1_first_row = (short)firstRow;this.field_2_first_col = (short)firstCol;}
6,379
public int refCount() {final int rc = refCount.get();assert rc >= 0;return rc;}
public virtual int RefCount(){int rc = refCount;Debug.Assert(rc >= 0);return rc;}
6,380
public Object[] toArray() {int size = size(), index = 0;Iterator<?> it = iterator();Object[] array = new Object[size];while (index < size) {array[index++] = it.next();}return array;}
public virtual object[] toArray(){int size_1 = size();int index = 0;java.util.Iterator<E> it = iterator();object[] array = new object[size_1];while (index < size_1){array[index++] = it.next();}return array;}
6,381
public String toString() {return Utils.join(Arrays.asList(opnds).iterator(), "||");}
public override string ToString(){return Utils.Join("||", opnds);}
6,382
public boolean anyDeletions() {return deleteQueue.anyChanges();}
public bool AnyDeletions(){return deleteQueue.AnyChanges();}
6,383
public DoubleBuffer asReadOnlyBuffer() {DoubleToByteBufferAdapter buf = new DoubleToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf.limit = limit;buf.position = position;buf.mark = mark;buf.byteBuffer.order = byteBuffer.order;return buf;}
public override java.nio.DoubleBuffer asReadOnlyBuffer(){java.nio.DoubleToByteBufferAdapter buf = new java.nio.DoubleToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf._limit = _limit;buf._position = _position;buf._mark = _mark;buf.byteBuffer._order = byteBuffer._order;return buf;}
6,384
public GetTelemetryMetadataResult getTelemetryMetadata(GetTelemetryMetadataRequest request) {request = beforeClientExecution(request);return executeGetTelemetryMetadata(request);}
public virtual GetTelemetryMetadataResponse GetTelemetryMetadata(GetTelemetryMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTelemetryMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTelemetryMetadataResponseUnmarshaller.Instance;return Invoke<GetTelemetryMetadataResponse>(request, options);}
6,385
public ExternalBookBlock(RecordStream rs) {_externalBookRecord = (SupBookRecord) rs.getNext();List<Object> temp = new ArrayList<>();while (rs.peekNextClass() == ExternalNameRecord.class) {temp.add(rs.getNext());}_externalNameRecords = new ExternalNameRecord[temp.size()];temp.toArray(_externalNameRecords);temp.clear();while (rs.peekNextClass() == CRNCountRecord.class) {temp.add(new CRNBlock(rs));}_crnBlocks = new CRNBlock[temp.size()];temp.toArray(_crnBlocks);}
public ExternalBookBlock(RecordStream rs){_externalBookRecord = (SupBookRecord)rs.GetNext();ArrayList temp = new ArrayList();while (rs.PeekNextClass() == typeof(ExternalNameRecord)){temp.Add(rs.GetNext());}_externalNameRecords = (ExternalNameRecord[])temp.ToArray(typeof(ExternalNameRecord));temp.Clear();while (rs.PeekNextClass() == typeof(CRNCountRecord)){temp.Add(new CRNBlock(rs));}_crnBlocks = (CRNBlock[])temp.ToArray(typeof(CRNBlock));}
6,386
public StartDeliveryStreamEncryptionResult startDeliveryStreamEncryption(StartDeliveryStreamEncryptionRequest request) {request = beforeClientExecution(request);return executeStartDeliveryStreamEncryption(request);}
public virtual StartDeliveryStreamEncryptionResponse StartDeliveryStreamEncryption(StartDeliveryStreamEncryptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDeliveryStreamEncryptionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDeliveryStreamEncryptionResponseUnmarshaller.Instance;return Invoke<StartDeliveryStreamEncryptionResponse>(request, options);}
6,387
public static double getExcelDate(LocalDateTime date, boolean use1904windowing) {int year = date.getYear();int dayOfYear = date.getDayOfYear();int hour = date.getHour();int minute = date.getMinute();int second = date.getSecond();int milliSecond = date.getNano()/1_000_000;return internalGetExcelDate(year, dayOfYear, hour, minute, second, milliSecond, use1904windowing);}
public static double GetExcelDate(DateTime date, bool use1904windowing){if ((!use1904windowing && date.Year < 1900) || (use1904windowing && date.Year < 1904)) {return BAD_DATE;}DateTime startdate;if (use1904windowing){startdate = new DateTime(1904, 1, 1);}else{startdate = new DateTime(1900, 1, 1);}double value = (date - startdate).TotalDays + 1;if (!use1904windowing && value >= 60){value++;}else if (use1904windowing){value--;}return value;}
6,388
public UpdateFleetAttributesResult updateFleetAttributes(UpdateFleetAttributesRequest request) {request = beforeClientExecution(request);return executeUpdateFleetAttributes(request);}
public virtual UpdateFleetAttributesResponse UpdateFleetAttributes(UpdateFleetAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFleetAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFleetAttributesResponseUnmarshaller.Instance;return Invoke<UpdateFleetAttributesResponse>(request, options);}
6,389
public Explanation idfExplain(CollectionStatistics collectionStats, TermStatistics termStats) {final long df = termStats.docFreq();final long docCount = collectionStats.docCount();final float idf = idf(df, docCount);return Explanation.match(idf, "idf(docFreq, docCount)",Explanation.match(df, "docFreq, number of documents containing term"),Explanation.match(docCount, "docCount, total number of documents with field"));}
public virtual Explanation IdfExplain(CollectionStatistics collectionStats, TermStatistics termStats){long df = termStats.DocFreq;long max = collectionStats.MaxDoc;float idf = Idf(df, max);return new Explanation(idf, "idf(docFreq=" + df + ", maxDocs=" + max + ")");}
6,390
public CreateGroupMembershipResult createGroupMembership(CreateGroupMembershipRequest request) {request = beforeClientExecution(request);return executeCreateGroupMembership(request);}
public virtual CreateGroupMembershipResponse CreateGroupMembership(CreateGroupMembershipRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateGroupMembershipRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateGroupMembershipResponseUnmarshaller.Instance;return Invoke<CreateGroupMembershipResponse>(request, options);}
6,391
public GrowableWriter(int startBitsPerValue, int valueCount, float acceptableOverheadRatio) {this.acceptableOverheadRatio = acceptableOverheadRatio;current = PackedInts.getMutable(valueCount, startBitsPerValue, this.acceptableOverheadRatio);currentMask = mask(current.getBitsPerValue());}
public GrowableWriter(int startBitsPerValue, int valueCount, float acceptableOverheadRatio){this.acceptableOverheadRatio = acceptableOverheadRatio;current = PackedInt32s.GetMutable(valueCount, startBitsPerValue, this.acceptableOverheadRatio);currentMask = Mask(current.BitsPerValue);}
6,392
public AddJobFlowStepsResult addJobFlowSteps(AddJobFlowStepsRequest request) {request = beforeClientExecution(request);return executeAddJobFlowSteps(request);}
public virtual AddJobFlowStepsResponse AddJobFlowSteps(AddJobFlowStepsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddJobFlowStepsRequestMarshaller.Instance;options.ResponseUnmarshaller = AddJobFlowStepsResponseUnmarshaller.Instance;return Invoke<AddJobFlowStepsResponse>(request, options);}
6,393
public RecalcIdRecord() {_reserved0 = 0;_engineId = 0;}
public RecalcIdRecord(){_reserved0 = 0;_engineId = 0;}
6,394
public boolean matches() {matchFound = matchesImpl(address, input, matchOffsets);if (matchFound) {findPos = matchOffsets[1];}return matchFound;}
public bool matches(){matchFound = matchesImpl(address, input, matchOffsets);if (matchFound){findPos = matchOffsets[1];}return matchFound;}
6,395
public FieldMaskingSpanQuery(SpanQuery maskedQuery, String maskedField) {this.maskedQuery = Objects.requireNonNull(maskedQuery);this.field = Objects.requireNonNull(maskedField);}
public FieldMaskingSpanQuery(SpanQuery maskedQuery, string maskedField){this.maskedQuery = maskedQuery;this.field = maskedField;}
6,396
public void print(float fnum) {print(String.valueOf(fnum));}
public virtual void print(float fnum){print(fnum.ToString());}
6,397
public int addBSERecord(EscherBSERecord e) {createDrawingGroup();escherBSERecords.add( e );int dgLoc = findFirstRecordLocBySid(DrawingGroupRecord.sid);DrawingGroupRecord drawingGroup = (DrawingGroupRecord) getRecords().get( dgLoc );EscherContainerRecord dggContainer = (EscherContainerRecord) drawingGroup.getEscherRecord( 0 );EscherContainerRecord bstoreContainer;if (dggContainer.getChild( 1 ).getRecordId() == EscherContainerRecord.BSTORE_CONTAINER ){bstoreContainer = (EscherContainerRecord) dggContainer.getChild( 1 );} else {bstoreContainer = new EscherContainerRecord();bstoreContainer.setRecordId( EscherContainerRecord.BSTORE_CONTAINER );List<EscherRecord> childRecords = dggContainer.getChildRecords();childRecords.add(1, bstoreContainer);dggContainer.setChildRecords(childRecords);}bstoreContainer.setOptions( (short) ( (escherBSERecords.size() << 4) | 0xF ) );bstoreContainer.addChildRecord( e );return escherBSERecords.size();}
public int AddBSERecord(EscherBSERecord e){CreateDrawingGroup();escherBSERecords.Add(e);int dgLoc = FindFirstRecordLocBySid(DrawingGroupRecord.sid);DrawingGroupRecord drawingGroup = (DrawingGroupRecord)Records[dgLoc];EscherContainerRecord dggContainer = (EscherContainerRecord)drawingGroup.GetEscherRecord(0);EscherContainerRecord bstoreContainer;if (dggContainer.GetChild(1).RecordId == EscherContainerRecord.BSTORE_CONTAINER){bstoreContainer = (EscherContainerRecord)dggContainer.GetChild(1);}else{bstoreContainer = new EscherContainerRecord();bstoreContainer.RecordId=EscherContainerRecord.BSTORE_CONTAINER;List<EscherRecord> childRecords = dggContainer.ChildRecords;childRecords.Insert(1, bstoreContainer);dggContainer.ChildRecords = (childRecords);}bstoreContainer.Options=(short)((escherBSERecords.Count << 4) | 0xF);bstoreContainer.AddChildRecord(e);return escherBSERecords.Count;}
6,398
public CreateLoadBalancerListenersRequest(String loadBalancerName, java.util.List<Listener> listeners) {setLoadBalancerName(loadBalancerName);setListeners(listeners);}
public CreateLoadBalancerListenersRequest(string loadBalancerName, List<Listener> listeners){_loadBalancerName = loadBalancerName;_listeners = listeners;}
6,399
public DeleteDBClusterEndpointResult deleteDBClusterEndpoint(DeleteDBClusterEndpointRequest request) {request = beforeClientExecution(request);return executeDeleteDBClusterEndpoint(request);}
public virtual DeleteDBClusterEndpointResponse DeleteDBClusterEndpoint(DeleteDBClusterEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBClusterEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBClusterEndpointResponseUnmarshaller.Instance;return Invoke<DeleteDBClusterEndpointResponse>(request, options);}