text stringlengths 27 1.4k |
|---|
public bool Evaluate(bool cmpResult){switch (_code){case NONE:case EQ:return cmpResult;case NE:return !cmpResult;}throw new Exception("Cannot call bool Evaluate on non-equality operator '"+ _representation + "'");} |
public virtual int GetEnd(){return end;} |
public override string ToString(){if (@string != null){return @string;}java.lang.StringBuilder result = new java.lang.StringBuilder();if (scheme != null){result.append(scheme);result.append(':');}if (opaque){result.append(schemeSpecificPart);}else{if (authority != null){result.append("");result.append(authority);}if (p... |
public static NGit.ObjectId FromRaw(byte[] bs, int p){int a = NB.DecodeInt32(bs, p);int b = NB.DecodeInt32(bs, p + 4);int c = NB.DecodeInt32(bs, p + 8);int d = NB.DecodeInt32(bs, p + 12);int e = NB.DecodeInt32(bs, p + 16);return new NGit.ObjectId(a, b, c, d, e);} |
public virtual int MaxRecall(QualityQuery query){QRelJudgement qrj;if (judgements.TryGetValue(query.QueryID, out qrj) && qrj != null){return qrj.MaxRecall;}return 0;} |
public static HashFunction HashFunctionForVersion(int version){if (version < VERSION_START)throw new ArgumentException("Version " + version + " is too old, expected at least " +VERSION_START);if (version > VERSION_CURRENT)throw new ArgumentException("Version " + version + " is too new, expected at most " +VERSION_CURRE... |
public void RemoveCell(ICell cell){if (cell == null){throw new ArgumentException("cell must not be null");}RemoveCell((HSSFCell)cell, true);} |
public CreatePlacementGroupRequest(string groupName, PlacementStrategy strategy){_groupName = groupName;_strategy = strategy;} |
public virtual PutManagedScalingPolicyResponse PutManagedScalingPolicy(PutManagedScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutManagedScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = PutManagedScalingPolicyResponseUnmarshaller.Instance;return Invoke... |
public override string ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[SXVS]\n");buffer.Append(" .vs =").Append(HexDump.ShortToHex(vs)).Append('\n');buffer.Append("[/SXVS]\n");return buffer.ToString();} |
public virtual Trie Reduce(Reduce by){return by.Optimize(this);} |
public override object Clone(){return CloneViaReserialise();} |
public override void SetParams(string @params){base.SetParams(@params);commitUserData = new Dictionary<string, string>();commitUserData[OpenReaderTask.USER_DATA] = @params;} |
public virtual string GetSrcRef(){return srcRef;} |
public string GetShortMessage(){byte[] raw = buffer;int msgB = RawParseUtils.CommitMessage(raw, 0);if (msgB < 0){return string.Empty;}System.Text.Encoding enc = RawParseUtils.ParseEncoding(raw);int msgE = RawParseUtils.EndOfParagraph(raw, msgB);string str = RawParseUtils.Decode(enc, raw, msgB, msgE);if (HasLF(raw, msgB... |
public static Boolean? CoerceValueToBoolean(ValueEval ve, bool stringsAreBlanks){if (ve == null || ve == BlankEval.instance){return null;}if (ve is BoolEval){return ((BoolEval)ve).BooleanValue;}if (ve is StringEval){if (stringsAreBlanks){return null;}String str = ((StringEval)ve).StringValue;if (str.Equals("true", Stri... |
public virtual IList<IndexCommit> GetSnapshots(){lock (this){return new List<IndexCommit>(m_indexCommits.Values);}} |
public static int SubIndex(int n, int[] docStarts) {int size = docStarts.Length;int lo = 0; int hi = size - 1; while (hi >= lo){int mid = (int)((uint)(lo + hi) >> 1);int midValue = docStarts[mid];if (n < midValue){hi = mid - 1;}else if (n > midValue){lo = mid + 1;}else {while (mid + 1 < size && docStarts[mid + 1] == mi... |
public static DateTime GetJavaDate(double date, bool use1904windowing){return GetJavaCalendar(date, use1904windowing, false);} |
public virtual string GetLastOnPath(string key){Row now = GetRow(root);int w;string last = null;StrEnum e = new StrEnum(key, forward);for (int i = 0; i < key.Length - 1; i++){char ch = e.Next();w = now.GetCmd(ch);if (w >= 0){last = cmds[w];}w = now.GetRef(ch);if (w >= 0){now = GetRow(w);}else{return last;}}w = now.GetC... |
public Hashtable(int capacity){if (capacity < 0){throw new System.ArgumentException("Capacity: " + capacity);}if (capacity == 0){java.util.Hashtable.HashtableEntry<K, V>[] tab = (java.util.Hashtable.HashtableEntry<K, V>[])EMPTY_TABLE;table = tab;threshold = -1;return;}if (capacity < java.util.Hashtable.MINIMUM_CAPACITY... |
public virtual void Reset(){heads.Clear();Sharpen.Collections.AddAll(heads, headsStartValue);} |
public virtual CreatePlacementGroupResponse CreatePlacementGroup(CreatePlacementGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePlacementGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePlacementGroupResponseUnmarshaller.Instance;return Invoke<CreatePlacemen... |
public float maxCharsPerByte(){return _maxCharsPerByte;} |
public static string GetRFC2616Date(DateTime datetime){if (null == datetime){datetime = DateTime.UtcNow;}return datetime.ToUniversalTime().GetDateTimeFormats('r') [0];} |
public virtual ListContributorInsightsResponse ListContributorInsights(ListContributorInsightsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListContributorInsightsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListContributorInsightsResponseUnmarshaller.Instance;return Invoke... |
public virtual void SetPackedGitOpenFiles(int fdLimit){packedGitOpenFiles = fdLimit;} |
public virtual FailoverDBClusterResponse FailoverDBCluster(FailoverDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = FailoverDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = FailoverDBClusterResponseUnmarshaller.Instance;return Invoke<FailoverDBClusterResponse>(re... |
public java.lang.StringBuilder insert(int offset, double d){insert0(offset, System.Convert.ToString(d));return this;} |
public override void Serialize(ILittleEndianOutput out1){futureHeader.Serialize(out1);out1.WriteShort(isf_sharedFeatureType);out1.WriteByte(reserved1);out1.WriteInt((int)reserved2);out1.WriteShort(cellRefs.Length);out1.WriteInt((int)cbFeatData);out1.WriteShort(reserved3);for (int i = 0; i < cellRefs.Length; i++){cellRe... |
public virtual void writeDouble(double value){throw new System.NotImplementedException();} |
public virtual DisassociateWebsiteAuthorizationProviderResponse DisassociateWebsiteAuthorizationProvider(DisassociateWebsiteAuthorizationProviderRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateWebsiteAuthorizationProviderRequestMarshaller.Instance;options.ResponseUnmarshaller ... |
public byte[] Serialize(){byte[] retval = new byte[RecordSize];Serialize(0, retval);return retval;} |
public ICell next(){if (hasNext())return _cells[pos++];else throw new NullReferenceException();} |
public static short[] Grow(short[] array){return Grow(array, 1 + array.Length);} |
public java.lang.StringBuffer insert(int index, string @string){lock (this){insert0(index, @string);return this;}} |
public virtual DescribeDomainResponse DescribeDomain(DescribeDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDomainResponseUnmarshaller.Instance;return Invoke<DescribeDomainResponse>(request, options);} |
public void Reset(){this.Reset(true, true);} |
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(_reserved);} |
public virtual int GetStartOffset(){return startOffset;} |
public override string[] ListAll(){lock (this){ISet<string> files = new JCG.HashSet<string>();foreach (string f in cache.ListAll()){files.Add(f);}try{foreach (string f in @delegate.ListAll()){files.Add(f);}}catch (DirectoryNotFoundException ){if (files.Count == 0){throw; }}return files.ToArray();}} |
public byte ClearByte(byte holder){return (byte)this.Clear(holder);} |
public ScenarioProtectRecord GetHCenter(){return _scenarioProtectRecord;} |
public NPOI.SS.UserModel.IRow CreateRow(int rownum){HSSFRow row = new HSSFRow(_workbook, this, rownum);row.Height = (DefaultRowHeight);row.RowRecord.BadFontHeight = (false);AddRow(row, true);return row;} |
public virtual ListQueryExecutionsResponse ListQueryExecutions(ListQueryExecutionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListQueryExecutionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListQueryExecutionsResponseUnmarshaller.Instance;return Invoke<ListQueryExecutions... |
public virtual DeleteSuppressedDestinationResponse DeleteSuppressedDestination(DeleteSuppressedDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSuppressedDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSuppressedDestinationResponseUnmarshaller.In... |
public override CharsRef Subtract(CharsRef output, CharsRef inc){Debug.Assert(output != null);Debug.Assert(inc != null);if (inc == NO_OUTPUT){return output;}else if (inc.Length == output.Length){return NO_OUTPUT;}else{Debug.Assert(inc.Length < output.Length, "inc.Length=" + inc.Length + " vs output.Length=" + output.Le... |
public virtual RequestCancelWorkflowExecutionResponse RequestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = RequestCancelWorkflowExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = RequestCancelWorkflowExecutionResponse... |
public override bool Equals(object o){if (this == o){return true;}var arn = o as Arn;if(arn == null){return false;}if (!Partition.Equals(arn.Partition)){return false;}if (!Service.Equals(arn.Service)){return false;}if (Region != arn.Region){return false;}if (AccountId != arn.AccountId){return false;}return Resource.Equ... |
public virtual UpdateDataSetPermissionsResponse UpdateDataSetPermissions(UpdateDataSetPermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDataSetPermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDataSetPermissionsResponseUnmarshaller.Instance;return I... |
public virtual DeleteCloudFrontOriginAccessIdentityResponse DeleteCloudFrontOriginAccessIdentity(DeleteCloudFrontOriginAccessIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCloudFrontOriginAccessIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCloudFro... |
public override TokenStream Create(TokenStream input){return new PortugueseMinimalStemFilter(input);} |
public virtual PutDashboardResponse PutDashboard(PutDashboardRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutDashboardRequestMarshaller.Instance;options.ResponseUnmarshaller = PutDashboardResponseUnmarshaller.Instance;return Invoke<PutDashboardResponse>(request, options);} |
public void AddChar(char c, int width){charWidths[c] = width;} |
public virtual DeleteRoomSkillParameterResponse DeleteRoomSkillParameter(DeleteRoomSkillParameterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRoomSkillParameterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRoomSkillParameterResponseUnmarshaller.Instance;return I... |
public virtual string Get(string name, string dflt){string[] vals;object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){vals = (string[])temp;return vals[roundNumber % vals.Length];}string sval;if (!props.TryGetValue(name, out sval)){sval = dflt;}if (sval == null){return null;}if (sval.IndexOf(':') < ... |
public virtual DescribeDBClusterSnapshotAttributesResponse DescribeDBClusterSnapshotAttributes(DescribeDBClusterSnapshotAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClusterSnapshotAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClusterS... |
public virtual void AddFile(FileHeader fh){files.AddItem(fh);} |
public override TokenStream Create(TokenStream input){return new ItalianLightStemFilter(input);} |
public LinkedHashMap(){init();accessOrder = false;} |
public virtual DeleteStackInstancesResponse DeleteStackInstances(DeleteStackInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteStackInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteStackInstancesResponseUnmarshaller.Instance;return Invoke<DeleteStackIns... |
public override string ToString(){return "(" + a.ToString() + " OR " + b.ToString() + ")";} |
public StringWriter(){buf = new java.lang.StringBuffer(16);@lock = buf;} |
public virtual IList<MatchingDocs> GetOriginalMatchingDocs(){return base.GetMatchingDocs();} |
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){double result;try{double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = Evaluate(d0, d1);Nu... |
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[HCENTER]\n");buffer.Append(" .hcenter = ").Append(HCenter).Append("\n");buffer.Append("[/HCENTER]\n");return buffer.ToString();} |
public virtual GetEbsEncryptionByDefaultResponse GetEbsEncryptionByDefault(GetEbsEncryptionByDefaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEbsEncryptionByDefaultRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEbsEncryptionByDefaultResponseUnmarshaller.Instance;ret... |
public virtual ParseException GenerateParseException(){jj_expentries.Clear();bool[] la1tokens = new bool[33];if (jj_kind >= 0){la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 21; i++){if (jj_la1[i] == jj_gen){for (int j = 0; j < 32; j++){if ((jj_la1_0[i] & (1 << j)) != 0){la1tokens[j] = true;}if ((jj_la1_1[... |
public int GetCharWidth(char c){object widthInteger = charWidths[c];if (widthInteger == null)return 'W' == c ? 0 : GetCharWidth('W');else return (int)widthInteger;} |
public virtual DescribeSecurityGroupReferencesResponse DescribeSecurityGroupReferences(DescribeSecurityGroupReferencesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSecurityGroupReferencesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSecurityGroupReferencesRes... |
public virtual V getValue(){return value;} |
public EscherContainerRecord GetEscherContainer(){for (IEnumerator it = escherRecords.GetEnumerator(); it.MoveNext(); ){Object er = it.Current;if (er is EscherContainerRecord){return (EscherContainerRecord)er;}}return null;} |
public bool RemoveShape(HSSFShape shape){bool isRemoved = GetEscherContainer().RemoveChildRecord(shape.GetEscherContainer());if (isRemoved){shape.AfterRemove(this.Patriarch);shapes.Remove(shape);}return isRemoved;} |
public bool ChangeExternalReference(String oldUrl, String newUrl){return linkTable.ChangeExternalReference(oldUrl, newUrl);} |
public override string ToString(){return "BLOCK: " + Prefix.Utf8ToString();} |
public static string PathToString(string[] path){return PathToString(path, path.Length);} |
public bool IsInRange(int rowIx, int colIx){CellRangeAddress8Bit r = _range;return r.FirstRow <= rowIx&& r.LastRow >= rowIx&& r.FirstColumn <= colIx&& r.LastColumn >= colIx;} |
public virtual RmCommand Rm(){return new RmCommand(repo);} |
public static string[] Parse(string line){bool insideQuote = false;List<string> result = new List<string>();int quoteCount = 0;StringBuilder sb = new StringBuilder();for (int i = 0; i < line.Length; i++){char c = line[i];if (c == QUOTE){insideQuote = !insideQuote;quoteCount++;}if (c == COMMA && !insideQuote){string val... |
public override long Get(int index){int o = index / 3;int b = index % 3;int shift = b * 21;return ((long)((ulong)blocks[o] >> shift)) & 2097151L;} |
public virtual void connect(java.io.PipedOutputStream src){throw new System.NotImplementedException();} |
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 WeightedPhr... |
public virtual DescribeLoadBalancerPolicyTypesResponse DescribeLoadBalancerPolicyTypes(DescribeLoadBalancerPolicyTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoadBalancerPolicyTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoadBalancerPolicyTypesRes... |
public override java.util.MapClass.Entry<K, V> next(){return this.nextEntry();} |
public int GetCmd(char way){Cell c = At(way);return (c == null) ? -1 : c.cmd;} |
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);} |
public override string ToString(){return "Reverse" + base.ToString();} |
public override Explanation Explain(int doc, Explanation freq){return outerInstance.Explain(stats, doc, freq, norms == null ? 1F : outerInstance.DecodeNormValue((byte)norms.Get(doc)));} |
public static ListenerList GetGlobalListenerList(){return globalListeners;} |
public virtual GetInvitationsCountResponse GetInvitationsCount(GetInvitationsCountRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInvitationsCountRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInvitationsCountResponseUnmarshaller.Instance;return Invoke<GetInvitationsCount... |
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;}... |
public virtual V setValue(V value){if ((object)value == null){throw new System.ArgumentNullException();}V oldValue = this.value;this.value = value;return oldValue;} |
public override bool isEmpty(){return this._enclosing._size == 0;} |
public void SetCategoryLabelsCellRange(CellRangeAddressBase range){int count = SetVerticalCellRange(dataCategoryLabels, range);series.NumCategories = (short)count;} |
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>(... |
public virtual DeleteScheduledActionResponse DeleteScheduledAction(DeleteScheduledActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteScheduledActionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteScheduledActionResponseUnmarshaller.Instance;return Invoke<DeleteSch... |
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 ... |
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(rt);out1.WriteShort(grbitFrt);out1.WriteShort(iObjectKind);out1.Write(unused);} |
public ChangeInfo(string id, ChangeStatus status, DateTime submittedAt){_id = id;_status = status;_submittedAt = submittedAt;} |
public SwedishLightStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.