public override int GetHashCode() { int hash = 1; if (Id1 != 0) { hash ^= Id1.GetHashCode(); } if (Id2 != 0) { hash ^= Id2.GetHashCode(); } if (Username.Length != 0) { hash ^= Username.GetHashCode(); } if (Passwd.Length != 0) { hash ^= Passwd.GetHashCode(); } if (Ver.Length != 0) { hash ^= Ver.GetHashCode(); } if (Json.Length != 0) { hash ^= Json.GetHashCode(); } return(hash); }
public Constraints8ConstraintElement( Id2IndexElement d2IndexElement, IrIndexElement rIndexElement, IsIndexElement sIndexElement, ItIndexElement tIndexElement, Id1 d1, It t, Ix x, IxHat xHat, Iα α) { Expression LHS = xHat.Value[ sIndexElement, rIndexElement, t.GetElementAt( tIndexElement.Key + d2IndexElement.Value.Value.Value)]; Expression RHS = Expression.Sum( d1.Value .Select( y => x.GetElementAtAsint( sIndexElement, rIndexElement, t.GetElementAt( tIndexElement.Key + y.Value.Value.Value)) * α.Value[rIndexElement, y, d2IndexElement])); this.Value = LHS == RHS; }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("EquivEdge"); oprot.WriteStructBegin(struc); TField field = new TField(); field.Name = "id1"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); Id1.Write(oprot); oprot.WriteFieldEnd(); field.Name = "id2"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); Id2.Write(oprot); oprot.WriteFieldEnd(); oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public override int GetHashCode() { unchecked { return(Id0.GetHashCode() * 397 ^ (Id1.GetHashCode())); } }
public IConstraints8ConstraintElement Create( Id2IndexElement d2IndexElement, IrIndexElement rIndexElement, IsIndexElement sIndexElement, ItIndexElement tIndexElement, Id1 d1, It t, Ix x, IxHat xHat, Iα α) { IConstraints8ConstraintElement constraintElement = null; try { constraintElement = new Constraints8ConstraintElement( d2IndexElement, rIndexElement, sIndexElement, tIndexElement, d1, t, x, xHat, α); } catch (Exception exception) { this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace); } return(constraintElement); }
public override int GetHashCode() { var hashCode = -1596524975; hashCode = hashCode * -1521134295 + Id1.GetHashCode(); hashCode = hashCode * -1521134295 + Id2.GetHashCode(); return(hashCode); }
public override int GetHashCode() { int hashCode = 0; hashCode = hashCode ^ Id1.GetHashCode() ^ Id2.GetHashCode() ^ Id3.GetHashCode(); return(hashCode); }
public void PrepareStories_1ID_RepositoryShouldContainTheCorrectID() { const int Id1 = 230088; this.storyPreparer.PrepareStories(Id1.ToString(CultureInfo.InvariantCulture)); Story s = this.storyPreparer.GetStoryById(Id1); Assert.AreEqual(s.Id, Id1); }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 31 + Id1.GetHashCode(); hash = hash * 31 + Id2.GetHashCode(); return(hash); } }
public override string ToString() { StringBuilder __sb = new StringBuilder("EquivEdge("); __sb.Append(", Id1: "); __sb.Append(Id1 == null ? "<null>" : Id1.ToString()); __sb.Append(", Id2: "); __sb.Append(Id2 == null ? "<null>" : Id2.ToString()); __sb.Append(")"); return(__sb.ToString()); }
public IS2 Calculate( IS2ParameterElementFactory S2ParameterElementFactory, IS2Factory S2Factory, Id1 d1, Id2 d2, Ir r, It t, Ird1d2 rd1d2, IW W, Ix x, IΔ Δ) { return(S2Factory.Create( rd1d2.Value .Where(i => i.d1IndexElement.Value.Value.Value != i.d2IndexElement.Value.Value.Value) // rd1d2t1 .SelectMany(b => t.GetNthElementsAt( b.d1IndexElement.Value.Value.Value, t.GetT() - W.Value.Value.Value + b.d1IndexElement.Value.Value.Value, W.Value.Value.Value), (a, b) => Tuple.Create(a.rIndexElement, a.d1IndexElement, a.d2IndexElement, b)) // rd1d2t1t2 .SelectMany(b => t.GetNthElementsAt( b.Item3.Value.Value.Value, t.GetT() - W.Value.Value.Value + b.Item3.Value.Value.Value, W.Value.Value.Value), (a, b) => Tuple.Create(a.Item1, a.Item2, a.Item3, a.Item4, b)) .Select( i => Tuple.Create( i.Item1, i.Item2, i.Item3, i.Item4, i.Item5, // x(j, r, t) x.Value .Where(j => j.Value.Value.Value) .Select(j => Tuple.Create( Δ.GetSurgicalSpecialtyOfSurgeon(j.sIndexElement), j.rIndexElement, j.tIndexElement)) .Where(j => j.Item2 == i.Item1) .Select(j => j.Item1) .Distinct() .Count())) .Where(i => i.Item6 == 1) .Select(i => S2ParameterElementFactory .Create( i.Item1, i.Item2, i.Item3)) .ToImmutableList())); }
/// <summary> /// Updated the beacon PID; The ID 1 (without dashes) + 5 digits ID 2 /// (padded with zeros) + 5 digits ID 3 (padded with zeros). /// </summary> private void UpdatePid() { string template = "00000"; string beaconId2 = Id2.ToString(); string beaconId3 = Id3.ToString(); beaconId2 = template.Substring(beaconId2.Length) + beaconId2; beaconId3 = template.Substring(beaconId3.Length) + beaconId3; string pid = Id1.Replace(HexStringSeparator.ToString(), string.Empty) + beaconId2 + beaconId3; Pid = pid.ToLower(); }
public override int GetHashCode() { int hash = 1; if (Id1 != 0) { hash ^= Id1.GetHashCode(); } if (Id2 != 0) { hash ^= Id2.GetHashCode(); } if (Res != 0) { hash ^= Res.GetHashCode(); } if (Lastgsid != 0) { hash ^= Lastgsid.GetHashCode(); } if (Lastgsname.Length != 0) { hash ^= Lastgsname.GetHashCode(); } hash ^= gslist_.GetHashCode(); if (Reason.Length != 0) { hash ^= Reason.GetHashCode(); } if (Time != 0) { hash ^= Time.GetHashCode(); } if (Json.Length != 0) { hash ^= Json.GetHashCode(); } if (Remainsec != 0) { hash ^= Remainsec.GetHashCode(); } if (Username.Length != 0) { hash ^= Username.GetHashCode(); } if (Ontime != 0) { hash ^= Ontime.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Id1 != 0) { hash ^= Id1.GetHashCode(); } if (Id2 != 0) { hash ^= Id2.GetHashCode(); } return(hash); }
public Constraints6ConstraintElement( Id2IndexElement d2IndexElement, IrIndexElement rIndexElement, Id1 d1, Iα α) { Expression LHS = Expression.Sum( d1.Value .Select( y => α.Value[rIndexElement, y, d2IndexElement])); int RHS = 1; this.Value = LHS == RHS; }
/// <summary> /// Retrieves the details of a specific channel group /// </summary> public async Task <GetChannelGroupDetailsResponse> GetChannelGroupDetails(Id1 channelgroupid, GetChannelGroupDetails_channels channels = null) { var jArgs = new JObject(); if (channelgroupid != null) { var jpropchannelgroupid = JToken.FromObject(channelgroupid, _client.Serializer); jArgs.Add(new JProperty("channelgroupid", jpropchannelgroupid)); } if (channels != null) { var jpropchannels = JToken.FromObject(channels, _client.Serializer); jArgs.Add(new JProperty("channels", jpropchannels)); } return(await _client.GetData <GetChannelGroupDetailsResponse>("PVR.GetChannelGroupDetails", jArgs)); }
public void ProcessRequest(HttpContext context) { long Id; int Id1, Id2; string result = ""; decimal Score = 0; try { Id = Convert.ToInt64(DESEncrypt.Decrypt(context.Request.Params["id"].ToString())); Id1 = Convert.ToInt32(DESEncrypt.Decrypt(context.Request.Params["id1"].ToString())); Id2 = Convert.ToInt32(DESEncrypt.Decrypt(context.Request.Params["id2"].ToString())); Score = Convert.ToDecimal(context.Request.Params["txtScore"].ToString()); var model = new Model.CCOM.Examination_subject_score(); var _model = new Model.CCOM.Examination_subject_score(); BLL.CCOM.Examination_subject_score Bess = new BLL.CCOM.Examination_subject_score(); model = new BLL.CCOM.Examination_subject_score().GetModel(" Esn_id = " + Id1 + " AND User_id=" + Id + " AND Judge_id=" + Id2); _model.Esn_id = Id1; _model.Ess_score = Score; _model.Judge_id = Id2; _model.User_id = Id; _model.Ess_score_status = true; _model.Ess_order_status = true; if (model != null) { _model.Ess_id = model.Ess_id; Bess.Update(_model); } else { Bess.Add(_model); } new Calculation().calculateSubjectXu(Id1.ToString(), Id2.ToString()); result += "添加成功"; } catch (Exception ex) { ILog LOGGER = LogManager.GetLogger("quanquan"); LOGGER.Debug(ex.Message, ex); result += "添加失败,请重新尝试"; } context.Response.ContentType = "text/plain"; context.Response.Write(result); }
public Id1 Create( ImmutableList <Id1IndexElement> value) { Id1 index = null; try { index = new d1( value); } catch (Exception exception) { this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace); } return(index); }
/// <summary> /// Retrieves the channel list /// </summary> public async Task <GetChannelsResponse> GetChannels(Id1 channelgroupid, Channel properties = null, Limits limits = null) { var jArgs = new JObject(); if (channelgroupid != null) { var jpropchannelgroupid = JToken.FromObject(channelgroupid, _client.Serializer); jArgs.Add(new JProperty("channelgroupid", jpropchannelgroupid)); } if (properties != null) { var jpropproperties = JToken.FromObject(properties, _client.Serializer); jArgs.Add(new JProperty("properties", jpropproperties)); } if (limits != null) { var jproplimits = JToken.FromObject(limits, _client.Serializer); jArgs.Add(new JProperty("limits", jproplimits)); } return(await _client.GetData <GetChannelsResponse>("PVR.GetChannels", jArgs)); }
public override int GetHashCode() => Id1.GetHashCode() ^ Id2.GetHashCode() ^ (DataValue is null ? 0 : DataValue.GetHashCode());
public override int GetHashCode() { return(Id1.GetHashCode() ^ Id2.GetHashCode()); }
public void anyof_index_should_has_entities() { Assert.AreEqual(2, IndexAny.GetEntities(Key).Count); Assert.AreEqual(1, IndexAny.GetEntities(Key2).Count); Assert.AreEqual(1, IndexAny.GetEntities(Id1.ToString()).Count); }