query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns the period value of the item, if it is a atomic item of type duration.
public Period getDurationValue() { throw new OurBadException(" Item '" + this.serialize() + "' is not a duration."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getPeriod() {\n return period;\n }", "public int getPeriod() {\n return period;\n }", "public Long getPeriod() {\n return this.Period;\n }", "public int getPeriod()\r\n\t{\r\n\t\treturn period;\r\n\t}", "org.hl7.fhir.Period getValuePeriod();", "public Period getPeriod() {\n return period;\n }", "public String getPeriod() {\n return period;\n }", "double getPeriod();", "public String getPeriod() {\n return this.period;\n }", "@Updatable\n public Integer getPeriod() {\n return period;\n }", "org.apache.xmlbeans.XmlDuration xgetDuration();", "public TimePeriod getPeriod();", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "public Period period() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_PERIOD);\n }", "BigInteger getPeriod();", "public Integer periodSeconds() {\n return this.periodSeconds;\n }", "int getPeriod();", "public Number getPeriodNum() {\n return (Number) getAttributeInternal(PERIODNUM);\n }", "public Number getPeriodId() {\n return (Number) getAttributeInternal(PERIODID);\n }", "org.apache.xmlbeans.XmlInt xgetDuration();", "public AdjustmentPeriodTypeId getPeriod() {\n return this.period;\n }", "public int getTimePeriod() {\n return timePeriod;\n }", "public Duration getActualDuration()\r\n {\r\n return (m_actualDuration);\r\n }", "public java.lang.Integer getPeriodo() {\n return periodo;\n }", "RealDuration asRealDuration();", "public long getPeriodId() {\n return periodId;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getDuration() {\n return (java.math.BigDecimal)__getInternalInterface().getFieldValue(DURATION_PROP.get());\n }", "org.apache.xmlbeans.GDuration getDuration();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getDuration() {\n return (java.math.BigDecimal)__getInternalInterface().getFieldValue(DURATION_PROP.get());\n }", "org.apache.xmlbeans.XmlString xgetDuration();", "public Rational getDuration ()\r\n {\r\n if (this.isWholeDuration()) {\r\n return null;\r\n } else {\r\n Rational raw = getRawDuration();\r\n\r\n if (tupletFactor == null) {\r\n return raw;\r\n } else {\r\n return raw.times(tupletFactor);\r\n }\r\n }\r\n }", "Double getActualDuration();", "public java.math.BigDecimal getQtyPeriod1() \r\n {\r\n return get_ValueAsBigDecimal(\"QtyPeriod1\");\r\n \r\n }", "public long period() throws TimeWindowException {\n return div();\n }", "public int getDuration( ) {\nreturn numberOfPayments / MONTHS;\n}", "public Duration getDuration()\r\n {\r\n return (m_duration);\r\n }", "public Integer getDuration() {\n return duration;\n }", "public Optional<BigInteger> getDuration() {\n return duration;\n }", "public Duration getDurationObj(int columnIndex) {\n DurationVector vector = (DurationVector) table.getVector(columnIndex);\n return vector.getObject(rowNumber);\n }", "public Period onsetPeriod() {\n return getObject(Period.class, FhirPropertyNames.PROPERTY_ONSET_PERIOD);\n }", "public int getDuration() {\n\t\tif(currentPlayingItem==null) return 100;\n\t\treturn mediaPlayer.getDuration();\n\t}", "public DR getBillingPeriod() { \r\n\t\tDR retVal = this.getTypedField(26, 0);\r\n\t\treturn retVal;\r\n }", "public int getTimePeriod()\n\t{\n\t\treturn timePeriod;\n\t}", "public long getMilliseconds()\n\t{\n\t\treturn unit.toMillis(period);\n\t}", "public org.hl7.fhir.Period getPeriod()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Period target = null;\n target = (org.hl7.fhir.Period)get_store().find_element_user(PERIOD$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public Integer getPeriodId() {\n\t\treturn periodId;\n\t}", "public TimeSpan getDuration() throws ServiceLocalException {\n\t\treturn (TimeSpan) this.getPropertyBag()\n\t\t\t\t.getObjectFromPropertyDefinition(AppointmentSchema.Duration);\n\t}", "public long get(final TimeUnit toUnit)\n\t{\n\t\tif (this.unit == toUnit)\n\t\t\treturn period;\n\t\telse\n\t\t\treturn toUnit.convert(period, this.unit);\n\t}", "public Long getDuration()\r\n {\r\n return duration;\r\n }", "public DateInterval getTimePeriod() {\n return this.timePeriod;\n }", "public DateInterval getTimePeriod() {\n return this.timePeriod;\n }", "public java.lang.Integer getDuracion() {\n return duracion;\n }", "Posn getDuration();", "public ArrowBuf getDuration(int columnIndex) {\n DurationVector vector = (DurationVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }", "public org.apache.axis2.databinding.types.Duration getDuration() {\n return localDuration;\n }", "public double getDuration () {\n return duration;\n }", "public int getDuration() {\n return this.duration;\n }", "java.lang.String getDuration();", "public String getDurationUnit() {\n\t\treturn (String) get_Value(\"DurationUnit\");\n\t}", "public double getDuration() {\n\t\treturn duration;\n\t}", "public long getDuration() {\n return duration;\n }", "public java.math.BigDecimal getQtyPeriod12() \r\n {\r\n return get_ValueAsBigDecimal(\"QtyPeriod12\");\r\n \r\n }", "private Periodo getPeriodoCorte() {\n String valor = parametrosDao.obtenerTodosParametros().get(\"integrador.periodo.arranque\");\r\n\r\n return Periodo.parse(valor, \"yyyyMM\");\r\n }", "public long getDuration() {\n return duration;\n }", "org.apache.xmlbeans.XmlDouble xgetSignalPeriod();", "public double period()\n\t{\n\t\tdouble n = meanMotion();\n\t\tdouble period = 2.0 * Constants.pi / n;\n\t\treturn period;\n\t}", "public long getDuration() {\n return mDuration;\n }", "public String getDuration() {\n return this.duration;\n }", "@Override\n\tpublic long getTimePeriod() {\n\t\treturn 0;\n\t}", "public long getDuration()\n {\n return duration;\n }", "Duration getDuration();", "public int getDuration() {\n return duration;\n }", "public int getDuration() {\n return duration;\n }", "public int getDuration() {\n return duration;\n }", "Money getItemValue();", "@Nullable\n public Long getDuration() {\n return mDuration;\n }", "Double duration() {\n return execute(\"player.duration\");\n }", "public interface Period {\n\n\tDate getStart();\n\n\tDate getEnd();\n}", "org.apache.xmlbeans.XmlInt xgetRecurrenceDuration();", "public String getDuration() {\n return duration;\n }", "DurationTypeEnum getDurationType();", "public YangUInt32 getFileRetentionPeriodValue() throws JNCException {\n return (YangUInt32)getValue(\"file-retention-period\");\n }", "public int getDuration() {\n\t\treturn this.Duration;\n\t}", "@Override\n public Duration getItemDuration() {\n return null;\n }", "public double getMusicDuration() {\n if (music == null) {\n return -1;\n }\n \n return music.getDuration();\n }", "public int getDuration();", "public Integer getDurationTotal() {\n return durationTotal;\n }", "public com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum.Enum getDataRetentionPeriodUnitOfMeasure()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DATARETENTIONPERIODUNITOFMEASURE$28, 0);\n if (target == null)\n {\n return null;\n }\n return (com.exacttarget.wsdl.partnerapi.RecurrenceTypeEnum.Enum)target.getEnumValue();\n }\n }", "public int getDuration() { return duration; }", "public int getDuration() {\n return duration_;\n }", "public float getDuration()\n\t{\n\t\treturn duration;\n\t}", "public float getDuration() {\n\t\treturn duration;\n\t}", "long getDurationNanos();", "public int getDuration() {\n\t\treturn duration;\n\t}", "@Override\n public int getRecurringPeriod() {\n if (recurringType.equals(RecurringType.NONE)) {\n return NO_RECURRING_PERIOD;\n }\n return recurringPeriod;\n }", "public int getDuration() {\n return duration_;\n }", "public int getDuration() {return this.duration;}" ]
[ "0.6380224", "0.63456166", "0.62563205", "0.6254803", "0.6191944", "0.6132978", "0.60677576", "0.60503143", "0.60178673", "0.60128164", "0.5963609", "0.59598744", "0.5957722", "0.5957722", "0.5957722", "0.5957722", "0.5923106", "0.5911765", "0.5792183", "0.5789547", "0.5775148", "0.57193005", "0.57046026", "0.5675102", "0.56306165", "0.557292", "0.5559703", "0.55536634", "0.55330265", "0.55305785", "0.5530454", "0.5518898", "0.5518462", "0.5510454", "0.54993975", "0.54991144", "0.54936165", "0.54837894", "0.54762334", "0.5475736", "0.542908", "0.541966", "0.5412623", "0.541162", "0.5409085", "0.54071885", "0.5401844", "0.539956", "0.5356933", "0.5345824", "0.53387904", "0.53347355", "0.5324139", "0.5324139", "0.531008", "0.53071785", "0.52956915", "0.526093", "0.5227081", "0.52106744", "0.52099943", "0.52012646", "0.5198102", "0.5187484", "0.518543", "0.5180649", "0.51787937", "0.5178246", "0.517813", "0.5177054", "0.5173064", "0.51665264", "0.5154685", "0.5140702", "0.5137757", "0.5137757", "0.5137757", "0.5134954", "0.51287884", "0.5121217", "0.51186913", "0.5113248", "0.51096", "0.5108554", "0.51057595", "0.509747", "0.50764334", "0.5069166", "0.5049264", "0.50446826", "0.5040799", "0.50349754", "0.5033944", "0.502972", "0.5023879", "0.50200224", "0.5019738", "0.50192034", "0.5017731", "0.5014502" ]
0.7644461
0
Returns the dateTime value of the item, if it is a atomic item of type dateTimeItem or dateItem or timeItem.
public DateTime getDateTimeValue() { throw new OurBadException(" Item '" + this.serialize() + "' does not have a DateTime."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DTM getSystemEntryDateTime() { \r\n\t\tDTM retVal = this.getTypedField(22, 0);\r\n\t\treturn retVal;\r\n }", "public DTM getRxa22_SystemEntryDateTime() { \r\n\t\tDTM retVal = this.getTypedField(22, 0);\r\n\t\treturn retVal;\r\n }", "public Date getDatetime() {\n\t\treturn datetime;\n\t}", "DateTime getDateTimeForPosition(double xPos) {\n return getXAxis().getValueForDisplay(getXAxis().parentToLocal(xPos, 0).getX());\n }", "public String getCreateDateItem() {\n return createDateItem;\n }", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn arrayList.get(position).getClassDateTime();\n\t}", "public long getDatetime() {\n return datetime;\n }", "public String getDatetime() {\n return datetime;\n }", "public DateTimeDt getDateTimeElement() { \n\t\tif (myDateTime == null) {\n\t\t\tmyDateTime = new DateTimeDt();\n\t\t}\n\t\treturn myDateTime;\n\t}", "public DateTimeDt getDateTimeElement() { \n\t\tif (myDateTime == null) {\n\t\t\tmyDateTime = new DateTimeDt();\n\t\t}\n\t\treturn myDateTime;\n\t}", "com.google.protobuf.StringValue getTransactionDateTime();", "public Date getDate() {\n return dateTime;\n }", "public String getDateTime() {\n\t\tlog.trace(\"Get dateTime, returns [{}]\", dateTime);\n\t\treturn dateTime;\n\t}", "org.apache.xmlbeans.XmlDateTime xgetNextrun();", "public XMLGregorianCalendar getDatetime() {\r\n\t\treturn datetime;\r\n\t}", "public Object getValue() {\n\t\t SpinnerDateModel model = (SpinnerDateModel)((JSpinner)editor).getModel();\n\t\t Date date = model.getDate();\n\t\t java.sql.Time time = new java.sql.Time(date.getTime());\n\t return time;\n\t }", "public AbsoluteDate getTime()\r\n {\r\n return getUnderlyingElement().getTime();\r\n }", "public Date getPubTime() {\n return (Date) getAttributeInternal(PUBTIME);\n }", "public LocalDateTime getDatetime() {\n return this.datetime;\n }", "public String getLastUpdatedDateItem() {\n return lastUpdatedDateItem;\n }", "org.apache.xmlbeans.XmlDateTime xgetStartTime();", "public Date getDate()\n\t{\n\t\tif (m_nType == AT_DATE)\n\t\t\treturn (Date)m_oData;\n\t\telse\n\t\t\treturn null;\n\t}", "public DateTime getTimeStamp(){\n\t\treturn (DateTime) getObject(DateTime.class, KEY_TIMESTAMP);\n\t}", "public Date getActualBuyingTime() {\n return actualBuyingTime;\n }", "public int getTime() {\n if (USE_SERIALIZABLE) {\n return childBuilder.getTime();\n } else {\n // @todo Replace with real Builder object if possible\n return convertNullToNOT_SET(childBuilderElement.getAttributeValue(\"time\"));\n }\n }", "public Timestamp getTransactionTime() {\r\n return (Timestamp) getAttributeInternal(TRANSACTIONTIME);\r\n }", "DateTime getTransactionTime() {\n assertInTransaction();\n return TRANSACTION_INFO.get().transactionTime;\n }", "public Timestamp getDateTrx() \n{\nreturn (Timestamp)get_Value(\"DateTrx\");\n}", "protected Date extractUpdateDatetimeFromEntity(Member entity) {\r\n return convert(entity.getUpdateDatetime(), Date.class);\r\n }", "public Date getOrderTime();", "public java.util.Date getTdate() {\n return _sTransaction.getTdate();\n }", "public XMLGregorianCalendar getOn_sale_datetime() {\r\n\t\treturn on_sale_datetime;\r\n\t}", "public Date getTrxDate() {\r\n return trxDate;\r\n }", "public final Date dateValue() {\n if (calValue != null)\n return calValue.getTime();\n else\n return null;\n }", "public Photoitem getPhotoitem(){\r\n\t\t\r\n\t\t// from <gphoto:timestamp />\r\n\t\t// convert string of millisecond since 1970 expressed in local zone to equivalent of the milliseconds over in GMT\r\n\t\t// camera that took the pics that were uploaded needs to be in same Zone at the time of upload as the PC used \r\n\t\t// and in same Zone as the phone that recorded the GPX track\r\n\t\tPhotoitem item = new Photoitem();\r\n \tDate tmp = new Date(Long.parseLong(getTime())); // local date \t \t\r\n \tDate newdte = cvtToGmt(tmp);\r\n \tif (Trace.debug) Log.d(TAG, \"local dte UTC dte \" +getTime() +\" \" +newdte.getTime());\r\n \titem.setTime(newdte.getTime()); // converted to GMT so it will match the zone of GPX data\r\n\t\titem.setEditlink(getGdataEditLink());\r\n\t\treturn item;\r\n\t}", "public SSDate getValue() {\n return box.getValue();\n }", "public Date getOrdertime() {\n return ordertime;\n }", "public Integer getCraftTime(final ItemStack item, final int amount) {\n\n final int time = 0;\n\n return 0;\n}", "public Date getDate()\n\t\t{\n\t\t\treturn this.timeSlot;\n\t\t}", "public Timestamp getMovementDate() {\n\t\treturn (Timestamp) get_Value(\"MovementDate\");\n\t}", "public DateTimeDt getDateTime() { \n\t\tif (myDateTime == null) {\n\t\t\tmyDateTime = new DateTimeDt();\n\t\t}\n\t\treturn myDateTime;\n\t}", "public DateTimeDt getDateTime() { \n\t\tif (myDateTime == null) {\n\t\t\tmyDateTime = new DateTimeDt();\n\t\t}\n\t\treturn myDateTime;\n\t}", "public LocalDateTime getDateTime() {\n return dateTime;\n }", "public java.util.Date getValue() {\n return this.value;\n }", "protected Date extractFormalizedDatetimeFromEntity(Member entity) {\r\n return convert(entity.getFormalizedDatetime(), Date.class);\r\n }", "public Date getNotiCreated() {\r\n return (Date) getAttributeInternal(NOTICREATED);\r\n }", "public Number getBudgetAsToDate() {\n return (Number) getAttributeInternal(BUDGETASTODATE);\n }", "public String getItemStockdate(){\n\t\t\tString elemVal = \"In Stock\";\n\t\t\t String temp = driver.findElement(productStockDate).getText();\n\t if (!elemVal.equals(null))\n\t \t elemVal = temp;\n\t\t\t Reporter.log(\"==========Stockdate is \" + elemVal +\"=========\", true);\n\t return elemVal;\n\t }", "public Timestamp getDateOrdered() {\n\t\treturn (Timestamp) get_Value(\"DateOrdered\");\n\t}", "public DateTime getDateTime()\n\t{\n\t\treturn null;\n\t}", "@Nullable\n Object getValueOfColumn(ModelColumnInfo<Item> column);", "org.apache.xmlbeans.XmlDateTime xgetLastrun();", "public Date getStatusDate()\r\n {\r\n return (m_statusDate);\r\n }", "public DateTime getSelectedDateTime() {\r\n\treturn selectedDate;\r\n }", "public Integer getOnTime() {\n return onTime;\n }", "com.google.protobuf.StringValueOrBuilder getTransactionDateTimeOrBuilder();", "public Date getAtTime() {\r\n return atTime;\r\n }", "public Date getOrderTime() {\n return orderTime;\n }", "@Override\n\tpublic Date getQueuedDate() {\n\t\treturn model.getQueuedDate();\n\t}", "long getDate() { return (act != null ? act.getDate() : 0); }", "public org.apache.xmlbeans.XmlDateTime xgetSigningTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDateTime target = null;\r\n target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(SIGNINGTIME$0, 0);\r\n return target;\r\n }\r\n }", "public org.apache.xmlbeans.XmlDateTime xgetCreated()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDateTime target = null;\n target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(CREATED$0, 0);\n return target;\n }\n }", "public Date getBudgetDate() {\n return (Date) getAttributeInternal(BUDGETDATE);\n }", "public Date getBuy_time() {\r\n\t\treturn buy_time;\r\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getCreateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(CREATETIME_PROP.get());\n }", "public java.util.Date getActTodate () {\n\t\treturn actTodate;\n\t}", "public OffsetDateTime getDateTime() {\n return this.dateTime;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getFreezeTimestamp();", "public Timestamp getDatePromised() {\n\t\treturn (Timestamp) get_Value(\"DatePromised\");\n\t}", "public Timestamp getDatePromised() {\n\t\treturn (Timestamp) get_Value(\"DatePromised\");\n\t}", "@JsonProperty(\"datetime\")\n public Date getDatetime() {\n return datetime;\n }", "Date getCheckedIn();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getCreateTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(CREATETIME_PROP.get());\n }", "final public long getDateTime() {\n return crtime ;\n }", "public Date getActualSellingTime() {\n return actualSellingTime;\n }", "public XMLGregorianCalendar getTransactionPostedDate() {\r\n return transactionPostedDate;\r\n }", "Money getItemValue();", "public LocalDateTime getCreatedTime() {\n return (LocalDateTime) get(5);\n }", "public java.lang.Object getNotificationSentTime() {\n return notificationSentTime;\n }", "public String getDateTime() throws Exception {\n return getDateTime(null, 0, \"\");\n }", "private Object createObjectFromAttValue(final AttImpl item) {\n \n \t\tif (item.getType().equals(STRING_TYPE)) {\n \t\t\treturn item.getValue();\n \t\t} else if (item.getType().equals(INT_TYPE)) {\n \t\t\treturn new Integer(item.getValue());\n \t\t} else if (item.getType().equals(FLOAT_TYPE)) {\n \t\t\treturn new Double(item.getValue());\n \t\t} else if (item.getType().equals(BOOLEAN_TYPE)) {\n \t\t\treturn new Boolean(item.getValue());\n \t\t}\n \n \t\t// outta here\n \t\treturn null;\n \t}", "Date getTimeField();", "public DTM getRxa3_DateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }", "public Date getDBTimeStamp() throws Exception;", "public DTM getDateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }", "public Date getaTime() {\r\n return aTime;\r\n }", "@Override\r\n\tpublic long getEntryDateTime() {\n\t\treturn 0;\r\n\t}", "public LocalDateTime getLocalDateTime() {\n return this.datetime;\n }", "public static java.sql.Date getDateTime() {\n\t\treturn new java.sql.Date(new java.util.Date().getTime());\n\t}", "public Date getVALUE_DATE() {\r\n return VALUE_DATE;\r\n }", "public Date getVALUE_DATE() {\r\n return VALUE_DATE;\r\n }", "public String getDateType() {\r\n return dateType;\r\n }", "public Calendar getDateTime() {\n return dateTime;\n }", "@NotNull\r\n public String getDate() {\r\n return date;\r\n }", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"2016-09-06T13:37:50+03:00\", value = \"The entry date of the transfer. If not specified it is considered the current date (as Organization Time)\")\n @JsonProperty(JSON_PROPERTY_VALUE_DATE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public OffsetDateTime getValueDate() {\n return valueDate;\n }", "public Item evaluateItem(XPathContext context) throws XPathException {\n Item item = operand.evaluateItem(context);\n if (item==null) return null;\n return ((AtomicValue)item).convert(requiredPrimitiveType, context);\n }", "org.hl7.fhir.DateTime getAppliesDateTime();", "public Date getPerformdatetime() {\n\t\treturn performdatetime;\n\t}", "public Date getTransactionDate() {\n\t\treturn transactionDate;\n\t}", "public Date mo6949c() {\n try {\n Attribute attribute = this.f4352b.getSignedAttributes().get(CMSAttributes.signingTime);\n if (attribute != null) {\n return ASN1UTCTime.getInstance(attribute.getAttrValues().getObjectAt(0)).getDate();\n }\n return null;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }" ]
[ "0.5715132", "0.5578652", "0.5564774", "0.5450897", "0.5445457", "0.5424081", "0.53819627", "0.5375986", "0.53705245", "0.53705245", "0.5351849", "0.5322771", "0.5297991", "0.52759993", "0.525087", "0.52162707", "0.5196761", "0.5081251", "0.50717926", "0.50664026", "0.5057178", "0.50506467", "0.5028582", "0.5027108", "0.5007332", "0.5007238", "0.49991626", "0.49872515", "0.49780196", "0.49478492", "0.49118596", "0.49085158", "0.48948714", "0.4893968", "0.48917496", "0.48670092", "0.48653516", "0.4864716", "0.48528022", "0.4844743", "0.48273826", "0.48273826", "0.4823128", "0.48215201", "0.4821338", "0.48163325", "0.48135638", "0.48086226", "0.48063293", "0.48011896", "0.47875684", "0.47544906", "0.47376132", "0.4735189", "0.47146255", "0.470256", "0.47014284", "0.47009277", "0.46926475", "0.4666934", "0.46654576", "0.4662095", "0.4657753", "0.46571365", "0.46570456", "0.46485257", "0.46441424", "0.46435535", "0.46388626", "0.46388626", "0.46361655", "0.46187058", "0.46186927", "0.46083", "0.4607296", "0.4595109", "0.4592783", "0.45886824", "0.45854115", "0.4579299", "0.45790535", "0.45685965", "0.45678845", "0.4561661", "0.4561465", "0.45605844", "0.45540494", "0.45526108", "0.45500946", "0.45493478", "0.45493478", "0.45425308", "0.45398763", "0.45330814", "0.4529453", "0.45199767", "0.4515375", "0.45150688", "0.45113817", "0.45102167" ]
0.69277894
0
Returns the byte[] value of the item, if it is a atomic item of type hexBinary or Base64Binary.
public byte[] getBinaryValue() { throw new OurBadException(" Item '" + this.serialize() + "' is not a hexBinary."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public /*byte[]*/String BinaryCaster(Object item){\n String Sitem = Integer.toBinaryString((int)item);\n //byte[] b = new byte[Sitem.length()];\n //for(int i=0;i<Sitem.length();i++){\n // b[i] = (byte)Sitem.charAt(i);\n //}\n //return b;\n return Sitem;\n }", "public byte[] getValue()\n\t{\n\t\tJNIBinaryField jBinField = (JNIBinaryField) getInternal();\n\n\t\treturn jBinField.getValue();\n\t}", "byte[] byteValue() {\n\treturn data;\n }", "public ByteArray getBin() {\n return bin;\n }", "public byte[] getBytes() {\n return baos.toByteArray();\n }", "public byte[] value() {\n return value;\n }", "byte[] getByteArrayField();", "public byte[] value() {\n return value;\n }", "com.google.protobuf.ByteString getSerializedItem();", "@Override\n public byte byteValue() {\n return value;\n }", "public ByteArrayAttribute getValue() {\n return value;\n }", "public byte[] getAsBytes() {\n return (byte[])data;\n }", "public byte[] getByteArray() {\n long val = getValue();\n return new byte[] {\n (byte)((val>>24) & 0xff),\n (byte)((val>>16) & 0xff),\n (byte)((val>>8) & 0xff),\n (byte)(val & 0xff) };\n }", "byte[] getBytes();", "byte[] getBytes();", "public byte[] getBytes(String attr) {\n return (byte[]) super.get(attr);\n }", "byte[] getEByteArray();", "public byte[] getByteArray()\n \t{\n \t\t// In some cases the array is bigger than the actual number\n \t\t// of valid bytes.\n \t\tint realByteLength = getLengthInBytes();\n \n \t\t// Currently the case is that the return from this\n \t\t// call only includes the valid bytes.\n \t\tif (value.length != realByteLength) {\n \t\t\tbyte[] data = new byte[realByteLength];\n \t\t\tSystem.arraycopy(value, 0, data, 0, realByteLength);\n \n \t\t\tvalue = data;\n \t\t}\n \n \t\treturn value;\n \t}", "public byte[] getValue() {\n return this.value;\n }", "@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}", "public byte[] asByteArray() {\n return data;\n }", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default byte[] asByteArray() {\n //TODO this is actually sbyte[], but @Unsigned doesn't work on arrays right now\n return notSupportedCast(\"byte[]\");\n }", "public javax.activation.DataHandler getBase64Binary() {\n return localBase64Binary;\n }", "@Override\n public byte[] getBytes() {\n int len = 0;\n List<byte[]> chunks = new ArrayList<>();\n for (RvtAoiMetadataKey tag : getTags()) {\n chunks.add(new byte[] {(byte) tag.getIdentifier()});\n len += 1;\n IRvtPoiAoiMetadataValue value = getField(tag);\n byte[] bytes = value.getBytes();\n byte[] lengthBytes = BerEncoder.encode(bytes.length);\n chunks.add(lengthBytes);\n len += lengthBytes.length;\n chunks.add(bytes);\n len += bytes.length;\n }\n return ArrayUtils.arrayFromChunks(chunks, len);\n }", "@Override\n public BinaryType asBinary() {\n return TypeFactory.getBinaryType(this.getValue());\n }", "List<Byte> getAsBytes();", "public abstract byte[] getEncoded();", "public byte[] getByteData() { return bytedata; }", "public byte[] toByteArray() {\n\t\treturn baos.toByteArray();\n\t}", "public abstract byte[] toByteArray();", "public abstract byte[] toByteArray();", "public byte[] getAsBytes() {\n\t\treturn m_RawContent;\n\t}", "@Override\n public byte[] getByteArray()\n {\n if(firstTime)\n {\n return new byte[0];\n }\n ByteBuffer buffer = ByteBuffer.allocate(MolapCommonConstants.DOUBLE_SIZE_IN_BYTE);\n buffer.putDouble(aggVal);\n return buffer.array();\n }", "public byte[] GetBytes() {\n return data;\n }", "public byte[] getAsBytes () {\r\n\t \r\n\t //code description\r\n\t \r\n\t Properties p = new Properties();\t\r\n\t return this.getAsBytes(p);\r\n\t \r\n }", "public byte[] getBytes() {\r\n \treturn toString().getBytes();\r\n }", "public byte[] getValue() {\n return v;\n }", "public byte[] get(){\n return this.value;\n }", "public byte[] getFixedSizeBinary(int columnIndex) {\n FixedSizeBinaryVector vector = (FixedSizeBinaryVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }", "public byte value() {\n return value;\n }", "public byte[] getBytes() {\r\n\t\treturn mByteList;\r\n\t}", "default byte[] getBytes() throws IOException {\n try (InputStream is = getInputStream()) {\n return IOUtils.toByteArray(is);\n }\n }", "public byte[] getBytes() {\n\treturn null;\n }", "public byte[] getBytes()\n {\n try { return getRepo().newObjectReader().open(_entry.getObjectId()).getBytes(); }\n catch(Exception e) { throw new RuntimeException(e); }\n }", "public byte[] getBytes()\n {\n return bytes;\n }", "com.google.protobuf.ByteString\n getBunhoBytes();", "com.google.protobuf.ByteString\n getBunhoBytes();", "public byte[] getBytes()\n\t{\n\t\treturn bytes;\n\t}", "public byte[] getBytes() {\n return bytes;\n }", "@Override\n\tpublic byte[] toByteArray() {\n\t\tComparatorProtos.ByteArrayComparable.Builder builder = ComparatorProtos.ByteArrayComparable.newBuilder();\n\t\tbuilder.setValue(ByteString.copyFrom(getValue()));\n\t\treturn builder.build().toByteArray();\n\t}", "@Override\r\n\tpublic byte[] getBytes() throws UnsupportedEncodingException {\r\n\t\tbyte[] bytes = new byte[RECORD_SIZE];\r\n\t\tbytes = Utilities.completeBytes(bytes, this.bidInfo.getBytes(), 0);\r\n\t\tbytes = Utilities.completeBytes(bytes,\r\n\t\t\t\tUtilities.stringToBytes(Utilities.completeLength(biddingName, 30)), 32);\r\n\t\tbytes = Utilities.completeBytes(bytes, Utilities.intToBytes(typeProduct.ordinal()), 62);\r\n\t\tbytes = Utilities.completeBytes(bytes, product.getBytes(), 66);\r\n\t\tbytes = Utilities.completeBytes(bytes, publicationTime.getBytes(), 157);\r\n\t\tbytes = Utilities.completeBytes(bytes, initTime.getBytes(), 171);\r\n\t\tbytes = Utilities.completeBytes(bytes, finishTime.getBytes(), 185);\r\n\t\tbytes = Utilities.completeBytes(bytes, (byte) ((isAutomaticIncremet)?0:1), 199);\r\n\t\tbytes = Utilities.completeBytes(bytes, (byte) ((isPublic)?0:1), 200);\r\n\t\tbytes = Utilities.completeBytes(bytes,\r\n\t\t\t\tUtilities.stringToBytes(Utilities.completeLength(owner, 20)), 201);\r\n\t\treturn bytes;\r\n\t}", "public Byte getByteAttribute();", "public byte[] getBytes() {\n return bytes;\n }", "public byte[] getBytes() {\r\n return bytes;\r\n }", "public byte[] getBytes() {\n return bytes;\n }", "public byte[] getBytes() {\n\t\treturn bytes;\n\t}", "byte[] getData();", "byte[] getData();", "byte[] getData();", "byte[] getData();", "public byte[] getData();", "com.google.protobuf.ByteString\n getActualBytes();", "public byte[] getBytes() {\n byte[] indexData = VarInt.encode(txIndex);\n byte[] bytes = new byte[32+indexData.length];\n System.arraycopy(txHash.getBytes(), 0, bytes, 0, 32);\n System.arraycopy(indexData, 0, bytes, 32, indexData.length);\n return bytes;\n }", "protected byte[] getBinaryData(Resource resource, @SuppressWarnings(\"unused\") SlingHttpServletRequest request) throws IOException {\n InputStream is = resource.adaptTo(InputStream.class);\n if (is == null) {\n return null;\n }\n try {\n return IOUtils.toByteArray(is);\n }\n finally {\n is.close();\n }\n }", "@Override\r\n\t@JsonIgnore\r\n\tpublic byte[] asBytes() {\n\t\treturn null;\r\n\t}", "public abstract byte[] toRawSECSItem();", "public byte getValue() {\n return value;\n }", "public byte[] getBytes() {\n return mBytes;\n }", "byte[] getByteContent() throws IOException;", "public Map<Integer, byte[]> getAsBinary() throws SQLException {\n return retrieveExpected(createNativeAsBinaryStatement(), OBJECT);\n }", "public ByteInValuePacking getByteInValuePacking() {\n return null;\n }", "public byte[] getBytes() {\r\n return mBytes;\r\n }", "byte toByteValue() {\n return (byte) value;\n }", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "public byte type() {\n return (byte) value;\n }", "public static byte[] valueToBytes(Object value) throws JSONException, IOException {\n if (value == null || value.equals(null)) {\n return Constants.NullByteMarker;\n }\n \t// return raw bytes is value is byte[] - else use normal json string conversion\n if (value instanceof byte[]) {\n \treturn (byte[])value;\n }\n \n if (value instanceof long[]) {\n \treturn Util.UTF8(longArrayString((long[])value));\n }\n \n if (value instanceof JSONString) {\n Object o;\n try {\n o = ((JSONString)value).toJSONString();\n } catch (Exception e) {\n throw new JSONException(e);\n }\n if (o instanceof String) {\n return Util.UTF8(o);\n }\n throw new JSONException(\"Bad value from toJSONString: \" + o);\n }\n if (value instanceof Number) {\n return Util.UTF8(JSONObject.numberToString((Number) value));\n }\n if (value instanceof Boolean || value instanceof JSONObject ||\n value instanceof JSONArray) {\n return Util.UTF8(value);\n }\n if (value instanceof Map) {\n return Util.UTF8(new JSONObject((Map)value));\n }\n if (value instanceof JSONList) {\n return ((JSONList)value).getBytes().makeExact().bytes();\n }\n if (value instanceof List) {\n return new JSONList((List)value).getBytes().makeExact().bytes();\n }\n if (value instanceof Collection) {\n return Util.UTF8(new JSONArray((Collection)value));\n }\n if (value.getClass().isArray()) {\n return Util.UTF8(new JSONArray(value));\n }\n return Util.UTF8(JSONObject.quote(value.toString()));\n }", "public boolean isBinary() {\n return this.isHexBinary() || this.isBase64Binary();\n }", "public static byte[] asByteArray(JsonElement element) {\n String hex = element.getAsString();\n return TestUtil.hexToBytes(hex);\n }", "public byte[][] getBiArray() {\n return mbarrayBiValues;\n }", "public byte[] getByteArray(){\r\n\r\n byte[] b = new byte[0x54];\r\n\r\n System.arraycopy(PID_pointer, 0, b, 0, 4);\r\n System.arraycopy(MPID_pointer, 0, b, 4, 4);\r\n System.arraycopy(Null_pointer, 0, b, 8, 4);\r\n System.arraycopy(Portrait_pointer, 0, b, 12, 4);\r\n System.arraycopy(Class_pointer, 0, b, 16, 4);\r\n System.arraycopy(Affiliation_pointer, 0, b, 20, 4);\r\n System.arraycopy(Weaponlevel_pointer, 0, b, 24, 4);\r\n System.arraycopy(Skill1_pointer, 0, b, 28, 4);\r\n System.arraycopy(Skill2_pointer, 0, b, 32, 4);\r\n System.arraycopy(Skill3_pointer, 0, b, 36, 4);\r\n System.arraycopy(Animation1_pointer, 0, b, 40, 4);\r\n System.arraycopy(Animation2_pointer, 0, b, 44, 4);\r\n b[48] = unknownbyte1;\r\n b[49] = unknownbyte2;\r\n b[50] = unknownbyte3;\r\n b[51] = unknownbyte4;\r\n b[52] = unknownbyte5;\r\n b[53] = unknownbyte6;\r\n b[54] = level;\r\n b[55] = build;\r\n b[56] = weight;\r\n System.arraycopy(bases, 0, b, 57, 8);\r\n System.arraycopy(growths, 0, b, 65, 8);\r\n System.arraycopy(supportgrowth, 0, b, 73, 8);\r\n b[81] = unknownbyte9;\r\n b[82] = unknownbyte10;\r\n b[83] = unknownbyte11;\r\n\r\n return b;\r\n }", "public byte[] getVarBinary(int columnIndex) {\n VarBinaryVector vector = (VarBinaryVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }", "private byte getValue() {\n\t\treturn value;\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getBBytes() {\n java.lang.Object ref = b_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n b_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public byte[] getEncoded() {\n return toByteArray(Integer.valueOf(this.intValue));\n }", "public byte[] getbyteArray() {\n byte[] output = new byte[header_size+fileData.length];\n output[0] = (byte)((type & 0xff00)>> 8);\n output[1] = (byte)(type & 0xff);\n output[2] = (byte)((length & 0xff00)>> 8);\n\t output[3] = (byte)(length & 0xff);\n output[4] = (byte)((clientID & 0xff00)>> 8);\n output[5] = (byte)(clientID & 0xff);\n output[6] = action;\n byte[] temp2 = ByteBuffer.allocate(4).putInt(sectionLength).array();\n for(int i=0;i<4;i++) {\n output[7+i] = temp2[i]; \n }\n temp2 = ByteBuffer.allocate(4).putInt(filePosition).array();\n for(int j=0;j<4;j++) {\n output[11+j] = temp2[j]; \n }\n //copy file data\n System.arraycopy(fileData, 0,output, 15,fileData.length); \n return output;\n }", "public byte[] getBytes() {\r\n\r\n if (bytes == null) {\r\n bytes = new byte[getLength()];\r\n }\r\n\r\n return bytes;\r\n }", "public byte[] getByteArray(String name) {\n Enumeration enumer = BYTES.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectByteArrayItem item = (SimpleMessageObjectByteArrayItem) enumer.nextElement();\n if(item.getName().compareTo(name) == 0) {\n return item.getValue();\n }\n }\n byte[] noSuchArray = new byte[1];\n noSuchArray[0] = (byte)-1;\n return noSuchArray;\n }", "@Override\n\tpublic byte[] getValue() throws AttributeValueException {\n\t\treturn null;\n\t}", "@Override\n public Binary getBinary() throws ValueFormatException, RepositoryException {\n return null;\n }", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "com.google.protobuf.ByteString\n getValueBytes();", "@Override\n\tpublic byte[] getBytes() {\n\t\treturn null;\n\t}", "public byte[] getBytes()\n {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public byte[] getData()\n {\n if (m_data == null)\n {\n return null;\n }\n return (byte[]) m_data.clone();\n }", "com.google.protobuf.ByteString\n getMemberOfBytes();", "public byte[] getByteAttachment() {\n\t\treturn byteAttachment;\n\t}", "protected byte[] stream2blob(InputStream is) throws IOException, IllegalArgumentException {\n return StreamUtils.stream2blob(is);\n }", "public byte[] toByteArray() {\n return null;\n }" ]
[ "0.63617444", "0.62022066", "0.61867666", "0.5955183", "0.59496564", "0.5877319", "0.5862591", "0.5845385", "0.58079123", "0.5806273", "0.580331", "0.5800691", "0.5800162", "0.5739757", "0.5739757", "0.56879556", "0.56501156", "0.56435704", "0.5614496", "0.5585244", "0.5581547", "0.55404574", "0.55288094", "0.55263865", "0.5504342", "0.5490963", "0.54642004", "0.5463287", "0.5462097", "0.5458021", "0.5458021", "0.543343", "0.5414764", "0.5413063", "0.5384362", "0.5381928", "0.53788054", "0.53515315", "0.5350653", "0.53319156", "0.5313026", "0.53085494", "0.5306365", "0.52941847", "0.52918", "0.52849615", "0.52849615", "0.5280335", "0.52774507", "0.52758837", "0.526736", "0.5263775", "0.5257827", "0.52534443", "0.5250459", "0.52390504", "0.5224343", "0.5224343", "0.5224343", "0.5224343", "0.5216629", "0.52055645", "0.5192201", "0.5184197", "0.5175872", "0.5166848", "0.5166478", "0.51628476", "0.5162616", "0.5160606", "0.5151681", "0.5148681", "0.51455694", "0.5136823", "0.5136823", "0.5131835", "0.5123559", "0.51186395", "0.5102641", "0.5099538", "0.509932", "0.50950366", "0.50737906", "0.5060913", "0.5059742", "0.505878", "0.5050936", "0.50398797", "0.5034202", "0.5032718", "0.50309354", "0.50309354", "0.50309354", "0.5024444", "0.5021292", "0.5020622", "0.50159156", "0.5013723", "0.5006266", "0.49925947" ]
0.7618832
0
Please do not use, item type API not publicly released yet.
public abstract boolean isTypeOf(ItemType type);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getItemType() {\n return ITEM_TYPE;\n }", "@Override\n\tprotected DataTypes getDataType() {\n\t\treturn DataTypes.ITEM;\n\t}", "ItemType(String itemCode) {\n code = itemCode;\n }", "public String getItemType() {\n\t\treturn itemType;\n\t}", "public ItemType getType();", "public void setItemType(String itemType) {\n\t\tthis.itemType = itemType;\n\t}", "@Override // see item.java\n\tpublic void useItem() {\n\n\t}", "public ItemType getType()\n {\n\treturn type;\n }", "ItemType(String code) {\n this.code = code;\n }", "ItemType(String code) {\n this.code = code;\n }", "public Item(String name, ItemType type)\n {\n\tthis.name = name;\n\tthis.type = type;\n }", "public ItemType getType() {\n return type;\n }", "public ItemType getItemType(){return null;}", "public interface Item {\n \n /**\n * Returns the name of the item\n * @return \n */\n public String getName();\n \n /**\n * Returns the price of the item\n * @return \n */\n public double getPrice();\n \n /**\n * Returns the # of the items\n * @return \n */\n public int getQuantity();\n /**\n * Returns the item type\n * @return ItemCategory\n */\n public ItemCategory getCategory();\n}", "@Test\n public void getItemType () {\n Assert.assertEquals(\"SPECIAL\", bomb.getItemType().name());\n }", "public interface Item {\n}", "public void setItem(ItemType item) {\n\t this.item = item;\n\t}", "public void setItem(ItemType item) {\n\t this.item = item;\n\t}", "public Item getItem(String typeItem){\r\n if(typeItem.equals(\"coeur\")){\r\n Item coeur = new Coeur();\r\n return coeur;\r\n } else if(typeItem.equals(\"potionvie\")){\r\n Item potion = new Potion();\r\n return potion;\r\n } else if(typeItem.equals(\"hexaforce\")){\r\n Item hexa = new Hexaforce();\r\n return hexa;\r\n } else {\r\n return null;\r\n }\r\n }", "public interface ItemDescriptor {\n\n /**\n * Get the ID of the item\n *\n * @return item id\n */\n public int getID();\n\n /**\n * Get the name of the item\n *\n * @return item name\n */\n public String getName();\n\n /**\n * Get the type descriptor\n *\n * @return item type\n */\n public ItemType getType();\n\n}", "com.rpg.framework.database.Protocol.ItemType getType();", "@CatalogedBy(ItemTypes.class)\npublic interface ItemType extends CatalogType, Translatable {\n\n /**\n * Gets the id of this item.\n *\n * <p>Ex. Minecraft registers a golden carrot as\n * \"minecraft:golden_carrot\".</p>\n *\n * @return The id\n */\n @Override\n String getName();\n\n /**\n * Get the default maximum quantity for\n * {@link ItemStack}s of this item.\n *\n * @return Max stack quantity\n */\n int getMaxStackQuantity();\n\n /**\n * Gets the default {@link Property} of this {@link ItemType}.\n *\n * <p>While item stacks do have properties, generally, there is an\n * intrinsic default property for many item types. However, it should be\n * considered that when mods are introducing their own custom items, they\n * too could introduce different item properties based on various data on\n * the item stack. The default properties retrieved from here should merely\n * be considered as a default, not as a definitive property.</p>\n *\n * @param propertyClass The item property class\n * @param <T> The type of item property\n * @return The item property, if available\n */\n <T extends Property<?, ?>> Optional<T> getDefaultProperty(Class<T> propertyClass);\n\n}", "public String getItemObjectType() {\r\n\t\treturn itemObjectType;\r\n\t}", "public interface BaseItem {\n}", "public interface Item {\n void fill(RecyclerView.ViewHolder viewHolder);\n\n int getType();\n\n}", "public Item convertToItem(Object value, XQItemType type) throws XQException;", "@Override\n\tpublic Class<? extends Item> getItemClass() {\n\t\treturn MarkItem.class;\n\t}", "public com.rpg.framework.database.Protocol.ItemType getType() {\n return type_;\n }", "public static boolean ItemType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ItemType\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, ITEM_TYPE, \"<item type>\");\n r = KindTest(b, l + 1);\n if (!r) r = GeneralItemType(b, l + 1);\n if (!r) r = FunctionTest(b, l + 1);\n if (!r) r = MapTest(b, l + 1);\n if (!r) r = ArrayTest(b, l + 1);\n if (!r) r = AtomicOrUnionType(b, l + 1);\n if (!r) r = ParenthesizedItemType(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public static int getItemTypes(ClipData.Item item) {\n\t\tint types = 0;\n\t\tif (item.getText() != null) {\n\t\t\ttypes |= ITEM_TYPE_TEXT;\n\t\t}\n\t\tif (item.getHtmlText() != null) {\n\t\t\ttypes |= ITEM_TYPE_HTML;\n\t\t}\n\t\tif (item.getUri() != null) {\n\t\t\ttypes |= ITEM_TYPE_URI;\n\t\t}\n\t\tif (item.getIntent() != null) {\n\t\t\ttypes |= ITEM_TYPE_INTENT;\n\t\t}\n\t\t\n\t\treturn types;\n\t}", "public com.rpg.framework.database.Protocol.ItemType getType() {\n return type_;\n }", "private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}", "protected abstract void makeItem();", "public void setItemObjectType(String itemObjectType) {\r\n\t\tthis.itemObjectType = itemObjectType;\r\n\t}", "private static JsonItemType toBasicJson(ItemType itemType) {\r\n\t\tJsonItemType jsonItemType = new JsonItemType();\r\n\t\tapplyBasicJsonValues(jsonItemType, itemType);\r\n\t\treturn jsonItemType;\r\n\t}", "@Override\n public Type getItemType() {\n return Type.WEAPON;\n }", "public interface SystemItem {\n}", "private static ItemType random() {\n return ITEM_TYPES.get(RANDOM.nextInt(SIZE));\n }", "public ItemType getDynamicType() {\n throw new UnsupportedOperationException(\"Operation not defined\");\n }", "public interface MultiItemInterface {\n int getItemType();\n int getSpanSize();\n}", "public interface XQItemType extends XQSequenceType {\r\n\r\n static int XQBASETYPE_ANYATOMICTYPE = 4;\r\n static int XQBASETYPE_ANYSIMPLETYPE = 3;\r\n static int XQBASETYPE_ANYTYPE = 2;\r\n static int XQBASETYPE_ANYURI = 8;\r\n static int XQBASETYPE_BASE64BINARY = 9;\r\n static int XQBASETYPE_BOOLEAN = 10;\r\n static int XQBASETYPE_BYTE = 31;\r\n static int XQBASETYPE_DATE = 11;\r\n static int XQBASETYPE_DATETIME = 16;\r\n static int XQBASETYPE_DAYTIMEDURATION = 7;\r\n static int XQBASETYPE_DECIMAL = 17;\r\n static int XQBASETYPE_DOUBLE = 18;\r\n static int XQBASETYPE_DURATION = 19;\r\n static int XQBASETYPE_ENTITIES = 50;\r\n static int XQBASETYPE_ENTITY = 48;\r\n static int XQBASETYPE_FLOAT = 20;\r\n static int XQBASETYPE_GDAY = 21;\r\n static int XQBASETYPE_GMONTH = 22;\r\n static int XQBASETYPE_GMONTHDAY = 23;\r\n static int XQBASETYPE_GYEAR = 24;\r\n static int XQBASETYPE_GYEARMONTH = 25;\r\n static int XQBASETYPE_HEXBINARY = 26;\r\n static int XQBASETYPE_ID = 46;\r\n static int XQBASETYPE_IDREF = 47;\r\n static int XQBASETYPE_IDREFS = 49;\r\n static int XQBASETYPE_INT = 12;\r\n static int XQBASETYPE_INTEGER = 13;\r\n static int XQBASETYPE_LANGUAGE = 42;\r\n static int XQBASETYPE_LONG = 15;\r\n static int XQBASETYPE_NAME = 43;\r\n static int XQBASETYPE_NCNAME = 44;\r\n static int XQBASETYPE_NEGATIVE_INTEGER = 34;\r\n static int XQBASETYPE_NMTOKEN = 45;\r\n static int XQBASETYPE_NMTOKENS = 51;\r\n static int XQBASETYPE_NONNEGATIVE_INTEGER = 33;\r\n static int XQBASETYPE_NONPOSITIVE_INTEGER = 32;\r\n static int XQBASETYPE_NORMALIZED_STRING = 40;\r\n static int XQBASETYPE_NOTATION = 27;\r\n static int XQBASETYPE_POSITIVE_INTEGER = 35;\r\n static int XQBASETYPE_QNAME = 28;\r\n static int XQBASETYPE_SHORT = 14;\r\n static int XQBASETYPE_STRING = 29;\r\n static int XQBASETYPE_TIME = 30;\r\n static int XQBASETYPE_TOKEN = 41;\r\n static int XQBASETYPE_UNSIGNED_BYTE = 39;\r\n static int XQBASETYPE_UNSIGNED_INT = 37;\r\n static int XQBASETYPE_UNSIGNED_LONG = 36;\r\n static int XQBASETYPE_UNSIGNED_SHORT = 38;\r\n static int XQBASETYPE_UNTYPED = 1;\r\n static int XQBASETYPE_UNTYPEDATOMIC = 5;\r\n static int XQBASETYPE_YEARMONTHDURATION = 7;\r\n\r\n static int XQITEMKIND_ATOMIC = 1;\r\n static int XQITEMKIND_ATTRIBUTE = 2;\r\n static int XQITEMKIND_COMMENT = 3;\r\n static int XQITEMKIND_DOCUMENT = 4;\r\n static int XQITEMKIND_DOCUMENT_ELEMENT = 5;\r\n static int XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT = 6;\r\n static int XQITEMKIND_ELEMENT = 7;\r\n static int XQITEMKIND_ITEM = 8;\r\n static int XQITEMKIND_NODE = 9;\r\n static int XQITEMKIND_PI = 10;\r\n static int XQITEMKIND_SCHEMA_ATTRIBUTE = 13;\r\n static int XQITEMKIND_SCHEMA_ELEMENT = 12;\r\n static int XQITEMKIND_TEXT = 11;\r\n\r\n int getBaseType() throws XQException;\r\n\r\n int getItemKind();\r\n\r\n int getItemOccurrence();\r\n\r\n QName getNodeName() throws XQException;\r\n\r\n String getPIName() throws XQException;\r\n\r\n URI getSchemaURI();\r\n\r\n QName getTypeName() throws XQException;\r\n\r\n boolean isAnonymousType();\r\n\r\n boolean isElementNillable();\r\n\r\n}", "public interface IItemTypeHandler {\n\n\t/**\n\t * Get the item for this type of handler for the given node element, can just be a text node.\n\t * @param itemNode The node containing info about this item, for example\n\t * \"&lt;item&gt;evilcraft:darkGem&lt;/item&gt;\"\n\t * @return An item stack for this item or a string representing an ore dict id.\n\t * @throws XmlRecipeException If an error occured\n\t */\n\tpublic Object getItem(Node itemNode) throws XmlRecipeException;\n\t\n}", "public interface Item extends org.apache.xmlbeans.XmlAnySimpleType\n {\n java.lang.Object getObjectValue();\n void setObjectValue(java.lang.Object val);\n /** @deprecated */\n java.lang.Object objectValue();\n /** @deprecated */\n void objectSet(java.lang.Object val);\n org.apache.xmlbeans.SchemaType instanceType();\n public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)\n org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Item.class.getClassLoader(), \"schemaorg_apache_xmlbeans.system.sXMLSCHEMA\").resolveHandle(\"anon16cetype\");\n \n /**\n * An anonymous inner XML type.\n *\n * This is an atomic type that is a restriction of org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList$Member2$Item$Member.\n */\n public interface Member extends org.apache.xmlbeans.XmlToken\n {\n public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)\n org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Member.class.getClassLoader(), \"schemaorg_apache_xmlbeans.system.sXMLSCHEMA\").resolveHandle(\"anon0c73type\");\n \n org.apache.xmlbeans.StringEnumAbstractBase enumValue();\n void set(org.apache.xmlbeans.StringEnumAbstractBase e);\n \n static final Enum TARGET_NAMESPACE = Enum.forString(\"##targetNamespace\");\n static final Enum LOCAL = Enum.forString(\"##local\");\n \n static final int INT_TARGET_NAMESPACE = Enum.INT_TARGET_NAMESPACE;\n static final int INT_LOCAL = Enum.INT_LOCAL;\n \n /**\n * Enumeration value class for org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList$Member2$Item$Member.\n * These enum values can be used as follows:\n * <pre>\n * enum.toString(); // returns the string value of the enum\n * enum.intValue(); // returns an int value, useful for switches\n * // e.g., case Enum.INT_TARGET_NAMESPACE\n * Enum.forString(s); // returns the enum value for a string\n * Enum.forInt(i); // returns the enum value for an int\n * </pre>\n * Enumeration objects are immutable singleton objects that\n * can be compared using == object equality. They have no\n * public constructor. See the constants defined within this\n * class for all the valid values.\n */\n static final class Enum extends org.apache.xmlbeans.StringEnumAbstractBase\n {\n /**\n * Returns the enum value for a string, or null if none.\n */\n public static Enum forString(java.lang.String s)\n { return (Enum)table.forString(s); }\n /**\n * Returns the enum value corresponding to an int, or null if none.\n */\n public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }\n \n private Enum(java.lang.String s, int i)\n { super(s, i); }\n \n static final int INT_TARGET_NAMESPACE = 1;\n static final int INT_LOCAL = 2;\n \n public static final org.apache.xmlbeans.StringEnumAbstractBase.Table table =\n new org.apache.xmlbeans.StringEnumAbstractBase.Table\n (\n new Enum[]\n {\n new Enum(\"##targetNamespace\", INT_TARGET_NAMESPACE),\n new Enum(\"##local\", INT_LOCAL),\n }\n );\n private static final long serialVersionUID = 1L;\n private java.lang.Object readResolve() { return forInt(intValue()); } \n }\n \n /**\n * A factory class with static methods for creating instances\n * of this type.\n */\n \n public static final class Factory\n {\n public static org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item.Member newValue(java.lang.Object obj) {\n return (org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item.Member) type.newValue( obj ); }\n \n public static org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item.Member newInstance() {\n return (org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item.Member) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }\n \n public static org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item.Member newInstance(org.apache.xmlbeans.XmlOptions options) {\n return (org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item.Member) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }\n \n private Factory() { } // No instance of this class allowed\n }\n }\n \n /**\n * A factory class with static methods for creating instances\n * of this type.\n */\n \n public static final class Factory\n {\n public static org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item newValue(java.lang.Object obj) {\n return (org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item) type.newValue( obj ); }\n \n public static org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item newInstance() {\n return (org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }\n \n public static org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item newInstance(org.apache.xmlbeans.XmlOptions options) {\n return (org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }\n \n private Factory() { } // No instance of this class allowed\n }\n }", "public Item getItem() { \n return myItem;\n }", "protected ResourceReference getItem()\n\t{\n\t\treturn ITEM;\n\t}", "public abstract void addItem(AbstractItemAPI item);", "@Override\n\t\t\tpublic int getItemType(int realPosition) {\n\n\t\t\t\treturn realPosition % 5;\n\t\t\t}", "public boolean add(Type item);", "public ItemType getItem() {\n\t return this.item;\n\t}", "public ItemType getItem() {\n\t return this.item;\n\t}", "public interface FAQsItem {\n public int getType();\n public int getId();\n}", "public interface ListItemType {\n int TYPE_UNKNOWN = -1;\n int TYPE_DUOBAO_LABEL = 0;\n int TYPE_DUOBAO = 1;\n int TYPE_JIFEN_LABEL = 2;\n int TYPE_JIFEN = 3;\n}", "@Override\n public int getType() {\n return R.id.fastadapter_sampleitem_id;\n }", "@Override\r\n\tpublic ItemType getItemType() {\r\n\t\treturn ItemType.MISC;\r\n\t}", "protected abstract Item createTestItem3();", "public Item(Car car, Type type) {\n\t\tthis.type = type;\n\t\tthis.car = car;\n\t\tid = 1;\n\t}", "public static ItemStack item(XMaterial type, String name, List<String> lore) {\r\n\t\tItemStack is = type.parseItem();\r\n\t\tItemMeta im = is.getItemMeta();\r\n\t\tim.addItemFlags(ItemFlag.values());\r\n\t\tis.setItemMeta(applyMeta(im, name, lore));\r\n\t\treturn is;\r\n\t}", "Items(){\n}", "@Override\r\n\tpublic int getType() {\n\t\treturn EyeTrackerItem.TYPE_INVALID;\r\n\t}", "public abstract void Enqueue (Type item);", "protected void populateItem(ListItem<T> item) {\n }", "protected void addInventoryItemType() {\n\t\tProperties props = new Properties();\n\n\t\t/* DEBUG\n\t\t\n\t\tSystem.out.println(typeNameTF.getText());\n\t\tSystem.out.println(unitsTF.getText());\n\t\tSystem.out.println(unitMeasureTF.getText());\n\t\tSystem.out.println(validityDaysTF.getText());\n\t\tSystem.out.println(reorderPointTF.getText());\n\t\tSystem.out.println(notesTF.getText());\n\t\tSystem.out.println(statusCB.getValue());\n\t\n\t\t*/ \n\n\t\t// Set the values.\n\t\tprops.setProperty(\"ItemTypeName\", typeNameTF.getText());\n\t\tprops.setProperty(\"Units\", unitsTF.getText());\n\t\tprops.setProperty(\"UnitMeasure\", unitMeasureTF.getText());\n\t\tprops.setProperty(\"ValidityDays\", validityDaysTF.getText());\n\t\tprops.setProperty(\"ReorderPoint\", reorderPointTF.getText());\n\t\tprops.setProperty(\"Notes\", notesTF.getText());\n\t\tprops.setProperty(\"Status\", (String) statusCB.getValue());\n\n\t\t// Create the inventory item type.\n\t\tInventoryItemType iit = new InventoryItemType(props);\n\n\t\t// Save it into the database.\n\t\tiit.update();\n\n\t\tpopulateFields();\n\t\t\n\t\t// Display message on GUI.\n\t\t//submitBTN.setVisible(false);\n\t\tcancelBTN.setText(\"Back\");\n\t\tmessageLBL.setText(\"Inventory Item Type added.\");\n\t}", "public interface IItemDataEnum extends IStringSerializable{\n\t/**\n\t * This should return the unlocalized name of the sub item/block, without the mod ID or the item ID this is a sub item/block of\n\t * \n\t * @return\n\t */\n\tString getUnlocalizedName();\n\t\n\t/**\n\t * This should return the full unlocalized name for use in texture registry\n\t * \n\t * @return\n\t */\n\tString getTextureName();\n\t\n\t/**\n\t * Returns the meta value of the sub item/block\n\t * \n\t * @return\n\t */\n\tint getMeta();\n}", "@Override\n public Item vendItem(Item item) {\n allItems.put(item.getItemId(), item);\n return item;\n }", "private Item(){}", "@Override\n public void addItem(P_CK t) {\n \n }", "private static void customItems(ItemDefinition itemDef) {\n\n\t\tswitch (itemDef.id) {\n\n\t\tcase 11864:\n\t\tcase 11865:\n\t\tcase 19639:\n\t\tcase 19641:\n\t\tcase 19643:\n\t\tcase 19645:\n\t\tcase 19647:\n\t\tcase 19649:\n\t\tcase 23073:\n\t\tcase 23075:\n\t\t\titemDef.equipActions[2] = \"Log\";\n\t\t\titemDef.equipActions[1] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 13136:\n\t\t\titemDef.equipActions[2] = \"Elidinis\";\n\t\t\titemDef.equipActions[1] = \"Kalphite Hive\";\n\t\t\tbreak;\n\t\tcase 2550:\n\t\t\titemDef.equipActions[2] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 1712:\n\t\tcase 1710:\n\t\tcase 1708:\n\t\tcase 1706:\n\t\t\titemDef.equipActions[1] = \"Edgeville\";\n\t\t\titemDef.equipActions[2] = \"Karamja\";\n\t\t\titemDef.equipActions[3] = \"Draynor\";\n\t\t\titemDef.equipActions[4] = \"Al-Kharid\";\n\t\t\tbreak;\n\n\t\tcase 22000:\n\t\t\titemDef.name = \"Lava partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 22001:\n\t\t\titemDef.name = \"Infernal partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 2552:\n\t\tcase 2554:\n\t\tcase 2556:\n\t\tcase 2558:\n\t\tcase 2560:\n\t\tcase 2562:\n\t\tcase 2564:\n\t\tcase 2566: // Ring of duelling\n\t\t\titemDef.equipActions[2] = \"Shantay Pass\";\n\t\t\titemDef.equipActions[1] = \"Clan wars\";\n\t\t\tbreak;\n\n\t\tcase 21307:\n\t\t\titemDef.name = \"Pursuit crate\";\n\t\t\tbreak;\n\n\t\tcase 12792:\n\t\t\titemDef.name = \"Graceful recolor kit\";\n\t\t\tbreak;\n\n\t\tcase 12022:\n\t\t\titemDef.name = \"Bandos Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Bandos gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12024:\n\t\t\titemDef.name = \"Armadyl Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Armadyl gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12026:\n\t\t\titemDef.name = \"Saradomin Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Saradomin gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12028:\n\t\t\titemDef.name = \"Zamorak Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Zamorak gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 964:\n\t\t\titemDef.name = \"Pet Petie\";\n\t\t\tbreak;\n\n\t\tcase 20853:\n\t\t\titemDef.name = \"Deep Sea Bait\";\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\t/*\n\t\t * case 17014: itemDef.name = \"Dragon flail\"; itemDef.modelId = 50083;\n\t\t * itemDef.modelZoom = 1440; itemDef.modelRotation2 = 272;\n\t\t * itemDef.modelRotation1 = 352; itemDef.modelOffset1 = 32;\n\t\t * //itemDef.modelOffset2 = 0; itemDef.maleModel = 50083; itemDef.femaleModel =\n\t\t * 50083; itemDef.anInt164 = -1; itemDef.anInt188 = -1; itemDef.aByte205 = -8;\n\t\t * itemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t * itemDef.inventoryOptions = new String[] { \"Wear\", null, null, null, \"Drop\" };\n\t\t * itemDef.description = \"An Ancient Dragon Flail.\"; break;\n\t\t */\n\n\t\tcase 33272:\n\t\t\titemDef.name = \"Justiciar's Longsword\";\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modelId = 65472;\n\t\t\titemDef.modelZoom = 1726;\n\t\t\titemDef.modelRotation1 = 1576;\n\t\t\titemDef.modelRotation2 = 242;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\t// itemDef.anInt204 = 0;\n\t\t\t// itemDef.aByte205 = -12;\n\t\t\t// itemDef.aByte154 = 0;\n\t\t\titemDef.maleModel = 65465;\n\t\t\titemDef.femaleModel = 65465;\n\t\t\titemDef.description = \"An ancient longsword received from the Trial of Flames.\";\n\t\t\tbreak;\n\n\t\tcase 33168:\n\t\t\titemDef.name = \"Justiciar kiteshield\";\n\t\t\titemDef.modelId = 65471;\n\t\t\titemDef.modelZoom = 1600;\n\t\t\titemDef.modelRotation2 = 250;\n\t\t\titemDef.modelRotation1 = 300;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.maleModel = 65473;\n\t\t\titemDef.femaleModel = 65474;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An ancient kiteshield. Part of the Justiciar set.\";\n\t\t\tbreak;\n\n\t\tcase 2996:\n\t\t\titemDef.name = \"PKP Ticket\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"Exchange this for a PK Point.\";\n\t\t\tbreak;\n\t\tcase 13226:\n\t\t\titemDef.name = \"Herb Sack\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"A sack for storing grimy herbs.\";\n\t\t\tbreak;\n\t\tcase 13346:\n\t\t\titemDef.name = \"Raid Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Open for chances to receive Raid items & other awesome rewards.\";\n\t\t\tbreak;\n\t\tcase 8800:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 31624;\n\t\t\t// itemDef.stackAmounts = new int[] { 2, 3, 50, 100, 500000, 1000000, 2500000,\n\t\t\t// 10000000, 100000000, 0 };//amount the model will change at\n\t\t\t// itemDef.stackIDs = new int[] { 8801, 8802, 8803, 8804, 8805, 8806, 8807,\n\t\t\t// 8808, 8809, 0 };//new item id to grab the model from\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 853;\n\t\t\titemDef.modelRotation2 = 1885;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8801:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15344;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8802:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15345;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8803:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15346;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8804:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15347;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8805:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15348;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8806:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15349;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8807:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15350;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8808:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15351;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8809:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15352;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 15098:\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.description = \"A 100-sided dice.\";\n\t\t\titemDef.modelId = 31223;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation2 = 215;\n\t\t\titemDef.modelRotation1 = 94;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modelOffset1 = -18;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Public-roll\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.anInt196 = 15;\n\t\t\titemDef.anInt184 = 25;\n\t\t\tbreak;\n\n\t\tcase 32991:\n\t\t\titemDef.name = \"Divine spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with an divine sigil attached to it.\";\n\t\t\titemDef.modelId = 50001;\n\t\t\titemDef.maleModel = 50002;\n\t\t\titemDef.femaleModel = 50002;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32992:\n\t\t\titemDef.name = \"Rainbow spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with all 4 sigils attached to it.\";\n\t\t\titemDef.modelId = 50004;\n\t\t\titemDef.maleModel = 50005;\n\t\t\titemDef.femaleModel = 50005;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32993:\n\t\t\titemDef.name = \"Divine sigil\";\n\t\t\titemDef.description = \"A sigil in the shape of a divine symbol.\";\n\t\t\titemDef.modelId = 50003;\n\t\t\titemDef.modelZoom = 848;\n\t\t\titemDef.modelRotation1 = 267;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33060:\n\t\t\titemDef.name = \"Barrows Sword\";\n\t\t\titemDef.description = \"A sword glowing with otherworldy energy.\";\n\t\t\titemDef.modelId = 22325;\n\t\t\titemDef.maleModel = 50010;\n\t\t\titemDef.femaleModel = 50010;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32994:\n\t\t\titemDef.name = \"Statius's platebody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42602;\n\t\t\titemDef.maleModel = 35951;\n\t\t\titemDef.femaleModel = 35964;\n\t\t\titemDef.modelZoom = 1312;\n\t\t\titemDef.modelRotation1 = 272;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 39;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32995:\n\t\t\titemDef.name = \"Statius's platelegs\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42590;\n\t\t\titemDef.maleModel = 35947;\n\t\t\titemDef.femaleModel = 35961;\n\t\t\titemDef.modelZoom = 1625;\n\t\t\titemDef.modelRotation1 = 355;\n\t\t\titemDef.modelRotation2 = 2046;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32996:\n\t\t\titemDef.name = \"Statius's full helm\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42596;\n\t\t\titemDef.maleModel = 35943;\n\t\t\titemDef.femaleModel = 35958;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 2039;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32997:\n\t\t\titemDef.name = \"Statius's warhammer\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42577;\n\t\t\titemDef.maleModel = 35968;\n\t\t\titemDef.femaleModel = 35968;\n\t\t\titemDef.modelZoom = 1360;\n\t\t\titemDef.modelRotation1 = 507;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32998:\n\t\t\titemDef.name = \"Vesta's chainbody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42593;\n\t\t\titemDef.maleModel = 35953;\n\t\t\titemDef.femaleModel = 35965;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32999:\n\t\t\titemDef.name = \"Vesta's plateskirt\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42581;\n\t\t\titemDef.maleModel = 35950;\n\t\t\titemDef.femaleModel = 35960;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33000:\n\t\t\titemDef.name = \"Vesta's longsword\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42597;\n\t\t\titemDef.maleModel = 35969;\n\t\t\titemDef.femaleModel = 35969;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 738;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33001:\n\t\t\titemDef.name = \"Vesta's spear\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42599;\n\t\t\titemDef.maleModel = 35973;\n\t\t\titemDef.femaleModel = 35973;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 480;\n\t\t\titemDef.modelRotation2 = 15;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33002:\n\t\t\titemDef.name = \"Morrigan's leather body\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42578;\n\t\t\titemDef.maleModel = 35954;\n\t\t\titemDef.femaleModel = 35963;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33003:\n\t\t\titemDef.name = \"Morrigan's leather chaps\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42603;\n\t\t\titemDef.maleModel = 35948;\n\t\t\titemDef.femaleModel = 35959;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 482;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33004:\n\t\t\titemDef.name = \"Morrigan's coif\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42583;\n\t\t\titemDef.maleModel = 35945;\n\t\t\titemDef.femaleModel = 35956;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 537;\n\t\t\titemDef.modelRotation2 = 5;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33005:\n\t\t\titemDef.name = \"Morrigan's javelin\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42592;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42613;\n\t\t\titemDef.femaleModel = 42613;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 282;\n\t\t\titemDef.modelRotation2 = 2009;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33006:\n\t\t\titemDef.name = \"Morrigan's throwing axe\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42582;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42611;\n\t\t\titemDef.femaleModel = 42611;\n\t\t\titemDef.modelZoom = 976;\n\t\t\titemDef.modelRotation1 = 672;\n\t\t\titemDef.modelRotation2 = 2024;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33007:\n\t\t\titemDef.name = \"Zuriels robe top\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42591;\n\t\t\titemDef.maleModel = 35952;\n\t\t\titemDef.femaleModel = 35966;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 373;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33008:\n\t\t\titemDef.name = \"Zuriels robe bottom\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42588;\n\t\t\titemDef.maleModel = 35949;\n\t\t\titemDef.femaleModel = 35962;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33009:\n\t\t\titemDef.name = \"Zuriels hood\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42604;\n\t\t\titemDef.maleModel = 35944;\n\t\t\titemDef.femaleModel = 35957;\n\t\t\titemDef.modelZoom = 720;\n\t\t\titemDef.modelRotation1 = 28;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33010:\n\t\t\titemDef.name = \"Zuriels staff\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42595;\n\t\t\titemDef.maleModel = 35971;\n\t\t\titemDef.femaleModel = 35971;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 366;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33011:\n\t\t\titemDef.name = \"Craw's bow (u)\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35768;\n\t\t\titemDef.femaleModel = 35768;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33012:\n\t\t\titemDef.name = \"Craw's bow\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35769;\n\t\t\titemDef.femaleModel = 35769;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33013:\n\t\t\titemDef.name = \"Thammaron's sceptre (u)\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35772;\n\t\t\titemDef.femaleModel = 35772;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33014:\n\t\t\titemDef.name = \"Thammaron's sceptre\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35773;\n\t\t\titemDef.femaleModel = 35773;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33015:\n\t\t\titemDef.name = \"Viggora's chainmace (u)\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35770;\n\t\t\titemDef.femaleModel = 35770;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33016:\n\t\t\titemDef.name = \"Viggora's chainmace\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35771;\n\t\t\titemDef.femaleModel = 35771;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33018:\n\t\t\titemDef.name = \"Amulet of avarice\";\n\t\t\titemDef.description = \"A hauntingly beautiful amulet bearing the shape of a skull.\";\n\t\t\titemDef.modelId = 35779;\n\t\t\titemDef.maleModel = 35766;\n\t\t\titemDef.femaleModel = 35766;\n\t\t\titemDef.modelZoom = 420;\n\t\t\titemDef.modelRotation1 = 191;\n\t\t\titemDef.modelRotation2 = 86;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33019:\n\t\t\titemDef.name = \"Completionist cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65270;\n\t\t\titemDef.maleModel = 65297;\n\t\t\titemDef.femaleModel = 65316;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33020:\n\t\t\titemDef.name = \"Completionist cape (t)\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65258;\n\t\t\titemDef.maleModel = 65295;\n\t\t\titemDef.femaleModel = 65328;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33021:\n\t\t\titemDef.name = \"Torva full helm\";\n\t\t\titemDef.description = \"An ancient warrior's full helm.\";\n\t\t\titemDef.modelId = 62714;\n\t\t\titemDef.maleModel = 62738;\n\t\t\titemDef.femaleModel = 62738;\n\t\t\titemDef.modelZoom = 672;\n\t\t\titemDef.modelRotation1 = 85;\n\t\t\titemDef.modelRotation2 = 1867;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33022:\n\t\t\titemDef.name = \"Torva platebody\";\n\t\t\titemDef.description = \"An ancient warrior's platebody.\";\n\t\t\titemDef.modelId = 62699;\n\t\t\titemDef.maleModel = 62746;\n\t\t\titemDef.femaleModel = 62746;\n\t\t\titemDef.modelZoom = 1506;\n\t\t\titemDef.modelRotation1 = 473;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33023:\n\t\t\titemDef.name = \"Torva platelegs\";\n\t\t\titemDef.description = \"An ancient warrior's platelegs.\";\n\t\t\titemDef.modelId = 62701;\n\t\t\titemDef.maleModel = 62740;\n\t\t\titemDef.femaleModel = 62740;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 474;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33024:\n\t\t\titemDef.name = \"Pernix cowl\";\n\t\t\titemDef.description = \"An ancient warrior's cowl.\";\n\t\t\titemDef.modelId = 62693;\n\t\t\titemDef.maleModel = 62739;\n\t\t\titemDef.femaleModel = 62739;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 532;\n\t\t\titemDef.modelRotation2 = 14;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33025:\n\t\t\titemDef.name = \"Pernix body\";\n\t\t\titemDef.description = \"An ancient warrior's leather body.\";\n\t\t\titemDef.modelId = 62709;\n\t\t\titemDef.maleModel = 62744;\n\t\t\titemDef.femaleModel = 62744;\n\t\t\titemDef.modelZoom = 1378;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33026:\n\t\t\titemDef.name = \"Pernix chaps\";\n\t\t\titemDef.description = \"An ancient warrior's chaps.\";\n\t\t\titemDef.modelId = 62695;\n\t\t\titemDef.maleModel = 62741;\n\t\t\titemDef.femaleModel = 62741;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 504;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33027:\n\t\t\titemDef.name = \"Virtus mask\";\n\t\t\titemDef.description = \"An ancient warrior's mask.\";\n\t\t\titemDef.modelId = 62710;\n\t\t\titemDef.maleModel = 62736;\n\t\t\titemDef.femaleModel = 62736;\n\t\t\titemDef.modelZoom = 928;\n\t\t\titemDef.modelRotation1 = 406;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33028:\n\t\t\titemDef.name = \"Virtus robe top\";\n\t\t\titemDef.description = \"An ancient warrior's robe top.\";\n\t\t\titemDef.modelId = 62704;\n\t\t\titemDef.maleModel = 62748;\n\t\t\titemDef.femaleModel = 62748;\n\t\t\titemDef.modelZoom = 1122;\n\t\t\titemDef.modelRotation1 = 488;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33029:\n\t\t\titemDef.name = \"Virtus robe legs\";\n\t\t\titemDef.description = \"An ancient warrior's robe legs.\";\n\t\t\titemDef.modelId = 62700;\n\t\t\titemDef.maleModel = 62742;\n\t\t\titemDef.femaleModel = 62742;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33030:\n\t\t\titemDef.name = \"Zaryte bow\";\n\t\t\titemDef.description = \"An ancient warrior's bow.\";\n\t\t\titemDef.modelId = 62692;\n\t\t\titemDef.maleModel = 62750;\n\t\t\titemDef.femaleModel = 62750;\n\t\t\titemDef.modelZoom = 1703;\n\t\t\titemDef.modelRotation1 = 221;\n\t\t\titemDef.modelRotation2 = 404;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33083:\n\t\t\titemDef.name = \"Tokhaar-kal\";\n\t\t\titemDef.description = \"\tA cape made of ancient, enchanted obsidian.\";\n\t\t\titemDef.modelId = 52073;\n\t\t\titemDef.maleModel = 52072;\n\t\t\titemDef.femaleModel = 52071;\n\t\t\titemDef.modelZoom = 1615;\n\t\t\titemDef.modelRotation1 = 339;\n\t\t\titemDef.modelRotation2 = 192;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33089:\n\t\t\titemDef.name = \"Chaotic maul\";\n\t\t\titemDef.description = \"A maul used to claim life from those who don't deserve it.\";\n\t\t\titemDef.modelId = 54286;\n\t\t\titemDef.maleModel = 56294;\n\t\t\titemDef.femaleModel = 56294;\n\t\t\titemDef.modelZoom = 1447;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33094:\n\t\t\titemDef.name = \"Chaotic crossbow\";\n\t\t\titemDef.description = \"A small crossbow, only effective at short distance.\";\n\t\t\titemDef.modelId = 54331;\n\t\t\titemDef.maleModel = 56307;\n\t\t\titemDef.femaleModel = 56307;\n\t\t\titemDef.modelZoom = 1028;\n\t\t\titemDef.modelRotation1 = 249;\n\t\t\titemDef.modelRotation2 = 2021;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -54;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33095:\n\t\t\titemDef.name = \"Chaotic staff\";\n\t\t\titemDef.description = \"This staff makes destructive spells more powerful.\";\n\t\t\titemDef.modelId = 54367;\n\t\t\titemDef.maleModel = 56286;\n\t\t\titemDef.femaleModel = 56286;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33096:\n\t\t\titemDef.name = \"Chaotic kiteshield\";\n\t\t\titemDef.description = \"A large metal shield.\";\n\t\t\titemDef.modelId = 54358;\n\t\t\titemDef.maleModel = 56038;\n\t\t\titemDef.femaleModel = 56038;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 276;\n\t\t\titemDef.modelRotation2 = 1101;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33031:\n\t\t\titemDef.name = \"Chaotic rapier\";\n\t\t\titemDef.description = \"A razor-sharp rapier.\";\n\t\t\titemDef.modelId = 54197;\n\t\t\titemDef.maleModel = 56252;\n\t\t\titemDef.femaleModel = 56252;\n\t\t\titemDef.modelZoom = 1425;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 1370;\n\t\t\titemDef.modelOffset1 = 9;\n\t\t\titemDef.modelOffset2 = 13;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33032:\n\t\t\titemDef.name = \"Chaotic longsword\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 54204;\n\t\t\titemDef.maleModel = 56237;\n\t\t\titemDef.femaleModel = 56237;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33097:\n\t\t\titemDef.name = \"Sword of Onyxia\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 53091;\n\t\t\titemDef.maleModel = 53092;\n\t\t\titemDef.femaleModel = 53092;\n\t\t\titemDef.modelZoom = 2007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33098:\n\t\t\titemDef.name = \"Onyxia longsword\";\n\t\t\titemDef.description = \"A razor-sharp 2h sword.\";\n\t\t\titemDef.modelId = 53093;\n\t\t\titemDef.maleModel = 53094;\n\t\t\titemDef.femaleModel = 53094;\n\t\t\titemDef.modelZoom = 4007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33099:\n\t\t\titemDef.name = \"White scimitar\";\n\t\t\titemDef.description = \"A razor-sharp scimitar.\";\n\t\t\titemDef.modelId = 53097;\n\t\t\titemDef.maleModel = 53098;\n\t\t\titemDef.femaleModel = 53098;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 312;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33100:\n\t\t\titemDef.name = \"White kiteshield\";\n\t\t\titemDef.description = \"a heavy kiteshield.\";\n\t\t\titemDef.modelId = 53095;\n\t\t\titemDef.maleModel = 53096;\n\t\t\titemDef.femaleModel = 53096;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 303;\n\t\t\titemDef.modelRotation2 = 180;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33033:\n\t\t\titemDef.name = \"Agility master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 677, 801, 43540, 43543, 43546, 43549, 43550, 43552, 43554, 43558,\n\t\t\t\t\t43560, 43575 };\n\t\t\titemDef.modelId = 50030;\n\t\t\titemDef.maleModel = 50031;\n\t\t\titemDef.femaleModel = 50031;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33034:\n\t\t\titemDef.name = \"Attack master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 7104, 9151, 911, 914, 917, 920, 921, 923, 925, 929, 931, 946 };\n\t\t\titemDef.modelId = 50032;\n\t\t\titemDef.maleModel = 50033;\n\t\t\titemDef.femaleModel = 50033;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33035:\n\t\t\titemDef.name = \"Construction master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6061, 5945, 6327, 6330, 6333, 6336, 6337, 6339, 6341, 6345, 6347,\n\t\t\t\t\t6362 };\n\t\t\titemDef.modelId = 50034;\n\t\t\titemDef.maleModel = 50035;\n\t\t\titemDef.femaleModel = 50035;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33036:\n\t\t\titemDef.name = \"Cooking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 920, 920, 51856, 51859, 51862, 51865, 51866, 51868, 51870, 51874,\n\t\t\t\t\t51876, 51891 };\n\t\t\titemDef.modelId = 50036;\n\t\t\titemDef.maleModel = 50037;\n\t\t\titemDef.femaleModel = 50037;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33037:\n\t\t\titemDef.name = \"Crafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9142, 9152, 4511, 4514, 4517, 4520, 4521, 4523, 4525, 4529, 4531,\n\t\t\t\t\t4546 };\n\t\t\titemDef.modelId = 50038;\n\t\t\titemDef.maleModel = 50039;\n\t\t\titemDef.femaleModel = 50039;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33038:\n\t\t\titemDef.name = \"Defence master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 10460, 10473, 41410, 41413, 41416, 41419, 41420, 41422, 41424,\n\t\t\t\t\t41428, 41430, 41445 };\n\t\t\titemDef.modelId = 50040;\n\t\t\titemDef.maleModel = 50041;\n\t\t\titemDef.femaleModel = 50041;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33039:\n\t\t\titemDef.name = \"Farming master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 14775, 14792, 22026, 22029, 22032, 22035, 22036, 22038, 22040,\n\t\t\t\t\t22044, 22046, 22061 };\n\t\t\titemDef.modelId = 50042;\n\t\t\titemDef.maleModel = 50043;\n\t\t\titemDef.femaleModel = 50043;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33040:\n\t\t\titemDef.name = \"Firemaking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8125, 9152, 4015, 4018, 4021, 4024, 4025, 4027, 4029, 4033, 4035,\n\t\t\t\t\t4050 };\n\t\t\titemDef.modelId = 50044;\n\t\t\titemDef.maleModel = 50045;\n\t\t\titemDef.femaleModel = 50045;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33041:\n\t\t\titemDef.name = \"Fishing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9144, 9152, 38202, 38205, 38208, 38211, 38212, 38214, 38216,\n\t\t\t\t\t38220, 38222, 38237 };\n\t\t\titemDef.modelId = 50046;\n\t\t\titemDef.maleModel = 50047;\n\t\t\titemDef.femaleModel = 50047;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33042:\n\t\t\titemDef.name = \"Fletching master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6067, 9152, 33670, 33673, 33676, 33679, 33680, 33682, 33684,\n\t\t\t\t\t33688, 33690, 33705 };\n\t\t\titemDef.modelId = 50048;\n\t\t\titemDef.maleModel = 50049;\n\t\t\titemDef.femaleModel = 50049;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33043:\n\t\t\titemDef.name = \"Herblore master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9145, 9156, 22414, 22417, 22420, 22423, 22424, 22426, 22428,\n\t\t\t\t\t22432, 22434, 22449 };\n\t\t\titemDef.modelId = 50050;\n\t\t\titemDef.maleModel = 50051;\n\t\t\titemDef.femaleModel = 50051;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33044:\n\t\t\titemDef.name = \"Hitpoints master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 818, 951, 8291, 8294, 8297, 8300, 8301, 8303, 8305, 8309, 8311,\n\t\t\t\t\t8319 };\n\t\t\titemDef.modelId = 50052;\n\t\t\titemDef.maleModel = 50053;\n\t\t\titemDef.femaleModel = 50053;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\titemDef.femaleOffset = 4;\n\t\t\tbreak;\n\t\tcase 33045:\n\t\t\titemDef.name = \"Hunter master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 5262, 6020, 8472, 8475, 8478, 8481, 8482, 8484, 8486, 8490, 8492,\n\t\t\t\t\t8507 };\n\t\t\titemDef.modelId = 50054;\n\t\t\titemDef.maleModel = 50055;\n\t\t\titemDef.femaleModel = 50055;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33046:\n\t\t\titemDef.name = \"Magic master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 43569, 43685, 6336, 6339, 6342, 6345, 6346, 6348, 6350, 6354,\n\t\t\t\t\t6356, 6371 };\n\t\t\titemDef.modelId = 50056;\n\t\t\titemDef.maleModel = 50057;\n\t\t\titemDef.femaleModel = 50057;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33047:\n\t\t\titemDef.name = \"Mining master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 36296, 36279, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50058;\n\t\t\titemDef.maleModel = 50059;\n\t\t\titemDef.femaleModel = 50059;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33048:\n\t\t\titemDef.name = \"Prayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9163, 9168, 117, 120, 123, 126, 127, 127, 127, 127, 127, 127 };\n\t\t\titemDef.modelId = 50060;\n\t\t\titemDef.maleModel = 50061;\n\t\t\titemDef.femaleModel = 50061;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33049:\n\t\t\titemDef.name = \"Range master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 3755, 3998, 15122, 15125, 15128, 15131, 15132, 15134, 15136,\n\t\t\t\t\t15140, 15142, 15157 };\n\t\t\titemDef.modelId = 50062;\n\t\t\titemDef.maleModel = 50063;\n\t\t\titemDef.femaleModel = 50063;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33050:\n\t\t\titemDef.name = \"Runecrafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9152, 8128, 10318, 10321, 10324, 10327, 10328, 10330, 10332,\n\t\t\t\t\t10336, 10338, 10353 };\n\t\t\titemDef.modelId = 50064;\n\t\t\titemDef.maleModel = 50065;\n\t\t\titemDef.femaleModel = 50065;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33051:\n\t\t\titemDef.name = \"Slayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811 };\n\t\t\titemDef.originalModelColors = new int[] { 912, 920 };\n\t\t\titemDef.modelId = 50066;\n\t\t\titemDef.maleModel = 50067;\n\t\t\titemDef.femaleModel = 50067;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33052:\n\t\t\titemDef.name = \"Smithing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8115, 9148, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50068;\n\t\t\titemDef.maleModel = 50069;\n\t\t\titemDef.femaleModel = 50069;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33053:\n\t\t\titemDef.name = \"Strength master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 931, 27538, 27541, 27544, 27547, 27548, 27550, 27552, 27556,\n\t\t\t\t\t27558, 27573 };\n\t\t\titemDef.modelId = 50070;\n\t\t\titemDef.maleModel = 50071;\n\t\t\titemDef.femaleModel = 50071;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33054:\n\t\t\titemDef.name = \"Thieving master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 11, 0, 58779, 58782, 58785, 58788, 58789, 57891, 58793, 58797,\n\t\t\t\t\t58799, 58814 };\n\t\t\titemDef.modelId = 50072;\n\t\t\titemDef.maleModel = 50073;\n\t\t\titemDef.femaleModel = 50073;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33055:\n\t\t\titemDef.name = \"Woodcutting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 25109, 24088, 6693, 6696, 6699, 6702, 6703, 6705, 6707, 6711,\n\t\t\t\t\t6713, 6728 };\n\t\t\titemDef.modelId = 50074;\n\t\t\titemDef.maleModel = 50075;\n\t\t\titemDef.femaleModel = 50075;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33057:\n\t\t\titemDef.name = \"Abyssal Scythe\";\n\t\t\titemDef.description = \"\tA Scythe recieved from the Trials of Xeric CUSTOM RAID.\";\n\t\t\titemDef.modelId = 50081;\n\t\t\titemDef.maleModel = 50080;\n\t\t\titemDef.femaleModel = 50080;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33090:\n\t\t\titemDef.name = \"Goliath gloves (Black)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50100;\n\t\t\titemDef.femaleModel = 50101;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33091:\n\t\t\titemDef.name = \"Goliath gloves (Red)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50102;\n\t\t\titemDef.femaleModel = 50103;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33092:\n\t\t\titemDef.name = \"Goliath gloves (White)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50104;\n\t\t\titemDef.femaleModel = 50105;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33093:\n\t\t\titemDef.name = \"Goliath gloves (Yellow)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50106;\n\t\t\titemDef.femaleModel = 50107;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 12639:\n\t\tcase 12637:\n\t\tcase 12638:\n\t\t\titemDef.description = \"Provides players with infinite run energy!\";\n\t\t\tbreak;\n\t\tcase 33056:\n\t\t\titemDef.name = \"Events cape (slayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 0, 0, 0, 0 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33081:\n\t\t\titemDef.name = \"Events cape (agility)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 669, 43430, 43430, 43430, 43430 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33080:\n\t\t\titemDef.name = \"Events cape (attack)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9926, 1815, 1815, 1815, 1815 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33059:\n\t\t\titemDef.name = \"Events cape (construction)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6967, 6343, 6343, 6343, 6343 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33061:\n\t\t\titemDef.name = \"Events cape (cooking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 49685, 49685, 49685, 49685 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33062:\n\t\t\titemDef.name = \"Events cape (crafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 7994, 4516, 4516, 4516, 4516 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33063:\n\t\t\titemDef.name = \"Events cape (defence)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 39367, 10472, 10472, 10472, 10472 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33064:\n\t\t\titemDef.name = \"Events cape (farming)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10698, 19734, 19734, 19734, 19734 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33065:\n\t\t\titemDef.name = \"Events cape (firemaking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10059, 4922, 4922, 4922, 4922 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33066:\n\t\t\titemDef.name = \"Events cape (fishing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 36165, 36165, 36165, 36165 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33067:\n\t\t\titemDef.name = \"Events cape (fletching)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 31500, 31500, 31500, 31500 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33068:\n\t\t\titemDef.name = \"Events cape (herblore)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10051, 20889, 20889, 20889, 20889 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33069:\n\t\t\titemDef.name = \"Events cape (hitpoints)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1836, 8296, 8296, 8296, 8296 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33070:\n\t\t\titemDef.name = \"Events cape (hunter)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6916, 8477, 8477, 8477, 8477 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33071:\n\t\t\titemDef.name = \"Events cape (magic)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 43556, 6339, 6339, 6339, 6339 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33072:\n\t\t\titemDef.name = \"Events cape (mining)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 34111, 10391, 10391, 10391, 10391 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33073:\n\t\t\titemDef.name = \"Events cape (prayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9927, 2169, 2169, 2169, 2169 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33074:\n\t\t\titemDef.name = \"Events cape (range)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 3626, 20913, 20913, 20913, 20913 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33075:\n\t\t\titemDef.name = \"Events cape (runecrafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 10323, 10323, 10323, 10323 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33076:\n\t\t\titemDef.name = \"Events cape (smithing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10044, 5412, 5412, 5412, 5412 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33077:\n\t\t\titemDef.name = \"Events cape (strength)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 30487, 30487, 30487, 30487 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33078:\n\t\t\titemDef.name = \"Events cape (thieveing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 8, 57636, 57636, 57636, 57636 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33079:\n\t\t\titemDef.name = \"Events cape (woodcutting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 26007, 6570, 6570, 6570, 6570 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33101:\n\t\t\titemDef.name = \"Vorkath platebody\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53100;\n\t\t\titemDef.maleModel = 53099;\n\t\t\titemDef.femaleModel = 53099;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33102:\n\t\t\titemDef.name = \"Vorkath platelegs\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53102;\n\t\t\titemDef.maleModel = 53101;\n\t\t\titemDef.femaleModel = 53101;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33103:\n\t\t\titemDef.name = \"Vorkath boots\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33104:\n\t\t\titemDef.name = \"Vorkath gloves\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33105:\n\t\t\titemDef.name = \"Vorkath helmet\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53108;\n\t\t\titemDef.maleModel = 53107;\n\t\t\titemDef.femaleModel = 53107;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33106:\n\t\t\titemDef.name = \"Tekton helmet\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53118;\n\t\t\titemDef.maleModel = 53117;\n\t\t\titemDef.femaleModel = 53117;\n\t\t\titemDef.modelZoom = 724;\n\t\t\titemDef.modelRotation1 = 81;\n\t\t\titemDef.modelRotation2 = 1670;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33107:\n\t\t\titemDef.name = \"Tekton platebody\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53110;\n\t\t\titemDef.maleModel = 53109;\n\t\t\titemDef.femaleModel = 53109;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33108:\n\t\t\titemDef.name = \"Tekton platelegs\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53112;\n\t\t\titemDef.maleModel = 53111;\n\t\t\titemDef.femaleModel = 53111;\n\t\t\titemDef.modelZoom = 1550;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 186;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33109:\n\t\t\titemDef.name = \"Tekton gloves\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53116;\n\t\t\titemDef.maleModel = 53115;\n\t\t\titemDef.femaleModel = 53115;\n\t\t\titemDef.modelZoom = 830;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33110:\n\t\t\titemDef.name = \"Tekton boots\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53114;\n\t\t\titemDef.maleModel = 53113;\n\t\t\titemDef.femaleModel = 53113;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33111:\n\t\t\titemDef.name = \"Anti-santa scythe\";\n\t\t\titemDef.description = \"Legend says this is the biggest arse scratcher around.\";\n\t\t\titemDef.modelId = 57002;\n\t\t\titemDef.maleModel = 57001;\n\t\t\titemDef.femaleModel = 57001;\n\t\t\titemDef.modelZoom = 3224;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 714;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33112:\n\t\t\titemDef.name = \"Dominion staff\";\n\t\t\titemDef.description = \"Dominion staff.\";\n\t\t\titemDef.modelId = 59029;\n\t\t\titemDef.maleModel = 59305;\n\t\t\titemDef.femaleModel = 59305;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33113:\n\t\t\titemDef.name = \"Dominion sword\";\n\t\t\titemDef.description = \"Dominion sword.\";\n\t\t\titemDef.modelId = 59832;\n\t\t\titemDef.maleModel = 59306;\n\t\t\titemDef.femaleModel = 59306;\n\t\t\titemDef.modelZoom = 1829;\n\t\t\titemDef.modelRotation1 = 513;\n\t\t\titemDef.modelRotation2 = 546;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33114:\n\t\t\titemDef.name = \"Dominion crossbow\";\n\t\t\titemDef.description = \"Dominion crossbow.\";\n\t\t\titemDef.modelId = 59839;\n\t\t\titemDef.maleModel = 59304;\n\t\t\titemDef.femaleModel = 59304;\n\t\t\titemDef.modelZoom = 1490;\n\t\t\titemDef.modelRotation1 = 362;\n\t\t\titemDef.modelRotation2 = 791;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33115:\n\t\t\titemDef.name = \"Dragonfire Shield (e)\";\n\t\t\titemDef.description = \"unamed shield.\";\n\t\t\titemDef.modelId = 53120;\n\t\t\titemDef.maleModel = 53119;\n\t\t\titemDef.femaleModel = 53119;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 123;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[] { null, \"Wear\", \"Inspect\", \"Empty\", \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33116:\n\t\t\titemDef.name = \"Zilyana's longbow\";\n\t\t\titemDef.description = \"A bow belonged to Zilyana.\";\n\t\t\titemDef.modelId = 53122;\n\t\t\titemDef.maleModel = 53121;\n\t\t\titemDef.femaleModel = 53121;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33117:\n\t\t\titemDef.name = \"Black dragon hunter crossbow\";\n\t\t\titemDef.description = \"Black dragon hunter crossbow.\";\n\t\t\titemDef.modelId = 53124;\n\t\t\titemDef.maleModel = 53123;\n\t\t\titemDef.femaleModel = 53123;\n\t\t\titemDef.modelZoom = 1554;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33118:\n\t\t\titemDef.name = \"Vorkath blowpipe\";\n\t\t\titemDef.description = \"Vorkath blowpipe.\";\n\t\t\titemDef.modelId = 53126;\n\t\t\titemDef.maleModel = 53125;\n\t\t\titemDef.femaleModel = 53125;\n\t\t\titemDef.modelZoom = 1158;\n\t\t\titemDef.modelRotation1 = 768;\n\t\t\titemDef.modelRotation2 = 189;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33119:\n\t\t\titemDef.name = \"Superior twisted bow\";\n\t\t\titemDef.description = \"An upgraded twisted bow.\";\n\t\t\titemDef.modelId = 53128;\n\t\t\titemDef.maleModel = 53127;\n\t\t\titemDef.femaleModel = 53127;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\t\tcase 33123:\n\t\t\titemDef.name = \"Staff of sliske\";\n\t\t\titemDef.description = \"Staff of sliske.\";\n\t\t\titemDef.modelId = 59234;\n\t\t\titemDef.maleModel = 59233;\n\t\t\titemDef.femaleModel = 59233;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33124:\n\t\t\titemDef.name = \"Twisted crossbow\";\n\t\t\titemDef.description = \"Twisted crossbow.\";\n\t\t\titemDef.modelId = 62777;\n\t\t\titemDef.maleModel = 62776;\n\t\t\titemDef.femaleModel = 62776;\n\t\t\titemDef.modelZoom = 926;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33125:\n\t\t\titemDef.name = \"Present\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 24410 };\n\t\t\titemDef.description = \"Santa's stolen present\";\n\t\t\tbreak;\n\t\tcase 33126:\n\t\t\titemDef.name = \"Christmas tree branch\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2412;\n\t\t\titemDef.modelZoom = 940;\n\t\t\titemDef.modelRotation1 = 268;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -21;\n\t\t\titemDef.modifiedModelColors = new int[] { 11144 };\n\t\t\titemDef.originalModelColors = new int[] { 6047 };\n\t\t\titemDef.description = \"Enter examine here.\";\n\t\t\tbreak;\n\t\tcase 33127:\n\t\t\titemDef.name = \"Kbd gloves\";\n\t\t\titemDef.description = \"Kbd gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33085 };\n\t\t\titemDef.originalModelColors = new int[] { 1060 };\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33128:\n\t\t\titemDef.name = \"Kbd boots\";\n\t\t\titemDef.description = \"Kbd boots.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33198, 33202, 33206, 33215, 33210 };\n\t\t\titemDef.originalModelColors = new int[] { 1060, 1061, 1063, 1064, 1065 };\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33129:\n\t\t\titemDef.name = \"Kbd platelegs\";\n\t\t\titemDef.description = \"Kbd platelegs.\";\n\t\t\titemDef.modelId = 59994;\n\t\t\titemDef.maleModel = 59995;\n\t\t\titemDef.femaleModel = 59995;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33130:\n\t\t\titemDef.name = \"Kbd platebody\";\n\t\t\titemDef.description = \"Kbd platebody.\";\n\t\t\titemDef.modelId = 59998;\n\t\t\titemDef.maleModel = 59999;\n\t\t\titemDef.femaleModel = 59999;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33131:\n\t\t\titemDef.name = \"Kbd helmet\";\n\t\t\titemDef.description = \"Kbd helmet.\";\n\t\t\titemDef.modelId = 59996;\n\t\t\titemDef.maleModel = 59997;\n\t\t\titemDef.femaleModel = 59997;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33132:\n\t\t\titemDef.name = \"Kbd cape\";\n\t\t\titemDef.description = \"Kbd cape.\";\n\t\t\titemDef.modelId = 59992;\n\t\t\titemDef.maleModel = 59993;\n\t\t\titemDef.femaleModel = 59993;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33133:\n\t\t\titemDef.name = \"Anti-imp pet\";\n\t\t\titemDef.description = \"Anti-imp pet.\";\n\t\t\titemDef.modelId = 45294;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33134:\n\t\t\titemDef.name = \"Anti-santa pet\";\n\t\t\titemDef.description = \"Anti-santa pet.\";\n\t\t\titemDef.modelId = 29030;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 1966;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33135:\n\t\t\titemDef.name = \"Bandos mask\";\n\t\t\titemDef.description = \"Bandos helmet.\";\n\t\t\titemDef.modelId = 59987;\n\t\t\titemDef.maleModel = 59991;\n\t\t\titemDef.femaleModel = 59991;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33136:\n\t\t\titemDef.name = \"Armadyl mask\";\n\t\t\titemDef.description = \"Armadyl mask.\";\n\t\t\titemDef.modelId = 59986;\n\t\t\titemDef.maleModel = 59990;\n\t\t\titemDef.femaleModel = 59990;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33137:\n\t\t\titemDef.name = \"Zamorak mask\";\n\t\t\titemDef.description = \"Zamorak mask.\";\n\t\t\titemDef.modelId = 59985;\n\t\t\titemDef.maleModel = 59989;\n\t\t\titemDef.femaleModel = 59989;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33138:\n\t\t\titemDef.name = \"Saradomin mask\";\n\t\t\titemDef.description = \"Saradomin mask.\";\n\t\t\titemDef.modelId = 59984;\n\t\t\titemDef.maleModel = 59988;\n\t\t\titemDef.femaleModel = 59988;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33139:\n\t\t\titemDef.name = \"Zamarok godbow\";\n\t\t\titemDef.description = \"Zamarok godbow.\";\n\t\t\titemDef.modelId = 60560;//60553\n\t\t\titemDef.maleModel = 60560;\n\t\t\titemDef.femaleModel = 60560;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33140:\n\t\t\titemDef.name = \"Saradomin godbow\";\n\t\t\titemDef.description = \"Saradomin godbow.\";\n\t\t\titemDef.modelId = 60555;\n\t\t\titemDef.maleModel = 60554;\n\t\t\titemDef.femaleModel = 60554;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33141:\n\t\t\titemDef.name = \"Bandos godbow\";\n\t\t\titemDef.description = \"Bandos godbow.\";\n\t\t\titemDef.modelId = 60559;\n\t\t\titemDef.maleModel = 60558;\n\t\t\titemDef.femaleModel = 60558;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33142:\n\t\t\titemDef.name = \"Fire cape (purple)\";\n\t\t\titemDef.description = \"Fire cape (purple).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33148:\n\t\t\titemDef.name = \"Fire cape (cyan)\";\n\t\t\titemDef.description = \"Fire cape (cyan).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33144:\n\t\t\titemDef.name = \"Fire cape (green)\";\n\t\t\titemDef.description = \"Fire cape (green).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33145:\n\t\t\titemDef.name = \"Fire cape (red)\";\n\t\t\titemDef.description = \"Fire cape (red).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33143:\n\t\t\titemDef.name = \"Infernal cape (blue)\";\n\t\t\titemDef.description = \"Infernal cape (blue).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 39851, 39851, 39851, 39851 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33146:\n\t\t\titemDef.name = \"Infernal cape (green)\";\n\t\t\titemDef.description = \"Infernal cape (green).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 21167, 21167, 21167, 21167 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33147:\n\t\t\titemDef.name = \"Infernal cape (purple)\";\n\t\t\titemDef.description = \"Infernal cape (purple).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 53160, 53160, 53160, 53160 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33150:\n\t\t\titemDef.name = \"Infernal key piece 1\";\n\t\t\titemDef.description = \"Infernal key piece 1.\";\n\t\t\titemDef.modelId = 61001;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33151:\n\t\t\titemDef.name = \"Infernal key piece 2\";\n\t\t\titemDef.description = \"Infernal key piece 2.\";\n\t\t\titemDef.modelId = 61002;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33152:\n\t\t\titemDef.name = \"Infernal key piece 3\";\n\t\t\titemDef.description = \"Infernal key piece 3.\";\n\t\t\titemDef.modelId = 61003;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33153:\n\t\t\titemDef.name = \"Infernal key\";\n\t\t\titemDef.description = \"Infernal key.\";\n\t\t\titemDef.modelId = 61111;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\t\t//DOPES ITEMS NIGGAHAHAHAHAHAHAH\n\t\tcase 2749:\n\t\t\titemDef.name = \"Bloody Axe\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65495;\n\t\t\titemDef.femaleModel = 65495;\n\t\t\titemDef.maleModel = 65495;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 2750:\n\t\t\titemDef.name = \"Bloody Axe Offhand\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65496;\n\t\t\titemDef.femaleModel = 65496;\n\t\t\titemDef.maleModel = 65496;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33154:\n\t\t\titemDef.name = \"Infernal mystery box\";\n\t\t\titemDef.description = \"Infernal mystery box.\";\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33155:\n\t\t\titemDef.name = \"Ethereal sword (red)\";\n\t\t\titemDef.description = \"Ethereal sword (red).\";\n\t\t\titemDef.modelId = 61005;\n\t\t\titemDef.maleModel = 61004;\n\t\t\titemDef.femaleModel = 61004;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33156:\n\t\t\titemDef.name = \"Ethereal sword (blue)\";\n\t\t\titemDef.description = \"Ethereal sword (blue).\";\n\t\t\titemDef.modelId = 61006;\n\t\t\titemDef.maleModel = 61007;\n\t\t\titemDef.femaleModel = 61007;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33157:\n\t\t\titemDef.name = \"Ethereal sword (green)\";\n\t\t\titemDef.description = \"Ethereal sword (green).\";\n\t\t\titemDef.modelId = 61008;\n\t\t\titemDef.maleModel = 61009;\n\t\t\titemDef.femaleModel = 61009;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33158:\n\t\t\titemDef.name = \"Dagon' hai top\";\n\t\t\titemDef.description = \"An elite dark mages robes.\";\n\t\t\titemDef.modelId = 60317;\n\t\t\titemDef.maleModel = 43614;\n\t\t\titemDef.femaleModel = 43689;\n\t\t\titemDef.anInt188 = 44594;\n\t\t\titemDef.anInt164 = 43681;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33159:\n\t\t\titemDef.name = \"Dagon' hai hat\";\n\t\t\titemDef.description = \"An elite dark mages hat.\";\n\t\t\titemDef.modelId = 60319;\n\t\t\titemDef.maleModel = 60318;\n\t\t\titemDef.femaleModel = 60318;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 98;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33160:\n\t\t\titemDef.name = \"Dagon' hai robe\";\n\t\t\titemDef.description = \"An elite dark mages robe.\";\n\t\t\titemDef.modelId = 60321;\n\t\t\titemDef.maleModel = 60320;\n\t\t\titemDef.femaleModel = 60320;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 2216;\n\t\t\titemDef.modelRotation1 = 572;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33161:\n\t\t\titemDef.name = \"Blue infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Blue.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33162:\n\t\t\titemDef.name = \"Green infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33163:\n\t\t\titemDef.name = \"Purple infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33164:\n\t\t\titemDef.name = \"Purple firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33165:\n\t\t\titemDef.name = \"Cyan firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to cyan.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33166:\n\t\t\titemDef.name = \"Green firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33167:\n\t\t\titemDef.name = \"Red firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to red.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33169:\n\t\t\titemDef.name = \"K'ril robe top\";\n\t\t\titemDef.description = \"A top worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62558;\n\t\t\titemDef.maleModel = 62559;\n\t\t\titemDef.femaleModel = 62559;\n\t\t\titemDef.modelZoom = 1358;\n\t\t\titemDef.modelRotation1 = 514;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33170:\n\t\t\titemDef.name = \"K'ril robe bottom\";\n\t\t\titemDef.description = \"A robe worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62553;\n\t\t\titemDef.maleModel = 62554;\n\t\t\titemDef.femaleModel = 62554;\n\t\t\titemDef.modelZoom = 1690;\n\t\t\titemDef.modelRotation1 = 435;\n\t\t\titemDef.modelRotation2 = 9;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33171:\n\t\t\titemDef.name = \"K'ril hat\";\n\t\t\titemDef.description = \"A hat worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62551;\n\t\t\titemDef.maleModel = 62552;\n\t\t\titemDef.femaleModel = 62552;\n\t\t\titemDef.modelZoom = 1236;\n\t\t\titemDef.modelRotation1 = 118;\n\t\t\titemDef.modelRotation2 = 10;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33172:\n\t\t\titemDef.name = \"K'ril swords\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62557;\n\t\t\titemDef.femaleModel = 62557;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33173:\n\t\t\titemDef.name = \"K'ril swords (sheathed)\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62556;\n\t\t\titemDef.femaleModel = 62556;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33174:\n\t\t\titemDef.name = \"Pet demonic gorilla\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31241;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33175:\n\t\t\titemDef.name = \"Pet crawling hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5071;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33176:\n\t\t\titemDef.name = \"Pet cave bug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 23854;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33177:\n\t\t\titemDef.name = \"Pet cave crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5066;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33178:\n\t\t\titemDef.name = \"Pet banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5063;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33179:\n\t\t\titemDef.name = \"Pet cave slime\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5786;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33180:\n\t\t\titemDef.name = \"Pet rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5084;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33181:\n\t\t\titemDef.name = \"Pet cockatrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5070;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33182:\n\t\t\titemDef.name = \"Pet pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5083;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33183:\n\t\t\titemDef.name = \"Pet basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5064;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33184:\n\t\t\titemDef.name = \"Pet infernal mage\";\n\t\t\titemDef.modifiedModelColors = new int[] { -26527, -24618, -25152, -25491, 119 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 148, 0, 924, 924 };\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5047;\n\t\t\titemDef.modelZoom = 3940;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 84;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33185:\n\t\t\titemDef.name = \"Pet bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5065;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33186:\n\t\t\titemDef.name = \"Pet jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5081;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33187:\n\t\t\titemDef.name = \"Pet turoth\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5086;\n\t\t\titemDef.modelZoom = 2600;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33188:\n\t\t\titemDef.name = \"Pet aberrant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5085;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 450;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33189:\n\t\t\titemDef.name = \"Pet dust devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5076;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33190:\n\t\t\titemDef.name = \"Pet kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5082;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33191:\n\t\t\titemDef.name = \"Pet skeletal wyvern\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10350;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 27;\n\t\t\titemDef.modelRotation2 = 1634;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33192:\n\t\t\titemDef.name = \"Pet garygoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5078;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33193:\n\t\t\titemDef.name = \"Pet nechryael\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5074;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33194:\n\t\t\titemDef.name = \"Pet abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5062;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33195:\n\t\t\titemDef.name = \"Pet dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26395;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33196:\n\t\t\titemDef.name = \"Pet night beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32933;\n\t\t\titemDef.modelZoom = 7000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33197:\n\t\t\titemDef.name = \"Pet greater abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33198:\n\t\t\titemDef.name = \"Pet crushing hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32922;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33199:\n\t\t\titemDef.name = \"Pet chasm crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32918;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33200:\n\t\t\titemDef.name = \"Pet screaming banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32823;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33201:\n\t\t\titemDef.name = \"Pet twisted banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32847;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33202:\n\t\t\titemDef.name = \"Pet giant rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32919;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33203:\n\t\t\titemDef.name = \"Pet cockathrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32920;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33204:\n\t\t\titemDef.name = \"Pet flaming pyrelord\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32923;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33205:\n\t\t\titemDef.name = \"Pet monstrous basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32924;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33206:\n\t\t\titemDef.name = \"Pet malevolent mage\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32929;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33207:\n\t\t\titemDef.name = \"Pet insatiable bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33208:\n\t\t\titemDef.name = \"Pet insatiable mutated bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32925;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33209:\n\t\t\titemDef.name = \"Pet vitreous jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32852;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33210:\n\t\t\titemDef.name = \"Pet vitreous warped jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32917;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33211:\n\t\t\titemDef.name = \"Pet cave abomination\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32935;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33212:\n\t\t\titemDef.name = \"Pet abhorrent spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32930;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33213:\n\t\t\titemDef.name = \"pet repugnant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33214:\n\t\t\titemDef.name = \"Pet choke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32927;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33215:\n\t\t\titemDef.name = \"Pet king kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32934;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33217:\n\t\t\titemDef.name = \"Pet nuclear smoke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32928;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33218:\n\t\t\titemDef.name = \"Pet marble gargoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34251;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33219:\n\t\t\titemDef.name = \"Pet nechryarch\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32932;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33220:\n\t\t\titemDef.name = \"Pet Patrity\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32035;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33221:\n\t\t\titemDef.name = \"Pet xarpus\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35383;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33222:\n\t\t\titemDef.name = \"Pet nyclocas vasilias\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35182;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33223:\n\t\t\titemDef.name = \"Pet pestilent bloat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35404;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33224:\n\t\t\titemDef.name = \"Pet maiden of sugadinti\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35385;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33225:\n\t\t\titemDef.name = \"Pet lizardman shaman\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4039;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33226:\n\t\t\titemDef.name = \"Pet abyssal sire\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 29477;\n\t\t\titemDef.modelZoom = 9000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33227:\n\t\t\titemDef.name = \"Pet black demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31984;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 144;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11802:\n\t\tcase 11804:\n\t\tcase 11806:\n\t\tcase 11808:\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\tbreak;// godsword sheathing operating\n\n\t\tcase 33228:\n\t\t\titemDef.name = \"Pet greater demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33229:\n\t\t\titemDef.name = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.description = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28075;\n\t\t\titemDef.maleModel = 62683;\n\t\t\titemDef.femaleModel = 62683;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33230:\n\t\t\titemDef.name = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.description = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28059;\n\t\t\titemDef.maleModel = 62684;\n\t\t\titemDef.femaleModel = 62684;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33231:\n\t\t\titemDef.name = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.description = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28070;\n\t\t\titemDef.maleModel = 62685;\n\t\t\titemDef.femaleModel = 62685;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33232:\n\t\t\titemDef.name = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.description = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28060;\n\t\t\titemDef.maleModel = 62686;\n\t\t\titemDef.femaleModel = 62686;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33233:\n\t\t\titemDef.name = \"Pet revenant imp\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34156;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33234:\n\t\t\titemDef.name = \"Pet revenant goblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34262;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33235:\n\t\t\titemDef.name = \"Pet revenant pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34142;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33236:\n\t\t\titemDef.name = \"Pet revenant hobgoblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34157;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33237:\n\t\t\titemDef.name = \"Pet revenant cyclops\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34155;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33238:\n\t\t\titemDef.name = \"Pet revenant hellhound\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34143;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33239:\n\t\t\titemDef.name = \"Pet revenant demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modifiedModelColors = new int[] { 1690, 910, 912, 1814, 1938 };\n\t\t\titemDef.originalModelColors = new int[] { 43078, 43078, 43078, 43078, 43078, 43078 };\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33240:\n\t\t\titemDef.name = \"Pet revenant ork\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34154;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33242:\n\t\t\titemDef.name = \"Pet revenant dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34158;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33243:\n\t\t\titemDef.name = \"Pet revenant knight\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34145;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33244:\n\t\t\titemDef.name = \"Pet revenant dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34163;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33245:\n\t\t\titemDef.name = \"Pet glob\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26074;\n\t\t\titemDef.modelZoom = 10000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33246:\n\t\t\titemDef.name = \"Pet ice queen\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 104;\n\t\t\titemDef.modifiedModelColors = new int[] { 41, 61, 4550, 12224, 25238, 6798 };\n\t\t\titemDef.originalModelColors = new int[] { -22052, -26150, -24343, -22052, -22052, -23327 };\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33247:\n\t\t\titemDef.name = \"Pet enraged tarn\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60322;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33248:\n\t\t\titemDef.name = \"Pet jaltok-jad\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 33012;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33249:\n\t\t\titemDef.name = \"Pet rune dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34668;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33271:\n\t\t\titemDef.name = \"Moo\";\n\t\t\titemDef.description = \"cow goes moo.\";\n\t\t\titemDef.modelId = 23889;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33250:\n\t\t\titemDef.name = \"Swift gloves (Black)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62657;\n\t\t\titemDef.femaleModel = 62658;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33251:\n\t\t\titemDef.name = \"Swift gloves (Red)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62659;\n\t\t\titemDef.femaleModel = 62660;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33252:\n\t\t\titemDef.name = \"Swift gloves (White)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62661;\n\t\t\titemDef.femaleModel = 62662;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33253:\n\t\t\titemDef.name = \"Swift gloves (Yellow)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62663;\n\t\t\titemDef.femaleModel = 62664;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33254:\n\t\t\titemDef.name = \"Spellcaster gloves (Black)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62665;\n\t\t\titemDef.femaleModel = 62666;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33255:\n\t\t\titemDef.name = \"Spellcaster gloves (Red)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62667;\n\t\t\titemDef.femaleModel = 62668;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33256:\n\t\t\titemDef.name = \"Spellcaster gloves (White)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62669;\n\t\t\titemDef.femaleModel = 62670;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33257:\n\t\t\titemDef.name = \"Spellcaster gloves (Yellow)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62671;\n\t\t\titemDef.femaleModel = 62672;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33258:\n\t\t\titemDef.name = \"Tekton longsword\";\n\t\t\titemDef.description = \"Tekton longsword.\";\n\t\t\titemDef.modelId = 62682;\n\t\t\titemDef.maleModel = 62681;\n\t\t\titemDef.femaleModel = 62681;\n\t\t\titemDef.modelZoom = 1445;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33259:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33260:\n\t\t\titemDef.name = \"Pet drake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36160;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33261:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33262:\n\t\t\titemDef.name = \"Valentines Balloon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62766;\n\t\t\titemDef.maleModel = 62767;\n\t\t\titemDef.femaleModel = 62767;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 270;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33263:\n\t\t\titemDef.name = \"Cupid bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62768;\n\t\t\titemDef.maleModel = 62769;\n\t\t\titemDef.femaleModel = 62769;\n\t\t\titemDef.modelZoom = 1072;\n\t\t\titemDef.modelRotation1 = 127;\n\t\t\titemDef.modelRotation2 = 103;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33264:\n\t\t\titemDef.name = \"Halo and horns\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62771;\n\t\t\titemDef.maleModel = 62770;\n\t\t\titemDef.femaleModel = 62770;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 228;\n\t\t\titemDef.modelRotation2 = 141;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33265:\n\t\t\titemDef.name = \"Heart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62782;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33266:\n\t\t\titemDef.name = \"Valentines mystery box\";\n\t\t\titemDef.description = \"You make me hard.\";\n\t\t\titemDef.modelId = 62773;\n\t\t\titemDef.modelZoom = 464;\n\t\t\titemDef.modelRotation1 = 423;\n\t\t\titemDef.modelRotation2 = 1928;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33267:\n\t\t\titemDef.name = \"Staff of adoration\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62774;\n\t\t\titemDef.maleModel = 62775;\n\t\t\titemDef.femaleModel = 62775;\n\t\t\titemDef.modelZoom = 1579;\n\t\t\titemDef.modelRotation1 = 660;\n\t\t\titemDef.modelRotation2 = 48;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33268:\n\t\t\titemDef.name = \"Valentines crossbow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62778;\n\t\t\titemDef.maleModel = 62779;\n\t\t\titemDef.femaleModel = 62779;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33269:\n\t\t\titemDef.name = \"Onyxia Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 2130, 38693 };\n\t\t\titemDef.description = \"Chances at several unqiue items found only in this box! (ex: Tekton Armor)\";\n\t\t\tbreak;\n\t\tcase 33270:\n\t\t\titemDef.name = \"Dragon Hunter Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 1050 };\n\t\t\titemDef.description = \"Chances for items that give bonuses toward dragons. (ex: Dragonhunter Lance)\";\n\t\t\tbreak;\n\t\tcase 33273:\n\t\t\titemDef.name = \"Ancient sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60201;\n\t\t\titemDef.maleModel = 60200;\n\t\t\titemDef.femaleModel = 60200;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33274:\n\t\t\titemDef.name = \"Armadyl staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60203;\n\t\t\titemDef.maleModel = 60202;\n\t\t\titemDef.femaleModel = 60202;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33275:\n\t\t\titemDef.name = \"Bork axe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60205;\n\t\t\titemDef.maleModel = 60204;\n\t\t\titemDef.femaleModel = 60204;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33276:\n\t\t\titemDef.name = \"Bree bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60207;\n\t\t\titemDef.maleModel = 60206;\n\t\t\titemDef.femaleModel = 60206;\n\t\t\titemDef.modelZoom = 1700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33277:\n\t\t\titemDef.name = \"Infernal staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60209;\n\t\t\titemDef.maleModel = 60208;\n\t\t\titemDef.femaleModel = 60208;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33278:\n\t\t\titemDef.name = \"Infernal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60211;\n\t\t\titemDef.maleModel = 60210;\n\t\t\titemDef.femaleModel = 60210;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33279:\n\t\t\titemDef.name = \"Necrolord staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60213;\n\t\t\titemDef.maleModel = 60212;\n\t\t\titemDef.femaleModel = 60212;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33280:\n\t\t\titemDef.name = \"Insert name here\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60215;\n\t\t\titemDef.maleModel = 60214;\n\t\t\titemDef.femaleModel = 60214;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33281:\n\t\t\titemDef.name = \"Infernal bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60219;\n\t\t\titemDef.maleModel = 60218;\n\t\t\titemDef.femaleModel = 60218;\n\t\t\titemDef.modelZoom = 3334;\n\t\t\titemDef.modelRotation1 = 533;\n\t\t\titemDef.modelRotation2 = 1294;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33282:\n\t\t\titemDef.name = \"Infernal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60221;\n\t\t\titemDef.maleModel = 60220;\n\t\t\titemDef.femaleModel = 60220;\n\t\t\titemDef.modelZoom = 2512;\n\t\t\titemDef.modelRotation1 = 317;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = 45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33283:\n\t\t\titemDef.name = \"Imbued Porazdir's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 13263, 13014, 13243, 13000, 13275 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your strength for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33284:\n\t\t\titemDef.name = \"Imbued Justiciar's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 31661, 31418, 31661, 31167, 31445 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Defence for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32285:\n\t\t\titemDef.name = \"Imbued Derwen's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 930, 936, 940, 950 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Attack for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32286:\n\t\t\titemDef.name = \"Bronze fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 5652, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32287:\n\t\t\titemDef.name = \"Iron fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 33, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32288:\n\t\t\titemDef.name = \"Steel fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 61, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32289:\n\t\t\titemDef.name = \"Black fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32290:\n\t\t\titemDef.name = \"Mithril fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 43297, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32291:\n\t\t\titemDef.name = \"Adamant fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 21662, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32292:\n\t\t\titemDef.name = \"Rune fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 36133, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32293:\n\t\t\titemDef.name = \"Dragon fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing. Can also be used for Deep sea fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32294:\n\t\t\titemDef.name = \"Raw eel\";\n\t\t\titemDef.description = \"Slimy\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32295:\n\t\t\titemDef.name = \"Burnt eel\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8724, 3226, 9754 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32296:\n\t\t\titemDef.name = \"Eel\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 8386, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8088, 6032, 57, 2960 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32297:\n\t\t\titemDef.name = \"Raw baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 103, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 7756, 5349 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32298:\n\t\t\titemDef.name = \"Burnt baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 28, 41 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32299:\n\t\t\titemDef.name = \"Baron shark\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 8109, 4795 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32300:\n\t\t\titemDef.name = \"Raw cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60223;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32301:\n\t\t\titemDef.name = \"Burnt cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60227;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32302:\n\t\t\titemDef.name = \"Cavefish\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 60228;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32303:\n\t\t\titemDef.name = \"Dragonfire visage (e)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26456;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modifiedModelColors = new int[] { 45, 41, 33, 24, 20, 57, 22, 37 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 1, 2, 3, 4, 5, 6, 7 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33285:\n\t\t\titemDef.name = \"Easter Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"Chances for all sorts of Easter Items!\";\n\t\t\tbreak;\n\n\t\tcase 33286:\n\t\t\titemDef.name = \"Easter Cape\";\n\t\t\titemDef.inventoryOptions = new String[] { null, \"wear\", null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"An Easter Cape.\";\n\t\t\tbreak;\n\n\t\tcase 33287:\n\t\t\titemDef.name = \"Pet Easter Bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"You've captured the Easter bunny!\";\n\t\t\tbreak;\n\n\t\tcase 33288:\n\t\t\titemDef.name = \"Pet Choco\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 7079 };\n\t\t\tbreak;\n\n\t\tcase 33289:\n\t\t\titemDef.name = \"Pet Milkie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 6040 };\n\t\t\tbreak;\n\n\t\tcase 33290:\n\t\t\titemDef.name = \"Pet Goldie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"oh wow... a rare golden bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 9152 };\n\t\t\tbreak;\n\n\t\tcase 33291:\n\t\t\titemDef.name = \"Pet Blue\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"A blue bunny... kinda looks like the easter bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 35321 };\n\t\t\tbreak;\n\n\t\tcase 33292:\n\t\t\titemDef.name = \"Crazed bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 23901;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"What a bloody mess...\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5413, 5417, 5421 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 111, 127 };\n\t\t\tbreak;\n\n\t\tcase 33293:\n\t\t\titemDef.name = \"Peter Rabbit\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 28602;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"Hi Peter!\";\n\t\t\tbreak;\n\n\t\tcase 33294:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947 };\n\t\t\titemDef.originalModelColors = new int[] { 8128 };\n\t\t\tbreak;\n\n\t\tcase 33295:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 25511 };\n\t\t\tbreak;\n\n\t\tcase 33296:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 38835 };\n\t\t\tbreak;\n\n\t\tcase 33297:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 947 };\n\t\t\tbreak;\n\n\t\tcase 33305:\n\t\t\titemDef.name = \"$10 bond\";\n\t\t\titemDef.description = \"$10 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 84, 84, 84, 84, 84, 84, 84 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33306:\n\t\t\titemDef.name = \"$25 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 87, 87, 87, 87, 87, 87, 87 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33307:\n\t\t\titemDef.name = \"$50 bond\";\n\t\t\titemDef.description = \"$50 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 65, 65, 65, 65, 65, 65, 65 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33308:\n\t\t\titemDef.name = \"$100 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 75, 75, 75, 75, 75, 75, 75 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33309:\n\t\t\titemDef.name = \"$200 bond\";\n\t\t\titemDef.description = \"$200 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 88, 88, 88, 88, 88, 88, 88 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33310:\n\t\t\titemDef.name = \"$500 bond\";\n\t\t\titemDef.description = \"$500 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 85, 85, 85, 85, 85, 85, 85 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33311:\n\t\t\titemDef.name = \"$1000 bond\";\n\t\t\titemDef.description = \"$1000 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 86, 86, 86, 86, 86, 86, 86 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33312:\n\t\t\titemDef.name = \"Armadyl battlestaff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60332;\n\t\t\titemDef.maleModel = 60333;\n\t\t\titemDef.femaleModel = 60333;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 225;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33313:\n\t\t\titemDef.name = \"Colossal platebody\";\n\t\t\titemDef.description = \"Colossal platebody.\";\n\t\t\titemDef.modelId = 60323;\n\t\t\titemDef.maleModel = 60324;\n\t\t\titemDef.femaleModel = 60324;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33314:\n\t\t\titemDef.name = \"Colossal platelegs\";\n\t\t\titemDef.description = \"Colossal platelegs.\";\n\t\t\titemDef.modelId = 60325;\n\t\t\titemDef.maleModel = 60326;\n\t\t\titemDef.femaleModel = 60326;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33315:\n\t\t\titemDef.name = \"Colossal boots\";\n\t\t\titemDef.description = \"Colossal boots.\";\n\t\t\titemDef.modelId = 60329;\n\t\t\titemDef.maleModel = 60329;\n\t\t\titemDef.femaleModel = 60329;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33316:\n\t\t\titemDef.name = \"Colossal gloves\";\n\t\t\titemDef.description = \"Colossal gloves.\";\n\t\t\titemDef.modelId = 60330;\n\t\t\titemDef.maleModel = 60331;\n\t\t\titemDef.femaleModel = 60331;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33317:\n\t\t\titemDef.name = \"Colossal helmet\";\n\t\t\titemDef.description = \"Colossal helmet.\";\n\t\t\titemDef.modelId = 60327;\n\t\t\titemDef.maleModel = 60328;\n\t\t\titemDef.femaleModel = 60328;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33318:\n\t\t\titemDef.name = \"Polypore staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60334;\n\t\t\titemDef.maleModel = 60335;\n\t\t\titemDef.femaleModel = 60335;\n\t\t\titemDef.modelZoom = 3750;\n\t\t\titemDef.modelRotation1 = 1454;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33319:\n\t\t\titemDef.name = \"Ganodermic platebody\";\n\t\t\titemDef.description = \"Ganodermic platebody.\";\n\t\t\titemDef.modelId = 60338;\n\t\t\titemDef.maleModel = 60339;\n\t\t\titemDef.femaleModel = 60339;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33320:\n\t\t\titemDef.name = \"Ganodermic platelegs\";\n\t\t\titemDef.description = \"Ganodermic platelegs.\";\n\t\t\titemDef.modelId = 60340;\n\t\t\titemDef.maleModel = 60341;\n\t\t\titemDef.femaleModel = 60341;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33321:\n\t\t\titemDef.name = \"Ganodermic helmet\";\n\t\t\titemDef.description = \"Ganodermic helmet.\";\n\t\t\titemDef.modelId = 60336;\n\t\t\titemDef.maleModel = 60337;\n\t\t\titemDef.femaleModel = 60337;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33322:\n\t\t\titemDef.name = \"Grotesque platebody\";\n\t\t\titemDef.description = \"Grosteq platebody.\";\n\t\t\titemDef.modelId = 60347;\n\t\t\titemDef.maleModel = 60348;\n\t\t\titemDef.femaleModel = 60348;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33323:\n\t\t\titemDef.name = \"Grotesque platelegs\";\n\t\t\titemDef.description = \"Grosteq platelegs.\";\n\t\t\titemDef.modelId = 60349;\n\t\t\titemDef.maleModel = 60350;\n\t\t\titemDef.femaleModel = 60350;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33324:\n\t\t\titemDef.name = \"Grotesque helmet\";\n\t\t\titemDef.description = \"Grosteqc helmet.\";\n\t\t\titemDef.modelId = 60345;\n\t\t\titemDef.maleModel = 60346;\n\t\t\titemDef.femaleModel = 60346;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33325:\n\t\t\titemDef.name = \"Grotesque cape\";\n\t\t\titemDef.description = \"Grosteq cape.\";\n\t\t\titemDef.modelId = 60351;\n\t\t\titemDef.maleModel = 60352;\n\t\t\titemDef.femaleModel = 60352;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33326:\n\t\t\titemDef.name = \"Stunning Hammer\";\n\t\t\titemDef.description = \"Has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60353;\n\t\t\titemDef.maleModel = 60354;\n\t\t\titemDef.femaleModel = 60354;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33327:\n\t\t\titemDef.name = \"Stunning Katagon platebody\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60356;\n\t\t\titemDef.maleModel = 60357;\n\t\t\titemDef.femaleModel = 60357;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33328:\n\t\t\titemDef.name = \"Stunning Katagon platelegs\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60358;\n\t\t\titemDef.maleModel = 60359;\n\t\t\titemDef.femaleModel = 60359;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33329:\n\t\t\titemDef.name = \"Stunning Katagon helmet\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60360;\n\t\t\titemDef.maleModel = 60361;\n\t\t\titemDef.femaleModel = 60361;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33331:\n\t\t\titemDef.name = \"Ancient platebody\";\n\t\t\titemDef.description = \"Ancient platebody.\";\n\t\t\titemDef.modelId = 60366;\n\t\t\titemDef.maleModel = 60367;\n\t\t\titemDef.femaleModel = 60367;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33332:\n\t\t\titemDef.name = \"Ancient platelegs\";\n\t\t\titemDef.description = \"Ancient platelegs.\";\n\t\t\titemDef.modelId = 60368;\n\t\t\titemDef.maleModel = 60369;\n\t\t\titemDef.femaleModel = 60369;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33334:\n\t\t\titemDef.name = \"Ancient boots\";\n\t\t\titemDef.description = \"Ancient boots.\";\n\t\t\titemDef.modelId = 60372;\n\t\t\titemDef.maleModel = 60372;\n\t\t\titemDef.femaleModel = 60372;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33335:\n\t\t\titemDef.name = \"Ancient gloves\";\n\t\t\titemDef.description = \"Ancient gloves.\";\n\t\t\titemDef.modelId = 60370;\n\t\t\titemDef.maleModel = 60371;\n\t\t\titemDef.femaleModel = 60371;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33336:\n\t\t\titemDef.name = \"Ancient helmet\";\n\t\t\titemDef.description = \"Ancient helmet.\";\n\t\t\titemDef.modelId = 60364;\n\t\t\titemDef.maleModel = 60365;\n\t\t\titemDef.femaleModel = 60365;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33341:\n\t\t\titemDef.name = \"Vanguard helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60391;\n\t\t\titemDef.maleModel = 60392;\n\t\t\titemDef.femaleModel = 60392;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33342:\n\t\t\titemDef.name = \"Vanguard platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60393;\n\t\t\titemDef.maleModel = 60394;\n\t\t\titemDef.femaleModel = 60394;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33343:\n\t\t\titemDef.name = \"Vanguard platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60395;\n\t\t\titemDef.maleModel = 60396;\n\t\t\titemDef.femaleModel = 60396;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33344:\n\t\t\titemDef.name = \"Vanguard boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60398;\n\t\t\titemDef.maleModel = 60398;\n\t\t\titemDef.femaleModel = 60398;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33345:\n\t\t\titemDef.name = \"Vanguard gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60373;\n\t\t\titemDef.maleModel = 60397;\n\t\t\titemDef.femaleModel = 60397;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33346:\n\t\t\titemDef.name = \"Celestial staff of light\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60401;\n\t\t\titemDef.maleModel = 60402;\n\t\t\titemDef.femaleModel = 60402;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 101 };\n\t\t\titemDef.originalModelColors = new int[] { 12 };\n\t\t\titemDef.maleOffset = -6;\n\t\t\titemDef.femaleOffset = -6;\n\t\t\tbreak;\n\n\t\tcase 33347:\n\t\t\titemDef.name = \"Hood of sorrow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60438;\n\t\t\titemDef.maleModel = 60403;\n\t\t\titemDef.femaleModel = 60403;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33348:\n\t\t\titemDef.name = \"Celestial robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60404;\n\t\t\titemDef.maleModel = 60405;\n\t\t\titemDef.femaleModel = 60405;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33349:\n\t\t\titemDef.name = \"Celestial robe legs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60406;\n\t\t\titemDef.maleModel = 60407;\n\t\t\titemDef.femaleModel = 60407;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33350:\n\t\t\titemDef.name = \"Primal 2h sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60408;\n\t\t\titemDef.maleModel = 60409;\n\t\t\titemDef.femaleModel = 60409;\n\t\t\titemDef.modelZoom = 1701;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.modelRotation2 = 1529;\n\t\t\titemDef.modelRotation1 = 1713;\n\t\t\titemDef.modelRotationY = 898;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33353:\n\t\t\titemDef.name = \"Primal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60417;\n\t\t\titemDef.maleModel = 60418;\n\t\t\titemDef.femaleModel = 60418;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.modelRotation2 = 1793;\n\t\t\titemDef.modelRotation1 = 1473;\n\t\t\titemDef.modelRotationY = 1121;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33354:\n\t\t\titemDef.name = \"Primal maul\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60419;\n\t\t\titemDef.maleModel = 60420;\n\t\t\titemDef.femaleModel = 60420;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33359:\n\t\t\titemDef.name = \"Primal rapier\";\n\t\t\titemDef.description = \"Good for fighting the ...\";\n\t\t\titemDef.modelId = 60433;\n\t\t\titemDef.maleModel = 60433;\n\t\t\titemDef.femaleModel = 60433;\n\t\t\titemDef.modelZoom = 1300;\n\t\t\titemDef.modelRotation1 = 1401;\n\t\t\titemDef.modelRotation2 = 1724;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 15;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33360:\n\t\t\titemDef.name = \"Primal spear\";\n\t\t\titemDef.description = \"Good for fighting the Corperal Beast.\";\n\t\t\titemDef.modelId = 60434;\n\t\t\titemDef.maleModel = 60435;\n\t\t\titemDef.femaleModel = 60435;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -10;\n\t\t\titemDef.maleOffset = -10;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33361:\n\t\t\titemDef.name = \"Primal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60436;\n\t\t\titemDef.maleModel = 60437;\n\t\t\titemDef.femaleModel = 60437;\n\t\t\titemDef.modelZoom = 1330;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 148;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33362:\n\t\t\titemDef.name = \"Chitin helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60445;\n\t\t\titemDef.maleModel = 60446;\n\t\t\titemDef.femaleModel = 60446;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33364:\n\t\t\titemDef.name = \"Chitin platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60447;\n\t\t\titemDef.maleModel = 60448;\n\t\t\titemDef.femaleModel = 60448;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33365:\n\t\t\titemDef.name = \"Chitin platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60449;\n\t\t\titemDef.maleModel = 60450;\n\t\t\titemDef.femaleModel = 60450;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33366:\n\t\t\titemDef.name = \"Chitin cape\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60443;\n\t\t\titemDef.maleModel = 60444;\n\t\t\titemDef.femaleModel = 60444;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33367:\n\t\t\titemDef.name = \"Supreme void helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60467;\n\t\t\titemDef.maleModel = 60464;\n\t\t\titemDef.femaleModel = 60464;\n\t\t\titemDef.modelZoom = 900;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33368:\n\t\t\titemDef.name = \"Supreme void robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60468;\n\t\t\titemDef.maleModel = 60465;\n\t\t\titemDef.femaleModel = 60465;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33369:\n\t\t\titemDef.name = \"Supreme void robe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60469;\n\t\t\titemDef.maleModel = 60466;\n\t\t\titemDef.femaleModel = 60466;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33370:\n\t\t\titemDef.name = \"Korasi's sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60471;\n\t\t\titemDef.maleModel = 60470;\n\t\t\titemDef.femaleModel = 60470;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 330;\n\t\t\titemDef.modelRotation2 = 1505;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\n\t\tcase 33371:\n\t\t\titemDef.name = \"Spiked slayer helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60475;\n\t\t\titemDef.maleModel = 60476;\n\t\t\titemDef.femaleModel = 60476;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33372:\n\t\t\titemDef.name = \"Slayer platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60478;\n\t\t\titemDef.maleModel = 60479;\n\t\t\titemDef.femaleModel = 60479;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33373:\n\t\t\titemDef.name = \"Slayer platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60474;\n\t\t\titemDef.maleModel = 60477;\n\t\t\titemDef.femaleModel = 60477;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33374:\n\t\t\titemDef.name = \"Slayer boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60472;\n\t\t\titemDef.maleModel = 60473;\n\t\t\titemDef.femaleModel = 60473;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33375:\n\t\t\titemDef.name = \"Blood Justiciar helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60482;\n\t\t\titemDef.maleModel = 60483;\n\t\t\titemDef.femaleModel = 60483;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33376:\n\t\t\titemDef.name = \"Blood Justiciar platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60484;\n\t\t\titemDef.maleModel = 60485;\n\t\t\titemDef.femaleModel = 60485;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33377:\n\t\t\titemDef.name = \"Blood justiciar platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60486;\n\t\t\titemDef.maleModel = 60487;\n\t\t\titemDef.femaleModel = 60487;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33378:\n\t\t\titemDef.name = \"Blood justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60488;\n\t\t\titemDef.maleModel = 60488;\n\t\t\titemDef.femaleModel = 60488;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33379:\n\t\t\titemDef.name = \"Blood justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60489;\n\t\t\titemDef.maleModel = 60490;\n\t\t\titemDef.femaleModel = 60490;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33380:\n\t\t\titemDef.name = \"Blood scythe of vitur\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60480;\n\t\t\titemDef.maleModel = 60481;\n\t\t\titemDef.femaleModel = 60481;\n\t\t\titemDef.modelZoom = 3850;\n\t\t\titemDef.modelRotation1 = 727;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33381:\n\t\t\titemDef.name = \"Skiller cape\";\n\t\t\titemDef.description = \"Skiller cape.\";\n\t\t\titemDef.modelId = 60494;\n\t\t\titemDef.maleModel = 60493;\n\t\t\titemDef.femaleModel = 60492;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33382:\n\t\t\titemDef.name = \"Justiciar faceguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33383:\n\t\t\titemDef.name = \"Justiciar faceguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33384:\n\t\t\titemDef.name = \"Justiciar faceguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33385:\n\t\t\titemDef.name = \"Justiciar faceguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33387:\n\t\t\titemDef.name = \"Justiciar faceguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33389:\n\t\t\titemDef.name = \"Justiciar faceguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33390:\n\t\t\titemDef.name = \"Justiciar chestguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33391:\n\t\t\titemDef.name = \"Justiciar chestguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33392:\n\t\t\titemDef.name = \"Justiciar chestguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33393:\n\t\t\titemDef.name = \"Justiciar chestguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33394:\n\t\t\titemDef.name = \"Justiciar chestguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33395:\n\t\t\titemDef.name = \"Justiciar chestguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33396:\n\t\t\titemDef.name = \"Justiciar legguards (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33397:\n\t\t\titemDef.name = \"Justiciar legguards (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33398:\n\t\t\titemDef.name = \"Justiciar legguards (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33399:\n\t\t\titemDef.name = \"Justiciar legguards (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33400:\n\t\t\titemDef.name = \"Justiciar legguards (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33401:\n\t\t\titemDef.name = \"Justiciar legguards (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33402:\n\t\t\titemDef.name = \"Pet andy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 50169;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33403:\n\t\t\titemDef.name = \"Pet mod divine\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 14283;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33404:\n\t\t\titemDef.name = \"Celestial fairy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60491;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 947 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 937, 11200 };\n\t\t\titemDef.originalModelColors = new int[] { 42663, 41883 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33405:\n\t\t\titemDef.name = \"Lava partyhat (red)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33406:\n\t\t\titemDef.name = \"Lava partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33407:\n\t\t\titemDef.name = \"Lava partyhat (cyan)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33408:\n\t\t\titemDef.name = \"Lava partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33409:\n\t\t\titemDef.name = \"Infernal partyhat (blue)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33410:\n\t\t\titemDef.name = \"Infernal partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33411:\n\t\t\titemDef.name = \"Infernal partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33412:\n\t\t\titemDef.name = \"Infernal partyhat (rainbow)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33413:\n\t\t\titemDef.name = \"Celestial partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33414:\n\t\t\titemDef.name = \"Blood partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33415:\n\t\t\titemDef.name = \"Shadow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33416:\n\t\t\titemDef.name = \"Light blue partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33417:\n\t\t\titemDef.name = \"Easter partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33418:\n\t\t\titemDef.name = \"Dark sparkle partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33419:\n\t\t\titemDef.name = \"Rainbow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33420:\n\t\t\titemDef.name = \"Fire partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33421:\n\t\t\titemDef.name = \"Pet star sprite\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60506;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33422:\n\t\t\titemDef.name = \"Stargaze Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33423:\n\t\t\titemDef.name = \"Star Dust\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Exchange\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 60496;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 279;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 47;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33424:\n\t\t\titemDef.name = \"Blood twisted bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32799;\n\t\t\titemDef.maleModel = 32674;\n\t\t\titemDef.femaleModel = 32674;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10318, 10334 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66 };\n\t\t\titemDef.modifiedModelColors = new int[] { 14236, 13223 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33425:\n\t\t\titemDef.name = \"Celestial crow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60507;\n\t\t\titemDef.modelZoom = 1000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10382 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10378, 10502 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33426:\n\t\t\titemDef.name = \"Celestial penguin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60508;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10343 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 16, 12, 20, 24, 8, 10332, 10337 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33427:\n\t\t\titemDef.name = \"Celestial snake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60509;\n\t\t\titemDef.modelZoom = 1800;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10644, 10512 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78, 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10413, 10405, 10524 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33428:\n\t\t\titemDef.name = \"Celestial scorpion\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60510;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 142 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 4884, 4636, 3974, 4525, 4645 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33429:\n\t\t\titemDef.name = \"Armadyl dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\tbreak;\n\n\t\tcase 33430:\n\t\t\titemDef.name = \"Guthix dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\tbreak;\n\n\t\tcase 33431:\n\t\t\titemDef.name = \"Zamorak dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\tbreak;\n\n\t\tcase 33432:\n\t\t\titemDef.name = \"Ancient dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\tbreak;\n\n\t\tcase 33433:\n\t\t\titemDef.name = \"Bandos dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\tbreak;\n\n\t\tcase 33434:\n\t\t\titemDef.name = \"Saradomin dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\tbreak;\n\n\t\tcase 33435:\n\t\t\titemDef.name = \"Celestial egg\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 7171;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelRotation2 = 16;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 476 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Hatch\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\tcase 33436:\n\t\t\titemDef.name = \"Elite void top (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10586;\n\t\t\titemDef.maleModel = 10687;\n\t\t\titemDef.anInt188 = 10681;\n\t\t\titemDef.femaleModel = 10694;\n\t\t\titemDef.anInt164 = 10688;\n\t\t\titemDef.modelZoom = 1221;\n\t\t\titemDef.modelRotation1 = 459;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33437:\n\t\t\titemDef.name = \"Elite void robe (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60528;\n\t\t\titemDef.maleModel = 60526;\n\t\t\titemDef.femaleModel = 60527;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33438:\n\t\t\titemDef.name = \"Blood chest\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60516;\n\t\t\titemDef.modelZoom = 2640;\n\t\t\titemDef.modelRotation1 = 114;\n\t\t\titemDef.modelRotation2 = 1883;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33439:\n\t\t\titemDef.name = \"Blood bird\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60517;\n\t\t\titemDef.modelZoom = 2768;\n\t\t\titemDef.modelRotation1 = 141;\n\t\t\titemDef.modelRotation2 = 1790;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.originalTextureColors = new int[] { 1946, 2983, 6084, 2735, 5053, 6082, 4013, 2733, 4011, 2880,\n\t\t\t\t\t8150 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66 };\n\t\t\tbreak;\n\n\t\tcase 33440:\n\t\t\titemDef.name = \"Blood Death\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60441;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33442:\n\t\t\titemDef.name = \"10 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33446:\n\t\t\titemDef.name = \"10 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33450:\n\t\t\titemDef.name = \"10 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33454:\n\t\t\titemDef.name = \"10 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33458:\n\t\t\titemDef.name = \"10 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33462:\n\t\t\titemDef.name = \"10 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33443:\n\t\t\titemDef.name = \"30 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33447:\n\t\t\titemDef.name = \"30 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33451:\n\t\t\titemDef.name = \"30 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33455:\n\t\t\titemDef.name = \"30 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33459:\n\t\t\titemDef.name = \"30 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33463:\n\t\t\titemDef.name = \"30 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33444:\n\t\t\titemDef.name = \"60 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33448:\n\t\t\titemDef.name = \"60 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33452:\n\t\t\titemDef.name = \"60 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33456:\n\t\t\titemDef.name = \"60 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33460:\n\t\t\titemDef.name = \"60 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33464:\n\t\t\titemDef.name = \"60 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33445:\n\t\t\titemDef.name = \"120 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33449:\n\t\t\titemDef.name = \"120 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33453:\n\t\t\titemDef.name = \"120 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33457:\n\t\t\titemDef.name = \"120 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33461:\n\t\t\titemDef.name = \"120 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33465:\n\t\t\titemDef.name = \"120 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33466:\n\t\t\titemDef.name = \"Deathtouched dart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60534;\n\t\t\titemDef.maleModel = 60533;\n\t\t\titemDef.femaleModel = 60533;\n\t\t\titemDef.modelZoom = 1053;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33467:\n\t\t\titemDef.name = \"Justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60535;\n\t\t\titemDef.maleModel = 60535;\n\t\t\titemDef.femaleModel = 60535;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33468:\n\t\t\titemDef.name = \"Justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31022;\n\t\t\titemDef.maleModel = 31006;\n\t\t\titemDef.femaleModel = 31013;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 2015;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 123, 70 };\n\t\t\titemDef.originalModelColors = new int[] { 6736, 59441 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33469:\n\t\t\titemDef.name = \"Magic mushroom\";\n\t\t\titemDef.description = \"offers a 10% droprate increase while this pet follows you.\";\n\t\t\titemDef.modelId = 60532;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33470:\n\t\t\titemDef.name = \"Twisted staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60538;\n\t\t\titemDef.maleModel = 60539;\n\t\t\titemDef.femaleModel = 60539;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33471:\n\t\t\titemDef.name = \"Cowboy hat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60540;\n\t\t\titemDef.maleModel = 60541;\n\t\t\titemDef.femaleModel = 60541;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 108;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33472:\n\t\t\titemDef.name = \"Stick\";\n\t\t\titemDef.description = \"Careful of that chub.\";\n\t\t\titemDef.modelId = 60545;\n\t\t\titemDef.maleModel = 60545;\n\t\t\titemDef.femaleModel = 60545;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33473:\n\t\t\titemDef.name = \"#1 Tob cape\";\n\t\t\titemDef.description = \"Reward to the first to complete tob solo and in a team.\";\n\t\t\titemDef.modelId = 60551;\n\t\t\titemDef.maleModel = 60550;\n\t\t\titemDef.femaleModel = 60550;\n\t\t\titemDef.modelZoom = 2295;\n\t\t\titemDef.modelRotation1 = 367;\n\t\t\titemDef.modelRotation2 = 1212;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33474:\n\t\t\titemDef.name = \"Supreme void upgrade kit\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4847;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 163;\n\t\t\titemDef.modelRotation2 = 73;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { -32709, 10295, 10304, 10287, 10275, 10283 };\n\t\t\titemDef.originalModelColors = new int[] { 10, 10, 10, 10, 10, 10 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33475:\n\t\t\titemDef.name = \"Hunter's penguin\";\n\t\t\titemDef.description = \"the one and only's pet.\";\n\t\t\titemDef.modelId = 60548;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33476:\n\t\t\titemDef.name = \"Chef Harambe\";\n\t\t\titemDef.description = \"I like to dip my balls in a deep fryer.\";\n\t\t\titemDef.modelId = 60921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33477:\n\t\t\titemDef.name = \"Void knight champion jr\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60463;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33478:\n\t\t\titemDef.name = \"Custom pet token\";\n\t\t\titemDef.description = \"Trade this to corey after filling out a form on the forums post custom pets\";\n\t\t\titemDef.modelId = 13838;\n\t\t\titemDef.modelZoom = 530;\n\t\t\titemDef.modelRotation1 = 415;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33479:\n\t\t\titemDef.name = \"Mr jaycorr\";\n\t\t\titemDef.description = \"The autistic one.\";\n\t\t\titemDef.modelId = 60592;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33480:\n\t\t\titemDef.name = \"Broom broom\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60593;\n\t\t\titemDef.maleModel = 60593;\n\t\t\titemDef.femaleModel = 60593;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33481:\n\t\t\titemDef.name = \"Test\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11773:\n\t\tcase 11771:\n\t\tcase 11770:\n\t\tcase 11772:\n\t\t\titemDef.anInt196 += 45;\n\t\t\tbreak;\n\t\tcase 22610:\n\t\t\titemDef.name = \"Vesta's spear (deg)\";\n\t\t\tbreak;\n\t\tcase 22614:\n\t\t\titemDef.name = \"Vesta's longsword (deg)\";\n\t\t\tbreak;\n\t\tcase 22616:\n\t\t\titemDef.name = \"Vesta's chainbody (deg)\";\n\t\t\tbreak;\n\t\tcase 22619:\n\t\t\titemDef.name = \"Vesta's plateskirt (deg)\";\n\t\t\tbreak;\n\t\tcase 22622:\n\t\t\titemDef.name = \"Statius's warhammer (deg)\";\n\t\t\tbreak;\n\t\tcase 22625:\n\t\t\titemDef.name = \"Statius's full helm (deg)\";\n\t\t\tbreak;\n\t\tcase 22628:\n\t\t\titemDef.name = \"Statius's platebody (deg)\";\n\t\t\tbreak;\n\t\tcase 22631:\n\t\t\titemDef.name = \"Statius's platelegs (deg)\";\n\t\t\tbreak;\n\t\tcase 22638:\n\t\t\titemDef.name = \"Morrigan's coif (deg)\";\n\t\t\tbreak;\n\t\tcase 22641:\n\t\t\titemDef.name = \"Morrigan's leather body (deg)\";\n\t\t\tbreak;\n\t\tcase 22644:\n\t\t\titemDef.name = \"Morrigan's leather chaps (deg)\";\n\t\t\tbreak;\n\t\tcase 22647:\n\t\t\titemDef.name = \"Zuriel's staff (deg)\";\n\t\t\tbreak;\n\t\tcase 22650:\n\t\t\titemDef.name = \"Zuriel's hood (deg)\";\n\t\t\tbreak;\n\t\tcase 22653:\n\t\t\titemDef.name = \"Zuriel's robe top (deg)\";\n\t\t\tbreak;\n\t\tcase 22656:\n\t\t\titemDef.name = \"Zuriel's robe bottom (deg)\";\n\t\t\tbreak;\n\n\t\tcase 13303:\n\t\t\titemDef.name = \"Event Key (Tarn)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13302:\n\t\t\titemDef.name = \"Event Key (Graardor)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13305:\n\t\t\titemDef.name = \"Tastey-Looking Key\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 2697:\n\t\t\titemDef.name = \"$10 Scroll\";\n\t\t\titemDef.description = \"Get donor status at a cheaper cost!\";\n\t\t\tbreak;\n\t\tcase 2698:\n\t\t\titemDef.name = \"$50 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Super Donator status.\";\n\t\t\tbreak;\n\t\tcase 2699:\n\t\t\titemDef.name = \"$100 Donator\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Extreme Donator status.\";\n\t\t\tbreak;\n\t\tcase 2700:\n\t\t\titemDef.name = \"$5 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Legendary Donator status.\";\n\t\t\tbreak;\n\t\tcase 1464:\n\t\t\titemDef.name = \"Vote ticket\";\n\t\t\titemDef.description = \"This ticket can be exchanged for a voting point.\";\n\t\t\tbreak;\n\n\t\tcase 11739:\n\t\t\titemDef.name = \"Daily reward box\";\n\t\t\titemDef.description = \"Open this box for a daily reward.\";\n\t\t\tbreak;\n\n\t\tcase 13066:// super set\n\t\tcase 12873:// barrows\n\t\tcase 12875:\n\t\tcase 12877:\n\t\tcase 12879:\n\t\tcase 12881:\n\t\tcase 12883:\n\t\tcase 12789:// clue box\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "public interface Item {\n\n String getName();\n\n String getDescription();\n\n int getSkill(SkillType skillType);\n\n String getSkillDescr();\n}", "@Override\n public void modifyItemRPClassDefinition(RPClass item) {\n }", "public void setItem(Item item) {\n this.item = item;\n }", "protected abstract Item createTestItem1();", "ICpItem getCpItem();", "public ItemType getItemType(TypeHierarchy th) {\n return argument[0].getItemType(th); //AUTO\n }", "public Item() {\r\n this.name = \"\";\r\n this.description = \"\";\r\n this.price = 0F;\r\n this.type = \"\";\r\n this.available = 0;\r\n this.wholesaler = new Wholesaler();\r\n this.wholesalerId = 0;\r\n this.category = new Category();\r\n this.categoryId = 0; \r\n }", "public Item getItem(final String pItem){return this.aItemsList.getItem(pItem);}", "protected abstract Item createTestItem2();", "protected abstract LibraryItem getItemFromFields();", "public XSSimpleType getItemType() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: laload \n // 1: aastore \n // 2: dadd \n // 3: imul \n // 4: lsub \n // 5: ldiv \n // 6: ladd \n // 7: aastore \n // 8: lsub \n // 9: ineg \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- ---- ------------------------------------------\n // 0 10 0 this Lcom/sun/xml/xsom/impl/ListSimpleTypeImpl;\n // \n // The error that occurred was:\n // \n // java.lang.ArrayIndexOutOfBoundsException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "public void setItem(T item) {\n this.item = item;\n }", "public interface IItem extends IAction {\n\n\t/**\n\t * Additional bag option to handle quantity manifest\n\t * @return bagEmpty\n\t */\n\tpublic abstract boolean depleteItem();\n}", "public Item getItemByKey(String key) {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an object.\");\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = com.rpg.framework.database.Protocol.ItemType.ITEM_TYPE_USE;\n onChanged();\n return this;\n }", "void add(Item item);", "@Override\r\n public ItemStack getItemStack(PartItemStack type) {\n return new ItemStack(this.item);\r\n }", "public ItemType getResultItemType() {\n net.sf.saxon.type.ItemType it =\n exp.getInternalExpression().getItemType();\n return new ConstructedItemType(it, processor);\n }", "public void removeType(TradeItem someItem) {\n Iterator<TradeItem> itemIterator = items.iterator();\n while (itemIterator.hasNext()) {\n if (itemIterator.next().getClass() == someItem.getClass()) {\n itemIterator.remove();\n }\n }\n }", "public Item createItem() {\n if(pickUpImplementation == null)\n {\n pickUpImplementation = new DefaultPickUp();\n }\n\n if(lookImplementation == null)\n {\n lookImplementation = new DefaultLook(R.string.default_look);\n }\n\n if(defaultItemInteraction == null)\n {\n throw new IllegalArgumentException(\"No default interaction specified!\");\n }\n\n\n return new Item(\n id,\n name,\n pickUpImplementation,\n lookImplementation,\n useImplementation,\n defaultItemInteraction\n );\n }", "public ItemType getItemType(TypeHierarchy th) {\n\t return reqItemType;\n\t}", "public GItem(Item i) {\n this.mGItem = i.getId();\n this.title = i.getTitle();\n\n if (!i.getAddress().equals(\"\")){\n this.address = i.getAddress();\n }\n\n if (i instanceof OfficerItem){\n this.type = 1;\n\n } else if (i instanceof CompanyItem){\n this.type = 0;\n }\n\n }", "public static ItemStack item(XMaterial type, String name, String... lore) {\r\n\t\tItemStack is = type.parseItem();\r\n\t\tItemMeta im = is.getItemMeta();\r\n\t\tim.addItemFlags(ItemFlag.values());\r\n\t\tis.setItemMeta(applyMeta(im, name, lore));\r\n\t\treturn is;\r\n\t}", "private void readItems() {\n }", "public Object get(String itemName);", "public Object getItem(Node itemNode) throws XmlRecipeException;", "public interface IItemList<StackType extends IAEStack> extends IItemContainer<StackType>, Iterable<StackType>\n{\n\n\t/**\n\t * add a stack to the list stackSize is used to add to stackSize, this will merge the stack with an item already in\n\t * the list if found.\n\t * \n\t * @param option stacktype option\n\t */\n\tpublic void addStorage(StackType option); // adds a stack as stored\n\n\t/**\n\t * add a stack to the list as craftable, this will merge the stack with an item already in the list if found.\n\t * \n\t * @param option stacktype option\n\t */\n\tpublic void addCrafting(StackType option);\n\n\t/**\n\t * add a stack to the list, stack size is used to add to requestable, this will merge the stack with an item already\n\t * in the list if found.\n\t * \n\t * @param option stacktype option\n\t */\n\tpublic void addRequestable(StackType option); // adds a stack as requestable\n\n\t/**\n\t * @return the first item in the list\n\t */\n\tStackType getFirstItem();\n\n\t/**\n\t * @return the number of items in the list\n\t */\n\tint size();\n\n\t/**\n\t * allows you to iterate the list.\n\t */\n\t@Override\n\tpublic Iterator<StackType> iterator();\n\n\t/**\n\t * resets stack sizes to 0.\n\t */\n\tvoid resetStatus();\n\n}", "@Override\n public Optional<FridgeItemEntity> addItem(String fridgeId, String itemId, String itemType) {\n return Optional.empty();\n }", "public void setItem (Item item)\n\t{\n\t\tthis.item = item;\n\t}", "public interface DataType extends CodeItem {\n}", "public interface LocatedItem<E> {\r\n /**\r\n * Get the item.\r\n * \r\n * @return\r\n */\r\n public E getItem();\r\n\r\n /**\r\n * Get the ontology URI to which the item belongs.\r\n * \r\n * @return\r\n */\r\n public String getOntologyURI();\r\n}", "public ItemRecord() {\n super(Item.ITEM);\n }", "public void setItem (Object anObject)\r\n {\r\n // TODO: implement (?)\r\n }" ]
[ "0.7838396", "0.74098206", "0.7218069", "0.71742415", "0.7123452", "0.7112963", "0.71016115", "0.6994823", "0.69143265", "0.69143265", "0.6911713", "0.68600285", "0.6846953", "0.6801383", "0.6714348", "0.6709779", "0.66978717", "0.66978717", "0.6668254", "0.66451037", "0.66191405", "0.6599857", "0.65182686", "0.65041184", "0.64893687", "0.64807177", "0.6434953", "0.64130974", "0.64048755", "0.63782674", "0.63569635", "0.6341438", "0.6315945", "0.6281369", "0.6229621", "0.6217492", "0.6214324", "0.61981523", "0.61952895", "0.61897516", "0.61885643", "0.6187006", "0.6161647", "0.6160149", "0.61601406", "0.6145183", "0.6141694", "0.61202216", "0.6118498", "0.6118498", "0.61105704", "0.6095531", "0.6093263", "0.6092521", "0.6079298", "0.6077155", "0.6066911", "0.6066636", "0.6066555", "0.6061766", "0.6055328", "0.6051473", "0.6029", "0.6028908", "0.60257983", "0.6021863", "0.6017224", "0.6007734", "0.59763414", "0.595817", "0.59474534", "0.5940673", "0.5930327", "0.5923346", "0.5913837", "0.5905298", "0.5902452", "0.58909994", "0.58835226", "0.5876334", "0.58762467", "0.5871321", "0.58706284", "0.5867847", "0.58668", "0.58629555", "0.5859153", "0.58581966", "0.58516854", "0.5848771", "0.5847336", "0.5834691", "0.58272344", "0.5807325", "0.5803375", "0.5798826", "0.5792544", "0.57905716", "0.57835656", "0.5782698" ]
0.61368245
47
Please do not use, item type API not publicly released yet.
public boolean canBePromotedTo(ItemType type) { return this.isTypeOf(type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getItemType() {\n return ITEM_TYPE;\n }", "@Override\n\tprotected DataTypes getDataType() {\n\t\treturn DataTypes.ITEM;\n\t}", "ItemType(String itemCode) {\n code = itemCode;\n }", "public String getItemType() {\n\t\treturn itemType;\n\t}", "public ItemType getType();", "public void setItemType(String itemType) {\n\t\tthis.itemType = itemType;\n\t}", "@Override // see item.java\n\tpublic void useItem() {\n\n\t}", "public ItemType getType()\n {\n\treturn type;\n }", "ItemType(String code) {\n this.code = code;\n }", "ItemType(String code) {\n this.code = code;\n }", "public Item(String name, ItemType type)\n {\n\tthis.name = name;\n\tthis.type = type;\n }", "public ItemType getType() {\n return type;\n }", "public ItemType getItemType(){return null;}", "public interface Item {\n \n /**\n * Returns the name of the item\n * @return \n */\n public String getName();\n \n /**\n * Returns the price of the item\n * @return \n */\n public double getPrice();\n \n /**\n * Returns the # of the items\n * @return \n */\n public int getQuantity();\n /**\n * Returns the item type\n * @return ItemCategory\n */\n public ItemCategory getCategory();\n}", "@Test\n public void getItemType () {\n Assert.assertEquals(\"SPECIAL\", bomb.getItemType().name());\n }", "public interface Item {\n}", "public void setItem(ItemType item) {\n\t this.item = item;\n\t}", "public void setItem(ItemType item) {\n\t this.item = item;\n\t}", "public Item getItem(String typeItem){\r\n if(typeItem.equals(\"coeur\")){\r\n Item coeur = new Coeur();\r\n return coeur;\r\n } else if(typeItem.equals(\"potionvie\")){\r\n Item potion = new Potion();\r\n return potion;\r\n } else if(typeItem.equals(\"hexaforce\")){\r\n Item hexa = new Hexaforce();\r\n return hexa;\r\n } else {\r\n return null;\r\n }\r\n }", "public interface ItemDescriptor {\n\n /**\n * Get the ID of the item\n *\n * @return item id\n */\n public int getID();\n\n /**\n * Get the name of the item\n *\n * @return item name\n */\n public String getName();\n\n /**\n * Get the type descriptor\n *\n * @return item type\n */\n public ItemType getType();\n\n}", "com.rpg.framework.database.Protocol.ItemType getType();", "@CatalogedBy(ItemTypes.class)\npublic interface ItemType extends CatalogType, Translatable {\n\n /**\n * Gets the id of this item.\n *\n * <p>Ex. Minecraft registers a golden carrot as\n * \"minecraft:golden_carrot\".</p>\n *\n * @return The id\n */\n @Override\n String getName();\n\n /**\n * Get the default maximum quantity for\n * {@link ItemStack}s of this item.\n *\n * @return Max stack quantity\n */\n int getMaxStackQuantity();\n\n /**\n * Gets the default {@link Property} of this {@link ItemType}.\n *\n * <p>While item stacks do have properties, generally, there is an\n * intrinsic default property for many item types. However, it should be\n * considered that when mods are introducing their own custom items, they\n * too could introduce different item properties based on various data on\n * the item stack. The default properties retrieved from here should merely\n * be considered as a default, not as a definitive property.</p>\n *\n * @param propertyClass The item property class\n * @param <T> The type of item property\n * @return The item property, if available\n */\n <T extends Property<?, ?>> Optional<T> getDefaultProperty(Class<T> propertyClass);\n\n}", "public String getItemObjectType() {\r\n\t\treturn itemObjectType;\r\n\t}", "public interface BaseItem {\n}", "public interface Item {\n void fill(RecyclerView.ViewHolder viewHolder);\n\n int getType();\n\n}", "public Item convertToItem(Object value, XQItemType type) throws XQException;", "@Override\n\tpublic Class<? extends Item> getItemClass() {\n\t\treturn MarkItem.class;\n\t}", "public com.rpg.framework.database.Protocol.ItemType getType() {\n return type_;\n }", "public static boolean ItemType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ItemType\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, ITEM_TYPE, \"<item type>\");\n r = KindTest(b, l + 1);\n if (!r) r = GeneralItemType(b, l + 1);\n if (!r) r = FunctionTest(b, l + 1);\n if (!r) r = MapTest(b, l + 1);\n if (!r) r = ArrayTest(b, l + 1);\n if (!r) r = AtomicOrUnionType(b, l + 1);\n if (!r) r = ParenthesizedItemType(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public static int getItemTypes(ClipData.Item item) {\n\t\tint types = 0;\n\t\tif (item.getText() != null) {\n\t\t\ttypes |= ITEM_TYPE_TEXT;\n\t\t}\n\t\tif (item.getHtmlText() != null) {\n\t\t\ttypes |= ITEM_TYPE_HTML;\n\t\t}\n\t\tif (item.getUri() != null) {\n\t\t\ttypes |= ITEM_TYPE_URI;\n\t\t}\n\t\tif (item.getIntent() != null) {\n\t\t\ttypes |= ITEM_TYPE_INTENT;\n\t\t}\n\t\t\n\t\treturn types;\n\t}", "public com.rpg.framework.database.Protocol.ItemType getType() {\n return type_;\n }", "private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}", "protected abstract void makeItem();", "public void setItemObjectType(String itemObjectType) {\r\n\t\tthis.itemObjectType = itemObjectType;\r\n\t}", "private static JsonItemType toBasicJson(ItemType itemType) {\r\n\t\tJsonItemType jsonItemType = new JsonItemType();\r\n\t\tapplyBasicJsonValues(jsonItemType, itemType);\r\n\t\treturn jsonItemType;\r\n\t}", "@Override\n public Type getItemType() {\n return Type.WEAPON;\n }", "public interface SystemItem {\n}", "private static ItemType random() {\n return ITEM_TYPES.get(RANDOM.nextInt(SIZE));\n }", "public ItemType getDynamicType() {\n throw new UnsupportedOperationException(\"Operation not defined\");\n }", "public interface MultiItemInterface {\n int getItemType();\n int getSpanSize();\n}", "public interface XQItemType extends XQSequenceType {\r\n\r\n static int XQBASETYPE_ANYATOMICTYPE = 4;\r\n static int XQBASETYPE_ANYSIMPLETYPE = 3;\r\n static int XQBASETYPE_ANYTYPE = 2;\r\n static int XQBASETYPE_ANYURI = 8;\r\n static int XQBASETYPE_BASE64BINARY = 9;\r\n static int XQBASETYPE_BOOLEAN = 10;\r\n static int XQBASETYPE_BYTE = 31;\r\n static int XQBASETYPE_DATE = 11;\r\n static int XQBASETYPE_DATETIME = 16;\r\n static int XQBASETYPE_DAYTIMEDURATION = 7;\r\n static int XQBASETYPE_DECIMAL = 17;\r\n static int XQBASETYPE_DOUBLE = 18;\r\n static int XQBASETYPE_DURATION = 19;\r\n static int XQBASETYPE_ENTITIES = 50;\r\n static int XQBASETYPE_ENTITY = 48;\r\n static int XQBASETYPE_FLOAT = 20;\r\n static int XQBASETYPE_GDAY = 21;\r\n static int XQBASETYPE_GMONTH = 22;\r\n static int XQBASETYPE_GMONTHDAY = 23;\r\n static int XQBASETYPE_GYEAR = 24;\r\n static int XQBASETYPE_GYEARMONTH = 25;\r\n static int XQBASETYPE_HEXBINARY = 26;\r\n static int XQBASETYPE_ID = 46;\r\n static int XQBASETYPE_IDREF = 47;\r\n static int XQBASETYPE_IDREFS = 49;\r\n static int XQBASETYPE_INT = 12;\r\n static int XQBASETYPE_INTEGER = 13;\r\n static int XQBASETYPE_LANGUAGE = 42;\r\n static int XQBASETYPE_LONG = 15;\r\n static int XQBASETYPE_NAME = 43;\r\n static int XQBASETYPE_NCNAME = 44;\r\n static int XQBASETYPE_NEGATIVE_INTEGER = 34;\r\n static int XQBASETYPE_NMTOKEN = 45;\r\n static int XQBASETYPE_NMTOKENS = 51;\r\n static int XQBASETYPE_NONNEGATIVE_INTEGER = 33;\r\n static int XQBASETYPE_NONPOSITIVE_INTEGER = 32;\r\n static int XQBASETYPE_NORMALIZED_STRING = 40;\r\n static int XQBASETYPE_NOTATION = 27;\r\n static int XQBASETYPE_POSITIVE_INTEGER = 35;\r\n static int XQBASETYPE_QNAME = 28;\r\n static int XQBASETYPE_SHORT = 14;\r\n static int XQBASETYPE_STRING = 29;\r\n static int XQBASETYPE_TIME = 30;\r\n static int XQBASETYPE_TOKEN = 41;\r\n static int XQBASETYPE_UNSIGNED_BYTE = 39;\r\n static int XQBASETYPE_UNSIGNED_INT = 37;\r\n static int XQBASETYPE_UNSIGNED_LONG = 36;\r\n static int XQBASETYPE_UNSIGNED_SHORT = 38;\r\n static int XQBASETYPE_UNTYPED = 1;\r\n static int XQBASETYPE_UNTYPEDATOMIC = 5;\r\n static int XQBASETYPE_YEARMONTHDURATION = 7;\r\n\r\n static int XQITEMKIND_ATOMIC = 1;\r\n static int XQITEMKIND_ATTRIBUTE = 2;\r\n static int XQITEMKIND_COMMENT = 3;\r\n static int XQITEMKIND_DOCUMENT = 4;\r\n static int XQITEMKIND_DOCUMENT_ELEMENT = 5;\r\n static int XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT = 6;\r\n static int XQITEMKIND_ELEMENT = 7;\r\n static int XQITEMKIND_ITEM = 8;\r\n static int XQITEMKIND_NODE = 9;\r\n static int XQITEMKIND_PI = 10;\r\n static int XQITEMKIND_SCHEMA_ATTRIBUTE = 13;\r\n static int XQITEMKIND_SCHEMA_ELEMENT = 12;\r\n static int XQITEMKIND_TEXT = 11;\r\n\r\n int getBaseType() throws XQException;\r\n\r\n int getItemKind();\r\n\r\n int getItemOccurrence();\r\n\r\n QName getNodeName() throws XQException;\r\n\r\n String getPIName() throws XQException;\r\n\r\n URI getSchemaURI();\r\n\r\n QName getTypeName() throws XQException;\r\n\r\n boolean isAnonymousType();\r\n\r\n boolean isElementNillable();\r\n\r\n}", "public interface IItemTypeHandler {\n\n\t/**\n\t * Get the item for this type of handler for the given node element, can just be a text node.\n\t * @param itemNode The node containing info about this item, for example\n\t * \"&lt;item&gt;evilcraft:darkGem&lt;/item&gt;\"\n\t * @return An item stack for this item or a string representing an ore dict id.\n\t * @throws XmlRecipeException If an error occured\n\t */\n\tpublic Object getItem(Node itemNode) throws XmlRecipeException;\n\t\n}", "public interface Item extends org.apache.xmlbeans.XmlAnySimpleType\n {\n java.lang.Object getObjectValue();\n void setObjectValue(java.lang.Object val);\n /** @deprecated */\n java.lang.Object objectValue();\n /** @deprecated */\n void objectSet(java.lang.Object val);\n org.apache.xmlbeans.SchemaType instanceType();\n public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)\n org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Item.class.getClassLoader(), \"schemaorg_apache_xmlbeans.system.sXMLSCHEMA\").resolveHandle(\"anon16cetype\");\n \n /**\n * An anonymous inner XML type.\n *\n * This is an atomic type that is a restriction of org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList$Member2$Item$Member.\n */\n public interface Member extends org.apache.xmlbeans.XmlToken\n {\n public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)\n org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Member.class.getClassLoader(), \"schemaorg_apache_xmlbeans.system.sXMLSCHEMA\").resolveHandle(\"anon0c73type\");\n \n org.apache.xmlbeans.StringEnumAbstractBase enumValue();\n void set(org.apache.xmlbeans.StringEnumAbstractBase e);\n \n static final Enum TARGET_NAMESPACE = Enum.forString(\"##targetNamespace\");\n static final Enum LOCAL = Enum.forString(\"##local\");\n \n static final int INT_TARGET_NAMESPACE = Enum.INT_TARGET_NAMESPACE;\n static final int INT_LOCAL = Enum.INT_LOCAL;\n \n /**\n * Enumeration value class for org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList$Member2$Item$Member.\n * These enum values can be used as follows:\n * <pre>\n * enum.toString(); // returns the string value of the enum\n * enum.intValue(); // returns an int value, useful for switches\n * // e.g., case Enum.INT_TARGET_NAMESPACE\n * Enum.forString(s); // returns the enum value for a string\n * Enum.forInt(i); // returns the enum value for an int\n * </pre>\n * Enumeration objects are immutable singleton objects that\n * can be compared using == object equality. They have no\n * public constructor. See the constants defined within this\n * class for all the valid values.\n */\n static final class Enum extends org.apache.xmlbeans.StringEnumAbstractBase\n {\n /**\n * Returns the enum value for a string, or null if none.\n */\n public static Enum forString(java.lang.String s)\n { return (Enum)table.forString(s); }\n /**\n * Returns the enum value corresponding to an int, or null if none.\n */\n public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }\n \n private Enum(java.lang.String s, int i)\n { super(s, i); }\n \n static final int INT_TARGET_NAMESPACE = 1;\n static final int INT_LOCAL = 2;\n \n public static final org.apache.xmlbeans.StringEnumAbstractBase.Table table =\n new org.apache.xmlbeans.StringEnumAbstractBase.Table\n (\n new Enum[]\n {\n new Enum(\"##targetNamespace\", INT_TARGET_NAMESPACE),\n new Enum(\"##local\", INT_LOCAL),\n }\n );\n private static final long serialVersionUID = 1L;\n private java.lang.Object readResolve() { return forInt(intValue()); } \n }\n \n /**\n * A factory class with static methods for creating instances\n * of this type.\n */\n \n public static final class Factory\n {\n public static org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item.Member newValue(java.lang.Object obj) {\n return (org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item.Member) type.newValue( obj ); }\n \n public static org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item.Member newInstance() {\n return (org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item.Member) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }\n \n public static org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item.Member newInstance(org.apache.xmlbeans.XmlOptions options) {\n return (org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item.Member) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }\n \n private Factory() { } // No instance of this class allowed\n }\n }\n \n /**\n * A factory class with static methods for creating instances\n * of this type.\n */\n \n public static final class Factory\n {\n public static org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item newValue(java.lang.Object obj) {\n return (org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item) type.newValue( obj ); }\n \n public static org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item newInstance() {\n return (org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }\n \n public static org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item newInstance(org.apache.xmlbeans.XmlOptions options) {\n return (org.apache.xmlbeans.impl.xb.xsdschema.NamespaceList.Member2.Item) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }\n \n private Factory() { } // No instance of this class allowed\n }\n }", "public Item getItem() { \n return myItem;\n }", "protected ResourceReference getItem()\n\t{\n\t\treturn ITEM;\n\t}", "public abstract void addItem(AbstractItemAPI item);", "@Override\n\t\t\tpublic int getItemType(int realPosition) {\n\n\t\t\t\treturn realPosition % 5;\n\t\t\t}", "public abstract boolean isTypeOf(ItemType type);", "public boolean add(Type item);", "public ItemType getItem() {\n\t return this.item;\n\t}", "public ItemType getItem() {\n\t return this.item;\n\t}", "public interface FAQsItem {\n public int getType();\n public int getId();\n}", "public interface ListItemType {\n int TYPE_UNKNOWN = -1;\n int TYPE_DUOBAO_LABEL = 0;\n int TYPE_DUOBAO = 1;\n int TYPE_JIFEN_LABEL = 2;\n int TYPE_JIFEN = 3;\n}", "@Override\n public int getType() {\n return R.id.fastadapter_sampleitem_id;\n }", "@Override\r\n\tpublic ItemType getItemType() {\r\n\t\treturn ItemType.MISC;\r\n\t}", "protected abstract Item createTestItem3();", "public Item(Car car, Type type) {\n\t\tthis.type = type;\n\t\tthis.car = car;\n\t\tid = 1;\n\t}", "public static ItemStack item(XMaterial type, String name, List<String> lore) {\r\n\t\tItemStack is = type.parseItem();\r\n\t\tItemMeta im = is.getItemMeta();\r\n\t\tim.addItemFlags(ItemFlag.values());\r\n\t\tis.setItemMeta(applyMeta(im, name, lore));\r\n\t\treturn is;\r\n\t}", "Items(){\n}", "@Override\r\n\tpublic int getType() {\n\t\treturn EyeTrackerItem.TYPE_INVALID;\r\n\t}", "public abstract void Enqueue (Type item);", "protected void populateItem(ListItem<T> item) {\n }", "protected void addInventoryItemType() {\n\t\tProperties props = new Properties();\n\n\t\t/* DEBUG\n\t\t\n\t\tSystem.out.println(typeNameTF.getText());\n\t\tSystem.out.println(unitsTF.getText());\n\t\tSystem.out.println(unitMeasureTF.getText());\n\t\tSystem.out.println(validityDaysTF.getText());\n\t\tSystem.out.println(reorderPointTF.getText());\n\t\tSystem.out.println(notesTF.getText());\n\t\tSystem.out.println(statusCB.getValue());\n\t\n\t\t*/ \n\n\t\t// Set the values.\n\t\tprops.setProperty(\"ItemTypeName\", typeNameTF.getText());\n\t\tprops.setProperty(\"Units\", unitsTF.getText());\n\t\tprops.setProperty(\"UnitMeasure\", unitMeasureTF.getText());\n\t\tprops.setProperty(\"ValidityDays\", validityDaysTF.getText());\n\t\tprops.setProperty(\"ReorderPoint\", reorderPointTF.getText());\n\t\tprops.setProperty(\"Notes\", notesTF.getText());\n\t\tprops.setProperty(\"Status\", (String) statusCB.getValue());\n\n\t\t// Create the inventory item type.\n\t\tInventoryItemType iit = new InventoryItemType(props);\n\n\t\t// Save it into the database.\n\t\tiit.update();\n\n\t\tpopulateFields();\n\t\t\n\t\t// Display message on GUI.\n\t\t//submitBTN.setVisible(false);\n\t\tcancelBTN.setText(\"Back\");\n\t\tmessageLBL.setText(\"Inventory Item Type added.\");\n\t}", "public interface IItemDataEnum extends IStringSerializable{\n\t/**\n\t * This should return the unlocalized name of the sub item/block, without the mod ID or the item ID this is a sub item/block of\n\t * \n\t * @return\n\t */\n\tString getUnlocalizedName();\n\t\n\t/**\n\t * This should return the full unlocalized name for use in texture registry\n\t * \n\t * @return\n\t */\n\tString getTextureName();\n\t\n\t/**\n\t * Returns the meta value of the sub item/block\n\t * \n\t * @return\n\t */\n\tint getMeta();\n}", "@Override\n public Item vendItem(Item item) {\n allItems.put(item.getItemId(), item);\n return item;\n }", "private Item(){}", "@Override\n public void addItem(P_CK t) {\n \n }", "private static void customItems(ItemDefinition itemDef) {\n\n\t\tswitch (itemDef.id) {\n\n\t\tcase 11864:\n\t\tcase 11865:\n\t\tcase 19639:\n\t\tcase 19641:\n\t\tcase 19643:\n\t\tcase 19645:\n\t\tcase 19647:\n\t\tcase 19649:\n\t\tcase 23073:\n\t\tcase 23075:\n\t\t\titemDef.equipActions[2] = \"Log\";\n\t\t\titemDef.equipActions[1] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 13136:\n\t\t\titemDef.equipActions[2] = \"Elidinis\";\n\t\t\titemDef.equipActions[1] = \"Kalphite Hive\";\n\t\t\tbreak;\n\t\tcase 2550:\n\t\t\titemDef.equipActions[2] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 1712:\n\t\tcase 1710:\n\t\tcase 1708:\n\t\tcase 1706:\n\t\t\titemDef.equipActions[1] = \"Edgeville\";\n\t\t\titemDef.equipActions[2] = \"Karamja\";\n\t\t\titemDef.equipActions[3] = \"Draynor\";\n\t\t\titemDef.equipActions[4] = \"Al-Kharid\";\n\t\t\tbreak;\n\n\t\tcase 22000:\n\t\t\titemDef.name = \"Lava partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 22001:\n\t\t\titemDef.name = \"Infernal partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 2552:\n\t\tcase 2554:\n\t\tcase 2556:\n\t\tcase 2558:\n\t\tcase 2560:\n\t\tcase 2562:\n\t\tcase 2564:\n\t\tcase 2566: // Ring of duelling\n\t\t\titemDef.equipActions[2] = \"Shantay Pass\";\n\t\t\titemDef.equipActions[1] = \"Clan wars\";\n\t\t\tbreak;\n\n\t\tcase 21307:\n\t\t\titemDef.name = \"Pursuit crate\";\n\t\t\tbreak;\n\n\t\tcase 12792:\n\t\t\titemDef.name = \"Graceful recolor kit\";\n\t\t\tbreak;\n\n\t\tcase 12022:\n\t\t\titemDef.name = \"Bandos Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Bandos gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12024:\n\t\t\titemDef.name = \"Armadyl Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Armadyl gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12026:\n\t\t\titemDef.name = \"Saradomin Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Saradomin gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12028:\n\t\t\titemDef.name = \"Zamorak Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Zamorak gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 964:\n\t\t\titemDef.name = \"Pet Petie\";\n\t\t\tbreak;\n\n\t\tcase 20853:\n\t\t\titemDef.name = \"Deep Sea Bait\";\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\t/*\n\t\t * case 17014: itemDef.name = \"Dragon flail\"; itemDef.modelId = 50083;\n\t\t * itemDef.modelZoom = 1440; itemDef.modelRotation2 = 272;\n\t\t * itemDef.modelRotation1 = 352; itemDef.modelOffset1 = 32;\n\t\t * //itemDef.modelOffset2 = 0; itemDef.maleModel = 50083; itemDef.femaleModel =\n\t\t * 50083; itemDef.anInt164 = -1; itemDef.anInt188 = -1; itemDef.aByte205 = -8;\n\t\t * itemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t * itemDef.inventoryOptions = new String[] { \"Wear\", null, null, null, \"Drop\" };\n\t\t * itemDef.description = \"An Ancient Dragon Flail.\"; break;\n\t\t */\n\n\t\tcase 33272:\n\t\t\titemDef.name = \"Justiciar's Longsword\";\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modelId = 65472;\n\t\t\titemDef.modelZoom = 1726;\n\t\t\titemDef.modelRotation1 = 1576;\n\t\t\titemDef.modelRotation2 = 242;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\t// itemDef.anInt204 = 0;\n\t\t\t// itemDef.aByte205 = -12;\n\t\t\t// itemDef.aByte154 = 0;\n\t\t\titemDef.maleModel = 65465;\n\t\t\titemDef.femaleModel = 65465;\n\t\t\titemDef.description = \"An ancient longsword received from the Trial of Flames.\";\n\t\t\tbreak;\n\n\t\tcase 33168:\n\t\t\titemDef.name = \"Justiciar kiteshield\";\n\t\t\titemDef.modelId = 65471;\n\t\t\titemDef.modelZoom = 1600;\n\t\t\titemDef.modelRotation2 = 250;\n\t\t\titemDef.modelRotation1 = 300;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.maleModel = 65473;\n\t\t\titemDef.femaleModel = 65474;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An ancient kiteshield. Part of the Justiciar set.\";\n\t\t\tbreak;\n\n\t\tcase 2996:\n\t\t\titemDef.name = \"PKP Ticket\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"Exchange this for a PK Point.\";\n\t\t\tbreak;\n\t\tcase 13226:\n\t\t\titemDef.name = \"Herb Sack\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"A sack for storing grimy herbs.\";\n\t\t\tbreak;\n\t\tcase 13346:\n\t\t\titemDef.name = \"Raid Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Open for chances to receive Raid items & other awesome rewards.\";\n\t\t\tbreak;\n\t\tcase 8800:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 31624;\n\t\t\t// itemDef.stackAmounts = new int[] { 2, 3, 50, 100, 500000, 1000000, 2500000,\n\t\t\t// 10000000, 100000000, 0 };//amount the model will change at\n\t\t\t// itemDef.stackIDs = new int[] { 8801, 8802, 8803, 8804, 8805, 8806, 8807,\n\t\t\t// 8808, 8809, 0 };//new item id to grab the model from\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 853;\n\t\t\titemDef.modelRotation2 = 1885;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8801:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15344;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8802:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15345;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8803:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15346;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8804:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15347;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8805:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15348;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8806:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15349;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8807:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15350;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8808:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15351;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8809:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15352;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 15098:\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.description = \"A 100-sided dice.\";\n\t\t\titemDef.modelId = 31223;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation2 = 215;\n\t\t\titemDef.modelRotation1 = 94;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modelOffset1 = -18;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Public-roll\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.anInt196 = 15;\n\t\t\titemDef.anInt184 = 25;\n\t\t\tbreak;\n\n\t\tcase 32991:\n\t\t\titemDef.name = \"Divine spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with an divine sigil attached to it.\";\n\t\t\titemDef.modelId = 50001;\n\t\t\titemDef.maleModel = 50002;\n\t\t\titemDef.femaleModel = 50002;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32992:\n\t\t\titemDef.name = \"Rainbow spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with all 4 sigils attached to it.\";\n\t\t\titemDef.modelId = 50004;\n\t\t\titemDef.maleModel = 50005;\n\t\t\titemDef.femaleModel = 50005;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32993:\n\t\t\titemDef.name = \"Divine sigil\";\n\t\t\titemDef.description = \"A sigil in the shape of a divine symbol.\";\n\t\t\titemDef.modelId = 50003;\n\t\t\titemDef.modelZoom = 848;\n\t\t\titemDef.modelRotation1 = 267;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33060:\n\t\t\titemDef.name = \"Barrows Sword\";\n\t\t\titemDef.description = \"A sword glowing with otherworldy energy.\";\n\t\t\titemDef.modelId = 22325;\n\t\t\titemDef.maleModel = 50010;\n\t\t\titemDef.femaleModel = 50010;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32994:\n\t\t\titemDef.name = \"Statius's platebody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42602;\n\t\t\titemDef.maleModel = 35951;\n\t\t\titemDef.femaleModel = 35964;\n\t\t\titemDef.modelZoom = 1312;\n\t\t\titemDef.modelRotation1 = 272;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 39;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32995:\n\t\t\titemDef.name = \"Statius's platelegs\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42590;\n\t\t\titemDef.maleModel = 35947;\n\t\t\titemDef.femaleModel = 35961;\n\t\t\titemDef.modelZoom = 1625;\n\t\t\titemDef.modelRotation1 = 355;\n\t\t\titemDef.modelRotation2 = 2046;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32996:\n\t\t\titemDef.name = \"Statius's full helm\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42596;\n\t\t\titemDef.maleModel = 35943;\n\t\t\titemDef.femaleModel = 35958;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 2039;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32997:\n\t\t\titemDef.name = \"Statius's warhammer\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42577;\n\t\t\titemDef.maleModel = 35968;\n\t\t\titemDef.femaleModel = 35968;\n\t\t\titemDef.modelZoom = 1360;\n\t\t\titemDef.modelRotation1 = 507;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32998:\n\t\t\titemDef.name = \"Vesta's chainbody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42593;\n\t\t\titemDef.maleModel = 35953;\n\t\t\titemDef.femaleModel = 35965;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32999:\n\t\t\titemDef.name = \"Vesta's plateskirt\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42581;\n\t\t\titemDef.maleModel = 35950;\n\t\t\titemDef.femaleModel = 35960;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33000:\n\t\t\titemDef.name = \"Vesta's longsword\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42597;\n\t\t\titemDef.maleModel = 35969;\n\t\t\titemDef.femaleModel = 35969;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 738;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33001:\n\t\t\titemDef.name = \"Vesta's spear\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42599;\n\t\t\titemDef.maleModel = 35973;\n\t\t\titemDef.femaleModel = 35973;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 480;\n\t\t\titemDef.modelRotation2 = 15;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33002:\n\t\t\titemDef.name = \"Morrigan's leather body\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42578;\n\t\t\titemDef.maleModel = 35954;\n\t\t\titemDef.femaleModel = 35963;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33003:\n\t\t\titemDef.name = \"Morrigan's leather chaps\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42603;\n\t\t\titemDef.maleModel = 35948;\n\t\t\titemDef.femaleModel = 35959;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 482;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33004:\n\t\t\titemDef.name = \"Morrigan's coif\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42583;\n\t\t\titemDef.maleModel = 35945;\n\t\t\titemDef.femaleModel = 35956;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 537;\n\t\t\titemDef.modelRotation2 = 5;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33005:\n\t\t\titemDef.name = \"Morrigan's javelin\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42592;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42613;\n\t\t\titemDef.femaleModel = 42613;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 282;\n\t\t\titemDef.modelRotation2 = 2009;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33006:\n\t\t\titemDef.name = \"Morrigan's throwing axe\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42582;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42611;\n\t\t\titemDef.femaleModel = 42611;\n\t\t\titemDef.modelZoom = 976;\n\t\t\titemDef.modelRotation1 = 672;\n\t\t\titemDef.modelRotation2 = 2024;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33007:\n\t\t\titemDef.name = \"Zuriels robe top\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42591;\n\t\t\titemDef.maleModel = 35952;\n\t\t\titemDef.femaleModel = 35966;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 373;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33008:\n\t\t\titemDef.name = \"Zuriels robe bottom\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42588;\n\t\t\titemDef.maleModel = 35949;\n\t\t\titemDef.femaleModel = 35962;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33009:\n\t\t\titemDef.name = \"Zuriels hood\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42604;\n\t\t\titemDef.maleModel = 35944;\n\t\t\titemDef.femaleModel = 35957;\n\t\t\titemDef.modelZoom = 720;\n\t\t\titemDef.modelRotation1 = 28;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33010:\n\t\t\titemDef.name = \"Zuriels staff\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42595;\n\t\t\titemDef.maleModel = 35971;\n\t\t\titemDef.femaleModel = 35971;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 366;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33011:\n\t\t\titemDef.name = \"Craw's bow (u)\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35768;\n\t\t\titemDef.femaleModel = 35768;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33012:\n\t\t\titemDef.name = \"Craw's bow\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35769;\n\t\t\titemDef.femaleModel = 35769;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33013:\n\t\t\titemDef.name = \"Thammaron's sceptre (u)\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35772;\n\t\t\titemDef.femaleModel = 35772;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33014:\n\t\t\titemDef.name = \"Thammaron's sceptre\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35773;\n\t\t\titemDef.femaleModel = 35773;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33015:\n\t\t\titemDef.name = \"Viggora's chainmace (u)\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35770;\n\t\t\titemDef.femaleModel = 35770;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33016:\n\t\t\titemDef.name = \"Viggora's chainmace\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35771;\n\t\t\titemDef.femaleModel = 35771;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33018:\n\t\t\titemDef.name = \"Amulet of avarice\";\n\t\t\titemDef.description = \"A hauntingly beautiful amulet bearing the shape of a skull.\";\n\t\t\titemDef.modelId = 35779;\n\t\t\titemDef.maleModel = 35766;\n\t\t\titemDef.femaleModel = 35766;\n\t\t\titemDef.modelZoom = 420;\n\t\t\titemDef.modelRotation1 = 191;\n\t\t\titemDef.modelRotation2 = 86;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33019:\n\t\t\titemDef.name = \"Completionist cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65270;\n\t\t\titemDef.maleModel = 65297;\n\t\t\titemDef.femaleModel = 65316;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33020:\n\t\t\titemDef.name = \"Completionist cape (t)\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65258;\n\t\t\titemDef.maleModel = 65295;\n\t\t\titemDef.femaleModel = 65328;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33021:\n\t\t\titemDef.name = \"Torva full helm\";\n\t\t\titemDef.description = \"An ancient warrior's full helm.\";\n\t\t\titemDef.modelId = 62714;\n\t\t\titemDef.maleModel = 62738;\n\t\t\titemDef.femaleModel = 62738;\n\t\t\titemDef.modelZoom = 672;\n\t\t\titemDef.modelRotation1 = 85;\n\t\t\titemDef.modelRotation2 = 1867;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33022:\n\t\t\titemDef.name = \"Torva platebody\";\n\t\t\titemDef.description = \"An ancient warrior's platebody.\";\n\t\t\titemDef.modelId = 62699;\n\t\t\titemDef.maleModel = 62746;\n\t\t\titemDef.femaleModel = 62746;\n\t\t\titemDef.modelZoom = 1506;\n\t\t\titemDef.modelRotation1 = 473;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33023:\n\t\t\titemDef.name = \"Torva platelegs\";\n\t\t\titemDef.description = \"An ancient warrior's platelegs.\";\n\t\t\titemDef.modelId = 62701;\n\t\t\titemDef.maleModel = 62740;\n\t\t\titemDef.femaleModel = 62740;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 474;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33024:\n\t\t\titemDef.name = \"Pernix cowl\";\n\t\t\titemDef.description = \"An ancient warrior's cowl.\";\n\t\t\titemDef.modelId = 62693;\n\t\t\titemDef.maleModel = 62739;\n\t\t\titemDef.femaleModel = 62739;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 532;\n\t\t\titemDef.modelRotation2 = 14;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33025:\n\t\t\titemDef.name = \"Pernix body\";\n\t\t\titemDef.description = \"An ancient warrior's leather body.\";\n\t\t\titemDef.modelId = 62709;\n\t\t\titemDef.maleModel = 62744;\n\t\t\titemDef.femaleModel = 62744;\n\t\t\titemDef.modelZoom = 1378;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33026:\n\t\t\titemDef.name = \"Pernix chaps\";\n\t\t\titemDef.description = \"An ancient warrior's chaps.\";\n\t\t\titemDef.modelId = 62695;\n\t\t\titemDef.maleModel = 62741;\n\t\t\titemDef.femaleModel = 62741;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 504;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33027:\n\t\t\titemDef.name = \"Virtus mask\";\n\t\t\titemDef.description = \"An ancient warrior's mask.\";\n\t\t\titemDef.modelId = 62710;\n\t\t\titemDef.maleModel = 62736;\n\t\t\titemDef.femaleModel = 62736;\n\t\t\titemDef.modelZoom = 928;\n\t\t\titemDef.modelRotation1 = 406;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33028:\n\t\t\titemDef.name = \"Virtus robe top\";\n\t\t\titemDef.description = \"An ancient warrior's robe top.\";\n\t\t\titemDef.modelId = 62704;\n\t\t\titemDef.maleModel = 62748;\n\t\t\titemDef.femaleModel = 62748;\n\t\t\titemDef.modelZoom = 1122;\n\t\t\titemDef.modelRotation1 = 488;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33029:\n\t\t\titemDef.name = \"Virtus robe legs\";\n\t\t\titemDef.description = \"An ancient warrior's robe legs.\";\n\t\t\titemDef.modelId = 62700;\n\t\t\titemDef.maleModel = 62742;\n\t\t\titemDef.femaleModel = 62742;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33030:\n\t\t\titemDef.name = \"Zaryte bow\";\n\t\t\titemDef.description = \"An ancient warrior's bow.\";\n\t\t\titemDef.modelId = 62692;\n\t\t\titemDef.maleModel = 62750;\n\t\t\titemDef.femaleModel = 62750;\n\t\t\titemDef.modelZoom = 1703;\n\t\t\titemDef.modelRotation1 = 221;\n\t\t\titemDef.modelRotation2 = 404;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33083:\n\t\t\titemDef.name = \"Tokhaar-kal\";\n\t\t\titemDef.description = \"\tA cape made of ancient, enchanted obsidian.\";\n\t\t\titemDef.modelId = 52073;\n\t\t\titemDef.maleModel = 52072;\n\t\t\titemDef.femaleModel = 52071;\n\t\t\titemDef.modelZoom = 1615;\n\t\t\titemDef.modelRotation1 = 339;\n\t\t\titemDef.modelRotation2 = 192;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33089:\n\t\t\titemDef.name = \"Chaotic maul\";\n\t\t\titemDef.description = \"A maul used to claim life from those who don't deserve it.\";\n\t\t\titemDef.modelId = 54286;\n\t\t\titemDef.maleModel = 56294;\n\t\t\titemDef.femaleModel = 56294;\n\t\t\titemDef.modelZoom = 1447;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33094:\n\t\t\titemDef.name = \"Chaotic crossbow\";\n\t\t\titemDef.description = \"A small crossbow, only effective at short distance.\";\n\t\t\titemDef.modelId = 54331;\n\t\t\titemDef.maleModel = 56307;\n\t\t\titemDef.femaleModel = 56307;\n\t\t\titemDef.modelZoom = 1028;\n\t\t\titemDef.modelRotation1 = 249;\n\t\t\titemDef.modelRotation2 = 2021;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -54;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33095:\n\t\t\titemDef.name = \"Chaotic staff\";\n\t\t\titemDef.description = \"This staff makes destructive spells more powerful.\";\n\t\t\titemDef.modelId = 54367;\n\t\t\titemDef.maleModel = 56286;\n\t\t\titemDef.femaleModel = 56286;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33096:\n\t\t\titemDef.name = \"Chaotic kiteshield\";\n\t\t\titemDef.description = \"A large metal shield.\";\n\t\t\titemDef.modelId = 54358;\n\t\t\titemDef.maleModel = 56038;\n\t\t\titemDef.femaleModel = 56038;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 276;\n\t\t\titemDef.modelRotation2 = 1101;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33031:\n\t\t\titemDef.name = \"Chaotic rapier\";\n\t\t\titemDef.description = \"A razor-sharp rapier.\";\n\t\t\titemDef.modelId = 54197;\n\t\t\titemDef.maleModel = 56252;\n\t\t\titemDef.femaleModel = 56252;\n\t\t\titemDef.modelZoom = 1425;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 1370;\n\t\t\titemDef.modelOffset1 = 9;\n\t\t\titemDef.modelOffset2 = 13;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33032:\n\t\t\titemDef.name = \"Chaotic longsword\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 54204;\n\t\t\titemDef.maleModel = 56237;\n\t\t\titemDef.femaleModel = 56237;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33097:\n\t\t\titemDef.name = \"Sword of Onyxia\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 53091;\n\t\t\titemDef.maleModel = 53092;\n\t\t\titemDef.femaleModel = 53092;\n\t\t\titemDef.modelZoom = 2007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33098:\n\t\t\titemDef.name = \"Onyxia longsword\";\n\t\t\titemDef.description = \"A razor-sharp 2h sword.\";\n\t\t\titemDef.modelId = 53093;\n\t\t\titemDef.maleModel = 53094;\n\t\t\titemDef.femaleModel = 53094;\n\t\t\titemDef.modelZoom = 4007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33099:\n\t\t\titemDef.name = \"White scimitar\";\n\t\t\titemDef.description = \"A razor-sharp scimitar.\";\n\t\t\titemDef.modelId = 53097;\n\t\t\titemDef.maleModel = 53098;\n\t\t\titemDef.femaleModel = 53098;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 312;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33100:\n\t\t\titemDef.name = \"White kiteshield\";\n\t\t\titemDef.description = \"a heavy kiteshield.\";\n\t\t\titemDef.modelId = 53095;\n\t\t\titemDef.maleModel = 53096;\n\t\t\titemDef.femaleModel = 53096;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 303;\n\t\t\titemDef.modelRotation2 = 180;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33033:\n\t\t\titemDef.name = \"Agility master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 677, 801, 43540, 43543, 43546, 43549, 43550, 43552, 43554, 43558,\n\t\t\t\t\t43560, 43575 };\n\t\t\titemDef.modelId = 50030;\n\t\t\titemDef.maleModel = 50031;\n\t\t\titemDef.femaleModel = 50031;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33034:\n\t\t\titemDef.name = \"Attack master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 7104, 9151, 911, 914, 917, 920, 921, 923, 925, 929, 931, 946 };\n\t\t\titemDef.modelId = 50032;\n\t\t\titemDef.maleModel = 50033;\n\t\t\titemDef.femaleModel = 50033;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33035:\n\t\t\titemDef.name = \"Construction master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6061, 5945, 6327, 6330, 6333, 6336, 6337, 6339, 6341, 6345, 6347,\n\t\t\t\t\t6362 };\n\t\t\titemDef.modelId = 50034;\n\t\t\titemDef.maleModel = 50035;\n\t\t\titemDef.femaleModel = 50035;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33036:\n\t\t\titemDef.name = \"Cooking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 920, 920, 51856, 51859, 51862, 51865, 51866, 51868, 51870, 51874,\n\t\t\t\t\t51876, 51891 };\n\t\t\titemDef.modelId = 50036;\n\t\t\titemDef.maleModel = 50037;\n\t\t\titemDef.femaleModel = 50037;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33037:\n\t\t\titemDef.name = \"Crafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9142, 9152, 4511, 4514, 4517, 4520, 4521, 4523, 4525, 4529, 4531,\n\t\t\t\t\t4546 };\n\t\t\titemDef.modelId = 50038;\n\t\t\titemDef.maleModel = 50039;\n\t\t\titemDef.femaleModel = 50039;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33038:\n\t\t\titemDef.name = \"Defence master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 10460, 10473, 41410, 41413, 41416, 41419, 41420, 41422, 41424,\n\t\t\t\t\t41428, 41430, 41445 };\n\t\t\titemDef.modelId = 50040;\n\t\t\titemDef.maleModel = 50041;\n\t\t\titemDef.femaleModel = 50041;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33039:\n\t\t\titemDef.name = \"Farming master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 14775, 14792, 22026, 22029, 22032, 22035, 22036, 22038, 22040,\n\t\t\t\t\t22044, 22046, 22061 };\n\t\t\titemDef.modelId = 50042;\n\t\t\titemDef.maleModel = 50043;\n\t\t\titemDef.femaleModel = 50043;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33040:\n\t\t\titemDef.name = \"Firemaking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8125, 9152, 4015, 4018, 4021, 4024, 4025, 4027, 4029, 4033, 4035,\n\t\t\t\t\t4050 };\n\t\t\titemDef.modelId = 50044;\n\t\t\titemDef.maleModel = 50045;\n\t\t\titemDef.femaleModel = 50045;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33041:\n\t\t\titemDef.name = \"Fishing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9144, 9152, 38202, 38205, 38208, 38211, 38212, 38214, 38216,\n\t\t\t\t\t38220, 38222, 38237 };\n\t\t\titemDef.modelId = 50046;\n\t\t\titemDef.maleModel = 50047;\n\t\t\titemDef.femaleModel = 50047;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33042:\n\t\t\titemDef.name = \"Fletching master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6067, 9152, 33670, 33673, 33676, 33679, 33680, 33682, 33684,\n\t\t\t\t\t33688, 33690, 33705 };\n\t\t\titemDef.modelId = 50048;\n\t\t\titemDef.maleModel = 50049;\n\t\t\titemDef.femaleModel = 50049;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33043:\n\t\t\titemDef.name = \"Herblore master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9145, 9156, 22414, 22417, 22420, 22423, 22424, 22426, 22428,\n\t\t\t\t\t22432, 22434, 22449 };\n\t\t\titemDef.modelId = 50050;\n\t\t\titemDef.maleModel = 50051;\n\t\t\titemDef.femaleModel = 50051;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33044:\n\t\t\titemDef.name = \"Hitpoints master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 818, 951, 8291, 8294, 8297, 8300, 8301, 8303, 8305, 8309, 8311,\n\t\t\t\t\t8319 };\n\t\t\titemDef.modelId = 50052;\n\t\t\titemDef.maleModel = 50053;\n\t\t\titemDef.femaleModel = 50053;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\titemDef.femaleOffset = 4;\n\t\t\tbreak;\n\t\tcase 33045:\n\t\t\titemDef.name = \"Hunter master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 5262, 6020, 8472, 8475, 8478, 8481, 8482, 8484, 8486, 8490, 8492,\n\t\t\t\t\t8507 };\n\t\t\titemDef.modelId = 50054;\n\t\t\titemDef.maleModel = 50055;\n\t\t\titemDef.femaleModel = 50055;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33046:\n\t\t\titemDef.name = \"Magic master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 43569, 43685, 6336, 6339, 6342, 6345, 6346, 6348, 6350, 6354,\n\t\t\t\t\t6356, 6371 };\n\t\t\titemDef.modelId = 50056;\n\t\t\titemDef.maleModel = 50057;\n\t\t\titemDef.femaleModel = 50057;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33047:\n\t\t\titemDef.name = \"Mining master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 36296, 36279, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50058;\n\t\t\titemDef.maleModel = 50059;\n\t\t\titemDef.femaleModel = 50059;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33048:\n\t\t\titemDef.name = \"Prayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9163, 9168, 117, 120, 123, 126, 127, 127, 127, 127, 127, 127 };\n\t\t\titemDef.modelId = 50060;\n\t\t\titemDef.maleModel = 50061;\n\t\t\titemDef.femaleModel = 50061;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33049:\n\t\t\titemDef.name = \"Range master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 3755, 3998, 15122, 15125, 15128, 15131, 15132, 15134, 15136,\n\t\t\t\t\t15140, 15142, 15157 };\n\t\t\titemDef.modelId = 50062;\n\t\t\titemDef.maleModel = 50063;\n\t\t\titemDef.femaleModel = 50063;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33050:\n\t\t\titemDef.name = \"Runecrafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9152, 8128, 10318, 10321, 10324, 10327, 10328, 10330, 10332,\n\t\t\t\t\t10336, 10338, 10353 };\n\t\t\titemDef.modelId = 50064;\n\t\t\titemDef.maleModel = 50065;\n\t\t\titemDef.femaleModel = 50065;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33051:\n\t\t\titemDef.name = \"Slayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811 };\n\t\t\titemDef.originalModelColors = new int[] { 912, 920 };\n\t\t\titemDef.modelId = 50066;\n\t\t\titemDef.maleModel = 50067;\n\t\t\titemDef.femaleModel = 50067;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33052:\n\t\t\titemDef.name = \"Smithing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8115, 9148, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50068;\n\t\t\titemDef.maleModel = 50069;\n\t\t\titemDef.femaleModel = 50069;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33053:\n\t\t\titemDef.name = \"Strength master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 931, 27538, 27541, 27544, 27547, 27548, 27550, 27552, 27556,\n\t\t\t\t\t27558, 27573 };\n\t\t\titemDef.modelId = 50070;\n\t\t\titemDef.maleModel = 50071;\n\t\t\titemDef.femaleModel = 50071;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33054:\n\t\t\titemDef.name = \"Thieving master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 11, 0, 58779, 58782, 58785, 58788, 58789, 57891, 58793, 58797,\n\t\t\t\t\t58799, 58814 };\n\t\t\titemDef.modelId = 50072;\n\t\t\titemDef.maleModel = 50073;\n\t\t\titemDef.femaleModel = 50073;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33055:\n\t\t\titemDef.name = \"Woodcutting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 25109, 24088, 6693, 6696, 6699, 6702, 6703, 6705, 6707, 6711,\n\t\t\t\t\t6713, 6728 };\n\t\t\titemDef.modelId = 50074;\n\t\t\titemDef.maleModel = 50075;\n\t\t\titemDef.femaleModel = 50075;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33057:\n\t\t\titemDef.name = \"Abyssal Scythe\";\n\t\t\titemDef.description = \"\tA Scythe recieved from the Trials of Xeric CUSTOM RAID.\";\n\t\t\titemDef.modelId = 50081;\n\t\t\titemDef.maleModel = 50080;\n\t\t\titemDef.femaleModel = 50080;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33090:\n\t\t\titemDef.name = \"Goliath gloves (Black)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50100;\n\t\t\titemDef.femaleModel = 50101;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33091:\n\t\t\titemDef.name = \"Goliath gloves (Red)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50102;\n\t\t\titemDef.femaleModel = 50103;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33092:\n\t\t\titemDef.name = \"Goliath gloves (White)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50104;\n\t\t\titemDef.femaleModel = 50105;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33093:\n\t\t\titemDef.name = \"Goliath gloves (Yellow)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50106;\n\t\t\titemDef.femaleModel = 50107;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 12639:\n\t\tcase 12637:\n\t\tcase 12638:\n\t\t\titemDef.description = \"Provides players with infinite run energy!\";\n\t\t\tbreak;\n\t\tcase 33056:\n\t\t\titemDef.name = \"Events cape (slayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 0, 0, 0, 0 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33081:\n\t\t\titemDef.name = \"Events cape (agility)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 669, 43430, 43430, 43430, 43430 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33080:\n\t\t\titemDef.name = \"Events cape (attack)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9926, 1815, 1815, 1815, 1815 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33059:\n\t\t\titemDef.name = \"Events cape (construction)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6967, 6343, 6343, 6343, 6343 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33061:\n\t\t\titemDef.name = \"Events cape (cooking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 49685, 49685, 49685, 49685 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33062:\n\t\t\titemDef.name = \"Events cape (crafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 7994, 4516, 4516, 4516, 4516 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33063:\n\t\t\titemDef.name = \"Events cape (defence)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 39367, 10472, 10472, 10472, 10472 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33064:\n\t\t\titemDef.name = \"Events cape (farming)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10698, 19734, 19734, 19734, 19734 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33065:\n\t\t\titemDef.name = \"Events cape (firemaking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10059, 4922, 4922, 4922, 4922 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33066:\n\t\t\titemDef.name = \"Events cape (fishing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 36165, 36165, 36165, 36165 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33067:\n\t\t\titemDef.name = \"Events cape (fletching)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 31500, 31500, 31500, 31500 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33068:\n\t\t\titemDef.name = \"Events cape (herblore)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10051, 20889, 20889, 20889, 20889 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33069:\n\t\t\titemDef.name = \"Events cape (hitpoints)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1836, 8296, 8296, 8296, 8296 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33070:\n\t\t\titemDef.name = \"Events cape (hunter)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6916, 8477, 8477, 8477, 8477 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33071:\n\t\t\titemDef.name = \"Events cape (magic)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 43556, 6339, 6339, 6339, 6339 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33072:\n\t\t\titemDef.name = \"Events cape (mining)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 34111, 10391, 10391, 10391, 10391 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33073:\n\t\t\titemDef.name = \"Events cape (prayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9927, 2169, 2169, 2169, 2169 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33074:\n\t\t\titemDef.name = \"Events cape (range)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 3626, 20913, 20913, 20913, 20913 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33075:\n\t\t\titemDef.name = \"Events cape (runecrafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 10323, 10323, 10323, 10323 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33076:\n\t\t\titemDef.name = \"Events cape (smithing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10044, 5412, 5412, 5412, 5412 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33077:\n\t\t\titemDef.name = \"Events cape (strength)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 30487, 30487, 30487, 30487 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33078:\n\t\t\titemDef.name = \"Events cape (thieveing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 8, 57636, 57636, 57636, 57636 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33079:\n\t\t\titemDef.name = \"Events cape (woodcutting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 26007, 6570, 6570, 6570, 6570 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33101:\n\t\t\titemDef.name = \"Vorkath platebody\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53100;\n\t\t\titemDef.maleModel = 53099;\n\t\t\titemDef.femaleModel = 53099;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33102:\n\t\t\titemDef.name = \"Vorkath platelegs\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53102;\n\t\t\titemDef.maleModel = 53101;\n\t\t\titemDef.femaleModel = 53101;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33103:\n\t\t\titemDef.name = \"Vorkath boots\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33104:\n\t\t\titemDef.name = \"Vorkath gloves\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33105:\n\t\t\titemDef.name = \"Vorkath helmet\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53108;\n\t\t\titemDef.maleModel = 53107;\n\t\t\titemDef.femaleModel = 53107;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33106:\n\t\t\titemDef.name = \"Tekton helmet\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53118;\n\t\t\titemDef.maleModel = 53117;\n\t\t\titemDef.femaleModel = 53117;\n\t\t\titemDef.modelZoom = 724;\n\t\t\titemDef.modelRotation1 = 81;\n\t\t\titemDef.modelRotation2 = 1670;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33107:\n\t\t\titemDef.name = \"Tekton platebody\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53110;\n\t\t\titemDef.maleModel = 53109;\n\t\t\titemDef.femaleModel = 53109;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33108:\n\t\t\titemDef.name = \"Tekton platelegs\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53112;\n\t\t\titemDef.maleModel = 53111;\n\t\t\titemDef.femaleModel = 53111;\n\t\t\titemDef.modelZoom = 1550;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 186;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33109:\n\t\t\titemDef.name = \"Tekton gloves\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53116;\n\t\t\titemDef.maleModel = 53115;\n\t\t\titemDef.femaleModel = 53115;\n\t\t\titemDef.modelZoom = 830;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33110:\n\t\t\titemDef.name = \"Tekton boots\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53114;\n\t\t\titemDef.maleModel = 53113;\n\t\t\titemDef.femaleModel = 53113;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33111:\n\t\t\titemDef.name = \"Anti-santa scythe\";\n\t\t\titemDef.description = \"Legend says this is the biggest arse scratcher around.\";\n\t\t\titemDef.modelId = 57002;\n\t\t\titemDef.maleModel = 57001;\n\t\t\titemDef.femaleModel = 57001;\n\t\t\titemDef.modelZoom = 3224;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 714;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33112:\n\t\t\titemDef.name = \"Dominion staff\";\n\t\t\titemDef.description = \"Dominion staff.\";\n\t\t\titemDef.modelId = 59029;\n\t\t\titemDef.maleModel = 59305;\n\t\t\titemDef.femaleModel = 59305;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33113:\n\t\t\titemDef.name = \"Dominion sword\";\n\t\t\titemDef.description = \"Dominion sword.\";\n\t\t\titemDef.modelId = 59832;\n\t\t\titemDef.maleModel = 59306;\n\t\t\titemDef.femaleModel = 59306;\n\t\t\titemDef.modelZoom = 1829;\n\t\t\titemDef.modelRotation1 = 513;\n\t\t\titemDef.modelRotation2 = 546;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33114:\n\t\t\titemDef.name = \"Dominion crossbow\";\n\t\t\titemDef.description = \"Dominion crossbow.\";\n\t\t\titemDef.modelId = 59839;\n\t\t\titemDef.maleModel = 59304;\n\t\t\titemDef.femaleModel = 59304;\n\t\t\titemDef.modelZoom = 1490;\n\t\t\titemDef.modelRotation1 = 362;\n\t\t\titemDef.modelRotation2 = 791;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33115:\n\t\t\titemDef.name = \"Dragonfire Shield (e)\";\n\t\t\titemDef.description = \"unamed shield.\";\n\t\t\titemDef.modelId = 53120;\n\t\t\titemDef.maleModel = 53119;\n\t\t\titemDef.femaleModel = 53119;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 123;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[] { null, \"Wear\", \"Inspect\", \"Empty\", \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33116:\n\t\t\titemDef.name = \"Zilyana's longbow\";\n\t\t\titemDef.description = \"A bow belonged to Zilyana.\";\n\t\t\titemDef.modelId = 53122;\n\t\t\titemDef.maleModel = 53121;\n\t\t\titemDef.femaleModel = 53121;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33117:\n\t\t\titemDef.name = \"Black dragon hunter crossbow\";\n\t\t\titemDef.description = \"Black dragon hunter crossbow.\";\n\t\t\titemDef.modelId = 53124;\n\t\t\titemDef.maleModel = 53123;\n\t\t\titemDef.femaleModel = 53123;\n\t\t\titemDef.modelZoom = 1554;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33118:\n\t\t\titemDef.name = \"Vorkath blowpipe\";\n\t\t\titemDef.description = \"Vorkath blowpipe.\";\n\t\t\titemDef.modelId = 53126;\n\t\t\titemDef.maleModel = 53125;\n\t\t\titemDef.femaleModel = 53125;\n\t\t\titemDef.modelZoom = 1158;\n\t\t\titemDef.modelRotation1 = 768;\n\t\t\titemDef.modelRotation2 = 189;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33119:\n\t\t\titemDef.name = \"Superior twisted bow\";\n\t\t\titemDef.description = \"An upgraded twisted bow.\";\n\t\t\titemDef.modelId = 53128;\n\t\t\titemDef.maleModel = 53127;\n\t\t\titemDef.femaleModel = 53127;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\t\tcase 33123:\n\t\t\titemDef.name = \"Staff of sliske\";\n\t\t\titemDef.description = \"Staff of sliske.\";\n\t\t\titemDef.modelId = 59234;\n\t\t\titemDef.maleModel = 59233;\n\t\t\titemDef.femaleModel = 59233;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33124:\n\t\t\titemDef.name = \"Twisted crossbow\";\n\t\t\titemDef.description = \"Twisted crossbow.\";\n\t\t\titemDef.modelId = 62777;\n\t\t\titemDef.maleModel = 62776;\n\t\t\titemDef.femaleModel = 62776;\n\t\t\titemDef.modelZoom = 926;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33125:\n\t\t\titemDef.name = \"Present\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 24410 };\n\t\t\titemDef.description = \"Santa's stolen present\";\n\t\t\tbreak;\n\t\tcase 33126:\n\t\t\titemDef.name = \"Christmas tree branch\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2412;\n\t\t\titemDef.modelZoom = 940;\n\t\t\titemDef.modelRotation1 = 268;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -21;\n\t\t\titemDef.modifiedModelColors = new int[] { 11144 };\n\t\t\titemDef.originalModelColors = new int[] { 6047 };\n\t\t\titemDef.description = \"Enter examine here.\";\n\t\t\tbreak;\n\t\tcase 33127:\n\t\t\titemDef.name = \"Kbd gloves\";\n\t\t\titemDef.description = \"Kbd gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33085 };\n\t\t\titemDef.originalModelColors = new int[] { 1060 };\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33128:\n\t\t\titemDef.name = \"Kbd boots\";\n\t\t\titemDef.description = \"Kbd boots.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33198, 33202, 33206, 33215, 33210 };\n\t\t\titemDef.originalModelColors = new int[] { 1060, 1061, 1063, 1064, 1065 };\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33129:\n\t\t\titemDef.name = \"Kbd platelegs\";\n\t\t\titemDef.description = \"Kbd platelegs.\";\n\t\t\titemDef.modelId = 59994;\n\t\t\titemDef.maleModel = 59995;\n\t\t\titemDef.femaleModel = 59995;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33130:\n\t\t\titemDef.name = \"Kbd platebody\";\n\t\t\titemDef.description = \"Kbd platebody.\";\n\t\t\titemDef.modelId = 59998;\n\t\t\titemDef.maleModel = 59999;\n\t\t\titemDef.femaleModel = 59999;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33131:\n\t\t\titemDef.name = \"Kbd helmet\";\n\t\t\titemDef.description = \"Kbd helmet.\";\n\t\t\titemDef.modelId = 59996;\n\t\t\titemDef.maleModel = 59997;\n\t\t\titemDef.femaleModel = 59997;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33132:\n\t\t\titemDef.name = \"Kbd cape\";\n\t\t\titemDef.description = \"Kbd cape.\";\n\t\t\titemDef.modelId = 59992;\n\t\t\titemDef.maleModel = 59993;\n\t\t\titemDef.femaleModel = 59993;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33133:\n\t\t\titemDef.name = \"Anti-imp pet\";\n\t\t\titemDef.description = \"Anti-imp pet.\";\n\t\t\titemDef.modelId = 45294;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33134:\n\t\t\titemDef.name = \"Anti-santa pet\";\n\t\t\titemDef.description = \"Anti-santa pet.\";\n\t\t\titemDef.modelId = 29030;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 1966;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33135:\n\t\t\titemDef.name = \"Bandos mask\";\n\t\t\titemDef.description = \"Bandos helmet.\";\n\t\t\titemDef.modelId = 59987;\n\t\t\titemDef.maleModel = 59991;\n\t\t\titemDef.femaleModel = 59991;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33136:\n\t\t\titemDef.name = \"Armadyl mask\";\n\t\t\titemDef.description = \"Armadyl mask.\";\n\t\t\titemDef.modelId = 59986;\n\t\t\titemDef.maleModel = 59990;\n\t\t\titemDef.femaleModel = 59990;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33137:\n\t\t\titemDef.name = \"Zamorak mask\";\n\t\t\titemDef.description = \"Zamorak mask.\";\n\t\t\titemDef.modelId = 59985;\n\t\t\titemDef.maleModel = 59989;\n\t\t\titemDef.femaleModel = 59989;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33138:\n\t\t\titemDef.name = \"Saradomin mask\";\n\t\t\titemDef.description = \"Saradomin mask.\";\n\t\t\titemDef.modelId = 59984;\n\t\t\titemDef.maleModel = 59988;\n\t\t\titemDef.femaleModel = 59988;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33139:\n\t\t\titemDef.name = \"Zamarok godbow\";\n\t\t\titemDef.description = \"Zamarok godbow.\";\n\t\t\titemDef.modelId = 60560;//60553\n\t\t\titemDef.maleModel = 60560;\n\t\t\titemDef.femaleModel = 60560;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33140:\n\t\t\titemDef.name = \"Saradomin godbow\";\n\t\t\titemDef.description = \"Saradomin godbow.\";\n\t\t\titemDef.modelId = 60555;\n\t\t\titemDef.maleModel = 60554;\n\t\t\titemDef.femaleModel = 60554;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33141:\n\t\t\titemDef.name = \"Bandos godbow\";\n\t\t\titemDef.description = \"Bandos godbow.\";\n\t\t\titemDef.modelId = 60559;\n\t\t\titemDef.maleModel = 60558;\n\t\t\titemDef.femaleModel = 60558;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33142:\n\t\t\titemDef.name = \"Fire cape (purple)\";\n\t\t\titemDef.description = \"Fire cape (purple).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33148:\n\t\t\titemDef.name = \"Fire cape (cyan)\";\n\t\t\titemDef.description = \"Fire cape (cyan).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33144:\n\t\t\titemDef.name = \"Fire cape (green)\";\n\t\t\titemDef.description = \"Fire cape (green).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33145:\n\t\t\titemDef.name = \"Fire cape (red)\";\n\t\t\titemDef.description = \"Fire cape (red).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33143:\n\t\t\titemDef.name = \"Infernal cape (blue)\";\n\t\t\titemDef.description = \"Infernal cape (blue).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 39851, 39851, 39851, 39851 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33146:\n\t\t\titemDef.name = \"Infernal cape (green)\";\n\t\t\titemDef.description = \"Infernal cape (green).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 21167, 21167, 21167, 21167 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33147:\n\t\t\titemDef.name = \"Infernal cape (purple)\";\n\t\t\titemDef.description = \"Infernal cape (purple).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 53160, 53160, 53160, 53160 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33150:\n\t\t\titemDef.name = \"Infernal key piece 1\";\n\t\t\titemDef.description = \"Infernal key piece 1.\";\n\t\t\titemDef.modelId = 61001;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33151:\n\t\t\titemDef.name = \"Infernal key piece 2\";\n\t\t\titemDef.description = \"Infernal key piece 2.\";\n\t\t\titemDef.modelId = 61002;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33152:\n\t\t\titemDef.name = \"Infernal key piece 3\";\n\t\t\titemDef.description = \"Infernal key piece 3.\";\n\t\t\titemDef.modelId = 61003;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33153:\n\t\t\titemDef.name = \"Infernal key\";\n\t\t\titemDef.description = \"Infernal key.\";\n\t\t\titemDef.modelId = 61111;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\t\t//DOPES ITEMS NIGGAHAHAHAHAHAHAH\n\t\tcase 2749:\n\t\t\titemDef.name = \"Bloody Axe\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65495;\n\t\t\titemDef.femaleModel = 65495;\n\t\t\titemDef.maleModel = 65495;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 2750:\n\t\t\titemDef.name = \"Bloody Axe Offhand\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65496;\n\t\t\titemDef.femaleModel = 65496;\n\t\t\titemDef.maleModel = 65496;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33154:\n\t\t\titemDef.name = \"Infernal mystery box\";\n\t\t\titemDef.description = \"Infernal mystery box.\";\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33155:\n\t\t\titemDef.name = \"Ethereal sword (red)\";\n\t\t\titemDef.description = \"Ethereal sword (red).\";\n\t\t\titemDef.modelId = 61005;\n\t\t\titemDef.maleModel = 61004;\n\t\t\titemDef.femaleModel = 61004;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33156:\n\t\t\titemDef.name = \"Ethereal sword (blue)\";\n\t\t\titemDef.description = \"Ethereal sword (blue).\";\n\t\t\titemDef.modelId = 61006;\n\t\t\titemDef.maleModel = 61007;\n\t\t\titemDef.femaleModel = 61007;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33157:\n\t\t\titemDef.name = \"Ethereal sword (green)\";\n\t\t\titemDef.description = \"Ethereal sword (green).\";\n\t\t\titemDef.modelId = 61008;\n\t\t\titemDef.maleModel = 61009;\n\t\t\titemDef.femaleModel = 61009;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33158:\n\t\t\titemDef.name = \"Dagon' hai top\";\n\t\t\titemDef.description = \"An elite dark mages robes.\";\n\t\t\titemDef.modelId = 60317;\n\t\t\titemDef.maleModel = 43614;\n\t\t\titemDef.femaleModel = 43689;\n\t\t\titemDef.anInt188 = 44594;\n\t\t\titemDef.anInt164 = 43681;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33159:\n\t\t\titemDef.name = \"Dagon' hai hat\";\n\t\t\titemDef.description = \"An elite dark mages hat.\";\n\t\t\titemDef.modelId = 60319;\n\t\t\titemDef.maleModel = 60318;\n\t\t\titemDef.femaleModel = 60318;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 98;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33160:\n\t\t\titemDef.name = \"Dagon' hai robe\";\n\t\t\titemDef.description = \"An elite dark mages robe.\";\n\t\t\titemDef.modelId = 60321;\n\t\t\titemDef.maleModel = 60320;\n\t\t\titemDef.femaleModel = 60320;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 2216;\n\t\t\titemDef.modelRotation1 = 572;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33161:\n\t\t\titemDef.name = \"Blue infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Blue.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33162:\n\t\t\titemDef.name = \"Green infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33163:\n\t\t\titemDef.name = \"Purple infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33164:\n\t\t\titemDef.name = \"Purple firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33165:\n\t\t\titemDef.name = \"Cyan firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to cyan.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33166:\n\t\t\titemDef.name = \"Green firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33167:\n\t\t\titemDef.name = \"Red firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to red.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33169:\n\t\t\titemDef.name = \"K'ril robe top\";\n\t\t\titemDef.description = \"A top worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62558;\n\t\t\titemDef.maleModel = 62559;\n\t\t\titemDef.femaleModel = 62559;\n\t\t\titemDef.modelZoom = 1358;\n\t\t\titemDef.modelRotation1 = 514;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33170:\n\t\t\titemDef.name = \"K'ril robe bottom\";\n\t\t\titemDef.description = \"A robe worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62553;\n\t\t\titemDef.maleModel = 62554;\n\t\t\titemDef.femaleModel = 62554;\n\t\t\titemDef.modelZoom = 1690;\n\t\t\titemDef.modelRotation1 = 435;\n\t\t\titemDef.modelRotation2 = 9;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33171:\n\t\t\titemDef.name = \"K'ril hat\";\n\t\t\titemDef.description = \"A hat worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62551;\n\t\t\titemDef.maleModel = 62552;\n\t\t\titemDef.femaleModel = 62552;\n\t\t\titemDef.modelZoom = 1236;\n\t\t\titemDef.modelRotation1 = 118;\n\t\t\titemDef.modelRotation2 = 10;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33172:\n\t\t\titemDef.name = \"K'ril swords\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62557;\n\t\t\titemDef.femaleModel = 62557;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33173:\n\t\t\titemDef.name = \"K'ril swords (sheathed)\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62556;\n\t\t\titemDef.femaleModel = 62556;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33174:\n\t\t\titemDef.name = \"Pet demonic gorilla\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31241;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33175:\n\t\t\titemDef.name = \"Pet crawling hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5071;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33176:\n\t\t\titemDef.name = \"Pet cave bug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 23854;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33177:\n\t\t\titemDef.name = \"Pet cave crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5066;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33178:\n\t\t\titemDef.name = \"Pet banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5063;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33179:\n\t\t\titemDef.name = \"Pet cave slime\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5786;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33180:\n\t\t\titemDef.name = \"Pet rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5084;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33181:\n\t\t\titemDef.name = \"Pet cockatrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5070;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33182:\n\t\t\titemDef.name = \"Pet pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5083;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33183:\n\t\t\titemDef.name = \"Pet basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5064;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33184:\n\t\t\titemDef.name = \"Pet infernal mage\";\n\t\t\titemDef.modifiedModelColors = new int[] { -26527, -24618, -25152, -25491, 119 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 148, 0, 924, 924 };\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5047;\n\t\t\titemDef.modelZoom = 3940;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 84;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33185:\n\t\t\titemDef.name = \"Pet bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5065;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33186:\n\t\t\titemDef.name = \"Pet jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5081;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33187:\n\t\t\titemDef.name = \"Pet turoth\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5086;\n\t\t\titemDef.modelZoom = 2600;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33188:\n\t\t\titemDef.name = \"Pet aberrant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5085;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 450;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33189:\n\t\t\titemDef.name = \"Pet dust devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5076;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33190:\n\t\t\titemDef.name = \"Pet kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5082;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33191:\n\t\t\titemDef.name = \"Pet skeletal wyvern\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10350;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 27;\n\t\t\titemDef.modelRotation2 = 1634;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33192:\n\t\t\titemDef.name = \"Pet garygoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5078;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33193:\n\t\t\titemDef.name = \"Pet nechryael\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5074;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33194:\n\t\t\titemDef.name = \"Pet abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5062;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33195:\n\t\t\titemDef.name = \"Pet dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26395;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33196:\n\t\t\titemDef.name = \"Pet night beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32933;\n\t\t\titemDef.modelZoom = 7000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33197:\n\t\t\titemDef.name = \"Pet greater abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33198:\n\t\t\titemDef.name = \"Pet crushing hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32922;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33199:\n\t\t\titemDef.name = \"Pet chasm crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32918;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33200:\n\t\t\titemDef.name = \"Pet screaming banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32823;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33201:\n\t\t\titemDef.name = \"Pet twisted banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32847;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33202:\n\t\t\titemDef.name = \"Pet giant rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32919;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33203:\n\t\t\titemDef.name = \"Pet cockathrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32920;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33204:\n\t\t\titemDef.name = \"Pet flaming pyrelord\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32923;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33205:\n\t\t\titemDef.name = \"Pet monstrous basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32924;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33206:\n\t\t\titemDef.name = \"Pet malevolent mage\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32929;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33207:\n\t\t\titemDef.name = \"Pet insatiable bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33208:\n\t\t\titemDef.name = \"Pet insatiable mutated bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32925;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33209:\n\t\t\titemDef.name = \"Pet vitreous jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32852;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33210:\n\t\t\titemDef.name = \"Pet vitreous warped jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32917;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33211:\n\t\t\titemDef.name = \"Pet cave abomination\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32935;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33212:\n\t\t\titemDef.name = \"Pet abhorrent spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32930;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33213:\n\t\t\titemDef.name = \"pet repugnant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33214:\n\t\t\titemDef.name = \"Pet choke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32927;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33215:\n\t\t\titemDef.name = \"Pet king kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32934;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33217:\n\t\t\titemDef.name = \"Pet nuclear smoke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32928;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33218:\n\t\t\titemDef.name = \"Pet marble gargoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34251;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33219:\n\t\t\titemDef.name = \"Pet nechryarch\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32932;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33220:\n\t\t\titemDef.name = \"Pet Patrity\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32035;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33221:\n\t\t\titemDef.name = \"Pet xarpus\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35383;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33222:\n\t\t\titemDef.name = \"Pet nyclocas vasilias\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35182;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33223:\n\t\t\titemDef.name = \"Pet pestilent bloat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35404;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33224:\n\t\t\titemDef.name = \"Pet maiden of sugadinti\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35385;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33225:\n\t\t\titemDef.name = \"Pet lizardman shaman\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4039;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33226:\n\t\t\titemDef.name = \"Pet abyssal sire\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 29477;\n\t\t\titemDef.modelZoom = 9000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33227:\n\t\t\titemDef.name = \"Pet black demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31984;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 144;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11802:\n\t\tcase 11804:\n\t\tcase 11806:\n\t\tcase 11808:\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\tbreak;// godsword sheathing operating\n\n\t\tcase 33228:\n\t\t\titemDef.name = \"Pet greater demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33229:\n\t\t\titemDef.name = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.description = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28075;\n\t\t\titemDef.maleModel = 62683;\n\t\t\titemDef.femaleModel = 62683;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33230:\n\t\t\titemDef.name = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.description = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28059;\n\t\t\titemDef.maleModel = 62684;\n\t\t\titemDef.femaleModel = 62684;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33231:\n\t\t\titemDef.name = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.description = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28070;\n\t\t\titemDef.maleModel = 62685;\n\t\t\titemDef.femaleModel = 62685;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33232:\n\t\t\titemDef.name = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.description = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28060;\n\t\t\titemDef.maleModel = 62686;\n\t\t\titemDef.femaleModel = 62686;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33233:\n\t\t\titemDef.name = \"Pet revenant imp\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34156;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33234:\n\t\t\titemDef.name = \"Pet revenant goblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34262;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33235:\n\t\t\titemDef.name = \"Pet revenant pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34142;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33236:\n\t\t\titemDef.name = \"Pet revenant hobgoblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34157;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33237:\n\t\t\titemDef.name = \"Pet revenant cyclops\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34155;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33238:\n\t\t\titemDef.name = \"Pet revenant hellhound\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34143;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33239:\n\t\t\titemDef.name = \"Pet revenant demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modifiedModelColors = new int[] { 1690, 910, 912, 1814, 1938 };\n\t\t\titemDef.originalModelColors = new int[] { 43078, 43078, 43078, 43078, 43078, 43078 };\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33240:\n\t\t\titemDef.name = \"Pet revenant ork\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34154;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33242:\n\t\t\titemDef.name = \"Pet revenant dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34158;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33243:\n\t\t\titemDef.name = \"Pet revenant knight\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34145;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33244:\n\t\t\titemDef.name = \"Pet revenant dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34163;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33245:\n\t\t\titemDef.name = \"Pet glob\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26074;\n\t\t\titemDef.modelZoom = 10000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33246:\n\t\t\titemDef.name = \"Pet ice queen\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 104;\n\t\t\titemDef.modifiedModelColors = new int[] { 41, 61, 4550, 12224, 25238, 6798 };\n\t\t\titemDef.originalModelColors = new int[] { -22052, -26150, -24343, -22052, -22052, -23327 };\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33247:\n\t\t\titemDef.name = \"Pet enraged tarn\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60322;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33248:\n\t\t\titemDef.name = \"Pet jaltok-jad\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 33012;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33249:\n\t\t\titemDef.name = \"Pet rune dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34668;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33271:\n\t\t\titemDef.name = \"Moo\";\n\t\t\titemDef.description = \"cow goes moo.\";\n\t\t\titemDef.modelId = 23889;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33250:\n\t\t\titemDef.name = \"Swift gloves (Black)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62657;\n\t\t\titemDef.femaleModel = 62658;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33251:\n\t\t\titemDef.name = \"Swift gloves (Red)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62659;\n\t\t\titemDef.femaleModel = 62660;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33252:\n\t\t\titemDef.name = \"Swift gloves (White)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62661;\n\t\t\titemDef.femaleModel = 62662;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33253:\n\t\t\titemDef.name = \"Swift gloves (Yellow)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62663;\n\t\t\titemDef.femaleModel = 62664;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33254:\n\t\t\titemDef.name = \"Spellcaster gloves (Black)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62665;\n\t\t\titemDef.femaleModel = 62666;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33255:\n\t\t\titemDef.name = \"Spellcaster gloves (Red)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62667;\n\t\t\titemDef.femaleModel = 62668;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33256:\n\t\t\titemDef.name = \"Spellcaster gloves (White)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62669;\n\t\t\titemDef.femaleModel = 62670;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33257:\n\t\t\titemDef.name = \"Spellcaster gloves (Yellow)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62671;\n\t\t\titemDef.femaleModel = 62672;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33258:\n\t\t\titemDef.name = \"Tekton longsword\";\n\t\t\titemDef.description = \"Tekton longsword.\";\n\t\t\titemDef.modelId = 62682;\n\t\t\titemDef.maleModel = 62681;\n\t\t\titemDef.femaleModel = 62681;\n\t\t\titemDef.modelZoom = 1445;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33259:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33260:\n\t\t\titemDef.name = \"Pet drake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36160;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33261:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33262:\n\t\t\titemDef.name = \"Valentines Balloon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62766;\n\t\t\titemDef.maleModel = 62767;\n\t\t\titemDef.femaleModel = 62767;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 270;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33263:\n\t\t\titemDef.name = \"Cupid bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62768;\n\t\t\titemDef.maleModel = 62769;\n\t\t\titemDef.femaleModel = 62769;\n\t\t\titemDef.modelZoom = 1072;\n\t\t\titemDef.modelRotation1 = 127;\n\t\t\titemDef.modelRotation2 = 103;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33264:\n\t\t\titemDef.name = \"Halo and horns\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62771;\n\t\t\titemDef.maleModel = 62770;\n\t\t\titemDef.femaleModel = 62770;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 228;\n\t\t\titemDef.modelRotation2 = 141;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33265:\n\t\t\titemDef.name = \"Heart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62782;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33266:\n\t\t\titemDef.name = \"Valentines mystery box\";\n\t\t\titemDef.description = \"You make me hard.\";\n\t\t\titemDef.modelId = 62773;\n\t\t\titemDef.modelZoom = 464;\n\t\t\titemDef.modelRotation1 = 423;\n\t\t\titemDef.modelRotation2 = 1928;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33267:\n\t\t\titemDef.name = \"Staff of adoration\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62774;\n\t\t\titemDef.maleModel = 62775;\n\t\t\titemDef.femaleModel = 62775;\n\t\t\titemDef.modelZoom = 1579;\n\t\t\titemDef.modelRotation1 = 660;\n\t\t\titemDef.modelRotation2 = 48;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33268:\n\t\t\titemDef.name = \"Valentines crossbow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62778;\n\t\t\titemDef.maleModel = 62779;\n\t\t\titemDef.femaleModel = 62779;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33269:\n\t\t\titemDef.name = \"Onyxia Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 2130, 38693 };\n\t\t\titemDef.description = \"Chances at several unqiue items found only in this box! (ex: Tekton Armor)\";\n\t\t\tbreak;\n\t\tcase 33270:\n\t\t\titemDef.name = \"Dragon Hunter Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 1050 };\n\t\t\titemDef.description = \"Chances for items that give bonuses toward dragons. (ex: Dragonhunter Lance)\";\n\t\t\tbreak;\n\t\tcase 33273:\n\t\t\titemDef.name = \"Ancient sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60201;\n\t\t\titemDef.maleModel = 60200;\n\t\t\titemDef.femaleModel = 60200;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33274:\n\t\t\titemDef.name = \"Armadyl staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60203;\n\t\t\titemDef.maleModel = 60202;\n\t\t\titemDef.femaleModel = 60202;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33275:\n\t\t\titemDef.name = \"Bork axe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60205;\n\t\t\titemDef.maleModel = 60204;\n\t\t\titemDef.femaleModel = 60204;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33276:\n\t\t\titemDef.name = \"Bree bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60207;\n\t\t\titemDef.maleModel = 60206;\n\t\t\titemDef.femaleModel = 60206;\n\t\t\titemDef.modelZoom = 1700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33277:\n\t\t\titemDef.name = \"Infernal staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60209;\n\t\t\titemDef.maleModel = 60208;\n\t\t\titemDef.femaleModel = 60208;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33278:\n\t\t\titemDef.name = \"Infernal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60211;\n\t\t\titemDef.maleModel = 60210;\n\t\t\titemDef.femaleModel = 60210;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33279:\n\t\t\titemDef.name = \"Necrolord staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60213;\n\t\t\titemDef.maleModel = 60212;\n\t\t\titemDef.femaleModel = 60212;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33280:\n\t\t\titemDef.name = \"Insert name here\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60215;\n\t\t\titemDef.maleModel = 60214;\n\t\t\titemDef.femaleModel = 60214;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33281:\n\t\t\titemDef.name = \"Infernal bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60219;\n\t\t\titemDef.maleModel = 60218;\n\t\t\titemDef.femaleModel = 60218;\n\t\t\titemDef.modelZoom = 3334;\n\t\t\titemDef.modelRotation1 = 533;\n\t\t\titemDef.modelRotation2 = 1294;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33282:\n\t\t\titemDef.name = \"Infernal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60221;\n\t\t\titemDef.maleModel = 60220;\n\t\t\titemDef.femaleModel = 60220;\n\t\t\titemDef.modelZoom = 2512;\n\t\t\titemDef.modelRotation1 = 317;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = 45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33283:\n\t\t\titemDef.name = \"Imbued Porazdir's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 13263, 13014, 13243, 13000, 13275 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your strength for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33284:\n\t\t\titemDef.name = \"Imbued Justiciar's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 31661, 31418, 31661, 31167, 31445 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Defence for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32285:\n\t\t\titemDef.name = \"Imbued Derwen's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 930, 936, 940, 950 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Attack for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32286:\n\t\t\titemDef.name = \"Bronze fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 5652, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32287:\n\t\t\titemDef.name = \"Iron fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 33, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32288:\n\t\t\titemDef.name = \"Steel fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 61, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32289:\n\t\t\titemDef.name = \"Black fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32290:\n\t\t\titemDef.name = \"Mithril fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 43297, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32291:\n\t\t\titemDef.name = \"Adamant fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 21662, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32292:\n\t\t\titemDef.name = \"Rune fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 36133, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32293:\n\t\t\titemDef.name = \"Dragon fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing. Can also be used for Deep sea fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32294:\n\t\t\titemDef.name = \"Raw eel\";\n\t\t\titemDef.description = \"Slimy\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32295:\n\t\t\titemDef.name = \"Burnt eel\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8724, 3226, 9754 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32296:\n\t\t\titemDef.name = \"Eel\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 8386, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8088, 6032, 57, 2960 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32297:\n\t\t\titemDef.name = \"Raw baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 103, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 7756, 5349 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32298:\n\t\t\titemDef.name = \"Burnt baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 28, 41 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32299:\n\t\t\titemDef.name = \"Baron shark\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 8109, 4795 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32300:\n\t\t\titemDef.name = \"Raw cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60223;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32301:\n\t\t\titemDef.name = \"Burnt cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60227;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32302:\n\t\t\titemDef.name = \"Cavefish\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 60228;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32303:\n\t\t\titemDef.name = \"Dragonfire visage (e)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26456;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modifiedModelColors = new int[] { 45, 41, 33, 24, 20, 57, 22, 37 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 1, 2, 3, 4, 5, 6, 7 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33285:\n\t\t\titemDef.name = \"Easter Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"Chances for all sorts of Easter Items!\";\n\t\t\tbreak;\n\n\t\tcase 33286:\n\t\t\titemDef.name = \"Easter Cape\";\n\t\t\titemDef.inventoryOptions = new String[] { null, \"wear\", null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"An Easter Cape.\";\n\t\t\tbreak;\n\n\t\tcase 33287:\n\t\t\titemDef.name = \"Pet Easter Bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"You've captured the Easter bunny!\";\n\t\t\tbreak;\n\n\t\tcase 33288:\n\t\t\titemDef.name = \"Pet Choco\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 7079 };\n\t\t\tbreak;\n\n\t\tcase 33289:\n\t\t\titemDef.name = \"Pet Milkie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 6040 };\n\t\t\tbreak;\n\n\t\tcase 33290:\n\t\t\titemDef.name = \"Pet Goldie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"oh wow... a rare golden bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 9152 };\n\t\t\tbreak;\n\n\t\tcase 33291:\n\t\t\titemDef.name = \"Pet Blue\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"A blue bunny... kinda looks like the easter bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 35321 };\n\t\t\tbreak;\n\n\t\tcase 33292:\n\t\t\titemDef.name = \"Crazed bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 23901;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"What a bloody mess...\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5413, 5417, 5421 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 111, 127 };\n\t\t\tbreak;\n\n\t\tcase 33293:\n\t\t\titemDef.name = \"Peter Rabbit\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 28602;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"Hi Peter!\";\n\t\t\tbreak;\n\n\t\tcase 33294:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947 };\n\t\t\titemDef.originalModelColors = new int[] { 8128 };\n\t\t\tbreak;\n\n\t\tcase 33295:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 25511 };\n\t\t\tbreak;\n\n\t\tcase 33296:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 38835 };\n\t\t\tbreak;\n\n\t\tcase 33297:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 947 };\n\t\t\tbreak;\n\n\t\tcase 33305:\n\t\t\titemDef.name = \"$10 bond\";\n\t\t\titemDef.description = \"$10 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 84, 84, 84, 84, 84, 84, 84 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33306:\n\t\t\titemDef.name = \"$25 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 87, 87, 87, 87, 87, 87, 87 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33307:\n\t\t\titemDef.name = \"$50 bond\";\n\t\t\titemDef.description = \"$50 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 65, 65, 65, 65, 65, 65, 65 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33308:\n\t\t\titemDef.name = \"$100 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 75, 75, 75, 75, 75, 75, 75 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33309:\n\t\t\titemDef.name = \"$200 bond\";\n\t\t\titemDef.description = \"$200 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 88, 88, 88, 88, 88, 88, 88 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33310:\n\t\t\titemDef.name = \"$500 bond\";\n\t\t\titemDef.description = \"$500 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 85, 85, 85, 85, 85, 85, 85 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33311:\n\t\t\titemDef.name = \"$1000 bond\";\n\t\t\titemDef.description = \"$1000 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 86, 86, 86, 86, 86, 86, 86 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33312:\n\t\t\titemDef.name = \"Armadyl battlestaff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60332;\n\t\t\titemDef.maleModel = 60333;\n\t\t\titemDef.femaleModel = 60333;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 225;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33313:\n\t\t\titemDef.name = \"Colossal platebody\";\n\t\t\titemDef.description = \"Colossal platebody.\";\n\t\t\titemDef.modelId = 60323;\n\t\t\titemDef.maleModel = 60324;\n\t\t\titemDef.femaleModel = 60324;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33314:\n\t\t\titemDef.name = \"Colossal platelegs\";\n\t\t\titemDef.description = \"Colossal platelegs.\";\n\t\t\titemDef.modelId = 60325;\n\t\t\titemDef.maleModel = 60326;\n\t\t\titemDef.femaleModel = 60326;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33315:\n\t\t\titemDef.name = \"Colossal boots\";\n\t\t\titemDef.description = \"Colossal boots.\";\n\t\t\titemDef.modelId = 60329;\n\t\t\titemDef.maleModel = 60329;\n\t\t\titemDef.femaleModel = 60329;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33316:\n\t\t\titemDef.name = \"Colossal gloves\";\n\t\t\titemDef.description = \"Colossal gloves.\";\n\t\t\titemDef.modelId = 60330;\n\t\t\titemDef.maleModel = 60331;\n\t\t\titemDef.femaleModel = 60331;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33317:\n\t\t\titemDef.name = \"Colossal helmet\";\n\t\t\titemDef.description = \"Colossal helmet.\";\n\t\t\titemDef.modelId = 60327;\n\t\t\titemDef.maleModel = 60328;\n\t\t\titemDef.femaleModel = 60328;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33318:\n\t\t\titemDef.name = \"Polypore staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60334;\n\t\t\titemDef.maleModel = 60335;\n\t\t\titemDef.femaleModel = 60335;\n\t\t\titemDef.modelZoom = 3750;\n\t\t\titemDef.modelRotation1 = 1454;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33319:\n\t\t\titemDef.name = \"Ganodermic platebody\";\n\t\t\titemDef.description = \"Ganodermic platebody.\";\n\t\t\titemDef.modelId = 60338;\n\t\t\titemDef.maleModel = 60339;\n\t\t\titemDef.femaleModel = 60339;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33320:\n\t\t\titemDef.name = \"Ganodermic platelegs\";\n\t\t\titemDef.description = \"Ganodermic platelegs.\";\n\t\t\titemDef.modelId = 60340;\n\t\t\titemDef.maleModel = 60341;\n\t\t\titemDef.femaleModel = 60341;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33321:\n\t\t\titemDef.name = \"Ganodermic helmet\";\n\t\t\titemDef.description = \"Ganodermic helmet.\";\n\t\t\titemDef.modelId = 60336;\n\t\t\titemDef.maleModel = 60337;\n\t\t\titemDef.femaleModel = 60337;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33322:\n\t\t\titemDef.name = \"Grotesque platebody\";\n\t\t\titemDef.description = \"Grosteq platebody.\";\n\t\t\titemDef.modelId = 60347;\n\t\t\titemDef.maleModel = 60348;\n\t\t\titemDef.femaleModel = 60348;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33323:\n\t\t\titemDef.name = \"Grotesque platelegs\";\n\t\t\titemDef.description = \"Grosteq platelegs.\";\n\t\t\titemDef.modelId = 60349;\n\t\t\titemDef.maleModel = 60350;\n\t\t\titemDef.femaleModel = 60350;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33324:\n\t\t\titemDef.name = \"Grotesque helmet\";\n\t\t\titemDef.description = \"Grosteqc helmet.\";\n\t\t\titemDef.modelId = 60345;\n\t\t\titemDef.maleModel = 60346;\n\t\t\titemDef.femaleModel = 60346;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33325:\n\t\t\titemDef.name = \"Grotesque cape\";\n\t\t\titemDef.description = \"Grosteq cape.\";\n\t\t\titemDef.modelId = 60351;\n\t\t\titemDef.maleModel = 60352;\n\t\t\titemDef.femaleModel = 60352;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33326:\n\t\t\titemDef.name = \"Stunning Hammer\";\n\t\t\titemDef.description = \"Has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60353;\n\t\t\titemDef.maleModel = 60354;\n\t\t\titemDef.femaleModel = 60354;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33327:\n\t\t\titemDef.name = \"Stunning Katagon platebody\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60356;\n\t\t\titemDef.maleModel = 60357;\n\t\t\titemDef.femaleModel = 60357;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33328:\n\t\t\titemDef.name = \"Stunning Katagon platelegs\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60358;\n\t\t\titemDef.maleModel = 60359;\n\t\t\titemDef.femaleModel = 60359;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33329:\n\t\t\titemDef.name = \"Stunning Katagon helmet\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60360;\n\t\t\titemDef.maleModel = 60361;\n\t\t\titemDef.femaleModel = 60361;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33331:\n\t\t\titemDef.name = \"Ancient platebody\";\n\t\t\titemDef.description = \"Ancient platebody.\";\n\t\t\titemDef.modelId = 60366;\n\t\t\titemDef.maleModel = 60367;\n\t\t\titemDef.femaleModel = 60367;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33332:\n\t\t\titemDef.name = \"Ancient platelegs\";\n\t\t\titemDef.description = \"Ancient platelegs.\";\n\t\t\titemDef.modelId = 60368;\n\t\t\titemDef.maleModel = 60369;\n\t\t\titemDef.femaleModel = 60369;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33334:\n\t\t\titemDef.name = \"Ancient boots\";\n\t\t\titemDef.description = \"Ancient boots.\";\n\t\t\titemDef.modelId = 60372;\n\t\t\titemDef.maleModel = 60372;\n\t\t\titemDef.femaleModel = 60372;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33335:\n\t\t\titemDef.name = \"Ancient gloves\";\n\t\t\titemDef.description = \"Ancient gloves.\";\n\t\t\titemDef.modelId = 60370;\n\t\t\titemDef.maleModel = 60371;\n\t\t\titemDef.femaleModel = 60371;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33336:\n\t\t\titemDef.name = \"Ancient helmet\";\n\t\t\titemDef.description = \"Ancient helmet.\";\n\t\t\titemDef.modelId = 60364;\n\t\t\titemDef.maleModel = 60365;\n\t\t\titemDef.femaleModel = 60365;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33341:\n\t\t\titemDef.name = \"Vanguard helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60391;\n\t\t\titemDef.maleModel = 60392;\n\t\t\titemDef.femaleModel = 60392;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33342:\n\t\t\titemDef.name = \"Vanguard platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60393;\n\t\t\titemDef.maleModel = 60394;\n\t\t\titemDef.femaleModel = 60394;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33343:\n\t\t\titemDef.name = \"Vanguard platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60395;\n\t\t\titemDef.maleModel = 60396;\n\t\t\titemDef.femaleModel = 60396;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33344:\n\t\t\titemDef.name = \"Vanguard boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60398;\n\t\t\titemDef.maleModel = 60398;\n\t\t\titemDef.femaleModel = 60398;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33345:\n\t\t\titemDef.name = \"Vanguard gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60373;\n\t\t\titemDef.maleModel = 60397;\n\t\t\titemDef.femaleModel = 60397;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33346:\n\t\t\titemDef.name = \"Celestial staff of light\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60401;\n\t\t\titemDef.maleModel = 60402;\n\t\t\titemDef.femaleModel = 60402;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 101 };\n\t\t\titemDef.originalModelColors = new int[] { 12 };\n\t\t\titemDef.maleOffset = -6;\n\t\t\titemDef.femaleOffset = -6;\n\t\t\tbreak;\n\n\t\tcase 33347:\n\t\t\titemDef.name = \"Hood of sorrow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60438;\n\t\t\titemDef.maleModel = 60403;\n\t\t\titemDef.femaleModel = 60403;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33348:\n\t\t\titemDef.name = \"Celestial robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60404;\n\t\t\titemDef.maleModel = 60405;\n\t\t\titemDef.femaleModel = 60405;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33349:\n\t\t\titemDef.name = \"Celestial robe legs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60406;\n\t\t\titemDef.maleModel = 60407;\n\t\t\titemDef.femaleModel = 60407;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33350:\n\t\t\titemDef.name = \"Primal 2h sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60408;\n\t\t\titemDef.maleModel = 60409;\n\t\t\titemDef.femaleModel = 60409;\n\t\t\titemDef.modelZoom = 1701;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.modelRotation2 = 1529;\n\t\t\titemDef.modelRotation1 = 1713;\n\t\t\titemDef.modelRotationY = 898;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33353:\n\t\t\titemDef.name = \"Primal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60417;\n\t\t\titemDef.maleModel = 60418;\n\t\t\titemDef.femaleModel = 60418;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.modelRotation2 = 1793;\n\t\t\titemDef.modelRotation1 = 1473;\n\t\t\titemDef.modelRotationY = 1121;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33354:\n\t\t\titemDef.name = \"Primal maul\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60419;\n\t\t\titemDef.maleModel = 60420;\n\t\t\titemDef.femaleModel = 60420;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33359:\n\t\t\titemDef.name = \"Primal rapier\";\n\t\t\titemDef.description = \"Good for fighting the ...\";\n\t\t\titemDef.modelId = 60433;\n\t\t\titemDef.maleModel = 60433;\n\t\t\titemDef.femaleModel = 60433;\n\t\t\titemDef.modelZoom = 1300;\n\t\t\titemDef.modelRotation1 = 1401;\n\t\t\titemDef.modelRotation2 = 1724;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 15;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33360:\n\t\t\titemDef.name = \"Primal spear\";\n\t\t\titemDef.description = \"Good for fighting the Corperal Beast.\";\n\t\t\titemDef.modelId = 60434;\n\t\t\titemDef.maleModel = 60435;\n\t\t\titemDef.femaleModel = 60435;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -10;\n\t\t\titemDef.maleOffset = -10;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33361:\n\t\t\titemDef.name = \"Primal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60436;\n\t\t\titemDef.maleModel = 60437;\n\t\t\titemDef.femaleModel = 60437;\n\t\t\titemDef.modelZoom = 1330;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 148;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33362:\n\t\t\titemDef.name = \"Chitin helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60445;\n\t\t\titemDef.maleModel = 60446;\n\t\t\titemDef.femaleModel = 60446;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33364:\n\t\t\titemDef.name = \"Chitin platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60447;\n\t\t\titemDef.maleModel = 60448;\n\t\t\titemDef.femaleModel = 60448;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33365:\n\t\t\titemDef.name = \"Chitin platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60449;\n\t\t\titemDef.maleModel = 60450;\n\t\t\titemDef.femaleModel = 60450;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33366:\n\t\t\titemDef.name = \"Chitin cape\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60443;\n\t\t\titemDef.maleModel = 60444;\n\t\t\titemDef.femaleModel = 60444;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33367:\n\t\t\titemDef.name = \"Supreme void helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60467;\n\t\t\titemDef.maleModel = 60464;\n\t\t\titemDef.femaleModel = 60464;\n\t\t\titemDef.modelZoom = 900;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33368:\n\t\t\titemDef.name = \"Supreme void robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60468;\n\t\t\titemDef.maleModel = 60465;\n\t\t\titemDef.femaleModel = 60465;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33369:\n\t\t\titemDef.name = \"Supreme void robe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60469;\n\t\t\titemDef.maleModel = 60466;\n\t\t\titemDef.femaleModel = 60466;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33370:\n\t\t\titemDef.name = \"Korasi's sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60471;\n\t\t\titemDef.maleModel = 60470;\n\t\t\titemDef.femaleModel = 60470;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 330;\n\t\t\titemDef.modelRotation2 = 1505;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\n\t\tcase 33371:\n\t\t\titemDef.name = \"Spiked slayer helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60475;\n\t\t\titemDef.maleModel = 60476;\n\t\t\titemDef.femaleModel = 60476;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33372:\n\t\t\titemDef.name = \"Slayer platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60478;\n\t\t\titemDef.maleModel = 60479;\n\t\t\titemDef.femaleModel = 60479;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33373:\n\t\t\titemDef.name = \"Slayer platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60474;\n\t\t\titemDef.maleModel = 60477;\n\t\t\titemDef.femaleModel = 60477;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33374:\n\t\t\titemDef.name = \"Slayer boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60472;\n\t\t\titemDef.maleModel = 60473;\n\t\t\titemDef.femaleModel = 60473;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33375:\n\t\t\titemDef.name = \"Blood Justiciar helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60482;\n\t\t\titemDef.maleModel = 60483;\n\t\t\titemDef.femaleModel = 60483;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33376:\n\t\t\titemDef.name = \"Blood Justiciar platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60484;\n\t\t\titemDef.maleModel = 60485;\n\t\t\titemDef.femaleModel = 60485;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33377:\n\t\t\titemDef.name = \"Blood justiciar platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60486;\n\t\t\titemDef.maleModel = 60487;\n\t\t\titemDef.femaleModel = 60487;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33378:\n\t\t\titemDef.name = \"Blood justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60488;\n\t\t\titemDef.maleModel = 60488;\n\t\t\titemDef.femaleModel = 60488;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33379:\n\t\t\titemDef.name = \"Blood justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60489;\n\t\t\titemDef.maleModel = 60490;\n\t\t\titemDef.femaleModel = 60490;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33380:\n\t\t\titemDef.name = \"Blood scythe of vitur\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60480;\n\t\t\titemDef.maleModel = 60481;\n\t\t\titemDef.femaleModel = 60481;\n\t\t\titemDef.modelZoom = 3850;\n\t\t\titemDef.modelRotation1 = 727;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33381:\n\t\t\titemDef.name = \"Skiller cape\";\n\t\t\titemDef.description = \"Skiller cape.\";\n\t\t\titemDef.modelId = 60494;\n\t\t\titemDef.maleModel = 60493;\n\t\t\titemDef.femaleModel = 60492;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33382:\n\t\t\titemDef.name = \"Justiciar faceguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33383:\n\t\t\titemDef.name = \"Justiciar faceguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33384:\n\t\t\titemDef.name = \"Justiciar faceguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33385:\n\t\t\titemDef.name = \"Justiciar faceguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33387:\n\t\t\titemDef.name = \"Justiciar faceguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33389:\n\t\t\titemDef.name = \"Justiciar faceguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33390:\n\t\t\titemDef.name = \"Justiciar chestguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33391:\n\t\t\titemDef.name = \"Justiciar chestguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33392:\n\t\t\titemDef.name = \"Justiciar chestguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33393:\n\t\t\titemDef.name = \"Justiciar chestguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33394:\n\t\t\titemDef.name = \"Justiciar chestguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33395:\n\t\t\titemDef.name = \"Justiciar chestguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33396:\n\t\t\titemDef.name = \"Justiciar legguards (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33397:\n\t\t\titemDef.name = \"Justiciar legguards (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33398:\n\t\t\titemDef.name = \"Justiciar legguards (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33399:\n\t\t\titemDef.name = \"Justiciar legguards (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33400:\n\t\t\titemDef.name = \"Justiciar legguards (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33401:\n\t\t\titemDef.name = \"Justiciar legguards (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33402:\n\t\t\titemDef.name = \"Pet andy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 50169;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33403:\n\t\t\titemDef.name = \"Pet mod divine\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 14283;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33404:\n\t\t\titemDef.name = \"Celestial fairy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60491;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 947 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 937, 11200 };\n\t\t\titemDef.originalModelColors = new int[] { 42663, 41883 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33405:\n\t\t\titemDef.name = \"Lava partyhat (red)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33406:\n\t\t\titemDef.name = \"Lava partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33407:\n\t\t\titemDef.name = \"Lava partyhat (cyan)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33408:\n\t\t\titemDef.name = \"Lava partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33409:\n\t\t\titemDef.name = \"Infernal partyhat (blue)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33410:\n\t\t\titemDef.name = \"Infernal partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33411:\n\t\t\titemDef.name = \"Infernal partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33412:\n\t\t\titemDef.name = \"Infernal partyhat (rainbow)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33413:\n\t\t\titemDef.name = \"Celestial partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33414:\n\t\t\titemDef.name = \"Blood partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33415:\n\t\t\titemDef.name = \"Shadow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33416:\n\t\t\titemDef.name = \"Light blue partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33417:\n\t\t\titemDef.name = \"Easter partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33418:\n\t\t\titemDef.name = \"Dark sparkle partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33419:\n\t\t\titemDef.name = \"Rainbow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33420:\n\t\t\titemDef.name = \"Fire partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33421:\n\t\t\titemDef.name = \"Pet star sprite\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60506;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33422:\n\t\t\titemDef.name = \"Stargaze Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33423:\n\t\t\titemDef.name = \"Star Dust\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Exchange\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 60496;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 279;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 47;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33424:\n\t\t\titemDef.name = \"Blood twisted bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32799;\n\t\t\titemDef.maleModel = 32674;\n\t\t\titemDef.femaleModel = 32674;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10318, 10334 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66 };\n\t\t\titemDef.modifiedModelColors = new int[] { 14236, 13223 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33425:\n\t\t\titemDef.name = \"Celestial crow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60507;\n\t\t\titemDef.modelZoom = 1000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10382 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10378, 10502 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33426:\n\t\t\titemDef.name = \"Celestial penguin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60508;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10343 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 16, 12, 20, 24, 8, 10332, 10337 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33427:\n\t\t\titemDef.name = \"Celestial snake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60509;\n\t\t\titemDef.modelZoom = 1800;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10644, 10512 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78, 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10413, 10405, 10524 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33428:\n\t\t\titemDef.name = \"Celestial scorpion\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60510;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 142 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 4884, 4636, 3974, 4525, 4645 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33429:\n\t\t\titemDef.name = \"Armadyl dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\tbreak;\n\n\t\tcase 33430:\n\t\t\titemDef.name = \"Guthix dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\tbreak;\n\n\t\tcase 33431:\n\t\t\titemDef.name = \"Zamorak dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\tbreak;\n\n\t\tcase 33432:\n\t\t\titemDef.name = \"Ancient dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\tbreak;\n\n\t\tcase 33433:\n\t\t\titemDef.name = \"Bandos dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\tbreak;\n\n\t\tcase 33434:\n\t\t\titemDef.name = \"Saradomin dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\tbreak;\n\n\t\tcase 33435:\n\t\t\titemDef.name = \"Celestial egg\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 7171;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelRotation2 = 16;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 476 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Hatch\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\tcase 33436:\n\t\t\titemDef.name = \"Elite void top (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10586;\n\t\t\titemDef.maleModel = 10687;\n\t\t\titemDef.anInt188 = 10681;\n\t\t\titemDef.femaleModel = 10694;\n\t\t\titemDef.anInt164 = 10688;\n\t\t\titemDef.modelZoom = 1221;\n\t\t\titemDef.modelRotation1 = 459;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33437:\n\t\t\titemDef.name = \"Elite void robe (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60528;\n\t\t\titemDef.maleModel = 60526;\n\t\t\titemDef.femaleModel = 60527;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33438:\n\t\t\titemDef.name = \"Blood chest\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60516;\n\t\t\titemDef.modelZoom = 2640;\n\t\t\titemDef.modelRotation1 = 114;\n\t\t\titemDef.modelRotation2 = 1883;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33439:\n\t\t\titemDef.name = \"Blood bird\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60517;\n\t\t\titemDef.modelZoom = 2768;\n\t\t\titemDef.modelRotation1 = 141;\n\t\t\titemDef.modelRotation2 = 1790;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.originalTextureColors = new int[] { 1946, 2983, 6084, 2735, 5053, 6082, 4013, 2733, 4011, 2880,\n\t\t\t\t\t8150 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66 };\n\t\t\tbreak;\n\n\t\tcase 33440:\n\t\t\titemDef.name = \"Blood Death\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60441;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33442:\n\t\t\titemDef.name = \"10 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33446:\n\t\t\titemDef.name = \"10 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33450:\n\t\t\titemDef.name = \"10 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33454:\n\t\t\titemDef.name = \"10 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33458:\n\t\t\titemDef.name = \"10 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33462:\n\t\t\titemDef.name = \"10 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33443:\n\t\t\titemDef.name = \"30 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33447:\n\t\t\titemDef.name = \"30 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33451:\n\t\t\titemDef.name = \"30 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33455:\n\t\t\titemDef.name = \"30 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33459:\n\t\t\titemDef.name = \"30 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33463:\n\t\t\titemDef.name = \"30 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33444:\n\t\t\titemDef.name = \"60 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33448:\n\t\t\titemDef.name = \"60 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33452:\n\t\t\titemDef.name = \"60 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33456:\n\t\t\titemDef.name = \"60 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33460:\n\t\t\titemDef.name = \"60 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33464:\n\t\t\titemDef.name = \"60 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33445:\n\t\t\titemDef.name = \"120 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33449:\n\t\t\titemDef.name = \"120 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33453:\n\t\t\titemDef.name = \"120 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33457:\n\t\t\titemDef.name = \"120 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33461:\n\t\t\titemDef.name = \"120 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33465:\n\t\t\titemDef.name = \"120 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33466:\n\t\t\titemDef.name = \"Deathtouched dart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60534;\n\t\t\titemDef.maleModel = 60533;\n\t\t\titemDef.femaleModel = 60533;\n\t\t\titemDef.modelZoom = 1053;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33467:\n\t\t\titemDef.name = \"Justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60535;\n\t\t\titemDef.maleModel = 60535;\n\t\t\titemDef.femaleModel = 60535;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33468:\n\t\t\titemDef.name = \"Justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31022;\n\t\t\titemDef.maleModel = 31006;\n\t\t\titemDef.femaleModel = 31013;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 2015;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 123, 70 };\n\t\t\titemDef.originalModelColors = new int[] { 6736, 59441 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33469:\n\t\t\titemDef.name = \"Magic mushroom\";\n\t\t\titemDef.description = \"offers a 10% droprate increase while this pet follows you.\";\n\t\t\titemDef.modelId = 60532;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33470:\n\t\t\titemDef.name = \"Twisted staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60538;\n\t\t\titemDef.maleModel = 60539;\n\t\t\titemDef.femaleModel = 60539;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33471:\n\t\t\titemDef.name = \"Cowboy hat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60540;\n\t\t\titemDef.maleModel = 60541;\n\t\t\titemDef.femaleModel = 60541;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 108;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33472:\n\t\t\titemDef.name = \"Stick\";\n\t\t\titemDef.description = \"Careful of that chub.\";\n\t\t\titemDef.modelId = 60545;\n\t\t\titemDef.maleModel = 60545;\n\t\t\titemDef.femaleModel = 60545;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33473:\n\t\t\titemDef.name = \"#1 Tob cape\";\n\t\t\titemDef.description = \"Reward to the first to complete tob solo and in a team.\";\n\t\t\titemDef.modelId = 60551;\n\t\t\titemDef.maleModel = 60550;\n\t\t\titemDef.femaleModel = 60550;\n\t\t\titemDef.modelZoom = 2295;\n\t\t\titemDef.modelRotation1 = 367;\n\t\t\titemDef.modelRotation2 = 1212;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33474:\n\t\t\titemDef.name = \"Supreme void upgrade kit\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4847;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 163;\n\t\t\titemDef.modelRotation2 = 73;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { -32709, 10295, 10304, 10287, 10275, 10283 };\n\t\t\titemDef.originalModelColors = new int[] { 10, 10, 10, 10, 10, 10 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33475:\n\t\t\titemDef.name = \"Hunter's penguin\";\n\t\t\titemDef.description = \"the one and only's pet.\";\n\t\t\titemDef.modelId = 60548;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33476:\n\t\t\titemDef.name = \"Chef Harambe\";\n\t\t\titemDef.description = \"I like to dip my balls in a deep fryer.\";\n\t\t\titemDef.modelId = 60921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33477:\n\t\t\titemDef.name = \"Void knight champion jr\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60463;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33478:\n\t\t\titemDef.name = \"Custom pet token\";\n\t\t\titemDef.description = \"Trade this to corey after filling out a form on the forums post custom pets\";\n\t\t\titemDef.modelId = 13838;\n\t\t\titemDef.modelZoom = 530;\n\t\t\titemDef.modelRotation1 = 415;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33479:\n\t\t\titemDef.name = \"Mr jaycorr\";\n\t\t\titemDef.description = \"The autistic one.\";\n\t\t\titemDef.modelId = 60592;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33480:\n\t\t\titemDef.name = \"Broom broom\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60593;\n\t\t\titemDef.maleModel = 60593;\n\t\t\titemDef.femaleModel = 60593;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33481:\n\t\t\titemDef.name = \"Test\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11773:\n\t\tcase 11771:\n\t\tcase 11770:\n\t\tcase 11772:\n\t\t\titemDef.anInt196 += 45;\n\t\t\tbreak;\n\t\tcase 22610:\n\t\t\titemDef.name = \"Vesta's spear (deg)\";\n\t\t\tbreak;\n\t\tcase 22614:\n\t\t\titemDef.name = \"Vesta's longsword (deg)\";\n\t\t\tbreak;\n\t\tcase 22616:\n\t\t\titemDef.name = \"Vesta's chainbody (deg)\";\n\t\t\tbreak;\n\t\tcase 22619:\n\t\t\titemDef.name = \"Vesta's plateskirt (deg)\";\n\t\t\tbreak;\n\t\tcase 22622:\n\t\t\titemDef.name = \"Statius's warhammer (deg)\";\n\t\t\tbreak;\n\t\tcase 22625:\n\t\t\titemDef.name = \"Statius's full helm (deg)\";\n\t\t\tbreak;\n\t\tcase 22628:\n\t\t\titemDef.name = \"Statius's platebody (deg)\";\n\t\t\tbreak;\n\t\tcase 22631:\n\t\t\titemDef.name = \"Statius's platelegs (deg)\";\n\t\t\tbreak;\n\t\tcase 22638:\n\t\t\titemDef.name = \"Morrigan's coif (deg)\";\n\t\t\tbreak;\n\t\tcase 22641:\n\t\t\titemDef.name = \"Morrigan's leather body (deg)\";\n\t\t\tbreak;\n\t\tcase 22644:\n\t\t\titemDef.name = \"Morrigan's leather chaps (deg)\";\n\t\t\tbreak;\n\t\tcase 22647:\n\t\t\titemDef.name = \"Zuriel's staff (deg)\";\n\t\t\tbreak;\n\t\tcase 22650:\n\t\t\titemDef.name = \"Zuriel's hood (deg)\";\n\t\t\tbreak;\n\t\tcase 22653:\n\t\t\titemDef.name = \"Zuriel's robe top (deg)\";\n\t\t\tbreak;\n\t\tcase 22656:\n\t\t\titemDef.name = \"Zuriel's robe bottom (deg)\";\n\t\t\tbreak;\n\n\t\tcase 13303:\n\t\t\titemDef.name = \"Event Key (Tarn)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13302:\n\t\t\titemDef.name = \"Event Key (Graardor)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13305:\n\t\t\titemDef.name = \"Tastey-Looking Key\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 2697:\n\t\t\titemDef.name = \"$10 Scroll\";\n\t\t\titemDef.description = \"Get donor status at a cheaper cost!\";\n\t\t\tbreak;\n\t\tcase 2698:\n\t\t\titemDef.name = \"$50 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Super Donator status.\";\n\t\t\tbreak;\n\t\tcase 2699:\n\t\t\titemDef.name = \"$100 Donator\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Extreme Donator status.\";\n\t\t\tbreak;\n\t\tcase 2700:\n\t\t\titemDef.name = \"$5 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Legendary Donator status.\";\n\t\t\tbreak;\n\t\tcase 1464:\n\t\t\titemDef.name = \"Vote ticket\";\n\t\t\titemDef.description = \"This ticket can be exchanged for a voting point.\";\n\t\t\tbreak;\n\n\t\tcase 11739:\n\t\t\titemDef.name = \"Daily reward box\";\n\t\t\titemDef.description = \"Open this box for a daily reward.\";\n\t\t\tbreak;\n\n\t\tcase 13066:// super set\n\t\tcase 12873:// barrows\n\t\tcase 12875:\n\t\tcase 12877:\n\t\tcase 12879:\n\t\tcase 12881:\n\t\tcase 12883:\n\t\tcase 12789:// clue box\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "public interface Item {\n\n String getName();\n\n String getDescription();\n\n int getSkill(SkillType skillType);\n\n String getSkillDescr();\n}", "@Override\n public void modifyItemRPClassDefinition(RPClass item) {\n }", "public void setItem(Item item) {\n this.item = item;\n }", "protected abstract Item createTestItem1();", "ICpItem getCpItem();", "public ItemType getItemType(TypeHierarchy th) {\n return argument[0].getItemType(th); //AUTO\n }", "public Item() {\r\n this.name = \"\";\r\n this.description = \"\";\r\n this.price = 0F;\r\n this.type = \"\";\r\n this.available = 0;\r\n this.wholesaler = new Wholesaler();\r\n this.wholesalerId = 0;\r\n this.category = new Category();\r\n this.categoryId = 0; \r\n }", "public Item getItem(final String pItem){return this.aItemsList.getItem(pItem);}", "protected abstract Item createTestItem2();", "protected abstract LibraryItem getItemFromFields();", "public XSSimpleType getItemType() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: laload \n // 1: aastore \n // 2: dadd \n // 3: imul \n // 4: lsub \n // 5: ldiv \n // 6: ladd \n // 7: aastore \n // 8: lsub \n // 9: ineg \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- ---- ------------------------------------------\n // 0 10 0 this Lcom/sun/xml/xsom/impl/ListSimpleTypeImpl;\n // \n // The error that occurred was:\n // \n // java.lang.ArrayIndexOutOfBoundsException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "public void setItem(T item) {\n this.item = item;\n }", "public interface IItem extends IAction {\n\n\t/**\n\t * Additional bag option to handle quantity manifest\n\t * @return bagEmpty\n\t */\n\tpublic abstract boolean depleteItem();\n}", "public Item getItemByKey(String key) {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an object.\");\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = com.rpg.framework.database.Protocol.ItemType.ITEM_TYPE_USE;\n onChanged();\n return this;\n }", "void add(Item item);", "@Override\r\n public ItemStack getItemStack(PartItemStack type) {\n return new ItemStack(this.item);\r\n }", "public ItemType getResultItemType() {\n net.sf.saxon.type.ItemType it =\n exp.getInternalExpression().getItemType();\n return new ConstructedItemType(it, processor);\n }", "public void removeType(TradeItem someItem) {\n Iterator<TradeItem> itemIterator = items.iterator();\n while (itemIterator.hasNext()) {\n if (itemIterator.next().getClass() == someItem.getClass()) {\n itemIterator.remove();\n }\n }\n }", "public Item createItem() {\n if(pickUpImplementation == null)\n {\n pickUpImplementation = new DefaultPickUp();\n }\n\n if(lookImplementation == null)\n {\n lookImplementation = new DefaultLook(R.string.default_look);\n }\n\n if(defaultItemInteraction == null)\n {\n throw new IllegalArgumentException(\"No default interaction specified!\");\n }\n\n\n return new Item(\n id,\n name,\n pickUpImplementation,\n lookImplementation,\n useImplementation,\n defaultItemInteraction\n );\n }", "public ItemType getItemType(TypeHierarchy th) {\n\t return reqItemType;\n\t}", "public GItem(Item i) {\n this.mGItem = i.getId();\n this.title = i.getTitle();\n\n if (!i.getAddress().equals(\"\")){\n this.address = i.getAddress();\n }\n\n if (i instanceof OfficerItem){\n this.type = 1;\n\n } else if (i instanceof CompanyItem){\n this.type = 0;\n }\n\n }", "public static ItemStack item(XMaterial type, String name, String... lore) {\r\n\t\tItemStack is = type.parseItem();\r\n\t\tItemMeta im = is.getItemMeta();\r\n\t\tim.addItemFlags(ItemFlag.values());\r\n\t\tis.setItemMeta(applyMeta(im, name, lore));\r\n\t\treturn is;\r\n\t}", "private void readItems() {\n }", "public Object get(String itemName);", "public Object getItem(Node itemNode) throws XmlRecipeException;", "public interface IItemList<StackType extends IAEStack> extends IItemContainer<StackType>, Iterable<StackType>\n{\n\n\t/**\n\t * add a stack to the list stackSize is used to add to stackSize, this will merge the stack with an item already in\n\t * the list if found.\n\t * \n\t * @param option stacktype option\n\t */\n\tpublic void addStorage(StackType option); // adds a stack as stored\n\n\t/**\n\t * add a stack to the list as craftable, this will merge the stack with an item already in the list if found.\n\t * \n\t * @param option stacktype option\n\t */\n\tpublic void addCrafting(StackType option);\n\n\t/**\n\t * add a stack to the list, stack size is used to add to requestable, this will merge the stack with an item already\n\t * in the list if found.\n\t * \n\t * @param option stacktype option\n\t */\n\tpublic void addRequestable(StackType option); // adds a stack as requestable\n\n\t/**\n\t * @return the first item in the list\n\t */\n\tStackType getFirstItem();\n\n\t/**\n\t * @return the number of items in the list\n\t */\n\tint size();\n\n\t/**\n\t * allows you to iterate the list.\n\t */\n\t@Override\n\tpublic Iterator<StackType> iterator();\n\n\t/**\n\t * resets stack sizes to 0.\n\t */\n\tvoid resetStatus();\n\n}", "@Override\n public Optional<FridgeItemEntity> addItem(String fridgeId, String itemId, String itemType) {\n return Optional.empty();\n }", "public void setItem (Item item)\n\t{\n\t\tthis.item = item;\n\t}", "public interface DataType extends CodeItem {\n}", "public interface LocatedItem<E> {\r\n /**\r\n * Get the item.\r\n * \r\n * @return\r\n */\r\n public E getItem();\r\n\r\n /**\r\n * Get the ontology URI to which the item belongs.\r\n * \r\n * @return\r\n */\r\n public String getOntologyURI();\r\n}", "public ItemRecord() {\n super(Item.ITEM);\n }", "public void setItem (Object anObject)\r\n {\r\n // TODO: implement (?)\r\n }" ]
[ "0.7838396", "0.74098206", "0.7218069", "0.71742415", "0.7123452", "0.7112963", "0.71016115", "0.6994823", "0.69143265", "0.69143265", "0.6911713", "0.68600285", "0.6846953", "0.6801383", "0.6714348", "0.6709779", "0.66978717", "0.66978717", "0.6668254", "0.66451037", "0.66191405", "0.6599857", "0.65182686", "0.65041184", "0.64893687", "0.64807177", "0.6434953", "0.64130974", "0.64048755", "0.63782674", "0.63569635", "0.6341438", "0.6315945", "0.6281369", "0.6229621", "0.6217492", "0.6214324", "0.61981523", "0.61952895", "0.61897516", "0.61885643", "0.6187006", "0.6161647", "0.6160149", "0.61601406", "0.6145183", "0.6141694", "0.61368245", "0.61202216", "0.6118498", "0.6118498", "0.61105704", "0.6095531", "0.6093263", "0.6092521", "0.6079298", "0.6077155", "0.6066911", "0.6066636", "0.6066555", "0.6061766", "0.6055328", "0.6051473", "0.6029", "0.6028908", "0.60257983", "0.6021863", "0.6017224", "0.6007734", "0.59763414", "0.595817", "0.59474534", "0.5940673", "0.5930327", "0.5923346", "0.5913837", "0.5905298", "0.5902452", "0.58909994", "0.58835226", "0.5876334", "0.58762467", "0.5871321", "0.58706284", "0.5867847", "0.58668", "0.58629555", "0.5859153", "0.58581966", "0.58516854", "0.5848771", "0.5847336", "0.5834691", "0.58272344", "0.5807325", "0.5803375", "0.5798826", "0.5792544", "0.57905716", "0.57835656", "0.5782698" ]
0.0
-1
Tests whether the item is a function.
public boolean isFunction() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isFunction() { return isFunc; }", "public boolean isFunction() {\n return this.type != null;\n }", "protected void checkIsFunctionType(){\n List<Name> names = new ArrayList<Name>();\n for( Definition definition : definitions ){\n if( !definition.typedef ){\n Field field = definition.getField();\n if( field != null ){\n FieldModelNode node = field.asNode();\n if( node != null && (node.getTags().contains( Tag.USES ) || node.getTags().contains( Tag.PROVIDES ))){\n\n Type type = definition.type();\n if( type == null || type.asFunctionType() == null ){\n names.add( definition.getName() );\n }\n }\n }\n }\n }\n \n if( names.size() > 0 ){\n error( \"'\" + name + \"' must have a function type\", names );\n }\n }", "protected boolean isFunction( String word )\r\n\t{\r\n\t\treturn m_listFunctions.contains(word);\r\n\t}", "private boolean isFunction(Tip t, Tip expectedRet) {\n\t\tif (t instanceof Funkcija) {\n\t\t\tFunkcija buff = (Funkcija) t;\n\t\t\tif (buff.primitiv.equals(expectedRet.primitiv)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean isInFunction(){\n if (findEnclosingFunction() != null){\n return true;\n }\n return isFunction;\n }", "boolean hasFunction(String functionName);", "private void visitFunction(SoyFunction fn, FunctionNode node) {\n if (fn instanceof LengthFunction) {\n checkArgType(node.getChild(0), ListType.of(AnyType.getInstance()), node);\n } else if (fn instanceof ParseIntFunction) {\n checkArgType(node.getChild(0), StringType.getInstance(), node);\n } else if (fn instanceof ParseFloatFunction) {\n checkArgType(node.getChild(0), StringType.getInstance(), node);\n }\n }", "public boolean hasFns() {\n return genClient.cacheHasKey(CacheKey.fns);\n }", "public static boolean FunctionItemExpr(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"FunctionItemExpr\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _COLLAPSE_, FUNCTION_ITEM_EXPR, \"<function item expr>\");\n r = NamedFunctionRef(b, l + 1);\n if (!r) r = InlineFunctionExpr(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public boolean isNotNullFns() {\n return genClient.cacheValueIsNotNull(CacheKey.fns);\n }", "public boolean is(String selector) {\n\t\treturn IsFunction.is(this, elements, selector);\n\t}", "public abstract boolean isTypeOf(ItemType type);", "public boolean isSetFunctionName() {\n return this.functionName != null;\n }", "private static boolean isFunctionCall(CFAEdge pCfaEdge, String pExpectedFunctionName) {\n if (!(pCfaEdge instanceof AStatementEdge)) {\n return false;\n }\n AStatement statement = ((AStatementEdge) pCfaEdge).getStatement();\n if (!(statement instanceof AFunctionCall)) {\n return false;\n }\n AExpression callee =\n ((AFunctionCall) statement).getFunctionCallExpression().getFunctionNameExpression();\n if (!(callee instanceof AIdExpression)) {\n return false;\n }\n String functionName = ((AIdExpression) callee).getName();\n return functionName.equals(pExpectedFunctionName);\n }", "@Override\n\tpublic boolean validate(Object value) {\n\t\treturn value instanceof GenericFunction\n\t\t\t\t&& ((GenericFunction) value).getType().canUnify(this);\n\t}", "public static boolean isFunction(String name) {\n return isNonLibFunction(name) || isLibFunction(name);\n }", "public boolean isInFunction(Address addr);", "private static boolean functionalInterfaceReturnsObject(Type interfaceType, VisitorState state) {\n Type objectType = state.getSymtab().objectType;\n return ASTHelpers.isSubtype(\n objectType,\n ASTHelpers.getUpperBound(\n state.getTypes().findDescriptorType(interfaceType).getReturnType(), state.getTypes()),\n state);\n }", "public boolean typeCheck(){\n\tboolean result = true;\n\tfor(DeclNode node : myDecls){\n\t if(node instanceof FnDeclNode){\n\t\tif(((FnDeclNode)node).typeCheck() == false){\n\t\t result = false;\n\t\t}\n\t }else{\n\t\tcontinue;\n\t }\n\t}\n\treturn result;\n }", "public boolean test(E element);", "public static boolean is_callable(String _name) {\n\t\treturn false;\n\t}", "abstract boolean hasFunctionSelfArgument(Object definedOn);", "boolean hasMethodName();", "boolean hasMethodName();", "boolean hasMethodName();", "public static boolean TypedFunctionTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"TypedFunctionTest\")) return false;\n if (!nextTokenIs(b, K_FUNCTION)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, TYPED_FUNCTION_TEST, null);\n r = consumeTokens(b, 0, K_FUNCTION, L_PAR);\n r = r && TypedFunctionTest_2(b, l + 1);\n r = r && consumeTokens(b, 1, R_PAR, K_AS);\n p = r; // pin = 4\n r = r && SequenceType(b, l + 1);\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "public static boolean AnyFunctionTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AnyFunctionTest\")) return false;\n if (!nextTokenIs(b, K_FUNCTION)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, ANY_FUNCTION_TEST, null);\n r = consumeTokens(b, 3, K_FUNCTION, L_PAR, STAR_SIGN, R_PAR);\n p = r; // pin = 3\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "abstract void checkWhetherFunction(int nParamsUsed, SyntaxUnit use);", "public <T> boolean addFunc(T entity) throws DataAccessException {\n\t\tboolean flag = false;\r\n\t\ttry {\r\n\t\t\tmapper.addFunc((FuncVO) entity);\r\n\t\t\tflag = true;\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\tflag = false;\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "public boolean containFunction(String name) {\n\t\tif (!global.containFunction(name)) {\r\n\t\t\treturn this.fnMap.containsKey(name);\r\n\t\t} else {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t}", "public Type typeCheck(){\n\tType fnType = myId.sym().getType();\n\tboolean result = true;\n\tif(!(fnType instanceof FnType)){\n\t myId.typeCheckError(\"Attempt to call a non-function\");\n\t result = false;\n\t}else{ // it is a function call\n\t FnSym fs = (FnSym)myId.sym();\n\t List<Type> declFormal = fs.getParamTypes();\n\t List<ExpNode> callFormal = myExpList.getCallExpList();\n\t if(declFormal.size() != callFormal.size()){\n\t\tmyId.typeCheckError(\"Function call with wrong number of args\");\n\t\tresult = false;\n\t }else{ // check each type \n\t\tint s = declFormal.size();\n\t\tfor(int i = 0; i < s; i++){\n\t\t Type callType = callFormal.get(i).typeCheck();\n\t\t Type declType = declFormal.get(i);\n\n\t\t String callTypeName = callType.toString();\n\t\t String declTypeName = declType.toString();\n\t\t if(!(callTypeName.equals(declTypeName))){\n\t\t\tIdNode fId = callFormal.get(i).getExpFirstIdNode();\n\t\t\tfId.typeCheckError(\"Type of actual does not match type of formal\");\n\t\t\tresult = false;\n\t\t }\n\t\t}\n\t }\n\t}\n\n\tif(fnType instanceof FnType)\n\t return ((FnSym)(myId.sym())).getReturnType();\n\telse\n\t return new ErrorType();\n\t// if(result == true){\n\t// return ((FnSym)(myId.sym())).getReturnType();\n\t// }else{\n\t// return new ErrorType();\n\t// }\n\n }", "boolean supportsInnerFunctions();", "public static boolean typedFunctionType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"typedFunctionType\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _LEFT_, TYPED_FUNCTION_TYPE, \"<typed function type>\");\n r = functionId(b, l + 1);\n r = r && typedFunctionType_1(b, l + 1);\n r = r && parameterTypeList(b, l + 1);\n r = r && typedFunctionType_3(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public boolean isOp ( ) {\n\t\treturn extract ( handle -> handle.isOp ( ) );\n\t}", "public boolean isChildOf(Xcode opcode) {\n Xnode crt = this;\n while(crt != null) {\n if(crt.ancestor().opcode() == opcode) {\n return true;\n }\n // Stop searching when FfunctionDefinition is reached\n if(crt.ancestor().opcode() == Xcode.F_FUNCTION_DEFINITION) {\n return false;\n }\n crt = crt.ancestor();\n }\n return false;\n }", "public boolean canFunction()\n\t{\n\t\treturn this.enabled;\n\t}", "boolean hasMethod();", "boolean hasMethod();", "boolean hasMethod();", "public boolean isExpression (Object value);", "public <T> boolean removeFunc(T entity) throws DataAccessException {\n\t\tboolean flag = false;\r\n\t\ttry {\r\n\t\t\tmapper.removeFunc((FuncVO) entity);\r\n\t\t\tflag = true;\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\tflag = false;\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "public boolean validateFurnitureItem(Object object) {\n\t\treturn false;\n\t}", "boolean hasFunctionApproximation();", "Rule FunctionType() {\n // Push 1 FunctionType node onto the value stack\n return Sequence(\n FirstOf(\n FieldType(),\n Sequence(\"void \", push(new VoidNode()))),\n actions.pushFunctionTypeNode());\n }", "public boolean forEach(I2ForEach<T> func)\n\t{\n\t\tfor (T e : this)\n\t\t{\n\t\t\tif (!func.ForEach(e))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static <T> Function<T, Boolean> asFunction(Predicate<T> predicate) {\n\t\treturn predicate::test;\n\t}", "boolean hasFeedItem();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean isCallableAccess();", "public boolean canUserPerformFunction(int function) {\r\n if (roles != null) {\r\n for (Iterator iter = roles.iterator(); iter.hasNext();) {\r\n UserRole userRole = (UserRole)iter.next();\r\n if (userRole.canRolePerformFunction(function)) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "public boolean check(EventType event);", "public boolean isSuspendFunction(String route) {\n ServiceDef service = registry.get(route);\n return service != null && service.isKotlin();\n }", "private boolean isCallback(IMethodResult result)\n\t{\n\t\treturn (result != null && result.hasCallback());\n\t}", "public boolean isFactionsCommand(String check)\n \t{\n \t\tif (check == null || check.isEmpty()) return false;\n \t\treturn this.handleCommand(null, check, true);\n \t}", "boolean hasIsPerformOf();", "public boolean isTest() {\n\t\treturn this.operation instanceof MagicCriterion;\n\t}", "boolean isOp();", "boolean hasAction();" ]
[ "0.7177355", "0.70016927", "0.64367354", "0.6180347", "0.6109794", "0.6043407", "0.5985345", "0.58688545", "0.57280284", "0.5622565", "0.560326", "0.55562115", "0.55093396", "0.54441315", "0.5415643", "0.5413244", "0.5383522", "0.53282297", "0.53209955", "0.52860993", "0.5273259", "0.52625966", "0.5242923", "0.5201883", "0.5201883", "0.5201883", "0.52016526", "0.5183972", "0.5127564", "0.50917894", "0.50712633", "0.5060031", "0.5051696", "0.50446194", "0.4988818", "0.49724266", "0.4953059", "0.49526045", "0.49526045", "0.49526045", "0.49519613", "0.49440932", "0.49263465", "0.49195537", "0.4908431", "0.4896555", "0.48955816", "0.48744512", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48646453", "0.48637038", "0.48606163", "0.4859686", "0.48401788", "0.48260581", "0.48113498", "0.48046327", "0.47955313", "0.47928748", "0.47817886" ]
0.6276222
3
Tests whether the item is an array.
public boolean isArray() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isArrayType()\n/* */ {\n/* 138 */ return true;\n/* */ }", "public static boolean isArray_amtype() {\n return false;\n }", "public boolean isArray();", "public boolean isArray() {\n\t\treturn _array;\n\t}", "private boolean isArray() {\n return this.stack.peek() instanceof JsonArray;\n }", "public boolean isArray(){\n\t\treturn false;\n\t}", "public static boolean isArray_dataType() {\n return false;\n }", "@Override\r\n public boolean isArray() throws Exception\r\n {\n return false;\r\n }", "public static boolean isArray_data() {\n return true;\n }", "@Override\n public boolean isArray() {\n return false;\n }", "public static boolean isArray_estLength() {\n return false;\n }", "Boolean isSingleValueOrArray();", "default boolean isArray() {\n return false;\n }", "public static boolean isArray_length() {\n return false;\n }", "public boolean isArray(Class<?> aClass) {\n\t\treturn aClass.getTypeName().endsWith(\"[]\");\n\t}", "boolean hasArray();", "public static boolean isArray_infos_type() {\n return false;\n }", "@Override\n public Boolean isSuitableAs(Type rhs) {\n //since an array can be null\n if (rhs == null || rhs == virtualArrayType) return true;\n return rhs instanceof ArrayType\n && baseType.isSuitableAs(((ArrayType) rhs).baseType);\n }", "public static boolean isArray_counter() {\n return false;\n }", "protected boolean isArray(Class clazz) {\n\n return clazz.isArray();\n }", "public static boolean ArrayTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ArrayTest\")) return false;\n if (!nextTokenIs(b, K_ARRAY)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = AnyArrayTest(b, l + 1);\n if (!r) r = TypedArrayTest(b, l + 1);\n exit_section_(b, m, ARRAY_TEST, r);\n return r;\n }", "public static boolean isArray_parent() {\n return false;\n }", "public static boolean isArray_sum_a() {\n return false;\n }", "private boolean arrayrefOfArrayType(Instruction o, Type arrayref){\n\t\tif (! ((arrayref instanceof ArrayType) || arrayref.equals(Type.NULL)) )\n\t\t\t\tconstraintViolated(o, \"The 'arrayref' does not refer to an array but is of type \"+arrayref+\".\");\n\t\treturn (arrayref instanceof ArrayType);\n\t}", "public static boolean isArray(Object obj) {\r\n return (obj != null && obj.getClass().isArray());\r\n }", "public static boolean isArray_sum_e() {\n return false;\n }", "public static boolean isArray_count() {\n return false;\n }", "public static boolean isArray_hop() {\n return false;\n }", "private static boolean isArrayOrElipsis(final DetailAST typeToken) {\n final DetailAST next = typeToken.getNextSibling();\n final boolean isArrayDeclarator =\n typeToken.findFirstToken(TokenTypes.ARRAY_DECLARATOR) != null;\n final boolean hasArrayOrEllipses =\n TokenUtil.isOfType(next, TokenTypes.ARRAY_DECLARATOR, TokenTypes.ELLIPSIS);\n return hasArrayOrEllipses || isArrayDeclarator;\n }", "@SuppressWarnings(\"all\")\n protected static boolean writeArrayType(Output out, Object arrType) {\n log.trace(\"writeArrayType\");\n if (arrType instanceof Collection) {\n out.writeArray((Collection<Object>) arrType);\n } else if (arrType instanceof Iterator) {\n writeIterator(out, (Iterator<Object>) arrType);\n } else if (arrType.getClass().isArray() && arrType.getClass().getComponentType().isPrimitive()) {\n out.writeArray(arrType);\n } else if (arrType instanceof Object[]) {\n out.writeArray((Object[]) arrType);\n } else {\n return false;\n }\n return true;\n }", "public static boolean isArray(Object obj) {\n return (obj != null && obj.getClass().isArray());\n }", "public static boolean isArray_quality() {\n return false;\n }", "public static boolean isArray_nodeid() {\n return false;\n }", "public boolean hasArray()\r\n/* 122: */ {\r\n/* 123:151 */ return true;\r\n/* 124: */ }", "public void testCheckArray() {\n Object[] objects = new Object[] {\"one\"};\n Util.checkArray(objects, \"test\");\n }", "public abstract boolean isArrayParams();", "public static boolean isArray_reading() {\n return false;\n }", "public static boolean isArray(Symbol symbol) {\n if (symbol == null) {\n return false;\n }\n List specs = symbol.getArraySpecifiers();\n return (specs != null && !specs.isEmpty());\n }", "public boolean isArray(Class cls) {\n return cls != null && (cls.isArray() || Collection.class.isAssignableFrom(cls) || Externalizable.class.isAssignableFrom(cls) || Map.class.isAssignableFrom(cls) || Map.Entry.class.isAssignableFrom(cls));\n }", "public static boolean isArray_seqnum() {\n return false;\n }", "static boolean AnyArrayTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AnyArrayTest\")) return false;\n if (!nextTokenIs(b, K_ARRAY)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = consumeTokens(b, 3, K_ARRAY, L_PAR, STAR_SIGN, R_PAR);\n p = r; // pin = 3\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "public boolean isArrOne() {\n\t\treturn isArrOne;\n\t}", "public static boolean isArray_group() {\n return false;\n }", "public static boolean isArray_infos_size_data() {\n return false;\n }", "public static boolean isArray_cost() {\n return false;\n }", "static boolean TypedArrayTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"TypedArrayTest\")) return false;\n if (!nextTokenIs(b, K_ARRAY)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = consumeTokens(b, 2, K_ARRAY, L_PAR);\n p = r; // pin = 2\n r = r && report_error_(b, SequenceType(b, l + 1));\n r = p && consumeToken(b, R_PAR) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "public boolean isArray(Class paramClass) {\n/* 140 */ boolean bool = false;\n/* */ \n/* 142 */ if (paramClass == null) {\n/* 143 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* 146 */ if (paramClass.isArray()) {\n/* 147 */ Class<?> clazz = paramClass.getComponentType();\n/* */ \n/* */ \n/* */ \n/* 151 */ bool = (isPrimitive(clazz) || isRemoteInterface(clazz) || isEntity(clazz) || isException(clazz) || isValue(clazz) || isObjectReference(clazz)) ? true : false;\n/* */ } \n/* */ \n/* 154 */ return bool;\n/* */ }", "public static boolean isArray_sampleCnt() {\n return false;\n }", "static private boolean isArray(Object[] ids) \n { \n boolean result = true; \n for (Object id : ids) \n { \n if (id instanceof Integer == false) \n { \n result = false; \n break; \n } \n } \n return result; \n }", "public static boolean isArray_max() {\n return false;\n }", "protected static boolean isBackedBySimpleArray(Buffer b) {\n return b.hasArray() && (b.arrayOffset() == 0);\n }", "public static boolean isArray_reply() {\n return false;\n }", "static boolean isOrgJsonArray(Object jsonObject) {\n return jsonObject instanceof org.json.JSONArray && jsonObject.getClass().isAssignableFrom(org.json.JSONArray.class);\n }", "public default boolean isArrayScanpath() {\n\t\treturn false;\n\t}", "public static boolean isArray_min() {\n return false;\n }", "public static boolean isArray_source() {\n return false;\n }", "public static boolean isList(Object value) {\n\t\treturn (value != null && value.getClass().isArray());\n\t}", "public static boolean isArray_addr() {\n return false;\n }", "@Override\n\tpublic boolean visit(ArrayAccess node) {\n\n\t\treturn super.visit(node);\n\t}", "public static boolean isArray_entries_receiveEst() {\n return true;\n }", "public static boolean isArray_infos_seq_num() {\n return false;\n }", "static boolean array(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"array\")) return false;\n if (!nextTokenIs(b, L_BRACKET)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = consumeToken(b, L_BRACKET);\n p = r; // pin = 1\n r = r && report_error_(b, array_1(b, l + 1));\n r = p && consumeToken(b, R_BRACKET) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "@Nonnull\n public AnyType getArrayType() {\n return arrayType;\n }", "public static boolean isArray_dest() {\n return false;\n }", "@Test\r\n public void testGenericArray()\r\n {\r\n Type t0 = Types.create(List.class).withType(Number.class).build();\r\n Type arrayType = Types.createGenericArrayType(t0);\r\n test(arrayType);\r\n }", "public static boolean isArray_parentId() {\n return false;\n }", "@Test\r\n public void testPrimitiveArray()\r\n {\r\n test(int[].class);\r\n }", "protected void sequence_ArrayLength_ArrayType(ISerializationContext context, ArrayLength semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.ARRAY_LENGTH__EXP) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.ARRAY_LENGTH__EXP));\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.ARRAY_LENGTH__ELEMTYPE) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.ARRAY_LENGTH__ELEMTYPE));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getArrayLengthAccess().getExpExpressionParserRuleCall_0(), semanticObject.getExp());\r\n\t\tfeeder.accept(grammarAccess.getArrayTypeAccess().getElemtypeElementTypeParserRuleCall_3_0(), semanticObject.getElemtype());\r\n\t\tfeeder.finish();\r\n\t}", "public static boolean isArray_infos_log_src() {\n return false;\n }", "private static boolean isAnIterable(Object value) {\n return value instanceof Iterable && !(value instanceof Path || isAJsonValueNode(value) || isAnObjectNode(value));\n }", "static boolean attribute_arg_value_array_item(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"attribute_arg_value_array_item\")) return false;\n boolean r;\n r = attribute_arg_value_scalar(b, l + 1);\n if (!r) r = attribute_arg_value_array(b, l + 1);\n return r;\n }", "public static boolean isArray_entries_id() {\n return true;\n }", "public void visit(ArrayTypeNode arrayTypeNode) {\r\n\t\tExprNode expr = arrayTypeNode.getDimension();\r\n\t\tanalyzeExpression(expr);\r\n\t\t\r\n\t\t//Recursively check subtype\r\n\t\tarrayTypeNode.getWrappedType().accept(this);\r\n\t\t\r\n\t\t//Add to the list of array type nodes for later instance checking\r\n\t\ttransientData.getArrayTypes().add(arrayTypeNode);\r\n\t}", "@Test\n public void testArrayCreationWithGeneralReturnType() {\n final Object obj = ArrayUtils.toArray(\"foo\", \"bar\");\n assertTrue(obj instanceof String[]);\n }", "@Override\n\tpublic boolean checkHomogeneous(List<int[]> input) {\n\t\treturn false;\n\t}", "public static boolean isArray_moteId() {\n return false;\n }", "public boolean isArrAll() {\n\t\treturn isArrAll;\n\t}", "public static boolean isArray_infos_metadata() {\n return true;\n }", "@Test\n public void testToArray_GenericType() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n Integer[] expResult = { 1, 2, 3, 4, 5, 6 };\n Integer[] result = instance.toArray(new Integer[] {});\n assertArrayEquals(expResult, result);\n }", "public String visit(ArrayType n, String argu) {\n return \"ArrayType\"; \n }", "public static boolean isArray_receivets() {\n return false;\n }", "public static boolean isArray_infos_noise() {\n return true;\n }", "public static boolean isCollection( Object value )\r\n {\r\n if ( value != null )\r\n {\r\n if ( value.getClass().isArray() || value instanceof Collection<?> )\r\n {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }", "@Test\r\n\tpublic void testToArray() {\r\n\t\tObject[] sample = list.toArray();\r\n\t\tAssert.assertEquals(15, sample.length);\r\n\t\tfor (int i = 0; i < sample.length; i++) {\r\n\t\t\tAssert.assertNotNull(sample[i]);\r\n\t\t}\r\n\t}", "boolean isNilArrayOfFaultTypeArray(int i);", "@Override public boolean accepts(Type other) {\n if(!(other instanceof FixArray)) return false;\n FixArray that = (FixArray) other;\n return this.length == that.length\n && this.indexType().equals(that.indexType())\n && this.elemType.accepts(that.elemType);\n }", "@Override\n public Content visitArray(ArrayType type, LinkInfo linkInfo) {\n currentDepth++;\n linkInfo.type = type.getComponentType();\n visit(linkInfo.type, linkInfo);\n currentDepth--;\n if (utils.isAnnotated(type)) {\n linkInfo.type = type;\n link.add(\" \");\n link.add(getTypeAnnotationLinks(linkInfo));\n }\n // use vararg if required\n if (linkInfo.isVarArg && currentDepth == 0) {\n link.add(\"...\");\n } else {\n link.add(\"[]\");\n }\n return link;\n }", "@Override\n public R visitArrayType(ArrayTypeNode n, P p) {\n return visitNode(n, p);\n }", "public final boolean m2275j() {\n return this.f2952a == ValueType.array;\n }", "public boolean hasArrayFiller() {\n return get(ARRAY_FILLER).isPresent();\n }", "@Override\n public AnnotatedTypeMirror visitArray(AnnotatedArrayType type, AnnotatedTypeMirror p) {\n if (shouldStop(p, type)) {\n return type;\n }\n for (AnnotatedTypeMirror st : type.directSuperTypes()) {\n AnnotatedTypeMirror x = asSuper(types, atypeFactory, st, p);\n if (x != null) {\n return isErased(types, x, p) ? x.getErased() : x;\n }\n }\n return null;\n }", "@Test\n public void testGenericArrayType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(String[].class);\n typeList.addAll(getBothParameters(ArrayToListArray.class));\n typeList.add(getFirstTypeParameter(NoOpSink.class));\n PipelineRegisterer.validateTypes(typeList);\n }", "public JType elementType() {\n throw new IllegalArgumentException(\"Not an array type\");\n }", "public static boolean isArray_infos_timestamp() {\n return false;\n }", "void visitArray(Object array, Type componentType);", "public static boolean MarklogicArrayNodeTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"MarklogicArrayNodeTest\")) return false;\n if (!nextTokenIs(b, K_ARRAY_NODE)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, MARKLOGIC_ARRAY_NODE_TEST, null);\n r = consumeTokens(b, 2, K_ARRAY_NODE, L_PAR);\n p = r; // pin = 2\n r = r && report_error_(b, MarklogicArrayNodeTest_2(b, l + 1));\n r = p && consumeToken(b, R_PAR) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "public final void mARRAY_TYPE() throws RecognitionException {\n try {\n int _type = ARRAY_TYPE;\n // /Users/benjamincoe/HackWars/C.g:193:2: ( 'array' )\n // /Users/benjamincoe/HackWars/C.g:193:4: 'array'\n {\n match(\"array\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public boolean isNary()\n\t{\n\t\treturn this.arity != null;\n\t}", "@Test \n\tpublic void testIfNumberisInArray()\n\t{\n \tData d = new Data();\n\t\tassertTrue(d.isMember(61)); // 61 is the value of the 0th index of the array. \n\t}" ]
[ "0.7173103", "0.715738", "0.7134853", "0.69057786", "0.6861382", "0.6820637", "0.6818202", "0.6810401", "0.6677236", "0.66728914", "0.665324", "0.65393054", "0.65163255", "0.6500843", "0.64030015", "0.63808686", "0.63512707", "0.6320977", "0.6318712", "0.62732685", "0.6270204", "0.6260212", "0.6253242", "0.6228851", "0.6219214", "0.61981446", "0.6166229", "0.6163487", "0.6162587", "0.6153231", "0.6137071", "0.613056", "0.61280566", "0.6088567", "0.6078173", "0.60717314", "0.60099185", "0.5968265", "0.59537655", "0.5924464", "0.5907389", "0.5876462", "0.5871415", "0.5853322", "0.583639", "0.58137333", "0.580388", "0.57747126", "0.57548326", "0.5732944", "0.5730465", "0.5704234", "0.5675903", "0.56425464", "0.5610771", "0.55754054", "0.55637056", "0.54772925", "0.5442948", "0.5437306", "0.543212", "0.54238486", "0.5418248", "0.5404472", "0.5394906", "0.53902787", "0.53766656", "0.5352307", "0.52981025", "0.52888924", "0.5284789", "0.5277352", "0.5269222", "0.5260385", "0.5256984", "0.52358425", "0.52334803", "0.52332276", "0.5212518", "0.5207214", "0.52028316", "0.51973224", "0.5163365", "0.51616895", "0.515818", "0.5141745", "0.51368773", "0.5124563", "0.5112935", "0.5106617", "0.5089985", "0.5082237", "0.5080548", "0.5077459", "0.5076496", "0.50678754", "0.5065433", "0.5038439", "0.5027369" ]
0.68692976
5
Tests whether the item is an object.
public boolean isObject() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean isObject(T type);", "public boolean isObject() {\n\t\t// Object is the class that has itself as superclass\n\t\treturn getSuperClass() == this;\n\t}", "protected boolean isObject() {\n long mark = 0;\n try {\n mark = this.createMark();\n boolean bl = this.getObject() != null;\n return bl;\n }\n catch (MathLinkException e) {\n this.clearError();\n boolean bl = false;\n return bl;\n }\n finally {\n if (mark != 0) {\n this.seekMark(mark);\n this.destroyMark(mark);\n }\n }\n }", "@Override\n public boolean isObject() {\n return false;\n }", "@SuppressWarnings(\"unchecked\")\n \tpublic static boolean isCraftItemStack(final Object obj) {\n \t\treturn getCraftItemStackClass().isAssignableFrom(obj.getClass());\n \t}", "@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }", "public abstract boolean isTypeOf(ItemType type);", "public boolean isMaybeObjectOrSymbol() {\n checkNotPolymorphicOrUnknown();\n return object_labels != null;\n }", "@Override\n\tpublic boolean isObjectTypeExpected() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isClassObject() {\n\t\treturn heldObj.isClassObject();\n\t}", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean hasObject();", "boolean isElement(Object object);", "public boolean hasObject(){\n return _object != null;\n }", "@SuppressWarnings(\"unchecked\")\n \tpublic static boolean isItemStack(final Object value) {\n \t\treturn getItemStackClass().isAssignableFrom(value.getClass());\n \t}", "public boolean hasObject() {\n return objectBuilder_ != null || object_ != null;\n }", "public boolean isMaybeObject() {\n checkNotPolymorphicOrUnknown();\n return object_labels != null && object_labels.stream().anyMatch(x -> x.getKind() != Kind.SYMBOL);\n }", "public boolean isSetObject() {\n return this.object != null;\n }", "protected synchronized boolean isObjectPresent() { return objPresent; }", "public Boolean getObjectType() {\r\n\t\treturn objectType;\r\n\t}", "public boolean handlesObject(Object object);", "@Override\r\n\tpublic boolean equals(Object ob){\n\t\tItem itemob=(Item)ob;\t//transfer object type to Item type\r\n\t\tif(this.UID==itemob.UID && this.TITLE==itemob.TITLE && this.NOOFCOPIES==itemob.NOOFCOPIES) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n public boolean isViewFromObject(@NonNull View view, @NonNull Object object) {\n return view == object;\n }", "@Override\n public boolean isViewFromObject(@NonNull View view, @NonNull Object object)\n {\n return view == object;\n }", "boolean isDocument(Object object);", "public String getItemObjectType() {\r\n\t\treturn itemObjectType;\r\n\t}", "public boolean isNotASummarizedObject() {\n checkNotPolymorphicOrUnknown();\n if (object_labels == null) {\n return true;\n }\n for (ObjectLabel object_label : object_labels) {\n if (!object_label.isSingleton()) {\n return false;\n }\n }\n return true;\n }", "@SuppressWarnings(\"unchecked\")\n \tpublic static boolean isWatchableObject(final Object obj) {\n \t\treturn getWatchableObjectClass().isAssignableFrom(obj.getClass());\n \t}", "public boolean hasItem() {\n return null != item;\n }", "boolean isCustom(Object custom);", "public boolean validateFurnitureItem(Object object) {\n\t\treturn false;\n\t}", "@SuppressWarnings(\"unchecked\")\n \tpublic static boolean isMinecraftEntity(final Object obj) {\n \t\treturn getEntityClass().isAssignableFrom(obj.getClass());\n \t}", "protected boolean isObjectHeld() { return objHeld; }", "public boolean containsObject(T obj);", "public boolean containsObject(T obj);", "protected boolean isObjectDataBinding(String text)\n\t{\n\t\tif (text!= null && RegexpPatterns.REGEXP_CRUX_OBJECT_DATA_BINDING.matcher(text).matches())\n\t\t{\n\t\t\tString[] parts = ViewFactoryCreator.getDataObjectParts(text);\n\t\t\treturn (DataObjects.getDataObject(parts[0]) != null);\n\t\t}\n\t\treturn false;\n\t}", "public static boolean isCycLObject(Object obj) {\n return (obj instanceof CycObject ||\n obj instanceof InferenceParameters ||\n obj instanceof Boolean ||\n obj instanceof String ||\n obj instanceof Integer ||\n obj instanceof Long ||\n obj instanceof BigInteger ||\n obj instanceof Guid || //@hack this is wrong GUIDs are not CycL objects --APB\n obj instanceof Float ||\n obj instanceof Double);\n }", "protected boolean findObject(Object obj){\n \n }", "boolean visitSmartContainer(Object o);", "public boolean hasItem() {\n return this.item != null;\n }", "public boolean isParent(T anItem) { return false; }", "protected boolean isPrimitiveObject(Object object) {\r\n return PropertyType.PRIMITIVE.equals(determinePropertyType(object));\r\n }", "public boolean isObjectReference(Class<?> paramClass) {\n/* 196 */ if (paramClass == null) {\n/* 197 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* 200 */ return (paramClass.isInterface() && Object.class\n/* 201 */ .isAssignableFrom(paramClass));\n/* */ }", "public abstract boolean isParent(T anItem);", "private static boolean empty(Object object) {\n\t\treturn false;\n\t}", "private boolean isDiscarded(Object obj) {\n if (obj instanceof Item) {\n return isDiscardedStatus(((Item) obj).getStatus());\n } else if (obj instanceof Container) {\n return isDiscardedStatus(((Container) obj).getStatus());\n } else if (obj instanceof Space) {\n return isDiscardedStatus(((Space) obj).getStatus());\n } else if (obj instanceof MetadataProfile) {\n return isDiscardedStatus(((MetadataProfile) obj).getStatus());\n } else if (obj instanceof Person) {\n return false;\n } else if (obj instanceof Organization) {\n return false;\n }\n return false;\n }", "public boolean isOfType(int index, JSONType type) {\n\t\tif(!has(index)) return false;\n\t\treturn JSONType.isOfType(get(index), type);\n\t}", "@Override\n public Class<Object> getObjectType() {\n return Object.class;\n }", "static boolean anyObjectTypes(List<?> ptypes) {\n for (Object ptype : ptypes) {\n if (isObjectType(ptype)) {\n return true;\n }\n }\n return false;\n }", "public static boolean isMinecraftObject(@Nonnull final Object obj) {\n \t\tif (obj == null) {\n \t\t\tthrow new IllegalArgumentException(\n \t\t\t\t\t\"Cannot determine the type of a null object.\");\n \t\t}\n \n \t\t// Doesn't matter if we don't check for the version here\n \t\treturn obj.getClass().getName().startsWith(MINECRAFT_PREFIX_PACKAGE);\n \t}", "@Override\n\tpublic boolean validObject() {\n\t\treturn valid;\n\t}", "private void assertIsType(SymObject object) {\n assertIsOfKind(object, SymObject.KIND_TYPE,\n object.name + \" can't be resolved to a type\");\n }", "public boolean isObjectAdded() {\n return OBJECTADDED.equals(message);\n }", "static public boolean isSavable(Object obj) {\n\tboolean rc = false;\n\n\tif ((obj instanceof Short) ||\n\t (obj instanceof Integer) ||\n\t (obj instanceof Long) ||\n\t (obj instanceof Float) ||\n\t (obj instanceof Double) ||\n\t (obj instanceof Boolean) ||\n\t (obj instanceof String) ||\n\t (obj instanceof Byte) ||\n\t (obj instanceof Color) ||\n\t (obj instanceof Font) ||\n\t (obj instanceof Rectangle2D) ||\n\t (obj instanceof AffineTransform) ||\n\t (obj instanceof Image) ||\n\t (obj instanceof ZSerializable)) {\n\t rc = true;\n\t}\n\n\treturn rc;\n }", "public boolean isInstanceOf(Class c);", "static boolean anyObjectTypes(Object[] ptypes) {\n for (Object ptype : ptypes) {\n if (isObjectType(ptype)) {\n return true;\n }\n }\n return false;\n }", "public abstract boolean contains(Object item);", "@SuppressWarnings(\"all\")\n protected static boolean writeObjectType(Output out, Object obj) {\n if (obj instanceof ObjectMap || obj instanceof BeanMap) {\n out.writeObject((Map) obj);\n } else if (obj instanceof Map) {\n out.writeMap((Map) obj);\n } else if (obj instanceof RecordSet) {\n out.writeRecordSet((RecordSet) obj);\n } else {\n out.writeObject(obj);\n }\n return true;\n }", "public boolean isMaybeSingleObjectLabel() {\n checkNotPolymorphicOrUnknown();\n return object_labels != null && object_labels.size() == 1;\n }", "static final boolean isObjectAccessible(Class[] barriers, Class from, Object to, int type) {\n if (to == null) {\n return false;\n }\n\n switch (type) {\n case 0:\n return isAccessible(barriers, from, to.getClass());\n\n case 1:\n return isAccessible(barriers, from, (Class) to);\n\n case 2: {\n Item item = (Item) to;\n\n return isAccessible(barriers, from, item.getType());\n }\n\n default:\n throw new IllegalStateException(\"Type: \" + type);\n }\n }", "@SuppressWarnings(\"unchecked\")\n public boolean stillExists(Object obj) {\n \treturn true;\n }", "boolean isText(Object object);", "@Override\r\n\tpublic boolean validaObj() {\n\t\treturn false;\r\n\t}", "@Override\n public boolean isFactoryForType(final Object object) {\n if (object == modelPackage) {\n return true;\n }\n if (object instanceof EObject) {\n return ((EObject) object).eClass().getEPackage() == modelPackage;\n }\n return false;\n }", "private boolean isBasicType(Object javaObject) {\n return javaObject == null\n || javaObject instanceof Number\n || javaObject instanceof Boolean\n || javaObject instanceof Character\n || javaObject instanceof Enum;\n }", "public boolean isItem(int itemId) {\n return getKey().equals(itemId);\n }", "public boolean containsObject(AdvObject obj) {\n\t\treturn objects.contains(obj); // Replace with your code\n\t}", "public static boolean isBaseType(Object o) {\n if (o instanceof Integer ||\n o instanceof Byte ||\n o instanceof Long ||\n o instanceof Double ||\n o instanceof Float ||\n o instanceof Character ||\n o instanceof Short ||\n o instanceof Boolean ||\n o instanceof String ||\n o instanceof BigDecimal ||\n o instanceof BigInteger) {\n return true;\n }\n return false;\n }", "public boolean isStoredInObject() {\r\n return lockValueStored == IN_OBJECT;\r\n }", "private final boolean isObjectAccessible(Class from, Object to, int type) {\n if (to == null) {\n return false;\n }\n\n return isObjectAccessible(classes(), from, to, type);\n }", "private static boolean functionalInterfaceReturnsObject(Type interfaceType, VisitorState state) {\n Type objectType = state.getSymtab().objectType;\n return ASTHelpers.isSubtype(\n objectType,\n ASTHelpers.getUpperBound(\n state.getTypes().findDescriptorType(interfaceType).getReturnType(), state.getTypes()),\n state);\n }", "public boolean isItem(ItemStack item){\n\t\tif(item == null) return false;\n\t\tif(material != item.getType()) return false;\n\t\tif(damage >= 0 && item.getDurability() != damage) return false;\n\t\t\n\t\t//early out if no name / lore:\n\t\tif(itemName.isEmpty() && loreLine.isEmpty()) return true;\n\t\t\n\t\t//Problem fix for no Meta:\n\t\tItemMeta meta = item.getItemMeta();\n\t\tif(meta == null) return false;\n\t\t\n\t\t//Check for name:\n\t\tString name = meta.hasDisplayName() ? meta.getDisplayName() : \"\";\n\t\tif(!name.equals(itemName)) return false;\n\n\t\t//Check for display:\n\t\tif(!loreLine.isEmpty() && !meta.hasLore()) return false;\n\t\t\n\t\tboolean found = false;\n\t\tfor(String line : meta.getLore()){\n\t\t\tif(loreLine.equals(line)) found = true;\n\t\t}\n\t\t\n\t\tif(!found) return false;\n\t\t\n\t\treturn true;\n\t}", "public boolean hasItem() {\n return (this.curItem != null);\n }", "@Override\n public boolean isFactoryForType(Object object) {\n if (object == modelPackage) {\n return true;\n }\n if (object instanceof EObject) {\n return ((EObject)object).eClass().getEPackage() == modelPackage;\n }\n return false;\n }", "@Override\r\n public boolean isFactoryForType(Object object) {\r\n if (object == modelPackage) {\r\n return true;\r\n }\r\n if (object instanceof EObject) {\r\n return ((EObject)object).eClass().getEPackage() == modelPackage;\r\n }\r\n return false;\r\n }", "@Override\r\n protected boolean matchesSafely(View item) {\n ListView list = (ListView) item;\r\n\r\n return (list.getCount() != 0);\r\n }", "public T caseItem(Item object) {\n\t\treturn null;\n\t}", "@Override\n\tprotected boolean itemExists() {\n\t\treturn false;\n\t}", "@Override\n\t\tpublic boolean isViewFromObject(View view, Object object) {\n\t\t\treturn view == object;\n\t\t}", "public boolean match(MindObject other){\n return other.isSubtypeOf(this) || isSubtypeOf(other);\n }", "boolean isComment(Object object);", "@Override\n\tpublic boolean canHaveAsContent(Item item) {\n\t\treturn false;\n\t}", "abstract public boolean isTyped();", "public boolean isAny() {\n return m_item.getSchemaComponent().type() == SchemaBase.ANY_TYPE;\n }", "public boolean isFactoryForType(Object object) {\n\t\tif (object == modelPackage) {\n\t\t\treturn true;\n\t\t}\n\t\tif (object instanceof EObject) {\n\t\t\treturn ((EObject)object).eClass().getEPackage() == modelPackage;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isObjectCreated() {\n return OBJECTCREATED.equals(message);\n }", "public static boolean isInstanceOf(Class<?> clazz, Object object) {\n\t\treturn clazz.isInstance(object);\n\t}", "public boolean isValidItem() {\n return validItem;\n }", "@Override\n\tpublic boolean isBreedingItem(ItemStack item) {\n\t\treturn getBreed().getBreedingItem() == item.getItem();\n\t}", "@Override\r\n public boolean equals(final Object o) {\r\n if (o instanceof DomItemXml) {\r\n return this.getJsObject() == ((DomItemXml) o).getJsObject();\r\n }\r\n return false;\r\n }", "boolean isAnyTypeReference();", "public boolean isEmpty( Object object ){\n if( object == null ){\n return true;\n }\n return false;\n }", "public boolean is( Type type ) {\n return this.type == type;\n }", "@Override\n\tpublic boolean isFactoryForType(Object object) {\n\t\tif (object == modelPackage) {\n\t\t\treturn true;\n\t\t}\n\t\tif (object instanceof EObject) {\n\t\t\treturn ((EObject)object).eClass().getEPackage() == modelPackage;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isFactoryForType(Object object) {\n\t\tif (object == modelPackage) {\n\t\t\treturn true;\n\t\t}\n\t\tif (object instanceof EObject) {\n\t\t\treturn ((EObject)object).eClass().getEPackage() == modelPackage;\n\t\t}\n\t\treturn false;\n\t}" ]
[ "0.7226078", "0.71423763", "0.6775505", "0.65100324", "0.63677144", "0.63665766", "0.6176388", "0.6172215", "0.6163694", "0.6089433", "0.60803527", "0.60803527", "0.60803527", "0.60803527", "0.60803527", "0.60803527", "0.60803527", "0.6049867", "0.602894", "0.60176677", "0.5989159", "0.5974461", "0.58872145", "0.5860375", "0.5806613", "0.5789658", "0.5776836", "0.5725109", "0.5715888", "0.57135946", "0.568007", "0.56740767", "0.5621724", "0.55967456", "0.5592367", "0.5565264", "0.55585897", "0.55581075", "0.55555785", "0.55555785", "0.55340296", "0.5530237", "0.5523636", "0.55208457", "0.55144274", "0.5512715", "0.5497693", "0.5495725", "0.54940677", "0.5493088", "0.5465354", "0.5434044", "0.54282546", "0.5417939", "0.5389312", "0.5370906", "0.5366191", "0.5353149", "0.53506565", "0.5347644", "0.53433204", "0.5339168", "0.5338956", "0.5331068", "0.5310016", "0.5309622", "0.53095627", "0.52839553", "0.52637404", "0.5260679", "0.52532333", "0.5247344", "0.52407074", "0.5237385", "0.5235064", "0.52314854", "0.5230259", "0.522915", "0.5228425", "0.5225527", "0.5223377", "0.52208245", "0.5209729", "0.5204475", "0.5196445", "0.5195123", "0.51926434", "0.51916313", "0.5189785", "0.5188753", "0.51766074", "0.51742876", "0.5171717", "0.517077", "0.51685894", "0.5165354", "0.51629776", "0.5158975", "0.51505244", "0.51505244" ]
0.697135
2
Tests whether the item is an atomic item.
public boolean isAtomic() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isAtomic() {\n\t\treturn true;\n\t}", "private static boolean isAtomic(Object o) {\n return o instanceof AtomicReference\n || o instanceof AtomicBoolean\n || o instanceof AtomicInteger\n || o instanceof AtomicLong;\n }", "public boolean hasItem() {\n return null != item;\n }", "public static boolean isAtomic(Object o) {\n return isAtomic(findType(o));\n }", "public boolean isItem(int itemId) {\n return getKey().equals(itemId);\n }", "public boolean hasItem() {\n return this.item != null;\n }", "public boolean isItemLocal ();", "private final boolean IsAtomic(String expression) {\r\n if (this._kripke.Atoms.contains(expression)) {\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "@Override\n\tpublic boolean canHaveAsContent(Item item) {\n\t\treturn false;\n\t}", "public static boolean isAtomic(byte dataType) {\n return ((dataType == BYTEARRAY) ||\n (dataType == CHARARRAY) ||\n (dataType == BIGCHARARRAY) ||\n (dataType == INTEGER) ||\n (dataType == BIGINTEGER) ||\n (dataType == BIGDECIMAL) ||\n (dataType == LONG) ||\n (dataType == FLOAT) ||\n (dataType == DOUBLE) ||\n (dataType == BOOLEAN) ||\n (dataType == BYTE) ||\n (dataType == DATETIME) ||\n (dataType == GENERIC_WRITABLECOMPARABLE));\n }", "boolean hasItemStorage();", "@Override\n\tprotected boolean itemExists() {\n\t\treturn false;\n\t}", "boolean isItemDisabled( final Object item );", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "public abstract boolean isParent(T anItem);", "public boolean isValidItem() {\n return validItem;\n }", "public abstract boolean isTypeOf(ItemType type);", "public boolean isParent(T anItem) { return false; }", "@Override\r\n\tpublic boolean equals(Object ob){\n\t\tItem itemob=(Item)ob;\t//transfer object type to Item type\r\n\t\tif(this.UID==itemob.UID && this.TITLE==itemob.TITLE && this.NOOFCOPIES==itemob.NOOFCOPIES) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isContradicting(Item item){\r\n if(item.getType() == BASEBALL_BAT.getType()) {\r\n if (unitMap.containsKey(FOOTBALL.getType())) return true;\r\n else return false;\r\n }\r\n if (item.getType() ==FOOTBALL.getType()){\r\n if (unitMap.containsKey(BASEBALL_BAT.getType())) return true;\r\n else return false;\r\n }\r\n return false;\r\n }", "public abstract boolean contains(Object item);", "public boolean isItemNotSoluble(Item item) {\n return !isItemSoluble(item);\n }", "public Boolean checkAvailability(Item item, Integer current) {\n \tif (item.getQuatity() + current > item.getAvailableQuatity()) {\r\n \t\tSystem.out.println(\"System is unable to add \"\r\n \t\t\t\t+ current + \" \" + item.getItemName() +\r\n \t\t\t\t\". System can only add \"\r\n \t\t\t\t+ item.getAvailableQuatity() + \" \" + item.getItemName() );\r\n \t\treturn false;\r\n \t}\r\n \telse return true;\r\n }", "@Override\n public Bln item(final QueryContext qc, final InputInfo ii) throws QueryException {\n if(single) {\n final Item item = expr.item(qc, info);\n return Bln.get(!item.isEmpty() && eval(item));\n }\n\n // iterative evaluation\n final Iter iter = expr.atomIter(qc, info);\n for(Item item; (item = qc.next(iter)) != null;) {\n if(eval(item)) return Bln.TRUE;\n }\n return Bln.FALSE;\n }", "public boolean hasItemStorage() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean hasItem() {\n return (this.curItem != null);\n }", "protected boolean isInlineItem(String nsURI, String lName) {\n return (FO_URI.equals(nsURI) \n && (lName.equals(\"bidi-override\") \n || lName.equals(\"character\") \n || lName.equals(\"external-graphic\") \n || lName.equals(\"instream-foreign-object\")\n || lName.equals(\"inline\") \n || lName.equals(\"inline-container\")\n || lName.equals(\"leader\") \n || lName.equals(\"page-number\") \n || lName.equals(\"page-number-citation\")\n || lName.equals(\"basic-link\")\n || (lName.equals(\"multi-toggle\")\n && (getNameId() == FO_MULTI_CASE \n || findAncestor(FO_MULTI_CASE) > 0))\n || (lName.equals(\"footnote\") && !isOutOfLineFODescendant)\n || isNeutralItem(nsURI, lName)));\n }", "public boolean hasItemStorage() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean find(Comparable<T> item)\r\n {\r\n return find(root, item);\r\n }", "public static boolean isItemChecked(String item){\n\t\tint itemPosition=getItemPosition(item);\n\t\treturn itemList.get(itemPosition).getCheckmark();\n\t}", "public boolean putItem(@NonNull Item item) {\n return items.add(item);\n }", "public boolean updateMenuItem(Item item) {\n\t\t// TODO - implement ItemManager.updateMenuItem\n\t\tItemDAO itemDAO = new ItemDAO();\n\t\tboolean check = false;\n\n\t\tif (item.getPrice() <= 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Item price must be a positive number!\");\n\t\t\treturn check;\n\t\t}\n\n\t\tcheck = itemDAO.update(item);\n\n\t\treturn check;\n\t}", "public boolean checkOutItem(Item item)\n {\n \t return memberItems.add(item);\n }", "boolean canRead(ItemState itemState) throws ItemNotFoundException, RepositoryException;", "public boolean contains(E item) {\n\n return bstContains(item, root);\n }", "public boolean isNonAtomic() {\n return nonAtomic;\n }", "public boolean isInterestedInAllItems();", "public boolean isItemIndex() {\n return !isMetadataIndex();\n }", "public Boolean add(Item item) {\n \tif (itemCollection.containsKey(item.getItemName())) {\r\n \tif (checkAvailability(item, 1)) {\r\n \t\titem.setQuatity(item.getQuatity() + 1);\r\n \t\titemCollection.put(item.getItemName(), item);\r\n \t\treturn true;\r\n \t} else return false;\r\n } else {\r\n \titemCollection.put(item.getItemName(), item);\r\n \treturn true;\r\n }\r\n \t\r\n }", "public boolean item(int i) {\n\t\treturn x[i] == 1;\n\t}", "public boolean isQuestItem() {\n return questItem;\n }", "public static boolean ItemType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ItemType\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, ITEM_TYPE, \"<item type>\");\n r = KindTest(b, l + 1);\n if (!r) r = GeneralItemType(b, l + 1);\n if (!r) r = FunctionTest(b, l + 1);\n if (!r) r = MapTest(b, l + 1);\n if (!r) r = ArrayTest(b, l + 1);\n if (!r) r = AtomicOrUnionType(b, l + 1);\n if (!r) r = ParenthesizedItemType(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "@Override\n public boolean contains(T item) {\n return itemMap.containsKey(item);\n }", "public interface Item {\n\n boolean isTask();\n}", "public boolean isAssetSpecial(T asset);", "public boolean isLocked(Iterable<T> items) {\n for (T t : items) {\n ReentrantLock lock = syncMap.get(t);\n if (!lock.isHeldByCurrentThread()) {\n return false;\n }\n }\n return true;\n }", "public abstract boolean depleteItem();", "@Override\n\tpublic boolean isInTrashContainer();", "public boolean itemExist(Object item) {\r\n\t\tfor(int i = 0; i < getItemCount(); i++)\r\n\t\t\tif(getItem(i).equals(item))\r\n\t\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public boolean isSetItems() {\n return this.items != null;\n }", "boolean isMember(Item item) throws AccessManagementException;", "boolean canRemove(ItemState itemState) throws ItemNotFoundException, RepositoryException;", "public void checkItem() {\n Entity t = BombermanGame.checkCollisionItem(this.rectangle);\n if (t instanceof SpeedItem) {\n speed ++;\n ((SpeedItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof FlameItem) {\n flame = true;\n ((FlameItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof BombItem) {\n max_bomb ++;\n ((BombItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof Portal) {\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n }", "@Override\n public boolean areContentsTheSame(Item one,\n Item two) {\n return one.equals(two);\n }", "boolean hasItemIndex();", "boolean hasItemIndex();", "boolean hasItemIndex();", "public boolean createMenuItem(Item item) {\n\t\t// TODO - implement ItemManager.createMenuItem\n\t\tItemDAO itemDAO = new ItemDAO();\n\t\tboolean check = false;\n\n\t\tif (item.getName().isEmpty()) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Item name cannot be empty!\");\n\t\t\treturn check;\n\t\t}\n\n\t\tif (item.getType().isEmpty()) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Item type cannot be empty!\");\n\t\t\treturn check;\n\t\t}\n\n\t\tif (item.getPrice() <= 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Item price must be a positive number!\");\n\t\t\treturn check;\n\t\t}\n\n\t\tif (item.getDescription().isEmpty()) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Item description cannot be empty!\");\n\t\t\treturn check;\n\t\t}\n\n\t\tcheck = itemDAO.insert(item);\n\n\t\treturn check;\n\t}", "public boolean canBePromotedTo(ItemType type) {\n return this.isTypeOf(type);\n }", "public boolean checkItem () {\r\n\t\tfor (Entity e : getLocation().getWorld().getEntities())\r\n\t\t{\r\n\t\t\tdouble x = e.getLocation().getX();\r\n\t\t\tdouble z = e.getLocation().getZ();\r\n\t\t\tdouble yDiff = getSpawnLocation().getY() - e.getLocation().getY();\r\n \r\n\t\t\tif (yDiff < 0)\r\n\t\t\t\tyDiff *= -1;\r\n\r\n\t\t\tif (x == getSpawnLocation().getX() && yDiff <= 1.5 && z == getSpawnLocation().getZ()) {\r\n \r\n ShowCaseStandalone.slog(Level.FINEST, \"Potential hit on checkItem()\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tItem itemE = (Item)e;\r\n\t\t\t\t\tif (ItemStackHandler.itemsEqual(itemE.getItemStack(), getItemStack(), true)) {\r\n ShowCaseStandalone.slog(Level.FINEST, \"Existing stack: \" + itemE.getItemStack().toString());\r\n itemE.getItemStack().setAmount(1); //Removes duped items, which can occur.\r\n\t\t\t\t\t\tthis.item = itemE;\r\n\t\t\t\t\t\tscs.log(Level.FINER, \"Attaching to existing item.\");\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception ex) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean contains(Type item);", "@Override\n\tpublic boolean isInTrash();", "@Order(2)\n\t@Test\n\tpublic void Attempt_GetItemByIdSuccess()\n\t{\n\t\tint iD = 1;\n\t\tboolean owned = false;\n\t\tItem test_Item = is.getItemByID(iD, owned);\n\t\tassertTrue(test_Item != null);\n\t}", "@Override\n public boolean getItemActive() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.ITEM_ACTIVE_);\n return ((Boolean)retnValue).booleanValue ();\n }", "protected boolean isBlockOrInlineItem(String nsURI, String lName) {\n return (isBlockItem(nsURI, lName) || isInlineItem(nsURI, lName));\n }", "boolean getItemCanBeDeleted(String itemId);", "@Override\n\tprotected boolean isRowOkToExecute(final TableItem tableItem)\n\t{\n\n\t\tif(super.isRowOkToExecute(tableItem))\n\t\t{\n\t\t\tsetRObjectId(tableItem.getText(getAttributes().indexOf(\n\t\t\t\tIPersistentObject.R_OBJECT_ID) + 1));\n\t\t\tif(isValidIdValue(getRObjectId(), true))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean isArchive() {\n RepoPath repositoryPath = InternalRepoPathFactory.create(getRepoKey(), getPath());\n ItemInfo fileInfo = retrieveItemInfo(repositoryPath);\n return NamingUtils.getMimeType(fileInfo.getRelPath()).isArchive();\n }", "static boolean isRedstoneChannelItem(Item item) {\n return (item instanceof ItemBlock &&\n (((ItemBlock)item).getBlock() == ModBlocks.signalTransmitterBlock\n || ((ItemBlock)item).getBlock() == ModBlocks.signalReceiverBlock\n || ((ItemBlock)item).getBlock() == ModBlocks.wirelessLockBlock\n || ((ItemBlock)item).getBlock() == ModBlocks.wirelessButtonBlock));\n }", "public static boolean checkFullItem(int id) throws IOException\n\t{\n\t\tif(id == 0)\n\t\t\treturn false;\n\t\t//special cases ex. boots\n\t\tif(id == 3047 || id == 3006 || id == 3009 || id == 3020 || id == 3111 || id == 3117 || id == 3158)\n\t\t\treturn true;\n\t\t\n\t\t//old boot enchantments\n\t\tif(id >= 1300 && id <= 1334)\n\t\t\treturn true;\n\t\t\n\t\t//sated devourer\n\t\tif(id == 3931 || id == 1415 || id == 1411)\n\t\t\treturn true;\n\t\t\n\t\t//sightstone\n\t\tif(id == 2049)\n\t\t\treturn true;\n\t\t\n\t\tif(id == 3930)\n\t\t\treturn true;\n\t\t\n\t\t//DNE anymore item?\n\t\tif(id == 2043 || id == 3932)\n\t\t\treturn false;\n\t\t\n\t\t//System.out.println(\"ID: \" + id);\n\t\tURL url = new URL(\"https://global.api.pvp.net/api/lol/static-data/na/v1.2/item/\" + id + \"?itemData=into&api_key=\" + API);\n\t\tInputStream is = url.openStream();\n\t\tJsonReader rdr = Json.createReader(is);\n\t\tJsonObject obj = rdr.readObject();\n\t\treturn !obj.containsKey(\"into\");\n\t}", "public boolean putItems(@NonNull ArrayList<Item> items) {\n \tIterator<Item> iter = items.iterator();\n \tint insertSize = 0;\n \twhile (iter.hasNext()) {\n \t\tItem item = iter.next();\n \t this.items.add(item);\n \t insertSize++;\n \t}\n\n \treturn (items.size()==insertSize);\n }", "public static boolean addItem(item item) {\n try {\n PreparedStatement st = conn.prepareStatement(\"INSERT INTO iteminformation VALUES(?,?,?,?,?,?,?,?,?,?)\");\n st.setInt(1, item.getItemID());\n st.setString(2, item.getOwnerID());\n st.setString(3, item.getName());\n st.setInt(4, item.getStatus());\n st.setString(5, item.getDescription());\n st.setString(6, item.getCategory());\n st.setBlob(7, item.getImage1());\n st.setBlob(8, item.getImage2());\n st.setBlob(9, item.getImage3());\n st.setBlob(10, item.getImage4());\n st.execute();\n return true;\n } catch (SQLException ex) {\n Logger.getLogger(itemDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return false;\n }", "@Override\n public boolean isSame(Item other) {\n return this.equals(other);\n }", "public boolean contains (Object item){\n\t\t// compute the hash table index\n\t\t\t\tint index = (item.hashCode() & Integer.MAX_VALUE) % table.length;\n\n\t\t\t\t// find the item and return false if item is in the ArrayList\n\t\t\t\tif (table[index].contains((T)item))\n\t\t\t\t\treturn true;\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t}", "boolean canCarry(Item specifiedItem);", "Boolean isConsumeLockEntity();", "public boolean hasItem(@NonNull Item item) {\n \t// if the item is invisible, then fool the player\n \tif (!item.isVisible()) {\n \treturn false;\n } else {\n \treturn items.contains(item);\n }\n }", "public boolean getBooleanValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a boolean.\");\n }", "public interface IItem extends IAction {\n\n\t/**\n\t * Additional bag option to handle quantity manifest\n\t * @return bagEmpty\n\t */\n\tpublic abstract boolean depleteItem();\n}", "boolean removAble(InputItem item);", "public boolean contains(T item) {\n synchronized(this) {\n return _treeSet.contains(item);\n }\n }", "private boolean itemListContains(Item item){\r\n\t\treturn items.containsKey(item.getItemIdentifier());\r\n\t}", "public void checkItem(final ToDoItem item) {\n if (mClient == null) {\n return;\n }\n\n // Set the item as completed and update it in the table\n item.setComplete(true);\n\n AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>(){\n @Override\n protected Void doInBackground(Void... params) {\n try {\n\n checkItemInTable(item);\n getActivity ().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (item.isComplete()) {\n mAdapter.remove(item);\n }\n }\n });\n } catch (final Exception e) {\n createAndShowDialogFromTask(e, \"Error\");\n }\n\n return null;\n }\n };\n\n runAsyncTask(task);\n }", "@java.lang.Override\n public boolean hasInventoryItemData() {\n return inventoryItemCase_ == 3;\n }", "@java.lang.Override\n public boolean hasDeletedItemKey() {\n return inventoryItemCase_ == 2;\n }", "public boolean isAny() {\n return m_item.getSchemaComponent().type() == SchemaBase.ANY_TYPE;\n }", "public boolean haveItem(Items item)\n {\n //boolean haveItem = Inventory.values().contains(item);\n return Inventory.containsValue(item);\n }", "public boolean hasTSM() {\n for (Mounted m : getEquipment()) {\n if ((m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_TSM)) {\n return true;\n }\n }\n return false;\n }", "public boolean contains(T item) {\n Iterator<T> iterator = this.iterator();\n while (iterator.hasNext()) {\n if (iterator.next().equals(item))\n return true;\n }\n\n return false;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Item)) {\n return false;\n }\n Item other = (Item) object;\n if ((this.itemid == null && other.itemid != null) || (this.itemid != null && !this.itemid.equals(other.itemid))) {\n return false;\n }\n return true;\n }", "public boolean has(Object item) {\n JMLListEqualsNode<E> ptr = this;\n //@ maintaining (* no earlier element is elem_equals to item *);\n while (ptr != null) {\n if (elem_equals(ptr.val, item)) {\n return true;\n }\n ptr = ptr.next;\n }\n return false;\n }", "public boolean add(T item) {\n boolean addSuccessful = items.add(item);\n if (addSuccessful) {\n currentSize = -1.0;\n inCapacitySize = -1.0;\n }\n return addSuccessful;\n }", "public void checkItemInTable(ToDoItem item) throws ExecutionException, InterruptedException {\n mToDoTable.update(item).get();\n }", "public boolean hasIndustrialTSM() {\n for (Mounted m : getEquipment()) {\n if ((m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_INDUSTRIAL_TSM)) {\n return true;\n }\n }\n return false;\n }" ]
[ "0.5900849", "0.5836717", "0.57972324", "0.5758559", "0.56889707", "0.55957735", "0.5592698", "0.5577364", "0.5527601", "0.5525806", "0.5469571", "0.5461331", "0.54275894", "0.5425934", "0.5425934", "0.5425934", "0.5425934", "0.5425934", "0.5425934", "0.5425934", "0.54171395", "0.5391131", "0.5356525", "0.5345951", "0.5341786", "0.53161836", "0.5308438", "0.5254581", "0.5250698", "0.5239222", "0.5239212", "0.5231925", "0.52257025", "0.52193946", "0.521281", "0.5199154", "0.5173549", "0.5165175", "0.516095", "0.51537573", "0.5146768", "0.51205283", "0.50998396", "0.5094444", "0.50830454", "0.50745547", "0.50712323", "0.5054603", "0.50452524", "0.50313", "0.5028976", "0.5019753", "0.5018051", "0.50129277", "0.5009922", "0.5008274", "0.50046414", "0.50016195", "0.49886736", "0.49737537", "0.49694943", "0.49694943", "0.49694943", "0.4969129", "0.49670535", "0.496482", "0.49620163", "0.49548373", "0.49471694", "0.4946758", "0.4937931", "0.49350777", "0.49350235", "0.49347007", "0.4931465", "0.49210182", "0.48985943", "0.4898454", "0.48884758", "0.48866135", "0.4878869", "0.48715872", "0.48679096", "0.48620838", "0.48619562", "0.48604348", "0.4855799", "0.48511744", "0.4850808", "0.4849323", "0.48446774", "0.4841296", "0.48409757", "0.48399615", "0.48392263", "0.48380548", "0.48345983", "0.4827937", "0.4819563", "0.481558" ]
0.5673981
5
Tests whether the item is an atomic item of type string.
public boolean isString() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isString() {\n return this.data instanceof String;\n }", "public boolean isString()\n {\n return true;\n }", "public static boolean isString(Object value) {\n\t\treturn value instanceof String;\n\t}", "public boolean isString();", "protected static boolean isString(Type t) {\r\n \t\tif(t instanceof Type.Clazz) {\r\n \t\t\tType.Clazz c = (Type.Clazz) t;\r\n \t\t\t return c.pkg().equals(\"java.lang\") && c.components().size() == 1\r\n \t\t\t\t\t&& c.components().get(0).first().equals(\"String\");\t\t\t\r\n \t\t}\r\n \t\treturn false;\r\n \t}", "@Override\n public boolean isMaybeAnyStr() {\n checkNotPolymorphicOrUnknown();\n return (flags & (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER)) == (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER); // note: ignoring excluded_strings and included_strings, see javadoc\n }", "@Override\n\tpublic boolean supports(Object value) {\n\t\treturn value != null && (value instanceof String);\n\t}", "boolean isSetString();", "public boolean canProvideString();", "public boolean hasStringValue() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "boolean hasStringValue();", "public boolean isSetStr()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(STR$0) != 0;\r\n }\r\n }", "boolean isSetValueString();", "public boolean hasStringValue() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "static String isItem(RexCall call) {\n if (call.getOperator() != SqlStdOperatorTable.ITEM) {\n return null;\n }\n final RexNode op0 = call.operands.get(0);\n final RexNode op1 = call.operands.get(1);\n if (op0 instanceof RexInputRef\n && ((RexInputRef) op0).getIndex() == 0\n && op1 instanceof RexLiteral\n && ((RexLiteral) op1).getValue2() instanceof String) {\n return (String) ((RexLiteral) op1).getValue2();\n }\n return null;\n }", "public boolean isWrapperOrString(String fieldType) {\n return fieldType.equals(\"Integer\") || fieldType.equals(\"Short\") || fieldType.equals(\"Long\") ||\n fieldType.equals(\"Byte\") || fieldType.equals(\"Character\") || fieldType.equals(\"Float\") ||\n fieldType.equals(\"Double\") || fieldType.equals(\"Boolean\") || fieldType.equals(\"String\");\n }", "protected boolean hasStringIdentifier(){\r\n // get string descriptor\r\n int status = gUsbIo.getStringDescriptor(stringDescriptor1,(byte)1,0);\r\n if (status != USBIO_ERR_SUCCESS) {\r\n return false;\r\n } else {\r\n if(stringDescriptor1.Str.length()>0) return true;\r\n }\r\n return false;\r\n }", "public boolean isType(String type) {\n return m_Type.equals(type);\n }", "boolean hasString();", "private static boolean isValidTypeString(String string)\r\n {\r\n return VALID_TYPE_STRINGS.contains(string);\r\n }", "boolean getString();", "@Test\n public void testRequireAtomString_GenericType_String_2() {\n LOGGER.info(\"requireAtomString\");\n final AtomString actual = new AtomString();\n final AtomString expected = requireAtomString(actual, \"Message\");\n assertEquals(expected, actual);\n }", "@Test\n public void testRequireAtomString_GenericType() {\n LOGGER.info(\"requireAtomString\");\n Atom actual = null;\n final Atom expected = null;\n boolean caught = false;\n try {\n actual = requireAtomString(null);\n } catch (final ClassCastException ex) {\n caught = true;\n assertEquals(\"\", ex.getMessage());\n }\n assertTrue(caught);\n assertEquals(expected, actual);\n }", "public abstract boolean isTypeOf(ItemType type);", "@Test\n public void testRequireAtomString_GenericType_1() {\n LOGGER.info(\"requireAtomString\");\n final AtomString actual = new AtomString();\n final AtomString expected = requireAtomString(actual);\n assertEquals(expected, actual);\n }", "public boolean hasScStr() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "boolean isText(Object object);", "public boolean contains(String item) {\n if (item.length() == 0)\n return terminal;\n else {\n int index = c2i(item.charAt(0));\n if (children[index] == null) return false;\n else return children[index].contains(item.substring(1));\n }\n }", "public boolean hasScStr() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean equals(String object) {\r\n if (NumItems == object.length() && containsAll(object)) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "public boolean isPrimitiveOrString(String fieldType) {\n return fieldType.equals(\"int\") || fieldType.equals(\"short\") || fieldType.equals(\"long\") ||\n fieldType.equals(\"byte\") || fieldType.equals(\"char\") || fieldType.equals(\"float\") ||\n fieldType.equals(\"double\") || fieldType.equals(\"boolean\") || fieldType.equals(\"String\");\n }", "@Override\n public boolean isMaybeStrJSON() {\n checkNotPolymorphicOrUnknown();\n return (flags & STR_JSON) != 0;\n }", "public boolean typeStringsEqual(String uti1, String uti2);", "@Test\n public void testRequireAtomString_GenericType_String_1() {\n LOGGER.info(\"requireAtomString with message\");\n Atom actual = null;\n final Atom expected = null;\n boolean caught = false;\n try {\n actual = requireAtomString(null, \"Message\");\n } catch (final ClassCastException ex) {\n caught = true;\n assertEquals(\"Message\", ex.getMessage());\n }\n assertTrue(caught);\n assertEquals(expected, actual);\n }", "private final boolean IsAtomic(String expression) {\r\n if (this._kripke.Atoms.contains(expression)) {\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "public boolean hasStrData() {\n return result.hasStrData();\n }", "public boolean hasStrData() {\n return result.hasStrData();\n }", "public boolean equals(Object other) {\r\n \tthrow new ClassCastException(\"equals on StringValue is not allowed\");\r\n }", "public boolean equals(XMLString anObject) {\n/* 186 */ return this.m_str.equals(anObject.toString());\n/* */ }", "public boolean usesItem(Item item){\n for (char c : item.getName().toCharArray()){\n if(!content.contains( String.valueOf(c) )){\n return false;\n }else {\n// count++;\n }\n }\n\n// System.out.println(item + \" est utilisé \" + count + \" fois\");\n\n return true;\n\n\n// return content.contains(item);\n }", "public boolean isTextValue()\n {\n return getFieldType().equalsIgnoreCase(TYPE_TEXT);\n }", "public boolean equalsOrContainsStr(String string) {\n return toString().equals(string);\n }", "private boolean STRING(String s) {\r\n int n = input.match(s, in);\r\n in += n;\r\n return (n > 0);\r\n }", "static boolean isStringLiteral(final Expr expr)\n {\n return (expr.isLiteral() && expr.getLiteralValue() instanceof String)\n || (NullHandling.replaceWithDefault() && expr.isNullLiteral());\n }", "public boolean hasString() {\n/* 800 */ return true;\n/* */ }", "public boolean isStringBody() throws IOException {\n\t\treturn !this.wrappedOut.hasData() || ServletUtil.isStringBody(getContentType());\n\t}", "public static boolean isStringLiteral(String token)\n {\n return isLiteral( '\"', '\"', token );\n }", "private static boolean isPrimitive(String value) {\n boolean status = true;\n value = value.trim();\n if (value.length() < 1) {\n return false;\n }\n for (int i = 0; i < value.length(); i++) {\n char c = value.charAt(i);\n if (!Character.isDigit(c)) {\n status = false;\n break;\n }\n }\n\n return status;\n }", "private boolean isType(String type, Object value) {\n boolean ret = false;\n String val = String.valueOf(value).toUpperCase();\n if (val.equals(\"NULL\")) {\n ret = true;\n } else if (val.contains(\"BASE64\")) {\n ret = true;\n } else {\n if (type.equals(\"NULL\") && value instanceof JSONObject) ret = true;\n if (type.equals(\"TEXT\") && value instanceof String) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Integer) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Long) ret = true;\n if (type.equals(\"REAL\") && value instanceof Float) ret = true;\n if (type.equals(\"BLOB\") && value instanceof Blob) ret = true;\n }\n return ret;\n }", "public static synchronized boolean isPrimitive(String value){\n\t\treturn ClassRegistry.xmlprimitives.containsKey(value);\n\t}", "public static boolean plainText(Comparable value) {\r\n return value != null && value.toString().matches(REGEX_PLAINTEXT);\r\n }", "public boolean isUnionStringDirty(java.lang.CharSequence value) {\n\t throw new java.lang.UnsupportedOperationException(\"IsDirty is not supported on tombstones\");\n\t }", "public boolean hasCsStr() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "protected boolean pickItem(String s) {\n if (\"\".equals(s)) return false;\n Iterator i = getItems().iterator();\n Object item = null;\n Object o;\n while (null==item && i.hasNext()) {\n o = i.next();\n if(idChoosesItem(s, o)) {\n item=o;\n if (removeItemWhenChosen()) i.remove();\n }\n }\n if (null==item) return false;\n getChosenItems().add(item);\n if (Server.debugMode()) {}{} //System.out.println(\"Picked: \" +s);\n return true;\n }", "abstract protected boolean checkType(String myType);", "@Override\n public boolean equals(Object obj) {\n if (obj == null || !(obj instanceof SafeString)) {\n return false;\n }\n SafeString other = (SafeString) obj;\n return other.mString.equals(mString);\n }", "public boolean isEncodedObject (final Object value) {\n\n if ( value == null || !(value instanceof String) ) {\n\n return false;\n }\n\n final String valueString = (String) value;\n\n return valueString.startsWith(ObjectStringConverter.MARK_PREFIX) &&\n valueString.endsWith(ObjectStringConverter.MARK_SUFFIX);\n }", "public boolean isItemLocal ();", "public boolean isSetGearboxtypestring() {\n return this.gearboxtypestring != null;\n }", "public boolean hasCsStr() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isSetText()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(TEXT$18) != 0;\n }\n }", "boolean isTypeKey(String key);", "public String getStringValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a string.\");\n }", "public boolean exists() {\n \t\treturn (type != UNASKED && isValid() && ((type == STRING) ? !sVal.equals(\"\") : true));\n \t}", "@Override\r\n\t\t\tpublic boolean test(String t, String u) {\n\t\t\t\t return t.equalsIgnoreCase(u);\r\n\t\t\t}", "protected boolean chooseItem(String s) {\n if (\"\".equals(s)) return false;\n Iterator i = getItems().iterator();\n Object item = null;\n Object o;\n while (null==item && i.hasNext()) {\n o = i.next();\n if(idChoosesItem(s, o)) item=o;\n }\n if (null==item) return false;\n setChosenItem(item);\n return true;\n }", "public boolean isDefaultStringEmptyDirty(java.lang.CharSequence value) {\n\t throw new java.lang.UnsupportedOperationException(\"IsDirty is not supported on tombstones\");\n\t }", "public static boolean isItemChecked(String item){\n\t\tint itemPosition=getItemPosition(item);\n\t\treturn itemList.get(itemPosition).getCheckmark();\n\t}", "private static boolean hasString(String value) {\n if (!value.trim().equals(\"\") && value.length() > 0) {\n return true;\n }\n\n return false;\n\n }", "public static boolean fromStringForRequired(String string)\n throws IllegalArgumentException, TypeValueException {\n if (\"true\".equals(string)) {\n return true;\n } else if (\"false\".equals(string)) {\n return false;\n } else if (string == null) {\n throw new IllegalArgumentException(\"string == null\");\n } else {\n throw new TypeValueException(SINGLETON, string);\n }\n }", "public static boolean ItemType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ItemType\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, ITEM_TYPE, \"<item type>\");\n r = KindTest(b, l + 1);\n if (!r) r = GeneralItemType(b, l + 1);\n if (!r) r = FunctionTest(b, l + 1);\n if (!r) r = MapTest(b, l + 1);\n if (!r) r = ArrayTest(b, l + 1);\n if (!r) r = AtomicOrUnionType(b, l + 1);\n if (!r) r = ParenthesizedItemType(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public static boolean isTemplateElement(final String str) {\n if (str == null || \"\".equals(str)) {\n return false;\n }\n final String trimedStr = str.trim();\n for (TemplateElement templateElt : availableTemplateElements) {\n if (templateElt.key.equals(trimedStr)) {\n return true;\n }\n }\n return false;\n }", "protected boolean qualifies(Object o) {\n\tToken t = (Token) o;\n\treturn t.isQuotedString();\n}", "public final boolean isText() {\n return this.getTopLevelType().equals(\"text\");\n }", "public boolean exists() {\n \t\treturn (type != UNKNOWN && isValid() && ((type == STRING) ? !sVal.equals(\"\") : true));\n \t}", "protected <T> boolean isPrimitiveOrWrapper(Class<T> entity) {\n\t\tboolean b = ClassUtils.isPrimitiveOrWrapper(entity);\n\t\tif (b)\n\t\t\treturn true;\n\t\tClass<?> tempClass = ClassUtils.resolvePrimitiveClassName(entity.getName());\n\t\tif (tempClass != null)\n\t\t\treturn true;\n\t\tif (entity == String.class)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "protected boolean isPrimitiveOrString(Class<?> clazz) {\n return clazz.isPrimitive() || clazz.isAssignableFrom(String.class);\n }", "public void containsString() {\n\t\t\tString name = \"martin\";\n\t\t\tboolean contains = name.contains(\"rti\");\n\t\t\tif(contains) {\n\t\t\t\tSystem.out.println(\"it contains\");\n\t\t\t}\n\t\t}", "boolean hasScStr();", "@Test\n\tpublic void testGetBadHealingItemMessage() {\n\t\tString testString = new String();\n\t\tassertEquals(testString.getClass(), testHospital.getBadHealingItemMessage().getClass());\n\t}", "boolean hasCsStr();", "private boolean isTag(String item) {\n return storiesToTags.keySet().contains(item);\n }", "public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }", "public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }", "public boolean equals(Object anObject) {\n/* 205 */ return this.m_str.equals(anObject);\n/* */ }", "public abstract boolean isQualifiedName(@Nullable String text);", "@SuppressWarnings (\"unchecked\") public void add(String item){\n if(item==null)\n return;\n items.add(item.trim());\n }", "public static boolean isName(Item item, String name) {\r\n \t\tif(item == null)\r\n \t\t\treturn false;\r\n \t\tString itemName = item.getUnlocalizedName().toLowerCase();\r\n \t\tif(itemName.contains(name))\r\n \t\t\treturn true;\r\n \t\treturn false;\r\n \t}", "public static boolean isAtomic(byte dataType) {\n return ((dataType == BYTEARRAY) ||\n (dataType == CHARARRAY) ||\n (dataType == BIGCHARARRAY) ||\n (dataType == INTEGER) ||\n (dataType == BIGINTEGER) ||\n (dataType == BIGDECIMAL) ||\n (dataType == LONG) ||\n (dataType == FLOAT) ||\n (dataType == DOUBLE) ||\n (dataType == BOOLEAN) ||\n (dataType == BYTE) ||\n (dataType == DATETIME) ||\n (dataType == GENERIC_WRITABLECOMPARABLE));\n }", "public abstract boolean isIdentifier(@Nullable String text);", "private void checkStringKey(Key key) {\n m_logger.debug(\"checkByteArrKey start key:\" + key.toString());\n if(m_cache != null){\n \tm_logger.debug(\"Cache HashCode:\" + m_cache.hashCode());\n }\n if (m_checked){\n m_logger.debug(\"checkByteArrKey end.\");\n \treturn;\n }\n if (key instanceof String) {\n if (!(m_cache instanceof StringMap)) {\n \tm_logger.debug(\"Cache HashCode:\" + m_cache.hashCode());\n throw new RuntimeException(\"Wrong map/set for String key\");\n }\n }\n m_checked = true;\n m_logger.debug(\"checkByteArrKey end.\");\n }", "@Test\n public void getItemType () {\n Assert.assertEquals(\"SPECIAL\", bomb.getItemType().name());\n }", "private static final PyObject testEqual(PyString string, PyObject other) {\n\t\tif (other instanceof PyShadowString) {\n\t\t\treturn ((PyShadowString) other).shadowstr___eq__(string);\n\t\t} else {\n\t\t\treturn string.__eq__(other);\n\t\t}\n\t}", "public void checkSafeString(IRubyObject object) {\n if (getSafeLevel() > 0 && object.isTaint()) {\n ThreadContext tc = getCurrentContext();\n if (tc.getFrameName() != null) {\n throw newSecurityError(\"Insecure operation - \" + tc.getFrameName());\n }\n throw newSecurityError(\"Insecure operation: -r\");\n }\n secure(4);\n if (!(object instanceof RubyString)) {\n throw newTypeError(\n \"wrong argument type \" + object.getMetaClass().getName() + \" (expected String)\");\n }\n }", "public boolean evaluateInventory(String s)\n\t{\n\t\tboolean blnResult;\t\t\t\t\t\t//if item is in inventory or not\n\t\t\n\t\tblnResult = inventory.contains(s);\n\t\t\n\t\treturn blnResult;\n\t\t\n\t}", "public boolean checkUserOrItemID(String iD) {\n // check for empty String\n if (iD == null || iD.strip().equals(\"\")) {\n return false;\n }\n\n if (iD.length() > 6) {\n return false;\n }\n\n try {\n Integer.parseInt(iD);\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "public boolean isPrimitiveOrString(Field field) {\r\n Class type = field.getType();\r\n String name = type.getName();\r\n\r\n return type.isPrimitive() || name.startsWith(\"java\") || name.startsWith(\"sun\");\r\n }", "private boolean m60455c(String str) {\n AccountInterface accountInterface;\n if (str != null && (accountInterface = (AccountInterface) InstanceProvider.m107964b(AccountInterface.class)) != null && !C16990fl.m84428a((CharSequence) str) && accountInterface.isCurrent(str)) {\n return true;\n }\n return false;\n }", "@Test\n\tpublic void test_TCC___String_String_int() {\n {\n\n \t\t@SuppressWarnings(\"deprecation\")\n\t\t\tfinal Attribute attribute = new Attribute(\"test\", \"value\", AttributeType.ID.ordinal());\n \t\tassertTrue(\"incorrect attribute name\", attribute.getName().equals(\"test\"));\n \t\tassertTrue(\"incoorect attribute value\", attribute.getValue().equals(\"value\"));\n \t\tassertTrue(\"incorrect Namespace\", attribute.getNamespace().equals(Namespace.NO_NAMESPACE));\n\n assertEquals(\"incoorect attribute type\", attribute.getAttributeType(), Attribute.ID_TYPE);\n }\n\n\t}", "public boolean checkListItem(ArrayList<Item> inputListItem, String stringDesire)\r\n\t{\r\n\t\tString itemName = stringDesire.substring(0, stringDesire.indexOf(\":\"));;\r\n\t\tString variable = stringDesire.substring(stringDesire.indexOf(\":\")+1, stringDesire.lastIndexOf(\":\"));\r\n\t\tString desireValue = stringDesire.substring(stringDesire.lastIndexOf(\":\")+1,stringDesire.length());\r\n\t\r\n\t\t// Character may has multiple item with the same name, but different stats (sword, but one is broken, but the other aren't).\r\n\t\t// Thus all item with matching name must be checked\r\n\t\t// IF even ONE of the item match, this methods will return true;\r\n\t\t\r\n\t\tArrayList<Item> listMatchItem = new ArrayList<Item>();\r\n\r\n\t\tfor (int x = 0; x<inputListItem.size();x++)\r\n\t\t{\r\n\t\t\tif (inputListItem.get(x).getName() == itemName) \r\n\t\t\t\tlistMatchItem.add(inputListItem.get(x));\r\n\t\t}\r\n\t\t\r\n\t\tif (variable == \"itemNameNOT\" && listMatchItem.size() == 0) {\r\n\t\t\tSystem.out.println(\"Char not contain prohibit item\");\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\telse if (listMatchItem.size() == 0 ) {\r\n\t\t\tSystem.out.println(\"NO MATCH ITEM IS FOUND\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t// If NONE of the item match with the desireValue >>> this method must return FALSE;\r\n\t\t// In order to do this, we use the isOneMatch.\r\n\t\t//\r\n\t\t// This boolean will turn true if one of the item match\t\t\r\n\t\t// At the end of the for loop, the methods will return this boolean\r\n\t\tboolean isOneMatch = false;\r\n\t\tif (variable == \"listPropertyNOT\")\r\n\t\t{\r\n\t\t\tisOneMatch = true;\r\n\t\t}\r\n\t\t\r\n\t\tfor (Item inputItem : listMatchItem)\t\r\n\t\t{\r\n\t\t\tswitch (variable)\r\n\t\t\t{\r\n\t\t\t\t// This is use to check if this item is in inventory\r\n\t\t\t\tcase (\"itemName\") \r\n\t\t\t\t:\r\n\t\t\t\t\tif (inputItem.getName() == desireValue) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tisOneMatch = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\tcase (\"typeOfItem\") \r\n\t\t\t\t:\r\n\t\t\t\t\tif (inputItem.getListTypeOfItem().contains(desireValue)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tisOneMatch = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase (\"typeOfFunction\") \r\n\t\t\t\t:\r\n\t\t\t\t\tif (inputItem.getListTypeOfFunction().contains(desireValue)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tisOneMatch = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase (\"ownerName\") \r\n\t\t\t\t:\r\n\t\t\t\t\tif (inputItem.getOwnerName() == desireValue) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tisOneMatch = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase (\"isOnGround\") \r\n\t\t\t\t:\r\n\t\t\t\t\tString curIsAlive = Boolean.toString(inputItem.isItemOnGround());\r\n\t\t\t\t\tif (curIsAlive == desireValue) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tisOneMatch = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase (\"currentLocation\") \r\n\t\t\t\t:\r\n\t\t\t\t\tif (inputItem.getCurrentLocation() == desireValue) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tisOneMatch = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tcase (\"sameLocation\")\r\n\t\t\t\t: \r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t//-------------FIND ALL ITEM THAT MATCH DESIREVALUE------------------\r\n\t\t\t\t\t\r\n\t\t\t\t\tArrayList<Item> listMatchItemSameLocation = new ArrayList<Item>();\r\n\t\t\t\t\t\r\n\t\t\t\t//\tString itemName = stringDesire.substring(0, stringDesire.indexOf(\":\"));;\r\n\t\t\t\t//\tString variable = stringDesire.substring(stringDesire.indexOf(\":\")+1, stringDesire.lastIndexOf(\":\"));\r\n\t\t\t\t//\tString desireValue = stringDesire.substring(stringDesire.lastIndexOf(\":\")+1,stringDesire.length());\r\n\t\t\t\r\n\t\t\t\t\tfor (int x = 0; x<inputListItem.size();x++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (inputListItem.get(x).getName() == desireValue) \r\n\t\t\t\t\t\t\tlistMatchItemSameLocation.add(inputListItem.get(x));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (listMatchItemSameLocation.size() == 0 ) {\r\n\t\t\t\t\t\tSystem.out.println(\"NO MATCH ITEM IS FOUND\");\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//--------------------------------\r\n\t\t\t\t\t\r\n\t\t\t\t\tItem itemSameLocation = null;\r\n\t\t\t\t\tfor (Item checkItem : listMatchItemSameLocation)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (checkItem.getCurrentLocation() == inputItem.getCurrentLocation())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// If some item in match list = in same location, break and return true;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the code reach this code, it mean no matched item with same location exist, Thus return false;\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t// If contain desireValue, return true;\r\n\t\t\t\tcase (\"listProperty\") \r\n\t\t\t\t:\r\n\t\t\t\t\tif (inputItem.getListProperty().contains(desireValue)){\r\n\t\t\t\t\t\tisOneMatch = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t// If NOT contain desireValue, return true;\t\r\n\t\t\t\tcase (\"listPropertyNOT\") \r\n\t\t\t\t:\r\n\t\t\t\t\tif (!inputItem.getListProperty().contains(desireValue) && isOneMatch == true) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (inputItem.getListProperty().contains(desireValue)){\r\n\t\t\t\t\t\tisOneMatch = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t// In case that variable doesn't exist, it should mean that misspelling happen\r\n\t\t\t\tdefault \r\n\t\t\t\t: \r\n\t\t\t\t\tSystem.out.println(\"checkListItem's variable does not exist, FROM enviroment.GameWorld.containCharacter\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn isOneMatch;\r\n\t}" ]
[ "0.63589966", "0.6190899", "0.6095006", "0.6078577", "0.58861303", "0.57481384", "0.5649782", "0.5616233", "0.56031305", "0.55290425", "0.5521202", "0.55042386", "0.54742634", "0.54604787", "0.54114", "0.5344874", "0.53330106", "0.5281136", "0.52801514", "0.5279156", "0.5237188", "0.52226067", "0.5200452", "0.51996106", "0.5193371", "0.5190757", "0.5187021", "0.51785886", "0.5154323", "0.51379997", "0.5125679", "0.5121482", "0.51209754", "0.51122", "0.5110567", "0.50947064", "0.50947064", "0.50584763", "0.5025926", "0.5002087", "0.49916455", "0.49833754", "0.49306226", "0.49255195", "0.49150768", "0.49141476", "0.4895305", "0.48928797", "0.48831818", "0.4880915", "0.48502383", "0.4849806", "0.48445508", "0.48440874", "0.48418742", "0.48413068", "0.48403877", "0.48334458", "0.48254475", "0.48224735", "0.48078233", "0.48050562", "0.48015633", "0.47976667", "0.47814193", "0.47734514", "0.47590727", "0.47553697", "0.473578", "0.4730832", "0.4718105", "0.47132117", "0.47127265", "0.47110406", "0.47088474", "0.47048596", "0.46954164", "0.46789923", "0.46763152", "0.46681288", "0.4666521", "0.4659614", "0.4657825", "0.4657825", "0.46555465", "0.462901", "0.4628213", "0.46260852", "0.4624699", "0.46167716", "0.46078044", "0.46038237", "0.45980078", "0.4583837", "0.45701778", "0.45673928", "0.45631436", "0.45623606", "0.45618486", "0.45513538" ]
0.59785336
4
Tests whether the item is an atomic item of type boolean.
public boolean isBoolean() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getBooleanValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a boolean.\");\n }", "public boolean isBoolean();", "public boolean isBool() {\n return bool;\n }", "abstract public boolean getAsBoolean();", "public boolean isBoolean() {\n return this.data instanceof Boolean;\n }", "boolean getBoolValue();", "boolean getBoolValue();", "boolean hasBoolValue();", "boolean hasBool();", "public Boolean getBoolean() {\r\n\t\ttype(ConfigurationItemType.BOOLEAN);\r\n\t\treturn booleanValue;\r\n\t}", "boolean isEBoolean();", "public Boolean asBoolean();", "public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }", "public Boolean getBooleanValue() {\n return this.booleanValue;\n }", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default boolean asBool() {\n \n return notSupportedCast(BasicTypeID.BOOL);\n }", "boolean getBoolean();", "boolean getBoolean();", "public static boolean isBool(Object value) {\n\t\treturn value instanceof Boolean;\n\t}", "public boolean getBoolValue() {\n return boolValue_;\n }", "public boolean getBoolValue() {\n return boolValue_;\n }", "boolean getBoolean(String key) throws KeyValueStoreException;", "@Override\n public boolean isMaybeAnyBool() {\n checkNotPolymorphicOrUnknown();\n return (flags & BOOL) == BOOL;\n }", "public boolean getBoolean();", "private boolean getBooleanValue(Element element, String tagName)\n {\n String value = getValue(element,tagName).trim();\n try\n {\n return Integer.parseInt(value) != 0;\n }\n catch (NumberFormatException exception)\n {\n return value.equalsIgnoreCase(\"true\")\n || value.equalsIgnoreCase(\"on\")\n || value.equalsIgnoreCase(\"yes\");\n }\n }", "boolean getIsChecked();", "public String getType() {\r\n\t\treturn \"boolean\";\r\n\t}", "public static boolean isTrue(Object value) {\n\t\treturn isBool(value) && (Boolean) value;\n\t}", "public abstract boolean read_boolean();", "public Boolean getIsActiveAsBoolean() {\n if (this.isActive == null) {\n return null;\n } else if (this.isActive.toLowerCase().equals(\"true\")) {\n return true;\n } else {\n return false;\n }\n }", "public Boolean getBoolean(final int index) {\n Object returnable = this.get(index);\n if (returnable instanceof String) {\n returnable = Boolean.valueOf((String) returnable);\n }\n return (Boolean) returnable;\n }", "@java.lang.Override\n public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }", "public static boolean getBooleanTrue() {\n boolean returnValue = false;\n return returnValue;\n }", "@Override\n public boolean getAsBoolean() {\n return this.persistenceCheck.getAsBoolean();\n }", "public Boolean getABoolean()\n {\n return aBoolean;\n }", "public final void mBOOL() throws RecognitionException {\n try {\n int _type = BOOL;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2922:6: ( 'true' | 'false' )\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0=='t') ) {\n alt5=1;\n }\n else if ( (LA5_0=='f') ) {\n alt5=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 5, 0, input);\n\n throw nvae;\n }\n switch (alt5) {\n case 1 :\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2922:8: 'true'\n {\n match(\"true\"); if (state.failed) return ;\n\n\n }\n break;\n case 2 :\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2922:17: 'false'\n {\n match(\"false\"); if (state.failed) return ;\n\n\n }\n break;\n\n }\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "public boolean readBoolean() {\n return (((readLong() & 1) == 1) ? true : false);\n }", "public RubyBoolean getTrue() {\n return trueObject;\n }", "private boolean getBooleanValue(Element element, String tagName, String attributeName)\n {\n String value = getAttribute(element,tagName,attributeName).trim();\n try\n {\n return Integer.parseInt(value) != 0;\n }\n catch (NumberFormatException exception)\n {\n return value.equalsIgnoreCase(\"true\")\n || value.equalsIgnoreCase(\"on\")\n || value.equalsIgnoreCase(\"yes\");\n }\n }", "public boolean getBoolean(final String key) {\n String s = removeByteOrderMark(get(key));\n if (s == null) return false;\n s = s.toLowerCase(Locale.ROOT);\n return s.equals(\"true\") || s.equals(\"on\") || s.equals(\"1\");\n }", "boolean getBoolean(int index) throws PropertyException {\n Object object = this.get(index);\n if (object.equals(Boolean.FALSE)\n || (object instanceof String && ((String) object).equalsIgnoreCase(\"false\"))) {\n return false;\n } else if (object.equals(Boolean.TRUE)\n || (object instanceof String && ((String) object).equalsIgnoreCase(\"true\"))) {\n return true;\n }\n throw new PropertyException(\"JSONArray[\" + index + \"] is not a boolean.\");\n }", "public boolean getBoolean(String key) {\n Object value = get(key);\n return ((value instanceof Boolean) ? (Boolean)value : false);\n }", "boolean isChecked();", "boolean isChecked();", "private boolean getBooleanAttribute(Element element, String attributeName)\n {\n String value = getAttribute(element,attributeName).trim();\n try\n {\n return Integer.parseInt(value) != 0;\n }\n catch (NumberFormatException exception)\n {\n return value.equalsIgnoreCase(\"true\")\n || value.equalsIgnoreCase(\"on\")\n || value.equalsIgnoreCase(\"yes\");\n }\n }", "public boolean getBoolean(String key) {\n return Boolean.valueOf(UnsafeUtils.cast(get(key)));\n }", "@JsProperty boolean getChecked();", "static public boolean asBoolean(Object a) throws Exception {\r\n\t\tif (a instanceof JSObject)\r\n\t\t\ta = ((JSObject) a).valueOf();\r\n\t\t\r\n\t\t// js types\r\n\t\tif (a instanceof Boolean)\r\n\t\t\treturn (Boolean) a;\r\n\t\tif (a instanceof Double)\r\n\t\t\treturn (Double) a != 0;\r\n\t\tif (a instanceof String)\r\n\t\t\treturn ((String) a).length() > 0;\r\n\t\tif (a == null)\r\n\t\t\treturn false;\r\n\t\tif (a instanceof JSNull)\r\n\t\t\treturn false;\r\n\t\tif (a instanceof JSObject)\r\n\t\t\treturn true;\r\n\t\t\r\n\t\t// java types\r\n\t\tif (a instanceof Number)\r\n\t\t\treturn ((Number) a).doubleValue() > 0;\r\n\t\t\r\n\t\treturn false;\r\n\t}", "@Column(name = \"BOOLEAN_VALUE\", length = 20)\n/* 35 */ public String getBooleanValue() { return this.booleanValue; }", "private boolean get_BOOLEAN(int column) {\n // @AGG force Little Endian\n // @AGG In DB2 BOOLEAN columns appear to be encoded as two bytes\n if (metadata.isZos())\n return dataBuffer_.getShort(columnDataPosition_[column - 1]) != 0;\n else\n return dataBuffer_.getShortLE(columnDataPosition_[column - 1]) != 0;\n// if ( SignedBinary.getByte( dataBuffer_, columnDataPosition_[column - 1] ) == 0 )\n// { return false; }\n// else { return true; }\n }", "org.apache.xmlbeans.XmlBoolean xgetIsManaged();", "public Boolean getBoolean(String attr) {\n return (Boolean) super.get(attr);\n }", "public Boolean getBooleanAttribute();", "public boolean effectiveBooleanValue(XPathContext context) throws XPathException {\n ItemType type = argument[0].getItemType(context.getConfiguration().getTypeHierarchy());\n if (type == AnyItemType.getInstance()) {\n return super.effectiveBooleanValue(context);\n } else {\n return argument[0].effectiveBooleanValue(context);\n }\n }", "boolean readBoolean();", "public boolean isRequiresTaxCertificate() \n{\nObject oo = get_Value(COLUMNNAME_RequiresTaxCertificate);\nif (oo != null) \n{\n if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();\n return \"Y\".equals(oo);\n}\nreturn false;\n}", "public boolean hasBoolValue() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "boolean booleanOf();", "com.google.protobuf.BoolValue getPersistent();", "public static final boolean getBoolean(String key) {\n\t\tString token = getString(key);\n\t\tif (token == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (token.equalsIgnoreCase(\"true\")) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean getBoolean(String name)\r\n {\r\n if( \"true\".equals(getString(name)) )\r\n return true;\r\n else\r\n return false;\r\n }", "public static boolean tokenToBool(Token i) {\n return Boolean.valueOf(i.image);\n }", "public boolean getStatusAsBoolean() {\n return isQuarantined;\n }", "public boolean hasBoolValue() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean getBoolean(int index) throws ArrayIndexOutOfBoundsException\n\t{\n\t\treturn bytes[index] > 0;\n\t}", "public Boolean getBoolean(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.BOOLEAN)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Boolean.class);\n\t\treturn (Boolean)value.value;\n\t}", "public boolean booleanValue() {\n if (originalValue instanceof Boolean) {\n return (Boolean) originalValue;\n } else if (originalValue instanceof Number) {\n return ((Number) originalValue).intValue() != 0;\n } else {\n throw new CellValueCastException();\n }\n }", "public boolean getBoolean(String key) {\n boolean value = false;\n try {\n value = mConfigurations.getBoolean(key);\n } catch (JSONException e) {\n sLogger.error(\"Error retrieving boolean from JSONObject; trying as 1/0 int\");\n return getInt(key) == 1;\n }\n return value;\n }", "boolean isValidBoolean(boolean value);", "public static boolean isTrue(Object o) {\n if(o instanceof SBoolean)\n return ((SBoolean)o).getValue();\n else\n return true;\n }", "public boolean booleanValue(Map<Prop, Object> map) {\n assert type == Boolean.class;\n Object o = map.get(this);\n return this.<Boolean>typeValue(o);\n }", "HasValue<Boolean> getIsActive();", "public final void mT__96() throws RecognitionException {\n try {\n int _type = T__96;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalIotLuaXtext.g:96:7: ( 'boolean' )\n // InternalIotLuaXtext.g:96:9: 'boolean'\n {\n match(\"boolean\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public boolean bool(String key) throws AgentBuilderRuntimeException {\n\t\treturn getBoolean(key).booleanValue();\n\t}", "@Nullable\r\n public Boolean getBoolean(String key) {\r\n return getTyped(key, Boolean.class, null);\r\n }", "public Value restrictToBool() {\n checkNotPolymorphicOrUnknown();\n if (isMaybeAnyBool())\n return theBoolAny;\n else if (isMaybeTrueButNotFalse())\n return theBoolTrue;\n else if (isMaybeFalseButNotTrue())\n return theBoolFalse;\n else\n return theNone;\n }", "public boolean getBoolean(String key) {\n\t\tif (internal.getProperty(key) != null)\n\t\t\treturn internal.getProperty(key).equals(\"true\");\n\t\telse if (getDefault(key) != null)\n\t\t\treturn (Boolean) getDefault(key);\n\t\telse\n\t\t\treturn false;\n\t}", "public static boolean is_boolean(String s) {\n\t return (s.equalsIgnoreCase(\"true\") || s.equalsIgnoreCase(\"T\") || s.equalsIgnoreCase(\"false\") || s.equalsIgnoreCase(\"F\"));\n }", "boolean isItemDisabled( final Object item );", "@Override\n\tpublic boolean isContained(Object o) {\n\t\tif(o instanceof String){\n\t\t\tif( ((String)o).compareTo(\"null\")==0)\n\t\t\t\to = false;\n\t\t\telse\n\t\t\t\ttry {\n\t\t\t\t\to = Boolean.parseBoolean((String)o);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new IllegalArgumentException(\"Boolean expected, found '\"+o.getClass().getName()+\"'.\");\n\t\t\t\t}\n\t\t}\n\t\tif(o instanceof Boolean){\n\t\t\tBoolean os = ((Boolean)o);\n\t\t\treturn os.booleanValue() == boolValue;\n\t\t} else \n\t\t\tthrow new IllegalArgumentException(\"Boolean expected, found '\"+o.getClass().getName()+\"'.\");\n\t}", "public abstract boolean getEffectiveBooleanValue();", "public boolean containsLiteralBoolean(Boolean literalData);", "public static boolean getBoolean(String key) throws UnknownID, ArgumentNotValid {\n\t\tArgumentNotValid.checkNotNullOrEmpty(key, \"String key\");\n\t\tString value = get(key);\n\t\treturn Boolean.parseBoolean(value);\n\t}", "public boolean getBoolean(){\r\n try{return kd.getJSONObject(ug).getBoolean(udn);}\r\n catch(JSONException e){return false;}\r\n }", "public Boolean getBoolean(String key) throws JsonException {\r\n\t\tObject object = get(key);\r\n\t\tBoolean result = PrimitiveDataTypeConvertor.toBoolean(object);\r\n\t\tif (result == null) {\r\n\t\t\tthrow PrimitiveDataTypeConvertor.exceptionType(key, object, \"boolean\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public Boolean booleanValue() {\n\t\tif (this.getLiteralValue() instanceof Boolean) {\n\t\t\treturn (Boolean) this.getLiteralValue();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public boolean getBoolean(String key) {\r\n try {\r\n String string = getString(key);\r\n return string.equalsIgnoreCase(\"true\") || string.equals(\"1\");\r\n }\r\n catch (MissingResourceException e) {\r\n return false;\r\n }\r\n }", "public static boolean isBool(String token) {\n return ( BooleanValues.contains( \" \" + token + \" \" ) );\n }", "public boolean isChecked()\n\t{\n\t\treturn checked;\n\t}", "public static boolean isItemChecked(String item){\n\t\tint itemPosition=getItemPosition(item);\n\t\treturn itemList.get(itemPosition).getCheckmark();\n\t}", "public final void mT__26() throws RecognitionException {\n try {\n int _type = T__26;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:24:7: ( 'bool' )\n // InternalDSL.g:24:9: 'bool'\n {\n match(\"bool\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public boolean getBoolean(String key)\n {\n return getBoolean(key, false);\n }", "public final void mT__83() throws RecognitionException {\n try {\n int _type = T__83;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalIotLuaXtext.g:83:7: ( 'bool' )\n // InternalIotLuaXtext.g:83:9: 'bool'\n {\n match(\"bool\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public boolean item(int i) {\n\t\treturn x[i] == 1;\n\t}", "@Test\n public void booleanInvalidType() throws Exception {\n String retVal = new SynapseHelper().serializeToSynapseType(MOCK_TEMP_DIR, TEST_PROJECT_ID, TEST_RECORD_ID,\n TEST_FIELD_NAME, UploadFieldTypes.BOOLEAN, new TextNode(\"true\"));\n assertNull(retVal);\n }", "@Test\n\tpublic void test_TCM__boolean_getBooleanValue() {\n\t\tfinal Attribute attribute = new Attribute(\"test\", \"true\");\n\t\ttry {\n\t\t\tassertTrue(\"incorrect boolean true value\", attribute.getBooleanValue());\n\n attribute.setValue(\"false\");\n\t\t\tassertTrue(\"incorrect boolean false value\", !attribute.getBooleanValue());\n\n attribute.setValue(\"TRUE\");\n\t\t\tassertTrue(\"incorrect boolean TRUE value\", attribute.getBooleanValue());\n\n attribute.setValue(\"FALSE\");\n\t\t\tassertTrue(\"incorrect boolean FALSE value\", !attribute.getBooleanValue());\n\n attribute.setValue(\"On\");\n\t\t\tassertTrue(\"incorrect boolean TRUE value\", attribute.getBooleanValue());\n\n attribute.setValue(\"Yes\");\n\t\t\tassertTrue(\"incorrect boolean TRUE value\", attribute.getBooleanValue());\n\n attribute.setValue(\"1\");\n\t\t\tassertTrue(\"incorrect boolean TRUE value\", attribute.getBooleanValue());\n\n attribute.setValue(\"OfF\");\n\t\t\tassertTrue(\"incorrect boolean FALSE value\", !attribute.getBooleanValue());\n\n attribute.setValue(\"0\");\n\t\t\tassertTrue(\"incorrect boolean FALSE value\", !attribute.getBooleanValue());\n\n attribute.setValue(\"No\");\n\t\t\tassertTrue(\"incorrect boolean FALSE value\", !attribute.getBooleanValue());\n\n\t\t} catch (DataConversionException e) {\n\t\t\tfail(\"couldn't convert boolean value\");\n\t\t}\n\n\t\ttry {\n attribute.setValue(\"foo\");\n\t\t\tassertTrue(\"incorrectly returned boolean from non boolean value\", attribute.getBooleanValue());\n\n\t\t} catch (DataConversionException e) {\n\t\t\t// good\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Expected DataConversionException, but got \" + e.getClass().getName());\n\t\t}\n\n\n\t}", "public final void mT38() throws RecognitionException {\n try {\n int _type = T38;\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:36:5: ( 'bool' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:36:7: 'bool'\n {\n match(\"bool\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }" ]
[ "0.7360047", "0.68518907", "0.6550816", "0.65283895", "0.65217024", "0.6483737", "0.6483737", "0.64388967", "0.641353", "0.6296241", "0.62938535", "0.6241366", "0.62137985", "0.6151795", "0.61437875", "0.613942", "0.613942", "0.60685456", "0.6066251", "0.60610175", "0.60600245", "0.6059334", "0.6054361", "0.60429126", "0.60186374", "0.6013191", "0.5979848", "0.59784794", "0.5974213", "0.5958689", "0.5939024", "0.592393", "0.591269", "0.59008896", "0.5895399", "0.5864047", "0.5864047", "0.5864047", "0.5864047", "0.586354", "0.5860322", "0.585515", "0.5850514", "0.58359", "0.5805238", "0.580319", "0.580319", "0.5793539", "0.57893056", "0.5786639", "0.5765565", "0.57256925", "0.57191426", "0.57034147", "0.5701274", "0.5698525", "0.5687596", "0.568598", "0.56765556", "0.56439835", "0.5638049", "0.56294936", "0.56281734", "0.5626099", "0.5624513", "0.5614271", "0.5601675", "0.56013227", "0.56003165", "0.5594588", "0.5587882", "0.5580871", "0.5578644", "0.55559963", "0.55535704", "0.5545591", "0.5539562", "0.5519023", "0.5515553", "0.5514081", "0.55105793", "0.5509994", "0.55063087", "0.55061436", "0.5504356", "0.5504339", "0.5495869", "0.54924047", "0.5486716", "0.5476857", "0.5475008", "0.54707634", "0.546367", "0.54617834", "0.54525316", "0.54386234", "0.54287857", "0.5427032", "0.5424995", "0.54225945" ]
0.6343916
9
Tests whether the item is the null item.
public boolean isNull() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasItem() {\n return null != item;\n }", "public boolean hasItem() {\n return this.item != null;\n }", "public boolean isNull() {\n return this.data == null;\n }", "public boolean checkListNull() {\n\t\treturn ((drawerItems == null) ? true : false);\n\t}", "public boolean containsNoItems() {\n\t\treturn (this.items.size() == 0);\n\t}", "@Override\n public boolean isMaybeNull() {\n checkNotPolymorphicOrUnknown();\n return (flags & NULL) != 0;\n }", "private Item checkItemNotNull(Item item) throws NullPointerException {\n if (item == null) {\n throw new NullPointerException(\"The item must not be null\");\n }\n return item;\n }", "public boolean hasItem() {\n return (this.curItem != null);\n }", "public static boolean isNull()\r\n {\r\n return (page == null);\r\n }", "public boolean isNull() {\n\t\treturn false;\n\t}", "public boolean isNull(int index) {\n\t\treturn JSONNull.NULL.equals(this.getObj(index));\n\t}", "public boolean isNull() {\n return channel instanceof NullChannel;\n }", "public boolean isNull(){\n return false;\n }", "public boolean isEmpty() {\n\t\treturn (_items.size() == 0);\n\t}", "public final boolean isNull()\n\t{\n\t\treturn (dataValue == null) && (stream == null) && (_blobValue == null);\n\t}", "public Boolean isNull(){\n\t\treturn equals(NULL);\n\t}", "public boolean isNull() {\n return originalValue == null;\n }", "boolean isNull();", "public boolean isNull() {\r\n\t\treturn target == null;\r\n\t}", "public static boolean isNull() {\r\n\t\tif(instance==null)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "@Override\n\tprotected boolean itemExists() {\n\t\treturn false;\n\t}", "public boolean isEmpty()\r\n\t{\r\n\t\treturn numItems == 0 ;\r\n\t}", "public boolean isEmpty() {\n\t\treturn allItems.size() == 0;\n\t}", "static public boolean isNull(Object value) {\r\n\t\treturn value == null || value instanceof JSNull;\r\n\t}", "public boolean isNull()\n\t{\n\t\treturn cp.isNull();\n\t}", "public boolean isEmpty(ItemStack itemStack) {\n return getBiome(itemStack) == null;\n }", "@Override\n public boolean isNull(){\n return (this.nativeHandle == 0L); \n }", "private boolean isNull(Object anObject) {\n\t\tif(anObject == null) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isEmpty() {\n // TODO: implement this method\n return nil.next().value() == null;\n }", "public boolean isEmpty(){\n return(numItems == 0);\n }", "@Override\n public boolean isEmpty(){\n return itemCount == 0;\n }", "public boolean isEmpty() {\r\n return NumItems == 0;\r\n }", "public boolean hasNullSig() {\n for (Mounted mEquip : getMisc()) {\n MiscType mtype = (MiscType) mEquip.getType();\n if (mtype.hasFlag(MiscType.F_NULLSIG)) {\n // The Mek has Null-Sig\n return true;\n }\n }\n return false;\n }", "public boolean isItemNotSoluble(Item item) {\n return !isItemSoluble(item);\n }", "public boolean isEmpty() {\r\n return items.isEmpty();\r\n }", "public boolean canProcessNull() {\n return false;\n }", "public boolean isEmpty() {\n return items.isEmpty();\n }", "public boolean isEmpty() {\n return items.isEmpty();\n }", "public boolean isEmpty(){\n return thing == null;\n }", "public boolean isEmpty()\n {return data == null;}", "public TestCase isNull( Object obj );", "boolean isNilValue();", "public boolean isEmpty(){\n return itemCount == 0;\n }", "public static boolean isNull(Object o) {\r\n\t\treturn o == null;\r\n\t}", "public boolean isEmpty() {\n\n\t\tif (numItems == 0)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\n\t}", "public boolean isSetIs_null() {\n return this.is_null != null;\n }", "private boolean checkEmpty() {\n\t\treturn this.array[0] == null;\n\t}", "@Test\n\tpublic void equalsNullItemType() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey1.setId(LONG_ZERO);\n\t\tboolean equals = key1.equals(key2);\n\t\tAssert.assertFalse(equals);\n\t}", "private void assertStreamItemViewHasNoTag() {\n Object tag = mView.getTag();\n assertNull(\"should not have a tag\", tag);\n }", "public boolean isNull() {\n return Stream.<Object>of(airQualityIndex, humidity,\n measurementTime, pm1, pm25, pm10, pollutionLevel,\n pressure, temperature)\n .allMatch(Objects::isNull);\n }", "public boolean isNullInstance()\n {\n return code == null;\n }", "public boolean isEmpty(){\n return (numItems==0);\n }", "public boolean isEmpty() {\n\t\t\n\t\treturn top == null;\n\t}", "public boolean isEmpty() {\n\t\treturn Arrays.stream(inventory.getContents())\n\t\t\t\t.noneMatch(ItemStackUtils::isValid);\n\t}", "public synchronized boolean isEmpty(){\n boolean isEmpty = true;\n for(ShoppingCartItem item : getItems()){\n if(item!=null)\n isEmpty=false;\n }\n return isEmpty;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn firstNode.equals(null);\n\t}", "public boolean isEmpty()\n\t{\n\t\treturn top == null;\n\t}", "public boolean isNullOrUndef() {\n checkNotPolymorphicOrUnknown();\n return (flags & (NULL | UNDEF)) != 0\n && (flags & (NUM | STR | BOOL)) == 0 && num == null && str == null && object_labels == null && getters == null && setters == null;\n }", "public boolean canBeNullObject() { // for future, nobody calls when first\n return _canBeNullObject;\n }", "public boolean empty() {\r\n\r\n\t\tif(item_count>0)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "public boolean isEmpty() {\n \tif (numItems==0) {\n \t\treturn true;\n \t}\n \treturn false;\n }", "private boolean isBuildingNumberNull() {\n return (buildingNumber == null || buildingNumber.isEmpty());\n }", "@Override\r\n\tpublic boolean isEmtpy() {\r\n\t\tif (this.front == -1) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean checkNull();", "public boolean isEmpty(int place) {\n T item = a[place];\n return item == null;\n }", "public /*@ pure @*/ boolean isEmpty() {\n return the_list == null;\n }", "public boolean isNotNullTid() {\n return genClient.cacheValueIsNotNull(CacheKey.tid);\n }", "public boolean isSetItems() {\n return this.items != null;\n }", "default boolean isNil(final SObjectWithoutFields obj) {\n return obj == Nil.nilObject;\n }", "public boolean isNilZyhtVO()\n {\n synchronized (monitor())\n {\n check_orphaned();\n nc.vo.crd.bd.interf.zyhtvo.ZyhtVO target = null;\n target = (nc.vo.crd.bd.interf.zyhtvo.ZyhtVO)get_store().find_element_user(ZYHTVO$0, 0);\n if (target == null) return false;\n return target.isNil();\n }\n }", "public boolean isFull() {\n int size = 0;\n for (int i = 0; i < items.length; i++) {\n if (items[i] != null) {\n size++;\n }\n }\n return size == items.length;\n }", "public boolean isEmpty() {\n return top == null;\n }", "public boolean isEmpty() {\n return top == null;\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn top==null;\r\n\t}", "public boolean isNull(int columnIndex) {\n ValueVector vector = table.getVector(columnIndex);\n return vector.isNull(rowNumber);\n }", "public final boolean empty() {\n return data == null;\n }", "boolean isItEmpty(){\n\t\t\tif (this.items.isEmpty() && (this.receptacle.isEmpty() || findSpecialtyContainers())){//if there's nothing in there.\n\t\t\t\tSystem.out.println(\"\\nThere's nothing here to do anything with.\");\n\t\t\t\treturn true;}\n\t\t\treturn false;\n\t\t}", "private static boolean verifyNullObject(LogManager pLogger, UnmodifiableSMG pSmg) {\n SMGValue null_value = null;\n\n // Find a null value in values\n for (SMGValue value : pSmg.getValues()) {\n if (pSmg.getObjectPointedBy(value) == SMGNullObject.INSTANCE) {\n null_value = value;\n break;\n }\n }\n\n // Verify that one value pointing to NULL object is present in values\n if (null_value == null) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: no value pointing to null object\");\n return false;\n }\n\n // Verify that NULL value returned by getNullValue() points to NULL object\n if (pSmg.getObjectPointedBy(SMGZeroValue.INSTANCE) != SMGNullObject.INSTANCE) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: null value not pointing to null object\");\n return false;\n }\n\n // Verify that the value found in values is the one returned by getNullValue()\n if (SMGZeroValue.INSTANCE != null_value) {\n pLogger.log(\n Level.SEVERE,\n \"SMG inconsistent: null value in values set not returned by getNullValue()\");\n return false;\n }\n\n // Verify that NULL object has no value\n SMGEdgeHasValueFilterByObject filter =\n SMGEdgeHasValueFilter.objectFilter(SMGNullObject.INSTANCE);\n\n if (!pSmg.getHVEdges(filter).isEmpty()) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: null object has some value\");\n return false;\n }\n\n // Verify that the NULL object is invalid\n if (pSmg.isObjectValid(SMGNullObject.INSTANCE)) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: null object is not invalid\");\n return false;\n }\n\n // Verify that the size of the NULL object is zero\n if (SMGNullObject.INSTANCE.getSize() != 0) {\n pLogger.log(Level.SEVERE, \"SMG inconsistent: null object does not have zero size\");\n return false;\n }\n\n return true;\n }", "public boolean isEmpty() {\n if (getData() == null) {\n return true;\n }\n else {\n return false;\n }\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn data != null && data.list != null && data.list.isEmpty();\r\n\t}", "@java.lang.Override\n public boolean hasDataItemPayload() {\n return dataItemPayload_ != null;\n }", "public boolean isEmpty() {\n\t\treturn (top == null) ? true : false;\n\t}", "public static boolean inventoryIsEmpty() {\n\t\treturn Inventory.getCount() == 0;\n\t}", "boolean hasFeedItem();", "@Override\r\n protected boolean matchesSafely(View item) {\n ListView list = (ListView) item;\r\n\r\n return (list.getCount() != 0);\r\n }", "public boolean isEmpty() {\n\n return (top == null);\n }", "@SuppressWarnings(\"UnusedDeclaration\")\n public IsNull() {\n super();\n }", "public boolean isEmpty()\r\n {\n return this.top == null;\r\n }", "public boolean isPresent() {\r\n\t\treturn value != null;\r\n\t}", "public boolean isNilPriceEntity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.unitedtote.schema.totelink._2008._06.result.PriceEntity target = null;\n target = (com.unitedtote.schema.totelink._2008._06.result.PriceEntity)get_store().find_element_user(PRICEENTITY$0, 0);\n if (target == null) return false;\n return target.isNil();\n }\n }", "public boolean isNone() {\n if (var == null)\n return (flags & (PRIMITIVE | ABSENT | UNKNOWN)) == 0 && num == null && str == null && object_labels == null && getters == null && setters == null;\n else\n return (flags & (ABSENT | PRESENT_DATA | PRESENT_ACCESSOR)) == 0;\n }", "public boolean isEmpty()\r\n\t{\r\n\t\treturn data.size() == 0;\r\n\t}", "public boolean isEmpty() {\n\t\treturn front == null;\n\t}", "public boolean isEmpty() {\n\t\treturn first == null;\n\t}", "public boolean isEmpty() {\n\t\treturn first == null;\n\t}", "public boolean isEmpty() {\n return this.top == null;\n }", "public boolean isEmpty(){\n return raiz == null;\n }", "public boolean isAny() {\n return m_item.getSchemaComponent().type() == SchemaBase.ANY_TYPE;\n }", "public boolean isEmpty(){\n for(int i = 0; i < arrayList.length; i++) {\n if (arrayList[i] != null)\n return false;\n }\n return true;\n }", "public boolean isEmpty() {\r\n\t\t\r\n\t\treturn topNode == null; // Checks if topNode is null;\r\n\t\t\r\n\t}" ]
[ "0.7488668", "0.7206133", "0.71322864", "0.7079095", "0.7055778", "0.6864117", "0.6805694", "0.68042564", "0.6710838", "0.66737884", "0.66507053", "0.6644508", "0.6639272", "0.66108304", "0.65879905", "0.65693134", "0.65345186", "0.6473219", "0.64641446", "0.63293433", "0.63228154", "0.6307667", "0.62920517", "0.62845796", "0.6283335", "0.6257193", "0.6244403", "0.62343204", "0.6196422", "0.61943954", "0.61884737", "0.61857337", "0.61852616", "0.61819196", "0.6177171", "0.61589485", "0.61577713", "0.61577713", "0.61543554", "0.61474764", "0.61465096", "0.6146083", "0.61361307", "0.6112992", "0.61073786", "0.6103713", "0.60957474", "0.6089533", "0.6088068", "0.6085056", "0.60673904", "0.6065566", "0.60533714", "0.6045359", "0.60416335", "0.60217416", "0.6009807", "0.60094935", "0.5997083", "0.5993333", "0.5985434", "0.5984389", "0.5982685", "0.5965144", "0.5961326", "0.59409595", "0.5936242", "0.5936235", "0.59158874", "0.59080917", "0.5907863", "0.5907498", "0.5907498", "0.5904242", "0.5900047", "0.58975387", "0.58943754", "0.5877758", "0.5874117", "0.58707994", "0.5853447", "0.58526766", "0.58481914", "0.5844642", "0.5843818", "0.58417505", "0.5839328", "0.58309025", "0.58240765", "0.5819001", "0.58124566", "0.58071053", "0.5793307", "0.5787031", "0.5787031", "0.5786619", "0.57833034", "0.5781211", "0.5780125", "0.57752734" ]
0.66990745
9
Tests whether the item is an atomic item of type integer.
public boolean isInteger() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isInt() {\n return this.data instanceof Integer;\n }", "public boolean isInteger();", "boolean hasIntValue();", "public static boolean integerType(FileInputStream f){\n if(observer != null){\n observer.parser.setCurrentRule(\"integerType\", true);\n }\n CToken t = new CToken();\n\n t = getUsePeek(f);\n \n String[] types = {\"char\",\"short\",\"int\",\"long\"};\n \n //unsigned (optional)\n if(t.token.equals(\"unsigned\")){\n CScanner.needToUsePeekedToken = false; //consumed token\n t = CScanner.getNextToken(f); //get and check next token\n if(observer != null){\n observer.parser.setCurrentToken(t);\n }\n if(!Arrays.asList(types).contains(t.token)){\n System.err.format(\"Syntax Error: In rule IntegerType unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0);\n }\n }\n else if(!Arrays.asList(types).contains(t.token)){\n if(observer != null){\n observer.parser.setCurrentRule(\"integerType\", false);\n }\n return false;\n } // char | short | int | long\n \n CScanner.needToUsePeekedToken = false;\n if(observer != null){\n observer.parser.setCurrentRule(\"integerType\", false);\n }\n return true;\n }", "public boolean hasIntValue() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "boolean hasInt();", "@Override\n\t\t\tpublic boolean test(Integer t) {\n\t\t\t\treturn false;\n\t\t\t}", "public boolean hasIntValue() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public static boolean isInt(Object value) {\n\t\treturn value instanceof BigInteger;\n\t}", "public static boolean isInteger(Symbol symbol) {\n return (symbol != null && isInteger(symbol.getTypeSpecifiers()));\n }", "boolean isInt(TextField input);", "public boolean isInteger() {\n try {\n Integer.parseInt(txt.getText());\n return true;\n } catch (Exception e) {\n return error(\"El valor debe ser un numero entero!\");\n }\n }", "public static boolean IS_INTEGER(String t) {\n\n return (t.equals(Feature.INTEGER));\n }", "public int getIntegerValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an integer.\");\n }", "private boolean isInteger(String element) {\r\n try {\r\n Integer.valueOf(element);\r\n } catch (NumberFormatException e) {\r\n return false;\r\n }\r\n return true;\r\n }", "boolean hasIntSize();", "public boolean isInt(String value) {\n try {\n Integer.parseInt(value);\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "public boolean isIntType(Class<?> type) {\n\t\tif (this.isSimpleField(type)) {\n\t\t\tString typename = type.getName().toLowerCase();\n\t\t\tif (typename.startsWith(\"java.lang\")) {\n\t\t\t\ttypename = typename.substring(10);\n\t\t\t}\n\t\t\treturn (INT_FIELDS.indexOf(typename) >= 0);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public final boolean isIntegral() {\n return this.equals(BYTE)\n || this.equals(CODE)\n || this.equals(SHORT)\n || this.equals(INT)\n || this.equals(LONG)\n || this.equals(UBYTE)\n || this.equals(UINT)\n || this.equals(ULONG)\n || this.equals(USHORT);\n }", "public boolean hasInteger32() {\n return result.hasInteger32();\n }", "private boolean check_int_only(Question q)\n\t{\n\t\tNode val = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='num_value_int_only']/value\");\n\t\treturn val.getText().equals(\"1\") ? true : false;\n\t}", "static boolean isInteger(char c) {\n\t\t\tswitch (c) {\n\t\t\t\tcase DECIMAL_INTEGER:\n\t\t\t\tcase OCTAL_INTEGER:\n\t\t\t\tcase HEXADECIMAL_INTEGER:\n\t\t\t\tcase HEXADECIMAL_INTEGER_UPPER:\n\t\t\t\t\treturn true;\n\t\t\t\tdefault:\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public boolean hasIntData() {\n return result.hasIntData();\n }", "public boolean isInteger(String x){\n try{\n Integer.parseInt(x);\n \n }\n catch(NumberFormatException e){\n return false;\n }\n return true;\n }", "public boolean isItem(int itemId) {\n return getKey().equals(itemId);\n }", "public boolean isAnInt(String str) {\r\n \ttry {\r\n \t\tInteger.parseInt(str);\r\n \t} catch (NumberFormatException e) {\r\n \t\treturn false;\r\n \t}\r\n \treturn true;\r\n }", "private boolean isInt(String num) {\n boolean isInt;\n try {\n Integer.parseInt(num);\n isInt = true;\n } catch (Exception e) {\n isInt = false;\n }\n return isInt;\n }", "public boolean item(int i) {\n\t\treturn x[i] == 1;\n\t}", "public boolean isInt(String text)\r\n {\r\n try\r\n {\r\n int ans = Integer.parseInt(text);\r\n return true;\r\n }\r\n catch(NumberFormatException e)\r\n {\r\n return false;\r\n }\r\n }", "private boolean isInt (String s) {\n\t\ttry {\n\t\t\tif(Integer.parseInt(s) < 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tcatch(NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "public boolean hasIntSize() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public static boolean isInt(String check) {\n\t\treturn check.matches(\"\\\\d+\");\n\t}", "public boolean hasIntSize() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isAnInt(char charac) {\r\n \treturn isAnInt(Character.toString(charac));\r\n }", "public static boolean isInteger(String value) {\n\t\ttry {\n\t\t\tInteger.parseInt(value);\n\t\t}\n\t\t \n\t\tcatch(NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public static boolean isInt(String val) {\n\t\ttry {\n\t\t\tInteger.parseInt(val);\n\t\t\treturn true;\n\t\t} catch (Exception e) { return false; }\n\t}", "public static boolean isInt(String val){\n\t try\n\t {\n\t Integer.parseInt(val);\n\t return true;\n\t } catch (NumberFormatException ex)\n\t {\n\t \tSystem.out.println(\"Please enter integer\");\n\t return false;\n\t }\n\t \n\t}", "boolean hasI10();", "public static boolean is_int(String s) {\n try {\n Integer.parseInt(s);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "@Override\n\t\t\tpublic boolean test(Integer t) {\n\t\t\t\tint tmp = t;\n\t\t\t\tif (tmp % 2 == 0) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "public boolean isInteger(String input){\r\n try{\r\n Integer.parseInt(input);\r\n } catch (NumberFormatException e){\r\n return false;\r\n } catch (NullPointerException e){\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean isKnownPrimitive() {\r\n return id > 0 && type != null;\r\n }", "public static boolean isINT(final String token) {\n\t\t// Check for empty or 1-size strings.\n\t\tif (token.length() < 2)\n\t\t\treturn false;\n\n\t\t// verify all chars are 0-9.\n\t\tfor (int i = 0; i < token.length(); i++) {\n\t\t\tif (!digits.contains(Character.toString(token.charAt(i)))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Passes all tests!\n\t\treturn true;\n\t}", "boolean isNumericPubmed(String id){\n\t\t \n\t\t try{\n\t\t\t Integer.parseInt(id);\n\t\t }catch (Exception e){\n\t\t\t return false;\n\t\t }\n\t\t return true;\n\t }", "public static boolean isASN1_Integer(Object supposedInteger) {\n\t\t//null is no Integer\n\t\tif(supposedInteger == null) {\n\t\t\treturn false;\n\t\t}\n\t\t//Integer, Long, and BigInteger are considered Integers\n\t\tif(supposedInteger instanceof Integer) {\n\t\t\treturn true;\n\t\t}\n\t\telse if(supposedInteger instanceof Long) {\n\t\t\treturn true;\n\t\t}\n\t\telse if(supposedInteger instanceof BigInteger) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static boolean isInt(char c) {\n\t\tif(c >= '0' && c <= '9') return true;\n\t\treturn false;\n\t}", "public static boolean isInteger(String s) {\n\t try { \n\t Integer.parseInt(s); \n\t } catch(NumberFormatException e) { \n\t return false; \n\t }\n\t return true;\n\t}", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default int asInt() {\n \n return notSupportedCast(BasicTypeID.INT);\n }", "public int getItemIntValue(){\n return itemIntValue;\n }", "public static boolean isInteger(String s) {\n\t return isInteger(s,10);\n\t}", "private static boolean isInteger(String s) {\r\n try {\r\n Integer.parseInt(s);\r\n return true;\r\n } catch (Exception ex) {\r\n return false;\r\n }\r\n }", "public static boolean isInt(String pram)\r\n {\r\n try{\r\n Integer.parseInt(pram);\r\n return true;\r\n }catch(NumberFormatException e){\r\n return false;\r\n }\r\n }", "public static boolean ItemType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ItemType\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, ITEM_TYPE, \"<item type>\");\n r = KindTest(b, l + 1);\n if (!r) r = GeneralItemType(b, l + 1);\n if (!r) r = FunctionTest(b, l + 1);\n if (!r) r = MapTest(b, l + 1);\n if (!r) r = ArrayTest(b, l + 1);\n if (!r) r = AtomicOrUnionType(b, l + 1);\n if (!r) r = ParenthesizedItemType(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public boolean hasInteger64() {\n return result.hasInteger64();\n }", "public static boolean isInteger(String s) {\n\t\ttry { \n\t\t\tInteger.parseInt(s); \n\t\t} catch(NumberFormatException e) { \n\t\t\treturn false; \n\t\t} catch(NullPointerException e) {\n\t\t\treturn false;\n\t\t}\n\t\t// only got here if we didn't return false\n\t\treturn true;\n\t}", "public static boolean isInteger(String s) {\n\t\ttry {\n\t\t\tInteger.parseInt(s);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean isInteger(String input) {\n try {\n Integer.parseInt(input);\n return true;\n } catch (Exception e) {\n return false;\n }\n\n }", "private int isInteger(String s) {\r\n\t\t\tint retInt;\r\n\t\t try { \r\n\t\t \tretInt = Integer.parseInt(s); \r\n\t\t } catch(NumberFormatException e) { \r\n\t\t return -1; \r\n\t\t } catch(NullPointerException e) {\r\n\t\t return -1;\r\n\t\t }\r\n\t\t // only got here if we didn't return false\r\n\t\t return retInt;\r\n\t\t}", "private boolean isInteger(String a) {\n try \n {\n Integer.parseInt(a);\n return true;\n }\n catch(Exception e) {\n return false;\n }\n }", "public static boolean isInteger(String s) {\n\t try { Integer.parseInt(s); }\n\t catch(NumberFormatException e) { return false; }\n\t catch(NullPointerException e) { return false; }\n\t // only gets here if the entered String is Integer:\n\t return true;\n\t}", "private boolean isInt(String str) { \n\t try { \n\t int d = Integer.parseInt(str); \n\t } catch(NumberFormatException nfe) { \n\t return false; \n\t } \n\t return true; \n\t}", "private boolean isStringAnInt(String s) {\n // false if string is null\n if (s == null) {\n return false;\n }\n // if scanner get parse string for int then return true\n try {\n Scanner sc = new Scanner(s);\n int num = sc.nextInt();\n }\n // return false if it throws an exception\n catch (Exception e) {\n return false;\n }\n return true;\n }", "public static Boolean Int(String arg){\n\t\tif(arg == arg.replaceAll(\"\\\\D\",\"\")){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean cannonHasItem(Block b, int id, int num) {\n\t\tDispenser dispenser = (Dispenser) b.getState();\n\t\tif (dispenser.getInventory() != null) {\n\t\t\tfor (ItemStack item : dispenser.getInventory().getContents()) {\n\t\t\t\tif (item != null && item.getTypeId() == id)\n\t\t\t\t\tif (item.getAmount() >= num)\n\t\t\t\t\t\tnum = 0;\n\t\t\t\t\telse\n\t\t\t\t\t\tnum = num - item.getAmount();\n\t\t\t\tif (num <= 0)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static boolean isInteger(String s) {\n return isInteger(s,10);\n }", "@Override\n\tpublic Type getType() {\n\t\treturn Type.INT_TYPE;\n\t}", "private static boolean isPositiveInteger(String s){\n\t\ttry{\n\t\t\t//If the token is an integer less than 0 return false\n\t\t\tif(Integer.parseInt(s) < 0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//If an exception occurs return false\n\t\tcatch(NumberFormatException e){\n\t\t\treturn false;\n\t\t}\n\t\t//otherwise return true\n\t\treturn true;\n\t}", "public boolean getAIntegerChanged() {\r\n return !OpbComparisonHelper.isEqual(\r\n aInteger, aIntegerDataSourceValue);\r\n }", "public static boolean isInteger(String s) {\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(s);\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static boolean isInteger(String value) {\n boolean valid = false;\n try {\n Integer.parseInt(value);\n valid = true;\n } catch (RuntimeException exc) {\n // could not parse into int, false will be returned\n }\n return valid;\n }", "public static boolean isNumberType(byte t) {\n switch (t) {\n case INTEGER: return true ;\n case LONG: return true ;\n case FLOAT: return true ;\n case DOUBLE: return true ;\n case BIGINTEGER: return true ;\n case BIGDECIMAL: return true ;\n default: return false ;\n }\n }", "public boolean hasI10() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "public boolean hasI10() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "private boolean checkInt(String str) {\n\t\ttry {\n\t\t\tint integer = Integer.parseInt(str);\n\t\t\tif(integer>=0&&integer<100000){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public abstract boolean isTypeOf(ItemType type);", "public static boolean checkInt(Scanner scan) {\n\n if (scan.hasNextInt()) {//if the input is an integer\n return (true);\n }\n else {\n System.out.print(\"You did not enter an int; try again: \");\n return (false);\n \n }\n\n }", "@Override\n public boolean isMaybeAnyNum() {\n checkNotPolymorphicOrUnknown();\n return (flags & NUM) == NUM;\n }", "public static boolean isInteger(String s) {\n try {\n Integer.parseInt(s);\n } catch(NumberFormatException e) {\n return false;\n } catch(NullPointerException e) {\n return false;\n }\n return true;\n }", "public boolean hasMoneyID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasMoneyID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "private boolean isInteger(String s)\n{\n\t boolean isNumber = true;\n\ttry{\n\t\t\tint n = Integer.parseInt(s);\n\t }catch(NumberFormatException n)\n\t {\n\t\t isNumber = false;\n\t }\n\n\treturn isNumber;\n}", "public static boolean isInteger(String string) {\r\n\t try {\r\n\t Integer.valueOf(string);\r\n\t return true;\r\n\t } catch (NumberFormatException e) {\r\n\t return false;\r\n\t }\r\n\t}", "private boolean isIDCode(SimpleType typeCode) {\n if (typeCode == BuiltInAtomicType.ID) {\n return true;\n }\n if (typeCode instanceof BuiltInAtomicType) {\n return false; // No other built-in type is an ID\n }\n\n if (nonIDs == null) {\n nonIDs = new HashSet<SimpleType>(20);\n }\n if (nonIDs.contains(typeCode)) {\n return false;\n }\n if (typeCode.isAtomicType()) {\n if (getConfiguration().getTypeHierarchy().isSubType((AtomicType) typeCode, BuiltInAtomicType.ID)) {\n return true;\n } else {\n nonIDs.add(typeCode);\n return false;\n }\n } else {\n return false;\n }\n }", "public void testIntValue() {\n AtomicLong ai = new AtomicLong();\n assertEquals(0, ai.intValue());\n for (long x : VALUES) {\n ai.set(x);\n assertEquals((int)x, ai.intValue());\n }\n }", "BigInteger getInteger() {\n\n\t\t\tif (this.type != DerParser.INTEGER) {\n\t\t\t\tthrow new IllegalStateException(String.format(\"Invalid DER: object (%d) is not integer.\", this.type));\n\t\t\t}\n\n\t\t\treturn new BigInteger(this.value);\n\t\t}", "public boolean checkPosIntValues(TextField tempField) { //check if integer is positive\n \tString param = \"Nframes and N_reactions\";\n \treturn Values.checkPosIntValues(param, tempField);\n }", "public boolean equals(Object obj) {\n if (obj instanceof MutableInteger) {\n return m_value == ((MutableInteger) obj).intValue();\n }\n return false;\n }", "public boolean hasMoneyID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasMoneyID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "@SuppressWarnings(\"unchecked\")\n \tpublic static boolean isItemStack(final Object value) {\n \t\treturn getItemStackClass().isAssignableFrom(value.getClass());\n \t}", "public boolean checkUserOrItemID(String iD) {\n // check for empty String\n if (iD == null || iD.strip().equals(\"\")) {\n return false;\n }\n\n if (iD.length() > 6) {\n return false;\n }\n\n try {\n Integer.parseInt(iD);\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "public static boolean isAtomic(byte dataType) {\n return ((dataType == BYTEARRAY) ||\n (dataType == CHARARRAY) ||\n (dataType == BIGCHARARRAY) ||\n (dataType == INTEGER) ||\n (dataType == BIGINTEGER) ||\n (dataType == BIGDECIMAL) ||\n (dataType == LONG) ||\n (dataType == FLOAT) ||\n (dataType == DOUBLE) ||\n (dataType == BOOLEAN) ||\n (dataType == BYTE) ||\n (dataType == DATETIME) ||\n (dataType == GENERIC_WRITABLECOMPARABLE));\n }", "public boolean check(int value);" ]
[ "0.68031615", "0.67575634", "0.63007575", "0.61904436", "0.61319923", "0.61243963", "0.6104415", "0.60812384", "0.6044845", "0.5860967", "0.57471514", "0.57264507", "0.57014275", "0.5701422", "0.5675079", "0.564585", "0.5589113", "0.55737615", "0.5570248", "0.5543335", "0.553321", "0.5514301", "0.5500606", "0.54848385", "0.5466214", "0.54535484", "0.5414893", "0.5387775", "0.5386511", "0.5351026", "0.53427273", "0.53427273", "0.53427273", "0.53427273", "0.53427273", "0.53427273", "0.53427273", "0.53397375", "0.53345364", "0.52914834", "0.52854073", "0.5268082", "0.5256129", "0.52504796", "0.52191746", "0.5217508", "0.521477", "0.5197749", "0.5196995", "0.5175932", "0.51652527", "0.51484877", "0.51359576", "0.51209503", "0.51194775", "0.51066136", "0.5103759", "0.50971717", "0.5095532", "0.5081433", "0.50730985", "0.5062869", "0.5057479", "0.5048365", "0.5038616", "0.50383836", "0.50368446", "0.50279266", "0.5019026", "0.5002202", "0.49989873", "0.49948558", "0.4989176", "0.4985264", "0.49766827", "0.4974485", "0.49665788", "0.4955015", "0.49469405", "0.4933346", "0.49168435", "0.49165383", "0.49159452", "0.49156496", "0.48913997", "0.4876186", "0.4876186", "0.48719448", "0.48718318", "0.48619768", "0.4857477", "0.48500925", "0.48500252", "0.4847634", "0.4846596", "0.4846596", "0.48453912", "0.4844346", "0.4841139", "0.48396602" ]
0.61902434
4
Tests whether the item is an atomic item of type double.
public boolean isDouble() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isDouble();", "public boolean isDouble() {\n return this.data instanceof Double;\n }", "boolean hasDouble();", "public double getDoubleValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a double.\");\n }", "public boolean realAsDouble() {\n return false;\n }", "private static boolean checkIfIsDouble(String num) {\n try {\n Double.parseDouble(num);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "public boolean isSetInner_double() {\n return EncodingUtils.testBit(__isset_bitfield, __INNER_DOUBLE_ISSET_ID);\n }", "public abstract boolean containsInstance(double value);", "public static double isDouble() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\treturn input.nextDouble();\n\t\t\t} catch (InputMismatchException e) {\n\t\t\t\tinput.next();\n\t\t\t\tSystem.out.println(\"Vas unos nije odgovarajuci. Probajte ponovo: \");\n\t\t\t}\n\t\t}\n\t}", "private void validate(Adouble val) {\r\n Assertions.assertEquals(val.aonType(), Atype.DOUBLE);\r\n Assertions.assertEquals(val, val);\r\n Assertions.assertEquals(val, Adouble.valueOf(val.toDouble()));\r\n Assertions.assertEquals(val.hashCode(), Adouble.valueOf(val.toDouble()).hashCode());\r\n Assertions.assertTrue(val.isNumber());\r\n }", "public void testDoubleValue() {\n AtomicLong ai = new AtomicLong();\n assertEquals(0.0d, ai.doubleValue());\n for (long x : VALUES) {\n ai.set(x);\n assertEquals((double)x, ai.doubleValue());\n }\n }", "@Test\n\tpublic void test_TCM__double_getDoubleValue() {\n\t\tAttribute attr = new Attribute(\"test\", \"11111111111111\");\n\t\ttry {\n\t\t\tassertTrue(\"incorrect double value\", attr.getDoubleValue() == 11111111111111d );\n\n\t\t\tattr.setValue(\"0\");\n\t\t\tassertTrue(\"incorrect double value\", attr.getDoubleValue() == 0 );\n\n\t\t\tattr.setValue(Double.toString(java.lang.Double.MAX_VALUE));\n\t\t\tassertTrue(\"incorrect double value\", attr.getDoubleValue() == java.lang.Double.MAX_VALUE);\n\n\t\t\tattr.setValue(Double.toString(java.lang.Double.MIN_VALUE));\n\t\t\tassertTrue(\"incorrect double value\", attr.getDoubleValue() == java.lang.Double.MIN_VALUE);\n\n\t\t} catch (DataConversionException e) {\n\t\t\tfail(\"couldn't convert boolean value\");\n\t\t}\n\n\t\ttry {\n\t\t\tattr.setValue(\"foo\");\n\t\t\tfail(\"incorrectly returned double from non double value\" + attr.getDoubleValue());\n\n\t\t} catch (DataConversionException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n\t\t}\n\n\t}", "private static boolean isDouble(String input) {\n\t\ttry {\n\t\t\tDouble.parseDouble(input);\n\t\t\treturn true;\n\t\t} catch (Exception ex) {}\n\t\treturn false;\n\t}", "public boolean hasDoublePrecision() {\n return result.hasDoublePrecision();\n }", "public void testContainsdoubledouble() {\r\n\t\tCircleArc2D arc = new CircleArc2D(new Point2D(0, 0), 10, 0, PI/2);\r\n\t\tassertTrue(!arc.contains(0, 0));\r\n\t\tassertTrue(arc.contains(10, 0));\r\n\t\tassertTrue(arc.contains(0, 10));\r\n\t}", "public static void isValid(double dbl) throws IllegalArgumentException {\n\t//nothing to do here\n }", "double getDouble(String key) throws KeyValueStoreException;", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default double asDouble() {\n \n return notSupportedCast(BasicTypeID.DOUBLE);\n }", "public void dataNotDouble() {\n MarketDataBundle marketDataBundle = new MapMarketDataBundle(\n new MarketDataEnvironmentBuilder()\n .add(SecurityId.of(SEC1.getExternalIdBundle()), \"not a double\")\n .add(SecurityId.of(SEC2.getExternalIdBundle()), 2.0)\n .valuationTime(ZonedDateTime.now())\n .build());\n MarketDataShock shock = MarketDataShock.relativeShift(0.5, MATCHER1);\n FilteredScenarioDefinition scenarioDef = new FilteredScenarioDefinition(shock);\n SimpleEnvironment env = new SimpleEnvironment(ZonedDateTime.now(), marketDataBundle, scenarioDef);\n\n assertFalse(FN.foo(env, SEC1).isSuccess());\n assertEquals(2d, FN.foo(env, SEC2).getValue(), DELTA);\n }", "public static boolean checkIfNumeric(Object toBeChecked)\r\n\t{\r\n\t\ttry {\r\n\t\t\tDouble.parseDouble((String) toBeChecked);\r\n\t\t\treturn true;\r\n\t\t} catch (ClassCastException e) {\r\n\t\t\treturn true;\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public Double getAsDouble(String itemName, Double defaultValue);", "@Test\n public void test_column_type_detection_double() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"12.3e4\", XSDDatatype.XSDdouble), true, Types.DOUBLE, Double.class.getCanonicalName());\n Assert.assertEquals(16, info.getScale());\n Assert.assertEquals(16, info.getPrecision());\n Assert.assertTrue(info.isSigned());\n }", "private boolean isDouble(String str)\r\n {\r\n try\r\n {\r\n double i = Double.parseDouble(str);\r\n } catch (NumberFormatException nfe)\r\n {\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"Non numeric value. Value was: {0}\", str);\r\n return false;\r\n }\r\n return true;\r\n }", "public static void testOfDoubleNumberIsInteger(){\n\t\tSystem.out.println(\"please enter a double number: \");\n\t\tScanner scann=new Scanner(System.in);\n\t\tdouble x=scann.nextDouble();\n\t\tif(x%1==0)\n\t\t\tSystem.out.println(\"The number you have enterd it's not a double \");\n\t\telse\n\t\t\tSystem.out.println(\"The number you have entered it's double\");\n\t}", "public static boolean isNotEmpty(Double dbl)throws Exception {\n\treturn null != dbl && BigDecimal.valueOf(roundAmount(dbl)).compareTo(BigDecimal.ZERO) != 0;\n }", "static boolean isDouble(String str) {\n\t\n\t\ttry {\n\t\t\tDouble.parseDouble(str);\n\t\t} \n\t\tcatch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "private boolean isValidDouble(String text) {\r\n \ttry {\r\n \t\tDouble value = Double.valueOf(text);\r\n \t} catch (NumberFormatException e) {\r\n \t\treturn false;\r\n \t}\r\n \treturn true;\r\n }", "public static boolean is_double(String s) {\n try {\n double v = Double.parseDouble(s);\n return v <= v; // strange, but this filters out NaN's\n } catch (NumberFormatException e) {\n return false;\n }\n }", "public boolean isSetDouble_vals() {\n return this.double_vals != null;\n }", "public static boolean isDouble(String value) {\n\n if (value == null) {\n return false;\n }\n\n boolean valid = false;\n try {\n Double.parseDouble(value);\n valid = true;\n } catch (RuntimeException exc) {\n // could not parse into double, false will be returned\n }\n return valid;\n }", "public static boolean isEmpty(Double dbl)throws Exception {\n\treturn null == dbl || BigDecimal.valueOf(roundAmount(dbl)).compareTo(BigDecimal.ZERO) == 0;\n }", "public double doubleValue() {\n\t\treturn mDouble;\n\t}", "@Test\n public void test_GetDouble() {\n Assert.assertEquals(\"Values werent the same\", 0.98765432123456789D, SecureEnvironment.getDouble(\"test_key_double\"), 0.00000000000000001D);\n }", "Double getDoubleValue();", "public static boolean isDouble(String valor) {\n boolean valido = false;\n if (!valor.endsWith(\".\")) {\n try {\n double cantidad = Double.parseDouble(valor);\n if (cantidad > 0) {\n valido = true;\n }\n } catch (NullPointerException | NumberFormatException e) {\n System.out.println(\"No es un caracter double\");\n }\n }\n\n return valido;\n }", "private boolean isMzDoublePrecision()\r\n\t{\r\n\t\treturn this.mz_double_precision;\r\n\t}", "public abstract double read_double();", "public Double getDoubleAttribute();", "public boolean isNumber(String key)\n {\n return getDouble(key, Double.MAX_VALUE) != Double.MAX_VALUE;\n }", "public static boolean isDouble(String strNum) {\n try {\n double d = Double.parseDouble(strNum);\n } catch (NumberFormatException | NullPointerException nfe) {\n System.out.println(\"Invalid data format\");\n log.error(nfe);\n return false;\n }\n return true;\n }", "public static boolean isDouble(String str) {\n\t\ttry {\n\t\t\tdouble f = Double.parseDouble(str);\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public static boolean doubleEqual(double d1, double d2) {\n if (Double.isNaN(d1) || Double.isNaN(d2)) {\n return false;\n }\n return Math.abs(d1 - d2) < EPSILON;\n }", "public static boolean isNumber(String token) {\n boolean toret = true;\n\n try {\n Double.parseDouble(token);\n }\n catch(Exception e)\n {\n toret = false;\n }\n\n return toret;\n }", "public double getDouble(String key)\n {\n return getDouble(key, 0);\n }", "public boolean activeHandCanDouble() {\n Seat s = this.getSeat(this.seatPlaying);\n if (s.hasPlayer()) {\n Human h = (Human) s.getPlayer();\n Hand hand = h.getHands().get(0);\n \n return h.canDouble() && hand.getCards().size() == 2;\n } else {\n return false;\n }\n }", "@Ignore\n @Test(expected = IllegalArgumentException.class)\n public void require_that_illegal_double_throws_exception() throws IOException {\n Slime slime = new Slime();\n Cursor root = slime.setObject();\n root.setString(\"doubleval\", \"invalid\");\n InnerCNode def = new DefParser(\"simpletypes\", new StringReader(StringUtilities.implode(SimpletypesConfig.CONFIG_DEF_SCHEMA, \"\\n\"))).getTree();\n new ConfigFileFormat(def).encode(new ByteArrayOutputStream(), slime);\n }", "public static double getDouble(Key key) {\n return getDouble(key, 0);\n }", "public static boolean setDoubleValue(String propID, double v)\n {\n return SystemProps.setStringValue(propID, String.valueOf(v));\n }", "@Override\n public Class getValueType() {\n return Double.class;\n }", "private static boolean validNumber(String thing) {\n\t\treturn validDouble(thing);\n\t}", "public static DoubleValue toNumber(AtomicValue arg0) {\n if (arg0 instanceof BooleanValue) {\n return Converter.BooleanToDouble.INSTANCE.convert((BooleanValue)arg0);\n } else if (arg0 instanceof NumericValue) {\n return (DoubleValue) Converter.NumericToDouble.INSTANCE.convert((NumericValue)arg0).asAtomic();\n } else if (arg0 instanceof StringValue && !(arg0 instanceof AnyURIValue)) {\n // Always use the XSD 1.1 rules, which permit \"+INF\"\n ConversionResult cr = StringToDouble11.getInstance().convert((StringValue)arg0);\n if (cr instanceof ValidationFailure) {\n return DoubleValue.NaN;\n } else {\n return (DoubleValue) cr;\n }\n } else {\n return DoubleValue.NaN;\n }\n }", "public double getDouble();", "public static double leerDouble() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public boolean isNumeric() {\n return this.isInteger() || this.isDecimal() || this.isDouble();\n }", "@Override\n\tpublic boolean isSingle() {\n\t\treturn true;\n\t}", "public static double getArrayListDoubleMode(ArrayList<Double> list) {\n\t\treturn 0;\n\t}", "public boolean tryParseDouble(String value)\n {\n try {\n Double.parseDouble(value);\n return true;\n } catch(NumberFormatException e) {\n return false;\n }\n }", "public static boolean isEqual(Double double1, Double double2)throws Exception {\n\treturn (null == double1 && null == double2) || (null != double1 && null != double2\n\t\t&& BigDecimal.valueOf(roundAmount(double1)).compareTo(BigDecimal.valueOf(roundAmount(double2))) == 0);\n }", "public Double\n getDoubleValue() \n {\n return ((Double) getValue());\n }", "public static boolean isDoubleValid (String str) {\r\n try {Double.parseDouble(str);} catch (NumberFormatException e) {return false;}\r\n return true;\r\n }", "public Double getDouble(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Double) extGet(key);\n\t}", "public boolean a(double paramDouble)\r\n/* 28: */ {\r\n/* 29: 44 */ double d1 = aQ().a() * 4.0D;\r\n/* 30: 45 */ d1 *= 64.0D;\r\n/* 31: 46 */ return paramDouble < d1 * d1;\r\n/* 32: */ }", "public double getDouble(String key) {\n\t\treturn Double.parseDouble(get(key));\n\t}", "public double getDouble() {\r\n\t\treturn (value.getDouble());\r\n\t}", "@Test\n public void testGetPropertyAsDouble_shouldReturnDoubleValue() {\n final Config wholeNum = new Config().setId(\"wholeNum\").setValue(\"12345\");\n when(configDao.findById(\"wholeNum\")).thenReturn(Optional.of(wholeNum));\n assertThat(service.getProperty(\"wholeNum\").asDouble()).hasValue(12345d);\n\n // Test with decimals\n final Config decimal = new Config().setId(\"decimal\").setValue(\"983.23315\");\n when(configDao.findById(\"decimal\")).thenReturn(Optional.of(decimal));\n assertThat(service.getProperty(\"decimal\").asDouble()).hasValue(983.23315);\n\n // Test with empty\n assertThat(service.getProperty(\"unknown\").asDouble()).isEmpty();\n\n // Test with blank\n Assertions.assertThatThrownBy(() -> service.getProperty(\"blank\").asDouble())\n .isInstanceOf(NumberFormatException.class);\n\n // Test with invalid characters\n Assertions.assertThatThrownBy(() -> service.getProperty(\"email\").asDouble())\n .isInstanceOf(NumberFormatException.class);\n }", "public Double getDouble(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.DOUBLE)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Double.class);\n\t\treturn (Double)value.value;\n\t}", "public Double getDouble(String attr) {\n return (Double) super.get(attr);\n }", "double getDouble(String key) {\n double value = 0.0;\n try {\n value = mConfigurations.getDouble(key);\n } catch (JSONException e) {\n sLogger.error(\"Error retrieving double from JSONObject. @ \" + key);\n }\n return value;\n }", "public double readDouble() throws IOException {\n int token = fTokenizer.nextToken();\n if (token == StreamTokenizer.TT_NUMBER)\n return fTokenizer.nval;\n\n String msg = \"Double expected in line: \" + fTokenizer.lineno();\n throw new IOException(msg);\n }", "private double getDoubleAttribute(Element element, String attributeName)\n {\n try\n {\n return Double.parseDouble(getAttribute(element,attributeName));\n }\n catch (NumberFormatException exception)\n {\n return 0.0;\n }\n }", "public double getDoubleValue() {\n\t\treturn value;\r\n\t}", "public double doubleValue() {\n return (double) m_value;\n }", "public Double getDouble(String key) throws JsonException {\r\n\t\tObject object = get(key);\r\n\t\tDouble result = PrimitiveDataTypeConvertor.toDouble(object);\r\n\t\tif (result == null) {\r\n\t\t\tthrow PrimitiveDataTypeConvertor.exceptionType(key, object, \"Double\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public double doubleValue() {\n return (double) value;\n }", "private double getDoubleValue(Element element, String tagName)\n {\n try\n {\n return Double.parseDouble(getValue(element,tagName));\n }\n catch (NumberFormatException exception)\n {\n return 0.0;\n }\n }", "public static boolean check(double arg) {\n if (!(Double.isInfinite(arg))) {\n return true;\n } else {\n System.out.println(\"Warring! You have entered a very large number!\");\n return false;\n }\n }", "public\n double getProperty_double(String key)\n {\n if (key == null)\n return 0.0;\n\n String val = getProperty(key);\n\n if (val == null)\n return 0.0;\n\n double ret_double = 0.0;\n try\n {\n Double workdouble = new Double(val);\n ret_double = workdouble.doubleValue();\n }\n catch(NumberFormatException e)\n {\n ret_double = 0.0;\n }\n\n return ret_double;\n }", "public static double getDouble(String key) throws UnknownID, ArgumentNotValid {\n\t\tString value = get(key);\n\t\ttry {\n\t\t\treturn Double.parseDouble(value);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString msg = \"Invalid setting. Value '\" + value + \"' for key '\" + key\n\t\t\t\t\t+ \"' could not be parsed as a double.\";\n\t\t\tthrow new ArgumentNotValid(msg, e);\n\t\t}\n\t}", "double readDouble() throws IOException;", "public static boolean isIntEquivalent( double value ){\n return Math.floor( value ) == value;\n }", "private double getDoubleAttribute(Element element, String tagName, String attributeName)\n {\n try\n {\n return Double.parseDouble(getAttribute(element,tagName,attributeName));\n }\n catch (NumberFormatException exception)\n {\n return 0.0;\n }\n }", "public double doubleValue() {\r\n return (double) intValue();\r\n }", "@Test\n public void testIsValidDouble() {\n System.out.println(\"isValidDouble\");\n String double_number = \"Mary\";\n boolean expResult = false;\n boolean result = ValidVariables.isValidDouble(double_number);\n assertEquals(expResult, result);\n }", "public double getDoubleValue()\n {\n return (double) getValue() / (double) multiplier;\n }", "public boolean isNumber(String stringItem) {\n Float floatItem = (float) 0.0;\n try {\n floatItem = Float.valueOf(stringItem);\n } // try\n catch (NumberFormatException IOError) {\n return false;\n } // catch\n return true;\n }", "private boolean isValidValue(double value) {\r\n\t\treturn (value > 0);\r\n\t}", "public static double getDoubleProperty(String key) {\r\n\t\treturn getDoubleProperty(key, 0);\r\n\t}", "@Override\n\tpublic boolean isSatisfied(double d) {\n\t\treturn false;\n\t}", "public double evaluateAsDouble();", "public double castToDoubleValue() {\n throw new IteratorFlowException(\"Cannot call castToDouble on non numeric\");\n }", "@Test\n public void testDoubleRequiresType() throws IOException {\n ConfigurationParser parser = new ConfigurationParser();\n\n try (InputStream inputStream = Resources.getResource(\"conf/double-requires-type.conf\").openStream()) {\n FlatObject object = parser.parse(\n new InputStreamReader(\n inputStream\n ),\n FlatObject.class\n );\n\n Assert.fail(\"Expected a ConfigurationException for unexpected type 'Float'\");\n } catch (ConfigurationException ex) {\n /*\n * Verify that there is an error when setting a double value to a constant without the type specifier (D or F).\n * The check specifically makes sure that the error is from line 23 of the double-requires-type.conf file.\n * On line 22, the same constant is used but where a float is expected so that should not cause a parse error.\n */\n Assert.assertTrue(\"Unexpected message in ConfigurationException: \" + ex.getMessage(), ex.getMessage().startsWith(\"Unexpected type 'Float' at 23:2\"));\n }\n }", "@Test\r\n public void test() {\r\n Random random = new Random(System.currentTimeMillis());\r\n Adouble val = Adouble.valueOf(10);\r\n validate(val);\r\n validateEqual(val, Adouble.valueOf(val.toDouble()));\r\n Adouble val2 = Adouble.valueOf(random.nextDouble());\r\n validate(val2);\r\n validateEqual(val2, Adouble.valueOf(val2.toDouble()));\r\n validateUnequal(val, val2);\r\n Alist list = new Alist().add(val);\r\n byte[] bytes = Aon.aonBytes(list);\r\n list = Aon.readAon(bytes).toList();\r\n validate(list.get(0));\r\n validateEqual(list.get(0), val);\r\n validateUnequal(list.get(0), val2);\r\n }", "public boolean containsLiteralNumber(Double literalData);", "double getEDouble();", "@Override\r\n\tpublic int compareTo(Double another) {\n\t\treturn 0;\r\n\t}", "double readDouble();", "public boolean isDoubleClick() {\r\n\t\treturn isDoubleClick;\r\n\t}", "public abstract Double toDouble(T t);", "double getDouble(String key, double defaultValue);", "public double doubleValue() {\n return this.value;\n }" ]
[ "0.73529804", "0.72245675", "0.70011604", "0.62728244", "0.6178153", "0.6076733", "0.6018625", "0.6005087", "0.5949894", "0.58861053", "0.5873767", "0.5861864", "0.5838112", "0.5825814", "0.5801579", "0.5776133", "0.5772322", "0.5716282", "0.571291", "0.57110775", "0.57031035", "0.56891125", "0.56152695", "0.55944306", "0.558377", "0.5559286", "0.5505438", "0.549932", "0.5485087", "0.54725444", "0.54214424", "0.54160774", "0.54018974", "0.5366272", "0.5348185", "0.5311993", "0.5303157", "0.5283954", "0.5283702", "0.5282803", "0.5261914", "0.5258376", "0.525697", "0.525059", "0.52496505", "0.5246137", "0.5244533", "0.5225944", "0.52251834", "0.5223533", "0.52190995", "0.5218979", "0.5209182", "0.520906", "0.52038795", "0.51951754", "0.5187892", "0.51728404", "0.51647407", "0.5161882", "0.51448333", "0.5138701", "0.512288", "0.5111417", "0.51111805", "0.5104601", "0.51034695", "0.5102234", "0.5095764", "0.5087937", "0.5085187", "0.50721884", "0.5066011", "0.5042966", "0.5036992", "0.50320774", "0.5031028", "0.5030579", "0.50299513", "0.50254387", "0.5019632", "0.5016284", "0.50101686", "0.5007563", "0.5001526", "0.5000103", "0.49997094", "0.49990374", "0.49934632", "0.498861", "0.49867085", "0.49841377", "0.49840528", "0.49691936", "0.49684253", "0.49569604", "0.4953857", "0.4948685", "0.49251798", "0.49225333" ]
0.6980524
3
Tests whether the item is an atomic item of type decimal.
public boolean isDecimal() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkDecimalCast() {\n boolean allScalar = true;\n // If there is at least one float, then all the children need to be cast to\n // float (instead of decimal).\n boolean noFloats = true;\n boolean atLeastOneDecimal = false;\n for(int i = 0; i < children_.size(); ++i) {\n if (!children_.get(i).getType().isScalarType()) allScalar = false;\n // If at least one child is a float, then we want to cast all the children to float.\n if (children_.get(i).getType().isFloatingPointType()) noFloats = false;\n if (children_.get(i).getType().isDecimal()) atLeastOneDecimal = true;\n }\n\n return allScalar && noFloats && atLeastOneDecimal;\n }", "private boolean decimals() {\r\n return OPT(GO() && decimal() && decimals());\r\n }", "public boolean isDecimalType(Class<?> type) {\n\t\tif (this.isSimpleField(type)) {\n\t\t\tString typename = type.getName().toLowerCase();\n\t\t\tif (typename.startsWith(\"java.lang\") || typename.startsWith(\"java.math\")) {\n\t\t\t\ttypename = typename.substring(10);\n\t\t\t}\n\t\t\treturn (DEC_FIELDS.indexOf(typename) >= 0);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean checkIfObjectIsDecimal(Object[] values)\n\t{\n\t\tfor (Object o : values)\n\t\t{\n\t\t\tif (o != null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tDouble.parseDouble(o.toString());\n\t\t\t\t//\treturn true;\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e)\n\t\t\t\t{\n\t\t\t\t\t// it's text :)\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public Boolean getAllowDecimals() {\r\n return this.allowDecimals = getInstanceOf(Boolean.class, this.allowDecimals);\r\n }", "public boolean isDecimal(String sDecimalString) {\n return true;\n }", "public BigDecimal getDecimalValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a big decimal.\");\n }", "public boolean hasMoney() {\n return ((bitField0_ & 0x00080000) == 0x00080000);\n }", "public boolean hasMoney() {\n return ((bitField0_ & 0x00080000) == 0x00080000);\n }", "boolean hasMoneyValue();", "boolean hasMoneyValue();", "@Test\n public void test_column_type_detection_decimal() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"123.4\", XSDDatatype.XSDdecimal), true, Types.DECIMAL, BigDecimal.class.getCanonicalName());\n Assert.assertEquals(16, info.getScale());\n Assert.assertEquals(16, info.getPrecision());\n Assert.assertTrue(info.isSigned());\n }", "public boolean isNumeric() {\n return this.isInteger() || this.isDecimal() || this.isDouble();\n }", "public static boolean isPositiveDecimal(CharSequence seq) {\n PositiveDecimalCheck pdc = new PositiveDecimalCheck();\n return is(seq, pdc) && pdc.dotCount == 1\n // do not match, e.g. '100.'\n && seq.charAt(seq.length() - 1) != '.';\n\n }", "public boolean hasPrice() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean hasPrice() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public boolean hasPrice() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "@Test\n public void testIsValidDecimal() {\n FieldVerifier service = new FieldVerifier();\n boolean result = service.isValidDecimal(1);\n assertEquals(true, result);\n }", "@Test\n\tpublic void testSingleSetOnlyDecimal()\n\t{\n\t\tcreateSingleValueSet(1.1);\n\t\tKeyedValues actual = DataUtilities.getCumulativePercentages(m_values);\n\t\t\n\t\tassertEquals(\"Cumulative percentage of a single decimal value should be 100%.\",\n\t\t\t\t1.0, actual.getValue(0).doubleValue(), 0.0000001);\n\t}", "public boolean hasPrice() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean hasMoneyValue() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasMoneyValue() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasMoneyValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasAmount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasAmount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasMoneyValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public abstract boolean isNumeric();", "public static boolean isDecimalNumber(String string) {\n\t\ttry {\n\t\t\tDouble.parseDouble(string);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\n\t}", "boolean hasAmount();", "boolean hasAmount();", "Money getItemValue();", "boolean hasTransactionAmountMicros();", "@JSProperty(\"allowDecimals\")\n boolean getAllowDecimals();", "public int getDecimalDigits() { return 1; }", "public int getDecimalDigits() { return 1; }", "public boolean isNumeric() {\n\t\tif (this instanceof Integer) {\n\t\t\treturn true;\n\t\t} else if (this instanceof Array) {\n\t\t\treturn ((Array) this).getElementType().isNumeric();\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean hasExchangeprice() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasExchangeprice() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public static boolean isNumberRatio(Object val) throws BaseException\n {\n \tif(val instanceof Number && (NumberUtil.toDouble(val) >= 0 && NumberUtil.toDouble(val) <= 100))\n \t{\n \t return true;\n \t}\n \treturn false;\n }", "public static boolean checkIfNumeric(Object toBeChecked)\r\n\t{\r\n\t\ttry {\r\n\t\t\tDouble.parseDouble((String) toBeChecked);\r\n\t\t\treturn true;\r\n\t\t} catch (ClassCastException e) {\r\n\t\t\treturn true;\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static boolean BasicDecimalNumberValidation(String text) {\n return BasicDecimalNumberValidation(text, 2);\n }", "boolean hasMoney();", "public boolean countDecimals(String assetValue){\n\n int count = 0;\n for(int i = 0; i < assetValue.length(); i++){\n\n if(assetValue.charAt(i) == '.'){\n count++;\n if(count > 1)\n return false;\n\n }\n\n }\n return true;\n }", "@java.lang.Override\n public boolean hasAmount() {\n return instance.hasAmount();\n }", "@Test\n public void testIsNotValidDecimal2() {\n FieldVerifier service = new FieldVerifier();\n boolean result = service.isValidDecimal(0);\n assertEquals(false, result);\n }", "private boolean isBadDecimal(StratmasDecimal d)\n {\n for (StratmasObject walker = d; walker != null; \n walker = walker.getParent()) {\n if (walker.getType().canSubstitute(\"Shape\")) {\n return true;\n }\n }\n\n return false;\n }", "public BigDecimal castToDecimalValue() {\n throw new IteratorFlowException(\"Cannot call castToDouble on non numeric\");\n }", "public java.math.BigDecimal getITEM_AMOUNT() {\r\n return ITEM_AMOUNT;\r\n }", "private boolean isFieldNumeric( String fsComponent, String fsField )\n {\n try\n {\n VSMetaQuery loVsmq =\n AMSDataObject.constructMetaQueryFromMetaInfoTable( fsComponent, getSession() ) ;\n\n VSMetaColumn loColumn = loVsmq.getMetaColumn( fsField ) ;\n\n /*\n * Versata returns true if the data type is Yes/No\n * In that case we return false\n */\n if ( loColumn.getColumnType() == DataConst.BIT )\n {\n return false ;\n } /* end if ( loColumn.getColumnType() == DataConst.BIT ) */\n else\n {\n return loColumn.isNumberType() ;\n } /* end else */\n } /* end try */\n catch ( Exception loEx )\n {\n return false ;\n } /* end catch */\n }", "private static BigDecimal arrayNodeItemAsDecimal(ArrayNode arrayNode, int index) {\n if (arrayNode == null) {\n return null;\n }\n JsonNode itemNode = arrayNode.get(index);\n if (itemNode == null) {\n return null;\n }\n return new BigDecimal(itemNode.asText());\n }", "public static boolean numbersWithDecimalCheck(String decimalNum)\r\n\t{\r\n\t\treturn decimalNum.matches(\"[0-9]+([,.][0-9]{1,2})?\");\r\n\t}", "public AmountType getItemPrice() {\n\t return this.itemPrice;\n\t}", "public boolean hasMoneyID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasMoneyID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isNumber(String stringItem) {\n Float floatItem = (float) 0.0;\n try {\n floatItem = Float.valueOf(stringItem);\n } // try\n catch (NumberFormatException IOError) {\n return false;\n } // catch\n return true;\n }", "@Test\r\n\tpublic void getTotal_4bc(){\n\t\tcart = new TourShoppingCart(MockRules.getRules());\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\t\r\n\t\tassert cart.total().equals(BigDecimal.valueOf(760.00));\r\n\t\tSystem.out.println(cart.total());\r\n\t}", "@java.lang.Override\n public boolean hasAmount() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "public boolean hasMoneyID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasMoneyID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isNumber(String key)\n {\n return getDouble(key, Double.MAX_VALUE) != Double.MAX_VALUE;\n }", "public boolean hasMoneyID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasBonusMoney() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "private boolean isDecimalEqualToZero(String doubleValue) {\n\t\tif (doubleValue.contains(\"%\")) {\n\t\t\treturn false;\n\t\t}\n\t\tString[] n = doubleValue.split(\"\\\\.\");\n\t\tif(n.length > 1) {\n\t\t\t// get the value to right of decimal point\n\t\t\tint d = Integer.parseInt(n[1]);\n\t\t\treturn d == 0;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "public boolean isNumberValue()\n {\n return getFieldType().equalsIgnoreCase(TYPE_NUMBER);\n }", "public boolean hasMoneyID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasBonusMoney() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public static boolean numeric(Type p) {\n\t\tif (p == Type.Char || p == Type.Int || p == Type.Float) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void testIsNotValidDecimal() {\n FieldVerifier service = new FieldVerifier();\n boolean result = service.isValidDecimal(-1);\n assertEquals(false, result);\n }", "@JSProperty(\"allowDecimals\")\n void setAllowDecimals(boolean value);", "private static BigDecimal nextNodeAsDecimal(Iterator<JsonNode> iterator) {\n if (iterator == null || !iterator.hasNext()) {\n return null;\n }\n return new BigDecimal(iterator.next().textValue());\n }", "private boolean digits() {\r\n return ALT(\r\n GO() && RANGE('1','9') && decimals() || OK() && CHAR('0') && hexes()\r\n );\r\n }", "public Boolean verifyTheValueSubtotalIsInZero() {\n\t\tSystem.out.println(\"Starting to verify if Subtotal is equal to 0.00.\");\n\t\treturn verifyIfSomeStringContainsZeroDotZeroZeroValueInside(getTextByLocator(body_value_subtotal));\n\t}", "public static boolean isIntEquivalent( double value ){\n return Math.floor( value ) == value;\n }", "public static boolean isNumber(String token) {\n boolean toret = true;\n\n try {\n Double.parseDouble(token);\n }\n catch(Exception e)\n {\n toret = false;\n }\n\n return toret;\n }", "private boolean checkCost(int owner, ItemType item) {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public static boolean isNumber(String input) {\n boolean hasDecimal = false;\n for (int i = 0; i < input.length(); i++) {\n char test = input.charAt(i);\n if (test == '-' && i == 0)\n continue; // Allow negative indicator.\n\n if (test == '.') {\n if (!hasDecimal) {\n hasDecimal = true;\n continue;\n } else {\n return false; // Multiple decimal = invalid number.\n }\n }\n\n if (!Character.isDigit(test))\n return false; // Character isn't a digit, so it can't be a number.\n }\n\n return true;\n }", "boolean hasCurrencyConstant();", "boolean hasDouble();", "public boolean hasDoublePrecision() {\n return result.hasDoublePrecision();\n }", "@Test (expected = DataFormatException.class)\n \tpublic void testDelete_InvalidCreditDecimal() throws DataFormatException {\n \t\tSystem.out.println(\"DeleteTest 7: Tests constructor's ability to catch credit amount values in DTFLine that have two or more invalid decimal places...\");\n \t\tString line = \"manager AA 00.10.00.00\";\n \t\tDelete test = new Delete( line);\n \t}", "public int compareTo(double amount) {\n return compareTo(new BigDecimal(amount));\n }", "@Override\n\tpublic boolean isCurrency(int arg0) throws SQLException {\n\t\treturn false;\n\t}", "@Test\n public void testCompareTo() {\n \n BigDecimal magnitude1 = new BigDecimal(\"1.11\");\n BigDecimal magnitude2 = new BigDecimal(\"2.22\");\n BigDecimal magnitude3 = new BigDecimal(\"3.33\");\n \n Currency usd = Currency.getInstance(\"USD\");\n Currency cad = Currency.getInstance(\"CAD\");\n \n Money moneyUsd = new Money(magnitude1, usd, RoundingMode.CEILING);\n Money moneyUsd2 = new Money(magnitude2, usd, RoundingMode.FLOOR);\n Money moneyCad = new Money(magnitude3, cad);\n Money moneyCad2 = new Money(magnitude3, cad);\n\n try {\n moneyUsd.compareTo(moneyCad);\n fail(\"Comparisons between Money objects with different currencies should fail\");\n } catch(CurrencyMismatchRuntimeException cmm) {\n }\n \n assertTrue(\"Less than\", moneyUsd.compareTo(moneyUsd2) < 0);\n assertTrue(\"Greater than\", moneyUsd2.compareTo(moneyUsd) > 0);\n assertTrue(\"Equal\", 0 == moneyCad.compareTo(moneyCad2));\n\n assertTrue(\"Less than 2\", moneyUsd.lessThan(moneyUsd2));\n assertTrue(\"Greater than 2\", moneyUsd2.greaterThan(moneyUsd));\n assertTrue(\"Equal 2\", moneyCad.equals(moneyCad2));\n\n \n }", "public static void main( String[] args ) {\n System.out.println(NumUtil.format4DecimalPoint(1));\n System.out.println(NumUtil.format4DecimalPoint(1.1));\n System.out.println(NumUtil.format4DecimalPoint(1.12));\n System.out.println(NumUtil.format4DecimalPoint(1.123));\n System.out.println(NumUtil.format4DecimalPoint(1.1234));\n System.out.println(NumUtil.format4DecimalPoint(1.12345));\n System.out.println(NumUtil.format4DecimalPoint(1.123456));\n System.out.println(NumUtil.format4DecimalPoint(12.123456));\n \n double a = 0.09d;\n double b = 0.01d;\n double c = 0.1d;\n \n System.out.println( ( a + b ) );\n System.out.println( c - ( a + b ) == 0 );\n \n //Currency Testing\n Locale canadianEnglish = new Locale( \"en\",\"CA\" );\n NumberFormat currencyFormat = NumberFormat.getCurrencyInstance( Locale.CANADA_FRENCH );\n currencyFormat.setCurrency( Currency.getInstance( Locale.CANADA ) );\n currencyFormat.setMinimumFractionDigits( 2 );\n currencyFormat.setMaximumFractionDigits( 4 );\n double amt = -1.21234;\n System.out.println(amt + \" formats as \" + currencyFormat.format( amt ));\n System.out.println( formatPercent( 2.34d ));\n System.out.println( formatPercent( 0.54d ));\n System.out.println( formatPercent( 99.99999d ));\n System.out.println( formatPercent( 99d ));\n System.out.println( formatPercent( 100d ));\n System.out.println( formatPercent( 150d ));\n System.out.println( formatPercent( 150.1d ));\n System.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\");\n \n System.out.println(\"formatNoDecimalPoint\");\n \n System.out.println(\"0.000 -> \"+NumUtil.formatNoDecimalPoint(0.000));\n System.out.println(\"0.0005 -> \"+NumUtil.formatNoDecimalPoint(0.0005));\n\tSystem.out.println(\"0.05 -> \"+NumUtil.formatNoDecimalPoint(0.05));\n\tSystem.out.println(\"0.5 -> \"+NumUtil.formatNoDecimalPoint(0.5));\n\tSystem.out.println(\"1 -> \"+NumUtil.formatNoDecimalPoint(1));\n\tSystem.out.println(\"1.1 -> \"+NumUtil.formatNoDecimalPoint(1.1));\n\tSystem.out.println(\"1.12 -> \"+NumUtil.formatNoDecimalPoint(1.12));\n\tSystem.out.println(\"1.123 -> \"+NumUtil.formatNoDecimalPoint(1.123));\n\tSystem.out.println(\"1.1234 -> \"+NumUtil.formatNoDecimalPoint(1.1234));\n\tSystem.out.println(\"1.12345 -> \"+NumUtil.formatNoDecimalPoint(1.12345));\n\tSystem.out.println(\"1.123456 -> \"+NumUtil.formatNoDecimalPoint(1.123456));\n\tSystem.out.println(\"12.12345699999999999999999999999999999999 -> \"+NumUtil.formatNoDecimalPoint(12.12345699999999999999999999999999999999));\n\tSystem.out.println(\"566762.42 -> \"+formatNoDecimalPoint(566762.42));\n\tSystem.out.println(\"56676242.00 -> \"+formatNoDecimalPoint(56676242.00));\n\tSystem.out.println(\"2342342342.00 -> \"+formatNoDecimalPoint(2342342342.00));\n\tSystem.out.println(\"12345678901234.12345678901234567890 -> \"+formatNoDecimalPoint(12345678901234.12345678901234567890));\n \n\t\n\tSystem.out.println(\"NumUtil.format2DecimalPoint\");\n \n\tSystem.out.println(\"0.0005 -> \"+NumUtil.format2DecimalPoint(0.0005));\n\tSystem.out.println(\"0.05 -> \"+NumUtil.format2DecimalPoint(0.05));\n\tSystem.out.println(\"0.5 -> \"+NumUtil.format2DecimalPoint(0.5));\n\tSystem.out.println(\"1 -> \"+NumUtil.format2DecimalPoint(1));\n\tSystem.out.println(\"1.1 -> \"+NumUtil.format2DecimalPoint(1.1));\n\tSystem.out.println(\"1.12 -> \"+NumUtil.format2DecimalPoint(1.12));\n\tSystem.out.println(\"1.123 -> \"+NumUtil.format2DecimalPoint(1.123));\n\tSystem.out.println(\"1.1234 -> \"+NumUtil.format2DecimalPoint(1.1234));\n\tSystem.out.println(\"1.12345 -> \"+NumUtil.format2DecimalPoint(1.12345));\n\tSystem.out.println(\"1.123456 -> \"+NumUtil.format2DecimalPoint(1.123456));\n\tSystem.out.println(\"12.12345699999999999999999999999999999999 -> \"+NumUtil.format2DecimalPoint(12.12345699999999999999999999999999999999));\n\tSystem.out.println(\"566762.42 -> \"+format2DecimalPoint(566762.42));\n\tSystem.out.println(\"56676242.00 -> \"+format2DecimalPoint(56676242.00));\n\tSystem.out.println(\"2342342342.00 -> \"+format2DecimalPoint(2342342342.00));\n\tSystem.out.println(\"12345678901234.12345678901234567890 -> \"+format2DecimalPoint(12345678901234.12345678901234567890));\n\t\n\t\n \n////////////\n\t\nSystem.out.println(\"formatNoDecimalPoint\");\n \n System.out.println(\"0.000 -> \"+NumUtil.formatNoDecimalPoint(0.00));\n System.out.println(\"-0.0005 -> \"+NumUtil.formatNoDecimalPoint(-0.0005));\n\tSystem.out.println(\"-0.05 -> \"+NumUtil.formatNoDecimalPoint(-0.05));\n\tSystem.out.println(\"-0.5 -> \"+NumUtil.formatNoDecimalPoint(-0.5));\n\tSystem.out.println(\"-1 -> \"+NumUtil.formatNoDecimalPoint(-1));\n\tSystem.out.println(\"-1.1 -> \"+NumUtil.formatNoDecimalPoint(-1.1));\n\tSystem.out.println(\"-1.12 -> \"+NumUtil.formatNoDecimalPoint(-1.12));\n\tSystem.out.println(\"-1.123 -> \"+NumUtil.formatNoDecimalPoint(-1.123));\n\tSystem.out.println(\"-1.1234 -> \"+NumUtil.formatNoDecimalPoint(-1.1234));\n\tSystem.out.println(\"-1.12345 -> \"+NumUtil.formatNoDecimalPoint(-1.12345));\n\tSystem.out.println(\"-1.123456 -> \"+NumUtil.formatNoDecimalPoint(-1.123456));\n\tSystem.out.println(\"-12.12345699999999999999999999999999999999 -> \"+NumUtil.formatNoDecimalPoint(-12.12345699999999999999999999999999999999));\n\tSystem.out.println(\"-566762.42 -> \"+formatNoDecimalPoint(-566762.42));\n\tSystem.out.println(\"-56676242.00 -> \"+formatNoDecimalPoint(-56676242.00));\n\tSystem.out.println(\"-2342342342.00 -> \"+formatNoDecimalPoint(-2342342342.00));\n\tSystem.out.println(\"-12345678901234.12345678901234567890 -> \"+formatNoDecimalPoint(-12345678901234.12345678901234567890));\n \n\t\n\tSystem.out.println(\"NumUtil.format2DecimalPoint\");\n \n\tSystem.out.println(\"0.000 -> \"+NumUtil.format2DecimalPoint(0.00));\n\tSystem.out.println(\"-0.0005 -> \"+NumUtil.format2DecimalPoint(-0.0005));\n\tSystem.out.println(\"-0.05 -> \"+NumUtil.format2DecimalPoint(-0.05));\n\tSystem.out.println(\"-0.5 -> \"+NumUtil.format2DecimalPoint(-0.5));\n\tSystem.out.println(\"-1 -> \"+NumUtil.format2DecimalPoint(-1));\n\tSystem.out.println(\"-1.1 -> \"+NumUtil.format2DecimalPoint(-1.1));\n\tSystem.out.println(\"-1.12 -> \"+NumUtil.format2DecimalPoint(-1.12));\n\tSystem.out.println(\"-1.123 -> \"+NumUtil.format2DecimalPoint(-1.123));\n\tSystem.out.println(\"-1.1234 -> \"+NumUtil.format2DecimalPoint(-1.1234));\n\tSystem.out.println(\"-1.12345 -> \"+NumUtil.format2DecimalPoint(-1.12345));\n\tSystem.out.println(\"-1.123456 -> \"+NumUtil.format2DecimalPoint(-1.123456));\n\tSystem.out.println(\"-12.12345699999999999999999999999999999999 -> \"+NumUtil.format2DecimalPoint(-12.12345699999999999999999999999999999999));\n\tSystem.out.println(\"-566762.42 -> \"+format2DecimalPoint(-566762.42));\n\tSystem.out.println(\"-56676242.00 -> \"+format2DecimalPoint(-56676242.00));\n\tSystem.out.println(\"-2342342342.00 -> \"+format2DecimalPoint(-2342342342.00));\n\tSystem.out.println(\"-12345678901234.12345678901234567890 -> \"+format2DecimalPoint(-12345678901234.12345678901234567890));\n\t\n\t\n\t\n\tSystem.out.println(\"8865450.54 -> \"+NumUtil.format2DecimalPoint(8865450.54));\n\t\n\t\n\t\n\tSystem.out.println( ratio( 7, 14 ) );\n\t\n System.out.println( ratio( 10293, 1234 ) );\n\t\n System.out.println( ratio( 50 * 23, 20 * 23 ) );\n }", "public boolean hasCurrency() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public boolean isColumnNumeric(int position) {\n\n if (columns[position] instanceof NumericColumn) {\n return true;\n }\n\n Column col = columns[position];\n int numRows = col.getNumRows();\n\n for (int row = 0; row < numRows; row++) {\n\n try {\n Double.valueOf(col.getString(row));\n } catch (Exception e) {\n return false;\n }\n }\n\n return true;\n }", "boolean isSetAmount();", "public boolean hasCurrency() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public boolean isDouble() {\n return this.data instanceof Double;\n }", "@Override\n\tpublic int compareTo(@NonNull Item o) {\n\t\treturn Math.round(this.price - o.price);\n\t}", "private void processNumericValues(ReportConcept entry, ConceptLabel lbl) {\n\t\tif (isNumber(entry.getConceptClass()) && !entry.getConceptEntry().hasNumericValue()) {\n\t\t\tentry.setNumericValue(TextHelper.parseDecimalValue(lbl.getText()));\n\t\t}\n\t}", "public String getUnitAmountDecimal() {\n return this.unitAmountDecimal;\n }", "@Test\n public void testTotalPaid() {\n //Just ensure that the first two digits are the same\n assertEquals(expectedResults.getTotalPaid(), results.getTotalPaid(), 0.15);\n }", "@Test\n public void testOriginalAmountOwed() {\n //Just ensure that the first two digits are the same\n assertEquals(expectedResults.getOriginalAmountOwed(), results.getOriginalAmountOwed(), 0.15);\n }", "boolean hasQuantity();", "boolean isSetValueQuantity();", "public boolean isNumeric() {\n\t\treturn numeric;\n\t}", "public final void entryRuleDecimal() throws RecognitionException {\n try {\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:229:1: ( ruleDecimal EOF )\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:230:1: ruleDecimal EOF\n {\n before(grammarAccess.getDecimalRule()); \n pushFollow(FollowSets000.FOLLOW_ruleDecimal_in_entryRuleDecimal420);\n ruleDecimal();\n\n state._fsp--;\n\n after(grammarAccess.getDecimalRule()); \n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleDecimal427); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "boolean isCurrencyAware();", "public boolean isDouble();" ]
[ "0.5923584", "0.57984644", "0.5773233", "0.57455146", "0.567178", "0.5575292", "0.555297", "0.54999036", "0.549513", "0.5426925", "0.5426925", "0.5358783", "0.5344361", "0.5312857", "0.52937245", "0.5291263", "0.5289594", "0.5271934", "0.5250851", "0.5228761", "0.518218", "0.51535386", "0.51192826", "0.5101745", "0.50966835", "0.5091503", "0.50815856", "0.5074547", "0.506173", "0.506173", "0.50531197", "0.50176156", "0.5014817", "0.5013931", "0.5013931", "0.4978238", "0.49606803", "0.49529442", "0.4951079", "0.49509966", "0.49492255", "0.49352774", "0.49171248", "0.4908485", "0.48915884", "0.48808515", "0.4855635", "0.48508266", "0.48329008", "0.4827844", "0.48250926", "0.48249575", "0.48235196", "0.48235196", "0.48198318", "0.48065478", "0.4793652", "0.47914267", "0.47914267", "0.47855148", "0.4771222", "0.47658446", "0.4750056", "0.47445828", "0.47395566", "0.47389406", "0.4732907", "0.4706057", "0.4703886", "0.47036743", "0.4703006", "0.46784052", "0.4669711", "0.46649864", "0.46594977", "0.46555957", "0.46518728", "0.46376634", "0.46196818", "0.46171615", "0.46106255", "0.4610416", "0.4609809", "0.4608614", "0.46083137", "0.46041626", "0.46035933", "0.45924798", "0.45876148", "0.45853966", "0.45850167", "0.4582923", "0.45719755", "0.45679772", "0.45649588", "0.4561448", "0.45544186", "0.4546542", "0.45449767", "0.4544301" ]
0.6409176
0
Tests whether the item is an atomic item of type duration.
public boolean isDuration() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasDuration();", "public boolean hasDuration() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasDuration() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "boolean isSetDuration();", "boolean isSetDuration();", "boolean isSetDuration();", "private boolean isDuration(ComparisonExpression comp) {\n return comp.getLhs() instanceof DurationComparable ||\n comp.getRhs() instanceof DurationComparable ||\n comp.getLhs() instanceof TimeConstantComparable ||\n comp.getRhs() instanceof TimeConstantComparable;\n }", "public boolean isWholeDuration ()\r\n {\r\n if (!getNotes().isEmpty()) {\r\n Note note = (Note) getNotes().get(0);\r\n\r\n return note.getShape().isMeasureRest();\r\n }\r\n\r\n return false;\r\n }", "@Override\n public void setItemDuration(Duration duration) {\n this.duration = duration;\n }", "@Override\n public boolean isMenorAt(UnitTime ut) {\n return ((LongUnitTime)ut).getValue()>this.getValue(); \n }", "public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "boolean typeIsTimed() {\n return true;\n }", "boolean hasDepositEndTime();", "public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "boolean hasSequenceMaximumDuration();", "public abstract boolean isTypeOf(ItemType type);", "boolean isSetRecurrenceDuration();", "private static boolean isValidDuration(String duration)\n {\n for (Duration d : Duration.values()) {\n if (d.name().equals(duration)) {\n return true;\n }\n }\n\n return false;\n }", "public boolean hasTime() {\n return this.timeWrapper.isPresent();\n }", "public boolean hasTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "private boolean durationValidation(int duration){\n return duration < 300 && duration >10;\n }", "@Override\n public boolean isEqualAt(UnitTime ut) {\n return ((LongUnitTime)ut).getValue()==this.getValue();\n }", "boolean isExpire(long currentTime);", "public boolean hasTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean isDayTimeDuration() {\n return false;\n }", "public interface TimedEntry extends DataSerializable {\n\n /**\n * The amount of time remaining before this entry expires, if applicable.\n *\n * @return The remaining amount of time.\n */\n Duration getRemainingTime();\n\n /**\n * Returns whether this entry can be considered expired.\n *\n * @return if expired.\n */\n boolean expired();\n\n /**\n * Denotes whether the timer is currently ticking down (that is, if {@link #getRemainingTime()} should be decreasing with\n * each call.\n *\n * @return <code>true</code> if so.\n */\n boolean isCurrentlyTicking();\n\n /**\n * Returns a {@link TimedEntry} that is currently ticking.\n *\n * @return An entry that represents something that's ticking down.\n */\n TimedEntry start();\n\n /**\n * Returns a {@link TimedEntry} that is currently not ticking.\n *\n * @return An entry that represents something that is not ticking down.\n */\n TimedEntry stop();\n}", "@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }", "@Override\n public boolean isMayorAt(UnitTime ut) {\n return ((LongUnitTime)ut).getValue()<this.getValue();\n }", "@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }", "@Test\n\tvoid testCheckDuration2() {\n\t\tassertFalse(DataChecker.checkDuration(Duration.ofMinutes(-11)));\n\t}", "public boolean isBeyondDuration( Discount discount )\n\t{\n\t\tboolean isBeyondDuration = true;\n\t\t\n\t\tif( discount.getStartDate().equals(\"ALWAYS\") || discount.getDuration().equals(\"ALWAYS\"))\n\t\t\tisBeyondDuration = false;\n\t\telse\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tSimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\tDate startdate = simpleDateFormat.parse(discount.getStartDate());\n\t\t\t\tint duration = Integer.parseInt(discount.getDuration());\n\t\t\t\t\t\n\t\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\t\tcalendar.setTime(startdate);\n\t\t\t\tcalendar.add(Calendar.DATE, duration);\n\t\t\t\tString newDate = simpleDateFormat.format(calendar.getTime());\n\t\t\t\tDate endDate = simpleDateFormat.parse(newDate);\n\t\t\t\t\t\n\t\t\t\tDate today = new Date();\n\t\t\t\t\t\n\t\t\t\tif( today.after(startdate) && today.before(endDate) )\n\t\t\t\t\tisBeyondDuration = false;\n\t\t\t} \n\t\t\tcatch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isBeyondDuration;\n\t}", "boolean hasTime();", "boolean hasTime();", "boolean hasTransactionDateTime();", "public Period getDurationValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a duration.\");\n }", "boolean hasStartTime();", "@Test\n\tvoid testCheckDuration3() {\n\t\tassertFalse(DataChecker.checkDuration(Duration.ZERO));\n\t}", "public boolean hasTSM() {\n for (Mounted m : getEquipment()) {\n if ((m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_TSM)) {\n return true;\n }\n }\n return false;\n }", "@java.lang.Override\n public boolean hasTime() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public boolean isValidItem() {\n return validItem;\n }", "boolean hasContainerTimestamp();", "boolean hasExpiryTimeSecs();", "boolean hasDesiredTime();", "DurationTypeEnum getDurationType();", "public static boolean isValidDuration(String duratonString) throws NumberFormatException {\n double duration = Double.parseDouble(duratonString);\n return duration > 0 && duration < 24;\n }", "public boolean isTimeElapsed() {\n\t\treturn (timeLeft <= 0);\n\t}", "public boolean isEnd() { return (_dateExpiration - System.currentTimeMillis()) <= 0; }", "public boolean hasExpiryTimeSecs() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "boolean hasEndTime();", "@java.lang.Override\n public boolean hasTime() {\n return instance.hasTime();\n }", "boolean hasExpirationDate();", "public boolean isExpired(){\r\n float empty = 0.0f;\r\n return empty == getAmount();\r\n \r\n }", "boolean hasExchangeTime();", "public static boolean isValidDuration(String test) {\n try {\n long minutes = Long.parseLong(test);\n Duration mightBeValid = Duration.ofMinutes(minutes);\n return isValidDuration(mightBeValid);\n } catch (NumberFormatException e) {\n return false;\n }\n }", "public boolean hasExpiryTimeSecs() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "@Override\n public Duration getItemDuration() {\n return null;\n }", "public boolean hasTime() {\n return fieldSetFlags()[0];\n }", "boolean getItemCanBeDeleted(String itemId);", "public boolean isCounting() {\n assert startTime != -1;\n return System.currentTimeMillis() - startTime <= durationMillis;\n }", "public boolean isTime() {\n return false;\n }", "public Boolean checkAvailability(Item item, Integer current) {\n \tif (item.getQuatity() + current > item.getAvailableQuatity()) {\r\n \t\tSystem.out.println(\"System is unable to add \"\r\n \t\t\t\t+ current + \" \" + item.getItemName() +\r\n \t\t\t\t\". System can only add \"\r\n \t\t\t\t+ item.getAvailableQuatity() + \" \" + item.getItemName() );\r\n \t\treturn false;\r\n \t}\r\n \telse return true;\r\n }", "public boolean isSetTime()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(TIME$2) != 0;\n }\n }", "public boolean isExpired() {\n return getExpiration() <= System.currentTimeMillis() / 1000L;\n }", "public boolean isAcid() {\n return hasBase || deltas.size() > 0;\n }", "public boolean isMeasureTime() ;", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCollectEndTime();", "private boolean isTimeOverlap(Item t) {\n\t\treturn t.getEndDate().equals(event.getEndDate());\n\t}", "protected boolean checkDurability(ItemStack heldItem, String blockLocationFormat) {\n int leftDurability = calcLeftDurability(heldItem);\n\n // If the user did something bad here,\n // like destroying the configuration (by entereing non numeric values into the field etc.)\n // the value of \"minimum-durability\" will be (int)0. therefore it must be corrupt?!\n // Set it back to a reasonable number\n if (f.getInt(\"minimum-durability\") == 0) {\n f.set(\"minimum-durability\", this.plugin.getConfig().getInt(\"minimum-durability\"));\n }\n\n if (heldItem.getDurability() > 0\n && f.getInt(\"minimum-durability\") >= heldItem.getType().getMaxDurability() - heldItem.getDurability()\n && !xyzBlock.contains(blockLocationFormat)) {\n String s = String.format(ChatColor.RED + \"[WARNING]: %s has too little duration left!\\nDuration left: %d\\n\", WordUtils.capitalize(heldItem.getType().toString().toLowerCase().replace(\"_\", \" \")), leftDurability);\n p.sendMessage(s);\n return true;\n } /*else { //TODO ONLY FOR DEBUGGING\n Integer integerObject = new Integer(\"20\");\n short dura = (short) (max - integerObject.shortValue());\n heldItem.setDurability(dura);\n } */\n return false;\n }", "public void checkItem() {\n Entity t = BombermanGame.checkCollisionItem(this.rectangle);\n if (t instanceof SpeedItem) {\n speed ++;\n ((SpeedItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof FlameItem) {\n flame = true;\n ((FlameItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof BombItem) {\n max_bomb ++;\n ((BombItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof Portal) {\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n }", "org.apache.xmlbeans.XmlDuration xgetDuration();", "public boolean add(long tag, long durationNanos) {\n int position = COUNT.getAndIncrement(this);\n if (position >= 0 && position < durations.length()) {\n durations.set(position, tag | durationNanos);\n COMMITTED.getAndIncrement(this);\n return true;\n }\n return false;\n }", "public boolean checkTime() {\n boolean result = false;\n long currentTime = System.currentTimeMillis();\n while (currentTime == timeFlag + 1000) {\n this.timeFlag = currentTime;\n result = true;\n return result;\n }\n return result;\n }", "public boolean hasValidToMillis() {\n return fieldSetFlags()[5];\n }", "public boolean hasMillis() {\n return fieldSetFlags()[1];\n }", "public static boolean ItemType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ItemType\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, ITEM_TYPE, \"<item type>\");\n r = KindTest(b, l + 1);\n if (!r) r = GeneralItemType(b, l + 1);\n if (!r) r = FunctionTest(b, l + 1);\n if (!r) r = MapTest(b, l + 1);\n if (!r) r = ArrayTest(b, l + 1);\n if (!r) r = AtomicOrUnionType(b, l + 1);\n if (!r) r = ParenthesizedItemType(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public boolean isExpired()\n\t{\n\t\tif (TimeRemaining == 0) \n\t\t\treturn true;\n\t\telse return false;\n\t}", "public boolean hasEndTime() {\n return fieldSetFlags()[1];\n }", "boolean hasTimeRecord();", "public boolean hasTtl() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean isItem(int itemId) {\n return getKey().equals(itemId);\n }", "public boolean hasTimeRecord() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean isAM() {\n\tif (start != null)\n\t return start.isBefore(LocalTime.NOON);\n\treturn false;\n }", "boolean hasInstant();", "public final boolean isCompatibleWith (Unit unit) {\n\t\tif (((unit.mksa|this.mksa)&_abs) != 0) \t\t// Special dates\n\t\t\treturn((this.mksa^_abs) == unit.mksa) ;\n\t\treturn((mksa&(~(_log|_mag))) == (unit.mksa&(~(_log|_mag)))) ;\n\t}", "public boolean hasTimeRecord() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public interface Item {\n\n boolean isTask();\n}", "public boolean hasTtl() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "@Test\n\tvoid testCheckDuration4() {\n\t\tassertFalse(DataChecker.checkDuration(null));\n\t}", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tboolean issame = false;\r\n\t\tif(obj instanceof MediaItem) {\r\n\t\t\tMediaItem mi = (MediaItem)obj;\r\n\t\t\tboolean a = this.runTime == mi.runTime;\r\n\t\t return a;\r\n\t\t}\r\n\t\treturn issame;\r\n\t}", "public boolean hasExpired() {\n return this.getOriginalTime() + TimeUnit.MINUTES.toMillis(2) < System.currentTimeMillis();\n }", "public boolean removeItemFromCalendar(AgendaItem item) {\n return removeItemFromCalendar(item.getTitle(), item.getStart().getMillis(), item.getEnd().getMillis());\n }", "@Test\n public void invalidDeletionTimesHandlingTest()\n {\n DeletionTime dt = DeletionTime.build(1, -1);\n assertFalse(dt.validate());\n\n // use the invalid deletion time for a range tombstone and aggregate it\n RangeTombstoneList rtl = new RangeTombstoneList(null, 1);\n rtl.add(new RangeTombstone(Slice.ALL, dt));\n\n // undo the aggregation and see if the deletion time is still invalid\n dt = rtl.iterator().next().deletionTime();\n assertNotNull(dt);\n assertFalse(dt.validate());\n }", "RealDuration asRealDuration();", "boolean isItemDisabled( final Object item );" ]
[ "0.6493896", "0.61836874", "0.6155417", "0.6146372", "0.6146372", "0.6146372", "0.61091566", "0.6075279", "0.5283462", "0.5201511", "0.51972246", "0.5186554", "0.51862246", "0.51781404", "0.51707166", "0.5130976", "0.5118165", "0.50778353", "0.5073822", "0.5060013", "0.5052848", "0.5051245", "0.5050952", "0.5027424", "0.5007228", "0.5002982", "0.500184", "0.4995313", "0.49941596", "0.49740586", "0.49653417", "0.49634346", "0.49634346", "0.49571332", "0.49421293", "0.4919247", "0.4908933", "0.49053895", "0.48987198", "0.4893095", "0.4891972", "0.48863316", "0.4886315", "0.48765394", "0.48757163", "0.48621392", "0.48584718", "0.484505", "0.48430574", "0.48418584", "0.48395252", "0.483555", "0.48349133", "0.48333487", "0.48243776", "0.48011017", "0.47960198", "0.4794411", "0.4790536", "0.47896114", "0.47892684", "0.47865406", "0.47849563", "0.47831136", "0.47737908", "0.47679248", "0.47679248", "0.47679248", "0.47679248", "0.47679248", "0.47679248", "0.4756364", "0.474622", "0.47393534", "0.47275677", "0.47115192", "0.47060564", "0.46921682", "0.46913764", "0.46905494", "0.4682432", "0.46789342", "0.46772367", "0.46715528", "0.46629545", "0.46620965", "0.46607476", "0.46303278", "0.46263608", "0.46248865", "0.46185958", "0.46120173", "0.4611369", "0.46103436", "0.46059474", "0.4605674", "0.46039516", "0.45977637", "0.4594802", "0.45942777" ]
0.606725
8
Tests whether the item is an atomic item of type yearMonthDuration.
public boolean isYearMonthDuration() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.junit.Test\n public void opMultiplyYearMonthDuration12() {\n final XQuery query = new XQuery(\n \"fn:string((xs:yearMonthDuration(\\\"P10Y11M\\\") * 2.0)) and (fn:true())\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(true)\n );\n }", "private static Boolean checkYear(){\r\n try{\r\n int year = Integer.parseInt(yearField.getText().trim());\r\n int now = LocalDate.now().getYear();\r\n \r\n if(LocalDate.now().getMonth().compareTo(Month.SEPTEMBER) < 0){\r\n now--;\r\n }\r\n //SIS stores the schedule for last 3 years only \r\n if(year <= now && year >= now - 3 ){\r\n return true;\r\n }\r\n }\r\n catch(Exception e){\r\n Logger.getLogger(\"Year checker\").log(Level.WARNING, \"Exception while resolving the year \", e);\r\n }\r\n return false;\r\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration3() {\n final XQuery query = new XQuery(\n \"fn:string((xs:yearMonthDuration(\\\"P20Y10M\\\") * 2.0)) or fn:false()\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(true)\n );\n }", "public boolean isSetMonthlyPayment() {\n return EncodingUtils.testBit(__isset_bitfield, __MONTHLYPAYMENT_ISSET_ID);\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration4() {\n final XQuery query = new XQuery(\n \"fn:not(fn:string(xs:yearMonthDuration(\\\"P11Y04M\\\") * 2.0))\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration2() {\n final XQuery query = new XQuery(\n \"fn:string((xs:yearMonthDuration(\\\"P10Y11M\\\")) * 2.0) and fn:false()\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "@org.junit.Test\n public void kYearMonthDurationMultiply1() {\n final XQuery query = new XQuery(\n \"xs:yearMonthDuration(\\\"P3Y36M\\\") * 3 eq xs:yearMonthDuration(\\\"P18Y\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(true)\n );\n }", "public boolean isMonth(String input){\r\n if(!isInteger(input)) return false;\r\n int month = Integer.parseInt(input);\r\n if(12 < month) return false;\r\n return true;\r\n }", "@org.junit.Test\n public void cbclMultiplyYearMonthDuration004() {\n final XQuery query = new XQuery(\n \"\\n\" +\n \" declare function local:yearMonthDuration($years as xs:integer) as xs:yearMonthDuration { xs:yearMonthDuration(concat(\\\"P\\\", $years, \\\"Y\\\")) };\\n\" +\n \" 0 * local:yearMonthDuration(2)\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"P0M\")\n );\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration16() {\n final XQuery query = new XQuery(\n \"(xs:yearMonthDuration(\\\"P13Y09M\\\") - xs:yearMonthDuration(\\\"P18Y02M\\\")) ge xs:yearMonthDuration(\\\"P18Y02M\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "public boolean isSupportMonth() {\r\n return true;\r\n }", "@org.junit.Test\n public void kYearMonthDurationMultiply3() {\n final XQuery query = new XQuery(\n \"0 * xs:yearMonthDuration(\\\"P3Y36M\\\") eq xs:yearMonthDuration(\\\"P0M\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(true)\n );\n }", "public boolean isSetMonthWage() {\n return EncodingUtils.testBit(__isset_bitfield, __MONTHWAGE_ISSET_ID);\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration1() {\n final XQuery query = new XQuery(\n \"xs:yearMonthDuration(\\\"P2Y11M\\\") * 2.3\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"P6Y9M\")\n );\n }", "@org.junit.Test\n public void cbclMultiplyYearMonthDuration001() {\n final XQuery query = new XQuery(\n \"\\n\" +\n \" declare function local:yearMonthDuration($years as xs:integer) as xs:yearMonthDuration { xs:yearMonthDuration(concat(\\\"P\\\", $years, \\\"Y\\\")) };\\n\" +\n \" local:yearMonthDuration(2) * 0\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"P0M\")\n );\n }", "@org.junit.Test\n public void kYearMonthDurationMultiply12() {\n final XQuery query = new XQuery(\n \"xs:yearMonthDuration(\\\"P3Y3M\\\") * xs:yearMonthDuration(\\\"P3Y3M\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XPTY0004\")\n );\n }", "@org.junit.Test\n public void kYearMonthDurationMultiply4() {\n final XQuery query = new XQuery(\n \"xs:yearMonthDuration(\\\"P3Y36M\\\") * 0 eq xs:yearMonthDuration(\\\"P0M\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(true)\n );\n }", "@org.junit.Test\n public void cbclMultiplyYearMonthDuration002() {\n final XQuery query = new XQuery(\n \"\\n\" +\n \" declare function local:yearMonthDuration($years as xs:integer) as xs:yearMonthDuration { xs:yearMonthDuration(concat(\\\"P\\\", $years, \\\"Y\\\")) };\\n\" +\n \" local:yearMonthDuration(2) * 1\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"P2Y\")\n );\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration17() {\n final XQuery query = new XQuery(\n \"fn:count((xs:yearMonthDuration(\\\"P13Y09M\\\") *+0))\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"1\")\n );\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration18() {\n final XQuery query = new XQuery(\n \"fn:count((xs:yearMonthDuration(\\\"P13Y09M\\\") *-0))\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"1\")\n );\n }", "@org.junit.Test\n public void kYearMonthDurationMultiply2() {\n final XQuery query = new XQuery(\n \"3 * xs:yearMonthDuration(\\\"P3Y36M\\\") eq xs:yearMonthDuration(\\\"P18Y\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(true)\n );\n }", "boolean isSetDuration();", "boolean isSetDuration();", "boolean isSetDuration();", "@org.junit.Test\n public void opMultiplyYearMonthDuration13() {\n final XQuery query = new XQuery(\n \"(xs:yearMonthDuration(\\\"P23Y11M\\\") * 2.0) eq xs:yearMonthDuration(\\\"P23Y11M\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "@org.junit.Test\n public void cbclMultiplyYearMonthDuration005() {\n final XQuery query = new XQuery(\n \"\\n\" +\n \" declare function local:yearMonthDuration($years as xs:integer) as xs:yearMonthDuration { xs:yearMonthDuration(concat(\\\"P\\\", $years, \\\"Y\\\")) };\\n\" +\n \" 1 * local:yearMonthDuration(2)\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"P2Y\")\n );\n }", "public static boolean isItDecember()\r\n {\r\n Calendar today = Calendar.getInstance();\r\n return (today.get(Calendar.MONTH) == 12);\r\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration11() {\n final XQuery query = new XQuery(\n \"(xs:yearMonthDuration(\\\"P20Y11M\\\") * 2.0) div (xs:yearMonthDuration(\\\"P20Y11M\\\") * 2.0)\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"1\")\n );\n }", "@java.lang.Override\n public boolean hasAcademicYear() {\n return academicYear_ != null;\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration14() {\n final XQuery query = new XQuery(\n \"(xs:yearMonthDuration(\\\"P21Y12M\\\") * 2.0) ne xs:yearMonthDuration(\\\"P08Y05M\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(true)\n );\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration2args1() {\n final XQuery query = new XQuery(\n \"xs:yearMonthDuration(\\\"P0Y0M\\\") * xs:double(\\\"-1.7976931348623157E308\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"P0M\")\n );\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration10() {\n final XQuery query = new XQuery(\n \"fn:string((xs:yearMonthDuration(\\\"P05Y02M\\\") * 2.0)) or fn:string((xs:yearMonthDuration(\\\"P05Y03M\\\") * 2.0))\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(true)\n );\n }", "@Override\r\n public boolean matches(PublicationContainer books, int index)\r\n throws PublicationContainerException {\r\n return books.get(index).getYear() == this.year;\r\n }", "@org.junit.Test\n public void cbclMultiplyYearMonthDuration003() {\n final XQuery query = new XQuery(\n \"xs:yearMonthDuration(\\\"P2Y\\\") * xs:double('NaN')\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"FOCA0005\")\n );\n }", "@Test(expected = IllegalArgumentException.class)\n public void testGetExpensesByTypeAndMonthInFuture() {\n\tString type = \"MONTHLY\";\n\tYearMonth yearMonth = YearMonth.of(2016, 12);\n\texpenseManager.getExpensesByTypeAndMonth(type, yearMonth);\n }", "boolean hasDuration();", "private boolean isDuration(ComparisonExpression comp) {\n return comp.getLhs() instanceof DurationComparable ||\n comp.getRhs() instanceof DurationComparable ||\n comp.getLhs() instanceof TimeConstantComparable ||\n comp.getRhs() instanceof TimeConstantComparable;\n }", "@org.junit.Test\n public void kYearMonthDurationMultiply9() {\n final XQuery query = new XQuery(\n \"3 * xs:duration(\\\"P1Y3M\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XPTY0004\")\n );\n }", "public final boolean isCompatibleWith (Unit unit) {\n\t\tif (((unit.mksa|this.mksa)&_abs) != 0) \t\t// Special dates\n\t\t\treturn((this.mksa^_abs) == unit.mksa) ;\n\t\treturn((mksa&(~(_log|_mag))) == (unit.mksa&(~(_log|_mag)))) ;\n\t}", "@org.junit.Test\n public void kYearMonthDurationMultiply11() {\n final XQuery query = new XQuery(\n \"xs:yearMonthDuration(\\\"P3Y3M\\\") * xs:dayTimeDuration(\\\"P3D\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XPTY0004\")\n );\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration20() {\n final XQuery query = new XQuery(\n \"for $i in (-3.9, -3.5, -3.1, -0.9, -0.5, -0.1, +0.1, +0.5, +0.9, +3.1, +3.5, +3.9) return xs:yearMonthDuration(\\\"P1M\\\") * $i\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"-P4M -P3M -P3M -P1M P0M P0M P0M P1M P1M P3M P4M P4M\")\n );\n }", "private boolean isCurrentYear(Date date) {\n boolean result = false;\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(date);\n Calendar today = Calendar.getInstance();\n if (today.get(Calendar.YEAR) == calendar.get(Calendar.YEAR)) {\n result = true;\n }\n return result;\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration19() {\n final XQuery query = new XQuery(\n \"xs:yearMonthDuration(\\\"P13Y09M\\\") * fn:number(())\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"FOCA0005\")\n );\n }", "public boolean isDuration() {\n return false;\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration2args4() {\n final XQuery query = new XQuery(\n \"xs:yearMonthDuration(\\\"P0Y0M\\\") * xs:double(\\\"0\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"P0M\")\n );\n }", "boolean isValidFor (@Nonnull DATATYPE aDate);", "@org.junit.Test\n public void opMultiplyYearMonthDuration9() {\n final XQuery query = new XQuery(\n \"fn:string((xs:yearMonthDuration(\\\"P01Y01M\\\") * 2.0)) and fn:string((xs:yearMonthDuration(\\\"P02Y03M\\\") * 2.0))\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(true)\n );\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration2args3() {\n final XQuery query = new XQuery(\n \"xs:yearMonthDuration(\\\"P2030Y12M\\\") * xs:double(\\\"-0\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"P0M\")\n );\n }", "public boolean hasAcademicYear() {\n return academicYearBuilder_ != null || academicYear_ != null;\n }", "public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "private void verifyContentTypeAttributeValue()\n throws CMSException\n {\n ASN1Primitive validContentType = getSingleValuedSignedAttribute(\n CMSAttributes.contentType, \"content-type\");\n if (validContentType == null)\n {\n if (!isCounterSignature && signedAttributeSet != null)\n {\n throw new CMSException(\"The content-type attribute type MUST be present whenever signed attributes are present in signed-data\");\n }\n }\n else\n {\n if (isCounterSignature)\n {\n throw new CMSException(\"[For counter signatures,] the signedAttributes field MUST NOT contain a content-type attribute\");\n }\n\n if (!(validContentType instanceof ASN1ObjectIdentifier))\n {\n throw new CMSException(\"content-type attribute value not of ASN.1 type 'OBJECT IDENTIFIER'\");\n }\n\n ASN1ObjectIdentifier signedContentType = (ASN1ObjectIdentifier)validContentType;\n\n if (!signedContentType.equals(contentType))\n {\n throw new CMSException(\"content-type attribute value does not match eContentType\");\n }\n }\n }", "@org.junit.Test\n public void cbclMultiplyYearMonthDuration006() {\n final XQuery query = new XQuery(\n \"xs:double('NaN') * xs:yearMonthDuration(\\\"P2Y\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"FOCA0005\")\n );\n }", "public void testGetBlogForMonth() {\n MonthlyBlog monthlyBlog = rootBlog.getBlogForMonth(2003, 4);\n assertNotNull(monthlyBlog);\n assertEquals(2003, monthlyBlog.getYearlyBlog().getYear());\n assertEquals(4, monthlyBlog.getMonth());\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration5() {\n final XQuery query = new XQuery(\n \"fn:boolean(fn:string(xs:yearMonthDuration(\\\"P05Y08M\\\") * 2.0))\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(true)\n );\n }", "@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }", "@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }", "private boolean hasDateThreshold() {\r\n if (entity.getExpirationDate() == null) {\r\n return false;\r\n }\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.MONTH, 1);\r\n if (entity.getExpirationDate().before(calendar.getTime())) {\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean expired(){\n return !Period.between(dateOfPurchase.plusYears(1), LocalDate.now()).isNegative();\n }", "public boolean isSetYearPay() {\n return EncodingUtils.testBit(__isset_bitfield, __YEARPAY_ISSET_ID);\n }", "@org.junit.Test\n public void kYearMonthDurationMultiply13() {\n final XQuery query = new XQuery(\n \"xs:dayTimeDuration(\\\"P3D\\\") * xs:dayTimeDuration(\\\"P3D\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XPTY0004\")\n );\n }", "public boolean isWholeDuration ()\r\n {\r\n if (!getNotes().isEmpty()) {\r\n Note note = (Note) getNotes().get(0);\r\n\r\n return note.getShape().isMeasureRest();\r\n }\r\n\r\n return false;\r\n }", "public boolean isSetMaritalStatusCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(MARITALSTATUSCODE$14) != 0;\n }\n }", "public boolean hasDuration() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public String asMonthYear() {\n return new SimpleDateFormat(\"MM/yyyy\").format(expiredAfter);\n\t}", "private static boolean checkIfYearContinue(Sheet sheet) {\r\n String last = sheet.getCellAt(\"A\" + sheet.getRowCount()).getTextValue(); \r\n return !last.equals(\"end\");\r\n }", "boolean hasExpirationDate();", "public boolean aMonthPasses()\n\t{\n\t\tdecreaseHealth();\n\t\tage++;\n\t\treturn false;\n\t}", "public abstract boolean isTypeOf(ItemType type);", "public boolean hasDuration() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "@org.junit.Test\n public void kYearMonthDurationMultiply10() {\n final XQuery query = new XQuery(\n \"xs:dayTimeDuration(\\\"P3D\\\") * xs:yearMonthDuration(\\\"P3Y3M\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XPTY0004\")\n );\n }", "boolean isSetRecurrenceDuration();", "public void testGetYear()\r\n {\r\n assertTrue(year.equals(song.getYear()));\r\n }", "public boolean isValidItem() {\n return validItem;\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration15() {\n final XQuery query = new XQuery(\n \"(xs:yearMonthDuration(\\\"P10Y01M\\\") * 2.0) le xs:yearMonthDuration(\\\"P17Y02M\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "public boolean isSetTotalAssets() {\n return EncodingUtils.testBit(__isset_bitfield, __TOTALASSETS_ISSET_ID);\n }", "public boolean isSetDataRetentionPeriodUnitOfMeasure()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATARETENTIONPERIODUNITOFMEASURE$28) != 0;\n }\n }", "public boolean isAssetValid(T asset);", "public boolean equals(License liGiven) {\n\t\tint month = Calendar.getInstance().get(Calendar.MONTH) + 1;\n\t\tint year = Calendar.getInstance().get(Calendar.YEAR);\n\t\tSystem.out.println(year);\n\t\t\n\t\t//splits the string into two strings and then converts them into integers\n\t\tString[] parts = this.experiation.split(\"/\");\n\t\tString originalMonth = parts[0];\n\t\tint oM = Integer.parseInt(originalMonth);\n\t\tString originalYear = parts[1];\n\t\tint oY = Integer.parseInt(originalYear);\n\n\t\t\n\t\tString[] twoParts = liGiven.experiation.split(\"/\");\n\t\tString compareMonth = twoParts[0];\n\t\tint cM = Integer.parseInt(compareMonth);\n\t\tString compareYear = twoParts[1];\n\t\tint cY = Integer.parseInt(compareYear);\n\t\n\n\t\tif(this.licenseNum == liGiven.licenseNum && oY > year && cY > year) {\n\t\t\treturn true;\t\t\t\n\t\t}\n\t\tif(this.licenseNum == liGiven.licenseNum && oY == year && cY == year) {\n\t\t\tif(oM < month && cM < month) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\n\n\n\t}", "public boolean isTimeContextDependent() {\r\n\t\treturn (_numberOfIntervals[MONTH_INTERVAL] != 0\r\n\t\t\t\t|| _numberOfIntervals[YEAR_INTERVAL] != 0\r\n\t\t\t\t|| _numberOfIntervals[DECADE_INTERVAL] != 0 || _numberOfIntervals[CENTURY_INTERVAL] != 0);\r\n\t}", "public boolean isValidDate() {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(mDate.getDate());\n int yearNow = cal.get(Calendar.YEAR);\n int monthNow = cal.get(Calendar.MONTH);\n int dayNow = cal.get(Calendar.DAY_OF_MONTH);\n cal.setTimeInMillis(selectedDate.getTimeInMillis());\n int yearSelected = cal.get(Calendar.YEAR);\n int monthSelected = cal.get(Calendar.MONTH);\n int daySelected = cal.get(Calendar.DAY_OF_MONTH);\n if (yearSelected <= yearNow) {\n if (monthSelected <= monthNow) {\n return daySelected >= dayNow;\n }\n }\n return true;\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration2args2() {\n final XQuery query = new XQuery(\n \"xs:yearMonthDuration(\\\"P1000Y6M\\\") * xs:double(\\\"-0\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"P0M\")\n );\n }", "public static boolean esAnoBisiesto(int year) {\r\n\t\t assert year >= 1583; // not valid before this date.\r\n\t\t return ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0);\r\n\t}", "@Test\n public void test0() {\n chkDate(\"> '2013'\", true);\n\n }", "public boolean isTitularUnidadeCargoComissionado()\r\n\t{\r\n\t\treturn this.getTitularUnidadeCargoComissionado() != null && this.getTitularUnidadeCargoComissionado().equals(new Long(1));\r\n\t}", "public static boolean checkExpiryDate(int year,int month,int day) {\n \tCalendar expirydate=Calendar.getInstance();\n\t\texpirydate.set(year, month-1, day);\n\t\tcal=Calendar.getInstance();\n\t\t\n\t\tif(cal.getTime().compareTo(expirydate.getTime())>0) {\n\t\t\tlogErrPrint(\"checkExpiryDate(): Has expired...\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "protected final boolean ok_date (int year, int month, int day)\n {\n return ((year >= FIRST_YEAR) &&\n (1 <= month && month <= getLastMonthOfYear(year)) &&\n (1 <= day && day <= getLengthOfMonth (year, month)));\n }", "public boolean removeItemFromCalendar(AgendaItem item) {\n return removeItemFromCalendar(item.getTitle(), item.getStart().getMillis(), item.getEnd().getMillis());\n }", "public void testGetBlogForThisMonth() {\n Calendar cal = rootBlog.getCalendar();\n MonthlyBlog monthlyBlog = rootBlog.getBlogForThisMonth();\n assertNotNull(monthlyBlog);\n assertEquals(cal.get(Calendar.YEAR), monthlyBlog.getYearlyBlog().getYear());\n assertEquals(cal.get(Calendar.MONTH) + 1, monthlyBlog.getMonth());\n }", "public boolean isSetRelease_date() {\r\n return this.release_date != null;\r\n }", "public boolean isSetRelease_date() {\n return this.release_date != null;\n }", "TCpyYearCheck selectByPrimaryKey(Integer id);", "public java.math.BigInteger getExpirationMonth() {\r\n return expirationMonth;\r\n }", "boolean hasAcquireDate();", "public boolean validateDate(TradeModel tradeModel)\n {\n int i = tradeModel.getMaturityDate().compareTo(LocalDate.now());\n if (i<0)\n return false;\n else\n return true;\n }", "private boolean isArchive() {\n RepoPath repositoryPath = InternalRepoPathFactory.create(getRepoKey(), getPath());\n ItemInfo fileInfo = retrieveItemInfo(repositoryPath);\n return NamingUtils.getMimeType(fileInfo.getRelPath()).isArchive();\n }", "public boolean experired() {\n\t\tint month = Calendar.getInstance().get(Calendar.MONTH) + 1;\n\t\tint year = Calendar.getInstance().get(Calendar.YEAR);\n\t\tString[] parts = this.experiation.split(\"/\");\n\t\tString originalMonth = parts[0];\n\t\tint oM = Integer.parseInt(originalMonth);\n\t\tString originalYear = parts[1];\n\t\tint oY = Integer.parseInt(originalYear);\n\t\t\n\t\tif(oY < year) {\n\t\t\treturn true;\n\t\t}\n\t\tif(oY == year && oM < month) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void isNumeric() {\n assertTrue(Deadline.isNumeric(VALID_YEAR_2018));\n\n //contains other symbols -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SYMBOLS));\n\n //contains alphabets -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_ALPHABETS));\n\n //contains space -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SPACE));\n }", "public static boolean ItemType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ItemType\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, ITEM_TYPE, \"<item type>\");\n r = KindTest(b, l + 1);\n if (!r) r = GeneralItemType(b, l + 1);\n if (!r) r = FunctionTest(b, l + 1);\n if (!r) r = MapTest(b, l + 1);\n if (!r) r = ArrayTest(b, l + 1);\n if (!r) r = AtomicOrUnionType(b, l + 1);\n if (!r) r = ParenthesizedItemType(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "@Test\r\n\tvoid testYearSort() {\r\n\t\tSortedList list = new SortedList(\"List\");\r\n\t\tToDoItem newItem1 = new ToDoItem(\"Item 1\", \"2/6/20\", 1, \"Body text 1\");\r\n\t\tToDoItem newItem2 = new ToDoItem(\"Item 2\", \"2/6/21\", 1, \"Body text 2\");\r\n\t\tToDoItem newItem3 = new ToDoItem(\"Item 3\", \"1/26/21\", 1, \"Body text 3\");\r\n\t\tlist.insert(newItem1);\r\n\t\tlist.insert(newItem2);\r\n\t\tlist.insert(newItem3);\r\n\r\n\t\tif (!list.getHead().getName().equals(\"Item 1\")) {\r\n\t\t\tfail(\"Year\");\r\n\t\t}\r\n\t\tif (!list.getHead().getNext().getName().equals(\"Item 3\")) {\r\n\t\t\tfail(\"Year\");\r\n\t\t}\r\n\t\tif (!list.getTail().getName().equals(\"Item 2\")) {\r\n\t\t\tfail(\"Year\");\r\n\t\t}\r\n\t}" ]
[ "0.52163357", "0.5138454", "0.50903195", "0.5061922", "0.5017404", "0.50145084", "0.5009253", "0.4970579", "0.49609646", "0.4947778", "0.49393025", "0.49154153", "0.4911185", "0.4911001", "0.48758352", "0.48740724", "0.4873019", "0.48541394", "0.48533392", "0.48503166", "0.48217285", "0.4798352", "0.4798352", "0.4798352", "0.47849932", "0.47803935", "0.4768046", "0.47648174", "0.47391886", "0.47286326", "0.47203717", "0.47172105", "0.4703906", "0.47032776", "0.4699749", "0.46810025", "0.4668734", "0.46634153", "0.46623117", "0.46368414", "0.4632159", "0.46310234", "0.46267986", "0.46251097", "0.46052632", "0.45947918", "0.45913675", "0.45879042", "0.45799288", "0.45619068", "0.45589608", "0.45557886", "0.45489612", "0.4534672", "0.45190045", "0.45145068", "0.45105705", "0.45030656", "0.44946584", "0.4487102", "0.44812238", "0.44663626", "0.4449482", "0.44416514", "0.44382045", "0.44287747", "0.44248125", "0.44241923", "0.44199005", "0.4416602", "0.44072983", "0.43912607", "0.43836808", "0.43831062", "0.43746954", "0.43647864", "0.43615118", "0.43602914", "0.4352289", "0.43486032", "0.43428612", "0.4331228", "0.4327999", "0.43189707", "0.42956266", "0.42928004", "0.42852148", "0.42843556", "0.42795262", "0.42760685", "0.42714137", "0.42693824", "0.42631888", "0.42618322", "0.42611176", "0.42560634", "0.42555404", "0.42526236", "0.42522633", "0.42465207" ]
0.6746316
0
Tests whether the item is an atomic item of type dayTimeDuration.
public boolean isDayTimeDuration() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isDuration(ComparisonExpression comp) {\n return comp.getLhs() instanceof DurationComparable ||\n comp.getRhs() instanceof DurationComparable ||\n comp.getLhs() instanceof TimeConstantComparable ||\n comp.getRhs() instanceof TimeConstantComparable;\n }", "boolean hasDuration();", "public boolean isWholeDuration ()\r\n {\r\n if (!getNotes().isEmpty()) {\r\n Note note = (Note) getNotes().get(0);\r\n\r\n return note.getShape().isMeasureRest();\r\n }\r\n\r\n return false;\r\n }", "public boolean hasDuration() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasDuration() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean isDuration() {\n return false;\n }", "boolean isSetDuration();", "boolean isSetDuration();", "boolean isSetDuration();", "boolean hasDepositEndTime();", "boolean hasTransactionDateTime();", "boolean hasExchangeTime();", "public boolean hasTime() {\n return this.timeWrapper.isPresent();\n }", "public static boolean update(TaskTimeElement bean) {\r\n boolean ret = false;\r\n String sql = null;\r\n Statement theStatement = null;\r\n Connection theConnection = null;\r\n\r\n try {\r\n theConnection = AdminConnectionManager.getConnection(ME + \".update\");\r\n theStatement = theConnection.createStatement();\r\n sql = \"update TaskTimeElement set \" +\r\n \"DURATION=\" + bean.getDuration() +\r\n \",TASKDATE=\" + \"'\" + DatabaseBase.encodeToSql(bean.getTaskDate()) + \"'\" +\r\n \",TASKNAME=\" + \"'\" + DatabaseBase.encodeToSql(bean.getTaskName()) + \"'\" +\r\n \",USERNAME=\" + \"'\" + DatabaseBase.encodeToSql(bean.getUserName()) + \"'\" +\r\n \",ENABLED=\" + bean.isEnabled() +\r\n \" where ID = \" + bean.getId();\r\n int rowCount = theStatement.executeUpdate(sql);\r\n ret = rowCount >= 1;\r\n }\r\n catch (SQLException e) {\r\n Trace.error(\"sql=\" + sql, e);\r\n ret = false;\r\n }\r\n finally {\r\n if (theStatement != null) {\r\n try {\r\n theStatement.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theConnection != null)\r\n AdminConnectionManager.releaseConnection(theConnection);\r\n }\r\n return ret;\r\n }", "public interface TimedEntry extends DataSerializable {\n\n /**\n * The amount of time remaining before this entry expires, if applicable.\n *\n * @return The remaining amount of time.\n */\n Duration getRemainingTime();\n\n /**\n * Returns whether this entry can be considered expired.\n *\n * @return if expired.\n */\n boolean expired();\n\n /**\n * Denotes whether the timer is currently ticking down (that is, if {@link #getRemainingTime()} should be decreasing with\n * each call.\n *\n * @return <code>true</code> if so.\n */\n boolean isCurrentlyTicking();\n\n /**\n * Returns a {@link TimedEntry} that is currently ticking.\n *\n * @return An entry that represents something that's ticking down.\n */\n TimedEntry start();\n\n /**\n * Returns a {@link TimedEntry} that is currently not ticking.\n *\n * @return An entry that represents something that is not ticking down.\n */\n TimedEntry stop();\n}", "public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "public boolean isBeyondDuration( Discount discount )\n\t{\n\t\tboolean isBeyondDuration = true;\n\t\t\n\t\tif( discount.getStartDate().equals(\"ALWAYS\") || discount.getDuration().equals(\"ALWAYS\"))\n\t\t\tisBeyondDuration = false;\n\t\telse\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tSimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\tDate startdate = simpleDateFormat.parse(discount.getStartDate());\n\t\t\t\tint duration = Integer.parseInt(discount.getDuration());\n\t\t\t\t\t\n\t\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\t\tcalendar.setTime(startdate);\n\t\t\t\tcalendar.add(Calendar.DATE, duration);\n\t\t\t\tString newDate = simpleDateFormat.format(calendar.getTime());\n\t\t\t\tDate endDate = simpleDateFormat.parse(newDate);\n\t\t\t\t\t\n\t\t\t\tDate today = new Date();\n\t\t\t\t\t\n\t\t\t\tif( today.after(startdate) && today.before(endDate) )\n\t\t\t\t\tisBeyondDuration = false;\n\t\t\t} \n\t\t\tcatch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isBeyondDuration;\n\t}", "public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "protected boolean isValidDailyTimerSetting(byte[] edt) {\n\t\tif(edt == null || !(edt.length == 1)) return false;\n\t\treturn true;\n\t}", "private boolean isTimeOverlap(Item t) {\n\t\treturn t.getEndDate().equals(event.getEndDate());\n\t}", "public boolean hasDay() {\n return day_ != null;\n }", "public boolean hasDay() {\n return day_ != null;\n }", "boolean hasDateTime();", "@Override\n public boolean isEqualAt(UnitTime ut) {\n return ((LongUnitTime)ut).getValue()==this.getValue();\n }", "boolean hasTime();", "boolean hasTime();", "public abstract boolean isTypeOf(ItemType type);", "private static boolean isTime(final Object obj) {\n return timeClass != null && timeClass.isAssignableFrom(obj.getClass());\n }", "@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }", "boolean isSetRecurrenceDuration();", "@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }", "boolean hasEndTime();", "@java.lang.Override\n public boolean hasTime() {\n return instance.hasTime();\n }", "boolean hasDesiredTime();", "public boolean hasTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean isSetDay()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DAY$0) != 0;\n }\n }", "@Override\n public Duration getItemDuration() {\n return null;\n }", "boolean getItemCanBeDeleted(String itemId);", "private long getExpiringItemWithinDays(int day, ObservableList<Item> itemList) {\n LocalDate today = LocalDate.now();\n return itemList.stream().filter(item -> {\n if (item.getExpiryDate().expiryDate == null) {\n return false;\n }\n LocalDate itemExpiryDate = item.getExpiryDate().expiryDate;\n Long daysDifference = DAYS.between(today, itemExpiryDate);\n return daysDifference == day;\n }).count();\n }", "public boolean hasTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "@Override\n public void setItemDuration(Duration duration) {\n this.duration = duration;\n }", "public boolean hasExchangeTime() {\n return exchangeTime_ != null;\n }", "@Test\n\tvoid testCheckDuration2() {\n\t\tassertFalse(DataChecker.checkDuration(Duration.ofMinutes(-11)));\n\t}", "DurationTypeEnum getDurationType();", "boolean typeIsTimed() {\n return true;\n }", "@Override\n public boolean isMenorAt(UnitTime ut) {\n return ((LongUnitTime)ut).getValue()>this.getValue(); \n }", "public boolean hasDay() {\n return dayBuilder_ != null || day_ != null;\n }", "public boolean hasDay() {\n return dayBuilder_ != null || day_ != null;\n }", "public boolean hasExchangeTime() {\n return exchangeTimeBuilder_ != null || exchangeTime_ != null;\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tboolean issame = false;\r\n\t\tif(obj instanceof MediaItem) {\r\n\t\t\tMediaItem mi = (MediaItem)obj;\r\n\t\t\tboolean a = this.runTime == mi.runTime;\r\n\t\t return a;\r\n\t\t}\r\n\t\treturn issame;\r\n\t}", "boolean hasExpirationDate();", "public Period getDurationValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a duration.\");\n }", "public boolean isEnd() { return (_dateExpiration - System.currentTimeMillis()) <= 0; }", "boolean hasStartTime();", "private static boolean isValidDuration(String duration)\n {\n for (Duration d : Duration.values()) {\n if (d.name().equals(duration)) {\n return true;\n }\n }\n\n return false;\n }", "@java.lang.Override\n public boolean hasTime() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "@java.lang.Override\n public boolean hasDeletedItemKey() {\n return inventoryItemCase_ == 2;\n }", "boolean hasDay();", "boolean hasDay();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "@Test\n\tvoid testCheckDuration3() {\n\t\tassertFalse(DataChecker.checkDuration(Duration.ZERO));\n\t}", "boolean hasDowntimeJailDuration();", "public boolean isSetTime()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(TIME$2) != 0;\n }\n }", "boolean hasTimeRecord();", "@Test\n public void invalidDeletionTimesHandlingTest()\n {\n DeletionTime dt = DeletionTime.build(1, -1);\n assertFalse(dt.validate());\n\n // use the invalid deletion time for a range tombstone and aggregate it\n RangeTombstoneList rtl = new RangeTombstoneList(null, 1);\n rtl.add(new RangeTombstone(Slice.ALL, dt));\n\n // undo the aggregation and see if the deletion time is still invalid\n dt = rtl.iterator().next().deletionTime();\n assertNotNull(dt);\n assertFalse(dt.validate());\n }", "public boolean isExpired(){\r\n float empty = 0.0f;\r\n return empty == getAmount();\r\n \r\n }", "public boolean isTime() {\n return false;\n }", "public boolean isSetExpTime() {\n return this.ExpTime != null;\n }", "boolean hasToDay();", "boolean isExpire(long currentTime);", "public boolean hasTime() {\n return fieldSetFlags()[0];\n }", "boolean isItemDisabled( final Object item );", "@java.lang.Override\n public boolean hasDeletedItemKey() {\n return inventoryItemCase_ == 2;\n }", "boolean hasContainerTimestamp();", "public boolean removeItemFromCalendar(AgendaItem item) {\n return removeItemFromCalendar(item.getTitle(), item.getStart().getMillis(), item.getEnd().getMillis());\n }", "boolean hasCollectEndTime();", "@Override\n @NoProxy\n public boolean isRecurringEntity() {\n return testRecurring() ||\n hasExdates() ||\n hasRdates() ||\n hasExrules() ||\n hasRrules();\n }", "public boolean hasDailyBonus() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public boolean isMeasureTime() ;", "public boolean hasDailyBonus() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public boolean isItem(int itemId) {\n return getKey().equals(itemId);\n }", "public boolean hasTimeRecord() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean isSetTradingDay() {\n return this.tradingDay != null;\n }", "boolean hasExpiryTimeSecs();", "public static boolean isValidDuration(String duratonString) throws NumberFormatException {\n double duration = Double.parseDouble(duratonString);\n return duration > 0 && duration < 24;\n }", "boolean isValidExpTime();", "public boolean isDateTime() {\n return false;\n }", "public boolean hasEndTime() {\n return fieldSetFlags()[1];\n }", "public boolean hasDesiredTime() {\n return desiredTime_ != null;\n }", "public boolean hasTimeRecord() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "@Override\n\tprotected boolean itemExists() {\n\t\treturn false;\n\t}", "private boolean checkTime(){\n\t\treturn false;\r\n\t}", "public boolean isSetDataRetentionPeriodUnitOfMeasure()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATARETENTIONPERIODUNITOFMEASURE$28) != 0;\n }\n }", "public boolean validateTimes() {\n if (!allDay) {\n // Convert the time strings to ints\n int startTimeInt = parseTime(startTime);\n int endTimeInt = parseTime(endTime);\n\n if (startTimeInt > endTimeInt) {\n return false;\n }\n }\n return true;\n }", "private boolean inTimeScope(Expression expr, long time) {\n\n String time_start = expr.getTime_start();\n String time_end = expr.getTime_end();\n String day_start = expr.getDay_start();\n String day_end = expr.getDay_end();\n\n if (!StringHelper.isEmpty(day_start) && !StringHelper.isEmpty(day_end)) {\n\n long startTime = DateTimeHelper.dateFormat(day_start, \"yyyy-MM-dd\").getTime();\n long endTime = DateTimeHelper.dateFormat(day_end, \"yyyy-MM-dd\").getTime();\n\n if (time < startTime || time >= endTime + 24 * 3600 * 1000) {\n return false;\n }\n }\n\n if (!StringHelper.isEmpty(time_start) && !StringHelper.isEmpty(time_end)) {\n\n long startTime = DateTimeHelper\n .dateFormat(DateTimeHelper.getToday(\"yyyy-MM-dd\") + \" \" + time_start, \"yyyy-MM-dd HH:mm\").getTime();\n long endTime = DateTimeHelper\n .dateFormat(DateTimeHelper.getToday(\"yyyy-MM-dd\") + \" \" + time_end, \"yyyy-MM-dd HH:mm\").getTime();\n\n if (time < startTime || time >= endTime) {\n return false;\n }\n }\n\n int weekday = DateTimeHelper.getWeekday(new Date(time));\n \n if(expr.getWeekdayLimit()!=null&&!expr.getWeekdayLimit()[weekday]) {\n return false;\n }\n \n return true;\n }" ]
[ "0.58021224", "0.5754512", "0.56295305", "0.5496055", "0.54736197", "0.5427668", "0.53993905", "0.53993905", "0.53993905", "0.5383317", "0.50865906", "0.5072936", "0.5038732", "0.50341916", "0.49856505", "0.49770978", "0.49765626", "0.49659583", "0.49517435", "0.4935175", "0.49316913", "0.49071258", "0.48965597", "0.48944962", "0.4842406", "0.4842406", "0.4832258", "0.48296282", "0.4817216", "0.48150036", "0.48068365", "0.48064196", "0.48020613", "0.47960892", "0.47898057", "0.47821084", "0.47781038", "0.4770764", "0.4768805", "0.47676682", "0.47628108", "0.47593638", "0.47523364", "0.4748546", "0.4748004", "0.47474495", "0.47473425", "0.4733233", "0.4724468", "0.4710767", "0.4702109", "0.47019136", "0.46822938", "0.46798474", "0.46465144", "0.4643358", "0.4643213", "0.4642963", "0.4642963", "0.46273994", "0.46273994", "0.46273994", "0.46273994", "0.46273994", "0.46273994", "0.46216467", "0.46202275", "0.4617136", "0.4614337", "0.46137112", "0.4608647", "0.4605791", "0.46056062", "0.4605261", "0.46040884", "0.45985743", "0.45964095", "0.45868492", "0.4586628", "0.45810264", "0.4580198", "0.45767015", "0.4576664", "0.45616436", "0.4550623", "0.45391795", "0.45353788", "0.45347202", "0.4527649", "0.45260876", "0.45219162", "0.4506197", "0.45040625", "0.4503858", "0.44973162", "0.44972998", "0.44942272", "0.44897324", "0.44860145", "0.44823235" ]
0.62653416
0
Tests whether the item is an atomic item of type dateTime.
public boolean isDateTime() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasTransactionDateTime();", "boolean hasDateTime();", "public boolean hasDateTime() {\n return false;\n }", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "@Override\n public boolean isDateTime(Object value) {\n return value instanceof LocalDateTime\n || value instanceof OffsetDateTime\n || value instanceof ZonedDateTime;\n }", "public boolean hasCreateTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasCreateTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasCreateTime() {\n return ((bitField0_ & 0x00000200) != 0);\n }", "public boolean hasOrderDate() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasDate() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOrderDate() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasDate() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasCreateTime() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "boolean hasOrderDate();", "public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "public DateTime getDateTimeValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' does not have a DateTime.\");\n }", "public boolean hasTradeDate() {\n return ((bitField0_ & 0x00080000) == 0x00080000);\n }", "boolean hasContainerTimestamp();", "@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }", "public boolean hasTradeDate() {\n return ((bitField0_ & 0x00080000) == 0x00080000);\n }", "public boolean hasSettlementDate() {\n return ((bitField0_ & 0x00040000) == 0x00040000);\n }", "@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "public boolean hasSettlementDate() {\n return ((bitField0_ & 0x00040000) == 0x00040000);\n }", "public boolean canHaveAsModificationTime(Date date) {\r\n return (date == null) ||\r\n ( (date.getTime() >= getCreationTime().getTime()) &&\r\n (date.getTime() <= System.currentTimeMillis()) );\r\n }", "public final boolean hasAccessDateTime() {\n \treturn m_accessDate != 0L ? true : false;\n }", "public boolean hasTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "boolean hasExchangeTime();", "private boolean hasDateThreshold() {\r\n if (entity.getExpirationDate() == null) {\r\n return false;\r\n }\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.MONTH, 1);\r\n if (entity.getExpirationDate().before(calendar.getTime())) {\r\n return true;\r\n }\r\n return false;\r\n }", "boolean hasDate();", "public boolean isEqualTo(final Magnitude timeStamp) {\n this.ensureAtLeastPartResolved();\n if (timeStamp instanceof DateTime) {\n if (isNull) {\n return timeStamp.isEmpty();\n }\n\n return this.date.equals(((DateTime) timeStamp).date);\n } else {\n throw new IllegalArgumentException(\"Parameter must be of type Time\");\n }\n }", "boolean hasTradeDate();", "public boolean hasCreationTime() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasTime() {\n return this.timeWrapper.isPresent();\n }", "boolean isValidFor (@Nonnull DATATYPE aDate);", "boolean hasSettlementDate();", "boolean isSetAppliesDateTime();", "public boolean hasCreationTime() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isEqual(DateTime dt) {\n return Long.parseLong(this.vStamp) == Long.parseLong(dt.getStamp());\r\n }", "@java.lang.Override\n public boolean hasTime() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public boolean isDate() {\n if ( expiryDate==null) return false;\n else return expiryDate.isSIPDate();\n }", "public boolean hasTimestamp() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "private boolean checkTime(){\n\t\treturn false;\r\n\t}", "public boolean hasTimestamp() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasTimestamp() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasTimestamp() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean containsNow() {\r\n return contains(DateTimeUtils.currentTimeMillis());\r\n }", "public boolean hasTimestamp() {\r\n return ((bitField0_ & 0x00000001) == 0x00000001);\r\n }", "public boolean hasTimestamp() {\r\n return ((bitField0_ & 0x00000001) == 0x00000001);\r\n }", "public boolean isDate() {\n return false;\n }", "public boolean hasTimestamp() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasTimestamp() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasTimestamp() {\r\n return ((bitField0_ & 0x00000001) == 0x00000001);\r\n }", "public boolean hasTimestamp() {\r\n return ((bitField0_ & 0x00000001) == 0x00000001);\r\n }", "public boolean hasTimestamp() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean hasDate() {\n return fieldSetFlags()[5];\n }", "@java.lang.Override\n public boolean hasCreateTime() {\n return createTime_ != null;\n }", "@java.lang.Override\n public boolean hasCreateTime() {\n return createTime_ != null;\n }", "public boolean hasDate() {\n return true;\n }", "boolean hasInstant();", "public final boolean hasChangeDateTime() {\n \treturn m_changeDate != 0L ? true : false;\n }", "boolean hasTime();", "boolean hasTime();", "public boolean hasTimestamp() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "@java.lang.Override\n public boolean hasTime() {\n return instance.hasTime();\n }", "public final boolean hasModifyDateTime() {\n \treturn m_modifyDate != 0L ? true : false;\n }", "public boolean isDateType(Class<?> type) {\n\t\tif (this.isSimpleField(type)) {\n\t\t\tString typename = type.getName();\n\t\t\treturn (DATE_FIELDS.indexOf(typename) >= 0);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean hasExpirationDate();", "boolean hasStartTime();", "public boolean isDateValue()\n {\n return getFieldType().equalsIgnoreCase(TYPE_DATE);\n }", "private boolean dateExists(){\n SimpleDateFormat dateFormat = getDateFormat();\n String toParse = wheels.getDateTimeString();\n try {\n dateFormat.setLenient(false); // disallow parsing invalid dates\n dateFormat.parse(toParse);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }", "public boolean hasTime() {\n return fieldSetFlags()[0];\n }", "public boolean isSetCreateTime() {\n return this.createTime != null;\n }", "private static boolean isTime(final Object obj) {\n return timeClass != null && timeClass.isAssignableFrom(obj.getClass());\n }", "@Override\n public boolean isEqualAt(UnitTime ut) {\n return ((LongUnitTime)ut).getValue()==this.getValue();\n }", "if (payDateTime == adhocTicket.getPaidDateTime()) {\n System.out.println(\"Paid Date Time is passed\");\n }", "public boolean hasTimestamp() {\n return fieldSetFlags()[2];\n }", "public boolean hasTimestamp() {\n return result.hasTimestamp();\n }", "boolean hasCreationTime();", "public boolean hasInstant() {\n return instant_ != null;\n }", "public abstract boolean isTypeOf(ItemType type);", "boolean hasDepositEndTime();", "private static boolean isDate(final Object obj) {\n return dateClass != null && dateClass.isAssignableFrom(obj.getClass());\n }", "boolean hasCreatedAt();", "boolean hasTimeBoltABoltB();", "public boolean isTime() {\n return false;\n }", "boolean isSetDate();" ]
[ "0.6211979", "0.6152191", "0.5723941", "0.5651713", "0.5651713", "0.5651713", "0.5651713", "0.5651713", "0.5651713", "0.5639928", "0.56394154", "0.56234574", "0.56054753", "0.5592792", "0.5591679", "0.55910134", "0.556833", "0.55265516", "0.54026955", "0.5391826", "0.53756696", "0.53619033", "0.5360269", "0.53483635", "0.53380334", "0.5334829", "0.53322774", "0.5320997", "0.5317821", "0.5317821", "0.5317821", "0.5317821", "0.5317821", "0.5317821", "0.5317821", "0.5309593", "0.52969545", "0.52735734", "0.526883", "0.52547276", "0.52422893", "0.5229454", "0.52050084", "0.52004516", "0.51933455", "0.5176048", "0.5170599", "0.5170206", "0.5163101", "0.51568687", "0.51562476", "0.5153576", "0.5150888", "0.51335716", "0.51247406", "0.51004833", "0.5095819", "0.5095627", "0.50902855", "0.5085995", "0.5073934", "0.5073934", "0.506697", "0.5061504", "0.5059221", "0.50569063", "0.50569063", "0.5052348", "0.5035566", "0.5035262", "0.5035262", "0.50274503", "0.5022595", "0.5013421", "0.50127846", "0.50127846", "0.5008683", "0.5006732", "0.500565", "0.4993055", "0.49780887", "0.49676624", "0.49528977", "0.49457726", "0.4937498", "0.49244788", "0.49217567", "0.490778", "0.4904968", "0.49043486", "0.49004787", "0.4899194", "0.48821297", "0.48821294", "0.48802733", "0.4879197", "0.48779872", "0.48760346", "0.48716488", "0.48706287" ]
0.5846158
2
Tests whether the item is an atomic item of type date.
public boolean isDate() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isValidFor (@Nonnull DATATYPE aDate);", "public boolean isDate() {\n if ( expiryDate==null) return false;\n else return expiryDate.isSIPDate();\n }", "boolean hasDate();", "boolean hasOrderDate();", "public boolean isDateValue()\n {\n return getFieldType().equalsIgnoreCase(TYPE_DATE);\n }", "public boolean isDateType(Class<?> type) {\n\t\tif (this.isSimpleField(type)) {\n\t\t\tString typename = type.getName();\n\t\t\treturn (DATE_FIELDS.indexOf(typename) >= 0);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isDate(Date date){\r\n if((new Date()).getTime() < date.getTime()) return false;\r\n return true;\r\n }", "private static boolean isDate(final Object obj) {\n return dateClass != null && dateClass.isAssignableFrom(obj.getClass());\n }", "boolean isSetDate();", "boolean hasTradeDate();", "public boolean hasDate() {\n return true;\n }", "public boolean isDate(int displayType) {\n\t\treturn false;\n\t}", "public boolean checkDate(){\n Calendar c = Calendar.getInstance();\n Date currentDate = new Date(c.get(Calendar.DAY_OF_MONTH),c.get(Calendar.MONTH)+1, c.get(Calendar.YEAR));\n return (isEqualOther(currentDate) || !isEarlyThanOther(currentDate));\n\n }", "public boolean hasDate() {\n return fieldSetFlags()[5];\n }", "public boolean hasDate() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasOrderDate() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasOrderDate() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "private boolean dateExists(){\n SimpleDateFormat dateFormat = getDateFormat();\n String toParse = wheels.getDateTimeString();\n try {\n dateFormat.setLenient(false); // disallow parsing invalid dates\n dateFormat.parse(toParse);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }", "public boolean checkDate() {\n\t\tboolean cd = checkDate(this.year, this.month, this.day, this.hour);\n\t\treturn cd;\n\t}", "public boolean hasDate() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "private boolean hasDateThreshold() {\r\n if (entity.getExpirationDate() == null) {\r\n return false;\r\n }\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.MONTH, 1);\r\n if (entity.getExpirationDate().before(calendar.getTime())) {\r\n return true;\r\n }\r\n return false;\r\n }", "boolean hasAcquireDate();", "boolean hasSettlementDate();", "boolean isFilterByDate();", "boolean hasStartDate();", "public static boolean checkLot(String title, String date) throws InvalidDateValueException {\n return (checkTitle(title) && checkDate(date));\n }", "public boolean validateDate(TradeModel tradeModel)\n {\n int i = tradeModel.getMaturityDate().compareTo(LocalDate.now());\n if (i<0)\n return false;\n else\n return true;\n }", "boolean isSetFoundingDate();", "public boolean isSetDate() {\n return EncodingUtils.testBit(__isset_bitfield, __DATE_ISSET_ID);\n }", "boolean hasDateTime();", "private static boolean isDate(String token) {\n return dateRegex.matcher(token).matches();\n }", "boolean hasExpirationDate();", "public boolean hasTradeDate() {\n return ((bitField0_ & 0x00080000) == 0x00080000);\n }", "@Override\npublic final boolean eval(final Object value) {\n\n if (value instanceof Date) {\n return true;\n }\n\n return false;\n }", "public static Boolean isEntry(LocalDate date, Date dateEmployee) {\n return date.equals(convertDate(dateEmployee));\n }", "public boolean verifyReturnDate(Date date){\n\t\tLocale en = new Locale(\"en\");\n\t\tString rDate = String.format(en, \"%1$ta, %1$tb %1$te, %1$tY\", date);\n\t\treturn returnDate.getText().equals(rDate);\n\t}", "public static boolean isValidOnDate(ICS ics, AssetId id, Date date) {\n if (LOG.isTraceEnabled()) {\n LOG.trace(\"Checking to see if asset \" + id + \" is valid on \" + (date == null ? \"the site preview date, (assuming site preview is enabled).\" : date));\n }\n ics.ClearErrno();\n \n final String inListName = \"FilterAssetByDateInputList-\" + ics.genID(false);\n IList inlist = new AssetIdIList(inListName, Collections.singletonList(id));\n ics.RegisterList(inListName, inlist);\n\n final String outListName = \"FilterAssetsByDateOutputList-\" + ics.genID(false);\n \n com.openmarket.xcelerate.jsp.asset.FilterAssetsByDate tag = new com.openmarket.xcelerate.jsp.asset.FilterAssetsByDate();\n tag.setInputList(inListName);\n tag.setOutputList(outListName);\n if (date != null) {\n tag.setDate(jdbcDateFormat.format(date));\n }\n tag.doEndTag(ics, true);\n if (ics.GetErrno() < 0) {\n LOG.warn(\"Errno set by <asset:filterassetsbydate> JSP tag while attempting to filter asset \"+id+\" by date: \"+date+ \"(null date is ok). Errno: \"+ics.GetErrno());\n // note the above tag behaves erratically and errno is unreliable\n// throw new CSRuntimeException(\"Unexpected exception filtering assets by date. Input Asset: \" + id + \", date: \" + null + \" (null is ok)\", errno);\n }\n \n IList out = ics.GetList(outListName);\n ics.RegisterList(outListName, null); // tidy up!\n \n if (out == null) throw new IllegalStateException(\"Tag executed successfully but no outlist was returned\");\n if (!out.hasData()) {\n if (LOG.isTraceEnabled()) {\n LOG.trace(\"Asset \" + id + \" is not valid on the effective date.\");\n }\n return false; // no matches\n }\n String c = IListUtils.getStringValue(out, \"assettype\");\n if (!id.getType().equals(c)) {\n throw new IllegalStateException(\"Output asset is not the right type: in:\" + id + \", out:\" + c);\n }\n String cid = IListUtils.getStringValue(out, \"assetid\");\n \n boolean result = Utilities.goodString(cid) && id.getId() == Long.parseLong(cid);\n \n if (LOG.isTraceEnabled()) {\n LOG.trace(\"Asset \" + id + \" is \" + (result ? \"\" : \"not \") + \"valid on the effective date.\");\n }\n return result;\n }", "@Test\n public void equalsOk(){\n Date date = new Date(1,Month.january,1970);\n assertTrue(date.equals(date));\n }", "public abstract boolean isTypeOf(ItemType type);", "public boolean checkDateEqual(LocalDate date) {\n return date.equals(this.date);\n }", "public boolean hasTradeDate() {\n return ((bitField0_ & 0x00080000) == 0x00080000);\n }", "public boolean isSelected(Date date)\n/* */ {\n/* 200 */ Contract.asNotNull(date, \"date must not be null\");\n/* 201 */ return this.selectedDates.contains(date);\n/* */ }", "boolean hasTransactionDateTime();", "public boolean isValidDate() {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(mDate.getDate());\n int yearNow = cal.get(Calendar.YEAR);\n int monthNow = cal.get(Calendar.MONTH);\n int dayNow = cal.get(Calendar.DAY_OF_MONTH);\n cal.setTimeInMillis(selectedDate.getTimeInMillis());\n int yearSelected = cal.get(Calendar.YEAR);\n int monthSelected = cal.get(Calendar.MONTH);\n int daySelected = cal.get(Calendar.DAY_OF_MONTH);\n if (yearSelected <= yearNow) {\n if (monthSelected <= monthNow) {\n return daySelected >= dayNow;\n }\n }\n return true;\n }", "boolean hasExpireDate();", "public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "public boolean validateDate() {\r\n\t\tDate now = new Date();\r\n\t\t// expire date should be in the future\r\n\t\tif (now.compareTo(getExpireDate()) != -1)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "@Test\n public void testCanReadDate() throws Exception {\n MatcherAssert.assertThat(\n new TestJenkins().jobs().iterator().next()\n .builds().iterator().next().date(),\n new IsInstanceOf(Date.class)\n );\n }", "private static void checkDate(String date) {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n if (!date.matches(RegexPattern.DATE_PATTERN)) {\n throw new DaoException(ExceptionMessage.getMessage(ExceptionMessage.DATE_PATTERN_ERROR));\n }\n try {\n Date formatDate = simpleDateFormat.parse(date);\n if (formatDate.getTime() + TIME_IN_DAY < new Date().getTime()) {\n throw new DaoException(\"Date must be in Future\");\n }\n } catch (ParseException ex) {\n throw new DaoException(ex.getMessage());\n }\n }", "public static boolean isDateGUID(String GUID)\r\n\t{\r\n\t\treturn DATE_METADATA.contains(GUID);\r\n\t}", "public boolean dateIsEqual(Date date){\n\t\tboolean isEqual=true;\n\t\t\n\t\tif(!(date.getMonth()==month && date.getYear()==year && date.getDay()==day)){\n\t\t\tisEqual=false;\n\t\t\t\n\t\t}\n\t\t\n\t\treturn isEqual;\n\t}", "public static boolean isToday(java.util.Date date) {\n return isSameDay(date, Calendar.getInstance().getTime());\n }", "public DateAvailableVO checkDateAvailable(String date) {\n\t\treturn null;\n\t}", "public boolean isSetTransactionPostedDate() {\r\n return transactionPostedDate != null;\r\n }", "@Test\n\tpublic void testDate1() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(0);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 1900);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "@Override\n public boolean isDateAllowed(LocalDate date) {\n \n return startDates.contains(date) || endDates.contains(date);\n }", "public boolean hasBegDate() {\n return fieldSetFlags()[1];\n }", "public static boolean isToday(Date date) {\r\n\t\treturn isSameDay(date, Calendar.getInstance().getTime());\r\n\t}", "@Test\n public void test0() {\n chkDate(\"> '2013'\", true);\n\n }", "@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }", "@java.lang.Override\n public boolean hasExpirationDate() {\n return ((bitField0_ & 0x00000020) != 0);\n }", "private boolean isValidDate(String date) {\n\t Date d = null;\n\t try {\n\t\t\td = format.parse(date);\t\t\t\n\t\t\treturn d != null;\n\t\t} catch (java.text.ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean isValidForDate(LocalDate date);", "String isOoseChangeDateAllowed(Record inputRecord);", "public boolean canHaveAsModificationTime(Date date) {\r\n return (date == null) ||\r\n ( (date.getTime() >= getCreationTime().getTime()) &&\r\n (date.getTime() <= System.currentTimeMillis()) );\r\n }", "boolean hasBeginDate();", "public boolean isDateTime() {\n return false;\n }", "public boolean validateDate(String date) {\n\n\t\tDate enteredDate = null;\n\t\ttry {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tenteredDate = format.parse(date);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDate currentDate = new Date();\n\t\treturn enteredDate.before(currentDate);\n\t}", "public boolean isSetRelease_date() {\r\n return this.release_date != null;\r\n }", "public Boolean isExpired() {\n\t\tCalendar today = Calendar.getInstance();\n\t\treturn today.get(Calendar.DAY_OF_YEAR) != date.get(Calendar.DAY_OF_YEAR);\n\t}", "public boolean hasSettlementDate() {\n return ((bitField0_ & 0x00040000) == 0x00040000);\n }", "@Test\n\tpublic void testDate2() {\n\t\ttry {\n\t\t\tfinal Date date = ParadoxDate.getDateFromParadoxDate(36160);\n\t\t\tfinal Calendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(date);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.DATE) == 1);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.MONTH) == 0);\n\t\t\tAssert.assertTrue(calendar.get(Calendar.YEAR) == 100);\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail();\n\t\t}\n\t}", "@Override\n public Class<Date> getElementType() {\n return Date.class;\n }", "private boolean isOneDateMatch(final ExpressionJpa expr) {\n boolean isOneMatch = false;\n\n // 033 (R)\n for (MarcDataField field033 :\n this.marcRecord.getDataFields(\"033\")) {\n // |a (R)\n for (String date033 : field033.getValueList('a')) {\n // expression.dates\n for (int idx = 0;\n idx < expr.getDates().size();\n idx++) {\n // normalize for comparison\n if (expr.getDates().get(idx).getText().equals(\n DateNormalizer.normalizeExpr033Date(date033))) {\n isOneMatch = true;\n }\n }\n }\n }\n\n return isOneMatch;\n }", "public static boolean checkExpDate(String cS_exp_date) {\n\t\t\n\t\t\n\t\treturn true;\n\t}", "@Test\n public void shouldParseDATE() {\n printTest(\"shouldParseDATE()\");\n String typeString = getDataTypeString(DataTypes.DTYPE_DATE);\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n }", "public final boolean hasAccessDateTime() {\n \treturn m_accessDate != 0L ? true : false;\n }", "public boolean isSetRelease_date() {\n return this.release_date != null;\n }", "@Test\n public void testIsValidateDate() {\n System.out.println(\"isValidateDate\");\n String dateString = \"2016-03-23T10:25:01Z\";\n boolean expResult = true;\n boolean result = DateUtil.isValidateDate(dateString);\n assertEquals(expResult, result);\n }", "public boolean hasSettlementDate() {\n return ((bitField0_ & 0x00040000) == 0x00040000);\n }", "protected boolean isOverdue() {\n\t\t// this might be backwards, go back and check later\n\t\t/*int i = todaysDate.compareTo(returnDate);// returns 0, a positive num, or a negative num\n\t\tif (i == 0) { return false;}\t\t// the dates are equal, not overdue\n\t\telse if (i > 0) { return true; }\t// positive value if the invoking object is later than date\n\t\telse { return false; } */\t\t\t// negative value if the invoking object is earlier than date\n\t\t\n\t\t// can also do\n\t\tif (todaysDate.getTime() > returnDate.getTime() ) { return true; }\n\t\telse { return false; }\t// if the difference in time is less than or equal\n\t}", "boolean hasDeliveryDateBefore();", "public boolean removeItemFromCalendar(AgendaItem item) {\n return removeItemFromCalendar(item.getTitle(), item.getStart().getMillis(), item.getEnd().getMillis());\n }", "Date getCheckedIn();", "public final void testNoDate() {\n testTransaction1.setDate(null);\n assertFalse(testTransaction1.isValidTransaction());\n }", "public boolean isSetCreateDate() {\n return this.createDate != null;\n }", "public boolean isSetCreateDate() {\n return this.createDate != null;\n }", "public boolean lock(Date date) {\n\t\tLockTable lt;\n\t\ttry {\n\t\t\tint month = (date.getMonth() + 1);\n\t\t\tint year = (date.getYear() + 1900);\n\t\t\tProgram pr = authorizationManager.getProgram();\n\t\t\tlt = lockTableServicePublic.findMonthYear(month, year, pr);\n\t\t\tif (lt != null) {\n\t\t\t\treturn lt.isLocks();\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (RemoteException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean checkDate(String date) {\n return date.matches(regexDate);\n }", "public boolean isSetDateClose()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATECLOSE$4) != 0;\n }\n }", "boolean hasEndDate();", "public boolean verifyLeaveDate(Date date){\t\t\n\t\tLocale en = new Locale(\"en\");\t\t\n\t\tString lDate = String.format(en, \"%1$ta, %1$tb %1$te, %1$tY\", date);\n\t\treturn leaveDate.getText().equals(lDate);\n\t}", "public boolean isSetPublish_date() {\n return this.publish_date != null;\n }", "public static boolean isValidCreationTime(Date date) {\r\n \treturn \t(date!=null) &&\r\n \t\t\t(date.getTime()<=System.currentTimeMillis());\r\n }", "private boolean checkDate(PoliceObject po, LocalDate start, LocalDate end) {\n LocalDate formattedEvent = LocalDate.parse(po.getDate());\n boolean isAfter = formattedEvent.isAfter(start) || formattedEvent.isEqual(start);\n boolean isBefore = formattedEvent.isBefore(end) || formattedEvent.isEqual(end);\n return (isAfter && isBefore);\n }", "public boolean isSetExam_date() {\n return this.exam_date != null;\n }", "public boolean isSetUpdateDate() {\n return this.updateDate != null;\n }", "public boolean isSetUpdateDate() {\n return this.updateDate != null;\n }", "public boolean getOccupied(GregorianCalendar date)// --> Sjekker om lokalet er ledig på den datoen som blir tatt imot som parameter.\n\t{\n\t\tGregorianCalendar[] reserved = getReservedDates();\n\n\t\tif(reserved == null)\n\t\t\treturn false;\n\n\t\tGregorianCalendar check = Utilities.getCleanDate(date);\n\n\t\tfor(GregorianCalendar c : reserved)\n\t\t\tif(check.get(Calendar.YEAR) == c.get(Calendar.YEAR) && check.get(Calendar.MONTH) == c.get(Calendar.MONTH)\n\t\t\t\t&& check.get(Calendar.DAY_OF_MONTH) == c.get(Calendar.DAY_OF_MONTH))\n\t\t\t\treturn true;\n\n\t\treturn false;\n\t}" ]
[ "0.63616496", "0.61153567", "0.6081453", "0.60334176", "0.6007994", "0.5926123", "0.5900302", "0.5882337", "0.58757293", "0.5801781", "0.57941216", "0.57394934", "0.571372", "0.5673636", "0.56405526", "0.563568", "0.5618903", "0.5603272", "0.5594836", "0.5593626", "0.5567778", "0.556198", "0.54532313", "0.5446006", "0.5401673", "0.5381059", "0.53748274", "0.5362036", "0.53454024", "0.5340784", "0.5331047", "0.53183043", "0.5301446", "0.5287235", "0.528035", "0.5273841", "0.5267954", "0.5259317", "0.525844", "0.5254679", "0.5254141", "0.52487504", "0.5247967", "0.5245384", "0.5191919", "0.5184835", "0.5181647", "0.5163004", "0.51539785", "0.51530117", "0.51317936", "0.5112604", "0.510813", "0.5092645", "0.5091798", "0.50879806", "0.5082487", "0.5079713", "0.5071551", "0.50650686", "0.5057028", "0.5053289", "0.50367785", "0.50341195", "0.50331664", "0.50214064", "0.50195384", "0.50157565", "0.501557", "0.5003658", "0.5002531", "0.5002479", "0.5001604", "0.4996239", "0.49877748", "0.4984233", "0.49807805", "0.49745294", "0.49732247", "0.49649015", "0.49578544", "0.49565557", "0.49534127", "0.49462718", "0.4940377", "0.49253726", "0.49161422", "0.49161422", "0.4906565", "0.49029914", "0.4900697", "0.49000883", "0.48962164", "0.4894718", "0.48929423", "0.48914784", "0.48800465", "0.48707423", "0.48707423", "0.48445424" ]
0.6038704
3
Tests whether the item is an atomic item of type time.
public boolean isTime() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasTime();", "boolean hasTime();", "public boolean hasTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasTime() {\n return this.timeWrapper.isPresent();\n }", "@java.lang.Override\n public boolean hasTime() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "@java.lang.Override\n public boolean hasTime() {\n return instance.hasTime();\n }", "public boolean hasTime() {\n return fieldSetFlags()[0];\n }", "boolean hasExchangeTime();", "boolean hasDesiredTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "public boolean isSetTime()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(TIME$2) != 0;\n }\n }", "private static boolean isTime(final Object obj) {\n return timeClass != null && timeClass.isAssignableFrom(obj.getClass());\n }", "public boolean timeExists(int time) {\n Node currentNode = first;\n while(currentNode != null) {\n if(time == currentNode.getData().getIntegerTime())\n return true;\n currentNode = currentNode.getNextNode();\n }\n return false;\n }", "private boolean checkTime(){\n\t\treturn false;\r\n\t}", "public boolean hasCreateTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasCreateTime() {\n return ((bitField0_ & 0x00000200) != 0);\n }", "public boolean hasCreateTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasCreateTime() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "boolean hasStartTime();", "public boolean checkTime() {\n boolean result = false;\n long currentTime = System.currentTimeMillis();\n while (currentTime == timeFlag + 1000) {\n this.timeFlag = currentTime;\n result = true;\n return result;\n }\n return result;\n }", "boolean hasTimeBoltABoltB();", "@Override\n public boolean isEqualAt(UnitTime ut) {\n return ((LongUnitTime)ut).getValue()==this.getValue();\n }", "boolean hasTimeRecord();", "public boolean hasTimeRecord() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "@Override\n public boolean isMenorAt(UnitTime ut) {\n return ((LongUnitTime)ut).getValue()>this.getValue(); \n }", "public boolean hasTimeRecord() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "private boolean isTimeOverlap(Item t) {\n\t\treturn t.getEndDate().equals(event.getEndDate());\n\t}", "public boolean hasDesiredTime() {\n return desiredTime_ != null;\n }", "public boolean isSetTime() {\n return EncodingUtils.testBit(__isset_bitfield, __TIME_ISSET_ID);\n }", "boolean hasTimeBoltBBoltC();", "boolean hasTransactionDateTime();", "@Override\n public boolean isMayorAt(UnitTime ut) {\n return ((LongUnitTime)ut).getValue()<this.getValue();\n }", "boolean hasTimeBoltHBoltE();", "boolean hasTimeBoltCBoltD();", "public boolean hasExchangeTime() {\n return exchangeTime_ != null;\n }", "boolean typeIsTimed() {\n return true;\n }", "public boolean usesTime() {\n return uhrzeit != null;\n }", "boolean hasUseTime();", "boolean hasUseTime();", "public boolean hasTSM() {\n for (Mounted m : getEquipment()) {\n if ((m.getType() instanceof MiscType) && m.getType().hasFlag(MiscType.F_TSM)) {\n return true;\n }\n }\n return false;\n }", "boolean hasSendTime();", "boolean isExpire(long currentTime);", "boolean hasInstant();", "public boolean timeInBufferRange(long time) {\n \tif (!storage.isEmpty()) {\n if(time > storage.firstKey() && time < storage.lastKey())\n \treturn true;\n }\n \treturn false;\n }", "boolean hasTimeBoltDBoltH();", "public abstract boolean isTypeOf(ItemType type);", "public static boolean hasTime(String time) {\n String[] components = time.split(\" \");\n return components.length == 2;\n }", "public boolean hasStartTime() {\n return fieldSetFlags()[0];\n }", "public boolean hasTimeBoltABoltB() {\n return ((bitField0_ & 0x00400000) == 0x00400000);\n }", "public boolean hasExchangeTime() {\n return exchangeTimeBuilder_ != null || exchangeTime_ != null;\n }", "public boolean hasTimeBoltABoltB() {\n return ((bitField0_ & 0x00400000) == 0x00400000);\n }", "public boolean hasTimeBoltCBoltD() {\n return ((bitField0_ & 0x01000000) == 0x01000000);\n }", "private void checkPlayingAt(@NonNull TimeIntervalMatcher time) {\n checkPlaying();\n timeView.check(matches(withText(time)));\n }", "public boolean hasTimeBoltCBoltD() {\n return ((bitField0_ & 0x01000000) == 0x01000000);\n }", "boolean hasEndTime();", "public boolean hasTimeBoltBBoltC() {\n return ((bitField0_ & 0x00800000) == 0x00800000);\n }", "@java.lang.Override\n public boolean hasCreateTime() {\n return createTime_ != null;\n }", "@java.lang.Override\n public boolean hasCreateTime() {\n return createTime_ != null;\n }", "boolean hasDateTime();", "public boolean isTimeSpecificEvent() {\n return timeSpecificEvent;\n }", "public boolean hasTimeBoltBBoltC() {\n return ((bitField0_ & 0x00800000) == 0x00800000);\n }", "public boolean isMeasureTime() ;", "private boolean adjustedTimeIsSet() {\n return (adjustedTimeStamp != null);\n }", "boolean hasCurrentStateTime();", "boolean hasSubmitTime();", "public boolean isDuringTime() {\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HHmm\");\r\n\t\tint now = Integer.parseInt( sdf.format(new Date()) );\r\n for ( int i = 0; i < openTime.length; i++ )\r\n\t\t\tif ( now >= openTime[i] && now <= closeTime[i])\r\n\t\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public boolean isEqualTo(final Magnitude timeStamp) {\n this.ensureAtLeastPartResolved();\n if (timeStamp instanceof DateTime) {\n if (isNull) {\n return timeStamp.isEmpty();\n }\n\n return this.date.equals(((DateTime) timeStamp).date);\n } else {\n throw new IllegalArgumentException(\"Parameter must be of type Time\");\n }\n }", "boolean hasReceiveTime();", "public boolean canHaveAsModificationTime(Date date) {\r\n return (date == null) ||\r\n ( (date.getTime() >= getCreationTime().getTime()) &&\r\n (date.getTime() <= System.currentTimeMillis()) );\r\n }", "public boolean hasTimeBoltHBoltE() {\n return ((bitField0_ & 0x04000000) == 0x04000000);\n }", "public boolean hasDesiredTime() {\n return desiredTimeBuilder_ != null || desiredTime_ != null;\n }", "private boolean hasTimeSig (Measure measure)\r\n {\r\n for (Staff.SystemIterator sit = new Staff.SystemIterator(measure);\r\n sit.hasNext();) {\r\n Staff staff = sit.next();\r\n\r\n if (sit.getMeasure()\r\n .getTimeSignature(staff) != null) {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }", "public boolean hasTimeBoltHBoltE() {\n return ((bitField0_ & 0x04000000) == 0x04000000);\n }", "public boolean addTime(double time) {\n this.time += time;\n if(time > 0)\n return true;\n else \n return false;\n }", "public boolean contains(long time) {\n\t\treturn ((start <= time) && (time <= end));\n\t}", "public boolean hasInstant() {\n return instant_ != null;\n }", "public boolean hasUpdateTime() {\n return ((bitField0_ & 0x00000400) != 0);\n }", "StatusTimeType getStatusTime();", "boolean hasContainerTimestamp();", "boolean hasDepositEndTime();", "public boolean isSetStartTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(STARTTIME$22) != null;\r\n }\r\n }", "public boolean isSetCreateTime() {\n return this.createTime != null;\n }", "public boolean isSetUpdate_time() {\n return this.update_time != null;\n }", "public boolean isBefore(Time time) {\n\tboolean check = true;\n\t\tif(this.getHour() > time.getHour()) {\n\t\t\tcheck = false;\n\t\t} else if((this.getHour() == time.getHour()) && (this.getMinutes() > time.getMinutes())){\n\t\t\tcheck = false;\n\t\t}\n\t\treturn check;\n\t}", "public void check(int time)\n {\n if(time < 0)\n {\n throw new IllegalArgumentException();\n }\n }", "public boolean isReadyForAction(long time) {\n return System.currentTimeMillis() - lastAction > time;\n }", "public boolean hasUseTime() {\n return useTime_ != null;\n }", "public boolean hasUseTime() {\n return useTime_ != null;\n }", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();" ]
[ "0.63790584", "0.63790584", "0.63762975", "0.63480294", "0.6251614", "0.61799735", "0.6153907", "0.60824275", "0.6081526", "0.59741575", "0.59300864", "0.59300864", "0.59300864", "0.59300864", "0.59300864", "0.59300864", "0.59235996", "0.59228647", "0.5920002", "0.5915737", "0.5874687", "0.5868048", "0.58582366", "0.57835686", "0.5775622", "0.57493275", "0.5727351", "0.57208425", "0.57194555", "0.5698442", "0.5679971", "0.56661576", "0.55179965", "0.5475617", "0.5465308", "0.54631156", "0.54461354", "0.5440315", "0.54350585", "0.54284537", "0.5421561", "0.54091805", "0.5401961", "0.54002726", "0.54002726", "0.5387896", "0.53820795", "0.5369668", "0.53631675", "0.53624284", "0.53491807", "0.5325491", "0.532544", "0.5305861", "0.5301386", "0.529617", "0.5278028", "0.52735466", "0.527126", "0.52506864", "0.52482426", "0.52364945", "0.52303904", "0.52303904", "0.5221881", "0.52204996", "0.52097225", "0.5198146", "0.5189755", "0.5186516", "0.51506925", "0.5145687", "0.5145371", "0.51405764", "0.51306576", "0.5125688", "0.51165885", "0.5108045", "0.5104865", "0.50995505", "0.50993323", "0.5097921", "0.50942653", "0.5094162", "0.5087787", "0.5065298", "0.5065001", "0.50636923", "0.5053205", "0.5033079", "0.5022614", "0.5020189", "0.5013057", "0.5013057", "0.50118285", "0.50118285", "0.50118285", "0.50118285", "0.50118285", "0.50118285" ]
0.6106801
7
Tests whether the item contains a representation of date or time (or both).
public boolean hasDateTime() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasDateTime();", "public boolean isDateTime() {\n return false;\n }", "private boolean dateExists(){\n SimpleDateFormat dateFormat = getDateFormat();\n String toParse = wheels.getDateTimeString();\n try {\n dateFormat.setLenient(false); // disallow parsing invalid dates\n dateFormat.parse(toParse);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }", "boolean hasDate();", "public boolean selectDateTime(String timeString);", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "public boolean hasTime() {\n return this.timeWrapper.isPresent();\n }", "boolean hasTime();", "boolean hasTime();", "public boolean isDate() {\n return false;\n }", "public static boolean isValidDatetime(String test) {\n String[] components = test.split(\" \");\n String date = components[0];\n String startTime = components[1];\n\n //If the format is dd/mm/yyyy hhmm k\n if (components.length == 3) {\n String duration = components[2];\n return isValidDate(date) && isValidTime(startTime) && isValidDuration(duration);\n //If the format is dd/mm/yyyy hhmm to hhmm\n } else if (components.length == 4) {\n String endtime = components[3];\n return isValidDate(date) && isValidTime(startTime) && isValidTime(endtime);\n } else {\n return false;\n }\n }", "public boolean hasDate() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasDate() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "@java.lang.Override\n public boolean hasTime() {\n return instance.hasTime();\n }", "public boolean hasDate() {\n return true;\n }", "private static boolean isTime(final Object obj) {\n return timeClass != null && timeClass.isAssignableFrom(obj.getClass());\n }", "private boolean checkTime(){\n\t\treturn false;\r\n\t}", "public boolean isTime() {\n return false;\n }", "public boolean isDate(int displayType) {\n\t\treturn false;\n\t}", "public boolean hasDate() {\n return fieldSetFlags()[5];\n }", "public boolean hasTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "@Override\n public boolean isDateTime(Object value) {\n return value instanceof LocalDateTime\n || value instanceof OffsetDateTime\n || value instanceof ZonedDateTime;\n }", "public boolean isDateType(Class<?> type) {\n\t\tif (this.isSimpleField(type)) {\n\t\t\tString typename = type.getName();\n\t\t\treturn (DATE_FIELDS.indexOf(typename) >= 0);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean timeValidation(String time){\n if(! time.matches(\"(?:[0-1][0-9]|2[0-4]):[0-5]\\\\d\")){\n return false;\n }\n return true;\n }", "private static boolean isDate(final Object obj) {\n return dateClass != null && dateClass.isAssignableFrom(obj.getClass());\n }", "public static boolean isValidDate(String time, boolean hasTime) throws InvalidDateFormatException {\n String correctFormatNoDate = \"yyyy-MM-dd\";\n String correctFormatWithDate = \"yyyy-MM-dd HH:mm\";\n try {\n if (hasTime) {\n LocalDateTime.parse(time, DateTimeFormatter.ofPattern(correctFormatWithDate));\n } else {\n LocalDate.parse(time, DateTimeFormatter.ofPattern(correctFormatNoDate));\n }\n return true;\n } catch (DateTimeException err) {\n throw new InvalidDateFormatException(false);\n }\n }", "public boolean timeValidated(Event e) {\n\t\tLocalDate date = e.sDate;\n\t\tLocalTime stime = e.sTime;\n\t\tLocalTime etime = e.eTime;\n\t\tArrayList<Event> list = new ArrayList<Event>();\n\t\tif(map.containsKey(date)) {\n\t\t\tlist = map.get(date);\n\n\t\t\tfor(int i = 0; i<list.size(); i++) {\n\t\t\t\tEvent evnt = list.get(i);\n\n\t\t\t\tif(e.sTime.equals(evnt.sTime) || e.eTime.equals(evnt.eTime)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t//check for start times\n\t\t\t\tif(e.sTime.isBefore(evnt.sTime)) {\n\t\t\t\t\tif(!e.eTime.isBefore(evnt.sTime)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//check for end time\n\t\t\t\tif(e.sTime.isAfter(evnt.sTime)) {\n\t\t\t\t\tif(!e.sTime.isAfter(evnt.eTime)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}", "@java.lang.Override\n public boolean hasTime() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public boolean validateTimes() {\n if (!allDay) {\n // Convert the time strings to ints\n int startTimeInt = parseTime(startTime);\n int endTimeInt = parseTime(endTime);\n\n if (startTimeInt > endTimeInt) {\n return false;\n }\n }\n return true;\n }", "boolean hasTimeRecord();", "public boolean hasTime() {\n return fieldSetFlags()[0];\n }", "@Test\n public void test_column_type_detection_datetimes_03() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"13:15:00\", XSDDatatype.XSDtime), true, Types.TIME, Time.class.getCanonicalName());\n }", "boolean hasStartTime();", "public static boolean hasTime(String time) {\n String[] components = time.split(\" \");\n return components.length == 2;\n }", "boolean isValidFor (@Nonnull DATATYPE aDate);", "public boolean hasCreateTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasCreateTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "public void verifyTime(@NonNull final LocalDateTime date) {\n onView(viewMatcher).check(ViewAssertions.matches(withText(date.format(timeFormat))));\n }", "@Test\n public void test_column_type_detection_datetimes_04() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"13:15:00.123\", XSDDatatype.XSDtime), true, Types.TIME, Time.class.getCanonicalName());\n }", "public boolean hasCreateTime() {\n return ((bitField0_ & 0x00000200) != 0);\n }", "boolean hasTransactionDateTime();", "public boolean isDateValue()\n {\n return getFieldType().equalsIgnoreCase(TYPE_DATE);\n }", "boolean hasEndTime();", "boolean hasContainerTimestamp();", "boolean hasDesiredTime();", "public boolean usesTime() {\n return uhrzeit != null;\n }", "boolean isFilterByDate();", "private boolean isTimeOverlap(Item t) {\n\t\treturn t.getEndDate().equals(event.getEndDate());\n\t}", "boolean hasExchangeTime();", "public boolean checkData(String data){\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t dateFormat.setLenient(false);\n\t try {\n\t\t\tdateFormat.parse(data.trim());\n\t\t} catch (java.text.ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t return true;\n\t}", "private boolean validateDateAndTime(String date) {\n boolean isValid;\n Calendar prevDay;\n\n if(date != null && !date.isEmpty() && date.length() < MIN_DATE_LEN) {\n isValid = false;\n } else {\n prevDay = Calendar.getInstance(Locale.CANADA);\n prevDay.add(Calendar.DATE, -1); // All days valid from one day in the past\n Calendar cal = DateUtility.convertToDateObj(date);\n isValid = cal != null && cal.after(prevDay);\n }\n\n return isValid;\n }", "public static boolean isValidTime(String test) {\n try {\n LocalTime.parse(test, TIME_FORMATTER);\n LocalTime.parse(test, TIME_FORMATTER_STRICT);\n return true;\n } catch (DateTimeParseException ex) {\n return false;\n }\n }", "public boolean hasCreateTime() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public boolean checkDate() {\n\t\tboolean cd = checkDate(this.year, this.month, this.day, this.hour);\n\t\treturn cd;\n\t}", "private boolean checkDate(PoliceObject po, LocalDate start, LocalDate end) {\n LocalDate formattedEvent = LocalDate.parse(po.getDate());\n boolean isAfter = formattedEvent.isAfter(start) || formattedEvent.isEqual(start);\n boolean isBefore = formattedEvent.isBefore(end) || formattedEvent.isEqual(end);\n return (isAfter && isBefore);\n }", "public static boolean isSingleDayEvent(String test) {\n String[] components = test.split(\" \");\n String startTime = components[1];\n\n //If the format is dd/mm/yyyy hhmm k\n if (components.length == 3) {\n String duration = components[2];\n return endOnTheSameDay (startTime, duration);\n //If the format is dd/mm/yyyy hhmm to hhmm\n } else if (components.length == 4) {\n String endtime = components[3];\n return endTimeAfterStart(startTime, endtime);\n } else {\n return false;\n }\n }", "private static boolean isDate(String token) {\n return dateRegex.matcher(token).matches();\n }", "@java.lang.Override\n public boolean hasCreateTime() {\n return createTime_ != null;\n }", "@java.lang.Override\n public boolean hasCreateTime() {\n return createTime_ != null;\n }", "boolean hasOrderDate();", "public boolean canHaveAsModificationTime(Date date) {\r\n return (date == null) ||\r\n ( (date.getTime() >= getCreationTime().getTime()) &&\r\n (date.getTime() <= System.currentTimeMillis()) );\r\n }", "private boolean checkDate(String date) {\n return date.matches(regexDate);\n }", "public static boolean isDateGUID(String GUID)\r\n\t{\r\n\t\treturn DATE_METADATA.contains(GUID);\r\n\t}", "@Test\n public void testIsValidateDate() {\n System.out.println(\"isValidateDate\");\n String dateString = \"2016-03-23T10:25:01Z\";\n boolean expResult = true;\n boolean result = DateUtil.isValidateDate(dateString);\n assertEquals(expResult, result);\n }", "public boolean isDate() {\n if ( expiryDate==null) return false;\n else return expiryDate.isSIPDate();\n }", "private static void isDateTime(String filters[]) throws WrongQueryFormatException {\n\t\tSimpleDateFormat format = new SimpleDateFormat(DateOperations.dateFormat);\n\t\ttry {\n\t\t\tDate startDate = format.parse(filters[3] + \" \" + filters[4]);\n\t\t\tDate endDate = format.parse(filters[5] + \" \" + filters[6]);\n\t\t\tif (startDate.after(endDate)) {\n\t\t\t\tthrow new WrongQueryFormatException(\"Start date,time should be before the end date/time\");\n\t\t\t}\n\t\t} catch (ParseException e) {\n\t\t\tthrow new WrongQueryFormatException(\"Wrong format of date, format is yyyy-MM-dd HH:MM\");\n\t\t}\n\t}", "public static boolean dateFormatCheck(String date)\r\n\t{\r\n\t\treturn date.matches(\"(0?[1-9]|[12][0-9]|3[01])-(0?[1-9]|1[012])-((19|20)\\\\d\\\\d)\");\t\r\n\t}", "public void testElementListWithFormatAndConverterType() {\n ElementListWithFormatAndConverterTypeTestDTO obj = new ElementListWithFormatAndConverterTypeTestDTO();\n obj.elementList = new ArrayList<Date>();\n obj.elementList.add(getDateForFormatAndConverter(\"28.02.2007:15:21:27\"));\n obj.elementList.add(getDateForFormatAndConverter(\"01.03.2007:15:21:27\"));\n assertTrue(JSefaTestUtil.serialize(XML, obj).indexOf(\"2007-02-28T14:21:27.000-01:00\") >= 0);\n assertTrue(JSefaTestUtil.serialize(XML, obj).indexOf(\"2007-03-01T14:21:27.000-01:00\") >= 0);\n }", "public boolean hasTimeRecord() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "@Test\n public void test_column_type_detection_datetimes_02() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"2013-04-08\", XSDDatatype.XSDdate), true, Types.DATE, Date.class.getCanonicalName());\n }", "public boolean hasTimeRecord() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "boolean isSetDate();", "boolean hasStartDate();", "public boolean looksLikeISO8601(String str) {\n if (str.length() < 5 || !Character.isDigit(str.charAt(0)) || !Character.isDigit(str.charAt(3)) || str.charAt(4) != '-') {\n return false;\n }\n return true;\n }", "public boolean timeExists(int time) {\n Node currentNode = first;\n while(currentNode != null) {\n if(time == currentNode.getData().getIntegerTime())\n return true;\n currentNode = currentNode.getNextNode();\n }\n return false;\n }", "private boolean isValidDate(String date) {\n\t Date d = null;\n\t try {\n\t\t\td = format.parse(date);\t\t\t\n\t\t\treturn d != null;\n\t\t} catch (java.text.ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "@Test\n public void shouldParseDATE() {\n printTest(\"shouldParseDATE()\");\n String typeString = getDataTypeString(DataTypes.DTYPE_DATE);\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n }", "boolean hasCollectEndTime();", "boolean isSetFoundingDate();", "protected boolean isValidDateTimeFormat(String str) {\n SimpleDateFormat inputFormat = new SimpleDateFormat(\"dd/MM/yyy hhmm\");\n try {\n inputFormat.parse(str);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }", "private static boolean dateValid(int[] time ) { \r\n\t\tfor ( int i = 0 ; i < time.length; i++) \r\n\t\t\tif (time[i] >2400 || time[i] < 0 ) \r\n\t\t\t\treturn false;\r\n\t\treturn true;\t\t\r\n\t}", "@Override\npublic final boolean eval(final Object value) {\n\n if (value instanceof Date) {\n return true;\n }\n\n return false;\n }", "boolean hasCreationTime();", "public void testElementListWithFormat() {\n ElementListWithFormatTestDTO obj = new ElementListWithFormatTestDTO();\n obj.elementList = new ArrayList<Date>();\n obj.elementList.add(getDateForFormat(\"28.02.2007:15:21:27\"));\n obj.elementList.add(getDateForFormat(\"01.03.2007:15:21:27\"));\n assertTrue(JSefaTestUtil.serialize(XML, obj).indexOf(\"28.02.2007:15:21:27\") >= 0);\n assertTrue(JSefaTestUtil.serialize(XML, obj).indexOf(\"01.03.2007:15:21:27\") >= 0);\n }", "private boolean dateTypeAnalyzerLR(String dateTimeDescr) {\r\n\t\t// general format for DATETIME declaration\r\n\t\tfinal String dateTimeRegex = Keywords.DATETIME.name() + \"\\\\[\\\\\\\".*\\\\\\\"\\\\]\";\r\n\t\tif (!dateTimeDescr.matches(dateTimeRegex)) {\r\n\t\t\tlog.error(\"DATETIME type declaration '\" + dateTimeDescr + \r\n\t\t\t\t\t\"' is in a wrong format.\", new ParserException());\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t// get and validate the DATETIME pattern\r\n\t\ttry {\t\r\n\t\t\tint s = dateTimeDescr.indexOf(\"[\\\"\") + 1;\r\n\t\t\tint e = dateTimeDescr.lastIndexOf(\"\\\"]\");\r\n\t\t\tfinal String pattern = dateTimeDescr.substring(s, e);\r\n\t\t\tDateTimeFormatter.ofPattern(pattern);\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(\"Pattern of DATETIME declaration '\" + dateTimeDescr + \r\n\t\t\t\t\t\"' is invalid.\", new ParserException());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// no syntax error in this type declaration\r\n\t\treturn true;\r\n\t}", "public static boolean checkDate(String dates, String times) {\n if (dates.matches(\"\\\\d\\\\d/\\\\d/\\\\d\\\\d\\\\d\\\\d\") || dates.matches(\"\\\\d/\\\\d\\\\d/\\\\d\\\\d\\\\d\\\\d\") || dates.matches(\"\\\\d\\\\d/\\\\d\\\\d/\\\\d\\\\d\\\\d\\\\d\")) {\n if (times.matches(\"\\\\d\\\\d:\\\\d\\\\d\") || times.matches(\"\\\\d:\\\\d\\\\d\"))\n return true;\n else\n return false;\n\n } else return false;\n\n }", "public static boolean isTimeAfter(String time)\n\t{\n\t\treturn isTimeAfter(time, getDateTimeFormat());\n\t}" ]
[ "0.6994938", "0.639423", "0.6350139", "0.63142765", "0.6277839", "0.6249701", "0.6249701", "0.6249701", "0.6249701", "0.6249701", "0.6249701", "0.61876726", "0.61706036", "0.61706036", "0.61683244", "0.6113741", "0.5999236", "0.59912026", "0.5983805", "0.5982766", "0.5977288", "0.5975169", "0.5974649", "0.592952", "0.58920527", "0.58910567", "0.58859515", "0.5883976", "0.5869101", "0.5863726", "0.5782232", "0.5746666", "0.57434195", "0.57406515", "0.5734972", "0.5728135", "0.5725947", "0.57154125", "0.57061124", "0.5697078", "0.5695642", "0.5692006", "0.5678769", "0.56647", "0.56647", "0.56647", "0.56647", "0.56647", "0.56647", "0.56647", "0.56639224", "0.5659314", "0.56440455", "0.564292", "0.56422544", "0.5638338", "0.56375974", "0.5618832", "0.5615669", "0.5615608", "0.5608544", "0.56076574", "0.5589864", "0.5589755", "0.55530304", "0.5549407", "0.55458826", "0.55393374", "0.5538837", "0.549323", "0.54863286", "0.54863286", "0.54805744", "0.54780084", "0.5463826", "0.5461296", "0.5454853", "0.54499817", "0.5443728", "0.54029274", "0.5401792", "0.53962094", "0.53895485", "0.53774685", "0.5345568", "0.53322077", "0.5329815", "0.53121245", "0.5304639", "0.5301958", "0.5301027", "0.52946126", "0.52924615", "0.5288607", "0.5283011", "0.52562904", "0.5255432", "0.5254363", "0.525336", "0.5247258" ]
0.6314043
4
Tests whether the item is an atomic item of type anyURI.
public boolean isAnyURI() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isAny() {\n return m_item.getSchemaComponent().type() == SchemaBase.ANY_TYPE;\n }", "public boolean isGenericURI() {\n // presence of the host (whether valid or empty) means\n // double-slashes which means generic uri\n return (m_host != null);\n }", "protected boolean isInlineItem(String nsURI, String lName) {\n return (FO_URI.equals(nsURI) \n && (lName.equals(\"bidi-override\") \n || lName.equals(\"character\") \n || lName.equals(\"external-graphic\") \n || lName.equals(\"instream-foreign-object\")\n || lName.equals(\"inline\") \n || lName.equals(\"inline-container\")\n || lName.equals(\"leader\") \n || lName.equals(\"page-number\") \n || lName.equals(\"page-number-citation\")\n || lName.equals(\"basic-link\")\n || (lName.equals(\"multi-toggle\")\n && (getNameId() == FO_MULTI_CASE \n || findAncestor(FO_MULTI_CASE) > 0))\n || (lName.equals(\"footnote\") && !isOutOfLineFODescendant)\n || isNeutralItem(nsURI, lName)));\n }", "protected boolean isBlockOrInlineItem(String nsURI, String lName) {\n return (isBlockItem(nsURI, lName) || isInlineItem(nsURI, lName));\n }", "protected boolean isReadOnlyURI(URI uri)\n {\n if (uri.isArchive())\n {\n return isReadOnlyURI(URI.createURI(uri.authority()));\n }\n \n return !uri.isPlatformResource() && (uri.isRelative() || !uri.isFile());\n }", "boolean hasUri();", "public boolean isItemLocal ();", "public boolean isAssetSpecial(T asset);", "public boolean isSetUri() {\n return this.uri != null;\n }", "protected boolean isNeutralItem(String nsURI, String lName) {\n return (FO_URI.equals(nsURI) \n && (lName.equals(\"multi-switch\") \n || lName.equals(\"multi-properties\")\n || lName.equals(\"wrapper\") \n || (!isOutOfLineFODescendant && lName.equals(\"float\"))\n || lName.equals(\"retrieve-marker\")));\n }", "public boolean effectiveBooleanValue(XPathContext context) throws XPathException {\n ItemType type = argument[0].getItemType(context.getConfiguration().getTypeHierarchy());\n if (type == AnyItemType.getInstance()) {\n return super.effectiveBooleanValue(context);\n } else {\n return argument[0].effectiveBooleanValue(context);\n }\n }", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "@Override\r\n\tpublic boolean itemExists(String absPath) throws RepositoryException {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean resourceExist(URI uri) throws StorageSecuirtyException {\n\t\treturn false;\n\t}", "boolean hasItemStorage();", "public AnyURIElements getAnyURIAccess() {\n\t\treturn pAnyURI;\n\t}", "boolean hasFeedItem();", "public boolean hasItem() {\n return null != item;\n }", "private final boolean IsAtomic(String expression) {\r\n if (this._kripke.Atoms.contains(expression)) {\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "public org.apache.axis2.databinding.types.URI getAnyURI() {\n return localAnyURI;\n }", "@Override\n\tprotected boolean itemExists() {\n\t\treturn false;\n\t}", "public abstract boolean contains(Object item);", "boolean hasDidUri();", "public boolean isUri() {\n return isUri;\n }", "@Override\r\n\tpublic boolean equals(Object ob){\n\t\tItem itemob=(Item)ob;\t//transfer object type to Item type\r\n\t\tif(this.UID==itemob.UID && this.TITLE==itemob.TITLE && this.NOOFCOPIES==itemob.NOOFCOPIES) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static boolean checkFullItem(int id) throws IOException\n\t{\n\t\tif(id == 0)\n\t\t\treturn false;\n\t\t//special cases ex. boots\n\t\tif(id == 3047 || id == 3006 || id == 3009 || id == 3020 || id == 3111 || id == 3117 || id == 3158)\n\t\t\treturn true;\n\t\t\n\t\t//old boot enchantments\n\t\tif(id >= 1300 && id <= 1334)\n\t\t\treturn true;\n\t\t\n\t\t//sated devourer\n\t\tif(id == 3931 || id == 1415 || id == 1411)\n\t\t\treturn true;\n\t\t\n\t\t//sightstone\n\t\tif(id == 2049)\n\t\t\treturn true;\n\t\t\n\t\tif(id == 3930)\n\t\t\treturn true;\n\t\t\n\t\t//DNE anymore item?\n\t\tif(id == 2043 || id == 3932)\n\t\t\treturn false;\n\t\t\n\t\t//System.out.println(\"ID: \" + id);\n\t\tURL url = new URL(\"https://global.api.pvp.net/api/lol/static-data/na/v1.2/item/\" + id + \"?itemData=into&api_key=\" + API);\n\t\tInputStream is = url.openStream();\n\t\tJsonReader rdr = Json.createReader(is);\n\t\tJsonObject obj = rdr.readObject();\n\t\treturn !obj.containsKey(\"into\");\n\t}", "protected boolean isMatchingElement(String uri, String localName) {\n return (uri.equals(this.uri) && localName.equals(this.localName)) ||\n (parentMatchLevel > 0 &&\n ((uri.equals(URI_RDF) && localName.equals(LOCAL_NAME_RDF_BAG)) ||\n (uri.equals(URI_RDF) && localName.equals(LOCAL_NAME_RDF_LI))));\n }", "public boolean isItem(int itemId) {\n return getKey().equals(itemId);\n }", "@Override\n\tpublic boolean canHaveAsContent(Item item) {\n\t\treturn false;\n\t}", "public boolean contains(E item) {\n\n return bstContains(item, root);\n }", "public static boolean m39041i(Uri uri) {\n return \"android.resource\".equals(m39043k(uri));\n }", "public static final boolean isAny(String value) {\r\n return value != null && value.equals(ANY_VALUE);\r\n }", "public static boolean m39042j(Uri uri) {\n return \"data\".equals(m39043k(uri));\n }", "@Override\n public Bln item(final QueryContext qc, final InputInfo ii) throws QueryException {\n if(single) {\n final Item item = expr.item(qc, info);\n return Bln.get(!item.isEmpty() && eval(item));\n }\n\n // iterative evaluation\n final Iter iter = expr.atomIter(qc, info);\n for(Item item; (item = qc.next(iter)) != null;) {\n if(eval(item)) return Bln.TRUE;\n }\n return Bln.FALSE;\n }", "public boolean hasItem() {\n return this.item != null;\n }", "static boolean isRedstoneChannelItem(Item item) {\n return (item instanceof ItemBlock &&\n (((ItemBlock)item).getBlock() == ModBlocks.signalTransmitterBlock\n || ((ItemBlock)item).getBlock() == ModBlocks.signalReceiverBlock\n || ((ItemBlock)item).getBlock() == ModBlocks.wirelessLockBlock\n || ((ItemBlock)item).getBlock() == ModBlocks.wirelessButtonBlock));\n }", "public abstract boolean isTypeOf(ItemType type);", "public boolean isAnyAllowed() {\n return _types.size() == 0 || hasType(JSONSchemaTypes.ANY.getClass());\n }", "boolean hasExtensionFeedItem();", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TransferItem)) {\r\n return false;\r\n }\r\n TransferItem other = (TransferItem) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean contains(Type item);", "@Override\n\tpublic boolean okToTraverse(Level3Element ele)\n\t{\n\t\treturn !ubiqueIDs.contains(ele.getUri());\n\t}", "public static boolean m39038f(Uri uri) {\n String uri2 = uri.toString();\n if (uri2.startsWith(Media.EXTERNAL_CONTENT_URI.toString()) || uri2.startsWith(Media.INTERNAL_CONTENT_URI.toString())) {\n return true;\n }\n return false;\n }", "public static boolean m39039g(Uri uri) {\n return \"asset\".equals(m39043k(uri));\n }", "public boolean contains( AnyType x )\r\n\t{\r\n\t\treturn contains( x, root );\r\n\t}", "public void setAnyURI(org.apache.axis2.databinding.types.URI param) {\n this.localAnyURI = param;\n }", "public boolean matchesAny() {\n return value == ANY;\n }", "public final boolean isThereSomeQualifierUri() {\n\t\treturn !qualifiersList.isEmpty();\n\t}", "boolean isAnyTypeReference();", "public boolean handles(Uri uri) {\n return C8904b.m21373c(uri);\n }", "public static AnyURI parse(javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n AnyURI object = new AnyURI();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n\n return object;\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n while (!reader.isEndElement()) {\n if (reader.isStartElement()) {\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.microsoft.com/2003/10/Serialization/\",\n \"anyURI\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.setAnyURI(org.apache.axis2.databinding.utils.ConverterUtil.convertToAnyURI(\n content));\n } else {\n reader.getElementText(); // throw away text nodes if any.\n }\n } // End of if for expected property start element\n\n else {\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" +\n reader.getName());\n }\n } else {\n reader.next();\n }\n } // end of while loop\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public boolean contains(IAtom atom) {\n if (atoms == null) return false;\n for (IAtom localAtom : atoms) {\n if (localAtom == atom) return true;\n }\n return false;\n }", "public boolean hasPermission(Uri uri)\n\t{\n\t\treturn getPermissibleRoot(uri) != null;\n\t}", "public static boolean carriesNearItContent(Intent intent) {\n return intent.hasExtra(NearItIntentConstants.CONTENT);\n }", "public boolean has(Object item) {\n JMLListEqualsNode<E> ptr = this;\n //@ maintaining (* no earlier element is elem_equals to item *);\n while (ptr != null) {\n if (elem_equals(ptr.val, item)) {\n return true;\n }\n ptr = ptr.next;\n }\n return false;\n }", "public static boolean removeAlarm(Uri uri) {\r\n\r\n boolean removed = false;\r\n SharedPreferences sharedPreferences = AppContext.getContext().\r\n getSharedPreferences(StringConstants.ALARM_STORE_FILE_NAME,\r\n Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = sharedPreferences.edit();\r\n try {\r\n editor.remove(uri.toString());\r\n removed = editor.commit();\r\n } catch (NullPointerException exception) {\r\n exception.printStackTrace();\r\n }\r\n return removed;\r\n\r\n }", "public boolean matches(String uri);", "public boolean isReference() {\n AnnotatedBase comp = m_item.getSchemaComponent();\n return comp instanceof IReference && ((IReference)comp).getRef() != null;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Item)) {\n return false;\n }\n Item other = (Item) object;\n if ((this.itemid == null && other.itemid != null) || (this.itemid != null && !this.itemid.equals(other.itemid))) {\n return false;\n }\n return true;\n }", "public boolean contains (Object item){\n\t\t// compute the hash table index\n\t\t\t\tint index = (item.hashCode() & Integer.MAX_VALUE) % table.length;\n\n\t\t\t\t// find the item and return false if item is in the ArrayList\n\t\t\t\tif (table[index].contains((T)item))\n\t\t\t\t\treturn true;\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t}", "public boolean isSpecified(String uri, String local)\n {\n int index = getIndex (uri, local);\n return isSpecified(index);\n }", "public boolean contains(AnyType x) {\r\n\t\treturn contains(x, root);\r\n\t}", "public boolean containsAtMostOneItem() {\n boolean contains;\n if (start==null | start.next==null) {\n contains = true;\n }\n return contains;\n }", "public boolean hasItemStorage() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "@Override\n public boolean isAResource() { return true; }", "public static boolean m39035c(Uri uri) {\n return \"file\".equals(m39043k(uri));\n }", "public boolean hasItemStorage() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public static boolean isAtomic(byte dataType) {\n return ((dataType == BYTEARRAY) ||\n (dataType == CHARARRAY) ||\n (dataType == BIGCHARARRAY) ||\n (dataType == INTEGER) ||\n (dataType == BIGINTEGER) ||\n (dataType == BIGDECIMAL) ||\n (dataType == LONG) ||\n (dataType == FLOAT) ||\n (dataType == DOUBLE) ||\n (dataType == BOOLEAN) ||\n (dataType == BYTE) ||\n (dataType == DATETIME) ||\n (dataType == GENERIC_WRITABLECOMPARABLE));\n }", "boolean hasFeedItemSetLink();", "private boolean isOmimEntry(Term term) {\n for (Dbxref xref : term.getXrefs()) {\n if (xref.getName().startsWith(\"OMIM\"))\n return true;\n }\n return false;\n }", "public boolean itemExist(Object item) {\r\n\t\tfor(int i = 0; i < getItemCount(); i++)\r\n\t\t\tif(getItem(i).equals(item))\r\n\t\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "private static boolean isAccented(Item item) {\n\t\treturn (item.getFeatures().isPresent(\"accent\") || item.getFeatures().isPresent(\"endtone\"));\n\t}", "public boolean isUri(String obj) {\r\n//\t\treturn obj.matches(\"(([a-zA-Z][0-9a-zA-Z+\\\\\\\\-\\\\\\\\.]*:)?/{0,2}[0-9a-zA-Z;/?:@&=+$\\\\\\\\.\\\\\\\\-_!~*'()%]+)?(#[0-9a-zA-Z;/?:@&=+$\\\\\\\\.\\\\\\\\-_!~*'()%]+)?\");\r\n\t\treturn false;\r\n\t}", "public final void mT__14() throws RecognitionException {\n try {\n int _type = T__14;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:14:7: ( 'AnyURI' )\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:14:9: 'AnyURI'\n {\n match(\"AnyURI\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "private boolean isDocumentUriCached(@NonNull final Context context, @Nullable final Uri uri) {\n if (isContentUri(uri) && isDocumentsProviderCached(context, uri.getAuthority())) {\n final List<String> paths = uri.getPathSegments();\n if (paths.size() == 2) {\n return DOCPROVIDER_PATH_DOCUMENT.equals(paths.get(0));\n } else if (paths.size() == 4) {\n return DOCPROVIDER_PATH_TREE.equals(paths.get(0)) && DOCPROVIDER_PATH_DOCUMENT.equals(paths.get(2));\n }\n }\n return false;\n }", "public boolean equals(Object p_test) {\n if (p_test instanceof URI) {\n URI testURI = (URI) p_test;\n if (((m_scheme == null && testURI.m_scheme == null) ||\n (m_scheme != null && testURI.m_scheme != null &&\n m_scheme.equals(testURI.m_scheme))) &&\n ((m_userinfo == null && testURI.m_userinfo == null) ||\n (m_userinfo != null && testURI.m_userinfo != null &&\n m_userinfo.equals(testURI.m_userinfo))) &&\n ((m_host == null && testURI.m_host == null) ||\n (m_host != null && testURI.m_host != null &&\n m_host.equals(testURI.m_host))) &&\n m_port == testURI.m_port &&\n ((m_path == null && testURI.m_path == null) ||\n (m_path != null && testURI.m_path != null &&\n m_path.equals(testURI.m_path))) &&\n ((m_queryString == null && testURI.m_queryString == null) ||\n (m_queryString != null && testURI.m_queryString != null &&\n m_queryString.equals(testURI.m_queryString))) &&\n ((m_fragment == null && testURI.m_fragment == null) ||\n (m_fragment != null && testURI.m_fragment != null &&\n m_fragment.equals(testURI.m_fragment)))) {\n return true;\n }\n }\n return false;\n }", "public static boolean evalExtract(SpItem spItem) {\n SpItem parent = spItem.parent();\n if (parent == null) {\n return false;\n }\n\n // So far there's only one illegal case.\n if ((spItem instanceof SpObs) && (parent instanceof SpObsLink)) {\n return false;\n }\n\n return true;\n }", "public boolean m1183a(Uri uri) {\n if (uri == null) {\n throw new NullPointerException();\n }\n try {\n String host = uri.getHost();\n for (String endsWith : this.kf) {\n if (host.endsWith(endsWith)) {\n return true;\n }\n }\n return false;\n } catch (NullPointerException e) {\n return false;\n }\n }", "public static boolean isAOInstrument(ISPObsComponent obsComp) {\n return (obsComp.getType().broadType.equals(AOConstants.AO_BROAD_TYPE));\n }", "public URI toAnyURI(\n ){\n return toIRI();\n }", "boolean hasFeedItemTarget();", "public boolean hasAny(Intent intent, String... extras) {\n for (String extra : extras) {\n if (intent.hasExtra(extra)) {\n return true;\n }\n }\n return false;\n }", "private static boolean shouldStoreArtifact(Artifact artifact) {\n String ref = artifact.getReference();\n return ArtifactTypes.EMBEDDED_BASE64.getMimeType().equals(artifact.getType())\n && !(ref == null || ref.isEmpty());\n }", "@Override\n public boolean equals(Object obj){\n boolean isEqual = false;\n if (this.getClass() == obj.getClass())\n {\n ItemID itemID = (ItemID) obj;\n if (itemID.id.equals(this.id))\n isEqual = true;\n }\n \n return isEqual;\n }", "public boolean contains(E item) {\n if (item == null) {\n throw new NullPointerException();\n }\n else {\n DoublyLinkedNode<E> iter = head.getNext();\n while (iter.getNext() != null) {\n if (iter.getData().equals(item)) {\n return true;\n }\n iter = iter.getNext();\n }\n return false;\n }\n }", "boolean canRead(ItemState itemState) throws ItemNotFoundException, RepositoryException;", "public abstract boolean oidExists(String oid);", "public boolean contains(T item) {\n Iterator<T> iterator = this.iterator();\n while (iterator.hasNext()) {\n if (iterator.next().equals(item))\n return true;\n }\n\n return false;\n }", "@Override\n public boolean isMaybeAnyStr() {\n checkNotPolymorphicOrUnknown();\n return (flags & (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER)) == (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER); // note: ignoring excluded_strings and included_strings, see javadoc\n }", "private boolean processPendingItems() {\n ShortcutInfo shortcut = null;\n try {\n synchronized (this.mPendingItems) {\n if (this.mPendingItems.size() == 0) {\n return false;\n }\n PendingItem item = (PendingItem) this.mPendingItems.pop();\n }\n return true;\n } finally {\n if (shortcut != null) {\n if (shortcut.getBitmapPath() == null) {\n removeIcon(shortcut);\n }\n shortcut.clearFlags(2048);\n }\n }\n }", "private boolean isArchive() {\n RepoPath repositoryPath = InternalRepoPathFactory.create(getRepoKey(), getPath());\n ItemInfo fileInfo = retrieveItemInfo(repositoryPath);\n return NamingUtils.getMimeType(fileInfo.getRelPath()).isArchive();\n }", "public boolean has(String itemName);", "public boolean hasItem() {\n return (this.curItem != null);\n }", "@Override\n public boolean equals(Object object)\n {\n if (!(object instanceof ScStoreOrderItem))\n {\n return false;\n }\n ScStoreOrderItem other = (ScStoreOrderItem) object;\n if ((this.idItem == null && other.idItem != null) || (this.idItem != null && !this.idItem.equals(other.idItem)))\n {\n return false;\n }\n return true;\n }" ]
[ "0.61039716", "0.5999573", "0.56763285", "0.5476604", "0.53898615", "0.5340523", "0.52673835", "0.521988", "0.520569", "0.51140815", "0.50989926", "0.5090564", "0.5090564", "0.5090564", "0.5090564", "0.5090564", "0.5090564", "0.5090564", "0.5066551", "0.50646114", "0.5058378", "0.501876", "0.5017821", "0.5013262", "0.4996942", "0.4953459", "0.49458426", "0.493802", "0.49296898", "0.4891838", "0.48862752", "0.48820293", "0.48425955", "0.48256072", "0.48228335", "0.48196918", "0.48195747", "0.48042634", "0.47817415", "0.4776101", "0.47689793", "0.47649032", "0.47583327", "0.47502038", "0.4736636", "0.47316372", "0.47226053", "0.47217706", "0.47211683", "0.47056437", "0.4703162", "0.46966988", "0.46903476", "0.46818227", "0.46774566", "0.46748334", "0.46735996", "0.46628857", "0.46590942", "0.46334976", "0.46223655", "0.46222317", "0.46211782", "0.46129495", "0.46126196", "0.46094084", "0.46040314", "0.4603914", "0.4598113", "0.4588238", "0.45833144", "0.45801964", "0.45801562", "0.45706683", "0.45547107", "0.45508114", "0.45501006", "0.45498934", "0.45276272", "0.4527171", "0.45231107", "0.45115155", "0.45056877", "0.44991335", "0.4492874", "0.4490837", "0.44900268", "0.4485159", "0.44797832", "0.44787377", "0.44738096", "0.4466993", "0.4459182", "0.44515264", "0.44514394", "0.4447704", "0.4444188", "0.44402453", "0.4433691", "0.443349" ]
0.5906708
2
Tests whether the item is an atomic item of type hexBinary.
public boolean isHexBinary() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isBinary();", "public byte[] getBinaryValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a hexBinary.\");\n }", "public boolean isAssetSpecial(T asset);", "public static boolean isBinaryType(TableColumnInfo columnInfo) {\n boolean result = false;\n int type = columnInfo.getDataType();\n if (type == Types.BINARY\n || type == Types.BLOB\n || type == Types.LONGVARBINARY\n || type == Types.VARBINARY)\n {\n result = true;\n }\n return result;\n }", "boolean haveMBQuant()\n {\n return ((mbType & QUANT) != 0);\n }", "public boolean isBinary()\n {\n return false;\n }", "public static boolean isAtomic(byte dataType) {\n return ((dataType == BYTEARRAY) ||\n (dataType == CHARARRAY) ||\n (dataType == BIGCHARARRAY) ||\n (dataType == INTEGER) ||\n (dataType == BIGINTEGER) ||\n (dataType == BIGDECIMAL) ||\n (dataType == LONG) ||\n (dataType == FLOAT) ||\n (dataType == DOUBLE) ||\n (dataType == BOOLEAN) ||\n (dataType == BYTE) ||\n (dataType == DATETIME) ||\n (dataType == GENERIC_WRITABLECOMPARABLE));\n }", "public boolean isBinary() {\n return checkBinary(root);\n }", "public abstract boolean contains(Object item);", "public final boolean isIntegral() {\n return this.equals(BYTE)\n || this.equals(CODE)\n || this.equals(SHORT)\n || this.equals(INT)\n || this.equals(LONG)\n || this.equals(UBYTE)\n || this.equals(UINT)\n || this.equals(ULONG)\n || this.equals(USHORT);\n }", "public boolean isBinary() {\n return this.isHexBinary() || this.isBase64Binary();\n }", "public boolean isContradicting(Item item){\r\n if(item.getType() == BASEBALL_BAT.getType()) {\r\n if (unitMap.containsKey(FOOTBALL.getType())) return true;\r\n else return false;\r\n }\r\n if (item.getType() ==FOOTBALL.getType()){\r\n if (unitMap.containsKey(BASEBALL_BAT.getType())) return true;\r\n else return false;\r\n }\r\n return false;\r\n }", "public boolean contains (Object item){\n\t\t// compute the hash table index\n\t\t\t\tint index = (item.hashCode() & Integer.MAX_VALUE) % table.length;\n\n\t\t\t\t// find the item and return false if item is in the ArrayList\n\t\t\t\tif (table[index].contains((T)item))\n\t\t\t\t\treturn true;\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t}", "private final boolean IsAtomic(String expression) {\r\n if (this._kripke.Atoms.contains(expression)) {\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "public boolean contains(E item) {\n\n return bstContains(item, root);\n }", "public boolean hasBASECURRENCYID() {\n return fieldSetFlags()[2];\n }", "boolean hasPrimitive();", "public boolean cannonHasItem(Block b, int id, int num) {\n\t\tDispenser dispenser = (Dispenser) b.getState();\n\t\tif (dispenser.getInventory() != null) {\n\t\t\tfor (ItemStack item : dispenser.getInventory().getContents()) {\n\t\t\t\tif (item != null && item.getTypeId() == id)\n\t\t\t\t\tif (item.getAmount() >= num)\n\t\t\t\t\t\tnum = 0;\n\t\t\t\t\telse\n\t\t\t\t\t\tnum = num - item.getAmount();\n\t\t\t\tif (num <= 0)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "boolean hasSurrogateType();", "public boolean hasBunho() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean item(int i) {\n\t\treturn x[i] == 1;\n\t}", "public boolean hasItemStorage() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean hasItemStorage() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "boolean hasBinaryData();", "public boolean hasBunho() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasBunho() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "private static boolean isAtomic(Object o) {\n return o instanceof AtomicReference\n || o instanceof AtomicBoolean\n || o instanceof AtomicInteger\n || o instanceof AtomicLong;\n }", "boolean hasBunho();", "boolean hasBunho();", "public abstract boolean isTypeOf(ItemType type);", "public boolean hasItem() {\n return null != item;\n }", "boolean hasBasisValue();", "public boolean isBinary() {\n boolean result = true;\n Queue<Node<T>> data = new LinkedList<>();\n data.offer(this.root);\n while (!data.isEmpty()) {\n Node<T> element = data.poll();\n if (!(element.leaves().size() <= 2)) {\n result = false;\n break;\n }\n for (Node<T> child : element.leaves()) {\n data.offer(child);\n }\n }\n return result;\n }", "public boolean isCashTrx() {\n return \"X\".equals(getTenderType());\n }", "public boolean hasBunho() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "@Override public byte isBitShape(Type t) { throw AA.unimpl(); }", "public boolean contains(Type item);", "@Override\r\n\tpublic boolean equals(Object ob){\n\t\tItem itemob=(Item)ob;\t//transfer object type to Item type\r\n\t\tif(this.UID==itemob.UID && this.TITLE==itemob.TITLE && this.NOOFCOPIES==itemob.NOOFCOPIES) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "boolean isMBIntra()\n {\n return ((mbType & INTRA) != 0);\n }", "private boolean checkBinary(Node current) {\n boolean binary = true;\n int size = current.children.size();\n if (size > 2 && size != 0) {\n binary = false;\n } else if (size == 1) {\n binary = checkBinary(current.children.get(0));\n } else if (size == 2) {\n binary = checkBinary(current.children.get(0));\n if (binary) {\n binary = checkBinary(current.children.get(1));\n }\n }\n return binary;\n }", "boolean hasItemStorage();", "public boolean isBankrupt() {\n\t\tif (money < 0) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean isAtomic(Object o) {\n return isAtomic(findType(o));\n }", "public boolean isBullish(){\n return (Double.compare(this.open, this.close) < 0) ? true : false;\r\n }", "boolean hasCompoundKey();", "static boolean isRedstoneChannelItem(Item item) {\n return (item instanceof ItemBlock &&\n (((ItemBlock)item).getBlock() == ModBlocks.signalTransmitterBlock\n || ((ItemBlock)item).getBlock() == ModBlocks.signalReceiverBlock\n || ((ItemBlock)item).getBlock() == ModBlocks.wirelessLockBlock\n || ((ItemBlock)item).getBlock() == ModBlocks.wirelessButtonBlock));\n }", "@Override\n\tpublic boolean canHaveAsContent(Item item) {\n\t\treturn false;\n\t}", "org.apache.xmlbeans.XmlBoolean xgetIsManaged();", "boolean hasTransactionAmountMicros();", "boolean supportsBinaryInProc();", "public boolean containsAMneumonics() {\n\t\tswitch(this) {\n\t\t\n\t\tcase BR -> \t\t{return true;}\n\t\tcase BRLE -> \t{return true;}\n\t\tcase BRLT -> \t{return true;}\n\t\tcase BREQ -> \t{return true;}\n\t\tcase BRNE -> \t{return true;}\n\t\tcase BRGE -> \t{return true;}\n\t\tcase BRGT -> \t{return true;}\n\t\tcase BRV -> \t{return true;}\n\t\tcase BRC -> \t{return true;}\n\t\tcase CALL -> \t{return true;}\n\t\t\n\t\tdefault -> {return false;}\n\t\n\t\t}\n\t\t\n\t}", "public static boolean UpdateBinIntersection(Item item) {\r\n for (int i = 0; i < BIN_HITBOXES.size(); i++) {\r\n String key = (String) BIN_HITBOXES.keySet().toArray()[i];\r\n Vector2[] data = BIN_HITBOXES.get(key);\r\n if (Collides(item.Position, item.HitboxWidthHeight, data[0], data[1])) {\r\n item.Bin = key;\r\n return true;\r\n }\r\n }\r\n item.Bin = null;\r\n return false;\r\n }", "boolean canBuy( final Item item )\n {\n return !ship.contains( item ) && item.getPrice() <= credits;\n }", "public static boolean hasBinaryContent(Node node) throws RepositoryException {\n return (isFile(node) &&\n node.hasNode(JCRConstants.JCR_CONTENT) &&\n hasOrHadType(node.getNode(JCRConstants.JCR_CONTENT), JCRConstants.NT_RESOURCE));\n }", "public static boolean is_hex(BigInteger bi, BigInteger[] hexes)\n {\n\tint i = START;\n\twhile(!hexes[i].equals(bi0) && !hexes[i].equals(bi))\n\t ++i;\n\tif(hexes[i].equals(bi))\n\t return true;\n\treturn false;\n }", "boolean hasByte();", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (!(o instanceof BinaryType)) return false;\n BinaryType binario = (BinaryType) o;\n return Objects.equals(this.getValue(), binario.getValue());\n }", "public boolean hasItem() {\n return this.item != null;\n }", "public boolean isBinaryExpositionSelected();", "public boolean isBinary() {\n/* Queue<Node<E>> treeData = new LinkedList<>();\n treeData.offer(this.root);\n int counter;\n boolean isBinary = true;\n while (!treeData.isEmpty() && isBinary) {\n counter = 0;\n Node<E> el = treeData.poll();\n for (Node<E> child : el.leaves()) {\n treeData.offer(child);\n if (++counter > 2) {\n isBinary = false;\n }\n }\n }\n return isBinary;*/\n\n int counter = 0;\n boolean isBinary = true;\n Iterator it = iterator();\n while (it.hasNext() && isBinary) {\n counter = 0;\n Node<E> currentNode = (Node<E>) it.next();\n for (Node<E> child : currentNode.leaves()) {\n counter++;\n if (counter > 2) {\n isBinary = false;\n }\n }\n }\n return isBinary;\n }", "public boolean effectiveBooleanValue(XPathContext context) throws XPathException {\n ItemType type = argument[0].getItemType(context.getConfiguration().getTypeHierarchy());\n if (type == AnyItemType.getInstance()) {\n return super.effectiveBooleanValue(context);\n } else {\n return argument[0].effectiveBooleanValue(context);\n }\n }", "public void checkItem() {\n Entity t = BombermanGame.checkCollisionItem(this.rectangle);\n if (t instanceof SpeedItem) {\n speed ++;\n ((SpeedItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof FlameItem) {\n flame = true;\n ((FlameItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof BombItem) {\n max_bomb ++;\n ((BombItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof Portal) {\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n }", "public boolean contains(T item) {\n int listSize = numItemInList();\n if (listSize == 0) {\n return false;\n }\n\n if (item.getClass() == ShadowSquare.class) {\n ShadowSquare givenSQ = (ShadowSquare) item;\n for (int i = 0; i < listSize; i++) {\n ShadowSquare listSQ = (ShadowSquare) list[startIndex + i];\n if (listSQ.getX() == givenSQ.getX() && listSQ.getY() == givenSQ.getY()) {\n return true;\n }\n }\n }\n\n for (int i = 0; i < listSize; i++) {\n if (list[i + startIndex].equals(item)) {\n return true;\n }\n }\n return false;\n }", "public boolean isBomb() {\n return type.equalsIgnoreCase(\"bomb\");\n }", "boolean hasNumb();", "@Override\n public Bln item(final QueryContext qc, final InputInfo ii) throws QueryException {\n if(single) {\n final Item item = expr.item(qc, info);\n return Bln.get(!item.isEmpty() && eval(item));\n }\n\n // iterative evaluation\n final Iter iter = expr.atomIter(qc, info);\n for(Item item; (item = qc.next(iter)) != null;) {\n if(eval(item)) return Bln.TRUE;\n }\n return Bln.FALSE;\n }", "boolean isTypeRealSprite(short type)\r\n {\r\n int oil;\r\n for (oil = 0; oil < rhPtr.rhMaxOI; oil++)\r\n {\r\n if (rhPtr.rhOiList[oil].oilOi != -1)\r\n {\r\n if (rhPtr.rhOiList[oil].oilType == type)\r\n {\r\n if ((rhPtr.rhOiList[oil].oilOEFlags & CObjectCommon.OEFLAG_SPRITES) != 0 && (rhPtr.rhOiList[oil].oilOEFlags & CObjectCommon.OEFLAG_QUICKDISPLAY) == 0)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean isBreedingItem(ItemStack item) {\n\t\treturn getBreed().getBreedingItem() == item.getItem();\n\t}", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "boolean hasItemId();", "public boolean isBreedingItem(ItemStack stack) {\n return TEMPTATION_ITEMS.test(stack);\n }", "public static boolean isIntegral(Object number) {\n\t\treturn isIntegralClass(number.getClass());\n\t}", "public boolean hasHat() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean isOne() {\n\n return realPart == 1d && imaginaryPart == 0d;\n }", "public static boolean addItem(item item) {\n try {\n PreparedStatement st = conn.prepareStatement(\"INSERT INTO iteminformation VALUES(?,?,?,?,?,?,?,?,?,?)\");\n st.setInt(1, item.getItemID());\n st.setString(2, item.getOwnerID());\n st.setString(3, item.getName());\n st.setInt(4, item.getStatus());\n st.setString(5, item.getDescription());\n st.setString(6, item.getCategory());\n st.setBlob(7, item.getImage1());\n st.setBlob(8, item.getImage2());\n st.setBlob(9, item.getImage3());\n st.setBlob(10, item.getImage4());\n st.execute();\n return true;\n } catch (SQLException ex) {\n Logger.getLogger(itemDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return false;\n }", "@Override\n public boolean isMaybeAnyNum() {\n checkNotPolymorphicOrUnknown();\n return (flags & NUM) == NUM;\n }", "public boolean hasHat() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "boolean hasQuantity();", "public boolean isStoneBrick() {\n return this.type == Type.STONEBRICK;\n }", "private boolean contains( AnyType x, BinaryNode<AnyType> t )\r\n\t{\r\n\t\tif( t == null )\r\n\t\t\treturn false;\r\n\r\n\t\tint compareResult = x.compareTo( t.element );\r\n\r\n\t\tif( compareResult < 0 )\r\n\t\t\treturn contains( x, t.left );\r\n\t\telse if( compareResult > 0 )\r\n\t\t\treturn contains( x, t.right );\r\n\t\telse\r\n\t\t\treturn true; // Match\r\n\t}", "public boolean isBol ()\r\n\t{\r\n\t\treturn m_bol;\r\n\t}", "public boolean hasShirt() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasShirt() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "@Override\n public boolean contains(T item) {\n return itemMap.containsKey(item);\n }", "boolean hasBasis();", "public boolean isHoja(T x) {\n return isHojaR(raiz, x);\n }", "boolean hasMoneyValue();", "boolean hasMoneyValue();", "protected <T> boolean isPrimitiveOrWrapper(Class<T> entity) {\n\t\tboolean b = ClassUtils.isPrimitiveOrWrapper(entity);\n\t\tif (b)\n\t\t\treturn true;\n\t\tClass<?> tempClass = ClassUtils.resolvePrimitiveClassName(entity.getName());\n\t\tif (tempClass != null)\n\t\t\treturn true;\n\t\tif (entity == String.class)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "boolean isItemDisabled( final Object item );", "@Test\n public void shouldParseBIT() {\n printTest(\"shouldParseBIT()\");\n String typeString = getDataTypeString(DataTypes.DTYPE_BIT);\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n }", "@java.lang.Override\n public boolean hasBasis() {\n return basis_ != null;\n }", "public boolean isKnownPrimitive() {\r\n return id > 0 && type != null;\r\n }", "@java.lang.Override\n public boolean hasBasisValue() {\n return typeCase_ == 13;\n }", "public boolean hasInteger32() {\n return result.hasInteger32();\n }" ]
[ "0.545474", "0.54334694", "0.52605337", "0.5249433", "0.5242218", "0.5171263", "0.51528925", "0.51099664", "0.50952816", "0.5088763", "0.5064314", "0.5063744", "0.5034915", "0.50254804", "0.49786118", "0.49685255", "0.4958206", "0.49433833", "0.49309394", "0.4915454", "0.49134007", "0.490008", "0.4899566", "0.48699853", "0.4858892", "0.48535421", "0.48441482", "0.48374182", "0.48374182", "0.4833361", "0.48306915", "0.48125443", "0.48084566", "0.48023206", "0.4799456", "0.47982153", "0.47868145", "0.47768205", "0.4771111", "0.47693357", "0.47675812", "0.4753734", "0.47457442", "0.47360662", "0.47349608", "0.4717576", "0.4707699", "0.47075623", "0.47040573", "0.46939957", "0.46920216", "0.46799445", "0.46784127", "0.46530566", "0.46490332", "0.46486035", "0.4647853", "0.46470216", "0.4634319", "0.46331695", "0.46276352", "0.46138653", "0.46116298", "0.4607783", "0.45983446", "0.45890102", "0.45872256", "0.45775545", "0.45686525", "0.45686525", "0.45686525", "0.45686525", "0.45686525", "0.45686525", "0.45686525", "0.4566987", "0.45647734", "0.45525438", "0.45431095", "0.45381546", "0.45254844", "0.45249274", "0.45233586", "0.4518554", "0.45161167", "0.45066082", "0.45028266", "0.45008838", "0.4499279", "0.44945285", "0.449432", "0.449114", "0.449114", "0.44873494", "0.44872376", "0.4486444", "0.4485057", "0.44850323", "0.44850117", "0.44800287" ]
0.48650515
24
Tests whether the item is an atomic item of type base64Binary.
public boolean isBase64Binary() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasBase64() {\n return result.hasBase64();\n }", "public static boolean isBase64(byte[] bytes){\n\t\ttry {\n\t\t\treturn isBase64(new ByteArrayInputStream(bytes));\n\t\t} catch (IOException x){\n\t\t\t// This can't happen.\n\t\t\t// The input and output streams were constructed\n\t\t\t// on memory structures that don't actually use IO.\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isBinary() {\n return this.isHexBinary() || this.isBase64Binary();\n }", "public static boolean isBase64(File fIn) throws IOException {\n\t\treturn isBase64(new BufferedInputStream(new FileInputStream(fIn)));\n\t}", "public static boolean isBase64(InputStream in) throws IOException {\n\t\tlong numBase64Chars = 0;\n\t\tint numPadding = 0;\n\t\tint read;\n\n\t\twhile ((read = in.read()) != -1){\n\t\t\tread = reverseBase64Chars[read];\n\t\t\tif (read == NON_BASE_64){\n\t\t\t\treturn false;\n\t\t\t} else if (read == NON_BASE_64_WHITESPACE){\n\t\t\t} else if (read == NON_BASE_64_PADDING){\n\t\t\t\tnumPadding++;\n\t\t\t\tnumBase64Chars++;\n\t\t\t} else if (numPadding > 0){\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\tnumBase64Chars++;\n\t\t\t}\n\t\t}\n\t\tif (numBase64Chars == 0) return false;\n\t\tif (numBase64Chars % 4 != 0) return false;\n\t\treturn true;\n\t}", "public static boolean isBase64(String string){\n\t\treturn isBase64(string.getBytes());\n\t}", "public boolean isBase64Active(){\n return base64;\n }", "public static boolean isBinaryType(TableColumnInfo columnInfo) {\n boolean result = false;\n int type = columnInfo.getDataType();\n if (type == Types.BINARY\n || type == Types.BLOB\n || type == Types.LONGVARBINARY\n || type == Types.VARBINARY)\n {\n result = true;\n }\n return result;\n }", "boolean hasBinaryData();", "boolean isBinary();", "public boolean isBinary()\n {\n return false;\n }", "public boolean isBinaryEncoding()\r\n\t{\r\n\t\treturn binary != null;\r\n\t}", "public static boolean isBase64(String string, String enc) throws UnsupportedEncodingException {\n\t\treturn isBase64(string.getBytes(enc));\n\t}", "public static boolean isAtomic(byte dataType) {\n return ((dataType == BYTEARRAY) ||\n (dataType == CHARARRAY) ||\n (dataType == BIGCHARARRAY) ||\n (dataType == INTEGER) ||\n (dataType == BIGINTEGER) ||\n (dataType == BIGDECIMAL) ||\n (dataType == LONG) ||\n (dataType == FLOAT) ||\n (dataType == DOUBLE) ||\n (dataType == BOOLEAN) ||\n (dataType == BYTE) ||\n (dataType == DATETIME) ||\n (dataType == GENERIC_WRITABLECOMPARABLE));\n }", "private boolean isBinaryMessage(Object anObject) {\n\t\tif(anObject.getClass() == this.getClass()) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean supportsBinaryInProc();", "public static boolean validMagicNumbers( final BufferedInputStream bin ) throws IOException\n {\n final List<String> validMagicBytesCollection = JiveGlobals.getListProperty( \"plugins.upload.magic-number.values.expected-value\", Arrays.asList( \"504B0304\", \"504B0506\", \"504B0708\" ) );\n for ( final String entry : validMagicBytesCollection )\n {\n final byte[] validMagicBytes = StringUtils.decodeHex( entry );\n bin.mark( validMagicBytes.length );\n try\n {\n final byte[] magicBytes = new byte[validMagicBytes.length];\n int remaining = validMagicBytes.length;\n while (remaining > 0) {\n final int location = validMagicBytes.length - remaining;\n final int count = bin.read(magicBytes, location, remaining);\n if (count == -1) {\n break;\n }\n remaining -= count;\n }\n if ( remaining <= 0 && Arrays.equals( validMagicBytes, magicBytes ) )\n {\n return true;\n }\n }\n finally\n {\n bin.reset();\n }\n }\n\n return false;\n }", "public boolean hasInteger64() {\n return result.hasInteger64();\n }", "boolean getBinaryFileAttribute();", "public static boolean hasBinaryContent(Node node) throws RepositoryException {\n return (isFile(node) &&\n node.hasNode(JCRConstants.JCR_CONTENT) &&\n hasOrHadType(node.getNode(JCRConstants.JCR_CONTENT), JCRConstants.NT_RESOURCE));\n }", "public boolean isBinary() {\n return checkBinary(root);\n }", "private static boolean isBinaryType(int jdbcType) {\r\n switch (jdbcType) {\r\n case Types.BINARY:\r\n case Types.VARBINARY:\r\n case Types.LONGVARBINARY:\r\n return true;\r\n default:\r\n return false;\r\n }\r\n }", "public javax.activation.DataHandler getBase64Binary() {\n return localBase64Binary;\n }", "public static boolean isBinaryStreamAssignable(int jdbcType) {\r\n return jdbcType == Types.BLOB || isBinaryType(jdbcType);\r\n }", "public boolean hasItemStorage() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean hasItemStorage() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "private boolean isPlainXml(byte[] bytes) {\n return !substring(bytes, ZIP_MAGIC.length()).equals(ZIP_MAGIC) &&\n (substring(bytes, XML_MAGIC.length()).equals(XML_MAGIC) ||\n substring(bytes, APP_MAGIC_DEPTH).contains(APP_MAGIC));\n }", "private static boolean shouldStoreArtifact(Artifact artifact) {\n String ref = artifact.getReference();\n return ArtifactTypes.EMBEDDED_BASE64.getMimeType().equals(artifact.getType())\n && !(ref == null || ref.isEmpty());\n }", "@Override\n public boolean getContentBinary() throws WebdavException {\n return false;\n }", "public boolean isBinary() {\n boolean result = true;\n Queue<Node<T>> data = new LinkedList<>();\n data.offer(this.root);\n while (!data.isEmpty()) {\n Node<T> element = data.poll();\n if (!(element.leaves().size() <= 2)) {\n result = false;\n break;\n }\n for (Node<T> child : element.leaves()) {\n data.offer(child);\n }\n }\n return result;\n }", "private Base64(){}", "public static boolean isBinaryResource(Node node) throws RepositoryException {\n return (node.getName().equals(JCRConstants.JCR_CONTENT) &&\n hasOrHadType(node, JCRConstants.NT_RESOURCE));\n }", "public abstract boolean isTypeOf(ItemType type);", "public byte[] getBinaryValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a hexBinary.\");\n }", "public boolean canHandleBinaryNatively()\n/* */ {\n/* 391 */ return false;\n/* */ }", "boolean haveMBQuant()\n {\n return ((mbType & QUANT) != 0);\n }", "public boolean isBinaryExpositionSelected();", "public static boolean basicBinaryStrTests()\n\t{\n\t\tSystem.out.println(\"Beginning Basic Binary String Tests...\");\n\t\tStringBuilder unscrambled = stringtoBinary(TEST_STR);\n\t\tStringBuilder scrambled = basicScramble(unscrambled, false);\n\t\tunscrambled = basicScramble(scrambled, true);\n\t\t\n\t\tbyte[] decoded = array(unscrambled.toString());\n\t\tbyte[] encoded = array(scrambled.toString());\n\t\t\n\t\tfinal String decoded_text = new String(decoded);\n\t\tfinal boolean match = decoded.equals(encoded), \n\t\t\t\tsuccess = decoded_text.equals(TEST_STR) && !match;\n\t\t\n\t\tSystem.out.println(\"Encoded: \"+new String(encoded));\n\t\tSystem.out.println(\"Decoded: \"+new String(decoded));\n\t\tSystem.out.println(\"Match: \" + match);\n\t\tSystem.out.println(\"Success: \" + success + \"\\n\");\n\t\treturn success;\n\t}", "public /*byte[]*/String BinaryCaster(Object item){\n String Sitem = Integer.toBinaryString((int)item);\n //byte[] b = new byte[Sitem.length()];\n //for(int i=0;i<Sitem.length();i++){\n // b[i] = (byte)Sitem.charAt(i);\n //}\n //return b;\n return Sitem;\n }", "boolean hasByte();", "boolean hasItemStorage();", "public static Term mime_decode_1(Binary base64) {\n return Binary.of(Base64.getMimeDecoder().decode(base64.toByteArray()));\n }", "private boolean checkBinary(Node current) {\n boolean binary = true;\n int size = current.children.size();\n if (size > 2 && size != 0) {\n binary = false;\n } else if (size == 1) {\n binary = checkBinary(current.children.get(0));\n } else if (size == 2) {\n binary = checkBinary(current.children.get(0));\n if (binary) {\n binary = checkBinary(current.children.get(1));\n }\n }\n return binary;\n }", "public boolean hasArch() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public boolean hasMagic() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "public boolean isHexBinary() {\n return false;\n }", "public static boolean advancedBinaryTests()\n\t{\n\t\tSystem.out.println(\"Beginning Advanced Binary Tests...\");\n\t\tfinal byte[] original_bytes = TEST_STR.getBytes();\n\t\tfinal Smartprint cipher = new Smartprint(original_bytes);\n\t\tfinal byte[] scrambled = scramble(original_bytes, cipher),\n\t\t\t\tunscrambled = scramble(scrambled, cipher);\n\t\t\n\t\tfinal String translated = new String(unscrambled);\n\t\tfinal boolean match = unscrambled.equals(scrambled), \n\t\t\t\tsuccess = translated.equals(TEST_STR) && !match;\n\t\t\n\t\tSystem.out.println(\"Encoded: \"+new String(scrambled));\n\t\tSystem.out.println(\"Decoded: \"+translated);\n\t\tSystem.out.println(\"Match: \" + match);\n\t\tSystem.out.println(\"Success: \" + success + \"\\n\");\n\t\treturn success;\n\t}", "boolean isBinary(String str)\n\t{\n\t if(str.length() < 1) return false;\n\t \n\t for(int i=0; i<str.length(); i++){\n\t char t = str.charAt(i);\n\t if(t=='1' || t=='0') continue;\n\t else return false;\n\t }\n\t \n\t return true;\n\t}", "public boolean isThisType(byte[] block) {\n return block.length >= 8 && block[0] == 0 && block[1] == 0 &&\n block[2] == -1 && block[3] == -1 && block[4] == 105 &&\n block[5] == 109 && block[6] == 112 && block[7] == 114;\n }", "@Override\n public boolean hasUploadedFiles(Item item) throws SQLException\n {\n List<Bundle> bundles = getBundles(item, \"ORIGINAL\");\n for (Bundle bundle : bundles) {\n if (CollectionUtils.isNotEmpty(bundle.getBitstreams())) {\n return true;\n }\n }\n return false;\n }", "public boolean isBinary() {\n/* Queue<Node<E>> treeData = new LinkedList<>();\n treeData.offer(this.root);\n int counter;\n boolean isBinary = true;\n while (!treeData.isEmpty() && isBinary) {\n counter = 0;\n Node<E> el = treeData.poll();\n for (Node<E> child : el.leaves()) {\n treeData.offer(child);\n if (++counter > 2) {\n isBinary = false;\n }\n }\n }\n return isBinary;*/\n\n int counter = 0;\n boolean isBinary = true;\n Iterator it = iterator();\n while (it.hasNext() && isBinary) {\n counter = 0;\n Node<E> currentNode = (Node<E>) it.next();\n for (Node<E> child : currentNode.leaves()) {\n counter++;\n if (counter > 2) {\n isBinary = false;\n }\n }\n }\n return isBinary;\n }", "public boolean hasMagic() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "private boolean isType(String type, Object value) {\n boolean ret = false;\n String val = String.valueOf(value).toUpperCase();\n if (val.equals(\"NULL\")) {\n ret = true;\n } else if (val.contains(\"BASE64\")) {\n ret = true;\n } else {\n if (type.equals(\"NULL\") && value instanceof JSONObject) ret = true;\n if (type.equals(\"TEXT\") && value instanceof String) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Integer) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Long) ret = true;\n if (type.equals(\"REAL\") && value instanceof Float) ret = true;\n if (type.equals(\"BLOB\") && value instanceof Blob) ret = true;\n }\n return ret;\n }", "private boolean isBinary(final String interactionModel, final String contentType,\n final boolean contentPresent, final boolean contentExternal) {\n final String simpleContentType = contentPresent ? contentType : null;\n final boolean isRdfContent = isRdfContentType(simpleContentType);\n return NON_RDF_SOURCE.getURI().equals(interactionModel) || contentExternal ||\n (contentPresent && interactionModel == null && !isRdfContent);\n }", "public Base64Binary(byte[] bytes) throws NumberFormatException {\r\n\t\tif (bytes == null) {\r\n\t\t\tthrow new NumberFormatException(\"parameter can not be null for Base64Binary\");\r\n\t\t}\r\n\r\n\t\t// validate 'base64Binary' type which is defined in W3C schema\r\n\t\t// http://www.w3.org/TR/xmlschema-2/#base64Binary\r\n\t\tif (!W3CSchemaType.isValid(\"base64Binary\", Base64.encode(bytes))) {\r\n\t\t\tthrow new NumberFormatException(\"parameter is invalid for datatype base64Binary\");\r\n\t\t}\r\n\t\tmByteList = bytes;\r\n\t}", "@Override\n public boolean isEnabled(ImagoFrame frame)\n {\n // check frame class\n if (!(frame instanceof ImageFrame))\n return false;\n \n // check image\n ImageHandle doc = ((ImageFrame) frame).getImageHandle();\n Image image = doc.getImage();\n if (image == null)\n return false;\n\n return image.isBinaryImage();\n }", "private boolean isNonTrivialDataLob(int index) {\n long length = 0L;\n\n if (isNull_[index] ||\n (jdbcTypes_[index] != ClientTypes.BLOB &&\n jdbcTypes_[index] != ClientTypes.CLOB)) {\n return false;\n }\n\n int position = columnDataPosition_[index];\n\n // if the high-order bit is set, length is unknown -> set value to x'FF..FF'\n //if (((dataBuffer_[position]) & 0x80) == 0x80) {\n if ((dataBuffer_.getByte(dataBuffer_.readerIndex()) & 0x80) == 0x80) {\n length = -1;\n } else {\n\n byte[] lengthBytes = new byte[columnDataComputedLength_[index]];\n byte[] longBytes = new byte[8];\n\n// System.arraycopy(dataBuffer_, position, lengthBytes, 0, columnDataComputedLength_[index]);\n dataBuffer_.getBytes(position, lengthBytes, 0, columnDataComputedLength_[index]);\n\n // right-justify for BIG ENDIAN\n int j = 0;\n for (int i = 8 - columnDataComputedLength_[index]; i < 8; i++) {\n longBytes[i] = lengthBytes[j];\n j++;\n }\n length = getLong(longBytes, 0);\n }\n return (length != 0L) ? true : false;\n }", "private boolean isArchive() {\n RepoPath repositoryPath = InternalRepoPathFactory.create(getRepoKey(), getPath());\n ItemInfo fileInfo = retrieveItemInfo(repositoryPath);\n return NamingUtils.getMimeType(fileInfo.getRelPath()).isArchive();\n }", "public static Base64Binary parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n Base64Binary object = new Base64Binary();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n\n return object;\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n while (!reader.isEndElement()) {\n if (reader.isStartElement()) {\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.microsoft.com/2003/10/Serialization/\",\n \"base64Binary\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n object.setBase64Binary(null);\n reader.next();\n } else {\n object.setBase64Binary(org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement(\n reader));\n }\n } // End of if for expected property start element\n\n else {\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" +\n reader.getName());\n }\n } else {\n reader.next();\n }\n } // end of while loop\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "@Override\n\tpublic boolean canHaveAsContent(Item item) {\n\t\treturn false;\n\t}", "public static final boolean is64Bit() {\n String model = System.getProperty(\"sun.arch.data.model\",\n System.getProperty(\"com.ibm.vm.bitmode\"));\n if (model != null) {\n return \"64\".equals(model);\n }\n String arch = System.getProperty(\"os.arch\").toLowerCase();\n if (\"x86_64\".equals(arch)\n || \"ia64\".equals(arch)\n || \"ppc64\".equals(arch)\n || \"sparcv9\".equals(arch)\n || \"amd64\".equals(arch)) {\n return true;\n }\n\n return false;\n }", "public boolean hasArch() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean hasBASECURRENCYID() {\n return fieldSetFlags()[2];\n }", "boolean hasByteCode();", "public void setBase64Binary(javax.activation.DataHandler param) {\n this.localBase64Binary = param;\n }", "Base64Binary getCarrierAIDC();", "private void verifyContentTypeAttributeValue()\n throws CMSException\n {\n ASN1Primitive validContentType = getSingleValuedSignedAttribute(\n CMSAttributes.contentType, \"content-type\");\n if (validContentType == null)\n {\n if (!isCounterSignature && signedAttributeSet != null)\n {\n throw new CMSException(\"The content-type attribute type MUST be present whenever signed attributes are present in signed-data\");\n }\n }\n else\n {\n if (isCounterSignature)\n {\n throw new CMSException(\"[For counter signatures,] the signedAttributes field MUST NOT contain a content-type attribute\");\n }\n\n if (!(validContentType instanceof ASN1ObjectIdentifier))\n {\n throw new CMSException(\"content-type attribute value not of ASN.1 type 'OBJECT IDENTIFIER'\");\n }\n\n ASN1ObjectIdentifier signedContentType = (ASN1ObjectIdentifier)validContentType;\n\n if (!signedContentType.equals(contentType))\n {\n throw new CMSException(\"content-type attribute value does not match eContentType\");\n }\n }\n }", "public boolean hasMimeType() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public static boolean advancedBinaryStrTests()\n\t{\n\t\tSystem.out.println(\"Beginning Advanced Binary String Tests...\");\n\t\tString binary = stringtoBinary(TEST_STR).toString();\n\t\tfinal Smartprint blueprint = new Smartprint(binary);\n\t\tbinary = scramble(binary, blueprint);\n\t\tfinal byte[] scrambled = array(binary);\n\t\tbinary = scramble(binary, blueprint);\n\t\tfinal byte[] unscrambled = array(binary);\n\t\t\n\t\tfinal String translated = new String(unscrambled);\n\t\tfinal boolean match = unscrambled.equals(scrambled), \n\t\t\t\tsuccess = translated.equals(TEST_STR) && !match;\n\t\t\n\t\tSystem.out.println(\"Encoded: \"+new String(scrambled));\n\t\tSystem.out.println(\"Decoded: \"+new String(unscrambled));\n\t\tSystem.out.println(\"Match: \" + match);\n\t\tSystem.out.println(\"Success: \" + success + \"\\n\");\n\t\treturn success;\n\t}", "public Boolean isEncoded() {\n return this.encoded;\n }", "public boolean hasMimeType() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public static boolean addItem(item item) {\n try {\n PreparedStatement st = conn.prepareStatement(\"INSERT INTO iteminformation VALUES(?,?,?,?,?,?,?,?,?,?)\");\n st.setInt(1, item.getItemID());\n st.setString(2, item.getOwnerID());\n st.setString(3, item.getName());\n st.setInt(4, item.getStatus());\n st.setString(5, item.getDescription());\n st.setString(6, item.getCategory());\n st.setBlob(7, item.getImage1());\n st.setBlob(8, item.getImage2());\n st.setBlob(9, item.getImage3());\n st.setBlob(10, item.getImage4());\n st.execute();\n return true;\n } catch (SQLException ex) {\n Logger.getLogger(itemDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return false;\n }", "boolean isMBIntra()\n {\n return ((mbType & INTRA) != 0);\n }", "public boolean isItem(int itemId) {\n return getKey().equals(itemId);\n }", "boolean isImageType();", "public boolean isEncodedObject (final Object value) {\n\n if ( value == null || !(value instanceof String) ) {\n\n return false;\n }\n\n final String valueString = (String) value;\n\n return valueString.startsWith(ObjectStringConverter.MARK_PREFIX) &&\n valueString.endsWith(ObjectStringConverter.MARK_SUFFIX);\n }", "public boolean supportsCodeItem() {\n return (access & (Opcodes.ACC_ABSTRACT | Opcodes.ACC_INTERFACE | Opcodes.ACC_NATIVE)) == 0;\n }", "boolean set(String oid, byte[] data);", "public static boolean ItemType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ItemType\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, ITEM_TYPE, \"<item type>\");\n r = KindTest(b, l + 1);\n if (!r) r = GeneralItemType(b, l + 1);\n if (!r) r = FunctionTest(b, l + 1);\n if (!r) r = MapTest(b, l + 1);\n if (!r) r = ArrayTest(b, l + 1);\n if (!r) r = AtomicOrUnionType(b, l + 1);\n if (!r) r = ParenthesizedItemType(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "boolean hasSerializedPaymentDetails();", "String byteOrBooleanRead();", "protected boolean isBlockOrInlineItem(String nsURI, String lName) {\n return (isBlockItem(nsURI, lName) || isInlineItem(nsURI, lName));\n }", "@Test\n public void shouldParseBIT() {\n printTest(\"shouldParseBIT()\");\n String typeString = getDataTypeString(DataTypes.DTYPE_BIT);\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n }", "public String base64Encode(String str) throws StoreFactoryException;", "public boolean isValidISBN10(String sISBN) throws java.rmi.RemoteException;", "public final boolean isIntegral() {\n return this.equals(BYTE)\n || this.equals(CODE)\n || this.equals(SHORT)\n || this.equals(INT)\n || this.equals(LONG)\n || this.equals(UBYTE)\n || this.equals(UINT)\n || this.equals(ULONG)\n || this.equals(USHORT);\n }", "public static boolean saveBase64File(@NonNull Activity activity, @NonNull String base64, @NonNull Uri destinationDir) {\n byte[] fileAsBytes = decodeBase64(base64);\n\n if (fileAsBytes.length == 0) {\n return false;\n }\n\n try (OutputStream os = activity.getContentResolver().openOutputStream(destinationDir)) {\n os.write(fileAsBytes);\n return true;\n } catch (FileNotFoundException e) {\n Log.e(LOG_TAG, \"FileNotFoundException\", e);\n } catch (IOException ioe) {\n Log.e(LOG_TAG, \"IOException\", ioe);\n }\n\n return false;\n }", "@java.lang.Override\n public boolean hasContentId() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "public static boolean hadType(Node node, String type) throws RepositoryException {\n return node.isNodeType(JCRConstants.NT_FROZENNODE)\n && node.getProperty(JCRConstants.JCR_FROZENPRIMARYTYPE).getString().equals(type);\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (!(o instanceof BinaryType)) return false;\n BinaryType binario = (BinaryType) o;\n return Objects.equals(this.getValue(), binario.getValue());\n }", "static boolean isRedstoneChannelItem(Item item) {\n return (item instanceof ItemBlock &&\n (((ItemBlock)item).getBlock() == ModBlocks.signalTransmitterBlock\n || ((ItemBlock)item).getBlock() == ModBlocks.signalReceiverBlock\n || ((ItemBlock)item).getBlock() == ModBlocks.wirelessLockBlock\n || ((ItemBlock)item).getBlock() == ModBlocks.wirelessButtonBlock));\n }", "public boolean hasImageByTransform() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }", "public boolean test(final ClientContext context) {\n return context.readBytes != -1;\n }", "public static boolean checkFullItem(int id) throws IOException\n\t{\n\t\tif(id == 0)\n\t\t\treturn false;\n\t\t//special cases ex. boots\n\t\tif(id == 3047 || id == 3006 || id == 3009 || id == 3020 || id == 3111 || id == 3117 || id == 3158)\n\t\t\treturn true;\n\t\t\n\t\t//old boot enchantments\n\t\tif(id >= 1300 && id <= 1334)\n\t\t\treturn true;\n\t\t\n\t\t//sated devourer\n\t\tif(id == 3931 || id == 1415 || id == 1411)\n\t\t\treturn true;\n\t\t\n\t\t//sightstone\n\t\tif(id == 2049)\n\t\t\treturn true;\n\t\t\n\t\tif(id == 3930)\n\t\t\treturn true;\n\t\t\n\t\t//DNE anymore item?\n\t\tif(id == 2043 || id == 3932)\n\t\t\treturn false;\n\t\t\n\t\t//System.out.println(\"ID: \" + id);\n\t\tURL url = new URL(\"https://global.api.pvp.net/api/lol/static-data/na/v1.2/item/\" + id + \"?itemData=into&api_key=\" + API);\n\t\tInputStream is = url.openStream();\n\t\tJsonReader rdr = Json.createReader(is);\n\t\tJsonObject obj = rdr.readObject();\n\t\treturn !obj.containsKey(\"into\");\n\t}", "public boolean containsAMneumonics() {\n\t\tswitch(this) {\n\t\t\n\t\tcase BR -> \t\t{return true;}\n\t\tcase BRLE -> \t{return true;}\n\t\tcase BRLT -> \t{return true;}\n\t\tcase BREQ -> \t{return true;}\n\t\tcase BRNE -> \t{return true;}\n\t\tcase BRGE -> \t{return true;}\n\t\tcase BRGT -> \t{return true;}\n\t\tcase BRV -> \t{return true;}\n\t\tcase BRC -> \t{return true;}\n\t\tcase CALL -> \t{return true;}\n\t\t\n\t\tdefault -> {return false;}\n\t\n\t\t}\n\t\t\n\t}", "public boolean hasImageByHandler() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "boolean multipleOf64(int num)\n {\n return (num & 0b111111) == 0;\n }", "boolean canRead(ItemState itemState) throws ItemNotFoundException, RepositoryException;", "private boolean tryByteArrayInputStream(){\n return true;\n }", "public String base64Decode(String str) throws StoreFactoryException;" ]
[ "0.6504596", "0.6480591", "0.6359857", "0.61337024", "0.6126508", "0.60666573", "0.5924532", "0.5853089", "0.5840311", "0.5699852", "0.56995565", "0.5620427", "0.54769516", "0.54311055", "0.5241129", "0.52394557", "0.522311", "0.52156365", "0.52086365", "0.5191058", "0.5158332", "0.5149826", "0.5103704", "0.5024633", "0.4994033", "0.49721235", "0.49714458", "0.49634087", "0.49004582", "0.48913512", "0.48738855", "0.4863371", "0.48612702", "0.48080075", "0.4779636", "0.47440308", "0.472235", "0.47080958", "0.47067875", "0.47061378", "0.47012022", "0.46967614", "0.46956143", "0.4677949", "0.4676874", "0.4672798", "0.46649945", "0.46595544", "0.46566725", "0.4637545", "0.46323836", "0.46262616", "0.4623973", "0.46216494", "0.4610222", "0.46018267", "0.4598398", "0.45801675", "0.45787346", "0.4577909", "0.45755696", "0.45472646", "0.4544199", "0.45355186", "0.45352134", "0.45209903", "0.44990328", "0.44788694", "0.44775993", "0.44736242", "0.4461579", "0.44494295", "0.44454977", "0.44333127", "0.44321066", "0.44268996", "0.44208646", "0.4408409", "0.4401623", "0.43961695", "0.43939218", "0.43918765", "0.43902168", "0.4390068", "0.4388783", "0.43773514", "0.43700388", "0.43595535", "0.43522453", "0.4351215", "0.4346318", "0.4344732", "0.43439144", "0.43362463", "0.4334542", "0.4332691", "0.43240002", "0.4322815", "0.43221316", "0.43188962" ]
0.6985133
0
Tests whether the item is an atomic item of type base64Binary or hexBinary.
public boolean isBinary() { return this.isHexBinary() || this.isBase64Binary(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean isBinaryType(TableColumnInfo columnInfo) {\n boolean result = false;\n int type = columnInfo.getDataType();\n if (type == Types.BINARY\n || type == Types.BLOB\n || type == Types.LONGVARBINARY\n || type == Types.VARBINARY)\n {\n result = true;\n }\n return result;\n }", "public boolean isBase64Binary() {\n return false;\n }", "boolean isBinary();", "public static boolean isAtomic(byte dataType) {\n return ((dataType == BYTEARRAY) ||\n (dataType == CHARARRAY) ||\n (dataType == BIGCHARARRAY) ||\n (dataType == INTEGER) ||\n (dataType == BIGINTEGER) ||\n (dataType == BIGDECIMAL) ||\n (dataType == LONG) ||\n (dataType == FLOAT) ||\n (dataType == DOUBLE) ||\n (dataType == BOOLEAN) ||\n (dataType == BYTE) ||\n (dataType == DATETIME) ||\n (dataType == GENERIC_WRITABLECOMPARABLE));\n }", "public boolean isBinary()\n {\n return false;\n }", "private static boolean isBinaryType(int jdbcType) {\r\n switch (jdbcType) {\r\n case Types.BINARY:\r\n case Types.VARBINARY:\r\n case Types.LONGVARBINARY:\r\n return true;\r\n default:\r\n return false;\r\n }\r\n }", "boolean supportsBinaryInProc();", "boolean hasBinaryData();", "public abstract boolean isTypeOf(ItemType type);", "public boolean isBinaryEncoding()\r\n\t{\r\n\t\treturn binary != null;\r\n\t}", "public static boolean isBase64(byte[] bytes){\n\t\ttry {\n\t\t\treturn isBase64(new ByteArrayInputStream(bytes));\n\t\t} catch (IOException x){\n\t\t\t// This can't happen.\n\t\t\t// The input and output streams were constructed\n\t\t\t// on memory structures that don't actually use IO.\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean hasBase64() {\n return result.hasBase64();\n }", "boolean haveMBQuant()\n {\n return ((mbType & QUANT) != 0);\n }", "private boolean isBinaryMessage(Object anObject) {\n\t\tif(anObject.getClass() == this.getClass()) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public byte[] getBinaryValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a hexBinary.\");\n }", "public static boolean isBase64(InputStream in) throws IOException {\n\t\tlong numBase64Chars = 0;\n\t\tint numPadding = 0;\n\t\tint read;\n\n\t\twhile ((read = in.read()) != -1){\n\t\t\tread = reverseBase64Chars[read];\n\t\t\tif (read == NON_BASE_64){\n\t\t\t\treturn false;\n\t\t\t} else if (read == NON_BASE_64_WHITESPACE){\n\t\t\t} else if (read == NON_BASE_64_PADDING){\n\t\t\t\tnumPadding++;\n\t\t\t\tnumBase64Chars++;\n\t\t\t} else if (numPadding > 0){\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\tnumBase64Chars++;\n\t\t\t}\n\t\t}\n\t\tif (numBase64Chars == 0) return false;\n\t\tif (numBase64Chars % 4 != 0) return false;\n\t\treturn true;\n\t}", "private boolean isBinary(final String interactionModel, final String contentType,\n final boolean contentPresent, final boolean contentExternal) {\n final String simpleContentType = contentPresent ? contentType : null;\n final boolean isRdfContent = isRdfContentType(simpleContentType);\n return NON_RDF_SOURCE.getURI().equals(interactionModel) || contentExternal ||\n (contentPresent && interactionModel == null && !isRdfContent);\n }", "public final boolean isIntegral() {\n return this.equals(BYTE)\n || this.equals(CODE)\n || this.equals(SHORT)\n || this.equals(INT)\n || this.equals(LONG)\n || this.equals(UBYTE)\n || this.equals(UINT)\n || this.equals(ULONG)\n || this.equals(USHORT);\n }", "public static boolean isBase64(File fIn) throws IOException {\n\t\treturn isBase64(new BufferedInputStream(new FileInputStream(fIn)));\n\t}", "public boolean hasItemStorage() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean isBinary() {\n return checkBinary(root);\n }", "public boolean hasItemStorage() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public static boolean hasBinaryContent(Node node) throws RepositoryException {\n return (isFile(node) &&\n node.hasNode(JCRConstants.JCR_CONTENT) &&\n hasOrHadType(node.getNode(JCRConstants.JCR_CONTENT), JCRConstants.NT_RESOURCE));\n }", "public static boolean isBinaryStreamAssignable(int jdbcType) {\r\n return jdbcType == Types.BLOB || isBinaryType(jdbcType);\r\n }", "public static boolean validMagicNumbers( final BufferedInputStream bin ) throws IOException\n {\n final List<String> validMagicBytesCollection = JiveGlobals.getListProperty( \"plugins.upload.magic-number.values.expected-value\", Arrays.asList( \"504B0304\", \"504B0506\", \"504B0708\" ) );\n for ( final String entry : validMagicBytesCollection )\n {\n final byte[] validMagicBytes = StringUtils.decodeHex( entry );\n bin.mark( validMagicBytes.length );\n try\n {\n final byte[] magicBytes = new byte[validMagicBytes.length];\n int remaining = validMagicBytes.length;\n while (remaining > 0) {\n final int location = validMagicBytes.length - remaining;\n final int count = bin.read(magicBytes, location, remaining);\n if (count == -1) {\n break;\n }\n remaining -= count;\n }\n if ( remaining <= 0 && Arrays.equals( validMagicBytes, magicBytes ) )\n {\n return true;\n }\n }\n finally\n {\n bin.reset();\n }\n }\n\n return false;\n }", "private boolean isType(String type, Object value) {\n boolean ret = false;\n String val = String.valueOf(value).toUpperCase();\n if (val.equals(\"NULL\")) {\n ret = true;\n } else if (val.contains(\"BASE64\")) {\n ret = true;\n } else {\n if (type.equals(\"NULL\") && value instanceof JSONObject) ret = true;\n if (type.equals(\"TEXT\") && value instanceof String) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Integer) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Long) ret = true;\n if (type.equals(\"REAL\") && value instanceof Float) ret = true;\n if (type.equals(\"BLOB\") && value instanceof Blob) ret = true;\n }\n return ret;\n }", "public boolean canHandleBinaryNatively()\n/* */ {\n/* 391 */ return false;\n/* */ }", "protected <T> boolean isPrimitiveOrWrapper(Class<T> entity) {\n\t\tboolean b = ClassUtils.isPrimitiveOrWrapper(entity);\n\t\tif (b)\n\t\t\treturn true;\n\t\tClass<?> tempClass = ClassUtils.resolvePrimitiveClassName(entity.getName());\n\t\tif (tempClass != null)\n\t\t\treturn true;\n\t\tif (entity == String.class)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public static boolean isBase64(String string){\n\t\treturn isBase64(string.getBytes());\n\t}", "private boolean checkBinary(Node current) {\n boolean binary = true;\n int size = current.children.size();\n if (size > 2 && size != 0) {\n binary = false;\n } else if (size == 1) {\n binary = checkBinary(current.children.get(0));\n } else if (size == 2) {\n binary = checkBinary(current.children.get(0));\n if (binary) {\n binary = checkBinary(current.children.get(1));\n }\n }\n return binary;\n }", "public boolean isAssetSpecial(T asset);", "public boolean isThisType(byte[] block) {\n return block.length >= 8 && block[0] == 0 && block[1] == 0 &&\n block[2] == -1 && block[3] == -1 && block[4] == 105 &&\n block[5] == 109 && block[6] == 112 && block[7] == 114;\n }", "public boolean hasBASECURRENCYID() {\n return fieldSetFlags()[2];\n }", "public boolean isBase64Active(){\n return base64;\n }", "@Override\n\tpublic boolean canHaveAsContent(Item item) {\n\t\treturn false;\n\t}", "@Test\n public void shouldParseBIT() {\n printTest(\"shouldParseBIT()\");\n String typeString = getDataTypeString(DataTypes.DTYPE_BIT);\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n }", "public boolean isBinary() {\n boolean result = true;\n Queue<Node<T>> data = new LinkedList<>();\n data.offer(this.root);\n while (!data.isEmpty()) {\n Node<T> element = data.poll();\n if (!(element.leaves().size() <= 2)) {\n result = false;\n break;\n }\n for (Node<T> child : element.leaves()) {\n data.offer(child);\n }\n }\n return result;\n }", "public boolean isBinaryExpositionSelected();", "public boolean isHexBinary() {\n return false;\n }", "public boolean isContradicting(Item item){\r\n if(item.getType() == BASEBALL_BAT.getType()) {\r\n if (unitMap.containsKey(FOOTBALL.getType())) return true;\r\n else return false;\r\n }\r\n if (item.getType() ==FOOTBALL.getType()){\r\n if (unitMap.containsKey(BASEBALL_BAT.getType())) return true;\r\n else return false;\r\n }\r\n return false;\r\n }", "public static boolean ItemType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ItemType\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, ITEM_TYPE, \"<item type>\");\n r = KindTest(b, l + 1);\n if (!r) r = GeneralItemType(b, l + 1);\n if (!r) r = FunctionTest(b, l + 1);\n if (!r) r = MapTest(b, l + 1);\n if (!r) r = ArrayTest(b, l + 1);\n if (!r) r = AtomicOrUnionType(b, l + 1);\n if (!r) r = ParenthesizedItemType(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "boolean isBinary(String str)\n\t{\n\t if(str.length() < 1) return false;\n\t \n\t for(int i=0; i<str.length(); i++){\n\t char t = str.charAt(i);\n\t if(t=='1' || t=='0') continue;\n\t else return false;\n\t }\n\t \n\t return true;\n\t}", "public static boolean isBaseType(Object o) {\n if (o instanceof Integer ||\n o instanceof Byte ||\n o instanceof Long ||\n o instanceof Double ||\n o instanceof Float ||\n o instanceof Character ||\n o instanceof Short ||\n o instanceof Boolean ||\n o instanceof String ||\n o instanceof BigDecimal ||\n o instanceof BigInteger) {\n return true;\n }\n return false;\n }", "String byteOrBooleanRead();", "boolean isMBIntra()\n {\n return ((mbType & INTRA) != 0);\n }", "public /*byte[]*/String BinaryCaster(Object item){\n String Sitem = Integer.toBinaryString((int)item);\n //byte[] b = new byte[Sitem.length()];\n //for(int i=0;i<Sitem.length();i++){\n // b[i] = (byte)Sitem.charAt(i);\n //}\n //return b;\n return Sitem;\n }", "private boolean isPlainXml(byte[] bytes) {\n return !substring(bytes, ZIP_MAGIC.length()).equals(ZIP_MAGIC) &&\n (substring(bytes, XML_MAGIC.length()).equals(XML_MAGIC) ||\n substring(bytes, APP_MAGIC_DEPTH).contains(APP_MAGIC));\n }", "private static boolean isAtomic(Object o) {\n return o instanceof AtomicReference\n || o instanceof AtomicBoolean\n || o instanceof AtomicInteger\n || o instanceof AtomicLong;\n }", "public static boolean isBinaryResource(Node node) throws RepositoryException {\n return (node.getName().equals(JCRConstants.JCR_CONTENT) &&\n hasOrHadType(node, JCRConstants.NT_RESOURCE));\n }", "public boolean hasInteger64() {\n return result.hasInteger64();\n }", "boolean hasItemStorage();", "boolean hasSurrogateType();", "static boolean isRedstoneChannelItem(Item item) {\n return (item instanceof ItemBlock &&\n (((ItemBlock)item).getBlock() == ModBlocks.signalTransmitterBlock\n || ((ItemBlock)item).getBlock() == ModBlocks.signalReceiverBlock\n || ((ItemBlock)item).getBlock() == ModBlocks.wirelessLockBlock\n || ((ItemBlock)item).getBlock() == ModBlocks.wirelessButtonBlock));\n }", "public static boolean addItem(item item) {\n try {\n PreparedStatement st = conn.prepareStatement(\"INSERT INTO iteminformation VALUES(?,?,?,?,?,?,?,?,?,?)\");\n st.setInt(1, item.getItemID());\n st.setString(2, item.getOwnerID());\n st.setString(3, item.getName());\n st.setInt(4, item.getStatus());\n st.setString(5, item.getDescription());\n st.setString(6, item.getCategory());\n st.setBlob(7, item.getImage1());\n st.setBlob(8, item.getImage2());\n st.setBlob(9, item.getImage3());\n st.setBlob(10, item.getImage4());\n st.execute();\n return true;\n } catch (SQLException ex) {\n Logger.getLogger(itemDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return false;\n }", "boolean getBinaryFileAttribute();", "boolean hasByte();", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (!(o instanceof BinaryType)) return false;\n BinaryType binario = (BinaryType) o;\n return Objects.equals(this.getValue(), binario.getValue());\n }", "public boolean hasArch() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "@Override public byte isBitShape(Type t) { throw AA.unimpl(); }", "public boolean containsAMneumonics() {\n\t\tswitch(this) {\n\t\t\n\t\tcase BR -> \t\t{return true;}\n\t\tcase BRLE -> \t{return true;}\n\t\tcase BRLT -> \t{return true;}\n\t\tcase BREQ -> \t{return true;}\n\t\tcase BRNE -> \t{return true;}\n\t\tcase BRGE -> \t{return true;}\n\t\tcase BRGT -> \t{return true;}\n\t\tcase BRV -> \t{return true;}\n\t\tcase BRC -> \t{return true;}\n\t\tcase CALL -> \t{return true;}\n\t\t\n\t\tdefault -> {return false;}\n\t\n\t\t}\n\t\t\n\t}", "protected boolean isBlockOrInlineItem(String nsURI, String lName) {\n return (isBlockItem(nsURI, lName) || isInlineItem(nsURI, lName));\n }", "@Override\r\n\tpublic boolean equals(Object ob){\n\t\tItem itemob=(Item)ob;\t//transfer object type to Item type\r\n\t\tif(this.UID==itemob.UID && this.TITLE==itemob.TITLE && this.NOOFCOPIES==itemob.NOOFCOPIES) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isItem(int itemId) {\n return getKey().equals(itemId);\n }", "public abstract boolean contains(Object item);", "public static boolean hadType(Node node, String type) throws RepositoryException {\n return node.isNodeType(JCRConstants.NT_FROZENNODE)\n && node.getProperty(JCRConstants.JCR_FROZENPRIMARYTYPE).getString().equals(type);\n }", "public boolean effectiveBooleanValue(XPathContext context) throws XPathException {\n ItemType type = argument[0].getItemType(context.getConfiguration().getTypeHierarchy());\n if (type == AnyItemType.getInstance()) {\n return super.effectiveBooleanValue(context);\n } else {\n return argument[0].effectiveBooleanValue(context);\n }\n }", "boolean isImageType();", "@Override\n public BinaryType asBinary() {\n return TypeFactory.getBinaryType(this.getValue());\n }", "public boolean supportsCodeItem() {\n return (access & (Opcodes.ACC_ABSTRACT | Opcodes.ACC_INTERFACE | Opcodes.ACC_NATIVE)) == 0;\n }", "@Override\n public boolean hasUploadedFiles(Item item) throws SQLException\n {\n List<Bundle> bundles = getBundles(item, \"ORIGINAL\");\n for (Bundle bundle : bundles) {\n if (CollectionUtils.isNotEmpty(bundle.getBitstreams())) {\n return true;\n }\n }\n return false;\n }", "public interface XQItemType extends XQSequenceType {\r\n\r\n static int XQBASETYPE_ANYATOMICTYPE = 4;\r\n static int XQBASETYPE_ANYSIMPLETYPE = 3;\r\n static int XQBASETYPE_ANYTYPE = 2;\r\n static int XQBASETYPE_ANYURI = 8;\r\n static int XQBASETYPE_BASE64BINARY = 9;\r\n static int XQBASETYPE_BOOLEAN = 10;\r\n static int XQBASETYPE_BYTE = 31;\r\n static int XQBASETYPE_DATE = 11;\r\n static int XQBASETYPE_DATETIME = 16;\r\n static int XQBASETYPE_DAYTIMEDURATION = 7;\r\n static int XQBASETYPE_DECIMAL = 17;\r\n static int XQBASETYPE_DOUBLE = 18;\r\n static int XQBASETYPE_DURATION = 19;\r\n static int XQBASETYPE_ENTITIES = 50;\r\n static int XQBASETYPE_ENTITY = 48;\r\n static int XQBASETYPE_FLOAT = 20;\r\n static int XQBASETYPE_GDAY = 21;\r\n static int XQBASETYPE_GMONTH = 22;\r\n static int XQBASETYPE_GMONTHDAY = 23;\r\n static int XQBASETYPE_GYEAR = 24;\r\n static int XQBASETYPE_GYEARMONTH = 25;\r\n static int XQBASETYPE_HEXBINARY = 26;\r\n static int XQBASETYPE_ID = 46;\r\n static int XQBASETYPE_IDREF = 47;\r\n static int XQBASETYPE_IDREFS = 49;\r\n static int XQBASETYPE_INT = 12;\r\n static int XQBASETYPE_INTEGER = 13;\r\n static int XQBASETYPE_LANGUAGE = 42;\r\n static int XQBASETYPE_LONG = 15;\r\n static int XQBASETYPE_NAME = 43;\r\n static int XQBASETYPE_NCNAME = 44;\r\n static int XQBASETYPE_NEGATIVE_INTEGER = 34;\r\n static int XQBASETYPE_NMTOKEN = 45;\r\n static int XQBASETYPE_NMTOKENS = 51;\r\n static int XQBASETYPE_NONNEGATIVE_INTEGER = 33;\r\n static int XQBASETYPE_NONPOSITIVE_INTEGER = 32;\r\n static int XQBASETYPE_NORMALIZED_STRING = 40;\r\n static int XQBASETYPE_NOTATION = 27;\r\n static int XQBASETYPE_POSITIVE_INTEGER = 35;\r\n static int XQBASETYPE_QNAME = 28;\r\n static int XQBASETYPE_SHORT = 14;\r\n static int XQBASETYPE_STRING = 29;\r\n static int XQBASETYPE_TIME = 30;\r\n static int XQBASETYPE_TOKEN = 41;\r\n static int XQBASETYPE_UNSIGNED_BYTE = 39;\r\n static int XQBASETYPE_UNSIGNED_INT = 37;\r\n static int XQBASETYPE_UNSIGNED_LONG = 36;\r\n static int XQBASETYPE_UNSIGNED_SHORT = 38;\r\n static int XQBASETYPE_UNTYPED = 1;\r\n static int XQBASETYPE_UNTYPEDATOMIC = 5;\r\n static int XQBASETYPE_YEARMONTHDURATION = 7;\r\n\r\n static int XQITEMKIND_ATOMIC = 1;\r\n static int XQITEMKIND_ATTRIBUTE = 2;\r\n static int XQITEMKIND_COMMENT = 3;\r\n static int XQITEMKIND_DOCUMENT = 4;\r\n static int XQITEMKIND_DOCUMENT_ELEMENT = 5;\r\n static int XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT = 6;\r\n static int XQITEMKIND_ELEMENT = 7;\r\n static int XQITEMKIND_ITEM = 8;\r\n static int XQITEMKIND_NODE = 9;\r\n static int XQITEMKIND_PI = 10;\r\n static int XQITEMKIND_SCHEMA_ATTRIBUTE = 13;\r\n static int XQITEMKIND_SCHEMA_ELEMENT = 12;\r\n static int XQITEMKIND_TEXT = 11;\r\n\r\n int getBaseType() throws XQException;\r\n\r\n int getItemKind();\r\n\r\n int getItemOccurrence();\r\n\r\n QName getNodeName() throws XQException;\r\n\r\n String getPIName() throws XQException;\r\n\r\n URI getSchemaURI();\r\n\r\n QName getTypeName() throws XQException;\r\n\r\n boolean isAnonymousType();\r\n\r\n boolean isElementNillable();\r\n\r\n}", "@Override\n public boolean isEnabled(ImagoFrame frame)\n {\n // check frame class\n if (!(frame instanceof ImageFrame))\n return false;\n \n // check image\n ImageHandle doc = ((ImageFrame) frame).getImageHandle();\n Image image = doc.getImage();\n if (image == null)\n return false;\n\n return image.isBinaryImage();\n }", "private final boolean IsAtomic(String expression) {\r\n if (this._kripke.Atoms.contains(expression)) {\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "public boolean isBomb() {\n return type.equalsIgnoreCase(\"bomb\");\n }", "public boolean hasArch() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "protected static boolean isFileManagedBinary(File file) {\n String filename = file.toString().toLowerCase();\n return filename.endsWith(\".exe\") || filename.endsWith(\".dll\")\n || filename.endsWith(\".netmodule\");\n }", "private boolean isArchive() {\n RepoPath repositoryPath = InternalRepoPathFactory.create(getRepoKey(), getPath());\n ItemInfo fileInfo = retrieveItemInfo(repositoryPath);\n return NamingUtils.getMimeType(fileInfo.getRelPath()).isArchive();\n }", "public static boolean isBase64(String string, String enc) throws UnsupportedEncodingException {\n\t\treturn isBase64(string.getBytes(enc));\n\t}", "static public boolean isSavable(Object obj) {\n\tboolean rc = false;\n\n\tif ((obj instanceof Short) ||\n\t (obj instanceof Integer) ||\n\t (obj instanceof Long) ||\n\t (obj instanceof Float) ||\n\t (obj instanceof Double) ||\n\t (obj instanceof Boolean) ||\n\t (obj instanceof String) ||\n\t (obj instanceof Byte) ||\n\t (obj instanceof Color) ||\n\t (obj instanceof Font) ||\n\t (obj instanceof Rectangle2D) ||\n\t (obj instanceof AffineTransform) ||\n\t (obj instanceof Image) ||\n\t (obj instanceof ZSerializable)) {\n\t rc = true;\n\t}\n\n\treturn rc;\n }", "public static boolean advancedBinaryTests()\n\t{\n\t\tSystem.out.println(\"Beginning Advanced Binary Tests...\");\n\t\tfinal byte[] original_bytes = TEST_STR.getBytes();\n\t\tfinal Smartprint cipher = new Smartprint(original_bytes);\n\t\tfinal byte[] scrambled = scramble(original_bytes, cipher),\n\t\t\t\tunscrambled = scramble(scrambled, cipher);\n\t\t\n\t\tfinal String translated = new String(unscrambled);\n\t\tfinal boolean match = unscrambled.equals(scrambled), \n\t\t\t\tsuccess = translated.equals(TEST_STR) && !match;\n\t\t\n\t\tSystem.out.println(\"Encoded: \"+new String(scrambled));\n\t\tSystem.out.println(\"Decoded: \"+translated);\n\t\tSystem.out.println(\"Match: \" + match);\n\t\tSystem.out.println(\"Success: \" + success + \"\\n\");\n\t\treturn success;\n\t}", "boolean isItemDisabled( final Object item );", "public boolean contains(Type item);", "protected boolean isScriptHashType() {\n if (pubScript == null)\n return false;\n InstructionInputStream is = pubScript.getInstructionInput();\n try\n {\n Instruction instruction=is.readInstruction();\n if (instruction.getOperation() != Operation.OP_HASH160)\n return false;\n instruction = is.readInstruction();\n if (!(instruction.getOperation() == Operation.CONSTANT && instruction.getData().length == 20))\n return false;\n instruction = is.readInstruction();\n if (instruction.getOperation() != Operation.OP_EQUAL)\n return false;\n instruction = is.readInstruction();\n return instruction == null;\n } catch (IOException ex)\n {\n return false;\n }\n }", "public boolean itemIsAllowed(int itemId) {\n\t\tswitch (itemId) {\n\t\tcase 15272: // Rocktail\n\t\tcase 7060: // Tuna potato\n\t\tcase 6685:\n\t\tcase 6687:\n\t\tcase 6689:\n\t\tcase 6691: // Saradomin brew\n\t\tcase 3024:\n\t\tcase 3026:\n\t\tcase 3028:\n\t\tcase 3030: // Super restore\n\t\tcase 391: // Manta Ray\n\t\tcase 385: // Shark\n\t\tcase 229: // Vial\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isBinary() {\n/* Queue<Node<E>> treeData = new LinkedList<>();\n treeData.offer(this.root);\n int counter;\n boolean isBinary = true;\n while (!treeData.isEmpty() && isBinary) {\n counter = 0;\n Node<E> el = treeData.poll();\n for (Node<E> child : el.leaves()) {\n treeData.offer(child);\n if (++counter > 2) {\n isBinary = false;\n }\n }\n }\n return isBinary;*/\n\n int counter = 0;\n boolean isBinary = true;\n Iterator it = iterator();\n while (it.hasNext() && isBinary) {\n counter = 0;\n Node<E> currentNode = (Node<E>) it.next();\n for (Node<E> child : currentNode.leaves()) {\n counter++;\n if (counter > 2) {\n isBinary = false;\n }\n }\n }\n return isBinary;\n }", "org.apache.xmlbeans.XmlBoolean xgetIsManaged();", "public static boolean isAtomic(Object o) {\n return isAtomic(findType(o));\n }", "public static boolean isAOInstrument(ISPObsComponent obsComp) {\n return (obsComp.getType().broadType.equals(AOConstants.AO_BROAD_TYPE));\n }", "private boolean isIDCode(SimpleType typeCode) {\n if (typeCode == BuiltInAtomicType.ID) {\n return true;\n }\n if (typeCode instanceof BuiltInAtomicType) {\n return false; // No other built-in type is an ID\n }\n\n if (nonIDs == null) {\n nonIDs = new HashSet<SimpleType>(20);\n }\n if (nonIDs.contains(typeCode)) {\n return false;\n }\n if (typeCode.isAtomicType()) {\n if (getConfiguration().getTypeHierarchy().isSubType((AtomicType) typeCode, BuiltInAtomicType.ID)) {\n return true;\n } else {\n nonIDs.add(typeCode);\n return false;\n }\n } else {\n return false;\n }\n }", "public boolean contains (Object item){\n\t\t// compute the hash table index\n\t\t\t\tint index = (item.hashCode() & Integer.MAX_VALUE) % table.length;\n\n\t\t\t\t// find the item and return false if item is in the ArrayList\n\t\t\t\tif (table[index].contains((T)item))\n\t\t\t\t\treturn true;\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t}", "String byteOrBooleanWrite();", "public void checkItem() {\n Entity t = BombermanGame.checkCollisionItem(this.rectangle);\n if (t instanceof SpeedItem) {\n speed ++;\n ((SpeedItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof FlameItem) {\n flame = true;\n ((FlameItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof BombItem) {\n max_bomb ++;\n ((BombItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof Portal) {\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n }", "public static boolean basicBinaryStrTests()\n\t{\n\t\tSystem.out.println(\"Beginning Basic Binary String Tests...\");\n\t\tStringBuilder unscrambled = stringtoBinary(TEST_STR);\n\t\tStringBuilder scrambled = basicScramble(unscrambled, false);\n\t\tunscrambled = basicScramble(scrambled, true);\n\t\t\n\t\tbyte[] decoded = array(unscrambled.toString());\n\t\tbyte[] encoded = array(scrambled.toString());\n\t\t\n\t\tfinal String decoded_text = new String(decoded);\n\t\tfinal boolean match = decoded.equals(encoded), \n\t\t\t\tsuccess = decoded_text.equals(TEST_STR) && !match;\n\t\t\n\t\tSystem.out.println(\"Encoded: \"+new String(encoded));\n\t\tSystem.out.println(\"Decoded: \"+new String(decoded));\n\t\tSystem.out.println(\"Match: \" + match);\n\t\tSystem.out.println(\"Success: \" + success + \"\\n\");\n\t\treturn success;\n\t}", "public boolean isValidISBN10(String sISBN) throws java.rmi.RemoteException;", "@Override\n public boolean getContentBinary() throws WebdavException {\n return false;\n }", "private void verifyContentTypeAttributeValue()\n throws CMSException\n {\n ASN1Primitive validContentType = getSingleValuedSignedAttribute(\n CMSAttributes.contentType, \"content-type\");\n if (validContentType == null)\n {\n if (!isCounterSignature && signedAttributeSet != null)\n {\n throw new CMSException(\"The content-type attribute type MUST be present whenever signed attributes are present in signed-data\");\n }\n }\n else\n {\n if (isCounterSignature)\n {\n throw new CMSException(\"[For counter signatures,] the signedAttributes field MUST NOT contain a content-type attribute\");\n }\n\n if (!(validContentType instanceof ASN1ObjectIdentifier))\n {\n throw new CMSException(\"content-type attribute value not of ASN.1 type 'OBJECT IDENTIFIER'\");\n }\n\n ASN1ObjectIdentifier signedContentType = (ASN1ObjectIdentifier)validContentType;\n\n if (!signedContentType.equals(contentType))\n {\n throw new CMSException(\"content-type attribute value does not match eContentType\");\n }\n }\n }", "private boolean isBasicType(Object javaObject) {\n return javaObject == null\n || javaObject instanceof Number\n || javaObject instanceof Boolean\n || javaObject instanceof Character\n || javaObject instanceof Enum;\n }", "abstract public boolean isTyped();", "boolean hasByteCode();", "private static boolean shouldStoreArtifact(Artifact artifact) {\n String ref = artifact.getReference();\n return ArtifactTypes.EMBEDDED_BASE64.getMimeType().equals(artifact.getType())\n && !(ref == null || ref.isEmpty());\n }" ]
[ "0.6006204", "0.5905461", "0.5870552", "0.57971615", "0.5654036", "0.54717296", "0.54615885", "0.5432884", "0.53661424", "0.53361034", "0.5311623", "0.53102106", "0.5162462", "0.51335603", "0.5130292", "0.5120385", "0.51131165", "0.5096297", "0.50781924", "0.50700337", "0.50616753", "0.5058454", "0.49870634", "0.49701717", "0.49558526", "0.49501795", "0.49230132", "0.48897022", "0.48889068", "0.48873675", "0.4879916", "0.48717064", "0.48696283", "0.48673218", "0.4841425", "0.48383912", "0.4834621", "0.48318627", "0.48179442", "0.47968894", "0.4787826", "0.4787559", "0.4782008", "0.47786093", "0.47782233", "0.47753382", "0.47676855", "0.47651458", "0.47555596", "0.47525927", "0.4752564", "0.4738746", "0.47383517", "0.47372878", "0.4700365", "0.46924093", "0.4683899", "0.46702436", "0.46665242", "0.46266502", "0.46195486", "0.4589814", "0.45891804", "0.4554335", "0.45410568", "0.45387632", "0.453291", "0.4531669", "0.453087", "0.45176965", "0.4509072", "0.45048726", "0.4504142", "0.45024958", "0.4498638", "0.44954535", "0.44852704", "0.44783074", "0.44698617", "0.4467352", "0.44670072", "0.44646144", "0.44474038", "0.4444464", "0.44443762", "0.44237038", "0.44216263", "0.4415217", "0.44030336", "0.4391677", "0.4370457", "0.43702495", "0.43679327", "0.4367881", "0.43669012", "0.43633083", "0.43598974", "0.43533248", "0.4350894", "0.43392062" ]
0.6215052
0
Tests for logical equality.
@Override public abstract boolean equals(Object other);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isEqual( Object lhs, Object rhs ){\r\n\t\tboolean x = lhs==null;\r\n\t\tboolean y = rhs == null;\r\n\t\t//XOR OPERATOR, only one is null\r\n\t\tif ((x || y) && !(x && y))\r\n\t\t\treturn false;\r\n\t\tif (lhs.equals(rhs))\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "boolean canEqual(Object obj);", "public void testCompareBoolean() {\n\t\tboolean one = true;\n\t\tboolean two = false;\n\t\t//false ist kleiner wie true\n\t\tassertTrue(comp.compareBoolean(two, one) == -1);\n\t\tassertTrue(comp.compareBoolean(one, one) == 0);\n\t\tassertTrue(comp.compareBoolean(two, two) == 0);\n\t\tassertTrue(comp.compareBoolean(one, two) == 1);\n\t}", "@Test\n\tpublic void testEqualityCheck() {\n\t\tadd(\"f(x)=x^3\");\n\t\tadd(\"g(x)=-x^3\");\n\t\tt(\"f==g\", \"false\");\n\t\tt(\"f!=g\", \"true\");\n\t\tt(\"f==-g\", \"true\");\n\t\tt(\"f!=-g\", \"false\");\n\t}", "Equality createEquality();", "@Test\n public void testCaseIsInputEqualsMatchPredicateBool() {\n String o = \"\";\n AtomicBoolean success = new AtomicBoolean(false);\n match(o).caseIs(s -> s == o, () -> success.set(true));\n assertTrue(success.get());\n }", "@OperationMeta(name = Constants.EQUALITY, opType = OperationType.INFIX)\n public static boolean equals(boolean b1, boolean b2) {\n return b1 == b2;\n }", "@Test \n\tpublic void checkEquality() {\n\t\tassertTrue(testCell.equals(testCell));\n\t\tassertFalse(testCell.equals(new Cell(false)));\n\n\t}", "public boolean checkEquality(){\n boolean flag = true;\n for (int i = 0; i < boardRows ; i++) {\n for (int j = 0; j < boardColumns; j++) {\n if(this.currentBoardState[i][j] != this.goalBoardState[i][j]){\n flag = false;\n }\n }\n }\n return flag;\n }", "@Test\n public void testEquals_2() {\n LOGGER.info(\"testEquals_2\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = new AtomString(\"Hej\");\n final boolean actual = atomString.equals(atom);\n assertFalse(actual);\n }", "boolean hasSameAs();", "@Test\n public void testEquals() {\n ColumnType typeBool = new ColumnType(-7, \"bool\");\n ColumnType typeBoolean = new ColumnType(16, \"boolean\");\n ColumnType typeBool2 = new ColumnType(-7, \"bool\");\n assertEquals(\"Expected bool types are equal\", typeBool, typeBool2);\n assertNotSame(\"Expected bool and boolean are not equal\", typeBool, typeBoolean);\n }", "public boolean equals(Object o) {\r\n\t\treturn o instanceof BooleanValue?value == ((BooleanValue) o).value:false;\r\n\t}", "@Test\n\tpublic void test_TCM__boolean_equals_Object() {\n\t\tfinal Attribute attribute = new Attribute(\"test\", \"value\");\n\n assertFalse(\"attribute equal to null\", attribute.equals(null));\n\n final Object object = attribute;\n assertTrue(\"object not equal to attribute\", attribute.equals(object));\n assertTrue(\"attribute not equal to object\", object.equals(attribute));\n\n // current implementation checks only for identity\n// final Attribute clonedAttribute = (Attribute) attribute.clone();\n// assertTrue(\"attribute not equal to its clone\", attribute.equals(clonedAttribute));\n// assertTrue(\"clone not equal to attribute\", clonedAttribute.equals(attribute));\n\t}", "private static boolean equalityTest1(String a, String b)\n {\n return a == b;\n }", "@Test\n void testEquals() {\n final boolean expected_boolean = true;\n\n // Properties for the objects\n final String username = \"username\";\n final String name = \"their_name\";\n final String password = \"password\";\n\n // Create two LoginAccount objects\n LoginAccount first_account = new LoginAccount(username, name, password);\n LoginAccount second_account = new LoginAccount(username, name, password);\n\n // Variable to check\n boolean objects_are_equal = first_account.equals(second_account);\n\n // Assert that the two boolean values are the same\n assertEquals(expected_boolean, objects_are_equal);\n }", "boolean equivalent(Concept x, Concept y);", "public final BooleanDataValue equals(DataValueDescriptor left,\n\t\t\t\t\t\t\t DataValueDescriptor right)\n\t\t\t\t\t\t\t\tthrows StandardException\n\t{\n\t\tboolean isEqual;\n\n\t\tif (left.isNull() || right.isNull())\n\t\t{\n\t\t\tisEqual = false;\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\tisEqual = SQLBinary.compare(left.getBytes(), right.getBytes()) == 0;\n\t\t}\n\n\t\treturn SQLBoolean.truthValue(left,\n\t\t\t\t\t\t\t\t\t right,\n\t\t\t\t\t\t\t\t\t isEqual);\n\t}", "static <T> boolean argEquals(T a1,boolean a2, T b1,boolean b2) {\n return\n Null.equals(a1, b1) && //\n a2==b2; //\n }", "public static BinaryExpression equal(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Test\n public void trueAndFalseCombined() {\n assertFalse(getPredicateInstance(false, null).evaluate(getTestValue()),\n \"false predicate evaluated to true\");\n assertFalse(getPredicateInstance(false, null, null).evaluate(getTestValue()),\n \"false predicate evaluated to true\");\n assertFalse(getPredicateInstance(true, false, null).evaluate(getTestValue()),\n \"false predicate evaluated to true\");\n assertFalse(getPredicateInstance(true, true, false).evaluate(getTestValue()),\n \"false predicate evaluated to true\");\n assertFalse(getPredicateInstance(true, true, false, null).evaluate(getTestValue()),\n \"false predicate evaluated to true\");\n }", "public boolean matches(Row row) {\n Object leftValue = extractValue(_leftOperand, row);\n Object rightValue = extractValue(_rightOperand, row);\n\n if (leftValue == null && rightValue == null) {\n return (_operator == Operator.IS);\n } else if (leftValue == null || rightValue == null) {\n return (_operator == Operator.ISNOT);\n }\n\n // at this point both values are non-null. IS is same as EQ, and ISNOT as NE\n switch (_operator) {\n case EQ:\n case IS:\n return compareValues(leftValue, rightValue) == 0;\n case GE:\n return compareValues(leftValue, rightValue) >= 0;\n case GT:\n return compareValues(leftValue, rightValue) > 0;\n case LE:\n return compareValues(leftValue, rightValue) <= 0;\n case LT:\n return compareValues(leftValue, rightValue) < 0;\n case NE:\n case ISNOT:\n return compareValues(leftValue, rightValue) != 0;\n default:\n throw new BatfishException(\"Unhandled operator: \" + _operator);\n }\n }", "@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return a.equals(b);\n }", "public final void rule__OpEquality__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1837:1: ( ( '==' ) | ( '!=' ) )\n int alt4=2;\n int LA4_0 = input.LA(1);\n\n if ( (LA4_0==15) ) {\n alt4=1;\n }\n else if ( (LA4_0==16) ) {\n alt4=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 4, 0, input);\n\n throw nvae;\n }\n switch (alt4) {\n case 1 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1838:1: ( '==' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1838:1: ( '==' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1839:1: '=='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \n }\n match(input,15,FOLLOW_15_in_rule__OpEquality__Alternatives3867); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1846:6: ( '!=' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1846:6: ( '!=' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1847:1: '!='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \n }\n match(input,16,FOLLOW_16_in_rule__OpEquality__Alternatives3887); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__PredicateEquality__OpAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2136:1: ( ( '==' ) | ( '!=' ) )\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0==13) ) {\n alt3=1;\n }\n else if ( (LA3_0==14) ) {\n alt3=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 3, 0, input);\n\n throw nvae;\n }\n switch (alt3) {\n case 1 :\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2137:1: ( '==' )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2137:1: ( '==' )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2138:1: '=='\n {\n before(grammarAccess.getPredicateEqualityAccess().getOpEqualsSignEqualsSignKeyword_1_1_0_0()); \n match(input,13,FOLLOW_13_in_rule__PredicateEquality__OpAlternatives_1_1_04070); \n after(grammarAccess.getPredicateEqualityAccess().getOpEqualsSignEqualsSignKeyword_1_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2145:6: ( '!=' )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2145:6: ( '!=' )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:2146:1: '!='\n {\n before(grammarAccess.getPredicateEqualityAccess().getOpExclamationMarkEqualsSignKeyword_1_1_0_1()); \n match(input,14,FOLLOW_14_in_rule__PredicateEquality__OpAlternatives_1_1_04090); \n after(grammarAccess.getPredicateEqualityAccess().getOpExclamationMarkEqualsSignKeyword_1_1_0_1()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public static void main(String[] args) {\nboolean a, b, c;\na =true;\nb = false;\nc =a && b;\n\nSystem.out.println(\"c = a&&B:\" + c);\nc = a||b;\nSystem.out.println(\"c = a||b:\" + c);\nc = a==b;\nSystem.out.println(\"c = a==b:\" + c);\nc = a!=b;\nSystem.out.println(\"c = a!=b:\" + c);\n\n\n\n\t}", "private boolean equals() {\r\n return MARK(EQUALS) && CHAR('=') && gap();\r\n }", "@Override\n\tpublic boolean equals( Object other) {\n\n\t\tif( !( other instanceof BooleanStateValue)) {\n return false;\n }\n\n\t\tBooleanStateValue otherValue = (BooleanStateValue) other;\n\n\t\treturn _storage == otherValue._storage;\n\t}", "@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}", "public abstract boolean equals(Object other);", "@Test\n public void testEquals() {\n assertFalse(jesseOberstein.equals(nathanGoodman));\n assertTrue(kateHutchinson.equals(kateHutchinson));\n }", "public boolean isEqual(Cell a) \r\n\t{\r\n\t\tCellTicTacToe xo=(CellTicTacToe)a;\r\n if(this.tav==xo.getTav())\r\n {\r\n \t return true;\r\n }\r\n else\r\n \t return false;\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint a=100;\n\t\tint b=200;\n\t\t// a==b ==> checking if a is equal to b\n\t\t// (a==b) ==> is called a relational expression\n\t\tboolean result = (a==b); // false\n\n\t\tSystem.out.println(result); //false\n\t\t\n\t\tSystem.out.println(\"is a and b equal? :\" + (a==b)); //false\n\t\t\n\t\t// not equal to ==> !=\n\t\t\n\t\tboolean result2= (a!=b);\n\t\t\nSystem.out.println(result2);\n\t\t\n\t\tSystem.out.println(\"is a and b equal? :\" + (a!=b));\n\t\t\n\t\t\n\t\t\n\t\t// >=\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public final void rule__OpEquality__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:2550:1: ( ( '==' ) | ( '!=' ) | ( '===' ) | ( '!==' ) )\r\n int alt8=4;\r\n switch ( input.LA(1) ) {\r\n case 21:\r\n {\r\n alt8=1;\r\n }\r\n break;\r\n case 22:\r\n {\r\n alt8=2;\r\n }\r\n break;\r\n case 23:\r\n {\r\n alt8=3;\r\n }\r\n break;\r\n case 24:\r\n {\r\n alt8=4;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 8, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt8) {\r\n case 1 :\r\n // InternalDroneScript.g:2551:2: ( '==' )\r\n {\r\n // InternalDroneScript.g:2551:2: ( '==' )\r\n // InternalDroneScript.g:2552:3: '=='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \r\n }\r\n match(input,21,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalDroneScript.g:2557:2: ( '!=' )\r\n {\r\n // InternalDroneScript.g:2557:2: ( '!=' )\r\n // InternalDroneScript.g:2558:3: '!='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \r\n }\r\n match(input,22,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // InternalDroneScript.g:2563:2: ( '===' )\r\n {\r\n // InternalDroneScript.g:2563:2: ( '===' )\r\n // InternalDroneScript.g:2564:3: '==='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); \r\n }\r\n match(input,23,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // InternalDroneScript.g:2569:2: ( '!==' )\r\n {\r\n // InternalDroneScript.g:2569:2: ( '!==' )\r\n // InternalDroneScript.g:2570:3: '!=='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignEqualsSignKeyword_3()); \r\n }\r\n match(input,24,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignEqualsSignKeyword_3()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public abstract boolean equals(Object o);", "public AlgoAreEqual(Construction cons, GeoElement inputElement1,\n\t\t\tGeoElement inputElement2) {\n\t\tsuper(cons);\n\t\tthis.inputElement1 = inputElement1;\n\t\tthis.inputElement2 = inputElement2;\n\n\t\toutputBoolean = new GeoBoolean(cons);\n\n\t\tsetInputOutput();\n\t\tcompute();\n\n\t}", "boolean equals(Object o);", "boolean equals(Object o);", "boolean equals(Object o);", "boolean equals(Object o);", "boolean equals(Object o);", "@Test\n public void testEqualsReturnsTrueOnIdenticalRecords() {\n boolean equals = record.equals(otherRecord);\n\n assertThat(equals, is(true));\n }", "@Test\n public void testEquals_1() {\n LOGGER.info(\"testEquals_1\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = new AtomString(\"Hello\");\n final boolean actual = atomString.equals(atom);\n assertTrue(actual);\n }", "public boolean equals(Object o);", "public final void rule__OpEquality__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2278:1: ( ( '==' ) | ( '!=' ) )\r\n int alt6=2;\r\n int LA6_0 = input.LA(1);\r\n\r\n if ( (LA6_0==18) ) {\r\n alt6=1;\r\n }\r\n else if ( (LA6_0==19) ) {\r\n alt6=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 6, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt6) {\r\n case 1 :\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2279:1: ( '==' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2279:1: ( '==' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2280:1: '=='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \r\n }\r\n match(input,18,FOLLOW_18_in_rule__OpEquality__Alternatives4816); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2287:6: ( '!=' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2287:6: ( '!=' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2288:1: '!='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \r\n }\r\n match(input,19,FOLLOW_19_in_rule__OpEquality__Alternatives4836); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public boolean equals(Object o) {\n if (!super.equals(o)) return false;\n RealConjunctiveFeature c = (RealConjunctiveFeature) o;\n return (left == c.left || left.equals(c.left))\n && (right == c.right || right.equals(c.right));\n }", "static public boolean testEquality(Object a, Object b) {\r\n\t\tif (a == null && b == null) // undefined == undefined\r\n\t\t\treturn true;\r\n\t\tif ((a == null || b == null) && (a instanceof JSNull || b instanceof JSNull)) // undefined or null\r\n\t\t\treturn true;\r\n\t\tif ((a == null && b instanceof JSNull) || (a == null && b instanceof JSNull)) // anything == undefined\r\n\t\t\treturn true;\r\n\t\tif (a == null || b == null) // anything equals null\r\n\t\t\treturn false;\r\n\t\treturn a.equals(b);\r\n\t}", "@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return false;\n }", "private static final boolean equal(Object a, Object b) {\n if (a == b)\n return true;\n if (a == null)\n return false;\n if (b == null)\n return false;\n return a.equals(b);\n }", "@Test\n\tpublic void testEqualsFalso() {\n\t\t\n\t\tassertFalse(contato1.equals(contato2));\n\t}", "public boolean equivalent(Operation o) {\n return o.token == this.token && o.op == this.op;\n }", "@Override\n\tpublic boolean equals(Object other) {\n\t\tif (other instanceof DBBoolean) {\n\t\t\tDBBoolean otherDBBoolean = (DBBoolean) other;\n\t\t\treturn getValue().equals(otherDBBoolean.getValue());\n\t\t}\n\t\treturn false;\n\t}", "boolean equalTo(ObjectPassDemo o) {\n return (o.a == a && o.b == b);\n }", "protected abstract boolean equalityTest(Object key, Object key2);", "public boolean equals( Object obj );", "public boolean isEquals(BinaryTree<T> tree){\n //if both are empty, are equals\n if(this.isEmpty() && tree.isEmpty()){\n return true;\n \n //if this is empty (and the other not, because don't get the if before)\n //is false\n }else if(this.isEmpty()){\n return false;\n \n //if the content of both nodes are equals...\n }else if(this.content.equals(tree.content)){\n //check recursively their childs\n if(this.left.isEquals(tree.left) \n && this.right.isEquals(tree.right)){\n return false;\n }else{\n return true;\n }\n \n //if not one of the before ifs, aren't equals \n }else{\n return false;\n }\n }", "public static boolean equalityOperator(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"equalityOperator\")) return false;\n if (!nextTokenIs(b, \"<equality operator>\", EQ_EQ, NEQ)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, EQUALITY_OPERATOR, \"<equality operator>\");\n r = consumeToken(b, EQ_EQ);\n if (!r) r = consumeToken(b, NEQ);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public static boolean operator ==(LocalValueEnumerator obj1, LocalValueEnumerator obj2)\r\n { \r\n return obj1.Equals(obj2); \r\n }", "public boolean equals(Object obj);", "public boolean isEquilateral() {\n\t\t\t\n\t\t\tif (this.sideOne == this.sideTwo & this.sideOne == this.sideThree & this.sideTwo == this.sideThree) {\n\t\t\t\treturn true;\t\t\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "@Test\n @DisplayName(\"Test should detect inequality between unequal states.\")\n public void testShouldResultInInequality() {\n ObjectBag os1 = new ObjectBag(null, \"Hi\");\n ObjectBag os2 = new ObjectBag(null, \"Goodbye\");\n\n Assertions.assertThat(os1).isNotEqualTo(os2);\n }", "@RepeatedTest(20)\n void logicalOperatorsTest() {\n assertEquals(bi.or(bot), new Binary(\"1\"));\n assertEquals(bi.or(bof), bi);\n assertEquals(bi.and(bot), bi);\n assertEquals(bi.and(bof), new Binary(\"0\"));\n assertEquals(bot.or(bi), new Binary(\"1\"));\n assertEquals(bof.or(bi), bi);\n assertEquals(bot.and(bi), bi);\n assertEquals(bof.and(bi), new Binary(\"0\"));\n assertEquals(bot.and(bot), bot);\n assertEquals(bot.and(bof),bof);\n assertEquals(bof.and(bot),bof);\n assertEquals(bof.and(bof),bof);\n assertEquals(bot.or(bot), bot);\n assertEquals(bot.or(bof),bot);\n assertEquals(bof.or(bot),bot);\n assertEquals(bof.or(bof),bof);\n Binary b1 = new Binary(\"10001\");\n Binary b2 = new Binary(\"1001011\");\n assertEquals(b1.or(b2), new Binary(\"1111011\"));\n assertEquals(b1.and(b2), new Binary(\"1000001\"));\n assertEquals(b1.or(b2), b2.or(b1));\n assertEquals(b1.and(b2),b2.and(b1));\n assertEquals(bi.or(bi), bi);\n assertEquals(bi.and(bi),bi);\n Binary notbi = bi.neg();\n assertEquals(bi.or(notbi), new Binary(\"1\"));\n assertEquals(bi.and(notbi), new Binary(\"0\"));\n\n //nulls\n //Bool or ITypes \\ {Logicals}\n assertEquals(bot.or(st),Null);\n assertEquals(bof.or(st),Null);\n assertEquals(bot.or(f), Null);\n assertEquals(bof.or(i), Null);\n //Float or ITypes\n assertEquals(f.or(st), Null);\n assertEquals(f.or(bot), Null);\n assertEquals(f.or(bof), Null);\n assertEquals(f.or(i), Null);\n assertEquals(f.or(g), Null);\n assertEquals(f.or(bi), Null);\n //Int or ITypes\n assertEquals(i.or(st), Null);\n assertEquals(i.or(bot),Null);\n assertEquals(i.or(bof), Null);\n assertEquals(i.or(j), Null);\n assertEquals(i.or(f), Null);\n assertEquals(i.or(bi), Null);\n //Binary or ITypes \\ {Logicals}\n assertEquals(bi.or(st), Null);\n assertEquals(bi.or(f), Null);\n assertEquals(bi.or(i), Null);\n //NullType or ITypes\n assertEquals(Null.or(st), Null);\n assertEquals(Null.or(bof), Null);\n assertEquals(Null.or(f), Null);\n assertEquals(Null.or(i), Null);\n assertEquals(Null.or(bi), Null);\n assertEquals(Null.or(Null), Null);\n assertEquals(st.or(Null), Null);\n assertEquals(bot.or(Null), Null);\n assertEquals(f.or(Null), Null);\n assertEquals(i.or(Null), Null);\n assertEquals(bi.or(Null), Null);\n\n //Bool and ITypes \\ {Logicals}\n assertEquals(bot.and(st),Null);\n assertEquals(bof.and(st),Null);\n assertEquals(bot.and(f), Null);\n assertEquals(bof.and(i), Null);\n //Float and ITypes\n assertEquals(f.and(st), Null);\n assertEquals(f.and(bot), Null);\n assertEquals(f.and(bof), Null);\n assertEquals(f.and(i), Null);\n assertEquals(f.and(g), Null);\n assertEquals(f.and(bi), Null);\n //Int and ITypes\n assertEquals(i.and(st), Null);\n assertEquals(i.and(bot),Null);\n assertEquals(i.and(bof), Null);\n assertEquals(i.and(j), Null);\n assertEquals(i.and(f), Null);\n assertEquals(i.and(bi), Null);\n //Binary and ITypes \\ {Logicals}\n assertEquals(bi.and(st), Null);\n assertEquals(bi.and(f), Null);\n assertEquals(bi.and(i), Null);\n //NullType and ITypes\n assertEquals(Null.and(st), Null);\n assertEquals(Null.and(bof), Null);\n assertEquals(Null.and(f), Null);\n assertEquals(Null.and(i), Null);\n assertEquals(Null.and(bi), Null);\n assertEquals(Null.and(Null), Null);\n assertEquals(st.and(Null), Null);\n assertEquals(bot.and(Null), Null);\n assertEquals(f.and(Null), Null);\n assertEquals(i.and(Null), Null);\n assertEquals(bi.and(Null), Null);\n\n }", "boolean hasIsEquivalent();", "boolean equals(Object obj);", "boolean equals(Object obj);", "@Test\n public void equality() {\n new EqualsTester()\n .addEqualityGroup(UnitConverters.identity())\n .addEqualityGroup(UnitConverters.shift(100))\n .addEqualityGroup(UnitConverters.multiply(2))\n .addEqualityGroup(UnitConverters.pow(10, 6))\n .addEqualityGroup(UnitConverters.pow(UnitConverters.multiply(5), 2))\n .addEqualityGroup(UnitConverters.root(UnitConverters.multiply(5), 2))\n .addEqualityGroup(UnitConverters.compose(UnitConverters.shift(100), UnitConverters.multiply(2)))\n .testEquals();\n }", "public boolean isEquals() {\n long len = -1L;\n\n //1. check the lengths of the words\n for(S left : slp.getAxioms()) {\n if(len == -1L) {\n len = slp.length(left);\n }\n else {\n if(len != slp.length(left)) {\n return false;\n }\n }\n }\n\n // all words are the empty word\n if(len == 0) {\n return true;\n }\n\n // 2. the length are all equals and not zero => execute the recompression\n execute();\n\n S otherSymbol = null;\n boolean first = true;\n\n // 3. chech now if for all axioms X : |val(X)| = 1 and all val(X) are equals.\n for(S left : slp.getAxioms()) {\n if(first) {\n slp.length(left, true);\n first = false;\n }\n\n if(slp.length(left) != 1) {\n return false;\n }\n else {\n S symbol = slp.get(left, 1);\n if(otherSymbol == null) {\n otherSymbol = symbol;\n }\n\n if(!symbol.equals(otherSymbol)) {\n return false;\n }\n }\n }\n\n return true;\n }", "@Test\n public void testEquals() {\n Term t1 = structure(\"abc\", atom(\"a\"), atom(\"b\"), atom(\"c\"));\n Term t2 = structure(\"abc\", integerNumber(), decimalFraction(), variable());\n PredicateKey k1 = PredicateKey.createForTerm(t1);\n PredicateKey k2 = PredicateKey.createForTerm(t2);\n testEquals(k1, k2);\n }", "protected abstract boolean isEqual(E entryA, E entryB);", "public boolean equals(Object object);", "static boolean argEquals(LObjBoolPair the, Object that) {\n return Null.equals(the, that, (one, two) -> {\n // Intentionally all implementations of LObjBoolPair are allowed.\n if (!(two instanceof LObjBoolPair)) {\n return false;\n }\n\n LObjBoolPair other = (LObjBoolPair) two;\n\n return argEquals(one.first(), one.second(), other.first(), other.second());\n });\n }", "boolean equals(Object object);", "public boolean equalsDontCare(TribitByte o){\n if (o == null) return false;\n if (this == o) return true;\n return Stream.iterate(0, i -> i + 1)\n .limit(LENGTH)\n .allMatch(idx -> {\n Tribit thisBit = value[idx];\n Tribit otherBit = o.value[idx];\n if(thisBit == Tribit.DONT_CARE || otherBit == Tribit.DONT_CARE){\n return true;\n } else {\n return thisBit == otherBit;\n }\n });\n }", "private static void checkEqualsAndHashCodeMethods(Object lhs, Object rhs,\n boolean expectedResult) {\n if ((lhs == null) && (rhs == null)) {\n Assert.assertTrue(\n \"Your check is dubious...why would you expect null != null?\",\n expectedResult);\n return;\n }\n\n if ((lhs == null) || (rhs == null)) {\n Assert.assertFalse(\n \"Your check is dubious...why would you expect an object \"\n + \"to be equal to null?\", expectedResult);\n }\n\n if (lhs != null) {\n assertEquals(expectedResult, lhs.equals(rhs));\n }\n if (rhs != null) {\n assertEquals(expectedResult, rhs.equals(lhs));\n }\n\n if (expectedResult) {\n String hashMessage =\n \"hashCode() values for equal objects should be the same\";\n Assert.assertTrue(hashMessage, lhs.hashCode() == rhs.hashCode());\n }\n }", "public boolean isIdentical(Remote obj1, Remote obj2)\n {\n\torg.omg.CORBA.Object corbaObj1 = (org.omg.CORBA.Object)obj1;\n\torg.omg.CORBA.Object corbaObj2 = (org.omg.CORBA.Object)obj2;\n\n\treturn corbaObj1._is_equivalent(corbaObj2);\n }", "@Test\n public void testEqualsReturnsFalseOnNullArg() {\n boolean equals = record.equals(null);\n\n assertThat(equals, is(false));\n }", "public static boolean equalQuick(final Object a, final Object b) {\n \treturn a == b || ((a != null & b != null) && a.equals(b));\n }", "public boolean eq(final A a1, final A a2) {\n return f.f(a1).f(a2);\n }", "public void testEquals()\n {\n // test passing null to equals returns false\n // (as specified in the JDK docs for Object)\n EthernetAddress x =\n new EthernetAddress(VALID_ETHERNET_ADDRESS_BYTE_ARRAY);\n assertFalse(\"equals(null) didn't return false\",\n x.equals((Object)null));\n \n // test passing an object which is not a EthernetAddress returns false\n assertFalse(\"x.equals(non_EthernetAddress_object) didn't return false\",\n x.equals(new Object()));\n \n // test a case where two EthernetAddresss are definitly not equal\n EthernetAddress w =\n new EthernetAddress(ANOTHER_VALID_ETHERNET_ADDRESS_BYTE_ARRAY);\n assertFalse(\"x == w didn't return false\",\n x == w);\n assertFalse(\"x.equals(w) didn't return false\",\n x.equals(w));\n\n // test refelexivity\n assertTrue(\"x.equals(x) didn't return true\",\n x.equals(x));\n \n // test symmetry\n EthernetAddress y =\n new EthernetAddress(VALID_ETHERNET_ADDRESS_BYTE_ARRAY);\n assertFalse(\"x == y didn't return false\",\n x == y);\n assertTrue(\"y.equals(x) didn't return true\",\n y.equals(x));\n assertTrue(\"x.equals(y) didn't return true\",\n x.equals(y));\n \n // now we'll test transitivity\n EthernetAddress z =\n new EthernetAddress(VALID_ETHERNET_ADDRESS_BYTE_ARRAY);\n assertFalse(\"x == y didn't return false\",\n x == y);\n assertFalse(\"x == y didn't return false\",\n y == z);\n assertFalse(\"x == y didn't return false\",\n x == z);\n assertTrue(\"x.equals(y) didn't return true\",\n x.equals(y));\n assertTrue(\"y.equals(z) didn't return true\",\n y.equals(z));\n assertTrue(\"x.equals(z) didn't return true\",\n x.equals(z));\n \n // test consistancy (this test is just calling equals multiple times)\n assertFalse(\"x == y didn't return false\",\n x == y);\n assertTrue(\"x.equals(y) didn't return true\",\n x.equals(y));\n assertTrue(\"x.equals(y) didn't return true\",\n x.equals(y));\n assertTrue(\"x.equals(y) didn't return true\",\n x.equals(y));\n }", "public AlgoAreEqual(Construction cons, String label,\n\t\t\tGeoElement inputElement1, GeoElement inputElement2) {\n\t\tthis(cons, inputElement1, inputElement2);\n\t\toutputBoolean.setLabel(label);\n\t}", "private static boolean equalityTest2(String a, String b)\n {\n return a.equals(b);\n }", "protected boolean equalityTest(Object key, Object key2) {\n\t\t\treturn this.set.equalityTest(key, key2);\n\t\t}", "@Test\n public void testEquals() throws ValueDoesNotMatchTypeException {\n TestEvaluationContext context = new TestEvaluationContext();\n \n DecisionVariableDeclaration decl = new DecisionVariableDeclaration(\"x\", IntegerType.TYPE, null);\n \n ConstantValue c0 = new ConstantValue(ValueFactory.createValue(IntegerType.TYPE, 0));\n ConstraintSyntaxTree cst1 = new OCLFeatureCall(\n new Variable(decl), IntegerType.LESS_EQUALS_INTEGER_INTEGER.getName(), c0);\n ConstraintSyntaxTree cst2 = new OCLFeatureCall(\n new Variable(decl), IntegerType.GREATER_EQUALS_INTEGER_INTEGER.getName(), c0);\n\n EvaluationAccessor val1 = Utils.createValue(ConstraintType.TYPE, context, cst1);\n EvaluationAccessor val2 = Utils.createValue(ConstraintType.TYPE, context, cst2);\n EvaluationAccessor nullV = Utils.createNullValue(context);\n \n // equals is useless and will be tested in the EvaluationVisitorTest\n \n Utils.testEquals(true, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val1, val1);\n Utils.testEquals(true, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val2, val2);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val1, val2);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val2, val1);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val1, nullV);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val2, nullV);\n\n val1.release();\n val2.release();\n nullV.release();\n }", "public static Object notEquals(Object val1, Object val2) {\n\t\tObject result = equals(val1, val2);\n\t\tif (isBool(result)) {\n\t\t\treturn !((Boolean) result);\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in notEquals\");\n\t}", "public abstract boolean doEquivalent(T t, T t2);", "@Test\n void testEqualsFalse() {\n assertFalse(loginRequest1.equals(loginRequest2));\n }", "public final Enumerator ruleEqualityOperator() throws RecognitionException {\n Enumerator current = null;\n\n setCurrentLookahead(); resetLookahead(); \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6745:6: ( ( ( '==' ) | ( '!=' ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6746:1: ( ( '==' ) | ( '!=' ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6746:1: ( ( '==' ) | ( '!=' ) )\n int alt98=2;\n int LA98_0 = input.LA(1);\n\n if ( (LA98_0==66) ) {\n alt98=1;\n }\n else if ( (LA98_0==67) ) {\n alt98=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"6746:1: ( ( '==' ) | ( '!=' ) )\", 98, 0, input);\n\n throw nvae;\n }\n switch (alt98) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6746:2: ( '==' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6746:2: ( '==' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6746:4: '=='\n {\n match(input,66,FOLLOW_66_in_ruleEqualityOperator11772); \n\n current = grammarAccess.getEqualityOperatorAccess().getEqualToEnumLiteralDeclaration_0().getEnumLiteral().getInstance();\n createLeafNode(grammarAccess.getEqualityOperatorAccess().getEqualToEnumLiteralDeclaration_0(), null); \n \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6752:6: ( '!=' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6752:6: ( '!=' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6752:8: '!='\n {\n match(input,67,FOLLOW_67_in_ruleEqualityOperator11787); \n\n current = grammarAccess.getEqualityOperatorAccess().getNotEqualToEnumLiteralDeclaration_1().getEnumLiteral().getInstance();\n createLeafNode(grammarAccess.getEqualityOperatorAccess().getNotEqualToEnumLiteralDeclaration_1(), null); \n \n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public static BinaryExpression equal(Expression expression0, Expression expression1, boolean liftToNull, Method method) { throw Extensions.todo(); }", "public final EObject ruleComparison() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_BooleanUnit_0 = null;\r\n\r\n EObject lv_operator_2_1 = null;\r\n\r\n EObject lv_operator_2_2 = null;\r\n\r\n EObject lv_right_3_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2335:28: ( (this_BooleanUnit_0= ruleBooleanUnit ( () ( ( (lv_operator_2_1= ruleEqualsOperator | lv_operator_2_2= ruleNotEqualsOperator ) ) ) ( (lv_right_3_0= ruleBooleanUnit ) ) )* ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2336:1: (this_BooleanUnit_0= ruleBooleanUnit ( () ( ( (lv_operator_2_1= ruleEqualsOperator | lv_operator_2_2= ruleNotEqualsOperator ) ) ) ( (lv_right_3_0= ruleBooleanUnit ) ) )* )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2336:1: (this_BooleanUnit_0= ruleBooleanUnit ( () ( ( (lv_operator_2_1= ruleEqualsOperator | lv_operator_2_2= ruleNotEqualsOperator ) ) ) ( (lv_right_3_0= ruleBooleanUnit ) ) )* )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2337:5: this_BooleanUnit_0= ruleBooleanUnit ( () ( ( (lv_operator_2_1= ruleEqualsOperator | lv_operator_2_2= ruleNotEqualsOperator ) ) ) ( (lv_right_3_0= ruleBooleanUnit ) ) )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getComparisonAccess().getBooleanUnitParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleBooleanUnit_in_ruleComparison4978);\r\n this_BooleanUnit_0=ruleBooleanUnit();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_BooleanUnit_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2345:1: ( () ( ( (lv_operator_2_1= ruleEqualsOperator | lv_operator_2_2= ruleNotEqualsOperator ) ) ) ( (lv_right_3_0= ruleBooleanUnit ) ) )*\r\n loop32:\r\n do {\r\n int alt32=2;\r\n int LA32_0 = input.LA(1);\r\n\r\n if ( ((LA32_0>=55 && LA32_0<=57)) ) {\r\n alt32=1;\r\n }\r\n\r\n\r\n switch (alt32) {\r\n \tcase 1 :\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2345:2: () ( ( (lv_operator_2_1= ruleEqualsOperator | lv_operator_2_2= ruleNotEqualsOperator ) ) ) ( (lv_right_3_0= ruleBooleanUnit ) )\r\n \t {\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2345:2: ()\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2346:5: \r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t current = forceCreateModelElementAndSet(\r\n \t grammarAccess.getComparisonAccess().getComparisonLeftAction_1_0(),\r\n \t current);\r\n \t \r\n \t }\r\n\r\n \t }\r\n\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2351:2: ( ( (lv_operator_2_1= ruleEqualsOperator | lv_operator_2_2= ruleNotEqualsOperator ) ) )\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2352:1: ( (lv_operator_2_1= ruleEqualsOperator | lv_operator_2_2= ruleNotEqualsOperator ) )\r\n \t {\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2352:1: ( (lv_operator_2_1= ruleEqualsOperator | lv_operator_2_2= ruleNotEqualsOperator ) )\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2353:1: (lv_operator_2_1= ruleEqualsOperator | lv_operator_2_2= ruleNotEqualsOperator )\r\n \t {\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2353:1: (lv_operator_2_1= ruleEqualsOperator | lv_operator_2_2= ruleNotEqualsOperator )\r\n \t int alt31=2;\r\n \t int LA31_0 = input.LA(1);\r\n\r\n \t if ( (LA31_0==55) ) {\r\n \t alt31=1;\r\n \t }\r\n \t else if ( ((LA31_0>=56 && LA31_0<=57)) ) {\r\n \t alt31=2;\r\n \t }\r\n \t else {\r\n \t if (state.backtracking>0) {state.failed=true; return current;}\r\n \t NoViableAltException nvae =\r\n \t new NoViableAltException(\"\", 31, 0, input);\r\n\r\n \t throw nvae;\r\n \t }\r\n \t switch (alt31) {\r\n \t case 1 :\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2354:3: lv_operator_2_1= ruleEqualsOperator\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getComparisonAccess().getOperatorEqualsOperatorParserRuleCall_1_1_0_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleEqualsOperator_in_ruleComparison5010);\r\n \t lv_operator_2_1=ruleEqualsOperator();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getComparisonRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"operator\",\r\n \t \t\tlv_operator_2_1, \r\n \t \t\t\"EqualsOperator\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n \t break;\r\n \t case 2 :\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2369:8: lv_operator_2_2= ruleNotEqualsOperator\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getComparisonAccess().getOperatorNotEqualsOperatorParserRuleCall_1_1_0_1()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleNotEqualsOperator_in_ruleComparison5029);\r\n \t lv_operator_2_2=ruleNotEqualsOperator();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getComparisonRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"operator\",\r\n \t \t\tlv_operator_2_2, \r\n \t \t\t\"NotEqualsOperator\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n \t break;\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2387:2: ( (lv_right_3_0= ruleBooleanUnit ) )\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2388:1: (lv_right_3_0= ruleBooleanUnit )\r\n \t {\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2388:1: (lv_right_3_0= ruleBooleanUnit )\r\n \t // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:2389:3: lv_right_3_0= ruleBooleanUnit\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getComparisonAccess().getRightBooleanUnitParserRuleCall_1_2_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleBooleanUnit_in_ruleComparison5053);\r\n \t lv_right_3_0=ruleBooleanUnit();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getComparisonRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"right\",\r\n \t \t\tlv_right_3_0, \r\n \t \t\t\"BooleanUnit\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop32;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public static void equalsDemo() {\n\n//\t\tSystem.out.printf(\"demo1 == demo2 = %s%n\", demo1 == demo2);\n//\t\tSystem.out.printf(\"demo2 == demo3 = %s%n\", demo2 == demo3);\n//\t\tSystem.out.printf(\"demo2.equals(demo3) = %s%n\", demo2.equals(demo3));\n//\t\tSystem.out.printf(\"%n\");\n\t}", "public static void main(String[] args) {\n // Reflexive\n System.out.println(o.equals(o));\n System.out.println(r.equals(r));\n\n // Symmetric\n System.out.println(o.equals(p) + \" = \" + p.equals(o));\n System.out.println(r.equals(s) + \" = \" + s.equals(r));\n\n // Transitive\n System.out.println(o.equals(p) + \" = \" + p.equals(q) + \" = \" + o.equals(q));\n System.out.println(r.equals(s) + \" = \" + s.equals(t) + \" = \" + r.equals(t));\n\n // Comparing Point to ColorPoint\n System.out.println(p.equals(s.asPoint()));\n System.out.println(s.asPoint().equals(p));\n }", "private static boolean checkEqualsToOperations(String expression, Lexemes lexemes, SymbolTable table) {\n\t\tif (expression.contains(\"==\")) {\n\n\t\t\tString[] arr = expression.split(\"==\");\n\t\t\tint finalIndex = arr.length - 1;\n\n\t\t\tfor (int i = 0; i <= finalIndex; i++) {\n\t\t\t\tString s = arr[i];\n\n\t\t\t\t// check if the current word is a variable\n\t\t\t\tif (table.contains(s)) {\n\t\t\t\t\tint id = table.getIdOfVariable(s);\n\t\t\t\t\tlexemes.insertLexeme(\"ID\", ((Integer) id).toString());\n\t\t\t\t} else {\n\n\t\t\t\t\tif (s.equals(\"true\")) {\n\t\t\t\t\t\tlexemes.insertLexeme(\"CONST_BOOL\", \"true\");\n\t\t\t\t\t} else if (s.equals(\"false\")) {\n\t\t\t\t\t\tlexemes.insertLexeme(\"CONST_BOOL\", \"false\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (!checkRelationalOperations(s.trim(), lexemes, table)) return false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (i < finalIndex) {\n\t\t\t\t\tlexemes.insertLexeme(\"RELOP\", \"==\");\n\t\t\t\t} else if (expression.endsWith(\"==\")) {\n\t\t\t\t\tlexemes.insertLexeme(\"RELOP\", \"==\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\tif (!checkRelationalOperations(expression.trim(), lexemes, table)) return false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Test\r\n\tpublic void testEquality(){\n\t\t assertEquals(object1, object2);\r\n\t}", "public final BooleanDataValue notEquals(DataValueDescriptor left,\n\t\t\t\t\t\t\t DataValueDescriptor right)\n\t\t\t\t\t\t\t\tthrows StandardException\n\t{\n\t\tboolean isNotEqual;\n\n\t\tif (left.isNull() || right.isNull())\n\t\t{\n\t\t\tisNotEqual = false;\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\tisNotEqual = SQLBinary.compare(left.getBytes(), right.getBytes()) != 0;\n\t\t}\n\n\t\treturn SQLBoolean.truthValue(left,\n\t\t\t\t\t\t\t\t\t right,\n\t\t\t\t\t\t\t\t\t isNotEqual);\n\t}", "private boolean notEquals(Object a, Object b)\n {\n if (a != null && b == null)\n return true;\n if (a == null && b != null)\n return true;\n if (a != null && !a.equals(b))\n return true;\n return false;\n }", "@Test\n public void testEquality() {\n Map<ColumnType, ColumnType> typeMap = new HashMap<ColumnType, ColumnType>();\n ColumnType typeBool = new ColumnType(-7, \"bool\");\n ColumnType typeBoolean = new ColumnType(16, \"boolean\");\n ColumnType typeBool2 = new ColumnType(-7, \"bool\");\n typeMap.put(typeBool, typeBool2);\n typeMap.put(typeBoolean, typeBool2);\n assertEquals(\"Expected bool types are equal\", typeBool, typeMap.get(typeBool));\n assertEquals(\"Expected bool types are equal\", typeBool, typeMap.get(typeBoolean));\n }", "public boolean equals(Object o) { return compareTo(o) == 0; }", "public boolean equalsWith(TraceGraph<?> other,\n IBoolBinary<EventNode, EventNode> pred) {\n\n EventNode unusedOther = other.getDummyInitialNode();\n EventNode n1 = this.getDummyInitialNode();\n EventNode n2 = unusedOther;\n\n if (pred.eval(n1, n2) && transitionEquality(n1, n2, pred)) {\n return true;\n }\n return false;\n }", "public void testX1andX2orNotX1() {\n \tCircuit circuit = new Circuit();\n \t\n \tBoolean b1 = Boolean.TRUE;\n \tBoolean b2 = Boolean.FALSE;\n \tAnd and = (And) circuit.getFactory().getGate(Gate.AND);\n\t\tNot not = (Not) circuit.getFactory().getGate(Gate.NOT);\n\t\tOr or = (Or) circuit.getFactory().getGate(Gate.OR);\n\t\tand.setLeftInput(b1);\n\t\tand.setRightInput(b2);\n\t\tand.eval();\n\t\tnot.setInput(b1);\n\t\tnot.eval();\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n\t\tassertEquals(Boolean.FALSE, or.eval());\n\t\tassertEquals(Boolean.FALSE, circuit.eval());\n//\t\t==========================================\n\t\tb1 = Boolean.FALSE;\n \tb2 = Boolean.TRUE;\n// \tand.eval();\n// \tnot.eval();\n \tassertEquals(Boolean.FALSE, circuit.eval());\n// \t============================================\n \tDouble d1 = 0.0;\n \tDouble d2 = 1.0;\n \tand.setLeftInput(d1);\n\t\tand.setRightInput(d2);\n\t\tnot.setInput(d1);\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(1.0), or.eval());\n// \t============================================\n \td1 = 0.5;\n \td2 = 0.5;\n \tand.setLeftInput(d1);\n\t\tand.setRightInput(d2);\n \tand.eval();\n \tnot.setInput(d1);\n \tnot.eval();\n\t\tor.setLeftInput(and.getOutput());\n\t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(0.625), or.eval());\n// \t============================================\n \ttry {\n \td1 = 0.5;\n \td2 = 2.0;\n \tand.setLeftInput(d1);\n \t\tand.setRightInput(d2);\n \tand.eval();\n \tnot.setInput(d1);\n \tnot.eval();\n \t\tor.setLeftInput(and.getOutput());\n \t\tor.setRightInput(not.getOutput());\n \tassertEquals( new Double(0.625), or.eval());\n \t} catch (IllegalArgumentException e) {\n \t\tSystem.err.println(\"IllegalArgumentException: \" + e.getMessage());\n \t}\n\n }", "boolean isEquilateral() {\r\n\t\treturn (side1 == side2 && side2 == side3 && side3 == side1);\r\n\t}", "public boolean equals(Object another) {\n return (this == another);\n }" ]
[ "0.73833823", "0.6830266", "0.6651187", "0.66261333", "0.65171194", "0.6514562", "0.64574254", "0.64106464", "0.6380812", "0.6337254", "0.63216877", "0.6313419", "0.63133085", "0.63009346", "0.6281937", "0.6238894", "0.6216823", "0.6211098", "0.6164439", "0.6164133", "0.61319", "0.60946465", "0.6079005", "0.60538054", "0.6050912", "0.604633", "0.6037631", "0.60241795", "0.60227233", "0.6022088", "0.60214907", "0.60186917", "0.6015545", "0.6000411", "0.5995916", "0.59919333", "0.5987302", "0.5987302", "0.5987302", "0.5987302", "0.5987302", "0.5987046", "0.5982816", "0.59709555", "0.59631574", "0.59543794", "0.5942125", "0.59391975", "0.5927528", "0.59253895", "0.59176177", "0.5915845", "0.59144074", "0.59093946", "0.58895576", "0.588661", "0.58826506", "0.58809346", "0.58753383", "0.5868484", "0.5864972", "0.58585775", "0.58547354", "0.58456266", "0.58456266", "0.5836439", "0.5835423", "0.5834507", "0.5833151", "0.583255", "0.58310694", "0.5826602", "0.58221716", "0.58115983", "0.5811271", "0.5810419", "0.58081937", "0.5806503", "0.5798958", "0.57975507", "0.5794871", "0.5790859", "0.57869965", "0.5784806", "0.5779102", "0.57714516", "0.5767942", "0.576691", "0.5754781", "0.5752839", "0.5750617", "0.5749414", "0.5748319", "0.57376623", "0.57337874", "0.57270986", "0.57244253", "0.5712526", "0.5705123", "0.5697315", "0.56972134" ]
0.0
-1
Computes a hash code.
@Override public abstract int hashCode();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int hashcode();", "private static int computeHash(int par0)\n {\n par0 ^= par0 >>> 20 ^ par0 >>> 12;\n return par0 ^ par0 >>> 7 ^ par0 >>> 4;\n }", "int hash(String makeHash, int mod);", "public int hash(T input);", "int computeHashCode(byte val);", "int getHash();", "public int hashCode()\n {\n int code = 0;\n int i;\n int shift = 0;\n \n \t\tint byteLength = getLengthInBytes();\n for( i = 0; i < byteLength; i++)\n {\n code ^= (value[i] & 0xff)<<shift;\n shift += 8;\n if( 32 <= shift)\n shift = 0;\n }\n return code;\n }", "private int hasher() {\n int i = 0;\n int hash = 0;\n while (i != length) {\n hash += hashableKey.charAt(i++);\n hash += hash << 10;\n hash ^= hash >> 6;\n }\n hash += hash << 3;\n hash ^= hash >> 11;\n hash += hash << 15;\n return getHash(hash);\n }", "static int hash(int h) {\n\t\t // This function ensures that hashCodes that differ only by constant \n\t\t // multiples at each bit position have a bounded number of collisions \n\t\t // (approximately 8 at default load factor).\n\t\th ^= (h >>> 20) ^ (h >>> 12);\n\t\treturn h ^ (h >>> 7) ^ (h >>> 4);\n\t}", "public int hashCode() {\n int hash = 104473;\n if (token_ != null) {\n // Obtain unencrypted form as common base for comparison\n byte[] tkn = getToken();\n for (int i=0; i<tkn.length; i++)\n hash ^= (int)tkn[i];\n }\n hash ^= (type_ ^ 14401);\n hash ^= (timeoutInterval_ ^ 21327);\n hash ^= (isPrivate() ? 15501 : 12003);\n if (getPrincipal() != null)\n hash ^= getPrincipal().hashCode();\n if (getSystem() != null)\n hash ^= getSystem().getSystemName().hashCode();\n return hash;\n }", "public int hashCode(){\n \n long code;\n\n // Values in linear combination with two\n // prime numbers.\n\n code = ((21599*(long)value)+(20507*(long)n.value));\n code = code%(long)prime;\n return (int)code;\n }", "public int hashCode() {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[28]++;\r\n long start = getStartMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[29]++;\r\n long end = getEndMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[30]++;\r\n int result = 97;\r\n result = 31 * result + ((int) (start ^ (start >>> 32)));\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[31]++;\r\n result = 31 * result + ((int) (end ^ (end >>> 32)));\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[32]++;\r\n result = 31 * result + getChronology().hashCode();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[33]++;\r\n return result;\r\n }", "public int hashCode()\n {\n return (int)(swigCPtr^(swigCPtr>>>32));\n }", "int hashCode();", "int hashCode();", "String getHashAlgorithm();", "public abstract int getHash();", "private int hashFunc(String input) {\n\t\tBigInteger value = BigInteger.valueOf(0);\n\t\tBigInteger k2 = new BigInteger(\"27\");\n\t\tchar c = input.charAt(0);\n\t\tlong i1 = (int) c - 96;\n\t\tBigInteger k1 = new BigInteger(\"0\");\n\t\tk1 = k1.add(BigInteger.valueOf(i1));\n\t\tvalue = k1;\n\n\t\tfor (int i = 1; i < input.length(); i++) {\n\n\t\t\tchar c2 = input.charAt(i);\n\n\t\t\tvalue = value.multiply(k2);\n\n\t\t\tlong i2 = (int) c2 - 96;\n\t\t\tBigInteger k3 = new BigInteger(\"0\");\n\t\t\tk3 = k3.add(BigInteger.valueOf(i2));\n\n\t\t\tvalue = value.add(k3);\n\n\t\t}\n\t\tBigInteger size = new BigInteger(\"0\");\n\t\tsize = size.add(BigInteger.valueOf(this.size));\n\t\tvalue = value.mod(size);\n\n\t\treturn value.intValue();\n\t}", "@Override\n public void computeHash(Hasher hasher) {\n }", "@SuppressWarnings(\"WeakerAccess\")\n abstract public int hash(char c);", "long hash(Block block, int position);", "private String hash(){\r\n return Utility.SHA512(this.simplify());\r\n }", "public int hashCode() {\n\t\tlong code = 0;\n\t\tint elements = _rowCount * _columnCount;\n\n\t\tfor (int i = 0; i < elements; i++) {\n\t\t\tcode += _value[i];\n\t\t}\n\n\t\treturn (int) code;\n\t}", "static int getHash(int par0)\n {\n return computeHash(par0);\n }", "public int hashCode() {\n\t\tint h = 0, i = 0, j = count;\n\t\twhile (j-- != 0) {\n\t\t\twhile (state[i] != OCCUPIED)\n\t\t\t\ti++;\n\t\t\th += longHash2IntHash(key[i]);\n\t\t\ti++;\n\t\t}\n\t\treturn h;\n\t}", "@Override\n\tpublic long getHashCode(String key) {\n\t\tlong hash = 0;\n\t\tlong b = 378551;\n\t\tlong a = 63689;\n\t\tint tmp = 0;\n\t\tfor (int i = 0; i < key.length(); i++) {\n\t\t\ttmp = key.charAt(i);\n\t\t\thash = hash * a + tmp;\n\t\t\ta *= b;\n\t\t}\n\t\treturn hash;\n\t}", "int _hash(int maximum);", "@Override\n public int hashCode() {\n int hash = 3;\n hash = 97 * hash + this.x;\n hash = 97 * hash + this.y;\n return hash;\n }", "public int hashCode(String s){\r\n int length = s.length();\r\n int h = 0;\r\n for(int i = 0; i < length; i++){\r\n h = h + ((int)s.indexOf(i))*(37^(length - 1));\r\n }\r\n return h;\r\n }", "public abstract int hashCode();", "public int hashCode();", "public int hashCode();", "public int hashCode();", "public int hashCode();", "private int hash(String str, int h){\n int v=0;\n\n /* FILL IN HERE */\n v = Math.floorMod(MurmurHash.hash32(str, seeds[h]) >>> h, 1 << logNbOfBuckets);\n\n return v;\n }", "String getHash();", "String getHash();", "public int hashCode() {\n int hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + (userId != null ? userId.hashCode() : 0);\n hash = hash * UtilConstants.HASH_PRIME + (role != null ? role.hashCode() : 0);\n return hash;\n }", "protected int computeHashCode() {\n return flags * 17\n + (var != null ? var.hashCode() : 0)\n + (num != null ? num.hashCode() : 0)\n + (str != null ? str.hashCode() : 0)\n + (object_labels != null ? object_labels.hashCode() : 0)\n + (getters != null ? getters.hashCode() : 0)\n + (setters != null ? setters.hashCode() : 0)\n + (excluded_strings != null ? excluded_strings.hashCode() : 0)\n + (included_strings != null ? included_strings.hashCode() : 0)\n + (functionPartitions != null ? functionPartitions.hashCode() : 0)\n + (functionTypeSignatures != null ? functionTypeSignatures.hashCode() : 0);\n }", "public int hashCode()\n {\n int hash = 7;\n hash = 83 * hash + (counter != null ? counter.hashCode() : 0);\n return hash;\n }", "public int hash(String w){\n return (Math.abs(w.hashCode()) % hashTable.length);\n }", "@Override\n\tpublic int hashCode() {\n\t\t\n\t\treturn (int)id * name.hashCode() * email.hashCode();\n\t\t//int hash = new HashCodeBuilder(17,37).append(id).append(name); //can be added from Apache Commons Lang's HashCodeBuilder class\n\t}", "public int hashCode() {\n int hash = 0;\n hash = width;\n hash <<= 8;\n hash ^= height;\n hash <<= 8;\n hash ^= numBands;\n hash <<= 8;\n hash ^= dataType;\n hash <<= 8;\n for (int i = 0; i < bandOffsets.length; i++) {\n hash ^= bandOffsets[i];\n hash <<= 8;\n }\n for (int i = 0; i < bankIndices.length; i++) {\n hash ^= bankIndices[i];\n hash <<= 8;\n }\n hash ^= numBands;\n hash <<= 8;\n hash ^= numBanks;\n hash <<= 8;\n hash ^= scanlineStride;\n hash <<= 8;\n hash ^= pixelStride;\n return hash;\n }", "public int computeHash(int key){\n int hashValue = 0;\n hashValue = getHashCode(key);\n return hashValue % tableSize;\n }", "@Override\n public int hashCode() {\n int B = 31, M = 1000000007, code = 0;\n for(int pos = 0; pos < this.objectA.length(); pos++) {\n code = ((this.objectA.charAt(pos) - 'a') + B * code) % M;\n }\n return (code * this.objectB) % M;\n }", "int\thashCode();", "public int hashCode() {\n final int HASH_MULTIPLIER = 29;\n int h = HASH_MULTIPLIER * FName.hashCode() + LName.hashCode();\n h = HASH_MULTIPLIER * h + ((Integer)ID).hashCode();\n return h;\n }", "public abstract int doHash(T t);", "public int hashCode()\n { \n \tint result = 17;\n \t\n \tresult = 37 * result + score; \t\n \t\n \treturn result;\n }", "private String calchash() {\r\n String a0 = String.valueOf(bindex);\r\n a0 += String.valueOf(bdate);\r\n a0 += bdata;\r\n a0 += String.valueOf(bonce);\r\n a0 += blasthash;\r\n String a1;\r\n a1 = \"\";\r\n try {\r\n a1 = sha256(a0);\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Block.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return a1;\r\n\r\n }", "@Override\n\tpublic int hash(String str) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tint temp = (int) str.charAt(i);\n\t\t\tresult += (temp * (Math.pow(37, i)));\n\t\t}\n\t\treturn result;\n\t}", "public static final int nextHashCodeEntropy() {\n\t\tint hash = 17;\n\t\tfor (int i = 0; i < 11; i++) {\n\t\t\thash = 37 * hash + new Object().hashCode();\n\t\t}\n\t\treturn hash = 37 * hash + new Object().hashCode();\n\t}", "public int hashCode()\n\t{\n\t\treturn y<<16+x;\n\t}", "public int hashCode() {\n return 37 * 17;\n }", "public int hash1(int x)\n {\n return ((a1*(x)+b1)%n);\n }", "public int hashCode(){\n int hash = HashCodeUtil.SEED;\n\n hash = HashCodeUtil.hash(hash,getEventTimeMillis());\n hash = HashCodeUtil.hash(hash,getEventId());\n hash = HashCodeUtil.hash(hash,getAuthenticationType());\n hash = HashCodeUtil.hash(hash,getServiceHost());\n hash = HashCodeUtil.hash(hash,getRequesterIp());\n hash = HashCodeUtil.hash(hash,getSessionId());\n hash = HashCodeUtil.hash(hash,getResourceHost());\n hash = HashCodeUtil.hash(hash,getPrincipalName());\n hash = HashCodeUtil.hash(hash,getEventType());\n hash = HashCodeUtil.hash(hash,getServiceId());\n hash = HashCodeUtil.hash(hash,getResourceId());\n\n\n return hash;\n\n }", "com.google.protobuf.ByteString getHash();", "com.google.protobuf.ByteString getHash();", "public int hash(String item);", "private int funcaoHash(int x) {\n\t\treturn (x % 37);\n\t}", "public int hashCode()\n {\n int i = 0;\n if ( hasCode() )\n i ^= getCode().hashCode();\n return i;\n }", "public int hashCode() {\n\t\tint hash = 0;\n\t\tif (isGameOver()) {\n\t\t\treturn (1 + (winner() == Game.FIRST_PLAYER ? 1 : 2));\n\t\t}\n\t\thash = 4;\n\t\tfor (int i = 1; i < NUMBER_OF_MOVES; i++) {\n\t\t\thash *= 3;\n\t\t\tif (contains(moves1, i)) {\n\t\t\t\thash++;\n\t\t\t} else if (contains(moves2, i)) {\n\t\t\t\thash += 2;\n\t\t\t}\n\t\t}\n\t\treturn hash;\n\t}", "private int hash(Handle[] myTable,\n String toHash) {\n\n int intLength = toHash.length() / 4;\n long sum = 0;\n for (int j = 0; j < intLength; j++) {\n char[] c = toHash.substring(j * 4, (j * 4) + 4)\n .toCharArray();\n long mult = 1;\n for (int k = 0; k < c.length; k++) {\n sum += c[k] * mult;\n mult *= 256;\n } // end inner for\n } // end outer for\n char[] c = toHash.substring(intLength * 4).toCharArray();\n long mult = 1;\n for (int k = 0; k < c.length; k++) {\n sum += c[k] * mult;\n mult *= 256;\n }\n return (int) (Math.abs(sum) % myTable.length);\n }", "static int getHash(long key) {\n int hash = (int) ((key >>> 32) ^ key);\n // a supplemental secondary hash function\n // to protect against hash codes that don't differ much\n hash = ((hash >>> 16) ^ hash) * 0x45d9f3b;\n hash = ((hash >>> 16) ^ hash) * 0x45d9f3b;\n hash = (hash >>> 16) ^ hash;\n return hash;\n }", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "public int hashCode()\n {\n return hash;\n }", "@Override\n public int hashCode() {\n Integer s_int = new Integer(\"223\");\n int result = Objects.hashCode(valueOf(sideLengthA));\n result = (31 * result) + Objects.hashCode(valueOf(sideLengthB));\n result = (31 * result) +Objects.hashCode(valueOf(sideLengthC));\n return result;\n }", "private int calculateHash(int id, String uri) {\n\t\treturn uri.hashCode() * Constants.HASH_PRIMES[0]\n\t\t\t\t+ Integer.toString(id).hashCode() * Constants.HASH_PRIMES[1];\n\t}", "public int hashCode() {\n try {\n int res = 0;\n byte[] array = getEncoded();\n for (int i=0; i<array.length; i++) {\n res += array[i] & 0xFF;\n }\n return res;\n } catch (CRLException e) {\n return 0;\n }\n }", "@Override\r\n\tpublic int hashCode()\r\n\t{\r\n\t\tint hash = 1;\r\n\r\n\t\tif (containingExpression != null)\r\n\t\t{\r\n\t\t\thash = hash & Constants.HASH_PRIME + containingExpression.hashCode();\r\n\t\t}\r\n\r\n\t\tif (conditions != null)\r\n\t\t{\r\n\t\t\thash = hash * Constants.HASH_PRIME + new HashSet<ICondition>(conditions).hashCode();\r\n\t\t}\r\n\r\n\t\treturn hash;\r\n\t}", "String hash(String input) throws IllegalArgumentException, EncryptionException;", "public int hashCode() {\n\t\t// simple recipe for generating hashCode given by\n\t\t// Effective Java (Addison-Wesley, 2001)\n\t\tint result = 17;\n\t\tresult = 37 * result + methodName.hashCode();\n\t\treturn result;\n\t}", "public int hashCode() {\n // For speed, this hash code relies only on the hash codes of its select\n // and criteria clauses, not on the from, order by, or option clauses\n int myHash = 0;\n myHash = HashCodeUtil.hashCode(myHash, this.operation);\n myHash = HashCodeUtil.hashCode(myHash, getProjectedQuery());\n return myHash;\n }", "@Override\r\n public int hashCode() {\r\n int hash = 7;\r\n hash = 19 * hash + (int) (this.grauDeEquilibrio ^ (this.grauDeEquilibrio >>> 32));\r\n return hash;\r\n }", "public int hashCode() {\n if (hashCode != 0){\n return hashCode;\n }\n return hashCode = computeHash();\n }", "public int hashCode() {\n int h = 0;\n for (int j = realSize(), i = 0, t = 0; j-- != 0; ) {\n while (((key[i]) == ((char) 0)))\n i++;\n t = (key[i]);\n t ^= (value[i]);\n h += t;\n i++;\n }\n // Zero / null keys have hash zero.\n if (containsNullKey) h += (value[n]);\n return h;\n }", "public void calcularHash() {\n\t\tLocalDateTime agora = LocalDateTime.now();\n\t\t\n\t\t// coverção da string data/hora atual para o formato de 13 digitos\n\t\tDateTimeFormatter formatterData = DateTimeFormatter.ofPattern(\"ddMMuuuuHHmmss\");\n\t\tString dataFormatada = formatterData.format(agora);\n\t\t\n\t\tSystem.out.println(dataFormatada);\n\t\ttimestamp = Long.parseLong(dataFormatada);\n\t\t\n\t\tSystem.out.println(\"Informe o CPF: \");\n\t\tcpf = sc.nextLong();\n\t\t\n\t\t// calculos para gerar o hash\n\t\thash = cpf + (7*89);\n\t\thash = (long) Math.cbrt(hash);\n\t\t\n\t\thash2 = timestamp + (7*89);\n\t\thash2 = (long) Math.cbrt(hash2);\n\t\t\n\t\tsoma_hashs = hash + hash2;\n\t\t// converção para hexadecimal\n\t String str2 = Long.toHexString(soma_hashs);\n\t\t\n\t\tSystem.out.println(\"\\nHash: \"+ hash + \" \\nHash Do Timestamp: \" + hash2 + \"\\nSoma total do Hash: \" + str2);\n\t\t\n\t}", "private int computeHash(URI location) {\n \t\treturn location.hashCode();\n \t}", "static int hash(long sum) {\n return (int) (sum) >>> 7;\n }", "@Test\n public void testHash() \n\t{\n\tLaboonCoin l = new LaboonCoin();\n\t\tint hash = l.hash(\"boo\");\n\t\tint result = 1428150834;\n\t\tassertEquals(result, hash);\n }", "public int generateHashCode() {\n int code = getClass().hashCode();\n ASTSpanInfo temp_info = getInfo();\n code ^= temp_info.hashCode();\n LHS temp_obj = getObj();\n code ^= temp_obj.hashCode();\n Expr temp_index = getIndex();\n code ^= temp_index.hashCode();\n return code;\n }", "private String calculateHash() {\n\n // Increments the sequence to prevent two transactions from having identical keys.\n sequence++;\n return StringUtil.applySha256(\n StringUtil.getStringFromKey(sender) +\n StringUtil.getStringFromKey(recipient) +\n Float.toString(value) +\n sequence\n );\n }", "private int hash(T x)\n {\n // calcolo della chiave ridotta - eventualmente negativa\n int h = x.hashCode() % v.length;\n\n // calcolo del valore assoluto\n if (h < 0)\n h = -h;\n \n return h; \n }", "public static int calculateHash(final Field field) {\n int hash = 17;\n hash = (37 * hash) + field.getName().hashCode();\n Class type = field.getType();\n hash = (37 * hash) + type.getName().hashCode();\n return hash;\n }", "protected abstract int hashOfObject(Object key);", "public int hash(String key){\r\n\t\tint i;\r\n\t\tint v = 0;\r\n\t\tfor(i = 0; i < key.length(); i++)\r\n\t\t\tv += key.charAt(i);\r\n\t\treturn v % M;\r\n\t}", "public long JSHash(String str) {\n\t\tlong hash = 1315423911;\n\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\thash ^= ((hash << 5) + str.charAt(i) + (hash >> 2));\n\t\t}\n\n\t\treturn hash;\n\t}", "public int hashFunction(int key){\r\n return (int) Math.floor((constFactor*key - Math.floor(constFactor*key)) * Math.pow(2,electionTable.length));\r\n }", "public int hashCode() {\n int result = 17;\n result = (37 * result)\n + ((nullCheck == null) ? 0 : nullCheck.hashCode());\n\n return result;\n }", "private int computeHash(int key) {\n assert((table.length & (table.length - 1)) == 0);\n return key & (table.length - 1);\n }", "public long APHash(String str) {\n\t\tlong hash = 0xAAAAAAAA;\n\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tif ((i & 1) == 0) {\n\t\t\t\thash ^= ((hash << 7) ^ str.charAt(i) * (hash >> 3));\n\t\t\t} else {\n\t\t\t\thash ^= (~((hash << 11) + str.charAt(i) ^ (hash >> 5)));\n\t\t\t}\n\t\t}\n\n\t\treturn hash;\n\t}", "public int hashCode()\r\n\t{\n\t\treturn (i % 9); //this will make the values to store in the table based on size of hashtable is 9 and calculation will be (i %9)\r\n\t}", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.firstName);\n hash = 29 * hash + Objects.hashCode(this.lastName);\n hash = 29 * hash + this.studentNumber;\n return hash;\n }", "public int hashCode() {\n if (myhash == -1) {\n myhash = timestamp.hashCode() + signerCertPath.hashCode();\n }\n return myhash;\n }", "int\n computeHashCodeOfNode(HIR pNode)\n {\n int lCode, lNodeIndex, lChild, lChildCount;\n Sym lSym;\n\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(7, \" computeHashCodeOfNode \");\n if (pNode == null)\n return 0;\n lNodeIndex = pNode.getIndex();\n lCode = getHashCodeOfIndexedNode(lNodeIndex);\n if (lCode != 0) // Hash code is already computed. return it.\n return lCode;\n lCode = pNode.getOperator() + System.identityHashCode(pNode.getType());\n lSym = pNode.getSym();\n if (lSym != null) { // This is a leaf node attached with a symbol.\n lCode = lCode * 2 + System.identityHashCode(lSym);\n }\n else {\n lChildCount = pNode.getChildCount();\n for (lChild = 1; lChild <= lChildCount; lChild++) {\n lCode = lCode * 2\n + computeHashCodeOfNode((HIR)(pNode.getChild(lChild)));\n }\n }\n //##60 BEGIN\n // Assign different hash code for l-value compared to r-value.\n //##65 if ((pNode.getParent()instanceof AssignStmt) &&\n //##65 (pNode.getParent().getChild1() == pNode))\n if (FlowUtil.isAssignLHS(pNode)) //##65\n {\n lCode = lCode * 2;\n }\n //##60 END\n lCode = (lCode & 0x7FFFFFFF) % EXP_ID_HASH_SIZE;\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(7, Integer.toString(lCode, 10));\n setHashCodeOfIndexedNode(lNodeIndex, lCode);\n return lCode;\n }", "@Override\r\n public int hashCode() {\n int key=(Integer)(this.capsule.get(0)); // Get the key\r\n Integer bkey=Integer.parseInt(Integer.toBinaryString(key)); // Convert into binary \r\n int n=setcount(bkey); //counts the number of 1's in the binary\r\n key=key*n + Objects.hashCode(this.capsule.get(0)); //multiplies that with the hashcode of the pId\r\n return key;\r\n }", "@Override\n public int hashCode() {\n // name's hashCode is multiplied by an arbitrary prime number (13)\n // in order to make sure there is a difference in the hashCode between\n // these two parameters:\n // name: a value: aa\n // name: aa value: a\n return key.hashCode() * 13 + (value == null ? 0 : value.hashCode());\n }", "public int hashCode() {\n int hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + (userId != null ? userId.hashCode() : 0);\n hash = hash * UtilConstants.HASH_PRIME + (projectId != null ? projectId.hashCode() : 0);\n return hash;\n }", "public int hashCode() {\r\n int result = 17;\r\n result = xCH(result, getTableDbName());\r\n result = xCH(result, getMemberAddressId());\r\n return result;\r\n }", "public int generateHashCode() {\n int code = getClass().hashCode();\n boolean temp_fromSource = isFromSource();\n code ^= temp_fromSource ? 1231 : 1237;\n IRId temp_name = getName();\n code ^= temp_name.hashCode();\n List<IRId> temp_params = getParams();\n code ^= temp_params.hashCode();\n List<IRStmt> temp_args = getArgs();\n code ^= temp_args.hashCode();\n List<IRFunDecl> temp_fds = getFds();\n code ^= temp_fds.hashCode();\n List<IRVarStmt> temp_vds = getVds();\n code ^= temp_vds.hashCode();\n List<IRStmt> temp_body = getBody();\n code ^= temp_body.hashCode();\n return code;\n }", "private int hash(E e) {\n return Math.abs(e.hashCode()) % table.length;\n }" ]
[ "0.765864", "0.7488892", "0.72771484", "0.7276582", "0.72503203", "0.71892756", "0.71036017", "0.70719355", "0.70554453", "0.7032684", "0.703203", "0.70115834", "0.7008943", "0.69733113", "0.69733113", "0.692441", "0.68489313", "0.6828128", "0.68229055", "0.68177414", "0.6800874", "0.6799875", "0.6764746", "0.675798", "0.6756009", "0.6754998", "0.67525977", "0.67381316", "0.6727081", "0.6719444", "0.67177135", "0.67177135", "0.67177135", "0.67177135", "0.671471", "0.6690891", "0.6690891", "0.6684973", "0.66804385", "0.6669963", "0.66690725", "0.66627437", "0.662466", "0.66094226", "0.660151", "0.660108", "0.6585663", "0.6574803", "0.65676135", "0.6561274", "0.655533", "0.65413", "0.65179724", "0.65151334", "0.64920014", "0.649195", "0.64891356", "0.64891356", "0.64888585", "0.6485867", "0.64714015", "0.64654666", "0.64557767", "0.64541525", "0.64539546", "0.64516675", "0.64480036", "0.6443164", "0.6434414", "0.6424583", "0.642229", "0.6420483", "0.6415781", "0.64091945", "0.64046067", "0.6403556", "0.6392693", "0.6391077", "0.6386473", "0.63863397", "0.63821834", "0.6381244", "0.6372431", "0.63720375", "0.6369688", "0.63682324", "0.636177", "0.6356233", "0.63555276", "0.63501513", "0.63496566", "0.63494754", "0.6345727", "0.6345653", "0.63386303", "0.6330602", "0.6326582", "0.6326071", "0.6325796", "0.6322303", "0.63215244" ]
0.0
-1
Returns the dynamic type of the item (for error message purposes).
public ItemType getDynamicType() { throw new UnsupportedOperationException("Operation not defined"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getItemType() {\n return ITEM_TYPE;\n }", "public String getItemType() {\n\t\treturn itemType;\n\t}", "public ItemType getType();", "public String getItemObjectType() {\r\n\t\treturn itemObjectType;\r\n\t}", "public ItemType getType()\n {\n\treturn type;\n }", "com.rpg.framework.database.Protocol.ItemType getType();", "@Override\n\tprotected DataTypes getDataType() {\n\t\treturn DataTypes.ITEM;\n\t}", "public ItemType getType() {\n return type;\n }", "public com.rpg.framework.database.Protocol.ItemType getType() {\n return type_;\n }", "public com.rpg.framework.database.Protocol.ItemType getType() {\n return type_;\n }", "protected abstract String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "abstract public String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public String getType() {\n return (String) getObject(\"type\");\n }", "public ItemType getResultItemType() {\n net.sf.saxon.type.ItemType it =\n exp.getInternalExpression().getItemType();\n return new ConstructedItemType(it, processor);\n }", "public String getBindingType() {\n if (m_item instanceof ReferenceItem) {\n return ((ReferenceItem)m_item).getDefinition().getGenerateClass().getBindingName();\n } else {\n if (m_item instanceof GroupItem) {\n TypeData genclass = ((GroupItem)m_item).getGenerateClass();\n if (genclass != null) {\n return genclass.getBindingName();\n }\n }\n return m_type;\n }\n }", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "public Object getType()\r\n {\r\n\treturn type;\r\n }", "public abstract int getType();", "public abstract int getType();", "public abstract int getType();", "abstract public Type getType();", "protected String getType() {\n\t\treturn type;\n\t}", "public Item getItem(String typeItem){\r\n if(typeItem.equals(\"coeur\")){\r\n Item coeur = new Coeur();\r\n return coeur;\r\n } else if(typeItem.equals(\"potionvie\")){\r\n Item potion = new Potion();\r\n return potion;\r\n } else if(typeItem.equals(\"hexaforce\")){\r\n Item hexa = new Hexaforce();\r\n return hexa;\r\n } else {\r\n return null;\r\n }\r\n }", "@Override\r\n\tpublic int getType() {\n\t\treturn EyeTrackerItem.TYPE_INVALID;\r\n\t}", "public XSSimpleType getItemType() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: laload \n // 1: aastore \n // 2: dadd \n // 3: imul \n // 4: lsub \n // 5: ldiv \n // 6: ladd \n // 7: aastore \n // 8: lsub \n // 9: ineg \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- ---- ------------------------------------------\n // 0 10 0 this Lcom/sun/xml/xsom/impl/ListSimpleTypeImpl;\n // \n // The error that occurred was:\n // \n // java.lang.ArrayIndexOutOfBoundsException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "public final native String getType() /*-{\n return this.getType();\n }-*/;", "public final ApplicationFormItemType getType(){\n\t\treturn ApplicationFormItemType.valueOf(JsUtils.getNativePropertyString(this, \"type\"));\n\t}", "public abstract Type getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "@Override\r\n\tpublic String getType() {\n\t\treturn type;\r\n\t}", "@Override abstract public String type();", "public abstract jq_Type getDeclaredType();", "public ObjType getType () {\n\t\tif (type == null) {\n\t\t\ttype = Virtue.getInstance().getConfigProvider().getObjTypes().list(id);\n\t\t}\n\t\treturn type;\n\t}", "@Override\n\tpublic String getType() {\n\t\treturn this.description.getType();\n\t}", "public String process(Item item) throws ProcessException {\n\t\t\tString type;\n\n\t\t\tItem s = item.getItemAs(Relation.SYLLABLE_STRUCTURE);\n\t\t\tif (s == null) {\n\t\t\t\ttype = \"single\";\n\t\t\t} else if (s.getNext() == null) {\n\t\t\t\tif (s.getPrevious() == null) {\n\t\t\t\t\ttype = \"single\";\n\t\t\t\t} else {\n\t\t\t\t\ttype = \"final\";\n\t\t\t\t}\n\t\t\t} else if (s.getPrevious() == null) {\n\t\t\t\ttype = \"initial\";\n\t\t\t} else {\n\t\t\t\ttype = \"mid\";\n\t\t\t}\n\t\t\treturn type;\n\t\t}", "@Override\n\tpublic String getType() {\n\t\treturn this.type;\n\t}", "@Override\n public String getType() {\n return this.type;\n }", "public String get_type()\r\n\t{\r\n\t\treturn this.type;\r\n\t}", "@Override\n\tpublic T getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n return m_Type;\n }", "private String getType(){\r\n return type;\r\n }", "public String getType() { return type; }", "public String getType() {return type;}" ]
[ "0.70571125", "0.69558305", "0.6903229", "0.65683675", "0.6516562", "0.6507775", "0.64725345", "0.6470009", "0.6362338", "0.6346533", "0.6326386", "0.6267748", "0.6267748", "0.6267748", "0.6267748", "0.6267748", "0.6267748", "0.6267748", "0.6267748", "0.6267748", "0.6267748", "0.6267748", "0.6267748", "0.6267748", "0.625141", "0.6207744", "0.6207744", "0.6207744", "0.6207744", "0.6207744", "0.6207744", "0.6207744", "0.6207744", "0.62057847", "0.61585104", "0.6133686", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.6063795", "0.606112", "0.6033945", "0.6033945", "0.6033945", "0.5974121", "0.59590566", "0.5943231", "0.5941746", "0.5940411", "0.5934282", "0.59278166", "0.5923024", "0.59100956", "0.59100956", "0.59100956", "0.59100956", "0.59100956", "0.59100956", "0.59100956", "0.59100956", "0.59100956", "0.59100956", "0.59100956", "0.59100956", "0.59100956", "0.59061337", "0.5904794", "0.5904426", "0.5903894", "0.5890721", "0.5861081", "0.5857334", "0.5840736", "0.5838284", "0.5837452", "0.5825985", "0.5815845", "0.5814521", "0.58104664" ]
0.7503557
0
Constructor for FlagPositions that sets it to a default value of 6 coordinates.
public FlagPositions() { this(6); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FlagPositions(int number_of_flags) {\r\n // Integer array to store the data.\r\n coords = new int[number_of_flags];\r\n\r\n // Set coordinates to default value.\r\n for (int i = 0; i<coords.length;i++){\r\n coords[i] = -1;\r\n }\r\n\r\n // Set flag.\r\n flagsreceived = false;\r\n }", "public Coordinates() {\n\t\t\n\t\txPosition = 0;\t\t\t// Sets the x integer to zero\n\t\tyPosition = 0;\t\t\t// Sets the y integer to zero\n\t}", "public void setFlagPosition(Integer[] flagPosition)\n {\n if (!flagLocations.contains(flagPosition) && flagPosition.length == 2)\n flagLocations.add(flagPosition);\n }", "public Tile() {\n this(-1, false);\n for (int i = 1; i <= 9; i++) {\n possibleValues.add(i);\n }\n }", "public FaithMarker(int position) {\r\n this.position = position;\r\n }", "public Flag() {\n }", "public Flag(int x)\n\t{\n super(x);\n\t}", "public Position() {\n xCoord = 0;\n yCoord = 0;\n zCoord = 0;\n }", "public Shape() { this(X_DEFAULT, Y_DEFAULT); }", "public KnightsPosition() {\r\n row = 0;\r\n column = 0;\r\n }", "public Layer() {\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tfor (int j = 0; j < 16; j++) {\n\t\t\t\tgrid[i][j] = false;\n\t\t\t}\n\t\t}\n\t}", "public Builder setLatE6(int value) {\n \n latE6_ = value;\n onChanged();\n return this;\n }", "public Builder setLatE6(int value) {\n \n latE6_ = value;\n onChanged();\n return this;\n }", "public Position() {\n\n\t}", "public Shape() {\n\t\tthis(DEFAULT_X_POS, DEFAULT_Y_POS, DEFAULT_DELTA_X, DEFAULT_DELTA_Y, DEFAULT_WIDTH, DEFAULT_HEIGHT);\n\t}", "public Coordinate() { row = col = -1; }", "public Flag(float x, float y, Objectid id) {\n\t\tsuper(x, y, id);\n\t\t\n\t}", "public Patch56State()\n {\n this( null, 0 );\n }", "public FieldPoint() {\n setX( DEFAULT_VALUE );\n setY( DEFAULT_VALUE );\n }", "protected abstract void setDefaultPositions(GameData data);", "public AbstractKerberosFlags()\n {\n value = 0;\n }", "public final void initialPosition() {\n\t\tfor( int i = 0; i < 4; i++) {\n\t\t setPiece( new PieceImpl( Color.RED, Type.PAWN), new PositionImpl( 38 + 8*i));\n\t\t}\n\t\tfor( int i = 0; i < 4; i++) {\n\t\t setPiece( new PieceImpl( Color.BLACK, Type.PAWN), new PositionImpl( 12 + i));\n\t\t}\n\t\tfor( int i = 0; i < 4; i++) {\n\t\t setPiece( new PieceImpl( Color.YELLOW, Type.PAWN), new PositionImpl( 1 + 8*i));\n\t\t}\n\t\tfor( int i = 0; i < 4; i++) {\n\t\t setPiece( new PieceImpl( Color.GREEN, Type.PAWN), new PositionImpl( 48 + i));\n\t\t}\n\t\t\n\t\tsetPiece( new PieceImpl( Color.RED, Type.BOAT), new PositionImpl( 63 ));\n\t\tsetPiece( new PieceImpl( Color.RED, Type.KNIGHT), new PositionImpl( 55 ));\n\t\tsetPiece( new PieceImpl( Color.RED, Type.ELEPHANT), new PositionImpl( 47 ));\n\t\tsetPiece( new PieceImpl( Color.RED, Type.KING), new PositionImpl( 39 ));\n\t\t\n\t\tsetPiece( new PieceImpl( Color.BLACK, Type.BOAT), new PositionImpl( 7 ));\n\t\tsetPiece( new PieceImpl( Color.BLACK, Type.KNIGHT), new PositionImpl( 6 ));\n\t\tsetPiece( new PieceImpl( Color.BLACK, Type.ELEPHANT), new PositionImpl( 5 ));\n\t\tsetPiece( new PieceImpl( Color.BLACK, Type.KING), new PositionImpl( 4 ));\n\n\t\tsetPiece( new PieceImpl( Color.YELLOW, Type.BOAT), new PositionImpl( 0 ));\n\t\tsetPiece( new PieceImpl( Color.YELLOW, Type.KNIGHT), new PositionImpl( 8 ));\n\t\tsetPiece( new PieceImpl( Color.YELLOW, Type.ELEPHANT), new PositionImpl( 16 ));\n\t\tsetPiece( new PieceImpl( Color.YELLOW, Type.KING), new PositionImpl( 24 ));\n\n\t\tsetPiece( new PieceImpl( Color.GREEN, Type.BOAT), new PositionImpl( 56 ));\n\t\tsetPiece( new PieceImpl( Color.GREEN, Type.KNIGHT), new PositionImpl( 57 ));\n\t\tsetPiece( new PieceImpl( Color.GREEN, Type.ELEPHANT), new PositionImpl( 58 ));\n\t\tsetPiece( new PieceImpl( Color.GREEN, Type.KING), new PositionImpl( 59 ));\n\t\t\n }", "public XYPointFloat()\r\n\t{\r\n\t\tthis(0, 0);\r\n\t}", "protected FlagPositions(Parcel in) {\r\n coords = in.createIntArray();\r\n flagsreceived = in.readByte() != 0;\r\n }", "public A034318() {\n this(-1, 0, 13, 0, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, 0);\n }", "private void setDefaultMode(GlobalState gs) {\n center = gs.cnt;\n double diagonal = gs.vDist * cos(gs.phi);\n double z = sin(gs.phi) * gs.vDist;\n double x = diagonal * cos(gs.theta);\n double y = diagonal * sin(gs.theta);\n \n eye = new Vector(x, y, z);\n \n }", "public Location() {\n\t\t\n\t\txCoord=0;\n\t\tyCoord=0;\n\t\t\n\t}", "public Ship(List<Coordinate> coordinates) {\n\t\tfor (Coordinate coordinate : coordinates) {\n\t\t\tcoordinate.setIsHit(false);\n\t\t\tcoordinate.setIsSunk(false);\n\t\t}\n\t\tshipPositions = coordinates;\n\t}", "public Flag()\n {\n super(\"Flag\");\n }", "@Override\r\n\tpublic void setMinCoordinates() {\n\t\t\r\n\t}", "PolygonGeneratorView()\r\n {\r\n theGenerateFlag = DEFAULT_GENERATE_FLAG;\r\n theNumberOfPolygons = DEFAULT_POLYGON_COUNT;\r\n theMaximumVertexCount = DEFAULT_MAX_VERTEX_COUNT;\r\n theBBoxLength = DEFAULT_BBOX_LENGTH;\r\n theMinimumVertexCount = DEFAULT_MIN_VERTEX_COUNT;\r\n \r\n }", "public void setDefaultFlag(Integer defaultFlag) {\n this.defaultFlag = defaultFlag;\n }", "public void case4_Position() {\r\n Position testPosition = new Position(0,0);\r\n\r\n }", "public void setOffset(Location value) {\n\t\tgfPos = value;\n\t}", "public Builder setLngE6(int value) {\n \n lngE6_ = value;\n onChanged();\n return this;\n }", "public Builder setLngE6(int value) {\n \n lngE6_ = value;\n onChanged();\n return this;\n }", "public void setInitialPosition()\n {\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.a2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.b2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.c2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.d2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.e2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.f2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.g2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.h2);\n //Se colocan los peones negros en la séptima fila\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.a7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.b7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.c7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.d7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.e7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.f7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.g7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.h7);\n //Se colocan las torres blancas en a1 y h1\n putGenericPiece(GenericPiece.ROOK,Colour.WHITE,Square.a1);\n putGenericPiece(GenericPiece.ROOK,Colour.WHITE,Square.h1);\n //Se colocan las torres negras en a8 y h9\n putGenericPiece(GenericPiece.ROOK,Colour.BLACK,Square.a8);\n putGenericPiece(GenericPiece.ROOK,Colour.BLACK,Square.h8);\n //Se colocan los caballos blancos en b1 y g1\n putGenericPiece(GenericPiece.KNIGHT,Colour.WHITE,Square.b1);\n putGenericPiece(GenericPiece.KNIGHT,Colour.WHITE,Square.g1);\n //Se colocan los caballos negros en b8 y g8\n putGenericPiece(GenericPiece.KNIGHT,Colour.BLACK,Square.b8);\n putGenericPiece(GenericPiece.KNIGHT,Colour.BLACK,Square.g8);\n //Se colocan los alfiles blancos en c1 y f1\n putGenericPiece(GenericPiece.BISHOP,Colour.WHITE,Square.c1);\n putGenericPiece(GenericPiece.BISHOP,Colour.WHITE,Square.f1);\n //Se colocan los alfiles negros en c8 y f8\n putGenericPiece(GenericPiece.BISHOP,Colour.BLACK,Square.c8);\n putGenericPiece(GenericPiece.BISHOP,Colour.BLACK,Square.f8);\n //Se coloca la dama blanca en d1\n putGenericPiece(GenericPiece.QUEEN,Colour.WHITE,Square.d1);\n //Se coloca la dama negra en d8\n putGenericPiece(GenericPiece.QUEEN,Colour.BLACK,Square.d8);\n //Se coloca el rey blanco en e1\n putGenericPiece(GenericPiece.KING,Colour.WHITE,Square.e1);\n //Se coloca el rey negro en e8\n putGenericPiece(GenericPiece.KING,Colour.BLACK,Square.e8);\n \n //Se permiten los enroques para ambos jugadores\n setCastlingShort(Colour.WHITE,true);\n setCastlingShort(Colour.BLACK,true);\n setCastlingLong(Colour.WHITE,true);\n setCastlingLong(Colour.BLACK,true);\n \n //Se da el turno a las blancas\n setTurn(Colour.WHITE);\n \n gamePositionsHash.clear();\n gamePositionsHash.put(zobristKey.getKey(), 1);\n }", "public void setInitialPositions() {\t\n\t\tString[][] positions = myData.getInitialPositions();\n\t\tif (positions.length == 0) {\n\t\t\tsetDefaultPositions(myData);\n\t\t} else {\n\t\t\tfor (String[] each : positions) {\n\t\t\t\tif (each.length != 3) {\n\t\t\t\t\tthrow new XMLException(\"Initial State not Given for Cell %s\", Arrays.toString(each));\n\t\t\t\t}\n\t\t\t\tint x = Integer.parseInt(each[0]);\n\t\t\t\tint y = Integer.parseInt(each[1]);\n\t\t\t\tif (x < getGrid().getRow(0).length && x >= 0 && y < getGrid().getRow(0).length && y >= 0){ \n\t\t\t\t\tgetGrid().getCell(x,y).setType(each[2]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public Fahrzeug() {\r\n this(0, null, null, null, null, 0, 0);\r\n }", "private MsoSmartArtNodePosition(int value) { this.value = value; }", "private void setMin(int min) { this.min = new SimplePosition(false,false,min); }", "public static int getDefaultPosition()\n {\n return defaults.position;\n }", "public Coordinate() {\n this.xCoordinate = -1;\n this.yCoordinate = -1;\n }", "public BuiltInStyle(int xfind, int sn)\r\n/* 10: */ {\r\n/* 11:46 */ super(Type.STYLE);\r\n/* 12: */ \r\n/* 13:48 */ this.xfIndex = xfind;\r\n/* 14:49 */ this.styleNumber = sn;\r\n/* 15: */ }", "public void initPos(){\r\n for (int i=0; i< MAX_LENGTH; i++){\r\n pos[i] = i;\r\n }\r\n }", "public Vector4d setZero() {\n\t\tx = y = z = w =0;\n\t\treturn this;\n\t}", "public ArgFlagData(String realID, String tag, String textDesc,boolean defaultFlag,boolean selected,int position){\r\n \tthis.realID = realID;\r\n \tthis.tag = tag;\r\n \tthis.textDesc = textDesc;\r\n \tthis.defaultFlag = defaultFlag;\r\n \tthis.selected = selected;\r\n \tthis.position = position;\r\n }", "public Cell() {\r\n\t\tthis.mineCount = 0;\r\n\t\tthis.isFlagged = false;\r\n\t\tthis.isExposed = false;\r\n\t\tthis.isMine = false;\r\n\t}", "public Ship(int size, boolean direction){\n this.size = size;\n this.location = null;\n this.orientation = direction;\n }", "public Builder clearLatE6() {\n \n latE6_ = 0;\n onChanged();\n return this;\n }", "public Builder clearLatE6() {\n \n latE6_ = 0;\n onChanged();\n return this;\n }", "public AbstractFlag(final double flagWidthRatio, final double startingHeight) {\r\n\r\n FLAG_WIDTH_RATIO = flagWidthRatio;\r\n STARTING_HEIGHT = startingHeight;\r\n }", "public static int collectDefaults()\n/* */ {\n/* 131 */ int flags = 0;\n/* 132 */ for (Feature f : values()) {\n/* 133 */ if (f.enabledByDefault()) flags |= f.getMask();\n/* */ }\n/* 135 */ return flags;\n/* */ }", "public Vector330Class(){\n this.x = 0;\n this.y = 0;\n }", "public Board() {\r\n\t\tthis.size = 4;\r\n\t\tthis.gameBoard = createBoard(4);\r\n\t\tthis.openTiles = 16;\r\n\t\tthis.moves = 0;\r\n\t\tthis.xValues = new boolean[4][4];\r\n\t\tthis.yValues = new boolean[4][4];\r\n\t\tthis.complete = false;\r\n\t}", "public Grid()\n\t{\n\t\tfor (int x =0;x<=8;x++)\n\t\t\tgrid[x]=0;\n }", "private PolygonEditor()\n {\n this(null, 1.0f);\n }", "public Position() {\r\n\t\tthis.positionX = 0;\r\n\t\tthis.positionY = 0;\r\n\t\tthis.angle = 0;\r\n\t\tthis.penState=true;\r\n\t\tthis.clearScreen=false;\r\n\t\tthis.color=0;\r\n\t}", "public Coordinate( final int i) { set( i ); }", "@SuppressWarnings(\"unused\")\n public Coordinate() {}", "public MatteIcon() {\r\n this(32, 32, null);\r\n }", "public void resetCoordinates(){\n pos=0;\n if(this.pIndex<2){\n this.coordinates[0]=TILE_SIZE*15-DICE_SIZE;}\n else{\n this.coordinates[0]=0;}\n if(this.pIndex%3==0){\n this.coordinates[1]=0;}\n else{\n this.coordinates[1]=TILE_SIZE*15-DICE_SIZE;} \n }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public static TextPos fromBaseZeroValue(int value) {\n return new TextPos(TextPos.BASE_ZERO, value);\n }", "public Location()\n\t{\n\t\tline = -1;\n\t\tcolumn = -1;\n\t}", "public SZShape(Position givenPosition, boolean magic)\n\t\t{\n\t\t\tsuper(givenPosition);\n\t\t\tcells = new Cell[4];\n\t\t\tposition = givenPosition;\n\t\t\tcells[0] = new Cell(new Block(Color.GREEN, magic), position);\n\t\t\tPosition position1 = new Position(givenPosition.row() + 1, givenPosition.col());\n\t\t\tcells[1] = new Cell(new Block(Color.GREEN, false), position1);\n\t\t\tPosition position2 = new Position(givenPosition.row() + 1, givenPosition.col()+1);\n\t\t\tcells[2] = new Cell(new Block(Color.GREEN, false), position2);\n\t\t\tPosition position3 = new Position(givenPosition.row() + 2, givenPosition.col()+1);\n\t\t\tcells[3] = new Cell(new Block(Color.GREEN, false), position3);\n\t\t\tsuper.setCells(cells);\n\t\t}", "public IntegerField() {\r this(3, 0, 0, 0);\r }", "public Vector3D() {\r\n\t\tthis(0.0);\r\n\t}", "public Position()\n\t{\n\t\t// do not remove bean constructor.\n\t}", "public Mesh() {\n this(DEFAULT_COORDS);\n }", "public Ship(int l){\n this.lifePoints=l;\n }", "private void setDefaultMonsterCords()\n {\n this.xBeginMap=0;\n this.yBeginMap=0;\n this.xEndMap=16;\n this.yEndMap=16;\n\n this.xBeginSrc=0;\n this.yBeginSrc=0;\n this.xEndSrc=0;\n this.yEndSrc=0;\n\n }", "Position()\n\t{\n\t\tsetFile('\\u0000');\n\t\tsetRank(0);\n\t}", "public GameState(int initialStones) \n {\n \tif (initialStones < 1) initialStones = 4;\n \tfor (int i=0; i<6; i++)\n \t\tstate[i] = state[i+7] = initialStones;\n }", "public AbstractKerberosFlags( int value )\n {\n this.value = value;\n }", "public /* synthetic */ RoundedCornersTransformation(float f, float f2, float f3, float f4, int i, DefaultConstructorMarker defaultConstructorMarker) {\n this((i & 1) != 0 ? 0.0f : f, (i & 2) != 0 ? 0.0f : f2, (i & 4) != 0 ? 0.0f : f3, (i & 8) != 0 ? 0.0f : f4);\n }", "public Builder setStartPosition(int value) {\n bitField0_ |= 0x00000008;\n startPosition_ = value;\n onChanged();\n return this;\n }", "private void setPointsAs0() {\n\n for (int counter = 0; counter < countOfPoints; counter++) {\n points[counter] = new Point(0,0);\n }\n\n }", "public TextPos() {\n this.value = 1;\n }", "public Point(int time, int flag) {\n this.time = time;\n this.flag = flag;\n }", "public final void setZero() {\n \t\n\t\tthis.m00 = 0.0F;\n\t\tthis.m01 = 0.0F;\n\t\tthis.m02 = 0.0F;\n\t\tthis.m10 = 0.0F;\n\t\tthis.m11 = 0.0F;\n\t\tthis.m12 = 0.0F;\n\t\tthis.m20 = 0.0F;\n\t\tthis.m21 = 0.0F;\n\t\tthis.m22 = 0.0F;\n }", "public static IonModification[] getDefaultValuesPos() {\n return Arrays.copyOf(DEFAULT_VALUES_POSITIVE, DEFAULT_VALUES_POSITIVE.length);\n }", "public MbCoordDpto() {\r\n \r\n }", "public SmallFishData() {\n cPosition = generatePosition();\n cDestination = generatePosition();\n }", "@Override\r\n\tpublic void setMaxCoordinates() {\n\t\t\r\n\t}", "public BitBoardImpl() {\n\tinitialPosition();\n }", "public IndoorPositioningConfiguration(@NonNull byte[] values) {\n mIndoorPositioningConfiguration = (values[0] & 0xff);\n }", "public Builder setFlag(int value) {\n bitField0_ |= 0x00000400;\n flag_ = value;\n onChanged();\n return this;\n }", "public Builder setPositionX(double value) {\n bitField0_ |= 0x00000040;\n positionX_ = value;\n onChanged();\n return this;\n }", "public JXGraph() {\r\n this(0.0, 0.0, -1.0, 1.0, -1.0, 1.0, 0.2, 4, 0.2, 4);\r\n }", "public IntMap()\r\n {\r\n this(16);\r\n }", "public FireTile() {\n super();\n setUtility(5);\n }", "public Polygon() {\n N = 0;\n a = new Point[4];\n }", "private void initShape()\n\t{\n\t\tcoords = new int[4][2];\n\t\tcoordsTable = new int [][][] \n\t\t{\n { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },\n { { 0, -1 }, { 0, 0 }, { -1, 0 }, { -1, 1 } },\n { { 0, -1 }, { 0, 0 }, { 1, 0 }, { 1, 1 } },\n { { 0, -1 }, { 0, 0 }, { 0, 1 }, { 0, 2 } },\n { { -1, 0 }, { 0, 0 }, { 1, 0 }, { 0, 1 } },\n { { 0, 0 }, { 1, 0 }, { 0, 1 }, { 1, 1 } },\n { { -1, -1 }, { 0, -1 }, { 0, 0 }, { 0, 1 } },\n { { 1, -1 }, { 0, -1 }, { 0, 0 }, { 0, 1 } }\n\t\t};\n\t\t\n\t\tsetShape (Tetromino.NOSHAPE);\n\t}", "public DTLZ5_2D() {\r\n super(12, 2);\r\n }", "public int getFlagPoints() {\n\n return m_flagPoints;\n }", "public Point()\r\n\t{\r\n\t\tx = y = 0;\r\n\t}", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "public void setCoordinates(int pos){\n if(this.pIndex<2){\n this.coordinates[0]=TILE_SIZE*15-DICE_SIZE-pos;}\n else{\n this.coordinates[0]=pos;}\n if(this.pIndex%3==0){\n this.coordinates[1]=pos;}\n else{\n this.coordinates[1]=TILE_SIZE*15-DICE_SIZE-pos;}\n }" ]
[ "0.6845681", "0.5816508", "0.5809821", "0.5739279", "0.5636849", "0.56143874", "0.5552953", "0.5541925", "0.5511036", "0.55056816", "0.54657733", "0.54412645", "0.54412645", "0.543838", "0.5428341", "0.54073375", "0.5387662", "0.5371115", "0.5336225", "0.5302306", "0.52765584", "0.52584887", "0.52319956", "0.5223416", "0.5184521", "0.5176259", "0.5157176", "0.5111994", "0.5108136", "0.5099102", "0.5091189", "0.50875205", "0.50815564", "0.5070731", "0.50661004", "0.50661004", "0.505785", "0.50553596", "0.5054687", "0.5045922", "0.5045217", "0.5041641", "0.5038955", "0.5034044", "0.5033298", "0.50275445", "0.50164294", "0.4990206", "0.49809232", "0.49789956", "0.49789956", "0.49769968", "0.49768862", "0.49763826", "0.49761644", "0.49740168", "0.4971293", "0.49619406", "0.4960815", "0.49558133", "0.49445522", "0.4938636", "0.49373975", "0.49373975", "0.49167344", "0.4908963", "0.49078438", "0.4906485", "0.49056298", "0.4904817", "0.49022803", "0.48904482", "0.4887772", "0.48872098", "0.48795342", "0.48769563", "0.487343", "0.48684362", "0.48666275", "0.48595446", "0.4858214", "0.48581156", "0.48512772", "0.4850365", "0.48470327", "0.48457402", "0.48313683", "0.4821339", "0.48129284", "0.48087412", "0.48068923", "0.4804932", "0.48044902", "0.47937092", "0.47913963", "0.47905415", "0.47883344", "0.47867617", "0.47859168", "0.47840026" ]
0.8678188
0
Creates new array to store a certain number of flag coordinates. Sets the coordinates to a default of 1. Sets flag whether all coordinates have been received to false.
public FlagPositions(int number_of_flags) { // Integer array to store the data. coords = new int[number_of_flags]; // Set coordinates to default value. for (int i = 0; i<coords.length;i++){ coords[i] = -1; } // Set flag. flagsreceived = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createFlags() {\n if (flags!=null) return;\n flags = JCSystem.makeTransientBooleanArray(NUMFLAGS, JCSystem.CLEAR_ON_RESET);\n setValidatedFlag(false);\n }", "private void init(boolean[] flags) {\n\t\tflags[0] = false; \n\t\tflags[1] = false; \n\t\t\n\t\tfor (int i=2; i<flags.length; i++) {\n\t\t\tflags[i] = true; \n\t\t}\n\t}", "public static Boolean[] initWinnerArray(int count){\r\n return new Boolean[count];\r\n }", "public void setFlagPosition(Integer[] flagPosition)\n {\n if (!flagLocations.contains(flagPosition) && flagPosition.length == 2)\n flagLocations.add(flagPosition);\n }", "public FlagPositions() {\r\n this(6);\r\n }", "public SparseBooleanArray() {\r\n\t\tthis(10);\r\n\t}", "protected FlagPositions(Parcel in) {\r\n coords = in.createIntArray();\r\n flagsreceived = in.readByte() != 0;\r\n }", "public abstract void addBuffer(Array<Array<Boolean>> pattern);", "public void set(boolean[] abol);", "private static int[] toPositions(boolean[] keep)\n {\n int size = Booleans.countTrue(keep);\n int[] result = new int[size];\n int idx = 0;\n for (int i = 0; i < keep.length; i++) {\n if (keep[i]) {\n result[idx] = i; //position is 1-based\n idx++;\n }\n }\n return result;\n }", "private int [] createXArray(){\r\n\t\tint [] xCoord = {\r\n\t\t\t\txStart,\r\n\t\t\t\txStart + 50,\r\n\t\t\t\txStart + 65,\r\n\t\t\t\txStart + 65,\r\n\t\t\t\txStart + 50, \r\n\t\t\t\txStart,\r\n\t\t\t\txStart,\r\n\t\t\t\txStart + 50,\r\n\t\t\t\txStart + 50,\r\n\t\t\t\txStart,\r\n\t\t\t\txStart\r\n\t\t};\r\n\t\treturn xCoord;\r\n\t}", "public boolean[][] fillMask(boolean arr[][]) {\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tfor (int j = 0;j < arr[0].length; j++) {\r\n\t\t\t\tarr[i][j] = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn arr;\r\n\t}", "int[][][] generateFlags(int ratio, String country);", "public static int[][] init() {\n int[][] arr={\n {0,1,0,1,0,0,0},\n {0,0,1,0,0,1,0},\n {1,0,0,1,0,1,0},\n {0,0,1,0,0,1,0},\n {0,0,1,1,0,1,0},\n {1,0,0,0,0,0,0}\n };\n return arr;\n }", "public static void ResetPickedNumbers () {\n picked = new boolean[10];\r\n }", "private void FalseFlag() {\r\n\t\tfor(int i = 0; i < rows_size; i ++ ) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++)\r\n\t\t\t\tgame[i][j].setFlag(false);\r\n\t\t}\r\n\t}", "public ObservableBoolean[] m98a(int i) {\n return new ObservableBoolean[i];\n }", "public void createNew(int xSize, int ySize, int countOfMines);", "private void setPointsAs0() {\n\n for (int counter = 0; counter < countOfPoints; counter++) {\n points[counter] = new Point(0,0);\n }\n\n }", "@Override // android.os.Parcelable.Creator\n public /* bridge */ /* synthetic */ CounterConfiguration[] newArray(int i) {\n return new CounterConfiguration[i];\n }", "private void createSwitches() {\n \t\tswitches = new Point[4];\n \t\tswitches[0] = new Point(centreMin, centreMin);\n \t\tswitches[1] = new Point(centreMin, centreMax-1);\n \t\tswitches[2] = new Point(centreMax-1, centreMin);\n \t\tswitches[3] = new Point(centreMax-1, centreMax-1);\n \t}", "protected void setupMarkers(int specieses) {\r\n\t\tthis.markers = new boolean[specieses][6];\r\n\t}", "public static Point[] init_starting_points(boolean red){\n \n Point corner = red ? Map.red_corner : Map.blue_corner;\n ArrayList<Point> list_points = new ArrayList<>();\n Point[] ret_points;\n for (int x = 0; x < MAP_HEIGHT; x++){\n for (int y = 0; y < MAP_WIDTH; y++){\n if (Point.distance(corner, x,y) < spawn_size ){\n\n boolean valid = true;\n for (int _x = x-2; _x < x+2 && valid; _x++){\n for (int _y = y-2; _y < y + 2 && valid; _y++){\n if (Point.distance(x,y,_x,_y) > 2)\n continue;\n try {\n if (global_map[_x][_y] != Terrain.GRASS)\n valid = false;\n\n }\n catch (Exception e){\n valid = false;\n }\n }\n }\n\n if (valid)\n list_points.add(new Point(x,y));\n\n }\n }\n }\n \n \n ret_points = new Point[list_points.size()];\n ret_points = list_points.toArray(ret_points);\n return ret_points;\n\n }", "abstract Feature createFeature(boolean enabled, int count);", "public int[] getFreeCoordonate(boolean grilleAgent){\n String[][] grilleToFind;\n if(grilleAgent)\n grilleToFind = this.grille;\n else\n grilleToFind = this.grilleObjectif;\n \n \n int[] freeCoordonate = new int[2];\n \n int x;\n int y;\n \n boolean foundFreeCoordinate = false;\n \n while(!foundFreeCoordinate)\n {\n Random r =new Random();\n x = r.nextInt(5);\n y = r.nextInt(5);\n if(grilleToFind[x][y] == \"0\"){\n foundFreeCoordinate = true;\n freeCoordonate[0] = x;\n freeCoordonate[1] = y;\n }\n }\n return freeCoordonate;\n }", "public static List<Integer> getUnmarked(boolean[] arr) {\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif (arr[i] == false) {\n\t\t\t\tlist.add(new Integer(i));\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public LogicalVector(Boolean[] values) {\r\n this.values = new int[values.length];\r\n for (int i = 0; i != values.length; ++i) {\r\n this.values[i] = values[i] ? 1 : 0;\r\n }\r\n }", "private void init() {\n visitado = new boolean[N+2][N+2];\n for (int x = 0; x < N+2; x++) visitado[x][0] = visitado[x][N+1] = true;\n for (int y = 0; y < N+2; y++) visitado[0][y] = visitado[N+1][y] = true;\n\n\n // todas las paredes levantadas\n norte = new boolean[N+2][N+2];\n este = new boolean[N+2][N+2];\n sur = new boolean[N+2][N+2];\n oeste = new boolean[N+2][N+2];\n for (int x = 0; x < N+2; x++)\n for (int y = 0; y < N+2; y++)\n norte[x][y] = este[x][y] = sur[x][y] = oeste[x][y] = true;\n }", "private static int[] createArray() {\n\t\trnd = new Random();\r\n\t\trandomArray = new int[8];\r\n\t\tfor (int i = 0; i < 8; i++) {\r\n\t\t\trandomArray[i] = rnd.nextInt(45);\r\n\t\t}\r\n\t\treturn randomArray;\r\n\t}", "public int getFlagPoints() {\n\n return m_flagPoints;\n }", "protected void setFlag(int x, int y) {\r\n \r\n if (!flag[x][y]) {\r\n \t//System.out.println(\"Auto flag set at (\" + x + \",\" + y + \")\");\r\n \tflag[x][y] = true;\r\n flagsPlaced++;\r\n }\r\n\r\n }", "public static void main(String[] args) {\n\t\tN=sc.nextInt();\n\t\tint cnt=0;\n\t\tfor (int i = 0; i <N; i++) {\n\t\t\tint y=sc.nextInt();\n\t\t\tint x=sc.nextInt();\n\t\t\tfor (int j = x; j <x+10; j++) {\n\t\t\t\tfor (int j2 = y; j2 <y+10; j2++) {\n\t\t\t\t\tif(arr[j][j2]==false) {\n\t\t\t\t\t\tarr[j][j2]=true;\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}", "public SimpleShow()\n\t{\n\t\tseat = new boolean[10][5];\n\t}", "public void setHexagon(boolean newStatus) {\n hexagon = newStatus;\n if (hexagon) {\n neighborEvenColIndex = new int[]{-1, -1, 0, 1, 0, -1};\n neighborOddColIndex = new int[]{-1, 0, 1, 1, 1, 0};\n neighborRowIndex = new int[]{0, -1, -1, 0, 1, 1};\n }\n }", "private static void fillWithFlag(\n MyFlagManager flagManager,\n int indexFrom,\n int indexTo,\n byte flag) {\n final int offsetFlag = flagManager.flagOffset + flag;\n for (int index = indexFrom; index <= indexTo; index++) {\n flagManager.setOffsetFlagAt(index, offsetFlag);\n }\n }", "public void resetCoordinates(){\n pos=0;\n if(this.pIndex<2){\n this.coordinates[0]=TILE_SIZE*15-DICE_SIZE;}\n else{\n this.coordinates[0]=0;}\n if(this.pIndex%3==0){\n this.coordinates[1]=0;}\n else{\n this.coordinates[1]=TILE_SIZE*15-DICE_SIZE;} \n }", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "static boolean[] arrBooleano(){\n\t\tint k=9;\n\t\tboolean[]a=new boolean[k];\n\t\t//agregar 1,4,7\n\t\ta[1]=true;\n\t\ta[4]=true;\n\t\ta[7]=true;\n\t\t//borrar\n\t\ta[4]=false;\n\t\t//buscar 7 acceso\n\t\t\n\t\tif(a[7]){\n\t\t\t//System.out.println(\"accedi en orden 1\");\n\t\t}\n\t\telse{\n\t\t\t//System.out.println(\"soy false\");\n\t\t}\n\t\timprimir(a);\n\t\treturn a;\n\t\t//imprimir(a);\n\t}", "private void updateStateOnce() {\n for(int i = 0; i < maskArray.length; i++) {\n for (int j = 0; j < maskArray[i].length; j++) {\n\n if (maskArray[i][j] == 1){\n stateArray[i][j] = stateGenerator.generateElementState();\n }\n\n }\n }\n }", "void create(){\n // I assign zero value to each element of the array.\n for (int i = 0;i< this.row; i++){\n for (int j = 0; j< this.column; j++){\n array[i][j]= 0;\n }\n }\n // I create random values for mines indexes\n int min = 0;\n int max = this.row;\n Random random = new Random();\n int randRow, randColumn, count=0;\n //I generate random mines quarter of the size of the array and assign it into the array.\n while(count != (this.row*this.column/4)){\n randRow = random.nextInt(max + min) + min;\n randColumn = random.nextInt(max + min) + min;\n if (array[randRow][randColumn] != -1){\n array[randRow][randColumn]= -1;\n count++;\n }\n }\n // I show the all minesweeper map\n for (int i = 0;i< this.row; i++){\n for (int j = 0; j< this.column; j++){\n if (array[i][j]==0)\n System.out.print(\"0 \");\n else\n System.out.print(\"* \");\n }\n System.out.println();\n }\n }", "public LogicalVector(boolean... values) {\r\n this.values = new int[values.length];\r\n for (int i = 0; i != values.length; ++i) {\r\n this.values[i] = values[i] ? 1 : 0;\r\n }\r\n }", "public PolygonOptions[] newArray(int i) {\n return new PolygonOptions[i];\n }", "private static boolean[] initRow(int rowNumber){\n boolean[] row = new boolean[TOTAL_TILES];\n\n while(rowNumber % TILES_PER_ROW != 0){\n row[rowNumber] = true;\n rowNumber++;\n }\n return row;\n }", "private void setShips(){\n\t\t\n\t\tint x,y;\n\t\tboolean orientacja;\n\t\tRandom generator = new Random();\n\t\t\n\t\tint ilosc = 1;\n\t\tint j = 0;\n\t\tfor(int i = 4; i > 0 ; i--){\n\t\t\twhile( j < ilosc ){\n\t\t\t\tx = generator.nextInt( 13 );\t\t\n\t\t\t\ty = generator.nextInt( 13 );\n\t\t\t\torientacja = generator.nextBoolean();\n\t\t\t\tif( isPossibleAddShip(x, y, i, orientacja) ) j++;\t\n\t\t\t}\n\t\tilosc++;\n\t\tj=0;\n\t\t}\n\t\t\n\t}", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "private void f0() \n\t{\n\t\tint elements = 0;\n\t\t\n\t\tfor(int i=0;i<f2.length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<f2[0].length;j++)\n\t\t\t{\n\t\t\t\tif(f2[i][j])\n\t\t\t\t\telements++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(elements > 0){\n\t\t\tneighbors = new Neighbor[elements];\n\t\t\tint cy = (f2.length-1)/2; \n\t\t\tint cx = (f2[0].length-1)/2;\n\t\t\tint index=0;\n\t\t\t\n\t\t\tfor(int i=0;i<f2.length;i++)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<f2[0].length;j++)\n\t\t\t\t{\n\t\t\t\t\tif(f2[i][j]){\n\t\t\t\t\t\tneighbors[index++] = new Neighbor(i-cy,j-cx);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//No elements i.e all elements are false in the neighborhood buffer.\n\t\t\tneighbors = null;\n\t\t}\n\t\t\t\n\t}", "public BloomFilter(int n){\n\t\tflags = new boolean[4*n]; // initialize the boolean array by the size of 4n\n\t\tfor(int i=0; i<flags.length; i++){\n\t\t\tflags[i]=false; // initializing the fields with false value\n\t\t}\n\t\ta = (int) (Math.random()*100); // 1-100\n\t\tb = (int) (Math.random()*100);// 1-100\n\t}", "@Override\n public int read(int[] coordinates) {\n\n coordinates[0] = (int) x.get();\n coordinates[1] = (int) y.get();\n\n return 1;\n }", "private static int[][] AddToArr(int[][] arr, int[][] symbol, int length, int offset) {\n\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\tfor (int j = 0; j < length; j++) {\r\n\t\t\t\tif (symbol[i][j] > 0) {\r\n\r\n\t\t\t\t\tarr[i][j + offset] = 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn arr;\r\n\t}", "private int [] createYArray(){\r\n\t\tint [] yCoord = {\r\n\t\t\t\tyStart,\r\n\t\t\t\tyStart,\r\n\t\t\t\tyStart + Constants.FLOOR_HEIGHT,\r\n\t\t\t\tyStart,\r\n\t\t\t\tyStart - Constants.FLOOR_HEIGHT,\r\n\t\t\t\tyStart - Constants.FLOOR_HEIGHT,\r\n\t\t\t\tyStart,\r\n\t\t\t\tyStart,\r\n\t\t\t\tyStart - Constants.FLOOR_HEIGHT,\r\n\t\t\t\tyStart - Constants.FLOOR_HEIGHT,\r\n\t\t\t\tyStart\r\n\t\t};\r\n\t\treturn yCoord;\r\n\t}", "public static IntegerVarArray make(int count) {\n\t\treturn new IntegerVarArray(count);\n\t}", "public static int[][] raggedArray(){\n int n=(int)(Math.random()*11);\n n+=10; \n //this randomly assigns n to between 10 and 20\n int[][] ragged=new int[n][];\n //initialize this array with n first components\n //forloop to assign each inner array a length\n for(int i=0; i<n; i++){\n int m=(int)(Math.random()*11);\n m+=10; //m is between 10 and 20\n ragged[i]=new int[m];\n //another for loop to assign values\n for(int k=0; k<m; k++){\n int val=(int)(Math.random()*1001);\n int sign=(int)(Math.random()*2);\n if(sign==0){\n \n }\n else{\n val*=-1;\n //makes it 50/50 to be negative\n }\n ragged[i][k]=val;\n //assigns value to that spot of array\n }\n }\n return ragged;\n }", "public int allocate_map()\n {\n int size = MAX_PID - MIN_PID;\n //allocating memory for the pid map\n pid_map = new boolean[size];\n //incase the map is null i.e allocation is failed we return -1\n if(pid_map == null)\n return -1;\n //initializing the map with false values\n for(int i=0;i<size;i++)\n {\n pid_map[i] = false;\n }\n //returning 1\n return 1;\n }", "public void setCoords(int[] coords) {\n this.coords = coords;\n }", "public Integer[] createArray() {\n Integer[] value = new Integer[defaultLaenge];\n\n for (int i = 0; i < value.length; i++) {\n value[i] = (int)(value.length*Math.random());\n }\n\n return value;\n }", "public static boolean[] markMultiples(int a, boolean[] arr) {\n\t\t\n\t\t// mark each multiple of a starting with 2a\n\t\tfor (int i = (2*a); i < arr.length; i += a) {\n\t\t\tarr[i] = true;\n\t\t}\n\t\treturn arr;\n\t}", "private void setSeen(boolean value)\n\t{\n\t\tfor (int x = 0; x < width; x++)\n\t\t{\n\t\t\tfor (int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\ttiles[x][y].setSeen(value);\n\t\t\t}\n\t\t}\t\t\t\t\n\t}", "protected void restructure(boolean[] paramArrayOfBoolean, Object paramObject)\n/* */ {\n/* 133 */ int[] arrayOfInt = (int[])paramObject;\n/* 134 */ for (int i = 0; i < paramArrayOfBoolean.length; i++) {\n/* 135 */ if (paramArrayOfBoolean[i] != false) {\n/* 136 */ assignSlot(arrayOfInt[i]);\n/* */ }\n/* */ }\n/* */ }", "private void initShape()\n\t{\n\t\tcoords = new int[4][2];\n\t\tcoordsTable = new int [][][] \n\t\t{\n { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } },\n { { 0, -1 }, { 0, 0 }, { -1, 0 }, { -1, 1 } },\n { { 0, -1 }, { 0, 0 }, { 1, 0 }, { 1, 1 } },\n { { 0, -1 }, { 0, 0 }, { 0, 1 }, { 0, 2 } },\n { { -1, 0 }, { 0, 0 }, { 1, 0 }, { 0, 1 } },\n { { 0, 0 }, { 1, 0 }, { 0, 1 }, { 1, 1 } },\n { { -1, -1 }, { 0, -1 }, { 0, 0 }, { 0, 1 } },\n { { 1, -1 }, { 0, -1 }, { 0, 0 }, { 0, 1 } }\n\t\t};\n\t\t\n\t\tsetShape (Tetromino.NOSHAPE);\n\t}", "@Override // android.os.Parcelable.Creator\n public NetworkWallpaperInfo[] newArray(int i) {\n return new NetworkWallpaperInfo[i];\n }", "public void clearMarks() {\r\n markBoard = new boolean[squareDimension][squareDimension];\r\n }", "public void setRnaPointIDs(boolean r)\n { this.rnaPointIDs = r; }", "public void setSelectedPosArray(int maxNumberOfTiles)\n {\n //Language spec guarantees initialization with zeroes. Therefore first position.\n selectedPosArray = new int[maxNumberOfTiles];\n }", "public void init(int ar){\n\tarity = ar;\n\tconnected = new boolean[arity];\n\tedgMark = new boolean[arity];\n\tfor(int i=0;i<arity;i++) {\n\t edgMark[i] = false;\n\t connected[i] = true;\n\t}\n }", "public void setValues(boolean[] values) {\n\t\tthis.values = Arrays.copyOf(values, values.length);\n\t\tstart();\n\t}", "private void setBooleanFlags (short flags){\n\t\tthis.flags = flags;\n\t\tflagResetNeeded = false;\n\t\tpartOfAPairedAlignment = isPartOfAPairedAlignment();\n\t\taProperPairedAlignment = isAProperPairedAlignment();\n\t\tunmapped = isUnmapped();\n\t\tmateUnMapped = isMateUnMapped();\n\t\treverseStrand = isReverseStrand();\n\t\tmateReverseStrand = isMateReverseStrand();\n\t\tfirstPair = isFirstPair();\n\t\tsecondPair = isSecondPair();\n\t\tnotAPrimaryAlignment = isNotAPrimaryAlignment();\n\t\tfailedQC = failedQC();\n\t\taDuplicate = isADuplicate();\n\t\t\n\t}", "public void setFlag(Integer flag) { this.flag = flag; }", "@Override // android.os.Parcelable.Creator\n public final /* bridge */ /* synthetic */ lw[] newArray(int i) {\n return null;\n }", "Array(int x) {\n\t\tarray = new int[x];\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tarray[i] = 0; // make each index 0\n\t\t}\n\t}", "public SavedState[] newArray(int i) {\r\n return new SavedState[i];\r\n }", "protected void setAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.setBitAt(i);\n } \t\n }", "public static IntegerVarArray make(int[] buffer) {\n\t\treturn new IntegerVarArray(buffer);\n\t}", "PlateauGauffre(int largeur, int hauteur)\n {\n this(new Boolean[largeur][hauteur]);\n for (int x = 0; x < getLargeur(); x++)\n {\n for (int y = 0; y < getHauteur(); y++)\n {\n setAt(x, y, true);\n }\n }\n }", "public static void main(int a) {\n// System.out.println(~43);\n int bit []=new int[8];\n for (int i = 7; i >=0;){\n\n\n\n }\n\n}", "private void initializeShippingPoints() {\n shipping_points = new ShippingPoint[num_shipping_points];\n \n int x_size = 8;\n int y_size = 8;\n int[][] grid = new int[x_size][y_size]; //keeps track of which locations are taken\n //so no two ShippingPoints have the same location\n \n int x = 0;\n int y = 0;\n \n for(int i = 0; i < num_shipping_points; i++)\n {\n x = (int)(Math.random() * x_size);\n y = (int)(Math.random() * y_size);\n while(grid[x][y] != 0) {\n x = (int)(Math.random() * x_size);\n y = (int)(Math.random() * y_size);\n }\n grid[x][y] = 1;\n if(i % 4 == 0) { //be careful -- probably won't work in the general case\n Supplier supplier = new Supplier(x, y, i);\n shipping_points[i] = supplier;\n }\n else {\n Customer customer = new Customer(x, y, i);\n shipping_points[i] = customer;\n }\n }\n \n if(eight_shipping_points) {\n //for 8 shipping points\n shipping_points[0].setPosition(4, 0);\n shipping_points[1].setPosition(8, 0);\n shipping_points[2].setPosition(8, 4);\n shipping_points[3].setPosition(8, 8);\n shipping_points[4].setPosition(4, 8);\n shipping_points[5].setPosition(0, 8);\n shipping_points[6].setPosition(0, 4);\n shipping_points[7].setPosition(0, 0);\n }\n \n else {\n //for 20 shipping points\n /**/shipping_points[0].setPosition(4,0);\n shipping_points[1].setPosition(8, 0);\n shipping_points[2].setPosition(12, 0);\n shipping_points[3].setPosition(16, 0);\n shipping_points[4].setPosition(20, 0);\n shipping_points[5].setPosition(20, 4);\n shipping_points[6].setPosition(20, 8);\n shipping_points[7].setPosition(20, 12);\n shipping_points[8].setPosition(20, 16);\n shipping_points[9].setPosition(20, 20);\n shipping_points[10].setPosition(16, 20);\n shipping_points[11].setPosition(12, 20);\n shipping_points[12].setPosition(8, 20);\n shipping_points[13].setPosition(4, 20);\n shipping_points[14].setPosition(0, 20);\n shipping_points[15].setPosition(0, 16);\n shipping_points[16].setPosition(0, 12);\n shipping_points[17].setPosition(0, 8);\n shipping_points[18].setPosition(0, 4);\n shipping_points[19].setPosition(0, 0);/**/\n }\n \n displayShippingPoints();\n }", "public void assignBaseBuildingLocations(Toroidal2DPhysics space, Flag flag) {\n\t\tPosition flagPosition = flag.getPosition();\n\t\tPosition flagSpawn = null;\n\t\tdouble shortestDist = Double.MAX_VALUE;\n\t\tdouble dist;\n\t\t\n\t\tdist = space.findShortestDistance(flagPosition, TOP_RIGHT);\n\t\tif(dist < shortestDist) {\n\t\t\tflagSpawn = TOP_RIGHT;\n\t\t\tshortestDist = dist;\n\t\t}\n\t\t\n\t\tdist = space.findShortestDistance(flagPosition, TOP_LEFT);\n\t\tif(dist < shortestDist) {\n\t\t\tflagSpawn = TOP_LEFT;\n\t\t\tshortestDist = dist;\n\t\t}\n\t\t\n\t\tdist = space.findShortestDistance(flagPosition, BOTTOM_RIGHT);\n\t\tif(dist < shortestDist) {\n\t\t\tflagSpawn = BOTTOM_RIGHT;\n\t\t\tshortestDist = dist;\n\t\t}\n\t\t\n\t\tdist = space.findShortestDistance(flagPosition, BOTTOM_LEFT);\n\t\tif(dist < shortestDist) {\n\t\t\tflagSpawn = BOTTOM_LEFT;\n\t\t\tshortestDist = dist;\n\t\t}\n\t\t\n\t\tif(flagSpawn.getX() > 1000.0) { // Flag spawned on right side\n\t\t\tif(flagSpawn.getY() < 500.0) { // Flag spawned top\n\t\t\t\tSystem.out.println(\"Top-Right\");\n\t\t\t\tconvientBaseLocations[0] = new Position(flagSpawn.getX() + 200.0, flagSpawn.getY());\n\t\t\t\tconvientBaseLocations[1] = new Position(flagSpawn.getX() + 200.0, flagSpawn.getY() + 550.0);\n\t\t\t}\n\t\t\telse { // Flag spawned bottom\n\t\t\t\tSystem.out.println(\"Bottom-Right\");\n\t\t\t\tconvientBaseLocations[0] = new Position(flagSpawn.getX() + 200.0, flagSpawn.getY());\n\t\t\t\tconvientBaseLocations[1] = new Position(flagSpawn.getX() + 200.0, flagSpawn.getY() - 550.0);\n\t\t\t}\n\t\t}\n\t\telse { // Flag spawned on left side\n\t\t\tif(flagSpawn.getY() < 500.0) { // Flag spawned top\n\t\t\t\tSystem.out.println(\"Top-Left\");\n\t\t\t\tconvientBaseLocations[0] = new Position(flagSpawn.getX() - 200.0, flagSpawn.getY());\n\t\t\t\tconvientBaseLocations[1] = new Position(flagSpawn.getX() - 200.0, flagSpawn.getY() + 550.0);\n\t\t\t}\n\t\t\telse { // Flag spawned bottom\n\t\t\t\tSystem.out.println(\"Bottom-Left\");\n\t\t\t\tconvientBaseLocations[0] = new Position(flagSpawn.getX() - 200.0, flagSpawn.getY());\n\t\t\t\tconvientBaseLocations[1] = new Position(flagSpawn.getX() - 200.0, flagSpawn.getY() - 550.0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(convientBaseLocations[0].toString() + \" \" + convientBaseLocations[1].toString());\n\t}", "public void arrayToState(int[] gX){\r\n int i = 0;\r\n int j = 0;\r\n int count = 0;\r\n while(count < gX.length){\r\n this.setState(i, j, gX[count]);\r\n count++;\r\n if(j == 3){\r\n i++;\r\n j = 0;\r\n }\r\n else\r\n j++;\r\n }\r\n }", "public void setNumPoints(int np);", "public void setInterFlag(int index, boolean value){\r\n\t\tif (index < 0 || index >= this.interVec.length)\r\n\t\t\t;\r\n\t\telse\r\n\t\t\tthis.interVec[index] = value;\r\n\t}", "public void setDias(boolean[] dias){\n if(dias.length==7)\n System.arraycopy(dias, 0, this.dias, 0, 7);\n }", "public Ship(List<Coordinate> coordinates) {\n\t\tfor (Coordinate coordinate : coordinates) {\n\t\t\tcoordinate.setIsHit(false);\n\t\t\tcoordinate.setIsSunk(false);\n\t\t}\n\t\tshipPositions = coordinates;\n\t}", "void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature);", "void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature);", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "public abstract void createEmptyMap(Game game, boolean[][] landMap);", "private void createRandomGame() {\n ArrayList<int[]> usedCoordinates = new ArrayList<>();\n\n // make sure the board is empty\n emptyBoard();\n\n //find different coordinates\n while (usedCoordinates.size() < 25) {\n int[] temp = new int[]{randomNumberGenerator.generateInteger(size), randomNumberGenerator.generateInteger(size)};\n\n // default contains(arraylist) doesn't work because it compares hashcodes\n if (! contains(usedCoordinates, temp)) {\n usedCoordinates.add(temp);\n }\n }\n\n for (int[] usedCoordinate : usedCoordinates) {\n board.setSquare(usedCoordinate[0], usedCoordinate[1], randomNumberGenerator.generateInteger(size) + 1);\n }\n\n //save start locations\n startLocations = usedCoordinates;\n }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }", "private final int[] initializeInstanceVariable() {\n\t\tint n = 10;\n\t\tint[] temp = new int[n];\n\t\tfor (int i = 0; i < n; i++) {temp[i] = i;}\n\t\treturn temp;\n\t}", "public abstract boolean[] calculate();", "public void init(){\n visited = new boolean[length+2][width+2];\r\n for( int i = 0; i < length+2 ; i++){\r\n visited[i][0] = true;\r\n visited[i][length+1] = true;\r\n }\r\n for ( int i = 0; i < width+2; i++){\r\n visited[0][i] = true;\r\n visited[width+1][i] = true;\r\n }\r\n\r\n // initialze all walls as present\r\n for(int i=0;i< length+2;i++){\r\n for(int j=0;j< width+2;j++){\r\n this.board[i][j].northwall = true;\r\n this.board[i][j].eastwall = true;\r\n this.board[i][j].southwall = true;\r\n this.board[i][j].westwall = true;\r\n }\r\n }\r\n\r\n }", "private short allocObject() {\n\t\tshort result;\n\t\tint i;\n\t\tfor (i = 0; i < objects.size()\n\t\t\t\t&& ((Boolean) objects.get(i)).booleanValue(); i++)\n\t\t\t;\n\t\tif (i == objects.size()) {\n\t\t\tresult = (short) i;\n\t\t\tobjects.add(Boolean.TRUE);\n\t\t} else {\n\t\t\tresult = (short) i;\n\t\t\tobjects.set(i, Boolean.TRUE);\n\t\t}\n\t\treturn result;\n\t}", "private Countable[] generateArray(int rank){\n var numbers = new Countable[rank];\n for (int i = 0; i < rank; i++) {\n numbers[i] = getRandomCountable();\n }\n return numbers;\n }", "int[][][] generateChecker(int size);", "static void initializeArray(boolean firstTime) {\n\t\tint count = 0;\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tRandom r = new Random();\n\t\t\tint val = r.nextInt(m);\n\t\t\tint mod = val % m;\n\t\t\tif (array[mod] == -1) {\n\t\t\t\tarray[mod] = val;\n\t\t\t\tresult[1]++;\n\t\t\t\tcount++;\n\t\t\t} else if (firstTime) {\n\t\t\t\tresult[0] = count;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public abstract int[] getCoords();", "public native boolean[] __booleanArrayMethod( long __swiftObject, boolean[] arg );", "public void setFlagBin(int n) {\n flagBin=Translate.decTobinN(n, 4);\n }", "public Sudoku(int nums[][], boolean fnums[][], int size){\n\t\tthis.size = size;\n\t\tnumbers = new int[size*size][size*size];\n\t\tfixedNumbers = new boolean[size*size][size*size];\n\t\tif (nums.length == size*size && nums[0].length == size*size){\n\t\t\tfor (int i = 0; i < size*size; i++){\n\t\t\t\tfor (int j = 0; j < size*size; j++){\n\t\t\t\t\tnumbers[i][j] = nums[i][j];\n\t\t\t\t\tfixedNumbers[i][j] = fnums[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"The size mismatch\");\n\t\t}\n\t}", "public void setData(int x,int y,boolean v){\r\n\t\tgrid[x][y] = v;\r\n\t}" ]
[ "0.6431352", "0.63263917", "0.58351797", "0.58324796", "0.58264077", "0.5611702", "0.5493876", "0.5384836", "0.5353904", "0.5318602", "0.53027886", "0.5302738", "0.5298546", "0.5269879", "0.5260188", "0.5247276", "0.5181618", "0.5176375", "0.5173825", "0.5155759", "0.5116188", "0.5102006", "0.5097096", "0.50891", "0.50742054", "0.5062946", "0.5056972", "0.50549716", "0.50526136", "0.50410783", "0.5022239", "0.50213975", "0.5019227", "0.50090855", "0.4999401", "0.49964243", "0.49894193", "0.49890935", "0.49854866", "0.497958", "0.49731225", "0.49702457", "0.49306256", "0.49203897", "0.49189103", "0.49158412", "0.49139753", "0.4909229", "0.49066317", "0.48998618", "0.48920184", "0.4884509", "0.48764125", "0.48684347", "0.4863547", "0.48536575", "0.48499367", "0.48483232", "0.48300654", "0.4829202", "0.48257455", "0.4824593", "0.48184824", "0.48182017", "0.48062414", "0.48060364", "0.48051408", "0.48016956", "0.47970885", "0.4796244", "0.47863856", "0.47814885", "0.4780675", "0.47733772", "0.47710943", "0.4767624", "0.47649807", "0.47612885", "0.47610617", "0.47469604", "0.4732526", "0.47319758", "0.47319758", "0.47277376", "0.47277376", "0.47200224", "0.47169918", "0.47169918", "0.47120425", "0.4702689", "0.4701973", "0.47011873", "0.46935394", "0.46921682", "0.46800146", "0.4679568", "0.46660557", "0.46647033", "0.46613637", "0.4659728" ]
0.70980114
0
Constructor for when class has been passed through intent
protected FlagPositions(Parcel in) { coords = in.createIntArray(); flagsreceived = in.readByte() != 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Intent createNewIntent(Class cls);", "public Activity() {\n }", "protected abstract Intent createOne();", "public MyIntentService() {\n super(\"\");\n }", "private void openNewActivity(Class<RegisterActivity> class_argument) {\r\n Intent intent = new Intent(this, class_argument);\r\n startActivity(intent);\r\n }", "public MyIntentService() {\n super(\"MyIntentService\");\n }", "Classroom() {}", "private static Intent getIntent(Context context, Class<?> cls) {\n Intent intent = new Intent(context, cls);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n return intent;\n }", "private Instantiation(){}", "public MyIntentService(String name){\n super(name);\n }", "@Override\n public void onClick(View view) {\n Intent intent = ClassActivity.newIntent(getActivity(), mClass.getId());\n getActivity().startActivity( intent );\n }", "public MyIntentService() {\n super(MyIntentService.class.getName());\n }", "public ChatViewsFactory(Context context, Intent intent) {\n mContext = context;\n mRoomCode = intent.getStringExtra(EXTRA_ROOM_CODE);\n }", "public ProfileSetupActivity() {\n }", "public ChatActivity() {\n }", "public ResultInterpreter(final Intent intent){\n mIntent = intent;\n }", "public MyIntentService() {\n super(\"MyIntentServiceName\");\n }", "public ActivityUser() {\n }", "void intentPass(Activity activity, Class classname) {\n Intent i = new Intent(activity, classname);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n enterAnimation();\n }", "public void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n initParams(intent);\n }", "public MyIntentService() {\n //调用父类的构造函数\n //参数 = 工作线程的名字\n super(\"myIntentService\");\n }", "public IntentDetailFragment() {\n }", "void onCreate(Intent intent);", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "@Override\n protected void onNewIntent(Intent intent) {\n }", "Reproducible newInstance();", "public Activator() {\r\n\t}", "public ScriptActivity() {\n }", "@Override\n protected void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n Log.e(TAG, \"onNew Intent \" + this.getClass().getName());\n }", "public MockClass(String arg) {\n\t}", "public ClassBundle() {\n }", "@Override\n public void onNewIntent(Intent intent) {\n }", "public LopAdaptor(Activity context, int resource){\n super(context ,resource);\n this.context=context;\n this.resource=resource;\n }", "public Classroom() {\n\t}", "@Override\n public void startNewActivity(Bundle bundle, Class newClass) {\n if (newClass == DashboardActivity.class) {\n startActivity(DashboardActivity.getIntent(mContext));\n finish();\n }\n\n }", "public abstract Intent constructResults();", "@Override\n public void onNewIntent(Activity activity, Intent data) {\n }", "public S(Activity activity){\n\t\tthis.activity = activity;\n\t\t\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n intent = getIntent();\n }", "private Driver(Parcel in) {\n super(in);\n }", "private TabListener(Activity activity, String tag, Class<T> clz)\n {\n mActivity = activity;\n mTag = tag;\n mClass = clz;\n }", "private Intent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public TboFlightSearchRequest() {\n}", "public LocalAppLauncher() {\n }", "public UserSettingsActivity(){\r\n\r\n }", "@Override\n protected void onNewIntent(Intent intent){\n handleIntent(intent);\n }", "public MySOAPCallActivity()\n {\n }", "public Constructor(){\n\t\t\n\t}", "public Classe() {\r\n }", "public static void start(Activity act, Class<?> class1) {\n\t\tact.startActivity(new Intent(act.getApplicationContext(), class1));\n\t}", "public void create(MyActivity activity, Bundle bundle){\n super.create(activity, bundle);\n\n }", "public HelloIntentService() {\n super(\"HelloIntentService\");\n }", "private FavouriteContract() {\n }", "public HDInsightSparkActivity() {}", "public Investigator() {}", "private Activity(final String description) {\n\t\t\tthis.description = description;\n\t\t}", "public ConstructedObjectInput(AppContext c,Class<T> target){\n \tthis(c,target,c.getClassMap(target));\n }", "private GestionTour() {}", "void startNewActivity(Intent intent);", "VehicleClass() {}", "private void startActivity(Class destination)\n {\n Intent intent = new Intent(MainActivity.this, destination);\n startActivity(intent);\n }", "protected abstract void construct();", "public AppInfo() {\n }", "public RegistrationIntentService() {\n super(TAG);\n }", "public ImageLoader(Activity activity){\n this.main = activity;\n }", "public PhoneBook(){\n\n }", "public ActivityExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private void mystartActivity(Class c){\n Intent intent = new Intent(this,c);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }", "protected Intent getStravaActivityIntent()\n {\n return new Intent(this, MainActivity.class);\n }", "public void openCreateClassesActivity(View v) {\n Intent intent = new Intent(this, CreateClassesActivity.class);\n startActivity(intent);\n }", "private TweetRiver() { }", "public Tweet(){\n super();\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\thandleIntent(getIntent());\r\n\t}", "public GCMIntentService() {\n super(\"GCMIntentService\");\n\n }", "public Promo(){\n}", "protected ApiActivityBase() {\n super();\n }", "public ActiveSurveyQuestionItem() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "private void checkCreatingImplicitIntentsUsingConstructor(Source<CompilationUnit> java) {\n java.getModel().findAll(ObjectCreationExpr.class).stream()\n .filter(expr -> expr.getType().getName().getIdentifier().equals(\"Intent\"))\n .filter(this::isCreatingImplicitIntent)\n .forEach(objectCreation -> addJavaIssue(Severity.INFO, \".IMPLICIT_INTENT\", java.getFile(), objectCreation));\n }", "public Championship() {\n }", "public FruitStand() {}", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }", "private void goToActivity(Class goToClass) {\n Intent intent = new Intent(MenuActivity.this, goToClass);\n intent.putExtra(USER_ID,user.getId());\n intent.putExtra(USERNAME,user.getUserName());\n startActivity(intent);\n }", "private TaskItem()\n {\n }", "@SafeVarargs\r\n public static Intent createIntentWithSerializableExtras(Context thiz, Class<? extends Activity> clazz, Pair<String, ? extends Serializable>... extras)\r\n {\r\n Intent intent = new Intent(thiz, clazz);\r\n for(Pair<String, ? extends Serializable> extra : extras)\r\n {\r\n intent.putExtra(extra.first, extra.second);\r\n }\r\n return intent;\r\n }", "public Open() {\n //creates a new open instance\n }", "private Recommendation() {\r\n }", "protected ModelAgent ()\n {\n this (\"ModelAgent\");\n\n }", "private Conversation()\n {\n }", "private AttributeTypeHome( )\n {\n }", "private ServiceConstructorArguments(\n Class<? extends Service> implementation,\n Class<?> configClass,\n String configID,\n Object config,\n String serviceID,\n Class<? extends Service> serviceClass,\n Service serviceInstance\n ) {\n this.implementation = implementation;\n this.configClass = configClass;\n this.configID = configID;\n this.config = config;\n this.serviceID = serviceID;\n this.serviceClass = serviceClass;\n this.serviceInstance = serviceInstance;\n }", "public CallService() {\n super(\"My\");\n }", "public UploadReportIntentService() {\n super(TAG);\n }", "public CreateIndividualPreAction() {\n }", "public SubjectClass() {\n }", "public BookInfoResultsActivity(Context context, BookInfoActivity activity ) {\n this.context = context;\n this.statusField = statusField;\n this.roleField = roleField;\n //this.linearBox = linearBox;\n this.activity = activity;\n }", "private Movie(Parcel in) {\n id = in.readString();\n title = in.readString();\n overview = in.readString();\n posterUrl = in.readString();\n userRating = in.readString();\n releaseDate = in.readString();\n runtime = in.readInt();\n isFavorite = in.readByte() != 0;\n castList = in.createTypedArrayList(Cast.CREATOR);\n reviews = in.createTypedArrayList(Review.CREATOR);\n trailers = in.createTypedArrayList(Trailer.CREATOR);\n }", "public Chant(){}", "public void onNewIntent(Intent intent) {\n }" ]
[ "0.7055999", "0.6533614", "0.62847805", "0.62106276", "0.6135769", "0.60588527", "0.60383517", "0.599368", "0.5983687", "0.5979757", "0.59689707", "0.5928352", "0.58947355", "0.58867514", "0.58566755", "0.58371085", "0.5833235", "0.5827454", "0.58085686", "0.578129", "0.5769035", "0.57614416", "0.5744693", "0.57311934", "0.5728455", "0.57256323", "0.56773525", "0.56678426", "0.5655998", "0.5649933", "0.5598249", "0.5583912", "0.5581068", "0.55750644", "0.55739784", "0.55655754", "0.5565249", "0.55608934", "0.550214", "0.54914063", "0.54856807", "0.54836637", "0.5480828", "0.5468771", "0.5466106", "0.54604083", "0.54577", "0.5454374", "0.5436598", "0.5427489", "0.54176396", "0.5405014", "0.5403666", "0.54012835", "0.53993815", "0.53984547", "0.53968537", "0.5394326", "0.53943235", "0.53816736", "0.53774667", "0.53703", "0.53687537", "0.5365843", "0.53514594", "0.5348179", "0.5347124", "0.5336744", "0.53276265", "0.5320949", "0.53161615", "0.53134334", "0.5312246", "0.53113925", "0.53003293", "0.53002787", "0.5299942", "0.5299166", "0.5294503", "0.5290783", "0.5281757", "0.5277871", "0.52772784", "0.52772784", "0.5275561", "0.5274514", "0.526527", "0.5264654", "0.52548873", "0.5253705", "0.52526575", "0.52484614", "0.52447915", "0.5230284", "0.52299106", "0.52297723", "0.52279973", "0.5224797", "0.5214758", "0.521087", "0.5208709" ]
0.0
-1
Getter to see whether all coordinates have been set.
public boolean isFlagsreceived() { return flagsreceived; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean needCoordinates() { return needCoords; }", "public boolean getCoordsReady() {\n\t\treturn coordsReady;\n\t}", "boolean hasCoordinates();", "boolean hasCoordinates();", "boolean hasCoordinates();", "public boolean isEmpty() {\n \n return point2DSET.isEmpty();\n }", "boolean hasCoordInfo();", "public boolean isFixedCoordinates() {\n return fixedCoordinates;\n }", "public boolean hasCoordInfo() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasHasXCoordinate();", "@Override\n public boolean isSet() {\n return locusLocus != null;\n }", "public boolean isEmpty() {\n return pointsSet.isEmpty();\n }", "public boolean hasCoordInfo() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isSetX() {\n return this.x != null;\n }", "@Override\n public boolean isLocationEmpty(XYCoord coords)\n {\n return isLocationEmpty(null, coords.xCoord, coords.yCoord);\n }", "public boolean hasPoints() {\n\t\treturn !divided && points.size() != 0;\n\t}", "public boolean isEmpty() {\n return mPoints.isEmpty();\n }", "public boolean isSetPos() {\n return this.pos != null;\n }", "public boolean isSetPos() {\n return this.pos != null;\n }", "@java.lang.Override\n public boolean hasPointsCount() {\n return pointsCount_ != null;\n }", "public boolean isEmpty() {\n return points.isEmpty();\n }", "private boolean allGPSDataExists() {\n for(int i = 0; i < 6; i++) {\n if(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LATITUDE).equals(\"-1\"))\n return false;\n }\n return true;\n }", "public boolean isSet() {\n return nViewportUpdates > 0 && nWindowUpdates > 0;\n }", "private boolean isValidLocationFound() {\n return latitudeValue != null && longitudeValue != null;\n }", "@Override\n public boolean isSet() {\n return loci != null;\n }", "public boolean hasAll() {\n return all_ != null;\n }", "public boolean hasAll() {\n return all_ != null;\n }", "public boolean hasLatLng() {\n return this.mLatLng != null;\n }", "public boolean isSetOrigin()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(ORIGIN$16) != 0;\n }\n }", "Collection<? extends Object> getHasXCoordinate();", "@Override\n public boolean isEmpty(){\n return points.isEmpty();\n }", "@Override\n public boolean isLocationEmpty(int x, int y)\n {\n return isLocationEmpty(null, x, y);\n }", "public boolean isSetOffsets() {\n return this.offsets != null;\n }", "public boolean setBothCoordinates(){\r\n\r\n double[] results;\r\n\r\n if((results = getCoordinates(locationA)) == null){\r\n Toast.makeText(this, \"Try another location for A!\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }else{\r\n latA = results[0];\r\n lonA = results[1];\r\n }\r\n\r\n if((results = getCoordinates(locationB)) == null){\r\n Toast.makeText(this, \"Try another location for B!\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }else{\r\n latB = results[0];\r\n lonB = results[1];\r\n }\r\n\r\n getMidPoint();\r\n\r\n return true;\r\n }", "public boolean hasPosition() {\n return positionBuilder_ != null || position_ != null;\n }", "public boolean hasPosition() {\n return positionBuilder_ != null || position_ != null;\n }", "public boolean hasPointsCount() {\n return pointsCountBuilder_ != null || pointsCount_ != null;\n }", "public boolean isAllValues() { return this.isAll; }", "public boolean someLegalPos() {\n return !legalPos.isEmpty();\n }", "public boolean isSetLocNum() {\n\t\treturn this.locNum != null;\n\t}", "public boolean hasLocation() {\n return fieldSetFlags()[3];\n }", "public boolean isSetSldAll()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SLDALL$6) != 0;\n }\n }", "public boolean hasTextureCoords() {\n if (textureCoords != null) {\n return textureCoords.length > 0;\n }\n return false;\n }", "public boolean isSetInternal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(INTERNAL$4) != 0;\n }\n }", "@java.lang.Override\n public boolean hasRegionLocationMatrix() {\n return regionLocationMatrix_ != null;\n }", "@java.lang.Override\n public boolean hasPosition() {\n return position_ != null;\n }", "@java.lang.Override\n public boolean hasPosition() {\n return position_ != null;\n }", "@Override\n public boolean isLocationValid(XYCoord coords)\n {\n return master.isLocationValid(coords);\n }", "public boolean isValid() {\n return coordinates != null && coordinates.size() == 2\n && coordinates.get(0) >= -180.0 && coordinates.get(0) <= 180.0\n && coordinates.get(1) >= -90.0 && coordinates.get(1) <= 90.0\n && (coordinateSystem == null || coordinateSystem.isValid());\n }", "public boolean isSetPoint() {\n return EncodingUtils.testBit(__isset_bitfield, __POINT_ISSET_ID);\n }", "boolean hasHasLatitude();", "public boolean hasLocation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasRegionLocationMatrix() {\n return regionLocationMatrixBuilder_ != null || regionLocationMatrix_ != null;\n }", "boolean hasHasLongitude();", "public boolean hasLocation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean checkAllNull() {\n return (locationFilterCriteria == null || locationFilterCriteria.checkAllNull()) &&\n minPricePerM2 == null && maxPricePerM2 == null &&\n sizeInM2LowerBound == null &&\n sizeInM2UpperBound == null && roofed == null &&\n leasingTimeFrom == null && leasingTimeTo == null &&\n keywords == null && electricity == null && water == null &&\n high == null && glassHouse == null;\n }", "public boolean isReady() {\n return mPoints != null && mPoints.size() >= MINIMUM_SIZE;\n }", "public boolean valid() {\n return start != null && ends != null && weavingRegion != null;\n }", "@java.lang.Override\n public boolean hasBoundingBoxesCount() {\n return boundingBoxesCount_ != null;\n }", "private boolean checkAllRingAtomsHasCoordinates(IAtomContainer ac) {\n\t\tfor (int i = 0; i < ac.getAtomCount(); i++) {\n\t\t\tif (ac.getAtom(i).getPoint3d() != null && ac.getAtom(i).getFlag(CDKConstants.ISINRING)) {\n\t\t\t} else if (!ac.getAtom(i).getFlag(CDKConstants.ISINRING)) {\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean hasLocation()\n\t{\n\t\treturn location != null;\n\t}", "@Override\n public boolean isLocationEmpty(Unit unit, XYCoord coords)\n {\n return isLocationEmpty(unit, coords.xCoord, coords.yCoord);\n }", "public void setCoordsReady(boolean isReady) {\n\t\tcoordsReady = isReady;\n\t}", "private ArrayList<Location> canMoveInit() {\n if (last == null) {\n ArrayList<Location> firstList = new ArrayList<>();\n firstList.add(getLocation());\n firstList.add(null);\n crossLocation.push(firstList);\n }\n if (crossLocation.empty() || isEnd) {\n return null;\n }\n Grid gr = getGrid();\n if (gr == null) {\n return null;\n }\n last = getLocation();\n return getValid(getLocation());\n }", "public boolean hasPositionCall() {\n if (_left.hasPositionCall()) return true;\n if (_right.hasPositionCall()) return true;\n return false;\n }", "public boolean isSetDimensns()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DIMENSNS$6) != 0;\n }\n }", "public boolean hasValidPoint() {\n return mPoint.x != 0 || mPoint.y != 0;\n }", "public boolean canBeSet() {\n if (this.equals(SquareType.CORRIDOR))\n return true;\n else\n return false;\n }", "boolean hasLongitude();", "boolean hasLongitude();", "boolean hasLatLng();", "public boolean isSet() {\n\t\treturn false;\n\t}", "public boolean isSetNumRFPositions() {\n return (this.numRFPositions != null ? this.numRFPositions.isSetValue() : false);\n }", "public boolean hasAll() {\n return allBuilder_ != null || all_ != null;\n }", "public boolean hasAll() {\n return allBuilder_ != null || all_ != null;\n }", "public boolean isSetLocal()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(LOCAL$0) != 0;\r\n }\r\n }", "public boolean hasLocation()\n {\n return targetLocation != null;\n }", "public boolean allPlaced() {\n\t\tfor (Ship s : ships) {\n\t\t\tif (!s.isPlaced()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean isEmpty()\n {\n return dimensions.isEmpty();\n }", "public boolean hasX() {\n return xBuilder_ != null || x_ != null;\n }", "public boolean hasX() {\n return xBuilder_ != null || x_ != null;\n }", "@java.lang.Override\n public boolean hasX() {\n return x_ != null;\n }", "@java.lang.Override\n public boolean hasX() {\n return x_ != null;\n }", "Collection<? extends Object> getHasYCoordinate();", "public boolean isSetProperties() {\n return this.properties != null;\n }", "@java.lang.Override\n public boolean hasPolygonsCount() {\n return polygonsCount_ != null;\n }", "@java.lang.Override\n public boolean hasInputsWithGeoCount() {\n return inputsWithGeoCount_ != null;\n }", "public boolean isEmpty() {\r\n return (Double.isNaN(x) && Double.isNaN(y));\r\n }", "boolean hasLocation();", "boolean hasLocation();", "public boolean hasLatitude() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean isSetParams() {\n return this.params != null;\n }", "boolean hasLatitude();", "boolean hasLatitude();", "public boolean isCenteringOverCoords()\n\t{\n\t\treturn centerOverCoords;\n\t}", "public boolean isSetParams() {\n return this.params != null;\n }", "public boolean isSetParams() {\n return this.params != null;\n }", "public boolean isSetParams() {\n return this.params != null;\n }", "public boolean isSetParams() {\n return this.params != null;\n }", "public boolean isSetParams() {\n return this.params != null;\n }", "public boolean isSetIds() {\n return this.ids != null;\n }" ]
[ "0.7543456", "0.7413627", "0.7310989", "0.7310989", "0.7310989", "0.67792237", "0.6701353", "0.6650497", "0.66486436", "0.6639415", "0.66257006", "0.66153604", "0.65876526", "0.65723336", "0.6558958", "0.65581006", "0.655021", "0.6545229", "0.6545229", "0.6511446", "0.6510781", "0.6510129", "0.64785403", "0.6471539", "0.64540374", "0.6420172", "0.6420172", "0.64105564", "0.6404749", "0.6388962", "0.6360237", "0.6311074", "0.6289027", "0.6274039", "0.6265826", "0.6265826", "0.6259641", "0.62561744", "0.6233019", "0.62133294", "0.6205277", "0.62048", "0.62035346", "0.6197637", "0.6191343", "0.61805683", "0.61805683", "0.61764634", "0.61751825", "0.61710036", "0.6095282", "0.60937667", "0.60777575", "0.60633004", "0.6055838", "0.60519236", "0.60488224", "0.6045858", "0.60388875", "0.60354877", "0.60176015", "0.60166806", "0.60096467", "0.60067284", "0.60066164", "0.60021025", "0.600026", "0.5992753", "0.5983524", "0.5983524", "0.59794", "0.59759045", "0.59729636", "0.59700745", "0.59700745", "0.59652406", "0.5958156", "0.5943835", "0.5937352", "0.5933112", "0.5933112", "0.5928717", "0.5928717", "0.5926551", "0.59265155", "0.5921746", "0.59104216", "0.5895394", "0.5885929", "0.5885929", "0.5883799", "0.58822805", "0.5882168", "0.5882168", "0.5878698", "0.5866304", "0.5866304", "0.5866304", "0.5866304", "0.5866304", "0.58660316" ]
0.0
-1
Setter of the flag whether all coordinates have been set.
public void setFlagsreceived(boolean flagsreceived) { this.flagsreceived = flagsreceived; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIsLat(Boolean boo) {\n\t this.isLat = boo;\n }", "public boolean needCoordinates() { return needCoords; }", "public void setFalse(){\n for (int i = 0; i < Nodes.size(); i++){\n this.MinDistanceStatus.add(false);\n }\n }", "private void setSeen(boolean value)\n\t{\n\t\tfor (int x = 0; x < width; x++)\n\t\t{\n\t\t\tfor (int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\ttiles[x][y].setSeen(value);\n\t\t\t}\n\t\t}\t\t\t\t\n\t}", "protected void setFlag(int x, int y) {\r\n \r\n if (!flag[x][y]) {\r\n \t//System.out.println(\"Auto flag set at (\" + x + \",\" + y + \")\");\r\n \tflag[x][y] = true;\r\n flagsPlaced++;\r\n }\r\n\r\n }", "public void set()\r\n {\r\n isSet = true;\r\n }", "private void FalseFlag() {\r\n\t\tfor(int i = 0; i < rows_size; i ++ ) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++)\r\n\t\t\t\tgame[i][j].setFlag(false);\r\n\t\t}\r\n\t}", "public void setFillArea(boolean b)\r\n/* 34: */ {\r\n/* 35: 26 */ this.fillArea = b;repaint();\r\n/* 36: */ }", "public void setFilled ( boolean flag ) {\r\n\t\tfill_flag = flag;\r\n\t}", "@Override\n public void set(boolean state) {\n if (isInverted) {\n super.set(!state);\n } else {\n super.set(state);\n }\n }", "public void setCoordsReady(boolean isReady) {\n\t\tcoordsReady = isReady;\n\t}", "public void setXray(boolean xray);", "public void setAllFixed(boolean fixed);", "public void setFirst(boolean first){\r\n\t\tfirstCoordinate = first;\r\n\t}", "public abstract void setFilled(boolean filled);", "public void setAllUpdateFlags() {\n\t}", "public boolean setFlag(int x, int y) {\t\n\t\tif (util.wrongPosition(x, y)){\n\t\t\tSystem.out.println(\"Not a valid position\");\n\t\t\treturn false;\n\t\t}\n\t\tgameBoard[x][y] = flagLogic(x, y);\n\t\treturn true;\n\t}", "public boolean isFixedCoordinates() {\n return fixedCoordinates;\n }", "default void setNeedToBeUpdated(boolean flag)\n {\n getUpdateState().update(flag);\n }", "protected void setAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.setBitAt(i);\n } \t\n }", "protected void setFlag() {\n flag = flagVal;\n }", "protected void setFlag() {\n flag = flagVal;\n }", "public void setRequireAll(final boolean flag) {\n checkSetterPreconditions();\n requireAll = flag;\n }", "public boolean setBothCoordinates(){\r\n\r\n double[] results;\r\n\r\n if((results = getCoordinates(locationA)) == null){\r\n Toast.makeText(this, \"Try another location for A!\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }else{\r\n latA = results[0];\r\n lonA = results[1];\r\n }\r\n\r\n if((results = getCoordinates(locationB)) == null){\r\n Toast.makeText(this, \"Try another location for B!\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }else{\r\n latB = results[0];\r\n lonB = results[1];\r\n }\r\n\r\n getMidPoint();\r\n\r\n return true;\r\n }", "public\t\tvoid\t\tsetIterateThroughAllLayers(boolean flag)\n\t\t{\n\t\titerateThroughAllLayers = flag;\n\t\tinitialize();\n\t\t}", "void setFill(boolean fill);", "public void setIsPositionUpdateEnabled(String flag) {\n isPositionUpdateEnabled = (flag.equals(YES));\n updateParameters = true;\n }", "public void setFlagPosition(Integer[] flagPosition)\n {\n if (!flagLocations.contains(flagPosition) && flagPosition.length == 2)\n flagLocations.add(flagPosition);\n }", "@Override\r\n\tpublic void setMinCoordinates() {\n\t\t\r\n\t}", "public void setAllMissing();", "public void setAllUnexplored() {\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n if (in_start(row, col) || in_goal(row, col)) {\n grid[row][col].setIsExplored(true);\n } else {\n grid[row][col].setIsExplored(false);\n }\n }\n }\n }", "public void setCenterOverCoords(boolean doCenter)\n\t{\n\t\tcenterOverCoords = doCenter;\n\t}", "private void resetPolygonsFlags() {\n for ( Polygon p : polygons ) {\n p.setOverlap(false);\n }\n }", "boolean hasCoordinates();", "boolean hasCoordinates();", "boolean hasCoordinates();", "public void setAllPaths(boolean allPaths) {\n\t\tthis.allPaths = allPaths;\n\t}", "@Override\n\tpublic void setPerfect(boolean perf) {\n\n\t\tfor (SPhraseSpec child : this.coordinator.coordinates) {\n\t\t\tchild.setPerfect(perf);\n\t\t}\n\t}", "public void set(boolean[] abol);", "public synchronized static void setInsideSecureLocation(boolean flag){\n editor.putBoolean(IN_REGION, flag);\n editor.commit();\n }", "public void setEnabledAllStationsWithPeople(){\n Station station;\n for(JCheckBox checkBox : checkbox2StationName.keySet()){\n String stationName = checkbox2StationName.get(checkBox);\n if(stationName.equals(\"main_station\")){\n station = city.getMainStation();\n }\n else{\n station = city.getBusStations().get(stationName);\n }\n\n if(checkBox.isSelected() && !city.existsBusThatStopsAtStation(station)){\n checkBox.setEnabled(false);\n }\n else if(city.existsBusThatStopsAtStation(station)){\n checkBox.setEnabled(true);\n checkBox.setSelected(false);\n }\n }\n }", "private synchronized final void makeAllDirty() {\n dirtyTop = 0;\n dirtyLeft = 0;\n dirtyBottom = rows;\n dirtyRight = cols;\n isDirty = true;\n }", "void setSet(boolean set);", "protected void setSafepoint() {\n\t\tfor (UpdatableWrapper<?> uw : this.wrappedObjects.asMap().values())\n\t\t\tuw.setSafepoint();\n\t}", "@Override\n public boolean isSet() {\n return loci != null;\n }", "public void set(boolean bol);", "public void setFill(boolean b){\n\t\tthis.fill = b;\n\t}", "public abstract boolean setLocation(World world, int coords[]);", "public boolean isAllValues() { return this.isAll; }", "public void onChanged(Boolean bool) {\n int i;\n if (bool != null) {\n LocationActivitySettingItem a = this.f107703a.mo102020a();\n C7573i.m23582a((Object) bool, \"it\");\n if (bool.booleanValue()) {\n i = 0;\n } else {\n i = 8;\n }\n a.setVisibility(i);\n }\n }", "private void setFields(boolean[][] fields) {\n for (int y = 0; y < getHeight(); y++) {\n for (int x = 0; x < getLength(); x++) {\n if (this.fields[x][y] != fields[x][y]) {\n this.fields[x][y] = fields[x][y];\n }\n }\n }\n setChanged();\n notifyObservers();\n }", "public void setField(boolean value, int x, int y) {\n if (fields[x][y] != value) {\n fields[x][y] = value;\n setChanged();\n notifyObservers();\n }\n }", "public void setFixedCoordinates(boolean fixed) {\n if (fixedCoordinates == fixed) return;\n XMLControl control = new XMLControlElement(this);\n if (trackerPanel != null) {\n trackerPanel.changed = true;\n int n = trackerPanel.getFrameNumber();\n steps = new StepArray(getStep(n));\n trackerPanel.repaint();\n }\n if (fixed) {\n keyFrames.clear();\n keyFrames.add(0);\n }\n fixedCoordinates = fixed;\n Undo.postTrackEdit(this, control);\n }", "public void changeIfFlagZone()\r\n\t{\r\n\t\tlocInFlagZone = !locInFlagZone;\r\n\t}", "public void setClearMines(boolean b);", "@Test public void setAllPoints()\n\t{\n\n\t\t{\n\t\t\tPolygon p = new Polygon(new Vector2f(0, 0),\n\t\t\t\t\t\tnew Vector2f(1, 1));\n\n\t\t\tp.setFirstPositionAndShiftAll(3, 3);\n\n\t\t\tVector2fTest.assertVectorsAreEqual(p.pts()[0], 3, 3);\n\t\t\tVector2fTest.assertVectorsAreEqual(p.pts()[1], 4, 4);\n\t\t}\n\n\t\t{\n\t\t\tPolygon p = new Polygon(new Vector2f(4, 4),\n\t\t\t\t\t\tnew Vector2f(1, 1));\n\n\t\t\tp.setFirstPositionAndShiftAll(3, 3);\n\n\t\t\tVector2fTest.assertVectorsAreEqual(p.pts()[0], 3, 3);\n\t\t\tVector2fTest.assertVectorsAreEqual(p.pts()[1], 0, 0);\n\t\t}\n\n\t\t{\n\t\t\tPolygon p = new Polygon(new Vector2f(-4, -4),\n\t\t\t\t\t\tnew Vector2f(1, 1));\n\n\t\t\tp.setFirstPositionAndShiftAll(3, 3);\n\n\t\t\tVector2fTest.assertVectorsAreEqual(p.pts()[0], 3, 3);\n\t\t\tVector2fTest.assertVectorsAreEqual(p.pts()[1], 8, 8);\n\t\t}\n\t}", "public boolean isSet() {\n return nViewportUpdates > 0 && nWindowUpdates > 0;\n }", "public void assignAddingLocation(final boolean val) {\n addingLocation = val;\n }", "private boolean setCoords(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) {\r\n // Ensure all x co-ordinates are in the first quadrant\r\n if(x1 < 0 || x2 < 0 || x3 < 0 || x4 < 0) {\r\n throw new IllegalArgumentException(\"Error: Non-negative numbers for the X co-ordinates only\");\r\n } else if(y1 < 0 || y2 < 0 || y3 < 0 || y4 < 0) {\r\n throw new IllegalArgumentException(\"Error: Non-negative numbers for the Y co-ordinates only\");\r\n } else if(x1 > 20 || x2 > 20 || x3 > 20 || x4 > 20) {\r\n throw new IllegalArgumentException(\"Error: X co-ordinate values cannot be greater than 20\");\r\n } else {\r\n \treturn(true);\r\n }\r\n }", "public void setArrAll(boolean isArrAll) {\n\t\tthis.isArrAll = isArrAll;\n\t}", "@Override\r\n\tpublic void setMaxCoordinates() {\n\t\t\r\n\t}", "public void setX(boolean x) {\n\tthis.x = x;\n }", "public void setFill(boolean fill) {\n isFilled = fill;\n }", "@Override\n public boolean isSet() {\n return locusLocus != null;\n }", "@Override\n public boolean flag() {\n cell.setState(cell.getFlaggedState());\n return true;\n }", "public void setCoords(int[] coords) {\n this.coords = coords;\n }", "public void setAll(boolean all) {\n uppercase = all;\n lowercase = all;\n numbers = all;\n symbols = all;\n }", "public void setFill(boolean fill) {\n\t\t_fill = fill;\n\t\tnotifyObs(this);\n\t}", "public void setIsContactPoint(Long isContactPoint) {\n this.isContactPoint = isContactPoint;\n }", "@Override\n\tpublic void setPassive(boolean pass) {\n\n\t\tfor (SPhraseSpec child : this.coordinator.coordinates) {\n\t\t\tchild.setPassive(pass);\n\t\t}\n\t}", "private void setBooleanFlags (short flags){\n\t\tthis.flags = flags;\n\t\tflagResetNeeded = false;\n\t\tpartOfAPairedAlignment = isPartOfAPairedAlignment();\n\t\taProperPairedAlignment = isAProperPairedAlignment();\n\t\tunmapped = isUnmapped();\n\t\tmateUnMapped = isMateUnMapped();\n\t\treverseStrand = isReverseStrand();\n\t\tmateReverseStrand = isMateReverseStrand();\n\t\tfirstPair = isFirstPair();\n\t\tsecondPair = isSecondPair();\n\t\tnotAPrimaryAlignment = isNotAPrimaryAlignment();\n\t\tfailedQC = failedQC();\n\t\taDuplicate = isADuplicate();\n\t\t\n\t}", "private void onChange() {\n startTime = -1L;\n endTime = -1L;\n minLat = Double.NaN;\n maxLat = Double.NaN;\n minLon = Double.NaN;\n maxLon = Double.NaN;\n }", "public boolean canBeSet() {\n if (this.equals(SquareType.CORRIDOR))\n return true;\n else\n return false;\n }", "protected void toggleStateChanged() \r\n\t{\r\n\t\tgetSoccerMaster().setShowBallCoord( isToggledOn() );\r\n\t}", "public void setFilled(boolean filled) {\r\n this.filled = filled;\r\n }", "protected abstract void setCell(int x, int y, boolean state);", "private void setDirty(boolean flag) {\n\tdirty = flag;\n\tmain.bSave.setEnabled(dirty);\n }", "public int[] updateMap() {\r\n\t\tint[] isObstacle = super.updateMap();\r\n\t\tsmap.setMap(map);\r\n\t\treturn isObstacle;\r\n\t}", "public boolean getCoordsReady() {\n\t\treturn coordsReady;\n\t}", "public abstract void setHoldGeneratedOriginEntries(boolean holdGeneratedOriginEntries);", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "public void setFilled(boolean filled) \n\t{\n\t\tthis.filled = filled;\n\t}", "public boolean isSetPos() {\n return this.pos != null;\n }", "public boolean isSetPos() {\n return this.pos != null;\n }", "boolean isSet(Coordinates coord, double horizon, long time)throws AstrometryException;", "private void setOneAllChecks() {\r\n\r\n checkIman.setEnabled(true);\r\n checkBonferroni.setEnabled(true);\r\n checkHolm.setEnabled(true);\r\n checkHochberg.setEnabled(true);\r\n checkHommel.setEnabled(true);\r\n checkHolland.setEnabled(true);\r\n checkRom.setEnabled(true);\r\n checkFinner.setEnabled(true);\r\n checkLi.setEnabled(true);\r\n\r\n }", "public void setCalculateMultipleCriticalPaths(boolean flag)\r\n {\r\n m_calculateMultipleCriticalPaths = flag;\r\n }", "public void changeIsFlagged() {\r\n\t\tif (this.isFlagged) {\r\n\t\t\tthis.isFlagged = false;\r\n\t\t} else {\r\n\t\t\tthis.isFlagged = true;\r\n\t\t}\r\n\t}", "@Override\n \t\t\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n \t\t\t\tif(arg1==true)\n \t\t\t\t\tmMap.setMyLocationEnabled(true);\n \t\t\t\telse\n \t\t\t\t\tmMap.setMyLocationEnabled(false);\n \t\t\t}", "@Override\n \t\t\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n \t\t\t\tif(arg1==true)\n \t\t\t\t\tmMap.setMyLocationEnabled(true);\n \t\t\t\telse\n \t\t\t\t\tmMap.setMyLocationEnabled(false);\n \t\t\t}", "private void setDirty(boolean flag) {\n\tmain.getState().dirty = flag;\n\tif (main.bSave != null)\n\t main.bSave.setEnabled(flag);\n }", "public void setValues(boolean[] values) {\n\t\tthis.values = Arrays.copyOf(values, values.length);\n\t\tstart();\n\t}", "@SuppressWarnings(\"unused\")\n private void setMyLocationEnabled(final JSONArray args, final CallbackContext callbackContext) throws JSONException {\n Boolean isEnabled = false;\n isEnabled = args.getBoolean(1);\n map.setMyLocationEnabled(isEnabled);\n map.getUiSettings().setMyLocationButtonEnabled(isEnabled);\n this.sendNoResult(callbackContext);\n }", "public void setNormalizationState(boolean flag);", "public void setIsHaveContactPoint(Long isHaveContactPoint) {\n this.isHaveContactPoint = isHaveContactPoint;\n }", "private void setMyLatLong() {\n }", "public void setData(int x,int y,boolean v){\r\n\t\tgrid[x][y] = v;\r\n\t}", "public void setStreets(int numx, int numy);", "boolean canSetPixel();", "public void setInterFlag(int index, boolean value){\r\n\t\tif (index < 0 || index >= this.interVec.length)\r\n\t\t\t;\r\n\t\telse\r\n\t\t\tthis.interVec[index] = value;\r\n\t}", "public void setFilled(boolean filled) {\n this.filled = filled;\n }" ]
[ "0.6450476", "0.6339996", "0.6236825", "0.614084", "0.6096355", "0.60857785", "0.6077148", "0.60123134", "0.6011462", "0.59835106", "0.59714574", "0.5958635", "0.59439296", "0.59313655", "0.59301883", "0.5929291", "0.5925284", "0.58927256", "0.58882606", "0.58731395", "0.58699125", "0.58699125", "0.586491", "0.5835985", "0.5828557", "0.57763505", "0.57529795", "0.5741265", "0.5712454", "0.57021594", "0.57018095", "0.5690416", "0.56848514", "0.56733626", "0.56733626", "0.56733626", "0.5669164", "0.5668158", "0.56571347", "0.56375456", "0.56313", "0.56266356", "0.56154835", "0.5605676", "0.56052405", "0.5601502", "0.5589965", "0.55883974", "0.55882627", "0.55616", "0.5560863", "0.55532813", "0.5552588", "0.5538975", "0.5523253", "0.5515687", "0.5514186", "0.5511463", "0.55104274", "0.54965645", "0.5474104", "0.54617786", "0.5453613", "0.54509336", "0.5450526", "0.5433768", "0.5431436", "0.5428244", "0.5425251", "0.5424809", "0.54124194", "0.54109097", "0.5408086", "0.5407715", "0.5406933", "0.53948617", "0.5392936", "0.53914624", "0.538728", "0.53811216", "0.5380983", "0.5366264", "0.5354874", "0.5354874", "0.53445446", "0.53433985", "0.53360367", "0.5333541", "0.53259915", "0.53259915", "0.5324892", "0.53126436", "0.5311495", "0.5309124", "0.5306083", "0.5303873", "0.5293948", "0.52926075", "0.5289993", "0.52882874", "0.5286899" ]
0.0
-1
Getter for a flag coordinate. Due to numbering of the API the position is 1 off.
public int getCoord(int i) { return coords[i-1]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Location getOffset() {\n\t\treturn gfPos;\n\t}", "public int getX() { return loc.x; }", "public Location getOffset() {\n\t\treturn pos;\n\t}", "public int getLocX() {\n return locX;\n }", "public int getLocX() {\n return locX;\n }", "public int getXCoordinate ()\n {\n return xCoordinate;\n }", "public int getFlagPoints() {\n\n return m_flagPoints;\n }", "public int getXcoord(){\n\t\treturn this.coordinates[0];\n\t}", "public int getX() {\n return this.coordinate.x;\n }", "public Coordinate coordinate() {\n\t\treturn coordinate;\n\t}", "public int getX()\r\n {\r\n return xLoc;\r\n }", "long getCoordinates();", "long getCoordinates();", "public int getX() { return position.x; }", "public int getBit(int pos) {\r\n\t\treturn flagBits[pos];\r\n\t\t\r\n\t}", "public Coordinate getCoordinate() {\n return coordinate;\n }", "public int getLocationX() {\r\n\t\treturn x;\r\n\t}", "public int getX(){\n\t\treturn this.x_location;\n\t}", "public int getPosition()\n {\n return getInt(\"Position\");\n }", "public Coordinate getPosition();", "public long getPosition();", "public int getLon();", "protected int getMarkerPosition() {\n\t\treturn valueToMarkerPosition(getValue());\n\t}", "public Integer getFLAG() {\n return FLAG;\n }", "protodef.b_math.coord getCoordInfo();", "public short getXPos(){\n return xPos;\n }", "public Point getCoordinate() {\n return this.coordinate;\n }", "public int getFlag()\n {\n return flag;\n }", "public int get_X_Coordinate()\n {\n return currentBallX;\n }", "public long getPos()\n\t{\n\t\treturn -1;\n\t}", "public int getLat();", "public final XYLocation getOffset() {\n\t\treturn loc;\n\t}", "public Coordinate getCoordinate() {\n\t\treturn this.coordinate;\n\t}", "public int getX()\r\n {\r\n return xCoord;\r\n }", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 20);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 12);\n\t\t}\n\t}", "public float getX() { return xCoordinate;}", "public long position() {\n return _pos;\n }", "public int PositionGet();", "int getBitPosition() {\r\n\t\treturn bitPosition;\r\n\t}", "public int getxCoordinate() {\n return xCoordinate;\n }", "public int getxCoordinate() {\n return xCoordinate;\n }", "public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t}\n\t}", "public int getLocY() {\n return locY;\n }", "@Override\n public int getLayerPosition() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.LAYER_POSITION_);\n return ((Integer)retnValue).intValue ();\n }", "@Field(11) \n\tpublic byte CombOffsetFlag() {\n\t\treturn this.io.getByteField(this, 11);\n\t}", "public int getMarker() {\r\n\t\treturn this.marker;\r\n\t}", "public int getPos();", "public int getPos();", "public int getX() {\n return xCoord;\n }", "public int getYcoord(){\n\t\treturn this.coordinates[1];\n\t}", "int getFlag();", "public int getX(){\n return this.position[0];\n }", "public Coordinate getPosition() {\n return cPosition;\n }", "@Override\n public int getFlag() {\n return flag_;\n }", "public int getLocationX( )\n\t{\n\t\treturn locationX;\n\t}", "public GeoPoint position(){\n return position;\n }", "double a_marker_position ()\n {\n double l_return = 0.0;\n\n if (marker != null)\n {\n l_return = marker.getPosition ();\n }\n\n return l_return;\n\n }", "public int getLocY ()\n {\n return locY;\n }", "public int getX() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.x();\n }", "public int getY() { return loc.y; }", "int getX_coordinate(){\n return x_coordinate;\n }", "@Override\n public int getFlag() {\n return flag_;\n }", "public int getXOffset();", "public int getX() {\r\n\t\treturn xcoord;\r\n\t}", "public Integer getPosition() {\n return this.position;\n }", "public int getX() {\n return pos_x;\n }", "public int getX(){ return xPosition; }", "public GridCoord getCoord() {\n\t\treturn this.coord;\n\t}", "public Point getLocation() {\n return pos;\n }", "public Optional<Integer> getPosition() {\n return this.placement.getAlleles().stream()\n .map(p -> p.getAllele().getSpdi().getPosition())\n .findFirst();\n }", "public int getX() {\n return positionX;\n }", "private static int getFlagValue (Shape shape)\r\n {\r\n switch (shape) {\r\n case FLAG_1:\r\n case FLAG_1_UP:\r\n return 1;\r\n\r\n case FLAG_2:\r\n case FLAG_2_UP:\r\n return 2;\r\n\r\n case FLAG_3:\r\n case FLAG_3_UP:\r\n return 3;\r\n\r\n case FLAG_4:\r\n case FLAG_4_UP:\r\n return 4;\r\n\r\n case FLAG_5:\r\n case FLAG_5_UP:\r\n return 5;\r\n }\r\n\r\n logger.error(\"Illegal flag shape: {}\", shape);\r\n\r\n return 0;\r\n }", "public GeoPoint getPosition() {\n\t\treturn position;\n\t}", "public PointF get_position() { return _position; }", "public Vector2fc getPosition(){\n return position.toImmutable();\n }", "public geo_location getLocation() {\n return _pos;\n }", "public final double getX() { return location.getX(); }", "public Position getOffset() {\r\n return offset;\r\n }", "public Coordinate getLocation();", "public short getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t}\n\t}", "public Point getLocation() {\r\n return new Point((int)x,(int)y);\r\n }", "int getIntFromBitFlag(int flag) {\r\n\t\tswitch (flag) {\r\n\t\tcase 1:\r\n\t\t\treturn 1;\r\n\t\tcase 2:\r\n\t\t\treturn 2;\r\n\t\tcase 3:\r\n\t\t\treturn 4;\r\n\t\tcase 4:\r\n\t\t\treturn 8;\r\n\t\tcase 5:\r\n\t\t\treturn 16;\r\n\t\tcase 6:\r\n\t\t\treturn 32;\r\n\t\tcase 7:\r\n\t\t\treturn 64;\r\n\t\tcase 8:\r\n\t\t\treturn 128;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"No flag specified in BaseRobot.getIntFromBitFlag\");\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public int getPos()\n {\n return pos;\n }", "public int getLocY() {\n return locY;\n }", "public GridCoord getCoord() {\n return coord;\n }", "public Pos getPos()\r\n\t{\r\n\t\treturn position;\r\n\t}", "public int getzPos() {\n return zPos;\n }", "@Override\n\tpublic java.lang.String getPositionCode() {\n\t\treturn _dmGTShipPosition.getPositionCode();\n\t}", "public int getPos()\n {\n return pos;\n }", "public Integer getPosition();", "int getFlagImage() {\n return this.flagImage;\n }", "public PVector getLoc() {\n return location;\n }", "public PVector getLoc() {\n return location;\n }", "public int getX() {\n return posX;\n }", "public Coordinate getCoordinate() {\n\t\treturn super.listCoordinates().get(0);\n\t}", "public int getXPosition() {\n return this.xPosition;\n }", "public Integer getOffset() {\n return this.offset;\n }", "public Integer getOffset() {\n return this.offset;\n }", "public final native CoOrdinates getPosition() /*-{\r\n\t\treturn this.position;\r\n\t}-*/;", "public int getPosicaoX() {\r\n\t\treturn posicaoX;\r\n\t}", "public int getYCoordinate ()\n {\n return yCoordinate;\n }" ]
[ "0.6617792", "0.6543612", "0.64370245", "0.64324045", "0.6329852", "0.6299548", "0.629383", "0.6256278", "0.625034", "0.6214247", "0.6211326", "0.6202452", "0.6202452", "0.6200629", "0.6196533", "0.61796534", "0.6165245", "0.6157567", "0.6157525", "0.614315", "0.61370647", "0.6127063", "0.6126367", "0.6120878", "0.6117093", "0.6113738", "0.6105837", "0.61028767", "0.6101534", "0.6096145", "0.60954577", "0.60945666", "0.60921615", "0.6086872", "0.60864455", "0.6079723", "0.6075533", "0.60589707", "0.6051196", "0.6048106", "0.6048106", "0.60449684", "0.60421693", "0.60273385", "0.59985965", "0.59735626", "0.59582657", "0.59582657", "0.59556043", "0.5953143", "0.59506816", "0.5946408", "0.59434557", "0.5940483", "0.59371525", "0.5922491", "0.59200746", "0.59154373", "0.5897884", "0.58952266", "0.5893183", "0.5889363", "0.5886953", "0.588577", "0.58857656", "0.58857226", "0.58841634", "0.5879961", "0.5873774", "0.5873312", "0.58708173", "0.5858941", "0.58586794", "0.5842152", "0.58394504", "0.5835019", "0.58349836", "0.58302027", "0.5828083", "0.58275586", "0.5821713", "0.5811726", "0.58113796", "0.58108985", "0.58090657", "0.5804384", "0.5803028", "0.57986134", "0.5788708", "0.5780793", "0.57736796", "0.57699704", "0.57699704", "0.5764251", "0.5762768", "0.57493925", "0.5748344", "0.5748344", "0.57450926", "0.57392925", "0.5732037" ]
0.0
-1
sets a flag coordinate. Due to the numbering of the API positions are given with a +1 value.
public void setCoord(int coord, int pos) { this.coords[pos-1] = coord; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFlagPosition(Integer[] flagPosition)\n {\n if (!flagLocations.contains(flagPosition) && flagPosition.length == 2)\n flagLocations.add(flagPosition);\n }", "protected void setFlag(int x, int y) {\r\n \r\n if (!flag[x][y]) {\r\n \t//System.out.println(\"Auto flag set at (\" + x + \",\" + y + \")\");\r\n \tflag[x][y] = true;\r\n flagsPlaced++;\r\n }\r\n\r\n }", "public void setFlag( int flag )\n {\n value |= 1 << flag;\n setBit( flag );\n }", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 20, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 12, flag);\n\t\t}\n\t}", "public void setFlag(Integer flag) { this.flag = flag; }", "public void setFlag(int which) {\n setFlag(which, true);\n }", "public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 4, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 4, flag);\n\t\t}\n\t}", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "public static int setFlag(int field, int pos, boolean value) {\n if(pos < 1 || pos > 32) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 32\");\n }\n\n long flag = (long) Math.pow(2, (pos-1));\n\n if(value) {\n field |= flag;\n } else {\n field &= ~flag;\n }\n return field;\n }", "public void setBit(int pos, int bit) {\r\n\t\tflagBits[pos] = bit;\r\n\t}", "public boolean setFlag(int x, int y) {\t\n\t\tif (util.wrongPosition(x, y)){\n\t\t\tSystem.out.println(\"Not a valid position\");\n\t\t\treturn false;\n\t\t}\n\t\tgameBoard[x][y] = flagLogic(x, y);\n\t\treturn true;\n\t}", "public void setFlag(int which, boolean value) {\n if (value) {\n flags |= (1 << which); // set flag\n } else {\n flags &= ~(1 << which); // clear flag\n }\n }", "public void \nsetFlag( int pFlagNumber, boolean pYesNo ) {\n if (pYesNo)\n fFlagBox = fFlagBox | (1 << pFlagNumber); \n else\n fFlagBox = fFlagBox & (~(1 << pFlagNumber));\n}", "protected void setFlag() {\n flag = flagVal;\n }", "protected void setFlag() {\n flag = flagVal;\n }", "public void setIsPositionUpdateEnabled(String flag) {\n isPositionUpdateEnabled = (flag.equals(YES));\n updateParameters = true;\n }", "public void setFlag( KerberosFlag flag )\n {\n int pos = MAX_SIZE - 1 - flag.getOrdinal();\n value |= 1 << pos;\n }", "public static long setFlag(long field, int pos, boolean value) {\n if(pos < 1 || pos > 64) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 64\");\n }\n\n long flag = (long) Math.pow(2, (pos-1));\n\n if(value) {\n field |= flag;\n } else {\n field &= ~flag;\n }\n return field;\n }", "public void setFlags(short flag) {\n\tflags = flag;\n }", "public void setFlag(short flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeShort(__io__address + 6, flag);\n\t\t} else {\n\t\t\t__io__block.writeShort(__io__address + 6, flag);\n\t\t}\n\t}", "protected final synchronized void setFlag(int flag, boolean sts) {\n\t\tboolean state = (m_flags & flag) != 0 ? true : false;\n\t\tif ( state && sts == false)\n\t\t\tm_flags -= flag;\n\t\telse if ( state == false && sts == true)\n\t\t\tm_flags += flag;\n\t}", "static int setBit(int num, int pos) {\n\t\t\treturn num | (1<<pos);\n\t\t}", "public void setFlags(int param1) {\n }", "protected long setBit(long word, boolean flag, long position) {\n\t\tif (!flag) {\n\t\t\treturn word & (~(1L << position));\n\t\t}\n\t\treturn word | (1L << position);\n\t}", "private void setFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.setFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setFlag(short):void\");\n }", "public void setX(int x){ xPosition = x; }", "public Builder setFlag(int value) {\n bitField0_ |= 0x00000400;\n flag_ = value;\n onChanged();\n return this;\n }", "public static byte setFlag(byte field, int pos, boolean value) {\n if(pos < 1 || pos > 8) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 8\");\n }\n\n short flag = (short) Math.pow(2, (pos-1));\n\n if(value) {\n field |= flag;\n } else {\n field &= ~flag;\n }\n return field;\n }", "public void setPos(int pos);", "public void setPos(int pos);", "public void setX(int x) { loc.x = x; }", "public void setFlag(RecordFlagEnum flag);", "public void set(int pos);", "public int setPoint(float x, float y, int gnum);", "private void switchOnFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS]|= (1<<flag);\r\n\t}", "private void setX(long value) {\n bitField0_ |= 0x00000001;\n x_ = value;\n }", "protected void setStateFlag(int flag, boolean sts) {\n\t\tif ( sts == true && (m_flags & flag) == 0)\n\t\t\tm_flags += flag;\n\t\telse if ( sts == false && (m_flags & flag) != 0)\n\t\t\tm_flags -= flag;\n\t}", "static int setBit(int n, int pos){\n return n | (1<<pos);\n }", "public void setOffset(Location value) {\n\t\tgfPos = value;\n\t}", "public static short setFlag(short field, int pos, boolean value) {\n if(pos < 1 || pos > 16) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 16\");\n }\n\n int flag = (int) Math.pow(2, (pos-1));\n\n if(value) {\n field |= flag;\n } else {\n field &= ~flag;\n }\n return field;\n }", "public final native void setFlags(int value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.flags = value;\n }-*/;", "public static long setBit(long value, int pos) {\n pos--;\n return value | (1L << pos);\n\n }", "public void setFlag( KerberosFlag flag )\n {\n value |= 1 << flag.getOrdinal();\n setBit( flag.getOrdinal() );\n }", "public void setFlag(Drawable flag){\n ImageView mFlagImageView = findViewById(R.id.guesshint_image_flag);\n mFlagImageView.setImageDrawable(flag);\n }", "public FlagPositions(int number_of_flags) {\r\n // Integer array to store the data.\r\n coords = new int[number_of_flags];\r\n\r\n // Set coordinates to default value.\r\n for (int i = 0; i<coords.length;i++){\r\n coords[i] = -1;\r\n }\r\n\r\n // Set flag.\r\n flagsreceived = false;\r\n }", "public void PositionSet(int position);", "void setBit(int index, int value);", "public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}", "public void setFlag(Boolean flag) {\n this.flag = flag;\n }", "void setOffset(double offset);", "public void setPosition(int position);", "void setX(int x) {\n position = position.setX(x);\n }", "public void setOnline(int pos){\n }", "public void setCurrentFlag(Character aCurrentFlag) {\n currentFlag = aCurrentFlag;\n }", "public void setMoveTo(Coordinate coordinate);", "public void pin() {\n this.pin = new Vec(this.pos);\n }", "void setX(int newX) {\n this.xPos = newX;\n }", "public void setFlag(boolean bol){\n\t\tflag = bol;\n\t}", "void setBit(int index, boolean value);", "private static void fillWithFlag(\n MyFlagManager flagManager,\n int indexFrom,\n int indexTo,\n byte flag) {\n final int offsetFlag = flagManager.flagOffset + flag;\n for (int index = indexFrom; index <= indexTo; index++) {\n flagManager.setOffsetFlagAt(index, offsetFlag);\n }\n }", "public void set(int loc, boolean val)\n\t{\n\t\tif (loc < this.size)\n\t\t{\n\t\t\tif (val)\n\t\t\t{\n\t\t\t\tbits[loc / BITS_IN_LONG] |= (1L << (loc % BITS_IN_LONG));\n\t\t\t} else\n\t\t\t{\n\t\t\t\tbits[loc / BITS_IN_LONG] &= ~(1L << (loc % BITS_IN_LONG)); // DO NOT FORGET THAT SECOND L\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // TOOK ME FOREVER TO FIX WHEN I FORGOT\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Exception: tried to set value of BitArray that was out of bounds: \" + loc + \". Size was \" + this.size);\n\t\t}\n\t}", "public void setMark\n (int r, int c,\n Mark mark);", "void setPos(float x, float y);", "public void setInterFlag(int index, boolean value){\r\n\t\tif (index < 0 || index >= this.interVec.length)\r\n\t\t\t;\r\n\t\telse\r\n\t\t\tthis.interVec[index] = value;\r\n\t}", "public void setPosition(int position, boolean passThroughGoSquare)\n\t{\n\t\tsomethingChanged = true;\n\t\tif ((position >= 40 || this.position > position) && passThroughGoSquare)\n\t\t{\n\t\t\taddMoney(200);\n\t\t}\n\t\tsetPreviousPosition(this.position);\n\t\tthis.position = position;\n\t\tthis.position %= 40;\n\t}", "public void setLocation(Coordinate coordinate);", "public void setPosition(Point newPosition);", "void setLocation(int x, int y);", "public void setIsLat(Boolean boo) {\n\t this.isLat = boo;\n }", "public void setFLAG(Integer FLAG) {\n this.FLAG = FLAG;\n }", "public static void updateFlag() throws GameActionException {\n \tint prevFlag = rc.getFlag(rc.getID());\n \tint newFlag = ((prevFlag >> 5) << 5) | currentRadius;\n \tif (prevFlag != newFlag) {\n \t\trc.setFlag(newFlag);\n \t}\n }", "void setPosition(Point point);", "protected void setLane(int x)\n {\n lane = x;\n }", "public void setPosition(Integer position);", "public void setLocation(float x, float y);", "void xsetRawOffset(org.apache.xmlbeans.XmlInt rawOffset);", "public Builder setMark(int value) {\n \n mark_ = value;\n onChanged();\n return this;\n }", "public void setOffset(Location value) {\n\t\tthis.pos = value;\n\t}", "public void setX(int newX)\r\n {\r\n xCoord = newX;\r\n }", "void setRawOffset(int rawOffset);", "public static void setNexPoint(MyInt x, MyBool b) {\n if (x.intger == 359) b.b = false;\n if (x.intger == 0) b.b = true;\n if (b.b) x.intger++;\n if (!b.b) x.intger--;\n }", "public void setPosition(float x, float y);", "@Override\r\n public void setOffset(long offset) {\n }", "public synchronized static void setInsideSecureLocation(boolean flag){\n editor.putBoolean(IN_REGION, flag);\n editor.commit();\n }", "public void setFlags(final Flags flags);", "Builder addPosition(Integer value);", "@Override\r\n\t\tpublic void setAO(int address, int value) throws IOServiceException {\n\r\n\t\t}", "public void assignAddingLocation(final boolean val) {\n addingLocation = val;\n }", "public void changeIfFlagZone()\r\n\t{\r\n\t\tlocInFlagZone = !locInFlagZone;\r\n\t}", "void set_marker_position (double p_position) {\n //\n // Ensure the specific value is legal.\n //\n double l_position = Range.clip\n (p_position , SERVO_MARKER_MIN\n , SERVO_MARKER_MAX); // Servo position is restricted to protect from mechanical damage\n\n\n\n //\n // Set the right value.\n //\n if (marker!= null)\n {\n marker.setPosition (l_position);\n }\n\n }", "public void setFlags(int flags) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 156, flags);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 124, flags);\n\t\t}\n\t}", "public void setMark(int neighbour, boolean mark){\n\tedgMark[neighbour] = mark;\n }", "public void setOffline(int pos){\n }", "public void setPin(int pin);", "public void addFlagGlyph (Glyph flag)\r\n {\r\n flagGlyphs.add(flag);\r\n }", "public void set(int flag)\n {\n setWaitFlags( waitFlags | flag );\n }", "void flag(int position) {\n getTile(position).flag();\n if (getTile(position).isFlagged()) {\n mineLeft--;\n } else {\n mineLeft++;\n }\n\n setChanged();\n notifyObservers();\n }", "public void setPosition(Position pos);", "public void SetPosition(int i)\n {\n SetPosition(i, 1.0);\n }" ]
[ "0.69517744", "0.69372565", "0.674867", "0.6673099", "0.66590637", "0.65906763", "0.6565498", "0.6561406", "0.65519416", "0.6425871", "0.6408944", "0.6397444", "0.63938314", "0.6390726", "0.6386964", "0.63627535", "0.63627535", "0.6326448", "0.6247472", "0.6242195", "0.6228527", "0.6227829", "0.6193646", "0.619175", "0.6180602", "0.6177497", "0.6172386", "0.61654", "0.6132132", "0.6117579", "0.61163723", "0.61163723", "0.6110648", "0.61027354", "0.6058309", "0.6027706", "0.5951155", "0.5949737", "0.591863", "0.5913674", "0.59112346", "0.5910504", "0.58960915", "0.58315295", "0.5820326", "0.5816378", "0.58099824", "0.580966", "0.5806958", "0.58051133", "0.5802498", "0.5801703", "0.58000726", "0.5795357", "0.5779092", "0.57771826", "0.5762892", "0.57626325", "0.57552785", "0.57353747", "0.5731292", "0.57235616", "0.57130444", "0.5707053", "0.5693768", "0.5690584", "0.5689879", "0.56862634", "0.5684452", "0.5669198", "0.5663504", "0.56472254", "0.5636407", "0.5615042", "0.56022865", "0.55937773", "0.5591923", "0.5574219", "0.5573125", "0.55720764", "0.5567959", "0.55521196", "0.5549768", "0.55455977", "0.55398965", "0.55387574", "0.5535709", "0.55339164", "0.552965", "0.5518301", "0.5515398", "0.5508607", "0.5500776", "0.5497743", "0.5496082", "0.54954123", "0.54809177", "0.5468243", "0.5468197", "0.54678977", "0.54672736" ]
0.0
-1
Creates a new exception
public ParsingException(String message) { super(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Exception() {\n\t\t\tsuper();\n\t\t}", "private SmartServiceException createException(Throwable t, String key, Object... args) {\n return new SmartServiceException.Builder(getClass(), t).userMessage(key, args).build();\n }", "public Exception() {\n\tsuper();\n }", "SpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException createSpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException();", "public NSException() {\n\t\tsuper();\n\t\tthis.exception = new Exception();\n\t}", "protected static ExceptionSignalingNode createExceptionNode(final SourceSection ss) {\n CompilerDirectives.transferToInterpreter();\n return ExceptionSignalingNode.createNode(Symbols.symbolFor(\"TypeError\"), ss);\n }", "public Exception(String s) {\n\tsuper(s);\n }", "public EmailException()\n {\n super();\n }", "public CIMException() {\n\t\tthis((String) null, (Object[]) null);\n\t}", "public HttpException() {\n }", "public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }", "MyException(String str)\n {\n //parametrize constructor\n super(str);\n }", "public IllegalArgumentException buildException() {\n return this.buildException(null);\n }", "public SMSLibException(Throwable originalE)\n/* 17: */ {\n/* 18:45 */ this.originalE = originalE;\n/* 19: */ }", "public static EntityServiceException create(final Throwable ex) throws EntityServiceException {\n if (ex instanceof EntityServiceException) {\n LOGGER.trace(\"create() - {}\", ex.getMessage());\n\n return (EntityServiceException) ex;\n } else {\n LOGGER.debug(\"create() - wrapping exception\", ex);\n\n return unwrap(ex);\n }\n }", "public OperationException() {\n super();\n }", "public TechnicalException() {\r\n }", "public MyException(String message)\n { super(message); }", "public BusinessObjectException(Exception e) {\r\n super( \"\" + e );\r\n }", "public SMSLibException() {}", "public static BillingServiceException createException(URISyntaxException e, FlowName flowName, String queueName) {\r\n return BillingServiceException.createBugDisturbance(\"Azure problem for integration \" + flowName + \" azure queue: \" +\r\n queueName + \" URISyntaxException towards Azure. Input: \" + e.getInput() +\r\n \" Reason: \" + e.getReason() + \" Message: \" + e.getMessage());\r\n }", "public SMSLibException(String errorMessage, Throwable originalE)\n/* 22: */ {\n/* 23:50 */ super(errorMessage);\n/* 24:51 */ this.originalE = originalE;\n/* 25: */ }", "public PriceModelException() {\n\n }", "public NoTraceOntimizeJEEException() {\r\n this((String) null);\r\n }", "public JavaException()\r\n\t{\r\n\t\tsuper();\r\n\t}", "public OLMSException() {\r\n super();\r\n }", "public AditoGitException(Exception pE)\n {\n super(pE);\n }", "public UnmatchedException(){\r\n\r\n\t}", "public Error() {\n }", "public OperationFailedException(String message, Exception causeOfException){\n super(message, causeOfException);\n }", "public void testApplicationsManagerExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n ApplicationsManagerException ce = new ApplicationsManagerException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", ce.getMessage());\n assertEquals(\"cause is incorrect.\", e, ce.getCause());\n }", "protected abstract SVGException createSVGException(short type, String key, Object[] args);", "public static BillingServiceException createException(InvalidKeyException e, FlowName flowName, String queueName) {\r\n return BillingServiceException.createBugDisturbance(\"Azure problem for integration \" + flowName + \" azure queue: \" +\r\n queueName + \" InvalidKeyException towards Azure: \" + e.getMessage());\r\n }", "public TypeException() {\n }", "public TeWeinigGeldException(Exception e) {this.e = e;}", "@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause());\n }", "public ViaturaExistenteException(){\n super();\n }", "public void testPersistenceExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n PersistenceException pe = new PersistenceException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", pe.getMessage());\n assertEquals(\"cause is incorrect.\", e, pe.getCause());\n }", "public QueryException() {\n\n }", "public EmailException(String msg)\n {\n super(msg);\n }", "public void testConfigurationExceptionCtor2_Exception() {\n Throwable cause = new Exception();\n\n // create a exception instance for test.\n test = new ConfigurationException(TEST_MESSAGE, cause);\n\n // check null here.\n assertNotNull(\"Create ConfigurationException failed.\", test);\n\n // check the type here.\n assertTrue(\"The ConfigurationException should extend from ReviewManagementException.\",\n test instanceof ReviewManagementException);\n\n // check error message and cause here.\n assertNotNull(\"Error message expected.\", test.getMessage());\n assertEquals(\"Equal inner cause expected.\", cause, test.getCause());\n }", "public Exception(String message) {\n\t\t\tsuper(message);\n\t\t}", "public ScheduleException() {\r\n }", "public MyException(String message) {\r\n\t\tsuper(message);\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "com.palantir.paxos.persistence.generated.PaxosPersistence.ExceptionProto getException();", "public BusinessObjectException() {\r\n super();\r\n }", "public XDBBaseException() {\n }", "public static TypeReference newExceptionReference(int exceptionIndex) {\n/* 282 */ return new TypeReference(0x17000000 | exceptionIndex << 8);\n/* */ }", "public AditoGitException(String pMessage, Exception pE)\n {\n super(pMessage, pE);\n }", "public BaseException(String message) {\n super(message);\n setErrorCode();\n }", "public void testCtor_ProjectConfigurationException() {\n System.setProperty(\"exception\", \"ProjectConfigurationException\");\n try {\n new AddActionStateAction(state, activityGraph, manager);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n } finally {\n System.clearProperty(\"exception\");\n }\n }", "protected CustomException getException(int code, String message, Object... objects) {\n return new CustomException(code, String.format(message, objects));\n }", "public SMSLibException(String errorMessage)\n/* 10: */ {\n/* 11:34 */ super(errorMessage);\n\n/* 12: */ }", "public ElFicheroNoExisteException() {\n }", "public ExceptionBase( ExceptionType exceptionType ) {\n\t\tsuper();\n\t\texceptionsCatching( exceptionType );\n\t}", "static private ArithmeticException exception(String exp, int ofs, String txt) {\r\n return new ArithmeticException(txt+\" at offset \"+ofs+\" in expression \\\"\"+exp+\"\\\"\");\r\n }", "public StockException() {\r\n\t\tsuper();\r\n\t}", "static EnigmaException error(String msgFormat, Object... arguments) {\n return new EnigmaException(String.format(msgFormat, arguments));\n }", "private ModelValidationException constructClassException (String className, \n\t\tObject relatedField, String keyBase)\n\t{\n\t\treturn constructClassException(ModelValidationException.ERROR, \n\t\t\tclassName, relatedField, keyBase);\n\t}", "static GitletException error(String msgFormat, Object... arguments) {\n return new GitletException(String.format(msgFormat, arguments));\n }", "public PizzaException() {\n super(\"That pizza has been eaten.\");\n }", "public static BillingServiceException createException(StorageException e, FlowName flowName, String queueName) {\r\n String errorMessage = getStorageExceptionString(e, flowName, queueName);\r\n return BillingServiceException.createIntegrationDisturbance(errorMessage, e.getHttpStatusCode());\r\n }", "public TrafficspacesAPIException() {\n \tthis(null, DEFAULT_MESSAGE);\n }", "public void testStorageException()\n {\n // 1. Test StorageException(aMsg) constructor.\n String expMessage = \"Test Message!\";\n StorageException exp = new StorageException(expMessage);\n assertTrue(\"Invalid message\", expMessage.equals(exp.getMessage()));\n\n // 2. Test StorageException(aMsg, rootExp) constructor.\n String rootMessage = \"Root Message!\";\n Exception rootExp = new Exception(rootMessage);\n\n // 3. Test getRootException return root exception.\n exp = new StorageException(expMessage, rootExp);\n assertTrue(\"Invalid message\", expMessage.equals(exp.getMessage()));\n\n Exception rootThrowable = (Exception) exp.getRootException();\n assertTrue(\"Invalid root message\",\n rootMessage.equals(rootThrowable.getMessage()));\n }", "public EntityAlreadyExistsException() {\n\t\tsuper(\"exception.entity.already.exists\");\n\t}", "public ResourceException(Exception exception) {\r\n super(exception);\r\n }", "public JsonParseException _constructError(String msg) {\n return new JsonParseException(this, msg).withRequestPayload(this._requestPayload);\n }", "public MyMoneyException() {\r\n\t\tsuper();\r\n\t}", "public KillException() {}", "GitletException() {\n super();\n }", "public void testConstructorWithMessageAndCauseAndRejectReason() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message, cause, reason);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", cause, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", reason, exception.getProblemRejectReason());\r\n }", "public GameBuyException() {\n }", "public ExceptionDate(){\n\t\tsuper();\n\t}", "public SmppException(Exception e) {\n\t\tsuper(e);\n\t}", "public SearchException() {\n }", "public ItemInvalidoException() {\r\n }", "public ShopingCartException() {\n\tsuper(); // call superclass constructor\n\tmistake = \"unknown\";\n }", "public MRFException() {\n\t\tsuper();\n\t}", "Constructor<? extends RefException> getExceptionConstructor(\n String qualifiedExceptionName,\n String qualifiedPackageName\n );", "public EmployeeNotFoundException() {\n super();\n }", "public ExcelImportException() {\r\n\t\tsuper();\r\n\t}", "public CalculadoraException() {\r\n }", "public MyException(){\r\n super(\"Loi sai nhap du lieu!!!!\");// super là nói về lớp cha- đại diện đối tượng cha\r\n }", "public SmppException() {\n\t\tsuper();\n\t}", "public void testActivityObjectCloneExceptionString() {\n test = new ActivityObjectCloneException(\"test\");\n assertNotNull(\"Fails to create exception.\", test);\n assertEquals(\"Wrong message.\", \"test\", test.getMessage());\n }", "private ErrorFactory() {\r\n\t}", "public AssertionFailedException(Exception ex) {\n/* 63 */ super(Messages.getString(\"AssertionFailedException.0\") + ex.toString() + Messages.getString(\"AssertionFailedException.1\"));\n/* */ }", "public EmployeeException(String message) {\n\t\tsuper(message);\n\t}", "public TypeException(String msg, Throwable ex) {\n super(msg,ex);\n }", "public ResourceException(String reason, Exception exception) {\r\n super(reason, exception);\r\n }", "public abstract RuntimeException getException(String message);", "public PropagationException() {\n }", "ThrowingEvent createThrowingEvent();", "public notHumanBeingException(String message){// Message parameted created\n super(message);\n \n }", "GitletException(String msg) {\n super(msg);\n }", "public Neo4jException(String message) {\n this(\"N/A\", message);\n }", "public void testConstructorWithMessageAndCause() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message, cause);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", cause, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", null, exception.getProblemRejectReason());\r\n }", "public Win32Exception(HRESULT hr) {\n this(W32Errors.HRESULT_CODE(hr.intValue()), hr);\n }", "public DynamicDeckDynamoException() {\n }", "public AuthException()\n {\n\n }", "public RDISException(String msg) {\n\t\tthis(msg, null);\n\t}" ]
[ "0.6775678", "0.67424357", "0.67213213", "0.6681375", "0.6514403", "0.6461323", "0.6441448", "0.63620645", "0.6346027", "0.6312241", "0.6311737", "0.63012713", "0.6277042", "0.62476027", "0.6235989", "0.6193121", "0.6166223", "0.6149534", "0.6136422", "0.61253643", "0.61209416", "0.61195093", "0.60940254", "0.6093302", "0.60826033", "0.6079011", "0.6073732", "0.6063639", "0.6059872", "0.60449517", "0.6044763", "0.6042839", "0.6042432", "0.6041092", "0.60121644", "0.6008802", "0.59897685", "0.5988291", "0.5985837", "0.59694165", "0.59659547", "0.5954616", "0.59519774", "0.5950644", "0.5946173", "0.59443086", "0.59376836", "0.5920989", "0.59138197", "0.5912839", "0.59084415", "0.5907037", "0.5896092", "0.5891177", "0.58876234", "0.5881877", "0.58785534", "0.58783", "0.5873199", "0.5872947", "0.5868939", "0.58550465", "0.58530307", "0.58527905", "0.5851346", "0.5848029", "0.5845966", "0.5844181", "0.58441174", "0.5840742", "0.5840472", "0.5837998", "0.58309674", "0.581571", "0.58124244", "0.5807031", "0.5800207", "0.57978016", "0.5793015", "0.5791091", "0.57910013", "0.57904", "0.57892776", "0.5768786", "0.5767873", "0.5765857", "0.57636845", "0.5761271", "0.57580674", "0.5751949", "0.574893", "0.5747454", "0.5736723", "0.57330376", "0.5731644", "0.5723705", "0.5717", "0.57168686", "0.5716847", "0.5713196", "0.57102245" ]
0.0
-1
nobody gets to use this private constructor
private FXHome() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Rekenhulp()\n\t{\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private TMCourse() {\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private Instantiation(){}", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "private MApi() {}", "private SystemInfo() {\r\n // forbid object construction \r\n }", "protected abstract void construct();", "private SingleObject()\r\n {\r\n }", "Reproducible newInstance();", "private Marinator() {\n }", "private Marinator() {\n }", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "private Util()\n {\n // Empty default ctor, defined to override access scope.\n }", "private CheckingTools() {\r\n super();\r\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Pitonyak_09_02() {\r\n }", "private Converter()\n\t{\n\t\tsuper();\n\t}", "private Utils() {\n\t}", "private Utils() {\n\t}", "private Supervisor() {\r\n\t}", "private LOCFacade() {\r\n\r\n\t}", "private XmlStreamFactory()\n {\n /*\n * nothing to do\n */\n }", "private ChainingMethods() {\n // private constructor\n\n }", "private BookReader() {\n\t}", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "private void __sep__Constructors__() {}", "protected Doodler() {\n\t}", "private Aliyun() {\n\t\tsuper();\n\t}", "private MappingReader() {\n\t}", "private QcTestRunner()\n\t{\n\t\t// To prevent external instantiation of this class\n\t}", "private WebXmlIo()\n {\n // Voluntarily empty constructor as utility classes should not have a public or default\n // constructor\n }", "public CSSTidier() {\n\t}", "private XMLUtils()\r\n\t{\r\n\t}", "private OMUtil() { }", "private stendhal() {\n\t}", "private AcceleoLibrariesEclipseUtil() {\n \t\t// hides constructor\n \t}", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "private Mth()\n\t{\n\t\tthrow new AssertionError();\n\t}", "protected Problem() {/* intentionally empty block */}", "private JsonUtils() {\n\t\tsuper();\n\t}", "private Ex() {\n }", "private ServiceListingList() {\n //This Exists to defeat instantiation\n super();\n }", "private XMLUtil() {\n\t}", "private GeoUtil()\n\t{\n\t}", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private Singleton()\n\t\t{\n\t\t}", "private FactoryCacheValet() {\n\t\tsuper();\n\t}", "private FlexOrderTransformer() {\n // constructor preventing instantiation.\n }", "public CyanSus() {\n\n }", "private HSBC() {\n\t\t\n\t\t\n\t}", "private Node() {\n\n }", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "private ObjectRepository() {\n\t}", "private Server()\n\t{\n\t}", "private SingleTon() {\n\t}", "private EagerlySinleton()\n\t{\n\t}", "private Cat() {\n\t\t\n\t}", "private IndexBitmapObject() {\n\t}", "private StreamFactory()\n {\n /*\n * nothing to do\n */\n }", "private Source() {\n throw new AssertionError(\"This class should not be instantiated.\");\n }", "protected StreamParser()\n {\n }", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "private UtilsCache() {\n\t\tsuper();\n\t}", "protected VboUtil() {\n }", "private DarthSidious(){\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Pleasure() {\r\n\t\t}", "private WolUtil() {\n }", "private Util() { }", "private ObjectFactory() { }", "private Ognl() {\n }", "private GraphFileManager() {\n\t}", "private CommonMethods() {\n }", "private Connection() {\n \n }", "@SuppressWarnings(\"unused\")\n private Booking() {\n }", "private Utility() {\n\t}", "private HttpClient() {\n\t}", "private ClinicFileLoader() {\n\t}", "private Verify(){\n\t\t// Private constructor to prevent instantiation\n\t}", "private Board() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// A private board constructor to ensure only one is created\n\t\tsuper();\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "private Terms(){\n\t\t //this prevents even the native class from calling this ctor as well :\n\t\t throw new AssertionError();\n\t\t }", "private ClientLoader() {\r\n }", "private FlowExecutorUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "@SuppressWarnings(\"unused\")\r\n private Rental() {\r\n }", "private ArticleMgr() {\r\n\r\n\t}", "public PSRelation()\n {\n }", "private PerksFactory() {\n\n\t}", "@Override\n protected void init() {\n }", "private FileUtil() {\n \t\tsuper();\n \t}", "public _355() {\n\n }", "private Infer() {\n\n }", "private SingleObject(){}", "private HardCodedCitations() {\n }", "protected void initialize() {}", "protected void initialize() {}", "private Utils() {}" ]
[ "0.79187787", "0.76670265", "0.7544505", "0.74673194", "0.74222845", "0.7405199", "0.7377963", "0.73666775", "0.7344542", "0.72804564", "0.7222781", "0.72120434", "0.71994704", "0.71972513", "0.71972513", "0.7161746", "0.7149003", "0.71215224", "0.7110203", "0.7081043", "0.7078239", "0.7073268", "0.7073268", "0.7068366", "0.7056423", "0.7043842", "0.70369995", "0.70334566", "0.70298874", "0.7025304", "0.70167536", "0.69896054", "0.6988218", "0.69841176", "0.69811773", "0.6978762", "0.6977806", "0.6974212", "0.6964241", "0.6954144", "0.69497573", "0.69438803", "0.693764", "0.6933838", "0.6928811", "0.6923616", "0.6923306", "0.6918303", "0.6916548", "0.69160277", "0.6913738", "0.69052124", "0.6904836", "0.6902729", "0.6897799", "0.6890932", "0.68898547", "0.68883264", "0.6887573", "0.6887232", "0.6887042", "0.68820983", "0.6880799", "0.6878422", "0.6878353", "0.68765783", "0.68699497", "0.68674684", "0.68664956", "0.68633133", "0.68632644", "0.6862403", "0.68621683", "0.68612325", "0.6859438", "0.6858965", "0.68587166", "0.6857111", "0.68566895", "0.68555003", "0.68524903", "0.6850254", "0.6848364", "0.68461764", "0.6844172", "0.68423957", "0.68363315", "0.6834337", "0.68340504", "0.68336165", "0.68296385", "0.68277556", "0.6826898", "0.68262875", "0.6821167", "0.68195426", "0.6808451", "0.68073297", "0.68012404", "0.68012404", "0.6800808" ]
0.0
-1
gets an FXConnection implementation with a connection to the named processor from the configured FXConnectionFactory
public static final FXConnection getFXConnection(String serviceName, String userName, String userCredential) throws FXException { return getConnectionFactory().getFXConnection(serviceName, userName, userCredential); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static final FXConnectionFactory getConnectionFactory()\n { \n if (_cFact == null) { \n init(); \n } \n return _cFact; \n }", "protected Connection getConnection() {\r\n\t\treturn getProcessor().getConnection();\r\n\t}", "protected IXConnection getConnection() {\n return eloCmisConnectionManager.getConnection(this.getCallContext());\n }", "@Override\n\tpublic JConnection getConnection() throws JRemoteException {\n\t\t\n\t\tDefaultJConnectionFactory jConnectionFactory = new DefaultJConnectionFactory();\n jConnectionFactory.setHost(_host);\n jConnectionFactory.setPort(_port);\n \n Properties properties = new Properties();\n properties.put(\"env.OFS_SOURCE\", _ofsSource); \n JConnection jConnection = jConnectionFactory.getConnection( _uid , _pass , properties);\n \n // Initialise the connection\n jConnection.call(\"JF.INITIALISE.CONNECTION\", null);\n return jConnection;\n\t}", "private RabbitMQConnectionFactory getConnectionFactory(RabbitMQOutTransportInfo transportInfo) {\n Hashtable<String, String> props = transportInfo.getProperties();\n RabbitMQConnectionFactory factory = rabbitMQConnectionFactoryManager.getConnectionFactory(props);\n return factory;\n }", "public ConnectionFactory getConnectionFactory() {\n return connectionFactory;\n }", "public Connection getConnection();", "public Connection getConnection();", "public Connection getConnection();", "ManagedConnectionFactory getManagedConnectionFactory()\n {\n return _mcf;\n }", "public Object createConnectionFactory(ConnectionManager cxManager)\n throws ResourceException {\n log.finest(\"createConnectionFactory()\");\n return new VertxConnectionFactoryImpl(this, cxManager);\n }", "public abstract Connection getConnection();", "<P> ConnectionService<P> getConnectionService();", "public static Connection getConnection(DSLContext context) {\n ConnectionProvider provider = context.configuration().connectionProvider();\n if (provider instanceof DefaultConnectionProvider) {\n return ((DefaultConnectionProvider) provider).acquire();\n } else {\n return null;\n }\n }", "public static Connection createConnection() {\n\t\treturn new FabricaDeConexoes().getConnection();\n\t}", "public\n Connection getConnection();", "private C4Client getClientFromConnectionController() {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"connection.fxml\"));\n try {\n loader.load();\n } catch (IOException error) {\n System.out.println(\"There is an error while passing the Socket between controllers: \" + error);\n }\n ConnectionController connection = loader.getController();\n // Getting the Socket Object\n return connection.getClient();\n }", "@Bean\n public ConnectionFactory connectionFactory(){\n ActiveMQConnectionFactory activeMQConnectionFactory = new ActiveMQConnectionFactory();\n activeMQConnectionFactory.setBrokerURL(brokerUrl);\n activeMQConnectionFactory.setUserName(brokerUsername);\n activeMQConnectionFactory.setPassword(brokerPassword);\n return activeMQConnectionFactory;\n }", "public String getConnection();", "@Bean\n ActiveMQConnectionFactory connectionFactory() {\n ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(BROKER_URL);\n return connectionFactory;\n }", "Connection createConnection();", "@Override\n public Connection getConnection() throws SQLException {\n\t\tif (transactionProvider == null)\n\t\t\treturn delegate.getConnection();\n\t\tif (xaConnection == null)\n\t\t\txaConnection = delegate.getXAConnection();\n\t\tenlistResource(xaConnection.getXAResource());\n\t\tConnection connection = xaConnection.getConnection();\n\t\treturn connection;\n }", "private synchronized Connection getConnection(String serverName)\n {\n if (configurationStoreConnection == null)\n {\n ConnectorConfigurationFactory connectorConfigurationFactory = new ConnectorConfigurationFactory();\n\n return connectorConfigurationFactory.getServerConfigConnection(serverName);\n }\n else\n {\n return configurationStoreConnection;\n }\n }", "public Connection getConnection(){\n try {\n return connectionFactory.getConnection(); // wird doch schon im Konstruktor von TodoListApp aufgerufen ???\n } catch (SQLException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }", "InstrumentedConnectionProvider getConnectionProvider();", "protected Connection getConnection () {\n \t\treturn connection;\n \t}", "void connect(FmqPool pool);", "public ConnectionConfig createConnection()\n {\n return _connectionConfig;\n }", "public Object createConnectionFactory() throws ResourceException {\n throw new ResourceException(\"Vert.x JCA adapter not supported in non-managed environment\");\n }", "private ConnectionFactoryDefinition loadConnectionFactory(XMLStreamReader reader) throws XMLStreamException {\n\n ConnectionFactoryDefinition connectionFactory = new ConnectionFactoryDefinition();\n\n connectionFactory.setName(reader.getAttributeValue(null, \"name\"));\n\n String create = reader.getAttributeValue(null, \"create\");\n if (create != null) {\n connectionFactory.setCreate(CreateOption.valueOf(create));\n }\n loadProperties(reader, connectionFactory, \"connectionFactory\");\n\n return connectionFactory;\n\n }", "public interface ConnectionFactory {\r\n\r\n /**\r\n * Creates a connection instance based on the given parameters.\r\n * \r\n * @param context\r\n * the context\r\n * @param <T>\r\n * the type of the objects that are handled by the connection.\r\n * @return the connection instance\r\n * @throws ConnectionBuildException\r\n * if creating the connection fails\r\n */\r\n public <T> Connection<T> createConnection( ConnectionContext<T> context ) throws ConnectionBuildException;\r\n\r\n}", "protected ConnectionListenerFactory getConnectionListenerFactory()\n {\n return clf;\n }", "public interface ConnectionFactory\r\n{\r\n /**\r\n * Create the ManagedConnection. \r\n * <b>Only used by ConnectionManager so do not call this.</b>\r\n * @param ec ExecutionContext that the connection is bound to during its lifecycle (if any)\r\n * @param transactionOptions the Transaction options this connection will be enlisted to, null if non existent\r\n * @return The ManagedConnection.\r\n */\r\n ManagedConnection createManagedConnection(ExecutionContext ec, Map<String, Object> transactionOptions);\r\n\r\n /**\r\n * Release any resources that have been allocated.\r\n */\r\n void close();\r\n\r\n /**\r\n * Type of resource that this ConnectionFactory represents. See ConnectionResourceType.\r\n * @return Resource type (\"JTA\", \"RESOURCE_LOCAL\")\r\n */\r\n String getResourceType();\r\n\r\n /**\r\n * Accessor for the resource name (e.g \"jdbc/tx\").\r\n * @return The resource name\r\n */\r\n String getResourceName();\r\n}", "public static Connection getConnection() {\n return singleInstance.createConnection();\n }", "public interface ConnectionFactory {\n\n public abstract Connection createConnection();\n\n}", "@Bean\n public ConnectionFactory connectionFactory() {\n CachingConnectionFactory connectionFactory = new CachingConnectionFactory(host); //org.springframework.amqp.rabbit.connection.connectionFactory\n connectionFactory.setUsername(username);\n connectionFactory.setPassword(password);\n connectionFactory.setPort(port);\n return connectionFactory;\n }", "InstrumentedConnection getConnection();", "private Connection getConnection(String signature) throws LateDeliverablesProcessingException {\r\n try {\r\n if (connectionName == null) {\r\n return this.dbConnectionFactory.createConnection();\r\n } else {\r\n return this.dbConnectionFactory.createConnection(connectionName);\r\n }\r\n } catch (DBConnectionException e) {\r\n throw Helper.logException(log, signature, new LateDeliverablesProcessingException(\r\n \"Fails to create database connection.\", e));\r\n }\r\n }", "public ManagedConnectionFactoryImpl getManagedConnectionFactory() {\n return this.mcf;\n }", "public ConnectionProvider getConnectionProvider() {\n\t\treturn requireStarted(connectionProvider);\n\t}", "protected Connection createConnectionFigure() {\n\t\treturn new SyncFigure();\n\t}", "String getConnection();", "String getConnection();", "String getConnection();", "String getConnection();", "@Bean()\n Mono<Connection> connectionMono(RabbitProperties rabbitProperties) {\n ConnectionFactory connectionFactory = new ConnectionFactory();\n connectionFactory.setHost(rabbitProperties.getHost());\n connectionFactory.setPort(rabbitProperties.getPort());\n connectionFactory.setUsername(rabbitProperties.getUsername());\n connectionFactory.setPassword(rabbitProperties.getPassword());\n return Mono.fromCallable(() -> connectionFactory.newConnection(\"reactor-rabbit\")).cache();\n }", "protected Connection getConnection() throws PersistenceException {\r\n try {\r\n if (this.connectionName == null) {\r\n return dbConnectionFactory.createConnection();\r\n } else {\r\n return dbConnectionFactory.createConnection(connectionName);\r\n }\r\n } catch (DBConnectionException e) {\r\n StringBuffer sb = new StringBuffer(\"failed to obtain connection:\");\r\n sb.append((connectionName == null) ? \"default connection\" : connectionName);\r\n throw new PersistenceException(sb.toString(), e);\r\n }\r\n }", "protected Connection getConnection() {\n String url = \"jdbc:oracle:thin:@localhost:32118:xe\";\n String username = \"JANWILLEM2\";\n String password = \"JANWILLEM2\";\n\n if (myConnection == null) {\n try {\n myConnection = DriverManager.getConnection(url, username, password);\n } catch (Exception exc) {\n exc.printStackTrace();\n }\n }\n\n return myConnection;\n }", "public Connection getConnection(){\r\n\t\treturn connection;\r\n\t}", "public ConnectionPoolDataSource createPoolDataSource(CConnection connection);", "public ConnectionPoolDataSource createPoolDataSource(CConnection connection);", "protected Connection createConnection() {\n Properties connectionProperties = new Properties();\n JdbcPropertyAdapter adapter = getPropertyAdapter(dbType, properties);\n adapter.getExtraProperties(connectionProperties);\n\n String url = translator.getUrl(properties);\n logger.info(\"Opening connection to: \" + url);\n Connection connection;\n try {\n connection = DriverManager.getConnection(url, connectionProperties);\n connection.setAutoCommit(false);\n } catch (SQLException x) {\n throw translator.translate(x);\n }\n return connection;\n }", "public ConnectionField getConnection() {\n \n\treturn connectionField;\n \n }", "private Connection getConn(){\n \n return new util.ConnectionPar().getConn();\n }", "protected Connection createConnectionFigure() {\r\n\t\treturn new ImplicitCallFigure();\r\n\t}", "Connection getConnection() {\n\t\treturn connection;\n\t}", "public Connection getConnection() {\n\t// register the JDBC driver\n\ttry {\n\t Class.forName(super.driver);\n\t} catch (ClassNotFoundException e) {\n\t e.printStackTrace();\n\t}\n \n\t// create a connection\n\tConnection connection = null;\n\ttry {\n\t connection = DriverManager.getConnection (super.jdbc_url,super.getu(), super.getp());\n\t} catch (SQLException e) {\n\t e.printStackTrace();\n\t}\n\treturn connection;\n }", "private Connection getConnection() {\n if (_connection != null) return _connection;\n\n Element ncElement = getNetcdfElement();\n \n //See if we can get the database connection from a JNDI resource.\n String jndi = ncElement.getAttributeValue(\"jndi\");\n if (jndi != null) {\n try {\n Context initCtx = new InitialContext();\n Context envCtx = (Context) initCtx.lookup(\"java:comp/env\");\n DataSource ds = (DataSource) envCtx.lookup(jndi);\n _connection = ds.getConnection();\n } catch (Exception e) {\n String msg = \"Failed to get database connection from JNDI: \" + jndi;\n _logger.error(msg, e);\n throw new TSSException(msg, e);\n }\n return _connection;\n }\n\n //Make the connection ourselves.\n String connectionString = ncElement.getAttributeValue(\"connectionString\");\n String dbUser = ncElement.getAttributeValue(\"dbUser\");\n String dbPassword = ncElement.getAttributeValue(\"dbPassword\");\n String jdbcDriver = ncElement.getAttributeValue(\"jdbcDriver\");\n \n try {\n Class.forName(jdbcDriver);\n _connection = DriverManager.getConnection(connectionString, dbUser, dbPassword);\n } catch (Exception e) {\n String msg = \"Failed to get database connection: \" + connectionString;\n _logger.error(msg, e);\n throw new TSSException(msg, e);\n } \n \n return _connection;\n }", "void createConnection();", "public IDatabaseConnection getConnection() {\n try {\n DatabaseConnection databaseConnection = new DatabaseConnection(getDataSource().getConnection());\n editConfig(databaseConnection.getConfig());\n return databaseConnection;\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public Connection getConnection() throws ResourceException\n {\n return (Connection)cm.allocateConnection(mcf, null);\n }", "public Connection getConnection(){\n try{\n if(connection == null || connection.isClosed()){\n connection = FabricaDeConexao.getConnection();\n return connection;\n } else return connection;\n } catch (SQLException e){throw new RuntimeException(e);}\n }", "public InputConnector getInputConnector(String connectorName);", "public Connection getConnection()\n\t{\n\t\treturn connection;\n\t}", "public IRemoteConnection getConnection() {\n \t\treturn fSelectedConnection;\n \t}", "@Override\n\tpublic SwimConnection createInstance() {\n\t\tSwimConnection connection = null;\n\t\t\n\t\tif (this.hasSpecification()) {\n\t\t\tif (this.getSpecification().getId().equals(Specification.CONNECTION_SWIM_SIMULATED_ID)) {\n\t\t\t\tSimulatedSwimConnectionProperties properties = (SimulatedSwimConnectionProperties) this.getSpecification().getProperties();\n\t\t\t\tconnection = new SimulatedSwimConnection(\n\t\t\t\t\t\tproperties.getResourceDirectory(),\n\t\t\t\t\t\tDuration.ofMillis(properties.getUpdatePeriod()),\n\t\t\t\t\t\tproperties.getUpdateProbability(),\n\t\t\t\t\t\tproperties.getUpdateQuantity());\n\t\t\t\tif (properties.getSubscribesAIXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.AIXM);\n\t\t\t\tif (properties.getSubscribesFIXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.FIXM);\n\t\t\t\tif (properties.getSubscribesWXXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.WXXM);\n\t\t\t\tif (properties.getSubscribesIWXXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.IWXXM);\n\t\t\t\tif (properties.getSubscribesAMXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.AMXM);\n\t\t\t} else if (this.getSpecification().getId().equals(Specification.CONNECTION_SWIM_LIVE_ID)) {\n\t\t\t\tLiveSwimConnectionProperties properties = (LiveSwimConnectionProperties) this.getSpecification().getProperties();\n\t\t\t\tconnection = new LiveSwimConnection();\n\t\t\t\t// TODO: set properties for live SWIM connection\n\t\t\t\tif (properties.getSubscribesAIXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.AIXM);\n\t\t\t\tif (properties.getSubscribesFIXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.FIXM);\n\t\t\t\tif (properties.getSubscribesWXXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.WXXM);\n\t\t\t\tif (properties.getSubscribesIWXXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.IWXXM);\n\t\t\t\tif (properties.getSubscribesAMXM())\n\t\t\t\t\tconnection.subscribe(SwimProtocol.AMXM);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn connection;\n\t}", "public static Connection getInstance (){\n\tString url =\"jdbc:informix-sqli://192.168.10.18:4526/teun0020:informixserver=aix2;DB_LOCALE=zh_tw.utf8;CLIENT_LOCALE=zh_tw.utf8;GL_USEGLU=1\";\r\n\tString username = \"srismapp\";\r\n\tString password =\"ris31123\";\r\n\tString driver = \"com.informix.jdbc.IfxDriver\";\t\r\n\tConnection conn=null;\r\n\ttry {\r\n\t Class.forName(driver);\r\n\t conn = DriverManager.getConnection(url, username, password);\r\n\t} catch (SQLException e) {\r\n\t e.printStackTrace();\r\n\t} catch (ClassNotFoundException e) {\r\n\t e.printStackTrace();\r\n\t}\r\n\treturn conn;\r\n }", "@Override\n public Connection getConnection(String user, String password) throws SQLException {\n\t\tif (transactionProvider == null)\n\t\t\treturn delegate.getConnection(user, password);\n\t\tif (xaConnection == null)\n\t\t\txaConnection = delegate.getXAConnection(user, password);\n\t\tenlistResource(xaConnection.getXAResource());\n\t\tConnection connection = xaConnection.getConnection();\n\t\treturn connection;\n }", "public String getConnection()\n {\n return this.connection;\n }", "@Override\n\tpublic IConnection execute(String mode) {\n\t\t\n \t\tIConnectionFactory factory = null;\n\t\tfactory = new FastBillConnectionFactory();\n \t\tIConnection connection = factory.createConnection();\n \t\treturn connection;\n \t\t\n\t}", "protected ConnectionProvider createConnectionProviderIfNotSupplied() {\n\t\tif (connectionProviderSupplier != null) {\n\t\t\treturn connectionProviderSupplier.get();\n\t\t}\n\t\treturn new CoreConnectionPool();\n\t}", "TopicConnection getJMSTopicConnection();", "abstract public void openConnection();", "public Connection getConnection(ConnectionConfig config) throws IOException {\n return connectionManagers.computeIfAbsent(config, connectionManagerFactoryFunction)\n .getConnection();\n }", "public GcJdbcConnectionBean connectionBean() throws SQLException;", "@Override\n\tpublic Connection getConnection() throws SQLException {\n\t\tConnection conn;\n\t\tconn = ConnectionFactory.getInstance().getConnection();\n\t\treturn conn;\n\t}", "public static ConnectionFactory getInstance() {\n if (_instance == null) {\n synchronized (ConnectionFactory.class) {\n if (_instance == null) {\n _instance = new ConnectionFactory();\n }\n }\n }\n return _instance;\n }", "public IConnection getConnection () { \n\t\treturn connection;\n\t}", "public Connection getConnection() {\n java.sql.Connection connection = null;\n try {\n connection = DriverManager.getConnection(\n \"jdbc:postgresql://cslvm74.csc.calpoly.edu:5432/bfung\", \"postgres\",\n \"\");\n } catch (SQLException e) {\n System.out.println(\"Connection Failed! Check output console\");\n e.printStackTrace();\n return null;\n }\n return connection;\n }", "DuplexConnection getDuplex(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, \r\n WsConfigurationException;", "protected Connection getConnection() {\n return con;\n }", "@Override\n\tpublic Connection connect(String arg0, Properties arg1) throws SQLException {\n\t\t\n\t\treturn new connection(arg0,arg1);\n\t}", "protected IPhynixxConnectionProxy getObservableProxy() {\n\t\t\treturn null;\r\n\t\t}", "public JupiterConnector getConnector(@Nullable String name) {\n if (Strings.isEmpty(name) || DEFAULT_NAME.equals(name)) {\n return getDefault();\n }\n\n return new JupiterConnector(this,\n name,\n redis.getPool(name),\n fallbackPools.computeIfAbsent(name, this::fetchFallbackPool));\n }", "public Connection getConnection() {\r\n return connection;\r\n }", "public Connection getConnection() {\r\n return connection;\r\n }", "public Connection getConnection() {\r\n try {\r\n Class.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\r\n String url = \"jdbc:sqlserver://localhost:1433;databaseName=NMCNPM;user=sa;password=12345\";\r\n// Class.forName(resourceBundle.getString(\"driverName\"));\r\n// String url = resourceBundle.getString(\"url\");\r\n Connection connection = DriverManager.getConnection(url);\r\n return connection;\r\n } catch (SQLException | ClassNotFoundException e) {\r\n return null;\r\n }\r\n }", "private Connection getConnection() throws SQLException { //gets and returns a connection to the database at the file path specified when the object was instantiated\n return DriverManager.getConnection(\"jdbc:sqlite:\" + databasePath); //returns the connection to the specified database\n }", "public Connection connection()\n {\n String host = main.getConfig().getString(\"db.host\");\n int port = main.getConfig().getInt(\"db.port\");\n String user = main.getConfig().getString(\"db.user\");\n String password = main.getConfig().getString(\"db.password\");\n String db = main.getConfig().getString(\"db.db\");\n\n MysqlDataSource dataSource = new MysqlDataSource();\n dataSource.setServerName(host);\n dataSource.setPort(port);\n dataSource.setUser(user);\n if (password != null ) dataSource.setPassword(password);\n dataSource.setDatabaseName(db);\n Connection connection = null;\n try\n {\n connection = dataSource.getConnection();\n }\n catch (SQLException sqlException)\n {\n sqlException.printStackTrace();\n }\n return connection;\n }", "public XATopicConnection createXATopicConnection(String userName, String password) throws JMSException {\n XATopicConnectionImpl qc = new XATopicConnectionImpl(userName == null ? \"anonymous\" : userName, password, createReconnector());\n qc.assignClientId(clientId);\n qc.setSmqpProducerReplyInterval(smqpProducerReplyInterval);\n qc.setSmqpConsumerCacheSize(smqpConsumerCacheSize);\n qc.setJmsDeliveryMode(jmsDeliveryMode);\n qc.setJmsPriority(jmsPriority);\n qc.setJmsTTL(jmsTTL);\n qc.setJmsMessageIdEnabled(jmsMessageIdEnabled);\n qc.setJmsMessageTimestampEnabled(jmsMessageTimestampEnabled);\n qc.setUseThreadContextCL(useThreadContextCL);\n qc.setDuplicateMessageDetection(duplicateMessageDetection);\n qc.setDuplicateBacklogSize(duplicateBacklogSize);\n if (keepaliveInterval > 0)\n qc.startKeepAlive(keepaliveInterval);\n\n return (qc);\n }", "public Connection getConnection(){\n\t\tif(connection == null){\r\n\t\t\tinitConnection();\r\n\t\t}\r\n\t\treturn connection;\r\n\t}", "private Connection getConnection() throws SQLException, ClassNotFoundException {\n return connectionBuilder.getConnection();\n }", "public Connection getConnection() {\n return connection;\n }", "public String getConnectionName() {\n return connectionName;\r\n }", "public java.sql.Connection connect(String jndiName){\n\t InitialContext ctx = null;\n\t javax.sql.DataSource ds = null;\n\t java.sql.Connection conn = null;\n\t \n\t\ttry {\n\t\t\tctx = new InitialContext();\n\t\t\t\n\t\t\tif(jndiName.equalsIgnoreCase(\"jndi_crm\")){\n\t\t\t\tds = (DataSource) ctx.lookup(\"java:\"+this.jndiBIB);\n\t\t\t}\n\t\t} catch (NamingException e) {\n\t\t\t\n\t\t\te.getMessage();\n\t\t\te.printStackTrace();\n\t\t}\t\t\t\n\t\ttry {\n\t\t\tconn= ds.getConnection();\n\t\t} catch (SQLException e) {\n\t\t\te.getMessage();\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.connection = conn;\n\t\t\n\t\treturn conn;\n\t}", "public static Connection getConnection() {\n \t\treturn connPool.getConnection();\n \t}", "public SwimConnectionFactory() {\n\t\tsuper();\n\t}", "public DataSource getDataSource(CConnection connection)\n\t{\n\t\t//throw new UnsupportedOperationException(\"Not supported/implemented\");\n\t\tif (m_ds != null)\n\t\t\treturn m_ds;\n\t\t\n\t\t//org.postgresql.ds.PGPoolingDataSource ds = new org.postgresql.ds.PGPoolingDataSource();\n\t\torg.postgresql.jdbc3.Jdbc3PoolingDataSource ds = new org.postgresql.jdbc3.Jdbc3PoolingDataSource();\n\t\tds.setDataSourceName(\"CompiereDS\");\n\t\tds.setServerName(connection.getDbHost());\n\t\tds.setDatabaseName(connection.getDbName());\n\t\tds.setUser(connection.getDbUid());\n\t\tds.setPassword(connection.getDbPwd());\n\t\tds.setPortNumber(connection.getDbPort());\n\t\tds.setMaxConnections(50);\n\t\tds.setInitialConnections(20);\n\t\t\n\t\t//new InitialContext().rebind(\"DataSource\", source);\t\t\n\t\tm_ds = ds;\n\t\t\n\t\treturn m_ds;\n\t}", "protected Connection createConnectionFigure() {\n\t\treturn new ResponseFigure();\n\t}", "Browser create(ConnectionFactory connectionFactory) {\n return new BrowserImpl(connectionFactory);\n }" ]
[ "0.6725307", "0.61682904", "0.59663", "0.5945993", "0.5936051", "0.5931429", "0.5670541", "0.5670541", "0.5670541", "0.56060725", "0.55960935", "0.5578618", "0.55755454", "0.55640966", "0.5550036", "0.55430853", "0.5523572", "0.5511791", "0.5494721", "0.5487368", "0.54864854", "0.54814875", "0.5479797", "0.54628927", "0.5456866", "0.5438251", "0.5433443", "0.5432979", "0.54279786", "0.54058594", "0.5389662", "0.53816074", "0.537744", "0.5366829", "0.5311299", "0.5281367", "0.5275106", "0.5275045", "0.52689415", "0.5266508", "0.52571255", "0.5240351", "0.5240351", "0.5240351", "0.5240351", "0.5219816", "0.5218204", "0.51953125", "0.5191123", "0.51907", "0.51907", "0.5180175", "0.5178159", "0.5176685", "0.5158008", "0.51554126", "0.5154482", "0.51343274", "0.51273006", "0.5126764", "0.51056993", "0.50954866", "0.50916797", "0.50783455", "0.5067205", "0.5064527", "0.5061064", "0.5060682", "0.50573826", "0.5047522", "0.50378895", "0.50306934", "0.50284094", "0.5027803", "0.50227404", "0.5020292", "0.50160885", "0.50125784", "0.5012541", "0.5010508", "0.5007749", "0.5002331", "0.49943736", "0.49898794", "0.49888074", "0.49888074", "0.4984756", "0.49781033", "0.49780676", "0.49777183", "0.49725777", "0.49709958", "0.49690932", "0.49681625", "0.49607375", "0.49597082", "0.49560753", "0.49505118", "0.49446487", "0.49413577" ]
0.554879
15
obtain the FX Processor, configured through properties for the given name from the system's FXService
public static final XProcessor getXProcessor(String svcName) { return getConnectionFactory().getXProcessor(svcName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FeatureProcessor getFeatureProcessor(String name) {\n\treturn (FeatureProcessor) featureProcessors.get(name);\n }", "private ObjectName getXsltProcessorName() throws javax.management.MalformedObjectNameException {\n return new ObjectName(\"Server:name=XSLTProcessor\");\n }", "public abstract Parts getProcessor();", "public String getMessageProcessor(String name) throws AxisFault {\n SynapseConfiguration configuration = getSynapseConfiguration();\n\n assert configuration != null;\n MessageProcessor processor = configuration.getMessageProcessors().get(name);\n String xml = null;\n if (processor != null) {\n xml = MessageProcessorSerializer.serializeMessageProcessor(null, processor).toString();\n } else {\n handleException(log, \"Message Processor \" + name + \" does not exist\", null);\n }\n\n return xml;\n\n }", "public abstract ImportProcessor getProcessor(String entityName) \n\t\t\tthrows ErrorException;", "public String getPROMISSORY_FX_TYPE() {\r\n return PROMISSORY_FX_TYPE;\r\n }", "protected abstract Object createProcessBean(Name name);", "public String getClassName(String name) throws AxisFault {\n\n MessageProcessor processorImpl = getMessageProcessorImpl(name);\n\n if (processorImpl != null) {\n return processorImpl.getClass().getName();\n } else {\n handleException(log, \"Message Processor \" + name + \" does not exist !!!\", null);\n }\n\n //This code block will never reach as handleException method will always returns a Exception\n return null;\n }", "String getProperty(String name);", "java.lang.String getProcessor(int index);", "static synchronized RequestProcessor getSelectionProcessor() {\n if (selectionProcessor == null) {\n selectionProcessor = new RequestProcessor(\"ExplorerManager-selection\"); //NOI18N\n }\n\n return selectionProcessor;\n }", "public String getProperty(String name);", "Object getProperty(String name);", "public Processor getProcessor(PaymentType paymentType) {\n switch (paymentType) {\n case WECHATPAY:\n return wechatPayProcessor();\n default:\n throw new EarthException(\"Not supported yet!\");\n }\n }", "public String runtimeProperty(String name) {\n if (_properties == null) {\n return null;\n }\n return _properties.get(name);\n }", "public String getFXPrefix() {\n return _fxPrefix;\n }", "public String getProperty(JPPFSystemInformation info, String name)\n\t{\n\t\tTypedProperties[] propsArray = { info.getJppf(), info.getSystem(), info.getEnv(), info.getNetwork(), info.getRuntime(), info.getStorage() };\n\t\tfor (TypedProperties props: propsArray)\n\t\t{\n\t\t\tString value = props.getString(name);\n\t\t\tif (value != null) return value;\n\t\t}\n\t\treturn null;\n\t}", "public static final PikaxProcessor getInstance() {\n\t\tif (instance == null) {\n\t\t\treturn newInstance();\n\t\t}\n\t\treturn instance;\n\t}", "private ObjectName createXsltProcessor() throws javax.management.JMException {\n ObjectName objName = getXsltProcessorName();\n\n // make sure this mbean is not already registered...\n if (getMBeanServer().isRegistered(objName)) {\n // dunno how we got here...\n logger.info(\"XsltProcessor already registered as {}\", objName);\n return objName;\n }\n\n getMBeanServer().registerMBean(new mx4j.tools.adaptor.http.XSLTProcessor(), objName);\n return objName;\n }", "java.lang.String getProcessorpath(int index);", "void process(FxApplication fxApplication, Class<?> appClass);", "public Object getProperty(String name)\n {\n return ClassAnalyzer.getProperty(m_Source,name);\n }", "@Override\n public Object getProperty(String property) {\n for (Map.Entry<String, RequiredFunctionalExtension> requiredBehaviorEntry : myRequiredBehaviorById.entrySet()) {\n Object prop = requiredBehaviorEntry.getValue().getProperty(property);\n if (prop != null) {\n return prop;\n }\n }\n return null;\n }", "public EntryProcessor getProcessor()\n {\n return m_processor;\n }", "private XProcRuntime getRuntime()\n throws PackageException\n , ServlexException\n , TechnicalException\n {\n Processor saxon = myCalabash.getSaxon();\n XProcConfiguration xconf = new XProcConfiguration(saxon);\n // < temporary >\n temporary_FIX_BECAUSE_OF_CALABASH(xconf);\n XProcRuntime runtime = new SafeCloseXProcRuntime(xconf);\n // </ temporary >\n SaxonRepository repo = myCalabash.getRepository();\n PkgConfigurer configurer = new PkgConfigurer(runtime, repo.getUnderlyingRepo());\n runtime.setConfigurer(configurer);\n File profiling = myConfig.getProfileFile(\"xproc-profile\");\n if ( profiling != null ) {\n try {\n OutputStream stream = new FileOutputStream(profiling);\n Output out = new Output(stream);\n runtime.setProfile(out);\n }\n catch ( FileNotFoundException ex ) {\n // there is no point in stopping processing if the profile\n // file is not writable\n LOG.error(\"Error opening the profile file for Calabash: \" + profiling);\n }\n }\n // FIXME: Have to reconfigure the Saxon processor, because Calabash\n // install its own resolvers. Should be ok though, but double-check!\n ConfigHelper helper = new ConfigHelper(repo);\n helper.config(saxon.getUnderlyingConfiguration());\n return runtime;\n }", "public Object getProperty(String name) {\n\t\treturn beanMap.get(name);\n\t}", "String getProperty();", "String getProperty();", "String getProperty();", "public Processor getProcessor() throws Exception{\n\t\t\n\t\tsynchronized(lock){\n\t\t\tlock.wait();\n\t\t}\n\t\t\n\t\treturn processor;\n\t}", "public static ISoftwareArchitectureProductLineSynthesis getSAPLCreatorByName(String name) {\n\t\tIConfigurationElement[] adapterExtensionPoints = Platform.getExtensionRegistry()\n\t\t\t\t.getConfigurationElementsFor(SAPLRE_EXTENSIONPOINT);\n\t\tfor (IConfigurationElement saplaCreatorExtensionPoint : adapterExtensionPoints) {\n\t\t\tif (saplaCreatorExtensionPoint.getAttribute(\"name\").equals(name)) {\n\t\t\t\ttry {\n\t\t\t\t\treturn (ISoftwareArchitectureProductLineSynthesis) saplaCreatorExtensionPoint.createExecutableExtension(\"class\");\n\t\t\t\t} catch (CoreException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Properties getProcessorInfo()\n {\n Properties p = TraxWrapperUtils.getTraxInfo();\n p.put(\"traxwrapper.method\", \"systemId3\");\n p.put(\"traxwrapper.desc\", getDescription());\n return p;\n }", "public ProcessorFactory getGenerator()\r\n\t{\r\n\t\treturn generator;\r\n\t}", "public PathProcessor getPathProcessor() {\n return this.pathProcessor;\n }", "public String getProperty(String name){\r\n\t\treturn properties.getProperty(name);\r\n\t}", "String getProperty(String property);", "public Param getProcessingMethod();", "private String getProperty(\n String name\n ) {\n return properties.getProperty(\n String.format(\"%s%s\", propertiesPrefix, name)\n );\n }", "public NdexPropertyValuePair getPropertyByName(String name) {\n\t\tfor ( NdexPropertyValuePair p : _properties ) {\n\t\t\tif ( p.getPredicateString().equals(name)) {\n\t\t\t\treturn p;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Processor getProcessor(Node node) throws ScheduleException {\n if (!scheduledTasks.containsKey(node)) {\n throw new ScheduleException(\"Processor not defined for task: \" + node);\n }\n return scheduledTasks.get(node);\n }", "@Override\n public Object getProperty(String name) {\n name = name.toLowerCase();\n return this.properties.get(name);\n }", "public String getProperty();", "public static String getProductType(String name)\n {\n return PLUGIN_MAP.get(name) + \".\" + name;\n }", "@Override\r\n\tpublic String getProp(final String propName) {\n\t\treturn exec(new Callable<String>() {\r\n\t\t\t@Override\r\n\t\t\tpublic String call() throws Exception {\r\n\t\t\t\treturn System.getProperty(propName);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public Object getProperty(String name) {\n return properties.get(name);\n }", "public Form getPresentationForm(String name) throws ProcessManagerException {\r\n try {\r\n return processModel.getPresentationForm(name, currentRole, getLanguage());\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.UNKNOWN_ACTION\", e);\r\n }\r\n }", "public abstract ProductFactory getFactory();", "@Override\n public AbstractProcess getComponent(String name)\n {\n return components.get(name);\n }", "FlowDesignerFactory getFlowDesignerFactory();", "public boolean isActive(String processorName) throws AxisFault {\n SynapseConfiguration configuration = getSynapseConfiguration();\n boolean active = false;\n try {\n assert configuration != null;\n if (configuration.getMessageProcessors().containsKey(processorName)) {\n MessageProcessor processor =\n configuration.getMessageProcessors().get(processorName);\n\n if (processor instanceof ScheduledMessageForwardingProcessor) {\n MessageForwardingProcessorView view =\n ((ScheduledMessageForwardingProcessor) processor).getView();\n if(view != null){\n \tactive = view.isActive();\n }\n } else if (processor instanceof SamplingProcessor) {\n SamplingProcessorView view =\n ((SamplingProcessor) processor).getView();\n if(view != null){\n \tactive = view.isActive();\n }\n } else if (processor instanceof FailoverScheduledMessageForwardingProcessor) {\n FailoverMessageForwardingProcessorView view =\n ((FailoverScheduledMessageForwardingProcessor) processor).getView();\n if (view != null) {\n active = view.isActive();\n }\n }\n }\n } catch (Exception e) {\n log.error(\"Error While accessing MessageProcessor view \");\n throw new AxisFault(e.getMessage());\n }\n\n return active;\n }", "private ProcessingUnit producePU(String aClassName) throws Exception {\n Class currentClass = Class.forName(aClassName);\n // check to see if this is a subclass of aResourceClass\n ProcessingUnit pu = (ProcessingUnit) currentClass.newInstance();\n return pu;\n }", "public String getProperty( String name )\n {\n return getProperty( name, false );\n }", "public static String getProperty(String name) {\r\n return properties.getProperty(name);\r\n }", "public <T> T getProperty(String name) {\n return properties.get(name);\n }", "public Object getProperty(String name)\n {\n return m_props.get(name);\n }", "public static Object getFactory(String propName, Hashtable<?, ?> env, Context ctx, String classSuffix,\n String defaultPkgPrefix) throws NamingException {\n\n // Merge property with provider property and supplied default\n String facProp = getProperty(propName, env, ctx, true);\n if (facProp != null)\n facProp += (\":\" + defaultPkgPrefix);\n else\n facProp = defaultPkgPrefix;\n\n // Cache factory based on context class loader, class name, and\n // property val\n ClassLoader loader = helper.getContextClassLoader();\n String key = classSuffix + \" \" + facProp;\n\n Map<String, WeakReference<Object>> perLoaderCache = null;\n synchronized (urlFactoryCache) {\n perLoaderCache = urlFactoryCache.get(loader);\n if (perLoaderCache == null) {\n perLoaderCache = new HashMap<>(11);\n urlFactoryCache.put(loader, perLoaderCache);\n }\n }\n\n synchronized (perLoaderCache) {\n Object factory = null;\n\n WeakReference<Object> factoryRef = perLoaderCache.get(key);\n if (factoryRef == NO_FACTORY) {\n return null;\n } else if (factoryRef != null) {\n factory = factoryRef.get();\n if (factory != null) { // check if weak ref has been cleared\n return factory;\n }\n }\n\n // Not cached; find first factory and cache\n StringTokenizer parser = new StringTokenizer(facProp, \":\");\n String className;\n while (factory == null && parser.hasMoreTokens()) {\n className = parser.nextToken() + classSuffix;\n try {\n // System.out.println(\"loading \" + className);\n factory = helper.loadClass(className, loader).newInstance();\n } catch (InstantiationException e) {\n NamingException ne = new NamingException(\"Cannot instantiate \" + className);\n ne.setRootCause(e);\n throw ne;\n } catch (IllegalAccessException e) {\n NamingException ne = new NamingException(\"Cannot access \" + className);\n ne.setRootCause(e);\n throw ne;\n } catch (Exception e) {\n // ignore ClassNotFoundException, IllegalArgumentException,\n // etc.\n }\n }\n\n // Cache it.\n perLoaderCache.put(key, (factory != null) ? new WeakReference<>(factory) : NO_FACTORY);\n return factory;\n }\n }", "public Object getBean(String className) throws BaseException {\r\n\t\ttry {\r\n\t\t\tObject retVal = this.springApplicationContext.getBean(className);\r\n\t\t\tlogger.debug(\"returning an instance of \" + className);\r\n\t\t\treturn retVal;\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"failed retrieving bean from local factory\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new BaseException(e.getMessage(), e);\r\n\t\t}\r\n\t}", "public String getProperty(String propertyName) throws CoreException;", "public RuntimeFingerPrintGenerator getFpGenerator() {\n\t\treturn this.fpGenerator;\n\t}", "public static String getProperty(String name) {\n return propertyMap.getProperty(name);\n }", "public abstract String getServiceName();", "DeliverySystem getPseService();", "public interface ProcessorFactory {\n\n ProcessorFactory INSTANCE = new DefaultProcessorFactory();\n\n // TODO rbala Missing JavaDoc\n <TDef extends IElementDef> Processor<TDef> createProcessor(DynamicScopeContext context, TDef elementDef);\n\n}", "public void addFeatureProcessor(String name, FeatureProcessor fp) {\n\tfeatureProcessors.put(name, fp);\n }", "public Object getProperty(String name) {\n return null;\n }", "Felix getFramework()\n {\n return __m_felix;\n }", "public static String property(String name) {\n if (\"version\".equals(name)) {\n return \"1.0\";\n }\n\n if (\"conformance-level\".equals(name)) {\n // todo: read from config\n return \"basic\";\n }\n\n return null;\n }", "public PDDeviceNProcess getProcess() {\n/* 93 */ COSDictionary process = (COSDictionary)this.dictionary.getDictionaryObject(COSName.PROCESS);\n/* 94 */ if (process == null)\n/* */ {\n/* 96 */ return null;\n/* */ }\n/* 98 */ return new PDDeviceNProcess(process);\n/* */ }", "public interface TaskProcessFactory {\n\n TaskProcessor createTaskProcessor(String domain);\n}", "abstract Object getXMLProperty(XMLName name);", "private String _getPropFileName(String baseName) throws Exception\n {\n \t\n \tString hostName = getHostName();\n \n if (baseName == null || baseName.length() == 0)\n baseName = \"WsAggregatore\";\n else\n baseName = baseName.toLowerCase();\n\n String fileName = (baseName + (hostName.length() != 0 ? \"_\" + hostName.trim() : \"\") + \".properties\").toLowerCase();\n\n System.out.println(\"Initialization file: \" + fileName);\n\n return fileName;\n }", "private static String getJcoProperties(String name) {\n\t\tif (sapConfigProperties == null) {\n\t\t\tsapConfigProperties = new Properties();\n\t\t\ttry {\n\t\t\t\tsapConfigProperties.load(PorpertiesFile.class.getClassLoader()\t.getResourceAsStream(JCO_SAP_CONFIG));\n\t\t\t\t//return sapConfigProperties;\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tif (sapConfigProperties == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn sapConfigProperties.getProperty(name);\n\n\t}", "public abstract String getPropertyFile();", "public Object getProperty(String name) {\n if (properties != null) {\n return properties.get(name);\n }\n return null;\n }", "public <T> T getProperty(String name, Class<T> type);", "Object getProperty(String key);", "private void genericProcessorNameConfigurationTest(final String processorName)\n throws Exception {\n final ThreadLocal<Exception> processorsCreationException = new ThreadLocal<Exception>();\n try {\n final ConfigurableWroFilter filter = new ConfigurableWroFilter() {\n @Override\n protected WroManagerFactory newWroManagerFactory() {\n final WroManagerFactory original = super.newWroManagerFactory();\n try {\n original.create().getProcessorsFactory().getPreProcessors();\n } catch (final Exception e) {\n LOG.debug(\"caught exception: \", e);\n processorsCreationException.set(e);\n }\n return original;\n }\n \n @Override\n protected void onException(final Exception e, final HttpServletResponse response, final FilterChain chain) {\n throw WroRuntimeException.wrap(e);\n }\n };\n final Properties properties = new Properties();\n properties.setProperty(ConfigurableProcessorsFactory.PARAM_PRE_PROCESSORS, processorName);\n filter.setProperties(properties);\n filter.init(mockFilterConfig);\n } catch (final Exception e) {\n Assert.fail(\"Shouldn't fail with exception \" + e.getMessage());\n }\n if (processorsCreationException.get() != null) {\n processorsCreationException.get();\n throw processorsCreationException.get();\n }\n }", "java.lang.String getProperty();", "public String getFxSettings() {\r\n return \"{}\";\r\n }", "public String getProperty(String name)\n {\n return _propertyEntries.get(name);\n }", "public void launch(String stage) {\n\t\tnew JFXPanel();\n\t\tresult = new FutureTask(new Callable(){\n \n @Override\n public Object call() throws Exception {\n StagedProduction prod=(StagedProduction)Class.forName(stage).getConstructor().newInstance();\n return (prod.produce());\n }\n \n \n });\n Platform.runLater(result);\n\t}", "public static Object getService(String name, ServletContext sc) {\r\n\t\tAppContextWrapper acw = new ServletContextWrapper(sc);\r\n\t\tServiceFacade serviceFacade = new ServiceFacade();\r\n\t\tServiceFactory serviceFactory = serviceFacade.getServiceFactory(acw);\r\n\t\treturn serviceFactory.getService(name, acw);\r\n\t}", "@Override\n public String getName() {\n return \"LibVirt Service Factory\";\n }", "public String getProperty(String propertyName){\n if(templateConfigService==null){\n templateConfigService = getOsgiHelper().getOsgiServiceBySite(TemplateConfigService.class.getName(),\"food\");\n }\n String out = callAccessorOnConfigService(propertyName,templateConfigService);\n if(out !=null){\n return out;\n }\n //lazy load config service\n if(siteConfigService==null){\n siteConfigService = getOsgiHelper().getOsgiServiceBySite(SiteConfigService.class.getName(),\"food\");\n }\n return callAccessorOnConfigService(propertyName,siteConfigService);\n }", "private final StarService m75163p() {\n AbstractC32572g gVar = this.f53577b;\n AbstractC32607k kVar = f53576a[0];\n return (StarService) gVar.mo102348b();\n }", "public ProcessingStage getStage();", "String getProperty(String name, String defaultValue);", "public String getProperty(String name) {\n return this.getProperty(name, null);\n }", "public static void main(String[] args) {\n\t\t\n\t\tString proPath = \"service.properties\";\n\t\tProperties ps = new Properties();\n\t\tInputStream in = createServiceController.class.getClassLoader().getResourceAsStream(proPath);\n\t\ttry {\n\t\t\tps.load(in);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString path = ps.getProperty(\"path\");\n\t\tSystem.out.println(path);\n\n\t}", "public InternalServiceProcess getInternalServiceProcess();", "public String getFlavor() {\n \t\treturn flavor == null ? \"tooling\" : flavor; //$NON-NLS-1$\n \t}", "String getProperty(String key);", "String getProperty(String key);", "String getProperty(String key);", "private String getXmSAXlParserName() {\n\t SAXParser saxParser = getSAXParser();\n\t if (saxParser == null) {\n\t return \"Could not create an XML Parser\";\n\t }\n\n\t // check to what is in the classname\n\t String saxParserName = saxParser.getClass().getName();\n\t return saxParserName;\n\t }", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "public DebugProcessor(String name) {\r\n super();\r\n this.name = name;\r\n }", "@Override\n\tprotected String getServiceName() {\n\t\treturn \"tv.matchstick.fling.service.FLING\";\n\t}", "public abstract Process getProcess();" ]
[ "0.61118895", "0.55603236", "0.55279726", "0.54863393", "0.53961116", "0.53698456", "0.5359862", "0.53368366", "0.527931", "0.52783215", "0.52344316", "0.52284604", "0.51676714", "0.5154867", "0.5134624", "0.5132466", "0.5036255", "0.5036102", "0.50182205", "0.48906115", "0.48817804", "0.48748815", "0.4808161", "0.48067293", "0.47939292", "0.47578114", "0.47520453", "0.47520453", "0.47520453", "0.47424245", "0.4741918", "0.47405455", "0.4729975", "0.47283024", "0.47086126", "0.47017288", "0.46896878", "0.4665285", "0.46422586", "0.4630288", "0.46281782", "0.46144837", "0.46005502", "0.45930126", "0.45852363", "0.4577577", "0.4572947", "0.45687342", "0.4566397", "0.4563966", "0.45415175", "0.4532185", "0.45298642", "0.4500557", "0.4493175", "0.4491672", "0.44792145", "0.4474673", "0.44715568", "0.44648317", "0.44644615", "0.4463043", "0.44531956", "0.4444488", "0.4444029", "0.44398662", "0.44380853", "0.44368246", "0.44357896", "0.4428377", "0.44273657", "0.4426629", "0.44259515", "0.44214734", "0.4413371", "0.44105726", "0.44105142", "0.44048944", "0.44008628", "0.4400037", "0.43997467", "0.43974072", "0.4387463", "0.4383736", "0.4368514", "0.4367864", "0.43663734", "0.43652904", "0.4358522", "0.43561503", "0.43528503", "0.43490434", "0.43490434", "0.43490434", "0.43489426", "0.43428606", "0.43428606", "0.43348858", "0.43299073", "0.4328497" ]
0.5792085
1
obtain the system's FXService implementation
public static final FXConnectionFactory getConnectionFactory() { if (_cFact == null) { init(); } return _cFact; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getServiceName();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "go.micro.runtime.RuntimeOuterClass.Service getService();", "Felix getFramework()\n {\n return __m_felix;\n }", "protected abstract String getATiempoServiceName();", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "@Override\n public String getName() {\n return \"LibVirt Service Factory\";\n }", "public java.lang.String getServiceName(){\n return localServiceName;\n }", "Object getService(String serviceName);", "public String getServiceName();", "public static synchronized PlatformInit getService() {\n\t\tif(theService == null || theService.initialised)\n\t\t\treturn theService;\n\t\treturn null;\n\t}", "@Override\n\t\tpublic Service getService() {\n\t\t\treturn new Implementation1();\n\t\t}", "@Override\n\tprotected String getServiceName() {\n\t\treturn \"tv.matchstick.fling.service.FLING\";\n\t}", "java.lang.String getServiceName();", "java.lang.String getServiceName();", "public Object getService(String serviceName);", "String getServiceName();", "String getServiceName();", "public Object getService() {\n return service;\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic <T> T getService( Class<T> cls ) {\n\t\ttry {\n\t\t\treturn (T) mServiceLoader.getService( (Class<EffectContextService>) cls );\n\t\t} catch ( IllegalAccessException e ) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "SysmlFactory getSysmlFactory();", "private Service getService() {\n return service;\n }", "@Override\r\n\tpublic Object getServiceObject(IMyxName name) {\n\t\tif (name.equals(INTERFACE_NAME_IN_GUISYNCHRONIZER))\r\n\t\t\treturn this;\r\n\t\telse if(name.equals(INTERFACE_NAME_OUT_CLIENTSERVICE))\r\n\t\t\treturn clientService;\r\n\t\treturn null;\r\n\t}", "public String getService() {\n\t\treturn service.get();\n\t}", "public static TargetService getService() {\n FacesContext context = FacesContext.getCurrentInstance();\n return (TargetService) context.getApplication().evaluateExpressionGet(\n context, \"#{targetServiceNH}\", TargetService.class);\n }", "DeliverySystem getPseService();", "public boolean getUseGlobalService();", "public String getService(){\n\t\t return service;\n\t}", "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn MonthlyTradingLocalService.class.getName();\n\t}", "public java.lang.CharSequence getService() {\n return service;\n }", "ClassOfService getClassOfService();", "private static interface Service {}", "Fog_Services createFog_Services();", "public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }", "public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }", "public go.micro.runtime.RuntimeOuterClass.Service getService() {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n }", "String getServiceRef();", "@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}", "public java.lang.CharSequence getService() {\n return service;\n }", "Object getService(String serviceName, boolean checkExistence);", "public static XSingleComponentFactory __getComponentFactory(String sImplName)\n {\n System.out.println(\"DialogEventHandler::_getComponentFactory\");\n XSingleComponentFactory xFactory = null;\n\n if ( sImplName.equals( _DialogEventHandler.class.getName() ) )\n xFactory = Factory.createComponentFactory(_DialogEventHandler.class,\n _DialogEventHandler.getServiceNames());\n\n return xFactory;\n }", "public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }", "public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }", "public go.micro.runtime.RuntimeOuterClass.Service getService() {\n if (serviceBuilder_ == null) {\n return service_ == null ? go.micro.runtime.RuntimeOuterClass.Service.getDefaultInstance() : service_;\n } else {\n return serviceBuilder_.getMessage();\n }\n }", "public AbstractService getService() {\n return service;\n }", "private HttpService getHTTPService() {\n\t\tHttpService sobjHTTPService = null;\n\t\tServiceReference srefHTTPService = bc\n\t\t\t\t.getServiceReference(HttpService.class.getName());\n\n\t\tif (srefHTTPService != null) {\n\t\t\tsobjHTTPService = (HttpService) bc.getService(srefHTTPService);\n\t\t} else {\n\t\t\tlogger.error(\"Could not find a HTTP service\");\n\t\t\treturn null;\n\t\t}\n\n\t\tif (sobjHTTPService == null) {\n\t\t\tlogger.error(\"Could retrieve the HTTP service\");\n\t\t\treturn null;\n\t\t}\n\n\t\treturn sobjHTTPService;\n\t}", "public Class getServiceClass() { return serviceClass; }", "public java.lang.String getOSGiServiceIdentifier();", "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn CsclPollsChoiceLocalService.class.getName();\n\t}", "@Override\n\t\tpublic Service getService() {\n\t\t\treturn new Implementation2();\n\t\t}", "public String getOSGiServiceIdentifier();", "public static Object getService(String name, ServletContext sc) {\r\n\t\tAppContextWrapper acw = new ServletContextWrapper(sc);\r\n\t\tServiceFacade serviceFacade = new ServiceFacade();\r\n\t\tServiceFactory serviceFactory = serviceFacade.getServiceFactory(acw);\r\n\t\treturn serviceFactory.getService(name, acw);\r\n\t}", "ServicesPackage getServicesPackage();", "public static GeneralServices getInstance() {\r\n\t\treturn INSTANCE;\r\n\t}", "protected abstract String getAtiempoServiceNameEnReversa();", "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn LocalRichService.class.getName();\n\t}", "public Text getService() {\n return service;\n }", "public String getService() {\n return service;\n }", "public String getService() {\n return service;\n }", "public String getService() {\n return service;\n }", "public Service getService()\n {\n return (Service) getSource();\n }", "Service newService();", "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn WFMS_Position_AuditLocalService.class.getName();\n\t}", "protected Class getOnlineService () throws ClassNotFoundException {\n String className = config.getString(\"CLIENT_IMPL\");\n Class serviceClass = Class.forName(className);\n return serviceClass;\n }", "public static ServiceFactory getInstance(){\n\t\tif(instance == null)\n\t\t\tinstance = new ServiceFactory();\n\t\treturn instance;\n\t}", "public Service getService() {\n\t\treturn _service;\n\t}", "public ItfFocskiInscriptionManager getFocskiService() {\n\n logger.debug(\"***\");\n return this.focskiService;\n }", "@Override\n\tprotected BaseService getService() {\n\t\treturn null;\n\t}", "public String getServiceName(){\n return serviceName;\n }", "private PrivilegedLSAFactory retrieveLSAFactoryService(\n\t\t\tfinal BundleContext context) {\n\t\tlsaFactoryRef = context.getServiceReference(PrivilegedLSAFactory.class);\n\t\tif (lsaFactoryRef == null) {\n\t\t\tthrow new IllegalStateException(\"Cannot retrieve a reference to \"\n\t\t\t\t\t+ \"PrivilegedLSAFactory service.\");\n\t\t}\n\n\t\tif (lsaFactoryRef != null) {\n\t\t\tlog(\"LSA Factory ACQUIRED\");\n\t\t}\n\n\t\treturn context.getService(lsaFactoryRef);\n\t}", "@Override\n\tpublic java.lang.String getOSGiServiceIdentifier() {\n\t\treturn _weatherLocalService.getOSGiServiceIdentifier();\n\t}", "public Class getServiceInterface() {\n return null;\n }", "public abstract ProductFactory getFactory();", "public com.sohlman.liferay.foobar.service.FooService getFooService() {\n return fooService;\n }", "public TTSService getService() {\n return TTSService.this;\n }", "public Service getService() {\n return serviceInstance;\n }", "public static SelectorFactory getInstance() {\n return ServiceFactoryHolder.INSTANCE;\n }", "public Class getServiceClass()\n {\n return serviceClass;\n }", "@Override\n\tpublic java.lang.String getOSGiServiceIdentifier() {\n\t\treturn _clipLocalService.getOSGiServiceIdentifier();\n\t}", "public interface ReflectionService {\n\tstatic URL getViewsFromApp(String dest) {\n\t\tClassLoader loader = App.class.getClassLoader();\n\t\tString pathTo = AppUtil.loadProperty(loader, \"path.controllers\");\n\t\treturn App.class.getResource(pathTo + dest + \".fxml\");\n\t}\n\n\tstatic URL getResourceFromObject(String dest, Object c) {\n\t\treturn c.getClass().getResource(dest + \".fxml\");\n\t}\n}", "public String getServiceName()\r\n {\r\n return serviceName;\r\n }", "SwmlFactory getSwmlFactory();", "public java.lang.CharSequence getIMPLEMENTFX() {\n return IMPLEMENT_FX;\n }", "public interface ServiceFactory\n{\n /**\n * Retrieves a service instance. Is provided for extensibility beyond the core service\n * set.\n *\n * @param type The class name of the service to be retrieved.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n <T extends Service> T getService(Class<T> type)\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns a WorkflowService.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n WorkflowService getWorkflowService()\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns a UserService.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n UserService getUserService()\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns an AdministrationService.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n AdministrationService getAdministrationService()\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns a QueryService.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n QueryService getQueryService()\n throws ServiceNotAvailableException, LoginFailedException;\n\n /**\n * Returns a document management service.\n *\n * @throws ServiceNotAvailableException In case the (possible remote) service could not\n * be reached.\n * @throws LoginFailedException In case the authentication to the service fails.\n *\n * @return An instance of the requested service.\n */\n DocumentManagementService getDocumentManagementService()\n throws ServiceNotAvailableException, LoginFailedException;;\n\n /**\n * Provides explicit service resource management. May be used to release resources\n * associated with a service (like connection handles or locked instances) early.\n * <p />\n * Explicitly releasing a service may be help conserving resources but is not necessary\n * as the <code>ServiceFactory</code> provides automatic resource cleanup.\n *\n * @param service The service to be released.\n *\n * @see #close()\n */\n void release(Service service);\n\n /**\n * Releases all resources hold by the service factory and its single services. All\n * services retrieved from this ServiceFactory will be closed too.\n */\n void close();\n\n void setCredentials(Map credentials);\n\n void setProperties(Map properties);\n\n /**\n * Gets the user session id\n * @return the user session id - may be null\n */\n String getSessionId();\n}", "public JavafxTypesFactoryImpl() {\n\t\tsuper();\n\t}", "public String getServiceName()\n {\n return serviceName;\n }", "QRuntimeCoreFactory getRuntimeCoreFactory();", "public static JavafxTypesFactory init() {\n\t\ttry {\n\t\t\tJavafxTypesFactory theJavafxTypesFactory = (JavafxTypesFactory)EPackage.Registry.INSTANCE.getEFactory(JavafxTypesPackage.eNS_URI);\n\t\t\tif (theJavafxTypesFactory != null) {\n\t\t\t\treturn theJavafxTypesFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new JavafxTypesFactoryImpl();\n\t}", "public ServiceFactory getServiceFactory() {\n return serviceFactory;\n }", "public java.lang.CharSequence getIMPLEMENTFX() {\n return IMPLEMENT_FX;\n }", "MainService getService() {\n return MainService.this;\n }", "<V> V getService(String serviceName, Class<V> targetType, boolean checkExistence);", "@Override\n public ServiceName getServiceName() {\n return ServiceName.DARK_SKY;\n }", "public static ServiceFactory init() {\n\t\ttry {\n\t\t\tServiceFactory theServiceFactory = (ServiceFactory)EPackage.Registry.INSTANCE.getEFactory(ServicePackage.eNS_URI);\n\t\t\tif (theServiceFactory != null) {\n\t\t\t\treturn theServiceFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ServiceFactoryImpl();\n\t}", "private final StarService m75163p() {\n AbstractC32572g gVar = this.f53577b;\n AbstractC32607k kVar = f53576a[0];\n return (StarService) gVar.mo102348b();\n }", "@DISPID(1003) //= 0x3eb. The runtime will prefer the VTID if present\r\n @VTID(13)\r\n java.lang.String favoriteService();", "public String getFXPrefix() {\n return _fxPrefix;\n }", "@Override\n\tpublic void loadService() {\n\t\t\n\t}" ]
[ "0.65130967", "0.63987267", "0.63987267", "0.63987267", "0.6196279", "0.6168086", "0.61405766", "0.61405766", "0.61405766", "0.6099234", "0.6093906", "0.6058421", "0.6040365", "0.6014983", "0.6011773", "0.59661335", "0.5950317", "0.5950317", "0.5912613", "0.58887106", "0.58887106", "0.5864678", "0.585464", "0.58327705", "0.58152616", "0.57717884", "0.575328", "0.573927", "0.57315266", "0.5724413", "0.5695348", "0.56914395", "0.5684307", "0.56797415", "0.5678361", "0.5676532", "0.56761897", "0.56761897", "0.56761897", "0.56668055", "0.5662294", "0.564878", "0.5644653", "0.56351566", "0.56294507", "0.56294507", "0.56294507", "0.5619243", "0.5607524", "0.5605386", "0.56003666", "0.559147", "0.5588657", "0.5586134", "0.556626", "0.55614007", "0.55611205", "0.55608463", "0.5558157", "0.5556518", "0.5547063", "0.5547063", "0.5547063", "0.5524586", "0.55216116", "0.55145264", "0.5510019", "0.5503843", "0.5500031", "0.54974324", "0.5494812", "0.54900026", "0.5487004", "0.5486009", "0.5480286", "0.54741013", "0.5464672", "0.54640704", "0.5451176", "0.54445374", "0.5438545", "0.54282224", "0.5426475", "0.5417083", "0.54080963", "0.54065824", "0.54015356", "0.5398936", "0.53821397", "0.5381981", "0.5376113", "0.5372351", "0.53712434", "0.5368884", "0.5367524", "0.536352", "0.5350766", "0.53465235", "0.53460217", "0.53457516", "0.5335313" ]
0.0
-1
A package private interface with some useful constants for archive entry names. Public classes must not implement this interface otherwise the constants become part of the public API.
interface Entry { /** The entry name separator as a string. */ String SEPARATOR = ArchiveEntry.SEPARATOR; /** The entry name separator as a character. */ char SEPARATOR_CHAR = ArchiveEntry.SEPARATOR_CHAR; /** * Denotes the entry name of the virtual root directory. * This name is used as the value of the <code>innerEntryName</code> * property if a <code>File</code> instance denotes an archive file. * <p> * This constant may be safely used for identity comparison. */ String ROOT_NAME = ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName() {\n return \"File Archive Provider\";\n }", "ArchiveInfoInterface getArchiveInfo();", "private ZipConstants() {}", "public Archive getArchive();", "@Internal(\"Represented as part of archivePath\")\n public String getArchiveName() {\n if (customName != null) {\n return customName;\n }\n String name = GUtil.elvis(getBaseName(), \"\") + maybe(getBaseName(), getAppendix());\n name += maybe(name, getVersion());\n name += maybe(name, getClassifier());\n name += GUtil.isTrue(getExtension()) ? \".\" + getExtension() : \"\";\n return name;\n }", "public TarArchiveEntry() {\n this.version = VERSION_POSIX;\n this.name = \"\";\n this.linkName = \"\";\n this.linkFlag = LF_GNUTYPE_LONGNAME;\n String user = System.getProperty(\"user.name\", \"\");\n if (user.length() > MAX_NAMELEN) {\n user = user.substring(0, MAX_NAMELEN);\n }\n this.userName = user;\n this.groupName = \"\";\n this.userId = 0;\n this.groupId = 0;\n this.mode = DEFAULT_FILE_MODE;\n }", "public String getArchiver();", "public final String getArchiveName()\n {\n return _archiveName;\n }", "public interface Constants extends ShareConstants {\n String FASTDEX_DIR = \"fastdex\";\n String PATCH_DIR = \"patch\";\n String TEMP_DIR = \"temp\";\n String DEX_DIR = \"dex\";\n String OPT_DIR = \"opt\";\n String RES_DIR = \"res\";\n}", "String getArchiveMechanism();", "public ArchiveInfo() {\n\t}", "String getArch();", "public interface Constants {\n\n String KEY_BOOK_INFO = \"key_book_info\";\n\n}", "public String getShortDescription() {\n return String.format(\"Archive for %1$s\", getOsDescription());\n }", "public ZipArchiveEntry(final String name) {\n super(name);\n setName(name);\n }", "@Override\n public String toString() {\n return \"ZipFile '\" + getName() + \"'\";\n }", "public interface Constants\n{\n\tString EMAIL = \"email\";\n\tString RECORD_ID = \"_id\";\n\tString ENTRY_DATE = \"entryDate\";\n\tString DATE_FORMAT = \"yyyy-MM-dd'T'HH:mm:ssXXX\";\n\tString LEADS = \"leads\";\n}", "public interface FileDescriptor {\n\t/**\n\t * The mapping file name. This is its name within the archive, the\n\t * expectation being that most times this will equate to a \"classpath\n\t * lookup resource name\".\n\t *\n\t * @return The mapping file resource name.\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Retrieves access to the InputStream for the mapping file.\n\t *\n\t * @return Access to the InputStream for the mapping file.\n\t */\n\tpublic InputStream getStream();\n}", "public interface KeyValueConst {\n\n String PUBLIC_KEY = \"PublicKey\";\n String PRIVATE_KEY = \"PrivateKey\";\n}", "public interface XMLConstants {\r\n /** Descriptors are placed into this special package relative to the generated source. */\r\n String DESCRIPTOR_PACKAGE = \"descriptors\";\r\n\r\n /** This suffix is added to a class name to make its descriptor. */\r\n String DESCRIPTOR_SUFFIX = \"Descriptor\";\r\n\r\n /** Whitespace preserve (keep exactly as-is). */\r\n String WHITESPACE_PRESERVE = \"preserve\";\r\n\r\n /** Whitespace replace (replace each whitespace with a blank). */\r\n String WHITESPACE_REPLACE = \"replace\";\r\n\r\n /** Whitespace collapse (replace each whitespace with a blank, remove leading\r\n * and trailing whitespace, collapse consecutive blanks into exactly one blank). */\r\n String WHITESPACE_COLLAPSE = \"collapse\";\r\n\r\n /** XML name type NCName. (non-colonized name.) */\r\n short NAME_TYPE_NCNAME = 0;\r\n\r\n /** XML name type NMTOKEN. (name token.) */\r\n short NAME_TYPE_NMTOKEN = 1;\r\n\r\n /** XML name type CDATA. (character data.)*/\r\n short NAME_TYPE_CDATA = 2;\r\n\r\n /** XML name type QNAME. (qualified name.) */\r\n short NAME_TYPE_QNAME = 3;\r\n\r\n /** name of per package mapping file. */\r\n String PKG_MAPPING_FILE = \".castor.xml\";\r\n \r\n /** name of the class descriptor resolver file. */\r\n String PKG_CDR_LIST_FILE = \".castor.cdr\";\r\n}", "public interface COSConstants {\n\n public static final String CLOTHO_PATH_PREFIX = \"/clotho\";\n public static final String GIRLITY_PATH_PREFIX = \"/girlity\";\n public static final String PACKAGE_PATH_PREFIX = CLOTHO_PATH_PREFIX+ \"/package\";\n public static final String SPLASH_PATH_PREFIX = GIRLITY_PATH_PREFIX+ \"/splash\";\n}", "public interface ArchiveProperties\n{\n // TODO: change the below to a separate property to allow archiving but disable/enable XEP-0136\n String ENABLED = \"conversation.metadataArchiving\";\n String FORCE_RSM = \"archive.FORCE_RSM\";\n}", "public interface MetaData {\r\n\r\n\tpublic static final String CV_SBML = \"SBML\";\r\n\r\n\tpublic static final String ET_SBML = \"SBML_import\";\r\n\r\n\tpublic static final String AN_SBO = \"SBO\";\r\n\r\n\tpublic static final String RT_CONSUMED_BY = \"cs_by\";\r\n\r\n\tpublic static final String RT_PRODUCED_BY = \"pd_by\";\r\n\r\n\tpublic static final String RT_REGULATED_BY = \"rg_by\";\r\n\r\n\tpublic static final String RT_TRANSFORMATION_OF = \"transformation_of\";\r\n\r\n\tpublic static final String CC_REACTION = \"Reaction\";\r\n\r\n\tpublic static final String CC_COMPOUND = \"Comp\";\r\n\r\n\tpublic static final String CC_CELCOMP = \"CelComp\";\r\n\r\n}", "public interface Constants {\r\n\t/**\r\n\t * Example directory.\r\n\t */\r\n\tPath EXAMPLE_DIR = Path.of(\"src/main/resources\");\r\n\t/**\r\n\t * Example XML file.\r\n\t */\r\n\tPath EXAMPLE_PATH = Path.of(EXAMPLE_DIR.toString(), \"example.xml\");\r\n\t/**\r\n\t * Example text file name.\r\n\t */\r\n\tString EXAMPLE_TXT_FILE_NAME = \"example.txt\";\r\n\t/**\r\n\t * Example ZIP file name.\r\n\t */\r\n\tString EXAMPLE_ZIP_FILE_NAME = \"example.zip\";\r\n\t/**\r\n\t * Example ZIP file.\r\n\t */\r\n\tPath EXAMPLE_ZIP_PATH = Path.of(EXAMPLE_DIR.toString(), EXAMPLE_ZIP_FILE_NAME);\r\n\t/**\r\n\t * Example ZIP file entry.\r\n\t */\r\n\tString EXAMPLE_ZIP_ENTRY = \"data/example.xml\";\r\n\t/**\r\n\t * Example properties file.\r\n\t */\r\n\tPath EXAMPLE_PROPERTIES_PATH = Path.of(System.getProperty(\"user.dir\"), EXAMPLE_DIR.toString(),\r\n\t\t\t\"example.properties\");\r\n\t/**\r\n\t * Length of string to read.\r\n\t */\r\n\tString XML_CONTENT = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\";\r\n}", "public void setArchiveName(String name) {\n customName = name;\n }", "public interface ZIPContent {\n\n /**\n * Set entry name for zip file.\n *\n * @param ename Entry name\n */\n public void setEntryName(String ename);\n\n /**\n * If model implement this method, return entry name in .epub file\n *\n * @return String entryname or null\n */\n public String getEntryName();\n}", "public TarArchiveEntry(String name, byte linkFlag) {\n this(name);\n this.linkFlag = linkFlag;\n if (linkFlag == LF_GNUTYPE_LONGNAME) {\n version = VERSION_GNU_SPACE;\n }\n }", "public interface Constants {\n\n /**\n * 资源路径\n */\n String CONTENT_RESOURCES_PATH = \"content\";\n\n /**\n * 名师头像地址\n */\n String TEACHER_HEADE_IMG_PATH = \"teacher\";\n\n /**\n * 证书保存地址\n */\n String CERTIFICATE_IMG_PATH = \"certificate\";\n\n\n /**\n * 舞谱上传地址目录\n */\n String DANCE_BOOK_PATH = \"dance_book\";\n}", "public interface Constants {\n\n\t// /**\n\t// * Version string to identify library (e.g., in EXIficientGUI)\n\t// */\n\t// public static final String VERSION = \"1.0.0-SNAPSHOT\";\n\n\t/**\n\t * <p>\n\t * W3C EXI Namespace URI\n\t * </p>\n\t * \n\t * <p>\n\t * Defined to be \"<code>http://www.w3.org/2009/exi</code>\".\n\t */\n\tpublic static final String W3C_EXI_NS_URI = \"http://www.w3.org/2009/exi\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:base64Binary\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_BASE64BINARY = \"base64Binary\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:hexBinary\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_HEXBINARY = \"hexBinary\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:boolean\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_BOOLEAN = \"boolean\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:dateTime\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_DATETIME = \"dateTime\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:time\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_TIME = \"time\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:date\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_DATE = \"date\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:gYearMonth\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_GYEARMONTH = \"gYearMonth\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:gYear\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_GYEAR = \"gYear\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:gMonthDay\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_GMONTHDAY = \"gMonthDay\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:gDay\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_GDAY = \"gDay\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:gMonth\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_GMONTH = \"gMonth\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:decimal\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_DECIMAL = \"decimal\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:float and xsd:double\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_DOUBLE = \"double\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:integer\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_INTEGER = \"integer\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:string, xsd:anySimpleType and all\n\t * types derived by union\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_STRING = \"string\";\n\n\t/**\n\t * XML Reader feature\n\t */\n\tpublic static final String W3C_EXI_FEATURE_BODY_ONLY = \"http://www.w3.org/exi/features/exi-body-only\";\n\n\t/**\n\t * Initial Entries in String Table Partitions\n\t */\n\t/* \"\", empty string */\n\tpublic static final String[] PREFIXES_EMPTY = { \"\" };\n\tpublic static final String[] LOCAL_NAMES_EMPTY = {};\n\t/* \"http://www.w3.org/XML/1998/namespace\" */\n\tpublic static String[] PREFIXES_XML = { \"xml\" };\n\tpublic static String[] LOCAL_NAMES_XML = { \"base\", \"id\", \"lang\", \"space\" };\n\t/* \"http://www.w3.org/2001/XMLSchema-instance\", xsi */\n\tpublic static String[] PREFIXES_XSI = { \"xsi\" };\n\tpublic static String[] LOCAL_NAMES_XSI = { \"nil\", \"type\" };\n\t/* \"http://www.w3.org/2001/XMLSchema\", xsd */\n\tpublic static String[] PREFIXES_XSD = {};\n\tpublic static String[] LOCAL_NAMES_XSD = { \"ENTITIES\", \"ENTITY\", \"ID\",\n\t\t\t\"IDREF\", \"IDREFS\", \"NCName\", \"NMTOKEN\", \"NMTOKENS\", \"NOTATION\",\n\t\t\t\"Name\", \"QName\", \"anySimpleType\", \"anyType\", \"anyURI\",\n\t\t\t\"base64Binary\", \"boolean\", \"byte\", \"date\", \"dateTime\", \"decimal\",\n\t\t\t\"double\", \"duration\", \"float\", \"gDay\", \"gMonth\", \"gMonthDay\",\n\t\t\t\"gYear\", \"gYearMonth\", \"hexBinary\", \"int\", \"integer\", \"language\",\n\t\t\t\"long\", \"negativeInteger\", \"nonNegativeInteger\",\n\t\t\t\"nonPositiveInteger\", \"normalizedString\", \"positiveInteger\",\n\t\t\t\"short\", \"string\", \"time\", \"token\", \"unsignedByte\", \"unsignedInt\",\n\t\t\t\"unsignedLong\", \"unsignedShort\" };\n\n\t/**\n\t * \n\t */\n\tpublic static final String EMPTY_STRING = \"\";\n\t// public static final StringValue EMPTY_STRING_VALUE = new\n\t// StringValue(Constants.EMPTY_STRING);\n\n\tpublic static final String XSI_SCHEMA_LOCATION = \"schemaLocation\";\n\tpublic static final String XSI_NONAMESPACE_SCHEMA_LOCATION = \"noNamespaceSchemaLocation\";\n\n\tpublic static final String XML_NS_PREFIX = XMLConstants.XML_NS_PREFIX; // \"xml\"\n\tpublic static final String XML_NULL_NS_URI = XMLConstants.NULL_NS_URI; // \"\"\n\tpublic static final String XML_DEFAULT_NS_PREFIX = XMLConstants.DEFAULT_NS_PREFIX; // \"\"\n\tpublic static final String XML_NS_ATTRIBUTE_NS_URI = XMLConstants.XMLNS_ATTRIBUTE_NS_URI; // \"http://www.w3.org/2000/xmlns/\"\n\tpublic static final String XML_NS_ATTRIBUTE = XMLConstants.XMLNS_ATTRIBUTE; // \"xmlns\"\n\tpublic static final String XML_NS_URI = XMLConstants.XML_NS_URI; // \"http://www.w3.org/XML/1998/namespace\"\n\tpublic static final String XML_SCHEMA_INSTANCE_NS_URI = XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI; // \"http://www.w3.org/2001/XMLSchema-instance\"\n\tpublic static final String XML_SCHEMA_NS_URI = XMLConstants.W3C_XML_SCHEMA_NS_URI; // \"http://www.w3.org/2001/XMLSchema\"\n\n\tpublic static final String XSI_PFX = \"xsi\";\n\tpublic static final String XSI_TYPE = \"type\";\n\tpublic static final String XSI_NIL = \"nil\";\n\n\tpublic static final String COLON = \":\";\n\n\tpublic static final String XSD_LIST_DELIM = \" \";\n\tpublic static final char XSD_LIST_DELIM_CHAR = ' ';\n\tpublic static final char[] XSD_LIST_DELIM_CHAR_ARRAY = { ' ' };\n\n\t// public static final String CDATA_START = \"<![CDATA[\";\n\t// public static final char[] CDATA_START_ARRAY = CDATA_START.toCharArray();\n\t// public static final String CDATA_END = \"]]>\";\n\t// public static final char[] CDATA_END_ARRAY = CDATA_END.toCharArray();\n\n\tpublic static final String XSD_ANY_TYPE = \"anyType\";\n\n\tpublic static final String XSD_BOOLEAN_TRUE = \"true\";\n\tpublic static final String XSD_BOOLEAN_1 = \"1\";\n\tpublic static final String XSD_BOOLEAN_FALSE = \"false\";\n\tpublic static final String XSD_BOOLEAN_0 = \"0\";\n\n\tpublic static final char[] XSD_BOOLEAN_TRUE_ARRAY = XSD_BOOLEAN_TRUE\n\t\t\t.toCharArray();\n\tpublic static final char[] XSD_BOOLEAN_1_ARRAY = XSD_BOOLEAN_1\n\t\t\t.toCharArray();\n\tpublic static final char[] XSD_BOOLEAN_FALSE_ARRAY = XSD_BOOLEAN_FALSE\n\t\t\t.toCharArray();\n\tpublic static final char[] XSD_BOOLEAN_0_ARRAY = XSD_BOOLEAN_0\n\t\t\t.toCharArray();\n\n\tpublic static final String DECODED_BOOLEAN_TRUE = XSD_BOOLEAN_TRUE;\n\tpublic static final String DECODED_BOOLEAN_FALSE = XSD_BOOLEAN_FALSE;\n\tpublic static final char[] DECODED_BOOLEAN_TRUE_ARRAY = DECODED_BOOLEAN_TRUE\n\t\t\t.toCharArray();\n\tpublic static final char[] DECODED_BOOLEAN_FALSE_ARRAY = DECODED_BOOLEAN_FALSE\n\t\t\t.toCharArray();\n\n\tpublic static final int NOT_FOUND = -1;\n\n\t/*\n\t * Block & Channel settings Maximal Number of Values (per Block / Channel)\n\t */\n\tpublic static final int MAX_NUMBER_OF_VALUES = 100;\n\tpublic static final int DEFAULT_BLOCK_SIZE = 1000000;\n\n\t/*\n\t * StringTable settings\n\t */\n\tpublic static final int DEFAULT_VALUE_MAX_LENGTH = -1; // unbounded\n\tpublic static final int DEFAULT_VALUE_PARTITON_CAPACITY = -1; // unbounded\n\n\t/*\n\t * Float & Double Values\n\t */\n\tpublic static final String FLOAT_INFINITY = \"INF\";\n\tpublic static final String FLOAT_MINUS_INFINITY = \"-INF\";\n\tpublic static final String FLOAT_NOT_A_NUMBER = \"NaN\";\n\n\tpublic static final char[] FLOAT_INFINITY_CHARARRAY = FLOAT_INFINITY\n\t\t\t.toCharArray();\n\tpublic static final char[] FLOAT_MINUS_INFINITY_CHARARRAY = FLOAT_MINUS_INFINITY\n\t\t\t.toCharArray();\n\tpublic static final char[] FLOAT_NOT_A_NUMBER_CHARARRAY = FLOAT_NOT_A_NUMBER\n\t\t\t.toCharArray();\n\n\t/* -(2^14) == -16384 */\n\tpublic static final int FLOAT_SPECIAL_VALUES = -16384;\n\tpublic static final int FLOAT_MANTISSA_INFINITY = 1;\n\tpublic static final int FLOAT_MANTISSA_MINUS_INFINITY = -1;\n\tpublic static final int FLOAT_MANTISSA_NOT_A_NUMBER = 0;\n\n\t/* -(2^14-1) == -16383 */\n\tpublic static final long FLOAT_EXPONENT_MIN_RANGE = -16383;\n\t/* 2^14-1 == 16383 */\n\tpublic static final long FLOAT_EXPONENT_MAX_RANGE = 16383;\n\t/* -(2^63) == -9223372036854775808L */\n\tpublic static final long FLOAT_MANTISSA_MIN_RANGE = -9223372036854775808L;\n\t/* 2^63-1 == 9223372036854775807L */\n\tpublic static final long FLOAT_MANTISSA_MAX_RANGE = 9223372036854775807L;\n\n}", "private String getArchiveFilename(Publication publication) {\n\t\treturn publication.getName() + \"_\" +\n\t\t\t\tpublication.getType().getDisplayId().charAt( 0 ) +\n\t\t\t\t\"0_Publication.zip\";\n\t}", "@Override\r\n public void setArchive(String archive) {\n }", "Csar getArchive(String archiveName, String archiveVersion);", "private FileEntry() {\n // intentionally empty\n }", "public String getEntryName();", "public TarArchiveEntry(String name) {\n this(name, false);\n }", "public String getArchiveDDFolderName();", "public String getCoreArchive() {\n return coreArchive;\n }", "public void setArchiver(String sArchiver);", "public interface FeedParserConstants {\n\tpublic static final String TITLE = \"title\";\n\tpublic static final String DESCRIPTION = \"description\";\n\tpublic static final String CHANNEL = \"channel\";\n\tpublic static final String COPYRIGHT = \"copyright\";\n\tpublic static final String LINK = \"link\";\n\tpublic static final String AUTHOR = \"creator\";\n\tpublic static final String ITEM = \"item\";\n\tpublic static final String PUB_DATE = \"pubDate\";\n\tpublic static final String CONTENT = \"encoded\";\n}", "public interface IEntryFactory\n\t{\n\t\t/** \n\t\t Create an entry based on name alone\n\t\t \n\t\t @param name\n\t\t Name of the new EntryPointNotFoundException to create\n\t\t \n\t\t @return created TarEntry or descendant class\n\t\t*/\n\t\tTarEntry CreateEntry(String name);\n\n\t\t/** \n\t\t Create an instance based on an actual file\n\t\t \n\t\t @param fileName\n\t\t Name of file to represent in the entry\n\t\t \n\t\t @return \n\t\t Created TarEntry or descendant class\n\t\t \n\t\t*/\n\t\tTarEntry CreateEntryFromFile(String fileName);\n\n\t\t/** \n\t\t Create a tar entry based on the header information passed\n\t\t \n\t\t @param headerBuffer\n\t\t Buffer containing header information to create an an entry from.\n\t\t \n\t\t @return \n\t\t Created TarEntry or descendant class\n\t\t \n\t\t*/\n\t\tTarEntry CreateEntry(byte[] headerBuffer);\n\t}", "public abstract String toStringForFileName();", "void setArchiveInfo(ArchiveInfoInterface archInfo);", "public interface Constants {\r\n public static final String APPLE_PRODUCT_CODE = \"APP1456\";\r\n public static final String ORANGE_PRODUCT_CODE = \"ORG3456\";\r\n public static final Double APPLE_PRODUCT_PRICE = 0.60;\r\n public static final Double ORANGE_PRODUCT_PRICE = 0.25;\r\n public static final int MAGIC_NUMBER_ZERO = 0;\r\n public static final int MAGIC_NUMBER_TWO = 2;\r\n public static final int MAGIC_NUMBER_THREE = 3;\r\n public static final int MAGIC_NUMBER_FIVE = 5;\r\n public static final int MAGIC_NUMBER_SEVEN = 7;\r\n public static final int MAGIC_NUMBER_NINE = 9;\r\n}", "public String getArchivedFlag() {\n return archivedFlag;\n }", "public interface IssueConstants {\n static final String VIEW_ID = \"net.refractions.udig.issues.view.issues\"; //$NON-NLS-1$\n static final String ISSUES_LIST_EXTENSION_ID = \"net.refractions.udig.issues.issuesList\"; //$NON-NLS-1$\n static final String ISSUES_EXTENSION_ID = \"net.refractions.udig.issues.issue\"; //$NON-NLS-1$\n static final String EXTENSION_CLASS_ATTR = \"class\"; //$NON-NLS-1$\n\n}", "public interface Keys {\n\n String PUBLIC_REPOS = \"repos\";\n String USER = \"user\";\n String ID = \"id\";\n}", "public String getArchNameForCompiler() {\r\n return getArch().name().toLowerCase().replace('_', '.');\r\n }", "@Internal(\"Represented as part of archiveName\")\n public String getExtension() {\n return extension;\n }", "public interface EncryptionKey extends Representable, UniqueByteRepresentable {\n public static final String RECOVERY_METHOD = \"getEncryptionKey\";\n\n}", "interface AppConstants {\n String KEY_NAME = \"body\";\n}", "public interface EncoderConstants\n{\n\t/**\n\t * The default charset string.\n\t */\n\tpublic static final String DEFAULT_CHARSET = \"ISO-8859-1\";\n}", "TarEntry CreateEntry(String name);", "public interface ServiceConstants {\n\n String TASK_JSON = \"TASK_JSON\";\n String TASK_IDENTIFIER = \"TASK\";\n String TRIGGER_IDENTIFIER = \"TRIGGER\";\n String DEFAULT_GROUP_ID = \"DEFAULT_GROUP\";\n String TASK_ID = \"TASK_ID\";\n String TOPIC_NAME_CACHE_PROPERTY = \"topic_name_by_task_type\";\n String PRODUCER_PROPERTIES_CACHE = \"kafka_producer_properties\";\n String REQUEST_CONSUMER_PROPERTIES_CACHE = \"request_consumer_properties_cache\";\n}", "public interface C0003a {\n public static final String ah = \"image_manager_disk_cache\";\n public static final int hP = 262144000;\n\n @Nullable\n a bz();\n }", "public interface IInternalJiveUIConstants {\n\t\n\t/**\n\t * The prefix of all internal constants. \n\t */\n\tpublic String INTERNAL_ID_PREFIX = \"edu.buffalo.cse.jive.internal.ui\";\n\n\t/**\n\t * The folder ID of the <code>IFolderLayout</code> used to hold views\n\t * related to the current launches.\n\t */\n\tpublic String LAUNCH_FOLDER_ID = INTERNAL_ID_PREFIX + \".launchFolder\";\n\t\n\t/**\n\t * The folder ID of the <code>IFolderLayout</code> used to hold views for\n\t * the console or other miscellaneous views.\n\t */\n\tpublic String CONSOLE_FOLDER_ID = INTERNAL_ID_PREFIX + \".consoleFolder\";\n\t\n\t/**\n\t * The folder ID of the <code>IFolderLayout</code> used to hold views\n\t * related to the execution state of the active target.\n\t */\n\tpublic String EXECUTION_STATE_FOLDER_ID = INTERNAL_ID_PREFIX + \".executionStateFolder\";\n\t\n\t/**\n\t * The folder ID of the <code>IFolderLayout</code> used to hold views\n\t * related to the execution history of the active target.\n\t */\n\tpublic String EXECUTION_HISTORY_FOLDER_ID = INTERNAL_ID_PREFIX + \".executionHistoryFolder\";\n}", "public interface ResourceAdapter {\n\n public enum Item {\n INPUT_SAME_AS_OUTPUT_ERROR,\n AUTO_KEY_SELECTION_ERROR,\n LOADING_CERTIFICATE_AND_KEY,\n PARSING_CENTRAL_DIRECTORY,\n GENERATING_MANIFEST,\n GENERATING_SIGNATURE_FILE,\n GENERATING_SIGNATURE_BLOCK,\n COPYING_ZIP_ENTRY\n };\n\n public String getString( Item item, Object... args);\n}", "protected String getExpectedString(ArchiveEntry entry) {\n return entry.getSize() + \" \" + entry.getName();\n }", "public String getDisplayName(){return entryName;}", "public interface FileSystemEntry {\n public long getCount();\n public long getSize();\n public String getName();\n}", "private NamespaceHelper() {}", "private VolumeDataConstants() {\r\n \r\n }", "public interface PhotoConstants {\n String ADDRESS_GET_PHOTO = \"PhotoConstants:ADDRESS_GET_PHOTO\";\n\n String PARAM_ACTION = \"PARAM_ACTION\";\n String PARAM_ACTION_GET = \"PARAM_ACTION_GET\";\n\n String PARAM_SOURCE_URL = \"sourceUrl\";\n String PARAM_CACHE_URI = \"cacheUri\";\n String PARAM_IS_CIRCLE = \"isCircle\";\n String PARAM_IS_SYNC = \"isSync\";\n String PARAM_SUCCESS = \"success\";\n}", "public interface Constants {\n String PATH_SEPARATOR = \"/\";\n String ROOT_DIRECTORY_SYMBOL = \"/\";\n String COMMAND_OPTION_PREFIX = \"-\";\n String SESSION_CLEAR = \"session clear\";\n}", "public interface Constant {\n String INDEX_URL=\"https://raw.githubusercontent.com/sujit0892/meeting/master/meeting-xml/index.xml\";\n String MEETING_TAG=\"meeting\";\n String NAME_TAG=\"name\";\n String VENUE_TAG=\"venue\";\n String START_DATE=\"start-date\";\n String XML_URL=\"url\";\n String END_DATE=\"end-date\";\n String DESCRIPTION_TAG=\"description\";\n\n}", "public String toString (){\r\n\t\t\treturn \"[FZipFile]\"\r\n\t\t\t\t+ \"\\n name:\" + _filename\r\n\t\t\t\t+ \"\\n date:\" + _date\r\n\t\t\t\t+ \"\\n sizeCompressed:\" + _sizeCompressed\r\n\t\t\t\t+ \"\\n sizeUncompressed:\" + _sizeUncompressed\r\n\t\t\t\t+ \"\\n versionHost:\" + _versionHost\r\n\t\t\t\t+ \"\\n versionNumber:\" + _versionNumber\r\n\t\t\t\t+ \"\\n compressionMethod:\" + _compressionMethod\r\n\t\t\t\t+ \"\\n encrypted:\" + _encrypted\r\n\t\t\t\t+ \"\\n hasDataDescriptor:\" + _hasDataDescriptor\r\n\t\t\t\t+ \"\\n hasCompressedPatchedData:\" + _hasCompressedPatchedData\r\n\t\t\t\t+ \"\\n filenameEncoding:\" + _filenameEncoding\r\n\t\t\t\t+ \"\\n crc32:\" + _crc32.toString(16)\r\n\t\t\t\t+ \"\\n adler32:\" + _adler32.toString(16);\r\n\t\t}", "public interface Constants {\n \n public static String LOG_TAG = \"iyokan_parts\";\n}", "public interface IStrings {\n\n\t/**\n\t * The name of the application, as it appears on the title of the window\n\t * \n\t * @return the name of the application\n\t */\n\tpublic String getAppName();\n\n\t/**\n\t * If the application name should have a definite article when used in\n\t * sentences, this should be it, uncapitalised and with a trailing space if\n\t * one is appropriate.\n\t * \n\t * @return \"the \" or \"\".\n\t */\n\tpublic String getAppNameArticle();\n\n\t/**\n\t * The short form of the application name, for system tray stuff\n\t * \n\t * @return the short form of the application name\n\t */\n\tpublic String getShortAppName();\n\n\t/**\n\t * The name of the application in a form suitable for putting into paths\n\t * \n\t * @return the name of the application in a form for putting into paths\n\t */\n\tpublic String getAppPathname();\n\n\t/**\n\t * The explanation on how files to be saved should be named\n\t * \n\t * @return the explanation on how files to be saved should be named\n\t */\n\tpublic String getFileNamingDetails();\n\n\t/**\n\t * The list of names that appear in the open file dialogue describing the\n\t * file types to open\n\t * \n\t * @return an array containing the descriptions of the file types the user\n\t * can select\n\t */\n\tpublic String[] getOpenDialogueFilterNames();\n\n\t/**\n\t * The file extensions that the file dialogue will match. Must correspond to\n\t * the descriptions returned by {@link #getOpenDialogueFilterNames()}. e.g.\n\t * '*.emp'\n\t * \n\t * @return the file extensions that the file dialogue will match\n\t */\n\tpublic String[] getOpenDialogueFilterExtensions();\n\n\t/**\n\t * The description presented to the user regarding automatically opening\n\t * files.\n\t * \n\t * @return the description presented to the user regarding automatically\n\t * opening files\n\t */\n\tpublic String getPrefsAutoLoadDescription();\n\n\t/**\n\t * The text to be shown in the 'about' dialogue\n\t * \n\t * @return the text to be shown in the 'about' dialogue\n\t */\n\tpublic String getAboutBoxText();\n\n\t/**\n\t * The default naming pattern for saving files\n\t * \n\t * @return the default naming pattern for saving files\n\t */\n\tpublic String getDefaultFilePattern();\n\n\t/**\n\t * This provides the base name for the XML node that stores the download\n\t * state of the application.\n\t * \n\t * @return the XML node name for the download state\n\t */\n\tpublic String getXMLBaseNodeName();\n\n\t/**\n\t * The version of the application.\n\t * \n\t * @return the version of the application\n\t */\n\tpublic String getVersion();\n\n\t/**\n\t * This provides the base name (without extension) for cover art files\n\t * \n\t * @return the base name for cover art files\n\t */\n\tpublic String getCoverArtName();\n\n\t/**\n\t * \"Automatically check for updates to this program\"\n\t */\n\tpublic String prefsAutomaticallyCheck();\n\n\t/**\n\t * \"Files\"\n\t */\n\tpublic String prefsFilesGroupTitle();\n\n\t/**\n\t * \"Downloads\"\n\t */\n\tpublic String prefsDownloadsGroupTitle();\n\n\t/**\n\t * The string shown when the maximum number of failures has been reached.\n\t * This can include &lt;A&gt; elements, which when clicked will open the\n\t * browser to the customer support URL.\n\t */\n\tpublic String dlMaxFailures();\n\n\t/**\n\t * The message displayed when there is a network connection issue. Including\n\t * '\\uFFFC' in the text will cause the resume icon to be included at that\n\t * point.\n\t */\n\tpublic String networkFailureMessage();\n\n\t/**\n\t * \"Preferred number of downloads at once\"\n\t */\n\tpublic String prefsConcurrentDownloads();\n}", "public interface SKey {\n\n String FAIL_STORE = \"job.fail.store\";\n\n String LOADBALANCE = \"loadbalance\";\n\n String EVENT_CENTER = \"event.center\";\n\n String REMOTING = \"lts.remoting\";\n\n String REMOTING_SERIALIZABLE_DFT = \"lts.remoting.serializable.default\";\n\n String ZK_CLIENT_KEY = \"zk.client\";\n\n String JOB_ID_GENERATOR = \"id.generator\";\n\n String JOB_LOGGER = \"job.logger\";\n\n String JOB_QUEUE = \"job.queue\";\n}", "public interface Constants {\n\t\n\t/** The Constant SPACE_CHAR of type Character of one empty space. */\n\tstatic final char SPACE_CHAR = ' ';\n\t\n\t/** The Constant LETTER_O of type Character which holds mark X. */\n\tstatic final char LETTER_O = 'O';\n\t\n\t/** The Constant LETTER_X of type Character which holds mark O. */\n\tstatic final char LETTER_X = 'X';\n}", "public String getArchiveInd() {\n\t\treturn this.archiveInd;\n\t}", "public interface ManagerApiConstants {\n\n String USER_API_VERSION = \"/v1\";\n String USER_API_APPLICATION_NAME = \"SERVICE-MANAGER\";\n String USER_API_URL_PREFIX = \"http://\" + USER_API_APPLICATION_NAME + \"/\" + USER_API_VERSION;\n}", "public interface FilesystemConstants extends Serializable {\n\n /** Read only. */\n int O_RDONLY = 00;\n /** Write only. */\n int O_WRONLY = 01;\n /** Read and write. */\n int O_RDWR = 02;\n}", "public interface Constants {\n\n /*TODO KEY VALUE 参数*/\n String BUNDLE = \"bundle\";\n\n /*TODO APP 渠道*/\n String APP_SHANXI = \"SHANXI\";\n}", "public interface JobMemcachedKeys {\n String JOB_DETAIL = \"JOB_DETAIL_\";\n String JOB_STATUS = \"JOB_STATUS_\";\n}", "public com.google.protobuf.ByteString\n getArchBytes() {\n Object ref = arch_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n arch_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public interface CompressionService {\n public static final String ARCHIVE_EXTENSION = \"zip\";\n /**\n * Compresses given directory into zip file\n *\n * @param directory the content to compress\n * @param size default archive size\n *\n * @return zipped archive/s\n */\n List<File> compress(File directory, int size);\n}", "public interface ITechLinker extends ITechByteObject {\r\n \r\n /**\r\n * \r\n */\r\n public static final int LINKER_BASIC_SIZE = A_OBJECT_BASIC_SIZE + 5;\r\n\r\n /**\r\n * \r\n */\r\n public static final int LINKER_OFFSET_01_TYPE1 = A_OBJECT_BASIC_SIZE;\r\n\r\n /**\r\n * \r\n */\r\n public static final int LINKER_OFFSET_02_DATA4 = A_OBJECT_BASIC_SIZE + 1;\r\n\r\n}", "public abstract String getFileFormatName();", "public TarArchiveEntry(String name, boolean preserveLeadingSlashes) {\n this();\n name = ArchiveUtils.normalizeFileName(name, preserveLeadingSlashes);\n this.name = name;\n boolean isDir = name.endsWith(\"/\");\n this.mode = isDir ? DEFAULT_DIR_MODE : DEFAULT_FILE_MODE;\n this.linkFlag = isDir ? LF_DIR : LF_NORMAL;\n this.devMajor = 0;\n this.devMinor = 0;\n this.userId = 0;\n this.groupId = 0;\n this.size = 0;\n this.modTime = (new Date()).getTime() / MILLIS_PER_SECOND;\n this.linkName = \"\";\n this.userName = \"\";\n this.groupName = \"\";\n }", "public interface FileRelease {\n String PROPATHOFRELEASE = \"com/fr/performance/file/release/release.properties\";\n\n void checkFile();\n\n void verifyPath();\n\n void backupFile();\n\n void prepareFile();\n\n void releaseFile();\n\n void resultGather();\n}", "@SuppressWarnings(\"unused\")\npublic interface Constants {\n /**\n * Extra data key. Used with intent or some others.\n */\n class Extras {\n public static final String TAG = \"ext_tag\";\n public static final String FLAG = \"ext_flag\";\n public static final String DATA = \"ext_data0\";\n public static final String DATA_1 = \"ext_data1\";\n public static final String DATA_2 = \"ext_data2\";\n public static final String DATA_3 = \"ext_data3\";\n public static final String DATA_4 = \"ext_data4\";\n public static final String DATA_5 = \"ext_data5\";\n public static final String DATA_6 = \"ext_data6\";\n public static final String DATA_7 = \"ext_data7\";\n public static final String DATA_8 = \"ext_data8\";\n public static final String GRADE_INFO = \"ext_grade_info\";\n public static final String MEMBER_VP_INFO = \"ext_member_vp_info\";\n public static final String MEMBER_VP_POSITION = \"ext_member_vp_position\";\n }\n\n\n}", "public interface NamingScheme {\n File getPath(File backingFile, String key);\n\n String getPropName();\n\n String getFile(File backingFile, ImmuList<String> names);\n\n ThreeKey getKey( ImmuList<String> names );\n}", "private HeaderUtil() {}", "int getArchivePriority();", "public interface ActivityConstants {\n public static final int SCAN_ACTIVITY = 1001;\n public static final int PREVIOUS_ORDERS_ACTIVITY = 1002;\n public static final String PREFS_NAME = \"LoginData\";\n public static final String PREFS_LOGGED = \"LoggedIn\";\n}", "public interface Constants {\n final String TAG = \"myTag\";\n}", "public com.google.protobuf.ByteString\n getArchBytes() {\n Object ref = arch_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n arch_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public interface ClientApplicationServerHome\n{\n /**\n * Name that will be used for this home.\n */\n public final static String HOME_NAME = \"ClientApplicationServerHome\";\n}", "public interface DublinCoreConstants {\n \n /** Creates a new instance of Class */\n public static int DC_TITLE = 0;\n public static int DC_CREATOR = 1;\n public static int DC_SUBJECT = 2;\n public static int DC_DATE = 3;\n public static int DC_TYPE= 4;\n public static int DC_FORMAT= 5;\n public static int DC_IDENTIFIER = 6;\n public static int DC_COLLECTION = 7;\n public static int DC_COVERAGE = 8;\n \n public static int SUPPORTED_NUMBER = 9;\n \n public static final String[] DC_FIELDS = {\"title\",\"creator\",\"subject\",\"date\",\"type\",\"format\",\"identifier\",\"collection\",\"coverage\"};\n public static final String DC_NAMESPACE = \"dc:\";\n \n}", "@Override \r\n\tpublic String getName() {\r\n\t\treturn \"Bazooka\";\r\n\t}", "public interface Constants {\n String API_LINK_TEXT = \"API_LINK\";\n String USER_ID = \"user_id\";\n String MAPS_KEY = \"AIzaSyBgktirlOODUO9zWD-808D7zycmP7smp-Y\";\n String NEWS_API = \"https://newsapi.org/v1/articles?source=national-geographic&sortBy=top&apiKey=79a22c366b984f11b09d11fb9476d33b\";\n}", "interface ExtConstants {\n public static final String[] IMAGE_EXTENSIONS = { \".tiff\", \".tif\", \".gif \", \".jpeg\", \".jpg\" };\n}", "public interface DBName {\n final static String DB = \"menu.db\";\n final static String Coffee = \"Menu\";\n final static String Ade = \"Ade\";\n final static String Basket = \"Basket\";\n final static String OrderList = \"OrderList\";\n}", "public String getThreadGroupName() {\n return \"filearchive\";\n }", "public interface STConstant {\n\n /** The base resource path for this application. */\n String BASE_RES_PATH = \"/com/sandy/stocktracker/\" ;\n\n /** The date format used for NSE EOD dates in the CSV files. */\n SimpleDateFormat DATE_FMT = new SimpleDateFormat( \"dd-MMM-yyyy\" ) ;\n\n /** The time format used for ITD title displays and general time displays. */\n SimpleDateFormat TIME_FMT = new SimpleDateFormat( \"HH:mm:ss\" ) ;\n\n /** The the expanded time format. */\n SimpleDateFormat DATE_TIME_FMT = new SimpleDateFormat( \"dd-MMM-yyyy HH:mm:ss\" ) ;\n\n /** The prefix for drop values indicating the drop value as scrip name. */\n String DROP_VAL_SCRIP = \"SCRIP:\" ;\n\n /** The application config key against which the install directory is specified. */\n String CFG_KEY_INSTALL_DIR = \"pluto.install.dir\" ;\n\n /** The application config key against which biz start hour is specified. */\n String CFG_KEY_NSE_BIZ_START_HR = \"nse.business.start.time\" ;\n\n /** The application config key against which biz end hour is specified. */\n String CFG_KEY_NSE_BIZ_END_HR = \"nse.business.end.time\" ;\n\n /** The number of days for which to show old news. */\n String CFG_KEY_NUM_OLD_DAYS_NEWS = \"news.display.num.days\" ;\n}", "public interface ITLCLaunchUIConstants \n{\n public final static String TAB_MAIN_NAME\t\t\t= \"Main\";\n public final static String TAB_ARGUMENTS_NAME\t\t\t= \"Arguments\";\n \n public final static String TAB_MAIN_ICON_NAME \t\t= \"icons/full/obj16/tlc_launch_main_tab.gif\";\n public final static String TAB_ARGUMENTS_ICON_NAME \t= \"icons/full/obj16/tlc_launch_arguments_tab.gif\";\n}", "public interface IActivityConstants {\n\n public static final int ADD_UNIT_REQ_CODE = 1;\n\n public static final String METRIC_KEY = \"METRIC\";\n\n public static final String KNOT_KEY = \"KNOT\";\n\n public static final String BEUA_KEY = \"BEUAFORT\";\n\n public static final String INPUT_KEY = \"INPUT\";\n\n}", "@Override\n public String getEntityName()\n {\n return GWFArchiveProcess.ENTITY_NAME;\n }", "public interface Constants {\n /**\n * String representation for the name of the preferences object storing\n * the Parabank connection settings.\n */\n String PREFS_PARABANK = \"parabankConnectionSettings\";\n\n /**\n * String representation for the key within the Parabank preferences\n * object which stores the protocol for the HTTP requests.\n */\n @Deprecated\n String PREFS_PARABANK_PROTOCOL = \"protocol\";\n\n /**\n * String representation for the key within the Parabank preferences\n * object which stores the host for the HTTP requests.\n */\n String PREFS_PARABANK_HOST = \"host\";\n\n /**\n * String representation for the key within the Parabank preferences\n * object which stores the port for the HTTP requests.\n */\n String PREFS_PARABANK_PORT = \"port\";\n\n /**\n * String representation for key within the {@link android.content.Intent}\n * object which stores the {@link com.parabank.parasoft.app.android.adts.User}\n * object data.\n */\n String INTENT_USER = \"user\";\n String INTENT_PARABANK_URI = \"parabankConnection\";\n}", "com.google.protobuf.ByteString\n getArchBytes();" ]
[ "0.64003", "0.62680554", "0.6206327", "0.6066956", "0.59971017", "0.59589773", "0.5934996", "0.5918496", "0.58960426", "0.5873849", "0.5824365", "0.577653", "0.5772185", "0.57697535", "0.57435733", "0.5739576", "0.5731406", "0.56779796", "0.5676068", "0.5631102", "0.56293035", "0.56162846", "0.5530402", "0.5484886", "0.5471703", "0.54470295", "0.54173374", "0.5412868", "0.5412845", "0.5392482", "0.5391948", "0.5378711", "0.5347899", "0.53399867", "0.5327001", "0.53179884", "0.5316997", "0.5309441", "0.529586", "0.52755624", "0.5273917", "0.5262399", "0.5227849", "0.51901746", "0.5181133", "0.5178848", "0.5175778", "0.5173046", "0.51696575", "0.5169234", "0.5165666", "0.5163518", "0.5161878", "0.5159934", "0.514861", "0.51458347", "0.5142905", "0.5141256", "0.5135984", "0.51244086", "0.5122206", "0.5112724", "0.51124823", "0.510504", "0.5102067", "0.51010406", "0.5098284", "0.5095681", "0.5081811", "0.5075907", "0.5074983", "0.50734186", "0.5070182", "0.50684017", "0.5068026", "0.50650793", "0.5044866", "0.504394", "0.504163", "0.5031059", "0.50302655", "0.50228703", "0.50109094", "0.5007704", "0.49947295", "0.49946615", "0.49930578", "0.49858916", "0.4981843", "0.4978844", "0.49777257", "0.4975383", "0.49712858", "0.4968308", "0.4963191", "0.4963188", "0.4962636", "0.4955861", "0.4955069", "0.49509236" ]
0.73710245
0
return the hierarchy of certain knowledge. used to create directory and track knowledge tree. the return type string will be replaced with complicated object later
public String hierarchy();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getHierarchyString()\n {\n if (this.hierarchy == null) {\n synchronized (this.parentTables) {\n if (this.hierarchy == null) {\n String utableName = this.getUntranslatedTableName();\n String parentHier = StringTools.join(this.getParentTables(),\"/\");\n this.hierarchy = (!StringTools.isBlank(parentHier)?(parentHier+\"/\"):\"\") + utableName;\n }\n }\n }\n return this.hierarchy; // never null\n }", "public String makeTree() {\r\n // Create a stack to store the files/directories in the tree\r\n Stack<DirectoryTreeNode> itemStack = new Stack<>();\r\n // Initialize a string variable to store the tree diagram\r\n String tree = \"\";\r\n // Push the root directory into the stack\r\n itemStack.push(this.rootDir);\r\n\r\n // Loop through the items in the Stack until all the items have been\r\n // traversed (this is similar to the pre-order traversal of the tree)\r\n while (!itemStack.isEmpty()) {\r\n // Get the item on the top of the stack and store it in current\r\n DirectoryTreeNode current = (DirectoryTreeNode) itemStack.pop();\r\n // Get the number of tabs required in the output for this item\r\n int numTabs = this.getNumberOfAncestors((E) current);\r\n // Get the string of tabs needed to put before current's name\r\n String tabs = this.getNumberOfTabs(numTabs);\r\n // Add the required number of tabs, the current item's of name and a\r\n // newline\r\n tree += tabs + current.getName() + \"\\n\";\r\n\r\n // Check if current is a Directory (in which case it may have\r\n // sub directories and files)\r\n if (current instanceof Directory) {\r\n // Get the list of files and directories of current directory\r\n ArrayList<DirectoryTreeNode> contents =\r\n ((Directory) current).getContents();\r\n // Loop through the contents of current and add them to the stack\r\n for (int i = contents.size() - 1; i >= 0; i--) {\r\n itemStack.add(contents.get(i));\r\n }\r\n }\r\n }\r\n // Return the generated tree diagram\r\n return tree;\r\n }", "public String treeType();", "public String toString(){\n String str = \"\";\n for(int i = level; i>0; i--){\n str+=\"\\t\";\n }\n str += getClass().toString();\n if(noOfChildren != 0){\n str+=\" containing\\n\";\n for (int i = 0; i<this.noOfChildren; i++)\n str += getChild(i).toString();\n }\n else{\n str+=\"\\n\";\n }\n return str;\n }", "public String getTree ( ) {\n\n String tree;\n StringWriter s = new StringWriter();\n PrintWriter out = null;\n\n try {\n out = new PrintWriter(s);\n } catch ( Exception ex ) {};\n\n program.printIndividual(param.Parameters.STATE, out);\n\n tree = s.toString();\n String list2[] = tree.split(\"\\n\");\n\n out.close();\n try { s.close(); } catch ( Exception e ) {};\n\n return list2[list2.length - 1];\n\n }", "public String getTreeType();", "@Override\n\t/**\n\t * returns the abstract or final or neither modifiers for the specific\n\t * class\n\t * \n\t * @return abstract or final or neither modifiers \n\t */\n\tpublic String getHierarchy() {\n\t\treturn hierarchy;\n\t}", "protected abstract String childFolderPath();", "public String getHierarchicalPath() {\r\n \t\tStringBuilder builder = new StringBuilder();\r\n \t\tfor (String id : hierarchicalId) {\r\n \t\t\tbuilder.append('/');\r\n \t\t\tbuilder.append(id);\r\n \t\t}\r\n \r\n \t\treturn builder.toString();\r\n \t}", "public String getFullTreePathString()\n throws OculusException;", "List<String> getTrees();", "public abstract String describe(int depth);", "public String treeJSON() {\n\t\ttry{\r\n\t\tList trees = this.getTransedTrees();\r\n\t\tString result = this.treeJSON(trees);\r\n\t\treturn result;\r\n\t\t}catch(Exception e){\r\n\t\t\tlog.info(\">>>>faceye error in method:treeJSON() is\"+e.toString());\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t}", "@RequestMapping(value = \"getData/{dataName}\", method = RequestMethod.GET, produces = {\"application/json;charset=UTF-8\"})\n\tpublic String getHierarchy(@PathVariable final String dataName){\n\n\t\tlogger.info(\"Entered NeoJSON_getHier Request Mapping\");\n\t\t\n\t\n\t\tStatementResult result = NeoBolt.getResults_multiple(dataName);\n\t\tList<JSONObject> ljo = new ArrayList<JSONObject>();\n\t\n\t\twhile(result.hasNext()){\n\t\t\tRecord record = result.next();\n\t\t\tJSONObject jsonObject = new JSONObject();\n\t\t\tjsonObject.put(record.get(0).toString(),record.asMap().toString());\n\t\t\tljo.add(jsonObject);\n\t\t}\n\n\t\treturn ljo.toString();\n\t}", "public List<Topic> getTopicTree(Topic topic);", "DataTree getDatatypeHierarchy();", "public String toString() {\n\n // **** ****\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"\\n n: \" + this.n);\n sb.append(\"\\nparents: \" + Arrays.toString(this.parents));\n\n // **** ****\n return sb.toString();\n }", "public SubjectHierarchy getSubjectHierarchy();", "public String generateXML() \n { \n \n String xml = new String();\n \n String nodetype = new String();\n if (type.equals(\"internal\")){\n nodetype = \"INTERNAL\"; //change this for change in XML node name\n }\n else {\n nodetype = \"LEAF\"; //change this for change in XML node name\n }\n \n xml = \"<\" + nodetype;\n if (!name.equals(\"\")){\n xml = xml + \" name = \\\"\" + name + \"\\\"\";\n }\n if (length >0){\n xml = xml + \" length = \\\"\" + length + \"\\\"\";\n }\n //Section below tests tree size and depths\n // if (level > 0){\n // xml = xml + \" level = \\\"\" + level + \"\\\"\";\n // }\n //if (depth > 0){\n // xml = xml + \" depth = \\\"\" + depth + \"\\\"\";\n //}\n //if (newicklength > 0){\n // xml = xml + \" newicklength = \\\"\" + newicklength + \"\\\"\";\n //}\n // if (treesize > 0){\n // xml = xml + \" treesize = \\\"\" + treesize + \"\\\"\";\n //}\n //if (startxcoord >= 0){\n // xml = xml + \" startx = \\\"\" + startxcoord + \"\\\"\";\n //}\n //if (endxcoord >= 0){\n // xml = xml + \" endx = \\\"\" + endxcoord + \"\\\"\";\n //}\n //Test section done\n xml = xml + \">\";\n \n if (!children.isEmpty()){ //if there are children in this node's arraylist\n Iterator it = children.iterator();\n while(it.hasNext()){\n Node child = (Node) it.next();\n xml = xml + child.generateXML(); //The recursive coolness happens here!\n }\n }\n xml = xml + \"</\" + nodetype + \">\";\n \n return xml;\n }", "public String outputDepthFirstSearch() {\n // output string buffer\n StringBuilder output = new StringBuilder();\n outputDepthFirstSearch(root, output);\n return output.toString();\n }", "protected String getLevelString()\n {\n\tStringBuffer buf = new StringBuffer();\n\tfor (int i = 0; i < nestLevel; i++)\n\t buf.append(\">\");\n\treturn buf.toString();\n\t}", "private Content getClassInheritenceTree(Type type) {\n Type sup;\n HtmlTree classTreeUl = new HtmlTree(HtmlTag.UL);\n classTreeUl.addStyle(HtmlStyle.inheritance);\n Content liTree = null;\n do {\n sup = Util.getFirstVisibleSuperClass(\n type instanceof ClassDoc ? (ClassDoc) type : type.asClassDoc(),\n configuration);\n if (sup != null) {\n HtmlTree ul = new HtmlTree(HtmlTag.UL);\n ul.addStyle(HtmlStyle.inheritance);\n ul.addContent(getTreeForClassHelper(type));\n if (liTree != null)\n ul.addContent(liTree);\n Content li = HtmlTree.LI(ul);\n liTree = li;\n type = sup;\n }\n else\n classTreeUl.addContent(getTreeForClassHelper(type));\n }\n while (sup != null);\n if (liTree != null)\n classTreeUl.addContent(liTree);\n return classTreeUl;\n }", "String getFullParentId();", "java.lang.String getParent();", "java.lang.String getParent();", "public static String printTree()\n {\n \tString tree = \"\";\n ArrayList<String> letters = converter.toArrayList();\n for(int i = 0; i < letters.size(); i++)\n {\n tree += letters.get(i);\n if(i + 1 < letters.size())\n \t tree += \" \";\n }\n \n return tree;\n }", "private String getParentDesc() {\n if (Objects.nonNull(parent)) {\n return String.valueOf(dataLayout.getLayout().getId());\n }\n\n // Level 0th.\n if (Objects.isNull(node.getParent())) {\n // From flat table.\n return \"flat table\";\n }\n // From data layout.\n return String.valueOf(node.getParent().getLayout().getId());\n }", "public String toTreeString() {\n return toTreeString(overallRoot);\n }", "public List<?> getTreePath(Object object)\n {\n LinkedList<Object> result = new LinkedList<Object>();\n result.addFirst(object);\n while ((object = getParent(object)) != null)\n {\n result.addFirst(object);\n }\n \n return result;\n }", "public String describeRoot();", "private static Category manualBuildHierarchy(String rulefile) {\n\t\tCategory root = new Category(\"Root\", null);\n\t\tCategory computer = new Category(\"Computers\", root);\n\t\tCategory health = new Category(\"Health\", root);\n\t\tCategory sports = new Category(\"Sports\", root);\n\t\troot.addSubcategory(computer);\n\t\troot.addSubcategory(health);\n\t\troot.addSubcategory(sports);\n\n\t\tCategory hardware = new Category(\"Hardware\", computer);\n\t\tCategory programming = new Category(\"Programming\", computer);\n\t\tcomputer.addSubcategory(hardware);\n\t\tcomputer.addSubcategory(programming);\n\n\t\tCategory fitness = new Category(\"Fitness\", health);\n\t\tCategory diseases = new Category(\"Diseases\", health);\n\t\thealth.addSubcategory(fitness);\n\t\thealth.addSubcategory(diseases);\n\n\t\tCategory basketball = new Category(\"Basketball\", sports);\n\t\tCategory soccer = new Category(\"Soccer\", sports);\n\t\tsports.addSubcategory(basketball);\n\t\tsports.addSubcategory(soccer);\n\n\t\treturn root;\n\t}", "public String[] getTreeNames();", "@Override\n\t\tpublic String toString() {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tpreOrderTraverse(expression.root, 1, sb);\n\t\t\treturn sb.toString();\n\t\t}", "public Object generatePathToRoot(EmitLang emitter, String stem)\n\t{\n\t Object result;\n\t \n\t if ( this.factoredPath != null ) {\n\t result = this.factoredPath;\n \n } else {\n\n // Build the path iteratively.\n result = stem;\n\n for ( PathElement idx: generateAccessPath() ) {\n\t result = emitter.genCallMethod(\n\t result, \n\t \"getNthChild\", \n Integer.toString(idx.index));\n }\n\t }\n\t \n\t return result;\n\t}", "public String generateNewick() \n { \n \n String newick = new String();\n\n if (type.equals(\"internal\")){\n newick = \"(\";\n }\n \n if (!name.equals(\"\")){\n newick = newick + name;\n }\n \n if (!children.isEmpty()){ //if there are children in this node's arraylist\n Iterator it = children.iterator();\n while(it.hasNext()){\n Node child = (Node) it.next();\n newick = newick + child.generateNewick();\n if(it.hasNext()){\n newick = newick + \",\";\n }\n }\n }\n if (type.equals(\"internal\")){\n newick = newick + \")\";\n }\n if (length >0){\n newick = newick + \":\" + length;\n }\n \n return newick;\n }", "public String toString() {\r\n return _toString(overallRoot);\r\n }", "public Object[] getParentInfo(String path);", "private Content getTreeForClassHelper(Type type) {\n Content li = new HtmlTree(HtmlTag.LI);\n if (type.equals(classDoc)) {\n Content typeParameters = getTypeParameterLinks(\n new LinkInfoImpl(configuration, LinkInfoImpl.Kind.TREE,\n classDoc));\n if (configuration.shouldExcludeQualifier(\n classDoc.containingPackage().name())) {\n li.addContent(type.asClassDoc().name());\n li.addContent(typeParameters);\n } else {\n li.addContent(type.asClassDoc().qualifiedName());\n li.addContent(typeParameters);\n }\n } else {\n Content link = getLink(new LinkInfoImpl(configuration,\n LinkInfoImpl.Kind.CLASS_TREE_PARENT, type)\n .label(configuration.getClassName(type.asClassDoc())));\n li.addContent(link);\n }\n return li;\n }", "public String toString() {\n return tree.toString();\n }", "String getFullName() {\r\n StringBuffer buf = new StringBuffer(type.getName());\r\n Summary current = type.getParent();\r\n\r\n while (current != null) {\r\n if (current instanceof TypeSummary) {\r\n buf.insert(0, \".\");\r\n buf.insert(0, ((TypeSummary)current).getName());\r\n } else if (current instanceof PackageSummary) {\r\n String temp = ((PackageSummary)current).getName();\r\n\r\n if ((temp != null) && (temp.length() > 0)) {\r\n buf.insert(0, \".\");\r\n buf.insert(0, temp);\r\n }\r\n }\r\n current = current.getParent();\r\n }\r\n\r\n return buf.toString();\r\n }", "public String toString(){\n //return myString(root);\n printInOrder(root);\n return \"\";\n }", "public String getRoot();", "public List<String> getHierarchicalClass() {\r\n \t\treturn hierarchicalClass;\r\n \t}", "public interface HierarchicalKnowledgeBase {\n\n /**\n * Get the concept with the provided id.\n * @param id Concept ID.\n * @return Concept\n */\n Concept getConcept(String id);\n\n /**\n * Get the instance with the provided id.\n * @param id Instance ID.\n * @return Instance\n */\n Instance getInstance(String id);\n\t/**\n * Get a collection with the subclasses of the provided concept\n * @param concept Concept provided\n * @return collection of subclasses of the concept\n */\n Set<Concept> getSubclasses(Concept concept);\n \n /**\n * Returns a collection containing the superclasses of the provided concept\n * @param concept Concept provided\n * @return collection of subclasses of the concept\n */\n Set<Concept> getSuperclasses(Concept concept);\n \n /**\n * Check if concept x is equivalent to concept y\n * @param x Concept x\n * @param y Concept y\n * @return True if x is equivalent to y\n */\n boolean equivalent(Concept x, Concept y);\n \n /**\n * Check if concept x is subclass of concept y\n * @param x Concept x\n * @param y Concept y\n * @return True if x subclass of y, false in other case.\n */\n boolean isSubclass(Concept x, Concept y);\n \n /**\n * Check if concept x is a subclass of y, false in other case\n * @param x Concept x\n * @param y Concept y\n * @return True if x is a superclass of y\n */\n boolean isSuperclass(Concept x, Concept y);\n \n /**\n * Returns the concept Resource from which this Resource is instance. If\n * the Resource is not an instance, the function returns the same Resource.\n * @param instance Concept or Instance Resource\n * @return Concept parent of the instance.\n */\n Concept resolveInstance(Instance instance);\n \n /**\n * Return all instances of the provided concept.\n * @return {@link Set} with the instances of the concept.\n * If there are no instances, a empty set is returned.\n */\n Set<Instance> getInstances(Concept concept);\n\n /**\n * Return all concepts managed by this KB.\n * @return {@link Set} with all available concepts.\n */\n Set<Concept> getConcepts();\n\n /**\n * Return all instances managed by this KB.\n * @return {@link Set} with all available instances.\n */\n Set<Instance> getInstances();\n}", "public String printTree() {\n printSideways();\n return \"\";\n }", "protected abstract String[] getBaseFolders();", "public String toString() {\n\t\tif (hierarchy.equals(\"n\")) {\n\t\t\treturn visability + \" class \" + className + \"{ \\n \";\n\t\t} else if (isFinished == true) {\n\n\t\t\treturn \"}\";\n\t\t} else {\n\t\t\treturn visability + \" \" + hierarchy + \" class \" + className\n\t\t\t\t\t+ \"{ \\n \";\n\t\t}\n\t}", "public String toString() {\n Class<? extends AST> tclass = this.getClass();\n // isolate relative name (starting after the rightmost '.')\n String absoluteClassName = tclass.toString();\n int dotIndex = absoluteClassName.lastIndexOf(\".\", absoluteClassName.length());\n String relativeClassName = absoluteClassName.substring(dotIndex+1);\n // retrieving fields (note that, unfortunately, they are not ordered)\n // TO DO : get rid of static fields (pb in case of singletons)\n Field[] fields = tclass.getDeclaredFields();\n // building string representation of the arguments of the nodes\n int arity = fields.length;\n String args = \"\";\n for(int index = 0; index < arity; index++) {\n String arg;\n try {\n arg = fields[index].get(this).toString(); // retrieve string representation of all arguments\n } catch (Exception e) {\n arg = \"?\"; // IllegalArgument or IllegalAccess Exception (this shouldn't happen)\n }\n if (index != 0) // a separator is required before each argument except the first\n args = args + \", \" + arg;\n//\t\t\t\targs = args + \" \" + arg;\n else\n args = args + arg;\n }\n return relativeClassName + \"(\" + args + \")\";\n//\t\treturn \"<\" + relativeClassName + \">\" + args + \"</\" + relativeClassName + \">\";\n }", "@Override\r\n\tpublic synchronized String toString(){\r\n\r\n\t\tString result = String.valueOf(numberOfSplittedGroups);\r\n\r\n\t\tif(!hierarchy.isEmpty()){\r\n\t\t\tresult = result + Constants.A3_SEPARATOR + hierarchy.get(0);\r\n\t\t\tfor(int i = 1; i < hierarchy.size(); i ++){\r\n\t\t\t\tresult = result + Constants.A3_SEPARATOR + hierarchy.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "java.lang.String getRoot();", "public HierarchyManager getHierarchyManager() {\n return hierMgr;\n }", "public String toString() {\n return (isRelative() ? \"\" : \"(not relative)\") + getName() + \": \" +\n getClassName();\n }", "public java.lang.String HR_GetEmployeeHierarchy3(java.lang.String accessToken) throws java.rmi.RemoteException;", "public String toString() {\n return toString(root) + \" \";//call helper method for in-order traversal representation\n }", "@Override\n\t/**\n\t * sets the abstract or final or neither modifiers for the specific class\n\t * \n\t * @param s \n\t */\n\tpublic void setHierarchy(String s) {\n\t\thierarchy = s;\n\n\t}", "public String toString() {\n StringBuffer aBuffer = new StringBuffer(super.toString());\n aBuffer.append(\"[id=\").append(_theId).\n append(\" parent=\").append(_theParent).\n append(\" paths=\").append(_thePaths).\n append(\"]\");\n\n return aBuffer.toString();\n }", "public Git.Tree displayTree(String h) {\n return displayTree(h, \"root\", null); \n }", "protected abstract Class<? extends TreeStructure> getTreeType();", "public String toString() {\n \tString str = this.root.ToString(0);\n \t//return str.substring(0, str.length() - 1)\n return str.substring(0, str.length() - 1).toLowerCase();\n }", "public java.lang.String HR_GetEmployeeHierarchy4(java.lang.String accessToken, java.lang.String hie3) throws java.rmi.RemoteException;", "public String toString() { \r\n\t\tString Sresult = \"(\" + lChild.toString() + \" / \" + rChild.toString() + \")\";\r\n\t\treturn Sresult; \r\n\t}", "java.lang.String getNested();", "public String recursiveDescription() {\n return recursiveDescription(0);\n }", "public void outputHierarchy(ActionEvent e) {\n final Graph graph = App.makeGraph();\n final BuildHierarchyTask task = new BuildHierarchyTask(path, graph, totalFilesWithFolders);\n task.stateProperty().addListener(new ChangeListener<Worker.State>() {\n @Override\n public void changed(ObservableValue<? extends Worker.State> observableValue, Worker.State oldState, Worker.State newState) {\n if (newState == Worker.State.SUCCEEDED) {\n Notifications.create().title(\"Hierarchy done\").text(\"Finished\").showInformation();\n try {\n graph.io(IoCore.graphson()).writeGraph(\"tinkerpop-modern.json\");\n graph.io(IoCore.gryo()).writeGraph(\"tinkerpop-modern.kryo\");\n } catch (IOException ex) {\n Logger.getLogger(WarDetailsController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n });\n App.submitVisible(task);\n\n }", "public Hierarchy[] getHierarchies() {\r\n return axis.getHierarchies();\r\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n traverseNode(sb, \"\", \"\", root, false);\n return sb.toString();\n }", "public int depth ();", "public String getLevel()\n {\n if(modeT)\n {\n return \"timetrail.txt\";\n }\n else if(difficult.equals(\"EASY\"))\n {\n return \"easy.txt\";\n }\n else if(difficult.equals(\"MEDIUM\"))\n {\n return \"medium.txt\";\n }\n else if(difficult.equals(\"HARD\"))\n {\n return \"hard.txt\";\n }\n else if(difficult.equals(\"YOU WILL NOT SURVIVE\"))\n {\n return \"youwillnotsurvive.txt\";\n }\n else if(difficult.equals(\"GHOST\"))\n {\n return \"ghost.txt\";\n }\n else if(difficult.equals(\"TROLL\"))\n {\n return \"troll.txt\";\n }\n else\n return \"easy.txt\";\n }", "public String toString() {\n if (subTrees.isEmpty()) return rootToString();\n StringBuilder result = new StringBuilder(rootToString() + \"(\" + subTrees.get(0).toString());\n for (int i = 1; i < subTrees.size(); i++) result.append(\",\").append(subTrees.get(i).toString());\n return result + \")\";\n }", "public static ResolutionNode generateResolutionTree(){\n\t\tConnection con = null;\n\t\ttry {\n\t\t\tcon = getConnection();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t};\n\t\tResolutionNode tree = new ResolutionNode();\n\t\ttree.setAc_id(0);\n\t\ttree.setName(\"root\");\n\t\ttree.setPath(\"\");\n\t\ttree.setSupertype(tree);\n\t\tResolutionNode r = generateResolutionTree(0, tree, new ArrayList<ContextParameterType>(), new ArrayList<QualityParameterType>(), new ArrayList<CostParameterType>(), new ArrayList<RankingParameterType>(), \"root\");\n\t\tcloseConnnection(con);\n\t\treturn r;\n\t}", "public String getDataDirectoriesString() {\n ArrayList dataDirs = this.getDataDirectories();\n String dataDirs_str = \"\";\n\n File dir;\n for (Iterator var3 = dataDirs.iterator(); var3.hasNext(); dataDirs_str = dataDirs_str + dir.getAbsolutePath() + \"\\n\") {\n dir = (File) var3.next();\n }\n\n return dataDirs_str;\n }", "java.lang.String getFkocs();", "@Override\n public String parenthesize() {\n StringBuilder out = new StringBuilder();\n out.append(\"[\");\n out.append(this.leftChild.parenthesize());\n out.append(\" \");\n out.append(this.oper.getId());\n out.append(\" \");\n out.append(this.rightChild.parenthesize());\n out.append(\"]\");\n return out.toString();\n }", "public String inOrderTraverse(){\r\n\r\n\t\t//Stack that keeps track of where we go\r\n\t\tStack<BinarySearchTree> traverseStack = new Stack<BinarySearchTree>();\r\n\t\t\r\n\t\t//This is where we want to start\r\n\t\tBinarySearchTree curr = this;\r\n\t\t\r\n\t\t//When true, the string is returned\r\n\t\tBoolean done = false;\r\n\t\t\r\n\t\t//The string to return\r\n\t\tString treeAsString = \"\";\r\n\t\t\r\n\t\t//INORDER: LEFT > ROOT > RIGHT\r\n\r\n\t\twhile(!done){\r\n\t\t\tif(curr != null){\r\n\t\t\t\t\r\n\t\t\t\t//We need to get left first push it onto the stack\r\n\t\t\t\ttraverseStack.push(curr);\r\n\r\n\t\t\t\t//Getting the left first\r\n\t\t\t\tcurr = curr.getLeftChild();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\t//curr is null. We checked left.\r\n\t\t\t\tif(!traverseStack.isEmpty()){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//pop the stack to get the item\r\n\t\t\t\t\tcurr = traverseStack.pop();\r\n\r\n\t\t\t\t\t//append the item\r\n\t\t\t\t\ttreeAsString += curr.toString() + \" \";\r\n\r\n\t\t\t\t\t//Check the right\r\n\t\t\t\t\tcurr = curr.getRightChild();\r\n\t\t\t\t}\r\n\t\t\t\t//curr was null, the stack was empty, we visited all\r\n\t\t\t\t//of the 'nodes'\r\n\t\t\t\telse{\r\n\t\t\t\t\tdone = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn treeAsString;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn level+\":\"+title + \":\"+refId+\"::\"+childElems;\n\t}", "public String getReadableSolution() {\n StringBuilder solution = new StringBuilder();\n\n solution.append(\"WORKFLOW_IN:{\");\n int i = 0;\n for (TypeNode workflowInput : this.workflowInputTypeStates) {\n solution.append(workflowInput.toString());\n if (++i < this.workflowInputTypeStates.size()) {\n solution.append(\", \");\n }\n }\n solution.append(\"} |\");\n\n for (ModuleNode currTool : this.moduleNodes) {\n solution.append(\" IN:{\");\n i = 0;\n for (TypeNode toolInput : currTool.getInputTypes()) {\n if (!toolInput.isEmpty()) {\n if (i++ > 1) {\n solution.append(\", \");\n }\n solution.append(toolInput.toString());\n }\n }\n solution.append(\"} \").append(currTool.toString());\n solution.append(\" OUT:{\");\n i = 0;\n for (TypeNode toolOutput : currTool.getOutputTypes()) {\n if (!toolOutput.isEmpty()) {\n if (i++ > 1) {\n solution.append(\", \");\n }\n solution.append(toolOutput.toString());\n }\n }\n solution.append(\"} |\");\n }\n i = 0;\n solution.append(\"WORKFLOW_OUT:{\");\n for (TypeNode workflowOutput : this.workflowOutputTypeStates) {\n solution.append(workflowOutput.toString());\n if (++i < this.workflowOutputTypeStates.size()) {\n solution.append(\", \");\n }\n }\n solution.append(\"}\");\n\n return solution.toString();\n }", "java.lang.String getDirName();", "DataTree getMetricsHierarchy();", "@Override\r\n\tpublic void buildTree() {\r\n\t\t\r\n\t\t// root level \r\n\t\trootNode = new TreeNode<String>(\"\");\r\n\t\t\r\n\t\t//first level\r\n\t\tinsert(\".\", \"e\");\r\n\t\tinsert(\"-\", \"t\");\r\n\t\t\r\n\t\t//second level\r\n\t\t\r\n\t\tinsert(\". .\", \"i\");\r\n\t\tinsert(\".-\", \"a\");\r\n\t\tinsert(\"-.\", \"n\"); \r\n\t\tinsert(\"--\", \"m\");\r\n\t\t\r\n\t\t//third level\r\n\t\tinsert(\"...\", \"s\");\r\n\t\tinsert(\"..-\", \"u\");\r\n\t\tinsert(\".-.\", \"r\");\r\n\t\tinsert(\".--\", \"w\");\r\n\t\tinsert(\"-..\", \"d\");\r\n\t\tinsert(\"-.-\", \"k\");\r\n\t\tinsert(\"--.\", \"g\");\r\n\t\tinsert(\"---\", \"o\");\r\n\t\t\r\n\t\t//fourth level\r\n\t\tinsert(\"....\", \"h\");\r\n\t\tinsert(\"...-\", \"v\");\r\n\t\tinsert(\"..-.\", \"f\");\r\n\t\tinsert(\".-..\", \"l\");\r\n\t\tinsert(\".--.\", \"p\");\r\n\t\tinsert(\".---\", \"j\");\r\n\t\tinsert(\"-...\", \"b\");\r\n\t\tinsert(\"-..-\", \"x\");\r\n\t\tinsert(\"-.-.\", \"c\");\r\n\t\tinsert(\"-.--\", \"y\");\r\n\t\tinsert(\"--..\", \"z\");\r\n\t\tinsert(\"--.-\", \"q\");\r\n\t\t\r\n\t}", "public String toString() {\n StringBuffer buff = new StringBuffer();\n buff.append(this.getClass().getSimpleName() + \": \");\n buff.append(\" denotation:\");\n buff.append(\"'\" + this.denotation + \"'\");\n buff.append(\"; \");\n buff.append(super.toString());\n return buff.toString();\n }", "private static String returnDiretorioPai(Path a){\n return a.getParent().toString();\n }", "public String buildTreeFromMessage(){\n parseMsg();\n if(printOCCTable)printTable();\n constructTree();\n reconstructTree();\n if(printHuffTree)\n printTree();\n return printBFSTree();\n }", "public String toString() {\n if (root == null) {\n return (treeName + \" Empty tree\\n\");\n } else {\n String space = \"\";\n return treeName + \"\\n\" + toStringRecur(root.right, space) + \"\\n\" + root.element +\n \"[No Parent so sad]\" + toStringRecur(root.left, space) + \"\\n\";\n }\n }", "public interface INode {\n INode[] children();\n INode getParent();\n void setParent(INode parent);\n INode copySubTree();\n INode copyWholeTree();\n String getNodeChar();\n void setChildren(INode[] newKids);\n void setNodeChar(String c);\n INode getRoot();\n boolean isRoot();\n Bit getBit();\n void setBit(Bit bit);\n void tellChildAboutParent();\n INode addBrackets();\n INode removeBrackets();\n String toPlainText();\n}", "public String toStringWithRelation();", "public static Goal[] createEverythingGoals() {\n\t\t// [ & ] <--- rootGoal1\n\t\t// / / \\ \\\n\t\t// P T E M\n\t\t//\n\t\tCompositeGoal rootGoal1 = new CompositeGoal(CompositeGoal.and);\n\t\trootGoal1.addChild(new PuzzleGoal());\n\t\trootGoal1.addChild(new TreasureGoal());\n\t\trootGoal1.addChild(new EnemiesGoal());\n\t\trootGoal1.addChild(new MazeGoal());\n\t\t\n\t\t\n\t\tCompositeGoal subGoal1 = new CompositeGoal(CompositeGoal.and);\n\t\tsubGoal1.addChild(new EnemiesGoal());\n\t\tsubGoal1.addChild(new TreasureGoal());\n\t\tsubGoal1.addChild(new MazeGoal());\n\t\t\n\t\tCompositeGoal subGoal2 = new CompositeGoal(CompositeGoal.and);\n\t\tsubGoal2.addChild(new PuzzleGoal());\n\t\tsubGoal2.addChild(new TreasureGoal());\n\t\tsubGoal2.addChild(subGoal1);\n\t\t\n\t\t// [ | ] <--- rootGoal2\n\t\t// / \\\n\t\t// I [ & ] <---- subGoal2\n\t\t// / | \\\n\t\t// P T [ & ] <---- subGoal1\n\t\t// /|\\\n\t\t// E T M\n\t\tCompositeGoal rootGoal2 = new CompositeGoal(CompositeGoal.or);\n\t\trootGoal2.addChild(new ImpossibleGoal());\n\t\trootGoal2.addChild(subGoal2);\n\n\t\t\n\t\tString goalString = \"\"\n\t\t\t+ \" { \\\"goal\\\": \\\"AND\\\", \\\"subgoals\\\":\\n\"\n\t\t\t+ \" [ { \\\"goal\\\": \\\"exit\\\" },\\n\"\n\t\t\t+ \" { \\\"goal\\\": \\\"AND\\\", \\\"subgoals\\\":\\n\"\n\t\t\t+ \" [ {\\\"goal\\\": \\\"treasure\\\" },\\n\"\n\t\t\t+ \" { \\\"goal\\\": \\\"AND\\\", \\\"subgoals\\\":\\n\"\n\t\t\t+ \" [ {\\\"goal\\\": \\\"enemies\\\" },\\n\"\n\t\t\t+ \" {\\\"goal\\\": \\\"boulders\\\" }\\n\"\n\t\t\t+ \" ]\\n\"\n\t\t\t+ \" }\\n\"\n\t\t\t+ \" ]\\n\"\n\t\t\t+ \" }\\n\"\n\t\t\t+ \" ]\\n\"\n\t\t\t+ \" }\\n\";\n\t\t\n\t\tJSONObject json = new JSONObject(new JSONTokener(goalString));\n\t\tGoal goal3 = Goal.createGoal(json);\n\t\t\n\t\treturn new Goal[]{ rootGoal1, rootGoal2, goal3 };\n\t}", "public interface TreeNode {\n Collection<TreeNode> getChildren();\n boolean isDirectory();\n}", "public String getStructure(String name) {\n\t\tDynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(JournalArticleImpl.class, \"structure\",\n\t\t\t\tPortalClassLoaderUtil.getClassLoader());\n\t\t// dynamicQuery.add(PropertyFactoryUtil.forName(\"structureId\").eq(\"40684\"));\n\t\tString structure = \"\";\n\t\ttry {\n\t\t\tList<JournalArticle> articles = JournalArticleLocalServiceUtil.dynamicQuery(dynamicQuery);\n\t\t\tfor (JournalArticle article : articles) {\n\t\t\t\tif (article.getFolderId() == getFolder(\"ratesr\")) {\n\t\t\t\t\tstructure = article.getArticleId();\n\t\t\t\t\tlog.info(article);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlog.error(e.getMessage());\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn structure;\n\t}", "public String getFolders()\r\n\t{\r\n\t\tIrUser user = userService.getUser(userId, false);\r\n\t\tif( !item.getOwner().equals(user) && !user.hasRole(IrRole.ADMIN_ROLE) && \r\n\t\t\t\t!institutionalCollectionPermissionHelper.isInstitutionalCollectionAdmin(user, genericItemId))\r\n\t\t{\r\n\t\t return \"accessDenied\";\r\n\t\t}\r\n\t\tif(parentFolderId != null && parentFolderId > 0)\r\n\t\t{\r\n\t\t folderPath = userFileSystemService.getPersonalFolderPath(parentFolderId);\r\n\t\t}\r\n\t\t\r\n\t\tCollection<PersonalFolder> myPersonalFolders = userFileSystemService.getPersonalFoldersForUser(userId, parentFolderId);\r\n\t\t\r\n\t\tCollection<PersonalFile> myPersonalFiles = userFileSystemService.getPersonalFilesInFolder(userId, parentFolderId);\r\n\t\t\r\n\t fileSystem = new LinkedList<FileSystem>();\r\n\t \r\n\t for(PersonalFolder o : myPersonalFolders)\r\n\t {\r\n\t \tfileSystem.add(o);\r\n\t }\r\n\t \r\n\t for(PersonalFile o: myPersonalFiles)\r\n\t {\r\n\t \tfileSystem.add(o);\r\n\t }\r\n\t \r\n\t FileSystemSortHelper sortHelper = new FileSystemSortHelper();\r\n\t sortHelper.sort(fileSystem, FileSystemSortHelper.TYPE_DESC);\r\n\t return SUCCESS;\r\n\t \r\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(this.getName());\n sb.append(\"\\n name=\").append(this.getName());\n sb.append(\"\\n type=\").append(this.getType());\n sb.append(\"\\n parentType=\").append(this.getParentType());\n sb.append(\"\\n resourceUrl=\").append(this.getResourceUrl());\n sb.append(\"\\n restUrl=\").append(this.getRestUrl());\n sb.append(\"\\n soapUrl=\").append(this.getSoapUrl());\n sb.append(\"\\n thumbnailUrl=\").append(this.getThumbnailUrl());\n sb.append(\"\\n capabilities=\").append(this.getCapabilities());\n sb.append(\"\\n creator=\").append(this.getCreator());\n sb.append(\"\\n description=\").append(this.getDescription());\n sb.append(\"\\n keywords=\").append(this.getKeywords());\n if (this.getEnvelope() != null) {\n if (this.getEnvelope() instanceof EnvelopeN) {\n EnvelopeN envn = (EnvelopeN) this.getEnvelope();\n sb.append(\"\\n envelope=\");\n sb.append(envn.getXMin()).append(\", \").append(envn.getYMin()).append(\", \");\n sb.append(envn.getXMax()).append(\", \").append(envn.getYMax());\n if (envn.getSpatialReference() != null) {\n sb.append(\" wkid=\").append(envn.getSpatialReference().getWKID());\n }\n }\n }\n return sb.toString();\n }", "String getDesignation();", "@Override\n public String toString() {\n return ArrayHelper.join(this.toArray(new Part[0]), \"/\");\n }", "public static String printTree()\r\n {\r\n String result = \"\";\r\n for (String s: tree.toArrayList())\r\n result = result + \" \" + s;\r\n return result;\r\n }", "@Override\n public String toString() { // display subtree in order traversal\n String output = \"[\";\n LinkedList<Node<T>> q = new LinkedList<>();\n q.add(this);\n while(!q.isEmpty()) {\n Node<T> next = q.removeFirst();\n if(next.leftChild != null) q.add(next.leftChild);\n if(next.rightChild != null) q.add(next.rightChild);\n output += next.data.toString();\n if(!q.isEmpty()) output += \", \";\n }\n return output + \"]\";\n }", "public String toString()\r\n {\r\n String str = toString(root);\r\n if (str.endsWith(\", \"))\r\n str = str.substring(0, str.length() - 2);\r\n return \"[\" + str + \"]\";\r\n }", "public String toString(){\r\n\t\treturn root.toString();\r\n\t}", "TreeStorage getTreeStorage();", "@Override\n public String toString() {\n return ObjectContracts.toString(this, \"objectType\", \"name\", \"atPath\");\n }", "public interface BdObjectGraph\r\n{\r\n // Object Graph is a tree representation of BD object.\r\n // From root node to sub child node to finally leaf object graph shows the location of object.\r\n // for example \r\n //root=station,\r\n //station has 3 clusters=Nodes\r\n // Clusters has many objects for example file objects,schedule objects \r\n // then sub-node=file object,schedule object \r\n //Each node has resource description allocator,for example if i want to get file object in clsuter1\r\n //in station1 then resource description allocator of Big Dinosaur gives me \r\n //stationname,clustername,filename as a query \r\n //the syntax for query has to be decided in what format\r\n // may be station:cluster:where:filename=\"big dinosaur u will rule \"\r\n //Challenges:On what interval of time the BdObjectGraph has to be persist or it is stored in file system or create object\r\n //in runtime \r\n//////////////////////////////////\r\n //May be representing tree in file system or in object \r\n \r\n //for Example Example 1\r\n // Bd has different types of object graph on the basis of object type\r\n // which tree as object graph to search is determined on the basis of query syntax\r\n // for example\r\n // Station:Abcbankclientstation(in sense it represent one machine virtually but is a collection of many physical clusters or virtual clusters)\r\n // this will search station tree object with key as Abcbankclientstation.It goes on traversing on tree until it gets Abcbankclientstation and gets space object allcoated for this client in sense of cluster \r\n\r\n //for Example Example 2\r\n //Now after transversing cluster object with allocated space is retirved then again i need to retirve file object from that cluster\r\n //then again the query is \r\n //Station:Abcbankclientstation:insurancestore:abishkar.txt\r\n //now again file object graph tree is traversed until i get abishkar.txt and goes on recusrsively\r\n //or \r\n //Station:Abcbankclientstation:insurancestore:insuranceObject\r\n //insurancestore has large no of insuranceObject kept as tree,so again insurancestore is traversed until\r\n //insuranceObject is retirved and goes on recusrsively \r\n \r\n \r\n //Object graph is continuously updated ot inserted by another program in continuous basis on the basis of tree type object\r\n \r\n}", "@Override\n public String toString() {\n final ToString ts = new ToString(this);\n\n ts.append(\"path\", getPath());\n\n return ts.toString();\n }" ]
[ "0.6858363", "0.63813365", "0.6148298", "0.5976963", "0.595802", "0.5935673", "0.5907284", "0.5847341", "0.58085907", "0.57273775", "0.5619749", "0.5614332", "0.56037617", "0.5581265", "0.55454224", "0.5467473", "0.5460561", "0.54456437", "0.54418665", "0.5421143", "0.541749", "0.5416018", "0.54109657", "0.54050404", "0.54050404", "0.5355928", "0.5349008", "0.53455836", "0.5316243", "0.53086233", "0.52663547", "0.526516", "0.5252139", "0.525036", "0.5247178", "0.52447784", "0.5234484", "0.52226025", "0.5221806", "0.52158344", "0.52113956", "0.5209598", "0.5204899", "0.52020156", "0.5180848", "0.51806486", "0.51662064", "0.51629424", "0.5159711", "0.51595956", "0.514199", "0.5122489", "0.5105761", "0.5097882", "0.50938076", "0.5090834", "0.5080707", "0.5076962", "0.5071617", "0.50466514", "0.5045209", "0.5041749", "0.5036355", "0.50171775", "0.50154775", "0.5010083", "0.50091344", "0.5007067", "0.50026816", "0.4996487", "0.4991871", "0.49822792", "0.4962154", "0.49613172", "0.49585888", "0.49492645", "0.49460465", "0.49440947", "0.4943642", "0.49408054", "0.4938294", "0.4934147", "0.49332774", "0.4909292", "0.49045926", "0.49016246", "0.48889345", "0.48836744", "0.48832607", "0.48824942", "0.4880847", "0.48716298", "0.486313", "0.48613605", "0.48526174", "0.48442844", "0.48368824", "0.48300898", "0.4829877", "0.48297855" ]
0.7552901
0
view knowledge hierarchy as a tree. The leaf node is the object that cannot be extended. like redbird
public boolean save();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String hierarchy();", "public interface TreeNode{\r\n\t\r\n\t// enumerated node types\r\n\tpublic enum NodeType {\r\n\t\tMIN {\r\n\t\t\t@Override\r\n\t\t\tpublic NodeType opposite() {\r\n\t\t\t\treturn MAX;\r\n\t\t\t}\r\n\t\t}, MAX {\r\n\t\t\t@Override\r\n\t\t\tpublic NodeType opposite() {\r\n\t\t\t\treturn MIN;\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\tpublic abstract NodeType opposite();\r\n\t};\r\n\t\r\n\t// the type of node represented\r\n\tpublic NodeType getNodeType();\r\n\t\r\n\t// a possibly empty list of children\r\n\tpublic List<TreeNode> getChildrenNodes();\r\n\t\r\n\t// request a new child node after executing a move\r\n\tpublic TreeNode getChildNode(GameMove move) throws IllegalArgumentException;\r\n\t\r\n\t// the parent node of the current node\r\n\t// current Node == getParentNode for ROOT\r\n\tpublic TreeNode getParentNode();\r\n \r\n\t// whether the current node is the root node\r\n\tpublic Boolean isRootNode();\r\n \r\n\t// returns an object modeling some external state \r\n\tpublic GameState getGameState();\r\n \r\n\t// depth of node in tree\r\n\tpublic int getDepth();\r\n \r\n\t// evaluates/scores the leaf node\r\n\tpublic int scoreLeafNode();\r\n}", "public static TreeNode getTree() {\n\t\tTreeNode a = new TreeNode(\"a\", 314);\n\t\tTreeNode b = new TreeNode(\"b\", 6);\n\t\tTreeNode c = new TreeNode(\"c\", 271);\n\t\tTreeNode d = new TreeNode(\"d\", 28);\n\t\tTreeNode e = new TreeNode(\"e\", 0);\n\t\tTreeNode f = new TreeNode(\"f\", 561);\n\t\tTreeNode g = new TreeNode(\"g\", 3);\n\t\tTreeNode h = new TreeNode(\"h\", 17);\n\t\tTreeNode i = new TreeNode(\"i\", 6);\n\t\tTreeNode j = new TreeNode(\"j\", 2);\n\t\tTreeNode k = new TreeNode(\"k\", 1);\n\t\tTreeNode l = new TreeNode(\"l\", 401);\n\t\tTreeNode m = new TreeNode(\"m\", 641);\n\t\tTreeNode n = new TreeNode(\"n\", 257);\n\t\tTreeNode o = new TreeNode(\"o\", 271);\n\t\tTreeNode p = new TreeNode(\"p\", 28);\n\t\t\n\t\ta.left = b; b.parent = a;\n\t\tb.left = c; c.parent = b;\n\t\tc.left = d;\t d.parent = c;\n\t\tc.right = e; e.parent = c;\n\t\tb.right = f; f.parent = b;\n\t\tf.right = g; g.parent = f;\n\t\tg.left = h; h.parent = g;\n\t\ta.right = i; i.parent = a;\n\t\ti.left = j; j.parent = i;\n\t\ti.right = o; o.parent = i;\n\t\tj.right = k; k.parent = j;\n\t\to.right = p; p.parent = o;\n\t\tk.right = n; n.parent = k;\n\t\tk.left = l; l.parent = k;\n\t\tl.right = m; m.parent = l;\n\t\t\n\t\td.childrenCount = 0;\n\t\te.childrenCount = 0;\n\t\tc.childrenCount = 2;\n\t\tb.childrenCount = 6;\n\t\tf.childrenCount = 2;\n\t\tg.childrenCount = 1;\n\t\th.childrenCount = 0;\n\t\tl.childrenCount = 1;\n\t\tm.childrenCount = 0;\n\t\tn.childrenCount = 0;\n\t\tk.childrenCount = 3;\n\t\tj.childrenCount = 4;\n\t\to.childrenCount = 1;\n\t\tp.childrenCount = 0;\n\t\ti.childrenCount = 7;\n\t\ta.childrenCount = 15;\n\t\t\n\t\treturn a;\n\t}", "public HIRTree(){\r\n\t\t\r\n\t}", "public MyTree getTree() {\r\n\t\treturn tree;\r\n\t}", "TreeNode getTreeNode();", "void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}", "private void buildeAccessoryTree() {\n\t DefaultKingdeeTreeNode root = new DefaultKingdeeTreeNode(\"版模类型\");\r\n\t DefaultKingdeeTreeNode parentrNode = root;\r\n\t DefaultKingdeeTreeNode currentNode = null;\r\n\t \r\n//\t for(AccessoryTypeEnum s : AccessoryTypeEnum.getEnumList()){\r\n//\t\t\r\n//\t }\r\n\t List accessorylist =AccessoryTypeEnum.getEnumList();\r\n\t Class clz = AccessoryTypeEnum.class;\r\n\t for (int i=0;i<accessorylist.size();i++) {\r\n\t\tSystem.out.println(accessorylist.get(i));\r\n\t\tcurrentNode = new DefaultKingdeeTreeNode(accessorylist.get(i));\r\n\t\tcurrentNode.setUserObject(accessorylist.get(i));\r\n\r\n\t\tparentrNode.add(currentNode);\r\n\t }\r\n\t kDTree1.setModel(new KingdeeTreeModel(root));\r\n\t kDTree1.setSelectionNode(root);\r\n\t \r\n\t}", "public Hierarchy() {\n treeModel = new DefaultTreeModel(topNode);\n treeModel.addTreeModelListener(new MyTreeModelListener());\n initComponents ();\n }", "public void createTree() {\n\t\taddNodeToParent(nodeMap);\n\t}", "public String treeJSON() {\n\t\ttry{\r\n\t\tList trees = this.getTransedTrees();\r\n\t\tString result = this.treeJSON(trees);\r\n\t\treturn result;\r\n\t\t}catch(Exception e){\r\n\t\t\tlog.info(\">>>>faceye error in method:treeJSON() is\"+e.toString());\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t}", "public Git.Tree displayTree(String h) {\n return displayTree(h, \"root\", null); \n }", "@Override\r\n\tpublic void buildTree() {\r\n\t\t\r\n\t\t// root level \r\n\t\trootNode = new TreeNode<String>(\"\");\r\n\t\t\r\n\t\t//first level\r\n\t\tinsert(\".\", \"e\");\r\n\t\tinsert(\"-\", \"t\");\r\n\t\t\r\n\t\t//second level\r\n\t\t\r\n\t\tinsert(\". .\", \"i\");\r\n\t\tinsert(\".-\", \"a\");\r\n\t\tinsert(\"-.\", \"n\"); \r\n\t\tinsert(\"--\", \"m\");\r\n\t\t\r\n\t\t//third level\r\n\t\tinsert(\"...\", \"s\");\r\n\t\tinsert(\"..-\", \"u\");\r\n\t\tinsert(\".-.\", \"r\");\r\n\t\tinsert(\".--\", \"w\");\r\n\t\tinsert(\"-..\", \"d\");\r\n\t\tinsert(\"-.-\", \"k\");\r\n\t\tinsert(\"--.\", \"g\");\r\n\t\tinsert(\"---\", \"o\");\r\n\t\t\r\n\t\t//fourth level\r\n\t\tinsert(\"....\", \"h\");\r\n\t\tinsert(\"...-\", \"v\");\r\n\t\tinsert(\"..-.\", \"f\");\r\n\t\tinsert(\".-..\", \"l\");\r\n\t\tinsert(\".--.\", \"p\");\r\n\t\tinsert(\".---\", \"j\");\r\n\t\tinsert(\"-...\", \"b\");\r\n\t\tinsert(\"-..-\", \"x\");\r\n\t\tinsert(\"-.-.\", \"c\");\r\n\t\tinsert(\"-.--\", \"y\");\r\n\t\tinsert(\"--..\", \"z\");\r\n\t\tinsert(\"--.-\", \"q\");\r\n\t\t\r\n\t}", "DataTree getMetricsHierarchy();", "public String toString(){\n String str = \"\";\n for(int i = level; i>0; i--){\n str+=\"\\t\";\n }\n str += getClass().toString();\n if(noOfChildren != 0){\n str+=\" containing\\n\";\n for (int i = 0; i<this.noOfChildren; i++)\n str += getChild(i).toString();\n }\n else{\n str+=\"\\n\";\n }\n return str;\n }", "DataTree getDatatypeHierarchy();", "public String getTreeType();", "public String treeType();", "public EntryTree tree() {\n return tree;\n }", "List<UmsMenuNode> treeList();", "@Override\r\n\tprotected Object createLowerView(Composite parent) {\n\t\tfTree = new Tree(parent, SWT.BORDER );\r\n\t\tfTree.addSelectionListener(new SelectionAdapter() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\t// https://jira.jboss.org/browse/JBIDE-7107\r\n\t\t\t\t// update \"OK\" button enablement\r\n\t\t\t\tupdateOkState();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t \r\n\t\tfTreeViewer = new TreeViewer(fTree);\r\n\t\tfTreeViewer.setContentProvider( treeContentProvider );\r\n\t\tfTreeViewer.setLabelProvider(new ModelTreeLabelProvider());\r\n\t\tfTreeViewer.setInput ( null );\r\n\t\tfTreeViewer.setAutoExpandLevel( getAutoExpandLevel() );\r\n\t\t// end tree viewer for variable structure\r\n\t\tGridData data = new GridData(); \r\n\t data.grabExcessVerticalSpace = true;\r\n\t data.grabExcessHorizontalSpace = true;\r\n\t data.horizontalAlignment = GridData.FILL;\r\n\t data.verticalAlignment = GridData.FILL;\r\n\t data.minimumHeight = 200;\r\n\t fTree.setLayoutData(data);\r\n\t \r\n\t\treturn fTree;\r\n\t}", "public JTree getTree(){\n return tree;\n }", "public TreeNode() { \n this.name = \"\"; \n this.rule = new ArrayList<String>(); \n this.child = new ArrayList<TreeNode>(); \n this.datas = null; \n this.candAttr = null; \n }", "public FamilyTree(){\r\n super();\r\n }", "public void tree()\n\t{\n\t\tIterable<Position<FileElement>> toPrint = fileSystem.PreOrder();\n\t\tfor (Position<FileElement> p : toPrint)\n\t\t{\n\t\t\tint depth = fileSystem.getDepth(p);\n\t\t\tfor (int i = 0; i < depth; i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(p.getValue());\n\t\t}\n\t}", "public HierarchicalConfiguration getTreeModel()\n {\n return treeModel;\n }", "public javax.swing.table.TableModel getIntermediateNodeModel()\n\t{\n\t\tObject[][] cells = new Object[1 + children.length + BlockContext.common_fields.length][];\n\n\t\tint level = context.dc.getUInt8(context.nm_cLevel);\n\t\tint i = 0;\n\t\tcells[i++] = new Object[]{\"Block type\", level == 0 ? \"SLENTRY\" : \"SIENTRY\"};\n\t\tcells[i++] = new Object[]{context.nm_bType, context.dc.getUInt8(context.nm_bType)};\n\t\tcells[i++] = new Object[]{context.nm_cLevel, level};\n\t\tcells[i++] = new Object[]{context.nm_cEnt, (Short)context.dc.get(context.nm_cEnt)};\n\n\t\tfor (int j = 0; j < children.length; ++j)\n\t\t\tcells[i++] = new Object[]{String.format(\"rgentries %d\", j), children[j].toString()};\n\n\t\treturn new ReadOnlyTableModel(cells, new Object[]{\"\", \"\"});\n\t}", "public Object clone()\n\t{\n\t\treturn new Tree();\n\t}", "protected static DefaultMutableTreeNode getDefaultTreeModel()\n {\n // New root node\n DefaultMutableTreeNode root =\n new DefaultMutableTreeNode(\"Root\");\n \n // First level\n for (int i = 1; i <= 5; i++)\n {\n // New node\n DefaultMutableTreeNode folder =\n new DefaultMutableTreeNode(\"Folder-\" + i);\n \n // Add node to root\n root.add(folder);\n \n // Second level\n for (int j = 1; j <= 3; j++)\n {\n // New node\n DefaultMutableTreeNode subfolder =\n new DefaultMutableTreeNode(\"Subfolder-\" + j);\n \n // Add node to parent node\n folder.add(subfolder);\n \n // Third level\n for (int k = 1; k <= 3; k++)\n {\n // New anchor\n A a = new A(\"http://jakarta.apache.org\");\n a.setTarget(\"target\").addElement(\"Document-\" + k);\n \n // New node (leaf)\n DefaultMutableTreeNode document =\n new DefaultMutableTreeNode(a.toString());\n \n // Add node to parent node\n subfolder.add(document);\n }\n }\n }\n \n // Return root node\n return root;\n }", "public interface ITreeObject {\r\n\r\n\tpublic static final Object[] EMPTY_OBJECT_ARRAY = new Object[0]; \r\n\t/**\r\n\t * Returns immediate parent of this item\r\n\t * @return immediate parent item or null if this item has no parent or parent is unknown \r\n\t */\r\n\tObject getParent();\r\n\r\n\t/**\r\n\t * Tells if item has children \r\n\t * @return true if this item has children \r\n\t */\r\n\tboolean hasChildren();\r\n\t\r\n\t/**\r\n\t * Returns number of children \r\n\t * @return child count \r\n\t */\r\n\tint getChildCount();\r\n\t\r\n\t/**\r\n\t * Returns array of child items as generic Objects\r\n\t * @return array of child items or empty array if item has no children \r\n\t */\r\n\tObject[] getChildArray();\r\n}", "List<String> getTrees();", "public String printTree() {\n printSideways();\n return \"\";\n }", "@VTID(6)\n mmarquee.automation.uiautomation.TreeScope treeScope();", "TreeStorage getTreeStorage();", "public interface TreeInterface extends SymmetricDigraphInterface {\r\n /** Return parent of a tree node.\r\n * @precondition nonNull(node)\r\n */\r\n public IRNode getParent(IRNode node);\r\n\r\n /** The location is a value used by an IRSequence\r\n * to locate an element. For IRArray, it is an integer.\r\n * @precondition nonNull(node)\r\n */\r\n public IRLocation getLocation(IRNode node);\r\n\r\n /** Return the root of a subtree.\r\n */\r\n public IRNode getRoot(IRNode subtree);\r\n\r\n /** Return an enumeration of nodes in the subtree\r\n * starting with leaves and working toward the node given.\r\n * A postorder traversal.\r\n */\r\n public Iteratable<IRNode> bottomUp(IRNode subtree);\r\n\r\n /** Return an enumeration of nodes in the subtree\r\n * starting with this node and working toward the leaves.\r\n * A preorder traversal.\r\n */\r\n public Iteratable<IRNode> topDown(IRNode subtree);\r\n}", "public void printTree() {\n\t\tSystem.out.println(printHelp(root));\r\n\t\t\r\n\t}", "public interface Node {\n\n\tLong getClsId();\n\n\tNode getParent();\n\n\tvoid setParent(Node p);\n\n\tNode[] getChildrenArray();\n\n\tList<Node> getChildrenList();\n\n\tvoid resetChildren(Node[] children);\n\n\tObject getValue(int attr);\n\n\tObject setValue(int attr, Object value);\n\n\tlong getLongValue(int attr);\n\n\tInteger getId();\n}", "public int getDepth();", "@Override\n public int getDepth() {\n return 0;\n }", "public RBTree() {\r\n\t\t// well its supposed just create a new Red Black Tree\r\n\t\t// Maybe create a new one that does a array of Objects\r\n\t}", "public interface TreeNode {\n Collection<TreeNode> getChildren();\n boolean isDirectory();\n}", "public interface INode {\n INode[] children();\n INode getParent();\n void setParent(INode parent);\n INode copySubTree();\n INode copyWholeTree();\n String getNodeChar();\n void setChildren(INode[] newKids);\n void setNodeChar(String c);\n INode getRoot();\n boolean isRoot();\n Bit getBit();\n void setBit(Bit bit);\n void tellChildAboutParent();\n INode addBrackets();\n INode removeBrackets();\n String toPlainText();\n}", "public abstract String describe(int depth);", "protected void makeTheTree(){\n\n structure.getRootNode().branchList.add(structure.getNode11());\n structure.getRootNode().branchList.add(structure.getNode12());\n structure.getRootNode().branchList.add(structure.getNode13());\n\n structure.getNode11().branchList.add(structure.getNode111());\n structure.getNode11().branchList.add(structure.getNode112());\n structure.getNode11().branchList.add(structure.getNode113());\n\n structure.getNode13().branchList.add(structure.getNode131());\n\n structure.getNode112().branchList.add(structure.getNode1121());\n\n }", "public int depth ();", "public static void main(String[] args) {\n\n\n\t\tArrayList<Node> N = new ArrayList<Node>();\n\t\t\n\t\t/*\n\t\t * ##### Encoding Model 2 ###### \n\t\t */\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the privilege nodes\n\t\t */\n\t\tfor(int i=1; i<7; i++)\n\t\t{\n\t\t\tN.add(new Node(\"p\"+i, 1));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the exploit nodes\t\t \n\t\t */\n\t\tfor(int i=1; i<8; i++)\n\t\t{\n\t\t\tN.add(new Node(\"e\"+i, 2));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the child nodes\n\t\t */\n\t\tfor(int i=1; i<12; i++)\n\t\t{\n\t\t\tN.add(new Node(\"c\"+i, 0));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Assigning the children and parent(s) for each node according to model 2\n\t\t */\n\t\t\n\t\tArrayList<Node> nil = new ArrayList<Node>();\n\t\t\n\t\tN.get(0).setParents(nil);\n\t\tN.get(0).addChild(N.get(6));\n\t\t\n\t\tN.get(6).addParent(N.get(0));\n\t\tN.get(6).addChild(N.get(1));\n\t\tN.get(6).addChild(N.get(13));\n\t\tN.get(6).addChild(N.get(14));\n\t\t\n\t\tN.get(1).addParent(N.get(6));\n\t\tN.get(1).addChild(N.get(7));\n\t\tN.get(1).addChild(N.get(8));\n\t\t\n\t\tN.get(7).addParent(N.get(1));\n\t\tN.get(7).addChild(N.get(15));\n\t\tN.get(7).addChild(N.get(2));\n\t\t\n\t\tN.get(2).addParent(N.get(7));\n\t\tN.get(2).addChild(N.get(10));\t\t\n\t\t\n\t\tN.get(8).addParent(N.get(1));\n\t\tN.get(8).addChild(N.get(16));\n\t\tN.get(8).addChild(N.get(3));\n\t\t\n\t\tN.get(3).addParent(N.get(8));\n\t\tN.get(3).addChild(N.get(9));\n\t\t\n\t\tN.get(10).addParent(N.get(2));\n\t\tN.get(10).addChild(N.get(5));\n\t\tN.get(10).addChild(N.get(19));\n\t\tN.get(10).addChild(N.get(20));\n\t\t\n\t\tN.get(9).addParent(N.get(3));\n\t\tN.get(9).addChild(N.get(4));\n\t\tN.get(9).addChild(N.get(17));\n\t\tN.get(9).addChild(N.get(18));\n\t\t\n\t\tN.get(4).addParent(N.get(9));\n\t\tN.get(4).addChild(N.get(12));\n\t\t\n\t\tN.get(5).addParent(N.get(10));\n\t\tN.get(5).addChild(N.get(11));\n\t\t\n\t\tN.get(12).addParent(N.get(4));\n\t\tN.get(12).addChild(N.get(22));\n\t\tN.get(12).addChild(N.get(23));\n\t\t\n\t\tN.get(11).addParent(N.get(5));\n\t\tN.get(11).addChild(N.get(21));\n\t\tN.get(11).addChild(N.get(23));\n\t\t\n\t\tN.get(13).addParent(N.get(6));\n\t\tN.get(14).addParent(N.get(6));\n\t\tN.get(15).addParent(N.get(7));\n\t\tN.get(16).addParent(N.get(8));\n\t\tN.get(17).addParent(N.get(9));\n\t\tN.get(18).addParent(N.get(9));\n\t\tN.get(19).addParent(N.get(10));\n\t\tN.get(20).addParent(N.get(10));\n\t\tN.get(21).addParent(N.get(11));\n\t\tN.get(22).addParent(N.get(12));\n\t\tN.get(23).addParent(N.get(11));\n\t\tN.get(23).addParent(N.get(12));\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the C,I,A values for each node\n\t\t */\n\t\t\n\t\tN.get(0).setImpacts(4, 4, 4);\n\t\tN.get(1).setImpacts(1, 2, 3);\n\t\tN.get(2).setImpacts(2, 2, 1);\n\t\tN.get(3).setImpacts(1, 2, 1);\n\t\tN.get(4).setImpacts(1, 1, 1);\n\t\tN.get(5).setImpacts(3, 2, 3);\n\t\tN.get(13).setImpacts(3,3,3);\n\t\tN.get(14).setImpacts(3,3,3);\n\t\tN.get(15).setImpacts(3,3,3);\n\t\tN.get(16).setImpacts(3,3,3);\n\t\tN.get(17).setImpacts(3,3,3);\n\t\tN.get(18).setImpacts(3,3,3);\n\t\tN.get(19).setImpacts(3,3,3);\n\t\tN.get(20).setImpacts(3,3,3);\n\t\tN.get(21).setImpacts(3,3,3);\n\t\tN.get(22).setImpacts(3,3,3);\n\t\tN.get(23).setImpacts(2,2,1);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*\n\t\t * This block helps see the setup of the whole tree. \n\t\t * Comment out if not required to see the parent children relationship of each node.\n\t\t */\n\t\t\n\t\tfor(int i=0; i<24; i++)\n\t\t{\n\t\t\tSystem.out.println(\"\\n\\n\" + N.get(i).getName() + \" < C=\" + N.get(i).getImpactC() + \", I=\" + N.get(i).getImpactI() + \", A=\" + N.get(i).getImpactA() + \" >\" );\n\t\t\tSystem.out.println(\"Parents: \");\n\t\t\tfor(int j=0; j<N.get(i).getParents().size(); j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getParents().get(j).getName() + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nChildren: \");\n\t\t\tfor(int k=0; k<N.get(i).getChildren().size(); k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getChildren().get(k).getName() + \" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * Calling the method which will perform the C,I,A impact analysis \n\t\t */\n\t\t\n\t\t//Node n = new Node(); //Commented out as extended Main to Node and declared impactAnalysis() as static \n\t\t\n\t\tImpactAnalyzer ia = new ImpactAnalyzer();\n\t\tia.analyze(2, 2, 1, N);\n\t\t\n\t\t\n\t\t\n\t}", "private static void demonstrateTreeOperation(IndexWord word) throws JWNLException {\n PointerTargetTree hyponyms = PointerUtils.getInstance().getHyponymTree(word.getSense(1));\n PointerTargetTreeNode rootnode = hyponyms.getRootNode();\n Synset rootsynset = rootnode.getSynset();\n System.out.println(rootsynset.getWord(0).getLemma());\n PointerTargetTreeNodeList childList = rootnode.getChildTreeList();\n PointerTargetTreeNode rootnode1=(PointerTargetTreeNode)childList.get(0);\n System.out.println(rootnode1.getSynset().getWord(0).getLemma());\n System.out.println(\"Hyponyms of \\\"\" + word.getLemma() + \"\\\":\");\n hyponyms.print();\n }", "public String makeTree() {\r\n // Create a stack to store the files/directories in the tree\r\n Stack<DirectoryTreeNode> itemStack = new Stack<>();\r\n // Initialize a string variable to store the tree diagram\r\n String tree = \"\";\r\n // Push the root directory into the stack\r\n itemStack.push(this.rootDir);\r\n\r\n // Loop through the items in the Stack until all the items have been\r\n // traversed (this is similar to the pre-order traversal of the tree)\r\n while (!itemStack.isEmpty()) {\r\n // Get the item on the top of the stack and store it in current\r\n DirectoryTreeNode current = (DirectoryTreeNode) itemStack.pop();\r\n // Get the number of tabs required in the output for this item\r\n int numTabs = this.getNumberOfAncestors((E) current);\r\n // Get the string of tabs needed to put before current's name\r\n String tabs = this.getNumberOfTabs(numTabs);\r\n // Add the required number of tabs, the current item's of name and a\r\n // newline\r\n tree += tabs + current.getName() + \"\\n\";\r\n\r\n // Check if current is a Directory (in which case it may have\r\n // sub directories and files)\r\n if (current instanceof Directory) {\r\n // Get the list of files and directories of current directory\r\n ArrayList<DirectoryTreeNode> contents =\r\n ((Directory) current).getContents();\r\n // Loop through the contents of current and add them to the stack\r\n for (int i = contents.size() - 1; i >= 0; i--) {\r\n itemStack.add(contents.get(i));\r\n }\r\n }\r\n }\r\n // Return the generated tree diagram\r\n return tree;\r\n }", "private CategoryView buildComplicatedExpectedTree() {\n\n CategoryView root = new CategoryView(\"ROOT\");\n CategoryView a = new CategoryView(\"a\");\n CategoryView b = new CategoryView(\"b\");\n CategoryView c = new CategoryView(\"c\");\n CategoryView d = new CategoryView(\"d\");\n CategoryView e = new CategoryView(\"e\");\n\n root.addChild(a);\n root.addChild(e);\n root.addChild(new CategoryView(\"f\"));\n root.addChild(new CategoryView(\"g\"));\n root.addChild(new CategoryView(\"z\"));\n a.addChild(b);\n b.addChild(c);\n a.addChild(c);\n c.addChild(d);\n d.addChild(e);\n c.addChild(e);\n\n root.addChild(new CategoryView(\"1\") {{\n addChild(new CategoryView(\"2\") {{\n addChild(new CategoryView(\"3\"));\n }});\n }});\n root.addChild(new CategoryView(\"x\") {{\n addChild(new CategoryView(\"y\"));\n }});\n\n return root;\n }", "public AvlTree<E> printTreeLevel(){\n printTreeLevel(root);\n return this;\n }", "public interface TreeModel {\n\n double checkAccuracy(DataSource d);\n void crossValidate(DataSource testdata);\n void pessimisticPrune(double z);\n void printTree();\n\n}", "public void testBuildTreeDeepStructure() {\n TreeNode root = buildRootNodeFromFile(\"testWihManyLevels.js\");\n\n // Ensure the hierarchy is correct.\n assertEquals(\"suite1\", root.getNodeValue().getTestText());\n assertEquals(4, root.getChildCount());\n }", "public static ResolutionNode generateResolutionTree(){\n\t\tConnection con = null;\n\t\ttry {\n\t\t\tcon = getConnection();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t};\n\t\tResolutionNode tree = new ResolutionNode();\n\t\ttree.setAc_id(0);\n\t\ttree.setName(\"root\");\n\t\ttree.setPath(\"\");\n\t\ttree.setSupertype(tree);\n\t\tResolutionNode r = generateResolutionTree(0, tree, new ArrayList<ContextParameterType>(), new ArrayList<QualityParameterType>(), new ArrayList<CostParameterType>(), new ArrayList<RankingParameterType>(), \"root\");\n\t\tcloseConnnection(con);\n\t\treturn r;\n\t}", "public Hierarchy() {\n }", "public abstract List<Node> getChildNodes();", "public AvlTree<E> printTree(){\n printTree(root);\n return this;\n }", "@Test\n public void visualiseTree()\n {\n System.out.println(avlTree.toString());\n }", "private HierarchyNode processHierarchy(ArrayList hierarchy) {\r\n HierarchyNode node = new HierarchyNode((Object)hierarchy.get(0));\r\n HierarchyNode child;\r\n for(int i=1; i<hierarchy.size(); i++) {\r\n Object nodeSpecifier = hierarchy.get(i);\r\n if (nodeSpecifier instanceof ArrayList) { // Ie node with children\r\n child = processHierarchy((ArrayList)nodeSpecifier);\r\n child.setAllowsChildren(true);\r\n }\r\n else {\r\n child = new HierarchyNode(nodeSpecifier); // Ie Leaf\r\n child.setAllowsChildren(false);\r\n }\r\n node.add(child);\r\n }\r\n return(node);\r\n }", "Collection<Tree<V, E>> getTrees();", "public String toString() {\n return tree.toString();\n }", "private Content getClassInheritenceTree(Type type) {\n Type sup;\n HtmlTree classTreeUl = new HtmlTree(HtmlTag.UL);\n classTreeUl.addStyle(HtmlStyle.inheritance);\n Content liTree = null;\n do {\n sup = Util.getFirstVisibleSuperClass(\n type instanceof ClassDoc ? (ClassDoc) type : type.asClassDoc(),\n configuration);\n if (sup != null) {\n HtmlTree ul = new HtmlTree(HtmlTag.UL);\n ul.addStyle(HtmlStyle.inheritance);\n ul.addContent(getTreeForClassHelper(type));\n if (liTree != null)\n ul.addContent(liTree);\n Content li = HtmlTree.LI(ul);\n liTree = li;\n type = sup;\n }\n else\n classTreeUl.addContent(getTreeForClassHelper(type));\n }\n while (sup != null);\n if (liTree != null)\n classTreeUl.addContent(liTree);\n return classTreeUl;\n }", "private void createTree() {\n\n // custom brown color\n Color brown = new Color(149, 99, 57);\n\n // trunk\n NscComponent trunk = new NscRectangle(49, 164, 13, 51);\n createShape(trunk, brown, true);\n\n // branches\n drawLine(50, 125, 50, 165, 10, brown);\n drawLine(25, 125, 50, 165, 10, brown);\n drawLine(75, 125, 50, 165, 10, brown);\n\n // branch outlines\n drawLine(49, 125, 49, 150, 1, Color.black);\n drawLine(60, 125, 60, 150, 1, Color.black);\n drawLine(24, 125, 49, 165, 1, Color.black);\n drawLine(35, 125, 50, 150, 1, Color.black);\n drawLine(85, 125, 60, 165, 1, Color.black);\n drawLine(74, 125, 60, 150, 1, Color.black);\n\n // leafs\n NscEllipse leafs2 = new NscEllipse(0, 5, 60, 122);\n NscEllipse leafs3 = new NscEllipse(50, 5, 60, 122);\n NscEllipse leafs = new NscEllipse(25, 0, 60, 127);\n NscEllipse leafs4 = new NscEllipse(25, 1, 60, 124);\n createShape(leafs2, treeColor, true);\n createShape(leafs3, treeColor, true);\n createShape(leafs, treeColor, true);\n createShape(leafs4, treeColor, false);\n\n repaint();\n }", "private TreeNode createTree() {\n // Map<String, String> map = new HashMap<>();\n // map.put(\"dd\", \"qq\");\n // 叶子节点\n TreeNode G = new TreeNode(\"G\");\n TreeNode D = new TreeNode(\"D\");\n TreeNode E = new TreeNode(\"E\", G, null);\n TreeNode B = new TreeNode(\"B\", D, E);\n TreeNode H = new TreeNode(\"H\");\n TreeNode I = new TreeNode(\"I\");\n TreeNode F = new TreeNode(\"F\", H, I);\n TreeNode C = new TreeNode(\"C\", null, F);\n // 构造根节点\n TreeNode root = new TreeNode(\"A\", B, C);\n return root;\n }", "public static String printTree()\n {\n \tString tree = \"\";\n ArrayList<String> letters = converter.toArrayList();\n for(int i = 0; i < letters.size(); i++)\n {\n tree += letters.get(i);\n if(i + 1 < letters.size())\n \t tree += \" \";\n }\n \n return tree;\n }", "@Override\r\n\tpublic JTree getJTree() {\r\n\t\tif (jTree == null) {\r\n\t\t\tjTree = new JLagerTree();\r\n\t\t\tjTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION );\r\n\t\t\tGenericNode root = new GenericNode(null);\r\n\t\t\tjTree.setModel(getTreeModel(root));\r\n\t\t\tjTree.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\r\n//\t\t\tjTree.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {\r\n//\t\t\t\tpublic void valueChanged(javax.swing.event.TreeSelectionEvent e) {\r\n//\t\t\t\t\ttreeValueChanged(e,BaugruppeTreePaneView.this.getJTree());\r\n////\t\t\t\t\tSystem.out.println(\"valueChanged()\"); // TODO Auto-generated Event stub valueChanged()\r\n//\t\t\t\t}\r\n//\t\t\t});\r\n//\t\t\tjTree.addTreeSelectionListener(getTreeSelectionListner());\r\n\t\t\t//Aussehen von JTree\r\n\t\t\tjTree.setCellRenderer(new AnfoderungTreeRenderer());\r\n\t\t\tjTree.setToolTipText(\"\");\r\n\t\t\t\r\n\t\t}\r\n\t\treturn jTree;\r\n\t}", "public interface Node extends Serializable {\n\n\tvoid setOwner(Object owner);\n Object getOwner();\n\n String getName();\n Node getChild(int i);\n List<Node> childList();\n\n Node attach(int id, Node n) throws VetoTypeInduction;\n void induceOutputType(Class type) throws VetoTypeInduction;\n int getInputCount();\n\tClass getInputType(int id);\n List<Class> getInputTypes();\n Class getOutputType();\n Tuple.Two<Class,List<Class>> getType();\n\n Object evaluate();\n\n boolean isTerminal();\n\n <T extends Node> T copy();\n String debugString(Set<Node> set);\n}", "public List<TreeNode> getNotes ()\r\n {\r\n return children;\r\n }", "public HierarchicalLayoutAlgorithm(UndoSupport undoSupport) {\n\t\tsuper(undoSupport, \"hierarchical\", \"Hierarchical Layout\",true);\t\t\n\t}", "public interface ViewNode extends Scope {\n\n /**\n * Gets the name associated with this node.\n * @return name or {@code null} if none was specified\n */\n String getName();\n\n /**\n * Gets the namespace associated with this node.\n * @return namespace or {@code null} if none was specified\n */\n String getNamespace();\n\n /**\n * Gets the model type associated with this node.\n * @return model type or {@code null} if none was specified\n */\n Class<?> getModelType();\n\n /**\n * Gets the parent of this view node.\n * @return parent node or {@code null} if this node has no parent\n */\n ViewNode getParent();\n\n}", "@Override\n public int getDepth() {\n return 680;\n }", "public List<Topic> getTopicTree(Topic topic);", "@DISPID(1611006012) //= 0x6006003c. The runtime will prefer the VTID if present\n @VTID(87)\n boolean relationsNodeInTree();", "public void dumpTree() {\n\t\tsendMessage(\"/g_dumpTree\", new Object[] { 0, 0 });\n\t}", "public abstract Type treeCopy();", "public TreeImpl(T dato) {\r\n\t\traiz = new NodeImpl<T>(dato, null);// El null dice que es raiz\r\n\t}", "public static Node createLargeTree() {\n final int dcCount = 2;\n final int rackCount = 6;\n final int snCount = 6;\n final int hdCount = 12;\n\n int id = 0;\n // root\n Node root = new Node();\n root.setName(\"root\");\n root.setId(id++);\n root.setType(Types.ROOT);\n root.setSelection(Selection.STRAW);\n // DC\n List<Node> dcs = new ArrayList<Node>();\n for (int i = 1; i <= dcCount; i++) {\n Node dc = new Node();\n dcs.add(dc);\n dc.setName(\"dc\" + i);\n dc.setId(id++);\n dc.setType(Types.DATA_CENTER);\n dc.setSelection(Selection.STRAW);\n dc.setParent(root);\n // racks\n List<Node> racks = new ArrayList<Node>();\n for (int j = 1; j <= rackCount; j++) {\n Node rack = new Node();\n racks.add(rack);\n rack.setName(dc.getName() + \"rack\" + j);\n rack.setId(id++);\n rack.setType(StorageSystemTypes.RACK);\n rack.setSelection(Selection.STRAW);\n rack.setParent(dc);\n // storage nodes\n List<Node> sns = new ArrayList<Node>();\n for (int k = 1; k <= snCount; k++) {\n Node sn = new Node();\n sns.add(sn);\n sn.setName(rack.getName() + \"sn\" + k);\n sn.setId(id++);\n sn.setType(StorageSystemTypes.STORAGE_NODE);\n sn.setSelection(Selection.STRAW);\n sn.setParent(rack);\n // hds\n List<Node> hds = new ArrayList<Node>();\n for (int l = 1; l <= hdCount; l++) {\n Node hd = new Node();\n hds.add(hd);\n hd.setName(sn.getName() + \"hd\" + l);\n hd.setId(id++);\n hd.setType(StorageSystemTypes.DISK);\n hd.setWeight(100);\n hd.setParent(sn);\n }\n sn.setChildren(hds);\n }\n rack.setChildren(sns);\n }\n dc.setChildren(racks);\n }\n root.setChildren(dcs);\n return root;\n }", "public void printTree(){\n if(root!=null) // มี node ใน tree\n {\n super.printTree(root); // ปริ้นโดยส่ง node root ไป static fn\n }\n else\n {\n System.out.println(\"Empty tree!!!\");\n }\n }", "public void initTreeModel() {\n\t\t\n\t}", "public void initTreeModel() {\n\t\t\n\t}", "protected void readOntology() {\r\n\t\ttry \r\n\t\t{\r\n\t\t\troot.removeAllChildren();\r\n\t\t\tIterator<String> rc = ob.listRootClasses();\r\n\t\t\twhile(rc.hasNext())\r\n\t\t\t{\r\n\t\t\t\tDefaultMutableTreeNode node = createNode(rc.next(), ob, 0);\r\n\t\t\t\troot.add(node);\r\n\t\t\t}\r\n\t\t\tontologyTree.setModel(new DefaultTreeModel(root));\r\n\t ontologyTree.expandRow(0);\r\n\t \r\n\t\t} catch (Exception e) {\r\n\t\t\torg.apache.commons.logging.LogFactory.getLog(this.getClass()).error(e);\r\n\t\t}\r\n\t}", "public Vector<Node> GetAdditionalSubNodes();", "public TreeModel getTreeModel() {\r\n return ModelBuilder.getSingleton().buildTreeModelAsync(this);\r\n }", "public void printTree() {\n Object[] nodeArray = this.toArray();\n for (int i = 0; i < nodeArray.length; i++) {\n System.out.println(nodeArray[i]);\n }\n }", "public nodeTree getHijoDer (){\n return this._hDer;\n }", "private void showTree(EarleyParser.Node root,int level, String previous) {\n\t\tSystem.out.print(level);\n\t\tfor(int i = 0; i <= level; i++)\n\t\t\tSystem.out.print(\" \");\n\t\tSystem.out.println(root.text);\n\t\tString cur = root.text;\n\t\twhile(graph.containsVertex(cur)) {\n\t\t\tcur = cur + \" \";\n\t\t}\n\n\t\tgraph.addVertex(cur);\n\t\tif(previous != null) {\n\t\t\tgraph.addEdge(edgeid++, previous, cur);\n\t\t}\n\t\tfor(EarleyParser.Node sibling : root.siblings) {\n\t\t\tshowTree(sibling, level+1, cur);\n\t\t}\n\t}", "public Node readTree() {\n boolean totuusarvo = b.readBoolean();\n if (totuusarvo == true) {\n return new Node(b.readShort(), -1, null, null);\n } else {\n return new Node(\"9000\", -1, readTree(), readTree());\n }\n }", "public ResultMap<BaseNode> listChildren();", "public interface GNode{\n\n\tpublic String getName();\n\tpublic GNode[] getChildren();\n\tpublic ArrayList<GNode> walkGraph(GNode parent);\n\tpublic ArrayList<ArrayList<GNode>> paths(GNode parent);\n\n}", "public static void main(String[] args) {\n TreeNode node = new TreeNode();\n node.value = 1;\n node.left = new TreeNode();\n node.left.value = 2;\n node.right = new TreeNode();\n node.right.value = 3;\n node.left.left = new TreeNode();\n node.left.left.value = 4;\n node.left.right = new TreeNode();\n node.left.right.value = 5;\n node.right.left = new TreeNode();\n node.right.left.value = 6;\n node.right.right = new TreeNode();\n node.right.right.value = 7;\n// System.out.println(mirro(node).value);\n// System.out.println(mirro(node).left.value);\n// System.out.println(Arrays.toString(LevelPrintTree.levelPrint(mirro(node))));\n\n recur(node);\n\n }", "private void initModel() {\t\n \t\t// build default tree structure\n \t\tif(treeMode == MODE_DEPENDENCY) {\n \t\t\t// don't re-init anything\n \t\t\tif(rootDependency == null) {\n \t\t\t\trootDependency = new DefaultMutableTreeNode();\n \t\t\t\tdepNode = new DefaultMutableTreeNode(); // dependent objects\n \t\t\t\tindNode = new DefaultMutableTreeNode();\n \t\t\t\tauxiliaryNode = new DefaultMutableTreeNode();\n \t\t\t\t\n \t\t\t\t// independent objects \n \t\t\t\trootDependency.add(indNode);\n \t\t\t\trootDependency.add(depNode);\n \t\t\t}\n \t\t\t\n \t\t\t// set the root\n \t\t\tmodel.setRoot(rootDependency);\n \n \t\t\t// add auxiliary node if neccessary\n \t\t\tif(showAuxiliaryObjects) {\n \t\t\t\tif(!auxiliaryNode.isNodeChild(rootDependency)) {\n \t\t\t\t\tmodel.insertNodeInto(auxiliaryNode, rootDependency, rootDependency.getChildCount());\n \t\t\t\t}\n \t\t\t}\n \t\t} else {\n \t\t\t// don't re-init anything\n \t\t\tif(rootType == null) {\n \t\t\t\trootType = new DefaultMutableTreeNode();\n \t\t\t\ttypeNodesMap = new HashMap<String, DefaultMutableTreeNode>(5);\n \t\t\t}\n \t\t\t\n \t\t\t// always try to remove the auxiliary node\n \t\t\tif(showAuxiliaryObjects && auxiliaryNode != null) {\n \t\t\t\tmodel.removeNodeFromParent(auxiliaryNode);\n \t\t\t}\n \n \t\t\t// set the root\n \t\t\tmodel.setRoot(rootType);\n \t\t}\n \t}", "@Override\n public String toString() { return root.toString(); }", "public List<Component> getAllTree() {\n\t\tList<Component> ret = new ArrayList<>();\n\t\tret.add(this);\n\t\tfor (Component c : getChilds()) {\n\t\t\tList<Component> childs = c.getAllTree();\n\t\t\t// retire les doublons\n\t\t\tfor (Component c1 : childs) {\n\t\t\t\tif (!ret.contains(c1)) {\n\t\t\t\t\tret.add(c1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "private void getTreeShape() {\n int treeSizeInBytes = (int) (Math.ceil(treeSize / (double) Byte.SIZE));\n // converting tree shape in bytes to the bitset;\n BitSet bs = BitSet.valueOf(Arrays.copyOfRange(buffer.array(), bufferPosition, bufferPosition + treeSizeInBytes));\n bufferPosition += treeSizeInBytes;\n\n int treeLeavesAmount = 0;\n for (int i = 0; i < treeSize; i++) {\n boolean bit = bs.get(i);\n if (!bit) {\n treeLeavesAmount += 1;\n }\n treeShape.add(bit);\n }\n\n // adding tree leaves to the linked list;\n for (int i = bufferPosition; i < bufferPosition + treeLeavesAmount; i++) {\n treeLeaves.add(buffer.get(i));\n }\n // increasing buffer position for the amount of leaves(unique bytes);\n bufferPosition = bufferPosition + treeLeavesAmount;\n }", "public void recomputeTree() {\n\t\tsuperRoot = factory.createTreeNode(null, this);\n\t\tlayoutToTree.put(null, superRoot);\n\t\tcreateTrees(context.getNodes());\n\t}", "public String getTree ( ) {\n\n String tree;\n StringWriter s = new StringWriter();\n PrintWriter out = null;\n\n try {\n out = new PrintWriter(s);\n } catch ( Exception ex ) {};\n\n program.printIndividual(param.Parameters.STATE, out);\n\n tree = s.toString();\n String list2[] = tree.split(\"\\n\");\n\n out.close();\n try { s.close(); } catch ( Exception e ) {};\n\n return list2[list2.length - 1];\n\n }", "public void summarize () {\n\n TreeNodeVisitor visitor = new TreeNodeVisitor();\n traversal (visitor);\n visitor.log();\n \n }", "public JTreeOperator treePaletteContentsTree() {\n if (_treePaletteContentsTree==null) {\n _treePaletteContentsTree = new JTreeOperator(this);\n }\n return _treePaletteContentsTree;\n }", "public RBTree() {\n\t\troot = null;\n\t\tdrawer = new RBTreeDrawer();\n\t}", "@Override\n\tpublic <K extends BasePojo> List<K> getTreeViewList() throws Exception {\n\t\treturn null;\n\t}", "public static RootNode buildTree() {\n\t\t//1\n\t\tfinal RootNode root = new RootNode();\n\t\t\n\t\t//2\n\t\tEdgeNode a = attachEdgenode(root, \"a\");\n\t\tEdgeNode daa = attachEdgenode(root, \"daa\");\n\t\t\n\t\t//3\n\t\tExplicitNode e = Builder.buildExplicit();\n\t\te.setPreviousNode(a);\n\t\ta.addChildNode(e);\n\t\t\n\t\tattachLeafNode(daa, \"2\");\n\t\t\n\t\t//4\n\t\tEdgeNode a_e = attachEdgenode(e, \"a\");\n\t\tEdgeNode daa_e = attachEdgenode(e, \"daa\");\t\t\n\t\t\n\t\t//5\n\t\tattachLeafNode(a_e, \"3\");\n\t\tattachLeafNode(daa_e, \"1\");\n\t\treturn root;\n\t}", "public Tree()\n\t{\n\t\tsuper(\"Tree\", \"tree\", 0);\n\t}" ]
[ "0.63645625", "0.6279453", "0.6262285", "0.62510204", "0.6184302", "0.6171037", "0.61447847", "0.6122958", "0.6086583", "0.6073309", "0.60432607", "0.6035607", "0.60287374", "0.6018598", "0.6012241", "0.5998084", "0.59760004", "0.5968327", "0.5958283", "0.5952498", "0.5928761", "0.5918371", "0.5912809", "0.5883834", "0.5878368", "0.58753955", "0.5871089", "0.58667254", "0.58511907", "0.58494747", "0.58478814", "0.58398414", "0.58327466", "0.5831881", "0.58307374", "0.58306056", "0.58279425", "0.5826843", "0.5820571", "0.58120304", "0.57946354", "0.57941514", "0.57920265", "0.57852685", "0.5780792", "0.57580316", "0.575358", "0.5749972", "0.57443804", "0.5739897", "0.5730444", "0.5723561", "0.57211614", "0.5720754", "0.57171756", "0.57052004", "0.570151", "0.5700506", "0.5698414", "0.56948996", "0.5680261", "0.5679511", "0.56780905", "0.56768054", "0.5661759", "0.56475365", "0.5647193", "0.56430614", "0.563983", "0.56391555", "0.56390107", "0.5630381", "0.56301403", "0.56127083", "0.5606912", "0.55953413", "0.55887616", "0.5587332", "0.5587332", "0.55844265", "0.5580065", "0.5576583", "0.5569573", "0.5565365", "0.556411", "0.55632985", "0.556222", "0.55589", "0.55570275", "0.5549529", "0.5549503", "0.5542099", "0.5529926", "0.55253303", "0.552165", "0.5521113", "0.55180967", "0.5515583", "0.5512232", "0.5511655", "0.55086523" ]
0.0
-1
The Factory for the model. It provides a create method for each nonabstract class of the model.
public interface HdbSequenceFactory extends EFactory { /** * The singleton instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ HdbSequenceFactory eINSTANCE = com.sap.xsk.models.hdbsequence.hdbSequence.impl.HdbSequenceFactoryImpl.init(); /** * Returns a new object of class '<em>Model</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Model</em>'. * @generated */ HdbSequenceModel createHdbSequenceModel(); /** * Returns a new object of class '<em>List String</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>List String</em>'. * @generated */ ListString createListString(); /** * Returns a new object of class '<em>Elements</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Elements</em>'. * @generated */ HdbSequenceElements createHdbSequenceElements(); /** * Returns the package supported by this factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the package supported by this factory. * @generated */ HdbSequencePackage getHdbSequencePackage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "TestModelFactory getTestModelFactory();", "public UsermodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public SqliteModelFactoryImpl()\n {\n super();\n }", "public PetrinetmodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "ModelsFactory getModelsFactory();", "public ParsedmodelFactoryImpl() {\n\t\tsuper();\n\t}", "protected abstract IModel<T> createModel(T object);", "public interface ConfigModelFactory\n{\n\t/**\n\t * Create an instance of the <code>ConfigModel</code>\n\t *\n\t * @return an instance of the configuration model\n\t */\n\tConfigModel createInstanceOfConfigModel();\n\n\t/**\n\t * Create an instance of the <code>InstanceModel</code>\n\t *\n\t * @return an instance of the instance model\n\t */\n\tInstanceModel createInstanceOfInstanceModel();\n\n\t/**\n\t * Create an instance of the <code>CsticModel</code>\n\t *\n\t * @return an instance of the characteristic model\n\t */\n\tCsticModel createInstanceOfCsticModel();\n\n\t/**\n\t * Create an instance of the <code>CsticValueModel</code>\n\t *\n\t * @param valueType\n\t * The containing Cstic value type\n\t * @return an instance of the characteristic value model\n\t */\n\tCsticValueModel createInstanceOfCsticValueModel(int valueType);\n\n\t/**\n\t * Create an instance of the <code>CsticGroupModel</code>\n\t *\n\t * @return an instance of the characteristic group model\n\t */\n\tCsticGroupModel createInstanceOfCsticGroupModel();\n\n\n\t/**\n\t * Create an instance of the <code>PriceModel</code>\n\t *\n\t * @return an instance of the price model\n\t */\n\tPriceModel createInstanceOfPriceModel();\n\n\t/**\n\t * Create an instance of the <code>SolvableConflictModel</code>\n\t *\n\t * @return an instance of the Solvable Conflict Model\n\t */\n\tSolvableConflictModel createInstanceOfSolvableConflictModel();\n\n\t/**\n\t * Create an instance of the <code>ConflictingAssumptionModel</code>\n\t *\n\t * @return an instance of the Conflicting Assumption Model\n\t */\n\tConflictingAssumptionModel createInstanceOfConflictingAssumptionModel();\n\n\t/**\n\t * Create an instance of the <code>PriceModel</code>\n\t *\n\t * @return an instance of the price model\n\t */\n\tPriceModel getZeroPriceModel();\n\n\t/**\n\t * Create an instance of the <code>PriceSummaryModel</code>\n\t *\n\t * @return an instance of the price summary model\n\t */\n\tPriceSummaryModel createInstanceOfPriceSummaryModel();\n\n\t/**\n\t * @return a builder to construct {@link ProductConfigMessage} objects\n\t */\n\tdefault ProductConfigMessageBuilder createProductConfigMessageBuilder()\n\t{\n\t\treturn new ProductConfigMessageBuilder();\n\t}\n\n\t/**\n\t * Create an instance of the <code>ProductConfigMessage</code><br>\n\t * uses the <code>DEFAULT</code> ProductConfigMessageSourceSubType\n\t *\n\t * @param message\n\t * localized message\n\t * @param key\n\t * message key, should be unique together with message source\n\t * @param severity\n\t * message severity\n\t * @param source\n\t * message source, should be unique together with message key\n\t * @return a message instance\n\t * @deprecated since 18.08.0 - use {@link ProductConfigMessageBuilder} instead\n\t */\n\t@Deprecated(since = \"1808\", forRemoval=true)\n\tdefault ProductConfigMessage createInstanceOfProductConfigMessage(final String message, final String key,\n\t\t\tfinal ProductConfigMessageSeverity severity, final ProductConfigMessageSource source)\n\t{\n\t\treturn createInstanceOfProductConfigMessage(message, key, severity, source, ProductConfigMessageSourceSubType.DEFAULT);\n\t}\n\n\t/**\n\t * Create an instance of the <code>ProductConfigMessage</code><br>\n\t *\n\t * @param message\n\t * localized message\n\t * @param key\n\t * message key, should be unique together with message source\n\t * @param severity\n\t * message severity\n\t * @param source\n\t * message source, should be unique together with message key\n\t * @param subType\n\t * optional sub type of the message source\n\t * @return a message instance\n\t * @deprecated since 18.08.0 - use {@link ProductConfigMessageBuilder} instead\n\t */\n\t@Deprecated(since = \"1808\", forRemoval=true)\n\tProductConfigMessage createInstanceOfProductConfigMessage(String message, String key, ProductConfigMessageSeverity severity,\n\t\t\tProductConfigMessageSource source, ProductConfigMessageSourceSubType subType);\n\n\n\t/**\n\t * Create an instance of the <code>VariantConditionModel</code>\n\t *\n\t * @return an instance of the variant condition model\n\t */\n\tVariantConditionModel createInstanceOfVariantConditionModel();\n\n\t/**\n\t * @return class name of the {@link PriceSummaryModel} implementation\n\t */\n\tString getTargetClassNamePriceSummaryModel();\n\n\n\t/**\n\t * @return class name of the {@link PriceModel} implementation\n\t */\n\tString getTargetClassNamePriceModel();\n\n\t/**\n\t * @return class name of the {@link CsticGroupModel} implementation\n\t */\n\tString getTargetClassNameCsticGroupModel();\n\n\t/**\n\t * @return class name of the {@link CsticValueModel} implementation\n\t */\n\tString getTargetClassNameCsticValueModel();\n\n\t/**\n\t * @return class name of the {@link CsticModel} implementation\n\t */\n\tString getTargetClassNameCsticModel();\n\n\t/**\n\t * @return class name of the {@link InstanceModel} implementation\n\t */\n\tString getTargetClassNameInstanceModel();\n\n\t/**\n\t * @return class name of the {@link ConfigModel} implementation\n\t */\n\tString getTargetClassNameConfigModel();\n\n\t/**\n\t * @return class name of the {@link SolvableConflictModel} implementation\n\t */\n\tString getTargetClassNameSolvableConflictModel();\n\n\t/**\n\t * @return class name of the {@link ConflictingAssumptionModel} implementation\n\t */\n\tString getTargetClassNameConflictingAssumptionModel();\n\n\t/**\n\t * @return class name of the {@link VariantConditionModel} implementation\n\t */\n\tString getTargetClassNameVariantConditionModel();\n}", "@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}", "public Factory() {\n\t\tsuper();\n\t}", "public interface ModelFactory <ModelObject> {\n public void createElement(ModelObject object);\n}", "EisModel createEisModel();", "BehaviouralModelFactory getBehaviouralModelFactory();", "CsticModel createInstanceOfCsticModel();", "public abstract void create();", "InstanceModel createInstanceOfInstanceModel();", "public M create(P model);", "void create(Model model) throws Exception;", "public void create(){}", "public static MusicModel createModel() {\n return new MusicModelImpl();\n }", "public interface AbstractFactory {\n /**\n * Create cpu cpu.\n *\n * @return the cpu\n */\n Cpu createCpu();\n\n /**\n * Create main board main board.\n *\n * @return the main board\n */\n MainBoard createMainBoard();\n}", "public Model createBaseModel() {\n return ModelFactory.createDefaultModel();\n }", "public interface AbstractFactory<T> {\n /**\n * Create a new Object of type T\n * @return the created object\n */\n T create();\n}", "private ConcreteFactory() {}", "DataModel createDataModel();", "public Factory() {\n\t\tclassMap = new TreeMap<String,Class<T> >();\n\t}", "public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }", "public interface Factory<T> {\n T create();\n}", "T create();", "T create();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "public static SqliteModelFactory init()\n {\n try\n {\n SqliteModelFactory theSqliteModelFactory = (SqliteModelFactory)EPackage.Registry.INSTANCE.getEFactory(SqliteModelPackage.eNS_URI);\n if (theSqliteModelFactory != null)\n {\n return theSqliteModelFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new SqliteModelFactoryImpl();\n }", "interface Factory {\r\n /**\r\n * Create an instance of an agenda view model with the given saved\r\n * instance state.\r\n *\r\n * @param savedInstanceState previously saved state of the view model\r\n * @return the created agenda view model\r\n */\r\n AgendaViewModel create(Bundle savedInstanceState);\r\n }", "private EntityFactory() {}", "Klassenstufe createKlassenstufe();", "public interface Factory {\n Product create();\n}", "public <T> T createModel(Class<T> clazz) throws CreateModelException {\n return createModel(clazz, true);\n }", "@Override\n\tpublic void create() {\n\n\t}", "public abstract void create(T t);", "For createFor();", "CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }", "public static Factory factory() {\n return ext_dbf::new;\n }", "public interface Factory {\r\n}", "PriceModel createInstanceOfPriceModel();", "ZenModel createZenModel();", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public interface Creator<T> {\n\t\tpublic T create() throws APIException;\n\n\t\tpublic void destroy(T t);\n\n\t\tpublic boolean isValid(T t);\n\n\t\tpublic void reuse(T t);\n\t}", "public EntityFactoryImpl() {\n\t\tsuper();\n\t}", "DomainModel createDomainModel();", "@Override\n\tpublic void create () {\n\n\t}", "public interface Factory {\n LeiFeng createLeiFeng();\n}", "public void create() {\n\t\t\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "public static QuinzicalModel createInstance() throws Exception {\n\t\tif (instance == null) {\n\t\t\tinstance = new QuinzicalModel();\n\t\t}\n\t\treturn instance;\n\t}", "@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static PetrinetmodelFactory init() {\r\n\t\ttry {\r\n\t\t\tPetrinetmodelFactory thePetrinetmodelFactory = (PetrinetmodelFactory)EPackage.Registry.INSTANCE.getEFactory(PetrinetmodelPackage.eNS_URI);\r\n\t\t\tif (thePetrinetmodelFactory != null) {\r\n\t\t\t\treturn thePetrinetmodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new PetrinetmodelFactoryImpl();\r\n\t}", "protected abstract ENTITY createEntity();", "public static UsermodelFactory init() {\r\n\t\ttry {\r\n\t\t\tUsermodelFactory theUsermodelFactory = (UsermodelFactory)EPackage.Registry.INSTANCE.getEFactory(UsermodelPackage.eNS_URI);\r\n\t\t\tif (theUsermodelFactory != null) {\r\n\t\t\t\treturn theUsermodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new UsermodelFactoryImpl();\r\n\t}", "ConfigModel createInstanceOfConfigModel();", "public abstract T create(T obj);", "public static Factory factory() {\n return ext_h::new;\n }", "public interface DebuggerModelFactory\n\t\textends ExtensionPoint, ConfigurableFactory<DebuggerObjectModel> {\n\n\t/**\n\t * Get the priority for selecting this factory by default for the given program\n\t * \n\t * <p>\n\t * A default factory is selected when the current factory and the last successful factory are\n\t * incompatible with the current program, or if this is the very first time connecting. Of those\n\t * factories compatible with the current program, the one with the highest priority (larger\n\t * numerical value) is selected. If none are compatible, then the current selection is left as\n\t * is.\n\t * \n\t * <p>\n\t * Note that negative priorities imply the factory is not compatible with the given program or\n\t * local system.\n\t * \n\t * @param program the current program, or null\n\t * @return the priority, higher values mean higher priority\n\t */\n\tdefault int getPriority(Program program) {\n\t\treturn 0;\n\t}\n\n\t/**\n\t * Check if this factory is compatible with the local system and given program.\n\t * \n\t * <p>\n\t * <b>WARNING:</b> Implementations should not likely override this method. If one does, it must\n\t * behave in the same manner as given in this default implementation: If\n\t * {@link #getPriority(Program)} would return a non-negative result for the program, then this\n\t * factory is compatible with that program. If negative, this factory is not compatible.\n\t * \n\t * @param program the current program, or null\n\t * @return true if compatible\n\t */\n\tdefault boolean isCompatible(Program program) {\n\t\treturn getPriority(program) >= 0;\n\t}\n}", "public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }", "public interface IFactory {\n IUser createUser();\n IDepartment createDepartment();\n}", "public static ParsedmodelFactory init() {\n\t\ttry {\n\t\t\tParsedmodelFactory theParsedmodelFactory = (ParsedmodelFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://parsedmetadata/1.0\"); \n\t\t\tif (theParsedmodelFactory != null) {\n\t\t\t\treturn theParsedmodelFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ParsedmodelFactoryImpl();\n\t}", "public interface SerializerFactory<T> {\n\t\n\t/** the method creates a new MessageSerializer.\n\t * \n\t * @return new object that implements the MessageSerializer interface. \n\t */\n MessageSerializer<T> create();\n}", "public PiviFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "Factory<? extends T> buildPersonFactory(String type);", "public PedidoFactoryImpl() {\n\t\tsuper();\n\t}", "public ProyectoFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public interface Creator {\n public abstract Item factoryMethod();\n public abstract Item factoryMethod(String name);\n public abstract Item factoryMethod(String name, List<Flower> flowerList);\n}", "public abstract ProductFactory getFactory();", "public Model() {\n\t}", "public Model() {\n\t}", "public LanterneFactoryImpl() {\n\t\tsuper();\n\t}", "public interface Factory {\n Animal createAnimal();\n}", "public interface AbstractFactory {\n Bmw produceBmw();\n Benz produceBenz();\n}", "public MystFactoryImpl()\r\n {\r\n super();\r\n }", "public PertFactory() {\n for (Object[] o : classTagArray) {\n addStorableClass((String) o[1], (Class) o[0]);\n }\n }", "public interface IFactory<T extends MaterialCastingRecipe> {\n T create(ResourceLocation id, String group, @Nullable Ingredient cast, int itemCost, IMaterialItem result,\n boolean consumed, boolean switchSlots);\n }", "private VegetableFactory() {\n }", "protected MoneyFactory() {\n\t}", "public EnotationFactoryImpl() {\n\t\tsuper();\n\t}", "public EcoreFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public Model() {\n this(DSL.name(\"model\"), null);\n }", "public TypeAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = TypePackage.eINSTANCE;\n\t\t}\n\t}", "interface Create {}", "public GameDomainFactory() {\r\n\t\t\r\n\t\tCreateGameDomain = new HashMap<String, GameDomainFactory.gameDomainCreator>();\r\n\t\tCreateGameDomain.put(\"TicTacToe\" , new ticTacToeCreator());\r\n\t\tCreateGameDomain.put(\"Reversi\", new CreatorReversi());\r\n\t}", "public EcoreFactoryImpl() {\n super();\n }", "public abstract <T> T create(Object object, Class<T> clazz);", "public static Factory factory() {\n return text::new;\n }", "public FvFactoryImpl() {\n\t\tsuper();\n\t}", "public abstract Product productFactory(String type);" ]
[ "0.71559715", "0.71559715", "0.71559715", "0.71559715", "0.71559715", "0.71559715", "0.71559715", "0.7074531", "0.70529395", "0.69838554", "0.6975895", "0.6965081", "0.6957972", "0.6947883", "0.6860455", "0.68116355", "0.68087775", "0.6755075", "0.6695182", "0.6656439", "0.66538864", "0.6641384", "0.6594868", "0.6579127", "0.6570964", "0.65566015", "0.65337384", "0.6483751", "0.6474537", "0.64509934", "0.6446889", "0.64299303", "0.64223576", "0.6404421", "0.64012575", "0.6390818", "0.6390818", "0.63696575", "0.6348542", "0.63470006", "0.634638", "0.63074595", "0.6303218", "0.62930244", "0.6290356", "0.6275859", "0.62648284", "0.62513953", "0.6234646", "0.62303644", "0.6224549", "0.6222833", "0.622027", "0.6215211", "0.6213593", "0.6204481", "0.6191033", "0.6168405", "0.616593", "0.6155722", "0.6143472", "0.6143113", "0.6140843", "0.6134593", "0.6117823", "0.6079392", "0.60650474", "0.60622853", "0.6062128", "0.6044232", "0.6035332", "0.60283357", "0.6026955", "0.60218656", "0.6021202", "0.60137993", "0.600226", "0.5988598", "0.5981994", "0.5980858", "0.5947377", "0.5947377", "0.59409976", "0.5938597", "0.5936612", "0.59340006", "0.5926947", "0.5923139", "0.592042", "0.59038377", "0.5902831", "0.58961296", "0.58943355", "0.58922017", "0.58782774", "0.58731425", "0.58651894", "0.58643633", "0.58623487", "0.58613265", "0.58568" ]
0.0
-1
Returns a new object of class 'Model'.
HdbSequenceModel createHdbSequenceModel();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "public static Model newOf(Model model) {\n\t\tModel newModel = Model.newOf();\n\t\tnewModel.setTitle(model.getTitle());\n\t\tnewModel.setTableCode(model.getTableCode());\n\t\tnewModel.setDescription(model.getDescription());\n\t\treturn newModel;\n\t}", "InstanceModel createInstanceOfInstanceModel();", "public static MusicModel createModel() {\n return new MusicModelImpl();\n }", "public Model createBaseModel() {\n return ModelFactory.createDefaultModel();\n }", "CsticModel createInstanceOfCsticModel();", "public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }", "public Model createModel(ModelNode modelNode) {\n \tif (modelNode == null)\n \t\tthrow new NullPointerException();\n return new ModelImpl(modelNode);\n }", "public Model() {\n this(DSL.name(\"model\"), null);\n }", "public SSModel createSSObject() {\n\t\tSSModel ssModel = new SSModel();\n\t\tssModel.create(mol);\n\t\t\n\t\treturn ssModel;\n\t}", "public Model() {\n }", "public Model() {\n }", "public Model() {\n }", "PriceModel createInstanceOfPriceModel();", "public Model() {\n\n }", "ConfigModel createInstanceOfConfigModel();", "private Model(){}", "public static synchronized Model getInstance() {\n if (instance == null) {\n instance = new Model();\n }\n return instance;\n }", "protected abstract IModel<T> createModel(T object);", "@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}", "public Model() {\n\t}", "public Model() {\n\t}", "public M create(P model);", "public final InternalMessageModel newMessageModel() {\n return (InternalMessageModel) newProxy(InternalMessageModel.class,\n MessageModelImpl.class);\n }", "EisModel createEisModel();", "ModelData getModel();", "public abstract M getModel();", "Model getModel();", "Model getModel();", "Model getModel();", "A getModel();", "void create(Model model) throws Exception;", "protected Model makeModel()\n {\n LayerList layers = new LayerList();\n\n for (Layer layer : this.observered.getModel().getLayers())\n {\n if (layer instanceof TiledImageLayer) // share TiledImageLayers\n layers.add(layer);\n }\n\n Model model = new BasicModel();\n model.setGlobe(this.observered.getModel().getGlobe()); // share the globe\n model.setLayers(layers);\n\n return model;\n }", "public static ModelLearnable newInstancebyClassName(Class modelClassName) {\r\n try {\r\n return (ModelLearnable) modelClassName.newInstance();\r\n } catch (InstantiationException e) {\r\n e.printStackTrace();\r\n } catch (IllegalAccessException e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "ZenModel createZenModel();", "public Model getModel () { return _model; }", "Build_Model() {\n\n }", "GameModel createGameModel(GameModel gameModel);", "DomainModel createDomainModel();", "PriceSummaryModel createInstanceOfPriceSummaryModel();", "public final InternalDerbyModel newDerbyModel() {\n return (InternalDerbyModel) newProxy(InternalDerbyModel.class,\n DerbyModelImpl.class);\n }", "DataModel createDataModel();", "public final InternalReportModel newReportModel() {\n return (InternalReportModel) newProxy(InternalReportModel.class,\n ReportModelImpl.class);\n }", "public final InternalAdminUserModel newUserModel() {\n return (InternalAdminUserModel) newProxy(InternalAdminUserModel.class,\n AdminUserModelImpl.class);\n }", "@Override\r\n\tpublic T getModel() {\n\t\treturn model;\r\n\t}", "public static MlTableModel createModel(MlObjectTable table) {\n\n MlTableModel model = null;\n switch (table.getType()) {\n case Contact:\n model = new ContactTableModel(table);\n break;\n case Task:\n model = new TaskTableModel(table);\n break;\n case Image:\n model = new ImageTableModel(table);\n break;\n case Knowlet:\n case Collection:\n case Map:\n case Container:\n case Any:\n model = new AllObjectTableModel(table);\n break;\n default:\n throw new IllegalStateException(\"No table model found for specified object class: \" + table.getType().name());\n }\n return model;\n }", "public Model implementCreateModelOver( String name ) {\n return new OntModelImpl( this, maker.createModel( name, false ) );\n }", "protected E getModel ()\n\t{\n\t\treturn model;\n\t}", "public Curso model2entity (CursoModel cursoModel) {\r\n\t\tCurso curso = new Curso();\r\n\t\tcurso.setNombre(cursoModel.getNombre());\r\n\t\tcurso.setDescripcion(cursoModel.getDescripcion());\r\n\t\tcurso.setHoras(cursoModel.getHoras());\r\n\t\tcurso.setPrecio(cursoModel.getPrecio());\r\n\t\treturn curso;\r\n\t\t\r\n\t}", "public ModelBean provideModel();", "Model copy();", "public ExtFilterLazyDataModel<T> getModel() {\n if (model == null) {\n model = new ExtFilterLazyDataModel<T>(dao);\n String queryBody = generateQuery().toString();\n model.setSelectQuery(queryBody);\n model.setParameters(modelParams);\n }\n return model;\n }", "public Object getModel();", "public Model() {\n this(Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME), new TextRepository());\n }", "TypedModel getModel();", "M getModel();", "private ColumnDefinitionModel createModel()\r\n {\r\n ColumnDefinitionModel model = new ColumnDefinitionModel();\r\n\r\n List<String> columnNames = Arrays.asList(ColumnHeaders.TIME.toString(), ColumnHeaders.LAT.toString(),\r\n ColumnHeaders.LON.toString(), ColumnHeaders.NAME.toString(), ColumnHeaders.NAME2.toString());\r\n\r\n CSVParseParameters parameters = new CSVParseParameters();\r\n parameters.setColumnNames(columnNames);\r\n\r\n parameters.setColumnsToIgnore(New.<Integer>list(4));\r\n\r\n SpecialColumn timeColumn = new SpecialColumn();\r\n timeColumn.setColumnIndex(0);\r\n timeColumn.setColumnType(ColumnType.TIMESTAMP);\r\n timeColumn.setFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\r\n\r\n SpecialColumn latColumn = new SpecialColumn();\r\n latColumn.setColumnIndex(1);\r\n latColumn.setColumnType(ColumnType.LAT);\r\n latColumn.setFormat(\"Decimal\");\r\n\r\n SpecialColumn lonColumn = new SpecialColumn();\r\n lonColumn.setColumnIndex(2);\r\n lonColumn.setColumnType(ColumnType.LON);\r\n lonColumn.setFormat(\"Decimal\");\r\n\r\n parameters.getSpecialColumns().add(timeColumn);\r\n parameters.getSpecialColumns().add(latColumn);\r\n parameters.getSpecialColumns().add(lonColumn);\r\n\r\n model.setSelectedParameters(parameters);\r\n\r\n return model;\r\n }", "public Model getModel(){\r\n return model;\r\n }", "@Override\r\n\tpublic User getModel() {\n\t\tuser = new User();\r\n\t\treturn user;\r\n\t}", "@JsonIgnore\n @Override\n public Model getModel() {\n return this.model;\n }", "public M getInstanceModel(DTO modelDTO, Class<M> modelBDClass) {\n\n M model = null;\n\n EntityUtil entityUtil = new EntityUtil();\n\n try {\n\n model = entityUtil.copyEntity(modelDTO, modelBDClass.getConstructor().newInstance());\n\n } catch (InstantiationException e) {\n LogManager.getLog(this.getClass()).warn(e);\n } catch (IllegalAccessException e) {\n LogManager.getLog(this.getClass()).warn(e);\n } catch (InvocationTargetException e) {\n LogManager.getLog(this.getClass()).warn(e);\n } catch (NoSuchMethodException e) {\n LogManager.getLog(this.getClass()).warn(e);\n }\n\n return model;\n }", "public Model(Name alias) {\n this(alias, MODEL);\n }", "CsticGroupModel createInstanceOfCsticGroupModel();", "public static UserModel getInstance(){\n \tif (instance==null){\n \t\tinstance = new UserModel();\n \t}\n \treturn instance;\n }", "public <T> T createModel(Class<T> clazz) throws CreateModelException {\n return createModel(clazz, true);\n }", "protected Document createDefaultModel() {\n return new PlainDocument();\n }", "public static DataModelBuilder create() {\n return new DataModelBuilder();\n }", "public DefaultObjectModel ()\n {\n this (new Schema ());\n }", "RoomModel createRoomModel(RoomModel roomModel);", "SolvableConflictModel createInstanceOfSolvableConflictModel();", "public Model getModel() {\n return model;\n }", "public Model getModel() {\n return model;\n }", "public Model getModel() {\n return model;\n }", "public Model getModel() {\n return model;\n }", "ModelsFactory getModelsFactory();", "IModel getWrappedModel();", "private IJavaModel getJavaModel() {\n\t\treturn JavaCore.create(getWorkspaceRoot());\n\t}", "@SuppressWarnings({\"rawtypes\", \"unchecked\"})\n public <T> T createModel(T referenceModel, boolean withPolicies) throws CreateModelException {\n Erector erector = erectors.get(referenceModel.getClass());\n\n if (erector == null) {\n throw new CreateModelException(\"Unregistered class: \" + referenceModel.getClass());\n }\n\n return createModel(erector, referenceModel, withPolicies);\n }", "public static Serviceable getModel(AppModels type)\n {\n Serviceable tempObj;\n switch (type) {\n case KEYWORD_USER:\n tempObj = new KeywordUser();\n break;\n case QUIZ:\n tempObj = new Quiz();\n \n break;\n default:\n tempObj = null;\n break;\n }\n \n return tempObj;\n }", "public T createModel(Cursor cursor, String id);", "public ModelBolting(){}", "GoalModel createGoalModel();", "protected MgrModel makeModel() {\n\t\treturn new BPsNiagaraDriverCircuitWidgetModel(this);\n\t}", "public interface ModelFactory <ModelObject> {\n public void createElement(ModelObject object);\n}", "public AbstractModel getModel() {\n return model;\n }", "public Class getModelClass() {\r\n\t\treturn model;\r\n\t}", "protected ObjectModel createObjectModel(String uid, String xml) {\r\n throw new IllegalStateException(\"You must register the same object model on all sites.\");\r\n }", "public static Model createModel(RepositoryConnection connection)\n { \n Graph graph = new GraphRepository(connection) ;\n return ModelFactory.createModelForGraph(graph) ;\n }", "static RatAppModel getInstance() {return model;}", "NCModel getModel();", "public static QuinzicalModel createInstance() throws Exception {\n\t\tif (instance == null) {\n\t\t\tinstance = new QuinzicalModel();\n\t\t}\n\t\treturn instance;\n\t}", "ModelRule createModelRule();", "public UserModel() {\n }", "public Model getModel() {\n\t\treturn model;\n\t}", "public Model getModel() {\n\t\treturn model;\n\t}" ]
[ "0.79696", "0.79696", "0.79696", "0.79696", "0.79696", "0.79696", "0.79696", "0.7724402", "0.74879456", "0.73728114", "0.7366849", "0.72704834", "0.72373086", "0.71811604", "0.70790565", "0.68526566", "0.6849991", "0.6849991", "0.6849991", "0.68372846", "0.68131554", "0.6798883", "0.67974764", "0.6792193", "0.6784425", "0.67540056", "0.67471766", "0.67471766", "0.6736266", "0.6731484", "0.6720422", "0.66916305", "0.6650256", "0.66300786", "0.66300786", "0.66300786", "0.6622644", "0.6605108", "0.6596177", "0.6559534", "0.6549198", "0.6542727", "0.6536469", "0.65113944", "0.6510932", "0.64974284", "0.6484484", "0.64356256", "0.6419555", "0.64046645", "0.6402686", "0.63508224", "0.6350065", "0.63466966", "0.63444644", "0.63320464", "0.63201153", "0.6314671", "0.62855124", "0.62634814", "0.62600505", "0.62599945", "0.6249406", "0.6216782", "0.6208559", "0.6207511", "0.6174552", "0.61637217", "0.61493844", "0.6146461", "0.6144385", "0.6124822", "0.6107213", "0.6092825", "0.6081213", "0.6073792", "0.6064183", "0.6064183", "0.6064183", "0.6064183", "0.60455906", "0.6039632", "0.602973", "0.6023093", "0.6022773", "0.6009031", "0.60049087", "0.5998383", "0.5995073", "0.59902513", "0.59887403", "0.5988155", "0.59861547", "0.5980421", "0.59786856", "0.59667444", "0.5946955", "0.5931701", "0.59270716", "0.58988994", "0.58988994" ]
0.0
-1
Returns a new object of class 'List String'.
ListString createListString();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "StringList createStringList();", "ArrayList<String> createList(String finalInput);", "String getStringList();", "ListType createListType();", "public S<T> list(List<String> data){\n\t\tlist(data.toArray(new String[data.size()]));\n\t\treturn this;\n\t}", "ArrayListOfStrings () {\n list = new ArrayList<String>();\n }", "public MyList() {\n this(\"List\");\n }", "public static List<String> stringList() {\n\t\tList<String> list = new ArrayList<String>();\n\t\tlist.add(\"abdxxx\");\n\t\tlist.add(\"xxxxx\");\n\t\tlist.add(\"hi\");\n\t\tlist.add(\"SmoothStack\");\n\t\tlist.add(\"Wyatt x Wyatt x\");\n\t\treturn list;\n\t}", "public static IData create() {\n return new CaseInsensitiveElementList<Object>();\n }", "private Lists() { }", "public List<New> list();", "public String[] getStringList();", "List<String> mo5877c(String str);", "public StringList(int capacity) {\n super(capacity);\n }", "private ArrayList<String> createList(JList aListComponent) {\n ArrayList<String> aList = new ArrayList<>();\n if (aListComponent.getModel().getSize() > 0) {\n for (int i=0; i < aListComponent.getModel().getSize();i++) {\n aList.add(aListComponent.getModel().getElementAt(i).toString());\n }\n }\n return aList;\n }", "abstract protected Object newList( int capacity );", "public ArrayBackedList(String ... strings) {\n insertArray(Arrays.asList(strings));\n }", "public MyList(String name) {\n nameList = name;\n }", "@Test\n\tpublic void createTypedList() {\n\t\tList<String> list = new ArrayList<>();\n\n\t\tlist.add(\"String\");\n\n\t\tassertEquals(list, Collections.singletonList(\"String\"));\n\t}", "ListValue createListValue();", "public List(String name)\n\t{\n\t\tthis(name, null);\n\t}", "public S<T> list(String[] data){\n\t\tif(t instanceof ListView){\n\t\t\t\n\t\t\t((ListView) t).setAdapter(new ArrayAdapter<String>(activity,\n\t\t android.R.layout.simple_list_item_1, android.R.id.text1, data));\n\t\t}\n\t\treturn this;\n\t}", "public List(){\n\t\tthis(\"list\", new DefaultComparator());\n\t}", "public final TList addList(final List<String> strings, final int x,\n final int y, final int width, final int height) {\n\n return new TList(this, strings, x, y, width, height, null);\n }", "abstract void makeList();", "public static List<String> strings(){\n\n List<String> list = Arrays.asList(\"A\", \"B\", \"C\", \"D\");\n\n return list;\n\n }", "public static StringList createFrom(String str, String regexp) {\n if ((str == null) || (regexp == null))\n return null;\n\n String strs[] = str.split(regexp);\n return new StringList(strs);\n }", "private ArrayList<String> initList(String[] vastitems){\n return new ArrayList<>(Arrays.asList(vastitems));\n }", "public static void clientFunc(){\n List list = new ArrayList(); //rawtype list\n list.add(10);\n list.add(\"jenkins\");\n list.add(new Object());\n\n //unsafe classcast exception at runtime\n //rawtypes are unsafe\n List<String> stringList = list;\n\n ListIterator listIterator = list.listIterator();\n while(listIterator.hasNext()){\n System.out.println(listIterator.next());\n }\n }", "public List()\n\t{\n\t\tthis(null, null);\n\t}", "public static StringList createFrom(String list1[], String list2[]) {\n StringList list = new StringList(list1);\n list.merge(list2);\n return list;\n }", "java.util.List<java.lang.String> getContentsList();", "List<String> d();", "public static PropertyDescriptionBuilder<List<String>> listOfStringsProperty(String name) {\n // Trick to work-around type erasure\n // https://stackoverflow.com/a/30754982/2535153\n @SuppressWarnings(\"unchecked\")\n Class<List<String>> clazz = (Class<List<String>>)(Class<?>)List.class;\n return PropertyDescriptionBuilder.start(name, clazz, Parsers.parseList(Parsers::parseString));\n }", "public void create() {\n String[] arrays = new String[100];\n ArrayList<String> list1 = new ArrayList(); //Object[10]\n list1.size(); //0\n list1.add(\"Vivek\"); //object[0] = \"Vivek\"\n list1.size(); //1\n list1.get(0);//\"Vivek\"\n\n list1.remove(1);\n\n list1.add(0, \"Vivek\");\n\n\n ArrayList<String> list3 = new ArrayList<String>(list1);\n\n ArrayList<Student> list = new ArrayList<Student>();\n\n\n\n }", "public List()\n {\n list = new Object [10];\n }", "public abstract List<C41717j> mo70725h(String str);", "public static ElementInsertionList create()\n {\n return new ElementInsertionList();\n }", "public ArrayList makeStudentList() {\r\n ArrayList<String> studenter = new ArrayList();\r\n Student student = new Student();\r\n \r\n \r\n \r\n return studenter;\r\n}", "public XSListSimpleType asList() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: idiv \n // 1: laload \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- ---- ------------------------------------------\n // 0 2 0 this Lcom/sun/xml/xsom/impl/ListSimpleTypeImpl;\n // \n // The error that occurred was:\n // \n // java.lang.ArrayIndexOutOfBoundsException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "public static <T> List<T> createList() {\n\t\treturn Collections.emptyList();\n\t}", "public SortedList(){\n this(\"list\");\n }", "public StringBag(){\n\n list = new ArrayList();\n\n\t}", "public static <T> List<T> createList (T... args) {\n\tif (args == null) { return new ArrayList<T>(); };\n\treturn new ArrayList<T>(Arrays.asList(args));\n }", "@Test\n\tpublic void createListFromList() {\n\t\tList<String> list = new ArrayList<>();\n\t\tlist.add(\"AAPL\");\n\t\tlist.add(\"MSFT\");\n\n\t\t// Create a copy using constructor of ArrayList\n\t\tList<String> copy = new ArrayList<>(list);\n\n\t\tassertTrue(list.equals(copy));\n\t}", "public List getList1(List<String> list,String a) {\n\t\tlist.add(a);\r\n\t\treturn list;\r\n\t}", "public list() {\r\n }", "protected static ParameterDef createListParameter(final String param) {\n return new ParameterDef(new Variable(param), ParameterType.LIST);\n }", "public static ArrayList<String> getTodoListInstance(){\n\t\tif (todoList==null){\n\t\t\ttodoList=new ArrayList<String>();\n\t\t}\n\t\treturn todoList;\n\t}", "Object getTolist();", "public StringList createSorted() {\n StringList list = this.duplicate();\n list.sort();\n return list;\n }", "public abstract List toNameValueList();", "@SuppressWarnings(\"unchecked\")\r\n \tpublic List() {\r\n \t\titems = (T[]) new Object[INIT_LEN];\r\n \t\tnumItems = 0;\r\n \t\tcurrentObject = 0;\r\n \t}", "List<String> mo5876c();", "public static <T> List<T> createList(T item1) {\n\t\tList<T> list = new ArrayList<T>();\n\t\tlist.add(item1);\n\t\treturn list;\n\t}", "public List(String name) {\n super(name);\n children = new ArrayList<>();\n }", "public MutiList() {\n\t\tsuper();\n\t\tthis.myList = new ArrayList<>();\n\t}", "public WordList() {\t\t//Default constructor\n\t}", "public NamedList() {\n\t\tnvPairs = new ArrayList<Object>();\n\t}", "public WordList() {\n\t\twordList = new ArrayList<>();\n\t\t// TODO Add your code here\n\t}", "public StringLinkedList() {\n super();\n }", "public final TList addList(final List<String> strings, final int x,\n final int y, final int width, final int height,\n final TAction enterAction) {\n\n return new TList(this, strings, x, y, width, height, enterAction);\n }", "Rule ListType() {\n // Push 1 ListTypeNode onto the value stack\n return Sequence(\n \"list \",\n \"<\",\n FieldType(),\n \"> \",\n Optional(CppType()),\n actions.pushListTypeNode());\n }", "public MyArrayList() {\n\t\tthis(EXTRA_SPACE);\n\t}", "public UtillLinkList() {\n\t\tlist = new LinkedList<String>();\n\t}", "public ArrayList<String> sampleArrayList(){\n ArrayList<String> myArrayListString = new ArrayList<String>();\n myArrayListString.add(\"dog\");\n myArrayListString.add(\"cat\");\n myArrayListString.add(null);\n myArrayListString.add(\"anotherDog\");\n myArrayListString.add(null);\n myArrayListString.add(\"catty43\");\n myArrayListString.add(\"test14.22\");\n return myArrayListString;\n }", "private Command createListCommand(){\n\t\tList<Command> commands = new ArrayList<>();\n\t\twhile(!codeReader.hasNext(END_LIST)) {\n\t\t\ttry {\n\t\t\t\tString s = codeReader.next();\n\t\t\t\tcommands.add(parseCommand(s));\n\t\t\t}\n\t\t\tcatch(NoSuchElementException n) {\n\t\t\t\tthrow new SLogoException(\"Unclosed Bracket.\");\n\t\t\t}\n\t\t}\n\t\tcodeReader.next();\n\t\treturn new ListCommand(commands);\n\t}", "public void genericStringArray() {\n\t\tArrayList<String> b1 = new ArrayList<String>();\n\t\tb1.add(\"ABC\");\n\t\tb1.add(\"sdfsdfs\");\n\t\tSystem.out.println(\"String generic ArrayList b1: \" + b1);\n\n\t}", "private LowercaseWordList() {\n\n }", "public static GroupList newInstance() {\n\t\tGroupList f = new GroupList();\n\t\tBundle b = new Bundle();\n\t\tf.setArguments(b);\n\t\treturn f;\n\t}", "private ArrayList parseList(String localData){\n int localPointer = 0;\n ArrayList temp = new ArrayList();\n char c = localData.charAt(localPointer++);\n while (c != ']'){\n String item = \"\";\n Object itemObj = null;\n item_loop :\n while (c != ']'){\n switch (c){\n case ',' :\n c = localData.charAt(localPointer++);\n break item_loop;\n case '{' :\n String tempItem = this.getFull(localData.substring(localPointer),0);\n localPointer += tempItem.length();\n item += tempItem;\n break ;\n case '[' :\n String tempItem2 = this.getFull(localData.substring(localPointer),1);\n localPointer += tempItem2.length();\n item += tempItem2;\n break ;\n default :\n item += c;\n break ;\n }\n c = localData.charAt(localPointer++);\n }\n item = item.trim();\n switch (this.getDataType(item.trim())){\n case String:\n itemObj = item.trim().replace(\"\\\"\",\"\");\n break ;\n case Integer:\n itemObj = Long.parseLong(item.trim());\n break ;\n case Float:\n itemObj = Float.parseFloat(item.trim());\n break ;\n case Boolean:\n itemObj = Boolean.parseBoolean(item.trim());\n break ;\n case Map:\n itemObj = this.parseMap(item.trim());\n break ;\n case List:\n itemObj = this.parseList(item.trim());\n }\n temp.add(itemObj);\n }\n return temp;\n }", "public List getList();", "java.util.List<java.lang.String>\n getStrValuesList();", "@Test\n public void testStringToList() {\n // test whether empty string converts to empty list\n logger.trace(\"Empty string handled?\");\n String string = \"\";\n List<String> list = Util.stringToList(string);\n Assert.assertEquals(list.size(), 0);\n\n // test whether single space converts to empty list\n logger.trace(\"Single space handled?\");\n string = \" \";\n list = Util.stringToList(string);\n Assert.assertEquals(list.size(), 0);\n\n // test whether single item surrounded by spaces converts to list of size 1\n logger.trace(\"Item surrounded by spaces handled?\");\n string = \" foo \";\n list = Util.stringToList(string);\n Assert.assertEquals(list.size(), 1);\n\n // test whether two item string converts to list of size 2\n logger.trace(\"Two item string handled?\");\n string = \" foo bar \";\n list = Util.stringToList(string);\n Assert.assertEquals(list.size(), 2);\n }", "@Override\n public String getName() {\n return \"list\";\n }", "public StringDataList() {\n }", "public abstract List<String> getContent( );", "public static StringList createFrom(String list1[], String list2[], String list3[]) {\n StringList list = new StringList(list1);\n list.merge(list2);\n list.merge(list3);\n return list;\n }", "@Before\n public void createSimpleList() {\n testList = new SimpleList();\n }", "public final TList addList(final List<String> strings, final int x,\n final int y, final int width, final int height,\n final TAction enterAction, final TAction moveAction) {\n\n return new TList(this, strings, x, y, width, height, enterAction,\n moveAction);\n }", "void mo54419a(List<String> list);", "public LinkedList() {\n\t\tthis(\"list\");\n\t}", "public ArrayList<String> wordList(){\n\t\treturn list;\n\t}", "public List() {\n this.list = new Object[MIN_CAPACITY];\n this.n = 0;\n }", "public List<String> getT();", "public CSVList(String svl)\n\t{\n\t\tsuper(svl, sepReg, sep);\n\t}", "public ArrayBackedList(IList list) {\n while (list.size() > stringArray.length) {\n reallocArray();\n }\n for (int i = 0; i < list.size(); i++) {\n stringArray[i] = list.get(i);\n }\n }", "public List<String> getV();", "private List<String> buildList() {\n List<String> list = new ArrayList<>();\n list.add(\"Traveled Meters by Day\");\n list.add(\"Sensor Coverage\");\n list.add(\"No Movement Detection\");\n return list;\n }", "public abstract Builder zza(List<String> list);", "public Builder addList(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListIsMutable();\n list_.add(value);\n onChanged();\n return this;\n }", "private static <T> TypeToken<List<T>> getListTypeToken() {\n return new TypeToken<List<T>>() {\n };\n }", "private static <T> List<T> list(T... elements) {\n return ImmutableList.copyOf(elements);\n }", "Listof<X> toList();", "List<T> readList();", "public static <T> List<T> toObjectList(String body, Class<T> cls) {\n\t\ttry {\n\t\t\tList<Object> list = fullMapper.readValue(body,\n\t\t\t\t\tnew TypeReference<List<?>>() {\n\t\t\t\t\t});\n\t\t\tList<T> result = new ArrayList<T>();\n\t\t\tfor (Object o : list) {\n\t\t\t\tresult.add(fullMapper.convertValue(o, cls));\n\t\t\t}\n\t\t\treturn result;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "private List<SimpleComponent> list() {\n\t\treturn this.list(null);\n\t}", "public static <C> LIST<C> LIST1(C a) {\n LIST<C> L = new LIST<C>();\n L.list.addFirst( a );\n return L;\n }", "public static ListType LIST(FieldType elementType) {\n return new ListType(elementType);\n }", "public AList() {\n items = (TypeHere[]) new Object[100];\n size = 0;\n }" ]
[ "0.76086277", "0.6934886", "0.6884483", "0.68770176", "0.6783854", "0.6692485", "0.66551584", "0.659691", "0.6589361", "0.6490541", "0.6443952", "0.6430602", "0.63780516", "0.6368591", "0.6336251", "0.63276535", "0.6317863", "0.63116276", "0.6279858", "0.62264687", "0.62111145", "0.6191187", "0.6164468", "0.6149937", "0.6132913", "0.60816234", "0.60701424", "0.60690916", "0.6056285", "0.6039543", "0.60393536", "0.6019236", "0.60171574", "0.60131806", "0.59941846", "0.5994013", "0.59912145", "0.59776103", "0.59682786", "0.59358966", "0.5932673", "0.59304583", "0.5928282", "0.59116185", "0.5900276", "0.5879578", "0.58752584", "0.587137", "0.58711237", "0.58631843", "0.58508843", "0.5846526", "0.58372235", "0.58355427", "0.58351964", "0.58338034", "0.5828388", "0.5800761", "0.5780031", "0.57732767", "0.57716954", "0.5760728", "0.5754107", "0.57347924", "0.5710678", "0.57077867", "0.57042515", "0.57012016", "0.5694676", "0.5678471", "0.5674457", "0.5666364", "0.5665341", "0.565866", "0.56577206", "0.5656159", "0.56521255", "0.56131077", "0.5606033", "0.56050116", "0.5600906", "0.55935425", "0.55841476", "0.55821955", "0.55817616", "0.55811197", "0.5577766", "0.5573713", "0.5570527", "0.5565978", "0.55646676", "0.5560152", "0.55589354", "0.5558247", "0.55581623", "0.5555134", "0.5553413", "0.5549639", "0.554791", "0.5543072" ]
0.8006968
0
Returns a new object of class 'Elements'.
HdbSequenceElements createHdbSequenceElements();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic AllegationsElement Elements() {\n\t\treturn new AllegationsElement(driver);\n\t}", "Element() {\n\t}", "public WModelObject getElementObject()\n\t{\n\t\tWModelObject elementObject = null;\n\n\t\ttry\n\t\t{\n\t\t\t//Class objClass = Class.forName(m_elementObjectClassName);\n\t\t\t//elementObject = (WModelObject)objClass.newInstance();\n\t\t\t//elementObject.setParent(this);\n\t\t\t//return elementObject;\n\n\t\t\tClass modelObjectClass = Class.forName(m_elementObjectClassName);\n\t\t\tClass[] parameterClass = {Class.forName(\"java.lang.String\"), Class.forName(\"java.lang.String\")};\n\t\t\tConstructor constructor = modelObjectClass.getConstructor(parameterClass);\n\t\t\tObject[] parameterObj = {\"\", getImplTypeName()}; //the first parameter is blank to indicate no driver\n\t\t\t\t\t\t\t\t\t //provided this model object\n\t\t\telementObject = (WModelObject)constructor.newInstance(parameterObj);\n\t\t\telementObject.setParent(this);\n\t\t\treturn elementObject;\n\t\t}\n\t\tcatch (NoSuchMethodException e)\n\t\t{\n\t\t\tcom.ing.connector.Registrar.logError(\"Cannot load element object class for WCollection: \" + m_elementObjectClassName + \" \" + e);\n\t\t\treturn elementObject;\n\t\t}\n\t\tcatch (InvocationTargetException e)\n\t\t{\n\t\t\tcom.ing.connector.Registrar.logError(\"Cannot load element object class for WCollection: \" + m_elementObjectClassName + \" \" + e);\n\t\t\treturn elementObject;\n\t\t}\n\t\tcatch (ClassNotFoundException e)\n\t\t{\n\t\t\tcom.ing.connector.Registrar.logError(\"Cannot load element object class for WCollection: \" + m_elementObjectClassName + \" \" + e);\n\t\t\treturn elementObject;\n\t\t}\n\t\tcatch (InstantiationException e)\n\t\t{\n\t\t\tcom.ing.connector.Registrar.logError(\"Cannot instantiate element object in WCollection: \" + m_elementObjectClassName + \" \" + e);\n\t\t\treturn elementObject;\n\t\t}\n\t\tcatch (IllegalAccessException e)\n\t\t{\n\t\t\tcom.ing.connector.Registrar.logError(\"Illegal access when instantiating element object in WCollection: \" + m_elementObjectClassName + \" \" + e);\n\t\t\treturn elementObject;\n\t\t}\n\t}", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "ObjectElement createObjectElement();", "@SuppressWarnings(\"unchecked\")\n private void initElements() {\n\n try {\n\n Elements marker = null;\n\n for (Annotation annotation : this.getClass().getDeclaredAnnotations()) {\n if(annotation instanceof Elements) {\n marker = (Elements) annotation;\n }\n }\n\n if(marker == null) {\n String msg = \"Expected @Elements annotation on Screen class\";\n log.error(msg);\n throw new FrameworkException(msg);\n }\n\n PlatformType platform = DriverWrapper.getActivePlatform();\n Validate.notNull(platform);\n\n Class<? extends BaseElements> elementsClass = null;\n\n if(marker.elements().equals(BaseElements.class)) {\n // do we have individual iOS or Android elements?\n if(PlatformType.ANDROID == platform) {\n elementsClass = marker.androidElements();\n\n } else if(PlatformType.IOS == platform) {\n elementsClass = marker.iosElements();\n } else {\n throw new IllegalArgumentException(\"Un-supported platform\");\n }\n\n } else {\n // just take combined merged elements\n elementsClass = marker.elements();\n }\n\n if(marker.elements().equals(BaseElements.class)) {\n throw new IllegalArgumentException(\"Expected that you provide an elements class\");\n }\n\n Constructor<? extends BaseElements> constructor = elementsClass.getConstructor();\n this.elements = constructor.newInstance();\n\n PageFactory.initElements(new AppiumFieldDecorator(driver), elements);\n\n this.elements.init(driver);\n\n } catch(Exception e) {\n\n log.error(\"Failed to initialize page elements\", e);\n throw new FrameworkException(e);\n }\n }", "Element asElement();", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "Element createElement();", "Element xmlGetElements() {\n Element eItem= new Element(\"RandomName\");\n\n eItem.addContent(new Element(\"sName\").setText(xmlControl.escapeChars(sName)));\n eItem.addContent(new Element(\"sRace\").setText(xmlControl.escapeChars(sRace)));\n eItem.addContent(new Element(\"bLast\").setText(bLast?\"true\":\"false\"));\n eItem.addContent(new Element(\"bFemale\").setText(bFemale?\"true\":\"false\"));\n eItem.addContent(new Element(\"bMale\").setText(bMale?\"true\":\"false\"));\n\n\n return eItem;\n }", "public static ElementInsertionList create()\n {\n return new ElementInsertionList();\n }", "protected abstract M createNewElement();", "Object element();", "Object element();", "public WebElement() {}", "public GenericElement() {\n\t}", "public BasicElementList() {\n\t}", "private Element get() {\n return new MockElement();\n }", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }", "public Layer_ElementsCollection()\n\t{\n\t\tthis.elements = new ArrayList<GIS_element>();\n\t}", "ProductUnit() {\n _elements = new Element[0];\n }", "public ElementoInicial() {\r\n\t\tsuper();\r\n\t}", "private Object[] elements() {\n return elements.toArray();\n }", "public AbstractElement() {\n }", "SSElements createSSElements();", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "public ElementPanel(final Elements allElements) {\r\n\t\tsuper();\r\n\t\telements = allElements;\r\n\t\tmodificationListeners = new ArrayList<ElementModificationListener>(2);\r\n\t\tvectorListeners = new ArrayList<VectorDisplayListener>(2);\t\t\r\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\r\n\t\tsetAlignmentX(CENTER_ALIGNMENT);\r\n\t\tsetAlignmentY(TOP_ALIGNMENT);\r\n\t\tJPanel views = new JPanel();\r\n\t\tviews.setLayout(new BoxLayout(views, BoxLayout.X_AXIS));\r\n\t\tzoomView = new ZoomView();\r\n\t\tviews.add(zoomView);\r\n\t\telementView = new ElementView(this);\r\n\t\tviews.add(elementView);\r\n\t\tvectorListeners.add(elementView);\r\n\t\tadd(views);\r\n\r\n\t\tviews = new JPanel();\r\n\t\tviews.setLayout(new BoxLayout(views, BoxLayout.X_AXIS));\r\n\t\tviews.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));\r\n\r\n\t\tactionsView = new ActionsView(this);\r\n\t\tviews.add(actionsView);\r\n\t\toptionsView = new OptionsView(this);\r\n\t\tviews.add(optionsView);\r\n\t\tviews.add(Box.createHorizontalStrut(32));\r\n\t\t\r\n\t\tadd(views);\r\n\t}", "public ElementServiceImpl() {\n\t\tsuper();\n\t}", "@NonNull\n ElementFactory<?, ?, ?, ?> getElementFactory();", "@Override\n public Iterator<E> iterator() {\n return new ElementIterator();\n }", "public BaseElement() {\n }", "Element getElement() {\n\t\tElement result = element.clone();\n\t\tresult.setName(table.getName());\n\t\treturn result;\n\t}", "public void newElement() {\r\n }", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "public ElementObjectSupport(ContainerI c, Element element) {\r\n\t\tthis(c, null, element);\r\n\t}", "public View create(Element elem) {\n return null;\n }", "public List<MenuElement> getElements()\n {\n return elements;\n }", "E createDefaultElement();", "public XmlElement() {\n }", "DomainElement createDomainElement();", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return _ENUMERATIONS[0];\n }", "public Object[] getElements() {\r\n\t\treturn elements.clone();\r\n\t}", "public OpticalElements() {\n }", "public ZYArraySet(){\n elements = (ElementType[])new Object[DEFAULT_INIT_LENGTH];\n }", "public Element(String name) {\n\t\tsetName(name);\n\t}", "public Element generateElement(Document dom);", "public java.util.Enumeration elements () {\r\n methods = super.elements ();\r\n same_name_methods_index = 0;\r\n return this;\r\n }", "public T darElemento(){\r\n\t\treturn elemento;\r\n\t}", "BElement createBElement();", "public XMLElement() {\n this(new Properties(), false, true, true);\n }", "public static BitmovinApiBuilder<CustomXmlElementsApi> builder() {\n return new BitmovinApiBuilder<>(CustomXmlElementsApi.class);\n }", "public Element getElement() {\n return super.getElement();\n }", "HTMLElement createHTMLElement();", "public Element(Element element) {\n\t\tElement src = element.clone();\n\n\t\tthis.attributes = src.attributes;\n\t\tthis.name = src.name;\n\t\tthis.defxmlns = src.defxmlns;\n\t\tthis.xmlns = src.xmlns;\n\t\tthis.children = src.children;\n\t}", "public Enumeration<klasse> elements() {\n compress();\n EN = 0;\n return this;\n }", "public ListsElements( T[] expected)\n {\n this( expected, null);\n }", "public List allElements() {\r\n\t\tArrayList elems = new ArrayList();\r\n\t\tfor (int i = 0; i < elements.size(); ++i) {\r\n\t\t\tObject ob = elements.get(i);\r\n\t\t\tif (ob instanceof Operator) {\r\n\t\t\t} else if (ob instanceof FunctionDef) {\r\n\t\t\t\tExpression[] params = ((FunctionDef) ob).getParameters();\r\n\t\t\t\tfor (int n = 0; n < params.length; ++n) {\r\n\t\t\t\t\telems.addAll(params[n].allElements());\r\n\t\t\t\t}\r\n\t\t\t} else if (ob instanceof TObject) {\r\n\t\t\t\tTObject tob = (TObject) ob;\r\n\t\t\t\tif (tob.getTType() instanceof TArrayType) {\r\n\t\t\t\t\tExpression[] exp_list = (Expression[]) tob.getObject();\r\n\t\t\t\t\tfor (int n = 0; n < exp_list.length; ++n) {\r\n\t\t\t\t\t\telems.addAll(exp_list[n].allElements());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\telems.add(ob);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\telems.add(ob);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn elems;\r\n\t}", "ListItem(Element[] elements) {\n\t\tsuper(elements);\n\t}", "Elem getElem();", "@Override\n\tpublic AddAdditionalNameElement Elements() {\n\t\treturn new AddAdditionalNameElement(driver);\n\t}", "@Override\n\tpublic Element toElement() {\n\t\treturn null;\n\t}", "public E element();", "public Elemento crearElementos(String contenido) {\n\t\tTitulo unTitulo = new Titulo();\n\t\tSubTitulo unSubTitulo = new SubTitulo();\n\t\tImagen unaImagen = new Imagen();\n\t\tSeccion unaSeccion = new Seccion();\n\t\tLista unaLista = new Lista();\n\t\tTextoPlano textoPlano = new TextoPlano();\n\n\t\t// Se agregan los elementos a la cadena\n\t\tthis.setSiguiente(unTitulo);\n\t\tunTitulo.setSiguiente(unSubTitulo);\n\t\tunSubTitulo.setSiguiente(unaImagen);\n\t\tunaImagen.setSiguiente(unaSeccion);\n\t\tunaSeccion.setSiguiente(unaLista);\n\t\tunaLista.setSiguiente(textoPlano);\n\n\t\tElemento elemento = this.siguiente.crearElemento(contenido);\n\n\t\treturn elemento;\n\t}", "ElementDefinition createElementDefinition();", "@FactoryFunc\r\n\t@Function Element createElement(String tagName);", "@Override\n\tpublic Element getElement() {\n\t\treturn elem;\n\t}", "public ArrayList<Elemento> getElementos() {\n\t\treturn elementos;\n\t}", "private DOMs() {\n }", "@Override\n public List<IExpression> getElements() {\n return elements;\n }", "private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}", "public static IData create() {\n return new CaseInsensitiveElementList<Object>();\n }", "public List<Element> getCustomElements() {\r\n return customElements;\r\n }", "@Override\r\n public List<Element> findElements()\r\n {\n return null;\r\n }", "public T getElement()\n {\n\n return element;\n }", "public E getElement() { return element; }", "public ElementBean(ElementView elementView) {\n super(elementView);\n dao = new ElementDAO();\n this.elementView = elementView;\n }", "public Element element() {\n\t\treturn _element;\n\t}", "public Object getElement();", "public abstract Enumeration elements();", "private List<OrderElement> generateElements(int maxElems) {\n List<OrderElement> elements = new ArrayList();\n\n for (int i = 0; i < intRandom(maxElems); i++) {\n elements.add(new OrderElement(randomProductName(), randomPrice()));\n }\n return elements;\n }", "public IElement element(String id);", "public T elementExp() {\n T c = createLike();\n ops.elementExp(mat, c.mat);\n return c;\n }", "public Element() {\r\n\t\tx = 0;\r\n\t\ty = 0;\r\n\t\tcolor = Color.gray;\r\n\t\thilite = true;\r\n\t}", "public Object buildElementFromElement(Object element, MergeManager mergeManager) {\n ObjectBuilder objectBuilder = this.getObjectBuilder(element, mergeManager.getSession());\n Object result = objectBuilder.buildNewInstance();\n objectBuilder.mergeIntoObject(result, true, element, mergeManager);\n\n return result;\n }", "public GUIQueueElement getGuiElements(){\n\t\t//retrieve the needed sets\n\t\tSet<Drone> drones = this.getDroneSet();\n//\t\tSet<Block> blocks = this.getBlockSet(); //no blocks in the world\n\t\tSet<WorldAirport> airports = this.getAirportSet();\n\t\tSet<WorldDelivery> deliveries = this.getPackageService().getSubmittedWorldDeliveries();\n\n\t\t//generate the necessary data\n\t\tMap<String, DroneGuiState> droneGuiQueueElem = getDroneGuiStates(drones);\n\t\tSet<CubeGuiState> cubeGuiQueueElem = new HashSet<>(); //there are no blocks anymore\n\t\tSet<AirportGuiState> airportGuiQueueElem = getAirportGuiStates(airports);\n\t\tSet<DeliveryGuiState> deliveryGuiQueueElem = getDeliveryGuiStates(deliveries);\n\n\t\t//create a new entry for the queue\n\t\treturn new GUIQueueElement() {\n\t\t\t@Override\n\t\t\tpublic Map<String, DroneGuiState> getDroneStates() {\n\t\t\t\treturn droneGuiQueueElem;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Set<CubeGuiState> getCubePositions() {\n\t\t\t\treturn cubeGuiQueueElem;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Set<AirportGuiState> getAirports() {\n\t\t\t\treturn airportGuiQueueElem;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Set<DeliveryGuiState> getDeliveries(){\n\t\t\t\treturn deliveryGuiQueueElem;\n\t\t\t}\n\t\t};\n\n\t}", "public HeapElt copy() {\n HeapElt newElement = new HeapElt();\n \n newElement.setHandle(this.handle);\n newElement.setRecord(this.record);\n \n return newElement;\n }", "private BoardElement createBoardElement(Element eElement) {\r\n\t\treturn new BoardElement(\r\n\t\t\teElement.getAttribute(\"id\")\r\n\t\t\t,new Point(Integer.parseInt(eElement.getElementsByTagName(\"topLeftX\").item(0).getTextContent())\r\n\t\t\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"topLeftY\").item(0).getTextContent()))\r\n\t\t\t,new Point(Integer.parseInt(eElement.getElementsByTagName(\"bottomRightX\").item(0).getTextContent())\r\n\t\t\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"bottomRightY\").item(0).getTextContent()))\r\n\t\t);\r\n\t}", "public String getElementClass ();", "Map<String, Element> getElements();", "@VisibleForTesting\n ElementAdapterFactory(AdapterFactory<CustomElementAdapter, CustomElement> customElementFactory,\n AdapterFactory<ChunkedTextElementAdapter, Element> chunkedTextElementFactory,\n AdapterFactory<ParameterizedTextElementAdapter, Element>\n parameterizedTextElementFactory,\n AdapterFactory<ImageElementAdapter, ImageElement> imageElementFactory,\n AdapterFactory<GridRowAdapter, GridRow> gridRowFactory,\n AdapterFactory<ElementListAdapter, ElementList> elementListFactory,\n AdapterFactory<ElementStackAdapter, ElementStack> elementStackFactory,\n KeyedRecyclerPool<ElementAdapter<? extends View, ?>> templateRecyclerPool) {\n this.mCustomElementFactory = customElementFactory;\n this.mChunkedTextElementFactory = chunkedTextElementFactory;\n this.mParameterizedTextElementFactory = parameterizedTextElementFactory;\n this.mImageElementFactory = imageElementFactory;\n this.mGridRowFactory = gridRowFactory;\n this.mElementListFactory = elementListFactory;\n this.mElementStackFactory = elementStackFactory;\n mFactories = Collections.unmodifiableList(Arrays.asList(customElementFactory,\n chunkedTextElementFactory, parameterizedTextElementFactory, imageElementFactory,\n gridRowFactory, elementListFactory, elementStackFactory));\n this.mTemplateRecyclerPool = templateRecyclerPool;\n }", "public WCollection(String elementObjectClassName)\n\t{\n\t\tm_elementObjectClassName = elementObjectClassName;\n\t}", "public Element[] echo(Element[] elements) {\n return elements;\n }", "public Enumeration elements() {\n\t\treturn new ValuesEnumeration(values);\n\t}", "public static ENamedElement getElement(IAdaptable hint) {\n\t\tObject type = hint.getAdapter(IElementType.class);\n\t\tif (elements == null) {\n\t\t\telements = new IdentityHashMap<IElementType, ENamedElement>();\n\n\t\t\telements.put(Schema_1000, ESchemaPackage.eINSTANCE.getSchema());\n\n\t\t\telements.put(PersistentTable_2009,\n\t\t\t\t\tETablesPackage.eINSTANCE.getPersistentTable());\n\n\t\t\telements.put(Column_3001, ETablesPackage.eINSTANCE.getColumn());\n\n\t\t\telements.put(UniqueConstraint_3002,\n\t\t\t\t\tEConstraintsPackage.eINSTANCE.getUniqueConstraint());\n\n\t\t\telements.put(ForeignKey_3003,\n\t\t\t\t\tEConstraintsPackage.eINSTANCE.getForeignKey());\n\n\t\t\telements.put(ForeignKey_4001,\n\t\t\t\t\tEConstraintsPackage.eINSTANCE.getForeignKey());\n\n\t\t\telements.put(ForeignKey_4002,\n\t\t\t\t\tEConstraintsPackage.eINSTANCE.getForeignKey());\n\t\t}\n\t\treturn (ENamedElement) elements.get(type);\n\t}", "public MyArray() {\n\t\tcapacity = DEFAULT_CAPACITY;\n\t\tnumElements = 0;\n\t\telements = (E[]) new Object[capacity];\n\t}", "public Iterable<HTMLElement> elements() {\n return iterable;\n }", "private CollectionPOJODescriptorGenerator(List<MongoElement> elements) {\n this.genElements = elements;\n }", "XClass getElementClass();", "Element getElement();", "Collection<V> getAllElements();", "public WebPage(){\n dom = new LinkedList<String>() /* TODO\n//Initialize this to some kind of List */;\n }" ]
[ "0.68664306", "0.68587124", "0.67553616", "0.6633857", "0.6326339", "0.63041174", "0.6262708", "0.62383366", "0.62116176", "0.6202871", "0.6104788", "0.60991937", "0.60984856", "0.60984856", "0.60134566", "0.5985206", "0.5951114", "0.5830008", "0.58256847", "0.5807206", "0.58029604", "0.57707614", "0.5749101", "0.57322633", "0.5729206", "0.57086676", "0.5697221", "0.56824887", "0.5679022", "0.5678225", "0.56727153", "0.56681573", "0.56642157", "0.5632103", "0.5630254", "0.5613403", "0.5579887", "0.55744874", "0.55617285", "0.5552175", "0.5540559", "0.55229217", "0.55048484", "0.55017245", "0.5493409", "0.54901975", "0.5483754", "0.5467384", "0.5466176", "0.5456218", "0.5453396", "0.54438424", "0.54324126", "0.542483", "0.5408867", "0.5404356", "0.54005617", "0.538797", "0.53809255", "0.5373735", "0.5368419", "0.5366008", "0.5365886", "0.53544974", "0.5354013", "0.53496176", "0.5335945", "0.5335603", "0.5333652", "0.53247464", "0.53210056", "0.53184336", "0.5295526", "0.5293182", "0.5286026", "0.5279193", "0.5274673", "0.52739364", "0.5273761", "0.527056", "0.5268602", "0.5245877", "0.52372247", "0.52297103", "0.5229354", "0.5211031", "0.5199418", "0.5195204", "0.5193881", "0.51884896", "0.5186941", "0.5185215", "0.51771635", "0.5175694", "0.5169346", "0.51584417", "0.51523876", "0.51511633", "0.51490414", "0.5142849", "0.5140804" ]
0.0
-1
Returns the package supported by this factory.
HdbSequencePackage getHdbSequencePackage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PackageType getRequiredPackage();", "public PackageNode getPackage();", "java.lang.String getPackage();", "public String getPackageName();", "public String getPackageName() {\n return pkg;\n }", "String getPackageName();", "public DsByteString getPackage() {\n return m_strPackage;\n }", "java.lang.String getPackageName();", "public String getPackageName() {\n\t\treturn pkgField.getText();\n\t}", "private static String getPackage() {\n\t\tPackage pkg = EnergyNet.class.getPackage();\n\n\t\tif (pkg != null) {\n\t\t\tString packageName = pkg.getName();\n\n\t\t\treturn packageName.substring(0, packageName.length() - \".api.energy\".length());\n\t\t}\n\n\t\treturn \"ic2\";\n\t}", "io.deniffel.dsl.useCase.useCase.Package getPackage();", "public String getPackageInfomartion() {\n\t\treturn packageInfomartion;\n\t}", "protected abstract String getPackageName();", "default String getPackageName() {\n return declaringType().getPackageName();\n }", "public String getPackageName() {\n return packageName.get();\n }", "String getPackager();", "public Short getPackageType() {\n\t\treturn packageType;\n\t}", "public static String getPackageName() {\n return CELibHelper.sPackageName;\n }", "String getPackage() {\n return mPackage;\n }", "public String getBasePackage() {\n\t\treturn this.basePackage;\n\t}", "String pkg();", "public static String getPackageName() {\n return mPackageName;\n }", "public String getAppPackage() {\n\t\treturn fnh.getOutputAppPackage();\n\t}", "public abstract String getTargetPackage();", "public abstract String getTargetPackage();", "public java.lang.Boolean getServicePackageInfoSupported() {\r\n return servicePackageInfoSupported;\r\n }", "EisPackage getEisPackage();", "private String getPkgName () {\n return context.getPackageName();\n }", "@NonNull\n RepoPackage getPackage();", "public UMLPackageBean getPackage() {\n return umlPkg;\n }", "public String getPackagedJava();", "public String getPackageName() {\n return packageName;\n }", "public String getPackageName() {\n return packageName;\n }", "PiviPackage getPiviPackage();", "public Package.Builder getBuilder() {\n return pkgBuilder;\n }", "public String getPackageName() {\n\t\treturn this.PackageName;\n\t}", "public String getPackaging();", "public String getPackageName() {\n\t\treturn packageName;\n\t}", "public String getPackage() {\n return carrierPackage;\n }", "public abstract String packageName();", "PackageConfiguration getPackageConfiguration();", "protected final Product getProduct() {\n Product.Builder product = new Product.Builder()\n .implementationTitle(getClass())\n .implementationVersion(getClass());\n Optional.ofNullable(getClass().getPackage())\n .flatMap(p -> Optional.ofNullable(p.getSpecificationVersion()))\n .map(specVersion -> \"(specification \" + specVersion + \")\")\n .ifPresent(product::comment);\n return product.build();\n }", "public String getPackageName() {\n JavaType.FullyQualified fq = TypeUtils.asFullyQualified(qualid.getType());\n if (fq != null) {\n return fq.getPackageName();\n }\n String typeName = getTypeName();\n int lastDot = typeName.lastIndexOf('.');\n return lastDot < 0 ? \"\" : typeName.substring(0, lastDot);\n }", "public PersistedBmmPackage getPackage(String packageName) {\n return packages.get(packageName.toUpperCase());\n }", "public abstract String getAndroidPackage();", "NfrPackage getNfrPackage();", "@NonNull\n public String getPackageName() {\n return mPackageName;\n }", "public String getBasePackage() {\n\t\treturn DataStore.getInstance().getBasePackage();\n\t}", "public static String getBukkitPackage() {\n return Bukkit.getServer().getClass().getPackage().getName().split(\"\\\\.\")[3];\n }", "boolean hasPackageName();", "public String getPackageName() {\n Object ref = packageName_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n packageName_ = s;\n }\n return s;\n }\n }", "ApiPackage getApiPackage();", "public String getPackageName() {\n final var lastDotIdx = name.lastIndexOf('.');\n\n if (lastDotIdx > 0) {\n return name.substring(0, lastDotIdx);\n } else {\n throw new CodeGenException(String.format(\"Couldn't determine package name of '%s'\", name));\n }\n }", "public String getPackageName() {\n if (mPackageName == null) {\n try {\n mPackageName = mSessionBinder.getPackageName();\n } catch (RemoteException e) {\n Log.d(TAG, \"Dead object in getPackageName.\", e);\n }\n }\n return mPackageName;\n }", "public String getPackageName() {\n Object ref = packageName_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n packageName_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "IrSpecificPackage getIrSpecificPackage();", "public String getPackages() {\n\t\treturn this.packages;\n\t}", "public String getPackageName() {\n return mAppEntry.info.packageName;\n }", "com.google.protobuf.ByteString\n getPackageBytes();", "public static String getCraftBukkitPackage() {\n \t\t// Ensure it has been initialized\n \t\tgetMinecraftPackage();\n \t\treturn CRAFTBUKKIT_PACKAGE;\n \t}", "NgtPackage getNgtPackage();", "public String getProductPack() {\n return (String)getAttributeInternal(PRODUCTPACK);\n }", "public String getModelPackageStr() {\n\t\tString thepackage = getModelXMLTagValue(\"package\");\n\t\treturn thepackage != null ? thepackage + \".\" : \"\";\n\t}", "VmPackage getVmPackage();", "String packageName() {\n return name;\n }", "private PackageService getPackageService() {\n\t\treturn packageService;\n\t}", "private Package_c getPackage(final String name) {\n\t\tPackage_c communication = Package_c.PackageInstance(modelRoot,\n\t\t\t\tnew ClassQueryInterface_c() {\n\n\t\t\t\t\tpublic boolean evaluate(Object candidate) {\n\t\t\t\t\t\tPackage_c selected = (Package_c) candidate;\n\t\t\t\t\t\treturn selected.getName().equals(name);\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\treturn communication;\n\t}", "ParkingPackage getParkingPackage();", "public int getWMCPackaged(){\r\n\t\t \r\n\t\treturn mccabe.getWMCPackage();\t\t\r\n\t}", "private BasePackage getPackageModel()\r\n {\r\n return packageCartService.getBasePackage();\r\n }", "PackageClause getPackageClause();", "NassishneidermanPackage getNassishneidermanPackage();", "public String getPackageDesc() {\n\t\treturn packageDesc;\n\t}", "public String getPkgId() {\n return pkgId;\n }", "public String getVersionsSupported();", "public static String getMinecraftPackage() {\n \t\t// Speed things up\n \t\tif (MINECRAFT_FULL_PACKAGE != null) {\n \t\t\treturn MINECRAFT_FULL_PACKAGE;\n \t\t}\n \n \t\tfinal Server craftServer = Bukkit.getServer();\n \n \t\t// This server should have a \"getHandle\" method that we can use\n \t\tif (craftServer != null) {\n \t\t\ttry {\n \t\t\t\tfinal Class<?> craftClass = craftServer.getClass();\n \t\t\t\tfinal Method getHandle = craftClass.getMethod(\"getHandle\");\n \n \t\t\t\tfinal Class<?> returnType = getHandle.getReturnType();\n \t\t\t\tfinal String returnName = returnType.getCanonicalName();\n \n \t\t\t\t// The return type will tell us the full package, regardless of\n \t\t\t\t// formating\n \t\t\t\tCRAFTBUKKIT_PACKAGE = getPackage(craftClass.getCanonicalName());\n \t\t\t\tMINECRAFT_FULL_PACKAGE = getPackage(returnName);\n \t\t\t\treturn MINECRAFT_FULL_PACKAGE;\n \n \t\t\t} catch (final SecurityException e) {\n \t\t\t\tthrow new RuntimeException(\n \t\t\t\t\t\t\"Security violation. Cannot get handle method.\", e);\n \t\t\t} catch (final NoSuchMethodException e) {\n \t\t\t\tthrow new IllegalStateException(\n \t\t\t\t\t\t\"Cannot find getHandle() method on server. Is this a modified CraftBukkit version?\",\n \t\t\t\t\t\te);\n \t\t\t}\n \n \t\t} else {\n \t\t\tthrow new IllegalStateException(\n \t\t\t\t\t\"Could not find Bukkit. Is it running?\");\n \t\t}\n \t}", "protected EPackage getEPackage() {\r\n return Wps10Package.eINSTANCE;\r\n }", "CommunicationsprogramsPackage getCommunicationsprogramsPackage();", "Shipment_Package getShipment_Package();", "TggPackage getTggPackage();", "List<String> getSystemPackages();", "public boolean isPackage()\n {\n ensureLoaded();\n return m_flags.isPackage();\n }", "public String getSupportedVersion() {\n return supportedVersion;\n }", "ICpPackInfo getPackInfo();", "TypePackage getTypePackage();", "public String getPackingType() {\n return (String)getAttributeInternal(PACKINGTYPE);\n }", "GramaticaPackage getGramaticaPackage();", "default String getPackageId() {\n return getIdentifier().getPackageId();\n }", "Quality_requirements_metamodelPackage getQuality_requirements_metamodelPackage();", "MatchModelPackage getMatchModelPackage();", "public String getProjectPackageName() {\n\t\treturn projectPackageName;\n\t}", "ICpPack getPack();", "public PackageName getRootPackageName() {\n return rootPackageName;\n }", "public GeoPackage getGeoPackage() {\n\t\treturn this.geoPackage;\n\t}", "ReactNativePackage getReactNativePackage();", "HiphopsPackage getHiphopsPackage();", "protected UMLPackage getUMLPackage() {\r\n return currentPackage;\r\n }", "MystPackage getMystPackage();", "public Short getPackageSeries() {\n\t\treturn packageSeries;\n\t}", "public String getPackageId()\n {\n return packageId;\n }", "ThingMLPackage getThingMLPackage();" ]
[ "0.7031596", "0.6824025", "0.6818806", "0.6752645", "0.67181015", "0.6704875", "0.6698022", "0.6678774", "0.6635858", "0.6556546", "0.65183675", "0.6501405", "0.6496429", "0.6481852", "0.6376274", "0.63505894", "0.6338929", "0.63388515", "0.6327788", "0.6314242", "0.63126606", "0.6282504", "0.6273947", "0.625018", "0.625018", "0.6246106", "0.6218379", "0.62113875", "0.61974704", "0.6187816", "0.6176801", "0.6166096", "0.6166096", "0.61538076", "0.61370236", "0.61311126", "0.6119505", "0.6110087", "0.6095738", "0.60568917", "0.60403836", "0.6006883", "0.5988912", "0.59846574", "0.5971428", "0.596663", "0.59435695", "0.59422004", "0.5939782", "0.5931478", "0.59234554", "0.59193766", "0.5917696", "0.5896124", "0.58916557", "0.5884717", "0.5883739", "0.5870814", "0.58519596", "0.584893", "0.58416474", "0.584001", "0.5839548", "0.5827061", "0.5818055", "0.58170223", "0.5803712", "0.5787864", "0.5782273", "0.5762003", "0.57582545", "0.575813", "0.5757836", "0.5753817", "0.5746635", "0.57362497", "0.57329035", "0.57273763", "0.57260066", "0.57190484", "0.57188034", "0.57182175", "0.57047856", "0.57030493", "0.5689773", "0.56865156", "0.56835216", "0.5674978", "0.56738055", "0.56653726", "0.56578237", "0.5646589", "0.56433535", "0.5642557", "0.563893", "0.5638249", "0.56340986", "0.563228", "0.56135017", "0.5610743", "0.5606374" ]
0.0
-1
Links to harportens instagram
public void onClickIg(View view) { Uri uri = Uri.parse("http://instagram.com/_u/harportenvarberg"); Intent likeIng = new Intent(Intent.ACTION_VIEW, uri); likeIng.setPackage("com.instagram.android"); try { startActivity(likeIng); } catch (ActivityNotFoundException e) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://instagram.com/harportenvarberg"))); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getInstagram() {\n return instagram;\n }", "@Override\n public String getIdInstagram() {\n return idInstagram;\n }", "public interface FacebookLinkHandler{\n public void openFacebookPage(String facebookAppURI, String facebookWebURL);\n public void openInstagramPage(String instagramAppURI, String instagramWebURL);\n}", "private static void addSeedURL()\r\n\t{\r\n\t\tSystem.out.println(\"Enter a website to search for keywords.\");\r\n\t\tString userInput = input.nextLine();\r\n\t\t\r\n\t\tif(userInput.length() >= 7 && !(userInput.substring(0, 6).equals(\"https://\")))\r\n\t\t{\r\n\t\t\tuserInput = \"http://\" + userInput;\r\n\t\t\t\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tSharedLink.addLink(userInput);\r\n\t\t\t} \r\n\t\t\tcatch (InterruptedException e) \r\n\t\t\t{\r\n\t\t\t\t//do nothing\r\n\t\t\t}\r\n\t\t}\r\n\t}", "String getHref();", "String getLink();", "String getLearnMoreHelpPageUrl();", "public String getLink();", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_about, container, false);\n RelativeLayout relativeLayout = (RelativeLayout) rootView.findViewById(R.id.rL);\n relativeLayout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Uri uri = Uri.parse(\"http://instagram.com/_u/randoman1212\");\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n\n intent.setPackage(\"com.instagram.android\");\n\n try {\n startActivity(intent);\n } catch (ActivityNotFoundException e) {\n startActivity(new Intent(Intent.ACTION_VIEW,\n Uri.parse(\"http://instagram.com/randoman1212\")));\n }\n }\n });\n return rootView;\n }", "private static String getURL(String link) {\n\t\treturn \"https://en.wikipedia.org/wiki/\" + link;\n\t}", "String nextLink();", "@Override\n public void setInstagram(String instagram) {\n this.instagram = instagram;\n }", "protected abstract String getPublicUrl(URL url);", "private static void shareToInstagram(Context context, Uri uri) {//content://media/external/images/media/451\n // /storage/emulated/0/メリーズ スマイルDays/20151106_032146.jpg\n // /storage/emulated/0/メリーズ スマイルDays/20151106_020312.jpg\n\n Toast.makeText(context, \"start sharing to instagram \" + uri.getPath(), Toast.LENGTH_SHORT).show();\n String instagramPackage = \"com.instagram.android\";\n if (AppUtil.getInstance().isAppInstalled(context, instagramPackage)) {\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(\"image/*\");\n intent.putExtra(Intent.EXTRA_STREAM, uri);\n intent.setPackage(instagramPackage);\n// startActivity(Intent.createChooser(intent, \"Share to\"));\n context.startActivity(intent);\n } else {\n Toast.makeText(context, \"to use this feature, you must have an Instagram application is installed\", Toast.LENGTH_SHORT).show();\n }\n\n }", "protected abstract String getUrl();", "HtmlPage clickSiteLink();", "URL format(ShortLink shortLink);", "public String getSearchUrl();", "private void genSharedPostOnFacebook () {\n shareLinkContent = new ShareLinkContent.Builder()\n .setContentTitle(\"Your Title\")\n .setContentDescription(\"Your Description\")\n .setContentUrl(Uri.parse(\"URL[will open website or app]\"))\n .setImageUrl(Uri.parse(\"image or logo [if playstore or app store url then no need of this image url]\"))\n .build();\n\n }", "void addHadithUrl(Object newHadithUrl);", "protected void addInstagramDetailPage(Panel middleTable, List<Data> instagrams) {\n int i = 0;\n HorizontalPanel hp = new HorizontalPanel();\n for (Data data : instagrams) {\n //thumbnails\n VerticalPanel vp = new VerticalPanel();\n if (i % 3 == 0) {\n hp = new HorizontalPanel();\n }\n if (data.getCaption() != null) {\n vp.add(new Label(data.getCaption().getText()));\n }\n if (data.getImages() != null) {\n Image image = new Image(data.getImages().getThumbnailResolution().getImageUrl());\n vp.add(image);\n }\n hp.add(vp);\n middleTable.add(hp);\n i++;\n }\n }", "public void onLinksClick(View v){\n // Launch the Links activity\n onAnyClick(Links.class);\n }", "protected void addInstagramResultsPage(Panel middleTable, List<Data> instagrams) {\n HorizontalPanel hp = new HorizontalPanel();\n middleTable.add(hp);\n int i = 0;\n for (Data data : instagrams) {\n if (i >= 2) return;\n VerticalPanel vp = new VerticalPanel();\n if (data.getImages() != null) {\n Image image = new Image(data.getImages().getThumbnailResolution().getImageUrl());\n vp.add(image);\n }\n if (data.getCaption() != null) {\n vp.add(new Label(data.getCaption().getText()));\n }\n hp.add(vp);\n i++;\n }\n }", "public void wapTinyurl() {\n String url = \"http://m.nuomi.com/mianyang/deal/l5kkhcqr\";\r\n Pattern p = Pattern.compile(\"^http://\\\\w+\\\\.nuomi\\\\.com/\\\\w+/deal/(\\\\w+$)\");\r\n Matcher m = p.matcher(url);\r\n if (m.find()) {\r\n p(m.group(1));\r\n }\r\n }", "private void shareToInstagram(Context context, String path) {\n Toast.makeText(context, \"start sharing to instagram \" + path, Toast.LENGTH_SHORT).show();\n if (path == null || path.isEmpty()) {\n Toast.makeText(context, \"path is empty\", Toast.LENGTH_SHORT).show();\n return;\n }\n shareToInstagram(context, Uri.parse(\"file://\" + path));\n }", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "public void getPhotoLinks() {\n try {\n image = Jsoup.connect(link + \"/+images/\").get();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Elements elements = image.getElementsByClass(\"image-list-item\");\n photosLinks = new String[elements.size()];\n for (int i = 0; i < elements.size(); i++) {\n String element = elements.get(i).attr(\"href\");\n photosLinks[i] = element;\n }\n }", "@Override\n\tpublic void rotiereNachLinks() {\n\n\t}", "@Override\n public void onClick(View v) {\n Uri uri = Uri.parse(url);\n //Se crea un intent implicito para visualizar los links en un navegador\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n //Se inicia la actividad del navegador\n activityt.startActivity(intent);\n }", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public abstract String getUrl();", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_who) {\n\n Uri uri = Uri.parse(\"http://instagram.com/_u/mohammadreza2012\");\n Intent likeIng = new Intent(Intent.ACTION_VIEW, uri);\n\n likeIng.setPackage(\"com.instagram.android\");\n\n try {\n startActivity(likeIng);\n } catch (ActivityNotFoundException e) {\n startActivity(new Intent(Intent.ACTION_VIEW,\n Uri.parse(\"http://instagram.com/mohammadreza2012\")));\n }\n return true;\n }\n if (id == R.id.action_about) {\n startActivity(new Intent(MainActivity.this, ActivityAbout.class));\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public void resolveUrls(KeycloakUriBuilder authUrlBuilder) {\n }", "boolean hasHadithUrl();", "public static void leechCNN(Hdict dict)\r\n {\r\n WebDriver driver = new ChromeDriver();\r\n \r\n String baseUrl = \"https://www.cnn.com/\";\r\n driver.get(baseUrl);\r\n \r\n List<WebElement> links = driver.findElements(By.tagName(\"a\"));\r\n \r\n System.out.println(\"There is a total of \" + links.size() + \" frong page news detected on CNN\");\r\n \r\n Hdict titleDicts = new Hdict();\r\n \r\n for(int i = 0; i < links.size(); i++)\r\n {\r\n //get href links\r\n String url = links.get(i).getAttribute(\"href\");\r\n \r\n Words hUrl = new Words(url, 0);\r\n if(titleDicts.hdict_lookup(hUrl) != null) // if this page is already parsed\r\n {\r\n continue;\r\n }\r\n \r\n //if the page is not parsed\r\n titleDicts.hdict_insert(hUrl);\r\n \r\n for(int o = 0; o < 4; o++) // goes back 4 days\r\n {\r\n String urlname = \"\";\r\n if(month >= 10)\r\n urlname = \"https://www.cnn.com/\" + year + \"/\" + month;\r\n else\r\n urlname = \"https://www.cnn.com/\" + year + \"/0\" + month;\r\n \r\n if(day >= 10)\r\n urlname += \"/\" + (day - o) + \"/\";\r\n else\r\n urlname += \"/0\" + (day - o) + \"/\";\r\n \r\n String[] news = url.split(urlname);\r\n if(news.length > 1 && news[1].length() > 10) // if it is .html and has some other shish, shit solution but works\r\n {\r\n //WebDriver driver1 = new ChromeDriver();\r\n //driver1.get(url);\r\n \r\n //nytimes doesn't have viewers count, so default 2500 effectiveness on all posts\r\n \r\n int reactions = NYTIME_AVG;\r\n \r\n String directory = news[1];\r\n \r\n directory = directory.split(\".html\")[0]; // removes file name and directory\r\n String[] temp = directory.split(\"/\");\r\n String title = temp[temp.length-2]; // get file name, more concise, skip last for CNN, last is index\r\n String[] keys = title.split(\"-\");\r\n \r\n for(String key : keys)\r\n {\r\n if(key.contains(\".html\")) continue; // useless stuff\r\n \r\n boolean integercheck = true;\r\n try{\r\n Integer.parseInt(key);\r\n } catch(Exception e) \r\n {\r\n integercheck = false;\r\n };\r\n if(integercheck) continue; // useless numbers\r\n \r\n if(Arrays.binarySearch(JUNK_WORDS, key) >= 0) continue; // useless words\r\n \r\n Words wkey = new Words(key, reactions * CNN_WORTH);\r\n Words wkey_old = dict.hdict_lookup(wkey);\r\n if(wkey_old == null) dict.hdict_insert(wkey);\r\n else\r\n {\r\n wkey.setPopularity(wkey.getPopularity() + wkey_old.getPopularity());\r\n dict.hdict_insert(wkey);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n //close Chrome\r\n driver.close();\r\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_VIEW, Uri\n\t\t\t\t\t\t\t\t\t\t.parse(fullsitelink));\n\t\t\t\t\t\t\t\tstartActivity(i);\n\n\t\t\t\t\t\t\t}", "private void onWhatTokenButtonClick() {\r\n\r\n //Open related web post\r\n Intent i = new Intent(Intent.ACTION_VIEW);\r\n i.setData(Uri.parse(getString(R.string.url_github_about_tokens)));\r\n startActivity(i);\r\n }", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "public void createBrowserIntent(View view){\n Uri uri = Uri.parse(\"https://www.linkedin.com/in/chidi-uwaleke-3769b9a8/\");\n\n //Step 2: Create a browserIntent with action 'Intent.ACTION_VIEW'\n Intent browserIntent = new Intent(Intent.ACTION_VIEW);\n\n //Step 3: Set the data of the intent\n browserIntent.setData(uri);\n\n //Step 4: Start the intent\n startActivity(browserIntent);\n }", "void storeLinks();", "@Override\n public URL getHtmlUrl() throws MalformedURLException {\n URL endpoint = new URL(this.avatarUrl);\n String protocol = this.avatarUrl.startsWith(\"https://\") ? \"https://\" : \"http://\";\n return new URL(protocol + endpoint.getHost() + \":\" + endpoint.getPort() + \"/\" + this.name);\n }", "public String getSiteUrl();", "String getWebsite();", "public String getURL();", "@Override\n public void setIdInstagram(String idInstagram) {\n this.idInstagram = idInstagram;\n }", "SimpleLink createSimpleLink();", "public String createHrefForResource(final String userName, final String intraHash) {\n\t\treturn this.userUrlPrefix + userName + this.postsUrlDelimiter + intraHash;\n\t}", "public interface InstagramAuthCallbackListener {\n\n public boolean onRedirect(String redirectURL);\n}", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tString url = \"https://twitter.com/intent/tweet?text=My smartphone just thought of a word and I guessed it in \"+attempts+\" attempts. Check out Guessin by @nfnlabs:&url=\"+Uri.parse(\"http://goo.gl/CGmGEx\");\n\t\t\t\t\t\tIntent intent=new Intent(Intent.ACTION_VIEW);\n\t\t\t\t\t\tUri uri=Uri.parse(url);\n\t\t\t\t\t\tintent.setData(uri);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}", "@Override\r\n\tpublic void getUrl() {\n\r\n\t}", "public String createHrefForUser(final String name) {\n\t\treturn this.userUrlPrefix + name;\n\t}", "public void loadStoriesUrl(String username) {\r\n\t\tfin.clear();\r\n\t\tList<Reel> reels = new ArrayList<>();\r\n new FeedReelsTrayRequest().execute(client)\r\n \t.thenAccept(response -> {\r\n \t\treels.addAll(response.getTray()); \r\n }).join();\r\n String s = \"\";\r\n for(Reel reel: reels) \r\n \t//User\r\n \tif(reel.getUser().getUsername().equals(username)) { \t\t\r\n \t\tfor(int j = 0; j<reel.getMedia_count(); j++) { \r\n \t\t\ts = reel.getMedia_ids()[j]+\"_\"+reel.getUser().getPk(); \t\t\r\n new MediaInfoRequest(s).execute(client)\r\n .thenAccept(r -> {\r\n \t//check if video or img\r\n \tswitch(textBetweenWords(r.toString(), \"media_type=\", \", code\")) {\r\n \t\t//image\r\n \t\tcase \"1\":\r\n \t\t\tfin.add(new Story(textBetweenWords(r.toString().substring(1000), \"candidates=[ImageVersionsMeta(url=\", \", width=\"), 1, reel.getUser()));\r\n \t\t\tbreak; \t\t\r\n \t\t//video\r\n \t\tcase \"2\":\r\n \t\t\tfin.add(new Story(textBetweenWords(r.toString(), \"type=101, url=\", \"), VideoVersionsMeta(height=\"), 2, reel.getUser()));\r\n \t\t\tbreak;\r\n \t} \t\r\n }).join();\r\n \t\t}\r\n \t\tbreak; \t\t \r\n \t} \t \r\n\t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(v.getContext(), WebViewActivity.class);\n //intent.setData(Uri.parse(listOfArticles.get(position).getLinkToArticle()));\n intent.putExtra(LINK_URL_KEY, listOfArticles.get(position).getLinkToArticle());\n v.getContext().startActivity(intent);\n }", "void queueInternalLinks(Elements paragraphs) {\n // FILL THIS IN!\n\t\tfor(Element paragraph: paragraphs)\n\t\t{\n\t\t\tIterable<Node> iterator = new WikiNodeIterable(paragraph);\n\t\t\tfor(Node node: iterator)\n\t\t\t{\n\t\t\t\tif(node instanceof Element)\n\t\t\t\t{\n\t\t\t\t\tString link = node.attr(\"href\");\n\t\t\t\t\tif(link.startsWith(\"/wiki/\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tqueue.add(\"https://en.wikipedia.org\" + ((Element)node).attr(\"href\"));\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "HtmlPage clickLink();", "public List<String> getLinks();", "@Override\n public void followOnGithub() {\n if (sp.getBoolean(\"in_app_browser\",true)){\n CustomTabActivityHelper.openCustomTab(\n activity,\n customTabsIntent.build(),\n Uri.parse(activity.getString(R.string.github_url)),\n new CustomFallback() {\n @Override\n public void openUri(Activity activity, Uri uri) {\n super.openUri(activity, uri);\n }\n });\n } else {\n try{\n activity.startActivity(new Intent(Intent.ACTION_VIEW).setData(Uri.parse( activity.getString(R.string.github_url))));\n } catch (android.content.ActivityNotFoundException ex){\n view.showBrowserNotFoundError();\n }\n }\n }", "private URLs() {\n }", "public abstract String linkText();", "private String shortenBitLy(String link) {\n Bitly bitly = Bit.ly(appProperties.getBitlyAccessToken());\n String shortUrl = bitly.shorten(link);\n return shortUrl;\n }", "public String getUrlForSharing() {\n PostData pd = getAdapter().getPost(mPager.getCurrentItem());\n return pd.getUrl();\n }", "@OnClick({R.id.web_img, R.id.web})\n void OnClickWeb() {\n Uri webpage=Uri.parse(\"http://\" + getString(R.string.web));\n Intent intentW=new Intent(Intent.ACTION_VIEW, webpage);\n if (intentW.resolveActivity(getPackageManager()) != null) {\n startActivity(intentW);\n }\n }", "public abstract String getURL();", "public void linkShare() {\n\t\tclientOutput.println(\">>> Link do vaseg drajva je: \" + new File(\"drive\").getAbsolutePath() + \"\\\\\" + username);\n\t}", "PreViewPopUpPage clickImageLink();", "@When(\"^Click on Compose hyperlink icon$\")\npublic void click_on_Compose_hyperlink_icon() throws Throwable \n{\n\tWebElement p=driver.findElement(By.partialLinkText(\"Compose\"));\n p.click();\n System.out.println(\"Page title after link click : \" + driver.getTitle());\n \n\n\n}", "List<InstagramProfile> getLikes(long mediaId);", "public void launcherWithMultipleOrigins(View view) {\n List<String> origins = Arrays.asList(\n \"https://www.wikipedia.org/\",\n \"https://www.example.com/\"\n );\n\n TrustedWebActivityIntentBuilder builder = new TrustedWebActivityIntentBuilder(LAUNCH_URI)\n .setAdditionalTrustedOrigins(origins);\n\n\n TwaLauncher launcher = new TwaLauncher(this);\n launcher.launch(builder, mCustomTabsCallback, null , null);\n launchers.add(launcher);\n }", "public void navigateToExternalLinks() {\n\t\tjse.executeScript(\"arguments[0].scrollIntoView(true);\", externalArticlesHdr);\n\t}", "public void funcionAppian(View v){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(\"https://ustglobalspaindemo.appiancloud.com/suite/tempo/news\"));\n if(intent.resolveActivity(getPackageManager())!= null){\n startActivity(intent);\n }\n }", "@Override\n public void onClick(View view) {\n //Convert the String URL into a URI object (to pass into the Intent constructor)\n Uri newsUri = Uri.parse(url);\n\n // Create a new intent to view the earthquake URI\n Intent websiteIntent = new Intent(Intent.ACTION_VIEW, newsUri);\n\n // Send the intent to launch a new activity\n startActivity(websiteIntent);\n }", "public WebElement searchResultsLinks(String linkContaingText) {\r\n\t\treturn driver.findElement(By.xpath(\"//h2[contains(text(),'\"+linkContaingText+\"')]\"));\r\n\t}", "public void sharePage(){\n Intent shareIntent = new Intent(Intent.ACTION_VIEW);\n shareIntent.setData(Uri.parse(\"http://192.168.43.105:5000\"));//edit url\n startActivity(shareIntent);\n }", "public static String getLink(String username){\n\t\tMongoCollection<Document> collection = getDatabase().getCollection(\"LoginInformation\");\n\t\t\n\t\ttry {\n\t\t\tDocument cursorName = collection.find(eq(\"username\", username)).first();\n\t\t\treturn cursorName.getString(\"link\");\n\t\t} catch(Exception ex){\n\t\t\treturn \"\";\n\t\t}\t\n\t}", "@Override\n public void onClick(View v) {\n Toast.makeText(c, \"yes\" + article.getWeblink(), Toast.LENGTH_LONG).show();\n }", "java.lang.String getClickURL();", "public String generateSummaryLinks(String page)\n {\n if (wiki.namespace(page) % 2 == 1)\n return \"\"; // no talk pages yet\n try\n {\n String indexPHPURL = wiki.getIndexPhpUrl();\n String pageenc = URLEncoder.encode(page, \"UTF-8\");\n \n return \"<a href=\\\"\" + wiki.getPageUrl(page) + \"\\\">\" + page + \"</a> (\"\n + \"<a href=\\\"\" + indexPHPURL + \"?title=\" + pageenc + \"&action=edit\\\">edit</a> | \"\n + \"<a href=\\\"\" + wiki.getPageUrl(wiki.getTalkPage(page)) + \"\\\">talk</a> | \"\n + \"<a href=\\\"\" + indexPHPURL + \"?title=\" + pageenc + \"&action=history\\\">history</a> | \"\n + \"<a href=\\\"\" + indexPHPURL + \"?title=Special:Log&page=\" + pageenc + \"\\\">logs</a>)\";\n }\n catch (IOException ex)\n {\n throw new UncheckedIOException(ex); // seriously?\n }\n }", "Collection<? extends Object> getHadithUrl();", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.twitter.com/mrinalk73720345\")));\n\t\t\t}", "Uri getUrl();", "private static void go2(){\n\t\tString concreateURL = \"http://www.yixinhealth.com/%E5%8C%96%E9%AA%8C%E5%92%8C%E6%A3%80%E6%9F%A5/%E5%BF%83%E7%94%B5%E5%9B%BE/\"; \n\t\tConnection c = Jsoup.connect(concreateURL); \n\t\tc.timeout(10000);\n\t\ttry {\n\t\t\tDocument doc = c.get();\n\t\t\t//System.out.println(doc.html()); \n\t\t\t//System.out.println(doc.getElementById(\"content_area\").html());\n\t\t\t//Element eles = doc.getElementById(\"content_area\");\n\t\t\t//System.out.println(eles.html());\n\t\t\t\n\t\t\t//Below code is for the multiple link page\n\t\t\t//Elements eles2 = eles.getElementsByAttributeValue(\"style\", \"text-align: center;\");\n\t\t\t//System.out.println(eles2.html());\n\t\t\t/*for(Element ele: eles2){\n\t\t\t\tElements link = ele.getElementsByTag(\"a\");\n\t\t\t\t//System.out.println(link.html());\n\t\t\t\tfor (int i=0;i<link.size();i++) {\n\t\t\t\t\tSystem.out.println(link.get(i).attr(\"href\"));\n\t\t\t\t}\n\t\t\t}*/\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(eles2.html());\n\t\t\tElement eles = doc.getElementById(\"content_area\");\n\t\t\tElements eles2 = eles.getElementsByTag(\"img\");\n\t\t\tfor(int i=0;i<eles2.size();i++){\n\t\t\t\teles2.get(i).parent().attr(\"style\", \"text-align:center\");\n\t\t\t\teles2.get(i).parent().parent().nextElementSibling().attr(\"style\", \"text-align:center\");\n\t\t\t\teles2.get(i).attr(\"style\", \"width:50%\");\n\t\t\t}\n\t\t\t\n\t\t\tElements eles3 = eles.getElementsByClass(\"j-header\");\n\t\t\tfor (Element ele : eles3) {\n\t\t\t\tElements eleHeader = ele.getElementsByTag(\"h2\");\n\t\t\t\teleHeader.attr(\"style\", \"text-align:center\");\n\t\t\t}\n\t\t\tSystem.out.println(eles.html());\n\t\t\t\n\t\t\t//Below code is help to clear out the share icon to like Sina weibo\n\t\t\tElements eles4 = eles.getElementsByClass(\"bshare-custom\");\n\t\t\t//eles4.remove();\n\t\t\t\n\t\t\t//Elements eles3 = eles.getElementsByClass(\"n*j-imageSubtitle\");\n\t\t\t//System.out.println(eles3.size());\n\t\t\t/*for(int i=0;i<eles3.size();i++){\n\t\t\t\teles3.get(i).attr(\"style\", \"text-align:center;width:50%\");\n\t\t\t}\n\t\t\tSystem.out.println(eles.html());*/\n\t\t\t//System.out.println(eles2.get(0).attr(\"src\"));\n\t\t\t/*Element eles = doc.getElementById(\"content_area\");\n\t\t\tElements eles2 = eles.getElementsByClass(\"j-header\");\n\t\t\tfor (Element ele : eles2) {\n\t\t\t\tElements eleHeader = ele.getElementsByTag(\"h2\");\n\t\t\t\tSystem.out.println(\"Title---->\"+eleHeader.html()); \n\t\t\t}\n\t\t\tElements elesBody = eles.getElementsByClass(\"j-text\");\n\t\t\tSystem.out.println(\"Body---->\"+elesBody.html()); */\n\t\t\t//System.out.println(eles2.html()); \n /*List<String> nameList = new ArrayList<String>(); \n for (Element ele : eles) {\n \tString text = ele.select(\"h*\").text();\n \tSystem.out.println(text); \n String text = ele.select(\"span\").first().text(); \n if (text.length() > 1 && text.startsWith(\"▲\")) { \n \n if (Integer.parseInt(text.substring(1)) > 30) { \n // 在这里.html()和.text()方法获得的内容是一样的 \n System.out.println(ele.select(\"a\").first().html()); \n nameList.add(ele.select(\"a\").first().text()); \n } \n } \n } */\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Hyperlink(){\n this.href = \"\";\n this.text = new TextSpan(\"\");\n }", "@GET\n public Response getLinks() {\n List<Link> links = new ArrayList<>();\n links.add(Link.fromUri(CommonConstants.API_URI+\"users/login\").rel(\"login\").build());\n links.add(Link.fromUri(CommonConstants.API_URI+\"users/\").rel(\"users\").build());\n links.add(Link.fromUri(CommonConstants.API_URI+\"boardgames/\").rel(\"boardgames\").build());\n\n return Response.ok().links(links.toArray(new Link[links.size()])).build();\n }", "@Override\n public void onClick(View v) {\n Uri uri = Uri.parse(\"https://www.google.com/?gws_rd=ssl#q=\" + mAnswer.getWord());\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n startActivity(intent);\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) \n\t\t\t\t\t{\n\t\t\t\t\t\tString url = \"https://www.facebook.com/dialog/feed?app_id=1507764116109075&\" +\n\t\t\t\t\t\t\t\t \t \"link=https://play.google.com/store/apps/details?id=com.achyuthnfn.cnbfinal&\" +\n\t\t\t\t\t\t\t\t \t \"caption=GuessIn&\" +\n\t\t\t\t\t\t\t\t \t \"description=\"+Uri.parse(\"My smartphone just thought of a word and I guessed it in \"+attempts+\" attempts. Check out the new game by @nfnlabs called GuessIn!\")+\n\t\t\t\t\t\t\t\t \t \"&redirect_uri=https://www.facebook.com/connect/login_success.html\"+\n\t\t\t\t\t\t\t\t \t \"&picture=http://nfnlabs.in/wp-content/uploads/2014/06/Share%20Image.png\";\n\t\t\t\t\t\tIntent intent=new Intent(Intent.ACTION_VIEW);\n\t\t\t\t\t\tintent.setData(Uri.parse(url));\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}", "private void execURL(String link) {\n Uri webLink = Uri.parse(link);\n Intent openLink = new Intent(Intent.ACTION_VIEW, webLink);\n PackageManager pm = getPackageManager();\n List<ResolveInfo> handlers = pm.queryIntentActivities(openLink, 0);\n if (handlers.size() > 0)\n startActivity(openLink);\n }", "public IHyperLink attachLink()\n throws OculusException;", "public static void main(String h[]) throws IOException\n {\n try {\n String link_url = \"https://www.facebook.com\";\n URL obj1 = new URL(link_url); //URL Connection Created...\n HttpURLConnection con1 = (HttpURLConnection) obj1.openConnection(); //Http URL Connection Created...\n System.out.println(\"https://www.facebook.com\");\n System.out.println(\"Connection Response Message : \");\n con1.disconnect();\n }\n catch (Exception e) {\n System.out.println( e);\n }\n }" ]
[ "0.5931346", "0.57642305", "0.5715089", "0.56012344", "0.55867976", "0.5534246", "0.5523603", "0.550984", "0.5435521", "0.54328936", "0.5409424", "0.53729886", "0.53515893", "0.5342623", "0.52801275", "0.5245384", "0.52427524", "0.5231668", "0.5220172", "0.52174383", "0.5211505", "0.52058464", "0.51962423", "0.5191073", "0.5189948", "0.51774716", "0.51774716", "0.51774716", "0.51774716", "0.51774716", "0.5160896", "0.5159016", "0.515614", "0.51369405", "0.51369405", "0.51369405", "0.51369405", "0.51347244", "0.5133705", "0.5120418", "0.5107602", "0.50935096", "0.5081173", "0.5075493", "0.5072546", "0.5072546", "0.5072546", "0.5072546", "0.5072546", "0.5072546", "0.50504273", "0.5036712", "0.5023683", "0.5016474", "0.50039256", "0.4979073", "0.4978393", "0.49774417", "0.49727765", "0.49491212", "0.4946101", "0.49440318", "0.49294087", "0.4928773", "0.4924774", "0.49159804", "0.49068347", "0.49049133", "0.49023142", "0.48926646", "0.48864263", "0.48772013", "0.48770785", "0.4872774", "0.4864381", "0.48593122", "0.48585594", "0.4856365", "0.48484036", "0.48446974", "0.4844573", "0.48319864", "0.48238802", "0.48233753", "0.48163602", "0.481553", "0.4806276", "0.4798364", "0.4790596", "0.4789487", "0.4786998", "0.47836587", "0.4779454", "0.4770997", "0.47706753", "0.4766541", "0.47654915", "0.4764575", "0.4755995", "0.4753021" ]
0.62055916
0
Links to harportens facebook
public void onClickFb(View view) { try { Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("fb://profile/577574002374672")); startActivity(intent); } catch(Exception e) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.facebook.com/harporten.varberg"))); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFbUrl (ReadOnlyPerson target);", "public void likePage(View v) {\n final String urlFb = \"fb://page/1450066045229608\";\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(urlFb));\n\n final PackageManager packageManager = getPackageManager();\n List<ResolveInfo> list = packageManager.queryIntentActivities(\n intent, PackageManager.MATCH_DEFAULT_ONLY);\n if (list.size() == 0) {\n //final String urlBrowser = \"https://www.facebook.com/glasvezelpaleiskwartier\";\n final String urlBrowser = \"https://www.facebook.com/pages/1450066045229608\";\n\n intent.setData(Uri.parse(urlBrowser));\n\n }\n\n startActivity(intent);\n\n }", "private void genSharedPostOnFacebook () {\n shareLinkContent = new ShareLinkContent.Builder()\n .setContentTitle(\"Your Title\")\n .setContentDescription(\"Your Description\")\n .setContentUrl(Uri.parse(\"URL[will open website or app]\"))\n .setImageUrl(Uri.parse(\"image or logo [if playstore or app store url then no need of this image url]\"))\n .build();\n\n }", "public interface FacebookLinkHandler{\n public void openFacebookPage(String facebookAppURI, String facebookWebURL);\n public void openInstagramPage(String instagramAppURI, String instagramWebURL);\n}", "private Uri getFacebookUri(String facebookKeyWords) {\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(getResources().getString(R.string.httpsScheme))\n .authority(getResources().getString(R.string.facebookWebsite))\n .appendPath(getResources().getString(R.string.search))\n .appendPath(getResources().getString(R.string.str))\n .appendPath(facebookKeyWords)\n .appendPath(getResources().getString(R.string.keywords_search))\n ;\n return builder.build();\n }", "public void facebook(View view) {\n Uri uri = Uri.parse(\"https://www.facebook.com/AnanthPgrmr?href=Message_Everyone\");\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\n startActivity(intent);\n Toast toast = Toast.makeText(this, \"Opening\", Toast.LENGTH_SHORT);\n toast.show();\n\n // Build and Send the Analytics Event.\n t.send(new HitBuilders.EventBuilder()\n .setCategory(\"About\")\n .setAction(\"FACEBOOK button\")\n .build());\n }", "public String getLink();", "String getLink();", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tstartActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.facebook.com/mrinalkanti.ray\")));\n\t\t}", "String getHref();", "public static void main(String h[]) throws IOException\n {\n try {\n String link_url = \"https://www.facebook.com\";\n URL obj1 = new URL(link_url); //URL Connection Created...\n HttpURLConnection con1 = (HttpURLConnection) obj1.openConnection(); //Http URL Connection Created...\n System.out.println(\"https://www.facebook.com\");\n System.out.println(\"Connection Response Message : \");\n con1.disconnect();\n }\n catch (Exception e) {\n System.out.println( e);\n }\n }", "public void publishOnFacebook()\n {\n\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) \n\t\t\t\t\t{\n\t\t\t\t\t\tString url = \"https://www.facebook.com/dialog/feed?app_id=1507764116109075&\" +\n\t\t\t\t\t\t\t\t \t \"link=https://play.google.com/store/apps/details?id=com.achyuthnfn.cnbfinal&\" +\n\t\t\t\t\t\t\t\t \t \"caption=GuessIn&\" +\n\t\t\t\t\t\t\t\t \t \"description=\"+Uri.parse(\"My smartphone just thought of a word and I guessed it in \"+attempts+\" attempts. Check out the new game by @nfnlabs called GuessIn!\")+\n\t\t\t\t\t\t\t\t \t \"&redirect_uri=https://www.facebook.com/connect/login_success.html\"+\n\t\t\t\t\t\t\t\t \t \"&picture=http://nfnlabs.in/wp-content/uploads/2014/06/Share%20Image.png\";\n\t\t\t\t\t\tIntent intent=new Intent(Intent.ACTION_VIEW);\n\t\t\t\t\t\tintent.setData(Uri.parse(url));\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}", "boolean hasHadithBookUrl();", "boolean hasHadithUrl();", "public final void openFacebook(Activity act, String pageName) {\n final String urlFb = \"fb://profile/\"+pageName;\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(urlFb));\n\n // If Facebook application is installed, use that else launch a browser\n final PackageManager packageManager = act.getPackageManager();\n List<ResolveInfo> list =\n packageManager.queryIntentActivities(intent,\n PackageManager.MATCH_DEFAULT_ONLY);\n if (list.size() == 0) {\n final String urlBrowser = \"https://www.facebook.com/\"+pageName;\n intent.setData(Uri.parse(urlBrowser));\n }\n\n act.startActivity(intent);\n }", "String getLearnMoreHelpPageUrl();", "public Uri getImageLink(String type){\r\n return Uri.parse(\"https://graph.facebook.com\" + getImage() + \"?type=\" + type);\r\n }", "private static String getURL(String link) {\n\t\treturn \"https://en.wikipedia.org/wiki/\" + link;\n\t}", "public void referToSocialServices(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v)\r\n\t\t\t{\n\t\t\t\tshareViaFacebook();\r\n\t\t\t}", "HtmlPage clickSiteLink();", "@Override\n public String getFacebook() {\n return facebook;\n }", "URL format(ShortLink shortLink);", "@Override\n public void run() {\n MainActivity.webView.loadUrl(\"https://www.facebook.com/\" + id);\n }", "public void postToFB(View view) {\n\n// Toast.makeText(getBaseContext(), \"Posted Story on Timeline\", Toast.LENGTH_SHORT).show();\n\n if (ShareDialog.canShow(ShareLinkContent.class)) {\n ShareLinkContent linkContent = null;\n try {\n linkContent = new ShareLinkContent.Builder()\n .setContentTitle(basic.getString(\"title\"))\n .setContentUrl(Uri.parse(basic.getString(\"viewItemURL\")))\n .setContentDescription(\n ((TextView) findViewById(R.id.price)).getText().toString() + \"\\n\" +\n ((TextView) findViewById(R.id.shippingInfo)).getText().toString()\n )\n .setImageUrl(Uri.parse(basic.getString(\"galleryURL\")))\n .build();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n// if(linkContent != null)\n shareDialog.show(linkContent);\n\n// ShareLinkContent content = new ShareLinkContent.Builder()\n// .setContentUrl(Uri.parse(\"https://developers.facebook.com\"))\n// .build();\n//\n// shareDialog.show(content);\n\n\n }\n }", "void addHadithUrl(Object newHadithUrl);", "public static void checkAndClickShareOnFacebookButton() {\r\n\t\t\tcheckNoSuchElementExceptionByXPath(\"//*[@id=\\\"fackBook2\\\"]/img\", \"\\\"Share on Facebook\\\" button\");\r\n\t\t\tcheckElementNotInteractableExceptionByXPath(\"//*[@id=\\\"fackBook2\\\"]/img\", \"\\\"Share on Facebook\\\" button\");\r\n\t\t}", "public void onLinksClick(View v){\n // Launch the Links activity\n onAnyClick(Links.class);\n }", "public String createHrefForUser(final String name) {\n\t\treturn this.userUrlPrefix + name;\n\t}", "public void shareToFacebook(View view) {\n // more config: https://developers.facebook.com/docs/sharing/android\n\n String quoteMessage = \"Check out this fantastic film: \" + movieTitle\n + \" (\" + movieReleaseDate + \") -- MyMovieMemoir App\";\n\n if (ShareDialog.canShow(ShareLinkContent.class)) {\n ShareLinkContent linkContent = new ShareLinkContent.Builder()\n .setQuote(quoteMessage)\n .setContentUrl(Uri.parse(imageURL))\n .build();\n shareDialog.show(linkContent);\n }\n }", "@Override\n public void faceClicked() {\n Log.i(\"FACEOFF\", \"FACEOFF\");\n Uri webpage = Uri.parse(\"https://www.facebook.com/GrindDesign\");\n Intent webIntent = new Intent(Intent.ACTION_VIEW, webpage);\n startActivity(webIntent);\n }", "public void sharePage(){\n Intent shareIntent = new Intent(Intent.ACTION_VIEW);\n shareIntent.setData(Uri.parse(\"http://192.168.43.105:5000\"));//edit url\n startActivity(shareIntent);\n }", "public String getURL();", "private void shareToFacebook(Context context, CallbackManager callbackManager, Uri uri) {\n Toast.makeText(context, \"start sharing to facebook, \" + uri.getPath(), Toast.LENGTH_SHORT).show();\n //com.facebook.orca\n //com.facebook.katana\n //com.example.facebook\n //com.facebook.android\n String facebookPackage = \"com.facebook.katana\";\n if (AppUtil.getInstance().isAppInstalled(context, facebookPackage)) {\n //using default intent\n// Intent intent = new Intent(Intent.ACTION_SEND);\n// intent.setType(\"image/*\");\n// intent.putExtra(Intent.EXTRA_STREAM, uri);\n// intent.putExtra(Intent.EXTRA_TEXT, \"this is a simple extra text\");\n// intent.setPackage(facebookPackage);\n//// startActivity(Intent.createChooser(intent, \"pick an app to ...\"));\n// startActivity(intent);\n\n //using sdk but native facebook app has been installed\n sharePhotoToFacebook(context, callbackManager, uri);\n\n } else {\n loginAndShareToFacebook(context, callbackManager, uri);\n }\n\n\n }", "@Override\n public void followOnGithub() {\n if (sp.getBoolean(\"in_app_browser\",true)){\n CustomTabActivityHelper.openCustomTab(\n activity,\n customTabsIntent.build(),\n Uri.parse(activity.getString(R.string.github_url)),\n new CustomFallback() {\n @Override\n public void openUri(Activity activity, Uri uri) {\n super.openUri(activity, uri);\n }\n });\n } else {\n try{\n activity.startActivity(new Intent(Intent.ACTION_VIEW).setData(Uri.parse( activity.getString(R.string.github_url))));\n } catch (android.content.ActivityNotFoundException ex){\n view.showBrowserNotFoundError();\n }\n }\n }", "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \".\\\\DriverFiles\\\\chromedriver.exe\");\n\t\tChromeDriver driver = new ChromeDriver();\n\t\tString url = \"http://facebook.com\";\n\t\tdriver.get(url);\n\t\tString Expected_FacebookHomePageTitle = \"Facebook – log in or sign up\";\n\t\tSystem.out.println(\"The Expected Facebook Homepage Title is:\" +Expected_FacebookHomePageTitle);\n\t\tString Actual_FacebookHomePageTitle= driver.getTitle();\n\t\tSystem.out.println(\"The Title of Facebook Home Page is:\" +Actual_FacebookHomePageTitle);\n\t\t//Validating the title of Facebook homePage\n\t\t\n\t\tif(Actual_FacebookHomePageTitle.equals(Expected_FacebookHomePageTitle))\n\t\t\t\t{\n\t\tWebElement email =\tdriver.findElementById(\"email\");\n\t\tWebElement pass =\tdriver.findElementById(\"pass\");\n\t\tWebElement login = driver.findElementById(\"loginbutton\");\n\t\temail.sendKeys(\"sumalatha15\");\n\t\tpass.sendKeys(\"namish\");\n\t\tlogin.click();\n\t\t\t\n\t\t\tSystem.out.println(\"TiTle matched-Pass\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Title Not matched-Fail \");\n\t\t}\n\t\t\n\t\t//Capturing the url of the facebook /homepage\n\t\t\n\t\tString Actual_FacebookHomePageurl = driver.getCurrentUrl();\n System.out.println(\"The Actual url of facebookhomepage is:\"+Actual_FacebookHomePageurl);\n String Expected_FacebookHomePageUrl = \"facebook.com\";\n if(Actual_FacebookHomePageurl.contains(Expected_FacebookHomePageUrl))\n {\n \tSystem.out.println(\"url matched-Pass\");\n }\n \n else\n {\n \tSystem.out.println(\"url matche-Fail\");\n }\n\t\t// driver.quit();\n\t}", "private void onWhatTokenButtonClick() {\r\n\r\n //Open related web post\r\n Intent i = new Intent(Intent.ACTION_VIEW);\r\n i.setData(Uri.parse(getString(R.string.url_github_about_tokens)));\r\n startActivity(i);\r\n }", "public String ssoFacebook() throws InterruptedException {\n this.scrollBy(signupFacebook);\n helperMethods.waitForWebElementToBeInteractable(signupFacebook,30);\n\n signupFacebook.click();\n ssoSubscribeCheck.click();\n ssoTermsCheck.click();\n submitSSO.click();\n while (!helperMethods.waitForPageToLoad()) {\n helperMethods.waitForPageToLoad();\n }\n //Since we are navigating to third party adding thread.sleep\n Thread.sleep(7000);\n return webDriver.getTitle();\n }", "public String getUrlForSharing() {\n PostData pd = getAdapter().getPost(mPager.getCurrentItem());\n return pd.getUrl();\n }", "private String getTweetLink(Status status) {\n \t\treturn \"http://twitter.com/\" + status.getUser().getScreenName()\n \t\t\t\t+ \"/status/\" + status.getId();\n \t}", "@Override\n public void onClick(View v) {\n String Url= currentNews.getWebUrl();\n //sent intent to the website\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.addCategory(Intent.CATEGORY_BROWSABLE);\n intent.setData(Uri.parse(Url));\n getContext().startActivity(intent);\n }", "public String getSiteUrl();", "public void setLink(String link)\n {\n this.link = link;\n }", "private static Intent newFacebookIntent(PackageManager pm, String url) {\n Uri uri = Uri.parse(url);\n try {\n ApplicationInfo applicationInfo = pm.getApplicationInfo(\"com.facebook.katana\", 0);\n if (applicationInfo.enabled) {\n uri = Uri.parse(\"fb://facewebmodal/f?href=\" + url);\n }\n } catch (PackageManager.NameNotFoundException ignored) {\n }\n return new Intent(Intent.ACTION_VIEW, uri);\n }", "java.lang.String getClickURL();", "private void _fbAppShare(Activity act, UiLifecycleHelper uiHelper, String link, String description)\n {\n try {\n FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(act)\n .setLink(link != null && !link.equals(\"\") ? link : \"\")\n .setDescription(description != null && !description.equals(\"\") ? description : \"\")\n .build();\n uiHelper.trackPendingDialogCall(shareDialog.present());\n } catch (FacebookException ex) {\n String urlParameters = String.format(Constants.FB_SHARE_URL,\n act.getString(R.string.app_url), act.getString(R.string.app_name));\n Utilities.getInstance().openURL(act, urlParameters);\n }\n }", "String nextLink();", "@HEAD\n Call<Void> headFeed(@Url String url);", "@When(\"I share the link with my friend\")\r\n\tpublic void i_share_the_link_with_my_friend() {\n\t\tSystem.out.println(\"code for link\");\r\n\t}", "public Facebook(String handleName) {\n this.handleName = handleName;\n// this.socialActivityRef = socialActivityRef;\n }", "public void setLink(String link) {\r\n this.link = link;\r\n }", "public void shareToFacebook(View view) {\n Uri path = imageWithThumbnail.getImageUri();\n\n // create email intent first to remove bluetooth + others options\n Intent emailIntent = new Intent();\n emailIntent.setAction(Intent.ACTION_SEND);\n // Native email client doesn't currently support HTML, but it doesn't hurt to try in case they fix it\n emailIntent.putExtra(Intent.EXTRA_TEXT, \"#Selfie@NYPSIT\");\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"#Selfie@NYPSIT\");\n emailIntent.putExtra(Intent.EXTRA_STREAM, path);\n emailIntent.setType(\"image/jpeg\");\n // Create the chooser based on the email intent\n Intent openInChooser = Intent.createChooser(emailIntent, \"Share to\");\n\n // Check for other packages that open our mime type\n Intent sendIntent = new Intent(Intent.ACTION_SEND);\n sendIntent.setType(\"image/jpeg\");\n\n PackageManager pm = getContext().getPackageManager();\n List<ResolveInfo> resInfo = pm.queryIntentActivities(sendIntent, 0);\n List<LabeledIntent> intentList = new ArrayList<LabeledIntent>();\n for (int i = 0; i < resInfo.size(); i++) {\n // Extract the label, append it, and repackage it in a LabeledIntent\n ResolveInfo ri = resInfo.get(i);\n String packageName = ri.activityInfo.packageName;\n if (packageName.contains(\"com.amuletxheart.cameraderie\")) {\n emailIntent.setPackage(packageName);\n }\n intentList.add(new LabeledIntent(emailIntent, packageName, ri.loadLabel(pm), ri.icon));\n }\n // Get our custom intent put here as we only want your app to get it not others\n Intent customIntent = new Intent(\"facebooktestingimageandtext.intent.action.SEND\");\n customIntent.setType(\"image/jpeg\");\n customIntent.setAction(\"facebooktestingimageandtext.intent.action.SEND\");\n\n resInfo = pm.queryIntentActivities(customIntent, 0);\n for (int i = 0; i < resInfo.size(); i++) {\n // Extract the label, append it, and repackage it in a LabeledIntent\n ResolveInfo ri = resInfo.get(i);\n String packageName = ri.activityInfo.packageName;\n if (packageName.contains(\"com.amuletxheart.cameraderie\")) {\n Intent intent = new Intent();\n intent.setComponent(new ComponentName(packageName, ri.activityInfo.name));\n intent.setAction(Intent.ACTION_SEND);\n intent.putExtra(Intent.EXTRA_STREAM, path);\n intent.setType(\"image/jpeg\");\n if (packageName.contains(\"com.amuletxheart.cameraderie\")) {\n // My custom facebook intent to do something very simple!\n intent.putExtra(Intent.EXTRA_TEXT, \"caption #testhashtag\");\n }\n intentList.add(new LabeledIntent(intent, packageName, ri.loadLabel(pm), ri.icon));\n }\n }\n // convert the list of intents(intentList) to array and add as extra intents\n LabeledIntent[] extraIntents = intentList.toArray(new LabeledIntent[intentList.size()]);\n openInChooser.putExtra(Intent.EXTRA_INITIAL_INTENTS, extraIntents);\n\n mContext.startActivity(openInChooser);\n }", "String getJoinUrl();", "@RequestMapping(value = \"/link\", method = RequestMethod.GET)\n\tString link() {\n\t\ttry {\n\t\t\thueUseCase.linkBridgeWithNewUser();\n\t\t} catch (NullPointerException e) {\n\t\t\t// User did not press the Bridge button.\n\t\t\tSonarUtil.swallowException(e);\n\t\t\treturn \"setup\";\n\t\t}\n\n\t\treturn \"redirect:/configdata\";\n\t}", "public void setLink(String link) {\r\n this.link = link;\r\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_VIEW, Uri\n\t\t\t\t\t\t\t\t\t\t.parse(fullsitelink));\n\t\t\t\t\t\t\t\tstartActivity(i);\n\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n Intent share=new Intent(android.content.Intent.ACTION_SEND);\n\n share.setType(\"text/plain\");\n share.putExtra(android.content.Intent.EXTRA_SUBJECT,news.getTitle());\n share.putExtra(android.content.Intent.EXTRA_TEXT,\"Follow the link : \"+MainActivity.base_url+news.getAbsolute_url()+\" to read more\");\n startActivity(Intent.createChooser(share,\"Share via\"));\n\t\t\t\t\t\t}", "@Override\n public String getIdFacebook() {\n return idFacebook;\n }", "@GET\n public Response getLinks() {\n List<Link> links = new ArrayList<>();\n links.add(Link.fromUri(CommonConstants.API_URI+\"users/login\").rel(\"login\").build());\n links.add(Link.fromUri(CommonConstants.API_URI+\"users/\").rel(\"users\").build());\n links.add(Link.fromUri(CommonConstants.API_URI+\"boardgames/\").rel(\"boardgames\").build());\n\n return Response.ok().links(links.toArray(new Link[links.size()])).build();\n }", "public void setLink(String link) {\n this.link = link;\n }", "public void setLink(String link) {\n this.link = link;\n }", "public void setLink(String link) {\n this.link = link;\n }", "private static final String m2193f() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"fb\");\n stringBuilder.append(C0560t.m1253e());\n stringBuilder.append(\"://authorize\");\n return stringBuilder.toString();\n }", "public void linkShare() {\n\t\tclientOutput.println(\">>> Link do vaseg drajva je: \" + new File(\"drive\").getAbsolutePath() + \"\\\\\" + username);\n\t}", "@Test\n\tpublic void TestTwoLinksAreHandledOkay() {\n\t\tJabberMessage msg = new JabberMessage();\n\t\tmsg.setMessage(\"Hello There! http://reddit.com http://google.com\");\n\t\tmsg.setId(1);\n\t\tmsg.setUsername(\"Test\");\n\t\tmsg.setTimestamp(\"NOW!\");\n\t\tLink link = null;\n\t\ttry {\n\t\t\tlink = lh.convertMessageToLink(msg);\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Couldnt convert message to link\");\n\t\t}\n\t\tif (link.getUrl().equals(\"http://reddit.com\") || link.getUrl().equals(\"http://google.com\")) {\n\t\t\t// pass\n\t\t}\n\t\telse {\n\t\t\tfail(\"Can't handle two URL's\");\n\t\t}\n\t}", "public String getLinkName();", "public void validateSocialMediaLinks(WebDriver driver)\n\t{\n\t\tBoolean actTwitter1 = driver.findElement(By.cssSelector(\"a.twitter\")).isDisplayed();\n System.out.println(\"Twitter is displayed or not: \"+actTwitter1);\n\t}", "@Override\n public void resolveUrls(KeycloakUriBuilder authUrlBuilder) {\n }", "public void createBrowserIntent(View view){\n Uri uri = Uri.parse(\"https://www.linkedin.com/in/chidi-uwaleke-3769b9a8/\");\n\n //Step 2: Create a browserIntent with action 'Intent.ACTION_VIEW'\n Intent browserIntent = new Intent(Intent.ACTION_VIEW);\n\n //Step 3: Set the data of the intent\n browserIntent.setData(uri);\n\n //Step 4: Start the intent\n startActivity(browserIntent);\n }", "String getWebsite();", "@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tDialog dialog=new Dialog(Glory.this);\n\t\t\t\tdialog.setContentView(R.layout.share_dialog_layout);\n\t\t\t\tdialog.setTitle(\"Share Via\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfbIcon=(TextView)dialog.findViewById(R.id.fb_icon);\n\t\t\t\ttwitterIcon=(TextView)dialog.findViewById(R.id.twitter_icon);\n\t\t\t\tgPlusIcon=(TextView)dialog.findViewById(R.id.gplus_icon);\n\t\t\t\t\n\t\t\t\tfbIcon.setTypeface(font);\n\t\t\t\ttwitterIcon.setTypeface(font);\n\t\t\t\tgPlusIcon.setTypeface(font);\n\t\t\t\n\t\t\t\t\n\t\t\t\tfbIcon.setOnClickListener(new OnClickListener() \n\t\t\t\t{\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) \n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tString url = \"https://www.facebook.com/dialog/feed?app_id=1507764116109075&\" +\n\t\t\t\t\t\t\t\t \t \"link=https://play.google.com/store/apps/details?id=com.achyuthnfn.cnbfinal&\" +\n\t\t\t\t\t\t\t\t \t \"caption=GuessIn&\" +\n\t\t\t\t\t\t\t\t \t \"description=\"+Uri.parse(\"My smartphone just thought of a word and I guessed it in \"+attempts+\" attempts. Check out the new game by @nfnlabs called GuessIn!\")+\n\t\t\t\t\t\t\t\t \t \"&redirect_uri=https://www.facebook.com/connect/login_success.html\"+\n\t\t\t\t\t\t\t\t \t \"&picture=http://nfnlabs.in/wp-content/uploads/2014/06/Share%20Image.png\";\n\t\t\t\t\t\tIntent intent=new Intent(Intent.ACTION_VIEW);\n\t\t\t\t\t\tintent.setData(Uri.parse(url));\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\ttwitterIcon.setOnClickListener(new OnClickListener() \n\t\t\t\t{\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tString url = \"https://twitter.com/intent/tweet?text=My smartphone just thought of a word and I guessed it in \"+attempts+\" attempts. Check out Guessin by @nfnlabs:&url=\"+Uri.parse(\"http://goo.gl/CGmGEx\");\n\t\t\t\t\t\tIntent intent=new Intent(Intent.ACTION_VIEW);\n\t\t\t\t\t\tUri uri=Uri.parse(url);\n\t\t\t\t\t\tintent.setData(uri);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\tgPlusIcon.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tIntent intent= new PlusShare.Builder(Glory.this)\n\t\t\t\t\t\t\t.setText(\"My smartphone just thought of a word and I guessed it in \"+attempts+\" attempts. Check out the new game by @nfnlabs called GuessIn!\")\n\t\t\t\t\t\t\t.setType(\"text/plain\")\n\t\t\t\t\t\t\t.setContentUrl(Uri.parse(\"https://play.google.com/store/apps/details?id=com.achyuthnfn.cnbfinal\"))\n\t\t\t\t\t\t\t.getIntent();\n\t\t\t\t\t\tstartActivityForResult(intent, 0);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\tdialog.show();\n\t\t\t}", "private void execURL(String link) {\n Uri webLink = Uri.parse(link);\n Intent openLink = new Intent(Intent.ACTION_VIEW, webLink);\n PackageManager pm = getPackageManager();\n List<ResolveInfo> handlers = pm.queryIntentActivities(openLink, 0);\n if (handlers.size() > 0)\n startActivity(openLink);\n }", "void addHadithBookUrl(Object newHadithBookUrl);", "@SuppressWarnings(\"deprecation\")\n\tprotected void postToWall() {\n\t\tBundle parameters = new Bundle();\n\n\t\tparameters.putString(\"link\", link);\n\t\tfacebook.dialog(FacebookActivity.this, \"feed\", parameters,\n\t\t\t\tnew DialogListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onCancel() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tfinish();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onComplete(Bundle values) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\tfinish();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onError(DialogError e) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFacebookError(FacebookError e) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t});\n\t}", "private String findLink(BasicPanel panel, Element e)\n {\n String uri = null;\n\n for (Node node = e; node.getNodeType() == Node.ELEMENT_NODE; node = node.getParentNode())\n {\n uri = panel.getSharedContext().getNamespaceHandler().getLinkUri((Element) node);\n\n if (uri != null)\n {\n try\n {\n URI linkUri = getLinkUri(uri);\n String target = panel.getSharedContext().getNamespaceHandler().getAttributeValue((Element) node, \"target\");\n logger.debug(\"link target: \" + target);\n if (EXTERNAL_TARGET.equalsIgnoreCase(target))\n {\n logger.info(\"launch external browser for \" + uri);\n BareBonesBrowserLaunch.openURL(linkUri.toString());\n uri = null;\n }\n else if (EXTERNAL_MORE_ASSIGNMENT.equalsIgnoreCase(target))\n {\n if (showMoreInfo != null)\n {\n logger.info(\"show more assignment with \" + uri);\n showMoreInfo.showMoreInfo(linkUri, MoreInfoTypes.ASSIGNMENT, eloUri);\n }\n else\n {\n logger.info(\"could not show more assignment (showMoreInfo==null) with \" + uri);\n }\n uri = null;\n }\n else if (EXTERNAL_MORE_RESOURCES.equalsIgnoreCase(target))\n {\n if (showMoreInfo != null)\n {\n logger.info(\"show more resources with \" + uri);\n showMoreInfo.showMoreInfo(linkUri, MoreInfoTypes.RESOURCES, eloUri);\n }\n else\n {\n logger.info(\"could not show more resources (showMoreInfo==null) with \" + uri);\n }\n uri = null;\n }\n break;\n }\n catch (URISyntaxException ex)\n {\n logger.error(\"error in uri\", ex);\n }\n }\n }\n\n return uri;\n }", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getLink() {\n return link;\n }", "@When(\"^the user opens linked sigup page$\")\r\n\tpublic void the_user_opens_linked_sigup_page() throws Throwable {\n\tsign.linkedin_signup();\r\n\t\t\r\n\t}", "private String getAuthorLink(Status status, TweetPrinter printer) {\n \t\tString url = \"http://twitter.com/\" + status.getUser().getScreenName();\n \t\treturn printer.getLink(status.getUser().getName(), url);\n \t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(v.getContext(), WebViewActivity.class);\n //intent.setData(Uri.parse(listOfArticles.get(position).getLinkToArticle()));\n intent.putExtra(LINK_URL_KEY, listOfArticles.get(position).getLinkToArticle());\n v.getContext().startActivity(intent);\n }", "public void setLinkName(String linkName);", "public String getLink() {\r\n return link;\r\n }", "void storeLinks();", "private String setReferralzz(){\n String uid = mAuth.getCurrentUser().getUid();\n String link = INVITE_LINK+uid;\n FIRDynamicLinkComponents referalLink = new FIRDynamicLinkComponents(new NSURL(link) ,\"https://fingertipsandcompany.page.link\");\n\n FIRDynamicLinkIOSParameters iOSParameters = new FIRDynamicLinkIOSParameters(BUNDLE_ID);\n iOSParameters.setMinimumAppVersion(\"1.0.1\");\n iOSParameters.setAppStoreID(\"1496752335\");\n referalLink.setIOSParameters(iOSParameters);\n\n FIRDynamicLinkAndroidParameters androidParameters = new FIRDynamicLinkAndroidParameters(BUNDLE_ID);\n androidParameters.setMinimumVersion(125);\n referalLink.setAndroidParameters(androidParameters);\n\n\n referalLink.shorten(new VoidBlock3<NSURL, NSArray<NSString>, NSError>() {\n @Override\n public void invoke(NSURL shortURL, NSArray<NSString> nsStrings, NSError nsError) {\n if (nsError != null){\n System.out.println(\"Referal Link Shorter Error-------------------->\"+nsError);\n return;\n }\n mInvitationURL = shortURL.getAbsoluteString();\n System.out.println(\"Generated Referral Link \");\n\n }\n });\n\n return mInvitationURL;\n\n }", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "public void onMoreInfoClickedListener(View view) {\n Intent browse = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.wazapay.com\"));\n startActivity(browse);\n }", "public String getUrl()\n\t\t{\n\t\t\treturn \"https://www.zohoapis.eu\";\n\t\t}", "public List<String> getLinks();", "private static void addSeedURL()\r\n\t{\r\n\t\tSystem.out.println(\"Enter a website to search for keywords.\");\r\n\t\tString userInput = input.nextLine();\r\n\t\t\r\n\t\tif(userInput.length() >= 7 && !(userInput.substring(0, 6).equals(\"https://\")))\r\n\t\t{\r\n\t\t\tuserInput = \"http://\" + userInput;\r\n\t\t\t\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tSharedLink.addLink(userInput);\r\n\t\t\t} \r\n\t\t\tcatch (InterruptedException e) \r\n\t\t\t{\r\n\t\t\t\t//do nothing\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected abstract String getPublicUrl(URL url);", "public String getLink()\n {\n return link;\n }", "Uri getUrl();" ]
[ "0.65971345", "0.6521971", "0.64233917", "0.6321174", "0.6247537", "0.6144091", "0.59432465", "0.5932581", "0.5862908", "0.57855904", "0.57770526", "0.5747433", "0.5684879", "0.55966496", "0.5589824", "0.5580235", "0.5578719", "0.55658025", "0.5560542", "0.55558074", "0.5516175", "0.5495003", "0.54861873", "0.54502255", "0.5444793", "0.5440194", "0.5419845", "0.5418341", "0.54150325", "0.5415001", "0.540947", "0.54032755", "0.5387454", "0.5380565", "0.53683585", "0.536799", "0.5359608", "0.53531444", "0.5340248", "0.53259724", "0.5317423", "0.5315673", "0.5314628", "0.53125876", "0.5309508", "0.5306085", "0.5290745", "0.52758265", "0.52751875", "0.52673984", "0.52656204", "0.5258092", "0.5251655", "0.52420443", "0.5240545", "0.52403253", "0.5235572", "0.5230753", "0.522546", "0.52195966", "0.5216503", "0.5216503", "0.5216503", "0.52123696", "0.5209155", "0.5200552", "0.51941025", "0.5193142", "0.5187841", "0.5177278", "0.51762253", "0.5166421", "0.5160823", "0.515404", "0.5145328", "0.51418173", "0.5134532", "0.5134532", "0.5134532", "0.5134532", "0.5134528", "0.5134435", "0.5123832", "0.5122751", "0.512257", "0.5121698", "0.5106731", "0.51063967", "0.5105897", "0.5105897", "0.5105897", "0.5105897", "0.5105897", "0.5101934", "0.510049", "0.5086127", "0.5086082", "0.50857854", "0.50818914", "0.50786585" ]
0.60304904
6
Persist a TwoDBlackImage instance.
public void persistTwoDBlackImage(TwoDBlackImage image) { fcCrud.create(image); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void store_image(Images image) {\n\t\tir.save(image);\n\t}", "void save(Images image);", "@Override\r\n\tpublic FileImage save(FileImage fileImage) {\n\t\treturn fileImageDao.save(fileImage);\r\n\t}", "public Save(BufferedImage image){\n\tthis.new_buff_image = image;\n }", "@Override\n\tpublic void saveImage(Image image) {\n\t\tnew ImageDaoImpl().saveImage(image);\n\t}", "public void save(Object instance);", "@Override\r\n\tpublic Image save(Image model) throws PersistenceException {\n\t\treturn null;\r\n\t}", "void saveStorage(StorageEntity storage);", "boolean saveImage(Image img) {\r\n\t\treturn true;\r\n\t}", "@Override\n public void persist() {\n }", "private void saveImageInstantly() {\n\n if (movie != null) {\n\n // Get movie's title and set an initial file name\n String movieTitle = movie.getMovieTitle();\n\n // Replace any invalid characters\n movieTitle = movieTitle.replaceAll(\"[\\\"/?\\\"*><|]\", \"\").replace(\":\", \"-\");\n\n // If preferences file is empty\n if (userDirectoryString.equals(\"empty\")) {\n\n userDirectoryString = System.getProperty(\"user.home\");\n }\n\n File userDirectory = new File(userDirectoryString + \"/\" + movieTitle + \".jpg\");\n\n // If it can't access User Home, default to C drive\n if (!userDirectory.getParentFile().canRead()) {\n userDirectory = new File(\"D:\\\\\" + movieTitle + \".jpg\");\n }\n\n // Check file isn't null, so it the image view\n if (imgPoster.getImage() != null) {\n\n try {\n\n ImageIO.write(SwingFXUtils.fromFXImage(imgPoster.getImage(), null), \"jpg\", userDirectory);\n setLblStatus(\"Poster saved successfully.\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "@Override\n\tpublic void save(Photo photo) {\n\t\t\n\t}", "@Override\r\n\tpublic void persist() {\n\t}", "@Override\r\n\tpublic void save(T instance) {\r\n\t\tif (isManaged(instance)) {\r\n\t\t\tgetEntityManager().merge(instance);\r\n\t\t} else {\r\n\t\t\tgetEntityManager().persist(instance);\r\n\t\t}\r\n\t}", "public boolean savePicture(){\n String path = MediaStore.Images.Media.insertImage(getContentResolver(),\n ((BitmapDrawable)PicSingleton.getInstance().getPicShaped()).getBitmap(),\n \"pichsape\"+ System.currentTimeMillis(),\n \"PicShape\");\n\n if(path != null) return true;\n\n return false;\n }", "public void save(boolean create) {\r\n if (!readyToSave) {\r\n super.error(\"Upload objects are not ready to save\");\r\n LOG.error(\"Upload objects are not ready to save, container view failed to call update method\");\r\n }\r\n // check duplicate uploads especially in edit mode\r\n if (create) {\r\n super.getBasebo().persist(uploads);\r\n } else {\r\n super.getBasebo().update(uploads);\r\n }\r\n readyToSave = false;\r\n }", "public ImageFile saveImageFile(ImageFile imagedata){\n //int imageID;\n Session session = sessionFactory.openSession();\n // try to save data\n try{\n session.beginTransaction();\n \n session.save(imagedata);\n \n session.getTransaction().commit();\n session.flush();\n }\n catch (HibernateException e) {\n e.printStackTrace();\n return null;\n } \n finally { session.close(); }\n \n // Return imageID if image is saved\n return imagedata;\n }", "@Override\r\n\tpublic boolean addNewBird(BIrd imageObj) throws Exception {\n\t\t boolean b = false;\r\n\t\t try\r\n\t\t {\r\n\t\t session = sessionfactory.openSession();\r\n\t\t transaction = session.beginTransaction();\r\n\t\t session.save(imageObj);\r\n\t\t transaction.commit();\r\n\t\t session.close();\r\n\t\t b = true;\r\n\t\t }catch(Exception e){\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t return b;\r\n\t}", "public void save(Object obj) throws HibException;", "@Override\n\tpublic void persist(Object entity) {\n\t\t\n\t}", "@Override\n\tpublic Image creer(Image entity) throws InvalideGstoreException {\n\t\treturn imageRepository.save(entity);\n\t}", "@Override\n\tpublic int saveImage(Movie movie) {\n\t\tString str = uuid.toString();\n String id = str.substring(0, 8) + str.substring(9, 13) + str.substring(14, 18) + str.substring(19, 23) + str.substring(24);\n \n\t\tmovie.setId(id);\n\t\tmovie.setCreateData(new Date());\n\t\tint number = this.insert(\"Movie.insert\", movie);\n\t\treturn number;\n\t}", "public void saveImage(){\n fixMediaDir(); // fixes bug in Android 4.4\n\n // name file eSketch + timestamp\n final String filename = \"eSketch\" + System.currentTimeMillis() + \".jpg\";\n\n // insert image on the device\n String location = MediaStore.Images.Media.insertImage(\n getContext().getContentResolver(), mBitmap, filename, \"eSketch Drawing\"\n );\n\n if( location != null ){\n // notify user image was saved successfully\n Toast msg = Toast.makeText( getContext(), R.string.message_saved, Toast.LENGTH_SHORT);\n msg.setGravity(Gravity.CENTER, msg.getXOffset()/2, msg.getYOffset()/2);\n msg.show();\n } else {\n // notify user image was NOT saved successfully\n Toast msg = Toast.makeText( getContext(), R.string.message_error_saving, Toast.LENGTH_SHORT);\n msg.setGravity(Gravity.CENTER, msg.getXOffset()/2, msg.getYOffset()/2);\n msg.show();\n }\n }", "public boolean uploadImage(String path2repository, String path2image) {\n\t\tbyte[] bin = Img2Bin(path2image);\n\t\t\n\t\tValueCollection payload = new ValueCollection();\n\t\tpayload.put(\"content\", new ImagePrimitive(bin));\n\t\tpayload.put(\"path\", new StringPrimitive(path2repository));\n\t\t\n\t\ttry {\n\t\t\tclient.invokeService(ThingworxEntityTypes.Things, \"SmartDoorRepository\", \"SaveImage\", payload, 5000);\n\t\t\tLOG.info(\"Image {} was uploaded to {}.\",path2image, path2repository);\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"Image couldn't be uploaded. Error: {}\",e);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\n\tpublic void save(CompanyImgAndDoc companyImgDoc) {\n\t\tcompanyImgAndDocDAO.save(companyImgDoc);\n\t\t\n\t}", "public void Save( String saveImgAs )\n {\n saveImage(image, saveImgAs); \n }", "public void save(String serverID)\r\n\t{\r\n\t\tT save = instances.get(serverID);\r\n\t\tif(save!=null)\r\n\t\t{\r\n\t\t\tFile f = new File(root,serverID+\"/\"+save.path());\r\n\t\t\tf.getParentFile().mkdirs();\r\n\t\t\ttry {\r\n\t\t\t\tWriter out = new BufferedWriter(new OutputStreamWriter(\r\n\t\t\t\t\t\tnew FileOutputStream(f), \"UTF-8\"));\r\n\t\t\t\ttry {\r\n\t\t\t\t\tout.write(save.toText(gson));\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tout.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void saveFile() {\r\n\t\tFile file = new File(this.picture.getFileName());\r\n\r\n\t\ttry {\r\n\t\t\tImageIO.write(this.picture.getBufferedImage(),\r\n\t\t\t\t\tthis.picture.getExtension(), file);\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(this.pictureFrame,\r\n\t\t\t\t \"Could not save file.\",\r\n\t\t\t\t \"Save Error\",\r\n\t\t\t\t JOptionPane.WARNING_MESSAGE);\r\n\t\t}\r\n\r\n\t}", "@FXML\r\n void btnSave(ActionEvent event) throws IOException {\r\n \tdos.writeInt(server.ServerConstants.DRAW_SAVE);\r\n \tString fileName = \"D://image/snapshot\" + new Date().getTime() + \".png\";\r\n \tFile file = new File(fileName);\r\n \tWritableImage writableImage = new WritableImage(768, 431);\r\n canvas.snapshot(null, writableImage);\r\n RenderedImage renderedImage = SwingFXUtils.fromFXImage(writableImage, null);\r\n ImageIO.write(renderedImage, \"png\", file);\r\n \r\n OutputStream outputStream = client.getOutputStream();\r\n FileInputStream fileInputStream = new FileInputStream(file);\r\n byte[] buf = new byte[1024];\r\n int length = 0;\r\n while((length = fileInputStream.read(buf))!=-1){\r\n \toutputStream.write(buf);\r\n }\r\n fileInputStream.close();\r\n }", "private void save(FileItem file) throws Exception {\n FileHandler fileHandler = new FileHandler(oriImgFile());\n fileHandler.saveFile(file);\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n Log.i(TAG, \"OnsAveInstance\");\n super.onSaveInstanceState(outState);\n outState.putParcelable(KEY_AVATAR_BITMAP, mAvatar.getBitmap());\n\n }", "DailyFlash save(DailyFlash dailyFlash) throws SpmCheckedException;", "@Override\n @CrossOrigin(origins = USER_HOST_SERVER)\n @RequestMapping(value = \"addUserImage\", method = RequestMethod.POST)\n @ResponseBody\n public ResponseEntity<UserImageDTO> persistUserImage(@RequestBody UserImageDTO userImage) {\n\n\tUserImage userImageValue = new UserImage();\n\tSystem.out.println(\"user image DTO to be sent to Dao is \" + userImage.toString());\n\tuserImageValue.setUser(prepareUserEntity(userImage));\n\n\ttry {\n\t Blob blob = new javax.sql.rowset.serial.SerialBlob(userImage.getUserImg());\n\t userImageValue.setUserImg(userImage.getUserImg());\n\t} catch (SQLException e) {\n\t e.printStackTrace();\n\t userImageValue.setUserImg(null);\n\t}\n\tuserImageDao.addUserImage(userImageValue);\n\treturn new ResponseEntity<UserImageDTO>(userImage, HttpStatus.CREATED);\n }", "public void persistCvpack(Cvpack cvpack);", "public void saveDetailsOnClick(View view)\n {\n\n //Create Picture object by passing String params set by user.\n Picture picture = new Picture(locationEditText.getText().toString(),\n pictureNameEditText.getText().toString());\n\n //call pushPicture method using instance of Picture to push picture to Firebase\n picture.pushPicture(picture.getLocation(),picture.getName());\n\n\n //Display Toast to let user know that picture has been saved.\n Toast.makeText(PictureActivity.this, R.string.save_toast,\n Toast.LENGTH_SHORT).show();\n\n }", "public void persist(String key, Object value)\r\n\t{\r\n\t\tgetPersistenceMap().put(key, value);\r\n\t}", "@Override\n\tpublic Image modifier(Image entity) throws InvalideGstoreException {\n\t\treturn imageRepository.save(entity);\n\t}", "boolean save(String id, Bitmap bitmap);", "public void save() {\n try {\n ConfigurationProvider.getProvider(YamlConfiguration.class).save(this.configuration, this.getConfigurationFile());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void save(int screenId, float x, float y) {\n\t\tx = x / SCALE_POSITION;\n\t\ty = (y + SET_BACKGROUND_POSITION_Y - MARGIN_Y) / SCALE_POSITION;\n\t\tdb.updateWhenSaving(screenId, x, y);\n\t}", "public void persistCvchannel(Cvchannel cvchannel);", "public void Save() {\r\n //solo se salvara el container\r\n vc.getContainer();\r\n }", "@Override\n\tpublic void persist(T obj) throws Exception {\n\t\t\n\t}", "public static boolean storeImage(WritableImage imageToWrite, File fileStore) {\n boolean dataSaved;\n try {\n /*Delete file if it exists*/\n if (fileStore.exists()) {\n fileStore.delete();\n }\n /*Create new file*/\n fileStore.createNewFile();\n /*Export image*/\n BufferedImage bImage = SwingFXUtils.fromFXImage(imageToWrite, null);\n ImageIO.write(bImage, \"png\", fileStore);\n dataSaved = true;\n } catch (Exception e) {\n dataSaved = false;\n System.out.println(e.getMessage());\n }\n return dataSaved;\n }", "void persist() throws PersistenceException;", "public synchronized void addNewImage(BufferedImage img, File file) {\r\n\t\tint image_pk = db.insertImage(file.getName(), file.getAbsolutePath(), DEFAULT_TAG_PK);\r\n\t\tSaveImageOnDisk saveImage = new SaveImageOnDisk(img, file, db.getCacheName(image_pk)); \r\n\t\tsaveImage.start();\r\n\t}", "public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@FXML public void saveToFile()throws java.io.IOException {\n Highgui.imwrite( this.originalImagePath, this.image );\n System.out.println(\"Saving\");\n }", "public void saveAll() {\n try {\n writeObject(IMAGE_DATA_PATH, imageFiles);\n writeObject(EXISTING_TAGS_PATH, existingTags);\n } catch (IOException e) {\n // e.printStackTrace();\n }\n }", "public abstract Banner saveBanner(Banner banner);", "public boolean saveImage() throws IOException\n\t{\n\t\tConfiguration config = GlobalConfiguration.CONFIG;\n\t\tString rootPath = config.get(GlobalConfiguration.CRAWL_IMAGE_ROOT, \"/export/public_html/image\");\n\t\tFile imageDir = new File(rootPath);\n\t\tif(!imageDir.exists())\n\t\t{\n\t\t\timageDir.mkdirs();\n\t\t}\n\t\t///image name is image data hash in hex format\n\t\tString fullPath = rootPath + \"/\" + this.getImageFileName();\n\t\tFileOutputStream fos = new FileOutputStream(fullPath);\n\t\tfos.write(this.getImageData());\n\t\tfos.close();\n\t\treturn true;\n\t}", "void save(storage_server_connections connection);", "public void saveImage(MultipartFile imageFile) throws IOException {\n\t\tlogger.info(\"ComicDetail ID is \"+imageFile.getOriginalFilename());\r\n\t\tString folder=\"/images/comiccover\";\r\n\t\tbyte[] bytes = imageFile.getBytes();\r\n\t\tlogger.info(\"ComicDetail ID is \"+imageFile.getOriginalFilename());\r\n\t\t//Path path = Paths.get(folder+imageFile.getOriginalFilename());\r\n\t\r\n\t\t//Files.write(path, bytes);\r\n\t}", "public void save()\n\t{\n\t\tif(entity != null)\n\t\t\t((SaveHandler)DimensionManager.getWorld(0).getSaveHandler()).writePlayerData(entity);\n\t}", "void savePicturePath(String userName, String picturePath) throws DatabaseException;", "public void saveScreenshot() {\n if (ensureSDCardAccess()) {\n Bitmap bitmap = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bitmap);\n doDraw(1, canvas);\n File file = new File(mScreenshotPath + \"/\" + System.currentTimeMillis() + \".jpg\");\n FileOutputStream fos;\n try {\n fos = new FileOutputStream(file);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, fos);\n fos.close();\n } catch (FileNotFoundException e) {\n Log.e(\"Panel\", \"FileNotFoundException\", e);\n } catch (IOException e) {\n Log.e(\"Panel\", \"IOEception\", e);\n }\n }\n }", "public void saveImage(){\n new Thread() {\n public void run() {\n String image_url = stuffRoomInfo.getStuffLink();\n Log.i(\"OGT\", \"image_url:in showImage \" + image_url);\n getOGTag(image_url);\n // Display a png image from the specified file\n ImageUrlSendServer();\n }\n }.start();\n }", "public void saveImage(int userNumber, byte[] readByte){\n\t\tif(readByte.length <= 0)return;\n\t\tfor(int j = 0; j < c.maxUsers; j++){\n\t\t\tif(Users[userNumber].imgTempNum == -1){\t\t\t\t\t\n\t\t\t\tfor(int k = 0; k < c.maxUsers; k++){\n\t\t\t\t\tif(imgTemps[k].userNumber == -1){\n\t\t\t\t\t\timgTemps[k].userNumber = userNumber;\n\t\t\t\t\t\tUsers[userNumber].imgTempNum = k;\n\t\t\t\t\t\timgTemps[k].newFiles = new byte[c.MaxImageLength];\n\t\t\t\t\t\tSystem.out.println(\"k = \"+k);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(imgTemps[Users[userNumber].imgTempNum].newFiles == null){//init it \n\t\t\timgTemps[Users[userNumber].imgTempNum].newFiles = new byte[c.MaxImageLength];\n\t\t}\n\t\timgTemps[Users[userNumber].imgTempNum].setNewFiles(readByte,readByte.length);\n\t}", "public void save();", "public void save();", "public void save();", "public void save();", "private static void writeBLOBData() {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tconn = JDBCUtils.getMySQLConnection();\n\t\t\tString sql = \"INSERT INTO testblob(name, img) values(?,?)\";\n\t\t\tstmt = conn.prepareStatement(sql);\n\t\t\tstmt.setString(1, \"ke\");\n\t\t\tFile file = new File(\"D:\" + File.separator + \"test.jpg\");\n\t\t\tInputStream in = new FileInputStream(file);\n\t\t\tstmt.setBinaryStream(2, in, (int)file.length());\n\t\t\tstmt.executeUpdate();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tJDBCUtils.release(stmt, conn);\n\t\t}\n\t}", "int insert(SysPic record);", "void guardarImagen(BufferedImage bimg1, BufferedImage bimg2, FichaDocente fcdc, TipoHuella tphl)\n\t\t\tthrows IOException, SerialException, SQLException;", "public void saveImg(byte[] byteImg, String fileName) throws IOException{\n File outputFile = new File(\"src/main/resources/tmpImg/\" + fileName);\n // convert byte[] back to a BufferedImage\n BufferedImage newBi = ImageIO.read(new ByteArrayInputStream(byteImg));\n // save it\n ImageIO.write(newBi, \"jpeg\",outputFile);\n }", "public interface ImageService {\n\n void saveImageFile(Long recipeId, MultipartFile imageFile);\n}", "public void saveCard(card cardToBeSaved)\n {\n dbObj=new dbFlashCards(uid);\n dbObj.saveCard(packId, cardToBeSaved.getCardId(), cardToBeSaved.getFront(),cardToBeSaved.getBack());\n \n \n }", "private void saveToInternalStorage(Bitmap bitmapImage) {\n String root = Environment.getExternalStorageDirectory().toString();\n File myDir = new File(root + \"/saved_images\");\n if (!myDir.exists()) {\n myDir.mkdirs();\n }\n String fname = \"profile.jpg\";\n File file = new File(myDir, fname);\n if (file.exists()){\n file.delete();\n }\n try {\n FileOutputStream out = new FileOutputStream(file);\n bitmapImage.compress(Bitmap.CompressFormat.JPEG, 90, out);\n out.flush();\n out.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void save() {\n Path root = Paths.get(storagePath);\n try {\n Files.copy(file.getInputStream(), root.resolve(file.getOriginalFilename()),\n StandardCopyOption.REPLACE_EXISTING);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void putImageInStorage() {\n final StorageReference ref = storageReference.child(\"images/\" + java.util.UUID.randomUUID().toString());\n ref.putFile(filePath)\n .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n if (taskSnapshot.getMetadata() != null) {\n if (taskSnapshot.getMetadata().getReference() != null) {\n Task<Uri> result = taskSnapshot.getStorage().getDownloadUrl();\n result.addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n imageUrl = uri.toString();\n ChatMessage Message = new\n ChatMessage(null,\n mUsername,\n imageUrl, dateAndTime);\n mFirebaseDatabaseReference.child(CHATS_PATH + chatCode)\n .push().setValue(Message);\n }\n });\n }\n }\n }\n });\n }", "public void save(final UploadFile uploadFile) {\n\t\t uploadFileDAO.persist(uploadFile);\n\t }", "@Override\n public void save(T element) {\n manager.persist(element);\n }", "public void save() {\t\n\t\n\t\n\t}", "private void pruebaGuardado() {\n try {\n BufferedImage img = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g2d = img.createGraphics();\n g2d.setColor(Color.RED);\n g2d.fillRect(25, 25, 50, 50);\n g2d.dispose();\n ImageIO.write(img, \"JPEG\", new File(\"D:\\\\LeapMotion\\\\foo.jpg\"));\n } catch (IOException ex) {\n Logger.getLogger(Nodo.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void writeToImage() {\n imageWriter.writeToImage();\n }", "@Override\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t\toutState.putParcelable(BITMAP_STORAGE_KEY, mImageBitmap);\n\t\toutState.putParcelable(VIDEO_STORAGE_KEY, mVideoUri);\n\t\toutState.putBoolean(IMAGEVIEW_VISIBILITY_STORAGE_KEY, (mImageBitmap != null) );\n\t\toutState.putBoolean(VIDEOVIEW_VISIBILITY_STORAGE_KEY, (mVideoUri != null) );\n\t\tsuper.onSaveInstanceState(outState);\n\t}", "void register(byte[] imageData, ObjectImageType imageType, String uuid);", "private void putProfPic(Blob gbPhoto) throws SQLException, FileNotFoundException, IOException {\n if(gbPhoto == null){\n ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();\n File file = new File(externalContext.getRealPath(\"\")+\"\\\\resources\\\\images\\\\user_default.png\");\n imagePic = new OracleSerialBlob(FileUtils.getBytes(file));\n Long size = imagePic.length();\n photo_profile = new ByteArrayContent(imagePic.getBytes(1, size.intValue()));\n }else{\n imagePic = gbPhoto;\n Long size = gbPhoto.length();\n photo_profile = new ByteArrayContent(gbPhoto.getBytes(1, size.intValue()));\n }\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n\n outState.putString(IMAGE_FILE, currentPhotoPath);\n }", "@Override\n\tpublic void persist(Recipe entity) {\n\t\t\n\t}", "private boolean savePicture(Mesero pictureInfo) {\r\n\t\tif(!isReady) prepare();\r\n\t\tif(!isReady) {\r\n\t\t\tLog.e(TAG,\"The system was not ready. No external media\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t/** Now, let's do the heavy lifting */\r\n\t\t//YAY! http://stackoverflow.com/questions/649154/save-bitmap-to-location\r\n\t\tFileOutputStream out = null;\r\n\t\ttry {\r\n\t\t\tout = new FileOutputStream(new File(directory,pictureInfo.getName()));\r\n\t\t\tpictureInfo.getBitmap().compress(Bitmap.CompressFormat.JPEG, 100, out);\r\n\t\t\t\r\n\t\t} catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tLog.e(TAG,\"Unable to save file \"+pictureInfo.getName(),e);\r\n\t\t\treturn false;\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif(out!=null) out.close();\r\n\t\t\t} catch(IOException ioe) {\r\n\t\t\t\tioe.printStackTrace();\r\n\t\t\t\tLog.e(TAG,\"Unable to close file \"+pictureInfo.getName(),ioe);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private void saveImageToGallery() {\n ContentValues image = new ContentValues();\n image.put(MediaStore.Images.Media.TITLE, mPictureFile);\n image.put(MediaStore.Images.Media.DISPLAY_NAME, mPictureFile);\n image.put(MediaStore.Images.Media.DESCRIPTION, \"Processed by the MFace App\");\n image.put(MediaStore.Images.Media.DATE_TAKEN, System.nanoTime()); //\n image.put(MediaStore.Images.Media.MIME_TYPE, \"image/jpeg\");//png!!!\n image.put(MediaStore.Images.Media.ORIENTATION, 0);\n image.put(MediaStore.Images.Media.DATA, mPictureFile);\n getContext().getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, image);\n }", "public abstract void saveUserImage(Call serviceCall, Response serviceResponse, CallContext messageContext);", "@Override\n\tpublic void save(DataKey arg0) {\n\t\t\n\t}", "void save();", "void save();", "void save();", "public void save(int boardSize, PlayerColor firstPlayer, PlayerColor secondPlayer, String player1Color,\r\n String player2Color) throws IOException {\r\n //set the data.\r\n this.boardSize = boardSize;\r\n this.firstPlayer = firstPlayer;\r\n this.secondPlayer = secondPlayer;\r\n this.player1Color = player1Color;\r\n this.player2Color = player2Color;\r\n\r\n //writing to a file\r\n File file = new File(this.filename);\r\n FileOutputStream fos = new FileOutputStream(file);\r\n ObjectOutputStream oos = new ObjectOutputStream(fos);\r\n oos.writeObject(this);\r\n fos.close();\r\n oos.close();\r\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n\n outState.putParcelable(\"ImageUri1\", mImageUri1);\n outState.putParcelable(\"ImageUri2\", mImageUri2);\n }", "public void save() {\n }", "public void persist() {\n getBuildContextHolder().persist();\n }", "private void createUpdateImage(Item item) throws Exception {\r\n //cria a imagem\r\n new Image().saveImage(item.getImagem(), item.getNome());\r\n \t}", "public void saveImage(final Bitmap imageBitmap, final SaveImageListener listener) {\n //1. save the image remotly\n firebaseModel.saveImage(imageBitmap, new SaveImageListener() {\n @Override\n public void onComplete(String url) {\n // 2. saving the file localy\n String localName = getLocalImageFileName(url);\n //Log.d(\"TAG\",\"cach image: \" + localName);\n saveImageToFile(imageBitmap,localName); // synchronously save image locally\n //listener.oncomplete(url);\n listener.onComplete(url);\n }\n\n @Override\n public void fail() {\n listener.fail();\n }\n });\n }", "public void save(){\r\n\t\tmanager.save(this);\r\n\t}", "public void save() throws EntityPersistenceException {\n\n }", "@Override\n public void save() {\n\n }", "void save(Object entity);", "public void save(){\r\n\t\ttry {\r\n\t\t\tgame.suspendLoop();\r\n\t\t\tGameStockage.getInstance().save(game);\r\n\t\t\tgame.resumeLoop();\r\n\t\t} catch (GameNotSaveException e) {\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tgame.resumeLoop();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tgame.resumeLoop();\r\n\t\t}\r\n\t}", "private void saveImageToLocalStore(Bitmap finalBitmap) {\n Calendar cal = Calendar.getInstance();\n //--------------\n File direct = new File(Environment.getExternalStorageDirectory() + \"/NDS images\");\n\n if (!direct.exists()) {\n direct = new File(\"/NDS images\");\n direct.mkdirs();\n }\n final String filename = \"NDS_img_\" + cal.getTimeInMillis() + \".png\";\n\n File file = new File(Environment.getExternalStorageDirectory() + File.separator\n + \"/NDS images/\", filename);\n if (file.exists()) {\n file.delete();\n\n }\n //--\n\n // File file = new File(directory+\"/Boo_images/\", filename);\n if (file.exists()) file.delete();\n try {\n FileOutputStream out = new FileOutputStream(file);\n finalBitmap.compress(Bitmap.CompressFormat.PNG, 100, out);\n out.flush();\n out.close();\n //---\n String path_0 = Environment.getExternalStorageDirectory() + File.separator\n + \"/NDS images/\" + filename;\n String filename_to_up = path_0.substring(path_0.lastIndexOf(\"/\") + 1);\n if (!editText.getText().toString().isEmpty()) {\n //addCaptionToSuggestionMedia(path_0, filename_to_up, \"image\", MYRemoteId, (editText.getTag().toString().isEmpty()) ? \"0\" : editText.getTag().toString());\n //addCaptionToSuggestionMedia(path_0, filename_to_up, \"audio\", MYRemoteId, (editText.getTag().toString().isEmpty()) ? \"0\" : editText.getTag().toString());\n path_000 = path_0;\n filename_000 = filename_to_up;\n myRemoteId_000 = MYRemoteId;\n SuggestionBoxId_000 = (editText.getTag().toString().isEmpty()) ? \"0\" : editText.getTag().toString();\n //-000000000000000000000000-----Image to send-----------------------------------------\n mediaType_000 = \"image\";\n image_tag.setTag(filename_to_up);\n image_tag.setVisibility(View.VISIBLE);\n video_tag.setVisibility(View.GONE);\n audio_tag.setVisibility(View.GONE);\n textSuggestion.setVisibility(View.GONE);\n File imgFile = new File(path_0);\n if (imgFile.exists()) {\n try {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inSampleSize = 2;\n Bitmap bm = BitmapFactory.decodeFile(path_0, options);\n //Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());\n // Log.w(\"myPath\", path);\n //--Adjust imagte before final display haha!---------\n\n\n //---\n Bitmap srcBmp = bm;\n Bitmap dstBmp = null;\n //---Cropping for small display--\n try {\n if (srcBmp.getWidth() >= srcBmp.getHeight()) {\n try {\n dstBmp = Bitmap.createBitmap(srcBmp, srcBmp.getWidth() - srcBmp.getHeight(), 0, srcBmp.getHeight(), srcBmp.getHeight());\n //Log.w(\"cropped yes\",\"good\");\n } catch (RuntimeException shhh) {\n\n }\n } else {\n try {\n dstBmp = Bitmap.createBitmap(srcBmp, 0, srcBmp.getHeight() - srcBmp.getWidth(), srcBmp.getWidth(), srcBmp.getWidth());\n //Log.w(\"cropped yes\",\"good\");\n } catch (RuntimeException shhh) {\n\n }\n }\n\n\n //-----------------\n Drawable d = new BitmapDrawable(getResources(), dstBmp);\n edixt_image.setImageDrawable(d);\n\n // edixt_image.setImageBitmap(dstBmp);\n edixt_image.setTag(path_0);\n } catch (RuntimeException shhh) {\n\n }\n\n\n } catch (Exception vb) {\n\n }\n\n //-------------\n\n\n //----------------\n }\n\n //---------0000000000000000000000000000000000000000000000000000000000000000000000000000000000\n } else {\n Toast.makeText(Suggestion_box_suggest.this, \"Choose or type in receipient\", Toast.LENGTH_SHORT).show();\n }\n galleryAddPic();\n deleteLatestPicture();\n //-------------------------------------------\n } catch (Exception e) {\n e.printStackTrace();\n\n\n Log.w(\"DirImage\", \"failed!\" + e.toString());\n Toast.makeText(Suggestion_box_suggest.this, \"Image not saved! Not enough space!\" + e.toString(), Toast.LENGTH_SHORT).show();\n }\n }" ]
[ "0.58829546", "0.58649105", "0.57395005", "0.5653678", "0.5620583", "0.55421823", "0.54604745", "0.5446124", "0.54457307", "0.5423862", "0.5379666", "0.5348628", "0.53338075", "0.53285176", "0.5315101", "0.52616924", "0.5244766", "0.52054304", "0.52022827", "0.51917166", "0.5178042", "0.5164498", "0.51590014", "0.51575035", "0.5102227", "0.50945455", "0.508147", "0.5077305", "0.5068659", "0.50396115", "0.5036509", "0.50275713", "0.5026487", "0.50116134", "0.50036246", "0.49945948", "0.49865493", "0.4983706", "0.49807742", "0.49775597", "0.49707097", "0.49656865", "0.4950827", "0.49490827", "0.49446723", "0.49404332", "0.49393404", "0.49353626", "0.4934501", "0.49334148", "0.4923027", "0.49026945", "0.48989755", "0.4898568", "0.48907834", "0.48883882", "0.48840535", "0.48822236", "0.48765457", "0.48765457", "0.48765457", "0.48765457", "0.48734263", "0.48711842", "0.48702797", "0.48647788", "0.48398966", "0.4838424", "0.48382616", "0.4825401", "0.4821569", "0.4820848", "0.48162168", "0.481421", "0.48100752", "0.48012596", "0.47991398", "0.47966883", "0.47956404", "0.47896767", "0.47845578", "0.47836143", "0.4772755", "0.47705576", "0.47658142", "0.47619337", "0.47619337", "0.47619337", "0.47607872", "0.47539437", "0.4745671", "0.47395658", "0.4738557", "0.4733569", "0.4733005", "0.47227266", "0.47215354", "0.4720871", "0.4719668", "0.4719245" ]
0.8016037
0
Retrieve the model that is valid for the given time range.
public TwoDBlackModel retrieveTwoDBlackModel(double startTime, double endTime, int module, int output) { double[] mjds = fcCrud.retrieveTwoDBlackImageTimes(startTime, endTime, module, output, getHistory()); float[][][] blacks = getFloats(mjds, module, output); float[][][] uncertainties = getUncertainties(mjds, module, output); return FcModelFactory.twoDBlackModel(mjds, blacks, uncertainties); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ApiModelProperty(value = \"The period for which the object is valid\")\n\n @Valid\n\n public TimePeriod getValidFor() {\n return validFor;\n }", "@ApiModelProperty(value = \"The period for which the relationship is applicable\")\n public TimePeriodType getValidFor() {\n return validFor;\n }", "long getValidFrom();", "public Range getTimeRange() {\r\n\t\treturn timeRange;\r\n\t}", "public Timestamp getValidFrom();", "public void checkTimeRangeSettingsAccordingToTimeModelBeforeJadeStart() {\r\n\t\t\r\n\t\t// --- Get global ScheduleTimeRange --------------- \r\n\t\tScheduleTimeRange strGlobal = ScheduleTimeRangeController.getScheduleTimeRange();\r\n\t\tif (strGlobal==null) return;\r\n\t\t\r\n\t\t// --- Get Project instance -----------------------\r\n\t\tProject project = this.graphController.getProject();\r\n\t\tif (project==null) return; // (will not happen, but see 'save' call below)\r\n\t\t\r\n\t\t// --- Get date based time model ------------------\r\n\t\tTimeModel timeModel = this.graphController.getTimeModel();\r\n\t\tif (! (timeModel instanceof TimeModelDateBased)) return;\r\n\t\t\t\t\r\n\t\t// --- Get start and end time of the execution ---- \t\r\n\t\tTimeModelDateBased tmDataBased = (TimeModelDateBased) timeModel;\r\n\t\tlong startTime = tmDataBased.getTimeStart();\r\n\t\t\r\n\t\tif (strGlobal.getTimeFrom()!=startTime) {\r\n\t\t\t// --- ScheduleTimeRange needs to adjusted! --- \r\n\t\t\tlong shift = strGlobal.getTimeFrom() - startTime; \r\n\t\t\tScheduleTimeRange strGlobalNew = strGlobal.getCopy();\r\n\t\t\tstrGlobalNew.setTimeFrom(strGlobal.getTimeFrom() - shift);\r\n\t\t\tif (strGlobal.getRangeType()==RangeType.TimeRange) {\r\n\t\t\t\tstrGlobalNew.setTimeTo(strGlobal.getTimeTo() - shift);\r\n\t\t\t}\r\n\t\t\t// --- Set as new global ScheduleTimeRange ----\r\n\t\t\tScheduleTimeRangeController.setScheduleTimeRange(strGlobalNew , EVENT_CONFIGURED_IN_AWB_MAIN_WINDOW);\r\n\t\t\t\r\n\t\t\t// --- Save the project again -----------------\r\n\t\t\tproject.save();\r\n\t\t}\r\n\t\t\r\n\t}", "public List<ScheduledInterview> getInRange(Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<>();\n List<ScheduledInterview> scheduledInterviews = new ArrayList<ScheduledInterview>(data.values());\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n scheduledInterviewsInRange.sort(\n (ScheduledInterview s1, ScheduledInterview s2) -> {\n if (s1.when().start().equals(s2.when().start())) {\n return 0;\n }\n if (s1.when().start().isBefore(s2.when().start())) {\n return -1;\n }\n return 1;\n });\n return scheduledInterviewsInRange;\n }", "public AbsoluteDate getValidUntil() {\n return validUntil;\n }", "public Date getValidUntil();", "private static IndependentValidator createTimeListValidator() {\n Validator validator = new Validator() {\n private final ValidationStatus OK_STATUS =\n new ValidationStatus(ValidationStatus.OK, \"\");\n\n public ValidationStatus validate(Object object,\n ValidationMessageBuilder builder) {\n ValidationStatus status = OK_STATUS;\n String item = (String) object;\n StringReader reader = new StringReader(item);\n String errorMessage = null;\n TimerParser timerParser = new TimerParser(reader);\n try {\n timerParser.parse();\n } catch (Throwable e) {\n errorMessage = builder.\n buildValidationMessage(\"invalidTime\",\n null, new String[]{item});\n }\n if (\"00:00:00\".equals(item)) {\n errorMessage = builder.\n buildValidationMessage(\"zeroTime\",\n null, null);\n }\n if (errorMessage != null) {\n status = new ValidationStatus(ValidationStatus.ERROR,\n errorMessage);\n }\n return status;\n }\n };\n\n HashMap messageKeyMappings = new HashMap(2);\n messageKeyMappings.put(FaultTypes.INVALID_TIME,\n TIME_RESOURCE_PREFIX + \"invalidTime\");\n messageKeyMappings.put(FaultTypes.ZERO_TIME,\n TIME_RESOURCE_PREFIX + \"zeroTime\");\n\n ValidationMessageBuilder builder =\n new ValidationMessageBuilder(\n ControlsMessages.getResourceBundle(),\n messageKeyMappings,\n null);\n return new IndependentValidator(validator, builder);\n }", "public ValidationModel getValidationModel() {\n \n Logger logger = Logger.getLogger(AvdSupport.class.getName());\n \n\n logger.log(Level.SEVERE, \"Creatig valiation model\");\n logger.log(Level.SEVERE, \"Reading file: \");\n FileObject fo = avdDataObject.getPrimaryFile();\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(fo.getInputStream()));\n \n String line = null;\n while ((line = br.readLine()) != null) {\n logger.log(Level.SEVERE, \"line: {0}\", line);\n }\n \n } catch (FileNotFoundException ex) {\n Exceptions.printStackTrace(ex);\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n \n \n // TODO: implement\n // throw new UnsupportedOperationException(\"Not supported yet.\");\n \n \n \n return null;\n }", "public TimeBounds getTimeBounds() {\n\t\t// Only here to ensure it is being used correctly.\n\t\t// cbit.util.Assertion.assertNotNull(fieldTimeBounds);\n\t\treturn fieldTimeBounds;\n\t}", "public Timestamp getValidTo();", "private void getValidity(){\n String start_time = spin_start.getSelectedItem().toString();\n String end_time = spin_end.getSelectedItem().toString();\n String day = spin_day.getSelectedItem().toString();\n\n String[] start = start_time.split(\":\");\n String[] end = end_time.split(\":\");\n\n //Set the 2 hours\n int hourStart = Integer.parseInt(start[0]);\n int hourEnd = Integer.parseInt(end[0]);\n\n //Set the minutes\n int minuteStart = Integer.parseInt(start[1]);\n int minuteEnd = Integer.parseInt(end[1]);\n\n boolean valid = true;\n\n if(hourStart == hourEnd && minuteStart >= minuteEnd)\n valid = false;\n if(hourStart > hourEnd)\n valid = false;\n if(valid) {\n valid = isAvailabilityExist(day, start_time, end_time);\n if (valid) {\n valid = isAppointmentExist(day, start_time, end_time);\n if (valid) {\n createAppointment(day, start_time, end_time);\n } else\n Toast.makeText(this, \"There is already an appointment at the time you try to use.\", Toast.LENGTH_LONG).show();\n\n } else\n Toast.makeText(this, \"Please make sure you select an appointment \" +\n \"in the availability of the service provider.\", Toast.LENGTH_LONG).show();\n\n }else\n Toast.makeText(this, \"The time you try to get an appointment is not valid.\", Toast.LENGTH_LONG).show();\n }", "public TimeRange getBooking(UUID eventUUID) {\n return this.uuidToTimeRange.get(eventUUID);\n }", "public Date getValidFrom();", "public List<MeteringDataSec> findWithinTimeRange(final Instant startTime, final Instant untilTime) {\n\t\tInstant until = untilTime == null ? startTime.plus(5, ChronoUnit.MINUTES) : untilTime;\n\n\t\tList<MeteringDataSec> matches = meteringDataRepository.findWithinTimeRange(Timestamp.from(startTime), Timestamp.from(until));\n\t\tif (!matches.isEmpty()) {\n\t\t\tLOG.info(\"findWithinTimeRange found {} entries starting with: {}\", matches.size(), matches.get(0).getCreationTime());\n\t\t}\n\n\t\treturn matches;\n\t}", "SolvableConflictModel createInstanceOfSolvableConflictModel();", "@GetMapping(\"/table/checkAvailability\")\n\tpublic WaitingTime getAvailability() throws ParseException\n\t{\n\n\t\t\tTableRestaurant availableTime = tableRepo.checkTableAvailability();\n\t\t\t\n\t\t\tlogger.info(\"waiting time ---> {}\", availableTime.getWaitingTime());\n\t\t\tif(availableTime.equals(null))\n\t\t\t{\n\t\t\t\tthrow new UniquoNotFoundException(\"The waiting time cannot be calculated\");\n\t\t\t}\n\t\t\tint tableNumber = availableTime.getId();\n\t\t\tlogger.info(\"{}\", tableNumber);\n\t\t\tint waiting_Time = availableTime.getWaitingTime();\n\t\t\tlogger.info(\"{}\", waiting_Time);\n\t\t\tWaitingTime waitingTime = new WaitingTime(tableNumber, waiting_Time);\n\t\t\t\n\t\t\treturn waitingTime;\n\t}", "public AbsoluteDate getValidFrom() {\n return validFrom;\n }", "@Override\n public List<ScheduledInterview> getScheduledInterviewsInRangeForUser(\n String userId, Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviews = getForPerson(userId);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<ScheduledInterview>();\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n return scheduledInterviewsInRange;\n }", "public List<ScheduledInterview> getForPositionWithoutShadowInRange(\n Job position, Instant minTime, Instant maxTime) {\n List<ScheduledInterview> interviewsInRange = getInRange(minTime, maxTime);\n Set<ScheduledInterview> notValidInterviews = new HashSet<ScheduledInterview>();\n for (ScheduledInterview interview : interviewsInRange) {\n if (!interview.position().equals(position) || !interview.shadowId().equals(\"\")) {\n notValidInterviews.add(interview);\n }\n }\n interviewsInRange.removeAll(notValidInterviews);\n return interviewsInRange;\n }", "public java.util.Date getValidTime() {\r\n return validTime;\r\n }", "public ProductOffering validFor(TimePeriod validFor) {\n this.validFor = validFor;\n return this;\n }", "@Override\n\tpublic String getEligibleTime() {\n\t\treturn model.getEligibleTime();\n\t}", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchRangeOfCreateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {\n return fetchRange(UserEmail.USER_EMAIL.CREATE_TIME, lowerInclusive, upperInclusive);\n }", "public static RangeInfo obtain(int type, float min, float max, float current) {\n/* 3057 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private TimeSpanList activeTimeAnswer()\r\n {\r\n return TimeSpanList.singleton(TimeSpan.get(myQueryTime));\r\n }", "private void verifyPeriod(Date start, Date end){\n List dates = logRepositoy.findAllByDateGreaterThanEqualAndDateLessThanEqual(start, end);\n if(dates.isEmpty()){\n throw new ResourceNotFoundException(\"Date range not found\");\n }\n }", "public interface TimeModel {\n TimeContainer getTime();\n}", "public List<DataCenterForecast> execute(TimeSlotBasedEntity timeRange) {\n \tlogger.debug(\"Starting power planning loop for time range: \" + timeRange);\n \tlogger.debug(\"Requesting energy forecasts...\");\n\t\tList<DataCenterForecast> forecasts = erdsHandler.getEnergyForecasts(timeRange);\n logger.debug(\"Got energy forecasts: \" + forecasts);\n return forecasts;\n }", "private Rooms getRooms(boolean sociallyDistanced, LocalDateTime time, LocalDateTime endTime, Modules module) {\n // Get viable rooms\n Session s = HibernateUtil.getSessionFactory().openSession();\n CriteriaBuilder cb = s.getCriteriaBuilder();\n CriteriaQuery<Rooms> cq = cb.createQuery(Rooms.class);\n Root<Rooms> root = cq.from(Rooms.class);\n ParameterExpression<Integer> spacesNeeded = cb.parameter(Integer.class);\n if (sociallyDistanced) {\n cq.select(root).where(cb.greaterThanOrEqualTo(root.get(\"socialDistancingCapacity\"), spacesNeeded));\n } else {\n cq.select(root).where(cb.greaterThanOrEqualTo(root.get(\"maxCapacity\"), spacesNeeded));\n }\n\n root.join(\"bookings\", JoinType.LEFT);\n root.fetch(\"bookings\", JoinType.LEFT);\n\n Query<Rooms> query = s.createQuery(cq);\n query.setParameter(spacesNeeded, module.getStudents().size());\n\n List<Rooms> results = query.getResultList();\n\n s.close();\n\n\n Map<String, Rooms> possibleRooms = new HashMap<>();\n\n for (Rooms room : results) {\n if (room.isAvailable(time, endTime) && !possibleRooms.containsKey(room.getRoomID())) {\n System.out.println(\" \" + room.getRoomID() + \" of type \" + room.getType() + \" is available and meets your capacity needs.\");\n possibleRooms.put(room.getRoomID(), room);\n }\n }\n\n System.out.println(\"Please enter the room ID you would like to book.\");\n String roomKey = sc.next();\n while (!possibleRooms.containsKey(roomKey)) {\n System.out.println(\"That is not a correct ID for a room. Look at the list above.)\");\n roomKey = sc.next();\n }\n sc.nextLine();\n\n return possibleRooms.get(roomKey);\n }", "public Resource getFreeResource() {\n try {\n conn.out.println(Command.GetFree);\n\n Resource r = TimeSliceResource.fromString(conn.in.readLine());\n\n logger.debug(\"free resource: \" + r);\n\n return r;\n\n } catch (IOException e) {\n logger.error(\"error while getting free resources from taker: \" + e);\n return new TimeSliceResource(0);\n }\n }", "private boolean CheckAvailableDate(TimePeriod tp)\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query = \"SELECT * FROM Available WHERE available_hid = '\"+hid+\"' AND \"+\n\t\t\t\t\t\t\t\"startDate = '\"+tp.stringStart+\"' AND endDate = '\"+tp.stringEnd+\"'\"; \n\t\t\t\n\t\t\tResultSet rs = con.stmt.executeQuery(query); \n\t\t\t\n\t\t\tcon.closeConnection();\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\treturn true; \n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public RoomRatesEntity findOnlineRateForRoomType(Long roomTypeId, Date currentDate) throws NoAvailableOnlineRoomRateException {\n Query query = em.createQuery(\"SELECT r FROM RoomRatesEntity r JOIN r.roomTypeList r1 WHERE r1.roomTypeId = :roomTypeId\");\n query.setParameter(\"roomTypeId\", roomTypeId);\n List<RoomRatesEntity> roomRates = query.getResultList();\n\n //Check what rate type are present\n boolean normal = false;\n boolean promo = false;\n boolean peak = false;\n\n for (RoomRatesEntity roomRate : roomRates) {\n// if (!checkValidityOfRoomRate(roomRate)) { //skips expired/not started rates, price is determined by check in and check out date, it becomes not considered in our final prediction\n// continue;\n// }\n// if null do smt else\n if (roomRate.getIsDisabled() == false) {\n if (null != roomRate.getRateType()) {\n System.out.println(roomRate.getRateType());\n switch (roomRate.getRateType()) {\n case NORMAL:\n normal = true;\n \n break;\n case PROMOTIONAL:\n System.out.println(\"ValidStart \"+roomRate.getValidityStart()+\" ValidEnd: \"+roomRate.getValidityEnd()+\" CurrentDate: \"+currentDate);\n if (rateIsWithinRange(roomRate.getValidityStart(), roomRate.getValidityEnd(), currentDate)) {\n promo = true;\n }\n break;\n\n case PEAK:\n System.out.println(\"ValidStart \"+roomRate.getValidityStart()+\" ValidEnd: \"+roomRate.getValidityEnd()+\" CurrentDate: \"+currentDate);\n\n if (rateIsWithinRange(roomRate.getValidityStart(), roomRate.getValidityEnd(), currentDate)) {\n peak = true;\n }\n break;\n default:\n break;\n }\n }\n\n System.out.println(normal + \" \" + promo + \" \" + peak);\n //5 rules here\n if (normal && promo && peak) {\n //find promo\n Query rule = em.createQuery(\"SELECT r FROM RoomRatesEntity r JOIN r.roomTypeList r1 WHERE r1.roomTypeId = :roomTypeId AND r.rateType = :p ORDER BY r.ratePerNight ASC\");\n rule.setParameter(\"p\", RateType.PROMOTIONAL);\n rule.setParameter(\"roomTypeId\", roomTypeId);\n\n return (RoomRatesEntity) rule.getResultList().get(0);\n } else if (promo && peak && !normal || normal && peak && !promo) {\n //apply peak, assume only 1\n Query rule = em.createQuery(\"SELECT r FROM RoomRatesEntity r JOIN r.roomTypeList r1 WHERE r1.roomTypeId = :roomTypeId AND r.rateType = :p\");\n rule.setParameter(\"p\", RateType.PEAK);\n rule.setParameter(\"roomTypeId\", roomTypeId);\n\n return (RoomRatesEntity) rule.getSingleResult();\n } else if (normal && promo && !peak) {\n //apply promo\n Query rule = em.createQuery(\"SELECT r FROM RoomRatesEntity r JOIN r.roomTypeList r1 WHERE r1.roomTypeId = :roomTypeId AND r.rateType = :p ORDER BY r.ratePerNight ASC\");\n rule.setParameter(\"p\", RateType.PROMOTIONAL);\n rule.setParameter(\"roomTypeId\", roomTypeId);\n\n return (RoomRatesEntity) rule.getResultList().get(0);\n } else if (normal && !promo && !peak) {\n //apply normal\n Query rule = em.createQuery(\"SELECT r FROM RoomRatesEntity r JOIN r.roomTypeList r1 WHERE r1.roomTypeId = :roomTypeId AND r.rateType = :p\");\n rule.setParameter(\"p\", RateType.NORMAL);\n rule.setParameter(\"roomTypeId\", roomTypeId);\n\n return (RoomRatesEntity) rule.getSingleResult();\n }\n }\n\n }\n throw new NoAvailableOnlineRoomRateException(\"There is no available room rate to be used!\");\n }", "hr.client.appuser.CouponCenter.TimeRangeOrBuilder getUseTimeOrBuilder();", "hr.client.appuser.CouponCenter.TimeRangeOrBuilder getUseTimeOrBuilder();", "public String getAssessRange() {\r\n return assessRange;\r\n }", "ValueRangeConstraint createValueRangeConstraint();", "public VisibleRangeViewModel getVisibleRange() {\n return getParent().getVisibleRange();\n }", "@Transactional\r\n\tpublic List<Room> getFreeFromTo(LocalDate from, LocalDate to){\r\n\t\tList<Room> l= this.roomRepository.findByReservationsNotIn(\r\n\t\t\t\tthis.reservationService.getFromTo(from, to));\r\n\t\tl.addAll(this.roomRepository.findByReservationsIsNull());\r\n\t\treturn l;\r\n\t}", "List<ResultsView2> findByCnoBetween(int min,int max);", "@Override\n protected void validate(Model model) throws CommandException {\n Budget currentPeriod = model.getPrimaryBudget().deepCopy().normalize(Timestamp.getCurrentTimestamp());\n\n if (pastDate.dateIsAfter(currentPeriod.getWindowEndDate())) {\n throw new CommandException(MESSAGE_PERIOD_IS_FUTURE);\n }\n }", "@Test\n void deve_retornar_uma_datetimeexception() {\n List<LocalTime> localTimes = Arrays.asList(LocalTime.parse(\"12:00:00\"));\n TimeModel timeModel = TimeModelStub.getTimeModel();\n timeModel.setPeriod(TimeCourseEnum.SECOND_PERIOD_IN);\n timeModel.setTime(\"12:30\");\n Assert.assertThrows(DateTimeException.class, () -> timeService.checkInterval(timeModel, localTimes));\n }", "@Override\n public List<Revenue> revenuesForTime(long startTime, long endTime) {\n List<Revenue> revenues = revenueRepository.findAll();\n List<Revenue> foundRevenues = new ArrayList<>();\n for(Revenue revenue : revenues){\n if(revenue.getTimestamp() == startTime || revenue.getTimestamp() == endTime){\n foundRevenues.add(revenue);\n continue;\n }\n if(revenue.getTimestamp() > startTime && revenue.getTimestamp() < endTime ){\n foundRevenues.add(revenue);\n }\n }\n return foundRevenues;\n }", "ConflictingAssumptionModel createInstanceOfConflictingAssumptionModel();", "public scala.Option<org.apache.spark.rdd.RDD<org.apache.spark.streaming.rdd.MapWithStateRDDRecord<K, S, E>>> compute (org.apache.spark.streaming.Time validTime) { throw new RuntimeException(); }", "private List<T> findRange(RequestData requestData) {\n javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery();\n cq.select(cq.from(getEntityClass()));\n javax.persistence.Query q = getEntityManager().createQuery(cq);\n q.setMaxResults(requestData.getLength());\n q.setFirstResult(requestData.getStart());\n return q.getResultList();\n }", "hr.client.appuser.CouponCenter.TimeRange getUseTime();", "hr.client.appuser.CouponCenter.TimeRange getUseTime();", "public Car findCarBySpeedRange(int min, int max) throws NullPointerException {\n carPark.setPosition(0);\n Car res = null;\n while (carPark.hasNext()) {\n Car car = carPark.next();\n if(car.getSpeed() >= min && car.getSpeed() <= max) {\n res = car;\n break;\n }\n }\n return res;\n }", "public String getValidtime() {\n return validtime;\n }", "public static LibValid getInstance() {\n\t\treturn instance;\n\t}", "public java.lang.Long getValidFromMillis() {\n return validFromMillis;\n }", "public interface TargetRange extends Data {\n\n\t/**\n\t * Control setpoint for the value. This values shall be reached by\n\t * actions of an OGEMA application, no action based on this value is\n\t * performed by the framework itself. If no setpoint is given, an estimate\n\t * may be guessed from taking the center point of the {@link #targetRange()},\n\t * the {@link #controlLimits() } or the {@link #alarmLimits() } (in descending\n\t * order of relevance).\n\t * Models inheriting from this prototype must override\n\t * this with a suitable simple resource to define the meaning and the unit\n\t * of measurement.\n\t */\n\tValueResource setpoint();\n\n\t/**\n\t * Range which the sensor value shall lie as a result of control, if possible. The range is considered as soft\n\t * limits, i.e. contrary to the {@link #controlLimits() controlLimits} the so-defined ambient range may be left. If\n\t * not targetRange is given, the {@link #setpoint() setpoint} may indicate where the range lies.\n\t */\n\tRange targetRange();\n\n\t/**\n\t * Limits for the sensor value that shall be used for the control of the relevant device. Usually the controlLimits\n\t * should be held for sure.\n\t */\n\tRange controlLimits();\n\n\t/**\n\t * The resource shall only be used for limits that shall be integrated into an alarm logging and/or alarm handling\n\t * OGEMA application. It is NOT intended for limits that just trigger control signals.<br>\n\t * Note: No alarm events are generated by the OGEMA framework itself.<br>\n\t * For sensors providing information not represented as float, a resource of the relevant range type named\n\t * <code>alarmLimits</code> can be added as decorator.\n\t */\n\tRange alarmLimits();\n}", "private IRegion getModelRange(int offset, int length) {\n \t\tif (offset == Integer.MAX_VALUE)\n \t\t\treturn null;\n \n \t\tif (fSourceViewer instanceof ITextViewerExtension5) {\n \t\t\tITextViewerExtension5 extension= (ITextViewerExtension5) fSourceViewer;\n \t\t\treturn extension.widgetRange2ModelRange(new Region(offset, length));\n \t\t}\n \t\t\n \t\tIRegion region= fSourceViewer.getVisibleRegion();\n \t\treturn new Region(region.getOffset() + offset, length);\n \t}", "public List<Measurement> findMeasurementsByTimeRange(Date fromDate, Date toDate) {\n return entityManager.createQuery(\"SELECT m from \" +\n \"Measurement m where m.date >= :fromDate and m.date <= :toDate\", Measurement.class)\n .setParameter(\"fromDate\", fromDate)\n .setParameter(\"toDate\", toDate)\n .getResultList();\n\n }", "public Date getValidatedTo();", "boolean isValidExpTime();", "public InstancesModel getValidInstancesModel(InstancesEntity instancesEntity) {\n log.info(\"Starting to get valid instances [{}] model from table [{}]\", instancesEntity.getRelationName(),\n instancesEntity.getTableName());\n var attributes = attributeService.getSelectedAttributes(instancesEntity);\n if (attributes.size() < MIN_NUM_SELECTED_ATTRIBUTES) {\n throw new SelectedAttributesNumberIsTooLowException(instancesEntity.getId());\n }\n if (instancesEntity.getClassAttribute() == null || !instancesEntity.getClassAttribute().isSelected()) {\n throw new ClassAttributeNotSelectedException(instancesEntity.getId());\n }\n int countUniqueClassesInTable = countUniqueClassValuesInTable(instancesEntity);\n if (countUniqueClassesInTable < MIN_NUM_CLASSES) {\n throw new ClassAttributeValuesIsTooLowException(instancesEntity.getId());\n }\n var columns = attributes.stream()\n .map(AttributeEntity::getColumnName)\n .collect(Collectors.toList());\n String query = buildSqlSelectQuery(instancesEntity, columns);\n var extractor = new InstancesModelResultSetExtractor(instancesEntity, attributes);\n extractor.setDateFormat(ecaDsConfig.getDateFormat());\n var instancesModel = jdbcTemplate.query(query, extractor);\n log.info(\"Instances [{}] model has been fetched for table [{}]\", instancesEntity.getRelationName(),\n instancesEntity.getTableName());\n return instancesModel;\n }", "public AddressInfo getRange() {\r\n return range;\r\n }", "public String getTaskTimeRange() {\n return taskTimeRange;\n }", "public java.lang.Long getValidFromMillis() {\n return validFromMillis;\n }", "static RatAppModel getInstance() {return model;}", "public boolean validateTime(){\n if(startSpinner.getValue().isAfter(endSpinner.getValue())){\n showError(true, \"The start time can not be greater than the end time.\");\n return false;\n }\n if(startSpinner.getValue().equals(endSpinner.getValue())){\n showError(true, \"The start time can not be the same as the end time.\");\n return false;\n }\n startLDT = convertToTimeObject(startSpinner.getValue());\n endLDT = convertToTimeObject(endSpinner.getValue());\n startZDT = convertToSystemZonedDateTime(startLDT);\n endZDT = convertToSystemZonedDateTime(endLDT);\n\n if (!validateZonedDateTimeBusiness(startZDT)){\n return false;\n }\n if (!validateZonedDateTimeBusiness(endZDT)){\n return false;\n };\n return true;\n }", "public void setTimeRange(Range range) {\r\n\t\ttimeRange = new Range(range);\r\n\t}", "public HttpRange getRange() {\n return range;\n }", "private Interval readValidityInterval(Record row, Session session) {\n Timestamp start = (Timestamp) session.getDatasourcePlatform().convertObject(row.get(\"validityinterval_0\"), java.sql.Timestamp.class);\n Timestamp end = (Timestamp) session.getDatasourcePlatform().convertObject(row.get(\"validityinterval\"), java.sql.Timestamp.class);\n return new Interval(start.getTime(), end.getTime());\n }", "public boolean checkRoomAvailabilty(String date,String startTime,String endTime ,String confID);", "public static CellModel getInstance() {\r\n if (cellModel == null) {\r\n throw new NullPointerException(\"Cell model not initialized\");\r\n }\r\n return cellModel;\r\n }", "InstanceModel createInstanceOfInstanceModel();", "boolean hasDesiredTime();", "private boolean isValidTimeInterval(float timeInterval){\n\t\treturn timeInterval > 0.0f;\n\t}", "public String getRange() {\n return this.range;\n }", "private boolean checkTime(ActiveTimeSpans active, TimeSpan span, Object constraintKey)\n {\n if (span.isTimeless())\n {\n return true;\n }\n else if (constraintKey == null)\n {\n final AnimationPlan animationPlan = myAnimationPlan;\n final AnimationState currentAnimationState = myCurrentAnimationState;\n if (animationPlan == null || currentAnimationState == null)\n {\n return active != null && active.getPrimary().intersects(span);\n }\n final AnimationState state = animationPlan.findState(span, currentAnimationState.getDirection());\n if (state == null)\n {\n return false;\n }\n boolean result = false;\n try\n {\n result = animationPlan.calculateDistance(currentAnimationState, state) == 0;\n }\n catch (final RuntimeException e)\n {\n // If this test fails just fail the in range test as\n // this always happens during a plan change where the\n // distributor has yet to receive the updated plan and\n // ends up in a race condition with the animation\n // manager adjusting to the new plan.\n result = false;\n }\n return result;\n }\n else\n {\n final Collection<? extends TimeSpan> secondary = active == null ? null : active.getSecondary().get(constraintKey);\n boolean overlaps = false;\n if (secondary != null)\n {\n for (final TimeSpan ts : secondary)\n {\n if (ts.overlaps(span))\n {\n overlaps = true;\n break;\n }\n }\n }\n return overlaps;\n }\n }", "@Test\n\tpublic void testFindFreeFacility2WorkplacesFullyAvailible() {\n\t\tRoomQuery query = new RoomQuery(Arrays.asList(new Property(\"WLAN\")), \"\", 2);\n\t\tCollection<FreeFacilityResult> result;\n\t\tresult = bookingManagement.findFreeFacilites(query, validStartDate, validEndDate, true);\n\n\t\t// should find the one room with the two workplaces.\n\t\tassertNotNull(result);\n\t\tassertEquals(1, result.size());\n\t\tassertEquals(validStartDate, result.iterator().next().start);\n\t}", "public double getRange(){\n\t\treturn range;\n\t}", "public static Reservation[] getFromPeriod(Period period) {\r\n \t\t// Set the condition\r\n\t\tString condition = \"period.startTime >= \" + period.start.getTime() + \r\n \t\t\t\t\t \t\t\" AND period.endTime <= \" + period.end.getTime();\r\n \t\t\r\n \t\t// Execute the query\r\n \t\tResultSet result = model.get(\"reservation\", condition, \"period\", \"reservation.period\", \"period.id\");\r\n \r\n \t\t// Examine if the result has any content\r\n \t\tif (getFirstRowInResultSet(result)) {\r\n \t\t\t// Retrieve the results\r\n \t\t\ttry {\r\n \t\t\t\tresult.last();\r\n \t\t\t\tReservation[] arr = new Reservation[result.getRow()];\r\n \t\t\t\tresult.beforeFirst();\r\n \t\t\t\twhile (result.next()) {\r\n \t\t\t\t\tint id \t\t\t = result.getInt(1);\r\n \t\t\t\t\tSystem.out.println(result.getString(\"startTime\"));\r\n \t\t\t\t\t//arr[result.getRow() - 1] = new Reservation(id, customer, period, vehicle);\r\n \t\t\t\t}\r\n \t\t\t\t\r\n \t\t\t\t// Return\r\n \t\t\t\treturn arr;\r\n \t\t\t} catch (SQLException e) {\r\n \t\t\t\tLog.error(\"Unable to retrieve data from result: \" + e);\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tLog.info(\"Query for Reservation with condition returned empty.\");\r\n \t\t}\r\n \t\t\r\n \t\t// Return failure.\r\n \t\treturn null;\r\n \t}", "hr.client.appuser.CouponCenter.TimeRange getExchangeTime();", "public abstract Range get(int mediaID, Range range );", "@Test\r\n public void testReflexivityOverlappingTimePeriods(){\n DateTime startAvailability1 = new DateTime(2021, 7, 9, 10, 30);\r\n DateTime endAvailability1 = new DateTime(2021, 7, 9, 11, 30);\r\n DateTime startAvailability2 = new DateTime(2021, 7, 9, 11, 0);\r\n DateTime endAvailability2 = new DateTime(2021, 7, 9, 12, 0);\r\n Availability availability1 = new Availability(new HashSet<>(Arrays.asList(\"online\", \"in-person\")), startAvailability1, endAvailability1);\r\n Availability availability2 = new Availability(new HashSet<>(Arrays.asList(\"online\", \"in-person\")), startAvailability2, endAvailability2);\r\n assertTrue(availability1.overlapsWithTimePeriod(availability2));\r\n assertTrue(availability2.overlapsWithTimePeriod(availability1));\r\n }", "List<Establishment> searchEstablishments(EstablishmentCriteria criteria, RangeCriteria rangeCriteria);", "public Region getSiteRegionBounds() {\n int numSources = eqkRupForecast.getNumSources();\n\n double minLat = Double.POSITIVE_INFINITY;\n double maxLat = Double.NEGATIVE_INFINITY;\n double minLon = Double.POSITIVE_INFINITY;\n double maxLon = Double.NEGATIVE_INFINITY;\n\n\n //Going over each and every source in the forecast\n for (int sourceIndex = 0; sourceIndex < numSources; ++sourceIndex) {\n // get the ith source\n ProbEqkSource source = eqkRupForecast.getSource(sourceIndex);\n int numRuptures = source.getNumRuptures();\n\n //going over all the ruptures in the source\n for (int rupIndex = 0; rupIndex < numRuptures; ++rupIndex) {\n ProbEqkRupture rupture = source.getRupture(rupIndex);\n\n RuptureSurface rupSurface = rupture.getRuptureSurface();\n\n //getting the iterator for all points on the rupture\n ListIterator it = rupSurface.getLocationsIterator();\n boolean rupInside = false;\n //looping over all the rupture pt locations and if any of those lies\n //within the provided distance range then include the rupture in the list.\n while (it.hasNext()) {\n Location ptLoc = (Location) it.next();\n if (region.contains(ptLoc)) {\n rupInside = true;\n break;\n }\n }\n it = rupSurface.getLocationsIterator();\n while (it.hasNext() && rupInside) {\n Location ptLoc = (Location) it.next();\n double lat = ptLoc.getLatitude();\n double lon = ptLoc.getLongitude();\n double depth = ptLoc.getDepth();\n if (lat < minLat)\n minLat = lat;\n if (lat > maxLat)\n maxLat = lat;\n if (lon < minLon)\n minLon = lon;\n if (lon > maxLon)\n maxLon = lon;\n if (depth > maxDepth)\n maxDepth = depth;\n }\n }\n }\n return new Region(\n \t\tnew Location(minLat, minLon),\n \t\tnew Location(maxLat, maxLon));\n }", "public Timetable checkExistRoomTimeTable(String date, String classes, String room) throws Exception;", "private boolean isRangeValid() {\n\n\t\tboolean valid = true;\n\n\t\tif (getRange() == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\tLong.parseLong(getRange());\n\t\t} catch (NumberFormatException nfe) {\n\t\t\tvalid = false;\n\t\t}\n\n\t\tvalid = valid || getRange().compareToIgnoreCase(CCLConstants.INDIRECT_RANGE_ALL) == 0;\n\n\t\treturn valid;\n\t}", "public static synchronized Model getInstance() {\n if (instance == null) {\n instance = new Model();\n }\n return instance;\n }", "User getUserUnderValidation();", "public List<cn.edu.nju.teamwiki.jooq.tables.pojos.Document> fetchRangeOfUploadedTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {\n return fetchRange(Document.DOCUMENT.UPLOADED_TIME, lowerInclusive, upperInclusive);\n }", "private void assertValidTimeWindow() {\n if (getSuggestedWindowStart().isAfter(getSuggestedWindowEnd())) {\n throw new AcmeProtocolException(\"Received an invalid suggested window\");\n }\n }", "OffsetDateTime validUntil();", "@Transactional\r\n\tpublic List<Room> getReservedFromTo(LocalDate from, LocalDate to){\r\n\t\treturn this.roomRepository.findByReservationsIn(\r\n\t\t\t\tthis.reservationService.getFromTo(from, to));\r\n\t}", "private UpdateRoomRequest toUpdateRoomRequest(OffsetDateTime validFrom, OffsetDateTime validUntil) {\n UpdateRoomRequest updateRoomRequest = new UpdateRoomRequest();\n\n if (validFrom != null) {\n updateRoomRequest.setValidFrom(validFrom);\n }\n\n if (validUntil != null) {\n updateRoomRequest.setValidUntil(validUntil);\n }\n\n return updateRoomRequest;\n }", "public static AbsTime factory() throws Time.Ex_TimeNotAvailable\n {\n return new AbsTime();\n }", "protected GiphyModel getValidModelFromFields() {\n GiphyModel model = new GiphyModel();\n\n model.title = (mEtTitle.getText() != null) ? mEtTitle.getText().toString() : null;\n model.author = (mEtAuthor.getText() != null) ? mEtAuthor.getText().toString() : null;\n model.src = (mEtGiphySrc.getText() != null) ? mEtGiphySrc.getText().toString() : null;\n\n\n boolean isValid = true;\n\n if(model.title == null || model.title.isEmpty()) {\n mTlTitle.setError(\"Title cannot be blank\");\n isValid = false;\n }\n if(model.author == null || model.author.isEmpty()) {\n mTlAuthor.setError(\"Author cannot be blank\");\n isValid = false;\n }\n if(model.src == null || model.src.isEmpty()) {\n mTlGiphySrc.setError(\"Cannot have empty giphy\");\n isValid = false;\n }\n\n if(isValid) {\n //Timestamp and return\n model.date = new Date();\n model.viewOrder = -1;\n return model;\n\n }\n else {\n return null;\n }\n }", "public DependResult getModelDependResult(Date currentTime) {\n\n List<DependResult> dependResultList = new ArrayList<>();\n\n for (DependentItem dependentItem : dependItemList) {\n DependResult dependResult = getDependResultForItem(dependentItem, currentTime);\n if (dependResult != DependResult.WAITING) {\n dependResultMap.put(dependentItem.getKey(), dependResult);\n }\n dependResultList.add(dependResult);\n }\n modelDependResult = DependentUtils.getDependResultForRelation(this.relation, dependResultList);\n return modelDependResult;\n }", "public List<Stop> getListStopByMoreTime(Date time){\n List<Stop> items = null;\n Session session = beanHibernateUtil.getSession();\n try {\n session.beginTransaction();\n Criteria criteria = session.createCriteria(Stop.class);\n criteria.add(Restrictions.gt(\"arrivalTime\",time.getTime()-2*60*60000));//lay du lieu tu 16h hom trc toi 18h sau tranh luc giao ke hoạch 18h bi thieu 1 stop\n criteria.addOrder(Order.asc(\"arrivalTime\"));//de chuan thi phai ket hop dc ca du lieu arrivalTime va departureTime cong lai moi het dc cac truong hop\n items = criteria.list();\n session.getTransaction().commit();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n beanHibernateUtil.closeSession(session);\n }\n\n return items;\n }", "private com.google.protobuf.SingleFieldBuilder<\n hr.client.appuser.CouponCenter.TimeRange, hr.client.appuser.CouponCenter.TimeRange.Builder, hr.client.appuser.CouponCenter.TimeRangeOrBuilder> \n getUseTimeFieldBuilder() {\n if (useTimeBuilder_ == null) {\n useTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n hr.client.appuser.CouponCenter.TimeRange, hr.client.appuser.CouponCenter.TimeRange.Builder, hr.client.appuser.CouponCenter.TimeRangeOrBuilder>(\n getUseTime(),\n getParentForChildren(),\n isClean());\n useTime_ = null;\n }\n return useTimeBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilder<\n hr.client.appuser.CouponCenter.TimeRange, hr.client.appuser.CouponCenter.TimeRange.Builder, hr.client.appuser.CouponCenter.TimeRangeOrBuilder> \n getUseTimeFieldBuilder() {\n if (useTimeBuilder_ == null) {\n useTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n hr.client.appuser.CouponCenter.TimeRange, hr.client.appuser.CouponCenter.TimeRange.Builder, hr.client.appuser.CouponCenter.TimeRangeOrBuilder>(\n getUseTime(),\n getParentForChildren(),\n isClean());\n useTime_ = null;\n }\n return useTimeBuilder_;\n }", "public void setValidTime(java.util.Date validTime) {\r\n this.validTime = validTime;\r\n }", "@Test\n public void testFloatInRange() {\n int lowEnd = -10;\n int highEnd = 10;\n Optional<NumberValue> optRslt = floatService.floatInRange(lowEnd, highEnd);\n assertTrue(optRslt.isPresent());\n NumberValue numberValue = optRslt.get();\n assertTrue(lowEnd * 1.0 <= numberValue.getNumber().doubleValue());\n assertTrue(highEnd * 1.0 >= numberValue.getNumber().doubleValue());\n System.out.println(\"Number Value = \" + numberValue.toString());\n }", "private double getOEEAvailability(Batch batch, double stopTime) {\n double plannedProductionTime = (60.0 / ((double) batch.getMachineSpeed())) * (((double) batch.getAccepted()) + ((double) batch.getDefect()));\n double runtime = plannedProductionTime - stopTime;\n\n double availability = runtime / plannedProductionTime;\n\n return availability;\n }" ]
[ "0.5337632", "0.52956635", "0.5078822", "0.5030002", "0.49870196", "0.48281822", "0.48067912", "0.4781717", "0.47627205", "0.4752097", "0.47369677", "0.47335318", "0.47112718", "0.46631533", "0.46550298", "0.46369416", "0.46135676", "0.46075577", "0.45872512", "0.45848098", "0.4580719", "0.45360115", "0.45298788", "0.45227438", "0.4515583", "0.45062", "0.45001075", "0.44755894", "0.44498917", "0.44379404", "0.4436254", "0.44096142", "0.43983197", "0.43945912", "0.4387543", "0.4377102", "0.4377102", "0.43692523", "0.43677", "0.4363329", "0.43594807", "0.4351719", "0.43473107", "0.43459758", "0.4342543", "0.4342013", "0.43306118", "0.43169913", "0.4315274", "0.4315274", "0.43097278", "0.43092534", "0.43036273", "0.4296499", "0.4293922", "0.4289074", "0.42862752", "0.42819428", "0.42761222", "0.42749944", "0.42740044", "0.4273599", "0.427251", "0.42493847", "0.4247232", "0.42385682", "0.4235589", "0.42298198", "0.42258435", "0.42239597", "0.42199248", "0.4216833", "0.42149734", "0.4208496", "0.42072284", "0.42016885", "0.41997382", "0.41934857", "0.4189602", "0.41876444", "0.41874367", "0.41706052", "0.41639698", "0.4162903", "0.4162809", "0.41607794", "0.4150736", "0.41496488", "0.4149542", "0.41491315", "0.41484007", "0.41478503", "0.4147134", "0.4142026", "0.41386846", "0.4134769", "0.4131477", "0.4131477", "0.41268432", "0.4125727", "0.4125223" ]
0.0
-1
Retrieve a model that is valid for right now:
public TwoDBlackModel retrieveMostRecentTwoDBlackModel(int module, int output) { double[] mjds = fcCrud.retrieveTwoDBlackImageTimes(module, output, getHistory()); double[] mostRecentMjd = new double[0]; if (mjds.length > 0) { mostRecentMjd = new double[] { mjds[mjds.length - 1] }; } float[][][] flats = getFloats(mostRecentMjd, module, output); float[][][] uncertainties = getUncertainties(mostRecentMjd, module, output); TwoDBlackModel model = new TwoDBlackModel(mostRecentMjd, flats, uncertainties); return model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ValidationModel getValidationModel() {\n \n Logger logger = Logger.getLogger(AvdSupport.class.getName());\n \n\n logger.log(Level.SEVERE, \"Creatig valiation model\");\n logger.log(Level.SEVERE, \"Reading file: \");\n FileObject fo = avdDataObject.getPrimaryFile();\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(fo.getInputStream()));\n \n String line = null;\n while ((line = br.readLine()) != null) {\n logger.log(Level.SEVERE, \"line: {0}\", line);\n }\n \n } catch (FileNotFoundException ex) {\n Exceptions.printStackTrace(ex);\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n \n \n // TODO: implement\n // throw new UnsupportedOperationException(\"Not supported yet.\");\n \n \n \n return null;\n }", "public ModelObject read(ModelObject obj);", "protected GiphyModel getValidModelFromFields() {\n GiphyModel model = new GiphyModel();\n\n model.title = (mEtTitle.getText() != null) ? mEtTitle.getText().toString() : null;\n model.author = (mEtAuthor.getText() != null) ? mEtAuthor.getText().toString() : null;\n model.src = (mEtGiphySrc.getText() != null) ? mEtGiphySrc.getText().toString() : null;\n\n\n boolean isValid = true;\n\n if(model.title == null || model.title.isEmpty()) {\n mTlTitle.setError(\"Title cannot be blank\");\n isValid = false;\n }\n if(model.author == null || model.author.isEmpty()) {\n mTlAuthor.setError(\"Author cannot be blank\");\n isValid = false;\n }\n if(model.src == null || model.src.isEmpty()) {\n mTlGiphySrc.setError(\"Cannot have empty giphy\");\n isValid = false;\n }\n\n if(isValid) {\n //Timestamp and return\n model.date = new Date();\n model.viewOrder = -1;\n return model;\n\n }\n else {\n return null;\n }\n }", "ModelData getModel();", "SolvableConflictModel createInstanceOfSolvableConflictModel();", "static RatAppModel getInstance() {return model;}", "public Model getModel () { return _model; }", "protected E getModel ()\n\t{\n\t\treturn model;\n\t}", "T getInstance(@Valid @NotNull @NotBlank I id) throws EntityNotFoundException;", "OwnerModel getOwnerByID(int ownerID) throws Exception;", "InstanceModel createInstanceOfInstanceModel();", "@Override\r\n\tpublic T getModel() {\n\t\treturn model;\r\n\t}", "public Boolean getModel () throws CGException {\n return ivModel;\n }", "@Override\n public void validateModel() {\n }", "public ModelBean provideModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "private static Model getSelectedModel(HttpResponse<String> response){\n\t\tModel model;\n\t\ttry {\n\t\t\tmodel = new ObjectMapper().readValue(response.body(), new TypeReference<Model>(){});\n\t\t\treturn model;\n\t\t} catch (JsonMappingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public static Model getSelectedModel() {\n\t\tString path = SELECTED_MODEL;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\treturn getSelectedModel(response);\n\t}", "@Override\n\tpublic Model findOne(Model model) throws ServiceException {\n\t\tMap<String, Object> result = getDao().findOne(model, null);\n\t\tmodel = buildModel(result);\n\t\treturn model;\n\t}", "Model getModel();", "Model getModel();", "Model getModel();", "public Model getModel(){\r\n return model;\r\n }", "public IServiceModel getActiveModel() {\n return activeModel;\n }", "ConflictingAssumptionModel createInstanceOfConflictingAssumptionModel();", "public Object getModel();", "public boolean validateModel(){\r\n System.out.println(\"Validated!\");\r\n return true;\r\n }", "@GET\n @Produces({\"application/xml\", \"application/json\"})\n public ModelBase pull() throws NotFoundException {\n // ?? get latest ontModel directly from TopologyManager ??\n ModelBase model = NPSGlobalState.getModelStore().getHead();\n if (model == null)\n throw new NotFoundException(\"None!\"); \n return model;\n }", "A getModel();", "@JsonIgnore\n @Override\n public Model getModel() {\n return this.model;\n }", "boolean hasModel();", "boolean hasModel();", "ArtefactModel getArtefactModel();", "public ModelSnapshot getModel() {\n return model;\n }", "ModelRule createModelRule();", "public Model getModel(int index) {\r\n if (index >= models.size()) return null;\r\n return (Model) models.elementAt(index);\r\n }", "public ExtFilterLazyDataModel<T> getModel() {\n if (model == null) {\n model = new ExtFilterLazyDataModel<T>(dao);\n String queryBody = generateQuery().toString();\n model.setSelectQuery(queryBody);\n model.setParameters(modelParams);\n }\n return model;\n }", "public static Model tryGet(int id) {\n\t\tif (headers == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tHeader header = headers[id];\n\n\t\tif (header != null) {\n\t\t\treturn new Model(id);\n\t\t} else {\n\t\t\tondemand.requestModel(id);\n\t\t\treturn null;\n\t\t}\n\t}", "protected Object resolveModel(Object model) {\n\t\treturn model;\n\t}", "public AnyUriModel retrieveCurrentValues() {\r\n resetModelFromValues();\r\n return new AnyUriModel(model);\r\n }", "public void testGetModel() {\n System.out.println(\"getModel\");\n Wizard instance = new Wizard();\n WizardModel result = instance.getModel();\n assertNotNull(result);\n }", "public M getInstanceModel(DTO modelDTO, Class<M> modelBDClass) {\n\n M model = null;\n\n EntityUtil entityUtil = new EntityUtil();\n\n try {\n\n model = entityUtil.copyEntity(modelDTO, modelBDClass.getConstructor().newInstance());\n\n } catch (InstantiationException e) {\n LogManager.getLog(this.getClass()).warn(e);\n } catch (IllegalAccessException e) {\n LogManager.getLog(this.getClass()).warn(e);\n } catch (InvocationTargetException e) {\n LogManager.getLog(this.getClass()).warn(e);\n } catch (NoSuchMethodException e) {\n LogManager.getLog(this.getClass()).warn(e);\n }\n\n return model;\n }", "TypedModel getModel();", "protected IModel<T> getFormModel() {\n return formModel;\n }", "public abstract M getModel();", "public DataModel getModel() {\n return model;\n }", "public Model getModel() {\n return model;\n }", "public Model getModel() {\n return model;\n }", "public Model getModel() {\n return model;\n }", "public Model getModel() {\n return model;\n }", "EisModel createEisModel();", "public ReportCardModel getCardById(ReportCardModel inputModel) {\n System.out.println(\"ReportCardDao.getCardById \" + \"start\");\n ReportCardModel reportCardModel = new ReportCardModel();\n // TODO: Implement this function.\n \n if(ReportCardModelMeta.get().entityToModel(\n Datastore.query(\"ReportCardModel\")\n .filter(\"ID/Name\", FilterOperator.EQUAL, inputModel.getId())\n .asSingleEntity()) == null){\n System.out.println(\"ReportCardDao.getCardById \" + \"end\");\n return null;\n }else{\n System.out.println(\"ReportCardDao.getCardById \" + \"end\");\n return inputModel;\n }\n }", "UserModel findUserModelById(Long id);", "public Model getModel() {\n return petal_model;\n }", "public static synchronized Model getInstance() {\n if (instance == null) {\n instance = new Model();\n }\n return instance;\n }", "@Override\n\tpublic CalEntity getModel() {\n\t\treturn model;\n\t}", "private IModel<String> createCurrentEmailModel() {\n return Model.of(userModel.getObject().getEmail());\n }", "java.lang.String getModel();", "public Object getModel() {\n\t\treturn null;\n\t}", "CsticModel createInstanceOfCsticModel();", "@Test\n public void findByID_whenModelIsValid_successful() throws CreateException, ReadException {\n\n SportCenter sportCenter = this.modelMapper\n .map(validSportCenterServiceModel1, SportCenter.class);\n SportCenter savedSportCenter = this.sportCenterRepository.saveAndFlush(sportCenter);\n SportCenterServiceModel sportCenterServiceModel = this.modelMapper\n .map(savedSportCenter, SportCenterServiceModel.class);\n ScheduleServiceModel expected = this.scheduleService\n .createSchedule(sportCenterServiceModel, \"11\", \"11\", \"2011\");\n ScheduleServiceModel actual = this.scheduleService.findByID(expected.getId());\n\n assertEquals(expected.getId(), actual.getId());\n }", "public ModelContainer getModel(IRI id) {\n\t\tsynchronized (modelMap) { \n\t\t\t// synchronized to avoid race condition for simultaneous loads of the same model\n\t\t\tif (!modelMap.containsKey(id)) {\n\t\t\t\ttry {\n\t\t\t\t\tloadModel(id, false);\n\t\t\t\t} catch (OWLOntologyCreationException e) {\n\t\t\t\t\tLOG.info(\"Could not load model with id: \"+id, e);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn modelMap.get(id);\n\t\t}\n\t}", "public Model getCurrentModel() {\n return currentModel;\n }", "public FindOnModelObjectOK() {\r\n\t\tsuper();\r\n\t}", "public UserModel getUserModel() {\n return localUserModel;\n }", "@Override\r\n\tpublic Model getModel() {\n\t\treturn this.model;\r\n\t}", "public IDESessionModel getModel(Session session);", "private static BattleshipModel getModelFromReq(Request req){\n\n String data = req.body();\n Gson gson = new Gson();\n\n if( req.params(\"Version\").equals(\"Updated\") ) {\n\n return gson.fromJson(data, BattleshipModelUpdated.class);\n\n }else{\n\n return gson.fromJson(data, BattleshipModelNormal.class);\n\n }\n\n }", "@Override\r\n\tpublic Object getModel() {\n\t\treturn null;\r\n\t}", "public AbstractModel getModel() {\n return model;\n }", "public BaseSlingModel getGenericModel() {\n return model;\n }", "public String getModel();", "public InstancesModel getValidInstancesModel(InstancesEntity instancesEntity) {\n log.info(\"Starting to get valid instances [{}] model from table [{}]\", instancesEntity.getRelationName(),\n instancesEntity.getTableName());\n var attributes = attributeService.getSelectedAttributes(instancesEntity);\n if (attributes.size() < MIN_NUM_SELECTED_ATTRIBUTES) {\n throw new SelectedAttributesNumberIsTooLowException(instancesEntity.getId());\n }\n if (instancesEntity.getClassAttribute() == null || !instancesEntity.getClassAttribute().isSelected()) {\n throw new ClassAttributeNotSelectedException(instancesEntity.getId());\n }\n int countUniqueClassesInTable = countUniqueClassValuesInTable(instancesEntity);\n if (countUniqueClassesInTable < MIN_NUM_CLASSES) {\n throw new ClassAttributeValuesIsTooLowException(instancesEntity.getId());\n }\n var columns = attributes.stream()\n .map(AttributeEntity::getColumnName)\n .collect(Collectors.toList());\n String query = buildSqlSelectQuery(instancesEntity, columns);\n var extractor = new InstancesModelResultSetExtractor(instancesEntity, attributes);\n extractor.setDateFormat(ecaDsConfig.getDateFormat());\n var instancesModel = jdbcTemplate.query(query, extractor);\n log.info(\"Instances [{}] model has been fetched for table [{}]\", instancesEntity.getRelationName(),\n instancesEntity.getTableName());\n return instancesModel;\n }", "public Model getModel() {\n\t\treturn model;\n\t}", "public Model getModel() {\n\t\treturn model;\n\t}", "public Model getModel() {\n\t\treturn model;\n\t}", "public static UserModel getInstance(){\n \tif (instance==null){\n \t\tinstance = new UserModel();\n \t}\n \treturn instance;\n }", "DomainModel createDomainModel();", "IDataModel getIDataModel();", "public abstract void validate () throws ModelValidationException;", "public abstract <T extends BaseSlingModel> T getModel();", "public QueryModel getQueryModel()\n {\n return _queryModel;\n }", "public boolean hasModel() {\n return false;\r\n }", "public Model getModel(String path) {\n Model model = modelCache.get(path);\n if (model != null) {\n return model;\n }\n\n model = this.loadModel(path);\n if (model == null) {\n model = this.createPlaceholderModel(BlockData.AIR.getDefaultRenderOptions()); // failed to load or find\n model.name = path;\n }\n modelCache.put(path, model);\n return model;\n }", "public Model getModel()\n\t{\n\t\treturn this.model;\n\t}", "public ModelOfCar getModelByName(String name) {\n\t\tif (repository.findByName(name) == null)\n\t\t{LOGGER.error(\"Spring Boot informerar mig om att ett fel har inträffat\");\n\t\t\tthrow new OurCustomExceptions(\"Model finns inte i tabell\");}\n\t\telse\n\t\t\treturn repository.findByName(name);\n\t}", "@Override\n\tpublic KomisyonModel get(String id) {\n\t\treturn null;\n\t}", "protected static Model getModel(String workspaceId, String modelId)\n throws AnaplanAPIException {\n Workspace workspace = getWorkspace(workspaceId);\n if (workspace == null) {\n return null;\n }\n if (modelId == null || modelId.isEmpty()) {\n LOG.error(\"A model ID must be provided\");\n return null;\n }\n Model model = null;\n\n if (!noValidateModel) {\n for (Model m : workspace.getModels()) {\n if (modelId.equals(m.getId()) || modelId.equalsIgnoreCase(m.getName())) {\n model = m;\n break;\n }\n }\n }\n if (model == null) {\n ModelData data = new ModelData(modelId, \"\");\n model = new Model(workspace, data);\n model.setCurrentWorkspaceId(workspaceId);\n }\n return model;\n }", "public Model createBaseModel() {\n return ModelFactory.createDefaultModel();\n }", "RequesterVO get(int id);", "public User getModel() {\n\t\treturn model;\r\n\t}", "public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }", "@Test\n public void findByDetails_whenModelIsValid_successful() throws CreateException, ReadException {\n\n SportCenter sportCenter = this.modelMapper\n .map(validSportCenterServiceModel1, SportCenter.class);\n SportCenter savedSportCenter = this.sportCenterRepository.saveAndFlush(sportCenter);\n SportCenterServiceModel sportCenterServiceModel = this.modelMapper\n .map(savedSportCenter, SportCenterServiceModel.class);\n ScheduleServiceModel expected = this.scheduleService\n .createSchedule(sportCenterServiceModel, \"11\", \"11\", \"2011\");\n ScheduleServiceModel actual = this.scheduleService\n .findByDetails(sportCenterServiceModel.getId(), \"11\", \"11\", \"2011\");\n\n assertEquals(expected.getId(), actual.getId());\n }", "public String getModel()\n {\n return model;\n }", "PriceModel createInstanceOfPriceModel();" ]
[ "0.6300343", "0.62732315", "0.61272156", "0.60964996", "0.59908897", "0.59239733", "0.5922486", "0.5879119", "0.5868764", "0.58256364", "0.5808793", "0.57874745", "0.57747144", "0.5759978", "0.5740769", "0.5711709", "0.5711709", "0.5711709", "0.5711709", "0.5711709", "0.5711709", "0.5711709", "0.5698527", "0.5686743", "0.5684628", "0.5683563", "0.5683563", "0.5683563", "0.56615406", "0.5647578", "0.5625017", "0.55842596", "0.55839264", "0.5581659", "0.55603933", "0.554329", "0.55313134", "0.55313134", "0.552832", "0.55171776", "0.5506573", "0.55058885", "0.54980516", "0.5496233", "0.54926777", "0.5492134", "0.5488413", "0.54617757", "0.545757", "0.54478323", "0.5446699", "0.5439748", "0.5423282", "0.5423282", "0.5423282", "0.5423282", "0.5421022", "0.54121816", "0.53984815", "0.53923315", "0.53880125", "0.5372475", "0.536909", "0.5357229", "0.53523314", "0.5342458", "0.5335948", "0.5321205", "0.5318415", "0.53182185", "0.5316361", "0.53137094", "0.53043854", "0.52986735", "0.5290021", "0.5283893", "0.5283015", "0.52828133", "0.5282702", "0.5281788", "0.5281788", "0.5281788", "0.5280847", "0.5277269", "0.52754307", "0.5264995", "0.5260691", "0.52600485", "0.5255603", "0.5255015", "0.52512974", "0.52442515", "0.52400035", "0.52378833", "0.52308446", "0.5220856", "0.5216023", "0.52142674", "0.5184116", "0.5183114", "0.51693743" ]
0.0
-1
Retrieve a model that is valid for all time ranges
public TwoDBlackModel retrieveTwoDBlackModelAll(int module, int output) { double[] mjds = fcCrud.retrieveTwoDBlackImageTimes(module, output, getHistory()); float[][][] blacks = getFloats(mjds, module, output); float[][][] uncertainties = getUncertainties(mjds, module, output); return FcModelFactory.twoDBlackModel(mjds, blacks, uncertainties); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, List<TimePeriodModel>> getAllTimePeriods();", "@ApiModelProperty(value = \"The period for which the object is valid\")\n\n @Valid\n\n public TimePeriod getValidFor() {\n return validFor;\n }", "public List<ScheduledInterview> getInRange(Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<>();\n List<ScheduledInterview> scheduledInterviews = new ArrayList<ScheduledInterview>(data.values());\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n scheduledInterviewsInRange.sort(\n (ScheduledInterview s1, ScheduledInterview s2) -> {\n if (s1.when().start().equals(s2.when().start())) {\n return 0;\n }\n if (s1.when().start().isBefore(s2.when().start())) {\n return -1;\n }\n return 1;\n });\n return scheduledInterviewsInRange;\n }", "public void checkTimeRangeSettingsAccordingToTimeModelBeforeJadeStart() {\r\n\t\t\r\n\t\t// --- Get global ScheduleTimeRange --------------- \r\n\t\tScheduleTimeRange strGlobal = ScheduleTimeRangeController.getScheduleTimeRange();\r\n\t\tif (strGlobal==null) return;\r\n\t\t\r\n\t\t// --- Get Project instance -----------------------\r\n\t\tProject project = this.graphController.getProject();\r\n\t\tif (project==null) return; // (will not happen, but see 'save' call below)\r\n\t\t\r\n\t\t// --- Get date based time model ------------------\r\n\t\tTimeModel timeModel = this.graphController.getTimeModel();\r\n\t\tif (! (timeModel instanceof TimeModelDateBased)) return;\r\n\t\t\t\t\r\n\t\t// --- Get start and end time of the execution ---- \t\r\n\t\tTimeModelDateBased tmDataBased = (TimeModelDateBased) timeModel;\r\n\t\tlong startTime = tmDataBased.getTimeStart();\r\n\t\t\r\n\t\tif (strGlobal.getTimeFrom()!=startTime) {\r\n\t\t\t// --- ScheduleTimeRange needs to adjusted! --- \r\n\t\t\tlong shift = strGlobal.getTimeFrom() - startTime; \r\n\t\t\tScheduleTimeRange strGlobalNew = strGlobal.getCopy();\r\n\t\t\tstrGlobalNew.setTimeFrom(strGlobal.getTimeFrom() - shift);\r\n\t\t\tif (strGlobal.getRangeType()==RangeType.TimeRange) {\r\n\t\t\t\tstrGlobalNew.setTimeTo(strGlobal.getTimeTo() - shift);\r\n\t\t\t}\r\n\t\t\t// --- Set as new global ScheduleTimeRange ----\r\n\t\t\tScheduleTimeRangeController.setScheduleTimeRange(strGlobalNew , EVENT_CONFIGURED_IN_AWB_MAIN_WINDOW);\r\n\t\t\t\r\n\t\t\t// --- Save the project again -----------------\r\n\t\t\tproject.save();\r\n\t\t}\r\n\t\t\r\n\t}", "public Collection<TimeRange> query(Collection<Event> events, MeetingRequest request) {\n if(request.getAttendees().isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n // nobody has time to meet for more than a day\n if(request.getDuration() > TimeRange.WHOLE_DAY.duration()){\n return Arrays.asList();\n }\n // if there're no already existing events, whole day is available, \n if(events.isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n\n Collection<String> listOfAttendees = request.getAttendees();\n List<TimeRange> unavailableTimes = getUnavailableTimesForAttendees(events, listOfAttendees);\n\n return getAvailableTimes(unavailableTimes, request.getDuration());\n }", "@Override\n public RoomRatesEntity findOnlineRateForRoomType(Long roomTypeId, Date currentDate) throws NoAvailableOnlineRoomRateException {\n Query query = em.createQuery(\"SELECT r FROM RoomRatesEntity r JOIN r.roomTypeList r1 WHERE r1.roomTypeId = :roomTypeId\");\n query.setParameter(\"roomTypeId\", roomTypeId);\n List<RoomRatesEntity> roomRates = query.getResultList();\n\n //Check what rate type are present\n boolean normal = false;\n boolean promo = false;\n boolean peak = false;\n\n for (RoomRatesEntity roomRate : roomRates) {\n// if (!checkValidityOfRoomRate(roomRate)) { //skips expired/not started rates, price is determined by check in and check out date, it becomes not considered in our final prediction\n// continue;\n// }\n// if null do smt else\n if (roomRate.getIsDisabled() == false) {\n if (null != roomRate.getRateType()) {\n System.out.println(roomRate.getRateType());\n switch (roomRate.getRateType()) {\n case NORMAL:\n normal = true;\n \n break;\n case PROMOTIONAL:\n System.out.println(\"ValidStart \"+roomRate.getValidityStart()+\" ValidEnd: \"+roomRate.getValidityEnd()+\" CurrentDate: \"+currentDate);\n if (rateIsWithinRange(roomRate.getValidityStart(), roomRate.getValidityEnd(), currentDate)) {\n promo = true;\n }\n break;\n\n case PEAK:\n System.out.println(\"ValidStart \"+roomRate.getValidityStart()+\" ValidEnd: \"+roomRate.getValidityEnd()+\" CurrentDate: \"+currentDate);\n\n if (rateIsWithinRange(roomRate.getValidityStart(), roomRate.getValidityEnd(), currentDate)) {\n peak = true;\n }\n break;\n default:\n break;\n }\n }\n\n System.out.println(normal + \" \" + promo + \" \" + peak);\n //5 rules here\n if (normal && promo && peak) {\n //find promo\n Query rule = em.createQuery(\"SELECT r FROM RoomRatesEntity r JOIN r.roomTypeList r1 WHERE r1.roomTypeId = :roomTypeId AND r.rateType = :p ORDER BY r.ratePerNight ASC\");\n rule.setParameter(\"p\", RateType.PROMOTIONAL);\n rule.setParameter(\"roomTypeId\", roomTypeId);\n\n return (RoomRatesEntity) rule.getResultList().get(0);\n } else if (promo && peak && !normal || normal && peak && !promo) {\n //apply peak, assume only 1\n Query rule = em.createQuery(\"SELECT r FROM RoomRatesEntity r JOIN r.roomTypeList r1 WHERE r1.roomTypeId = :roomTypeId AND r.rateType = :p\");\n rule.setParameter(\"p\", RateType.PEAK);\n rule.setParameter(\"roomTypeId\", roomTypeId);\n\n return (RoomRatesEntity) rule.getSingleResult();\n } else if (normal && promo && !peak) {\n //apply promo\n Query rule = em.createQuery(\"SELECT r FROM RoomRatesEntity r JOIN r.roomTypeList r1 WHERE r1.roomTypeId = :roomTypeId AND r.rateType = :p ORDER BY r.ratePerNight ASC\");\n rule.setParameter(\"p\", RateType.PROMOTIONAL);\n rule.setParameter(\"roomTypeId\", roomTypeId);\n\n return (RoomRatesEntity) rule.getResultList().get(0);\n } else if (normal && !promo && !peak) {\n //apply normal\n Query rule = em.createQuery(\"SELECT r FROM RoomRatesEntity r JOIN r.roomTypeList r1 WHERE r1.roomTypeId = :roomTypeId AND r.rateType = :p\");\n rule.setParameter(\"p\", RateType.NORMAL);\n rule.setParameter(\"roomTypeId\", roomTypeId);\n\n return (RoomRatesEntity) rule.getSingleResult();\n }\n }\n\n }\n throw new NoAvailableOnlineRoomRateException(\"There is no available room rate to be used!\");\n }", "@ApiModelProperty(value = \"The period for which the relationship is applicable\")\n public TimePeriodType getValidFor() {\n return validFor;\n }", "@Override\n public List<ScheduledInterview> getScheduledInterviewsInRangeForUser(\n String userId, Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviews = getForPerson(userId);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<ScheduledInterview>();\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n return scheduledInterviewsInRange;\n }", "@Test\r\n public void testReflexivityOverlappingTimePeriods(){\n DateTime startAvailability1 = new DateTime(2021, 7, 9, 10, 30);\r\n DateTime endAvailability1 = new DateTime(2021, 7, 9, 11, 30);\r\n DateTime startAvailability2 = new DateTime(2021, 7, 9, 11, 0);\r\n DateTime endAvailability2 = new DateTime(2021, 7, 9, 12, 0);\r\n Availability availability1 = new Availability(new HashSet<>(Arrays.asList(\"online\", \"in-person\")), startAvailability1, endAvailability1);\r\n Availability availability2 = new Availability(new HashSet<>(Arrays.asList(\"online\", \"in-person\")), startAvailability2, endAvailability2);\r\n assertTrue(availability1.overlapsWithTimePeriod(availability2));\r\n assertTrue(availability2.overlapsWithTimePeriod(availability1));\r\n }", "public List<ScheduledInterview> getForPositionWithoutShadowInRange(\n Job position, Instant minTime, Instant maxTime) {\n List<ScheduledInterview> interviewsInRange = getInRange(minTime, maxTime);\n Set<ScheduledInterview> notValidInterviews = new HashSet<ScheduledInterview>();\n for (ScheduledInterview interview : interviewsInRange) {\n if (!interview.position().equals(position) || !interview.shadowId().equals(\"\")) {\n notValidInterviews.add(interview);\n }\n }\n interviewsInRange.removeAll(notValidInterviews);\n return interviewsInRange;\n }", "private List<T> findRange(RequestData requestData) {\n javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery();\n cq.select(cq.from(getEntityClass()));\n javax.persistence.Query q = getEntityManager().createQuery(cq);\n q.setMaxResults(requestData.getLength());\n q.setFirstResult(requestData.getStart());\n return q.getResultList();\n }", "public interface TimeModel {\n TimeContainer getTime();\n}", "private static IndependentValidator createTimeListValidator() {\n Validator validator = new Validator() {\n private final ValidationStatus OK_STATUS =\n new ValidationStatus(ValidationStatus.OK, \"\");\n\n public ValidationStatus validate(Object object,\n ValidationMessageBuilder builder) {\n ValidationStatus status = OK_STATUS;\n String item = (String) object;\n StringReader reader = new StringReader(item);\n String errorMessage = null;\n TimerParser timerParser = new TimerParser(reader);\n try {\n timerParser.parse();\n } catch (Throwable e) {\n errorMessage = builder.\n buildValidationMessage(\"invalidTime\",\n null, new String[]{item});\n }\n if (\"00:00:00\".equals(item)) {\n errorMessage = builder.\n buildValidationMessage(\"zeroTime\",\n null, null);\n }\n if (errorMessage != null) {\n status = new ValidationStatus(ValidationStatus.ERROR,\n errorMessage);\n }\n return status;\n }\n };\n\n HashMap messageKeyMappings = new HashMap(2);\n messageKeyMappings.put(FaultTypes.INVALID_TIME,\n TIME_RESOURCE_PREFIX + \"invalidTime\");\n messageKeyMappings.put(FaultTypes.ZERO_TIME,\n TIME_RESOURCE_PREFIX + \"zeroTime\");\n\n ValidationMessageBuilder builder =\n new ValidationMessageBuilder(\n ControlsMessages.getResourceBundle(),\n messageKeyMappings,\n null);\n return new IndependentValidator(validator, builder);\n }", "Set<StewardSimpleDTO> getAllAvailable(Date from, Date to);", "List<Schedule> selectByExample(ScheduleCriteria example);", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "public List<Measurement> findMeasurementsByTimeRange(Date fromDate, Date toDate) {\n return entityManager.createQuery(\"SELECT m from \" +\n \"Measurement m where m.date >= :fromDate and m.date <= :toDate\", Measurement.class)\n .setParameter(\"fromDate\", fromDate)\n .setParameter(\"toDate\", toDate)\n .getResultList();\n\n }", "ImmutableList<SchemaOrgType> getTimeRequiredList();", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchRangeOfCreateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {\n return fetchRange(UserEmail.USER_EMAIL.CREATE_TIME, lowerInclusive, upperInclusive);\n }", "public Collection<TimeRange> getAvailableTimes(List<TimeRange> unavailableTimes, long requestDuration) {\n int startTime = TimeRange.START_OF_DAY;\n Collections.sort(unavailableTimes, TimeRange.ORDER_BY_START);\n Collection<TimeRange> availableTimes = new ArrayList<>();\n \n for(TimeRange unavailableTime : unavailableTimes) {\n if(startTime < unavailableTime.start()) {\n TimeRange availableTime = TimeRange.fromStartEnd(startTime, unavailableTime.start(), false);\n if(availableTime.duration() >= requestDuration){\n availableTimes.add(availableTime);\n }\n }\n if(unavailableTime.end() > startTime){\n startTime = unavailableTime.end();\n }\n }\n\n if(startTime != TimeRange.END_OF_DAY+1){\n availableTimes.add(TimeRange.fromStartEnd(startTime, TimeRange.END_OF_DAY, true));\n }\n \n return availableTimes;\n }", "@Override\n public List<Revenue> revenuesForTime(long startTime, long endTime) {\n List<Revenue> revenues = revenueRepository.findAll();\n List<Revenue> foundRevenues = new ArrayList<>();\n for(Revenue revenue : revenues){\n if(revenue.getTimestamp() == startTime || revenue.getTimestamp() == endTime){\n foundRevenues.add(revenue);\n continue;\n }\n if(revenue.getTimestamp() > startTime && revenue.getTimestamp() < endTime ){\n foundRevenues.add(revenue);\n }\n }\n return foundRevenues;\n }", "public List<ScheduleResource> neededSpecificResources();", "@Test\n void deve_retornar_uma_datetimeexception() {\n List<LocalTime> localTimes = Arrays.asList(LocalTime.parse(\"12:00:00\"));\n TimeModel timeModel = TimeModelStub.getTimeModel();\n timeModel.setPeriod(TimeCourseEnum.SECOND_PERIOD_IN);\n timeModel.setTime(\"12:30\");\n Assert.assertThrows(DateTimeException.class, () -> timeService.checkInterval(timeModel, localTimes));\n }", "public List<IEntranceValidation> validations(){\n\t\tList<IEntranceValidation> validations = new ArrayList<>();\n\t\tvalidations.add(new ValidationDayMonday(new DateToday()));\n\t\tvalidations.add(new ValidationDisplacement());\n\t\tvalidations.add(new ValidationTires());\n\t\treturn validations;\n\t}", "List<WorkingSchedule> getAll();", "List<AccountDetail> findAllByAgeBetween(Integer minAge,Integer maxAge);", "public TimeBounds getTimeBounds() {\n\t\t// Only here to ensure it is being used correctly.\n\t\t// cbit.util.Assertion.assertNotNull(fieldTimeBounds);\n\t\treturn fieldTimeBounds;\n\t}", "public List<TaskMaster> retrieveTasksForIntervalById(long userId, Calendar startTime, Calendar endTime);", "private TimeSpanList activeTimeAnswer()\r\n {\r\n return TimeSpanList.singleton(TimeSpan.get(myQueryTime));\r\n }", "@Transactional\r\n\tpublic List<Room> getFreeFromTo(LocalDate from, LocalDate to){\r\n\t\tList<Room> l= this.roomRepository.findByReservationsNotIn(\r\n\t\t\t\tthis.reservationService.getFromTo(from, to));\r\n\t\tl.addAll(this.roomRepository.findByReservationsIsNull());\r\n\t\treturn l;\r\n\t}", "List<Establishment> searchEstablishments(EstablishmentCriteria criteria, RangeCriteria rangeCriteria);", "private void verifyPeriod(Date start, Date end){\n List dates = logRepositoy.findAllByDateGreaterThanEqualAndDateLessThanEqual(start, end);\n if(dates.isEmpty()){\n throw new ResourceNotFoundException(\"Date range not found\");\n }\n }", "ConflictingAssumptionModel createInstanceOfConflictingAssumptionModel();", "public TimeIntervalCollection getSatisfiedIntervalIntersection() {\n Preconditions.checkNotNull(analysisInterval);\n TimeIntervalCollection allSatisfiedIntervals = new TimeIntervalCollection();\n if (results.isEmpty()) {\n return allSatisfiedIntervals;\n }\n\n allSatisfiedIntervals.add(analysisInterval);\n for (AccessQueryConstraintResult result : results.values()) {\n allSatisfiedIntervals = allSatisfiedIntervals.intersect(result.getSatisfiedIntervals());\n }\n\n return allSatisfiedIntervals;\n }", "protected abstract List<TemporalField> validFields();", "private void checkModels()\n {\n if (myDataType != null)\n {\n SpecialKey specialKey = myDataType.getMetaDataInfo().getSpecialTypeForKey(myField.get());\n if (specialKey instanceof TimeKey)\n {\n if (!(myCriterionValue instanceof DateModel))\n {\n switchValueModels(DateModel.class);\n }\n }\n else\n {\n if (myCriterionValue instanceof DateModel)\n {\n switchValueModels(GhostTextModel.class);\n }\n }\n }\n }", "public DateRange getDateRange();", "public Collection<IRegionalValidity> getValidRegionList();", "Range alarmLimits();", "public Range getTimeRange() {\r\n\t\treturn timeRange;\r\n\t}", "@Query(\"SELECT id, measured_at FROM measurements WHERE measured_at >= :startDate AND measured_at < :endDate\")\n @TypeConverters({DateConverter.class})\n List<MeasurementEvent> findForPeriodTest(Date startDate, Date endDate);", "@Test\n\tpublic void testListReservationsOfUserInInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, -23);\n\n\t\t// first reservation is from now +1 to now +3\n\t\tDate reservation1StartDate = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +2);\n\t\tDate reservation1EndDate = cal.getTime();\n\t\tReservation reservation1 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(),\n\t\t\t\treservation1StartDate, reservation1EndDate);\n\n\t\t// second reservation is from now +4 to now +5\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate reservation2StartDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate reservation2EndDate = cal.getTime();\n\n\t\tReservation reservation2 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(),\n\t\t\t\treservation2StartDate, reservation2EndDate);\n\n\t\t// should find both above reservation\n\t\tCollection<Reservation> reservationsOfUser;\n\t\treservationsOfUser = bookingManagement.listReservationsOfUser(USER_ID, listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfUser);\n\t\tassertEquals(2, reservationsOfUser.size());\n\t\tassertTrue(reservationsOfUser.contains(reservation1));\n\t\tassertTrue(reservationsOfUser.contains(reservation2));\n\t}", "@Test\n public void testTransplantListEndpointQueryAge() {\n String lowerBound = \"1970-01-01\";\n String upperBound = \"2018-09-27\";\n ResponseEntity response = dataController.getTransplantWaitingListRange(null,null,\"12\",null,upperBound, lowerBound);\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }", "List<ResultsView2> findByCnoBetween(int min,int max);", "private Set calculateTimeSet() {\n List choices = getDataChoices();\n if (choices.isEmpty()) {\n return null;\n }\n Set newSet = null;\n for (int i = 0; i < choices.size(); i++) {\n try {\n VerticalProfileInfo info = getVPInfo(i);\n GridDataInstance dataInstance = info.getDataInstance();\n Set set = GridUtil.getTimeSet(dataInstance.getGrid());\n //System.out.println(\"di.timeset[\"+i+\"] = \" + set);\n if (set != null) {\n if (newSet == null) {\n newSet = set;\n } else {\n newSet = newSet.merge1DSets(set);\n }\n }\n } catch (Exception e) {\n logger.error(\"Problem calculating TimeSet\", e);\n }\n }\n //System.out.println(\"merged time set = \" + newSet);\n return newSet;\n }", "public Timestamp getValidFrom();", "SolvableConflictModel createInstanceOfSolvableConflictModel();", "@Test\n\tpublic void testListReservationsOfFacilityInInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, -23);\n\n\t\t// first reservation is from now +1 to now +3\n\t\tDate reservation1StartDate = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +2);\n\t\tDate reservation1EndDate = cal.getTime();\n\t\tReservation reservation1 = dataHelper.createPersistedReservation(USER_ID, Arrays.asList(room1.getId()),\n\t\t\t\treservation1StartDate, reservation1EndDate);\n\n\t\t// second reservation is from now +4 to now +5\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate reservation2StartDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate reservation2EndDate = cal.getTime();\n\n\t\tReservation reservation2 = dataHelper.createPersistedReservation(USER_ID,\n\t\t\t\tArrays.asList(room1.getId(), infoBuilding.getId()), reservation2StartDate, reservation2EndDate);\n\n\t\t// should find both above reservation\n\t\tCollection<Reservation> reservationsOfFacility;\n\t\treservationsOfFacility = bookingManagement.listReservationsOfFacility(room1.getId(), listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfFacility);\n\t\tassertEquals(2, reservationsOfFacility.size());\n\t\tassertTrue(reservationsOfFacility.contains(reservation1));\n\t\tassertTrue(reservationsOfFacility.contains(reservation2));\n\t}", "public boolean isEveryDayRange() {\n int totalLength = MAX - MIN + 1;\n return isFullRange(totalLength);\n }", "List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);", "public List<TimeSheet> showAllTimeSheet(){\n log.info(\"Inside TimeSheetService#ShowAllTimeSheet() Method\");\n List<TimeSheet> allTimeSheet = timeSheetRepository.findAll();\n return allTimeSheet;\n }", "private DateRange setDefaultTemporalSubset(DimensionDescriptor timeDimension, SimpleFeature f) {\n final String start = timeDimension.getStartAttribute();\n final String end = timeDimension.getEndAttribute();\n Date startTime = (Date) f.getAttribute(start);\n Date endTime = startTime;\n if (end != null) {\n endTime = (Date) f.getAttribute(end);\n }\n return new DateRange(startTime, endTime);\n }", "public List<MaintenanceWindowTimeRange> timeRanges() {\n return this.timeRanges;\n }", "@Test\n\tpublic void testFindFreeFacility2WorkplacesFullyAvailible() {\n\t\tRoomQuery query = new RoomQuery(Arrays.asList(new Property(\"WLAN\")), \"\", 2);\n\t\tCollection<FreeFacilityResult> result;\n\t\tresult = bookingManagement.findFreeFacilites(query, validStartDate, validEndDate, true);\n\n\t\t// should find the one room with the two workplaces.\n\t\tassertNotNull(result);\n\t\tassertEquals(1, result.size());\n\t\tassertEquals(validStartDate, result.iterator().next().start);\n\t}", "@Test\r\n\tpublic void getByRange_RangeInAll_Success() {\r\n\r\n\t\tSelectionCriteria criteria = getSelectionCriteria();\r\n\t\tgetContentList();\r\n\t\tList<String> content = service.getByCriteria(criteria);\r\n\t\tAssert.assertEquals(7, content.size());\r\n\t\tAssert.assertEquals(USER_INPUT[2], content.get(0));\r\n\t\tservice.clearAll();\r\n\t}", "private void getValidity(){\n String start_time = spin_start.getSelectedItem().toString();\n String end_time = spin_end.getSelectedItem().toString();\n String day = spin_day.getSelectedItem().toString();\n\n String[] start = start_time.split(\":\");\n String[] end = end_time.split(\":\");\n\n //Set the 2 hours\n int hourStart = Integer.parseInt(start[0]);\n int hourEnd = Integer.parseInt(end[0]);\n\n //Set the minutes\n int minuteStart = Integer.parseInt(start[1]);\n int minuteEnd = Integer.parseInt(end[1]);\n\n boolean valid = true;\n\n if(hourStart == hourEnd && minuteStart >= minuteEnd)\n valid = false;\n if(hourStart > hourEnd)\n valid = false;\n if(valid) {\n valid = isAvailabilityExist(day, start_time, end_time);\n if (valid) {\n valid = isAppointmentExist(day, start_time, end_time);\n if (valid) {\n createAppointment(day, start_time, end_time);\n } else\n Toast.makeText(this, \"There is already an appointment at the time you try to use.\", Toast.LENGTH_LONG).show();\n\n } else\n Toast.makeText(this, \"Please make sure you select an appointment \" +\n \"in the availability of the service provider.\", Toast.LENGTH_LONG).show();\n\n }else\n Toast.makeText(this, \"The time you try to get an appointment is not valid.\", Toast.LENGTH_LONG).show();\n }", "public static Reservation[] getFromPeriod(Period period) {\r\n \t\t// Set the condition\r\n\t\tString condition = \"period.startTime >= \" + period.start.getTime() + \r\n \t\t\t\t\t \t\t\" AND period.endTime <= \" + period.end.getTime();\r\n \t\t\r\n \t\t// Execute the query\r\n \t\tResultSet result = model.get(\"reservation\", condition, \"period\", \"reservation.period\", \"period.id\");\r\n \r\n \t\t// Examine if the result has any content\r\n \t\tif (getFirstRowInResultSet(result)) {\r\n \t\t\t// Retrieve the results\r\n \t\t\ttry {\r\n \t\t\t\tresult.last();\r\n \t\t\t\tReservation[] arr = new Reservation[result.getRow()];\r\n \t\t\t\tresult.beforeFirst();\r\n \t\t\t\twhile (result.next()) {\r\n \t\t\t\t\tint id \t\t\t = result.getInt(1);\r\n \t\t\t\t\tSystem.out.println(result.getString(\"startTime\"));\r\n \t\t\t\t\t//arr[result.getRow() - 1] = new Reservation(id, customer, period, vehicle);\r\n \t\t\t\t}\r\n \t\t\t\t\r\n \t\t\t\t// Return\r\n \t\t\t\treturn arr;\r\n \t\t\t} catch (SQLException e) {\r\n \t\t\t\tLog.error(\"Unable to retrieve data from result: \" + e);\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tLog.info(\"Query for Reservation with condition returned empty.\");\r\n \t\t}\r\n \t\t\r\n \t\t// Return failure.\r\n \t\treturn null;\r\n \t}", "public List<Timetable> getAllTimetable() throws Exception;", "@Test\n public void ratingAtSameTimeAsStartIsReturned() {\n LocalDateTime firstTime = LocalDateTime.of(2017, Month.JANUARY, 1, 0, 0);\n\n TimePeriod tp = new TimePeriod(firstTime, firstTime.plusHours(4));\n ScoreTime r1 = new ScoreTime(firstTime, 3);\n ScoreTime r2 = new ScoreTime(firstTime.plusHours(3), 3);\n\n List<ScoreTime> returnedList = getRatingsBetweenAndSometimesOneBefore(tp, Arrays.asList(r1, r2));\n assertEquals(2, returnedList.size());\n assertEquals(r1.getTime(), returnedList.get(0).getTime());\n assertEquals(r2.getTime(), returnedList.get(1).getTime());\n }", "public List<DataCenterForecast> execute(TimeSlotBasedEntity timeRange) {\n \tlogger.debug(\"Starting power planning loop for time range: \" + timeRange);\n \tlogger.debug(\"Requesting energy forecasts...\");\n\t\tList<DataCenterForecast> forecasts = erdsHandler.getEnergyForecasts(timeRange);\n logger.debug(\"Got energy forecasts: \" + forecasts);\n return forecasts;\n }", "public List<MeteringDataSec> findWithinTimeRange(final Instant startTime, final Instant untilTime) {\n\t\tInstant until = untilTime == null ? startTime.plus(5, ChronoUnit.MINUTES) : untilTime;\n\n\t\tList<MeteringDataSec> matches = meteringDataRepository.findWithinTimeRange(Timestamp.from(startTime), Timestamp.from(until));\n\t\tif (!matches.isEmpty()) {\n\t\t\tLOG.info(\"findWithinTimeRange found {} entries starting with: {}\", matches.size(), matches.get(0).getCreationTime());\n\t\t}\n\n\t\treturn matches;\n\t}", "public ArrayList<ConsumptionInstance> generateConsumptionInstances(long start_time, long end_time) {\n GregorianCalendar c = (GregorianCalendar) this.start_date.clone();\n ArrayList<ConsumptionInstance> result = new ArrayList<>();\n Collections.sort(this.timings);\n\n while(c.getTimeInMillis() < end_time + Utility.MILLIS_IN_DAY) {\n for (TimeOfDay t : timings) {\n c.set(Calendar.HOUR_OF_DAY, Integer.valueOf(t.getHour()));\n c.set(Calendar.MINUTE, Integer.valueOf(t.getMinute()));\n long millis = c.getTimeInMillis();\n\n if (start_time <= millis && millis < end_time) {\n ConsumptionInstance ci = new ConsumptionInstance(this.id, (GregorianCalendar) c.clone(),\n this.drug);\n if (deleted.contains(millis)) {\n ci.setDeleted(true);\n }\n result.add(ci);\n }\n }\n c.add(Calendar.DAY_OF_MONTH, this.interval);\n }\n\n return result;\n }", "@Test\n\tpublic void testListReservationsOfUserAfterInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\t// first reservation is 1 second after list end\n\t\tcal.add(Calendar.SECOND, 1);\n\t\tDate reservation1StartDate = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +2);\n\t\tDate reservation1EndDate = cal.getTime();\n\t\tdataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(), reservation1StartDate,\n\t\t\t\treservation1EndDate);\n\n\t\t// should not find above reservation\n\t\tCollection<Reservation> reservationsOfUser;\n\t\treservationsOfUser = bookingManagement.listReservationsOfUser(USER_ID, listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfUser);\n\t\tassertTrue(reservationsOfUser.isEmpty());\n\t}", "@Test\n\tpublic void testListReservationsOfFacilityAfterInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\t// first reservation is 1 second after list end\n\t\tcal.add(Calendar.SECOND, 1);\n\t\tDate reservation1StartDate = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +2);\n\t\tDate reservation1EndDate = cal.getTime();\n\t\tdataHelper.createPersistedReservation(USER_ID, Arrays.asList(room1.getId()), reservation1StartDate,\n\t\t\t\treservation1EndDate);\n\n\t\t// should not find above reservation\n\t\tCollection<Reservation> reservationsOfFacility;\n\t\treservationsOfFacility = bookingManagement.listReservationsOfFacility(room1.getId(), listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfFacility);\n\t\tassertTrue(reservationsOfFacility.isEmpty());\n\t}", "@Test\n\tpublic void testListReservationsOfUserEqualInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\tReservation reservation1 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(),\n\t\t\t\tlistStart, listEnd);\n\n\t\t// should find above reservation\n\t\tCollection<Reservation> reservationsOfUser;\n\t\treservationsOfUser = bookingManagement.listReservationsOfUser(USER_ID, listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfUser);\n\t\tassertEquals(1, reservationsOfUser.size());\n\t\tassertTrue(reservationsOfUser.contains(reservation1));\n\t}", "@Transactional\r\n\tpublic List<Room> getReservedFromTo(LocalDate from, LocalDate to){\r\n\t\treturn this.roomRepository.findByReservationsIn(\r\n\t\t\t\tthis.reservationService.getFromTo(from, to));\r\n\t}", "private List<ComparisonExpression> comparisons(HashMap<TimeSelector, Long> lowerBounds,\n HashMap<TimeSelector, Long> upperBounds) {\n List<ComparisonExpression> newComparisons = new ArrayList<>();\n // for all selectors, as lowerBounds has the same keys as upperBounds\n for (Map.Entry<TimeSelector, Long> entry : lowerBounds.entrySet()) {\n TimeSelector selector = entry.getKey();\n Long lower = entry.getValue();\n Long upper = upperBounds.get(selector);\n if (lower.equals(upper)) {\n newComparisons.add(new ComparisonExpression(\n new Comparison(selector, EQ, new TimeLiteral(lower)),\n new ComparableTPGMFactory()));\n } else {\n if (lower > TemporalElement.DEFAULT_TIME_FROM) {\n // check if informative: lower bound of from is trivial lower bound of to\n if (selector.getTimeProp().equals(TX_TO)) {\n TimeSelector txFromSel = new TimeSelector(selector.getVariable(), TX_FROM);\n if (lowerBounds.getOrDefault(txFromSel, TemporalElement.DEFAULT_TIME_FROM).equals(lower)) {\n continue;\n }\n } else if (selector.getTimeProp().equals(VAL_TO)) {\n TimeSelector valFromSel = new TimeSelector(selector.getVariable(), VAL_FROM);\n if (lowerBounds.getOrDefault(valFromSel, TemporalElement.DEFAULT_TIME_FROM).equals(lower)) {\n continue;\n }\n }\n // informative => build comparison\n newComparisons.add(new ComparisonExpression(\n new Comparison(new TimeLiteral(lower), LTE, selector),\n new ComparableTPGMFactory()));\n }\n if (upper < TemporalElement.DEFAULT_TIME_TO) {\n // analagously as for lower bounds\n // upper bound of to is trivial upper of from\n if (selector.getTimeProp().equals(TimeSelector.TimeField.TX_FROM)) {\n TimeSelector txToSel = new TimeSelector(selector.getVariable(), TX_TO);\n if (upperBounds.getOrDefault(txToSel, TemporalElement.DEFAULT_TIME_TO).equals(upper)) {\n continue;\n }\n } else if (selector.getTimeProp().equals(TimeSelector.TimeField.VAL_FROM)) {\n TimeSelector valToSel = new TimeSelector(selector.getVariable(), VAL_TO);\n if (upperBounds.getOrDefault(valToSel, TemporalElement.DEFAULT_TIME_TO).equals(upper)) {\n continue;\n }\n }\n // informative => build comparison\n newComparisons.add(new ComparisonExpression(\n new Comparison(selector, LTE, new TimeLiteral(upper)),\n new ComparableTPGMFactory()));\n }\n }\n }\n return newComparisons;\n }", "private ArrayList<Room> roomAvailability(LocalDate start, LocalDate end, int small, int medium, int large) {\n ArrayList<Room> availableRooms = new ArrayList<Room>();\n // Iterate for all rooms in the venue\n for (Room room : rooms) {\n // Search the venue's reservations that contain the specified room.\n ArrayList<Reservation> reservationsWithRoom = Reservation.searchReservation(reservations, room);\n // Try to find rooms that fulfil the request.\n switch(room.getSize()) {\n case \"small\":\n // Ignore if no small rooms are needed.\n if (small > 0) {\n // If there no reservations with the room or the reserved dates do not\n // overlap, then add the room sinced it is available.\n if(reservationsWithRoom.size() == 0 ||\n !Reservation.hasDateOverlap(reservationsWithRoom, start, end)) {\n\n availableRooms.add(room);\n small--;\n } \n }\n break;\n\n case \"medium\":\n // Ignore if no medium rooms are needed.\n if (medium > 0) {\n \n if (reservationsWithRoom.size() == 0 ||\n !Reservation.hasDateOverlap(reservationsWithRoom, start, end)) {\n \n availableRooms.add(room);\n medium--;\n }\n }\n break;\n\n case \"large\":\n // Ignore if no large rooms ar eneeded.\n if (large > 0) {\n if (reservationsWithRoom.size() == 0 ||\n !Reservation.hasDateOverlap(reservationsWithRoom, start, end)) {\n \n availableRooms.add(room);\n large--;\n }\n break;\n }\n }\n }\n // A request cannot be fulfilled if there are no rooms available in the venue\n if (small > 0 || medium > 0 || large > 0) {\n \n return null;\n } else {\n return availableRooms;\n }\n }", "public Timestamp getValidTo();", "@Override\n public CommandResult execute(Model model, CommandHistory history) {\n requireNonNull(model);\n model.updateFilteredPersonList(new\n TimeFilterPredicate(time));\n\n ObservableList<Person> targetList = model.getFilteredPersonList();\n // Returns the command result\n if (targetList.isEmpty()) {\n return new CommandResult(\"Cannot find \" + time.toString() + \" slot within the students list!\");\n }\n\n\n List<String> personNameList = new ArrayList<>();\n for (Person ppl : targetList) {\n personNameList.add(ppl.getName().fullName);\n }\n\n return new CommandResult(\"The person whose timeSlot is \"\n + time.toString() + \" : \" + personNameList.toString());\n }", "@Test\n public void getSingleTimeList() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n timeListDAO.createTimeList(new TimeList(\"dummy\", 1990, 0, 60, 0, 0));\n\n assertNotNull(timeListResource.getSingleTimeList(1990, 0, \"dummy\"));\n\n //clean up\n timeListDAO.removeTimeList(1990, 0, \"dummy\");\n userDAO.removeUser(\"dummy\");\n }", "@Test\n\tpublic void testListReservationsOfFacilityEqualInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\tReservation reservation1 = dataHelper.createPersistedReservation(USER_ID, Arrays.asList(room1.getId()),\n\t\t\t\tlistStart, listEnd);\n\n\t\t// should find above reservation\n\t\tCollection<Reservation> reservationsOfFacility;\n\t\treservationsOfFacility = bookingManagement.listReservationsOfFacility(room1.getId(), listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfFacility);\n\t\tassertEquals(1, reservationsOfFacility.size());\n\t\tassertTrue(reservationsOfFacility.contains(reservation1));\n\t}", "org.hl7.fhir.Period getAppliesPeriod();", "ObservableList<EndTime> getEndTimeList();", "long getValidFrom();", "@Override\n protected void validate(Model model) throws CommandException {\n Budget currentPeriod = model.getPrimaryBudget().deepCopy().normalize(Timestamp.getCurrentTimestamp());\n\n if (pastDate.dateIsAfter(currentPeriod.getWindowEndDate())) {\n throw new CommandException(MESSAGE_PERIOD_IS_FUTURE);\n }\n }", "ValueRangeConstraint createValueRangeConstraint();", "public List<Stop> getListStopByMoreTime(Date time){\n List<Stop> items = null;\n Session session = beanHibernateUtil.getSession();\n try {\n session.beginTransaction();\n Criteria criteria = session.createCriteria(Stop.class);\n criteria.add(Restrictions.gt(\"arrivalTime\",time.getTime()-2*60*60000));//lay du lieu tu 16h hom trc toi 18h sau tranh luc giao ke hoạch 18h bi thieu 1 stop\n criteria.addOrder(Order.asc(\"arrivalTime\"));//de chuan thi phai ket hop dc ca du lieu arrivalTime va departureTime cong lai moi het dc cac truong hop\n items = criteria.list();\n session.getTransaction().commit();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n beanHibernateUtil.closeSession(session);\n }\n\n return items;\n }", "public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchRangeOfLastModifyTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {\n return fetchRange(UserEmail.USER_EMAIL.LAST_MODIFY_TIME, lowerInclusive, upperInclusive);\n }", "private Rooms getRooms(boolean sociallyDistanced, LocalDateTime time, LocalDateTime endTime, Modules module) {\n // Get viable rooms\n Session s = HibernateUtil.getSessionFactory().openSession();\n CriteriaBuilder cb = s.getCriteriaBuilder();\n CriteriaQuery<Rooms> cq = cb.createQuery(Rooms.class);\n Root<Rooms> root = cq.from(Rooms.class);\n ParameterExpression<Integer> spacesNeeded = cb.parameter(Integer.class);\n if (sociallyDistanced) {\n cq.select(root).where(cb.greaterThanOrEqualTo(root.get(\"socialDistancingCapacity\"), spacesNeeded));\n } else {\n cq.select(root).where(cb.greaterThanOrEqualTo(root.get(\"maxCapacity\"), spacesNeeded));\n }\n\n root.join(\"bookings\", JoinType.LEFT);\n root.fetch(\"bookings\", JoinType.LEFT);\n\n Query<Rooms> query = s.createQuery(cq);\n query.setParameter(spacesNeeded, module.getStudents().size());\n\n List<Rooms> results = query.getResultList();\n\n s.close();\n\n\n Map<String, Rooms> possibleRooms = new HashMap<>();\n\n for (Rooms room : results) {\n if (room.isAvailable(time, endTime) && !possibleRooms.containsKey(room.getRoomID())) {\n System.out.println(\" \" + room.getRoomID() + \" of type \" + room.getType() + \" is available and meets your capacity needs.\");\n possibleRooms.put(room.getRoomID(), room);\n }\n }\n\n System.out.println(\"Please enter the room ID you would like to book.\");\n String roomKey = sc.next();\n while (!possibleRooms.containsKey(roomKey)) {\n System.out.println(\"That is not a correct ID for a room. Look at the list above.)\");\n roomKey = sc.next();\n }\n sc.nextLine();\n\n return possibleRooms.get(roomKey);\n }", "List<OpeningRequirement> selectAll();", "ImmutableList<SchemaOrgType> getTypicalAgeRangeList();", "public Region getSiteRegionBounds() {\n int numSources = eqkRupForecast.getNumSources();\n\n double minLat = Double.POSITIVE_INFINITY;\n double maxLat = Double.NEGATIVE_INFINITY;\n double minLon = Double.POSITIVE_INFINITY;\n double maxLon = Double.NEGATIVE_INFINITY;\n\n\n //Going over each and every source in the forecast\n for (int sourceIndex = 0; sourceIndex < numSources; ++sourceIndex) {\n // get the ith source\n ProbEqkSource source = eqkRupForecast.getSource(sourceIndex);\n int numRuptures = source.getNumRuptures();\n\n //going over all the ruptures in the source\n for (int rupIndex = 0; rupIndex < numRuptures; ++rupIndex) {\n ProbEqkRupture rupture = source.getRupture(rupIndex);\n\n RuptureSurface rupSurface = rupture.getRuptureSurface();\n\n //getting the iterator for all points on the rupture\n ListIterator it = rupSurface.getLocationsIterator();\n boolean rupInside = false;\n //looping over all the rupture pt locations and if any of those lies\n //within the provided distance range then include the rupture in the list.\n while (it.hasNext()) {\n Location ptLoc = (Location) it.next();\n if (region.contains(ptLoc)) {\n rupInside = true;\n break;\n }\n }\n it = rupSurface.getLocationsIterator();\n while (it.hasNext() && rupInside) {\n Location ptLoc = (Location) it.next();\n double lat = ptLoc.getLatitude();\n double lon = ptLoc.getLongitude();\n double depth = ptLoc.getDepth();\n if (lat < minLat)\n minLat = lat;\n if (lat > maxLat)\n maxLat = lat;\n if (lon < minLon)\n minLon = lon;\n if (lon > maxLon)\n maxLon = lon;\n if (depth > maxDepth)\n maxDepth = depth;\n }\n }\n }\n return new Region(\n \t\tnew Location(minLat, minLon),\n \t\tnew Location(maxLat, maxLon));\n }", "@Transactional\r\n\tpublic List<Room> getReservable(Integer posti, LocalDate from, LocalDate to){\r\n\t\tList<Room> l= this.getPosti(posti);\r\n\t\tl.removeAll(this.getReservedFromTo(from, to));\r\n\t\treturn l;\r\n\t}", "private StoreModel() {\n // we don't want to consider seconds and milliseconds\n _calendarMin.set(Calendar.SECOND, 0);\n _calendarMin.set(Calendar.MILLISECOND, 0);\n _calendarMax.set(Calendar.SECOND, 0);\n _calendarMax.set(Calendar.MILLISECOND, 0);\n _calendarStartingTime.set(Calendar.SECOND, 0);\n _calendarStartingTime.set(Calendar.MILLISECOND, 0);\n _calendarEndingTime.set(Calendar.SECOND, 0);\n _calendarEndingTime.set(Calendar.MILLISECOND, 0);\n }", "public Date getValidUntil();", "public interface TakeTimeService {\n\n List<TakeTime> findAll();\n}", "@Test\n public void getSingleTimeListCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n timeListDAO.createTimeList(new TimeList(\"dummy\", 1990, 0, 60, 0, 0));\n\n assertNull(timeListResource.getSingleTimeList(1990, 0, \"notdummy\"));\n\n //clean up\n timeListDAO.removeTimeList(1990, 0, \"dummy\");\n userDAO.removeUser(\"dummy\");\n }", "public List<TreateWait> queryAll() {\n\t\tQuery query = Query.query(Criteria.where(\"id\").exists(true));\n\t\treturn treateWaitDao.queryList(query);\n\t\t\n\t}", "@Override\n public List<LocalTime> getAvailableTimesForServiceAndDate(final com.wellybean.gersgarage.model.Service service, LocalDate date) {\n\n LocalTime garageOpening = LocalTime.of(9,0);\n LocalTime garageClosing = LocalTime.of(17, 0);\n\n // List of all slots set as available\n List<LocalTime> listAvailableTimes = new ArrayList<>();\n for(LocalTime slot = garageOpening; slot.isBefore(garageClosing); slot = slot.plusHours(1)) {\n listAvailableTimes.add(slot);\n }\n\n Optional<List<Booking>> optionalBookingList = bookingService.getAllBookingsForDate(date);\n\n // This removes slots that are occupied by bookings on the same day\n if(optionalBookingList.isPresent()) {\n List<Booking> bookingsList = optionalBookingList.get();\n for(Booking booking : bookingsList) {\n int bookingDurationInHours = booking.getService().getDurationInMinutes() / 60;\n // Loops through all slots used by the booking and removes them from list of available slots\n for(LocalTime bookingTime = booking.getTime();\n bookingTime.isBefore(booking.getTime().plusHours(bookingDurationInHours));\n bookingTime = bookingTime.plusHours(1)) {\n\n listAvailableTimes.remove(bookingTime);\n }\n }\n }\n\n int serviceDurationInHours = service.getDurationInMinutes() / 60;\n\n // To avoid concurrent modification of list\n List<LocalTime> listAvailableTimesCopy = new ArrayList<>(listAvailableTimes);\n\n // This removes slots that are available but that are not enough to finish the service. Example: 09:00 is\n // available but 10:00 is not. For a service that takes two hours, the 09:00 slot should be removed.\n for(LocalTime slot : listAvailableTimesCopy) {\n boolean isSlotAvailable = true;\n // Loops through the next slots within the duration of the service\n for(LocalTime nextSlot = slot.plusHours(1); nextSlot.isBefore(slot.plusHours(serviceDurationInHours)); nextSlot = nextSlot.plusHours(1)) {\n if(!listAvailableTimes.contains(nextSlot)) {\n isSlotAvailable = false;\n break;\n }\n }\n if(!isSlotAvailable) {\n listAvailableTimes.remove(slot);\n }\n }\n\n return listAvailableTimes;\n }", "List<Book> getBooksFromPeriod(LocalDate from,LocalDate to);", "private void checkDateBounds(PortfolioRecord portRecord) {\n List<DataPoint> history = portRecord.getHistory();\n\n if (!userSetDates) {\n fromDateBound = null;\n toDateBound = null;\n }\n\n if (history.size() > 0) {\n LocalDate minDate = history.get(0).getDate();\n LocalDate maxDate = history.get(history.size() - 1).getDate();\n\n if (fromDateBound == null && toDateBound == null) {\n fromDateBound = minDate;\n toDateBound = maxDate;\n } else if (toDateBound.compareTo(maxDate) < 0) {\n toDateBound = maxDate;\n }\n } else {\n fromDateBound = null;\n toDateBound = null;\n userSetDates = false;\n }\n }", "public List<TimeSpan> getRequestedTimes()\r\n {\r\n return myRequestedTimes;\r\n }", "public ScheduleExample() {\n\t\toredCriteria = new ArrayList<Criteria>();\n\t}", "@Test\n public void findReservationBetweenTest() {\n Collection<Reservation> expected = new HashSet<>();\n expected.add(reservation1);\n expected.add(reservation2);\n expected.add(reservation3);\n expected.add(reservation4);\n Mockito.when(reservationDao.findReservationBetween(Mockito.any(LocalDate.class), Mockito.any(LocalDate.class)))\n .thenReturn(expected);\n Collection<Reservation> result = reservationService.findReservationsBetween(LocalDate.now().minusDays(4),\n LocalDate.now().plusDays(15));\n Assert.assertEquals(result.size(), 4);\n Assert.assertTrue(result.contains(reservation1));\n Assert.assertTrue(result.contains(reservation2));\n Assert.assertTrue(result.contains(reservation3));\n Assert.assertTrue(result.contains(reservation4));\n }", "List<InsureUnitTrend> queryInsureDate();", "private MySchedule getRandomInitialSchedule() {\r\n\t\tArrayList<MyCourse> courses = new ArrayList<MyCourse>();\r\n\t\tfor (MyClass aClass : this.allClasses)\r\n\t\t\tcourses.add(new MyCourse(aClass,\r\n\t\t\t\tthis.getRandomRoom(),\r\n\t\t\t\tthis.getRandomInstructor(),\r\n\t\t\t\tthis.getRandomTimeSlot()));\r\n\t\tMySchedule result = new MySchedule(courses);\r\n\t\treturn result.getEnergy() > 0 ? result : this.getRandomInitialSchedule();\r\n\t}", "protected abstract List<TemporalField> invalidFields();", "boolean hasAgeRangeView();", "@Test\n public void getListSupplierByNotEndTime() {\n List<SupplierAnalysis> listSupplier = SupplierAnalysisDAO.supplierByTime(\"2020-10-10\", \"\", 1);\n\n Assert.assertTrue(listSupplier.size() > 0);\n }", "public Date getValidFrom();" ]
[ "0.54845744", "0.52654254", "0.52391416", "0.51707417", "0.5161602", "0.5110447", "0.5104545", "0.50936824", "0.50868434", "0.5015376", "0.5009512", "0.50079507", "0.4970815", "0.49677736", "0.4966971", "0.49403384", "0.4924917", "0.49146456", "0.49072567", "0.4898024", "0.48816738", "0.48789403", "0.48730764", "0.48680416", "0.48608536", "0.48528948", "0.4848494", "0.4831859", "0.48268315", "0.4823799", "0.4823784", "0.4815926", "0.47979265", "0.47972503", "0.47921646", "0.47855467", "0.47793564", "0.47792342", "0.47781613", "0.47701374", "0.47469485", "0.47378346", "0.47209412", "0.47114798", "0.46956053", "0.46952316", "0.46943933", "0.46832046", "0.46697024", "0.4666908", "0.46532696", "0.46513072", "0.4649022", "0.4643447", "0.46375072", "0.46352005", "0.4634741", "0.46343327", "0.46293333", "0.4629076", "0.46238095", "0.4618248", "0.46051875", "0.46009213", "0.4599155", "0.45991454", "0.4590481", "0.45826623", "0.45715794", "0.45714566", "0.4563156", "0.45578504", "0.45518088", "0.45492893", "0.45469522", "0.45463538", "0.45438626", "0.454303", "0.45290557", "0.4528542", "0.45256615", "0.45233196", "0.4522724", "0.45195514", "0.45194095", "0.45190305", "0.451641", "0.45119223", "0.45081142", "0.44931257", "0.4491595", "0.44858247", "0.44816986", "0.44808903", "0.44714552", "0.44674236", "0.44667777", "0.44659582", "0.44645134", "0.446375", "0.44637147" ]
0.0
-1
TO DO: The sequential version of Task peeks at accounts whenever it needs to get a value, and opens, updates, and closes an account whenever it needs to set a value. This won't work in the parallel version. Instead, you'll need to cache values you've read and written, and then, after figuring out everything you want to do, (1) open all accounts you need, for reading, writing, or both, (2) verify all previously peekedat values, (3) perform all updates, and (4) close all opened accounts.
public Task(Account[] allAccounts, String trans) { accounts = allAccounts; transaction = trans; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testAsyncMapPutGet() throws Throwable {\n TestCluster<AsyncMap<String, String>> cluster = TestCluster.<AsyncMap<String, String>>builder()\n .withActiveMembers(3)\n .withPassiveMembers(2)\n .withUriFactory(id -> String.format(\"local://test%d\", id))\n .withClusterFactory(members -> new ClusterConfig().withProtocol(new LocalProtocol()).withMembers(members))\n .withResourceFactory(config -> AsyncMap.create(\"test\", config, new AsyncMapConfig().withLog(new BufferedLog())))\n .build();\n expectResume();\n cluster.open().thenRun(this::resume);\n await(5000);\n \n AsyncMap<String, String> map = cluster.activeResources().iterator().next();\n expectResume();\n map.put(\"foo\", \"Hello world!\").thenRun(() -> {\n map.get(\"foo\").thenAccept(result -> {\n threadAssertEquals(result, \"Hello world!\");\n resume();\n });\n });\n await(5000);\n }", "boolean updateActiveTask(Task task);", "public void get(final Task task) {\n }", "private static void executeTransaction(IgniteCache<Long, Person> cache) {\n try (Transaction tx = Ignition.ignite().transactions().txStart()) {\n Person val = cache.get(id);\n\n System.out.println(\"Read value: \" + val);\n\n val = cache.getAndPut(id, new Person(id, \"Isaac\", \"Newton\"));\n\n System.out.println(\"Overwrote old value: \" + val);\n\n val = cache.get(id);\n\n System.out.println(\"Read value: \" + val);\n\n tx.commit();\n }\n\n System.out.println(\"Read value after commit: \" + cache.get(id));\n\n // Clear entry from memory, but keep it in store.\n cache.clear(id);\n\n // Operations on this cache will not affect store.\n IgniteCache<Long, Person> cacheSkipStore = cache.withSkipStore();\n\n System.out.println(\"Read value skipping store (expecting null): \" + cacheSkipStore.get(id));\n\n System.out.println(\"Read value with store lookup (expecting NOT null): \" + cache.get(id));\n\n // Expecting not null, since entry should be in memory since last call.\n System.out.println(\"Read value skipping store (expecting NOT null): \" + cacheSkipStore.get(id));\n }", "@Override\n void invokeOperation() {\n\n AcquiredAccount from, to;\n if (fromIndex < toIndex) {\n from = acquire(fromIndex, this);\n to = acquire(toIndex, this);\n } else {\n to = acquire(toIndex, this);\n from = acquire(fromIndex, this);\n }\n\n if (from != null && to != null) {\n if (amount > from.amount)\n errorMessage = \"Underflow\";\n else if (to.amount + amount > MAX_AMOUNT)\n errorMessage = \"Overflow\";\n else {\n from.newAmount = from.amount - amount;\n to.newAmount = to.amount + amount;\n }\n this.completed = true;\n }\n\n if (fromIndex < toIndex) {\n release(toIndex, this);\n release(fromIndex, this);\n } else {\n release(fromIndex, this);\n release(toIndex, this);\n }\n }", "public void run() {\n \n \t//overall loop which runs until all the transactions have been processed\n while(true) {\n \t\n \t//instantiate the local cachelist\n \tcacheList = new Cache[constants.numLetters];\n \tfor (int k = A; k <= Z; k++) {\n cacheList[k] = new Cache(accounts[k]);\n \n \t}\n \t\n \t//parsing the input file \n \tString[] commands = transaction.split(\";\");\n \tfor (int i = 0; i < commands.length; i++) {\n\t \t \n\t \tString[] words = commands[i].trim().split(\"\\\\s\");\n\t if (words.length < 3) throw new InvalidTransactionError();\n\t \n\t \n\t //sets the read lock for the cache of the account.\n\t Cache lhs = parseAccount(words[0]);\n\t \n\t if (!words[1].equals(\"=\"))\n\t throw new InvalidTransactionError();\n\t \n\t int rhs = parseAccountOrNum(words[2]);\n\t for (int j = 3; j < words.length; j+=2) {\n\t if (words[j].equals(\"+\"))\n\t rhs += parseAccountOrNum(words[j+1]);\n\t else if (words[j].equals(\"-\"))\n\t rhs -= parseAccountOrNum(words[j+1]);\n\t else\n\t throw new InvalidTransactionError();\n\t }\n\t //sets the write lock for the account in the cache\n\t lhs.writeCache(rhs);\n\t \n\t }\n \t\n\t //for loop \n \t/*int i = 0;\n\t \n\t try {\n\t \tfor (i = A; i <= Z; i++) {\n\t \t\tcacheList[i].openCache();\n\t \t}\n\t\t\t} \n\t catch (TransactionAbortException e) {\n\t \tfor (int j = A; j < i; j++) {\n\t \t\tcacheList[j].closeCache();\n\t\t\t\t}\n\t \tSystem.out.println(\"open abort: \" + transaction);\n\t\t\t\tcontinue;\n\t\t\t}\n\t \n\t //try and verify do the same as the open locks \n\t try {\n\t \tfor (i = A; i <= Z; i++) {\n\t \t\tcacheList[i].verify();\n\t \t}\n\t\t\t}\n\t \n\t catch (TransactionAbortException e) {\n\t \tfor (int j = A; j < i; j++) {\n\t \t\tcacheList[j].closeCache();\n\t\t\t\t}\n\t \tSystem.out.println(\"verify abort: \" + transaction);\n\t\t\t\tcontinue;\n\t\t\t}\n\t \n\t //loops to commit\n\t for (int k = A; k <= Z; k ++) {\n \t\tcacheList[k].commit();\n \t}\n\t \n\t System.out.println(\"commit: \" + transaction);\n\t \n\t //loops to close\n\t for (int k = A; k <= Z; k ++) {\n\t \tcacheList[k].closeCache();\n \t}\n\t \n\t break;*/\n\t \n \t//Code needed for concurrency programming, Loops over the entire cache list 4 different time\n \t//and in order first attempts to open each caches locks, and then verifies all caches, then commits\n \t//the caches, and finally closes all the locks for the caches. If it any point there is an exception\n \t//is thrown then checks will end and all the accounts will be closed and the loop will restart from the top\n \t//restart the transaction\n \ttry {\n \t\tfor (int i = A; i <= Z; i++) {\n\t \t\tcacheList[i].openCache();\n\t \t}\n \t\t\n \t\tfor (int i = A; i <= Z; i++) {\n\t \t\tcacheList[i].verify();\n\t \t}\n \t\t\n \t\tfor (int k = A; k <= Z; k ++) {\n \t\tcacheList[k].commit();\n \t}\n \t\t\n \t\tSystem.out.println(\"commit: \" + transaction);\n \t\t\n \t\tfor (int k = A; k <= Z; k ++) {\n\t\t \tcacheList[k].closeCache();\n\t \t}\n \t\t\n \t\tbreak;\n \t\t\n\t\t\t} catch (TransactionAbortException e) {\n\t\t\t\tfor (int k = A; k <= Z; k ++) {\n\t\t \tcacheList[k].closeCache();\n\t \t}\n\t\t\t\tcontinue;\n\t\t\t}\n \t\n }//while loop\n \n }", "public void testAsyncMapGetFromPassiveMember() throws Throwable {\n TestCluster<AsyncMap<String, String>> cluster = TestCluster.<AsyncMap<String, String>>builder()\n .withActiveMembers(3)\n .withPassiveMembers(2)\n .withUriFactory(id -> String.format(\"local://test%d\", id))\n .withClusterFactory(members -> new ClusterConfig().withProtocol(new LocalProtocol()).withMembers(members))\n .withResourceFactory(config -> AsyncMap.create(\"test\", config, new AsyncMapConfig().withConsistency(Consistency.WEAK).withLog(new BufferedLog())))\n .build();\n \n expectResume();\n cluster.open().thenRun(this::resume);\n await(5000);\n \n AsyncMap<String, String> activeMap = cluster.activeResources().iterator().next();\n AsyncMap<String, String> passiveMap = cluster.passiveResources().iterator().next();\n expectResume();\n activeMap.put(\"foo\", \"Hello world!\").thenRun(() -> {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n }\n passiveMap.get(\"foo\").thenAccept(r1 -> {\n threadAssertEquals(r1, \"Hello world!\");\n resume();\n });\n });\n await(5000);\n }", "public void updateTask() {}", "@Test\n @Ignore(\"This is only applicable to Neo4j 2.0.0-M03 and below where transactions \" +\n \"were not mandatory for reading\")\n public void defaultReadingIsReadCommitted() throws Exception {\n assertNameAndAgeViaLookup(john.getId(), \"John\", 34, \"John\");\n\n // Do the update in a separate Thread and ensure its actually updated\n doUpdateInSeparateThread(new PersonUpdater(\"John\", 44));\n\n // Now, back in our thread, ensure we read the commited value\n assertNameAndAgeViaLookup(john.getId(), \"John\", 44, \"John\");\n }", "@Test\n\tpublic void updateTask() {\n\t\tfinal Date dueDate = new Date();\n\t\tfinal Template template = new Template(\"Template 1\");\n\t\ttemplate.addStep(new TemplateStep(\"Step 1\", 1.0));\n\t\tfinal Assignment asgn = new Assignment(\"Assignment 1\", dueDate, template);\n\t\tfinal Task task = new Task(\"Task 1\", 1, 1, asgn.getID());\n\t\tasgn.addTask(task);\n\t\t\n\t\tfinal String asgnId = asgn.getID();\n\t\t\n\t\ttry {\n\t\t\tStorageService.addTemplate(template);\n\t\t\tStorageService.addAssignment(asgn);\n\t\t} catch (final StorageServiceException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t\n\t\ttask.setPercentComplete(0.174);\n\t\tStorageService.updateTask(task);\n\t\t\n\t\tfinal Assignment afterAsgn = StorageService.getAssignment(asgnId);\n\t\tassertEquals(asgn.fullString(), afterAsgn.fullString());\n\t}", "abstract ClusterTask getSessionUpdateTask();", "@Test\n @Transactional\n public void test_pessimistic_lock__separate_transactions__forUpdate_doesnot_update() throws InterruptedException {\n AtomicLong waited = new AtomicLong(-1);\n AtomicBoolean expectedValueFound = new AtomicBoolean(false);\n URI atomURI = newAtomURI();\n executeInSeparateThreadAndWaitForResult(() -> {\n Atom atom = new Atom();\n atom.setAtomURI(atomURI);\n atom.setState(AtomState.ACTIVE);\n AtomMessageContainer container = new AtomMessageContainer(atom, atom.getAtomURI());\n atom = atomRepository.save(atom);\n });\n Thread parallelThread1 = new Thread(() -> helper.doInSeparateTransaction(() -> {\n Optional<Atom> b = atomRepository.findOneByAtomURIForUpdate(atomURI);\n logger.debug(\"read in other thread: \" + b);\n }));\n parallelThread1.start();\n Thread.sleep(100);\n Thread parallelThread2 = new Thread(() -> helper.doInSeparateTransaction(() -> {\n Optional<Atom> a = atomRepository.findOneByAtomURIForUpdate(atomURI);\n logger.debug(\"read in yet another thread: \" + a);\n logger.debug(\"blocking...\");\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n a.get().setCreationDate(new Date(1));\n atomRepository.save(a.get());\n }));\n parallelThread2.start();\n Thread.sleep(100);\n Thread parallelThread3 = new Thread(() -> helper.doInSeparateTransaction(() -> {\n Optional<Atom> b = atomRepository.findOneByAtomURI(atomURI);\n logger.debug(\"acquiring exclusive lock...\");\n long now = System.currentTimeMillis();\n b = atomRepository.findOneByAtomURIForUpdate(atomURI);\n logger.debug(\"read in the third thread: \" + b);\n logger.debug(\"waited: \" + (System.currentTimeMillis() - now));\n waited.set(System.currentTimeMillis() - now);\n expectedValueFound.set(b.get().getCreationDate().getTime() != 1);\n }));\n parallelThread3.start();\n logger.debug(\"waiting for parallel threads to finish\");\n parallelThread1.join();\n parallelThread2.join();\n parallelThread3.join();\n Assert.assertTrue(\"thread should have been blocked at least 500ms\", waited.get() > 500);\n Assert.assertTrue(\"thread3 did not get update by thread2\", expectedValueFound.get());\n }", "public interface TaskCache {\n /**\n * Gets an {@link Object} which will emit a {@link TaskEntity}.\n *\n * @param userId The id used to get data.\n */\n List<TaskEntity> get(int userId);\n\n /**\n * Puts and element into the cache.\n *\n * @param userEntity The task data to save.\n */\n void put(TaskEntity userEntity);\n\n /**\n * Checks if an element (User) exists in the cache.\n *\n * @param userId The id used to get data.\n * @return true if the element is cached, otherwise false.\n */\n boolean isCached(int userId);\n\n /**\n * Checks if the cache is expired.\n * @param userId The id used to get data.\n * @return true, the cache is expired, otherwise false.\n */\n boolean isExpired(int userId);\n\n /**\n * Evict all elements of the cache.\n *\n * @param userId The id used to get data.\n */\n void evictAll(int userId);\n\n /**\n * Change task status\n *\n * @param idTask task to update.\n */\n void refresh(int idTask);\n}", "private void rereadNameSpaceEntry(final PinTask task)\n throws CacheException\n {\n refreshTimeout(task, getExpirationTimeForNameSpaceLookup());\n \n /* We allow the set of provided attributes to be incomplete\n * and thus add attributes required by pool manager.\n */\n Set<FileAttribute> attributes = EnumSet.noneOf(FileAttribute.class);\n attributes.addAll(task.getFileAttributes().getDefinedAttributes());\n attributes.addAll(PoolMgrSelectReadPoolMsg.getRequiredAttributes());\n \n _pnfsStub.send(new PnfsGetFileAttributes(task.getPnfsId(), attributes),\n PnfsGetFileAttributes.class,\n new AbstractMessageCallback<PnfsGetFileAttributes>()\n {\n @Override\n public void success(PnfsGetFileAttributes msg) {\n try {\n task.setFileAttributes(msg.getFileAttributes());\n \n /* Ensure that task is still valid\n * and stays valid for the duration\n * of the pool selection.\n */\n refreshTimeout(task, getExpirationTimeForPoolSelection());\n selectReadPool(task);\n } catch (CacheException e) {\n fail(task, e.getRc(), e.getMessage());\n } catch (RuntimeException e) {\n fail(task, CacheException.UNEXPECTED_SYSTEM_EXCEPTION, e.toString());\n }\n }\n \n @Override\n public void failure(int rc, Object error) {\n fail(task, rc, error.toString());\n }\n \n @Override\n public void noroute(CellPath path) {\n /* PnfsManager is unreachable. We\n * expect this to be a transient\n * problem and retry in a moment.\n */\n retry(task, RETRY_DELAY);\n }\n \n @Override\n public void timeout(CellPath path) {\n /* PnfsManager did not respond. We\n * expect this to be a transient\n * problem and retry in a moment.\n */\n retry(task, SMALL_DELAY);\n }\n });\n }", "@Test\n public void testSet() throws InterruptedException {\n\n final String k = \"mLock\";\n final String v = \"mValue\";\n\n// long l = 10;\n// Boolean isGetLock = redisTemplate.opsForValue().setIfAbsent(k, v, l, TimeUnit.SECONDS);\n// if (isGetLock) {\n// System.out.println(Thread.currentThread().getName() + \"获得锁成功\");\n// }\n\n\n// redisTemplate.opsForValue().set(\"k6\", \"v6\");\n// Duration duration = Duration.ofSeconds(10);\n// redisTemplate.expire(k, duration);\n// TimeUnit.SECONDS.sleep(10);\n// for (int i = 0; i < 100; i++) {\n// new Thread(() -> {\n// Boolean isGetLock = redisTemplate.opsForValue().setIfAbsent(k, v, 100, TimeUnit.SECONDS);\n//\n// if (isGetLock) {\n// System.out.println(Thread.currentThread().getName() + \"获得锁成功\");\n// } else {\n// System.out.println(Thread.currentThread().getName() + \"获得锁失败\");\n// }\n// }, \"thread-\" + i).start();\n// }\n\n for (int i = 0; i < 100; i++) {\n String key = \"kk\" +i;\n String value = \"vv\" + i;\n\n redisTemplate.opsForValue().set(key, value);\n// new Thread(new Task(key, value, redisTemplate)).start();\n// new Thread(() -> {\n// System.out.println(\"set \" + key + \":\" +value);\n// redisTemplate.opsForValue().set(key, value);\n//\n// if(key.equals(\"kk99\")) {\n// System.out.println(\"haha\");\n// }\n// }).start();\n }\n }", "protected void fetchAndLockExternalTasks(final String key) {\n \n final String topic = getTopicFromInternalKey(key);\n final String processDefinitionKey = getProcessDefinitionKeyFromInternalKey(key);\n final ExternalTaskSyncProcessingRegistrationImpl<?> registration = registrations.get(key);\n \n final List<LockedExternalTask> externalTasks = getExternalTaskService()\n .fetchAndLock(Integer.MAX_VALUE, getWorkerId())\n .topic(topic, registration.getLockTimeout())\n .processDefinitionKey(processDefinitionKey)\n .variables(registration.getVariablesToFetch())\n .execute();\n \n if ((externalTasks == null) || externalTasks.isEmpty()) {\n return;\n }\n \n /*\n * Processing each task needs to be done in a separate transaction because\n * completing the external task might be faster than committing the transaction\n * of \"fetchAndLock\". Additionally at the moment of task locking this status\n * is not yet visible to other threads and we need wait for the current\n * transaction to complete. \n */\n doAfterTransaction(() ->\n externalTasks.forEach(task ->\n processAsynchronously(() -> \n runRegisteredProcessor(\n task.getProcessDefinitionKey(),\n task.getTopicName(),\n task.getId(),\n task.getBusinessKey(),\n task.getProcessInstanceId(),\n task.getActivityId(),\n task.getExecutionId(),\n task.getLockExpirationTime(),\n task.getVariables(),\n task.getRetries()))));\n\n }", "boolean updateTask(Task updatedTask);", "private AcquiredAccount acquire(int index, Op op) {\n /*\n * This method must loop trying to replace accounts[index] with an instance of\n * new AcquiredAccount(<old-amount>, op) until that successfully happens and return the\n * instance of AcquiredAccount in this case.\n *\n * If current account is already \"Acquired\" by another operation, then this method must help that\n * other operation by invoking \"invokeOperation\" and continue trying.\n *\n * Because accounts[index] does not have an ABA problem, there is no need to implement full-blown\n * DCSS operation with descriptors for DCSS operation as explained in Harris CASN work. A simple\n * lock-free compareAndSet loop suffices here if op.completed is checked after the accounts[index]\n * is read.\n */\n\n while (true) {\n Account account = accounts.get(index);\n if (op.completed) {\n return null;\n }\n\n if (account instanceof AcquiredAccount) {\n AcquiredAccount acquiredAccount = (AcquiredAccount) account;\n if ((acquiredAccount).op == op) {\n return acquiredAccount;\n }\n acquiredAccount.invokeOperation();\n } else {\n AcquiredAccount acquiredAccount = new AcquiredAccount(account.amount, op);\n if (accounts.compareAndSet(index, account, acquiredAccount)) {\n return acquiredAccount;\n }\n }\n }\n }", "@Override\n public void run() {\n aia.addAndGet(1,15);\n aia.decrementAndGet(1);\n\n //weakly compare the first args to current value and sets\n aia.compareAndSet(1,14,20);\n System.out.println(aia.get(1));\n }", "public void testAsyncMapPutMany() throws Throwable {\n TestCluster<AsyncMap<String, String>> cluster = TestCluster.<AsyncMap<String, String>>builder()\n .withActiveMembers(3)\n .withPassiveMembers(2)\n .withUriFactory(id -> String.format(\"local://test%d\", id))\n .withClusterFactory(members -> new ClusterConfig().withProtocol(new LocalProtocol()).withMembers(members))\n .withResourceFactory(config -> AsyncMap.create(\"test\", config, new AsyncMapConfig().withConsistency(Consistency.WEAK).withLog(new BufferedLog().withSegmentInterval(1024).withFlushOnWrite(true))))\n .build();\n\n expectResume();\n cluster.open().thenRun(this::resume);\n await(5000);\n \n AsyncMap<String, String> map = cluster.activeResources().iterator().next();\n expectResume();\n putMany(map).thenRun(this::resume);\n await(5000);\n }", "@Test(timeOut = 30_000)\n public void testValueLoaderWithLocking() throws Exception {\n //given\n final SpringRemoteCacheManager springRemoteCacheManager = new SpringRemoteCacheManager(remoteCacheManager);\n final SpringCache cache = springRemoteCacheManager.getCache(TEST_CACHE_NAME);\n\n CountDownLatch waitUntilThread1LocksValueGetter = new CountDownLatch(1);\n\n //when\n Future<String> thread1 = fork(() -> cache.get(\"test\", () -> {\n waitUntilThread1LocksValueGetter.countDown();\n// /TimeUnit.MILLISECONDS.sleep(10);\n return \"thread1\";\n }));\n\n Future<String> thread2 = fork(() -> {\n waitUntilThread1LocksValueGetter.await();\n return cache.get(\"test\", () -> \"thread2\");\n });\n\n String valueObtainedByThread1 = thread1.get();\n String valueObtainedByThread2 = thread2.get();\n\n Cache.ValueWrapper valueAfterGetterIsDone = cache.get(\"test\");\n\n //then\n assertNotNull(valueAfterGetterIsDone);\n assertEquals(\"thread1\", valueAfterGetterIsDone.get());\n assertEquals(\"thread1\", valueObtainedByThread1);\n assertEquals(\"thread1\", valueObtainedByThread2);\n }", "public interface ReadOnlyTask {\n\n Content getContent();\n TaskDate getDate();\n TaskDate getEndDate();\n TaskTime getTime();\n TaskTime getEndTime();\n //@@author A0147989B\n Integer getDuration();\n boolean setNext();\n boolean getDone();\n boolean setDone();\n boolean setUndone();\n boolean getImportant();\n boolean setImportant();\n boolean setUnimportant();\n boolean setDate(String newDate) throws IllegalValueException, ParseException;\n boolean setEndDate(String newEndDate) throws IllegalValueException, ParseException;\n boolean setContent(String newContent) throws IllegalValueException;\n boolean setTime(String newTime) throws IllegalValueException, ParseException;\n boolean setEndTime(String newEndTime) throws IllegalValueException, ParseException;\n //@@author\n boolean addTags(ArrayList<String> tagsToAdd) throws DuplicateTagException, IllegalValueException;\n boolean deleteTags(ArrayList<String> tagsToDel) throws DuplicateTagException, IllegalValueException;\n void setTags(UniqueTagList uniqueTagList);\n /**\n * The returned TagList is a deep copy of the internal TagList,\n * changes on the returned list will not affect the task's internal tags.\n */\n UniqueTagList getTags();\n\n /**\n * Returns true if both have the same state. (interfaces cannot override .equals)\n */\n default boolean isSameStateAs(ReadOnlyTask other) {\n return other == this // short circuit if same object\n || (other != null // this is first to avoid NPE below\n && other.getContent().equals(this.getContent())); // state checks here onwards\n //&& other.getDate().equals(this.getDate())\n //&& other.getTime().equals(this.getTime()));\n }\n\n /**\n * Formats the task as text, showing all task details.\n */ \n default String getAsText0() {\n final StringBuilder builder = new StringBuilder();\n if (this.getEndDate() != null)\n builder.append(getContent())\n .append(\" \")\n .append(getDate().dateString)\n .append(\" \")\n .append(getTime().timeString)\n .append(\" - \")\n .append(getEndDate().dateString)\n .append(\" \")\n .append(getEndTime().timeString)\n .append(\" \");\n else \n builder.append(getContent())\n .append(\" \")\n .append(getDate())\n .append(\" \")\n .append(getTime())\n .append(\" \");\n \n if (getDuration() != null) builder .append(\"repeat per \"+getDuration()+\" days \");\n builder.append(\" Tags: \");\n getTags().forEach(builder::append);\n return builder.toString();\n }\n \n /**\n * Returns a string representation of this task's tags\n */\n default String tagsString() {\n final StringBuffer buffer = new StringBuffer();\n final String separator = \", \";\n getTags().forEach(tag -> buffer.append(tag).append(separator));\n if (buffer.length() == 0) {\n return \"\";\n } else {\n return buffer.substring(0, buffer.length() - separator.length());\n }\n }\n \n\t\n\t\n\t\n}", "@Test\n\tpublic static void testNonThreadLocal() {\n\t\tExecutorService service = Executors.newCachedThreadPool();\n\n\t\tRunnable task = new Runnable() {\n\t\t\tNonThreadLocal<AtomicInteger> tlocal = new NonThreadLocal<AtomicInteger>() {\n\t\t\t\t@Override\n\t\t\t\tpublic AtomicInteger initialValue() {\n\t\t\t\t\treturn new AtomicInteger(1);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" start with value: \" + tlocal.get());\n\t\t\t\ttry {\n\t\t\t\t\tTimeUnit.SECONDS.sleep(1);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tint res;\n//\t\t\t\tsynchronized (\"ABC\") {\n\t\t\t\t\tres = tlocal.get().addAndGet(1);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tTimeUnit.SECONDS.sleep(1);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\ttlocal.set(new AtomicInteger(res));\n//\t\t\t\t}\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" ends with value: \" + res);\n\t\t\t}\n\t\t};\n\t\tfor (int i = 0; i < 5; i++)\n\t\t\tservice.submit(task);\n\t\tservice.shutdown();\n\n\t}", "private static boolean writeOperation(Transaction txn, Operation oper) {\n int var_id = oper.getvarid();\n int trans_id = txn.getId();\n List<Variable> variableList = null;\n // ********NEED TO CHANGE\n\n if (txn.checkForWrite(var_id, oper.getValue())) {\n // checking value in own\n System.out.println(\"Writing new value to self locked variable\");\n return true;\n }\n\n if (!isVariableLocked(var_id)) {\n // Along side locking the variable, check if the variable is justRecovered\n // If so, set the justRecovered flag of the variable to false for the site\n // which is recovering. (Not for the DOWN or UP site)\n // TO DO .. check for all the sites where this variable resides\n // If the site status is RECOVERING, set the justRecovered flag to false\n // for that copy of the variable.\n\n // System.out.println(\"writeOperation::Variable not locked\");\n // getting all variable copies\n variableList = writelockVariable(var_id);\n\n if (!variableList.isEmpty()) {\n\n // not sure about use of this below statement\n txn.addOperationToTransaction(oper);\n\n // add to transaction variable-transaction map\n addVariableToMap(trans_id, var_id);\n\n // since we got the lock we can execute it\n // add all the variables of each site to the commit map of transaction\n for (Variable v : variableList) {\n\n txn.addOperationToCommitMap(v, oper.getValue());\n }\n\n System.out\n .println(\"T\" + trans_id + \" Writing \" + oper.getValue() + \" to variable x\" + var_id);\n\n } else {\n Tuple<Transaction, Operation> t = new Tuple<Transaction, Operation>(txn, oper);\n System.out.println(\"T\" + trans_id + \" needs to Wait\");\n\n waitingRecoverOperations.add(t);\n // releaseResources(trans_id);\n // clearWaitingOperations();\n }\n\n } else {\n // check if already waiting\n // if (!alreadyWaiting(txn, oper)) {\n\n\n // }\n\n\n // add to waiting transaction list\n // we need to add edge to the graph\n // first we check if an edge already exists that is\n // check the dependency between transactions\n // and check if there is a deadlock;\n // find the transaction which has lock on this variables\n // and add the dependency edge.\n\n\n // System.out.println(\"writeOperation::Variable is locked\");\n List<Integer> independent_trans_ids = transaction_variable_map.get(var_id);\n\n\n // read locked by self\n if (independent_trans_ids.contains(trans_id)) {\n // System.out.println(\"self contained \");\n List<Integer> list = getTransactionsWaiting(var_id);\n\n if (!list.isEmpty()) {\n // some other transaction is waiting for same variable\n // and this variable was previously locked by me too\n // so deadlock\n int secondTrans = list.get(0);\n if (transactions.get(secondTrans).getStartTime() <= transactions.get(trans_id)\n .getStartTime()) {\n\n // i M getting killed\n releaseResources(trans_id);\n System.out.println(\"Aborted :\" + trans_id);\n clearWaitingOperations();\n return false;\n\n } else {\n // i am not youngest, i can get lock now\n releaseResources(secondTrans);\n clearWaitingOperations();\n System.out.println(\"Aborted :\" + secondTrans);\n }\n\n\n\n }\n\n\n if (independent_trans_ids.size() == 1) {\n // i am the only transaction working on this variable so i can upgrade my lock\n System.out.println(\"Upgrading lock\");\n variableList = writelockVariable(var_id);\n\n if (!variableList.isEmpty()) {\n\n // not sure about use of this below statement\n txn.addOperationToTransaction(oper);\n\n // add to transaction variable-transaction map\n addVariableToMap(trans_id, var_id);\n\n // since we got the lock we can execute it\n // add all the variables of each site to the commit map of transaction\n for (Variable v : variableList) {\n\n txn.addOperationToCommitMap(v, oper.getValue());\n }\n System.out.println(\n \"T\" + trans_id + \" Writing \" + oper.getValue() + \" to variable x\" + var_id);\n\n\n\n } else {\n Tuple<Transaction, Operation> t = new Tuple<Transaction, Operation>(txn, oper);\n\n waitingRecoverOperations.add(t);\n System.out.println(\"T\" + trans_id + \" needs to Wait\");\n // releaseResources(trans_id);\n // clearWaitingOperations();\n }\n\n return true;\n }\n\n\n }\n\n System.out.println(\"T\" + trans_id + \" needs to Wait\");\n\n for (Integer independent_trans_id : independent_trans_ids) {\n if (independent_trans_id == trans_id)\n continue;\n if (checkAndAddDependency(trans_id, independent_trans_id)) {\n\n if (!alreadyWaiting(txn, oper)) {\n // System.out.println(\"writeOperation:: Not already waiting\");\n Tuple<Transaction, Operation> t = new Tuple<Transaction, Operation>(txn, oper);\n\n waitingOperations.add(t);\n\n\n\n }\n }\n }\n\n\n return false;\n }\n\n return true;\n\n }", "@Test\n public void testLockBatchParticipantsUpdate() throws Exception {\n final String rgnName = getUniqueName();\n Region rgn = getCache().createRegion(rgnName, getRegionAttributes());\n rgn.create(\"key\", null);\n\n Host host = Host.getHost(0);\n VM vm0 = host.getVM(0);\n VM vm1 = host.getVM(1);\n VM vm2 = host.getVM(2);\n SerializableRunnable initRegions =\n new SerializableRunnable(\"testLockBatchParticipantsUpdate: initial configuration\") {\n @Override\n public void run() {\n try {\n Region rgn1 = getCache().createRegion(rgnName, getRegionAttributes());\n rgn1.create(\"key\", null);\n } catch (CacheException e) {\n Assert.fail(\"While creating region\", e);\n }\n }\n };\n vm0.invoke(initRegions);\n vm1.invoke(initRegions);\n rgn.put(\"key\", \"val1\");\n\n // Connect vm2 also since it may have been shutdown when logPerTest\n // is turned on\n vm2.invoke(new SerializableRunnable(\"connect vm2 if not connected\") {\n @Override\n public void run() {\n getCache();\n }\n });\n\n // Make VM0 the Grantor\n vm0.invoke(new SerializableRunnable(\"testLockBatchParticipantsUpdate: remote grantor init\") {\n @Override\n public void run() {\n try {\n Region rgn1 = getCache().getRegion(rgnName);\n final CacheTransactionManager txMgr2 = getCache().getCacheTransactionManager();\n assertEquals(\"val1\", rgn1.getEntry(\"key\").getValue());\n txMgr2.begin();\n rgn1.put(\"key\", \"val2\");\n txMgr2.commit();\n assertNotNull(TXLockService.getDTLS());\n assertTrue(TXLockService.getDTLS().isLockGrantor());\n } catch (CacheException e) {\n fail(\"While performing first transaction\");\n }\n }\n });\n\n // fix for bug 38843 causes the DTLS to be created in every TX participant\n assertNotNull(TXLockService.getDTLS());\n assertFalse(TXLockService.getDTLS().isLockGrantor());\n assertEquals(\"val2\", rgn.getEntry(\"key\").getValue());\n\n // Build sets of System Ids and set them up on VM0 for future batch member checks\n HashSet txMembers = new HashSet(4);\n txMembers.add(getSystemId());\n txMembers.add(vm0.invoke(TXDistributedDUnitTest::getSystemId));\n vm0.invoke(() -> TXDistributedDUnitTest.setPreTXSystemIds(txMembers));\n txMembers.add(vm2.invoke(TXDistributedDUnitTest::getSystemId));\n vm0.invoke(() -> TXDistributedDUnitTest.setPostTXSystemIds(txMembers));\n\n // Don't include the tx host in the batch member set(s)\n Serializable vm1HostId = vm1.invoke(TXDistributedDUnitTest::getSystemId);\n vm0.invoke(() -> TXDistributedDUnitTest.setTXHostSystemId(vm1HostId));\n\n // Create a TX on VM1 (such that it will ask for locks on VM0) that uses the callbacks\n // to pause and give us time to start a GII process on another VM\n vm1.invoke(new SerializableRunnable(\n \"testLockBatchParticipantsUpdate: slow tx (one that detects new member)\") {\n @Override\n public void run() {\n // fix for bug 38843 causes the DTLS to be created in every TX participant\n assertNotNull(TXLockService.getDTLS());\n assertFalse(TXLockService.getDTLS().isLockGrantor());\n\n PausibleTX pauseTXRunnable = new PausibleTX();\n pauseTXRunnable.rgnName = rgnName;\n pauseTXRunnable.myCache = getCache();\n pauseTXRunnable.key = \"key\";\n pauseTXRunnable.value = \"val3\";\n new Thread(pauseTXRunnable, \"PausibleTX Thread\").start();\n synchronized (PausibleTX.class) {\n while (!pauseTXRunnable.getIsRunning()) {\n try {\n PausibleTX.class.wait();\n } catch (InterruptedException ie) {\n fail(\"Did not expect \" + ie);\n }\n }\n }\n }\n });\n\n // Verify that the lock batch exists VM0 and has the size we expect\n vm0.invoke(new SerializableRunnable(\n \"testLockBatchParticipantsUpdate: Verify lock batch exists on VM0 with expected size\") {\n @Override\n public void run() {\n getCache().getRegion(rgnName);\n TXLockServiceImpl dtls = (TXLockServiceImpl) TXLockService.getDTLS();\n assertNotNull(dtls);\n assertTrue(dtls.isLockGrantor());\n DLockService dLockSvc = dtls.getInternalDistributedLockService();\n assertNotNull(TXDistributedDUnitTest.txHostId);\n DLockBatch[] batches = dLockSvc.getGrantor()\n .getLockBatches((InternalDistributedMember) TXDistributedDUnitTest.txHostId);\n assertEquals(batches.length, 1);\n TXLockBatch txLockBatch = (TXLockBatch) batches[0];\n assertNotNull(txLockBatch);\n assertNotNull(TXDistributedDUnitTest.preTXSystemIds);\n assertTrue(\n \"Members in lock batch \" + txLockBatch.getParticipants() + \" not the same as \"\n + TXDistributedDUnitTest.preTXSystemIds,\n txLockBatch.getParticipants().equals(TXDistributedDUnitTest.preTXSystemIds));\n }\n });\n\n // Start a GII process on VM2\n vm2.invoke(new SerializableRunnable(\"testLockBatchParticipantsUpdate: start GII\") {\n @Override\n public void run() {\n try {\n AttributesFactory factory = new AttributesFactory();\n factory.setScope(Scope.DISTRIBUTED_ACK);\n factory.setEarlyAck(false);\n factory.setDataPolicy(DataPolicy.REPLICATE);\n getCache().createRegion(rgnName, factory.create());\n } catch (CacheException e) {\n Assert.fail(\"While creating region\", e);\n }\n }\n });\n\n // Notify TX on VM1 so that it can continue\n vm1.invoke(\n new SerializableRunnable(\"testLockBatchParticipantsUpdate: Notfiy VM1 TX to continue\") {\n @Override\n public void run() {\n synchronized (PausibleTX.class) {\n // Notify VM1 that it should proceed to the TX send\n PausibleTX.class.notifyAll();\n // Wait until VM1 has sent the TX\n try {\n PausibleTX.class.wait();\n } catch (InterruptedException ie) {\n fail(\"Did not expect \" + ie);\n }\n }\n }\n });\n\n // Verify that the batch on VM0 has added VM2 into the set\n vm0.invoke(new SerializableRunnable(\n \"testLockBatchParticipantsUpdate: Verify lock batch contains VM2\") {\n @Override\n public void run() {\n getCache().getRegion(rgnName);\n TXLockServiceImpl dtls = (TXLockServiceImpl) TXLockService.getDTLS();\n assertNotNull(dtls);\n assertTrue(dtls.isLockGrantor());\n DLockService dLockSvc = dtls.getInternalDistributedLockService();\n assertNotNull(TXDistributedDUnitTest.txHostId);\n DLockBatch[] batches = dLockSvc.getGrantor()\n .getLockBatches((InternalDistributedMember) TXDistributedDUnitTest.txHostId);\n assertEquals(batches.length, 1);\n TXLockBatch txLockBatch = (TXLockBatch) batches[0];\n assertNotNull(txLockBatch);\n assertNotNull(TXDistributedDUnitTest.preTXSystemIds);\n assertTrue(\n \"Members in lock batch \" + txLockBatch.getParticipants() + \" not the same as \"\n + TXDistributedDUnitTest.postTXSystemIds,\n txLockBatch.getParticipants().equals(TXDistributedDUnitTest.postTXSystemIds));\n }\n });\n // fix for bug 38843 causes the DTLS to be created in every TX participant\n assertNotNull(TXLockService.getDTLS());\n assertFalse(TXLockService.getDTLS().isLockGrantor());\n assertEquals(\"val3\", rgn.getEntry(\"key\").getValue());\n\n\n // Notify TX on VM1 that it can go ahead and complete the TX\n vm1.invoke(\n new SerializableRunnable(\"testLockBatchParticipantsUpdate: Notfiy VM1 TX to finish\") {\n @Override\n public void run() {\n synchronized (PausibleTX.class) {\n // Notify VM1 that it should finish the TX\n PausibleTX.class.notifyAll();\n }\n }\n });\n\n\n rgn.destroyRegion();\n }", "void refreshTaskInformation();", "public void updateTasks(List<Task> listOfTasks);", "private void ReadInAccounts() {\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", \"checking for file\" + AccountMan.CheckForFile());\n\t\taccounts = AccountMan.GetAccounts();\n\t\t//Comment out this line and uncomment the line above after purging the excess accounts\n\t\t//accounts = AccountMan.PurgeDuplicateAccounts(AccountMan.GetAccounts());\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", String.valueOf(accounts.size()));\n\t}", "Lock getComponentAccessTokenLock();", "@Test\n public void readLockShareTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n int threadNum = 10;\n final CountDownLatch countDownLatch = new CountDownLatch(threadNum);\n final ConcurrentHashMap concurrentHashMap = new ConcurrentHashMap();\n for (int i = 0; i < threadNum; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n boolean result = testUse.ifGetReadLockIn2Milliseconds();\n Assert.assertTrue(result);\n if (result) {\n concurrentHashMap.put(Thread.currentThread().getName(), \"value\");\n }\n countDownLatch.countDown();\n }\n }).start();\n }\n countDownLatch.await();\n Assert.assertEquals(threadNum, concurrentHashMap.size());\n }", "public void testAsyncMapPutRemove() throws Throwable {\n TestCluster<AsyncMap<String, String>> cluster = TestCluster.<AsyncMap<String, String>>builder()\n .withActiveMembers(3)\n .withPassiveMembers(2)\n .withUriFactory(id -> String.format(\"local://test%d\", id))\n .withClusterFactory(members -> new ClusterConfig().withProtocol(new LocalProtocol()).withMembers(members))\n .withResourceFactory(config -> AsyncMap.create(\"test\", config, new AsyncMapConfig().withLog(new BufferedLog())))\n .build();\n expectResume();\n cluster.open().thenRun(this::resume);\n await(5000);\n \n AsyncMap<String, String> map = cluster.activeResources().iterator().next();\n expectResume();\n map.put(\"foo\", \"Hello world!\").thenRun(() -> {\n map.get(\"foo\").thenAccept(r1 -> {\n threadAssertEquals(r1, \"Hello world!\");\n map.remove(\"foo\").thenRun(() -> {\n map.get(\"foo\").thenAccept(r2 -> {\n threadAssertNull(r2);\n resume();\n });\n });\n });\n });\n await(5000);\n }", "@Override\n public SyncObjectState call() {\n\n SyncObjectState callState = SyncObjectState.STARTED;\n \n \n long remainingSleep = task.getSleepUntil() - System.currentTimeMillis();\n if (remainingSleep > 0) {\n try {\n Thread.sleep(remainingSleep);\n } catch (InterruptedException ex) {\n logger.warn(buildStandardLogMessage(null, \" Interrupted task-remaining-sleep\"));\n }\n }\n\n // TODO: consider replacing Lock with with IMap, for the automatic GC\n // see https://groups.google.com/forum/#!topic/hzProcessingClient/9YFGh3xwe8I\n Lock hzPidLock = hzProcessingClient.getLock(task.getPid());\n \n // this section must be thread-safe otherwise, we may skip unlocking a lock.\n // see http://docs.hazelcast.org/docs/3.5/manual/html/lock.html\n try {\n logger.info(buildStandardLogMessage(null, \" Locking task, attempt \" + task.getLockAttempt()));\n \n if (hzPidLock.tryLock(1, TimeUnit.SECONDS)) {\n // got lock\n try {\n logger.info(buildStandardLogMessage(null, \" Processing SyncObject\"));\n SystemMetadata mnSystemMetadata = retrieveMNSystemMetadata();\n logger.debug(task.taskLabel() + \" MN system metadata retrieved...\");\n\n processTask(mnSystemMetadata);\n callState = SyncObjectState.SUCCESS;\n \n } catch (RetryableException ex) {\n if (task.getAttempt() < 20) {\n callState = SyncObjectState.RETRY;\n \n logger.warn(buildStandardLogMessage(ex, \" RetryableException raised on attempt \"\n + task.getAttempt() + \" of 20. Sleeping and requeueing.\"));\n\n task.setAttempt(task.getAttempt() + 1);\n task.setSleepUntil(System.currentTimeMillis() + 5000L);\n\n hzProcessingClient.getQueue(synchronizationObjectQueue).put(task);\n \n } else {\n logger.error(buildStandardLogMessage(ex,\" Exceeded retry limit.\"\n + \" Unable to process the SyncObject. Converting to UnrecoverableException\"),ex);\n throw new UnrecoverableException(task.getPid() + \": retry limits reached without success.\",\n ex.getCause());\n }\n } finally {\n hzPidLock.unlock();\n logger.info(buildStandardLogMessage(null, \" Unlocked Pid.\"));\n }\n } else {\n // lock-retry handling\n if (task.getLockAttempt() < 100) {\n callState = SyncObjectState.RETRY;\n \n logger.warn(buildStandardLogMessage(null,\n \" Cannot lock Pid! Requeueing the task. Attempt \" + task.getLockAttempt()));\n\n task.setLockAttempt(task.getLockAttempt() + 1);\n task.setSleepUntil(System.currentTimeMillis() + 1000L);\n hzProcessingClient.getQueue(synchronizationObjectQueue).put(task);\n \n } else {\n callState = SyncObjectState.FAILED;\n \n String message = \"Cannot lock Pid! Reached Max attempts (100), abandoning processing of this pid.\";\n logger.error(buildStandardLogMessage(null, message));\n throw new SynchronizationFailed(\"5000\",message);\n }\n }\n } catch (SynchronizationFailed e) {\n callState = SyncObjectState.FAILED;\n \n logger.error(buildStandardLogMessage(e.getCause(),\"SynchronizationFailed: \" + e.getMessage()),e);\n SyncFailedTask syncFailedTask = new SyncFailedTask(nodeCommunications, task);\n syncFailedTask.submitSynchronizationFailed(e);\n\n } catch (UnrecoverableException e) {\n callState = SyncObjectState.FAILED;\n // this is the proper location to decide whether or not to notify the MemberNode\n // (these are exceptions caused by internal problems)\n \n // in all cases, we need to log\n logger.error(buildStandardLogMessage(e.getCause(),\"UnrecoverableException: \" + e.getMessage()),e);\n \n // report to MN, for now\n\n SyncFailedTask syncFailedTask = new SyncFailedTask(nodeCommunications, task);\n if (e.getCause() instanceof BaseException)\n syncFailedTask.submitSynchronizationFailed(task.getPid(), null,(BaseException) e.getCause());\n \n else \n syncFailedTask.submitSynchronizationFailed(task.getPid(), null,\n new ServiceFailure(\"5000\", this.buildStandardLogMessage(e.getCause(), null)));\n\n\n \n } catch (InterruptedException e) {\n callState = SyncObjectState.FAILED;\n // was handled as Exception before I split this out\n // don't know if we need to handle it any differently,\n logger.error(buildStandardLogMessage(e, \"Interrupted: \" + e.getMessage()), e);\n\n } catch (Exception e) {\n callState = SyncObjectState.FAILED;\n logger.error(this.buildStandardLogMessage(e,e.getMessage()),e);\n\n } finally {\n logger.info(buildStandardLogMessage(null, \" exiting with callState: \" + callState));\n// XXX: Hold until 2.4, because it depends on an update to d1_cn_common\n// MetricLogEntry metricLogEntry = new MetricLogEntry(MetricEvent.SYNCHRONIZATION_TASK_EXECUTION);\n// metricLogEntry.setNodeId(TypeFactory.buildNodeReference(task.getNodeId()));\n// metricLogEntry.setPid(TypeFactory.buildIdentifier(task.getPid()));\n// metricLogEntry.setMessage(\"status=\" + callState);\n// MetricLogClientFactory.getMetricLogClient().logMetricEvent(metricLogEntry);\n }\n return callState;\n }", "@Test\n public void writeLockIsolationTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n final ConcurrentHashMap concurrentHashMap = new ConcurrentHashMap();\n int threadNum = 50;\n final CountDownLatch countDownLatch = new CountDownLatch(threadNum);\n for (int i = 0; i < threadNum; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n concurrentHashMap.put(testUse.minusCountInWriteLock(), \"value\");\n countDownLatch.countDown();\n }\n }).start();\n }\n countDownLatch.await();\n Assert.assertEquals(950, testUse.count);\n }", "private static int computeAndSet(int n) {\n int val = fibRaw(n);\n Jedis jedis = null;\n try {\n jedis = pool.getResource();\n jedis.set(\"\" + n, Integer.toString(val));\n } catch (JedisConnectionException e) {\n \tSystem.err.println(\n \t \"Couldn't get a Jedis instance from the pool\\nException \" + e.getMessage());\n \t// returnBrokenResource when the state of the object is unrecoverable\n if (null != jedis) {\n pool.returnBrokenResource(jedis);\n jedis = null;\n }\n } finally {\n /// ... it's important to return the Jedis instance to the pool once you've finished using it\n if (null != jedis) {\n pool.returnResource(jedis);\n }\n } \n return val;\n }", "@Test\n public void readWaiteForWriteTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n int readThreadNum = 5;\n final CountDownLatch countDownLatch = new CountDownLatch(6);\n final Set<Integer> readResult = new HashSet<Integer>();\n readResult.add(999);\n new Thread(new Runnable() {\n @Override\n public void run() {\n testUse.minusCountInWriteLock();\n countDownLatch.countDown();\n }\n }).start();\n Thread.sleep(2000);\n for (int i = 0; i < readThreadNum; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n readResult.add(testUse.getCountInReadLock());\n countDownLatch.countDown();\n }\n }).start();\n }\n countDownLatch.await();\n Assert.assertEquals(1, readResult.size());\n }", "public interface PropertiesTask\n extends FileTask\n{\n\n /**\n * Properties file to be modified. If file does not exist it will be created.\n *\n * @param propertiesFile to be created/modified\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask setTargetFile( File propertiesFile );\n\n /**\n * Sets a property by key. If property is not present it will be added.\n *\n * @param key property key\n * @param value property value\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask setProperty( String key, String value );\n\n /**\n * Sets/adds all properties specified.\n *\n * @param properties to be added\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask setProperties( Properties properties );\n\n /**\n * Reads properties from specified properties file and add/set them.\n *\n * @param propertiesFile file containing properties\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask setProperties( File propertiesFile );\n\n /**\n * Removes a property by key.\n *\n * @param key of property to be removed\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask removeProperty( String key );\n\n /**\n * Removes all properties. If there are properties to be set, those properties will replace all eventually existing\n * properties in target file.\n *\n * @return itself, for fluent API usage\n * @since 1.0\n */\n PropertiesTask removeAllProperties();\n\n}", "@Test\n public void tryToExecuteTasksWhenAllLeasesAreAlreadyReserved() throws Exception {\n DateTime timeSlice = dateTimeService.getTimeSlice(now().minusMinutes(1), standardMinutes(1));\n String tenantId = \"test1\";\n String type1 = \"test1\";\n int interval = 5;\n int window = 15;\n int segment0 = 0;\n int segment1 = 1;\n int segmentOffset = 0;\n\n TaskExecutionHistory executionHistory = new TaskExecutionHistory();\n TaskType taskType1 = new TaskType().setName(type1).setSegments(5).setSegmentOffsets(1);\n\n session.execute(queries.createTask.bind(type1, tenantId, timeSlice.toDate(), segment0, \"test1.metric1.5min\",\n ImmutableSet.of(\"test1.metric1\"), interval, window));\n session.execute(queries.createTask.bind(type1, tenantId, timeSlice.toDate(), segment1, \"test1.metric2.5min\",\n ImmutableSet.of(\"test1.metric2\"), interval, window));\n session.execute(queries.createLease.bind(timeSlice.toDate(), type1, segmentOffset));\n\n String owner = \"host2\";\n Lease lease = new Lease(timeSlice, type1, segmentOffset, owner, false);\n boolean acquired = leaseService.acquire(lease).toBlocking().first();\n assertTrue(acquired, \"Should have acquired lease\");\n\n LeaseService leaseService = new LeaseService(rxSession, queries);\n TaskServiceImpl taskService = new TaskServiceImpl(rxSession, queries, leaseService, singletonList(taskType1));\n taskService.subscribe(taskType1, task -> executionHistory.add(task.getTarget()));\n\n Thread t1 = new Thread(() -> taskService.executeTasks(timeSlice));\n t1.start();\n\n AtomicReference<Exception> executionErrorRef = new AtomicReference<>();\n Runnable executeTasks = () -> {\n try {\n Thread.sleep(1000);\n session.execute(queries.deleteTasks.bind(lease.getTaskType(), lease.getTimeSlice().toDate(), segment0));\n session.execute(queries.deleteTasks.bind(lease.getTaskType(), lease.getTimeSlice().toDate(), segment1));\n leaseService.finish(lease).toBlocking().first();\n } catch (Exception e) {\n executionErrorRef.set(e);\n }\n };\n Thread t2 = new Thread(executeTasks);\n t2.start();\n\n t2.join(10000);\n t1.join(10000);\n\n assertNull(executionErrorRef.get(), \"Did not expect an exception to be thrown from other client, but \" +\n \"got: \" + executionErrorRef.get());\n\n assertTrue(executionHistory.getExecutedTasks().isEmpty(), \"Did not expect this task service to execute any \" +\n \"tasks but it executed \" + executionHistory.getExecutedTasks());\n assertTasksPartitionDeleted(type1, timeSlice, segment0);\n assertTasksPartitionDeleted(type1, timeSlice, segment1);\n assertLeasePartitionDeleted(timeSlice);\n\n // We do not need to verify that tasks are rescheduled or that new leases are\n // created since the \"other\" clients would be doing that.\n }", "@Test\r\n public void testNonParallel() {\r\n\r\n ClientValue<Integer> value = new ClientValue<>();\r\n\r\n for (int i = 0; i < 100; i++) {\r\n setClientAsCurrent(\"\" + i);\r\n value.setValue(i);\r\n }\r\n for (int i = 0; i < 100; i++) {\r\n setClientAsCurrent(\"\" + i);\r\n\r\n Assert.assertNotNull(value.getValue());\r\n Assert.assertEquals(value.getValue().intValue(), i);\r\n }\r\n }", "public static void main(String[] args) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n for (int i = 0; i < 10; i++) {\n ReadAndWriteLock.set(i+\"\",i+\"\");\n }\n }\n }).start();\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n for (int i = 0; i < 10; i++) {\n ReadAndWriteLock.get(i+\"\");\n }\n }\n }).start();\n }", "public void updateTask(int tid,String title,String detail,int money,String type,int total_num,int current_num,Timestamp start_time,Timestamp end_time,String state);", "public static void cacheResult(Task task) {\n\t\tgetPersistence().cacheResult(task);\n\t}", "public void execGetTwoHourTask(){\n getTwoHourRequestTask req = new getTwoHourRequestTask(mCredential);\n AsyncTaskCompat.executeParallel(req);\n }", "@Test\n public void testTaskLockCRUD() throws Exception {\n \n ThreadManager mgr = WebloggerFactory.getWeblogger().getThreadManager();\n \n // need a test task to play with\n TestTask task = new TestTask();\n task.init();\n \n // try to acquire a lock\n assertTrue(mgr.registerLease(task), \"Failed to acquire lease.\");\n // We don't flush here because registerLease should flush on its own\n TestUtils.endSession(false);\n \n // make sure task is locked\n assertFalse(mgr.registerLease(task),\"Acquired lease a second time when we shouldn't have been able to.\");\n TestUtils.endSession(false);\n \n // try to release a lock\n assertTrue(mgr.unregisterLease(task), \"Release of lease failed.\");\n // We don't flush here because unregisterLease should flush on its own\n TestUtils.endSession(false);\n\n // Current unregisterLease semantics are idempotent. Double release should\n // actually succeed.\n assertTrue( mgr.unregisterLease(task), \"Second release failed.\");\n TestUtils.endSession(false);\n }", "@Test\n public void writeTryReadLockTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n int readThreadNum = 1;\n final CountDownLatch countDownLatch = new CountDownLatch(1);\n final List<Integer> result = new ArrayList<Integer>();\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n result.add(testUse.getCountInReadTryLock(2000));\n countDownLatch.countDown();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }).start();\n countDownLatch.await();\n Assert.assertEquals(1000, result.get(0).intValue());\n }", "@Test\n public void testGetExecutionStatsLocked_Values() {\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (23 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (7 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (2 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (6 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), false);\n\n ExecutionStats expectedStats = new ExecutionStats();\n\n // Active\n expectedStats.allowedTimePerPeriodMs = 10 * MINUTE_IN_MILLIS;\n expectedStats.windowSizeMs = 10 * MINUTE_IN_MILLIS;\n expectedStats.jobCountLimit = mQcConstants.MAX_JOB_COUNT_ACTIVE;\n expectedStats.sessionCountLimit = mQcConstants.MAX_SESSION_COUNT_ACTIVE;\n expectedStats.expirationTimeElapsed = now + 4 * MINUTE_IN_MILLIS;\n expectedStats.executionTimeInWindowMs = 3 * MINUTE_IN_MILLIS;\n expectedStats.bgJobCountInWindow = 5;\n expectedStats.executionTimeInMaxPeriodMs = 33 * MINUTE_IN_MILLIS;\n expectedStats.bgJobCountInMaxPeriod = 20;\n expectedStats.sessionCountInWindow = 1;\n synchronized (mQuotaController.mLock) {\n assertEquals(expectedStats,\n mQuotaController.getExecutionStatsLocked(0, \"com.android.test\", ACTIVE_INDEX));\n }\n\n // Working\n expectedStats.windowSizeMs = 2 * HOUR_IN_MILLIS;\n expectedStats.jobCountLimit = mQcConstants.MAX_JOB_COUNT_WORKING;\n expectedStats.sessionCountLimit = mQcConstants.MAX_SESSION_COUNT_WORKING;\n expectedStats.expirationTimeElapsed = now;\n expectedStats.executionTimeInWindowMs = 13 * MINUTE_IN_MILLIS;\n expectedStats.bgJobCountInWindow = 10;\n expectedStats.executionTimeInMaxPeriodMs = 33 * MINUTE_IN_MILLIS;\n expectedStats.bgJobCountInMaxPeriod = 20;\n expectedStats.sessionCountInWindow = 2;\n expectedStats.inQuotaTimeElapsed = now + 3 * MINUTE_IN_MILLIS\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n synchronized (mQuotaController.mLock) {\n assertEquals(expectedStats,\n mQuotaController.getExecutionStatsLocked(0, \"com.android.test\", WORKING_INDEX));\n }\n\n // Frequent\n expectedStats.windowSizeMs = 8 * HOUR_IN_MILLIS;\n expectedStats.jobCountLimit = mQcConstants.MAX_JOB_COUNT_FREQUENT;\n expectedStats.sessionCountLimit = mQcConstants.MAX_SESSION_COUNT_FREQUENT;\n expectedStats.expirationTimeElapsed = now + HOUR_IN_MILLIS;\n expectedStats.executionTimeInWindowMs = 23 * MINUTE_IN_MILLIS;\n expectedStats.bgJobCountInWindow = 15;\n expectedStats.executionTimeInMaxPeriodMs = 33 * MINUTE_IN_MILLIS;\n expectedStats.bgJobCountInMaxPeriod = 20;\n expectedStats.sessionCountInWindow = 3;\n expectedStats.inQuotaTimeElapsed = now + 6 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n synchronized (mQuotaController.mLock) {\n assertEquals(expectedStats,\n mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", FREQUENT_INDEX));\n }\n\n // Rare\n expectedStats.windowSizeMs = 24 * HOUR_IN_MILLIS;\n expectedStats.jobCountLimit = mQcConstants.MAX_JOB_COUNT_RARE;\n expectedStats.sessionCountLimit = mQcConstants.MAX_SESSION_COUNT_RARE;\n expectedStats.expirationTimeElapsed = now + HOUR_IN_MILLIS;\n expectedStats.executionTimeInWindowMs = 33 * MINUTE_IN_MILLIS;\n expectedStats.bgJobCountInWindow = 20;\n expectedStats.executionTimeInMaxPeriodMs = 33 * MINUTE_IN_MILLIS;\n expectedStats.bgJobCountInMaxPeriod = 20;\n expectedStats.sessionCountInWindow = 4;\n expectedStats.inQuotaTimeElapsed = now + 22 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS\n + mQcConstants.IN_QUOTA_BUFFER_MS;\n synchronized (mQuotaController.mLock) {\n assertEquals(expectedStats,\n mQuotaController.getExecutionStatsLocked(0, \"com.android.test\", RARE_INDEX));\n }\n }", "@Test\n public void updateTaskAndGetById() {\n mDatabase.taskDao().insertTask(TASK);\n\n // When the task is updated\n Task updatedTask = new Task(\"title2\", \"description2\", \"id\", true);\n mDatabase.taskDao().updateTask(updatedTask);\n\n // When getting the task by id from the database\n Task loaded = mDatabase.taskDao().getTaskById(\"id\");\n\n // The loaded data contains the expected values\n assertTask(loaded, \"id\", \"title2\", \"description2\", true);\n }", "@Test\n public void readTryLockShareTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n final CountDownLatch countDownLatch = new CountDownLatch(5);\n final List<Integer> result = new ArrayList<Integer>();\n for (int i = 0; i < 5; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n Integer r = testUse.getCountInReadTryLock(2000);\n if(r!=null){\n result.add(r);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n countDownLatch.countDown();\n }\n }).start();\n }\n countDownLatch.await();\n Assert.assertEquals(5, result.size());\n }", "@Test\n public void testPassSubgroup2() {\n verifyTask(new int[][]{{0, 1}, {0, 2}}, new Runnable() {\n public void run() {\n final Int i = new Int();\n final Ref<Int> r = new Ref<>(i);\n \n Task<?> task1 = new Task<Void>(new Object[]{r}, new Object[]{}) {\n @Override\n protected Void runRolez() {\n region(0);\n r.o.value++;\n return null;\n }\n };\n s.start(task1);\n \n Task<?> task2 = new Task<Void>(new Object[]{i}, new Object[]{}) {\n @Override\n protected Void runRolez() {\n region(1);\n i.value++;\n return null;\n }\n };\n s.start(task2);\n region(2);\n \n assertEquals(2, guardReadOnly(i).value);\n }\n });\n }", "@Test\n public void testPassSubgroup() {\n verifyTask(new int[][]{{0, 1}, {0, 2}}, new Runnable() {\n public void run() {\n final Int i = new Int();\n final Ref<Int> r = new Ref<>(i);\n \n Task<?> task1 = new Task<Void>(new Object[]{i}, new Object[]{}) {\n @Override\n protected Void runRolez() {\n region(0);\n i.value++;\n return null;\n }\n };\n s.start(task1);\n \n Task<?> task2 = new Task<Void>(new Object[]{r}, new Object[]{}) {\n @Override\n protected Void runRolez() {\n region(1);\n r.o.value++;\n return null;\n }\n };\n s.start(task2);\n region(2);\n \n assertEquals(2, guardReadOnly(i).value);\n }\n });\n }", "public Result get(Get get, Integer lockId) throws IOException;", "private TasksLists setTaskDone(ITaskCluster taskCluster, ICommonTask task, Object taskServiceResult) {\n return nextTasks(taskCluster, task, taskServiceResult);\n }", "@Override\n\tpublic void run() {\n\t\tfor (int i=0; i<10; i++){\n\t\t\tstorage.put();\n\t\t}\n\t}", "public static void cacheResult(List<Task> tasks) {\n\t\tgetPersistence().cacheResult(tasks);\n\t}", "@Test\n public void testGetExecutionStatsLocked_Caching() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).invalidateAllExecutionStatsLocked();\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (23 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (7 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (2 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (6 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), false);\n final ExecutionStats originalStatsActive;\n final ExecutionStats originalStatsWorking;\n final ExecutionStats originalStatsFrequent;\n final ExecutionStats originalStatsRare;\n synchronized (mQuotaController.mLock) {\n originalStatsActive = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", ACTIVE_INDEX);\n originalStatsWorking = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", WORKING_INDEX);\n originalStatsFrequent = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", FREQUENT_INDEX);\n originalStatsRare = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", RARE_INDEX);\n }\n\n // Advance clock so that the working stats shouldn't be the same.\n advanceElapsedClock(MINUTE_IN_MILLIS);\n // Change frequent bucket size so that the stats need to be recalculated.\n setDeviceConfigLong(QcConstants.KEY_WINDOW_SIZE_FREQUENT_MS, 6 * HOUR_IN_MILLIS);\n\n ExecutionStats expectedStats = new ExecutionStats();\n expectedStats.allowedTimePerPeriodMs = originalStatsActive.allowedTimePerPeriodMs;\n expectedStats.windowSizeMs = originalStatsActive.windowSizeMs;\n expectedStats.jobCountLimit = originalStatsActive.jobCountLimit;\n expectedStats.sessionCountLimit = originalStatsActive.sessionCountLimit;\n expectedStats.expirationTimeElapsed = originalStatsActive.expirationTimeElapsed;\n expectedStats.executionTimeInWindowMs = originalStatsActive.executionTimeInWindowMs;\n expectedStats.bgJobCountInWindow = originalStatsActive.bgJobCountInWindow;\n expectedStats.executionTimeInMaxPeriodMs = originalStatsActive.executionTimeInMaxPeriodMs;\n expectedStats.bgJobCountInMaxPeriod = originalStatsActive.bgJobCountInMaxPeriod;\n expectedStats.sessionCountInWindow = originalStatsActive.sessionCountInWindow;\n expectedStats.inQuotaTimeElapsed = originalStatsActive.inQuotaTimeElapsed;\n final ExecutionStats newStatsActive;\n synchronized (mQuotaController.mLock) {\n newStatsActive = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", ACTIVE_INDEX);\n }\n // Stats for the same bucket should use the same object.\n assertTrue(originalStatsActive == newStatsActive);\n assertEquals(expectedStats, newStatsActive);\n\n expectedStats.allowedTimePerPeriodMs = originalStatsWorking.allowedTimePerPeriodMs;\n expectedStats.windowSizeMs = originalStatsWorking.windowSizeMs;\n expectedStats.jobCountLimit = originalStatsWorking.jobCountLimit;\n expectedStats.sessionCountLimit = originalStatsWorking.sessionCountLimit;\n expectedStats.expirationTimeElapsed = originalStatsWorking.expirationTimeElapsed;\n expectedStats.executionTimeInWindowMs = originalStatsWorking.executionTimeInWindowMs;\n expectedStats.bgJobCountInWindow = originalStatsWorking.bgJobCountInWindow;\n expectedStats.sessionCountInWindow = originalStatsWorking.sessionCountInWindow;\n expectedStats.inQuotaTimeElapsed = originalStatsWorking.inQuotaTimeElapsed;\n final ExecutionStats newStatsWorking;\n synchronized (mQuotaController.mLock) {\n newStatsWorking = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", WORKING_INDEX);\n }\n assertTrue(originalStatsWorking == newStatsWorking);\n assertNotEquals(expectedStats, newStatsWorking);\n\n expectedStats.allowedTimePerPeriodMs = originalStatsFrequent.allowedTimePerPeriodMs;\n expectedStats.windowSizeMs = originalStatsFrequent.windowSizeMs;\n expectedStats.jobCountLimit = originalStatsFrequent.jobCountLimit;\n expectedStats.sessionCountLimit = originalStatsFrequent.sessionCountLimit;\n expectedStats.expirationTimeElapsed = originalStatsFrequent.expirationTimeElapsed;\n expectedStats.executionTimeInWindowMs = originalStatsFrequent.executionTimeInWindowMs;\n expectedStats.bgJobCountInWindow = originalStatsFrequent.bgJobCountInWindow;\n expectedStats.sessionCountInWindow = originalStatsFrequent.sessionCountInWindow;\n expectedStats.inQuotaTimeElapsed = originalStatsFrequent.inQuotaTimeElapsed;\n final ExecutionStats newStatsFrequent;\n synchronized (mQuotaController.mLock) {\n newStatsFrequent = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", FREQUENT_INDEX);\n }\n assertTrue(originalStatsFrequent == newStatsFrequent);\n assertNotEquals(expectedStats, newStatsFrequent);\n\n expectedStats.allowedTimePerPeriodMs = originalStatsRare.allowedTimePerPeriodMs;\n expectedStats.windowSizeMs = originalStatsRare.windowSizeMs;\n expectedStats.jobCountLimit = originalStatsRare.jobCountLimit;\n expectedStats.sessionCountLimit = originalStatsRare.sessionCountLimit;\n expectedStats.expirationTimeElapsed = originalStatsRare.expirationTimeElapsed;\n expectedStats.executionTimeInWindowMs = originalStatsRare.executionTimeInWindowMs;\n expectedStats.bgJobCountInWindow = originalStatsRare.bgJobCountInWindow;\n expectedStats.sessionCountInWindow = originalStatsRare.sessionCountInWindow;\n expectedStats.inQuotaTimeElapsed = originalStatsRare.inQuotaTimeElapsed;\n final ExecutionStats newStatsRare;\n synchronized (mQuotaController.mLock) {\n newStatsRare = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", RARE_INDEX);\n }\n assertTrue(originalStatsRare == newStatsRare);\n assertEquals(expectedStats, newStatsRare);\n }", "LockStorage getLockStorage();", "private void concurrencyWrites1() {\n\t\ttry {\n\t\t\tlog.info(\"Starting TrxTableClient5: concurrencyWrites1\");\n\t\t\tlog.info(\"main--put[v1]\");\n\t\t\tlog.info(\"t1-----------beginTrans---put[v2]---------------------------commit\");\n\t\t\tlog.info(\"t2-------------------------------------beginTrans---put[v3]----------commit\");\n\t\t\tlog.info(\"main---get[v2]\");\n\n\t\t\tSsccTableClientUtils.initialize();\n\t\t\tputValue();\n\n\t\t\tfinal P0Trx01 t1 = new P0Trx01();\n\t\t\tfinal P0Trx02 t2 = new P0Trx02();\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt1.doWork();\n\t\t\t\t\tlog.info(\" Trx1 finished\");\n\t\t\t\t\tcdl.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx1\").start();\n\n\t\t\t// to make sure t2 is later than t1\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt2.doWork();\n\t\t\t\t\tlog.info(\" Trx2 finished\");\n\t\t\t\t\tcdl.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx2\").start();\n\n\t\t\tcdl.await();\n\t\t\tSsccTableClientUtils.testSsccBeginTransaction();\n\t\t\tInteger[] result = SsccTableClientUtils.testSsccGet();\n\t\t\tSsccTableClientUtils.testSsccCommitIfPossible();\n\t\t\tlog.info(\"Finish TrxTableClient5: concurrencyWrites1\");\n\n\t\t\tif (result.length == 1 && result[0] == 2) {\n\t\t\t\tsuccessNum++;\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"SUCCESS\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t} else {\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"FAILURE\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "int updateByPrimaryKeySelective(Task record);", "@Override\n\t\tpublic void getState(OutputStream output) throws Exception {\n\t\t\tsynchronized(taskListState) {\n\t Util.objectToStream(taskListState, new DataOutputStream(output));\n\t }\n\t }", "public interface Task {\n\t\t/** Insertion tuples */\n\t\tpublic TupleSet insertions();\n\n\t\t/** Deletion tuples. */\n\t\tpublic TupleSet deletions();\n\n\t\t/** The program name that should evaluate the tuples. */\n\t\tpublic String program();\n\n\t\t/** The name of the table to which the tuples belong. */\n\t\tpublic TableName name();\n\t}", "@Override\n public void getTasks(@NonNull final LoadTasksCallback callback) {\n if(mCachedTasks != null && !mCacheIsDirty) {\n callback.onTasksLoaded(new ArrayList<Task>(mCachedTasks.values()));\n return;\n }\n if(mCacheIsDirty) {\n // If cache is dirty fetch data from the remote source again\n getTaskFromRemoteDataSource(callback);\n } else {\n // Query the Local Storage is available . If not query the network\n mTasksLocalDataSource.getTasks(new LoadTasksCallback() {\n @Override\n public void onTasksLoaded(List<Task> tasks) {\n refreshCache(tasks);\n callback.onTasksLoaded(new ArrayList<Task>(mCachedTasks.values()));\n }\n\n @Override\n public void onDataNotAvailable() {\n getTaskFromRemoteDataSource(callback);\n }\n });\n }\n\n }", "abstract protected void syncTuples() throws IOException;", "private Account borrowAccount(AccountHolder holder) {\n\t\twhile (true) {\n\t\t\tAccount account = holder.account.get();\n\t\t\tif (account != null && holder.account.compareAndSet(account, null)) {\n\t\t\t\treturn account;\n\t\t\t}\n\t\t}\n\t}", "public void storeInCache() {\r\n lockValueStored = IN_CACHE;\r\n }", "public interface Model {\n /** Clears existing backing model and replaces with the provided new data. */\n void resetData(ReadOnlyTaskManager newData);\n\n /** Returns the TaskManager */\n ReadOnlyTaskManager getTaskManager();\n\n /** Adds the given floating task */\n void addTask(Task task);\n \n /** Deletes the given floating task. */\n void deleteUndoneTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;\n\n /** Add the given floating tasks */\n void addTasks(List<Task> tasks);\n \n /** Archives the task by adding it into DoneTaskList */\n void addDoneTask(Task task);\n\n /** Removes the task permanently from the archive DoneTaskList **/\n void deleteDoneTask(ReadOnlyTask floatingTask) throws TaskNotFoundException;\n \n /** Archives the tasks by adding them into DoneTaskList */\n void addDoneTasks(List<Task> task);\n \n /** Returns the filtered undone task list as an {@code UnmodifiableObservableList<ReadOnlyPerson>} */\n UnmodifiableObservableList<ReadOnlyTask> getFilteredUndoneTaskList();\n \n /** Returns the filtered done task list as an {@code UnmodifiableObservableList<ReadOnlyPerson>} */\n UnmodifiableObservableList<ReadOnlyTask> getFilteredDoneTaskList();\n\n /** Updates the filter of the filtered task lists to show all tasks */\n void updateFilteredListsToShowAll();\n\n /** Updates the filter of the filtered task list to filter by the given keywords*/\n void updateFilteredUndoneTaskListNamePred(Set<String> keywords);\n\n /** Updates the filter of the filtered done task list to filter by the given keywords*/\n void updateFilteredDoneTaskListNamePred(Set<String> keywords);\n \n /** Returns true is current list is done task list, false if current list is undone task list*/\n Boolean isCurrentListDoneList();\n \n /** Sets current list to be done list*/\n public void setCurrentListToBeDoneList();\n \n /** Sets current list to be undone list*/\n public void setCurrentListToBeUndoneList();\n \n /** Edits the parameters of the given floating task*/\n\tvoid editTask(ReadOnlyTask taskToEdit, Name taskName, Date startDate, Date endDate, Priority priority,\n\t\t\tRecurrenceRate recurrenceRate);\n\t\n /** Clears existing backing model of the done task data and replaces with the provided new data. */\n void resetDoneData(ReadOnlyTaskManager newData);\n \n /** Clears existing backing model if the undone task data and replaces with the provided new data. */\n void resetUndoneData(ReadOnlyTaskManager newData);\n \n void setTaskManagerUndoneList(ObservableList<Task> list);\n\n void setTaskManagerDoneList(ObservableList<Task> list);\n \n void clearTaskManagerUndoneList();\n \n void clearTaskManagerDoneList();\n \n ObservableList<Task> getTaskManagerUndoneList();\n \n ObservableList<Task> getTaskManagerDoneList();\n\n void updateFilteredUndoneTaskListDatePred(String keyword) throws IllegalValueException;\n\n void updateFilteredDoneTaskListDatePred(String keyword) throws IllegalValueException;\n\n\n\n\n\n}", "public interface ReadOnlyTaskList {\n\n\tUniqueTaskList getUniqueTaskList();\n\n\t/**\n\t * Returns an unmodifiable view of tasks list\n\t */\n\tList<ReadOnlyTask> getTaskList();\n}", "@Test\n\tpublic static void testThreadLocal() {\n\t\tExecutorService service = Executors.newCachedThreadPool();\n\n\t\tRunnable task = new Runnable() {\n\t\t\tThreadLocal<AtomicInteger> tlocal = new ThreadLocal<AtomicInteger>() {\n\t\t\t\t@Override\n\t\t\t\tpublic AtomicInteger initialValue() {\n\t\t\t\t\treturn new AtomicInteger(1);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" start with value: \" + tlocal.get());\n\t\t\t\ttry {\n\t\t\t\t\tTimeUnit.SECONDS.sleep(1);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttlocal.set(new AtomicInteger(tlocal.get().addAndGet(1)));\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" ends with value: \" + tlocal.get());\n\t\t\t}\n\t\t};\n\t\tfor (int i = 0; i < 5; i++)\n\t\t\tservice.submit(task);\n\t\tservice.shutdown();\n\t}", "public void store() {\n \n try {\n ProjectManager.mutex().writeAccess(new Mutex.ExceptionAction<Object>() {\n public Object run() {\n \n resolveProjectDependencies();\n \n // Some properties need special handling e.g. if the\n // property changes the project.xml files\n for(final PropertyInfo pi:properties.values()) {\n pi.encode();\n }\n \n final ProjectConfiguration configs[] = configHelper.getConfigurations().toArray(new ProjectConfiguration[0]);\n final HashSet<ProjectConfiguration> newConfigs = new HashSet<ProjectConfiguration>(Arrays.asList(devConfigs));\n for (int i=0; i<configs.length; i++) {\n if (!newConfigs.remove(configs[i])) {\n configHelper.removeConfiguration(configs[i]);\n }\n }\n for (ProjectConfiguration cfg:newConfigs) {\n configHelper.addConfiguration(cfg.getDisplayName());\n }\n \n \n // Reread the properties. It may have changed when\n // e.g. when setting references to another projects\n EditableProperties sharedProps = antProjectHelper.getProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH);\n EditableProperties privateProps = antProjectHelper.getProperties(AntProjectHelper.PRIVATE_PROPERTIES_PATH);\n\n // Set the changed properties\n for( final PropertyInfo pi:properties.values()) {\n final PropertyDescriptor pd = pi.getPropertyDescriptor();\n if (pd != null && pi.isModified()) {\n final String newValueEncoded = pi.getNewValueEncoded();\n if ( newValueEncoded != null ) {\n (pd.isShared() ? sharedProps : privateProps).setProperty( pd.getName(), newValueEncoded );\n } else {\n // remove property\n (pd.isShared() ? sharedProps : privateProps).remove(pd.getName());\n }\n }\n }\n \n // Store the property changes into the project\n antProjectHelper.putProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH, sharedProps);\n antProjectHelper.putProperties(AntProjectHelper.PRIVATE_PROPERTIES_PATH, privateProps);\n \n // Invoke this method to perform cyclic dependencies check and potentionally show warning dilalog\n CustomizerGeneral cg = new CustomizerGeneral();\n cg.initValues(J2MEProjectProperties.this, null);\n cg.getSortedSubprojectsList();\n \n //storing global default encoding by dcurrent project (see issue #97855)\n String enc = sharedProps.getProperty(DefaultPropertiesDescriptor.JAVAC_ENCODING);\n if (enc != null) FileEncodingQuery.setDefaultEncoding(Charset.forName(enc));\n \n // save the project under write lock\n try {\n ProjectManager.getDefault().saveProject(project);\n } catch (IOException ex) {\n ErrorManager.getDefault().notify(ex);\n }\n\n return null;\n }\n });\n } catch (MutexException e) {\n ErrorManager.getDefault().notify(e.getException());\n }\n \n }", "protected abstract Version executeTaskLocal(Version theTask);", "public interface Executor {\n void setTask(Task task);\n Task getTask();\n void startTask();\n}", "private TaskTransaction tx() {\n if (this.taskTx == null) {\n /*\n * NOTE: don't synchronized(this) due to scheduler thread hold\n * this lock through scheduleTasks(), then query tasks and wait\n * for db-worker thread after call(), the tx may not be initialized\n * but can't catch this lock, then cause dead lock.\n * We just use this.eventListener as a monitor here\n */\n synchronized (this.eventListener) {\n if (this.taskTx == null) {\n BackendStore store = this.graph.loadSystemStore();\n TaskTransaction tx = new TaskTransaction(this.graph, store);\n assert this.taskTx == null; // may be reentrant?\n this.taskTx = tx;\n }\n }\n }\n assert this.taskTx != null;\n return this.taskTx;\n }", "@Test\n public void updateCompletedAndGetById() {\n mDatabase.taskDao().insertTask(TASK);\n\n // When the task is updated\n mDatabase.taskDao().updateCompleted(TASK.getId(), false);\n\n // When getting the task by id from the database\n Task loaded = mDatabase.taskDao().getTaskById(\"id\");\n\n // The loaded data contains the expected values\n assertTask(loaded, TASK.getId(), TASK.getTitle(), TASK.getDescription(), false);\n }", "public void runSequential() {\n int exitVal = -101;\n try {\n exitVal = tsk.executeTask(ss == null ? null : ss.getHiveHistory());\n } catch (Throwable t) {\n if (tsk.getException() == null) {\n tsk.setException(t);\n }\n LOG.error(\"Error in executeTask\", t);\n }\n if (tsk.getException() != null) {\n result.setTaskError(tsk.getException());\n }\n result.setExitVal(exitVal);\n taskQueue.releaseRunnable();\n }", "@Test\n public void testTransactional() throws Throwable {\n final List<MagicKey> keys = init();\n final CountDownLatch l = new CountDownLatch(1);\n final AtomicBoolean rollback = new AtomicBoolean(false);\n\n Future<Void> future = fork(() -> {\n try {\n // start a transaction on c1.\n TransactionManager t1 = TestingUtil.getTransactionManager(c1);\n t1.begin();\n c1.put(keys.get(0), \"transactionally_replaced\");\n Transaction tx = t1.getTransaction();\n tx.enlistResource(new XAResourceAdapter() {\n public int prepare(Xid id) {\n // this would be called *after* the cache prepares.\n try {\n log.debug(\"Unblocking commit\");\n l.await();\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n }\n return XAResource.XA_OK;\n }\n });\n t1.commit();\n } catch (Exception e) {\n log.error(\"Error committing transaction\", e);\n rollback.set(true);\n throw new RuntimeException(e);\n }\n });\n\n log.info(\"Invoking rehash event\");\n performRehashEvent(true);\n l.countDown();\n future.get(30, TimeUnit.SECONDS);\n\n //ownership can only be verified after the rehashing has completed\n waitForRehashCompletion();\n log.info(\"Rehash complete\");\n\n //only check for these values if tx was not rolled back\n if (!rollback.get()) {\n // the ownership of k1 might change during the tx and a cache might end up with it in L1\n assertOwnershipAndNonOwnership(keys.get(0), true);\n assertOwnershipAndNonOwnership(keys.get(1), false);\n assertOwnershipAndNonOwnership(keys.get(2), false);\n assertOwnershipAndNonOwnership(keys.get(3), false);\n\n // checking the values will bring the keys to L1, so we want to do it after checking ownership\n assertOnAllCaches(keys.get(0), \"transactionally_replaced\");\n assertOnAllCaches(keys.get(1), \"v0\");\n assertOnAllCaches(keys.get(2), \"v0\");\n assertOnAllCaches(keys.get(3), \"v0\");\n }\n }", "@Override\n public void run() {\n assertNotNull(TXLockService.getDTLS());\n assertFalse(TXLockService.getDTLS().isLockGrantor());\n\n PausibleTX pauseTXRunnable = new PausibleTX();\n pauseTXRunnable.rgnName = rgnName;\n pauseTXRunnable.myCache = getCache();\n pauseTXRunnable.key = \"key\";\n pauseTXRunnable.value = \"val3\";\n new Thread(pauseTXRunnable, \"PausibleTX Thread\").start();\n synchronized (PausibleTX.class) {\n while (!pauseTXRunnable.getIsRunning()) {\n try {\n PausibleTX.class.wait();\n } catch (InterruptedException ie) {\n fail(\"Did not expect \" + ie);\n }\n }\n }\n }", "@Test\n public void testConcurrentCommitTaskWithSubDir() throws Exception {\n Job job = newJob();\n FileOutputFormat.setOutputPath(job, outputDir);\n final Configuration conf = job.getConfiguration();\n\n final JobContext jContext =\n new JobContextImpl(conf, taskAttempt0.getJobID());\n ManifestCommitter amCommitter = createCommitter(\n new TaskAttemptContextImpl(conf, taskAttempt0));\n amCommitter.setupJob(jContext);\n\n final TaskAttemptContext[] taCtx = new TaskAttemptContextImpl[2];\n taCtx[0] = new TaskAttemptContextImpl(conf, taskAttempt0);\n taCtx[1] = new TaskAttemptContextImpl(conf, taskAttempt1);\n\n // IDE/checkstyle complain here about type casting but they\n // are confused.\n final TextOutputFormat<Writable, Object>[] tof =\n new TextOutputForTests[2];\n\n for (int i = 0; i < tof.length; i++) {\n tof[i] = new TextOutputForTests<Writable, Object>() {\n @Override\n public Path getDefaultWorkFile(\n TaskAttemptContext context,\n String extension) throws IOException {\n final ManifestCommitter foc = (ManifestCommitter)\n getOutputCommitter(context);\n return new Path(new Path(foc.getWorkPath(), SUB_DIR),\n getUniqueFile(context, getOutputName(context), extension));\n }\n };\n }\n\n final ExecutorService executor = HadoopExecutors.newFixedThreadPool(2);\n try {\n for (int i = 0; i < taCtx.length; i++) {\n final int taskIdx = i;\n executor.submit(() -> {\n final OutputCommitter outputCommitter =\n tof[taskIdx].getOutputCommitter(taCtx[taskIdx]);\n outputCommitter.setupTask(taCtx[taskIdx]);\n writeOutput(tof[taskIdx].getRecordWriter(taCtx[taskIdx]), taCtx[taskIdx]);\n describe(\"Committing Task %d\", taskIdx);\n outputCommitter.commitTask(taCtx[taskIdx]);\n return null;\n });\n }\n } finally {\n executor.shutdown();\n while (!executor.awaitTermination(1, TimeUnit.SECONDS)) {\n log().info(\"Awaiting thread termination!\");\n }\n }\n\n // if we commit here then all tasks will be committed, so there will\n // be contention for that final directory: both parts will go in.\n\n describe(\"\\nCommitting Job\");\n amCommitter.commitJob(jContext);\n assertPathExists(\"base output directory\", outputDir);\n assertPart0000DoesNotExist(outputDir);\n Path outSubDir = new Path(outputDir, SUB_DIR);\n assertPathDoesNotExist(\"Must not end up with sub_dir/sub_dir\",\n new Path(outSubDir, SUB_DIR));\n\n // validate output\n // There's no success marker in the subdirectory\n validateContent(outSubDir, false, \"\");\n }", "public interface SingletonTask extends Task {\n}", "public void syncWithRTInfo() {\n new rtLocation(locationValueString).execute();\n new rtTemp(tempValueString).execute();\n new rtHumidity(humidityValueString).execute();\n new rtCondition(conditionValueString).execute();\n }", "public void onUpdate()\r\n {\n \tString unitID = this.getUnitID();\r\n \t// hashmap for all assignments from tuple-old/new by seqNo\r\n \tHashMap<Integer, UITeamUsers.Assignments.Assignment> allAssignments = new HashMap<Integer, UITeamUsers.Assignments.Assignment>();\r\n \t// assigned setting for each assignment by seqNo\r\n \tHashMap<Integer, Boolean> assigned = new HashMap<Integer, Boolean>();\r\n \t// map of users plus list of user related assignments\r\n \tHashMap<String, ArrayList<Integer>> userAssignment = new HashMap<String, ArrayList<Integer>>();\r\n \t// collect data from tuple-old\r\n \tUITeamUsers origTeamUsers = (UITeamUsers)this.getOriginalObject();\r\n \tBusObjectIterator<UITeamUsers.Assignments.Assignment> origAssignments = origTeamUsers.getAssignmentsObject().getAssignmentObjects();\r\n \twhile (origAssignments.hasMoreElements())\r\n \t{\r\n \t\tUITeamUsers.Assignments.Assignment origAssignment = (UITeamUsers.Assignments.Assignment)origAssignments.nextElement();\r\n \t\tint seqNo = origAssignment.getSeqNo();\r\n \t\tString orgUserDN = origAssignment.getOrgUserDN();\r\n \t\tallAssignments.put(seqNo, origAssignment);\r\n \t\t// initially, put assigned to false - from the tuple-new, we will determine if it should be put to true\r\n \t\tassigned.put(seqNo, false);\r\n \t\t// add assignment to user list\r\n \t\tArrayList<Integer> userAssignments = null;\r\n \t\tif (userAssignment.containsKey(orgUserDN))\r\n \t\t{\r\n \t\t\tuserAssignments = userAssignment.get(orgUserDN);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tuserAssignments = new ArrayList<Integer>();\r\n \t\t\tuserAssignment.put(orgUserDN, userAssignments);\r\n \t\t}\r\n \t\tuserAssignments.add(seqNo);\r\n \t}\r\n \t// collect data from tuple-new\r\n \tBusObjectIterator<UITeamUsers.Assignments.Assignment> newAssignments = this.getAssignmentsObject().getAssignmentObjects();\r\n \twhile (newAssignments.hasMoreElements())\r\n \t{ \t\r\n \t\tUITeamUsers.Assignments.Assignment newAssignment = (UITeamUsers.Assignments.Assignment)newAssignments.nextElement();\r\n \t\tint seqNo = newAssignment.getSeqNo();\r\n \t\tString orgUserDN = newAssignment.getOrgUserDN();\r\n \t\tif (!allAssignments.containsKey(seqNo))\r\n \t\t{\r\n \t\tallAssignments.put(seqNo, newAssignment);\r\n \t\t// add assignment to user list\r\n \t\tArrayList<Integer> userAssignments = null;\r\n \t\tif (userAssignment.containsKey(orgUserDN))\r\n \t\t{\r\n \t\t\tuserAssignments = userAssignment.get(orgUserDN);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tuserAssignments = new ArrayList<Integer>();\r\n \t\t\tuserAssignment.put(orgUserDN, userAssignments);\r\n \t\t}\r\n \t\tuserAssignments.add(seqNo);\r\n \t\t}\r\n \t\t// determine assigned\r\n \t\tassigned.put(seqNo, newAssignment.getAssigned());\r\n \t}\r\n \t// as we have all the data now, and also by user, we can see by user if\r\n \t// any teams to be assigned or unassigned\r\n \tfor (String orgUserDN : userAssignment.keySet())\r\n \t{\r\n \t\tTeams assignTeams = new Teams();\r\n \t\tTeams unassignTeams = new Teams();\r\n \t\tArrayList<Integer> userAssignments = userAssignment.get(orgUserDN);\r\n \t\tfor (int seqNo : userAssignments)\r\n \t\t{\r\n\t \t\tUITeamUsers.Assignments.Assignment assignment = allAssignments.get(seqNo);\r\n\t \t\tString assignmentID = assignment.getAssignmentID();\r\n\t \t\tif (Util.isSet(assignmentID) && !assigned.get(seqNo))\r\n\t \t\t{\r\n\t \t\t\t// existing assignment but not assigned anymore, so for removal\r\n\t \t\t\tTeam team = new Team();\r\n\t \t\t\tteam.setUnitID(unitID);\r\n\t \t\t\tRole role = new Role();\r\n\t \t\t\trole.setDN(assignment.getRoleDN());\r\n\t \t\t\tteam.setRoleObject(role);\r\n\t \t\t\tunassignTeams.addTeamObject(team);\r\n\t \t\t}\r\n\t \t\telse if (!Util.isSet(assignmentID) && assigned.get(seqNo))\r\n\t \t\t{\r\n\t \t\t\t// not existing yet; newly assigned\r\n\t \t\t\tTeam team = new Team();\r\n\t \t\t\tteam.setUnitID(unitID);\r\n\t \t\t\tRole role = new Role();\r\n\t \t\t\trole.setDN(assignment.getRoleDN());\r\n\t \t\t\tteam.setRoleObject(role);\r\n\t \t\t\tassignTeams.addTeamObject(team);\r\n\t \t\t}\r\n \t\t}\r\n \t\t// delegate\r\n \t\tTeams.maintainTeams(orgUserDN, assignTeams, unassignTeams);\r\n \t}\r\n // read back \r\n \t\tUITeamUsers actualTeamUsers = UITeamUsers.getUITeamUsers(unitID);\r\n if (actualTeamUsers != null)\r\n {\r\n \tUITeamUsers.Assignments actualAssignments = actualTeamUsers.getAssignmentsObject();\r\n \tUITeamUsers.Assignments uiAssignments = new UITeamUsers.Assignments(new BusObjectConfig(actualAssignments, BusObjectConfig.TRANSIENT_OBJECT));\r\n \tthis.setAssignmentsObject(uiAssignments);\r\n } \r\n }", "public void processTasks (List tasks) {\n for (Iterator iter = tasks.iterator(); iter.hasNext(); ) {\n Task t = (Task) iter.next();\n if (t.getPlanElement () == null) {\n\tAsset a = findAsset(t);\n\tPlanElement alloc = createAllocation(t, a);\n\tpublishAddingOfAllocation(alloc);\n }\n else {\n\tObject uid = ((Allocation)t.getPlanElement()).getAsset().getUID();\n\n\t// this will happen when we become aware of changed tasks\n\tif (isInfoEnabled()) {\n\t info (getName () + \" task \" + t.getUID () + \" was already allocated to \" + uid);\n\t}\n\n\tif (!uid.equals(findAsset(t).getUID ())) {\n\t if (isWarnEnabled()) {\n\t warn (getName () + \" task \" + t.getUID () + \" was already allocated to \" + uid + \n\t\t \" but trying to allocate to different asset \" + findAsset(t).getUID());\n\t }\n\t}\n }\n } \n\n tasks.clear();\n }", "void setDependentTasks(Set<Task> dependentTasks);", "boolean setTask(UUID uuid, IAnimeTask task);", "private void run() {\n log.log(Level.INFO, \"Starting multiple evaluation of {0} tasks\", tasks.size());\n boolean done = tasks.isEmpty();\n while (!done) {\n boolean hasFreeTasks = true;\n while (hasCapacity() && hasFreeTasks) {\n File task = getFreeTask();\n if (task == null) {\n hasFreeTasks = false;\n } else {\n EvaluatorHandle handle = new EvaluatorHandle();\n if (handle.createEvaluator(task, log, isResume)) {\n log.fine(\"Created new evaluation handler\");\n evaluations.add(handle);\n }\n }\n }\n\n log.log(Level.INFO, \"Tasks in progress: {0}, Unfinished tasks: {1}\", new Object[]{evaluations.size(), tasks.size()});\n try {\n Thread.sleep(5000);\n } catch (InterruptedException ex) {\n //Bla bla\n }\n checkRunningEvaluations();\n done = tasks.isEmpty();\n }\n\n }", "private void concurrencyWrites2() {\n\t\ttry {\n\t\t\tlog.info(\"Starting TrxTableClient5: concurrencyWrites2\");\n\t\t\tlog.info(\"main--put[v1]\");\n\t\t\tlog.info(\"t1-----------beginTrans---put[v2]---------------------------commit\");\n\t\t\tlog.info(\"t2-------------------------------------beginTrans---put[v3]----------abort\");\n\t\t\tlog.info(\"main---get[v2]\");\n\t\t\tSsccTableClientUtils.initialize();\n\t\t\tputValue();\n\n\t\t\tfinal P0Trx11 t1 = new P0Trx11();\n\t\t\tfinal P0Trx12 t2 = new P0Trx12();\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt1.doWork();\n\t\t\t\t\tlog.info(\" Trx1 finished\");\n\t\t\t\t\tcdl2.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx1\").start();\n\n\t\t\t// to make sure t2 is later than t1\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt2.doWork();\n\t\t\t\t\tlog.info(\" Trx2 finished\");\n\t\t\t\t\tcdl2.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx2\").start();\n\n\t\t\tcdl2.await();\n\n\t\t\tSsccTableClientUtils.testSsccBeginTransaction();\n\t\t\tInteger[] result = SsccTableClientUtils.testSsccGet();\n\t\t\tSsccTableClientUtils.testSsccCommitIfPossible();\n\t\t\tlog.info(\"Finish TrxTableClient5: concurrencyWrites2\");\n\n\t\t\tif (result.length == 1 && result[0] == 2) {\n\t\t\t\tsuccessNum++;\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"SUCCESS\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t} else {\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"FAILURE\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setTask(Task inTask){\n punchTask = inTask;\n }", "public interface Task {\n\n /**\n * Getter for the conversaitonal object concerned with this task.\n * @return the conversational object owning this task\n */\n ConversationalObject getTaskOwner();\n\n /**\n * Stter for the conversaitonal object concerned with this task.\n * @param taskOwner the task owner to set.\n */\n void setTaskOwner(ConversationalObject taskOwner);\n\n /**\n * Getter for the status of this task\n * @return the current status of this task\n */\n TaskStatus getStatus();\n\n /**\n * Setter for the status of this task\n * @param status\n */\n void setStatus(TaskStatus status);\n\n /**\n * Getter for the stage of this task. It is strongly recomended that concrete\n * task classes declare static final string variables to refer to there\n * possible stages.\n * @return The current stage of this task\n */\n String getStage();\n\n /**\n * Getter for the result of this task.\n * @return the result of this task, or {@code null} if the task is not\n * finished.\n */\n TaskResult getResult();\n\n /**\n * Getter for the set of tasks that depend from this task\n * @return The set of dependent tasks (can be null)\n */\n Set<Task> getDependentTasks();\n\n /**\n * Setter for the set of tasks that depend from this task\n * @param dependentTasks the set of dependent tasks to set\n */\n void setDependentTasks(Set<Task> dependentTasks);\n\n /**\n * Getter for the aggregated task this task has generated and is dependent on.\n * @return The aggregated task, if any (can be null)\n */\n Task getAggregatedTask();\n\n /**\n * Setter for the aggregated task this task has generated and is dependent on.\n * @param aggregatedTask the aggregated task to set\n */\n void setAggregatedTask(Task aggregatedTask);\n\n // TODO Other references could be added to extend the tasks model: e.g.\n // (1) subtasks: list of tasks composing this task, i.e. that should be\n // executed\n // in sequence in order to complete this task, and\n // (2) supertask: reversely, task this task is a subtask of.\n\n /**\n * Getter for the set of conversations this task generated and is now\n * dependent on.\n * @return the set of generated conversations\n */\n Set<OnGoingConversation> getGeneratedConversations();\n\n /**\n * Setter for generatedConversations.\n * @param generatedConversations the set of generatedConversations to set\n */\n void setGeneratedConversations(\n Set<OnGoingConversation> generatedConversations);\n\n /**\n * Cuts all references to other objects so that the garbage collector can\n * destroy them after having destroyed this task, if they are not referenced\n * by other objects than this task. Should be executed before removing the\n * last reference to this task (usually before removing this task from the set\n * of tasks of a conversational object)\n */\n void clean();\n\n /**\n * Executes the task. Specific to each concrete task class.\n */\n void execute();\n}", "@Override\r\n\t\t\tpublic void progressMade() {\n\t\t\t\twriteReadSemaphore.refreshReadLock(lockKey, readToken, lockTimeoutSec);\r\n\t\t\t}", "public void processTasks (List tasks) {\n // Should only ever have one task in here\n while (!tasks.isEmpty()) {\n Task t = (Task)tasks.remove(0);\n \n Asset a = findAsset(t);\n PlanElement alloc = createAllocation(t, a);\n publishAddingOfAllocation(alloc);\n } \n }", "public Task(Task T){\n\n\t\tcmd = T.cmd;\n\t\ttasknum = T.tasknum;\n\t\tterminated = T.terminated;\n\t\tcycle_term = T.cycle_term;\n\t\taborted = T.aborted;\n\t\twaiting = T.waiting;\n\t\ttime_wait = T.time_wait;\n\t\trunning = T.running;\n\n\t\tfor (int i = 0; i < T.actions.size(); i++){\n\n\t\t\tactions.add(T.actions.get(i));\n\t\t\tres_needed.add(T.res_needed.get(i));\n\t\t\treq_num.add(T.req_num.get(i));\n\t\t}\n\n\t\tfor(int i = 0; i < T.claims.size(); i++){\n\n\t\t\tclaims.add(T.claims.get(i));\n\t\t\tallocation.add(T.allocation.get(i));\n\t\t}\n\n\t}", "public bankacc() {\n\t\tbalance = 0;\n\t\tlockBalance = new ReentrantLock();\n\t\tcorrectBalanceCond = lockBalance.newCondition();\n\t}", "public Task<DataSnapshot> getValue(Query query) {\n TaskCompletionSource<DataSnapshot> source = new TaskCompletionSource<>();\n final Repo repo = this;\n this.scheduleNow(\n new Runnable() {\n @Override\n public void run() {\n // Always check active-listener in-memory caches first. These are always at least as\n // up to date as the persistence cache\n Node serverValue = serverSyncTree.getServerValue(query.getSpec());\n if (serverValue != null) {\n source.setResult(\n InternalHelpers.createDataSnapshot(\n query.getRef(), IndexedNode.from(serverValue)));\n return;\n }\n serverSyncTree.setQueryActive(query.getSpec());\n final DataSnapshot persisted = serverSyncTree.persistenceServerCache(query);\n if (persisted.exists()) {\n // Prefer the locally persisted value if the server is not responsive.\n scheduleDelayed(() -> source.trySetResult(persisted), GET_TIMEOUT_MS);\n }\n connection\n .get(query.getPath().asList(), query.getSpec().getParams().getWireProtocolParams())\n .addOnCompleteListener(\n ((DefaultRunLoop) ctx.getRunLoop()).getExecutorService(),\n (@NonNull Task<Object> task) -> {\n if (source.getTask().isComplete()) {\n return;\n }\n if (!task.isSuccessful()) {\n if (persisted.exists()) {\n source.setResult(persisted);\n } else {\n source.setException(Objects.requireNonNull(task.getException()));\n }\n } else {\n /*\n * We need to replicate the behavior that occurs when running `once()`. In other words,\n * we need to create a new eventRegistration, register it with a view and then\n * overwrite the data at that location, and then remove the view.\n */\n Node serverNode = NodeUtilities.NodeFromJSON(task.getResult());\n QuerySpec spec = query.getSpec();\n // EventRegistrations require a listener to be attached, so a dummy\n // ValueEventListener was created.\n keepSynced(spec, /*keep=*/ true, /*skipDedup=*/ true);\n List<? extends Event> events;\n if (spec.loadsAllData()) {\n events = serverSyncTree.applyServerOverwrite(spec.getPath(), serverNode);\n } else {\n events =\n serverSyncTree.applyTaggedQueryOverwrite(\n spec.getPath(),\n serverNode,\n getServerSyncTree().tagForQuery(spec));\n }\n repo.postEvents(\n events); // to ensure that other listeners end up getting their cached\n // events.\n source.setResult(\n InternalHelpers.createDataSnapshot(\n query.getRef(),\n IndexedNode.from(serverNode, query.getSpec().getIndex())));\n keepSynced(spec, /*keep=*/ false, /*skipDedup=*/ true);\n }\n });\n }\n });\n return source.getTask();\n }", "@Override\n\tpublic synchronized <T> Future<T> runTask(final Object key, final Supplier<T> task, final Predicate<Object> predicate) {\n\n\t\tlog.info(\"Add task '{}' to task queue.\", key);\n\t\tCompletableFuture<Void> futuresToWait = CompletableFuture.allOf(tasks.stream()\n\t\t\t\t.filter(e -> areKeysMatched(e.key, predicate))\n\t\t\t\t.map(e -> e.value)\n\t\t\t\t.toArray(CompletableFuture[]::new));\n\n\t\tCompletableFuture<T> future = futuresToWait.thenApplyAsync(aVoid -> task.get(), executor)\n\t\t\t\t.exceptionally(t -> {\n\t\t\t\t\tlog.error(\"Error in task: \" + key, t);\n\t\t\t\t\tthrow new SyncRunnerException(\"Error in task with key: \" + key, t);\n\t\t\t\t}\n\t\t);\n\t\ttasks.add(new ImmutablePair<>(key, future));\n\t\treturn future;\n\t}", "private void writeAccount() {\n SharedPreferences pref = getSharedPreferences(\"ACCOUNT\", Context.MODE_PRIVATE);\n SharedPreferences.Editor edt = pref.edit();\n\n edt.putString(\"email\", Me.getInstance().getEmail());\n edt.putString(\"password\", txtPassword.getText().toString().trim());\n\n edt.commit();\n }", "@Test\n public void iterateTests() throws Exception {\n final int nThreads = 100;\n ExecutorService executor = Executors.newFixedThreadPool(nThreads);\n final AtomicReference<Throwable> ex = new AtomicReference<>(null);\n final int nTasks = 10_000;\n final CountDownLatch latch = new CountDownLatch(nTasks);\n final ConcurrentHashMap<Integer, Future<?>> map = new ConcurrentHashMap<>();\n for (int i = 0; i < nTasks; i++) {\n final int j = i;\n map.put(j, executor.submit(new Runnable() {\n public void run() {\n try {\n testSubmitSilentWithParamMutation();\n testSubmitSilentWithParamMutationUncacheable();\n } catch (Throwable t) {\n ex.compareAndSet(null, t);\n } finally {\n latch.countDown();\n map.remove(j);\n }\n }}));\n }\n System.out.println(\"Waiting on latch\");\n while (!latch.await(30, TimeUnit.SECONDS)) {\n System.out.println(\"Waiting, \" + latch.getCount() + \" outstanding\");\n System.out.println(\"Waiting keys \" + map.keySet());\n }\n executor.shutdown();\n System.out.println(\"Waiting, on executor\");\n executor.awaitTermination(30, TimeUnit.SECONDS);\n executor.shutdownNow();\n if (ex.get() != null) {\n Assert.assertNull(ex.get());\n }\n }", "long getAndSet(long newValue);", "public SimpleReadWriteLock() {\n\n\t\treaderLock = new ReadLock();\n\t\twriterLock = new WriteLock();\n\t\treaders = 0;\n\t\twriters = 0;\n\t\tthis.lock = this;\n\t}", "void updateAccount(Account account);", "List<ReadOnlyTask> getTaskList();", "List<ReadOnlyTask> getTaskList();", "public Task getTask(Integer tid);", "@Override\r\n\t\t\t\t\t\tpublic Void then(Task<List<Transaction>> task)\r\n\t\t\t\t\t\t\t\tthrows Exception {\n\t\t\t\t\t\t\tif (task.isFaulted()) {\r\n\t\t\t\t\t\t\t\tLog.e(CLASS_NAME, \"Exception : \"\r\n\t\t\t\t\t\t\t\t\t\t+ task.getError().getMessage());\r\n\t\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfinal List<Transaction> objects = task.getResult();\r\n\r\n\t\t\t\t\t\t\t// If the result succeeds, load the list\r\n\t\t\t\t\t\t\tif (!isFinishing()) {\r\n\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t// clear local itemList\r\n\t\t\t\t\t\t\t\t\t\t// we'll be reordering and repopulating\r\n\t\t\t\t\t\t\t\t\t\t// from DataService\r\n\t\t\t\t\t\t\t\t\t\titemList.clear();\r\n\t\t\t\t\t\t\t\t\t\tfor (IBMDataObject item : objects) {\r\n\t\t\t\t\t\t\t\t\t\t\titemList.add((Transaction) item);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tsortItems(itemList);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t}" ]
[ "0.51231885", "0.509898", "0.50705504", "0.49530694", "0.4943778", "0.4941172", "0.49345008", "0.49332997", "0.4913565", "0.48709083", "0.48618957", "0.4855905", "0.48359126", "0.48160422", "0.47998592", "0.47886235", "0.47284883", "0.47270918", "0.46800163", "0.4673046", "0.46594018", "0.46576554", "0.4645226", "0.46367717", "0.46314713", "0.46212268", "0.46125177", "0.4592076", "0.45806265", "0.4569876", "0.45610195", "0.4543872", "0.45097232", "0.4490954", "0.449061", "0.44768006", "0.4472054", "0.44673875", "0.4456601", "0.4455406", "0.445265", "0.4420353", "0.4399526", "0.4397977", "0.43976793", "0.43959475", "0.4387523", "0.43760818", "0.43668157", "0.4351459", "0.43421775", "0.43379635", "0.43329936", "0.43267545", "0.43219998", "0.43166193", "0.43155274", "0.43133977", "0.43133223", "0.43127787", "0.4308914", "0.4307471", "0.4306636", "0.42969477", "0.4292427", "0.4291889", "0.42914584", "0.4290188", "0.4288917", "0.42842126", "0.42840296", "0.4276623", "0.42723045", "0.4267024", "0.42641738", "0.42626822", "0.42593625", "0.4257932", "0.4255712", "0.42481548", "0.4247449", "0.42463064", "0.42448425", "0.42432246", "0.4242107", "0.4239719", "0.42374942", "0.42364395", "0.42362633", "0.4235799", "0.42328775", "0.4230418", "0.42302218", "0.42270836", "0.42265773", "0.42259616", "0.42253837", "0.42253837", "0.42218655", "0.4217819" ]
0.43664157
49
TO DO: parseAccount currently returns a reference to an account. You probably want to change it to return a reference to an account cache instead. requires: name != null modifies: cacheList effects: changes the cacheList depending on the input passed in
private Cache parseAccount(String name) { int accountNum = (int) (name.charAt(0)) - (int) 'A'; if (accountNum < A || accountNum > Z) throw new InvalidTransactionError(); Cache c = cacheList[accountNum]; for (int i = 1; i < name.length(); i++) { if (name.charAt(i) != '*') throw new InvalidTransactionError(); accountNum = (cacheList[accountNum].readCache() % numLetters); c = cacheList[accountNum]; } return c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BankAccount lookUp(String name){\n\t\t// create an Entry with the given name, a \"dummy\" accountNumber (1) and zero balance\n\t\t// This \"dummy\" accountNumber will be ignored when executing getData\n\t\tBankAccount lookFor = new BankAccount(name, 1, 0);\n\t\treturn (BankAccount)namesTree.findData(lookFor);\n\t}", "@Override\n\tpublic Account getAccount(Bank bank, String username) {\n\t\tif (cache.contains(bank)){\n\t\t\tfor (Account accountInBank : bank.getAccounts()) {\n\t\t\t\tif (accountInBank.getUsername().equals(username)) {\n\t\t\t\t\treturn accountInBank;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "java.lang.String getAccount();", "List<Account> getAccounts(String login);", "public Account getAccountByOwnerAndName(String user,String accountName);", "@Override public Account provideAccount(String accountJson) {\n return null;\n }", "public interface AccountCache {\n /**\n * Returns an {@code AccountState} instance for the given account ID. If not cached yet the\n * account is loaded. Returns {@link Optional#empty()} if the account is missing.\n *\n * @param accountId ID of the account that should be retrieved\n * @return {@code AccountState} instance for the given account ID, if no account with this ID\n * exists {@link Optional#empty()} is returned\n */\n Optional<AccountState> get(Account.Id accountId);\n\n /**\n * Returns a {@code Map} of {@code Account.Id} to {@code AccountState} for the given account IDs.\n * If not cached yet the accounts are loaded. If an account can't be loaded (e.g. because it is\n * missing), the entry will be missing from the result.\n *\n * <p>Loads accounts in parallel if applicable.\n *\n * @param accountIds IDs of the account that should be retrieved\n * @return {@code Map} of {@code Account.Id} to {@code AccountState} instances for the given\n * account IDs, if an account can't be loaded (e.g. because it is missing), the entry will be\n * missing from the result\n */\n Map<Account.Id, AccountState> get(Set<Account.Id> accountIds);\n\n /**\n * Returns an {@code AccountState} instance for the given account ID. If not cached yet the\n * account is loaded. Returns an empty {@code AccountState} instance to represent a missing\n * account.\n *\n * <p>This method should only be used in exceptional cases where it is required to get an account\n * state even if the account is missing. Callers should leave a comment with the method invocation\n * explaining why this method is used. Most callers of {@link AccountCache} should use {@link\n * #get(Account.Id)} instead and handle the missing account case explicitly.\n *\n * @param accountId ID of the account that should be retrieved\n * @return {@code AccountState} instance for the given account ID, if no account with this ID\n * exists an empty {@code AccountState} instance is returned to represent the missing account\n */\n AccountState getEvenIfMissing(Account.Id accountId);\n\n /**\n * Returns an {@code AccountState} instance for the given username.\n *\n * <p>This method first loads the external ID for the username and then uses the account ID of the\n * external ID to lookup the account from the cache.\n *\n * @param username username of the account that should be retrieved\n * @return {@code AccountState} instance for the given username, if no account with this username\n * exists or if loading the external ID fails {@link Optional#empty()} is returned\n */\n Optional<AccountState> getByUsername(String username);\n\n /**\n * Returns an {@code AccountState} instance for the given account ID at the given {@code metaId}\n * of {@link com.google.gerrit.entities.RefNames#refsUsers} ref.\n *\n * <p>The caller is responsible to ensure the presence of {@code metaId} and the corresponding\n * meta ref. The method does not populate {@link AccountState#defaultPreferences}.\n *\n * @param accountId ID of the account that should be retrieved.\n * @param metaId the sha1 of commit in {@link com.google.gerrit.entities.RefNames#refsUsers} ref.\n * @return {@code AccountState} instance for the given account ID at specific sha1 {@code metaId}.\n */\n @UsedAt(Project.GOOGLE)\n AccountState getFromMetaId(Account.Id accountId, ObjectId metaId);\n}", "public static List<AccountDTO> getDFPAccountsFromCache(String key) {\n\t \tList<AccountDTO> accountDFPList = null;\n\t\t\tkey = ACCOUNTS_DFP_KEY+\"-\"+key;\n\t \tif(memcache !=null && memcache.contains(key)){\n\t \t\taccountDFPList = (List<AccountDTO>) memcache.get(key);\n\t \t} \t\n\t \treturn accountDFPList;\n\t\t}", "public final AfAccount getAccount(String accountName) {\n return _accounts.get(accountName);\n }", "public abstract GDataAccount getAccount(String account) throws ServiceException;", "public AccountInterface getAccount(String _address) {\n\t\tfor (AccountInterface account: accounts) {\n\t\t\tif (account.getAddress().equals(_address))\n\t\t\t\treturn account;\n\t\t}\n\t\treturn null;\t\t\n\t}", "AccountDetail getAccount(String number) throws Exception;", "Account getAccount();", "@Override\r\n\tpublic Account findByName(String name) {\n\t\treturn null;\r\n\t}", "private int parseAccountOrNum(String name) {\n \tint rtn;\n if (name.charAt(0) >= '0' && name.charAt(0) <= '9') {\n rtn = new Integer(name).intValue();\n }\n else {\n \trtn = parseAccount(name).readCache();\n }\n return rtn;\n }", "public static Account getAccount(String accountId) {\r\n return (accounts.get(accountId));\r\n }", "private CreditCardAccount selectCreditcardAccount (final String sharedSecret,\r\n final String accountNumber,\r\n final List<CreditCardAccount> accountList) {\r\n\r\n for (CreditCardAccount account : accountList) {\r\n String decryptAccount = securityEncryptionUtil.decrypt( account.getEncryptedAccountNumber(), sharedSecret);\r\n if (accountNumber.equals(decryptAccount)) {\r\n return account;\r\n }\r\n\r\n final List<CreditCardMemberAccount> memberList = account.getCreditCardMemberAccountList();\r\n if (memberList != null && !memberList.isEmpty()){\r\n for (CreditCardMemberAccount member : memberList) {\r\n String decryptMember = securityEncryptionUtil.decrypt( member.getEncryptedAccountNumber(), sharedSecret);\r\n if (accountNumber.equals(decryptMember)) { return account; }\r\n }\r\n }\r\n }\r\n return null;\r\n }", "public final AfAccount reloadAccount(String account_name) {\n if ( account_name == null || account_name == \"\") {\n LOGGER.warn(\"The account_name is empty for reloadAccount.\");\n return null;\n }\n DBUtil.select(\n \"select id, created, account_name, account_pass, account_email from \"\n + ConfigUtil.getAntiFraudDatabaseSchema()\n + \".af_account where account_name = ?\",\n new ResultSetProcessor() {\n @Override\n public void process(ResultSet resultSet) throws SQLException {\n if (resultSet.next()) {\n createAccountFromResultSet(resultSet);\n }\n }\n }, account_name);\n return null;\n }", "public Account getAccount(Player p) {\n\t\tif (p == null)\n\t\t\treturn null; // safety\n\t\t// If the account is in memory, return it\n\t\tfor ( Account a : accounts) {\n\t\t\tif (a.isFor(p.getUniqueId()))\n\t\t\t\treturn a;\n\t\t}\n\t\t// spawn a new account object with default values\n\t\tAccount acct = new Account(p.getName(), p.getUniqueId());\n\t\t// load account status from yml file, if it exists\n\t\tacct.openAccount();\n\t\t// append to the bank list\n\t\taccounts.add(acct);\n\t\treturn acct;\n\t}", "public Account getAccount(String name) {\n\t\tPlayer p = Bukkit.getPlayer(name);\n\t\tif (p == null)\n\t\t\treturn null;\n\t\treturn getAccount(p);\n\t}", "public Account getAccount(String address) {\n Account account = accounts.get(address);\n if (account == null) {\n account = createAccount(SHA3Util.hexToDigest(address));\n accounts.put(address, account);\n }\n return account;\n }", "public Cache getCache(String name)\r\n/* 39: */ {\r\n/* 40:64 */ return (Cache)this.cacheMap.get(name);\r\n/* 41: */ }", "private Account getAccount( int accountNumber )\n {\n for( Account currentAccount : accounts )\n {\n if( currentAccount.getAccountNumber() == accountNumber )\n {\n return currentAccount;\n }\n \n }\n return null;\n }", "private static Account getAccount(Node node) {\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n int accNum = Integer.parseInt(getTagValue(\"accountNumber\", element));\n String password = getTagValue(\"password\", element);\n double balance = Double.parseDouble(getTagValue(\"accountBalance\", element));\n String cusName = getTagValue(\"customerName\", element);\n String cusAddress = getTagValue(\"customerAddress\", element);\n String cusPhone = getTagValue(\"customerPhoneNum\", element);\n return new Account(accNum, password, balance, cusName, cusAddress, cusPhone);\n }\n return new Account();\n }", "Account getAccount(Integer accountNumber);", "public BankAccountInterface getAccount(String accountID){\n BankAccountInterface account = null;\n for(int i = 0; i < accounts.size(); i++){\n if(accounts.get(i).getAccountID().equals(accountID)){\n account = accounts.get(i);\n break;\n } \n }\n return account;\n }", "public List<Account> getAccounts(String customerName){\n List<Account> accounts = new ArrayList<>();\n try {\n accounts = getAccountsFromFile();\n } catch (Exception e) {\n System.out.println(messageService.unexpectedError(e));\n }\n System.out.println(accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList()));\n return accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList());\n }", "CloudCache getCache(String cacheName);", "private void consumeAccountInfo() {\n Account[] accounts = mAccountManager.getAccountsByType(ACCOUNT_TYPE);\n Account account;\n if (accounts != null && accounts.length > 0) {\n account = accounts[0];\n } else {\n account = new Account(\"\", ACCOUNT_TYPE);\n }\n mAccountManager.getAuthToken(account, AUTH_TOKEN_TYPE, null, true, authTokenCallback, null);\n }", "public String getAccount() {\r\n return account;\r\n }", "public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n account_ = s;\n return s;\n }\n }", "public LocalAccount\t\tgetAccount();", "private void initAccountChoiceCache() {\n \tArrayList<AlertMeStorage.AlertMeUser> accounts = alertMe.getUserAccountList();\n \t//AlertMeStorage.AlertMeUser currentAcc = alertMe.getCurrentSession();\n \tint accSize = (accounts!=null && !accounts.isEmpty())? accounts.size():0;\n\t\tif (AlertMeConstants.DEBUGOUT) Log.w(TAG, \"initAccountChoiceCache() START\");\n \taccountNamesChoiceList = null;\n \taccountIDsChoiceList = null;\n \tif (accSize>1) {\n \t\tint i = 0;\n \t\tint cSz = accSize;\n \t\tCollections.sort(accounts, AlertMeStorage.AlertMeUser.getComparator(false));\n \t\taccountNamesChoiceList = new String[cSz];\n \t\taccountIDsChoiceList = new long[cSz];\n \t\tfor (AlertMeStorage.AlertMeUser account: accounts) {\n \t\t\tboolean addToList = false;\n \t\t\tif (account!=null && account.id!=-1) {\n \t\t\t\taddToList = true;\n \t\t\t}\n \t\t\tif (addToList) {\n \t\t\t\taccountNamesChoiceList[i] = account.username;\n \t\t\t\taccountIDsChoiceList[i] = account.id;\n \t\t\t\ti++;\n \t\t\t}\n \t\t}\n \t}\n\t\tif (AlertMeConstants.DEBUGOUT) Log.w(TAG, \"initAccountChoiceCache() END\");\n }", "public Account searchAccounts(Account account) {\n\t\treturn null;\r\n\t}", "public interface Account {\n\n\tpublic String getId();\n\n\tpublic String getEmail();\n\n\tpublic AccountState getState();\n\tpublic void setState(AccountState state);\n\t\n\tpublic void setEmail(String email);\n\n\tpublic String getCompanyName();\n\n\tpublic void setCompanyName(String companyName);\n\n\tpublic Name getFullName();\n\n\tpublic void setFullName(Name fullName);\n\n\tpublic Address getAddress();\n\n\tpublic void setAddress(Address address);\n\t\n\tpublic Map<String, String> getExternalAccounts();\n\t\n\tpublic void setExternalAccounts(Map<String, String> externalAccounts);\n\t\n}", "public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "private Account findAccount(String name, String email) throws AccountNotFoundException {\n for (Account current: accounts) {\n if (name.equals(current.getName()) && email.equals(current.getEmail())) {\n return current;\n }\n }\n throw new AccountNotFoundException();\n }", "private Cache.Entry parseCache(NetworkResponse response) {\n if (response.headers.get(\"Expires\") != null\n || response.headers.get(\"Cache-Control\") != null\n || response.headers.get(\"ETag\") != null) {\n return HttpHeaderParser.parseCacheHeaders(response);\n } else {\n return null;\n }\n }", "public Account getAccount(String username)\n\t {\n\t\t Account account = null;\n\t\t \n\t\t String columns[] = new String[] {DatabaseContract.AccountContract.COLUMN_NAME_USERNAME,\n\t\t\t\t \t\t\t\t\t\t\tDatabaseContract.AccountContract.COLUMN_NAME_BALANCE,\n\t\t\t\t \t\t\t\t\t\t\tDatabaseContract.AccountContract.COLUMN_NAME_AUTH_TOKEN};\n\t\t \n\t\t String where = DatabaseContract.AccountContract.COLUMN_NAME_USERNAME + \" = ? \";\n\t\t \n\t\t Cursor cursor = db.query(DatabaseContract.AccountContract.TABLE_NAME,\n\t\t\t\t columns,\n\t\t\t\t where,\n\t\t\t\t new String[] {username},\n\t\t\t\t null, null, null);\n\t\t\n\t\t if(cursor.getCount() > 0)\n\t\t {\n\t\t\t cursor.moveToFirst();\n\t\t\t \n\t\t\t int userCol = cursor.getColumnIndex(DatabaseContract.AccountContract.COLUMN_NAME_USERNAME);\n\t\t\t int balCol = cursor.getColumnIndex(DatabaseContract.AccountContract.COLUMN_NAME_BALANCE);\n\t\t\t int authCol = cursor.getColumnIndex(DatabaseContract.AccountContract.COLUMN_NAME_AUTH_TOKEN);\n\t\t\t \n\t\t\t String usernameString = cursor.getString(userCol);\n\t\t\t String authTokenString = cursor.getString(authCol);\n\t\t\t int balance = cursor.getInt(balCol);\n\t\t\t \n\t\t\t account = new Account(usernameString, authTokenString, balance); \n\t\t }\n\t\t \n\t\t cursor.close();\n\t\t return account;\n\t }", "public String getAccount() {\r\n\t\treturn account;\r\n\t}", "public static Map<String,String> getBQAccountsFromCache(String key){\n\t\t\tMap<String,String> accountDFPMap=null;\n\t\t\tkey = ACCOUNTS_BQ_KEY+\"-\"+StringUtil.getHashedValue(key);\n\t \tif(memcache !=null && memcache.contains(key)){\n\t \t\taccountDFPMap=(Map<String,String>) memcache.get(key);\n\t \t} \t\n\t \treturn accountDFPMap;\n\t\t}", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public void setAccount(String account) {\n this.account = account;\n }", "public void setAccount(String account) {\n this.account = account;\n }", "public void setAccount(String account) {\n this.account = account;\n }", "public void setAccount(String account) {\n this.account = account;\n }", "private Account getAccount(int accountNumber) {\r\n // loop through accounts searching for matching account number\r\n for (Account currentAccount : accounts) {\r\n // return current account if match found\r\n if (currentAccount.getAccountNumber() == accountNumber) {\r\n return currentAccount;\r\n }\r\n }\r\n\r\n return null; // if no matching account was found, return null\r\n }", "public Account load() throws IOException {\n Account account = new Account();\n try {\n FileReader fileReader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n //if (line.contains(\"#\")) { continue; }\n String[] info = line.split(\" @ \");\n\n switch (info[0]) {\n case \"INIT\":\n account.setToInitialize(Boolean.parseBoolean(info[1]));\n break;\n case \"BS\":\n account.setBaseSavings(Float.parseFloat((info[1])));\n break;\n case \"INC\":\n parseIncome(info, account);\n break;\n case \"EXP\":\n parseExpenditure(info, account);\n break;\n case \"G\":\n parseGoal(info, account);\n break;\n case \"INS\":\n parseInstalment(info, account);\n break;\n case \"LOA\":\n parseLoan(info, account);\n break;\n case \"BAN\":\n parseBankAccount(info, account);\n break;\n default:\n throw new DukeException(\"OOPS!! Your file has been corrupted/ input file is invalid!\");\n }\n }\n bufferedReader.close();\n } catch (FileNotFoundException err) {\n final File parentDir = new File(\"dataFG\");\n parentDir.mkdir();\n final String hash = \"moneyAccount\";\n final String fileName = hash + \".txt\";\n final File file = new File(parentDir, fileName);\n file.createNewFile();\n } catch (IOException | DateTimeParseException | DukeException e) {\n e.printStackTrace();\n }\n return account;\n }", "public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n account_ = s;\n }\n return s;\n }\n }", "net.nyhm.protonet.example.proto.AccountProto.Account getAccount();", "net.nyhm.protonet.example.proto.AccountProto.Account getAccount();", "public String getAccount(){\n\t\treturn account;\n\t}", "@Override\n\tpublic Account getAccount(String username) {\n\t\treturn map.get(username);\n\t}", "private void parseBankAccount(String[] info, Account account) {\n BankTracker b = new BankTracker(info[2], Float.parseFloat(info[1]), LocalDate.parse(info[3]),\n Double.parseDouble(info[4]));\n account.getBankTrackerList().add(b);\n }", "public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setAccount(String account) {\r\n\t\tthis.account = account;\r\n\t}", "public Account getAccount(int index) {\n\n\t\ttry {\n\t\t\treturn accounts.get(index);\n\t\t} catch (IndexOutOfBoundsException ex) {\n\t\t\treturn null;\n\t\t}\n\t}", "public Account getAccount(int accound_index){\n return accounts[accound_index];\n }", "@Override\r\n\tpublic Account loadAccount(String accountNumber) {\n\t\tAccount account1=null;\r\n\t\ttry {\r\n\t\t\taccount1 = account.getclone(account);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tString sql = \"SELECT a.accountNumber, a.balance, a.accountType, b.name, b.email, c.street, c.city, c.zip, c.state \"+\r\n \"FROM customer b \"+\r\n \"INNER JOIN address c \"+\r\n \"ON b.addressID = c.ID \"+\r\n \"INNER JOIN account a \"+\r\n \"ON b.ID = a.CustomerID \"+\r\n\t\t\"WHERE a.accountNumber = \"+accountNumber+\";\" ;\r\n\t\tPreparedStatement preparedStatement;\r\n\r\n\r\n\r\ntry {\r\n\r\n\tpreparedStatement = con.prepareStatement(sql);\r\n\t\r\n\t\r\n ResultSet rs=preparedStatement.executeQuery();\r\n\r\n\r\n while ( rs.next() ) {\r\n \taccount1.setAccountNumber(Integer.toString(rs.getInt(1)));\r\n \taccount1.setBalance((double) rs.getInt(2));\r\n \tAccountType accty=BankAccountType.CHECKING;\r\n \tif(\"SAVING\".equalsIgnoreCase(rs.getString(3))){\r\n \t\taccty=BankAccountType.SAVING;\r\n \t}\r\n \taccount1.setAccountType(accty);\r\n \taccount1.getCustomer().setName(rs.getString(4));\r\n \taccount1.getCustomer().setEmail(rs.getString(5));\r\n \taccount1.getCustomer().getAddress().setStreet(rs.getString(6));\r\n \taccount1.getCustomer().getAddress().setCity(rs.getString(7));\r\n \taccount1.getCustomer().getAddress().setZip(rs.getString(8));\r\n \taccount1.getCustomer().getAddress().setState(rs.getString(9));\r\n \taccount1.setAccountEntries(getAccountEntry(accountNumber));\r\n \t\r\n System.out.println(account1);\r\n \r\n }\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\tSystem.out.println(\"Connection Failed! Check output console\");\r\n\te.printStackTrace();\r\n}\r\nlog();\r\n\r\n \r\nreturn account1;\r\n\t}", "public void setAccountList(List<Account> accountList) {\r\n this.accountList = accountList;\r\n }", "@Override\n\tpublic Account createAccount(Account account) {\n\t\tif(account != null) {\n\t\t\taccountList.add(account);\n\t\t\treturn account;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "private static void lookupAccount(String email) {\n\t\t\n\t}", "public interface Account extends LrsObject {\n /**\n * The canonical home page for the system the account is on. This is based on FOAF's accountServiceHomePage.\n */\n InternationalizedResourceLocator getHomePage();\n\n /**\n * The unique id or name used to log in to this account. This is based on FOAF's accountName.\n */\n String getName();\n}", "public com.google.protobuf.ByteString\n getAccountBytes() {\n java.lang.Object ref = account_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n account_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public BellvilleAccountant read(String account){\n BellvilleAccountant bellAccount = findAccountant(account);\r\n return bellAccount;\r\n }", "String getAccountList(int accountId);", "int updateAccountInfo(Account account);", "public com.google.protobuf.ByteString\n getAccountBytes() {\n java.lang.Object ref = account_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n account_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "interface OfBizUserCache {\n /**\n * Retrieve a User by userName case insensitively.\n *\n * @param directoryId The directory.\n * @param userName User name.\n * @return A user.\n */\n OfBizUser getCaseInsensitive(long directoryId, String userName);\n\n /**\n * Retrieve all Users by id given a list of ids.\n *\n * @param directoryId The directory.\n * @param userIds List of user Ids\n * @return A list of {@link OfBizUser}.\n */\n List<OfBizUser> getAllCaseInsensitive(long directoryId, Collection<String> userIds);\n\n /**\n * Remove a user from the cache.\n *\n * @param directoryId The directory.\n * @param userName User name.\n */\n void remove(long directoryId, String userName);\n\n /**\n * Remove a user from the cache.\n *\n * @param key The Users key\n */\n void remove(DirectoryEntityKey key);\n\n /**\n * Visit all the users in the directory.\n * Some implementations may process this directly from the underlying persistent store rather than the\n * cache if they do not keep a canonical set of all users in the cache.\n *\n * @param directoryId The directory\n * @param visitor A Visitor\n */\n void visitAllUserIdsInDirectory(long directoryId, Visitor<String> visitor);\n\n /**\n * Refresh the cache entry for the supplied user.\n * Should be called when a user is added or updated. The implementation may do this\n * either by storing he supplied value or refreshing the data from the underlying persistent store.\n *\n * @param user User to be refreshed in the cache\n * @return The key of the user.\n */\n DirectoryEntityKey refresh(OfBizUser user);\n\n /**\n * Refresh all entries in the cache.\n */\n void refresh();\n\n /**\n * Return true if the cache is initialised and can be used.\n * JIRA relies heavily on having access to users and if the cache needs time to initialise before it\n * can be relied on to provide correct results, JIRA needs to wait.\n *\n * @return true if initialised.\n */\n boolean isCacheInitialized();\n}", "public BankAccount lookUp(int accountNumber){\n\t\t// create an Entry with a \"dummy\" name, zero balance and the given accountNumber\n\t\t// This \"dummy\" name will be ignored when executing getData\n\t\tBankAccount lookFor = new BankAccount(\"dummy\", accountNumber,0);\n\t\treturn (BankAccount)accountNumbersTree.findData(lookFor);\n\t}", "private void lookupUserAccount() {\n String userId = tokens.getString(\"principalID\", \"\");\n String accessToken = tokens.getString(\"authorisationToken\", \"\");\n\n if (!\"\".equals(userId) && !\"\".equals(accessToken)) {\n // Make new json request\n String url = String.format(Constants.APIUrls.lookupUserAccount, userId);\n JsonRequest jsonRequest = new JsonObjectRequest(Request.Method.GET, url, null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n String email;\n try {\n email = response.getString(\"email\");\n } catch (JSONException ex){\n email = \"unknown\";\n }\n String name;\n try{\n JSONObject nameObject = response.getJSONObject(\"name\");\n String firstName = nameObject.getString(\"givenName\");\n String lastName = nameObject.getString(\"familyName\");\n name = firstName + \" \" + lastName;\n } catch (JSONException ex){\n name = \"unknown\";\n }\n Boolean accountBlocked;\n try{\n JSONObject accountInfo = response.getJSONObject(\"urn:mace:oclc.org:eidm:schema:persona:wmscircselfinfo:20180101\").getJSONObject(\"circulationInfo\");\n accountBlocked = accountInfo.getBoolean(\"isCircBlocked\");\n } catch (JSONException ex){\n ex.printStackTrace();\n accountBlocked = true;\n }\n String borrowerCategory;\n try {\n JSONObject accountInfo = response.getJSONObject(\"urn:mace:oclc.org:eidm:schema:persona:wmscircselfinfo:20180101\").getJSONObject(\"circulationInfo\");\n borrowerCategory = accountInfo.getString(\"borrowerCategory\");\n } catch (JSONException ex){\n borrowerCategory = \"\";\n }\n String userBarcode;\n try {\n JSONObject accountInfo = response.getJSONObject(\"urn:mace:oclc.org:eidm:schema:persona:wmscircselfinfo:20180101\").getJSONObject(\"circulationInfo\");\n userBarcode = accountInfo.getString(\"barcode\");\n } catch (JSONException ex){\n userBarcode = \"\";\n }\n tokens.edit().putString(\"name\", name).apply();\n tokens.edit().putString(\"email\", email).apply();\n tokens.edit().putBoolean(\"accountBlocked\", accountBlocked).apply();\n tokens.edit().putString(\"borrowerCategory\", borrowerCategory).apply();\n tokens.edit().putString(\"userBarcode\", userBarcode).apply();\n sendBroadcast(new Intent(Constants.IntentActions.LOOKUP_USER_ACCOUNT_RESPONSE));\n LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(new Intent(Constants.IntentActions.LOOKUP_USER_ACCOUNT_RESPONSE));\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n sendBroadcast(new Intent(Constants.IntentActions.LOOKUP_USER_ACCOUNT_ERROR));\n }\n }\n ){\n @Override\n public Map<String, String> getHeaders() {\n Map<String, String> headers = new HashMap<>();\n headers.put(\"Authorization\", accessToken);\n return headers;\n }\n };\n\n requestQueue.add(jsonRequest);\n\n\n Log.e(TAG, \"user response sent\");\n }\n\n }", "public CarerAccount getAccountWithUsername(String search){\n\t\tCarerAccount item = null;\n\n\t\tint count = 0;\n for (int i = 0; i < CarerAccounts.size(); ++i) {\n if (CarerAccounts.get(i).getUsername().equals(search)){\n\t\t\t\tcount++;\n item = CarerAccounts.get(i);\n\t\t\t}\n\t\t}\n\t\treturn item;\n\t}", "Optional<Account> getAccountByUsername(String username);", "@Override\n\tpublic Account getAccount(Integer id) {\n\t\tfor(Account account:accountList) {\n\t\t\tif(id.compareTo(account.returnAccountNumber()) == 0 ) {\n\t\t\t\treturn account;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public\n Account\n getAccount()\n {\n return itsAccount;\n }", "@Override\n\tpublic List<Account> getAccountsByName(String name) {\n\t\treturn jdbcTemplate.query(\"select * from account where locate(?, name)>0 \", new Object[]{name}, new BeanPropertyRowMapper(Account.class));\n\t}", "private static Account createAndStoreAccount(String fileName, String GID, String name, Context activity) {\r\n\t\tAccount newAccount = new Account(GID, name); \r\n\t\tAccount.currentAccount = newAccount;\r\n\t\t\r\n\t try {\r\n\t //use buffering\r\n\t FileOutputStream fos = activity.openFileOutput(fileName, Context.MODE_PRIVATE);\r\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\r\n\t\t\toos.writeObject(newAccount); \r\n\t try {\r\n\t \toos.writeObject(newAccount);\r\n\t }\r\n\t finally {\r\n\t \toos.close();\r\n\t }\r\n\t } \r\n\t catch(IOException ex){\r\n\t System.out.println(\"Cannot perform output.\");\r\n\t }\r\n\t\t\r\n\t\treturn newAccount;\r\n\t}", "public java.util.List<Reference> account() {\n return getList(Reference.class, FhirPropertyNames.PROPERTY_ACCOUNT);\n }", "public Account getAccount(byte[] address) {\n String addressAsHex = SHA3Util.digestToHex(address);\n Account account = accounts.get(addressAsHex);\n if (account == null) {\n account = createAccount(address);\n accounts.put(addressAsHex, account);\n }\n return account;\n }", "private void loadAccounts() {\n JsonReader jsonReader = null;\n try {\n jsonReader = new JsonReader(parkinglots, \"account\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n try {\n accounts = jsonReader.findall();\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n }", "public com.google.protobuf.ByteString\n getAccountBytes() {\n java.lang.Object ref = account_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n account_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Builder setAccount(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n account_ = value;\n onChanged();\n return this;\n }", "public ArrayList<Company> updateCacheList() {\n ParseQuery<Company> query = ParseQuery.getQuery(PARSE_NAME);\n\n try {\n Company.pinAll(\"companyList\", query.find());\n } catch (ParseException e) {\n Log.e(PARSE_NAME, \"Unable to find any merchant from Parse Database:\\n\" + e.getMessage());\n }\n\n return getCompaniesFromCache();\n }", "@Override\r\n\tpublic AccountDTO getAccount(String email) {\n\t\treturn accountDao.getAccount(email);\r\n\t}", "public com.google.protobuf.ByteString\n getAccountBytes() {\n java.lang.Object ref = account_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n account_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public CacheEntry searchWithCache(String name) {\n CacheEntry entry = cacheHit(name);\n \n if (entry != null) return entry;\n \n // we grab serial number first; the worst that will happen is we cache a later\n // update with an earlier serial number, which would just flush anyway\n Object token = getCacheToken();\n DynamicMethod method = searchMethodInner(name);\n \n return method != null ? addToCache(name, method, token) : addToCache(name, UndefinedMethod.getInstance(), token);\n }", "private void loadCreditCardAccounts(String creditCardAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(creditCardAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data.\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n double limit = Double.parseDouble(splitLine[10]);\n String creditCardNumber = splitLine[11];\n int cvv = Integer.parseInt(splitLine[12]);\n\n CreditCard creditCardAccount = new CreditCard(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n limit,\n creditCardNumber,\n cvv);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n creditCardAccount.setTransactions(accountTransactions);\n\n //add credit cards\n accounts.add(creditCardAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public AccountInfo getAccount()\n {\n if(accountInfo == null)\n {\n System.out.println(\"You need to generate an account before getting the details.\");\n return null;\n }\n return accountInfo;\n }", "@Override\r\n\tpublic Account getAccountHashmap(String accnum) {\n\t\treturn dataMap.get(accnum);\r\n\t}", "public MnoAccount getAccountById(String id);", "public Account(String accountName) throws AccountException{\n\n\t\t\tif (accountName.length() < 5)\n\t\t\t\tthrow new AccountException (AccountException.NAME_TOO_SHORT, accountName);\n\t\t\tboolean valid = true;\n\t\t\tchar[] a = accountName.toCharArray();\n\t\t\tfor (char c: a) {\n\t\t\t\tvalid = ((c >= 'a') && (c <= 'z')) ||\n\t\t\t\t\t\t((c >= 'A') && (c <= 'Z')) ||\n\t\t\t\t\t\t((c >= '0') && (c <= '9'));\n\t\t\t\tif (!valid) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!valid) throw new AccountException (AccountException.NAME_TOO_SIMPLE, accountName);\n\t\t\tthis.name = accountName;\n\t}" ]
[ "0.5741877", "0.5687785", "0.5667125", "0.5615579", "0.5602726", "0.55918664", "0.5563374", "0.55468524", "0.55411214", "0.55055267", "0.55026186", "0.5500038", "0.5488214", "0.5486121", "0.54808956", "0.54724294", "0.54622805", "0.54416835", "0.5408844", "0.53857833", "0.5373417", "0.53696895", "0.5353173", "0.5330138", "0.5310007", "0.5247678", "0.52430695", "0.52084285", "0.5187909", "0.51872873", "0.51720357", "0.51622695", "0.5157354", "0.5148215", "0.5144886", "0.5143761", "0.51394427", "0.51356894", "0.51315534", "0.5123366", "0.5112445", "0.51117504", "0.51117504", "0.51117504", "0.51117504", "0.51117504", "0.51117504", "0.51117504", "0.51117504", "0.51117504", "0.51117504", "0.51109695", "0.51109695", "0.51109695", "0.51109695", "0.51023453", "0.50892794", "0.5081112", "0.50805086", "0.50805086", "0.50798917", "0.5078969", "0.5078913", "0.5054127", "0.50518346", "0.50466424", "0.5044963", "0.50313526", "0.50177765", "0.5013311", "0.5003053", "0.49975502", "0.49947435", "0.49936825", "0.4993217", "0.49904624", "0.49739763", "0.49652302", "0.4964124", "0.49631852", "0.49506313", "0.49485347", "0.4942396", "0.49394143", "0.4938445", "0.4929316", "0.4928206", "0.4920526", "0.49001312", "0.48894075", "0.4887709", "0.48840562", "0.48695493", "0.486619", "0.48589683", "0.48510092", "0.48370013", "0.4836238", "0.48329735", "0.48324433" ]
0.7414965
0
requires: name != null modifies: n/a effects: returns a integer value of a string, or returns the value in the cacheList
private int parseAccountOrNum(String name) { int rtn; if (name.charAt(0) >= '0' && name.charAt(0) <= '9') { rtn = new Integer(name).intValue(); } else { rtn = parseAccount(name).readCache(); } return rtn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cache getCache(String name)\r\n/* 39: */ {\r\n/* 40:64 */ return (Cache)this.cacheMap.get(name);\r\n/* 41: */ }", "public TypeLikeUtilityVariableCache(String name) {\n this.name = name;\n }", "@Override\n public V get( final K name )\n {\n final ICacheElement<K, V> element = this.getCacheControl().get( name );\n\n return ( element != null ) ? element.getVal() : null;\n }", "public Cache.Entry get(String param1) {\n }", "public CacheEntry searchWithCache(String name) {\n CacheEntry entry = cacheHit(name);\n \n if (entry != null) return entry;\n \n // we grab serial number first; the worst that will happen is we cache a later\n // update with an earlier serial number, which would just flush anyway\n Object token = getCacheToken();\n DynamicMethod method = searchMethodInner(name);\n \n return method != null ? addToCache(name, method, token) : addToCache(name, UndefinedMethod.getInstance(), token);\n }", "@Override\n public ICacheElement<K, V> getCacheElement( final K name )\n {\n return this.getCacheControl().get( name );\n }", "int value(String name);", "private Cache parseAccount(String name) {\n int accountNum = (int) (name.charAt(0)) - (int) 'A';\n if (accountNum < A || accountNum > Z)\n throw new InvalidTransactionError();\n Cache c = cacheList[accountNum];\n \n for (int i = 1; i < name.length(); i++) {\n if (name.charAt(i) != '*') throw new InvalidTransactionError();\n accountNum = (cacheList[accountNum].readCache() % numLetters); \n c = cacheList[accountNum];\n }\n \n return c;\n }", "Object getValueFromLocalCache(Object key);", "@Override\r\n public void setCaching(int parseInt) {\n\r\n }", "@Test\n public void testCoh3710_get()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertNull(getNamedCache(getCacheName0()).get(Integer.valueOf(1)));\n }\n });\n }", "public V fetch(String name) {\n return mCache.fetch(name, mSource);\n }", "private int entityValue(String name)\n\t{\n\t\treturn map.value(name);\n\t}", "public cacheEntry(int key, String value){\n int key;\n String value;\n cacheEntry(int key){\n this.key = key;\n this.value = value;\n }\n}", "DataElement getFromCache(String dataElementName);", "String lookupMashFromName(String name);", "@Test\n public void testCoh3710_containsValue()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertFalse(getNamedCache(getCacheName0()).containsValue(Integer.valueOf(1)));\n }\n });\n }", "@Override\n\tpublic int updateCacheData(String paramString1, String paramString2,\n\t\t\tString paramString3)\n\t{\n\t\treturn 0;\n\t}", "CloudCache getCache(String cacheName);", "private void addOne(String value){\n\t\tif (numCache.containsKey(value)){\n\t\t\tnumCache.put(value, numCache.get(value) + 1);\n\t\t}else{\n\t\t\tnumCache.put(value, 1);\n\t\t}\n\t}", "public static int a(String name) {\n/* 80 */ String value = (String)a.get(name);\n/* 81 */ return (value != null) ? value.charAt(0) : -1;\n/* */ }", "public static int lookup (String name)\n {\n\tInteger result = MAP.get (name.toLowerCase ());\n\n\treturn (result == null) ? -1 : result;\n }", "void cache(String key, T value) throws IOException;", "public static String get(String name) {\n\t\tJSONObject user = TUser_CACHE.get();\n\n\t\tif (user != null) {\n\t\t\treturn user.getString(name);\n\t\t}\n\n\t\treturn null;\n\t}", "public static String getCacheName1()\n {\n return s_sCacheName1;\n }", "public static String getCacheName0()\n {\n return s_sCacheName0;\n }", "public int getInt(String name)\n/* */ {\n/* 908 */ return getInt(name, 0);\n/* */ }", "private int getCost(final String name) {\n\t\treturn getValue(name, COST);\n\t}", "@Test\n public void testFindViaCache() {\n Integer hitRate1 = hitRate;\n Integer foundId = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate1, hitRate); // No change expected yet\n \n Integer hitRate2 = hitRate;\n Integer foundId2 = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate, new Integer(hitRate2+1)); // A cache hit is expected\n }", "@Override\n\tpublic Object getBeanCache(String name) {\n\t\treturn null;\n\t}", "private Long cachedPkValue(String ename) {\n\t\tStack s = cacheStack(ename);\n\t\tif (s.empty()) {\n\t\t\tsynchronized (s) {\n\t\t\t\tif (s.empty()) {\n\t\t\t\t\tfillPkCache(s, ename);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tLong pkValue = (Long) s.pop();\n\t\treturn pkValue;\n\t}", "List<CacheHealth> getCacheHealth(Set<String> cacheNames);", "@Override\n\tprotected String getCacheName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Object get(String name, Serializable key) throws CacheException {\n\t\treturn null;\n\t}", "private String getLocalValue(int key)\n {\n // binary search, since the list is sorted\n int start = 0;\n int end = cache.size() - 1;\n while (start <= end)\n {\n int mid = (start + end) / 2;\n Record currentRecord = cache.get(mid);\n if (key == currentRecord.key())\n {\n return currentRecord.value();\n }\n else if (key < currentRecord.key())\n {\n end = mid - 1;\n }\n else\n {\n start = mid + 1;\n }\n }\n \n // not found\n return null; \n }", "@Override\n public void addCache(String cacheName) {\n scanList.add(cacheName);\n }", "private synchronized int[] getLookupCache(String name) {\n if (this.lookupCacheURLs != null && (lookupCacheEnabled ^ 1) == 0) {\n int[] cache = getLookupCacheForClassLoader(this.lookupCacheLoader, name);\n if (cache != null && cache.length > 0) {\n int maxindex = cache[cache.length - 1];\n if (!ensureLoaderOpened(maxindex)) {\n if (DEBUG_LOOKUP_CACHE) {\n System.out.println(\"Expanded loaders FAILED \" + this.loaders.size() + \" for maxindex=\" + maxindex);\n }\n }\n }\n }\n }", "public static Constant construct(String name){\n Constant retVal = cache.get(name);\n if (retVal == null) {\n retVal = new Constant(name);\n cache.put(name, retVal);\n }\n return retVal;\n }", "private int getValue(final String name, final String key) {\n\t\treturn Integer.parseInt(bundleConstants.getString(name + SEPERATOR + key));\n\t}", "public int getValue(String name) {\n String path = ITEMS_PATH + name + \".json\";\n HashMap<String, Integer> item = null;\n Gson gson = new Gson();\n try {\n BufferedReader bufferedReader = new BufferedReader(new FileReader(path));\n Type type = new TypeToken<HashMap<String, Integer>>() {\n }.getType();\n item = gson.fromJson(bufferedReader, type);\n } catch (FileNotFoundException fnfe) {\n System.out.println(fnfe);\n }\n return item.get(\"value\");\n }", "public void numequalto(String value){\n\t\tif (value == null){\n\t\t\tLog.e(NAME, \"Invalid parameters for 'numequalto' method!\");\n\t\t\treturn;\n\t\t}\n\t\tint result = numCache.containsKey(value)? numCache.get(value): 0;\n\t\tLog.i(result + \"\");\n\t}", "@Override\n public int getHash(String name) {\n int x = 0;\n int sum = 0;\n while (x < name.length()) {\n sum += name.charAt(x);\n x++;\n }\n int result = sum % size;\n return result;\n }", "public String getValue(String name){\n if(!kchain.containsKey(name))return akargs.get(name);\n else return kchain.get(name).toString();\n }", "@Test\n public void testPutGet() {\n cache.put(\"A\", \"first\");\n cache.put(\"C\", \"second\");\n cache.put(\"C\", \"third\");\n \n assertEquals(\"first\", cache.get(\"A\"));\n assertEquals(\"third\", cache.get(\"C\"));\n }", "private Stack cacheStack(String ename) {\n\t\tStack s = pkCache.get(ename);\n\t\tif (s == null) {\n\t\t\ts = new Stack();\n\t\t\tpkCache.put(ename, s);\n\t\t}\n\t\treturn s;\n\t}", "public String getName() {\n return cache.getName();\n }", "public int FindByName(String _name)\n\t{\n\t\tint res = -1;\n\n\t\tfor (int i = 0; i < this.materials.size(); i++)\n\t\t{\n\t\t\tif (this.materials.get(i).name.equalsIgnoreCase(_name))\n\t\t\t{\n\t\t\t\tres = i;\n\t\t\t}\n\t\t}\n\n\t\treturn res;\n\t}", "public void testCache() {\n MethodKey m = new MethodKey(\"aclass\", \"amethod\", new Object[]{1, \"fads\", new Object()});\n String mValue = \"my fancy value\";\n MethodKey m1 = new MethodKey(\"aclass\", \"amethod1\", new Object[]{1, \"fads\", new Object()});\n String mValue1 = \"my fancy value1\";\n MethodKey m2 = new MethodKey(\"aclass\", \"amethod2\", new Object[]{1, \"fads\", new Object()});\n String mValue2 = \"my fancy value2\";\n\n GenericCache.setValue(m, mValue);\n GenericCache.setValue(m1, mValue1);\n GenericCache.setValue(m2, mValue2);\n\n assertEquals(GenericCache.getValue(m), mValue);\n assertEquals(GenericCache.getValue(m1), mValue1);\n assertEquals(GenericCache.getValue(m2), mValue2);\n }", "private static int find_value(String b)\n {\n int store = 0;\n List<String> name = new ArrayList<String>(library.return_name());\n //System.out.println(name);\n for(int x = 0; x < name.size(); x++)\n {\n if(name.get(x).charAt(0) == b.charAt(0))\n store = x;\n }\n List<Integer> value = new ArrayList<Integer>(library.return_value());\n return value.get(store);\n }", "public static Statistic get(String name) {\n return lookup.get(name.toLowerCase());\n }", "long getCacheHits();", "public void cacheResult(ua.org.gostroy.guestbook.model.Entry3 entry3);", "public synchronized static void store(Context context, String name, Object o) {\n for(Map.Entry<Object, String> e : cached.entrySet()) {\r\n if(e.getValue().contentEquals(name)) {\r\n // Found cached\r\n cached.remove(e.getKey());\r\n break;\r\n }\r\n }\r\n // Put new entry\r\n if(o != null)\r\n cached.put(o, name);\r\n // Post async update\r\n pending.put(name, o);\r\n apply(context);\r\n }", "String getMetadataValue( String name )\n throws MetadataNameNotFoundException;", "public <K, V> Cache<K, V> getCache( String name, Class<K> keyClazz, Class<V> valueClazz )\n {\n if ( cacheManager == null )\n {\n LOG.error( \"Cannot fetch the cache named {}, the CacheServcie is not initialized\", name );\n throw new IllegalStateException( \"CacheService was not initialized\" );\n }\n\n LOG.info( \"fetching the cache named {}\", name );\n\n Cache<K, V> cache = cacheManager.getCache( name, keyClazz, valueClazz );\n\n return cache;\n }", "@Test\n public void cachedContractor_whenUpdated_shouldBeUpdatedAndAvailableInCache() {\n Person person = personService.updatePerson(\"Name, Updated\", \"17a36637-04d4-4357-9c6b-10a755dbbcdd\");\n assertEquals(\"Name, Updated\", Optional.ofNullable(cacheManager.getCache(\"person2\"))\n .map(cache -> cache.get(\"17a36637-04d4-4357-9c6b-10a755dbbcdd\", Person.class))\n .orElse(new Person()).getName());\n }", "private static int find_cost(String a)\n {\n int store = 0;\n List<String> name = new ArrayList<String>(library.return_name());\n for(int x = 0; x < name.size(); x++)\n {\n if(name.get(x).charAt(0) == a.charAt(0))\n store = x;\n }\n List<Integer> cost = new ArrayList<Integer>(library.return_cost());\n return cost.get(store); \n }", "public Integer get(String name){\n\t\treturn blocks.getLast().get(name);\n\t}", "public void put(String param1, Cache.Entry param2) {\n }", "@Test\n public void simpleAPINoGenericsAndNoTypeEnforcementStoreByValue() {\n\n MutableConfiguration config = new MutableConfiguration();\n Cache cache = cacheManager.createCache(cacheName, config);\n Identifier2 one = new Identifier2(\"1\");\n\n //can put different things in\n //But not non-serializable things\n //cache.put(one, \"something\");\n cache.put(1L, \"something\");\n cache.put(pistachio.getName(), pistachio);\n cache.put(tonto.getName(), tonto);\n cache.put(bonzo.getName(), bonzo);\n cache.put(juno.getName(), juno);\n cache.put(talker.getName(), talker);\n\n try {\n cache.put(skinny.getName(), skinny);\n } catch(Exception e) {\n //not serializable expected\n }\n //can get them out\n assertNotNull(cache.get(1L));\n assertNotNull(cache.get(pistachio.getName()));\n\n //can remove them\n assertTrue(cache.remove(1L));\n assertTrue(cache.remove(pistachio.getName()));\n }", "public int getCacheSize(){ return Integer.parseInt(cacheSize.getText()); }", "int get(String w);", "public T get(String name, int start) {\n\t\tint sz = size();\n\t\tfor (int i = start; i < sz; i++) {\n\t\t\tString n = getName(i);\n\t\t\tif (name == null) {\n\t\t\t\tif (n == null)\n\t\t\t\t\treturn getVal(i);\n\t\t\t} else if (name.equals(n)) {\n\t\t\t\treturn getVal(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public interface PermissionService {\n\n @Caching()\n public SysPermission findByUrl(String url);\n\n}", "interface Cache {\n\n /** @return A cache entry for given path string or <code>null</code> (if file cannot be read or too large to cache).\n * This method increments CacheEntry reference counter, caller must call {@link #checkIn(CacheEntry)} to release returned entry (when not null). */\n CacheEntry checkOut(CacheEntryLoader cacheEntryLoader);\n\n /**\n * Method to release cache entry previously obtained from {@link #checkOut(CacheEntryLoader)} call.\n * This method decrements CacheEntry reference counter.\n */\n void checkIn(CacheEntry key);\n\n /** Invalidates cached entry for given path string (if it is cached) */\n void invalidate(String pathString);\n\n void rename(String fromPathString, String toPathString);\n\n// /** Preload given file path in cache (if cache has vacant spot). Preloading happens in background. Preloaded pages initially have zero reference counter. */\n// void preload (String pathString);\n\n /** Clears the cache of all entries (even if some entries are checked out) */\n void clear();\n\n /** Allocates entry of given size for writing.\n * It will not be visible to others until caller calls {@link #update(String, CacheEntry)}.*/\n CacheEntry alloc(long size);\n\n /** Registers recently writtien cache entry as available for reading */\n void update(String pathString, CacheEntry cacheEntry);\n}", "@Test\r\n public void testGetUUIDItemTypeFromCache() {\n assertEquals(new Long(1), queries.getUUIDItemTypeId(\"patient\"));\r\n getSimpleJdbcTemplate().update(\"delete from uuid_item_type where xml_name like 'patient'\");\r\n //make sure the entry is not in the database\r\n assertEquals(0, (getSimpleJdbcTemplate().queryForList(\" select * from uuid_item_type where xml_name like 'patient'\")).size());\r\n // Read it from cache\r\n assertEquals(new Long(1), queries.getUUIDItemTypeId(\"patient\"));\r\n }", "int getCacheConcurrency();", "public interface CacheManager {\n\n void init();\n\n void destroy();\n\n void del(String key);\n\n void set(String key, Object value);\n\n void set(String key, Object value, int expireTime);\n\n <T> T get(String key, Class<T> clazz);\n\n void hset(String key, String subKey, Object value);\n\n <T> T hget(String key, String subKey, Class<T> clazz);\n\n <T> Map<String, T> hget(String key, Class<T> clazz);\n\n void hrem(String key, String subKey);\n\n long hincr(String key, String subKey);\n\n void sadd(String key, Object val);\n\n boolean sisMember(String key, Object val);\n\n void srem(String key, Object val);\n\n Set<String> sget(String key);\n\n <T> Set<T> sget(String key, Class<T> clazz);\n\n void zadd(String key, Object val, double score);\n\n boolean zisMember(String key, Object val);\n\n void zrem(String key, Object val);\n\n void zrem(String key, double min, double max);\n\n void zreplace(String key, Object val, double score);\n\n double zincr(String key, Object val, double score);\n\n <T> Set<T> zget(String key, double min, double max, Class<T> clazz);\n\n Set<String> zget(String key, double min, double max);\n}", "private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, value);\n }\n \n @Override\n public Integer get(AccessPointIdentifier key) {\n if (cache.containsKey(key)) {\n hitRate++;\n }\n return cache.get(key);\n }\n \n \n };\n }", "@Override\n public final int getVersion() {\n if (StringVersionService.Manager.allowCaching) {\n return 0;\n }\n else {\n return DO_NOT_CACHE;\n }\n }", "public int updateStatusByName(String status, String cacheName) throws DataAccessException {\r\n Map param = new HashMap();\r\n\r\n param.put(\"status\", status);\r\n param.put(\"cacheName\", cacheName);\r\n\r\n return getSqlMapClientTemplate().update(\"MS-SSO-CACHE-MANAGER-UPDATE-STATUS-BY-NAME\", param);\r\n }", "public static Accumulator getByName(String name) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tAccumulator result = VALUES_ARRAY[i];\n\t\t\tif (result.getName().equals(name)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Test\n public void simpleAPINoGenericsAndNoTypeEnforcementStoreByReference() {\n\n MutableConfiguration config = new MutableConfiguration().setStoreByValue(false);\n Cache cache = cacheManager.createCache(cacheName, config);\n Identifier2 one = new Identifier2(\"1\");\n\n //can put different things in\n cache.put(one, \"something\");\n cache.put(pistachio.getName(), pistachio);\n cache.put(tonto.getName(), tonto);\n cache.put(bonzo.getName(), bonzo);\n cache.put(juno.getName(), juno);\n cache.put(talker.getName(), talker);\n\n try {\n cache.put(skinny.getName(), skinny);\n } catch(Exception e) {\n //not serializable expected\n }\n //can get them out\n Identifier2 one_ = new Identifier2(\"1\");\n Assert.assertEquals(one, one_);\n Assert.assertEquals(one.hashCode(), one_.hashCode());\n assertNotNull(cache.get(one_));\n assertNotNull(cache.get(one));\n assertNotNull(cache.get(pistachio.getName()));\n\n //can remove them\n assertTrue(cache.remove(one));\n assertTrue(cache.remove(pistachio.getName()));\n }", "public void apply(String cacheKey) {\n }", "public String getName()\n {\n return m_sCacheName;\n }", "public HeapCacheBuilder name(final String name) {\n checkNotEmpty(name, \"name can't be empty\");\n this.name = name;\n return this;\n }", "public MLNKVMemoryCache(String name) {\n this.name = name;\n LRUCountLimit = 10000;\n FIFOCountLimit = 1000;\n memorySizeLimit = 100 << 20;\n releaseOnMainThread = false;\n\n useFIFO = true;\n useLRU = true;\n\n weakMap = new HashMap<>();\n LRUCache = new MLNKVCache();\n FIFOCache = new MLNKVCache();\n\n LRUCache.releaseOnMainThread = releaseOnMainThread;\n FIFOCache.releaseOnMainThread = releaseOnMainThread;\n }", "public Collection<String> getCacheNames()\r\n/* 44: */ {\r\n/* 45:68 */ return (Collection)Collections.unmodifiableSet(this.cacheNames);\r\n/* 46: */ }", "public String getResourceCacheID(HttpServletRequest request, WBParamRequest paramsRequest) throws AFException\r\n {\r\n if (request.getParameterNames().hasMoreElements())\r\n {\r\n return null;\r\n }else\r\n {\r\n Resource base=paramsRequest.getResourceBase();\r\n return SWBResourceCachedMgr.getKey(base.getNative());\r\n }\r\n }", "public interface CacheIndex {\n \n /**\n * Puts index on indexedKey.\n *\n * @param indexedKey the indexed key\n * @param key the key\n */\n void put(Object indexedKey, Object key);\n \n /**\n * Removes the index from indexedKey.\n *\n * @param indexedKey the indexed key\n * @param key the key\n */\n void remove(Object indexedKey, Object key);\n \n /**\n * Equals to.\n *\n * @param expectedValue the expected value\n * @return the list\n */\n List<Object> equalsTo(Object expectedValue);\n \n /**\n * Less than.\n *\n * @param value the value\n * @return the list\n */\n List<Object> lessThan(Object value);\n \n /**\n * Less than or equals to.\n *\n * @param value the value\n * @return the list\n */\n List<Object> lessThanOrEqualsTo(Object value);\n \n /**\n * Greater than.\n *\n * @param value the value\n * @return the list\n */\n List<Object> greaterThan(Object value);\n \n /**\n * Greater than or equals to.\n *\n * @param value the value\n * @return the list\n */\n List<Object> greaterThanOrEqualsTo(Object value);\n \n /**\n * Between.\n *\n * @param lowerBound the lower bound\n * @param upperBound the upper bound\n * @return the list\n */\n List<Object> between(Object lowerBound, Object upperBound);\n \n}", "public static int getValueOf(String s) {\n\t\tboolean founded = false;\n\t\tint result=0;\n\t\tfor(int i = 0 ; i < dataList.size() ; i ++ ) {\n\t\t\tif(dataList.get(i).name.equals(s)) {\n\t\t\t\tresult = dataList.get(i).value;\n\t\t\t\tfounded = true;\n\t\t\t}\n\t\t}\n\t\tif(!founded) {\n\t\t\tSystem.out.println(s + \" didn't found in data will be returned value equals to 0\");\n\t\t}\n\t\treturn result;\n\t}", "public String getCacheData(String data) {\n\t\tTreeData treeData = createTreeData(data);\n\t\tString valResult = null;\n if (treeData != null && EngineConfiguration.getInstance().getIntValue(\"general.useCache\", 0) == 1) {\n if (EngineConfiguration.getInstance().getIntValue(\"general.cacheRedis\", 0) == 1) {\n valResult = getDataRedis(treeData);\n } else {\n if (EngineConfiguration.getInstance().getIntValue(\"general.cacheRedis.testGet\", 0) == 1) {\n getDataRedis(treeData);\n }\n // request BID or CARD\n if (treeData.isRequestBidCard()) {\n // find tree for this deal\n TreeBidCard tree = cacheTree.getTreeBidCard(treeData.getTreeDealKey());\n if (tree != null) {\n String valCompressed = null;\n synchronized (tree) {\n tree.setTsLastConsult(System.currentTimeMillis());\n // find next result in this tree\n String keyCompressed = treeData.getConventions() + BridgeTransformData.transformGame(treeData.getGame());\n valCompressed = tree.getValueRobot(keyCompressed);\n }\n // value found in tree\n if (valCompressed != null && valCompressed.length() > 0) {\n int idx = 0;\n String g = treeData.getGame();\n String val = \"\";\n // need to transform compressed value to bridge value\n boolean bTransformOK = true;\n while (bTransformOK && idx < valCompressed.length()) {\n String temp = null;\n boolean isEndBids = GameBridgeRule.isEndBids(g);\n if (isEndBids) {\n temp = BridgeTransformData.convertBridgeCard2String(valCompressed.charAt(idx));\n } else {\n temp = BridgeTransformData.convertBridgeBid2String(valCompressed.charAt(idx));\n }\n if (temp == null) {\n log.error(\"Error in convertion char to string : char=\" + valCompressed.charAt(idx) + \" int value=\" + (int) valCompressed.charAt(idx) + \" - endBid=\" + GameBridgeRule.isEndBids(g) + \" - data=\" + data + \" - treeData=\" + treeData);\n bTransformOK = false;\n }\n idx++;\n if (valCompressed.charAt(idx) == '1') {\n if (isEndBids) {\n // flag to indicate spread enable\n temp += \"s\";\n } else {\n // flag to indicate alert on bid\n temp += \"a\";\n }\n }\n idx++;\n val += temp;\n g += temp;\n }\n // if tranformation OK => return value else null\n if (bTransformOK) {\n valResult = val;\n }\n }\n }\n }\n // request BID INFO\n else if (treeData.isRequestBidInfo()) {\n // find tree for this deal\n TreeBidInfo tree = cacheTree.getTreeBidInfo(treeData.getTreeDealKey());\n if (tree != null) {\n synchronized (tree) {\n tree.setTsLastConsult(System.currentTimeMillis());\n String keyCompressed = treeData.getConventions() + BridgeTransformData.transformGame(treeData.getGame());\n valResult = tree.getBidInfo(keyCompressed);\n }\n }\n }\n }\n\t\t}\n\t\treturn valResult;\n\t}", "@Override\n// @CachePut(cacheNames = \"category\",key=\"#name\")\n public CMSCategory getOrCreateOneByName(String name){\n CMSCategory category = findCMSCategoryByName(name);\n if (category==null) {\n category = new CMSCategory();\n category.setDisabled(false);\n category.setEnglishName(name);\n category.setName(name);\n cmsCategoryRepository.save(category);\n }\n return category;\n }", "public String mo10089a(String str, List<String> list, C1084f fVar) {\n if (!C1277l.m3042b(str)) {\n return str;\n }\n if (!((Boolean) this.f2745b.mo10202a(C1096c.f2348bJ)).booleanValue()) {\n mo10068a(\"Resource caching is disabled, skipping cache...\");\n return str;\n }\n StringBuilder sb = new StringBuilder(str);\n boolean shouldCancelHtmlCachingIfShown = fVar.shouldCancelHtmlCachingIfShown();\n for (String str2 : list) {\n int i = 0;\n int i2 = 0;\n while (i < sb.length()) {\n if (mo10093c()) {\n return str;\n }\n i = sb.indexOf(str2, i2);\n if (i == -1) {\n continue;\n break;\n }\n int length = sb.length();\n int i3 = i;\n while (!this.f2762e.contains(Character.valueOf(sb.charAt(i3))) && i3 < length) {\n i3++;\n }\n if (i3 <= i || i3 == length) {\n mo10072d(\"Unable to cache resource; ad HTML is invalid.\");\n return str;\n }\n String substring = sb.substring(str2.length() + i, i3);\n if (!C1277l.m3042b(substring)) {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"Skip caching of non-resource \");\n sb2.append(substring);\n mo10068a(sb2.toString());\n } else if (!shouldCancelHtmlCachingIfShown || !fVar.hasShown()) {\n String a = m2343a(str2, substring);\n if (a != null) {\n sb.replace(i, i3, a);\n this.f2763f.mo10025e();\n } else {\n this.f2763f.mo10026f();\n }\n } else {\n mo10068a(\"Cancelling HTML caching due to ad being shown already\");\n this.f2763f.mo10019a();\n return str;\n }\n i2 = i3;\n }\n }\n return sb.toString();\n }", "Object getTemp(String name);", "@Override\n\tpublic Map<Serializable, Serializable> gets(String name, List<Serializable> keys)\n\t\t\tthrows CacheException {\n\t\treturn null;\n\t}", "@Cacheable(\"lastRunInfo\")\n private GeobatchRunInfo getLastRunInfoCache(String id) {\n List<GeobatchRunInfo> search = search(id);\n \n return search != null && !search.isEmpty() ? search.get(0) : null;\n }", "private int searchCountByName(Object name) {\n\t\treturn 0;\r\n\t}", "public void cacheResult(Todo todo);", "public Value lookup (String name){\n Closure exist = find_var(name);\n return exist.getValues().get(name);\n }", "public interface ContentCache extends Cache<List<byte[]>>{\n int notCacheSize();\n}", "@Test\n public void simpleAPIWithGenericsAndNoTypeEnforcement() {\n\n MutableConfiguration config = new MutableConfiguration<String, Integer>();\n Cache<Identifier, Dog> cache = cacheManager.createCache(cacheName, config);\n\n\n //Types are restricted\n //Cannot put in wrong types\n //cache.put(1, \"something\");\n\n //can put in\n cache.put(pistachio.getName(), pistachio);\n cache.put(tonto.getName(), tonto);\n\n //cannot get out wrong key types\n //assertNotNull(cache.get(1));\n assertNotNull(cache.get(pistachio.getName()));\n assertNotNull(cache.get(tonto.getName()));\n\n //cannot remove wrong key types\n //assertTrue(cache.remove(1));\n assertTrue(cache.remove(pistachio.getName()));\n assertTrue(cache.remove(tonto.getName()));\n\n }", "public void cacheResult(DataEntry dataEntry);", "public int getValue(String name) {\r\n // Looks things up in the symbol table\r\n return symbolTable.getValue(name);\r\n }", "public interface Cache {\n void put(String key, Object value);\n\n Object get(String key);\n}", "private void deleteOne(String value){\n\t\tnumCache.put(value, numCache.get(value) - 1);\n\t\tif (numCache.get(value) == 0){\n\t\t\tnumCache.remove(value);\n\t\t}\n\t}", "@LogMessage(level = WARN)\n @Message(value = \"The value mode for the cache[%s] is \\\"identity\\\". This is incompatible with clustered Hibernate caching - \"\n + \"the value mode has therefore been switched to \\\"serialization\\\"\", id = 20006)\n void incompatibleCacheValueModePerCache(String cacheName);", "public static int getEfficiency(String name) {\n\n EnumMoreSwords swordType = getType(name);\n\n if (swordType != null) {\n\n return swordType.swordEfficiency;\n }\n\n return -1;\n }", "@Test\n public void testCoh3710_containsKey()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertFalse(getNamedCache(getCacheName0()).containsKey(Integer.valueOf(1)));\n }\n });\n }", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }" ]
[ "0.6457778", "0.61591375", "0.60854656", "0.604581", "0.60315424", "0.59137076", "0.5865536", "0.5783262", "0.57654876", "0.5758669", "0.5755164", "0.5720935", "0.5693894", "0.5617399", "0.5609242", "0.55864197", "0.5578829", "0.5521322", "0.54979426", "0.5494565", "0.548756", "0.54598653", "0.54546314", "0.5408164", "0.5401367", "0.5398694", "0.5392082", "0.5338801", "0.53338784", "0.5326655", "0.5324485", "0.53136593", "0.5310736", "0.53095806", "0.53007126", "0.5277053", "0.5275574", "0.5234891", "0.5227829", "0.52229345", "0.51905245", "0.51784563", "0.5172345", "0.5167441", "0.5166473", "0.5160174", "0.51439005", "0.51336956", "0.5127815", "0.51267487", "0.5122005", "0.51104057", "0.5108962", "0.51001006", "0.50970024", "0.50880104", "0.50827193", "0.507514", "0.507364", "0.50680745", "0.5056064", "0.50470763", "0.5041737", "0.50293595", "0.5013941", "0.50041246", "0.49974662", "0.49779513", "0.496824", "0.49656364", "0.49633056", "0.49538034", "0.49477664", "0.49398208", "0.4938335", "0.4932301", "0.49317572", "0.49291348", "0.4924232", "0.49212843", "0.49199772", "0.4919614", "0.49155077", "0.49091998", "0.49084207", "0.49073038", "0.49047363", "0.49039578", "0.4898822", "0.48983043", "0.48930413", "0.48876977", "0.48821592", "0.4881859", "0.4878583", "0.4878389", "0.4875847", "0.48728707", "0.48649135", "0.4861042" ]
0.5504976
18
requires: nothing modifies: accounts and cacheList effects: accounts change according to transactions in inputFile by using the local cache in order to process transactions and then using the cache class in order to determine which transactions can be processed by at what time by each thread in the multithreaded process of task.
public void run() { //overall loop which runs until all the transactions have been processed while(true) { //instantiate the local cachelist cacheList = new Cache[constants.numLetters]; for (int k = A; k <= Z; k++) { cacheList[k] = new Cache(accounts[k]); } //parsing the input file String[] commands = transaction.split(";"); for (int i = 0; i < commands.length; i++) { String[] words = commands[i].trim().split("\\s"); if (words.length < 3) throw new InvalidTransactionError(); //sets the read lock for the cache of the account. Cache lhs = parseAccount(words[0]); if (!words[1].equals("=")) throw new InvalidTransactionError(); int rhs = parseAccountOrNum(words[2]); for (int j = 3; j < words.length; j+=2) { if (words[j].equals("+")) rhs += parseAccountOrNum(words[j+1]); else if (words[j].equals("-")) rhs -= parseAccountOrNum(words[j+1]); else throw new InvalidTransactionError(); } //sets the write lock for the account in the cache lhs.writeCache(rhs); } //for loop /*int i = 0; try { for (i = A; i <= Z; i++) { cacheList[i].openCache(); } } catch (TransactionAbortException e) { for (int j = A; j < i; j++) { cacheList[j].closeCache(); } System.out.println("open abort: " + transaction); continue; } //try and verify do the same as the open locks try { for (i = A; i <= Z; i++) { cacheList[i].verify(); } } catch (TransactionAbortException e) { for (int j = A; j < i; j++) { cacheList[j].closeCache(); } System.out.println("verify abort: " + transaction); continue; } //loops to commit for (int k = A; k <= Z; k ++) { cacheList[k].commit(); } System.out.println("commit: " + transaction); //loops to close for (int k = A; k <= Z; k ++) { cacheList[k].closeCache(); } break;*/ //Code needed for concurrency programming, Loops over the entire cache list 4 different time //and in order first attempts to open each caches locks, and then verifies all caches, then commits //the caches, and finally closes all the locks for the caches. If it any point there is an exception //is thrown then checks will end and all the accounts will be closed and the loop will restart from the top //restart the transaction try { for (int i = A; i <= Z; i++) { cacheList[i].openCache(); } for (int i = A; i <= Z; i++) { cacheList[i].verify(); } for (int k = A; k <= Z; k ++) { cacheList[k].commit(); } System.out.println("commit: " + transaction); for (int k = A; k <= Z; k ++) { cacheList[k].closeCache(); } break; } catch (TransactionAbortException e) { for (int k = A; k <= Z; k ++) { cacheList[k].closeCache(); } continue; } }//while loop }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cache(){\n\t\t\n\t\t/*\n\t\t * second, check if there is a cache file\n\t\t * if yes, then check date\n\t\t * if no, then create a cache file \n\t\t*/\n\t\tif(cacheExist()){\n\t\t\t//check date and decide which file to update\n\t\t\tSystem.out.println(\" hahahaha, cache already there! \");\n\t\t\t\n\t\t\tFile cache = new File(\"./cache.txt\");\n\t\t\tsource = readFile(\"./cache.txt\",source);\n\t\t\tSystem.out.println(\"the size of source hashmap : \"+ source.size());\n\t\t\t\n\t\t\tfor(int i = 1; i < fileList.length;i++){\n\t\t\t\t//if this file need to be updated, write the data to source array\n\t\t\t\tif(needToUpdate(fileList[i], cache)){\n\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\n\t\t\t\t\tSystem.out.println(\"S: \"+ sdf.format(fileList[i].lastModified()) + \" c: \"+ sdf.format(cache.lastModified()));\n\t\t\t\t\tsource = readFile(fileList[i].getPath(), source);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//after checking the whole source file and add the new data to source array\n\t\t\t//then sort the source array and write it to cache\n\t\t\tsort(source);\n\t\t\ttry\n\t\t\t{\n\t\t\t String filename= \"./cache.txt\";\n\t\t\t FileWriter fw = new FileWriter(filename,true); //the true will append the new data\n\t\t\t for(int j = 0; j < writeList.size(); j++){\n\t\t\t\t\tfw.write(writeList.get(j));\n\t\t\t\t}\n\t\t\t fw.close();\n\t\t\t}\n\t\t\tcatch(IOException ioe)\n\t\t\t{\n\t\t\t System.err.println(\"IOException: \" + ioe.getMessage());\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t//there are is no cache, need to create a cache file\n\t\telse{\n\t\t\tSystem.out.println(\" create new cache file !\");\n\t\t\t//create cache file and copy sort the data from source file\n\t\t\t//1. read all the source file and store the data to an arrayList\n\t\t\tfor(int i = 1; i < fileList.length; i++){\n\t\t\t\tsource = readFile(fileList[i].getPath(), source);\t\t\t\n\t\t\t}\n\t\t\tsort(source);\n//\t\t\tSystem.out.println(source);\n\t\t\t\n\t\t\t//2.write the data to the cache file\n\t\t\tPrintWriter writer;\n\t\t\ttry {\n\t\t\t\twriter = new PrintWriter(\"cache.txt\", \"UTF-8\");\t\t\t\n\t\t\t\twriter.println(writeList.size());\n\t\t\t\tfor(int j = 0; j < writeList.size(); j++){\n\t\t\t\t\twriter.println(writeList.get(j));\n\t\t\t\t}\n\t\t\t\twriter.close();\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t \n\t\t\n\t}", "private void getCache(Context context) throws IOException {\n\t\t // Read file from distributed caches - each line is a item/itemset with its frequent\n\n \t// get caches files.\n\t\tfor (int i = 0; i < 10; i++)\n\t\t\tSystem.out.println(\"SETUP ------ MAPPER ----------- GET FREQUENT ITEMS--------------\");\n\t\t\n\t\t\n\t\t// URI to locate cachefile, ex URI a = new URI(\"http://www.foo.com\");\n\t\tList<URI> uris = Arrays.asList(context.getCacheFiles());\n\t\t\n\t\tSystem.out.println(\"Reading cached files\");\n\t\t// read cache files which contains candidates?\n\t\t\n\t\tnItems = 0;\n\t\t\n\t\tfor (URI uri : uris) {\n\t\t\tPath p = new Path(uri);\n\t\t\tSystem.out.println(\"Loading \" + uri.toString());\n\t\t\tFileSystem fs = FileSystem.get(context.getConfiguration());\n\t\t\tInputStreamReader ir = new InputStreamReader(fs.open(p));\n\t\t\tBufferedReader data = new BufferedReader(ir);\n\t \twhile (data.ready()) { \t\t\n\t \t\tString line=data.readLine();\n\t \t\tif (line.matches(\"\\\\s*\")) continue; // be friendly with empty lines\n\t \t\tString[] numberStrings = line.split(\"\\t\");\n\t \t\t\n \n\t \t\tint frequentItem = Integer.parseInt(numberStrings[0]);\n \t\t\tif (!hashItems.containsKey(frequentItem)) {\n\t \t\t\t\thashItems.put(frequentItem, nItems);\n\t \t\t\t\tnItems++;\n\t \t\t\t}\n\t \t\t}\n\t \t\t\n\t \t} \n\n }", "private void loadTransactions(String transactionFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(transactionFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n int transactionId = Integer.parseInt(splitLine[0]);\n\n String accountTypeChar = splitLine[1];\n TransactionType transactionType = null;\n switch (accountTypeChar)\n {\n case \"D\":\n transactionType = TransactionType.DEBIT;\n break;\n\n case \"C\":\n transactionType = TransactionType.CREDIT;\n break;\n\n case \"T\":\n transactionType = TransactionType.TRANSFER;\n }\n\n String description = splitLine[2];\n Date date = dateFormat.parse(splitLine[3]);\n double amount = Double.parseDouble(splitLine[4]);\n int accountId = Integer.parseInt(splitLine[5]);\n\n Transaction transaction = new Transaction(transactionId,\n transactionType,\n description,\n date,\n amount,\n accountId);\n\n transactionHashMap.putIfAbsent(accountId, new ArrayList<>());\n transactionHashMap.get(accountId).add(transaction);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void loadCheckingAccounts(String checkingAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(checkingAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftSavingsAccountId = Integer.parseInt(splitLine[5]);\n boolean isGoldDiamond = Boolean.parseBoolean(splitLine[6]);\n\n Checking checkingAccount = new Checking(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftSavingsAccountId,\n isGoldDiamond);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n checkingAccount.setTransactions(accountTransactions);\n\n //add checking account...\n accounts.add(checkingAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public static void runServer(String inputFile, Account accounts[])\n throws IOException {\n\n // read transactions from input file\n String line;\n BufferedReader input =\n new BufferedReader(new FileReader(inputFile));\n\n // TO DO: you will need to create an Executor and then modify the\n // following loop to feed tasks to the executor instead of running them\n // directly.\n final ExecutorService pool = Executors.newFixedThreadPool(3);\n \n while ((line = input.readLine()) != null) {\n Task t = new Task(accounts, line);\n pool.submit(t);\n }\n \n pool.shutdown();\n try {\n \tpool.awaitTermination(60, TimeUnit.SECONDS);\n\t\t} catch (InterruptedException e) {\n\t\t}\n \n input.close();\n\n }", "public static void commit(Context context) {\n HashMap<String, Object> pending = new HashMap<>();\r\n synchronized(Cacher.class) {\r\n pending.putAll(Cacher.pending);\r\n Cacher.pending.clear();\r\n }\r\n Log.d(TAG, \"Starting commit of \" + pending.size() + \" changes\");\r\n // Prepare root dir\r\n File rootDir = new File(context.getCacheDir(), CACHE_NAME);\r\n if(!rootDir.exists())\r\n rootDir.mkdirs();\r\n // Write all\r\n for(Map.Entry<String, Object> e : pending.entrySet()) {\r\n String name = e.getKey();\r\n Object value = e.getValue();\r\n NamedLock lock = lock(name);\r\n File file = new File(context.getCacheDir(), CACHE_PREFIX + Integer.toHexString(name.hashCode()));\r\n try {\r\n HashMap<String, String> map;\r\n try {\r\n if(!file.exists())\r\n map = new HashMap<>();\r\n else {\r\n String data = readFile(file);\r\n if(data.length() == 0 || ((map = gson.fromJson(data, HashMap.class)) == null))\r\n map = new HashMap<>(); // new cache\r\n }\r\n } catch (Throwable t) {\r\n Log.e(TAG, \"Unable to open cache for writing: \" + file.getPath(), t);\r\n map = new HashMap<>(); // create empty cache\r\n }\r\n if (value == null) {\r\n if(map.remove(name) == null)\r\n return; // nothing was removed, no changes\r\n if (map.size() == 0) {\r\n if(lastCacheSize != -1)\r\n lastCacheSize -= file.length();\r\n file.delete(); // no more data here\r\n }\r\n } else {\r\n if(lastCacheSize != -1)\r\n lastCacheSize -= file.length();\r\n map.put(name, gson.toJson(value));\r\n writeFile(file, gson.toJson(map));\r\n file.setLastModified(System.currentTimeMillis());\r\n if(lastCacheSize != -1)\r\n lastCacheSize += file.length();\r\n }\r\n } catch (Throwable t) {\r\n Log.e(TAG, \"Unable to write cache \" + file.getPath() + \" for \" + name, t);\r\n // ignore\r\n } finally {\r\n lock.unlock();\r\n }\r\n }\r\n // Next cleanup cache\r\n if(lastCacheSize != -1 && lastCacheSize < CACHE_SIZE)\r\n return; // no need to cleanup cache\r\n lastCacheSize = 0; // reset\r\n File[] files = rootDir.listFiles();\r\n long[] timestamps = new long[files.length];\r\n long[] size = new long[files.length];\r\n // Collect all data\r\n for (int c = 0; c < files.length; c++) {\r\n File file = files[c];\r\n if (file.isDirectory()) {\r\n files[c] = null;\r\n timestamps[c] = Long.MAX_VALUE;\r\n size[c] = 0;\r\n } else {\r\n timestamps[c] = file.lastModified();\r\n size[c] = file.length();\r\n }\r\n lastCacheSize += size[c];\r\n }\r\n // Keep trimming as needed\r\n while (lastCacheSize > CACHE_SIZE) {\r\n // Select oldest file\r\n int oldest = -1;\r\n long oldestTimestamp = Long.MAX_VALUE;\r\n for (int c = 0; c < files.length; c++) {\r\n if (timestamps[c] < oldestTimestamp) {\r\n oldest = c;\r\n oldestTimestamp = timestamps[c];\r\n }\r\n }\r\n // Delete this file\r\n lastCacheSize -= size[oldest];\r\n files[oldest].delete();\r\n timestamps[oldest] = Long.MAX_VALUE;\r\n }\r\n Log.d(TAG, \"Trimmed cache to \" + lastCacheSize + \" bytes\");\r\n // Done\r\n }", "int getCacheConcurrency();", "private void loadCreditCardAccounts(String creditCardAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(creditCardAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data.\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n double limit = Double.parseDouble(splitLine[10]);\n String creditCardNumber = splitLine[11];\n int cvv = Integer.parseInt(splitLine[12]);\n\n CreditCard creditCardAccount = new CreditCard(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n limit,\n creditCardNumber,\n cvv);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n creditCardAccount.setTransactions(accountTransactions);\n\n //add credit cards\n accounts.add(creditCardAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "Cache(){\n // If the files exist, load the contents into memory as matrices.\n if(distanceFile.exists() && validMoveFile.exists()){\n try{\n FileInputStream in = new FileInputStream(distanceFile);\n byte[] tempDist = new byte[200 * 200 * 12 * 9 * 5];\n // Reads the file as a byte array, then stores it as a byte matrix.\n in.read(tempDist);\n int i = 0;\n for(int start = 1; start < 200; start++)\n for(int to = 1; to < 200; to++)\n for(int taxi = 0; taxi < 12; taxi++)\n for(int bus = 0; bus < 9; bus++)\n for(int underground = 0; underground < 5; underground++)\n distance[start][to][taxi][bus][underground] = tempDist[i++];\n\n in = new FileInputStream(validMoveFile);\n byte[] tempMoves = new byte[4 * 200 * 162];\n // Reads the file as a byte array, then stores it as an int matrix.\n in.read(tempMoves);\n i = 0;\n\n for(int node = 1; node < 200; node++)\n for(int taxi = 0; taxi < 3; taxi++)\n for(int bus = 0; bus < 3; bus++)\n for(int underground = 0; underground < 3; underground++)\n for(int doublet = 0; doublet < 2; doublet++)\n for(int secret = 0; secret < 3; secret++){\n // Compute the int from 4 consecutive bytes in the byte array\n for(int b = 0; b < 4; b++)\n validMoves[node][taxi][bus][underground][doublet][secret] =\n (validMoves[node][taxi][bus][underground][doublet][secret] << 8) | (tempMoves[b + i] & 0xFF);\n i += 4;\n }\n }\n catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n }\n }", "public AccountManager(String transactionsFileName,\n String checkingAccountFileName,\n String savingsAccountFileName,\n String cdAccountFileName,\n String atmAccountFileName,\n String creditCardAccountFileName,\n String termLoanAccountFileName)\n {\n accounts = new ArrayList<>();\n\n //Load transactions first so the hash map is built\n loadTransactions(transactionsFileName);\n\n loadCheckingAccounts(checkingAccountFileName);\n loadSavingsAccounts(savingsAccountFileName);\n loadCDAccounts(cdAccountFileName);\n loadATMAccounts(atmAccountFileName);\n loadCreditCardAccounts(creditCardAccountFileName);\n loadTermLoanAccounts(termLoanAccountFileName);\n }", "public static void main(String [] args){\n time = 0;\n waitingList = new ArrayList<>();\n removeSet = new HashSet<>();\n\n String fileName = args[0];\n Scanner sc = new Scanner(System.in);\n\n // try creating a file scanner\n try{\n sc = new Scanner(new File(fileName));\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n\n // we include two tasklists because we will have duplicates of each task object, one to be used with bankers, the other for naive\n taskList = new ArrayList<>();\n bankersTaskList = new ArrayList<>();\n int numTasks = sc.nextInt();\n numResources = sc.nextInt();\n\n resourceArr = new int [numResources];\n maxResourceArr = new int [numResources];\n\n taskPointers = new int [numTasks];\n\n // creating tasks from input file and adding to task list\n for(int i = 1; i <= numTasks; i ++){\n Task t = new Task(i);\n Task bt = new Task(i);\n taskList.add(t);\n bankersTaskList.add(bt);\n }\n\n int curr = 0;\n // determining how many resources we have of each type\n while(curr < numResources){\n int resourceNum = sc.nextInt();\n resourceArr[curr] = resourceNum;\n maxResourceArr[curr] = resourceNum;\n curr ++;\n }\n\n releaseArr = new int [numResources];\n\n // Parsing through the instructions, and adding each one to respective task we made earlier\n while(sc.hasNext()){\n String instType = sc.next();\n int taskNumber = sc.nextInt();\n\n Task currTask = taskList.get(taskNumber - 1);\n Task currBankersTask = bankersTaskList.get(taskNumber - 1);\n Type instructionType = Type.valueOf(instType);\n\n int resourceType = sc.nextInt();\n int resourceAmount = sc.nextInt();\n\n // create a duplicate of the instruction object so we can use it for bankers\n Instruction i = new Instruction(instructionType, taskNumber, resourceType, resourceAmount, false);\n Instruction bI = new Instruction(instructionType, taskNumber, resourceType, resourceAmount, true);\n currTask.addInstruction(i);\n currBankersTask.addInstruction(bI);\n }\n\n // deploy the fifo (naive) allocator\n naive(numResources);\n System.out.println();\n System.out.println(\"*****FIFO*****\");\n printTasks();\n\n\n // reset our global variables so Bankers can be deployed\n resetGlobals(numTasks);\n System.out.println(\"\\n\");\n\n // deploy the bankers allocator\n banker();\n System.out.println(\"*****BANKERS*****\");\n printTasks();\n\n }", "@Override\n public List<Transaction> getTxListFromCache() {\n return null;\n }", "private void loadATMAccounts(String atmAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(atmAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n String ssn = splitLine[1];\n Date dateOpened = dateFormat.parse(splitLine[2]);\n int pin = Integer.parseInt(splitLine[3]);\n Date lastDateUsed = dateFormat.parse(splitLine[4]);\n int dailyUsageCount = Integer.parseInt(splitLine[5]);\n String cardNumber = splitLine[6];\n\n ATM atmAccount = new ATM(accountId,\n ssn,\n dateOpened,\n pin,\n lastDateUsed,\n dailyUsageCount,\n cardNumber);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n atmAccount.setTransactions(accountTransactions);\n\n //add ATM accounts...\n accounts.add(atmAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void ReadInAccounts() {\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", \"checking for file\" + AccountMan.CheckForFile());\n\t\taccounts = AccountMan.GetAccounts();\n\t\t//Comment out this line and uncomment the line above after purging the excess accounts\n\t\t//accounts = AccountMan.PurgeDuplicateAccounts(AccountMan.GetAccounts());\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", String.valueOf(accounts.size()));\n\t}", "void insertFileCacheInfo(String filename){\n Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n Date curDate = cal.getTime();\n\n DateFormat sdf = new SimpleDateFormat(\"EEE, dd MMM yyyy HH:mm:ss z\");\n sdf.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n String cacheDate = sdf.format(curDate).toString();\n\n List<FileCache> fcl = fcds.getFileCache(filename);\n if(fcl != null) {\n if(fcl.size() != 0) {\n fcds.updateFileCache(filename, cacheDate);\n }else{\n fcds.createFileCache(filename, cacheDate);\n }\n }\n }", "public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n String st;\n /*Created LinkedHashMaps for transactions and locks for keeping the records of both*/\n HashMap<String, HashMap<String, Object>> transactions = new LinkedHashMap<>();\n HashMap<Character, HashMap<String, Object>> locks = new LinkedHashMap<>();\n\n /*Created HashMap for keeping the records for blocked operation with respect to the transactionId which blocks those operation*/\n HashMap<String, LinkedList<String>> blockedOp = new HashMap<>();\n int i = 1;\n ConcurrencyControl cc = new ConcurrencyControl();\n fw = new FileWriter(\"output.txt\");\n while ((st = br.readLine()) != null) {\n st = st.trim();\n int index = st.indexOf(';');\n fw.write(\"Input : \"+ st.substring(0, index) +\"\\n\");\n if (st.charAt(0) == 'b') {\n /* will just create record of current transaction with active state and timestamp */\n cc.beginTransaction(transactions, locks, st, i);\n i++;\n }\n else if (st.charAt(0) == 'r') {\n /* will perform read operation */\n cc.readTransaction(transactions, locks, st, blockedOp);\n }\n else if (st.charAt(0) == 'w') {\n /* will perform read operation */\n cc.writeTransaction(transactions, locks, st, blockedOp);\n }\n else {\n String key = \"T\"+st.charAt(1);\n /* If a transaction is aborted then it will not commit */\n if (!transactions.get(key).get(\"State\").equals(\"Aborted\"))\n cc.endOrAbort(transactions, locks, key, \"Commited\", blockedOp);\n }\n cc.printRecords(transactions, locks);\n }\n System.out.println(\"Output written in output.txt successfully !!\");\n fw.close();\n }", "void cacheTrades(Collection<Trade> trades);", "public interface TaskCache {\n /**\n * Gets an {@link Object} which will emit a {@link TaskEntity}.\n *\n * @param userId The id used to get data.\n */\n List<TaskEntity> get(int userId);\n\n /**\n * Puts and element into the cache.\n *\n * @param userEntity The task data to save.\n */\n void put(TaskEntity userEntity);\n\n /**\n * Checks if an element (User) exists in the cache.\n *\n * @param userId The id used to get data.\n * @return true if the element is cached, otherwise false.\n */\n boolean isCached(int userId);\n\n /**\n * Checks if the cache is expired.\n * @param userId The id used to get data.\n * @return true, the cache is expired, otherwise false.\n */\n boolean isExpired(int userId);\n\n /**\n * Evict all elements of the cache.\n *\n * @param userId The id used to get data.\n */\n void evictAll(int userId);\n\n /**\n * Change task status\n *\n * @param idTask task to update.\n */\n void refresh(int idTask);\n}", "@Test\n public void testTransactional() throws Throwable {\n final List<MagicKey> keys = init();\n final CountDownLatch l = new CountDownLatch(1);\n final AtomicBoolean rollback = new AtomicBoolean(false);\n\n Future<Void> future = fork(() -> {\n try {\n // start a transaction on c1.\n TransactionManager t1 = TestingUtil.getTransactionManager(c1);\n t1.begin();\n c1.put(keys.get(0), \"transactionally_replaced\");\n Transaction tx = t1.getTransaction();\n tx.enlistResource(new XAResourceAdapter() {\n public int prepare(Xid id) {\n // this would be called *after* the cache prepares.\n try {\n log.debug(\"Unblocking commit\");\n l.await();\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n }\n return XAResource.XA_OK;\n }\n });\n t1.commit();\n } catch (Exception e) {\n log.error(\"Error committing transaction\", e);\n rollback.set(true);\n throw new RuntimeException(e);\n }\n });\n\n log.info(\"Invoking rehash event\");\n performRehashEvent(true);\n l.countDown();\n future.get(30, TimeUnit.SECONDS);\n\n //ownership can only be verified after the rehashing has completed\n waitForRehashCompletion();\n log.info(\"Rehash complete\");\n\n //only check for these values if tx was not rolled back\n if (!rollback.get()) {\n // the ownership of k1 might change during the tx and a cache might end up with it in L1\n assertOwnershipAndNonOwnership(keys.get(0), true);\n assertOwnershipAndNonOwnership(keys.get(1), false);\n assertOwnershipAndNonOwnership(keys.get(2), false);\n assertOwnershipAndNonOwnership(keys.get(3), false);\n\n // checking the values will bring the keys to L1, so we want to do it after checking ownership\n assertOnAllCaches(keys.get(0), \"transactionally_replaced\");\n assertOnAllCaches(keys.get(1), \"v0\");\n assertOnAllCaches(keys.get(2), \"v0\");\n assertOnAllCaches(keys.get(3), \"v0\");\n }\n }", "public Collection<IgniteTxEntry> optimisticLockEntries();", "private void processInput()\n{\n File f1 = input_file;\n\n try (BufferedReader br = new BufferedReader(new FileReader(f1))) {\n List<DylockLockEntry> ents = new ArrayList<DylockLockEntry>();\n List<DylockLockEntry> lents = new ArrayList<DylockLockEntry>();\n double ltime = 0;\n double ntime = 0;\n for ( ; ; ) {\n\t String ln = br.readLine(); \n\t if (ln == null) break;\n\t if (ln.startsWith(\"ENDBLOCK\")) {\n\t processBlock(lents);\n\t List<DylockLockEntry> xents = lents;\n\t lents = ents;\n\t ents = xents;\n\t ltime = ntime;\n\t ntime = 0;\n\t }\n\t else {\n\t DylockLockEntry ent = new DylockLockEntry(this,ln);\n\t double t0 = ent.getTime();\n\t if (t0 <= ltime) lents.add(ent);\n\t else {\n\t if (t0 > ntime) ntime = t0;\n\t ents.add(ent);\n\t }\n\t }\n }\n processBlock(ents);\n }\n catch (IOException e) {\n System.err.println(\"DYLOCK: Problem reading input file: \" + e);\n }\n}", "protected Boolean runRemoteTaskAgainstState( IMap<String, ClusterFileState> stateCache, ClusterFileState fState)\n\t\tthrows Exception {\n\n\t\t// DEBUG\n\n\t\tif ( hasDebug())\n\t\t\tDebug.println( \"CheckFileByteLockTask: checkArea=\" + m_lockCheck + ( m_writeCheck ? \" (Write)\" : \" (Read)\") + \" on \" + fState);\n\n\t\t// Check if there are any locks on the file\n\n\t\tboolean accessOK = true;\n\n\t\tif ( fState.hasActiveLocks() == true) {\n\n\t\t\t// Check if the area is readable/writeable by this user\n\n\t\t\tif ( m_writeCheck == true) {\n\n\t\t\t\t// Check if the file area is writeable\n\n\t\t\t\taccessOK = fState.getLockList().canWriteFile( m_lockCheck);\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\t// Check if the file area is readable\n\n\t\t\t\taccessOK = fState.getLockList().canReadFile( m_lockCheck);\n\t\t\t}\n\t\t}\n\n\t\t// Return the access status\n\n\t\treturn accessOK;\n\t}", "public void writeChanges(UIDFolder f, CachingFolderInfo cfi) throws IOException, MessagingException {\n boolean hasLock = false;\n while (!hasLock) {\n synchronized (this) {\n if (!lock) {\n lock = true;\n hasLock = true;\n }\n }\n if (!hasLock) try {\n Thread.sleep(1000);\n } catch (Exception e) {\n }\n }\n try {\n if (cacheFile.exists()) {\n BufferedReader in = new BufferedReader(new FileReader(cacheFile));\n String nextLine = in.readLine();\n while (nextLine != null) {\n if (nextLine.equalsIgnoreCase(APPEND_MSG)) {\n nextLine = in.readLine();\n ArrayList messageList = new ArrayList();\n ArrayList uidList = new ArrayList();\n while (!nextLine.equalsIgnoreCase(\"DONE_MSG\")) {\n long uid = Long.parseLong(nextLine);\n uidList.add(new Long(uid));\n net.suberic.pooka.MessageInfo m = cfi.getMessageInfoByUid(uid);\n if (m != null) messageList.add(m.getMessage());\n nextLine = in.readLine();\n }\n Message[] messages = new Message[messageList.size()];\n for (int i = 0; i < messageList.size(); i++) {\n messages[i] = (Message) messageList.get(i);\n }\n ((javax.mail.Folder) f).appendMessages(messages);\n long[] invalidatedUids = new long[uidList.size()];\n ;\n for (int i = 0; i < uidList.size(); i++) {\n invalidatedUids[i] = ((Long) uidList.get(i)).longValue();\n }\n cfi.getCache().invalidateCache(invalidatedUids, MessageCache.MESSAGE);\n nextLine = in.readLine();\n } else if (nextLine.equalsIgnoreCase(EXPUNGE_MSG)) try {\n ((Folder) f).expunge();\n } catch (MessagingException me) {\n } else if (nextLine.length() > 0) {\n boolean value;\n Flags newFlags = new Flags();\n long uid = Long.parseLong(nextLine);\n nextLine = in.readLine();\n while (nextLine != null && !nextLine.equals(DONE_MSG)) {\n if (nextLine.equalsIgnoreCase(\"Deleted\")) {\n newFlags.add(Flags.Flag.DELETED);\n } else if (nextLine.equalsIgnoreCase(\"Answered\")) newFlags.add(Flags.Flag.ANSWERED); else if (nextLine.equalsIgnoreCase(\"Draft\")) newFlags.add(Flags.Flag.DRAFT); else if (nextLine.equalsIgnoreCase(\"Flagged\")) newFlags.add(Flags.Flag.FLAGGED); else if (nextLine.equalsIgnoreCase(\"Recent\")) newFlags.add(Flags.Flag.RECENT); else if (nextLine.equalsIgnoreCase(\"SEEN\")) newFlags.add(Flags.Flag.SEEN); else newFlags.add(new Flags(nextLine));\n nextLine = in.readLine();\n }\n nextLine = in.readLine();\n if (nextLine.equalsIgnoreCase(\"true\")) {\n value = true;\n } else value = false;\n try {\n Message m = f.getMessageByUID(uid);\n if (m != null) {\n m.setFlags(newFlags, value);\n }\n nextLine = in.readLine();\n } catch (MessagingException me) {\n }\n }\n nextLine = in.readLine();\n }\n in.close();\n cacheFile.delete();\n }\n } finally {\n lock = false;\n }\n }", "private void loadAndProcessInput(){\n transactions_set = new ArrayList<>();\n strItemToInt = new HashMap<>();\n intToStrItem = new HashMap<>();\n \n try{\n BufferedReader br = new BufferedReader(\n new InputStreamReader(\n new FileInputStream(this.inputFilePath)\n ));\n \n String line;\n while((line = br.readLine()) != null){\n String[] tokens = line.split(\" \");\n ArrayList<Integer> itemsId = new ArrayList();\n \n for(String item : tokens){\n if( ! strItemToInt.containsKey(item)){\n strItemToInt.put(item, strItemToInt.size()+1);\n intToStrItem.put(strItemToInt.size(), item);\n }\n itemsId.add(strItemToInt.get(item));\n }\n transactions_set.add(itemsId);\n }\n }\n catch(IOException fnfEx){\n System.err.println(\"Input Error\");\n fnfEx.printStackTrace();\n }\n \n }", "private void rereadNameSpaceEntry(final PinTask task)\n throws CacheException\n {\n refreshTimeout(task, getExpirationTimeForNameSpaceLookup());\n \n /* We allow the set of provided attributes to be incomplete\n * and thus add attributes required by pool manager.\n */\n Set<FileAttribute> attributes = EnumSet.noneOf(FileAttribute.class);\n attributes.addAll(task.getFileAttributes().getDefinedAttributes());\n attributes.addAll(PoolMgrSelectReadPoolMsg.getRequiredAttributes());\n \n _pnfsStub.send(new PnfsGetFileAttributes(task.getPnfsId(), attributes),\n PnfsGetFileAttributes.class,\n new AbstractMessageCallback<PnfsGetFileAttributes>()\n {\n @Override\n public void success(PnfsGetFileAttributes msg) {\n try {\n task.setFileAttributes(msg.getFileAttributes());\n \n /* Ensure that task is still valid\n * and stays valid for the duration\n * of the pool selection.\n */\n refreshTimeout(task, getExpirationTimeForPoolSelection());\n selectReadPool(task);\n } catch (CacheException e) {\n fail(task, e.getRc(), e.getMessage());\n } catch (RuntimeException e) {\n fail(task, CacheException.UNEXPECTED_SYSTEM_EXCEPTION, e.toString());\n }\n }\n \n @Override\n public void failure(int rc, Object error) {\n fail(task, rc, error.toString());\n }\n \n @Override\n public void noroute(CellPath path) {\n /* PnfsManager is unreachable. We\n * expect this to be a transient\n * problem and retry in a moment.\n */\n retry(task, RETRY_DELAY);\n }\n \n @Override\n public void timeout(CellPath path) {\n /* PnfsManager did not respond. We\n * expect this to be a transient\n * problem and retry in a moment.\n */\n retry(task, SMALL_DELAY);\n }\n });\n }", "public static void setDFPAccountsInCache(List<AccountDTO> accountDFPList, String key){ \n\t \tkey = ACCOUNTS_DFP_KEY+\"-\"+key;\n\t\t\tlog.info(\"setDFPAccountsInCache : memcache key:\"+key);\t\t\t\n\t\t\tif(memcache !=null && memcache.contains(key)){\n\t \t\tmemcache.delete(key);\n\t \t}\n\t \tmemcache.put(key, accountDFPList, Expiration.byDeltaSeconds(expireInDay));\n\t\t}", "protected abstract Collection<Cache> loadCaches();", "@SuppressWarnings(\"unused\")\n\t@Override\n\tpublic void run() {\n\t\tList<LineageCacheEntry> lockedOrLiveEntries = new ArrayList<>();\n\t\tint count = 0;\n\n\t\t// Stop if 1) Evicted the request number of entries, 2) The parallel\n\t\t// CPU instruction is ended, and 3) No non-live entries left in the cache.\n\t\tlong t0 = DMLScript.STATISTICS ? System.nanoTime() : 0;\n\t\t/*while (!LineageGPUCacheEviction.isGPUCacheEmpty())\n\t\t{\n\t\t\tif (LineageCacheConfig.STOPBACKGROUNDEVICTION)\n\t\t\t\t// This logic reduces #evictions if the cpu instructions is so small\n\t\t\t\t// that it ends before the background thread reaches this condition.\n\t\t\t\t// However, this check decreases race conditions.\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tif (numEvicts > 0 && count > numEvicts)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tLineageCacheEntry le = LineageGPUCacheEviction.pollFirstEntry();\n\t\t\tGPUObject cachedGpuObj = le.getGPUObject();\n\t\t\tGPUObject headGpuObj = cachedGpuObj.lineageCachedChainHead != null\n\t\t\t\t\t? cachedGpuObj.lineageCachedChainHead : cachedGpuObj;\n\t\t\t// Check and continue if any object in the linked list is locked\n\t\t\tboolean lockedOrLive = false;\n\t\t\tGPUObject nextgpuObj = headGpuObj;\n\t\t\twhile (nextgpuObj!= null) {\n\t\t\t\tif (!nextgpuObj.isrmVarPending() || nextgpuObj.isLocked()) // live or locked\n\t\t\t\t\tlockedOrLive = true;\n\t\t\t\tnextgpuObj = nextgpuObj.nextLineageCachedEntry;\n\t\t\t}\n\t\t\tif (lockedOrLive) {\n\t\t\t\tlockedOrLiveEntries.add(le);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// TODO: First remove the gobj chains that don't contain any live and dirty objects.\n\t\t\t//currentAvailableMemory += headGpuObj.getSizeOnDevice();\n\n\t\t\t// Copy from device to host for all live and dirty objects\n\t\t\tboolean copied = false;\n\t\t\tnextgpuObj = headGpuObj;\n\t\t\twhile (nextgpuObj!= null) {\n\t\t\t\t// Keeping isLinCached as True here will save data deletion by copyFromDeviceToHost\n\t\t\t\tif (!nextgpuObj.isrmVarPending() && nextgpuObj.isDirty()) { //live and dirty\n\t\t\t\t\tnextgpuObj.copyFromDeviceToHost(null, true, true);\n\t\t\t\t\tcopied = true;\n\t\t\t\t}\n\t\t\t\tnextgpuObj.setIsLinCached(false);\n\t\t\t\tnextgpuObj = nextgpuObj.nextLineageCachedEntry;\n\t\t\t}\n\n\t\t\t// Copy from device cache to CPU lineage cache if not already copied\n\t\t\tLineageGPUCacheEviction.copyToHostCache(le, null, copied);\n\n\t\t\t// For all the other objects, remove and clear data (only once)\n\t\t\tnextgpuObj = headGpuObj;\n\t\t\tboolean freed = false;\n\t\t\tsynchronized (nextgpuObj.getGPUContext().getMemoryManager().getGPUMatrixMemoryManager().gpuObjects) {\n\t\t\t\twhile (nextgpuObj!= null) {\n\t\t\t\t\t// If not live or live but not dirty\n\t\t\t\t\tif (nextgpuObj.isrmVarPending() || !nextgpuObj.isDirty()) {\n\t\t\t\t\t\tif (!freed) {\n\t\t\t\t\t\t\tnextgpuObj.clearData(null, true);\n\t\t\t\t\t\t\t//FIXME: adding to rmVar cache causes multiple failures due to concurrent\n\t\t\t\t\t\t\t//access to the rmVar cache and other data structures. VariableCP instruction\n\t\t\t\t\t\t\t//and other instruction free memory and add to rmVar cache in parallel to\n\t\t\t\t\t\t\t//the background eviction task, which needs to be synchronized.\n\t\t\t\t\t\t\tfreed = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tnextgpuObj.clearGPUObject();\n\t\t\t\t\t}\n\t\t\t\t\tnextgpuObj = nextgpuObj.nextLineageCachedEntry;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Clear the GPUOjects chain\n\t\t\tGPUObject currgpuObj = headGpuObj;\n\t\t\twhile (currgpuObj.nextLineageCachedEntry != null) {\n\t\t\t\tnextgpuObj = currgpuObj.nextLineageCachedEntry;\n\t\t\t\tcurrgpuObj.lineageCachedChainHead = null;\n\t\t\t\tcurrgpuObj.nextLineageCachedEntry = null;\n\t\t\t\tnextgpuObj.lineageCachedChainHead = null;\n\t\t\t\tcurrgpuObj = nextgpuObj;\n\t\t\t}\n\n\t\t\t//if(currentAvailableMemory >= size)\n\t\t\t\t// This doesn't guarantee allocation due to fragmented freed memory\n\t\t\t//\tA = cudaMallocNoWarn(tmpA, size, null); \n\t\t\tif (DMLScript.STATISTICS) {\n\t\t\t\tLineageCacheStatistics.incrementGpuAsyncEvicts();\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\t// Add the locked entries back to the eviction queue\n\t\tif (!lockedOrLiveEntries.isEmpty())\n\t\t\tLineageGPUCacheEviction.addEntryList(lockedOrLiveEntries);\n\t\t\n\t\tif (DMLScript.STATISTICS) //TODO: dedicated statistics for lineage\n\t\t\tGPUStatistics.cudaEvictTime.add(System.nanoTime() - t0); */\n\t}", "public static void ProcessTransaction(){\r\n\t Iterator<String> iter = masterEventsFile.iterator();\r\n\t //this uses the deletePastEvents method to delete all the past events in the masterEventsFile\r\n\t while (iter.hasNext()){\r\n\t\t String e = iter.next();\r\n\t \r\n\t //for (String e : masterEventsFile){\r\n\t\t Event CheckEvent = new Event(e);\r\n\t\t boolean pastDate = deletePastEvents(CheckEvent);\r\n\t\t if (!pastDate){\r\n\t\t\t break;\r\n\t\t } \r\n\t }\r\n\t //makes each line of the masterEventFile into an Event object for easier processing\r\n\t for (String e : masterEventsFile){\r\n\t\t Event event = new Event(e);\r\n\t\t alteredEventsFile.add(event);\r\n\t }\r\n\t //makes each line into a Transaction object for easier processing\r\n\t for (String t: mergedEventTransactionFile){\r\n\t\t Transaction transaction= new Transaction(t);\r\n\t\t allTransactions.add(transaction);\r\n\t }\r\n\t \r\n\t //Iterates through each Transaction processing them one at a time based on their id\r\n\t for (Transaction t: allTransactions){\r\n\t\t //process sell, return, create, add, delete,end\r\n\t\t if(t.id == 00){\r\n\t\t\t break;\r\n\t\t }\r\n\t\t Event changeEvent = findEvent(t.name);\r\n\t\t if (changeEvent != null){\r\n\t\t\t if (t.id == 01){\t\t\t\t\t\t//sell transaction\r\n\t\t\t\t if((changeEvent.ticket -t.ticket)<0){\r\n\t\t\t\t\t System.out.println(\"Sell transaction could not be performed, not enough tickets\"); //Contraints: no event should ever have a negative nmber of ticekts\r\n\t\t\t\t }else{\r\n\t\t\t\t\t changeEvent.ticket = changeEvent.ticket -t.ticket;\r\n\t\t\t\t }\r\n\t\t\t }else if (t.id == 02){\t\t\t\t//return transaction\r\n\t\t\t\t changeEvent.ticket =changeEvent.ticket + t.ticket;\r\n\t\t\t }else if (t.id == 04){\t\t\t\t//add transaction\r\n\t\t\t\t changeEvent.ticket += t.ticket;\t\r\n\t\t\t }else if (t.id == 05){\t\t\t\t//delete transaction\r\n\t\t\t\t changeEvent = null;\r\n\t\t\t }\r\n\t\t }else{\t\t\t\t\t\t\t\t//constraint: a new event must have a name different from all existing events\r\n\t\t\t if(t.id == 03){\t\t\t\t\t\t//create transaction\r\n\t\t\t\t Event newEvent = new Event (t.getEventLine());\r\n\t\t\t\t InsertEvent(newEvent);\t\t//constraint: <asterEventFile must be kept in ascending order by date\r\n\t\t\t }\r\n\t\t }\r\n\t }\r\n\t \r\n\t String newMasterEventsFile = \"\";\r\n\t String newCurrentEventsFile = \"\"\r\n\t\t\t ;\r\n\t // creates two strings in proper format for output to currenteventsFile and MasterEventsFile\r\n\t for (Event e: alteredEventsFile){\t\t\t\t\t\t\t\t//assumes correct input... constraint:every line is exactly 33 characters(plus newline)\r\n\t\t newMasterEventsFile += e.getEventLine() +\"\\n\";\r\n\t\t newCurrentEventsFile += e.getCurrentEventLine() + \"\\n\";\r\n\t }\r\n\t \r\n\t //does file output stuff\r\n\t try{\r\n\t\t endBackEnd(newMasterEventsFile, newCurrentEventsFile);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }", "private void testAllFile(String ehCacheFile) throws Exception {\n ClassLoader existingCl = currentThread().getContextClassLoader();\n DefaultCacheManager dcm = null;\n Cache<Object, Object> sampleDistributedCache2 = null;\n try {\n ClassLoader delegatingCl = new Jbc2InfinispanTransformerTest.TestClassLoader(existingCl);\n currentThread().setContextClassLoader(delegatingCl);\n String fileName = getFileName(ehCacheFile);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n convertor.parse(fileName, baos, ConfigFilesConvertor.TRANSFORMATIONS.get(ConfigFilesConvertor.EHCACHE_CACHE1X), Thread.currentThread().getContextClassLoader());\n\n dcm = (DefaultCacheManager) TestCacheManagerFactory.fromStream(new ByteArrayInputStream(baos.toByteArray()));\n Cache<Object,Object> defaultCache = dcm.getCache();\n defaultCache.put(\"key\", \"value\");\n Configuration configuration = defaultCache.getCacheConfiguration();\n\n assertEquals(configuration.eviction().maxEntries(),10000);\n assertEquals(configuration.expiration().maxIdle(), 121);\n assertEquals(configuration.expiration().lifespan(), 122);\n LoadersConfiguration loaders = configuration.loaders();\n assert loaders.cacheLoaders().get(0) instanceof FileCacheStoreConfiguration;\n\n assertEquals(configuration.expiration().wakeUpInterval(), 119000);\n assertEquals(configuration.eviction().strategy(), EvictionStrategy.LRU);\n\n String definedCacheNames = dcm.getDefinedCacheNames();\n assert definedCacheNames.contains(\"sampleCache1\");\n assert definedCacheNames.contains(\"sampleCache2\");\n assert definedCacheNames.contains(\"sampleCache3\");\n assert definedCacheNames.contains(\"sampleDistributedCache1\");\n assert definedCacheNames.contains(\"sampleDistributedCache2\");\n assert definedCacheNames.contains(\"sampleDistributedCache3\");\n\n sampleDistributedCache2 = dcm.getCache(\"sampleDistributedCache2\");\n Configuration configuration2 = sampleDistributedCache2.getCacheConfiguration();\n assert configuration2.loaders().cacheLoaders().size() == 1;\n assert configuration2.expiration().lifespan() == 101;\n assert configuration2.expiration().maxIdle() == 102;\n assertEquals(configuration2.clustering().cacheMode(), CacheMode.INVALIDATION_SYNC);\n\n } finally {\n currentThread().setContextClassLoader(existingCl);\n TestingUtil.killCaches(sampleDistributedCache2);\n TestingUtil.killCacheManagers(dcm);\n }\n }", "interface Cache {\n\n /** @return A cache entry for given path string or <code>null</code> (if file cannot be read or too large to cache).\n * This method increments CacheEntry reference counter, caller must call {@link #checkIn(CacheEntry)} to release returned entry (when not null). */\n CacheEntry checkOut(CacheEntryLoader cacheEntryLoader);\n\n /**\n * Method to release cache entry previously obtained from {@link #checkOut(CacheEntryLoader)} call.\n * This method decrements CacheEntry reference counter.\n */\n void checkIn(CacheEntry key);\n\n /** Invalidates cached entry for given path string (if it is cached) */\n void invalidate(String pathString);\n\n void rename(String fromPathString, String toPathString);\n\n// /** Preload given file path in cache (if cache has vacant spot). Preloading happens in background. Preloaded pages initially have zero reference counter. */\n// void preload (String pathString);\n\n /** Clears the cache of all entries (even if some entries are checked out) */\n void clear();\n\n /** Allocates entry of given size for writing.\n * It will not be visible to others until caller calls {@link #update(String, CacheEntry)}.*/\n CacheEntry alloc(long size);\n\n /** Registers recently writtien cache entry as available for reading */\n void update(String pathString, CacheEntry cacheEntry);\n}", "private void loadCDAccounts(String cdAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(cdAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date startDate = dateFormat.parse(splitLine[5]);\n Date endDate = dateFormat.parse(splitLine[6]);\n\n CD cdAccount = new CD(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n startDate,\n endDate);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n cdAccount.setTransactions(accountTransactions);\n\n //add CD Accounts...\n accounts.add(cdAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public void computeTransactions(boolean saveTofile) throws IOException {\n log.debug(\"Computing transactions...\");\n int predicateCount = 1;\n for (Entry<String, Set<String>> predicateBySubject : predicatesBySubject.entrySet()) {\n Set<String> predicates = predicateBySubject.getValue();\n List<Integer> transaction = new ArrayList<>();\n for (String predicate : predicates) {\n if (mappingPredicateToInt.containsKey(predicate))\n transaction.add(mappingPredicateToInt.get(predicate));\n else {\n mappingPredicateToInt.put(predicate, predicateCount);\n transaction.add(predicateCount);\n predicateCount++;\n }\n }\n transactions.add(transaction);\n }\n if (saveTofile) {\n \t//enregistrer ici les transations dans transactionsFilePath\n \tFiles.write(Paths.get(transactionsFilePath), getTransactionsToStringList(), Charset.forName(\"UTF-8\"));\n }\n log.debug(\"# of transactions: \" + transactions.size());\n }", "public void cacheResult(SitbMoneyCollection sitbMoneyCollection);", "public LocalLockMergingSegmentReadLocker(Cache<?, ?> cache, String indexName) {\n this.delegate = new DistributedSegmentReadLocker((Cache<Object, Integer>) cache, cache, cache, indexName);\n }", "public void updateCache() {\n\n log.info(\"Updating solar flare cache\");\n Date fallbackStartDate = DateHelper.getFallbackDate();\n solarFlareRepository.count()\n .map(total -> {\n if (total > 0) {\n solarFlareRepository.findTopByBeginTimeIsNotNullOrderByBeginTimeDesc()\n .map(solarFlare -> {\n log.info(\"Entries exist, performing incremental update\");\n log.info(\n \"Last entry found at {}\",\n DateHelper.getPrintableString(solarFlare.getBeginTime())\n );\n collectForRange(solarFlare.getBeginTime(), null);\n return solarFlare;\n })\n .subscribe();\n } else {\n log.info(\"No entries found, performing a full import\");\n collectForRange(fallbackStartDate, null);\n }\n return total;\n })\n .subscribe();\n }", "public void cacheResult(java.util.List<DataEntry> dataEntries);", "@Override\n\tpublic final void beforeExecutions() throws CacheException {\n\t\tif ( persister.hasCache() ) {\n\t\t\tfinal CollectionRegionAccessStrategy cache = persister.getCacheAccessStrategy();\n\t\t\tfinal Object ck = cache.generateCacheKey(\n\t\t\t\t\tkey,\n\t\t\t\t\tpersister,\n\t\t\t\t\tsession.getFactory(),\n\t\t\t\t\tsession.getTenantIdentifier()\n\t\t\t);\n\t\t\tfinal SoftLock lock = cache.lockItem( session, ck, null );\n\t\t\t// the old behavior used key as opposed to getKey()\n\t\t\tafterTransactionProcess = new CacheCleanupProcess( key, persister, lock );\n\t\t}\n\t}", "public void cacheResult(\n\t\tjava.util.List<SitbMoneyCollection> sitbMoneyCollections);", "private void loadSavingsAccounts(String savingsAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(savingsAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftAccountId = Integer.parseInt(splitLine[5]);\n\n Savings savingsAccount = new Savings(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftAccountId);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n savingsAccount.setTransactions(accountTransactions);\n\n //add savings account...\n accounts.add(savingsAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public void cacheResult(DataEntry dataEntry);", "private void checkCacheEnableStatus(FlowGraph graph, JobMySqlModel lastJob) {\n\n // Based on the time when the task was created,\n // nodes that have been edited after this time cannot use the cache.\n long lastJobCreateTime = lastJob.getCreatedTime().getTime();\n\n // Temporarily mark all nodes as cache available\n graph.getAllJobSteps().forEach(x -> x.setHasCacheResult(true));\n\n // Find the nodes whose version number is greater than the base time.\n // These nodes have been edited after the task is created, and the cache cannot be used.\n graph\n .getAllJobSteps()\n .stream()\n .filter(x -> x.getParamsVersion() >= lastJobCreateTime)\n .forEach(x -> x.setHasCacheResult(false));\n\n\n // Check whether the cache of the task corresponding to the node is available.\n // If the task status is incorrect, the cache is not available.\n // A node may correspond to multiple tasks\n List<TaskMySqlModel> taskMysqlList = taskService.listByJobId(lastJob.getJobId(), lastJob.getMyRole());\n Map<String, List<TaskMySqlModel>> taskMap = new HashMap<>();\n for (TaskMySqlModel model : taskMysqlList) {\n List<TaskMySqlModel> taskList = taskMap.get(model.getFlowNodeId());\n if (taskList == null) {\n taskList = new ArrayList<>();\n }\n taskList.add(model);\n taskMap.put(model.getFlowNodeId(), taskList);\n }\n\n graph.getAllJobSteps().stream().filter(x -> x.getHasCacheResult()).filter(x -> {\n List<TaskMySqlModel> taskList = taskMap.get(x.getNodeId());\n if (taskList == null) {\n return true;\n } else {\n for (TaskMySqlModel m : taskList) {\n if (m.getStatus() != TaskStatus.success) {\n return true;\n }\n }\n }\n return false;\n }).forEach(x -> x.setHasCacheResult(false));\n }", "private void dispatch(List<Request> requests) {\n List<Request> inbox = new ArrayList<>(requests);\n\n // run everything in a single transaction\n dao.tx(tx -> {\n int offset = 0;\n Set<UUID> projectsToSkip = new HashSet<>();\n\n while (true) {\n // fetch the next few ENQUEUED processes from the DB\n List<ProcessQueueEntry> candidates = new ArrayList<>(dao.next(tx, offset, BATCH_SIZE));\n if (candidates.isEmpty() || inbox.isEmpty()) {\n // no potential candidates or no requests left to process\n break;\n }\n\n uniqueProjectsHistogram.update(countUniqueProjects(candidates));\n\n // filter out the candidates that shouldn't be dispatched at the moment\n for (Iterator<ProcessQueueEntry> it = candidates.iterator(); it.hasNext(); ) {\n ProcessQueueEntry e = it.next();\n\n // currently there are no filters applicable to standalone (i.e. without a project) processes\n if (e.projectId() == null) {\n continue;\n }\n\n // see below\n if (projectsToSkip.contains(e.projectId())) {\n it.remove();\n continue;\n }\n\n // TODO sharded locks?\n boolean locked = dao.tryLock(tx);\n if (!locked || !pass(tx, e)) {\n // the candidate didn't pass the filter or can't lock the queue\n // skip to the next candidate (of a different project)\n it.remove();\n }\n\n // only one process per project can be dispatched at the time, currently the filters are not\n // designed to run multiple times per dispatch \"tick\"\n\n // TODO\n // this can be improved if filters accepted a list of candidates and returned a list of\n // those who passed. However, statistically each batch of candidates contains unique project IDs\n // so \"multi-entry\" filters are less effective and just complicate things\n // in the future we might need to consider batching up candidates by project IDs and using sharded\n // locks\n projectsToSkip.add(e.projectId());\n }\n\n List<Match> matches = match(inbox, candidates);\n if (matches.isEmpty()) {\n // no matches, try fetching the next N records\n offset += BATCH_SIZE;\n continue;\n }\n\n for (Match m : matches) {\n ProcessQueueEntry candidate = m.response;\n\n // mark the process as STARTING and send it to the agent\n // TODO ProcessQueueDao#updateStatus should be moved to ProcessManager because it does two things (updates the record and inserts a status history entry)\n queueDao.updateStatus(tx, candidate.key(), ProcessStatus.STARTING);\n\n sendResponse(m);\n\n inbox.remove(m.request);\n }\n }\n });\n }", "Set<SoftLock> collectAllSoftLocksForTransactionID(TransactionID transactionID);", "public void apply(String cacheKey) {\n }", "@Override\n\tpublic void processInstruction(ExecutionContext ec) {\n\t\tlong t1 = System.currentTimeMillis();\n\n\t\tSparkExecutionContext sec = (SparkExecutionContext) ec;\n\n\t\tCacheType type = _type;\n\t\tString rddVar = type.isRight() ? input1.getName() : input2.getName();\n\t\tString bcastVar = type.isRight() ? input2.getName() : input1.getName();\n\t\tString betterRddVar = rddVar + \"_filtered\";\n\t\tString betterBcastVar = bcastVar + \"_filtered\";\n\t\tMatrixCharacteristics mcRdd = sec.getMatrixCharacteristics(rddVar);\n\t\tMatrixCharacteristics mcBc = sec.getMatrixCharacteristics(bcastVar);\n\t\tboolean needRepartitionNow = needRepartitionNow(sec);\n\t\tboolean needFilterNow = needFilterNow(sec);\n\t\tString dVarName = null; // TODO added by czh 检查是否是dVar\n\t\tif (_needCache && DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\tdVarName = DWhileStatement.getDVarNameFromTmpVar(bcastVar);\n\t\t\tSystem.out.println(\"in delta mapmm: \" + dVarName);\n\t\t} else if (_needCache) {\n\t\t\tdVarName = bcastVar;\n\t\t}\n\n\t\t// TODO added by czh\n\t\tif (rddVar.equals(\"G\")) {\n\t\t\tDWhileProgramBlock.midT2 = System.currentTimeMillis();\n\t\t}\n\n\t\t// TODO added by czh 删\n\t\t_outputEmpty = false;\n\n\t\t//get input rdd with preferred number of partitions to avoid unnecessary repartitionNonZeros\n\t\tJavaPairRDD<MatrixIndexes, MatrixBlock> in1;\n\t\tif (_needCache && (hasRepartitioned.contains(rddVar) || hasFiltered.contains(rddVar)) && !needRepartitionNow\n\t\t\t\t&& DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\t// 在dwhile中, 做过repartition或filter且当前不需要repartition时取 betterRddVar\n\t\t\tin1 = sec.getBinaryBlockRDDHandleForVariable(betterRddVar,\n\t\t\t\t\t(requiresFlatMapFunction(type, mcBc) && requiresRepartitioning(\n\t\t\t\t\t\t\ttype, mcRdd, mcBc, sec.getSparkContext().defaultParallelism())) ?\n\t\t\t\t\t\t\tgetNumRepartitioning(type, mcRdd, mcBc) : -1, _outputEmpty);\n\t\t} else {\n\t\t\tin1 = sec.getBinaryBlockRDDHandleForVariable(rddVar,\n\t\t\t\t\t(requiresFlatMapFunction(type, mcBc) && requiresRepartitioning(\n\t\t\t\t\t\t\ttype, mcRdd, mcBc, sec.getSparkContext().defaultParallelism())) ?\n\t\t\t\t\t\t\tgetNumRepartitioning(type, mcRdd, mcBc) : -1, _outputEmpty);\n\t\t}\n\n\t\t//investigate if a repartitioning - including a potential flip of broadcast and rdd\n\t\t//inputs - is required to ensure moderately sized output partitions (2GB limitation)\n\t\tif (requiresFlatMapFunction(type, mcBc) && requiresRepartitioning(type, mcRdd, mcBc, in1.getNumPartitions())) {\n\t\t\tint numParts = getNumRepartitioning(type, mcRdd, mcBc);\n\t\t\tint numParts2 = getNumRepartitioning(type.getFlipped(), mcBc, mcRdd);\n\t\t\tif (numParts2 > numParts) { //flip required\n\t\t\t\ttype = type.getFlipped();\n\t\t\t\trddVar = type.isRight() ? input1.getName() : input2.getName();\n\t\t\t\tbcastVar = type.isRight() ? input2.getName() : input1.getName();\n\t\t\t\tmcRdd = sec.getMatrixCharacteristics(rddVar);\n\t\t\t\tmcBc = sec.getMatrixCharacteristics(bcastVar);\n\t\t\t\tin1 = sec.getBinaryBlockRDDHandleForVariable(rddVar);\n\t\t\t\tLOG.warn(\"Mapmm: Switching rdd ('\" + bcastVar + \"') and broadcast ('\" + rddVar + \"') inputs \"\n\t\t\t\t\t\t+ \"for repartitioning because this allows better control of output partition \"\n\t\t\t\t\t\t+ \"sizes (\" + numParts + \" < \" + numParts2 + \").\");\n\t\t\t}\n\t\t}\n\n\t\tif (_needCache && needRepartitionNow) {\n\t\t\tSystem.out.println(\"repartitioning... \" + bcastVar);\n\t\t\thasRepartitioned.add(rddVar);\n\n\t\t\t// repartitionNonZeros in2\n\t\t\tMatrixBlock in2Block = sec.getMatrixObject(bcastVar).acquireReadAndRelease();\n\n\t\t\tMatrixBlock newIn2Block = LibMatrixReorg.repartitionNonZerosWithEmpty(\n\t\t\t\t\tsec, in2Block, true, dVarName, in1.getNumPartitions(), mcRdd);\n\t\t\tif (!sec.containsVariable(betterBcastVar)) {\n\t\t\t\tsec.setVariable(betterBcastVar, new MatrixObject(sec.getMatrixObject(bcastVar)));\n\t\t\t}\n\t\t\tsec.cleanupBroadcastByDWhile(sec.getMatrixObject(betterBcastVar));\n\t\t\tsec.setMatrixOutput(betterBcastVar, newIn2Block);\n\n\t\t\t// repartitionNonZeros in1\n\t\t\tString orderName = DWhileStatement.getRepartitionOrderName(dVarName);\n\t\t\tPartitionedBroadcast<MatrixBlock> order = sec.getBroadcastForVariable(orderName);\n\t\t\tin1 = in1.mapPartitionsToPair(new RepartitionMapFunction(order));\n\t\t\tif (!sec.containsVariable(betterRddVar)) {\n\t\t\t\tsec.setVariable(betterRddVar, new MatrixObject(sec.getMatrixObject(rddVar)));\n\t\t\t}\n\t\t\tsec.getMatrixCharacteristics(betterRddVar).setCols(newIn2Block.getNumRows());\n\t\t\tin1 = sec.persistRdd(rddVar, in1, MEMORY_AND_DISK);\n\t\t\tsec.setRDDHandleForVariable(betterRddVar, in1);\n\t\t\tsec.addLineageBroadcast(betterRddVar, orderName);\n\n\t\t\tSystem.out.println(\" done\");\n\n\t\t} else if (_needCache && hasRepartitioned.contains(rddVar) && DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\t// 若在之前的迭代已repartition in1, 则调整 in2 顺序\n\t\t\tMatrixBlock in2Block = sec.getMatrixObject(bcastVar).acquireReadAndRelease();\n\t\t\tMatrixBlock newIn2Block =\n\t\t\t\t\tLibMatrixReorg.repartitionByOrderWithEmpty(sec, in2Block, new MatrixBlock(), true, dVarName);\n\n\t\t\tint selectSum = Arrays.stream(newIn2Block.getSelectBlock().getData()).sum();\n\t\t\tif (selectSum == 0) {\n\t\t\t\tupdateBinaryMMOutputMatrixCharacteristics(sec, true);\n\t\t\t\tMatrixCharacteristics outputMc = sec.getMatrixCharacteristics(output.getName());\n\t\t\t\tsec.setMatrixOutput(output.getName(),\n\t\t\t\t\t\tnew MatrixBlock((int) outputMc.getRows(), (int) outputMc.getCols(), true), getExtendedOpcode());\n\n\t\t\t\t// TODO added by czh debug\n\t\t\t\tlong t2 = System.currentTimeMillis();\n\t\t\t\tSystem.out.println(\"skip mapmm \" + bcastVar + \" time: \" + (t2 - t1) / 1000.0);\n\n\t\t\t\treturn;\n\t\t\t}\n\n\n\t\t\tif (!ec.containsVariable(betterBcastVar)) {\n\t\t\t\tMatrixObject mb = new MatrixObject(sec.getMatrixObject(bcastVar));\n\t\t\t\tec.setVariable(betterBcastVar, mb);\n\t\t\t}\n\t\t\tsec.unpersistBroadcastByDWhile(sec.getMatrixObject(betterBcastVar));\n\t\t\tsec.setMatrixOutput(betterBcastVar, newIn2Block);\n\n\t\t} else if (_needCache && DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\t// 设置 in2.selectBlock\n\t\t\tMatrixBlock in2Block = sec.getMatrixObject(bcastVar).acquireReadAndRelease();\n\t\t\tString selectName = DWhileStatement.getSelectName(dVarName);\n\t\t\tMatrixBlock select = sec.getMatrixObject(selectName).acquireReadAndRelease();\n\t\t\tfloat blockSize = OptimizerUtils.DEFAULT_BLOCKSIZE;\n\t\t\tint brlen = (int) Math.ceil(in2Block.getNumRows() / blockSize);\n//\t\t\tFilterBlock selectBlock = sec.getMatrixObject(selectName).acquireReadAndRelease().getFilterBlock();\n\n\t\t\tFilterBlock selectBlock = new FilterBlock(brlen, 1);\n\t\t\tselectBlock.initData();\n\t\t\tfor (int bi = 0; bi < brlen; bi++) {\n\t\t\t\tboolean flag = false;\n\t\t\t\tfor (int i = (int) (bi * blockSize); i < (bi + 1) * blockSize && i < in2Block.getNumRows(); i++) {\n\t\t\t\t\tif (select.getValue(i, 0) != 0) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (flag) {\n\t\t\t\t\tselectBlock.setData(bi, 0, 1);\n\t\t\t\t} else {\n\t\t\t\t\tselectBlock.setData(bi, 0, 0);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint selectSum = Arrays.stream(selectBlock.getData()).sum();\n\t\t\tif (selectSum == 0) {\n\t\t\t\tupdateBinaryMMOutputMatrixCharacteristics(sec, true);\n\t\t\t\tMatrixCharacteristics outputMc = sec.getMatrixCharacteristics(output.getName());\n\t\t\t\tsec.setMatrixOutput(output.getName(),\n\t\t\t\t\t\tnew MatrixBlock((int) outputMc.getRows(), (int) outputMc.getCols(), true), getExtendedOpcode());\n\n\t\t\t\t// TODO added by czh debug\n\t\t\t\tlong t2 = System.currentTimeMillis();\n\t\t\t\tSystem.out.println(\"skip mapmm \" + bcastVar + \" time: \" + (t2 - t1) / 1000.0);\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tin2Block.setSelectBlock(selectBlock);\n\t\t\tsec.setMatrixOutput(bcastVar, in2Block);\n\t\t}\n\n\t\t//get inputs\n\t\tif (_needCache && hasRepartitioned.contains(rddVar) && DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\tbcastVar = betterBcastVar;\n\t\t}\n\t\tPartitionedBroadcast<MatrixBlock> in2 = sec.getBroadcastForVariable(bcastVar);\n\n\t\t//empty input block filter\n\t\tif (!_outputEmpty)\n\t\t\tin1 = in1.filter(new FilterNonEmptyBlocksFunction());\n\n\t\tif (needFilterNow) {\n\t\t\tSystem.out.print(\"filtering... \" + bcastVar);\n\t\t\thasFiltered.add(rddVar);\n\n\t\t\tin1 = in1.filter(new FilterNonEmptyBlocksFunction());\n\t\t\tsec.persistRdd(rddVar, in1, StorageLevels.MEMORY_AND_DISK);\n\t\t\tif (!sec.containsVariable(betterRddVar)) {\n\t\t\t\tsec.setVariable(betterRddVar, new MatrixObject(sec.getMatrixObject(rddVar)));\n\t\t\t}\n\t\t\tsec.setRDDHandleForVariable(betterRddVar, in1);\n\t\t\tsec.addLineageBroadcast(betterRddVar, bcastVar);\n\t\t\tif (hasRepartitioned.contains(rddVar) && DWhileStatement.isDWhileTmpVar(bcastVar)) {\n\t\t\t\tsec.addLineageBroadcast(betterRddVar, DWhileStatement.getRepartitionOrderName(dVarName));\n\t\t\t}\n\n\t\t\tSystem.out.println(\" done\");\n\t\t}\n\n\t\t//execute mapmm and aggregation if necessary and put output into symbol table\n\t\tif (_aggtype == SparkAggType.SINGLE_BLOCK) {\n\t\t\tJavaRDD<MatrixBlock> out = in1.map(new RDDMapMMFunction2(type, in2));\n\t\t\tMatrixBlock out2 = RDDAggregateUtils.sumStable(out);\n\n\t\t\t//put output block into symbol table (no lineage because single block)\n\t\t\t//this also includes implicit maintenance of matrix characteristics\n\t\t\tsec.setMatrixOutput(output.getName(), out2, getExtendedOpcode());\n\n\t\t} else { //MULTI_BLOCK or NONE\n\t\t\tJavaPairRDD<MatrixIndexes, MatrixBlock> out;\n\t\t\tif (requiresFlatMapFunction(type, mcBc)) {\n\t\t\t\tif (requiresRepartitioning(type, mcRdd, mcBc, in1.getNumPartitions())) {\n\t\t\t\t\tint numParts = getNumRepartitioning(type, mcRdd, mcBc);\n\t\t\t\t\tLOG.warn(\"Mapmm: Repartition input rdd '\" + rddVar + \"' from \" + in1.getNumPartitions() + \" to \"\n\t\t\t\t\t\t\t+ numParts + \" partitions to satisfy size restrictions of output partitions.\");\n\t\t\t\t\tin1 = in1.repartition(numParts);\n\t\t\t\t}\n\t\t\t\tout = in1.flatMapToPair(new RDDFlatMapMMFunction(type, in2));\n\t\t\t} else if (preservesPartitioning(mcRdd, type))\n\t\t\t\tout = in1.mapPartitionsToPair(new RDDMapMMPartitionFunction(type, in2), true);\n\t\t\telse\n\t\t\t\tout = in1.mapToPair(new RDDMapMMFunction(type, in2));\n\n\t\t\t//empty output block filter\n\t\t\tif (!_outputEmpty)\n\t\t\t\tout = out.filter(new FilterNonEmptyBlocksFunction());\n\n\t\t\tif (_aggtype == SparkAggType.MULTI_BLOCK)\n\t\t\t\tout = RDDAggregateUtils.sumByKeyStable(out, false);\n\n\t\t\t//put output RDD handle into symbol table\n\t\t\tsec.setRDDHandleForVariable(output.getName(), out);\n\t\t\tsec.addLineageRDD(output.getName(), rddVar);\n\t\t\tsec.addLineageBroadcast(output.getName(), bcastVar);\n\n\t\t\tif (needRepartitionNow || needFilterNow) {\n\t\t\t\tsec.unpersistRdd(rddVar);\n\t\t\t}\n\n\t\t\t//update output statistics if not inferred\n\t\t\tupdateBinaryMMOutputMatrixCharacteristics(sec, true);\n\t\t}\n\n\t\t// TODO added by czh debug\n\t\tsec.getMatrixInput(output.getName());\n\t\tsec.releaseMatrixInput(output.getName());\n\t\tlong t2 = System.currentTimeMillis();\n\t\tSystem.out.println(\"mapmm \" + bcastVar + \" time: \" + (t2 - t1) / 1000.0);\n\n\t\t// TODO added by czh\n\t\tif (rddVar.equals(\"TG\")) {\n\t\t\tDWhileProgramBlock.midT1 = System.currentTimeMillis();\n\t\t}\n\t}", "public void loadCache() {\r\n\t\tint rango = getEmpleadoActual().getRango();\r\n\t\tArrayList<String> idsDptos = getEmpleadoActual().getDepartamentosId();\r\n\t\t\r\n\t\t// Para todos los departamentos a los que pertenezca el empleado\r\n\t\tfor (int nd=0; nd<idsDptos.size(); nd++){\r\n\t\t\tString dep = idsDptos.get(nd);\r\n\t\t\tint numvendedor = getEmpleadoActual().getEmplId();\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 50);\r\n\t\t\tcontratos = controlador.getListaContratosDpto(dep);\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 100);\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 25);\r\n\t\t\templeados = controlador.getEmpleadosDepartamento(getEmpleadoActual().getEmplId(),dep);\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 100);\r\n\t\t\t\r\n\t\t\t//Prueba ordenación empleados\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\tordenaEmpleados();\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\t//Fin PRueba\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (!alive) return;\r\n\t\t\tif (rango == 1) { // Si es un empleado, coger turnos de su departamento\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tturnos = controlador.getListaTurnosEmpleadosDpto(dep);\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t} else if (rango == 2) { // Si es un jefe, coger turnos de todos los departamentos\r\n\t\t\t\tArrayList<String> temp = new ArrayList<String>();\r\n\t\t\t\ttemp = controlador.getDepartamentosJefe(numvendedor);\r\n\t\t\t\tfor (int i=0; i<temp.size(); i++)\r\n\t\t\t\t\tdepartamentosJefe.add(controlador.getDepartamento(temp.get(i)));\r\n\t\t\t\t//TODO borrar si al final no se usa\r\n\t//\t\t\tsetProgreso(\"Cargando jefes de departamento\", 60);\r\n\t//\t\t\tnumeroJefesDepartamento = controlador.getNumVendedorTodosJefes();\r\n\t//\t\t\tnombreJefesDepartamento = controlador.getNombreTodosJefes();\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tArrayList<Turno> turnosDep = new ArrayList<Turno>();\r\n\t\t\t\tfor (int i=0; i<departamentosJefe.size(); i++) {\r\n\t\t\t\t\tturnosDep = controlador.getListaTurnosEmpleadosDpto(departamentosJefe.get(i).getNombreDepartamento());\r\n\t\t\t\t\tfor (int j=0; j<turnosDep.size(); j++) {\r\n\t\t\t\t\t\tturnos.add(turnosDep.get(j));\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tSystem.err.println(\"Vista\\t:: Tipo de empleado inválido para cargar la cache.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(rango==1){//si es un empleado guardamos las ventas que éste ha hecho en un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentas(this.getEmpleadoActual().getEmplId(),fecha.getYear()+1900);\r\n\t\t}else if(rango==2){//si es un jefe almacenamos la suma de las ventas de todos los empleados de este departamento durante un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentasJefe(this.empleados,fecha.getYear()+1900);\r\n\t\t}\r\n\t\tSystem.out.println(\"Cache cargada\");\r\n\t}", "public LocalLockMergingSegmentReadLocker(Cache<?, ?> locksCache, Cache<?, ?> chunksCache, Cache<?, ?> metadataCache, String indexName) {\n this.delegate = new DistributedSegmentReadLocker((Cache<Object, Integer>) locksCache, chunksCache, metadataCache, indexName);\n }", "@Test\n\tpublic void testFetch_AddNewCacheFiles() throws FileNotFoundException {\n\n\t\tFIFOFileCache fifoFileCache = FIFOFileCache.getInstance();\n\t\tSystem.out.println(\"Inside the code I set HashMap size 4 So from the 5th element it is going to start FIFO implementation if new element will come\");\n\t\tString expected = \"This is File a.txt content.\";\n\t\tString actual = fifoFileCache.fetch(\"a.txt\");\n\t\tassertThat(actual, is(expected));\n\t}", "@ThreadSafe\n interface CacheLoaderTask<K, V> {\n\n /**\n * @param marshalledEntry an iterated entry. Note that {@link org.infinispan.marshall.core.MarshalledEntry#getValue()}\n * might be null if the fetchValue parameter passed to {@link AdvancedCacheLoader#process(KeyFilter,\n * org.infinispan.persistence.spi.AdvancedCacheLoader.CacheLoaderTask,\n * java.util.concurrent.Executor, boolean, boolean)} is false.\n * @param taskContext allows the implementors to decide when to stop the iteration by invoking {@link\n * org.infinispan.persistence.spi.AdvancedCacheLoader.TaskContext#stop()}\n */\n void processEntry(MarshalledEntry<K, V> marshalledEntry, TaskContext taskContext) throws InterruptedException;\n }", "public void cacheResult(\n\t\tjava.util.List<ua.org.gostroy.guestbook.model.Entry3> entry3s);", "@Override\n protected Void doInBackground() {\n PropertyPage.resetCachedFilesCount();\n scanListSize = scanList.size();\n /*\n * Timer to update cache progress\n */\n final int TIMER_VALUE = 10 * scanListSize;\n\n fileIterator = new FileIterator[scanList.size()];\n for (int i = 0; i < scanListSize; i++) {\n fileIterator[i] = new FileIterator(cachePage.getIncludedCachePath(scanList.get(i).toString()), cachePage, this);\n fileIterator[i].runScanner();\n sendProgress(); //update progress to user\n }\n while (!isCancelled() && PropertyPage.getIteratorThreadAliveCount() >= 1) {\n sendProgress(); //update progress to user\n try {\n if (!PropertyPage.getFileIteratorStopper()) {\n Thread.sleep(TIMER_VALUE);\n }\n } catch (InterruptedException interruptedEx) {\n LOGGER.log(Level.SEVERE, \"Current Thread interrupted\", interruptedEx);\n Thread.currentThread().interrupt();\n }\n }\n cachePage.saveCacheConfigToFile();\n return null;\n }", "interface OfBizUserCache {\n /**\n * Retrieve a User by userName case insensitively.\n *\n * @param directoryId The directory.\n * @param userName User name.\n * @return A user.\n */\n OfBizUser getCaseInsensitive(long directoryId, String userName);\n\n /**\n * Retrieve all Users by id given a list of ids.\n *\n * @param directoryId The directory.\n * @param userIds List of user Ids\n * @return A list of {@link OfBizUser}.\n */\n List<OfBizUser> getAllCaseInsensitive(long directoryId, Collection<String> userIds);\n\n /**\n * Remove a user from the cache.\n *\n * @param directoryId The directory.\n * @param userName User name.\n */\n void remove(long directoryId, String userName);\n\n /**\n * Remove a user from the cache.\n *\n * @param key The Users key\n */\n void remove(DirectoryEntityKey key);\n\n /**\n * Visit all the users in the directory.\n * Some implementations may process this directly from the underlying persistent store rather than the\n * cache if they do not keep a canonical set of all users in the cache.\n *\n * @param directoryId The directory\n * @param visitor A Visitor\n */\n void visitAllUserIdsInDirectory(long directoryId, Visitor<String> visitor);\n\n /**\n * Refresh the cache entry for the supplied user.\n * Should be called when a user is added or updated. The implementation may do this\n * either by storing he supplied value or refreshing the data from the underlying persistent store.\n *\n * @param user User to be refreshed in the cache\n * @return The key of the user.\n */\n DirectoryEntityKey refresh(OfBizUser user);\n\n /**\n * Refresh all entries in the cache.\n */\n void refresh();\n\n /**\n * Return true if the cache is initialised and can be used.\n * JIRA relies heavily on having access to users and if the cache needs time to initialise before it\n * can be relied on to provide correct results, JIRA needs to wait.\n *\n * @return true if initialised.\n */\n boolean isCacheInitialized();\n}", "private Cache parseAccount(String name) {\n int accountNum = (int) (name.charAt(0)) - (int) 'A';\n if (accountNum < A || accountNum > Z)\n throw new InvalidTransactionError();\n Cache c = cacheList[accountNum];\n \n for (int i = 1; i < name.length(); i++) {\n if (name.charAt(i) != '*') throw new InvalidTransactionError();\n accountNum = (cacheList[accountNum].readCache() % numLetters); \n c = cacheList[accountNum];\n }\n \n return c;\n }", "private ArrayList<Long> storeTransactionInputs(long transactionId, ArrayList<TransactionInput> inputs, int isCoinbase){\n \t\tint inputindex = 0;\n \t\tlong previousOutputId;\n \t\tString prevOutputHash;\n \t\tResultSet findOutputResults;\n \t\tResultSet generatedKey;\n \t\tLong addressId;\n \t\tArrayList<Long> addressIdz=new ArrayList<Long>();\n \t\ttry {\n \t\tfor (TransactionInput i : inputs) {\n\t\t\t\n \t\t\tprevOutputHash = HexBin.encode(i.outpoint.hash);\n \t\t\tfindTransactionOutputStatement.setString(1, prevOutputHash);\n \t\t\tfindTransactionOutputStatement.setLong(2, i.outpoint.index);\n \t\t\tfindOutputResults = findTransactionOutputStatement\n \t\t\t\t\t.executeQuery();\n \t\t\tif (findOutputResults.next()) {\n \t\t\t\tpreviousOutputId = findOutputResults.getLong(1);\n\t\t\t\taddressId=findOutputResults.getLong(2);\n \t\t\t} else {\n \t\t\t\tpreviousOutputId = 0;\n\t\t\t\taddressId=null;\n \t\t\t}\n \t\t\tfindOutputResults.close();\n \t\t\tinsertTransactionInputStatement.setLong(1, transactionId);\n \t\t\tinsertTransactionInputStatement.setInt(2, inputindex);\n \t\t\tinsertTransactionInputStatement\n \t\t\t\t\t.setLong(3, previousOutputId);\n \t\t\tinsertTransactionInputStatement\n \t\t\t\t\t.setString(4, prevOutputHash);\n \t\t\tinsertTransactionInputStatement\n \t\t\t\t\t.setLong(5, i.outpoint.index);\n \t\t\tinsertTransactionInputStatement.setLong(6,\n \t\t\t\t\ti.scriptBytes.length);\n \t\t\tinsertTransactionInputStatement.setString(7,\n \t\t\t\t\tHexBin.encode(i.scriptBytes));\n \t\t\tinsertTransactionInputStatement.setLong(8, i.sequence);\n \t\t\tinsertTransactionInputStatement.setBoolean(9,\n \t\t\t\t\ti.isCoinBase());\n\t\t\tif(addressId!=null){\n \t\t\t\tinsertTransactionInputStatement.setLong(10,addressId);\n \t\t\t\taddressIdz.add(addressId);\n\t\t\t} else {\n \t\t\t\t// TODO Auto-generated catch block\n \t\t\t\tinsertTransactionInputStatement.setNull(10,\n \t\t\t\t\t\tjava.sql.Types.INTEGER);\n \t\t\t}\n \t\t\tinsertTransactionInputStatement.execute();\n \t\t\t\n \t\t}\n \t\t\n \t\t\n \t} catch (SQLException e1) {\n \t\t// TODO Auto-generated catch block\n \t\te1.printStackTrace();\n \t}\n \t\treturn addressIdz;\n \t}", "public void loadCachedData(FeatureSequenceData sequence, ArrayList<DataSegment> segments, String trackName, int organism, String genomebuild) throws SystemError {\n String chromosome=sequence.getChromosome(); \n int start=sequence.getRegionStart();\n int end=sequence.getRegionEnd(); \n ArrayList<int[]> overlaps=lookupRegion(trackName, organism, genomebuild, chromosome, start, end); // find all cache files that overlap with the region\n if (overlaps!=null){ \n final String subdir=getCacheDirectory(trackName, organism, genomebuild, chromosome);\n //engine.logMessage(\"Found overlap in cache\");\n for (int i=0;i<segments.size();i++) { // process segments one by one\n //engine.logMessage(\"Cache:[\"+i+\"] Processing segment \"+(i+1)+\" of \"+segments.size()+\": \"+segments.get(i).toString());\n DataSegment segment=segments.get(i);\n if (segment.containsData()) continue;\n ArrayList<int[]> overlapsSegment=getOverlapping(overlaps, segment.getSegmentStart(), segment.getSegmentEnd());\n if (!overlapsSegment.isEmpty()) {\n // split up this segment based on which segments are available in the cache\n ArrayList<DataSegment> splits=splitSegment(segment, overlapsSegment);\n if (splits==null) {\n engine.logMessage(\"SYSTEM WARNING: Detected problems while processing cached data (error code:19431)\");\n return;\n } \n // now fill in the (exact) segments that are in the cache\n for (int[] sub:overlapsSegment) {\n DataSegment subsegment=findMatchingSegment(splits, sub);\n if (subsegment!=null) {\n boolean ok=fillSegmentWithDataFromCache(subsegment, sub, subdir);\n if (ok) subsegment.setSaveToCache(true); // save back to cache (but only if the new sequence region covers a greater region than currently cached segments)\n } else engine.logMessage(\"SYSTEM WARNING: Detected potential problems while processing cached data (error code:19432)\");\n }\n // replace the old segments with the new and adjust loop-pointer\n segments.remove(i);\n segments.addAll(i, splits);\n //engine.logMessage(\"Replacing segment [\"+i+\"] with \"+splits.size()+\" new segments\");\n i+=(splits.size()-1); // i will increased by +1 more when the loop restarts\n }\n } // end for each segment\n }\n String error=checkSegments(segments, start, end);\n if (error!=null) {\n engine.logMessage(\"SYSTEM WARNING: Detected problems while processing cached data (error code:\"+error+\")\");\n // DataLoader.debugSegments(segments);\n } \n }", "public void processFile() {\r\n\t\t//process word count here\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\tString line;\r\n\t\twordCount = customFile.getWordCount();\r\n\t\tList<Future<Long>> listOfFutures = new ArrayList<Future<Long>>();\r\n\t\t// Choose the executor and the number of threads that best suits the processor and purpose\r\n\t\t// work stealing pool took about 875 ms, cached threadpool too about 1100 ms\r\n\t\t// fixed thread pool took about 1000 ms with 10 threads and 840ms with 4 threads\r\n\t\t\r\n\t\t// ExecutorService executor = Executors.newCachedThreadPool();\r\n\t\t// ExecutorService executor = Executors.newWorkStealingPool();\r\n\t\t ExecutorService executor = Executors.newFixedThreadPool(4); \r\n\t\t\r\n\t\ttry (BufferedReader bufferedReader = new BufferedReader(new FileReader(customFile.getFile()))) {\r\n\t\t\twhile((line= bufferedReader.readLine()) != null) {\r\n\t\t\t\tline = line.trim();\r\n\t\t\t\tline = line.toLowerCase();\r\n\t\t\t\tif(line == \"\") continue;\r\n\t\t\t\tsetOfLines.put(line);\r\n\t\t\t\tFuture<Long> future = executor.submit(this);\r\n\t\t\t\tlistOfFutures.add(future);\r\n\t\t\t\t}\r\n\t\t\t// wait until all the futures return.\r\n\t\t\tfor (Future <Long> future : listOfFutures) {\r\n\t\t\t\tfuture.get();\r\n\t\t\t}\r\n\t\t\t// stop accepting new tasks, close the executor\r\n\t\t\texecutor.shutdown();\r\n\t\t}\r\n\t\tcatch (IOException e1) {\r\n\t\t\tcustomFile.setErrorString(\"There was an error reading this file, the file could be open or\"\r\n\t\t\t\t\t+ \" blocked by other resources\");\r\n\t\t\tlogger.error(e1);\r\n\t\t}\r\n\t\tcatch (ExecutionException |InterruptedException e1) { \r\n\t\t\tcustomFile.setErrorString(\"Unknown error occured while reading this file\");\r\n\t\t\tlogger.error(e1);\r\n\t\t}\r\n\r\n\t\tfor(String word : wordCount.keySet() ) {\r\n\t\t\ttotalWords = totalWords + wordCount.get(word);\r\n\t\t\tif(wordCount.get(word)<thresholdForWordRepetition) {\r\n\t\t\t\t\twordCount.remove(word);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\tlogger.debug(\"total words = \" + totalWords) ;\r\n\t\tcustomFile.setTotalWords(totalWords);\r\n\t\tif(totalWords>thresholdForLongFile) {\r\n\t\t\tcustomFile.setWordCount(wordCount);\r\n\t\t\tparentLongFilesList.add(customFile);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcustomFile.setWordCount(null);\r\n\t\t\tparentShortFilesList.add(customFile);\r\n\t\t}\r\n\t\tlong stopTime = System.currentTimeMillis();\r\n\t long elapsedTime = stopTime - startTime;\r\n\t logger.debug(\"processed file \"+ customFile.getName() + \" in \" + elapsedTime + \"ms\");\r\n\t}", "public void findCacheHitMissRates(String fileName) throws IOException {\n\t\tthis.fileName = fileName;\n\t\tBufferedReader reader = new BufferedReader(new FileReader(fileName));\n\t\tString line;\n\t\toffsetBits = (int) (Math.log(blockSize)/Math.log(2));\n\t\tindexBits = (int) (Math.log(numSets)/Math.log(2));\n\t\ttagBits = ADDRESS_BITS - offsetBits - indexBits;\n\t\twhile((line = reader.readLine()) != null) {\n\t\t\tnumAccesses++;\n\t\t\tString[] tokens = line.split(\" \");\n\t\t\tString address = tokens[2];\n\t\t\t\t\t\n\t\t\t//address given is 44 bits so take 32 bits by truncating 12 MSB and add offset to the address. \n\t\t\t\n\t\t\tBigInteger addr = new BigInteger(address, 16);// BigInteger read address in hex format and converts it to an integer into BigInteger object.\n\t\t\taddress= addr.toString(2); // converted to binary\n\t\t\t\n\t\t\taddress = (address.length() == ADDRESS_BITS ? address : getValidAddress(address)); //truncated --32 \n\t\t\t\n\t\t\taddr=new BigInteger(address, 2); \n\t\t\t\n\t\t\t\n\t\t\tBigInteger offset = new BigInteger(Integer.toString(Integer.parseInt(tokens[1])));\n\t\t\taddr = addr.add(offset);\n\t\t\t\n\t\t\taddress = addr.toString(2);// BigIntger's toString(2) is used to return the binary string \n\t\t\t// representation of it.\n\t\t\t\n\t\t\taddress = (address.length() == ADDRESS_BITS ? address : getValidAddress(address));\n\t\t\t\n\t\t\t// Calculate offset, index and tag bits.\n\t\t\n\t\t\n\t\t\tString tag = address.substring(0, tagBits);\n\t\t\tString index = address.substring(tagBits, indexBits + tagBits);\n\t\t\tint setNum;\n\t\t\tif(index.isEmpty()) setNum = 0; \n\t\t\telse { \n\t\t\t\tsetNum = Integer.parseInt(index, 2);\n\t\t\t\t//System.out.println(\"setnum in else\"+(setNum%numSets));\n\t\t\t}\n\t\t\tcheckTagInSet(tag, setNum, (vCache != null));\n\t\t}\n\t\thitRate = (double) numHits / numAccesses;\n\t\t//missRate = (double) numMiss / numAccesses;\n\t\tmissRate = 1 - hitRate;\n\t\treader.close();\n\t}", "public void cacheResult(ua.org.gostroy.guestbook.model.Entry3 entry3);", "@Override\n public abstract void apply(PersistentFileTransaction transaction);", "public void setStateCache( ClusterFileStateCache stateCache) {\n\t\tsuper.setStateCache( stateCache);\n\t\t\n\t\t// Set the state cache for the remote oplock, if available\n\t\t// Needs to be set after deserialization of the file state/remote oplock\n\t\t\n\t\tif ( hasOpLock() && getOpLock() instanceof RemoteOpLockDetails) {\n\t\t\tRemoteOpLockDetails remoteOplock = (RemoteOpLockDetails) getOpLock();\n\t\t\tremoteOplock.setStateCache( stateCache);\n\t\t}\n\t}", "@Override\n\t\tprotected void setup(Context context) throws IOException, InterruptedException {\n\n\t\t\tSystem.out.println(\"[Mapper Step1] INFO: Starting mapper setup.\");\n\t\t\tURI [] cacheFilesURI = Job.getInstance(context.getConfiguration()).getCacheFiles();\n\t\t\tSystem.out.println(\"[Mapper Step1] INFO: entring setup\");\n\n\t\t\tif((cacheFilesURI != null) && (cacheFilesURI.length >0)) {\n\t\t\t\tSystem.out.println(\"[Mapper Step1] INFO: In Setup adding CacheFiles URI to N1Map\");\n\t\t\t\tfor (URI cacheFileURI : cacheFilesURI) {\n\t\t\t\t\tif(cacheFileURI.getPath() != null) {\n\t\t\t\t\t\tSystem.out.println(\"[Mapper Step1] INFO: In Setup path to file is not null\");\n\n\t\t\t\t\t\tPath cacheFilePath = new Path(cacheFileURI.getPath());\n\t\t\t\t\t\ttry{\n\n\t\t\t\t\t\t\tString fileName = cacheFilePath.getName().toString();\n\t\t\t\t\t\t\tFileReader fr = new FileReader(fileName);\n\t\t\t\t\t\t\treadFile(fr , fileName);\n\t\t\t\t\t\t\tfr.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\t\tSystem.err.println(\"[Mapper Step4] ERROR: in opening cache file path.\");\n\t\t\t\t\t\t\te.printStackTrace();\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.err.println(\"[Mapper step4] ERROR: cacheFile is Empty!!! \");\n\t\t\t}\n\t\t\tSystem.out.println(\"[Mapper Step4] INFO: Finished loading N1 File.\");\n\n\n\t\t}", "@Override\r\n protected Object doInBackground() throws Exception {\n for (SummaryEntry summaryEntry : inputFilesBySelection.values()) {\r\n if (!isSubmissionOfNewTaskAllowed()) {\r\n break;\r\n }\r\n for (File file : summaryEntry.getFilesInSelection()) {\r\n if (!isSubmissionOfNewTaskAllowed()) {\r\n break;\r\n }\r\n DecryptionTask decryptionTask = new DecryptionTask(file, summaryEntry.getRootFile(),\r\n outputFolder, outputFileType);\r\n completionService.submit(decryptionTask);\r\n }\r\n }\r\n return null;\r\n }", "@Test\n public void whenReadFileAndAddNewLineToFileThenSecondReadFromHashWithoutLine() {\n Cache cache = new Cache(\"c:/temp\");\n String before = cache.readFile(\"names2.txt\");\n String result = cache.select(\"names2.txt\");\n String path = \"c:/temp/names2.txt\";\n try (FileWriter writer = new FileWriter(path, true);\n BufferedWriter bufferWriter = new BufferedWriter(writer)) {\n bufferWriter.write(\"test\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n result = cache.select(\"names2.txt\");\n assertThat(result, is(before));\n }", "private void processTransaction(String[] transaction) {\n\t\t\tfor (Map.Entry<Itemset, Integer> frequentItemset : frequentItemsets.entrySet()) {\n\t\t\t\tif (frequentItemset.getKey().isInTransaction(Arrays.asList(transaction))) {\n\t\t\t\t\tfrequentItemset.setValue(frequentItemset.getValue() + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private void initMultiDataTransferAccountsMap(\n HpcDataTransferType transferType, List<HpcIntegratedSystemAccount> theAccts) {\n if (null == multiDataTransferAccounts.get(transferType)) {\n multiDataTransferAccounts.put(\n transferType, new ConcurrentHashMap<String, List<PooledSystemAccountWrapper>>());\n }\n final Map<String, List<PooledSystemAccountWrapper>> classifier2ListMap =\n multiDataTransferAccounts.get(transferType);\n for (HpcIntegratedSystemAccount someAcct : theAccts) {\n final String classifierValue = fetchSysAcctPropertyValue(someAcct, PROPERTY_NAME_CLASSIFIER);\n if (null == classifierValue) {\n // no classifier property so do nothing with this system account as classifier indicates which\n // pool (or bucket) it belongs in\n } else {\n if (null == classifier2ListMap.get(classifierValue)) {\n classifier2ListMap.put(classifierValue, new ArrayList<PooledSystemAccountWrapper>());\n }\n classifier2ListMap.get(classifierValue).add(new PooledSystemAccountWrapper(someAcct));\n }\n }\n }", "@Override\r\n\tpublic void cacheResult(List<Share> shares) {\r\n\t\tfor (Share share : shares) {\r\n\t\t\tif (entityCache.getResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\t\t\t\tShareImpl.class, share.getPrimaryKey()) == null) {\r\n\t\t\t\tcacheResult(share);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tshare.resetOriginalValues();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void cacheResult(List<Task> tasks) {\n\t\tgetPersistence().cacheResult(tasks);\n\t}", "public void cacheResult(java.util.List<Todo> todos);", "private static void executeTransaction(IgniteCache<Long, Person> cache) {\n try (Transaction tx = Ignition.ignite().transactions().txStart()) {\n Person val = cache.get(id);\n\n System.out.println(\"Read value: \" + val);\n\n val = cache.getAndPut(id, new Person(id, \"Isaac\", \"Newton\"));\n\n System.out.println(\"Overwrote old value: \" + val);\n\n val = cache.get(id);\n\n System.out.println(\"Read value: \" + val);\n\n tx.commit();\n }\n\n System.out.println(\"Read value after commit: \" + cache.get(id));\n\n // Clear entry from memory, but keep it in store.\n cache.clear(id);\n\n // Operations on this cache will not affect store.\n IgniteCache<Long, Person> cacheSkipStore = cache.withSkipStore();\n\n System.out.println(\"Read value skipping store (expecting null): \" + cacheSkipStore.get(id));\n\n System.out.println(\"Read value with store lookup (expecting NOT null): \" + cache.get(id));\n\n // Expecting not null, since entry should be in memory since last call.\n System.out.println(\"Read value skipping store (expecting NOT null): \" + cacheSkipStore.get(id));\n }", "protected abstract void perform(VCSHistoryProvider.HistoryEntry entry, Set<VCSFileProxy> files);", "public static void UserAccounts() throws FileNotFoundException{\n\t\tScanner input = new Scanner(new File(AccountFile));\t\t\t\t//Creats objects and adds to array list.\r\n\t\t\r\n\t\twhile (input.hasNextLine()) {\t\t\t\t\t\t\t\t\t//Loops as long as there is another line\r\n\t\t\t\r\n\t\t\tString line = input.nextLine();\r\n\t\t\tif(line.equals(\"ADMIN\")) {\t\t\t\t\t\t\t\t\t//Checks if the data is for Admin, creats admin object\r\n\t\t\t\tString AdminUsername = input.nextLine();\r\n\t\t\t\tString AdminPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tAdmin admin = new Admin(AdminUsername, AdminPassword);\r\n\t\t\t\taccounts.add(admin);\r\n\t\t\t\t\r\n\t\t\t} if(line.equals(\"COORDINATOR\")){\r\n\t\t\t\tString coordinatorUsername = input.nextLine();\r\n\t\t\t\tString coordinatorPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCoordinator coordinator = new Coordinator(coordinatorUsername, coordinatorPassword);\r\n\t\t\t\taccounts.add(coordinator);\r\n\r\n\t\t\t} if(line.equals(\"APPROVER\")){\r\n\t\t\t\tString approverUsername = input.nextLine();\r\n\t\t\t\tString approverPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tApprover approver = new Approver(approverUsername, approverPassword);\r\n\t\t\t\taccounts.add(approver);\r\n\r\n\t\t\t} if(line.equals(\"CASUAL\")){\r\n\t\t\t\tString casualUsername = input.nextLine();\r\n\t\t\t\tString casualPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCasualStaff casual = new CasualStaff(casualUsername, casualPassword);\r\n\t\t\t\taccounts.add(casual);\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} loginSystem();\r\n\t}", "private void CacheAsyncTaskFunctions(){\n\n //handle the functions dealing with async\n for(String func : asyncFunc){\n\n //cache the removed sections\n AsyncTaskRemoval remove = new AsyncTaskRemoval(refact, func);\n remove.RemoveSection();\n\n //remove the section from the original code\n refact = remove.refact;\n asyncCached.put(func, remove.removedSection);\n }\n\n //prompt user\n System.out.println(\"(1) Caching all the Async Functions and references to global variables\\n\");\n DisplaySleep();\n\n }", "private void loadTermLoanAccounts(String termLoanAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(termLoanAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n char loanType = splitLine[10].charAt(0);\n TermLoanType termLoanType;\n\n //this determines whether the loan is long or short.\n if (loanType == 'S')\n {\n termLoanType = TermLoanType.SHORT;\n }\n else\n {\n termLoanType = TermLoanType.LONG;\n }\n\n int years = Integer.parseInt(splitLine[11]);\n\n TermLoan termLoanAccount = new TermLoan(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n termLoanType,\n years);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n termLoanAccount.setTransactions(accountTransactions);\n\n //adds term loan accounts\n accounts.add(termLoanAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "@Test\n public void testGetAll() throws Exception {\n JumpCloneImplant existing;\n Map<Integer, Map<Integer, JumpCloneImplant>> listCheck = new HashMap<>();\n\n existing = new JumpCloneImplant(jumpCloneID, typeID);\n existing.setup(testAccount, 7777L);\n existing = CachedData.update(existing);\n listCheck.put(jumpCloneID, new HashMap<>());\n listCheck.get(jumpCloneID)\n .put(typeID, existing);\n\n existing = new JumpCloneImplant(jumpCloneID + 10, typeID + 10);\n existing.setup(testAccount, 7777L);\n existing = CachedData.update(existing);\n listCheck.put(jumpCloneID + 10, new HashMap<>());\n listCheck.get(jumpCloneID + 10)\n .put(typeID + 10, existing);\n\n // Associated with different account\n existing = new JumpCloneImplant(jumpCloneID, typeID);\n existing.setup(otherAccount, 7777L);\n CachedData.update(existing);\n\n // Not live at the given time\n existing = new JumpCloneImplant(jumpCloneID + 3, typeID + 3);\n existing.setup(testAccount, 9999L);\n CachedData.update(existing);\n\n // EOL before the given time\n existing = new JumpCloneImplant(jumpCloneID + 4, typeID + 4);\n existing.setup(testAccount, 7777L);\n existing.evolve(null, 7977L);\n CachedData.update(existing);\n\n List<JumpCloneImplant> result = CachedData.retrieveAll(8888L,\n (contid, at) -> JumpCloneImplant.accessQuery(testAccount,\n contid, 1000,\n false, at,\n AttributeSelector.any(),\n AttributeSelector.any()));\n Assert.assertEquals(listCheck.size(), result.size());\n for (JumpCloneImplant next : result) {\n int jumpCloneID = next.getJumpCloneID();\n int typeID = next.getTypeID();\n Assert.assertTrue(listCheck.containsKey(jumpCloneID));\n Assert.assertTrue(listCheck.get(jumpCloneID)\n .containsKey(typeID));\n Assert.assertEquals(listCheck.get(jumpCloneID)\n .get(typeID), next);\n }\n\n }", "@Override\n\tpublic void processToFindAnagram(List<FutureTask<List<String>>> taskList,String conf)\n\t\t\tthrows InterruptedException, ExecutionException {\n\t\tList<String> finalList=new ArrayList<String>();\n\t\tfor (FutureTask<List<String>> futureTask : taskList) {\n\t\t\tList<String> result = futureTask.get();\n\t\t\tfinalList.addAll(result);\n\t\t}\n\t\tMultimap<String , List<String>> multimap= fileRecordsIntoMap(finalList);\n\t\tif(conf.equals(\"1\"))\n\t\t{\n\t\tprint(multimap, finalList);\n\t\t}\n\t\t\n\t}", "@Override\n\tprotected void setup(Reducer<LongWritable, Text, Text, Text>.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tsuper.setup(context);\n\t\tminPnts=Long.parseLong(context.getConfiguration().get(\"minPnts\"));\n\t\tepsilon=Double.parseDouble(context.getConfiguration().get(\"epsilon\"));\n\t\toutput = new MultipleOutputs<Text,Text>(context);\n\t\tPath[] cacheFilesLocal = DistributedCache.getLocalCacheFiles(context.getConfiguration());\n\t\tfor (Path eachPath : cacheFilesLocal) {\n\t\t\t\n\t\t\tloadPartition(eachPath, context);\n\t\t\t\n\t\t}\n\t}", "void syncFrom(final UserProjectCache cache);", "public ZIPCachedQuery(File cacheFile) throws IOException {\n \t\tthis.dataFile = cacheFile;\n \t\tloadDataFromFile();\n \t}", "private void initAccountChoiceCache() {\n \tArrayList<AlertMeStorage.AlertMeUser> accounts = alertMe.getUserAccountList();\n \t//AlertMeStorage.AlertMeUser currentAcc = alertMe.getCurrentSession();\n \tint accSize = (accounts!=null && !accounts.isEmpty())? accounts.size():0;\n\t\tif (AlertMeConstants.DEBUGOUT) Log.w(TAG, \"initAccountChoiceCache() START\");\n \taccountNamesChoiceList = null;\n \taccountIDsChoiceList = null;\n \tif (accSize>1) {\n \t\tint i = 0;\n \t\tint cSz = accSize;\n \t\tCollections.sort(accounts, AlertMeStorage.AlertMeUser.getComparator(false));\n \t\taccountNamesChoiceList = new String[cSz];\n \t\taccountIDsChoiceList = new long[cSz];\n \t\tfor (AlertMeStorage.AlertMeUser account: accounts) {\n \t\t\tboolean addToList = false;\n \t\t\tif (account!=null && account.id!=-1) {\n \t\t\t\taddToList = true;\n \t\t\t}\n \t\t\tif (addToList) {\n \t\t\t\taccountNamesChoiceList[i] = account.username;\n \t\t\t\taccountIDsChoiceList[i] = account.id;\n \t\t\t\ti++;\n \t\t\t}\n \t\t}\n \t}\n\t\tif (AlertMeConstants.DEBUGOUT) Log.w(TAG, \"initAccountChoiceCache() END\");\n }", "public void testConcurrency() throws InterruptedException {\n initCache();\n\n final ArrayList<WMSTile> wcos = new ArrayList<WMSTile>();\n final ArrayList<Integer> test = new ArrayList<Integer>();\n final LinkedBlockingQueue<Integer> idxs = new LinkedBlockingQueue<Integer>();\n\n Collection<Callable<Integer>> tasks = new ArrayList<Callable<Integer>>();\n\n for (int i = 0; i < 30000; i++) {\n wcos.add(getDefaultWMSCacheObject(\"q\" + i, 50, true));\n test.add(-1);\n idxs.put(i);\n\n //put and get task\n tasks.add(new Callable<Integer>() {\n\n public Integer call() throws Exception {\n //put\n int i = idxs.take();\n boolean ok = wmsCache.put(wcos.get(i).getQuery(), wcos.get(i).getColourmode(), PointType.POINT_1, wcos.get(i));\n\n //get\n if (ok) {\n WMSTile wco = wmsCache.get(wcos.get(i).getQuery(), wcos.get(i).getColourmode(), PointType.POINT_1);\n if (wco.getCached()) {\n if (compareWMSObjects(wco, wcos.get(i))) {\n test.set(i, 1);\n } else {\n test.set(i, 0);\n }\n }\n }\n return i;\n }\n });\n }\n ExecutorService executorService = Executors.newFixedThreadPool(100);\n executorService.invokeAll(tasks);\n\n //test cache cleaner operated correctly\n assertTrue(wmsCache.getSize() <= wmsCache.getMaxCacheSize());\n\n //test for presence of invalid test comparisons\n int invalid = 0;\n int valid = 0;\n for (int i = 0; i < test.size(); i++) {\n if (test.get(i) == 0) {\n invalid++;\n } else if (test.get(i) == 1) {\n valid++;\n }\n }\n assertTrue(valid > 0);\n assertTrue(invalid == 0);\n }", "@Override\n public List<PooledTransaction> removeTxsWithNonceLessThan(Map<AionAddress, BigInteger> accNonce) {\n\n List<ByteArrayWrapper> bwList = new ArrayList<>();\n for (Map.Entry<AionAddress, BigInteger> en1 : accNonce.entrySet()) {\n AccountState as = this.getAccView(en1.getKey());\n lock.writeLock().lock();\n Iterator<Map.Entry<BigInteger, AbstractMap.SimpleEntry<ByteArrayWrapper, BigInteger>>>\n it = as.getMap().entrySet().iterator();\n\n while (it.hasNext()) {\n Map.Entry<BigInteger, AbstractMap.SimpleEntry<ByteArrayWrapper, BigInteger>> en =\n it.next();\n if (en1.getValue().compareTo(en.getKey()) > 0) {\n bwList.add(en.getValue().getKey());\n it.remove();\n } else {\n break;\n }\n }\n lock.writeLock().unlock();\n\n Set<BigInteger> fee = Collections.synchronizedSet(new HashSet<>());\n if (this.getPoolStateView(en1.getKey()) != null) {\n this.getPoolStateView(en1.getKey())\n .parallelStream()\n .forEach(ps -> fee.add(ps.getFee()));\n }\n\n fee.parallelStream()\n .forEach(\n bi -> {\n if (this.getFeeView().get(bi) != null) {\n this.getFeeView()\n .get(bi)\n .entrySet()\n .removeIf(\n byteArrayWrapperTxDependListEntry ->\n byteArrayWrapperTxDependListEntry\n .getValue()\n .getAddress()\n .equals(en1.getKey()));\n\n if (this.getFeeView().get(bi).isEmpty()) {\n this.getFeeView().remove(bi);\n }\n }\n });\n\n as.setDirty();\n }\n\n List<PooledTransaction> removedTxl = Collections.synchronizedList(new ArrayList<>());\n bwList.parallelStream()\n .forEach(\n bw -> {\n if (this.getMainMap().get(bw) != null) {\n PooledTransaction pooledTx = this.getMainMap().get(bw).getTx();\n removedTxl.add(pooledTx);\n\n long timestamp = pooledTx.tx.getTimeStampBI().longValue() / multiplyM;\n synchronized (this.getTimeView().get(timestamp)) {\n if (this.getTimeView().get(timestamp) == null) {\n LOG.error(\n \"Txpool.remove can't find the timestamp in the map [{}]\",\n pooledTx.toString());\n return;\n }\n\n this.getTimeView().get(timestamp).remove(bw);\n if (this.getTimeView().get(timestamp).isEmpty()) {\n this.getTimeView().remove(timestamp);\n }\n }\n\n lock.writeLock().lock();\n this.getMainMap().remove(bw);\n lock.writeLock().unlock();\n }\n });\n\n this.updateAccPoolState();\n this.updateFeeMap();\n\n if (LOG.isInfoEnabled()) {\n LOG.info(\"TxPoolA0.remove {} TX\", removedTxl.size());\n }\n\n return removedTxl;\n }", "void blockedAllAccounts(File file) throws ServiceException;", "public static void load() {\r\n\t\ttransList = new ArrayList<Transaction>();\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"loading all trans...\");\r\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"src/transaction.csv\"));\r\n\t\t\treader.readLine();\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tString item[] = line.split(\",\");\r\n\t\t\t\tString type = item[0];\r\n\t\t\t\tint acc = Integer.parseInt(item[1]);\r\n\t\t\t\tdouble amount = Double.parseDouble(item[2]);\r\n\t\t\t\tint year = Integer.parseInt(item[3]);\r\n\t\t\t\tint month = Integer.parseInt(item[4]);\r\n\t\t\t\tint date = Integer.parseInt(item[5]);\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\tcal.set(year, month - 1, date);\r\n\t\t\t\tif (type.charAt(0) == 'w') {\r\n\t\t\t\t\tWithdrawal trans = new Withdrawal(acc, amount, cal);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t} else if (type.charAt(0) == 'd') {\r\n\t\t\t\t\tboolean cleared = Boolean.parseBoolean(item[6]);\r\n\t\t\t\t\tDeposit trans = new Deposit(acc, amount, cal, cleared);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treader.close();\r\n\t\t\tSystem.out.println(\"loading finished\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n public void addCacheList(ArrayList<String> cacheList) {\n scanList = cacheList;\n }", "public void setup(Context context) throws IOException{\n\t\t\t//读取存储的centers\n\t\t\tConfiguration conf = context.getConfiguration();\n\t\t\tPath[] caches = DistributedCache.getLocalCacheFiles(conf);\n\t\t\t\n\t\t\tif (caches == null || caches.length <= 0) {\n\t\t\t\tSystem.err.println(\"Centers Index File does not exist\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\t\n\t\t\t//此处不能直接使用java的FileReader,因为MapReduce框架会自动给文件路径加前缀file:\n\t\t\t//这样会导致FileReader不能识别路径,建议使用MapReduce自带的文件读取API\n\t\t\t//BufferedReader in = new BufferedReader(new FileReader(caches[0].toString()));\n\t\t\tPath centerIndexFile = caches[0];\n\t\t\tFileSystem fs = centerIndexFile.getFileSystem(conf);\n\t\t\tString line;\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(fs.open(centerIndexFile)));\n\t\t\ttry{\n\t\t\t\twhile((line = in.readLine()) != null)\n\t\t\t\t\tcentersList.add(new Text(line));\n\t\t\t}\n\t\t\tfinally{\n\t\t\t\tin.close();\n\t\t\t}\n\t\t}", "@Override\n\tpublic void cacheResult(List<AssetManageReqHandle> assetManageReqHandles) {\n\t\tfor (AssetManageReqHandle assetManageReqHandle : assetManageReqHandles) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tAssetManageReqHandleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tAssetManageReqHandleImpl.class,\n\t\t\t\t\t\tassetManageReqHandle.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(assetManageReqHandle);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tassetManageReqHandle.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args){\n int MIN = Integer.parseInt(args[0]);\n MAX = Integer.parseInt(args[1]);\n cutoffs = new int[args.length - 2];\n cache = new ArrayList<IndexedArrayList<SuperSavvyTrieHelper2>>();\n for (int i = 2; i < args.length; i++){\n cutoffs[i - 2] = Integer.parseInt(args[i]);\n cache.add(new IndexedArrayList<SuperSavvyTrieHelper2>());\n }\n for (int i = 0; i < cutoffs.length / 2; i++){\n int temp = cutoffs[i];\n cutoffs[i] = cutoffs[cutoffs.length - 1 - i];\n cutoffs[cutoffs.length - 1 - i] = temp;\n }\n multiplicitiesUsed = new boolean[MAX + 1];\n basesUsed = new DoublyLinkedArray(MAX + 1);\n SuperSavvyTrieHelper2.setCorrespondance(basesUsed);\n /*\n long count1 = lowerRecursion(MAX, 0);\n long count2 = middleRecursion(MAX, 0);\n long count3 = upperRecursion(MAX, 0);\n long total = count1 + count2 + count3;\n System.out.printf(\"%d + %d + %d = %d\\n\", count1, count2, count3, total);\n */\n hitCounts = new long[cutoffs.length];\n missCounts = new long[cutoffs.length];\n statCollector = new StatCollector(cutoffs);\n\n long startTime = System.nanoTime();\n long[] values = new long[MAX - MIN + 1];\n for (int i = MIN; i <= MAX; i++) {\n values[i - MIN] = upperRecursionWrapper(i);\n }\n //long[] testValues = new long[] {1752443,1911046, 2067456,2249444,2429337, 2647532,2852449,3101167,3350292,3632299,3916575};\n for (int i = 0; i < values.length; i++){\n //if (testValues[i] != values[i]){\n System.out.printf(\"%d: %d\\n\", i + MIN, values[i]);\n //}\n }\n long endTime = System.nanoTime();\n System.out.printf(\"%f,\", (double)(endTime - startTime) / 1000000000.0);\n long totalMissCounts = 0;\n long totalMissWeight1 = 0;\n long totalMissWeight2 = 0;\n long totalMissWeight3 = 0;\n /*\n for (int i = 0; i < cutoffs.length; i++){\n long totalCounts = hitCounts[i] + missCounts[i];\n totalMissCounts += missCounts[i];\n totalMissWeight1 += missCounts[i] * cutoffs[i];\n totalMissWeight2 += (hitCounts[i] / missCounts[i]) * cutoffs[i];\n totalMissWeight3 += (hitCounts[i] - missCounts[i]) * cutoffs[i] * cutoffs[i];\n System.out.printf(\"\\tCache %d: %d/%d/%d (%.5f%%)\", cutoffs[i], hitCounts[i], missCounts[i], totalCounts, (double) hitCounts[i] / totalCounts);\n }\n System.out.printf(\"\\t\\tMissCounts: %d, weighted: %d, ratio: %d, diff^2: %d\\n\", totalMissCounts, totalMissWeight1, totalMissWeight2, totalMissWeight3);\n */\n statCollector.printAll();\n }", "public static void main(String[] args)\n {\n\tScanner sc = new Scanner(System.in);\n\tSystem.out.println(\"enter cache size in KB among (1, 2, 4, 8, 16, 32)\");\n\tint cacheSize = sc.nextInt();\n\tSystem.out.println(\"enter way associative value among(1,2,4,8)\");\n\tint wayAssociative = sc.nextInt();\n\tSystem.out.println(\"enter cache line size in bytes among(2,4,8,16,32,64)\");\n\tint cacheLineSize = sc.nextInt();\n\tsc.close();\n\n\tlong count_hit = 0, count_miss = 0;\n\tlong count_hit_2 = 0, count_miss_2 = 0, clockCycle_2 = 0;\n\tlong count_hit_4 = 0, count_miss_4 = 0, clockCycle_4 = 0;\n\tlong count_hit_8 = 0, count_miss_8 = 0, clockCycle_8 = 0;\n\n\tint numberOfCacheLines = (int) ((cacheSize * 1024) / cacheLineSize);\n\n\tArrayList<String> cacheKeys = new ArrayList<String>(numberOfCacheLines);\n\tArrayList<String> cacheValues = new ArrayList<String>(numberOfCacheLines);\n\tArrayList<String> cacheKeys_0 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_0 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_1 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_1 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_2 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_2 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_3 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_3 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_4 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_4 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_5 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_5 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_6 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_6 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_7 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_7 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\n\tlong clockCycle = 0;\n\n\tStringBuilder y = new StringBuilder(\"\");\n\n\t// creating main memory array to store all addresses in a 2d\n\t// array..mapping one\n\t// letter into one width length only..1 to 1 mapping.\n\t// so 2 width is one byte..to get value do block offset*2\n\tString[][] mainMemory = new String[1743][32];\n\tfor (int i = 0; i < 1743; i++)\n\t{\n\t for (int j = 0; j < 32; j++)\n\t {\n\t\tmainMemory[i][j] = \"\";\n\t }\n\t}\n\ttry\n\t{\n\t // read all input files\n\t\tString instructionAddresses = new String(\n\t\t\t\tFiles.readAllBytes(Paths\n\t\t\t\t\t\t.get(\"/Users/akashmalla/Documents/COEN210_Computer_Architecture/project1/inst_addr_trace_hex_project_1.txt\")));\n\t\tString dataSizes = new String(\n\t\t\t\tFiles.readAllBytes(Paths\n\t\t\t\t\t\t.get(\"/Users/akashmalla/Documents/COEN210_Computer_Architecture/project1/inst_data_size_project_1.txt\")));\n\t\tString memoryAddresses = new String(\n\t\t\t\tFiles.readAllBytes(Paths\n\t\t\t\t\t\t.get(\"/Users/akashmalla/Documents/COEN210_Computer_Architecture/project1/inst_mem_hex_16byte_wide.txt\")));\n\t\t// copy all memory addresses into the 2d mainMemory array\n\t\t// split into each line of address\n\n\t String[] memoryAddress = memoryAddresses.split(\"\\\\s+\");\n\t for (int i = 0; i < 1743; i++)\n\t {\n\t\t// split address into each letter\n\t\tString[] oneBit = memoryAddress[i].split(\"\");\n\n\t\tint z = -1;\n\n\t\tfor (int q = oneBit.length - 1; q >= 0; q--)\n\t\t{\n\t\t z++;\n\t\t // store each letter into the array as hex\n\t\t mainMemory[i][q] = oneBit[z];\n\t\t}\n\t }\n\n\t // splitting the instruction addresses into lines\n\t String[] instructionAddress = instructionAddresses.split(\"\\\\s+\");\n\n\t // splitting dataSizes to get length of each data\n\t String[] dataSize = dataSizes.split(\"\\\\s+\");\n\t for (int i = 0; i < instructionAddress.length; i++)\n\t {\n\t\ttry\n\t\t{\n\t\t String binaryIs = \"\";\n\t\t String binaryOffset = \"\";\n\t\t String blockNumber = \"\";\n\t\t if (Integer.parseInt(instructionAddress[i], 16) > 15)\n\t\t {\n\t\t\tbinaryIs = Integer.toBinaryString(Integer.parseInt(instructionAddress[i], 16));\n\t\t\tbinaryOffset = binaryIs.substring(binaryIs.length() - 4);\n\t\t\tblockNumber = binaryIs.substring(0, binaryIs.length() - 4);\n\t\t } else\n\t\t {\n\n\t\t\tblockNumber = \"0\";\n\t\t\tbinaryOffset = Integer.toBinaryString(Integer.parseInt(instructionAddress[i], 16));\n\t\t }\n\n\t\t // check if hit or miss for 1 way\n\t\t if (wayAssociative == 1)\n\t\t {\n\n\t\t\tif (cacheKeys.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t{\n\t\t\t // cache hit situation\n\t\t\t count_hit++;\n\t\t\t clockCycle++;\n\n\t\t\t}\n\n\t\t\telse\n\t\t\t{\n\t\t\t // cache miss\n\t\t\t count_miss++;\n\t\t\t clockCycle += 15;\n\n\t\t\t // replacement for direct mapping.\n\n\t\t\t int newBlockNumber_Value = Integer.parseInt(blockNumber, 2);\n\t\t\t int newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2);\n\t\t\t int length = Integer.parseInt(dataSize[i]);\n\n\t\t\t y.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]);\n\n\t\t\t int p = -1, beta = 0;\n\t\t\t for (int alpha = 1; alpha < length; alpha++)\n\t\t\t {\n\n\t\t\t\tif ((alpha + newOffset_StartingPosition) % 31 == 0)\n\t\t\t\t{\n\n\t\t\t\t newBlockNumber_Value++;\n\t\t\t\t newOffset_StartingPosition = 0;\n\t\t\t\t beta = length - alpha;\n\n\t\t\t\t if (p < beta)\n\t\t\t\t {\n\t\t\t\t\tp++;\n\t\t\t\t\ty.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]);\n\t\t\t\t }\n\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t y.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]);\n\t\t\t\t}\n\t\t\t }\n\n\t\t\t y = y.reverse();\n\n\t\t\t // if y is more than one byte then put it in next cache line\n\t\t\t if (y.length() > 4)\n\t\t\t {\n\n\t\t\t\tfor (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t{\n\t\t\t\t String yy = y.substring(o, o + 4);\n\n\t\t\t\t cacheKeys.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t cacheValues.add(yy);\n\n\t\t\t\t}\n\t\t\t } else\n\t\t\t {\n\n\t\t\t\tif (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t{\n\t\t\t\t cacheKeys.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t cacheValues.add(y.toString());\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t // System.out.println(\"cache is full...\");\n\n\t\t\t\t}\n\n\t\t\t }\n\n\t\t\t}\n\n\t\t\ty.delete(0, y.length());\n\n\t\t }\n\n\t\t else if (wayAssociative > 1)\n\t\t {\n\n\t\t\tif (wayAssociative == 2)\n\t\t\t{\n\n\t\t\t if (cacheKeys_0.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || (cacheKeys_1.contains(blockNumber + \",\" + binaryOffset)))\n\t\t\t {\n\t\t\t\t// cache hit situation\n\t\t\t\tcount_hit_2++;\n\t\t\t\tclockCycle_2++;\n\n\t\t\t }\n\n\t\t\t else\n\t\t\t {\n\t\t\t\t// cache miss\n\t\t\t\tcount_miss_2++;\n\t\t\t\tclockCycle_2 += 15;\n\n\t\t\t\t// replacement\n\t\t\t\tint newBlockNumber_Value = Integer.parseInt(blockNumber, 2);\n\t\t\t\tint newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2);\n\t\t\t\tint length = Integer.parseInt(dataSize[i]);\n\n\t\t\t\ty.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]);\n\n\t\t\t\tint p = -1, beta = 0;\n\t\t\t\tfor (int alpha = 1; alpha < length; alpha++)\n\t\t\t\t{\n\n\t\t\t\t if ((alpha + newOffset_StartingPosition) % 31 == 0)\n\t\t\t\t {\n\n\t\t\t\t\tnewBlockNumber_Value++;\n\t\t\t\t\tnewOffset_StartingPosition = 0;\n\t\t\t\t\tbeta = length - alpha;\n\n\t\t\t\t\tif (p < beta)\n\t\t\t\t\t{\n\t\t\t\t\t p++;\n\t\t\t\t\t y.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]);\n\t\t\t\t\t}\n\n\t\t\t\t } else\n\t\t\t\t {\n\t\t\t\t\ty.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]);\n\t\t\t\t }\n\t\t\t\t}\n\n\t\t\t\ty = y.reverse();\n\n\t\t\t\tif (i % wayAssociative == 0)\n\t\t\t\t{\n\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tif (cacheKeys.size() <= numberOfCacheLines)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t cacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\t cacheValues_0.add(yy);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_0.add(y.toString());\n\t\t\t\t\t}\n\t\t\t\t } else\n\t\t\t\t {\n\t\t\t\t\t// System.out.println(\"cache is full...\");\n\n\t\t\t\t }\n\n\t\t\t\t}\n\n\t\t\t\telse if (i % wayAssociative == 1)\n\t\t\t\t{\n\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_1.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_1.add(y.toString());\n\n\t\t\t\t\t}\n\t\t\t\t }\n\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t\t// System.out.println(\"cache is full...\");\n\n\t\t\t\t }\n\n\t\t\t\t}\n\n\t\t\t }\n\n\t\t\t y.delete(0, y.length());\n\n\t\t\t}\n\n\t\t\t// way =4\n\t\t\tif (wayAssociative == 4)\n\t\t\t{\n\n\t\t\t if (cacheKeys_0.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || cacheKeys_1.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || cacheKeys_2.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || cacheKeys_3.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t {\n\t\t\t\t// cache hit situation\n\t\t\t\tcount_hit_4++;\n\t\t\t\tclockCycle_4++;\n\n\t\t\t }\n\n\t\t\t else\n\t\t\t {\n\t\t\t\t// cache miss\n\t\t\t\tcount_miss_4++;\n\t\t\t\tclockCycle_4 += 15;\n\n\t\t\t\t// replacement\n\t\t\t\tint newBlockNumber_Value = Integer.parseInt(blockNumber, 2);\n\t\t\t\tint newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2);\n\t\t\t\tint length = Integer.parseInt(dataSize[i]);\n\n\t\t\t\ty.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]);\n\n\t\t\t\tint p = -1, beta = 0;\n\t\t\t\tfor (int alpha = 1; alpha < length; alpha++)\n\t\t\t\t{\n\n\t\t\t\t if ((alpha + newOffset_StartingPosition) % 31 == 0)\n\t\t\t\t {\n\n\t\t\t\t\tnewBlockNumber_Value++;\n\t\t\t\t\tnewOffset_StartingPosition = 0;\n\t\t\t\t\tbeta = length - alpha;\n\n\t\t\t\t\tif (p < beta)\n\t\t\t\t\t{\n\t\t\t\t\t p++;\n\t\t\t\t\t y.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]);\n\t\t\t\t\t}\n\n\t\t\t\t } else\n\t\t\t\t {\n\t\t\t\t\ty.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]);\n\t\t\t\t }\n\t\t\t\t}\n\n\t\t\t\ty = y.reverse();\n\n\t\t\t\tif (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t{\n\n\t\t\t\t if (i % wayAssociative == 0)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_0.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_0.add(y.toString());\n\n\t\t\t\t\t}\n\t\t\t\t }\n\n\t\t\t\t // mod 1\n\t\t\t\t else if (i % wayAssociative == 1)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_1.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_1.add(y.toString());\n\t\t\t\t\t}\n\t\t\t\t }\n\n\t\t\t\t // mod 2\n\t\t\t\t else if (i % wayAssociative == 2)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_2.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_2.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_2.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_2.add(y.toString());\n\t\t\t\t\t } else\n\t\t\t\t\t {\n\t\t\t\t\t\t// System.out.println(\"cache is full...\");\n\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // mmod 3\n\t\t\t\t else if (i % wayAssociative == 3)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_3.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_3.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_3.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_3.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t}\n\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t // System.out.println(\"cache is full...\");\n\n\t\t\t\t}\n\n\t\t\t }\n\n\t\t\t y.delete(0, y.length());\n\n\t\t\t}\n\n\t\t\telse if (wayAssociative == 8)\n\t\t\t{\n\n\t\t\t if (cacheKeys_0.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || (cacheKeys_1.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t\t || (cacheKeys_3.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t\t || (cacheKeys_3.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t\t || cacheKeys_4.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || (cacheKeys_5.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t\t || (cacheKeys_7.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t\t || (cacheKeys_6.contains(blockNumber + \",\" + binaryOffset)))\n\t\t\t {\n\t\t\t\t// cache hit situation\n\t\t\t\tcount_hit_8++;\n\t\t\t\tclockCycle_8++;\n\n\t\t\t }\n\n\t\t\t else\n\t\t\t {\n\t\t\t\t// cache miss\n\t\t\t\tcount_miss_8++;\n\t\t\t\tclockCycle_8 += 15;\n\n\t\t\t\t// replacement\n\n\t\t\t\tint newBlockNumber_Value = Integer.parseInt(blockNumber, 2);\n\t\t\t\tint newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2);\n\t\t\t\tint length = Integer.parseInt(dataSize[i]);\n\n\t\t\t\ty.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]);\n\n\t\t\t\tint p = -1, beta = 0;\n\t\t\t\tfor (int alpha = 1; alpha < length; alpha++)\n\t\t\t\t{\n\n\t\t\t\t if ((alpha + newOffset_StartingPosition) % 31 == 0)\n\t\t\t\t {\n\n\t\t\t\t\tnewBlockNumber_Value++;\n\t\t\t\t\tnewOffset_StartingPosition = 0;\n\t\t\t\t\tbeta = length - alpha;\n\n\t\t\t\t\tif (p < beta)\n\t\t\t\t\t{\n\t\t\t\t\t p++;\n\t\t\t\t\t y.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]);\n\t\t\t\t\t}\n\n\t\t\t\t } else\n\t\t\t\t {\n\t\t\t\t\ty.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]);\n\t\t\t\t }\n\t\t\t\t}\n\n\t\t\t\ty = y.reverse();\n\n\t\t\t\tif (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t{\n\n\t\t\t\t if (i % wayAssociative == 0)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_0.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_0.add(y.toString());\n\n\t\t\t\t\t}\n\t\t\t\t }\n\n\t\t\t\t // mod 1\n\t\t\t\t else if (i % wayAssociative == 1)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_1.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_1.add(y.toString());\n\t\t\t\t\t}\n\t\t\t\t }\n\n\t\t\t\t // mod 2\n\t\t\t\t else if (i % wayAssociative == 2)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_2.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_2.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_2.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_2.add(y.toString());\n\t\t\t\t\t } else\n\t\t\t\t\t {\n\t\t\t\t\t\t// System.out.println(\"cache is full...\");\n\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // mmod 3\n\t\t\t\t else if (i % wayAssociative == 3)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_3.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_3.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_3.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_3.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // 4\n\t\t\t\t else if (i % wayAssociative == 4)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_4.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_4.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_4.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_4.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // 5\n\t\t\t\t else if (i % wayAssociative == 5)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_5.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_5.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_5.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_5.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // 6\n\t\t\t\t else if (i % wayAssociative == 6)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_6.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_6.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_6.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_6.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // 7\n\n\t\t\t\t else if (i % wayAssociative == 7)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_7.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_7.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_7.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_7.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t //\n\t\t\t\t}\n\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t // System.out.println(\"cache is full...\");\n\n\t\t\t\t}\n\n\t\t\t }\n\n\t\t\t y.delete(0, y.length());\n\n\t\t\t}\n\n\t\t }\n\n\t\t // 3\n\n\t\t} catch (Exception e)\n\t\t{\n\t\t e.printStackTrace();\n\t\t}\n\n\t }\n\n\t // to print outputs\n\n\t if (wayAssociative == 1)\n\t {\n\t\tlong cache_access = count_hit + count_miss;\n\n\t\tSystem.out.println(\"Total number of cache accesses is \" + cache_access);\n\t\tSystem.out.println(\"Total number of clock cycles is \" + clockCycle);\n\t\tSystem.out.println(\"Total number of hits \" + count_hit);\n\n\t\tdouble hit_ratio = ((double) count_hit) / (count_hit + count_miss) * 100;\n\n\t\tSystem.out.println(\"cache hit ratio is \" + hit_ratio + \"%\");\n\n\t\tdouble ipc = ((double) instructionAddress.length) / clockCycle;\n\t\tSystem.out.println(\"IPC is \" + ipc);\n\t }\n\n\t else if (wayAssociative == 2)\n\t {\n\t\tlong cache_access = count_hit_2 + count_miss_2;\n\n\t\tSystem.out.println(\"Total number of cache accesses is \" + cache_access);\n\t\tSystem.out.println(\"Total number of clock cycles is \" + clockCycle_2);\n\t\tSystem.out.println(\"Total number of hits \" + count_hit_2);\n\n\t\tdouble hit_ratio = ((double) count_hit_2) / (count_hit_2 + count_miss_2) * 100;\n\n\t\tSystem.out.println(\"cache hit ratio is \" + hit_ratio + \"%\");\n\n\t\tdouble ipc = ((double) instructionAddress.length) / clockCycle_2;\n\t\tSystem.out.println(\"IPC is \" + ipc);\n\t }\n\n\t else if (wayAssociative == 4)\n\t {\n\t\tlong cache_access = count_hit_4 + count_miss_4;\n\n\t\tSystem.out.println(\"Total number of cache accesses is \" + cache_access);\n\t\tSystem.out.println(\"Total number of clock cycles is \" + clockCycle_4);\n\t\tSystem.out.println(\"Total number of hits \" + count_hit_4);\n\n\t\tdouble hit_ratio = ((double) count_hit_4) / (count_hit_4 + count_miss_4) * 100;\n\n\t\tSystem.out.println(\"cache hit ratio is \" + hit_ratio + \"%\");\n\n\t\tdouble ipc = ((double) instructionAddress.length) / clockCycle_4;\n\t\tSystem.out.println(\"IPC is \" + ipc);\n\n\t } else if (wayAssociative == 8)\n\t {\n\t\tlong cache_access = count_hit_8 + count_miss_8;\n\n\t\tSystem.out.println(\"Total number of cache accesses is \" + cache_access);\n\t\tSystem.out.println(\"Total number of clock cycles is \" + clockCycle_8);\n\t\tSystem.out.println(\"Total number of hits \" + count_hit_8);\n\n\t\tdouble hit_ratio = ((double) count_hit_8) / (count_hit_8 + count_miss_8) * 100;\n\n\t\tSystem.out.println(\"cache hit ratio is \" + hit_ratio + \"%\");\n\n\t\tdouble ipc = ((double) instructionAddress.length) / clockCycle_8;\n\t\tSystem.out.println(\"IPC is \" + ipc);\n\t }\n\n\t} catch (Exception e)\n\t{\n\t e.printStackTrace();\n\t}\n\n }", "@Override\n public void removeFromCache(List<NulsDigestData> txHashList) {\n\n }", "@Override\n public void run() {\n try (BufferedReader reader = new BufferedReader(new FileReader(file.getAbsoluteFile()))) {\n String lineFromFile = reader.readLine();\n String[] splitLine;\n String userName;\n String url;\n long time;\n while ((lineFromFile = reader.readLine()) != null) {\n splitLine = lineFromFile.split(\";\");\n userName = splitLine[3];\n url = splitLine[1];\n time = Long.parseLong(splitLine[2]);\n if (userNamesAndCorrespondingContent.containsKey(userName)) {\n Content content = userNamesAndCorrespondingContent.get(userName);\n if (content.getUrlAndCorrespondingTime().containsKey(url)) {\n content.updateTimeForCorrespondingUrl(url, time);\n } else {\n content.updateUrlAndTimeInfoForCorrespondingUsername(url, time);\n }\n } else {\n Map<String, Long> newUrlAndTime = new ConcurrentSkipListMap<>();\n newUrlAndTime.put(url, time);\n userNamesAndCorrespondingContent.put(userName, new Content(newUrlAndTime));\n }\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException {\n if (requestContext.getProperty(CACHE_USED) == null && responseContext.getEntity() instanceof Result) {\n Result result = (Result) responseContext.getEntity();\n String requestPath = requestContext.getUriInfo().getPath();\n\n log.info(\"{} - caching result: {}\", requestPath, result);\n\n cache.putIfAbsent(requestPath, result);\n }\n }", "private CalculationResult calculateAccesses(List<RoleInheritance> inheritanceList,\n List<String> inheritanceInheritFromIdList, RoleInheritance roleInheritanceToDelete,\n AccessTypeInjector injector, boolean doFlush) {\n int[] counters = new int[] { 0, 0, 0 };\n for (RoleInheritance roleInheritance : inheritanceList) {\n for (InheritedAccessEnabled inheritedAccess : injector.getAccessList(roleInheritance\n .getInheritFrom())) {\n if (!injector.isInheritable(inheritedAccess)) {\n continue;\n }\n int res = handleAccess(roleInheritance, inheritedAccess, inheritanceInheritFromIdList,\n injector);\n counters[res]++;\n }\n if (doFlush) {\n OBDal.getInstance().flush();\n }\n }\n if (roleInheritanceToDelete != null) {\n // delete accesses not inherited anymore\n deleteRoleAccess(roleInheritanceToDelete.getInheritFrom(),\n injector.getAccessList(roleInheritanceToDelete.getRole()), injector);\n }\n CalculationResult result = new CalculationResult(counters[ACCESS_UPDATED],\n counters[ACCESS_CREATED]);\n return result;\n }", "public static void fetch(String [] programCache, String jobId, int [] registers, int CPUNumber)\n {\n int StartingLine = pcb.getStartIndex(jobId);\n int EndingLine = pcb.getEndIndex(jobId);\n String StartingLinestring;\n StartingLinestring = Integer.toString(StartingLine);\n pcb.setProgramCounter(jobId,StartingLinestring);\n String [] programCacheClone = new String [pcb.getEndIndex(jobId) - pcb.getStartIndex(jobId)];\n\n for(int i = 0; i < programCache.length; i++)\n {\n programCache[i] = RAM[pcb.getStartIndex(jobId) + i];\n programCacheClone[i] = RAM[pcb.getStartIndex(jobId) + i];\n }\n\n //Fetches until ProgramCounter goes passed the last line of code.\n while ( EndingLine > pcb.getProgramCounter(jobId))\n {\n decode(programCache,programCache[programLines[CPUNumber]], jobId, registers, CPUNumber);\n }\n\n // Amends the changes made in the Cache to RAM once program running is complete\n for(int i = 0; i < programCache.length; i++)\n {\n if(!programCache[i].equals(programCacheClone[i]))\n {\n RAM[pcb.getStartIndex(jobId) + i] = programCache[i];\n }\n }\n\n if( EndingLine < pcb.getProgramCounter(jobId))\n {\n for(int i= StartingLine; i < EndingLine+1; i++)\n {\n RAM[i] = null;\n }\n programLines[CPUNumber] = 0;\n CPUs[CPUNumber] = -1;\n System.out.println(\"Deleting....\");\n pcb.deleteProcess(jobId);\n System.out.println(\"Process deleted.\\n\");\n }\n }", "public AccountStorage() {\n accounts = new ConcurrentHashMap<>();\n minerMap = new ConcurrentHashMap<>();\n blockMap = new ConcurrentHashMap<>();\n initAccounts();\n logger.info(\"AccountStorage: New AccountStorage created.\");\n }", "@Test\n public void processTransactionManagerCaseC()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n acc_db.addAccount(acc3);\n\n\n trans_mang.processTransaction(acc.get_Account_Number(), acc2.get_Account_Number(), 30);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc3.get_Account_Number(),acc2.get_Account_Number(),30));\n }", "public static ATMAccount LogIn() throws FileNotFoundException, IOException, InterruptedException {\r\n\t\tATMAccount account = null;\r\n\t\tSystem.out.println(\"Enter your account ID:\");\r\n\t\tint intaccID;\r\n\t\tintaccID = userInput.nextInt();\r\n\t\tString accID = intaccID + \"\";\r\n\t\tString[] dataGrabbed = new String[4];\r\n\t\tFile thisFile = new File(\"accountsdb.txt\");\r\n\t\taccountsdbReader = new Scanner(thisFile);\r\n\r\n\t\tif (thisFile.exists()) {\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\tString accountIDHolder = accountsdbReader.findInLine(accID);\r\n\t\t\t\tif (accountIDHolder == null) {\r\n\r\n\t\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t\t} else if (accountIDHolder.equals(accID)) {\r\n\t\t\t\t\tfor (int i = 1; i < dataGrabbed.length; i++) {\r\n\t\t\t\t\t\tif (accountsdbReader.hasNext())\r\n\t\t\t\t\t\t\tdataGrabbed[i] = accountsdbReader.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if ((!(accountsdbReader.hasNextLine()) && account == null)) {\r\n\t\t\t\t\tSystem.out.println(\"This account does not exist!\");\r\n\t\t\t\t\tATMStartScreen();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdataGrabbed[0] = accID;\r\n\r\n\t\t\t}\r\n\t\t\tint validationLoop = 3;\r\n\t\t\tString pinValidity;\r\n\t\t\tuserInput.nextLine();\r\n\t\t\tdo {\r\n\t\t\t\tSystem.out.println(\"Please enter your 4 digit pin in order to access your account:\");\r\n\t\t\t\tpinValidity = userInput.nextLine();\r\n\t\t\t\tif (pinValidity.equals(dataGrabbed[3])) {\r\n\t\t\t\t\tSystem.out.println(\"PIN Confirmed!\");\r\n\t\t\t\t\tSystem.out.println(\"Displaying account options...\");\r\n\t\t\t\t\taccount = new ATMAccount(Integer.parseInt(dataGrabbed[0]), dataGrabbed[1],\r\n\t\t\t\t\t\t\tInteger.parseInt(dataGrabbed[3]), Double.parseDouble(dataGrabbed[2]));\r\n\r\n\t\t\t\t\treturn account;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"PIN Declined!\");\r\n\t\t\t\t\tSystem.out.println(\"You have \" + validationLoop + \" attempts remaining.\");\r\n\r\n\t\t\t\t}\r\n\t\t\t\tvalidationLoop--;\r\n\t\t\t} while (!pinValidity.equals(dataGrabbed[3]) && validationLoop != -1);\r\n\t\t\tSystem.out.println(\"You have exhausted all of your attempts you will now return to the main menu.\");\r\n\t\t} else {\r\n\t\t\t// Return to StartScreen before being able to return null account\r\n\t\t\tSystem.out.println(\"File was not found!\");\r\n\t\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\t\tATMStartScreen();\r\n\t\t}\r\n\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\tATMStartScreen();\r\n\t\treturn null;\r\n\r\n\t}", "public interface AccountCache {\n /**\n * Returns an {@code AccountState} instance for the given account ID. If not cached yet the\n * account is loaded. Returns {@link Optional#empty()} if the account is missing.\n *\n * @param accountId ID of the account that should be retrieved\n * @return {@code AccountState} instance for the given account ID, if no account with this ID\n * exists {@link Optional#empty()} is returned\n */\n Optional<AccountState> get(Account.Id accountId);\n\n /**\n * Returns a {@code Map} of {@code Account.Id} to {@code AccountState} for the given account IDs.\n * If not cached yet the accounts are loaded. If an account can't be loaded (e.g. because it is\n * missing), the entry will be missing from the result.\n *\n * <p>Loads accounts in parallel if applicable.\n *\n * @param accountIds IDs of the account that should be retrieved\n * @return {@code Map} of {@code Account.Id} to {@code AccountState} instances for the given\n * account IDs, if an account can't be loaded (e.g. because it is missing), the entry will be\n * missing from the result\n */\n Map<Account.Id, AccountState> get(Set<Account.Id> accountIds);\n\n /**\n * Returns an {@code AccountState} instance for the given account ID. If not cached yet the\n * account is loaded. Returns an empty {@code AccountState} instance to represent a missing\n * account.\n *\n * <p>This method should only be used in exceptional cases where it is required to get an account\n * state even if the account is missing. Callers should leave a comment with the method invocation\n * explaining why this method is used. Most callers of {@link AccountCache} should use {@link\n * #get(Account.Id)} instead and handle the missing account case explicitly.\n *\n * @param accountId ID of the account that should be retrieved\n * @return {@code AccountState} instance for the given account ID, if no account with this ID\n * exists an empty {@code AccountState} instance is returned to represent the missing account\n */\n AccountState getEvenIfMissing(Account.Id accountId);\n\n /**\n * Returns an {@code AccountState} instance for the given username.\n *\n * <p>This method first loads the external ID for the username and then uses the account ID of the\n * external ID to lookup the account from the cache.\n *\n * @param username username of the account that should be retrieved\n * @return {@code AccountState} instance for the given username, if no account with this username\n * exists or if loading the external ID fails {@link Optional#empty()} is returned\n */\n Optional<AccountState> getByUsername(String username);\n\n /**\n * Returns an {@code AccountState} instance for the given account ID at the given {@code metaId}\n * of {@link com.google.gerrit.entities.RefNames#refsUsers} ref.\n *\n * <p>The caller is responsible to ensure the presence of {@code metaId} and the corresponding\n * meta ref. The method does not populate {@link AccountState#defaultPreferences}.\n *\n * @param accountId ID of the account that should be retrieved.\n * @param metaId the sha1 of commit in {@link com.google.gerrit.entities.RefNames#refsUsers} ref.\n * @return {@code AccountState} instance for the given account ID at specific sha1 {@code metaId}.\n */\n @UsedAt(Project.GOOGLE)\n AccountState getFromMetaId(Account.Id accountId, ObjectId metaId);\n}", "public boolean insertTransactionsAndCreateAccounts(List<Transaction> transactions) {\n\t\ttry (final AutoCommittingHandle handle = new AutoCommittingHandle(dbi)) {\n\t\t\ttry {\n\t\t\t\t// fetch all existing accounts, initializing a map entry for each that contains an empty set of\n\t\t\t\t// transactions as its value\n\t\t\t\tfinal Map<Account, List<Transaction>> existingAccounts = new HashMap<>();\n\t\t\t\tfor (final Account existingAccount : getAccountsWithTransactions(handle)) {\n\t\t\t\t\texistingAccounts.put(existingAccount, new ArrayList<>());\n\t\t\t\t}\n\n\t\t\t\t// a map of new accounts to add\n\t\t\t\tfinal Map<Account, List<Transaction>> newAccounts = new HashMap<>();\n\n\t\t\t\t// sort new transactions into the map of accounts\n\t\t\t\tfor (final Transaction transaction : transactions) {\n\t\t\t\t\tfinal Optional<Account> existingAccount = existingAccounts.keySet()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .filter(a -> a.getAccountNumber()\n\t\t\t\t\t .equals(transaction.getAccountNumber()))\n\t\t\t\t\t .findFirst();\n\t\t\t\t\tfinal Optional<Account> newAccount = newAccounts.keySet()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .filter(a -> a.getAccountNumber()\n\t\t\t\t\t .equals(transaction.getAccountNumber()))\n\t\t\t\t\t .findFirst();\n\n\t\t\t\t\tif (!existingAccount.isPresent() && newAccount.isPresent()) {\n\t\t\t\t\t\tnewAccounts.get(newAccount.get()).add(transaction);\n\t\t\t\t\t} else if (existingAccount.isPresent() && !newAccount.isPresent()) {\n\t\t\t\t\t\texistingAccounts.get(existingAccount.get()).add(transaction);\n\t\t\t\t\t} else if (!existingAccount.isPresent() && !newAccount.isPresent()) {\n\t\t\t\t\t\tfinal List<Transaction> newTransactions = Arrays.asList(transaction);\n\t\t\t\t\t\t// TODO: can we assume account type and balance/currency? - instead, prompt user for details?\n\t\t\t\t\t\tfinal Account account = Account.newBuilder(transaction.getAccountNumber())\n\t\t\t\t\t\t .setType(AccountType.CHECKING)\n\t\t\t\t\t\t .setBalance(Money.zero(CurrencyUnit.CAD))\n\t\t\t\t\t\t .addTransactions(newTransactions)\n\t\t\t\t\t\t .build();\n\t\t\t\t\t\tnewAccounts.put(account, newTransactions);\n\t\t\t\t\t} else if (existingAccount.isPresent() && newAccount.isPresent()) {\n\t\t\t\t\t\tthrow new IllegalStateException(\"Account can't exist in new and existing maps\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (final Entry<Account, List<Transaction>> entry : newAccounts.entrySet()) {\n\t\t\t\t\t// sum the transactions to compute an updated balance for the account\n\t\t\t\t\tfinal List<Money> transactionAmounts = entry.getValue()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .map(Transaction::getAmount)\n\t\t\t\t\t .collect(Collectors.toList());\n\t\t\t\t\tfinal Money balance = Money.zero(entry.getKey().getBalance().getCurrencyUnit())\n\t\t\t\t\t .plus(transactionAmounts);\n\n\t\t\t\t\t// insert a copy of the account with the correct balance and list of transactions\n\t\t\t\t\tfinal Account updatedAccount = Account.newBuilder(entry.getKey())\n\t\t\t\t\t .setBalance(balance)\n\t\t\t\t\t .addTransactions(entry.getValue())\n\t\t\t\t\t .build();\n\n\t\t\t\t\tinsertAccountWithTransactions(handle, updatedAccount);\n\t\t\t\t}\n\n\t\t\t\tfor (final Entry<Account, List<Transaction>> entry : existingAccounts.entrySet()) {\n\t\t\t\t\t// sum the transactions to compute an updated balance for the account\n\t\t\t\t\tfinal List<Money> transactionAmounts = entry.getValue()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .map(Transaction::getAmount)\n\t\t\t\t\t .collect(Collectors.toList());\n\t\t\t\t\tfinal Money balance = entry.getKey()\n\t\t\t\t\t .getBalance()\n\t\t\t\t\t .plus(transactionAmounts);\n\n\t\t\t\t\t// update the account with the correct balance and set of transactions\n\t\t\t\t\t// this adds the new transactions to the set of transactions already in the account\n\t\t\t\t\tfinal Account updatedAccount = Account.newBuilder(entry.getKey())\n\t\t\t\t\t .setBalance(balance)\n\t\t\t\t\t .addTransactions(entry.getValue())\n\t\t\t\t\t .build();\n\n\t\t\t\t\taccountDao.updateAccount(handle, updatedAccount);\n\t\t\t\t\ttransactionDao.insertTransactions(handle, entry.getValue());\n\t\t\t\t}\n\t\t\t} catch (final Exception ex) {\n\t\t\t\tlog.error(\"Failed to insert tranactions\", ex);\n\t\t\t\thandle.rollback();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public final AstValidator.cache_clause_return cache_clause() throws RecognitionException {\n AstValidator.cache_clause_return retval = new AstValidator.cache_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree CACHE60=null;\n AstValidator.path_list_return path_list61 =null;\n\n\n CommonTree CACHE60_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:210:14: ( ^( CACHE path_list ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:210:16: ^( CACHE path_list )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n CACHE60=(CommonTree)match(input,CACHE,FOLLOW_CACHE_in_cache_clause769); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n CACHE60_tree = (CommonTree)adaptor.dupNode(CACHE60);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(CACHE60_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_path_list_in_cache_clause771);\n path_list61=path_list();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, path_list61.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }" ]
[ "0.58839756", "0.57625145", "0.572092", "0.5367581", "0.5362518", "0.53503513", "0.5284002", "0.5251449", "0.52259815", "0.5198515", "0.5192361", "0.51899964", "0.5174834", "0.51557934", "0.51197916", "0.51045686", "0.5095092", "0.50881237", "0.502431", "0.49446514", "0.49276665", "0.4924526", "0.48758638", "0.48568982", "0.48281488", "0.48104432", "0.48097494", "0.48011437", "0.47718823", "0.4761884", "0.4757422", "0.47559503", "0.47533065", "0.4751491", "0.47471017", "0.47439763", "0.4743516", "0.47388425", "0.47352225", "0.4729909", "0.47133106", "0.47058168", "0.4691553", "0.4689912", "0.467544", "0.4673909", "0.4669085", "0.4666449", "0.46661073", "0.46647608", "0.46580115", "0.46463338", "0.46348444", "0.46310192", "0.463079", "0.46252453", "0.46000707", "0.4586753", "0.45823702", "0.4576792", "0.45739493", "0.45687866", "0.45678335", "0.4562799", "0.45550403", "0.45486903", "0.4546461", "0.45332462", "0.45056733", "0.44987944", "0.44982624", "0.44946933", "0.44927466", "0.44914526", "0.44901", "0.44844195", "0.44828367", "0.44811663", "0.44747493", "0.44660363", "0.4450798", "0.44481552", "0.44480813", "0.4447281", "0.44465405", "0.44454047", "0.4439558", "0.44353512", "0.44290456", "0.4427629", "0.44249162", "0.4419214", "0.44174942", "0.4415902", "0.44151366", "0.44097206", "0.4409024", "0.44077158", "0.44074243", "0.44055456" ]
0.7380457
0
requires: accounts != null && accounts[i] != null (i.e., accounts are properly initialized) modifies: accounts effects: accounts change according to transactions in inputFile
public static void runServer(String inputFile, Account accounts[]) throws IOException { // read transactions from input file String line; BufferedReader input = new BufferedReader(new FileReader(inputFile)); // TO DO: you will need to create an Executor and then modify the // following loop to feed tasks to the executor instead of running them // directly. final ExecutorService pool = Executors.newFixedThreadPool(3); while ((line = input.readLine()) != null) { Task t = new Task(accounts, line); pool.submit(t); } pool.shutdown(); try { pool.awaitTermination(60, TimeUnit.SECONDS); } catch (InterruptedException e) { } input.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void withdrawMoney(ATMAccount account) throws FileNotFoundException {\r\n\r\n\t\t// File initialization\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t// #ADDED THE 2-D ARRAY\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble withdrawAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to withdraw:\");\r\n\t\t\twithdrawAmount = userInput.nextDouble();\r\n\t\t\tif (account.getBalance() < 0 || withdrawAmount > account.getBalance()) {\r\n\t\t\t\tSystem.out.println(\"Insufficient balance!\");\r\n\t\t\t} else {\r\n\t\t\t\taccount.setWithdraw(withdrawAmount);\r\n\t\t\t}\r\n\r\n\t\t} while (withdrawAmount < 0);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Withdrawing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}", "public boolean insertTransactionsAndCreateAccounts(List<Transaction> transactions) {\n\t\ttry (final AutoCommittingHandle handle = new AutoCommittingHandle(dbi)) {\n\t\t\ttry {\n\t\t\t\t// fetch all existing accounts, initializing a map entry for each that contains an empty set of\n\t\t\t\t// transactions as its value\n\t\t\t\tfinal Map<Account, List<Transaction>> existingAccounts = new HashMap<>();\n\t\t\t\tfor (final Account existingAccount : getAccountsWithTransactions(handle)) {\n\t\t\t\t\texistingAccounts.put(existingAccount, new ArrayList<>());\n\t\t\t\t}\n\n\t\t\t\t// a map of new accounts to add\n\t\t\t\tfinal Map<Account, List<Transaction>> newAccounts = new HashMap<>();\n\n\t\t\t\t// sort new transactions into the map of accounts\n\t\t\t\tfor (final Transaction transaction : transactions) {\n\t\t\t\t\tfinal Optional<Account> existingAccount = existingAccounts.keySet()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .filter(a -> a.getAccountNumber()\n\t\t\t\t\t .equals(transaction.getAccountNumber()))\n\t\t\t\t\t .findFirst();\n\t\t\t\t\tfinal Optional<Account> newAccount = newAccounts.keySet()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .filter(a -> a.getAccountNumber()\n\t\t\t\t\t .equals(transaction.getAccountNumber()))\n\t\t\t\t\t .findFirst();\n\n\t\t\t\t\tif (!existingAccount.isPresent() && newAccount.isPresent()) {\n\t\t\t\t\t\tnewAccounts.get(newAccount.get()).add(transaction);\n\t\t\t\t\t} else if (existingAccount.isPresent() && !newAccount.isPresent()) {\n\t\t\t\t\t\texistingAccounts.get(existingAccount.get()).add(transaction);\n\t\t\t\t\t} else if (!existingAccount.isPresent() && !newAccount.isPresent()) {\n\t\t\t\t\t\tfinal List<Transaction> newTransactions = Arrays.asList(transaction);\n\t\t\t\t\t\t// TODO: can we assume account type and balance/currency? - instead, prompt user for details?\n\t\t\t\t\t\tfinal Account account = Account.newBuilder(transaction.getAccountNumber())\n\t\t\t\t\t\t .setType(AccountType.CHECKING)\n\t\t\t\t\t\t .setBalance(Money.zero(CurrencyUnit.CAD))\n\t\t\t\t\t\t .addTransactions(newTransactions)\n\t\t\t\t\t\t .build();\n\t\t\t\t\t\tnewAccounts.put(account, newTransactions);\n\t\t\t\t\t} else if (existingAccount.isPresent() && newAccount.isPresent()) {\n\t\t\t\t\t\tthrow new IllegalStateException(\"Account can't exist in new and existing maps\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (final Entry<Account, List<Transaction>> entry : newAccounts.entrySet()) {\n\t\t\t\t\t// sum the transactions to compute an updated balance for the account\n\t\t\t\t\tfinal List<Money> transactionAmounts = entry.getValue()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .map(Transaction::getAmount)\n\t\t\t\t\t .collect(Collectors.toList());\n\t\t\t\t\tfinal Money balance = Money.zero(entry.getKey().getBalance().getCurrencyUnit())\n\t\t\t\t\t .plus(transactionAmounts);\n\n\t\t\t\t\t// insert a copy of the account with the correct balance and list of transactions\n\t\t\t\t\tfinal Account updatedAccount = Account.newBuilder(entry.getKey())\n\t\t\t\t\t .setBalance(balance)\n\t\t\t\t\t .addTransactions(entry.getValue())\n\t\t\t\t\t .build();\n\n\t\t\t\t\tinsertAccountWithTransactions(handle, updatedAccount);\n\t\t\t\t}\n\n\t\t\t\tfor (final Entry<Account, List<Transaction>> entry : existingAccounts.entrySet()) {\n\t\t\t\t\t// sum the transactions to compute an updated balance for the account\n\t\t\t\t\tfinal List<Money> transactionAmounts = entry.getValue()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .map(Transaction::getAmount)\n\t\t\t\t\t .collect(Collectors.toList());\n\t\t\t\t\tfinal Money balance = entry.getKey()\n\t\t\t\t\t .getBalance()\n\t\t\t\t\t .plus(transactionAmounts);\n\n\t\t\t\t\t// update the account with the correct balance and set of transactions\n\t\t\t\t\t// this adds the new transactions to the set of transactions already in the account\n\t\t\t\t\tfinal Account updatedAccount = Account.newBuilder(entry.getKey())\n\t\t\t\t\t .setBalance(balance)\n\t\t\t\t\t .addTransactions(entry.getValue())\n\t\t\t\t\t .build();\n\n\t\t\t\t\taccountDao.updateAccount(handle, updatedAccount);\n\t\t\t\t\ttransactionDao.insertTransactions(handle, entry.getValue());\n\t\t\t\t}\n\t\t\t} catch (final Exception ex) {\n\t\t\t\tlog.error(\"Failed to insert tranactions\", ex);\n\t\t\t\thandle.rollback();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public static void depositMoney(ATMAccount account) throws FileNotFoundException {\r\n\t\taccountsdb = new File(\"accountsdb.txt\");\r\n\t\t//Use of two dimensional array to account for line number\r\n\t\tString[][] accountInfo = null;\r\n\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\t\t\tint y = 0;\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ty++;\r\n\t\t\t\taccountInfo = new String[y][4];\r\n\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t}\r\n\t\t\taccountsdbReader.close();\r\n\t\t}\r\n\r\n\t\tdouble depositAmount;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the amount you want to deposit:\");\r\n\t\t\tdepositAmount = userInput.nextDouble();\r\n\t\t\tif (depositAmount < 0) {\r\n\t\t\t\tSystem.out.println(\"You cannot deposit a negative amount!\");\r\n\t\t\t}\r\n\r\n\t\t} while (depositAmount < 0);\r\n\t\taccount.setDeposit(depositAmount);\r\n\t\tSystem.out.println(\"Your deposit has been made.\");\r\n\r\n\t\tSystem.out.println(accountInfo.length);\r\n\r\n\t\tString s = \"\";\r\n\t\tif (accountsdb.exists()) {\r\n\t\t\tint y = 0;\r\n\t\t\taccountsdbReader = new Scanner(accountsdb);\r\n\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\ts = accountsdbReader.nextLine();\r\n\t\t\t\tStringTokenizer spl = new StringTokenizer(s, \" \");\r\n\t\t\t\tfor (int x = 0; x != 4; x++) {\r\n\t\t\t\t\taccountInfo[y][x] = spl.nextToken();\r\n\r\n\t\t\t\t}\r\n\t\t\t\ty++;\r\n\t\t\t}\r\n\t\t}\r\n/**\t\t\t\t\t\t\t\t\t\t\t VALIDATION PROOF\r\n *\t\tSystem.out.println(\"Line #1\" + \"\\n Index #0: \" + accountInfo[0][0] + \"\\t Index #1: \" + accountInfo[0][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[0][2] + \"\\t Index #3: \" + accountInfo[0][3]);\r\n *\t\tSystem.out.println(\"Line #2\" + \"\\n Index #0: \" + accountInfo[1][0] + \"\\t Index #1: \" + accountInfo[1][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[1][2] + \"\\t Index #3: \" + accountInfo[1][3]);\r\n *\t\tSystem.out.println(\"Line #3\" + \"\\n Index #0: \" + accountInfo[2][0] + \"\\t Index #1: \" + accountInfo[2][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[2][2] + \"\\t Index #3: \" + accountInfo[2][3]);\r\n *\t\tSystem.out.println(\"Line #4\" + \"\\n Index #0: \" + accountInfo[3][0] + \"\\t Index #1: \" + accountInfo[3][1]\r\n *\t\t\t\t+ \"\\t Index #2: \" + accountInfo[3][2] + \"\\t Index #3: \" + accountInfo[3][3]);\r\n *\t\t\t\t\r\n */\r\n\t\tint line = -1;\r\n\t\ttry {\r\n\r\n\t\t\tint accID;\r\n\t\t\tfor (int y = 0; y != accountInfo.length; y++) {\r\n\t\t\t\taccID = Integer.parseInt(accountInfo[y][0]);\r\n\t\t\t\tif (accID == account.getID())\r\n\t\t\t\t\tline = y;\r\n\r\n\t\t\t}\r\n\t\t\taccountInfo[line][2] = \"\" + account.getBalance();\r\n\t\t\tSystem.out.println(\"Depositing...\");\r\n\t\t\tSystem.out.println(\"New Balance: \" + accountInfo[line][2]);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Account was not found in database array!\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tPrintWriter scrubFile = new PrintWriter(accountsdb);\r\n\t\t\tscrubFile.write(\"\");\r\n\t\t\tscrubFile.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fileWriter = new FileWriter(accountsdb, true);\r\n\t\t\tBufferedWriter fileBuffer = new BufferedWriter(fileWriter);\r\n\t\t\tPrintWriter fileOutput = new PrintWriter(fileBuffer);\r\n\t\t\tfor (int i = 0; i != accountInfo.length; i++) {\r\n\t\t\t\tfileOutput.println(accountInfo[i][0] + \" \" + accountInfo[i][1] + \" \" + accountInfo[i][2] + \" \"\r\n\t\t\t\t\t\t+ accountInfo[i][3]);\r\n\t\t\t}\r\n\r\n\t\t\tif (fileOutput != null) {\r\n\t\t\t\tfileOutput.close();\r\n\t\t\t}\r\n\t\t\tif (fileBuffer != null) {\r\n\t\t\t\tfileBuffer.close();\r\n\t\t\t}\r\n\t\t\tif (fileWriter != null) {\r\n\t\t\t\tfileWriter.close();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\taccountsdbReader.close();\r\n\r\n\t}", "public static void UserAccounts() throws FileNotFoundException{\n\t\tScanner input = new Scanner(new File(AccountFile));\t\t\t\t//Creats objects and adds to array list.\r\n\t\t\r\n\t\twhile (input.hasNextLine()) {\t\t\t\t\t\t\t\t\t//Loops as long as there is another line\r\n\t\t\t\r\n\t\t\tString line = input.nextLine();\r\n\t\t\tif(line.equals(\"ADMIN\")) {\t\t\t\t\t\t\t\t\t//Checks if the data is for Admin, creats admin object\r\n\t\t\t\tString AdminUsername = input.nextLine();\r\n\t\t\t\tString AdminPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tAdmin admin = new Admin(AdminUsername, AdminPassword);\r\n\t\t\t\taccounts.add(admin);\r\n\t\t\t\t\r\n\t\t\t} if(line.equals(\"COORDINATOR\")){\r\n\t\t\t\tString coordinatorUsername = input.nextLine();\r\n\t\t\t\tString coordinatorPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCoordinator coordinator = new Coordinator(coordinatorUsername, coordinatorPassword);\r\n\t\t\t\taccounts.add(coordinator);\r\n\r\n\t\t\t} if(line.equals(\"APPROVER\")){\r\n\t\t\t\tString approverUsername = input.nextLine();\r\n\t\t\t\tString approverPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tApprover approver = new Approver(approverUsername, approverPassword);\r\n\t\t\t\taccounts.add(approver);\r\n\r\n\t\t\t} if(line.equals(\"CASUAL\")){\r\n\t\t\t\tString casualUsername = input.nextLine();\r\n\t\t\t\tString casualPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCasualStaff casual = new CasualStaff(casualUsername, casualPassword);\r\n\t\t\t\taccounts.add(casual);\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} loginSystem();\r\n\t}", "void addNewAccountToFile(Account newAccount);", "public void setAccounts(List<B2bInvoiceAccount> accounts) {\r\n this.accounts = accounts;\r\n }", "private void ReadInAccounts() {\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", \"checking for file\" + AccountMan.CheckForFile());\n\t\taccounts = AccountMan.GetAccounts();\n\t\t//Comment out this line and uncomment the line above after purging the excess accounts\n\t\t//accounts = AccountMan.PurgeDuplicateAccounts(AccountMan.GetAccounts());\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", String.valueOf(accounts.size()));\n\t}", "public void importFile() {\n \ttry {\n\t File account_file = new File(\"accounts/CarerAccounts.txt\");\n\n\t FileReader file_reader = new FileReader(account_file);\n\t BufferedReader buff_reader = new BufferedReader(file_reader);\n\n\t String row;\n\t while ((row = buff_reader.readLine()) != null) {\n\t String[] account = row.split(\",\"); //implementing comma seperated value (CSV)\n\t String[] users = account[6].split(\"-\");\n\t int[] usersNew = new int[users.length];\n\t for (int i = 0; i < users.length; i++) {\n\t \tusersNew[i] = Integer.parseInt(users[i].trim());\n\t }\n\t this.add(Integer.parseInt(account[0]), account[1], account[2], account[3], account[4], account[5], usersNew);\n\t }\n\t buff_reader.close();\n } catch (IOException e) {\n System.out.println(\"Unable to read text file this time.\");\n \t}\n\t}", "private void loadCreditCardAccounts(String creditCardAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(creditCardAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data.\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n double limit = Double.parseDouble(splitLine[10]);\n String creditCardNumber = splitLine[11];\n int cvv = Integer.parseInt(splitLine[12]);\n\n CreditCard creditCardAccount = new CreditCard(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n limit,\n creditCardNumber,\n cvv);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n creditCardAccount.setTransactions(accountTransactions);\n\n //add credit cards\n accounts.add(creditCardAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void loadTransactions(String transactionFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(transactionFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n int transactionId = Integer.parseInt(splitLine[0]);\n\n String accountTypeChar = splitLine[1];\n TransactionType transactionType = null;\n switch (accountTypeChar)\n {\n case \"D\":\n transactionType = TransactionType.DEBIT;\n break;\n\n case \"C\":\n transactionType = TransactionType.CREDIT;\n break;\n\n case \"T\":\n transactionType = TransactionType.TRANSFER;\n }\n\n String description = splitLine[2];\n Date date = dateFormat.parse(splitLine[3]);\n double amount = Double.parseDouble(splitLine[4]);\n int accountId = Integer.parseInt(splitLine[5]);\n\n Transaction transaction = new Transaction(transactionId,\n transactionType,\n description,\n date,\n amount,\n accountId);\n\n transactionHashMap.putIfAbsent(accountId, new ArrayList<>());\n transactionHashMap.get(accountId).add(transaction);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void loadSavingsAccounts(String savingsAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(savingsAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftAccountId = Integer.parseInt(splitLine[5]);\n\n Savings savingsAccount = new Savings(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftAccountId);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n savingsAccount.setTransactions(accountTransactions);\n\n //add savings account...\n accounts.add(savingsAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public AccountManager(String transactionsFileName,\n String checkingAccountFileName,\n String savingsAccountFileName,\n String cdAccountFileName,\n String atmAccountFileName,\n String creditCardAccountFileName,\n String termLoanAccountFileName)\n {\n accounts = new ArrayList<>();\n\n //Load transactions first so the hash map is built\n loadTransactions(transactionsFileName);\n\n loadCheckingAccounts(checkingAccountFileName);\n loadSavingsAccounts(savingsAccountFileName);\n loadCDAccounts(cdAccountFileName);\n loadATMAccounts(atmAccountFileName);\n loadCreditCardAccounts(creditCardAccountFileName);\n loadTermLoanAccounts(termLoanAccountFileName);\n }", "private void loadCheckingAccounts(String checkingAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(checkingAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftSavingsAccountId = Integer.parseInt(splitLine[5]);\n boolean isGoldDiamond = Boolean.parseBoolean(splitLine[6]);\n\n Checking checkingAccount = new Checking(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftSavingsAccountId,\n isGoldDiamond);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n checkingAccount.setTransactions(accountTransactions);\n\n //add checking account...\n accounts.add(checkingAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public Bank() throws Exception\r\n\t{\r\n\t\tScanner fileScan = new Scanner(new File(\"C:\\\\Users\\\\jason\\\\workspace\\\\proj1fa14\\\\bankdata.txt\"));\r\n\t\taccounts = new Account[10];\r\n\t\tnumAccounts = 0;\r\n\t\tCustomer customer;\r\n\t\tAccount account;\r\n\t\tfor(int i = 0; i<9; i++)\r\n\t\t{\r\n\t\t\tString first = fileScan.next();\r\n\t\t\t//System.out.println(first);\r\n\t\t\tString last = fileScan.next();\r\n\t\t\t//System.out.println(last);\r\n\t\t\tint age = fileScan.nextInt();\r\n\t\t\tString pN = fileScan.next();\r\n\t\t\tint ba = fileScan.nextInt();\r\n\t\t\tint ch = fileScan.nextInt();\r\n\t\t\tString accNum = fileScan.next();\r\n\t\t\tcustomer = new Customer(first,last,age,pN);\r\n\t\t\taccount = new Account(customer,ba,ch, accNum);\r\n\t\t\taccounts[i] = account;\r\n\t\t\tnumAccounts++;\r\n\t\t}\r\n\t\tfileScan.close();\r\n\t}", "private static void assignBankAccounts() {\n\t\tfor (Customer customer : customerList) {\n\t\t\t//make sure customer has no current accounts before adding serialized accounts\n\t\t\tcustomer.clearAccounts();\n\t\t\t\n\t\t\tfor (BankAccount account : accountList) {\n\t\t\t\tif (account.getCustomer().getUsername().equals(customer.getUsername())) {\n\t\t\t\t\tcustomer.addAccount(account);\n\t\t\t\t} else if (account.getJointCustomer() != null\n\t\t\t\t\t\t&& account.getJointCustomer().getUsername().equals(customer.getUsername()))\n\t\t\t\t\tcustomer.addAccount(account);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void apply(Map<Integer, Account> accounts) {\n Account account = accounts.get(accountNumber);\n if (account == null) {\n throw new ViolatedConstraintException(\n \"Tried to withdraw from non-existent account \" + accountNumber\n );\n }\n\n // Make sure the account is enabled.\n if (!account.isEnabled()) {\n throw new ViolatedConstraintException(\n \"Tried to withdraw from disabled account \" + accountNumber\n );\n }\n\n // Check that the account belongs to accountHolder.\n if (!account.getAccountHolder().equals(accountHolder)) {\n throw new ViolatedConstraintException(\n \"User \\\"\" + accountHolder + \"\\\" tried to perform transaction \" +\n \"on account \" + accountNumber +\n \" which belongs to user \\\"\" + account.getAccountHolder() + \"\\\"\"\n );\n }\n\n // Compute fee based on whether it was admin initiated or not\n // and whether they are a student or not.\n int fee = (adminInitiated) ? 0 : (\n (account.isStudent()) ? Constants.STUDENT_FEE : Constants.NORMAL_FEE\n );\n\n // Check that the final balance of the account after removing the funds\n // and fee is greater than zero.\n int finalBalance = account.getBalance() - amount - fee;\n if (finalBalance < 0) {\n throw new ViolatedConstraintException(\n \"Final balance should be >= 0, got \" + finalBalance\n );\n }\n\n // If the transaction isn't admin initiated, check that the final\n // withdrawal total is less than the withdrawal limit.\n int finalWithdrawalTotal = 0;\n\n if (!adminInitiated) {\n finalWithdrawalTotal = account.getWithdrawalTotal() + amount;\n\n if (finalWithdrawalTotal > Constants.WITHDRAWAL_LIMIT) {\n throw new ViolatedConstraintException(\n \"Final withdrawal total should be <= \" + Constants.WITHDRAWAL_LIMIT +\n \", got \" + finalWithdrawalTotal\n );\n }\n }\n\n // Remove the funds and fee from the account.\n account.setBalance(finalBalance);\n\n // If the transaction isn't admin initiated update withdrawal total\n // and increment the transaction count.\n if (!adminInitiated) {\n account.setWithdrawalTotal(finalWithdrawalTotal);\n account.incrementTransactionCount();\n }\n }", "public void updateAccounts(HashMap<String, Accounts> accounts){\n this.accounts = accounts;\n }", "private void setUserAccount() throws FileNotFoundException\r\n\t{\r\n\t\tint index = 0;\r\n\t\tFile inputFile = new File(\"UserAccount.txt\");\r\n\t\tScanner input = new Scanner(inputFile);\r\n\t\tif (!inputFile.exists())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The text file \\\"UserAccount.txt\\\" is missing\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\twhile(input.hasNextLine())\r\n\t\t{\r\n\t\t\tuserAccounts[0][index] = input.nextLine();\t\t\t//stores the username\r\n\t\t\tuserAccounts[1][index] = input.nextLine();\t\t\t//stores the password\r\n\t\t\tnumOfUsers++;\r\n\t\t\tindex++;\r\n\t\t}\r\n\t}", "void activateAllAccounts(File file) throws ServiceException;", "public void addAccount(Account acct){\n int i = numberOfAccounts++; // Each time we addAccount..\n accounts[i] = acct; //..we store it to the account array.\n \n }", "private static void testdeleteAndAddSavingsAccounts(String lineOfCreditId, List<SavingsAccount> accounts)\n\t\t\tthrows MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testdeleteAndAddSavingsAccounts for LoC=\" + lineOfCreditId);\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tString accountId = null;\n\t\tif (accounts == null || accounts.size() == 0) {\n\t\t\tSystem.out.println(\"WARNING: no Savings Account to remove for LoC=\" + lineOfCreditId);\n\t\t} else {\n\t\t\t// We have assigned accounts. Test remove and then test adding it back\n\t\t\t// Test removing Savings Account. Accounts requiring LoC cannot be removed, so try until can\n\t\t\tfor (SavingsAccount account : accounts) {\n\t\t\t\taccountId = account.getId();\n\t\t\t\ttry {\n\t\t\t\t\tboolean deleted = linesOfCreditService.deleteSavingsAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Removed Status=\" + deleted + \"\\tAccount with ID=\" + accountId\n\t\t\t\t\t\t\t+ \" deleted from LoC=\" + lineOfCreditId);\n\t\t\t\t\t;\n\t\t\t\t\t// Deleted OK, now add the same back\n\t\t\t\t\tSavingsAccount addedAccount = linesOfCreditService.addSavingsAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Added Savings Account with ID=\" + addedAccount.getId() + \" to LoC=\"\n\t\t\t\t\t\t\t+ lineOfCreditId);\n\t\t\t\t} catch (MambuApiException e) {\n\t\t\t\t\tSystem.out.println(\"Failed to remove account \" + accountId + \"\\tMessage=\" + e.getErrorMessage());\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}", "void activateAccount(File file, int accountID) throws ServiceException;", "private void loadATMAccounts(String atmAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(atmAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n String ssn = splitLine[1];\n Date dateOpened = dateFormat.parse(splitLine[2]);\n int pin = Integer.parseInt(splitLine[3]);\n Date lastDateUsed = dateFormat.parse(splitLine[4]);\n int dailyUsageCount = Integer.parseInt(splitLine[5]);\n String cardNumber = splitLine[6];\n\n ATM atmAccount = new ATM(accountId,\n ssn,\n dateOpened,\n pin,\n lastDateUsed,\n dailyUsageCount,\n cardNumber);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n atmAccount.setTransactions(accountTransactions);\n\n //add ATM accounts...\n accounts.add(atmAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void initAccounts() {\n ((GenesisBlock) DependencyManager.getBlockchain().getGenesisBlock()).getAccountBalances().forEach((key, value) -> {\n Account account = getAccount(key);\n account.addBalance(value);\n });\n DependencyManager.getBlockchain().getChain().getChain().forEach(this::parseBlock);\n }", "@Test\n public void testAddAccountFromFile() throws IOException {\n\n Set<Long> accountIdsSet = Sets.newHashSet();\n\n AwReporting.addAccountsFromFile(accountIdsSet, \"src/test/resources/util/account-for-test.txt\");\n\n Assert.assertEquals(4, accountIdsSet.size());\n\n Assert.assertTrue(accountIdsSet.contains(1235431234L));\n Assert.assertTrue(accountIdsSet.contains(3492871722L));\n Assert.assertTrue(accountIdsSet.contains(5731985421L));\n Assert.assertTrue(accountIdsSet.contains(3821071791L));\n Assert.assertFalse(accountIdsSet.contains(5471928097L));\n\n }", "void update(Account... accounts);", "private void parseTransactions(List<Transaction> transactions) {\n transactions.forEach(transaction -> {\n Account senderAccount = getAccount(transaction.getSender());\n Account receiverAccount = getAccount(transaction.getReceiver());\n senderAccount.addOutgoingTransaction(transaction);\n receiverAccount.addIncomingTransaction(transaction);\n });\n }", "int updateAccountInfo(Account account);", "public void run() {\n \n \t//overall loop which runs until all the transactions have been processed\n while(true) {\n \t\n \t//instantiate the local cachelist\n \tcacheList = new Cache[constants.numLetters];\n \tfor (int k = A; k <= Z; k++) {\n cacheList[k] = new Cache(accounts[k]);\n \n \t}\n \t\n \t//parsing the input file \n \tString[] commands = transaction.split(\";\");\n \tfor (int i = 0; i < commands.length; i++) {\n\t \t \n\t \tString[] words = commands[i].trim().split(\"\\\\s\");\n\t if (words.length < 3) throw new InvalidTransactionError();\n\t \n\t \n\t //sets the read lock for the cache of the account.\n\t Cache lhs = parseAccount(words[0]);\n\t \n\t if (!words[1].equals(\"=\"))\n\t throw new InvalidTransactionError();\n\t \n\t int rhs = parseAccountOrNum(words[2]);\n\t for (int j = 3; j < words.length; j+=2) {\n\t if (words[j].equals(\"+\"))\n\t rhs += parseAccountOrNum(words[j+1]);\n\t else if (words[j].equals(\"-\"))\n\t rhs -= parseAccountOrNum(words[j+1]);\n\t else\n\t throw new InvalidTransactionError();\n\t }\n\t //sets the write lock for the account in the cache\n\t lhs.writeCache(rhs);\n\t \n\t }\n \t\n\t //for loop \n \t/*int i = 0;\n\t \n\t try {\n\t \tfor (i = A; i <= Z; i++) {\n\t \t\tcacheList[i].openCache();\n\t \t}\n\t\t\t} \n\t catch (TransactionAbortException e) {\n\t \tfor (int j = A; j < i; j++) {\n\t \t\tcacheList[j].closeCache();\n\t\t\t\t}\n\t \tSystem.out.println(\"open abort: \" + transaction);\n\t\t\t\tcontinue;\n\t\t\t}\n\t \n\t //try and verify do the same as the open locks \n\t try {\n\t \tfor (i = A; i <= Z; i++) {\n\t \t\tcacheList[i].verify();\n\t \t}\n\t\t\t}\n\t \n\t catch (TransactionAbortException e) {\n\t \tfor (int j = A; j < i; j++) {\n\t \t\tcacheList[j].closeCache();\n\t\t\t\t}\n\t \tSystem.out.println(\"verify abort: \" + transaction);\n\t\t\t\tcontinue;\n\t\t\t}\n\t \n\t //loops to commit\n\t for (int k = A; k <= Z; k ++) {\n \t\tcacheList[k].commit();\n \t}\n\t \n\t System.out.println(\"commit: \" + transaction);\n\t \n\t //loops to close\n\t for (int k = A; k <= Z; k ++) {\n\t \tcacheList[k].closeCache();\n \t}\n\t \n\t break;*/\n\t \n \t//Code needed for concurrency programming, Loops over the entire cache list 4 different time\n \t//and in order first attempts to open each caches locks, and then verifies all caches, then commits\n \t//the caches, and finally closes all the locks for the caches. If it any point there is an exception\n \t//is thrown then checks will end and all the accounts will be closed and the loop will restart from the top\n \t//restart the transaction\n \ttry {\n \t\tfor (int i = A; i <= Z; i++) {\n\t \t\tcacheList[i].openCache();\n\t \t}\n \t\t\n \t\tfor (int i = A; i <= Z; i++) {\n\t \t\tcacheList[i].verify();\n\t \t}\n \t\t\n \t\tfor (int k = A; k <= Z; k ++) {\n \t\tcacheList[k].commit();\n \t}\n \t\t\n \t\tSystem.out.println(\"commit: \" + transaction);\n \t\t\n \t\tfor (int k = A; k <= Z; k ++) {\n\t\t \tcacheList[k].closeCache();\n\t \t}\n \t\t\n \t\tbreak;\n \t\t\n\t\t\t} catch (TransactionAbortException e) {\n\t\t\t\tfor (int k = A; k <= Z; k ++) {\n\t\t \tcacheList[k].closeCache();\n\t \t}\n\t\t\t\tcontinue;\n\t\t\t}\n \t\n }//while loop\n \n }", "void updateAccount(Account account);", "public void setAccountList(List<Account> accountList) {\r\n this.accountList = accountList;\r\n }", "@SuppressWarnings(\"unchecked\")\n private void saveAccounts() {\n JSONObject output = new JSONObject();\n JSONArray allaccounts = new JSONArray();\n for (Account account: accounts) {\n if (account.getName().equals(pickedAccount.getName())) {\n allaccounts.add(pickedAccount.toJsonObject());\n } else {\n allaccounts.add(account.toJsonObject());\n }\n }\n output.put(\"accounts\", allaccounts);\n\n try {\n FileWriter file = new FileWriter(\"./data/account.json\");\n file.write(output.toJSONString());\n file.flush();\n file.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void loadCDAccounts(String cdAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(cdAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parse out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date startDate = dateFormat.parse(splitLine[5]);\n Date endDate = dateFormat.parse(splitLine[6]);\n\n CD cdAccount = new CD(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n startDate,\n endDate);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n cdAccount.setTransactions(accountTransactions);\n\n //add CD Accounts...\n accounts.add(cdAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void createAccounts(){\r\n for(int i = 0; i < accountInTotal; i++){\r\n try {\r\n Account tempAccount = new Account(startingBonds);\r\n theAccounts.add(tempAccount);\r\n } catch(Exception e){\r\n System.err.println(\"Error\");\r\n }\r\n }\r\n }", "void updateAccount(int id, double accountBalance, String account) {\n // Update only the required keys\n sql = \"UPDATE CashiiDB2 \" + \"SET \" + account + \" ='\" + accountBalance + \"' WHERE AccountNum in ('\" + id + \"')\";\n try {\n st.executeUpdate(sql);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "void openAccount(String name, String address, String cnic, int contact_no, int age, String email_address,\r\n int noOfAccounts, String incomeSource, String AccountType, String securityquestion) {\n\r\n if (bankPolicy.isEligibilityCriteriaFulfilled(age)) {// is customer eligible\r\n System.out.println(\"Criteria fulfilled\");\r\n\r\n boolean newCustomer = isItANewCustomer(cnic);\r\n\r\n if (newCustomer) {// is customer new\r\n Customer C = new Customer(Integer.toString(customers.size() + 1), cnic, name, address, contact_no,\r\n email_address, incomeSource, securityquestion);\r\n // Print and ASK FOR SECURITY QUESTION\r\n System.out.println(\"Its a new Customer\");\r\n System.out.println(\"Password: \" + C.credentials.password);\r\n // add customer to arraylist\r\n customers.add(C);\r\n // save new customer to database\r\n record.SaveCustomer(C);\r\n // save customer credentials to database\r\n record.SaveCredentials(C.credentials, C.customerID);\r\n\r\n }\r\n int index = -1;\r\n for (int i = 0; i < customers.size(); i++) {\r\n if (customers.get(i).CNIC.equals(cnic))\r\n index = i;\r\n }\r\n\r\n Account A = new Account(String.valueOf(accounts.size() + 1), getDateFormat(), AccountType,\r\n \"Pending\", customers.get(index).customerID);\r\n // add account to customer\r\n accounts.add(A);\r\n customers.get(index).customerAccount.add(A);\r\n // save account to database\r\n record.SaveAccount(A);\r\n }\r\n\r\n }", "public void writeToFile(Account account) {\n try {\n FileWriter fileWriter = new FileWriter(fileName);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.write(\"\");\n writeInit(account, bufferedWriter);\n writeBaseSavings(account,bufferedWriter);\n\n for (Income i : account.getIncomeListTotal()) {\n writeIncome(i, bufferedWriter);\n }\n\n for (Expenditure exp : account.getExpListTotal()) {\n writeExp(exp, bufferedWriter);\n }\n\n for (Goal g : account.getShortTermGoals()) {\n writeGoal(g, bufferedWriter);\n }\n\n for (Instalment ins : account.getInstalments()) {\n writeInstalment(ins, bufferedWriter);\n }\n\n for (Loan l : account.getLoans()) {\n writeLoan(l,bufferedWriter);\n }\n\n for (BankTracker b : account.getBankTrackerList()) {\n writeBank(b,bufferedWriter);\n }\n\n bufferedWriter.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void transferMoney(int customerAccountId, int accountId) throws SQLException {\n // check if the customer has this account\n boolean customerOwnsAccount = false;\n for (int i = 0; i < this.currentCustomer.getAccounts().size(); i++) {\n if (customerAccountId == this.currentCustomer.getAccounts().get(i).getId()) {\n customerOwnsAccount = true;\n break;\n }\n }\n // it is safe to proceed since the customer accounts have been authenticated\n if (customerOwnsAccount) {\n Account customerAccount = DatabaseSelectHelper.getAccountDetails(customerAccountId);\n // try and catch for valid input (int) expected\n try {\n System.out.println(\"Enter amount you wish to transfer:\");\n // take user input as a big decimal\n BigDecimal bigAmount = new BigDecimal(br.readLine());\n if (bigAmount.compareTo(customerAccount.getBalance()) <= 0) {\n // try to update accounts\n try {\n // update the account which received money in database\n DatabaseUpdateHelper.updateAccountBalance(\n bigAmount.add(DatabaseSelectHelper.getBalance(accountId)), accountId);\n // update account which transfered money in database\n DatabaseUpdateHelper.updateAccountBalance(\n customerAccount.getBalance().subtract(bigAmount), customerAccountId);\n // update the customer object for printing reasons for other options\n this.currentCustomer.updateAccounts();\n // Explicitly tell user money is transfered\n System.out.println(\"you have successfully transfered money to account \" + accountId);\n \n } catch (Exception e) {\n System.out.println(\"The account ID you wish to transfer money to does not exist\");\n }\n // error printing\n } else {\n System.out.println(\"This account does not have enough money to send this amount\");\n }\n \n } catch (Exception e) {\n System.out.println(\"Invalid amount\");\n }\n // error printing\n } else {\n System.out.println(\"You do not have access to this account\");\n }\n \n }", "public static ATMAccount LogIn() throws FileNotFoundException, IOException, InterruptedException {\r\n\t\tATMAccount account = null;\r\n\t\tSystem.out.println(\"Enter your account ID:\");\r\n\t\tint intaccID;\r\n\t\tintaccID = userInput.nextInt();\r\n\t\tString accID = intaccID + \"\";\r\n\t\tString[] dataGrabbed = new String[4];\r\n\t\tFile thisFile = new File(\"accountsdb.txt\");\r\n\t\taccountsdbReader = new Scanner(thisFile);\r\n\r\n\t\tif (thisFile.exists()) {\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\tString accountIDHolder = accountsdbReader.findInLine(accID);\r\n\t\t\t\tif (accountIDHolder == null) {\r\n\r\n\t\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t\t} else if (accountIDHolder.equals(accID)) {\r\n\t\t\t\t\tfor (int i = 1; i < dataGrabbed.length; i++) {\r\n\t\t\t\t\t\tif (accountsdbReader.hasNext())\r\n\t\t\t\t\t\t\tdataGrabbed[i] = accountsdbReader.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if ((!(accountsdbReader.hasNextLine()) && account == null)) {\r\n\t\t\t\t\tSystem.out.println(\"This account does not exist!\");\r\n\t\t\t\t\tATMStartScreen();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdataGrabbed[0] = accID;\r\n\r\n\t\t\t}\r\n\t\t\tint validationLoop = 3;\r\n\t\t\tString pinValidity;\r\n\t\t\tuserInput.nextLine();\r\n\t\t\tdo {\r\n\t\t\t\tSystem.out.println(\"Please enter your 4 digit pin in order to access your account:\");\r\n\t\t\t\tpinValidity = userInput.nextLine();\r\n\t\t\t\tif (pinValidity.equals(dataGrabbed[3])) {\r\n\t\t\t\t\tSystem.out.println(\"PIN Confirmed!\");\r\n\t\t\t\t\tSystem.out.println(\"Displaying account options...\");\r\n\t\t\t\t\taccount = new ATMAccount(Integer.parseInt(dataGrabbed[0]), dataGrabbed[1],\r\n\t\t\t\t\t\t\tInteger.parseInt(dataGrabbed[3]), Double.parseDouble(dataGrabbed[2]));\r\n\r\n\t\t\t\t\treturn account;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"PIN Declined!\");\r\n\t\t\t\t\tSystem.out.println(\"You have \" + validationLoop + \" attempts remaining.\");\r\n\r\n\t\t\t\t}\r\n\t\t\t\tvalidationLoop--;\r\n\t\t\t} while (!pinValidity.equals(dataGrabbed[3]) && validationLoop != -1);\r\n\t\t\tSystem.out.println(\"You have exhausted all of your attempts you will now return to the main menu.\");\r\n\t\t} else {\r\n\t\t\t// Return to StartScreen before being able to return null account\r\n\t\t\tSystem.out.println(\"File was not found!\");\r\n\t\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\t\tATMStartScreen();\r\n\t\t}\r\n\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\tATMStartScreen();\r\n\t\treturn null;\r\n\r\n\t}", "public BankUser(String name, String id, String pin, Account[] accounts){\n \tif (bankUsers.size() > 0){\n\t\t\tfor (BankUser checkUser: bankUsers){\n\t\t\t\tif (id.equals(checkUser.id)){\n\t\t\t\t\tthrow new java.lang.IllegalArgumentException(\"Id already in use\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \tthis.name = name;\n \tthis.pin = pin;\n \tthis.id = id;\n \tthis.accounts = accounts;\n \tbankUsers.add(this);\n }", "public static void main(String[] args) {\n\t\tint accountInput = -1;\r\n\t\twhile(accountInput != 5){\r\n\t\t\tSystem.out.println(\"\\nWelcome to the bank.\\n 1) Existing Account Holder\\n 2) Open a New Account\\nWhat would you like to do? \");\r\n\t\t\tScanner s = new Scanner(System.in);\r\n\t\t\tint mainInput = s.nextInt();\r\n\t\t\tif(mainInput == 1){\r\n\t\t\t\tFileWriter fw = null;\r\n\t\t\t\tPrintWriter pw = null;\r\n\t\t\t\tFileReader fr = null;\r\n\t\t\t\tBufferedReader br = null;\r\n\t\t\t\tboolean incorrectLogin = true;\r\n\t\t\t\tString username = null;\r\n\t\t\t\tString password = null;\r\n\t\t\t\tString line = null;\r\n\t\t\t\tCheckingAccount C;\r\n\t\t\t\tCheckingAccount C1;\r\n\t\t\t\tSavingsAccount S;\r\n\t\t\t\tSavingsAccount S1;\r\n\t\t\t\tboolean quit = true;\r\n\t\t\t\tboolean filenotfound = false;\r\n\t\t\t\tboolean quitstate = false;\r\n\t\t\t\twhile(incorrectLogin){\r\n\t\t\t\t\tSystem.out.println(\"Username: \");\r\n\t\t\t\t\tusername = s.next();\r\n\t\t\t\t\tif(quitstate){\r\n\t\t\t\t\t\tif(username.equals(\"q\")) break;\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tquitstate = false;\r\n\t\t\t\t\t\t\tquit = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tfr = new FileReader(\"./Users.txt\");\r\n\t\t\t\t\t\tbr = new BufferedReader(fr);\r\n\t\t\t\t\t\tline = br.readLine();\r\n\t\t\t\t\t\twhile(line != null){\r\n\t\t\t\t\t\t\tString[] arr = line.split(\" \");\r\n\t\t\t\t\t\t\tif(username.equals(arr[0])){\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Password: \");\r\n\t\t\t\t\t\t\t\tpassword = s.next();\r\n\t\t\t\t\t\t\t\tif(password.equals(arr[1])){\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Welcome to your accounts, \" + username + \".\");\r\n\t\t\t\t\t\t\t\t\tquit = false;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tline = br.readLine();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(quit){\r\n\t\t\t\t\t\t\tincorrectLogin = true;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Iím sorry, but that username and password does not match any at our bank. Please try again (or enter \\'q\\' to return to the main menu).\");\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tquitstate = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse incorrectLogin = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch(FileNotFoundException e){\r\n\t\t\t\t\t\tSystem.out.println(\"Iím sorry, but that username and password does not match any at our bank. Please try again (or enter \\'q\\' to return to the main menu).\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfilenotfound = true;\r\n\t\t\t\t\t\tincorrectLogin = false;\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tfw = new FileWriter(\"./Users.txt\");\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tpw = new PrintWriter(fw);\r\n\t\t\t\t\t\t\r\n\t\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(!quit){\r\n\t\t\t\t\tString [] arr = line.split(\" \");\r\n\t\t\t\t\tC = new CheckingAccount(Double.parseDouble(arr[2]));\r\n\t\t\t\t\tC1 = C;\r\n\t\t\t\t\tif(C.getBalance() + Double.parseDouble(arr[3]) < 1000 ){\r\n\t\t\t\t\t\tS = new Basic(Double.parseDouble(arr[3]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(C.getBalance() + Double.parseDouble(arr[3]) < 10000 ){\r\n\t\t\t\t\t\tS = new Premium(Double.parseDouble(arr[3]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tS = new Deluxe(Double.parseDouble(arr[3]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tS1 = S;\r\n\t\t\t\t\twhile(accountInput!=5){\r\n\t\t\t\t\t\tSystem.out.println(\"\\n 1) View Account Information\\n 2) Make a Deposit\\n 3) Make a Withdrawal\\n 4) Determine Balance in x Years\\n 5) Logout \\nWhat would you like to do? \");\r\n\t\t\t\t\t\taccountInput = s.nextInt();\r\n\t\t\t\t\t\tif(accountInput == 1){\r\n\t\t\t\t\t\t\tSystem.out.println(\"You have a Checking account with a balance of $ \" + C.getBalance());\r\n\t\t\t\t\t\t\tSystem.out.println(\"You have a \" + S.getAccountType() + \" account with a balance of $ \" + S.getBalance());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(accountInput == 2){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Here are the accounts you have: \\n 1) Checking\\n 2) \" + S.getAccountType() + \"\\nInto which account would you like to make a deposit?\");\r\n\t\t\t\t\t\t\tint depIn = s.nextInt();\r\n\t\t\t\t\t\t\tif(depIn == 1){\r\n\t\t\t\t\t\t\t\tboolean Negative = true;\r\n\t\t\t\t\t\t\t\tdouble checkingsDeposit = 0;\r\n\t\t\t\t\t\t\t\tboolean tryagain = false;\r\n\t\t\t\t\t\t\t\twhile(Negative){\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"How much to deposit into your checking account? \");\r\n\t\t\t\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\t\t\t\tcheckingsDeposit = s.nextDouble();\t\r\n\t\t\t\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\t\t\t\tif(checkingsDeposit > 0) Negative = false;\r\n\t\t\t\t\t\t\t\t\t\telse System.out.println(\"You are not allowed to deposit a negative amount.\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"$\" + checkingsDeposit + \" has been deposited into your checking account\");\r\n\t\t\t\t\t\t\t\tC1 = new CheckingAccount(C.getBalance() + checkingsDeposit);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(depIn == 2){\r\n\t\t\t\t\t\t\t\tboolean Negative = true;\r\n\t\t\t\t\t\t\t\tdouble savingsDeposit = 0;\r\n\t\t\t\t\t\t\t\tboolean tryagain = false;\r\n\t\t\t\t\t\t\t\twhile(Negative){\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"How much to deposit into your \" + S.getAccountType() + \" account? \");\r\n\t\t\t\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\t\t\t\tsavingsDeposit = s.nextDouble();\t\r\n\t\t\t\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\t\t\t\tif(savingsDeposit > 0) Negative = false;\r\n\t\t\t\t\t\t\t\t\t\telse System.out.println(\"You are not allowed to deposit a negative amount.\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"$\" + savingsDeposit + \" has been deposited into your \" + S.getAccountType() + \" account\");\r\n\t\t\t\t\t\t\t\tS1 = new SavingsAccount(S.getBalance() + savingsDeposit);\r\n\t\t\t\t\t\t\t\tif(S1.getBalance() + C1.getBalance() < 1000){\r\n\t\t\t\t\t\t\t\t\tS1 = new Basic(S1.getBalance());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(S1.getBalance() + C1.getBalance() < 10000){\r\n\t\t\t\t\t\t\t\t\tS1 = new Premium(S1.getBalance());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\tS1 = new Deluxe(S1.getBalance());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(accountInput == 3){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Here are the accounts you have: \\n 1) Checking\\n 2) \" + S.getAccountType() + \"\\nFrom which account would you like to withdraw?\");\r\n\t\t\t\t\t\t\tint withOut = s.nextInt();\r\n\t\t\t\t\t\t\tif(withOut == 1){\r\n\t\t\t\t\t\t\t\tboolean Negative = true;\r\n\t\t\t\t\t\t\t\tboolean TooMuch = true;\r\n\t\t\t\t\t\t\t\tdouble checkingsWithdrawal = 0;\r\n\t\t\t\t\t\t\t\tboolean tryagain = false;\r\n\t\t\t\t\t\t\t\twhile(Negative||TooMuch){\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"How much to withdraw? \");\r\n\t\t\t\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\t\t\t\tcheckingsWithdrawal= s.nextDouble();\t\r\n\t\t\t\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\t\t\t\tif(checkingsWithdrawal > C.getBalance()){\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = false;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = true;\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"You do not have $\" + checkingsWithdrawal + \" in your checking account.\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse if(checkingsWithdrawal > 0){\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = false;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = false;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"You are not allowed to withdrawal a negative amount.\");\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = true;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = false;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"$\" + checkingsWithdrawal + \" withdrawn from your checking account\");\r\n\t\t\t\t\t\t\t\tC1 = new CheckingAccount(C.getBalance() - checkingsWithdrawal);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(withOut == 2){\r\n\t\t\t\t\t\t\t\tboolean Negative = true;\r\n\t\t\t\t\t\t\t\tboolean TooMuch = true;\r\n\t\t\t\t\t\t\t\tdouble savingsWithdrawal = 0;\r\n\t\t\t\t\t\t\t\tboolean tryagain = false;\r\n\t\t\t\t\t\t\t\twhile(Negative||TooMuch){\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"How much to withdraw? \");\r\n\t\t\t\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\t\t\t\tsavingsWithdrawal= s.nextDouble();\t\r\n\t\t\t\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\t\t\t\tif(savingsWithdrawal > C.getBalance()){\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = false;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = true;\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"You do not have $\" + savingsWithdrawal + \" in your \" + S.getAccountType() + \" account.\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse if(savingsWithdrawal > 0){\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = false;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = false;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"You are not allowed to withdrawal a negative amount.\");\r\n\t\t\t\t\t\t\t\t\t\t\tNegative = true;\r\n\t\t\t\t\t\t\t\t\t\t\tTooMuch = false;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"$\" + savingsWithdrawal + \" withdrawn from your \" + S.getAccountType() + \" account.\");\r\n\t\t\t\t\t\t\t\tS1 = new SavingsAccount(S.getBalance() - savingsWithdrawal);\r\n\t\t\t\t\t\t\t\tif(S1.getBalance() + C1.getBalance() < 1000){\r\n\t\t\t\t\t\t\t\t\tS1 = new Basic(S1.getBalance());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(S1.getBalance() + C1.getBalance() < 10000){\r\n\t\t\t\t\t\t\t\t\tS1 = new Premium(S1.getBalance());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\tS1 = new Deluxe(S1.getBalance());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(accountInput == 4){\r\n\t\t\t\t\t\t\tSystem.out.println(\"In how many years? \");\r\n\t\t\t\t\t\t\tint years = s.nextInt();\r\n\t\t\t\t\t\t\tSystem.out.println(\"Your \" + S.getAccountType() + \" account will have the following: \");\r\n\t\t\t\t\t\t\tSystem.out.println(\"Year Amount Interest \");\r\n\t\t\t\t\t\t\tSystem.out.println(\"---- ------ --------\");\r\n\t\t\t\t\t\t\tfor(int i = 0; i < years; i ++){\r\n\t\t\t\t\t\t\t\tSystem.out.print(i + \" $\");\r\n\t\t\t\t\t\t\t\tSystem.out.printf(\"%.2f\", S1.getBalanceAfterNumYears(i));\r\n\t\t\t\t\t\t\t\tSystem.out.print(\" $\");\r\n\t\t\t\t\t\t\t\tSystem.out.printf(\"%.2f\", S1.getBalanceAfterNumYears(i+1)-S1.getBalanceAfterNumYears(i));\r\n\t\t\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tSystem.out.print(years + \" $\");\r\n\t\t\t\t\t\t\tSystem.out.printf(\"%.2f\", S1.getBalanceAfterNumYears(years));\r\n\t\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(accountInput == 5){\r\n\t\t\t\t\t\t\tSystem.out.println(\"Thank you for coming to the bank!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(accountInput == 2 || accountInput == 3){\r\n\t\t\t\t\t\t\tline = null;\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tfr = new FileReader(\"./Users.txt\");\r\n\t\t\t\t\t\t\t\tbr = new BufferedReader(fr);\r\n\t\t\t\t\t\t\t\tString totalText = \"\";\r\n\t\t\t\t\t\t\t\twhile((line = br.readLine()) != null){\r\n\t\t\t\t\t\t\t\t\ttotalText += line + '\\n';\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tString text = username + \" \" + password + \" \" + C.getBalance() + \" \" + S.getBalance();\r\n\t\t\t\t\t\t\t\tString text1 = username + \" \" + password + \" \" + C1.getBalance() + \" \" + S1.getBalance();\r\n\t\t\t\t\t\t\t\ttotalText = totalText.replaceAll(text,text1);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tfw = new FileWriter(\"./Users.txt\");\r\n\t\t\t\t\t\t\t\tpw = new PrintWriter(fw);\r\n\t\t\t\t\t\t\t\tpw.write(totalText);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcatch(FileNotFoundException e){\r\n\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tfw.close();\r\n\t\t\t\t\t\t\t\tbr.close();\r\n\t\t\t\t\t\t\t\tfr.close();\r\n\t\t\t\t\t\t\t\tpw.flush();\r\n\t\t\t\t\t\t\t\tpw.close();\r\n\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(mainInput == 2){\r\n\t\t\t\tFileWriter fw = null;\r\n\t\t\t\tPrintWriter pw = null;\r\n\t\t\t\tFileReader fr = null;\r\n\t\t\t\tBufferedReader br = null;\r\n\t\t\t\tboolean nameTaken = true;\r\n\t\t\t\tString username = null;\r\n\t\t\t\tboolean quit = false;\r\n\t\t\t\tboolean filenotfound = false;\r\n\t\t\t\tboolean quitstate = false;\r\n\t\t\t\twhile(nameTaken){\r\n\t\t\t\t\tSystem.out.println(\"Username: \");\r\n\t\t\t\t\tusername = s.next();\r\n\t\t\t\t\tif(quitstate){\r\n\t\t\t\t\t\tif(username.equals(\"q\")) break;\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tquitstate = false;\r\n\t\t\t\t\t\t\tquit = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tfr = new FileReader(\"./Users.txt\");\r\n\t\t\t\t\t\tbr = new BufferedReader(fr);\r\n\t\t\t\t\t\tString line = br.readLine();\r\n\t\t\t\t\t\twhile(line != null){\r\n\t\t\t\t\t\t\tString[] arr = line.split(\" \");\r\n\t\t\t\t\t\t\tif(username.equals(arr[0])){\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Iím sorry, but the username \\\" \" + username + \"\\\" is already associated with an account. Please try again (or enter \\'q\\' to return to the main menu).\");\r\n\t\t\t\t\t\t\t\tquit = true;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tline = br.readLine();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(quit){\r\n\t\t\t\t\t\t\tnameTaken = true;\r\n\t\t\t\t\t\t\tquitstate = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse nameTaken = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch(FileNotFoundException e){\r\n\t\t\t\t\t\tfilenotfound = true;\r\n\t\t\t\t\t\tnameTaken = false;\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tfw = new FileWriter(\"./Users.txt\");\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tpw = new PrintWriter(fw);\r\n\t\t\t\t\t\t\r\n\t\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(!quit){\r\n\t\t\t\t\tif(!filenotfound){\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tfw = new FileWriter(\"./Users.txt\", true);\r\n\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tpw = new PrintWriter(fw);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"Great, that username is not in use!\");\r\n\t\t\t\t\tSystem.out.println(\"Password: \");\r\n\t\t\t\t\tString password = s.next();\r\n\t\t\t\t\tpw.print(username + \" \" + password + \" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\tboolean Negative = true;\r\n\t\t\t\t\tdouble checkingsDeposit = 0;\r\n\t\t\t\t\tboolean tryagain = false;\r\n\t\t\t\t\twhile(Negative){\r\n\t\t\t\t\t\tSystem.out.println(\"How much would you like to deposit in checking? \");\r\n\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\tcheckingsDeposit = s.nextDouble();\t\r\n\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\tif(checkingsDeposit > 0) Negative = false;\r\n\t\t\t\t\t\t\telse System.out.println(\"You are not allowed to deposit a negative amount.\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tCheckingAccount C = new CheckingAccount(checkingsDeposit);\r\n\t\t\t\t\t\r\n\t\t\t\t\tNegative = true;\r\n\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\tdouble savingsDeposit = 0;\r\n\t\t\t\t\twhile(Negative){\r\n\t\t\t\t\t\tSystem.out.println(\"How much would you like to deposit in savings? \");\r\n\t\t\t\t\t\tif(s.hasNextDouble()){\r\n\t\t\t\t\t\t\tsavingsDeposit = s.nextDouble();\r\n\t\t\t\t\t\t\ttryagain = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tSystem.out.println(\"\\\"\" + s.next() + \"\\\" is not a valid amount.\");\r\n\t\t\t\t\t\t\ttryagain = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(!tryagain){\r\n\t\t\t\t\t\t\tif(savingsDeposit > 0) Negative = false;\r\n\t\t\t\t\t\t\telse System.out.println(\"You are not allowed to deposit a negative amount.\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tpw.println(checkingsDeposit + \" \" + savingsDeposit + \" \");\r\n\t\t\t\t\tif(savingsDeposit + C.getBalance() < 1000.00){\r\n\t\t\t\t\t\tBasic S = new Basic(savingsDeposit);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(savingsDeposit + C.getBalance() < 10000.00){\r\n\t\t\t\t\t\tPremium S = new Premium(savingsDeposit);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tDeluxe S = new Deluxe(savingsDeposit);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tfw.close();\r\n\t\t\t\t\t\tbr.close();\r\n\t\t\t\t\t\tfr.close();\r\n\t\t\t\t\t\tpw.flush();\r\n\t\t\t\t\t\tpw.close();\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Bank(String name, int accs){\n bankAccounts = new Account[accs];\n bankName = name;\n maxAccounts = accs;\n currAccounts = 0; //empty\n }", "void updateAccount();", "public void\tsaveAccounts() throws IOException;", "@Override\n\tpublic ArrayList<User> reInitializeUsers(ArrayList<Account> accounts) {\n\t\treturn null;\n\n\t}", "private static void testdeleteAndAddLoanAccounts(String lineOfCreditId, List<LoanAccount> accounts)\n\t\t\tthrows MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testdeleteAndAddLoanAccounts for LoC=\" + lineOfCreditId);\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tString accountId = null;\n\t\tif (accounts == null || accounts.size() == 0) {\n\t\t\tSystem.out.println(\"WARNING: no Loan Account to remove for LoC=\" + lineOfCreditId);\n\t\t} else {\n\t\t\t// We have assigned accounts. Test remove and then test adding it back\n\t\t\t// Test removing Loan Account. Accounts requiring LoC cannot be removed, so try until can\n\t\t\tfor (LoanAccount account : accounts) {\n\t\t\t\taccountId = account.getId();\n\t\t\t\ttry {\n\t\t\t\t\tboolean deleted = linesOfCreditService.deleteLoanAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Removed Status=\" + deleted + \"\\tAccount with ID=\" + accountId\n\t\t\t\t\t\t\t+ \" deleted from LoC=\" + lineOfCreditId);\n\t\t\t\t\t// Deleted OK, now add the same back\n\t\t\t\t\tLoanAccount addedLoan = linesOfCreditService.addLoanAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Added Loan Account with ID=\" + addedLoan.getId() + \" to LoC=\" + lineOfCreditId);\n\t\t\t\t} catch (MambuApiException e) {\n\t\t\t\t\tSystem.out.println(\"Failed to remove account \" + accountId + \"\\tMessage=\" + e.getErrorMessage());\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}", "void blockedAccount(File file, int accountID) throws ServiceException;", "void blockedAllAccounts(File file) throws ServiceException;", "public BankDataBase()\n {\n accounts = new Account[ 2 ];\n accounts[ 0 ] = new Account( 12345, 54321, 1000.0, 1200.0 );\n accounts[ 1 ] = new Account( 98765, 56789, 200.0, 200.0 );\n }", "public static void createChecking(ArrayList<Account> accounts, int id, double balance, double interestRate) throws IOException{\n CheckingAccount cAccount = new CheckingAccount(id, balance, interestRate);\r\n \r\n //add the account just created to array\r\n accounts.add(cAccount);\r\n System.out.println(\"Your account has been created. Information of your new account is below. \\n\");\r\n \r\n //get the current index of the id and print out the info\r\n int idIndex = idIndex(accounts, cAccount.getID());\r\n System.out.println(\"Account type: Checking\");\r\n accounts.get(idIndex).displayAccountInformation();\r\n }", "public savingsAccount(){\n balance = 0;\n String[] sTransactions = new String[1000];\n savingTransactions = sTransactions;\n }", "private void loadTermLoanAccounts(String termLoanAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(termLoanAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n char loanType = splitLine[10].charAt(0);\n TermLoanType termLoanType;\n\n //this determines whether the loan is long or short.\n if (loanType == 'S')\n {\n termLoanType = TermLoanType.SHORT;\n }\n else\n {\n termLoanType = TermLoanType.LONG;\n }\n\n int years = Integer.parseInt(splitLine[11]);\n\n TermLoan termLoanAccount = new TermLoan(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n termLoanType,\n years);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n termLoanAccount.setTransactions(accountTransactions);\n\n //adds term loan accounts\n accounts.add(termLoanAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public void populateAccountsTable() {\n Account account1 = createAccountFromFile(\"DummyAccount1.json\");\n Account account2 = createAccountFromFile(\"DummyAccount2.json\");\n\n // Account 1 will have both contacts associated to it\n account1.setContactIds(Set.of(contacts.get(0).getUid(), contacts.get(1).getUid()));\n\n // Account 2 will only have 1 contact associated to it\n account2.setContactIds(Set.of(contacts.get(0).getUid()));\n\n accountService.postAccount(account1);\n accountService.postAccount(account2);\n }", "public Bank() {\n accounts = new Account[2];\n numOfAccounts = 0;\n }", "public void makeDposit(String accountName, Transaction deposit){\n for (int i=0; i<=accounts.size();i++)\n {\n if (accounts.get(i).name.equals(accountName))\n {\n// found = true;\n this.accounts.get(i).makeTransaction(deposit);\n return;\n }\n }\n System.out.println(\"account not found\");\n }", "public static void ProcessTransaction(){\r\n\t Iterator<String> iter = masterEventsFile.iterator();\r\n\t //this uses the deletePastEvents method to delete all the past events in the masterEventsFile\r\n\t while (iter.hasNext()){\r\n\t\t String e = iter.next();\r\n\t \r\n\t //for (String e : masterEventsFile){\r\n\t\t Event CheckEvent = new Event(e);\r\n\t\t boolean pastDate = deletePastEvents(CheckEvent);\r\n\t\t if (!pastDate){\r\n\t\t\t break;\r\n\t\t } \r\n\t }\r\n\t //makes each line of the masterEventFile into an Event object for easier processing\r\n\t for (String e : masterEventsFile){\r\n\t\t Event event = new Event(e);\r\n\t\t alteredEventsFile.add(event);\r\n\t }\r\n\t //makes each line into a Transaction object for easier processing\r\n\t for (String t: mergedEventTransactionFile){\r\n\t\t Transaction transaction= new Transaction(t);\r\n\t\t allTransactions.add(transaction);\r\n\t }\r\n\t \r\n\t //Iterates through each Transaction processing them one at a time based on their id\r\n\t for (Transaction t: allTransactions){\r\n\t\t //process sell, return, create, add, delete,end\r\n\t\t if(t.id == 00){\r\n\t\t\t break;\r\n\t\t }\r\n\t\t Event changeEvent = findEvent(t.name);\r\n\t\t if (changeEvent != null){\r\n\t\t\t if (t.id == 01){\t\t\t\t\t\t//sell transaction\r\n\t\t\t\t if((changeEvent.ticket -t.ticket)<0){\r\n\t\t\t\t\t System.out.println(\"Sell transaction could not be performed, not enough tickets\"); //Contraints: no event should ever have a negative nmber of ticekts\r\n\t\t\t\t }else{\r\n\t\t\t\t\t changeEvent.ticket = changeEvent.ticket -t.ticket;\r\n\t\t\t\t }\r\n\t\t\t }else if (t.id == 02){\t\t\t\t//return transaction\r\n\t\t\t\t changeEvent.ticket =changeEvent.ticket + t.ticket;\r\n\t\t\t }else if (t.id == 04){\t\t\t\t//add transaction\r\n\t\t\t\t changeEvent.ticket += t.ticket;\t\r\n\t\t\t }else if (t.id == 05){\t\t\t\t//delete transaction\r\n\t\t\t\t changeEvent = null;\r\n\t\t\t }\r\n\t\t }else{\t\t\t\t\t\t\t\t//constraint: a new event must have a name different from all existing events\r\n\t\t\t if(t.id == 03){\t\t\t\t\t\t//create transaction\r\n\t\t\t\t Event newEvent = new Event (t.getEventLine());\r\n\t\t\t\t InsertEvent(newEvent);\t\t//constraint: <asterEventFile must be kept in ascending order by date\r\n\t\t\t }\r\n\t\t }\r\n\t }\r\n\t \r\n\t String newMasterEventsFile = \"\";\r\n\t String newCurrentEventsFile = \"\"\r\n\t\t\t ;\r\n\t // creates two strings in proper format for output to currenteventsFile and MasterEventsFile\r\n\t for (Event e: alteredEventsFile){\t\t\t\t\t\t\t\t//assumes correct input... constraint:every line is exactly 33 characters(plus newline)\r\n\t\t newMasterEventsFile += e.getEventLine() +\"\\n\";\r\n\t\t newCurrentEventsFile += e.getCurrentEventLine() + \"\\n\";\r\n\t }\r\n\t \r\n\t //does file output stuff\r\n\t try{\r\n\t\t endBackEnd(newMasterEventsFile, newCurrentEventsFile);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }", "public static void createAccount()throws IOException{\n\t\ttry{\n\t\t\tFile accountInfo = new File(\"account.txt\");\n\t\t\tFile Information = new File(\"information.txt\");\n\t\t\tArrayList<String> temp = new ArrayList<String>();\n\t\t\tArrayList<String> info = new ArrayList<String>();\n\t\t\tScanner inputFromInformation = new Scanner(Information);\n\t\t\tScanner inputFromAccount = new Scanner(accountInfo);\n\t\t\twhile (inputFromAccount.hasNextLine()){\n\t\t\t\ttemp.add(inputFromAccount.nextLine());\n\t\t\t}\n\t\t\tScanner input = new Scanner(System.in);\n\t\t\t// This is where we will start the new account process\n\t\t\t// first by telling us who you are.\n\t\t\tSystem.out.println(\"Enter your First Name\");\n\t\t\tString firstName = input.next();\n\t\t\t\n\t\t\tSystem.out.println(\"Enter your Last Name\");\n\t\t\tString lastName = input.next();\n\t\t\t// This will give the user recommended\n\t\t\t// user names if they cannot think of one.\n\t\t\tRecommendedUserNames(firstName,lastName);\n\t\t\t// here they will be prompt to enter their preferred user name\n\t\t\tSystem.out.println(\"Enter your preferred username\");\n\t\t\tString UserName = input.next();\n\t\t\t// This will prompt the user for a password\n\t\t\t// The password will have to meet these requirements\n\t\t\tSystem.out.println(\"Your password should meet the following requirements:\");\n\t\t\tSystem.out.println(\"-It must have at least eight characters.\\n-It must consist of only letters and digits.\"\n\t\t\t\t\t\t\t+ \"\\n-It must contain more than two digits and two characters.\");\n\t\t\tSystem.out.println(\"\\nEnter your new Password\");\n\t\t\tString Password = input.next();\n\t\t\t\n\t\t\t// this is what will verify the user password and see if it meets the recommended requirements\n\t\t\t// for security reasons of course.\n\t\t\tString Pass;\n\n\t\t\tboolean check=false;\n\t\t\tif(validigits(Password)&&letter_digit_check(Password))check=true;\n\t\t\twhile(!check){\n\t\t\t\tSystem.out.println(\"Please recheck the password requirement and try again.\");\n\t\t\t\tPassword = input.next();\n\t\t\t\tif(validigits(Password)&&letter_digit_check(Password))check=true;\n\t\t\t}\n\t\t\tdo{\n\t\t\t\tSystem.out.println(\"\\nPlease re-enter the Password\");\n\t\t\t\tPass = input.next();\n\t\t\t\tif(!Pass.equals(Password))System.out.println(\"Passwords do not match!\");\n\t\t\t}while(!Pass.equals(Password));\n\t\t\tboolean CreateAccount = true;\n\t\t\tSystem.out.println(\"You need to fill the information for completion of your account registration\");\n\t\t\teditInfo(UserName,CreateAccount);\n\t\t\tPrintWriter output = new PrintWriter(accountInfo);\n\t\t\ttemp.add(UserName+\" \"+Password);\n\t\t\tfor (int i=0; i<temp.size(); i++){\n\t\t\t\toutput.println(temp.get(i));\n\t\t\t}\n\t\t\toutput.close();\n\t\t\tSystem.out.println(\"Your account has been created and your information has been saved\"\n\t\t\t\t\t+ \"\\nYou have been logged out for this session\\n\");\n\t\t\tstarter();\n\t\t}\n\t\tcatch (java.io.IOException ex){\n\t\t\tSystem.out.println(\"I/O Errors: File is not found\");\n\t\t}\t\n\t}", "public void loadTransactions(List<Transaction> transactions)\n\t\t\tthrows IOException {\n\n\t\tfor (Transaction transaction : transactions) {\n\t\t\t\n\t\t\tString yearMonth = monthYearFormat\n\t\t\t\t\t.format(transaction.getTxtnDate());\n\t\t\tString rowKey =transaction.getAcountId() + \"-\" + yearMonth;\t\t\t\n\t\t\tdouble amount = transaction.getAmount();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tthis.writer.addRow(rowKey, transaction.getTxtnDate(), UUID.fromString(transaction.getTxtnId()), amount, transaction.getType(), transaction.getReason());\n\t\t\t} catch (InvalidRequestException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\t\n\t\t\t\tSystem.exit(5);\n\t\t\t}\t\n\t\t}\n\t}", "public void applyAllTransactions(Iterable<WalletTransaction> iwt) {\n clearBalances();\n\n for (WalletTransaction wtx : iwt) {\n // WalletTransaction.Pool pool = wtx.getPool();\n Transaction tx = wtx.getTransaction();\n boolean avail = !tx.isPending();\n TransactionConfidence conf = tx.getConfidence();\n ConfidenceType ct = conf.getConfidenceType();\n\n // Skip dead transactions.\n if (ct != ConfidenceType.DEAD) {\n\n // Traverse the HDAccounts with all outputs.\n List<TransactionOutput> lto = tx.getOutputs();\n for (TransactionOutput to : lto) {\n long value = to.getValue().longValue();\n try {\n byte[] pubkey = null;\n byte[] pubkeyhash = null;\n Script script = to.getScriptPubKey();\n if (script.isSentToRawPubKey())\n pubkey = script.getPubKey();\n else\n pubkeyhash = script.getPubKeyHash();\n for (HDAccount hda : mAccounts)\n hda.applyOutput(pubkey, pubkeyhash, value, avail);\n } catch (ScriptException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n\n // Traverse the HDAccounts with all inputs.\n List<TransactionInput> lti = tx.getInputs();\n for (TransactionInput ti : lti) {\n // Get the connected TransactionOutput to see value.\n TransactionOutput cto = ti.getConnectedOutput();\n if (cto == null) {\n // It appears we land here when processing transactions\n // where we handled the output above.\n //\n // mLogger.warn(\"couldn't find connected output for input\");\n continue;\n }\n long value = cto.getValue().longValue();\n try {\n byte[] pubkey = ti.getScriptSig().getPubKey();\n for (HDAccount hda : mAccounts)\n hda.applyInput(pubkey, value);\n } catch (ScriptException e) {\n // This happens if the input doesn't have a\n // public key (eg P2SH). No worries in this\n // case, it isn't one of ours ...\n }\n }\n }\n }\n\n // This is too noisy\n // // Log balance summary.\n // for (HDAccount acct : mAccounts)\n // acct.logBalance();\n }", "@Generated(hash = 121514453)\n public synchronized void resetAccounts() {\n accounts = null;\n }", "public void saveTransactions(List<Transaction> transactions) {\r\n Session session = HibernateUtil.getSessionFactory().getCurrentSession();\r\n try {\r\n org.hibernate.Transaction hbtransaction = session.beginTransaction();\r\n for(Transaction trans : transactions) {\r\n // don't save \"duplicate\" transactions\r\n Query q = session.createQuery (\"from finance.entity.Transaction trans WHERE trans.transdate = :transdate AND trans.amount = :amount AND trans.vendor = :vendor AND trans.account.uid = :accountuid\");\r\n q.setParameter(\"transdate\", trans.getTransdate());\r\n q.setParameter(\"amount\", trans.getAmount());\r\n q.setParameter(\"vendor\", trans.getVendor());\r\n Account acct = trans.getAccount();\r\n q.setParameter(\"accountuid\", acct.getUid());\r\n List<Transaction> transactionList = (List<Transaction>) q.list();\r\n if (transactionList.isEmpty()) {\r\n session.save(trans);\r\n }\r\n }\r\n hbtransaction.commit();\r\n } catch (Exception e) {\r\n throw e;\r\n }\r\n }", "public static void main(String[] args) throws FileNotFoundException\r\n\t{\n\t\tBank b1 = new Bank();\r\n//\t\tb1.setCustomers(b1.LoadCustomersFromFile());\r\n\t\tSystem.out.println(b1.printCustomersToString());\r\n\t\tSystem.out.println(b1.printTransactionsToString());\r\n\t\tCustomer customer = b1.getCustomers().get(5);\r\n\t\tAccount account = b1.getCustomers().get(5).getAccounts().get(0);\r\n//\t\taccount.createMonthlyStatement(\"Oct\", 2019, account, customer, b1);\r\n//\t\tb1.setTransactions(b1.LoadTransactionsFromFile());\r\n\t\tSystem.out.println(b1);\r\n//\t\tBank b1=runcreate();\r\n//\t\tSystem.out.println(b1);\r\n//\t\tSaveorLoadBank.LoadBankFromFile();\r\n//\t\tArrayList<Customer> customers = b1.getCustomers();\r\n//\t\tCustomer c1 = customers.get(4);\r\n//\t\tCustomer c2 = customers.get(5);\r\n//\t\tSystem.out.println(customers.get(4));\r\n//\t\tSystem.out.println(customers.get(5));\r\n//\t\tAccount a1 = customers.get(4).getAccounts().get(0);\r\n//\t\tAccount a2 = customers.get(5).getAccounts().get(0);\r\n//\t\tTransferManager.Transfer(c1, a1, c2, a2, (long) 100);\r\n//\t\tSystem.out.println(c1);\r\n//\t\tSystem.out.println(c2);\r\n//\t\tSystem.out.println(b1);\r\n//\t\tSystem.out.println(b1);\r\n\t\tb1.saveTofilePrintWriter();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public List<Account> getAccounts(String customerName){\n List<Account> accounts = new ArrayList<>();\n try {\n accounts = getAccountsFromFile();\n } catch (Exception e) {\n System.out.println(messageService.unexpectedError(e));\n }\n System.out.println(accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList()));\n return accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList());\n }", "@Test\n public void testGetUserAccounts() {\n Bank bank = new Bank();\n User user = new User(\"Petr\", \"0000 000000\");\n AccountOfUser acc = new AccountOfUser(0, \"0000 0000 0000 0000\");\n AccountOfUser acc2 = new AccountOfUser(0, \"0000 0000 0000 0001\");\n List<AccountOfUser> accs = new ArrayList<>();\n accs.add(acc);\n accs.add(acc2);\n bank.addUser(user);\n bank.addAccountToUser(user.getPassport(), acc);\n bank.addAccountToUser(user.getPassport(), acc2);\n assertThat(bank.getUserAccounts(user.getPassport()), is(accs));\n }", "public void updateAccount() {\r\n\t\t\r\n\t\t//update all totals\r\n\t\ttotalYouOwe = 0.0;\r\n\t\ttotalOwedToYou = 0.0;\r\n\t\tbalance = 0.0;\r\n\t\tnetBalance = 0.0;\r\n\t\t\r\n\t\t//totalYouOwe and totalOwedToYou\r\n\t\tfor (Event e : events) {\r\n\t\t\tif (e.isParticipantByGID(GID)) {\r\n\t\t\t\tif (e.getParticipantByGID(GID).getBalance() > 0) {\r\n\t\t\t\t\ttotalOwedToYou = totalOwedToYou + e.getParticipantByGID(GID).getBalance(); \r\n\t\t\t\t} else {\r\n\t\t\t\t\ttotalYouOwe = totalYouOwe + (-e.getParticipantByGID(GID).getBalance());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//netBalance/balance - the same in current implementation\r\n\t\tnetBalance = totalOwedToYou - totalYouOwe;\r\n\t\tbalance = totalOwedToYou - totalYouOwe;\r\n\t\t\r\n\t\tupdatePastRelations();\r\n\t}", "public static void main(String[] args) throws Exception {\n Scanner scanner = new Scanner(System.in);\n\n currentAccounts.put(\"Jennifer\", 100.00);\n currentAccounts.put(\"Ben\", 30.00);\n\n\n while (true) {\n\n System.out.println(\"\\nWelcome!\");\n System.out.println(\"Please enter your account name?\");\n\n String account = scanner.nextLine();\n\n\n if (!currentAccounts.containsKey(account)) {\n System.out.println(\"You do not currently have an account.\\n Would you like to create one? [y/n]\");\n String newAccount = scanner.nextLine();\n\n if (newAccount.equalsIgnoreCase(\"y\")) {\n currentAccounts.put(account, 0.00);\n System.out.println(\"Your account has been created. \" +\n \"Your current balance is $\" + currentAccounts.get(account));\n\n } else {\n System.out.println(\"Thank you\");\n continue;\n }\n } else {\n System.out.println(\"Hello \" + account + \"!\");\n\n }\n\n int session = 1;\n while (session == 1) {\n\n double balance = currentAccounts.get(account);\n\n System.out.println(\"\\nWhat would you like to do today?\\n\" +\n \"1. Check my balance\\n\" +\n \"2. Make a withdrawal\\n\" +\n \"3. Make a deposit\\n\" +\n \"4. Transfer funds\\n\" +\n \"5. Cancel my account\\n\" +\n \"6. Log out\");\n\n int activity = scanner.nextInt();\n\n switch (activity) {\n case 1:\n System.out.println(\"Your current balance is \" + balance);\n break;\n\n case 2:\n System.out.println(\"How much would you like to withdraw today?\");\n int withdrawAmount = scanner.nextInt(); // want to bring over from atm class, but cant figure out how to bring over balance\n\n if (withdrawAmount > balance) {\n System.out.println(\"You do not have enough money.\"); // changed this to error because exception can't continue the loop?\n break;\n } else if (withdrawAmount % 5 != 0) {\n System.out.println(\"Please enter in multiples of $5, $10 or $20\");\n break;\n } else {\n System.out.println(\"Please take your $\" + withdrawAmount);\n currentAccounts.put(account, currentAccounts.get(account) - withdrawAmount);\n System.out.println(\"Your current balance is $\" + (balance - withdrawAmount));\n break;\n }\n\n case 3:\n System.out.println(\"How much would you like to deposit today?\");\n int depositAmount = scanner.nextInt();\n\n System.out.println(\"You have deposited $\" + depositAmount);\n System.out.println(\"Your current balance is $\" + (balance + depositAmount));\n currentAccounts.put(account, currentAccounts.get(account) + depositAmount);\n break;\n\n case 4:\n scanner.nextLine(); // if i don't have this then it's taking inputs from before, this way it refreshes the input\n System.out.println(\"Enter the account name to which you wish to transfer funds.\");\n String accountTransfer = scanner.nextLine();\n\n System.out.println(\"Enter the amount you would like to transfer.\");\n double transferAmount = scanner.nextInt();\n\n // add or subtract transfer amount from hashmap\n currentAccounts.put(account, currentAccounts.get(account) - transferAmount);\n currentAccounts.put(accountTransfer, currentAccounts.get(accountTransfer) + transferAmount);\n\n System.out.println(\"Your current balance is now $\" + currentAccounts.get(account));\n break;\n\n case 5: //\n System.out.println(\"Are you sure you want to cancel your account today [y/n]?\");\n scanner.nextLine(); // if i don't have this then it's taking inputs from before. This way it input refreshes.\n String cancel = scanner.nextLine();\n\n if (cancel.equalsIgnoreCase(\"y\")) {\n currentAccounts.remove(account);\n System.out.println(\"We are sorry to see you go\");\n session = 0;\n } else {\n System.out.println(\"Great, you are a valued customer.\");\n }\n break;\n\n case 6:\n System.out.println(\"Thank you and please come again.\");\n session = 0;\n scanner.nextLine(); // if i don't have this then it's taking inputs from before, this way it refreshes the input\n break;\n }\n\n\n }\n\n\n }\n }", "public void addAccount(Account account){\n if(accounts == null){\n accounts = new HashSet<>();\n }\n accounts.add(account);\n }", "public void updateAccounts(String sourceAccountNumber, BigDecimal transferedAmount, String destinationAccount ) throws TransferServiceException {\n\t\t\n\t\tList<Account> accountList = new ArrayList<>();\n\t\t\n\t\taccountList.add(debitAmount(sourceAccountNumber,transferedAmount));\n\t\taccountList.add(creditAmount(destinationAccount, transferedAmount));\n\t\trepository.saveAll(accountList);\n\t\n\t}", "public static void createSavings(ArrayList<Account> accounts, int id, double balance, double interestRate){\n SavingsAccount sAccount = new SavingsAccount(id, balance, interestRate);\r\n \r\n //add the account just created to array\r\n accounts.add(sAccount);\r\n System.out.println(\"Your account has been created. Information of your new account is below. \\n\");\r\n \r\n //get the current index of the id and print out the info\r\n int idIndex = idIndex(accounts, sAccount.getID());\r\n System.out.println(\"Account type: Saving\");\r\n accounts.get(idIndex).displayAccountInformation();\r\n }", "public void applyTransaction(Transaction tx, byte[] coinbase) {\n\t\tif (blockchain != null)\n\t\t\tblockchain.addWalletTransaction(tx);\n\n\t\t// TODO: what is going on with simple wallet transfer ?\n\n\t\t// 1. VALIDATE THE NONCE\n\t\tbyte[] senderAddress = tx.getSender();\n\n\t\tAccountState senderAccount = repository.getAccountState(senderAddress);\n\n\t\tif (senderAccount == null) {\n\t\t\tif (stateLogger.isWarnEnabled())\n\t\t\t\tstateLogger.warn(\"No such address: {}\",\n\t\t\t\t\t\tHex.toHexString(senderAddress));\n\t\t\treturn;\n\t\t}\n\n\t\tBigInteger nonce = repository.getNonce(senderAddress);\n\t\tif (nonce.compareTo(new BigInteger(tx.getNonce())) != 0) {\n\t\t\tif (stateLogger.isWarnEnabled())\n\t\t\t\tstateLogger.warn(\"Invalid nonce account.nonce={} tx.nonce={}\",\n\t\t\t\t\t\tnonce.longValue(), new BigInteger(tx.getNonce()));\n\t\t\treturn;\n\t\t}\n\n\t\t// 2.1 PERFORM THE GAS VALUE TX\n\t\t// (THIS STAGE IS NOT REVERTED BY ANY EXCEPTION)\n\n\t\t// first of all debit the gas from the issuer\n\t\tBigInteger gasDebit = tx.getTotalGasValueDebit();\n\n\t\t// The coinbase get the gas cost\n\t\trepository.addBalance(coinbase, gasDebit);\n\n\t\tbyte[] contractAddress;\n\n\t\t// Contract creation or existing Contract call\n\t\tif (tx.isContractCreation()) {\n\n\t\t\t// credit the receiver\n\t\t\tcontractAddress = tx.getContractAddress();\n\t\t\trepository.createAccount(contractAddress);\n\t\t\tstateLogger.info(\"New contract created address={}\",\n\t\t\t\t\tHex.toHexString(contractAddress));\n\t\t} else {\n\n\t\t\tcontractAddress = tx.getReceiveAddress();\n\t\t\tAccountState receiverState = repository.getAccountState(tx\n\t\t\t\t\t.getReceiveAddress());\n\n\t\t\tif (receiverState == null) {\n\t\t\t\trepository.createAccount(tx.getReceiveAddress());\n\t\t\t\tif (stateLogger.isInfoEnabled())\n\t\t\t\t\tstateLogger.info(\"New account created address={}\",\n\t\t\t\t\t\t\tHex.toHexString(tx.getReceiveAddress()));\n\t\t\t}\n\t\t}\n\n\t\t// 2.2 UPDATE THE NONCE\n\t\t// (THIS STAGE IS NOT REVERTED BY ANY EXCEPTION)\n\t\tBigInteger balance = repository.getBalance(senderAddress);\n\t\tif (balance.compareTo(BigInteger.ZERO) == 1) {\n\t\t\trepository.increaseNonce(senderAddress);\n\n\t\t\tif (stateLogger.isInfoEnabled())\n\t\t\t\tstateLogger.info(\n\t\t\t\t\t\t\"Before contract execution the sender address debit with gas total cost, \"\n\t\t\t\t\t\t\t\t+ \"\\n sender={} \\n gas_debit= {}\",\n\t\t\t\t\t\tHex.toHexString(tx.getSender()), gasDebit);\n\t\t}\n\n\t\t// actual gas value debit from the sender\n\t\t// the purchase gas will be available for the\n\t\t// contract in the execution state, and\n\t\t// can be validate using GAS op\n\t\tif (gasDebit.signum() == 1) {\n\t\t\tif (balance.compareTo(gasDebit) == -1) {\n\t\t\t\tlogger.info(\"No gas to start the execution: sender={}\",\n\t\t\t\t\t\tHex.toHexString(tx.getSender()));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\trepository.addBalance(senderAddress, gasDebit.negate());\n\t\t}\n\n\t\t// 3. START TRACKING FOR REVERT CHANGES OPTION !!!\n\t\tRepository trackRepository = repository.getTrack();\n\t\ttrackRepository.startTracking();\n\n\t\ttry {\n\n\t\t\t// 4. THE SIMPLE VALUE/BALANCE CHANGE\n\t\t\tif (tx.getValue() != null) {\n\n\t\t\t\tBigInteger senderBalance = repository.getBalance(senderAddress);\n\t\t\t\tBigInteger contractBalance = repository.getBalance(contractAddress);\n\n\t\t\t\tif (senderBalance.compareTo(new BigInteger(1, tx.getValue())) >= 0) {\n\n\t\t\t\t\trepository.addBalance(contractAddress,\n\t\t\t\t\t\t\tnew BigInteger(1, tx.getValue()));\n\t\t\t\t\trepository.addBalance(senderAddress,\n\t\t\t\t\t\t\tnew BigInteger(1, tx.getValue()).negate());\n\n\t\t\t\t\tif (stateLogger.isInfoEnabled())\n\t\t\t\t\t\tstateLogger.info(\"Update value balance \\n \"\n\t\t\t\t\t\t\t\t+ \"sender={}, receiver={}, value={}\",\n\t\t\t\t\t\t\t\tHex.toHexString(senderAddress),\n\t\t\t\t\t\t\t\tHex.toHexString(contractAddress),\n\t\t\t\t\t\t\t\tnew BigInteger(tx.getValue()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// 3. FIND OUT WHAT IS THE TRANSACTION TYPE\n\t\t\tif (tx.isContractCreation()) {\n\n\t\t\t\tbyte[] initCode = tx.getData();\n\n\t\t\t\tBlock lastBlock = blockchain.getLastBlock();\n\n\t\t\t\tProgramInvoke programInvoke = ProgramInvokeFactory\n\t\t\t\t\t\t.createProgramInvoke(tx, lastBlock, trackRepository);\n\n\t\t\t\tif (logger.isInfoEnabled())\n\t\t\t\t\tlogger.info(\"running the init for contract: addres={}\",\n\t\t\t\t\t\t\tHex.toHexString(tx.getContractAddress()));\n\n\t\t\t\tVM vm = new VM();\n\t\t\t\tProgram program = new Program(initCode, programInvoke);\n\t\t\t\tvm.play(program);\n\t\t\t\tProgramResult result = program.getResult();\n\t\t\t\tapplyProgramResult(result, gasDebit, trackRepository,\n\t\t\t\t\t\tsenderAddress, tx.getContractAddress(), coinbase);\n\n\t\t\t} else {\n\n\t\t\t\tbyte[] programCode = trackRepository.getCode(tx\n\t\t\t\t\t\t.getReceiveAddress());\n\t\t\t\tif (programCode != null) {\n\n\t\t\t\t\tBlock lastBlock = blockchain.getLastBlock();\n\n\t\t\t\t\tif (logger.isInfoEnabled())\n\t\t\t\t\t\tlogger.info(\"calling for existing contract: addres={}\",\n\t\t\t\t\t\t\t\tHex.toHexString(tx.getReceiveAddress()));\n\n\t\t\t\t\tProgramInvoke programInvoke = ProgramInvokeFactory\n\t\t\t\t\t\t\t.createProgramInvoke(tx, lastBlock, trackRepository);\n\n\t\t\t\t\tVM vm = new VM();\n\t\t\t\t\tProgram program = new Program(programCode, programInvoke);\n\t\t\t\t\tvm.play(program);\n\n\t\t\t\t\tProgramResult result = program.getResult();\n\t\t\t\t\tapplyProgramResult(result, gasDebit, trackRepository,\n\t\t\t\t\t\t\tsenderAddress, tx.getReceiveAddress(), coinbase);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (RuntimeException e) {\n\t\t\ttrackRepository.rollback();\n\t\t\treturn;\n\t\t}\n\t\ttrackRepository.commit();\n\t\tpendingTransactions.put(Hex.toHexString(tx.getHash()), tx);\n\t}", "@Test\n @Order(14)\n void update_account_2() {\n Account first = client.getAccounts().iterator().next();\n\n // mismatch is a copy, but with different client Id\n // we use client2 because it's valid in the database\n Account mismatch = new Account(first.getId(), first.getAmount()+200, client2.getId());\n Account nullCheck = service.updateAccount(mismatch);\n Assertions.assertNull(nullCheck);\n\n // get the account with the id we used to check, should not have changed\n Account check = service.getAccount(client.getId(), mismatch.getId());\n Assertions.assertEquals(first.getAmount(), check.getAmount(), 0.1);\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString username, password, payee;\n\t\tUser user;\n\t\tBank bank = new Bank();\n\t\tObjectOutputStream oos = null;\n\t\tString outputFile = \"resource/Bank.txt\";\n\t\tObjectInputStream ois = null;\n\t\tString inputFile = \"resource/Bank.txt\";\n\t\tString trInputFile = \"resource/Transactions.txt\";\n\t\tFile f = new File(outputFile);\n\n\t\tdouble amount;\n\n\t\tint choice;\n\t\tdashbord: while (true) {\n\t\t\tSystem.out.println(\"\\n-------------------\");\n\t\t\tSystem.out.println(\"BANK OF MyBank\");\n\t\t\tSystem.out.println(\"-------------------\\n\");\n\t\t\tSystem.out.println(\"1. Register account.\");\n\t\t\tSystem.out.println(\"2. Login.\");\n\t\t\tSystem.out.println(\"3. Update accounts.\");\n\t\t\tSystem.out.println(\"4. Exit.\");\n\t\t\tSystem.out.print(\"\\nEnter your choice : \");\n\t\t\tchoice = sc.nextInt();\n\t\t\tsc.nextLine();\n\t\t\tswitch (choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.print(\"Enter name : \");\n\t\t\t\tString name = sc.nextLine();\n\t\t\t\tSystem.out.print(\"Enter address : \");\n\t\t\t\tString address = sc.nextLine();\n\t\t\t\tSystem.out.print(\"Enter contact number : \");\n\t\t\t\tString phone = sc.nextLine();\n\t\t\t\tSystem.out.println(\"Set username : \");\n\t\t\t\tusername = sc.next();\n\t\t\t\t// -------------------------------------------------------\n\n\t\t\t\ttry {\n\t\t\t\t\tois = new ObjectInputStream(new FileInputStream(inputFile));\n\t\t\t\t\tif (f.length() != 0) {\n\n\t\t\t\t\t\tbank.userMap = (Map<String, User>) ois.readObject();\n\t\t\t\t\t}\n\n\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\tSystem.out.println(\"its end of the record\");\n\t\t\t\t}\n\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t} finally {\n\t\t\t\t\tif (ois != null)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tois.close();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t// --------------------------------------------------------\n\n\t\t\t\twhile (bank.userMap.containsKey(username)) {\n\t\t\t\t\tSystem.out.println(\"Username already exists. Set again : \");\n\t\t\t\t\tusername = sc.next();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"Set a password (minimum 8 chars; minimum 1 digit, 1 lowercase, 1 uppercase, 1 special character[!@#$%^&*_]) :\");\n\t\t\t\tpassword = sc.next();\n\t\t\t\tsc.nextLine();\n\t\t\t\twhile (!password.matches(((\"(?=.*\\\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*_]).{8,}\")))) {\n\t\t\t\t\tSystem.out.println(\"Invalid password . Set again :\");\n\t\t\t\t\tpassword = sc.next();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Enter initial deposit :10000 \");\n\t\t\t\tamount = sc.nextDouble();\n//\t\t\t\twhile (!sc.hasNextDouble()) {\n//\t\t\t\t\tSystem.out.println(\"Invalid amount. Enter again :\");\n//\t\t\t\t\tamount=sc.nextDouble();\n//\t\t\t\t}\n\n//\t\t\t\tsc.nextLine();\n\t\t\t\tuser = new User(name, address, phone, username, password, amount, new Date());\n\t\t\t\ttry {\n\t\t\t\t\toos = new ObjectOutputStream(new FileOutputStream(outputFile));\n//\t\t\t\t\tif(f.length()==0)\n\t\t\t\t\tbank.userMap.put(username, user);\n\t\t\t\t\tfor (Entry<String, User> entry : bank.userMap.entrySet())\n\t\t\t\t\t\toos.writeObject(bank.userMap);\n\t\t\t\t\toos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\tif (oos != null)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\toos.close();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println(\"Enter username : \");\n\t\t\t\tusername = sc.next();\n\t\t\t\tsc.nextLine();\n\t\t\t\tSystem.out.println(\"Enter password : \");\n\t\t\t\tpassword = sc.next();\n\t\t\t\tsc.nextLine();\n\n\t\t\t\ttry {\n\t\t\t\t\tois = new ObjectInputStream(new FileInputStream(inputFile));\n\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tbank.userMap = (Map<String, User>) ois.readObject();\n\t\t\t\t\t\tSystem.out.println(bank.userMap);\n\t\t\t\t\t\t// System.out.println(bank.userMap);\n\t\t\t\t\t\tif (bank.userMap.containsKey(username)) {\n\t\t\t\t\t\t\tuser = bank.userMap.get(username);\n\t\t\t\t\t\t\tif (bank.userMap.get(username).getPassword().equals(password)) {\n//\t\t\t\t\t\t\tSystem.out.println(\"hi\");\n\t\t\t\t\t\t\t\twhile (true) {\n\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\n---------------------------------\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"W E L C O M E, \" + username.toUpperCase());\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"-----------------------------------\\n\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"1. Deposit.\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"2. Transfer.\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"3. Last 5 transactions.\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"4. User information.\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"5. Log out.\");\n\t\t\t\t\t\t\t\t\tSystem.out.print(\"\\nEnter your choice : \");\n\t\t\t\t\t\t\t\t\tchoice = sc.nextInt();\n\t\t\t\t\t\t\t\t\tsc.nextLine();\n\t\t\t\t\t\t\t\t\tswitch (choice) {\n\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\tSystem.out.print(\"Enter amount : \");\n//\t\t\t\t\t\t\t\t\twhile (!sc.hasNextDouble()) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Invalid amount. Enter again :\");\n//\t\t\t\t\t\t\t\t\t\tsc.nextLine();\n//\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tamount = sc.nextDouble();\n\t\t\t\t\t\t\t\t\t\tsc.nextLine();\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(amount);\n\n\t\t\t\t\t\t\t\t\t\tdeposit(amount, new Date(), bank, username, user, payee = null);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\t\tSystem.out.print(\"Enter payee username : \");\n\t\t\t\t\t\t\t\t\t\tpayee = sc.next();\n\t\t\t\t\t\t\t\t\t\tsc.nextLine();\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Enter amount : \");\n//\t\t\t\t\t\t\t\t\twhile (!sc.hasNextDouble()) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Invalid amount. Enter again :\");\n//\t\t\t\t\t\t\t\t\t\tsc.nextLine();\n//\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tamount = sc.nextDouble();\n\t\t\t\t\t\t\t\t\t\tsc.nextLine();\n//\t\t\t\t\t\t\t\t\tif (amount > 300000) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Transfer limit exceeded. Contact bank manager.\");\n//\t\t\t\t\t\t\t\t\t\tbreak;\n//\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// --------------------------------------------------------------------------------\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tois = new ObjectInputStream(new FileInputStream(inputFile));\n\n//\t\t\t\t\t\t\t\t\t while(true) {\n\t\t\t\t\t\t\t\t\t\t\tbank.userMap = (Map<String, User>) ois.readObject();\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"whil\");\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(bank.userMap);\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(bank.userMap.get(username).getPassword().equals(password));\n\t\t\t\t\t\t\t\t\t\t\tif (bank.userMap.containsKey(payee)) {\n\t\t\t\t\t\t\t\t\t\t\t\twithdraw(amount, new Date(), bank, username, user);\n\t\t\t\t\t\t\t\t\t\t\t\tdeposit(amount, new Date(), bank, username, bank.userMap.get(payee),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpayee);\n\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Username doesn't exist.\");\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"its end of the record\");\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\t\t\t\t\tif (ois != null)\n\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\tois.close();\n\t\t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tois = new ObjectInputStream(new FileInputStream(trInputFile));\n\n\t\t\t\t\t\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\t\t\t\t\t\tbank.transactions = (ArrayList<String>) ois.readObject();\n\t\t\t\t\t\t\t\t\t\t\t\tfor (String tr : bank.transactions)\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (tr.contains(username))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(tr);\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"its end of the record\");\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\t\t\t\t\tif (ois != null)\n\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\tois.close();\n\t\t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t}\n\n//\t\t\t\t\t\t\t\t\tSet set = bank.transactions.entrySet();\n//\t\t\t\t\t\t\t Iterator iterator = set.iterator();\n//\t\t\t\t\t\t\t \n//\t\t\t\t\t\t\t while (iterator.hasNext()) {\n//\t\t\t\t\t\t\t Map.Entry entry = (Map.Entry)iterator.next();\n//\t\t\t\t\t\t\t System.out.println();\n//\t\t\t\t\t\t\t }\n//\t\t\t\t\t\t\t\t\tfor (String transactions : user.transactions) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(transactions);\n//\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Accountholder name : \" + user.getName());\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Accountholder address : \" + user.getAddress());\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Accountholder contact : \" + user.getPhone());\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\t\t\t\tcontinue dashbord;\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Wrong choice !\");\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\"wrong password\");\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"user name dosnt exist\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t} catch (OptionalDataException e) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\tif (oos != null)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\toos.close();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.println(\"Enter username : \");\n\t\t\t\tusername = sc.next();\n\t\t\t\tuser = bank.userMap.get(username);\n\t\t\t\tif (bank.userMap.containsKey(username)) {\n\t\t\t\t\tbank.userMap.replace(username, new User(user.getName(), user.getAddress(), user.getPhone(),\n\t\t\t\t\t\t\tuser.getName(), user.getPassword(), user.getAmount(), new Date()));\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Username doesn't exist.\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tSystem.out.println(\"\\nThank you for choosing Bank Of MyBank.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Wrong choice !\");\n\t\t\t}\n\n\t\t}\n\t}", "public void addAccount() {\n\t\t\n\t\ttry {\n\t\t\tlog.log(Level.INFO, \"Please enter name\");\n String custName = scan.next();\n validate.checkName(custName);\n \t\tlog.log(Level.INFO, \"Select Account Type: \\n 1 for Savings \\n 2 for Current \\n 3 for FD \\n 4 for DEMAT\");\n\t\t\tint bankAccType = Integer.parseInt(scan.next());\n\t\t\tvalidate.checkAccType(bankAccType);\n\t\t\tlog.log(Level.INFO, \"Please Enter your Aadar Card Number\");\n\t\t\tString aadarNumber = scan.next();\n\t\t\tlog.log(Level.INFO, \"Please Enter Phone Number: \");\n\t\t\tString custMobileNo = scan.next();\n\t\t\tvalidate.checkPhoneNum(custMobileNo);\n\t\t\tlog.log(Level.INFO, \"Please Enter Customer Email Id: \");\n\t\t\tString custEmail = scan.next();\n\t\t\tvalidate.checkEmail(custEmail);\n\t\t\tbankop.add(accountNumber, custName, bankAccType, custMobileNo, custEmail, aadarNumber);\n\t\t\taccountNumber();\n\t\t\n\t\t} catch (AccountDetailsException message) {\n\t\t\tlog.log(Level.INFO, message.getMessage()); \n }\n\n\t}", "public saccoAccount (int account_num, double initial_balance) \r\n {\r\n\r\n account = account_num;\r\n balance = initial_balance;\r\n\r\n }", "public void setAccount(String account) {\n this.account = account;\n }", "public void setAccount(String account) {\n this.account = account;\n }", "public void setAccount(String account) {\n this.account = account;\n }", "public void setAccount(String account) {\n this.account = account;\n }", "public void transferFunds(BankAccount account1, BankAccount account2, double amount){\n if(account1.checkAccountOpen()&&account2.checkAccountOpen()){\n if((account1.getCurrentBalance()-amount)>0) {\n if (isSameAccount(account1, account2)) {\n account1.subtractCreditTransaction(amount);\n account2.addDebitTransaction(amount);\n } else {\n System.out.println(\"This transaction could not be processed. BankAccount owners are not the same.\");\n }\n }\n else {\n System.out.println(\"Appropriate funds not found. Please check your current balance.\");\n }\n\n\n }\n }", "private void updateSingleAccount(double amount, String account_name) {\n if (account_name.equals(\"bankomat\")){\n status_disp.transfer_resources(\"karta konto 1\", \"gotowka\", (float) amount); // TODO: remove hardcoded account names...crashes if names dont match\n }\n else {\n status_disp.reduce_wealth(account_name, (float) amount);\n Log.e(TAG, account_name + \" \" + amount);\n }\n }", "public Task(Account[] allAccounts, String trans) {\n accounts = allAccounts;\n transaction = trans;\n }", "public void processTransaction(String transactionCode, int accountNum0, int amount, int accountNum1, String accountName) {\n if (transactions.containsKey(transactionCode)) {\n transactions.get(transactionCode).processTransaction(accountNum0, amount, accountNum1, accountName);\n } else {\n System.out.println(\"Unknown transaction code \\\"\" + transactionCode + \"\\\".\");\n }\n }", "public SavingsAccount(String n) {\n super(n); \n balance = 0;\n }", "public static void displayAccount(ArrayList<Account> accounts){\n if (accounts.isEmpty()){\r\n System.out.println(\"You have no account\");\r\n } else {\r\n //print out all the IDs\r\n System.out.println(\"List of all your ids:\");\r\n for (int i = 0; i < accounts.size(); i++){\r\n System.out.println(accounts.get(i).id);\r\n }\r\n\r\n //prompt user to choose a specific account\r\n System.out.println(\"Enter the id of your account\");\r\n Scanner input = new Scanner(System.in);\r\n boolean out = false;\r\n\r\n do {\r\n int idInput = input.nextInt();\r\n int idIndex = idIndex(accounts, idInput);\r\n \r\n //check ID input\r\n if (idIndex == -1){\r\n System.out.println(\"Invalid input of ID. Try again\");\r\n } else {\r\n if (accounts.get(idIndex) instanceof CheckingAccount){\r\n System.out.println(\"Account type: Checking\");\r\n accounts.get(idIndex).displayAccountInformation();\r\n System.out.println(\"The number of pending checks: \" + ((CheckingAccount)accounts.get(idIndex)).countPendingChecks());\r\n System.out.println();\r\n out = true;\r\n } else {\r\n System.out.println(\"Account type: Saving\");\r\n accounts.get(idIndex).displayAccountInformation();\r\n System.out.println();\r\n out = true;\r\n } \r\n }\r\n } while (out == false);\r\n }\r\n }", "void exportBankTransactionList(String prependFileName) throws BankException, IOException {\n logger.warning(\"This account does not support this feature\");\n throw new BankException(\"This account does not support this feature\");\n }", "public void setAccount(String account) {\r\n\t\tthis.account = account;\r\n\t}", "private ArrayList<Long> storeTransactionInputs(long transactionId, ArrayList<TransactionInput> inputs, int isCoinbase){\n \t\tint inputindex = 0;\n \t\tlong previousOutputId;\n \t\tString prevOutputHash;\n \t\tResultSet findOutputResults;\n \t\tResultSet generatedKey;\n \t\tLong addressId;\n \t\tArrayList<Long> addressIdz=new ArrayList<Long>();\n \t\ttry {\n \t\tfor (TransactionInput i : inputs) {\n\t\t\t\n \t\t\tprevOutputHash = HexBin.encode(i.outpoint.hash);\n \t\t\tfindTransactionOutputStatement.setString(1, prevOutputHash);\n \t\t\tfindTransactionOutputStatement.setLong(2, i.outpoint.index);\n \t\t\tfindOutputResults = findTransactionOutputStatement\n \t\t\t\t\t.executeQuery();\n \t\t\tif (findOutputResults.next()) {\n \t\t\t\tpreviousOutputId = findOutputResults.getLong(1);\n\t\t\t\taddressId=findOutputResults.getLong(2);\n \t\t\t} else {\n \t\t\t\tpreviousOutputId = 0;\n\t\t\t\taddressId=null;\n \t\t\t}\n \t\t\tfindOutputResults.close();\n \t\t\tinsertTransactionInputStatement.setLong(1, transactionId);\n \t\t\tinsertTransactionInputStatement.setInt(2, inputindex);\n \t\t\tinsertTransactionInputStatement\n \t\t\t\t\t.setLong(3, previousOutputId);\n \t\t\tinsertTransactionInputStatement\n \t\t\t\t\t.setString(4, prevOutputHash);\n \t\t\tinsertTransactionInputStatement\n \t\t\t\t\t.setLong(5, i.outpoint.index);\n \t\t\tinsertTransactionInputStatement.setLong(6,\n \t\t\t\t\ti.scriptBytes.length);\n \t\t\tinsertTransactionInputStatement.setString(7,\n \t\t\t\t\tHexBin.encode(i.scriptBytes));\n \t\t\tinsertTransactionInputStatement.setLong(8, i.sequence);\n \t\t\tinsertTransactionInputStatement.setBoolean(9,\n \t\t\t\t\ti.isCoinBase());\n\t\t\tif(addressId!=null){\n \t\t\t\tinsertTransactionInputStatement.setLong(10,addressId);\n \t\t\t\taddressIdz.add(addressId);\n\t\t\t} else {\n \t\t\t\t// TODO Auto-generated catch block\n \t\t\t\tinsertTransactionInputStatement.setNull(10,\n \t\t\t\t\t\tjava.sql.Types.INTEGER);\n \t\t\t}\n \t\t\tinsertTransactionInputStatement.execute();\n \t\t\t\n \t\t}\n \t\t\n \t\t\n \t} catch (SQLException e1) {\n \t\t// TODO Auto-generated catch block\n \t\te1.printStackTrace();\n \t}\n \t\treturn addressIdz;\n \t}", "private static void depositAmount(String format, Bank bank, String username) {\n\n\t\tObjectOutputStream oos = null;\n\t\tString outputFile = \"resource/Transactions.txt\";\n\n\t\ttry {\n\t\t\toos = new ObjectOutputStream(new FileOutputStream(outputFile));\n\t\t\tbank.transactions.add(0, format);\n\n//\t\t\tfor (String t:bank.transactions)\n\t\t\toos.writeObject(bank.transactions);\n\t\t\toos.close();\n\t\t\tSystem.out.println(\"serilization is done\");\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t} finally {\n\t\t\tif (oos != null)\n\t\t\t\ttry {\n\t\t\t\t\toos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\t\t}\n\n\t}", "public Transaction[] handleTxs(Transaction[] possibleTxs) {\n // IMPLEMENT THIS\n if(possibleTxs == null)\n return new Transaction[0];\n \n ArrayList<Transaction> validTxs = new ArrayList<>();\n \n //iterate through each transaction, validate, remove spent UTXO, add new UTXO\n for(int i = 0; i < possibleTxs.length; i++){\n \n //validate tx\n if(isValidTx(possibleTxs[i])){\n possibleTxs[i].finalize();\n validTxs.add(possibleTxs[i]);\n \n //remove valid/spent UTXOs from current pool\n for(Transaction.Input x:possibleTxs[i].getInputs()){\n UTXO inputUTXO = new UTXO(x.prevTxHash, x.outputIndex);\n currentPool.removeUTXO(inputUTXO);\n }\n \n //add new UTXOs to current pool\n int utxoIndex = 0;\n for(Transaction.Output x:possibleTxs[i].getOutputs()){\n UTXO outputUTXO = new UTXO(possibleTxs[i].getHash(), utxoIndex);\n currentPool.addUTXO(outputUTXO, x);\n utxoIndex++;\n }\n \n }\n }\n \n //return list of validated \n Transaction[] validatedTxs = new Transaction[validTxs.size()];\n \n validatedTxs = validTxs.toArray(validatedTxs);\n \n return validatedTxs;\n }", "public Transaction[] handleTxs(Transaction[] possibleTxs) {\n // IMPLEMENT THIS\n List<Transaction> validTxs = new ArrayList<>();\n for (Transaction tx : possibleTxs) {\n if (isValidTx(tx)) {\n validTxs.add(tx);\n ArrayList<Transaction.Output> outputs = tx.getOutputs();\n for (int idx = 0; idx < outputs.size(); idx++) {\n UTXO utxo = new UTXO(tx.getHash(), idx);\n utxoPool.addUTXO(utxo, outputs.get(idx));\n }\n }\n }\n\n return validTxs.toArray(new Transaction[0]);\n }", "@Override\n\tpublic void run(String... args) throws Exception {\n\t\taccountListRepository.deleteAll();\n\t\taccountTransactionRepository.deleteAll();\n\t\t\n\t\tAccountListDTO account1 = new AccountListDTO();\n\t\taccount1.setAccountNumber(585309209);\n\t\taccount1.setAccountName(\"SGSavings726\");\n\t\taccount1.setAccountType(\"Savings\");\n\t\taccount1.setBalanceDate(LocalDate.of(2018, 11, 8));\n\t\taccount1.setCurrency(\"SGD\");\n\t\taccount1.setOpeningAvailableBalance(84327.51);\n\t\taccountListRepository.save(AccountListDTO.prepareAccountListEntity(account1));\n\t\t\n\t\tAccountListDTO account2 = new AccountListDTO();\n\t\taccount2.setAccountNumber(791066619);\n\t\taccount2.setAccountName(\"AUSavings933\");\n\t\taccount2.setAccountType(\"Savings\");\n\t\taccount2.setBalanceDate(LocalDate.of(2018, 11, 8));\n\t\taccount2.setCurrency(\"AUD\");\n\t\taccount2.setOpeningAvailableBalance(88005.93);\n\t\taccountListRepository.save(AccountListDTO.prepareAccountListEntity(account2));\n\t\t\n\t\tAccountListDTO account3 = new AccountListDTO();\n\t\taccount3.setAccountNumber(347786244);\n\t\taccount3.setAccountName(\"AUCurrent433\");\n\t\taccount3.setAccountType(\"Current\");\n\t\taccount3.setBalanceDate(LocalDate.of(2018, 11, 8));\n\t\taccount3.setCurrency(\"AUD\");\n\t\taccount3.setOpeningAvailableBalance(38010.62);\n\t\taccountListRepository.save(AccountListDTO.prepareAccountListEntity(account3));\n\t\t\n\t\tAccountTransactionDTO transaction1 = new AccountTransactionDTO();\n\t\ttransaction1.setAccountNumber(1232223212);\n\t\ttransaction1.setAccountName(\"Current Account\");\n\t\ttransaction1.setValueDate(LocalDate.of(2012, 1, 12));\n\t\ttransaction1.setCurrency(\"SGD\");\n\t\ttransaction1.setCreditAmount(9540.98);\n\t\ttransaction1.setDebitOrCredit(\"Credit\");\n\t\taccountTransactionRepository.save(AccountTransactionDTO.prepareAccountTransactionEntity(transaction1));\n\t\t\n\t\tAccountTransactionDTO transaction2 = new AccountTransactionDTO();\n\t\ttransaction2.setAccountNumber(1232223212);\n\t\ttransaction2.setAccountName(\"Current Account\");\n\t\ttransaction2.setValueDate(LocalDate.of(2012, 1, 12));\n\t\ttransaction2.setCurrency(\"SGD\");\n\t\ttransaction2.setCreditAmount(7497.82);\n\t\ttransaction2.setDebitOrCredit(\"Credit\");\n\t\taccountTransactionRepository.save(AccountTransactionDTO.prepareAccountTransactionEntity(transaction2));\n\t\t\n\t\tAccountTransactionDTO transaction3 = new AccountTransactionDTO();\n\t\ttransaction3.setAccountNumber(1232223212);\n\t\ttransaction3.setAccountName(\"Current Account\");\n\t\ttransaction3.setValueDate(LocalDate.of(2012, 1, 12));\n\t\ttransaction3.setCurrency(\"SGD\");\n\t\ttransaction3.setCreditAmount(5564.79);\n\t\ttransaction3.setDebitOrCredit(\"Credit\");\n\t\taccountTransactionRepository.save(AccountTransactionDTO.prepareAccountTransactionEntity(transaction3));\n\t\t\n\t}", "public void AddToAccountInfo();", "public String createAccount(Account account){\n try {\n List<Account> accounts = new ArrayList<>();\n\n if(!accountsFile.createNewFile()){\n accounts = mapper.readValue(accountsFile, new TypeReference<ArrayList<Account>>(){});\n }\n List<Account> customerAccounts = getAccountsForUSer(accounts, account.getCustomerName());\n if(!customerAccounts.stream().anyMatch(a -> a.getAccountName().equals(account.getAccountName()))){\n accounts.add(account);\n mapper.writerWithDefaultPrettyPrinter().writeValue(accountsFile, accounts);\n } else {\n return messageService.accountAlreadyExist(account.getCustomerName(), account.getAccountName());\n }\n } catch (Exception e) {\n return messageService.unexpectedError(e);\n }\n return messageService.accountCreated(account.getAccountName(), account.getCustomerName());\n }", "public static void main(String[] args) {\n Account anushaAccount = new Account(456123, \"SBIK1014\", 100);\n Account priyaAccount = new Account(789456, \"SBIK1014\", 200);\n Account dhanuAccount = new Account(951753, \"SBIK1014\", 300);\n\n ArrayList<Account> accounts = new ArrayList<>();\n\n accounts.add(anushaAccount);\n accounts.add(priyaAccount);\n accounts.add(dhanuAccount);\n\n TransactionHistory anuTranHist1 = new TransactionHistory(\"8-Jun-2018\", \"savaings\", 25000);\n TransactionHistory anuTranHist2 = new TransactionHistory(\"28-nov-2018\", \"current\", 50000);\n TransactionHistory anuTranHist3 = new TransactionHistory(\"15-Mar-2018\", \"savaings\", 5000);\n\n TransactionHistory priyaTranHist1 = new TransactionHistory(\"8-Jun-2018\", \"savaings\", 25000);\n TransactionHistory priyaTranHist2 = new TransactionHistory(\"28-nov-2018\", \"current\", 50000);\n TransactionHistory priyaTranHist3 = new TransactionHistory(\"15-Mar-2018\", \"savaings\", 5000);\n\n TransactionHistory dhanuTranHist1 = new TransactionHistory(\"8-Jun-2018\", \"savaings\", 25000);\n TransactionHistory dhanuTranHist2 = new TransactionHistory(\"28-nov-2018\", \"current\", 50000);\n TransactionHistory dhanuTranHist3 = new TransactionHistory(\"15-Mar-2018\", \"savaings\", 5000);\n\n\n ArrayList<TransactionHistory> anuTransactionHistory = new ArrayList<>();\n anuTransactionHistory.add(anuTranHist1);\n anuTransactionHistory.add(anuTranHist2);\n anuTransactionHistory.add(anuTranHist3);\n\n ArrayList<TransactionHistory> priyaTransactionHistory = new ArrayList<>();\n anuTransactionHistory.add(priyaTranHist1);\n anuTransactionHistory.add(priyaTranHist2);\n anuTransactionHistory.add(priyaTranHist3);\n\n ArrayList<TransactionHistory> dhanuTransactionHistory = new ArrayList<>();\n anuTransactionHistory.add(dhanuTranHist1);\n anuTransactionHistory.add(dhanuTranHist2);\n anuTransactionHistory.add(dhanuTranHist3);\n\n //useless code\n //you have already instantiated arraylist above and filled it with objects.. you can use that\n // List<Account> accountDetails=Arrays.asList(anushaAccount,priyaAccount,dhanuAccount);\n //List<TransactionHistory> transHistory=Arrays.asList(anuTranHist1,anuTranHist2,anuTranHist3);\n\n Customer anusha = new Customer(\"anusha\", 26, \"28-mar-92\", anushaAccount, anuTransactionHistory);\n Customer priya = new Customer(\"priya\", 22, \"15-oct-96\", priyaAccount, priyaTransactionHistory);\n Customer dhanu = new Customer(\"dhanu\", 32, \"05-jan-82\", dhanuAccount, dhanuTransactionHistory);\n\n anusha.setAccount(anushaAccount);\n priya.setAccount(priyaAccount);\n dhanu.setAccount(dhanuAccount);\n\n List<Customer> customerDetails = Arrays.asList(anusha, priya, dhanu);\n\n\n Bank bank = new Bank(\"SBI\", \"BNGLR\", customerDetails);\n\n// use the utitlity class here and output the customer object with the highest amount\n // check if your logic is running fine and fix this by morning. I have to finish work, and will leave it to you.\n Customer highestAmountCustomer = BankUtility.getCustomerWithHighestDeposit(bank);\n\n System.out.println(\"Customer with highest bank balance is \"+ highestAmountCustomer.getName() + \" with value \"+highestAmountCustomer.getAccount().getAmount());\n }", "@Test\n public void processTransactionManagerCaseC()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n acc_db.addAccount(acc3);\n\n\n trans_mang.processTransaction(acc.get_Account_Number(), acc2.get_Account_Number(), 30);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc3.get_Account_Number(),acc2.get_Account_Number(),30));\n }", "public void setAccount(Account account) {\n this.account = account;\n }", "public Account(String currency) {\n //numAccount += 1;\n incrementNumAccount();\n this.accountID = numAccount;\n this.dateOfCreation = LocalDate.now();\n\n setPrimaryCurrency(currency);\n this.currencyBalance = Money.of(0, this.primaryCurrency);\n ownerID = new ArrayList<>();\n }", "public void setAccount(String account) {\r\n this.account = account == null ? null : account.trim();\r\n }", "private void processAccounts(){\r\n for (Account aAccount: theAccounts) {\r\n aAccount.runYear();\r\n }\r\n\r\n }", "public void interestIncrease(){\r\n for (SavingsAccount account : saving){\r\n if (account == null){\r\n break;\r\n }\r\n account.addInterest();\r\n }\r\n }" ]
[ "0.6576536", "0.64144766", "0.63762134", "0.6346385", "0.6125272", "0.61224365", "0.61172837", "0.60011727", "0.59730023", "0.58977604", "0.58678716", "0.5848113", "0.58055305", "0.57993317", "0.5772608", "0.5737589", "0.56794196", "0.5641903", "0.5634236", "0.5628415", "0.5625011", "0.56103957", "0.5587434", "0.55170494", "0.5480228", "0.54710054", "0.5437274", "0.5421542", "0.5419287", "0.5378087", "0.5373712", "0.53719074", "0.53380877", "0.53368765", "0.53193945", "0.5314808", "0.53106725", "0.53055584", "0.5298168", "0.5286404", "0.5278763", "0.5257697", "0.5256556", "0.5247887", "0.52401835", "0.5238381", "0.5236181", "0.5235159", "0.52305067", "0.522017", "0.5213625", "0.52092934", "0.51899123", "0.5188371", "0.51864254", "0.51543427", "0.51498944", "0.513729", "0.51235217", "0.5102377", "0.5081267", "0.5078802", "0.5071142", "0.50684875", "0.506231", "0.5057881", "0.50377053", "0.5025964", "0.5012046", "0.5001847", "0.49952382", "0.49924162", "0.49923906", "0.49896872", "0.4987872", "0.4987872", "0.4987872", "0.4987872", "0.4984377", "0.49612707", "0.49425387", "0.49316758", "0.49131778", "0.48939136", "0.48773414", "0.48750505", "0.48740438", "0.48710486", "0.48647013", "0.48632744", "0.48621976", "0.48534495", "0.48466384", "0.48436427", "0.48364294", "0.48348328", "0.48338306", "0.48300943", "0.48200816", "0.48190868" ]
0.55116224
24
Returns the 'During' literal with the specified literal value.
public static During get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { During result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private During(int value, String name, String literal)\n {\n this.value = value;\n this.name = name;\n this.literal = literal;\n }", "Transition createTransition(String literal);", "public static During getByName(String name)\n {\n for (int i = 0; i < VALUES_ARRAY.length; ++i)\n {\n During result = VALUES_ARRAY[i];\n if (result.getName().equals(name))\n {\n return result;\n }\n }\n return null;\n }", "public static During get(int value)\n {\n switch (value)\n {\n case IN_PROG_VALUE: return IN_PROG;\n case AFTER_COMPLETION_VALUE: return AFTER_COMPLETION;\n }\n return null;\n }", "String getLiteral();", "String getLiteral();", "DateLiteral createDateLiteral();", "CaseStatement createCaseStatement();", "public Literal getLiteral();", "public Literal getLiteral();", "EnumLiteralExp createEnumLiteralExp();", "private CasePreinstConditionValue(int value, String name, String literal) {\n\t\tsuper(value, name, literal);\n\t}", "public Boolean onDuring(Double duration, String finalState)\r\n\t{\r\n\t\treturn onDuring(duration, finalState, TuxAPIConst.SPV_VERYFAST);\r\n\t}", "public static Ani from(Object theTarget, float theDuration, float theDelay, String theFieldName, float theEnd, Easing theEasing){\n\t\treturn addAni(true, theTarget, theDuration, theDelay, theFieldName, theEnd, theEasing, defaultTimeMode, theTarget, defaultCallback);\n\t}", "private Literal getDateLiteral(Date date) {\n Calendar cal = new GregorianCalendar();\n cal.setTime(date);\n return model.createTypedLiteral(cal);\n }", "<C, EL> EnumLiteralExp<C, EL> createEnumLiteralExp();", "default String turnAlarmOn() {\n return \"Turning the vehicle alarm on.\";\n }", "public void addWhen(Object pCondition, Object pValue);", "SQLCaseOperand createSQLCaseOperand();", "public static Ani from(Object theTarget, float theDuration, float theDelay, String theFieldName, float theEnd, Easing theEasing, String theCallback){\n\t\treturn addAni(true, theTarget, theDuration, theDelay, theFieldName, theEnd, theEasing, defaultTimeMode, theTarget, theCallback);\n\t}", "String getAbbr();", "InstrumentDefinition definition();", "@Override\n public String getMovementAbbr(EntityMovementType mtype) {\n switch (mtype) {\n case MOVE_SKID:\n return \"S\";\n case MOVE_NONE:\n return \"N\";\n case MOVE_WALK:\n return \"W\";\n case MOVE_RUN:\n return \"R\";\n case MOVE_JUMP:\n return \"J\";\n case MOVE_SPRINT:\n return \"Sp\";\n default:\n return \"?\";\n }\n }", "public String getWhen() throws ServiceLocalException {\n\t\treturn (String) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.When);\n\t}", "String convertTransition(Transition instanceValue);", "EEnumLiteral createEEnumLiteral();", "@Override\n\tpublic Literal getLiteral() {\n\t\treturn heldObj.getLiteral();\n\t}", "public T caseCalenStatement(CalenStatement object) {\n\t\treturn null;\n\t}", "Literal createLiteral();", "Literal createLiteral();", "String getExpression();", "String getExpression();", "public static Ani from(Object theTarget, float theDuration, float theDelay, String theFieldName, float theEnd, Easing theEasing, Object theCallbackObject, String theCallback){\n\t\treturn addAni(true, theTarget, theDuration, theDelay, theFieldName, theEnd, theEasing, defaultTimeMode, theCallbackObject, theCallback);\n\t}", "String getCondition();", "String getSourceExpression();", "Rule Literal() {\n // Push 1 LiteralNode onto the value stack\n return Sequence(\n FirstOf(\n SingleQuotedLiteral(),\n DoubleQuotedLiteral()),\n actions.pushLiteralNode());\n }", "public interface When {\r\n \t/** Returns the condition. In a \"when x then a\" clause\r\n * the condition is \"x\".\r\n \t */\r\n public Object getCondition();\r\n /** Returns the value. In a \"when x then a\" clause\r\n * the condition is \"a\".\r\n */\r\n public Object getValue();\r\n }", "public void visit(Literal literal) {}", "java.lang.String getState();", "CaseStmtRule createCaseStmtRule();", "SqlCaseWhen createSqlCaseWhen();", "@Override\n\tpublic void visit(DateTimeLiteralExpression arg0) {\n\t\t\n\t}", "ConditionNameReference createConditionNameReference();", "public static Ani from(Object theTarget, float theDuration, float theDelay, String theFieldName, float theEnd){\n\t\treturn addAni(true, theTarget, theDuration, theDelay, theFieldName, theEnd, defaultEasing, defaultTimeMode, theTarget, defaultCallback);\n\t}", "public T caseLiteral(Literal object)\n {\n return null;\n }", "public static Ani from(Object theTarget, float theDuration, String theFieldName, float theEnd, Easing theEasing){\n\t\treturn addAni(true, theTarget, theDuration, 0.0f, theFieldName, theEnd, theEasing, defaultTimeMode, theTarget, defaultCallback);\n\t}", "@AutoEscape\n\tpublic String getState();", "public static CasePreinstConditionValue get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tCasePreinstConditionValue result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public double predict(final Calendar when);", "String getTargetVariablePart();", "@WithName(\"schedule.delay\")\n @WithDefault(\"5s\")\n Duration scheduleDelay();", "private RefinementPhases(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "public static Ani from(Object theTarget, float theDuration, String theFieldName, float theEnd, Easing theEasing, String theCallback){\n\t\treturn addAni(true, theTarget, theDuration, 0.0f, theFieldName, theEnd, theEasing, defaultTimeMode, theTarget, theCallback);\n\t}", "public String getMoonPhaseName()\n\t{\n\t\tint moonInt;\n\t\ttry\n\t\t{\n\t\t\tmoonInt = Integer.valueOf(ageOfMoon);\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tmoonInt = 0;\n\t\t}\n\t\treturn (MOON_PHASE.getByAge(moonInt)).getTxtName();\n\t}", "Case createCase();", "public static CasePreinstConditionValue get(int value) {\n\t\tswitch (value) {\n\t\t\tcase INSTALL: return INSTALL_LITERAL;\n\t\t\tcase UPGRADE: return UPGRADE_LITERAL;\n\t\t\tcase ABORT_UPGRADE: return ABORT_UPGRADE_LITERAL;\n\t\t}\n\t\treturn null;\n\t}", "String getState();", "String getState();", "String getState();", "public static Condition meaningOfCode(Integer code) {return BY_LABEL.get(code);}", "public String createEvent(final boolean pastEvent, final String startDate,\n final String duration, final String mode, final boolean precoolOpted, String groupName)\n throws ParseException;", "SimpleLiteral createSimpleLiteral();", "java.lang.String getStateReason();", "public T casePragmaValue(PragmaValue object) {\n\t\treturn null;\n\t}", "public T caseDefExpression(DefExpression object)\r\n {\r\n return null;\r\n }", "java.lang.String getCondition();", "public Turn getWhen() {\n return when;\n }", "public JExpression createConstant(Outline outline, XmlString literal) {\n/* 237 */ JClass type = toType(outline, Aspect.EXPOSED);\n/* 238 */ for (CEnumConstant mem : this.members) {\n/* 239 */ if (mem.getLexicalValue().equals(literal.value))\n/* 240 */ return (JExpression)type.staticRef(mem.getName()); \n/* */ } \n/* 242 */ return null;\n/* */ }", "public Token printStateName(String tokenString) {\n Token token;\n\n switch(currentState) {\n case DEAD:\n System.out.println(\"DEAD\");\n token = null;\n break;\n\n case START:\n System.out.println(\"START\");\n token = null;\n break;\n\n case SUB:\n System.out.println(\"SUB -> \" + tokenString.trim());\n token = new Token(TokenType.SUB, tokenString.trim());\n break;\n\n case PLUS:\n System.out.println(\"PLUS -> \" + tokenString.trim());\n token = new Token(TokenType.PLUS, tokenString.trim());\n break;\n\n case DIV:\n System.out.println(\"DIV -> \" + tokenString.trim());\n token = new Token(TokenType.DIV, tokenString.trim());\n break;\n\n case MUL:\n System.out.println(\"MUL -> \" + tokenString.trim());\n token = new Token(TokenType.MUL, tokenString.trim());\n break;\n\n case RPAR:\n System.out.println(\"RPAR -> \" + tokenString.trim());\n token = new Token(TokenType.RPAR, tokenString.trim());\n break;\n\n case LPAR:\n System.out.println(\"LPAR -> \" + tokenString.trim());\n token = new Token(TokenType.LPAR, tokenString.trim());\n break;\n\n case EQ:\n System.out.println(\"EQ -> \" + tokenString.trim());\n token = new Token(TokenType.EQ, tokenString.trim());\n break;\n\n case SMICOLON:\n System.out.println(\"SMICOLON -> \" + tokenString.trim());\n token = new Token(TokenType.SMICOLON, tokenString.trim());\n break;\n\n case INT:\n System.out.println(\"INT -> \" + tokenString.trim());\n token = new Token(TokenType.INT, tokenString.trim());\n break;\n\n case VAR:\n System.out.println(\"VAR -> \" + tokenString.trim());\n token = new Token(TokenType.VAR, tokenString.trim());\n break;\n\n default:\n token = null;\n break;\n }\n\n return token;\n }", "public C1426h mo1735a() {\n return C1426h.IMMEDIATE;\n }", "public Statement getThenStm();", "public static EstimatingTechnique get(String literal) {\r\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\r\n\t\t\tEstimatingTechnique result = VALUES_ARRAY[i];\r\n\t\t\tif (result.toString().equals(literal)) {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getScheduleExpression() {\n return this.scheduleExpression;\n }", "public ICase retourneLaCase() ;", "public T casePragma(Pragma object) {\n\t\treturn null;\n\t}", "public interface Case {\r\n\t/** Interface of a single \"when x then a\" clause.\r\n\t */\r\n public interface When {\r\n \t/** Returns the condition. In a \"when x then a\" clause\r\n * the condition is \"x\".\r\n \t */\r\n public Object getCondition();\r\n /** Returns the value. In a \"when x then a\" clause\r\n * the condition is \"a\".\r\n */\r\n public Object getValue();\r\n }\r\n\r\n /** Sets the value being checked.\r\n */\r\n public void setCheckedValue(Object pValue);\r\n /** Returns the value being checked.\r\n */\r\n public Object getCheckedValue();\r\n /** Adds a new clause \"when pCondition then pValue\".\r\n */\r\n public void addWhen(Object pCondition, Object pValue);\r\n /** Adds a new when clause.\r\n */\r\n public void addWhen(When pWhen);\r\n /** Sets the value for the \"else\" clause.\r\n */\r\n public void setElseValue(Object pValue);\r\n /** Returns the value for the \"else\" clause.\r\n */\r\n public Object getElseValue();\r\n /** Returns the case clauses type.\r\n */\r\n public Column.Type getType();\r\n /** Returns the array of \"when\" clauses.\r\n */\r\n public When[] getWhens();\r\n}", "void process(InstrumentDefinition value);", "public static Ani from(Object theTarget, float theDuration, String theFieldName, float theEnd, Easing theEasing, Object theCallbackObject, String theCallback){\n\t\treturn addAni(true, theTarget, theDuration, 0.0f, theFieldName, theEnd, theEasing, defaultTimeMode, theCallbackObject, theCallback);\n\t}", "DefiningUnitType getDefiningUnit();", "private String makeEventStart(LocalDateTime date) {\n String name = \"DTSTART\";\n return formatTimeProperty(date, name) + \"\\n\";\n }", "public String calculateEnumerationLiteralAsString(Object value,IAttribute attribute)\r\n\t{\r\n\t\tString valueString = \"\";\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (value == null) {\r\n\t\t\t\treturn \"\";\r\n\t\t\t}\r\n\t\t\tif (!(value instanceof Identifier<?>)) {\r\n\t\t\t\treturn \"Value not an enumeration literal\";\r\n\t\t\t}\r\n\t\t\tIEnumeration<? extends ILiteral> enumeration = itemCommon.resolveEnumeration(attribute, monitor);\r\n\t\t\tIdentifier<? extends ILiteral> currentIdentifier = (Identifier<? extends ILiteral>) value;\r\n\t\t\tILiteral literal = enumeration.findEnumerationLiteral(currentIdentifier);\r\n\t\t\tvalueString = literal.getName();\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn valueString;\r\n\t}", "public String createStatement(Context ctx)\r\n {\r\n return AbstractAdjustmentType.NAME_PROPERTY + \" = \" + getName(); \r\n }", "Expression getCond();", "public LiteralExpression (String str){\n _value = str;\n }", "private EstimatingTechnique(int value, String name, String literal) {\r\n\t\tthis.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;\r\n\t}", "public T casePeriodicStatement(PeriodicStatement object) {\n\t\treturn null;\n\t}", "String getSourceVariablePart();", "public T caseDefinition(Definition object)\n {\n return null;\n }", "public T caseDefinition(Definition object)\n {\n return null;\n }", "public String getVerbFromSimplePast (String verbForm) {\n if (simplePastToPresentVerbMAP.containsKey(verbForm)) {\n return simplePastToPresentVerbMAP.get(verbForm);\n } else {\n if (verbForm.endsWith(\"ed\")) {\n return verbForm.substring(0, verbForm.length() - 2);\n } else if (verbForm.endsWith(\"d\")) {\n return verbForm.substring(0, verbForm.length() - 1);\n }\n }\n return verbForm;\n }", "Expression getActionSentence();", "public Date getWhen();", "public final EObject ruleWhenStatement() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n Token otherlv_3=null;\n Token otherlv_4=null;\n Token lv_excl_7_0=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n Token otherlv_12=null;\n Token otherlv_14=null;\n Token otherlv_16=null;\n Token otherlv_17=null;\n Token lv_excl_19_0=null;\n Token otherlv_20=null;\n EObject lv_condition_2_0 = null;\n\n EObject lv_conditionInterval_5_0 = null;\n\n EObject lv_event_6_0 = null;\n\n EObject lv_eventInterval_10_0 = null;\n\n EObject lv_condition_13_0 = null;\n\n EObject lv_times_15_0 = null;\n\n EObject lv_interval_18_0 = null;\n\n EObject lv_event_21_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:3006:2: ( ( ( ( ( ( () When ( ( ruleExpr ) ) Holds ) )=> ( () otherlv_1= When ( (lv_condition_2_0= ruleExpr ) ) otherlv_3= Holds ) ) otherlv_4= During ( (lv_conditionInterval_5_0= ruleTimeInterval ) ) ( (lv_event_6_0= ruleExpr ) ) ( (lv_excl_7_0= Exclusively ) )? otherlv_8= Occurs (otherlv_9= During ( (lv_eventInterval_10_0= ruleTimeInterval ) ) )? ) | ( ( ( ( () When ( ( ruleExpr ) ) Occurs ) )=> ( () otherlv_12= When ( (lv_condition_13_0= ruleExpr ) ) otherlv_14= Occurs ) ) ( (lv_times_15_0= ruleExpr ) ) otherlv_16= Times otherlv_17= During ( (lv_interval_18_0= ruleTimeInterval ) ) ( (lv_excl_19_0= Exclusively ) )? otherlv_20= Raises ( (lv_event_21_0= ruleExpr ) ) ) ) )\n // InternalSafetyParser.g:3007:2: ( ( ( ( ( () When ( ( ruleExpr ) ) Holds ) )=> ( () otherlv_1= When ( (lv_condition_2_0= ruleExpr ) ) otherlv_3= Holds ) ) otherlv_4= During ( (lv_conditionInterval_5_0= ruleTimeInterval ) ) ( (lv_event_6_0= ruleExpr ) ) ( (lv_excl_7_0= Exclusively ) )? otherlv_8= Occurs (otherlv_9= During ( (lv_eventInterval_10_0= ruleTimeInterval ) ) )? ) | ( ( ( ( () When ( ( ruleExpr ) ) Occurs ) )=> ( () otherlv_12= When ( (lv_condition_13_0= ruleExpr ) ) otherlv_14= Occurs ) ) ( (lv_times_15_0= ruleExpr ) ) otherlv_16= Times otherlv_17= During ( (lv_interval_18_0= ruleTimeInterval ) ) ( (lv_excl_19_0= Exclusively ) )? otherlv_20= Raises ( (lv_event_21_0= ruleExpr ) ) ) )\n {\n // InternalSafetyParser.g:3007:2: ( ( ( ( ( () When ( ( ruleExpr ) ) Holds ) )=> ( () otherlv_1= When ( (lv_condition_2_0= ruleExpr ) ) otherlv_3= Holds ) ) otherlv_4= During ( (lv_conditionInterval_5_0= ruleTimeInterval ) ) ( (lv_event_6_0= ruleExpr ) ) ( (lv_excl_7_0= Exclusively ) )? otherlv_8= Occurs (otherlv_9= During ( (lv_eventInterval_10_0= ruleTimeInterval ) ) )? ) | ( ( ( ( () When ( ( ruleExpr ) ) Occurs ) )=> ( () otherlv_12= When ( (lv_condition_13_0= ruleExpr ) ) otherlv_14= Occurs ) ) ( (lv_times_15_0= ruleExpr ) ) otherlv_16= Times otherlv_17= During ( (lv_interval_18_0= ruleTimeInterval ) ) ( (lv_excl_19_0= Exclusively ) )? otherlv_20= Raises ( (lv_event_21_0= ruleExpr ) ) ) )\n int alt42=2;\n int LA42_0 = input.LA(1);\n\n if ( (LA42_0==When) ) {\n int LA42_1 = input.LA(2);\n\n if ( (synpred5_InternalSafetyParser()) ) {\n alt42=1;\n }\n else if ( (synpred6_InternalSafetyParser()) ) {\n alt42=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 42, 1, input);\n\n throw nvae;\n }\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 42, 0, input);\n\n throw nvae;\n }\n switch (alt42) {\n case 1 :\n // InternalSafetyParser.g:3008:3: ( ( ( ( () When ( ( ruleExpr ) ) Holds ) )=> ( () otherlv_1= When ( (lv_condition_2_0= ruleExpr ) ) otherlv_3= Holds ) ) otherlv_4= During ( (lv_conditionInterval_5_0= ruleTimeInterval ) ) ( (lv_event_6_0= ruleExpr ) ) ( (lv_excl_7_0= Exclusively ) )? otherlv_8= Occurs (otherlv_9= During ( (lv_eventInterval_10_0= ruleTimeInterval ) ) )? )\n {\n // InternalSafetyParser.g:3008:3: ( ( ( ( () When ( ( ruleExpr ) ) Holds ) )=> ( () otherlv_1= When ( (lv_condition_2_0= ruleExpr ) ) otherlv_3= Holds ) ) otherlv_4= During ( (lv_conditionInterval_5_0= ruleTimeInterval ) ) ( (lv_event_6_0= ruleExpr ) ) ( (lv_excl_7_0= Exclusively ) )? otherlv_8= Occurs (otherlv_9= During ( (lv_eventInterval_10_0= ruleTimeInterval ) ) )? )\n // InternalSafetyParser.g:3009:4: ( ( ( () When ( ( ruleExpr ) ) Holds ) )=> ( () otherlv_1= When ( (lv_condition_2_0= ruleExpr ) ) otherlv_3= Holds ) ) otherlv_4= During ( (lv_conditionInterval_5_0= ruleTimeInterval ) ) ( (lv_event_6_0= ruleExpr ) ) ( (lv_excl_7_0= Exclusively ) )? otherlv_8= Occurs (otherlv_9= During ( (lv_eventInterval_10_0= ruleTimeInterval ) ) )?\n {\n // InternalSafetyParser.g:3009:4: ( ( ( () When ( ( ruleExpr ) ) Holds ) )=> ( () otherlv_1= When ( (lv_condition_2_0= ruleExpr ) ) otherlv_3= Holds ) )\n // InternalSafetyParser.g:3010:5: ( ( () When ( ( ruleExpr ) ) Holds ) )=> ( () otherlv_1= When ( (lv_condition_2_0= ruleExpr ) ) otherlv_3= Holds )\n {\n // InternalSafetyParser.g:3022:5: ( () otherlv_1= When ( (lv_condition_2_0= ruleExpr ) ) otherlv_3= Holds )\n // InternalSafetyParser.g:3023:6: () otherlv_1= When ( (lv_condition_2_0= ruleExpr ) ) otherlv_3= Holds\n {\n // InternalSafetyParser.g:3023:6: ()\n // InternalSafetyParser.g:3024:7: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\t\t\tgrammarAccess.getWhenStatementAccess().getWhenHoldsStatementAction_0_0_0_0(),\n \t\t\t\t\t\t\t\tcurrent);\n \t\t\t\t\t\t\n }\n\n }\n\n otherlv_1=(Token)match(input,When,FollowSets000.FOLLOW_21); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_1, grammarAccess.getWhenStatementAccess().getWhenKeyword_0_0_0_1());\n \t\t\t\t\t\n }\n // InternalSafetyParser.g:3034:6: ( (lv_condition_2_0= ruleExpr ) )\n // InternalSafetyParser.g:3035:7: (lv_condition_2_0= ruleExpr )\n {\n // InternalSafetyParser.g:3035:7: (lv_condition_2_0= ruleExpr )\n // InternalSafetyParser.g:3036:8: lv_condition_2_0= ruleExpr\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getWhenStatementAccess().getConditionExprParserRuleCall_0_0_0_2_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_38);\n lv_condition_2_0=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getWhenStatementRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"condition\",\n \t\t\t\t\t\t\t\t\tlv_condition_2_0,\n \t\t\t\t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.Expr\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,Holds,FollowSets000.FOLLOW_39); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getWhenStatementAccess().getHoldsKeyword_0_0_0_3());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_4=(Token)match(input,During,FollowSets000.FOLLOW_29); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_4, grammarAccess.getWhenStatementAccess().getDuringKeyword_0_1());\n \t\t\t\n }\n // InternalSafetyParser.g:3063:4: ( (lv_conditionInterval_5_0= ruleTimeInterval ) )\n // InternalSafetyParser.g:3064:5: (lv_conditionInterval_5_0= ruleTimeInterval )\n {\n // InternalSafetyParser.g:3064:5: (lv_conditionInterval_5_0= ruleTimeInterval )\n // InternalSafetyParser.g:3065:6: lv_conditionInterval_5_0= ruleTimeInterval\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getWhenStatementAccess().getConditionIntervalTimeIntervalParserRuleCall_0_2_0());\n \t\t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_21);\n lv_conditionInterval_5_0=ruleTimeInterval();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getWhenStatementRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"conditionInterval\",\n \t\t\t\t\t\t\tlv_conditionInterval_5_0,\n \t\t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.TimeInterval\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n // InternalSafetyParser.g:3082:4: ( (lv_event_6_0= ruleExpr ) )\n // InternalSafetyParser.g:3083:5: (lv_event_6_0= ruleExpr )\n {\n // InternalSafetyParser.g:3083:5: (lv_event_6_0= ruleExpr )\n // InternalSafetyParser.g:3084:6: lv_event_6_0= ruleExpr\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getWhenStatementAccess().getEventExprParserRuleCall_0_3_0());\n \t\t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_40);\n lv_event_6_0=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getWhenStatementRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"event\",\n \t\t\t\t\t\t\tlv_event_6_0,\n \t\t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.Expr\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n // InternalSafetyParser.g:3101:4: ( (lv_excl_7_0= Exclusively ) )?\n int alt39=2;\n int LA39_0 = input.LA(1);\n\n if ( (LA39_0==Exclusively) ) {\n alt39=1;\n }\n switch (alt39) {\n case 1 :\n // InternalSafetyParser.g:3102:5: (lv_excl_7_0= Exclusively )\n {\n // InternalSafetyParser.g:3102:5: (lv_excl_7_0= Exclusively )\n // InternalSafetyParser.g:3103:6: lv_excl_7_0= Exclusively\n {\n lv_excl_7_0=(Token)match(input,Exclusively,FollowSets000.FOLLOW_41); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(lv_excl_7_0, grammarAccess.getWhenStatementAccess().getExclExclusivelyKeyword_0_4_0());\n \t\t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getWhenStatementRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tsetWithLastConsumed(current, \"excl\", lv_excl_7_0, \"exclusively\");\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_8=(Token)match(input,Occurs,FollowSets000.FOLLOW_42); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_8, grammarAccess.getWhenStatementAccess().getOccursKeyword_0_5());\n \t\t\t\n }\n // InternalSafetyParser.g:3119:4: (otherlv_9= During ( (lv_eventInterval_10_0= ruleTimeInterval ) ) )?\n int alt40=2;\n int LA40_0 = input.LA(1);\n\n if ( (LA40_0==During) ) {\n alt40=1;\n }\n switch (alt40) {\n case 1 :\n // InternalSafetyParser.g:3120:5: otherlv_9= During ( (lv_eventInterval_10_0= ruleTimeInterval ) )\n {\n otherlv_9=(Token)match(input,During,FollowSets000.FOLLOW_29); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(otherlv_9, grammarAccess.getWhenStatementAccess().getDuringKeyword_0_6_0());\n \t\t\t\t\n }\n // InternalSafetyParser.g:3124:5: ( (lv_eventInterval_10_0= ruleTimeInterval ) )\n // InternalSafetyParser.g:3125:6: (lv_eventInterval_10_0= ruleTimeInterval )\n {\n // InternalSafetyParser.g:3125:6: (lv_eventInterval_10_0= ruleTimeInterval )\n // InternalSafetyParser.g:3126:7: lv_eventInterval_10_0= ruleTimeInterval\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getWhenStatementAccess().getEventIntervalTimeIntervalParserRuleCall_0_6_1_0());\n \t\t\t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_2);\n lv_eventInterval_10_0=ruleTimeInterval();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getWhenStatementRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"eventInterval\",\n \t\t\t\t\t\t\t\tlv_eventInterval_10_0,\n \t\t\t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.TimeInterval\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalSafetyParser.g:3146:3: ( ( ( ( () When ( ( ruleExpr ) ) Occurs ) )=> ( () otherlv_12= When ( (lv_condition_13_0= ruleExpr ) ) otherlv_14= Occurs ) ) ( (lv_times_15_0= ruleExpr ) ) otherlv_16= Times otherlv_17= During ( (lv_interval_18_0= ruleTimeInterval ) ) ( (lv_excl_19_0= Exclusively ) )? otherlv_20= Raises ( (lv_event_21_0= ruleExpr ) ) )\n {\n // InternalSafetyParser.g:3146:3: ( ( ( ( () When ( ( ruleExpr ) ) Occurs ) )=> ( () otherlv_12= When ( (lv_condition_13_0= ruleExpr ) ) otherlv_14= Occurs ) ) ( (lv_times_15_0= ruleExpr ) ) otherlv_16= Times otherlv_17= During ( (lv_interval_18_0= ruleTimeInterval ) ) ( (lv_excl_19_0= Exclusively ) )? otherlv_20= Raises ( (lv_event_21_0= ruleExpr ) ) )\n // InternalSafetyParser.g:3147:4: ( ( ( () When ( ( ruleExpr ) ) Occurs ) )=> ( () otherlv_12= When ( (lv_condition_13_0= ruleExpr ) ) otherlv_14= Occurs ) ) ( (lv_times_15_0= ruleExpr ) ) otherlv_16= Times otherlv_17= During ( (lv_interval_18_0= ruleTimeInterval ) ) ( (lv_excl_19_0= Exclusively ) )? otherlv_20= Raises ( (lv_event_21_0= ruleExpr ) )\n {\n // InternalSafetyParser.g:3147:4: ( ( ( () When ( ( ruleExpr ) ) Occurs ) )=> ( () otherlv_12= When ( (lv_condition_13_0= ruleExpr ) ) otherlv_14= Occurs ) )\n // InternalSafetyParser.g:3148:5: ( ( () When ( ( ruleExpr ) ) Occurs ) )=> ( () otherlv_12= When ( (lv_condition_13_0= ruleExpr ) ) otherlv_14= Occurs )\n {\n // InternalSafetyParser.g:3160:5: ( () otherlv_12= When ( (lv_condition_13_0= ruleExpr ) ) otherlv_14= Occurs )\n // InternalSafetyParser.g:3161:6: () otherlv_12= When ( (lv_condition_13_0= ruleExpr ) ) otherlv_14= Occurs\n {\n // InternalSafetyParser.g:3161:6: ()\n // InternalSafetyParser.g:3162:7: \n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\t\t\t\tgrammarAccess.getWhenStatementAccess().getWhenOccursStatmentAction_1_0_0_0(),\n \t\t\t\t\t\t\t\tcurrent);\n \t\t\t\t\t\t\n }\n\n }\n\n otherlv_12=(Token)match(input,When,FollowSets000.FOLLOW_21); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_12, grammarAccess.getWhenStatementAccess().getWhenKeyword_1_0_0_1());\n \t\t\t\t\t\n }\n // InternalSafetyParser.g:3172:6: ( (lv_condition_13_0= ruleExpr ) )\n // InternalSafetyParser.g:3173:7: (lv_condition_13_0= ruleExpr )\n {\n // InternalSafetyParser.g:3173:7: (lv_condition_13_0= ruleExpr )\n // InternalSafetyParser.g:3174:8: lv_condition_13_0= ruleExpr\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getWhenStatementAccess().getConditionExprParserRuleCall_1_0_0_2_0());\n \t\t\t\t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_41);\n lv_condition_13_0=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getWhenStatementRule());\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tset(\n \t\t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\t\"condition\",\n \t\t\t\t\t\t\t\t\tlv_condition_13_0,\n \t\t\t\t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.Expr\");\n \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_14=(Token)match(input,Occurs,FollowSets000.FOLLOW_21); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(otherlv_14, grammarAccess.getWhenStatementAccess().getOccursKeyword_1_0_0_3());\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n // InternalSafetyParser.g:3197:4: ( (lv_times_15_0= ruleExpr ) )\n // InternalSafetyParser.g:3198:5: (lv_times_15_0= ruleExpr )\n {\n // InternalSafetyParser.g:3198:5: (lv_times_15_0= ruleExpr )\n // InternalSafetyParser.g:3199:6: lv_times_15_0= ruleExpr\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getWhenStatementAccess().getTimesExprParserRuleCall_1_1_0());\n \t\t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_43);\n lv_times_15_0=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getWhenStatementRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"times\",\n \t\t\t\t\t\t\tlv_times_15_0,\n \t\t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.Expr\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n otherlv_16=(Token)match(input,Times,FollowSets000.FOLLOW_39); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_16, grammarAccess.getWhenStatementAccess().getTimesKeyword_1_2());\n \t\t\t\n }\n otherlv_17=(Token)match(input,During,FollowSets000.FOLLOW_29); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_17, grammarAccess.getWhenStatementAccess().getDuringKeyword_1_3());\n \t\t\t\n }\n // InternalSafetyParser.g:3224:4: ( (lv_interval_18_0= ruleTimeInterval ) )\n // InternalSafetyParser.g:3225:5: (lv_interval_18_0= ruleTimeInterval )\n {\n // InternalSafetyParser.g:3225:5: (lv_interval_18_0= ruleTimeInterval )\n // InternalSafetyParser.g:3226:6: lv_interval_18_0= ruleTimeInterval\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getWhenStatementAccess().getIntervalTimeIntervalParserRuleCall_1_4_0());\n \t\t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_44);\n lv_interval_18_0=ruleTimeInterval();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getWhenStatementRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"interval\",\n \t\t\t\t\t\t\tlv_interval_18_0,\n \t\t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.TimeInterval\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n // InternalSafetyParser.g:3243:4: ( (lv_excl_19_0= Exclusively ) )?\n int alt41=2;\n int LA41_0 = input.LA(1);\n\n if ( (LA41_0==Exclusively) ) {\n alt41=1;\n }\n switch (alt41) {\n case 1 :\n // InternalSafetyParser.g:3244:5: (lv_excl_19_0= Exclusively )\n {\n // InternalSafetyParser.g:3244:5: (lv_excl_19_0= Exclusively )\n // InternalSafetyParser.g:3245:6: lv_excl_19_0= Exclusively\n {\n lv_excl_19_0=(Token)match(input,Exclusively,FollowSets000.FOLLOW_45); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewLeafNode(lv_excl_19_0, grammarAccess.getWhenStatementAccess().getExclExclusivelyKeyword_1_5_0());\n \t\t\t\t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getWhenStatementRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tsetWithLastConsumed(current, \"excl\", lv_excl_19_0, \"exclusively\");\n \t\t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n otherlv_20=(Token)match(input,Raises,FollowSets000.FOLLOW_21); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_20, grammarAccess.getWhenStatementAccess().getRaisesKeyword_1_6());\n \t\t\t\n }\n // InternalSafetyParser.g:3261:4: ( (lv_event_21_0= ruleExpr ) )\n // InternalSafetyParser.g:3262:5: (lv_event_21_0= ruleExpr )\n {\n // InternalSafetyParser.g:3262:5: (lv_event_21_0= ruleExpr )\n // InternalSafetyParser.g:3263:6: lv_event_21_0= ruleExpr\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getWhenStatementAccess().getEventExprParserRuleCall_1_7_0());\n \t\t\t\t\t\n }\n pushFollow(FollowSets000.FOLLOW_2);\n lv_event_21_0=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getWhenStatementRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"event\",\n \t\t\t\t\t\t\tlv_event_21_0,\n \t\t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.Expr\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public String getAtmState();", "public final Enumerator ruleTimeEventType() throws RecognitionException {\r\n Enumerator current = null;\r\n\r\n Token enumLiteral_0=null;\r\n Token enumLiteral_1=null;\r\n\r\n enterRule(); \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3947:28: ( ( (enumLiteral_0= 'after' ) | (enumLiteral_1= 'every' ) ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3948:1: ( (enumLiteral_0= 'after' ) | (enumLiteral_1= 'every' ) )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3948:1: ( (enumLiteral_0= 'after' ) | (enumLiteral_1= 'every' ) )\r\n int alt58=2;\r\n int LA58_0 = input.LA(1);\r\n\r\n if ( (LA58_0==58) ) {\r\n alt58=1;\r\n }\r\n else if ( (LA58_0==59) ) {\r\n alt58=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 58, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt58) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3948:2: (enumLiteral_0= 'after' )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3948:2: (enumLiteral_0= 'after' )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3948:4: enumLiteral_0= 'after'\r\n {\r\n enumLiteral_0=(Token)match(input,58,FOLLOW_58_in_ruleTimeEventType9095); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n current = grammarAccess.getTimeEventTypeAccess().getAfterEnumLiteralDeclaration_0().getEnumLiteral().getInstance();\r\n newLeafNode(enumLiteral_0, grammarAccess.getTimeEventTypeAccess().getAfterEnumLiteralDeclaration_0()); \r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3954:6: (enumLiteral_1= 'every' )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3954:6: (enumLiteral_1= 'every' )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3954:8: enumLiteral_1= 'every'\r\n {\r\n enumLiteral_1=(Token)match(input,59,FOLLOW_59_in_ruleTimeEventType9112); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n current = grammarAccess.getTimeEventTypeAccess().getEveryEnumLiteralDeclaration_1().getEnumLiteral().getInstance();\r\n newLeafNode(enumLiteral_1, grammarAccess.getTimeEventTypeAccess().getEveryEnumLiteralDeclaration_1()); \r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public CodeUnit getDefinedCodeUnitBefore(Address addr);", "public Literal createLiteral(double b) throws ModelException{\n\n return createLiteral(String.valueOf(b));\n }", "public Expression inlineValue(Environment env, Context ctx) {\n if (type == Type.tString && isConstant()) {\n StringBuffer buffer = inlineValueSB(env, ctx, new StringBuffer());\n if (buffer != null) {\n // We were able to evaluate the String concatenation.\n return new StringExpression(where, buffer.toString());\n }\n }\n // For some reason inlinValueSB() failed to produce a value.\n // Use the older, less efficient, inlining mechanism.\n return super.inlineValue(env, ctx);\n }", "public T caseStateDefinition(StateDefinition object) {\n\t\treturn null;\n\t}", "CdapSuspendScheduleStep createCdapSuspendScheduleStep();" ]
[ "0.6436265", "0.50017196", "0.48992395", "0.4616759", "0.42966482", "0.42966482", "0.42334962", "0.4106166", "0.40930584", "0.40930584", "0.40696856", "0.4054839", "0.40527573", "0.39728388", "0.39727747", "0.3956525", "0.3953338", "0.3951337", "0.39355162", "0.3924167", "0.39199984", "0.39149898", "0.38938954", "0.38848865", "0.38845506", "0.38621092", "0.38508806", "0.38375837", "0.38355044", "0.38355044", "0.38322663", "0.38322663", "0.3829901", "0.3828656", "0.38273644", "0.38167405", "0.3796724", "0.37947023", "0.37839815", "0.37817517", "0.3773312", "0.37621558", "0.3759495", "0.37581357", "0.37533993", "0.37367603", "0.37339902", "0.37300956", "0.37294772", "0.3721018", "0.37169918", "0.37067026", "0.37045547", "0.36983782", "0.36878973", "0.36859426", "0.368462", "0.368462", "0.368462", "0.36789033", "0.36660495", "0.36658674", "0.36645404", "0.36622822", "0.36494905", "0.3645272", "0.36411762", "0.36366147", "0.36347425", "0.3629836", "0.3627665", "0.36215013", "0.35980377", "0.35976642", "0.35927826", "0.35907257", "0.35846245", "0.35821173", "0.35820565", "0.35751688", "0.3573664", "0.3569125", "0.35671633", "0.35603487", "0.35522214", "0.35482177", "0.35471436", "0.35469934", "0.35469934", "0.35435724", "0.35428745", "0.35398775", "0.3531545", "0.35256845", "0.35234872", "0.35204813", "0.35189846", "0.35147995", "0.35082877", "0.350771" ]
0.5851599
1
Returns the 'During' literal with the specified name.
public static During getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { During result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private During(int value, String name, String literal)\n {\n this.value = value;\n this.name = name;\n this.literal = literal;\n }", "public static During get(String literal)\n {\n for (int i = 0; i < VALUES_ARRAY.length; ++i)\n {\n During result = VALUES_ARRAY[i];\n if (result.toString().equals(literal))\n {\n return result;\n }\n }\n return null;\n }", "Transition createTransition(String literal);", "public String getAsNameAbbreviated(String itemName);", "Effect getMoveEName();", "ConditionNameReference createConditionNameReference();", "public Classification nameOf(String name) {\n throw new IllegalStateException(\"Unknown definition: \" + this); // basically unreachable\n }", "String getAbbr();", "States(String sAbbr, String sName)\n {\n this.sAbbr = sAbbr;\n this.sName = sName;\n }", "@Override\n public String getMovementAbbr(EntityMovementType mtype) {\n switch (mtype) {\n case MOVE_SKID:\n return \"S\";\n case MOVE_NONE:\n return \"N\";\n case MOVE_WALK:\n return \"W\";\n case MOVE_RUN:\n return \"R\";\n case MOVE_JUMP:\n return \"J\";\n case MOVE_SPRINT:\n return \"Sp\";\n default:\n return \"?\";\n }\n }", "private String name() {\n return Strings.concat(Token.DOLLAR, name.string());\n }", "DefinitionName getDefName(String n){\n \tDefinitionName rc = null;\n \ttry {\n\t\t\trc = new DefinitionName(n);\n\t\t} catch (DmcValueException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn(rc);\n }", "public String getMethodName(String name) {\n return methodResources.getString(name);\n }", "public static Statistic get(String name) {\n return lookup.get(name.toLowerCase());\n }", "public String getUs1120incomeStmtName() {\n\n return this.us1120incomeStmtName;\n }", "public String getMoonPhaseName()\n\t{\n\t\tint moonInt;\n\t\ttry\n\t\t{\n\t\t\tmoonInt = Integer.valueOf(ageOfMoon);\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tmoonInt = 0;\n\t\t}\n\t\treturn (MOON_PHASE.getByAge(moonInt)).getTxtName();\n\t}", "public Stop(String name) {\n this.name = name;\n }", "public static Transition searchByName(String name, gov.nasa.arc.l2tools.DataObject object) {\n\treturn (Transition)object.searchByName(Transition.class,name);\n}", "TemplateSpecifier getName();", "public String getStateName() {\n return name;\n }", "String getVarName(String name);", "VirtualMachine.DefinitionStages.Blank define(String name);", "VirtualMachine.DefinitionStages.Blank define(String name);", "public State(String name) {\n\t\tthis.name = name;\n\t\tif (name.endsWith(\"a\")) {\n\t\t\tsetAccepting();\n\t\t} else if (name.endsWith(\"d\")) {\n\t\t\tsetDeclining();\n\t\t} else if (name.endsWith(\"f\")) {\n\t\t\tsetFinal(true);\n\t\t}\n\t}", "public String createStatement(Context ctx)\r\n {\r\n return AbstractAdjustmentType.NAME_PROPERTY + \" = \" + getName(); \r\n }", "@Test\n public void stateNameExtraction() {\n final String EVENT_NAME = \"TestEvent\";\n StateTransitionEvent event = new StateTransitionEventImpl( EVENT_NAME );\n\n assertThat( event.getEventName(), equalTo( EVENT_NAME ) );\n LOG.debug( \"Successfully created stateTransitionEvent=[\" + event + \"]\" );\n }", "PropertyName getName();", "Caseless getName();", "SimPolicy.DefinitionStages.Blank define(String name);", "private String out_name(Enum<?> e) {\n return e.name().toLowerCase();\n }", "InstrumentDefinition definition();", "VirtualMachineTemplate.DefinitionStages.Blank define(String name);", "@WithName(\"schedule.delay\")\n @WithDefault(\"5s\")\n Duration scheduleDelay();", "public NamedEntity(String name, String abbrev) {\n this.name= name;\n this.abbrev = abbrev;\n }", "private String getName(String name) {\n\t\tint n;\n\t\tif (name.startsWith(\"place_\")) {\n\t\t\tn = Integer.parseInt(name.substring(6));\n\t\t} else if (name.startsWith(\"t_\")) {\n\t\t\tn = Integer.parseInt(name.substring(2));\n\t\t} else {\n\t\t\treturn name;\n\t\t}\n\t\tif (n < net.getPlaces().size()) {\n\t\t\tPlace p = (Place) net.getPlaces().get(n);\n\t\t\treturn \"Place \" + p.getIdentifier();\n\t\t}\n\t\tn -= net.getPlaces().size();\n\t\tn--;\n\t\tif (n < net.getTransitions().size()) {\n\t\t\tTransition t = (Transition) net.getTransitions().get(n);\n\t\t\treturn \"Transition \" + t.getIdentifier();\n\t\t}\n\t\treturn name;\n\t}", "public void setEventName(String name);", "public String getInterruptName(int inum) {\n return interrupt_name[inum];\n }", "public static String getFieldUpperCase(String name) {\r\n\t\tString aux = name.substring(0, 1);\r\n\t\tString mayus = aux.toUpperCase()+name.substring(1);\r\n\t\treturn mayus;\r\n\t}", "public StaticScript name(String name) {\n this.name = name;\n return this;\n }", "SimpleName getName();", "ElementNameCode(int token, String name) {\n super(token);\n this.name = name;\n }", "Name getName();", "public Identifier getName();", "String getEntityName();", "public static Ani from(Object theTarget, float theDuration, float theDelay, String theFieldName, float theEnd, Easing theEasing){\n\t\treturn addAni(true, theTarget, theDuration, theDelay, theFieldName, theEnd, theEasing, defaultTimeMode, theTarget, defaultCallback);\n\t}", "private String node(String name) { return prefix + \"AST\" + name + \"Node\"; }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.PolicyNamedInsured getNamedInsured();", "@Override\r\n\tpublic Expression doIdentifierDecision(String name) {\n\t\treturn super.doIdentifierDecision(name);\r\n\t}", "Event generateEventWithName(String description) throws Exception {\n fordate++;\n return new Event(\n new Description(description),\n new StartTime(\"0800\"),\n new StartDate(Integer.toString(Integer.parseInt(\"100301\") + fordate)),\n new EndTime(\"1200\"),\n new EndDate(Integer.toString(Integer.parseInt(\"100301\") + fordate)),\n new Location(\"House of 1\"),\n new UniqueTagList(new Tag(\"tag\"))\n );\n }", "public String getAsNameAbbreviated(String itemName, String defaultValue);", "public java.lang.String getStatementname() {\n return statementname;\n }", "public SC getElementName() { return _elementName; }", "public String getPhaseName() {\r\n return this.phaseName;\r\n }", "public void setUs1120incomeStmtName(String us1120incomeStmtName) {\n\n this.us1120incomeStmtName = us1120incomeStmtName;\n }", "String getSegmentName();", "public static ModifierSlot getByEnumName(final String name)\n {\n return getByEnumName(ModifierSlot.class, name);\n }", "public NamedDirectiveIfc getNamedDirective ( String name )\n throws UnknownNamedDirectiveException;", "public Token printStateName(String tokenString) {\n Token token;\n\n switch(currentState) {\n case DEAD:\n System.out.println(\"DEAD\");\n token = null;\n break;\n\n case START:\n System.out.println(\"START\");\n token = null;\n break;\n\n case SUB:\n System.out.println(\"SUB -> \" + tokenString.trim());\n token = new Token(TokenType.SUB, tokenString.trim());\n break;\n\n case PLUS:\n System.out.println(\"PLUS -> \" + tokenString.trim());\n token = new Token(TokenType.PLUS, tokenString.trim());\n break;\n\n case DIV:\n System.out.println(\"DIV -> \" + tokenString.trim());\n token = new Token(TokenType.DIV, tokenString.trim());\n break;\n\n case MUL:\n System.out.println(\"MUL -> \" + tokenString.trim());\n token = new Token(TokenType.MUL, tokenString.trim());\n break;\n\n case RPAR:\n System.out.println(\"RPAR -> \" + tokenString.trim());\n token = new Token(TokenType.RPAR, tokenString.trim());\n break;\n\n case LPAR:\n System.out.println(\"LPAR -> \" + tokenString.trim());\n token = new Token(TokenType.LPAR, tokenString.trim());\n break;\n\n case EQ:\n System.out.println(\"EQ -> \" + tokenString.trim());\n token = new Token(TokenType.EQ, tokenString.trim());\n break;\n\n case SMICOLON:\n System.out.println(\"SMICOLON -> \" + tokenString.trim());\n token = new Token(TokenType.SMICOLON, tokenString.trim());\n break;\n\n case INT:\n System.out.println(\"INT -> \" + tokenString.trim());\n token = new Token(TokenType.INT, tokenString.trim());\n break;\n\n case VAR:\n System.out.println(\"VAR -> \" + tokenString.trim());\n token = new Token(TokenType.VAR, tokenString.trim());\n break;\n\n default:\n token = null;\n break;\n }\n\n return token;\n }", "public static long elapsing(String name) {\n if (!timers.containsKey(name)) {\n return -1;\n }\n return timers.get(name).getElapsed();\n }", "default String turnAlarmOn() {\n return \"Turning the vehicle alarm on.\";\n }", "public abstract String getMissionName();", "String getLiteral();", "String getLiteral();", "String getPresetName();", "public Variable getVariable(String name);", "State(String name)\n\t\t{\n\t\t\tthis.name = name;\n\t\t}", "public String getCaseName() {\n\t\tStackTraceElement stack[] = (new Throwable()).getStackTrace();\n\t\tint i = stack[1].toString().indexOf(\"(\");\n\t\tString tempStr1 = stack[1].toString().substring(0, i);\n\t\treturn tempStr1.trim();\n\t}", "public void defineNamedDirective ( NamedDirectiveDefIfc namedDirectiveDef );", "public void setModifierName(String modifierName) {\n this.modifierName = modifierName;\n }", "void setStateName(String name);", "public EventName getName() {\n return this.name;\n }", "public String toSqlNotation(String umlName) {\r\n\t\tPattern p = Pattern.compile(\"(\\\\p{Lower})(\\\\p{Upper})\");\r\n\t\tMatcher m = p.matcher(umlName);\r\n\t\tString sqlName = m.replaceAll(\"$1_$2\");\r\n\t\tsqlName = sqlName.toUpperCase();\r\n\t\treturn sqlName;\r\n\t}", "public HL7A04(String name) {\n\t\tsuper(name);\n\t\taddSegment(new HL7Segment(\"MSH\"));\n\t\taddSegment(new HL7Segment(\"EVN\"));\n\t\taddSegment(new HL7Segment(\"PID\"));\n\t\taddSegment(new HL7Segment(\"PV1\"));\n\t}", "int getNameSourceStart();", "public static AbiDefinition getAbiDefinition(String name, String contractAbi) {\n List<AbiDefinition> abiArr = JsonUtils.toJavaObjectList(contractAbi, AbiDefinition.class);\n AbiDefinition result = null;\n for (AbiDefinition abiDefinition : abiArr) {\n if (ConstantProperties.TYPE_FUNCTION.equals(abiDefinition.getType())\n && name.equals(abiDefinition.getName())) {\n result = abiDefinition;\n break;\n } \n }\n return result;\n }", "@Override\r\n\t\tpublic String getAbilityName() {\n\t\t\treturn \"Death\";\r\n\t\t\t\r\n\t\t}", "public static Ani from(Object theTarget, float theDuration, float theDelay, String theFieldName, float theEnd, Easing theEasing, String theCallback){\n\t\treturn addAni(true, theTarget, theDuration, theDelay, theFieldName, theEnd, theEasing, defaultTimeMode, theTarget, theCallback);\n\t}", "protected String getInstrumentName() {\n\t\treturn this.instrument;\n\t}", "public AndGate( String name, float delay ) {\n\tsuper( name, delay );\n }", "SpecialNamesConditionNameReference createSpecialNamesConditionNameReference();", "String getInstruction();", "java.lang.String getState();", "public Boolean onDuring(Double duration, String finalState)\r\n\t{\r\n\t\treturn onDuring(duration, finalState, TuxAPIConst.SPV_VERYFAST);\r\n\t}", "public String getDefinedName() {\n return definedName;\n }", "public synchronized RegionState\n getRegionTransitionState(final String regionName) {\n return regionsInTransition.get(regionName);\n }", "String getCondition();", "public Action(String name) {\n this.name = name;\n }", "public String getAeName() {\n\t\treturn name;\n\t}", "public String getUnitName() throws Exception {\r\n return (String) getField(BaseAuditContestInterceptor.class, this, \"unitName\");\r\n }", "String getStageName();", "public void enterEventName(String eventName) {\n Reporter.addStepLog(\"Enter Event Name \" + eventName + \"On Event Name Field \" + _eventNameField.toString());\n sendTextToElement(_eventNameField, eventName);\n log.info(\"Enter Event Name \" + eventName + \"On Event Name Field \" + _eventNameField.toString());\n }", "public String getModifierName() {\n return modifierName;\n }", "String getVarName();", "String getVarName();", "String getVarName();", "public interface ProcessingInstructionEvent extends LocatedEvent {\n /**\n * Returns the target of the processing instruction.\n */\n String getName();\n /**\n * Returns the part of the processing instruction following the\n * target. Leading white space is not included.\n * The string will be empty rather than null if the processing\n * instruction contains only a target.\n */\n String getInstruction();\n}", "public java.util.List<irestads.model.AdsItem> findByTimeDuring(\n\t\tint timeDuring)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public String getCauseName() {\n\t\treturn causeName;\n\t}", "@VTID(27)\n java.lang.String getSourceName();", "String getOnAction();" ]
[ "0.5680801", "0.5051136", "0.50091356", "0.45429075", "0.4479618", "0.44708738", "0.44583905", "0.4399166", "0.43944582", "0.43348247", "0.4229334", "0.4203949", "0.4189124", "0.41786796", "0.41486716", "0.41270092", "0.4105544", "0.40915704", "0.40873042", "0.40856117", "0.40828407", "0.40755838", "0.40755838", "0.4067738", "0.40612364", "0.4056881", "0.4044403", "0.40363947", "0.4025355", "0.40218163", "0.40211004", "0.40171555", "0.40129116", "0.40077412", "0.3978911", "0.39667836", "0.39651763", "0.39644754", "0.39625567", "0.39568508", "0.3948851", "0.39467317", "0.39361864", "0.39230654", "0.39223945", "0.390796", "0.39041618", "0.3903116", "0.3895117", "0.38839936", "0.38639966", "0.38626343", "0.38538685", "0.38464308", "0.38461146", "0.3844995", "0.383758", "0.38354042", "0.38290292", "0.3816838", "0.38151723", "0.38107073", "0.38107073", "0.38021693", "0.38020074", "0.37976146", "0.37946486", "0.37938583", "0.37877607", "0.3784696", "0.3781297", "0.3780345", "0.37789658", "0.3778434", "0.37750024", "0.37727088", "0.37721744", "0.37700695", "0.37647983", "0.37514776", "0.37506172", "0.37505388", "0.37496993", "0.37489268", "0.37472108", "0.37467355", "0.37429118", "0.37422928", "0.37417024", "0.37355036", "0.37343234", "0.37326804", "0.37282214", "0.37282214", "0.37282214", "0.3726807", "0.37259737", "0.37257722", "0.37252373", "0.37237197" ]
0.602877
0
Returns the 'During' literal with the specified integer value.
public static During get(int value) { switch (value) { case IN_PROG_VALUE: return IN_PROG; case AFTER_COMPLETION_VALUE: return AFTER_COMPLETION; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private During(int value, String name, String literal)\n {\n this.value = value;\n this.name = name;\n this.literal = literal;\n }", "public static During get(String literal)\n {\n for (int i = 0; i < VALUES_ARRAY.length; ++i)\n {\n During result = VALUES_ARRAY[i];\n if (result.toString().equals(literal))\n {\n return result;\n }\n }\n return null;\n }", "public static During getByName(String name)\n {\n for (int i = 0; i < VALUES_ARRAY.length; ++i)\n {\n During result = VALUES_ARRAY[i];\n if (result.getName().equals(name))\n {\n return result;\n }\n }\n return null;\n }", "Transition createTransition(String literal);", "private CasePreinstConditionValue(int value, String name, String literal) {\n\t\tsuper(value, name, literal);\n\t}", "int getStateValue();", "int getStateValue();", "int getStateValue();", "int getCauseValue();", "public ElasticInteger(int valueAtStart, long duration, Easing easing) {\n super(valueAtStart, duration, easing);\n }", "public Exp transIntExp(int value){\r\n\t\treturn new Ex(new CONST(value));\r\n\t}", "int getStateValue1();", "int getStateValue2();", "int getStateValue3();", "int getSchedulingValue();", "static IntSequence constant(int value) {\n return () -> value;\n }", "int getConditionValue();", "public static CasePreinstConditionValue get(int value) {\n\t\tswitch (value) {\n\t\t\tcase INSTALL: return INSTALL_LITERAL;\n\t\t\tcase UPGRADE: return UPGRADE_LITERAL;\n\t\t\tcase ABORT_UPGRADE: return ABORT_UPGRADE_LITERAL;\n\t\t}\n\t\treturn null;\n\t}", "IntConstant createIntConstant();", "String getInt_lit();", "public void setMon(int value) {\n this.mon = value;\n }", "public String getInterruptName(int inum) {\n return interrupt_name[inum];\n }", "EnumLiteralExp createEnumLiteralExp();", "int getFromValue();", "public String getMoonPhaseName()\n\t{\n\t\tint moonInt;\n\t\ttry\n\t\t{\n\t\t\tmoonInt = Integer.valueOf(ageOfMoon);\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tmoonInt = 0;\n\t\t}\n\t\treturn (MOON_PHASE.getByAge(moonInt)).getTxtName();\n\t}", "int getEventValue();", "public ElasticInteger(int valueAtStart, long duration) {\n super(valueAtStart, duration);\n }", "private Day(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public T caseIntLiteral(IntLiteral object)\n {\n return null;\n }", "public static Ani from(Object theTarget, float theDuration, float theDelay, String theFieldName, float theEnd, Easing theEasing){\n\t\treturn addAni(true, theTarget, theDuration, theDelay, theFieldName, theEnd, theEasing, defaultTimeMode, theTarget, defaultCallback);\n\t}", "private EstimatingTechnique(int value, String name, String literal) {\r\n\t\tthis.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;\r\n\t}", "private ExonPhase determinePhase(int _bound)\n\t{\n\t\tswitch(_bound % 3)\n\t\t{\n\t\tcase 0:\n\t\t\treturn ExonPhase.PHASE0;\n\t\tcase 1:\n\t\t\treturn ExonPhase.PHASE1;\n\t\tdefault:\n\t\t\treturn ExonPhase.PHASE2;\n\t\t}\n\t}", "org.hl7.fhir.Integer getStart();", "Case createCase();", "public final EObject ruleIntLiteral() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token lv_value_1_0=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3797:28: ( ( () ( (lv_value_1_0= RULE_INT ) ) ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3798:1: ( () ( (lv_value_1_0= RULE_INT ) ) )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3798:1: ( () ( (lv_value_1_0= RULE_INT ) ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3798:2: () ( (lv_value_1_0= RULE_INT ) )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3798:2: ()\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3799:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getIntLiteralAccess().getIntLiteralAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3804:2: ( (lv_value_1_0= RULE_INT ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3805:1: (lv_value_1_0= RULE_INT )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3805:1: (lv_value_1_0= RULE_INT )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3806:3: lv_value_1_0= RULE_INT\r\n {\r\n lv_value_1_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleIntLiteral8757); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t\tnewLeafNode(lv_value_1_0, grammarAccess.getIntLiteralAccess().getValueINTTerminalRuleCall_1_0()); \r\n \t\t\r\n }\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElement(grammarAccess.getIntLiteralRule());\r\n \t }\r\n \t\tsetWithLastConsumed(\r\n \t\t\tcurrent, \r\n \t\t\t\"value\",\r\n \t\tlv_value_1_0, \r\n \t\t\"INT\");\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public int getCaseNumber() {\n return caseNumber;\n }", "public static Ani from(Object theTarget, float theDuration, float theDelay, String theFieldName, float theEnd, Easing theEasing, String theCallback){\n\t\treturn addAni(true, theTarget, theDuration, theDelay, theFieldName, theEnd, theEasing, defaultTimeMode, theTarget, theCallback);\n\t}", "IntegerLiteralExp createIntegerLiteralExp();", "Integer getStartDay();", "private ModalityState(int value) { this.value = value; }", "private RefinementPhases(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "public Switch addCase( int value, String target ) {\n cases.add( new Case( value, target ) );\n return this;\n }", "public static int getValue(int states, int field) throws IllegalArgumentEvent {\r\n\t\tswitch(field){\r\n\t\t//command\r\n\t\tcase 0:\r\n\t\t\treturn 8;\r\n\t\t//senseDir\r\n\t\tcase 1:\r\n\t\t\treturn 4;\r\n\t\t//turnDir\r\n\t\tcase 2:\r\n\t\t\treturn 2;\r\n\t\t//marker\r\n\t\tcase 3:\r\n\t\t\treturn 6;\r\n\t\t//p\r\n\t\tcase 4:\r\n\t\t\treturn 10;\r\n\t\t//st1\r\n\t\tcase 5:\r\n\t\t\treturn states;\r\n\t\t//st2\r\n\t\tcase 6:\r\n\t\t\treturn states;\r\n\t\t//condition\r\n\t\tcase 7:\r\n\t\t\treturn 10;\r\n\t\t//senseMarker\r\n\t\tcase 8:\r\n\t\t\treturn 6;\r\n\t\tdefault:\r\n\t\t\tthrow new IllegalArgumentEvent(\"Illegal field \" +\r\n\t\t\t\t\"argument in State constructor\");\r\n\t\t}\r\n\t}", "int getAbilityValue(Unit source);", "String convertTransition(Transition instanceValue);", "public int countByTimeDuring(int timeDuring)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "EnumConstant createEnumConstant();", "public int getMon() {\n return mon;\n }", "int getDefenseStatStage();", "public void setIntituleposte(String value) {\n setAttributeInternal(INTITULEPOSTE, value);\n }", "public static Ani from(Object theTarget, float theDuration, float theDelay, String theFieldName, float theEnd, Easing theEasing, Object theCallbackObject, String theCallback){\n\t\treturn addAni(true, theTarget, theDuration, theDelay, theFieldName, theEnd, theEasing, defaultTimeMode, theCallbackObject, theCallback);\n\t}", "@Override\n public String getMovementAbbr(EntityMovementType mtype) {\n switch (mtype) {\n case MOVE_SKID:\n return \"S\";\n case MOVE_NONE:\n return \"N\";\n case MOVE_WALK:\n return \"W\";\n case MOVE_RUN:\n return \"R\";\n case MOVE_JUMP:\n return \"J\";\n case MOVE_SPRINT:\n return \"Sp\";\n default:\n return \"?\";\n }\n }", "public final void rule__XIntLiteral__DayAssignment_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:11985:1: ( ( RULE_INT ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:11986:1: ( RULE_INT )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:11986:1: ( RULE_INT )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:11987:1: RULE_INT\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXIntLiteralAccess().getDayINTTerminalRuleCall_0_1_0()); \n }\n match(input,RULE_INT,FOLLOW_RULE_INT_in_rule__XIntLiteral__DayAssignment_0_124025); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXIntLiteralAccess().getDayINTTerminalRuleCall_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public T caseIntEnum(IntEnum object)\n {\n return null;\n }", "public T caseExprInt(ExprInt object)\n {\n return null;\n }", "InstrumentDefinition definition();", "public C1426h mo1735a() {\n return C1426h.IMMEDIATE;\n }", "public Boolean onDuring(Double duration, String finalState)\r\n\t{\r\n\t\treturn onDuring(duration, finalState, TuxAPIConst.SPV_VERYFAST);\r\n\t}", "CaseStatement createCaseStatement();", "public static Ani from(Object theTarget, float theDuration, float theDelay, String theFieldName, float theEnd){\n\t\treturn addAni(true, theTarget, theDuration, theDelay, theFieldName, theEnd, defaultEasing, defaultTimeMode, theTarget, defaultCallback);\n\t}", "public int intValue()\n {\n return this.month;\n }", "@WithName(\"schedule.delay\")\n @WithDefault(\"5s\")\n Duration scheduleDelay();", "public int getBegin() {\n if (Span_Type.featOkTst && ((Span_Type)jcasType).casFeat_Begin == null)\n jcasType.jcas.throwFeatMissing(\"Begin\", \"Span\");\n return jcasType.ll_cas.ll_getIntValue(addr, ((Span_Type)jcasType).casFeatCode_Begin);}", "public double predict(final Calendar when);", "public static Condition meaningOfCode(Integer code) {return BY_LABEL.get(code);}", "public java.util.List<irestads.model.AdsItem> findByTimeDuring(\n\t\tint timeDuring)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public String getIntituleposte() {\n return (String) getAttributeInternal(INTITULEPOSTE);\n }", "public static Ani from(Object theTarget, float theDuration, String theFieldName, float theEnd, Easing theEasing){\n\t\treturn addAni(true, theTarget, theDuration, 0.0f, theFieldName, theEnd, theEasing, defaultTimeMode, theTarget, defaultCallback);\n\t}", "public void setDuration(int val){this.duration = val;}", "Integer getDay();", "int getExecutionStageStateValue();", "public static String enumPatternItemCase()\n {\n read_if_needed_();\n \n return _enum_pattern_item_case;\n }", "public T caseIntLitExpr(IntLitExpr object) {\n\t\treturn null;\n\t}", "public static EndConditionTypes get(int value)\n {\n switch (value)\n {\n case STEPS_VALUE: return STEPS;\n case PARAMETER_VALUE: return PARAMETER;\n case STATE_VALUE: return STATE;\n }\n return null;\n }", "public static Ani from(Object theTarget, float theDuration, String theFieldName, float theEnd, Easing theEasing, String theCallback){\n\t\treturn addAni(true, theTarget, theDuration, 0.0f, theFieldName, theEnd, theEasing, defaultTimeMode, theTarget, theCallback);\n\t}", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "default String turnAlarmOn() {\n return \"Turning the vehicle alarm on.\";\n }", "public int getCase() {\n\t\treturn (case_type);\n\t}", "public final void rule__XIntLiteral__Group_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2732:1: ( ( ( rule__XIntLiteral__DayAssignment_0_1 ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2733:1: ( ( rule__XIntLiteral__DayAssignment_0_1 ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2733:1: ( ( rule__XIntLiteral__DayAssignment_0_1 ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2734:1: ( rule__XIntLiteral__DayAssignment_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXIntLiteralAccess().getDayAssignment_0_1()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2735:1: ( rule__XIntLiteral__DayAssignment_0_1 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2735:2: rule__XIntLiteral__DayAssignment_0_1\n {\n pushFollow(FOLLOW_rule__XIntLiteral__DayAssignment_0_1_in_rule__XIntLiteral__Group_0__1__Impl5855);\n rule__XIntLiteral__DayAssignment_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXIntLiteralAccess().getDayAssignment_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "EEnumLiteral createEEnumLiteral();", "<C, EL> EnumLiteralExp<C, EL> createEnumLiteralExp();" ]
[ "0.69261074", "0.49808946", "0.47334373", "0.46463406", "0.45781198", "0.45178187", "0.45178187", "0.45178187", "0.44990787", "0.44482583", "0.43723214", "0.43409756", "0.43106884", "0.42472965", "0.42440477", "0.42307374", "0.42196214", "0.4171221", "0.41449657", "0.41399065", "0.41397408", "0.41221455", "0.41219333", "0.4107453", "0.4102446", "0.4100626", "0.40764156", "0.40733552", "0.4073069", "0.40191886", "0.4018617", "0.4016898", "0.40017676", "0.39959553", "0.39924166", "0.3989456", "0.39863595", "0.39678332", "0.3967231", "0.3963992", "0.39600995", "0.39490685", "0.3948159", "0.3947212", "0.39321017", "0.3910476", "0.3908579", "0.39069492", "0.39042497", "0.3903424", "0.38949642", "0.38875258", "0.3885196", "0.3884947", "0.38747895", "0.38740128", "0.38633397", "0.3853804", "0.3851417", "0.38475773", "0.3842699", "0.38414153", "0.38372564", "0.38359755", "0.38263282", "0.381705", "0.3815925", "0.3815883", "0.3808128", "0.37997422", "0.3799423", "0.37983283", "0.37935272", "0.37911233", "0.3785982", "0.3783708", "0.3783708", "0.3783708", "0.3783708", "0.3783708", "0.3783708", "0.3783708", "0.3783708", "0.3783708", "0.3783708", "0.3783708", "0.3783708", "0.3783708", "0.3783708", "0.3783708", "0.3783708", "0.3783708", "0.3783708", "0.3783708", "0.3783708", "0.37830114", "0.37779254", "0.3774628", "0.37735984", "0.37572116" ]
0.54543614
1
Only this class can construct instances.
private During(int value, String name, String literal) { this.value = value; this.name = name; this.literal = literal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void construct();", "private Instantiation(){}", "Reproducible newInstance();", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "public Instance() {\n }", "Instance createInstance();", "private InstanceUtil() {\n }", "private ObjectFactory() { }", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "private SystemInfo() {\r\n // forbid object construction \r\n }", "public Constructor(){\n\t\t\n\t}", "@Override\n public boolean isInstantiable() {\n return false;\n }", "private void __sep__Constructors__() {}", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "private SingleObject()\r\n {\r\n }", "private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}", "private TagCacheManager(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }", "public Pleasure() {\r\n\t\t}", "@Override\n public void construct() throws IOException {\n \n }", "private TemplateFactory(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }", "public void testConstructor() {\r\n assertNotNull(\"unable to create instance\", instance);\r\n }", "private MApi() {}", "public ObjectFactory() {\n\t}", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "public ObjectFactory() {\r\n\t}", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "private SingleObject(){}", "public XCanopusFactoryImpl()\r\n {\r\n super();\r\n }", "@Override\r\n public void instantiate() {\r\n }", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "private SingletonObject() {\n\n\t}", "private PerksFactory() {\n\n\t}", "private Singleton()\n\t\t{\n\t\t}", "private ConcreteFactory() {}", "public Activator() {\r\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private BusquedaMaker() {\n\t\tinit();\n\t}", "public Factory() {\n\t\tsuper();\n\t}", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public static synchronized void constructInstance()\n {\n SmartDashboard.putBoolean( TelemetryNames.Elbow.status, false );\n\n if ( ourInstance != null )\n {\n throw new IllegalStateException( myName + \" Already Constructed\" );\n }\n ourInstance = new ElbowSubsystem();\n\n SmartDashboard.putBoolean( TelemetryNames.Elbow.status, true );\n }", "defaultConstructor(){}", "public Implementor(){}", "Constructor() {\r\n\t\t \r\n\t }", "public CMObject newInstance();", "private ResourceFactory() {\r\n\t}", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public Object construct() {\n try {\n Object res;\n\n res = mTarget.invokeTimeout(mMethodName, mParams, mTimeout);\n return res;\n }\n catch (TokenFailure ex) {\n return ex;\n }\n catch (RPCException ex) {\n return ex;\n }\n catch (XMPPException ex) {\n return ex;\n }\n }", "@Test( expected = IllegalStateException.class )\n\tpublic void constructorShouldNotBeInstantiable() {\n\t\tnew ReflectionUtil() {\n\t\t\t// constructor is protected\n\t\t};\n\t}", "private Terms(){\n\t\t //this prevents even the native class from calling this ctor as well :\n\t\t throw new AssertionError();\n\t\t }", "public ObjectFactory() {\n }" ]
[ "0.83116", "0.78703046", "0.7745854", "0.70514417", "0.6977207", "0.69248813", "0.6911577", "0.68580836", "0.6854153", "0.6840124", "0.6830395", "0.6762024", "0.6749302", "0.6747144", "0.67454994", "0.67114174", "0.6695038", "0.6671193", "0.66689765", "0.66472626", "0.6642942", "0.66420764", "0.66031754", "0.6601914", "0.6596949", "0.6594795", "0.6592878", "0.65746844", "0.65483844", "0.6542663", "0.65292907", "0.6492912", "0.6492912", "0.6492912", "0.648241", "0.64815", "0.64812994", "0.64803225", "0.647995", "0.64777064", "0.6472989", "0.64663523", "0.6451089", "0.6416165", "0.6414967", "0.64143175", "0.6405295", "0.63994044", "0.6394016", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.63937443", "0.638426", "0.6382002", "0.6379946", "0.6378497" ]
0.0
-1
Returns the literal value of the enumerator, which is its string representation.
@Override public String toString() { return literal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n return _iotaEnum + \" - \" + _value ;\n }", "public String asString() {\n\t\t\tString enumName;\n\t\t\tswitch(this) {\n\t\t\tcase INDEX:\n\t\t\t\tenumName = \"index\";\n\t\t\t\tbreak;\n\t\t\tcase NAME:\n\t\t\t\tenumName = \"name\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tenumName = \"unsupported\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn enumName;\n\t\t}", "String getValueAsString();", "public String getValue() {\n return String.valueOf(value);\n }", "public java.lang.String getValue() {\n return value;\n }", "protected String getEnumeration()\n {\n return enumeration;\n }", "@Override\n\tObject getValue() {\n\t try {\n\t\tObject value = getField.get(object);\n\t\tif (value instanceof Enum)\n\t\t return value.toString();\n\t\treturn value;\n\t }\n\t catch (IllegalAccessException ex) {\n\t\treturn null;\n\t }\n\t}", "public String getEnum() {\n if (model == null)\n return strEnum;\n return model.getEnum();\n }", "public final String getPrimitiveStringValue() {\r\n return (String) (value = value.toString());\r\n }", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "String value();", "String value();", "public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n value_ = s;\n return s;\n }\n }", "public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n value_ = s;\n }\n return s;\n }\n }", "public String calculateEnumerationLiteralAsString(Object value,IAttribute attribute)\r\n\t{\r\n\t\tString valueString = \"\";\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (value == null) {\r\n\t\t\t\treturn \"\";\r\n\t\t\t}\r\n\t\t\tif (!(value instanceof Identifier<?>)) {\r\n\t\t\t\treturn \"Value not an enumeration literal\";\r\n\t\t\t}\r\n\t\t\tIEnumeration<? extends ILiteral> enumeration = itemCommon.resolveEnumeration(attribute, monitor);\r\n\t\t\tIdentifier<? extends ILiteral> currentIdentifier = (Identifier<? extends ILiteral>) value;\r\n\t\t\tILiteral literal = enumeration.findEnumerationLiteral(currentIdentifier);\r\n\t\t\tvalueString = literal.getName();\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn valueString;\r\n\t}", "org.hl7.fhir.String getValueString();", "String getValue()\n {\n return value.toString();\n }", "public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n value_ = s;\n return s;\n }\n }", "public String stringVal(){\n\n if (currentTokenType == TYPE.STRING_CONST){\n\n return currentToken.substring(1, currentToken.length() - 1);\n\n }else {\n throw new IllegalStateException(\"Current token is not a string constant!\");\n }\n }", "public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "Rule EnumValue() {\n return Sequence(\n Identifier(),\n Optional(EnumConst()),\n Optional(ListSeparator()),\n WhiteSpace(),\n actions.pushEnumValueNode());\n }", "public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String value() {\n return value;\n }", "public String value() {\r\n if (counterPart!=null) {\r\n return counterPart.toString();\r\n }\r\n else {\r\n return \"nil\";\r\n }\r\n }", "public String value()\n {\n return value;\n }", "public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n value_ = s;\n return s;\n }\n }", "public String toString() {\n return value;\r\n }", "public String toString() {\n return value;\n }", "public String getValue()\r\n\t{\r\n\t\treturn value;\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn literal;\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn literal;\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn literal;\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn literal;\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn literal;\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn literal;\r\n\t}", "@Override\n public String getValue() {\n return this.value.toString();\n }", "public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String value() {\n return this.value;\n }", "public String value() {\n return this.value;\n }", "public String getValue() {\r\n\t\treturn value;\r\n\t}", "public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getValue() {\n\t\treturn value;\n\t}", "public String getValue() {\n\t\treturn value;\n\t}", "public String getValue() {\n\t\treturn value;\n\t}", "public String getValue() {\n\t\treturn value;\n\t}", "public String getValue() {\n\t\treturn value;\n\t}", "public String getStringValue()\n {\n return this.getValue();\n }", "public String getValue() {\n Object ref = value_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n value_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn literal;\n\t}", "@Override\n public String toString() {\n return String.valueOf(value());\n }", "public String getValue() {\n Object ref = value_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n value_ = s;\n return s;\n }\n }", "@Override\r\n public String toString() {\r\n return literal;\r\n }", "@Override\n\tpublic String getValue() {\n\t\treturn integerLiteral;\n\t}", "public String getString() { \n return new BigInteger(this.value).toString();\n }", "public String toString() {\n\t\treturn String.valueOf(this.currentValue);\n\t}", "public String toString(){\n\t\treturn getValue();\n\t}", "public String getValue()\n {\n return value;\n }", "public String getVal() {\n Object ref = val_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n val_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "public java.lang.String getConstantValue() {\n java.lang.Object ref = constantValue_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n constantValue_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getValue() { return value; }", "public java.lang.String getConstantValue() {\n java.lang.Object ref = constantValue_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n constantValue_ = s;\n }\n return s;\n }\n }", "@Override\n public String toString() {\n\t\treturn literal;\n\t}", "public String getVal() {\n Object ref = val_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n val_ = s;\n }\n return s;\n }\n }", "public String getValue() {\r\n return value;\r\n }", "public String getValue() {\r\n return value;\r\n }", "public String getValue() {\r\n return value;\r\n }", "public String getValue() {\r\n return value;\r\n }" ]
[ "0.65513587", "0.63785964", "0.627339", "0.62037045", "0.6189151", "0.6154811", "0.61115056", "0.61064374", "0.608567", "0.60501647", "0.60501647", "0.60501647", "0.60501647", "0.60501647", "0.60501647", "0.6038595", "0.6038595", "0.5996383", "0.5996278", "0.599493", "0.599205", "0.5990824", "0.59872407", "0.5982933", "0.59719235", "0.5957985", "0.5954253", "0.5952864", "0.5952639", "0.595087", "0.5949127", "0.5948615", "0.5941421", "0.593537", "0.59293914", "0.59293914", "0.59293914", "0.59293914", "0.59293914", "0.59293914", "0.59242433", "0.59198004", "0.59164214", "0.59164214", "0.5916414", "0.59074247", "0.5899547", "0.5899547", "0.5899547", "0.5899547", "0.5899547", "0.5894809", "0.5877215", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5876571", "0.5854883", "0.5841051", "0.58392614", "0.58374655", "0.5836971", "0.58298814", "0.5828433", "0.5826222", "0.5818063", "0.5817439", "0.5817379", "0.5816226", "0.5815127", "0.58147705", "0.5810468", "0.5810468", "0.5810468", "0.5810468" ]
0.58224493
90
Method will load factory class either CSV or XML based on the input file format
public List<CustomerRecord> getValidationReport(ClassLoader file,String fileName,String fileExt) { log.debug("Executing::CustomerBatchProcessor::getValidationReport::File format::"+fileExt); CustomerFileProcessor p = FileServiceFactory.getFileClass(fileExt); List<CustomerRecord> listCust = p.getDataFromFile(file, fileName); log.debug("Completed::CustomerBatchProcessor::getValidationReport::File format::"+fileExt); return listCust; /** Final list will have collections of records with duplicate and end balance **/ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadFactory(Scanner sc){\n\t\tString factoryLine = sc.nextLine();\n\t\t\n\t\twhile(!(factoryLine.equals(\"#\"))){\n\t\t\tString [] split = factoryLine.split(\",\");\n\t\t\t\n\t\t\ttry{\n\t\t\t\tdouble x = Double.parseDouble(split[1]);\n\t\t\t\tdouble y = Double.parseDouble(split[2]);\n\t\t\t\tFactory factory = new Factory(split[0], x, y);\n\t\t\t\tfactoryMap.put(split[0], factory);\n\t\t\t\t\n\t\t\t}catch(Exception e){\n\t\t\t\tSystem.out.println(\"Data can't be loaded\");\n\t\t\t}\n\t\t\tfactoryLine = sc.nextLine();\n\t\t}\n\t}", "private <T> void loadFlatFile(Class<T> clazz, String flatFileName)\n\t\t\tthrows ApplicationException {\n\n\t\tlog.info(String.format(\"Loading file %s to object type %s\",\n\t\t\t\tflatFileName, clazz.toString()));\n\t\t\n\t\tDbInserter dbi = getDbInserter();\n\t\t\n\t\tFixedFormatManager manager = new FixedFormatManagerImpl();\n\t\tBufferedReader br = null;\n\t\tint count = 0;\n\t\ttry {\n\t\t\tInputStream ins = this.getClass().getClassLoader()\n\t\t\t\t\t.getResourceAsStream(flatFileName);\n\t\t\tbr = new BufferedReader(new InputStreamReader(ins));\n\t\t\tString record;\n\n\t\t\tlog.info(\"Reading, inserting records.\");\n\t\t\twhile (null != (record = br.readLine())) {\n\t\t\t\tDomain obj = (Domain) manager.load(clazz, record);\n\t\t\t\t//log.info(String.format(\"Record %s\", obj));\n\t\t\t\t//log.info(String.format(\"%s: key %d\", obj.getRecType(), obj.getDomainId()));\n\t\t\t\t\n\t\t\t\tdbi.insert(obj);\n\t\t\t\t\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tlog.info(String.format(\"Read %d records from object.\", count,\n\t\t\t\t\tclazz.toString()));\n\t\t\t\n\t\t\tdbi.flushToIndex();\n\n\t\t} catch (FixedFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (null != br) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void importCSV(File file) {\n System.out.println(\"oi\");\n System.out.println(file.isFile()+\" \"+file.getAbsolutePath());\n if(file.isFile() && file.getPath().toLowerCase().contains(\".csv\")){\n System.out.println(\"Entro\");\n try {\n final Reader reader = new FileReader(file);\n final BufferedReader bufferReader = new BufferedReader(reader);\n String[] cabecalho = bufferReader.readLine().split(\",\");\n int tipo;\n if(cabecalho.length == 3){\n if(cabecalho[2].equalsIgnoreCase(\"SIGLA\")){\n tipo = 1;\n System.out.println(\"TIPO PAIS\");\n }\n else {\n tipo = 2;\n System.out.println(\"TIPO CIDADE\");\n }\n }else {\n tipo = 3;\n System.out.println(\"TIPO ESTADO\");\n }\n \n while(true){\n String linha = bufferReader.readLine();\n if(linha == null){\n break;\n }\n String[] row = linha.split(\",\");\n switch (tipo) {\n case 1:\n Pais pais = new Pais();\n pais.setId(Long.parseLong(row[0]));\n pais.setNome(row[1]);\n pais.setSigla(row[2]);\n new PaisDaoImpl().insert(pais);\n break;\n case 2:\n Cidade cidade = new Cidade();\n cidade.setId(Long.parseLong(row[0]));\n cidade.setNome(row[1]);\n cidade.setEstado(Long.parseLong(row[2]));\n new CidadeDaoImpl().insert(cidade);\n break;\n default:\n Estado estado = new Estado();\n estado.setId(Long.parseLong(row[0]));\n estado.setNome(row[1]);\n estado.setUf(row[2]);\n estado.setPais(Long.parseLong(row[3]));\n new EstadoDaoImpl().insert(estado);\n break;\n }\n }\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(SQLUtilsImpl.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(SQLUtilsImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public InputReader(String csvlocation, String templatelocation) throws FileNotFoundException, TransformerConfigurationException {\n this.csvlocation = csvlocation;\n this.templatelocation = templatelocation;\n init();\n }", "Object deserialize(Class objClass, InputStream stream) throws IOException;", "public ClassFile(DataInput stream)\n throws IOException\n {\n load(stream);\n }", "protected abstract DBObject parse(InputStream is) throws DeserializationException;", "Object create(Reader reader) throws IOException, SAXException, ParserConfigurationException;", "public interface ClassParserFactory {\n\n ClassParser createParser(Class<?> clazz);\n}", "public static CategoriesReader create(String file) {\n if (file.endsWith((CommonFileExtensions.CSV_EXTENSION))) {\n return new CSVCategoriesReader(file);\n } else if (file.endsWith(CommonFileExtensions.XML_EXTENSION)) {\n return new XMLCategoriesReader(file);\n } else if (file.endsWith(CommonFileExtensions.JSON_EXTENSION)) {\n return new JSONCategoriesReader(file);\n }\n return null;\n }", "public <T> List<T> readCsvFile(String filePath, Class<T> classType) {\n\t\tString className = classType.getSimpleName();\n\t\tList<T> csvFileEntries = new ArrayList<T>();\n\n\t\tString line = \"\";\n\t\tint index = 0;\n\t\tBufferedReader fileScanner;\n\n\t\ttry {\n\t\t\tfileScanner = new BufferedReader(new FileReader(filePath));\n\n\t\t\twhile ((line = fileScanner.readLine()) != null) {\n\t\t\t\tif (index != 0) {\n\t\t\t\t\tString[] currentEntry = line.split(\",\");\n\n\t\t\t\t\tif (className.equals(\"Agent\")) {\n\t\t\t\t\t\tAgent newAgent = new Agent(currentEntry);\n\t\t\t\t\t\tcsvFileEntries.add((T) newAgent);\n\t\t\t\t\t} else if (className.equals(\"Claim\")) {\n\t\t\t\t\t\tClaim newClaim = new Claim(currentEntry);\n\t\t\t\t\t\tcsvFileEntries.add((T) newClaim);\n\t\t\t\t\t} else if (className.equals(\"Customer\")) {\n\t\t\t\t\t\tCustomer newCustomer = new Customer(currentEntry);\n\t\t\t\t\t\tcsvFileEntries.add((T) newCustomer);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tindex += 1;\n\t\t\t}\n\n\t\t\tfileScanner.close();\n\t\t} catch (IOException error) {\n\t\t\terror.printStackTrace();\n\t\t} catch (SecurityException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn csvFileEntries;\n\t}", "public interface IOFactory {\r\n /**\r\n * Creates a {@link ProfileReader} for the given {@link InputStream}.\r\n * @param stream the stream to be read.\r\n * @return the created {@link ProfileReader}.\r\n */\r\n public abstract ProfileReader createProfilerReader(InputStream stream);\r\n \r\n /**\r\n * Creates a {@link ProfileWriter} for the given {@link OutputStream}.\r\n * @param stream the stream to be written to.\r\n * @return the created {@link ProfileWriter}.\r\n */\r\n public abstract ProfileWriter createProfileWriter(OutputStream stream);\r\n \r\n /**\r\n * Creates a {@link MergeFileReader} for the given {@link InputStream}.\r\n * @param stream the stream to be read.\r\n * @return the created {@link MergeFileReader}.\r\n */\r\n public abstract MergeFileReader createMergeReader(InputStream stream);\r\n \r\n /**\r\n * Creates a {@link MergeFileWriter} for the given {@link OutputStream}.\r\n * @param stream the stream to be written.\r\n * @return the created {@link MergeFileWriter}.\r\n */\r\n public abstract MergeFileWriter createMergeWriter(OutputStream stream);\r\n \r\n /**\r\n * Creates a {@link MergeFileReader} simulating an empty merge file.\r\n * @return the created {@link MergeFileReader}.\r\n */\r\n public abstract MergeFileReader createEmptyMergeReader();\r\n}", "public InputReader() throws FileNotFoundException, TransformerConfigurationException {\n this.csvlocation = System.getProperty(Static.SYSYEM_PROPERTY_FILE);\n this.templatelocation = System.getProperty(Static.SYSTEM_PROPERTY_TEMPLATE_FILE);\n init();\n }", "public void readToCsv() {\r\n\r\n String seperator = \";\";\r\n\r\n try (BufferedReader reader = new BufferedReader(\r\n new FileReader(\"Products.csv\"))){\r\n\r\n String line = null;\r\n for(int i=1; (line = reader.readLine()) != null; i++) {\r\n String[] fields = line.split(seperator, -1);\r\n\r\n // For nutrients objects to read\r\n if(fields.length ==5){\r\n Nutrient object= new Nutrient();\r\n object.name = fields[0];\r\n object.price = Double.parseDouble(fields[1]);\r\n object.tag=fields[2];\r\n object.content = fields[3];\r\n object.numOfProduct = Integer.parseInt(fields[4]);\r\n //object.addFeatures(object.name,object.price,object.size,object.gender,object.tag,object.content,object.numOfProduct);\r\n NutrientList.add(object);\r\n allProducts.add(object);\r\n }\r\n // For Cosmetics objects to read\r\n if (fields.length==6){\r\n Cosmetics object2=new Cosmetics();\r\n object2.name = fields[0];\r\n object2.price = Double.parseDouble(fields[1]);\r\n object2.gender = fields[2];\r\n object2.tag=fields[3];\r\n object2.content = fields[4];\r\n object2.numOfProduct = Integer.parseInt(fields[5]);\r\n //object2.addFeatures(object2.name,object2.price,object2.size,object2.gender,object2.tag,object2.content,object2.numOfProduct);\r\n CosmeticsList.add(object2);\r\n allProducts.add(object2);\r\n }\r\n // For clothes objects to read\r\n if(fields.length ==7){\r\n\r\n Clothes object3=new Clothes();\r\n object3.name = fields[0];\r\n object3.price = Double.parseDouble(fields[1]);\r\n object3.size= fields[2];\r\n object3.tag=fields[4];\r\n object3.content = fields[5];\r\n object3.numOfProduct = Integer.parseInt(fields[6]);\r\n object3.addFeatures(object3.name,object3.price,object3.size,\"E\",object3.tag,object3.content,object3.numOfProduct);\r\n ClothesList.add(object3);\r\n allProducts.add(object3);\r\n }\r\n\r\n }}\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public static ClassFileReader newInstance(Path path) throws IOException {\n if (!Files.exists(path)) {\n throw new FileNotFoundException(path.toString());\n }\n\n if (Files.isDirectory(path)) {\n return new DirectoryReader(path);\n } else if (path.getFileName().toString().endsWith(\".jar\")) {\n return new JarFileReader(path);\n } else {\n return new ClassFileReader(path);\n }\n }", "ITaskFactory<?> load(String classname);", "@SuppressWarnings(\"unchecked\")\n\tprivate static XmlEntityObjectFactory getFactory() {\n\t\tif (factory == null) {\n\t\t\tfactory = new XmlEntityObjectFactory();\n\t\t\ttry {\n\t\t\t\tClass<IXmlEntityResolverLoader> loaderClass = (Class<IXmlEntityResolverLoader>) Class\n\t\t\t\t\t\t.forName(defaulEntityResolverLoaderClassName);\n\t\t\t\tIXmlEntityResolverLoader loader;\n\t\t\t\tloader = loaderClass.newInstance();\n\t\t\t\tloader.loadTo(factory);\n\t\t\t} catch (Exception ex) {\n\t\t\t\tthrow new UnexpectedRuntimeException(ex);\n\t\t\t}\n\t\t}\n\t\treturn factory;\n\t}", "Object create(InputStream in) throws IOException, SAXException, ParserConfigurationException;", "public InputReader(String csv){\n inputStream = new Scanner(csv);\n instantiate();\n assert(invariant());\n }", "public Class getReadClass(int formatIndex);", "@SuppressWarnings(\"unchecked\")\n @Override\n public Set<?> instantiate() throws IOException {\n OrthoMclFormat format = (OrthoMclFormat) wizard.getProperty(PROP_ORTHOMCL_FORMAT);\n format.setDirectory(wizard.getDirectory());\n //update the format settings\n// format.setFilePerOrganism((Boolean) this.wizard.getProperty(GroupingWizardPanel.PROP_FILE_PER_ORGANISM));\n// format.setPrefixOrganism((Boolean) this.wizard.getProperty(GroupingWizardPanel.PROP_PREFIX_FOUR_LETTER_ORGANISM));\n// format.setFilePerMethod((Boolean) this.wizard.getProperty(GroupingWizardPanel.PROP_FILE_PER_METHOD));\n \n// format.setIsWindows((Boolean) this.wizard.getProperty(OrthoMclFormat.PROP_IS_WINDOWS));\n// format.setPerlDir((String) this.wizard.getProperty(OrthoMclFormat.PROP_PERL_DIR));\n// format.setOrthoDir((String) this.wizard.getProperty(OrthoMclFormat.PROP_ORTHO_DIR));\n// format.setMclDir((String) this.wizard.getProperty(OrthoMclFormat.PROP_MCL_DIR));\n\n// format.setDb_userName((String) this.wizard.getProperty(OrthoMclFormat.PROP_USER_NAME));\n// format.setDb_password((String) this.wizard.getProperty(OrthoMclFormat.PROP_PASSWORD));\n// format.setDatabaseName((String) this.wizard.getProperty(OrthoMclFormat.PROP_DB_NAME));\n// format.setDropCreateDatabase((Boolean) this.wizard.getProperty(OrthoMclFormat.PROP_DROP_CREATE_DB));\n //format.setMysqlBin((String) this.wizard.getProperty(OrthoMclFormat.PROP_MYSQL_BIN));\n\n format.setRunBlastp((Boolean) this.wizard.getProperty(OrthoMclFormat.PROP_DO_BLASTP));\n format.setRunMakeBlastDb((Boolean) this.wizard.getProperty(OrthoMclFormat.PROP_DO_MAKEBLAST));\n //format.setBlastBin((String) wizard.getProperty(OrthoMclFormat.PROP_BLAST_BIN));\n format.setMakeblastdbParameters((String) wizard.getProperty(OrthoMclFormat.PROP_MAKEBLASTDB_PARAMETERS));\n format.setBlastpParameters((String) wizard.getProperty(OrthoMclFormat.PROP_BLASTP_PARAMETERS));\n\n format.setMinProteinLength((String) this.wizard.getProperty(OrthoMclFormat.PROP_MIN_PROT_LENGTH));\n format.setMaxPercentStops((String) this.wizard.getProperty(OrthoMclFormat.PROP_MAX_PERCENT_STOPS));\n format.setPercentMatchCutoff((String) this.wizard.getProperty(OrthoMclFormat.PROP_PERCENT_MATCH));\n format.seteValueCutoff((String) this.wizard.getProperty(OrthoMclFormat.PROP_EVALUE_CUTOFF));\n// format.setExecute((Boolean)this.wizard.getProperty(OrthoMclFormat.PROP_EXECUTE));\n try {\n final OrthoMclFormat myFormat = format;\n myFormat.download();\n } catch (DownloadException ex) {\n Exceptions.printStackTrace(ex);\n }\n //set the last directory\n if(format.getDirectory() != null){\n NbPreferences.forModule(OrthoMclFormat.class).put(\"orthomcl-run\", format.getDirectory());\n }\n\n return Collections.emptySet();\n }", "Object deserialize(InputStream input, Class type, String format,\r\n String contentEncoding);", "private void init() throws FileNotFoundException, TransformerConfigurationException {\n try (Scanner filesscanner = new Scanner(new File(csvlocation))) {\n while (filesscanner.hasNext()) {\n filecontent.add(filesscanner.next());\n }\n if (!filecontent.isEmpty()) {\n this.header = filecontent.get(0);\n filecontent.remove(0);\n }\n setMailtemplate();\n } catch (FileNotFoundException | TransformerConfigurationException e) {\n LOGGER.error(\"Exception occured while reading the file\", e);\n throw e;\n }\n }", "Object create(File file) throws IOException, SAXException, ParserConfigurationException;", "private static IIteratingChemObjectReader<IAtomContainer> getInputReader(\n ArgumentHandler argsH, IChemObjectBuilder builder) throws FileNotFoundException {\n DataFormat inputFormat = argsH.getInputFormat();\n IIteratingChemObjectReader<IAtomContainer> reader;\n String filepath = argsH.getInputFilepath();\n InputStream in = new FileInputStream(filepath);\n switch (inputFormat) {\n case SMILES: reader = new IteratingSMILESReader(in, builder); break;\n case SIGNATURE: reader = new IteratingSignatureReader(in, builder); break;\n case SDF: reader = new IteratingSDFReader(in, builder); break;\n case ACP: reader = new IteratingACPReader(in, builder); break;\n default: reader = null; error(\"Unrecognised format\"); break;\n }\n return reader;\n }", "private void parseCSVToBean(String url) throws Exception {\r\n\r\n\t\t// later we have to implement to check created time of the CSV file\r\n\r\n\t\tColumnPositionMappingStrategy<DealerDetails> strat = new ColumnPositionMappingStrategy<>();\r\n\t\tstrat.setType(DealerDetails.class);\r\n\t\tString[] columns = new String[] { \"firstName\", \"lastName\", \"username\",\r\n\t\t\t\t\"contactNumber\", \"panNumber\", \"vatNumber\", \"bankName\",\r\n\t\t\t\t\"bankAccountNumber\", \"websiteUrl\", \"address\",\r\n\t\t\t\t\"branchTelNumber\", \"country\", \"state\", \"city\", \"zipcode\" };\r\n\t\tstrat.setColumnMapping(columns);\r\n\r\n\t\tCsvToBean<DealerDetails> csvToBean = new CsvToBean<DealerDetails>();\r\n\r\n\t\t// URL fileURL = new URL(url);\r\n\t\t// BufferedReader br = new BufferedReader(new InputStreamReader(\r\n\t\t// fileURL.openStream()));\r\n\r\n\t\tURL csvFileURL = new URL(url);\r\n\t\tBufferedReader bufferedReader = new BufferedReader(\r\n\t\t\t\tnew InputStreamReader(csvFileURL.openStream()));\r\n\r\n\t\tCSVReader reader = new CSVReader(bufferedReader);\r\n\r\n\t\tList<DealerDetails> dealers = csvToBean.parse(strat, reader);\r\n\r\n\t\tfor (DealerDetails dealerDetails : dealers) {\r\n\t\t\t// create user\r\n\t\t\tcreateUser(dealerDetails);\r\n\t\t}\r\n\r\n\t}", "ScenarioModel loadScenarioModel(InputStream inputStream) throws ModelSerializationException, ModelConversionException;", "public <T> T deserialize(Class<T> type, InputStream is) throws SerializationException;", "private Agent loadFromFile(String _login)\n {\n Agent agent = new Agent();\n File file = new File(_login + \".csv\");\n FileReader fr;\n BufferedReader br;\n String line;\n try {\n fr = new FileReader(file);\n br = new BufferedReader(fr);\n\n line = br.readLine();\n\n int numCients;\n { // to restrain the scope of csvData\n String[] csvData = line.split(\",\");\n agent.setID(Integer.parseInt(csvData[0]));\n agent.setName(csvData[1]);\n agent.setSalary(Double.parseDouble(csvData[2]));\n agent.setSalesBalance(Double.parseDouble(csvData[3]));\n\n numCients = Integer.parseInt(csvData[4]);\n }\n\n for(int i = 0; i<numCients; i++) {\n line = br.readLine();\n\n Client client = new Client();\n int numProp;\n\n {\n String[] csvData = line.split(\",\");\n client.setID(Integer.parseInt(csvData[0]));\n client.setName(csvData[1]);\n client.setIncome(Double.parseDouble(csvData[2]));\n\n numProp = Integer.parseInt(csvData[3]);\n }\n\n for(int j=0; j<numProp; j++)\n {\n line = br.readLine();\n\n String[] csvData = line.split(\",\");\n\n if(csvData[0].equals(\"house\")) {\n House property = new House();\n\n property.setAddress(csvData[1]);\n property.setNumRoom(Integer.parseInt(csvData[2]));\n property.setPrice(Double.parseDouble(csvData[3]));\n property.setSize(Double.parseDouble(csvData[4]));\n property.setHasGarage(Boolean.parseBoolean(csvData[5]));\n\n property.setHasGarden(Boolean.parseBoolean(csvData[6]));\n property.setHasPool(Boolean.parseBoolean(csvData[7]));\n\n client.addProperty(property);\n }\n else if(csvData[0].equals(\"apt\"))\n {\n Apartment property = new Apartment();\n\n property.setAddress(csvData[1]);\n property.setNumRoom(Integer.parseInt(csvData[2]));\n property.setPrice(Double.parseDouble(csvData[3]));\n property.setSize(Double.parseDouble(csvData[4]));\n property.setHasGarage(Boolean.parseBoolean(csvData[5]));\n\n property.setHasTerrace(Boolean.parseBoolean(csvData[6]));\n property.setHasElevator(Boolean.parseBoolean(csvData[7]));\n property.setFloor(Integer.parseInt(csvData[8]));\n property.setNumber(Integer.parseInt(csvData[9]));\n\n client.addProperty(property);\n }\n }\n\n agent.addClient(client);\n }\n fr.close();\n br.close();\n return agent;\n }\n catch (NumberFormatException nfEx) {\n JOptionPane.showMessageDialog(null, \"There was a problem when retrieving \" +\n \"the agent's data.\\n Please try again\");\n return null;\n }\n catch (IOException ioEx) {\n JOptionPane.showMessageDialog(null, \"This user doesn't exist....\");\n return null;\n }\n }", "static public List<Product> productReader() throws IOException {\n BufferedReader csvReader = new BufferedReader(new FileReader(PRODUCTS_REFERENCE_FILE));\n String row;\n List<Product> dataList = new ArrayList<>();\n\n row = csvReader.readLine();\n while ((row = csvReader.readLine()) != null){\n\n Product data = new Product();\n //I separate the row data by a separator, a coma in this case and add all the data in the class\n String[] datas = row.split(SEPARATOR_COLON);\n\n data.setProduct_id(Integer.parseInt(datas[0]));\n data.setName(datas[1]);\n data.setDescription(datas[2]);\n data.setCategory_id(Integer.parseInt(datas[3]));\n\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"MM/dd/yyyy\");\n\n //Since some dates had just one number for the month, I had to use this to add a 0\n //to make all the dates the same length after getting rid of the 0:01 that was not necessary\n String[] creationDate = datas[4].split(\" \");\n if(creationDate[0].length() == 9){\n creationDate[0] = \"0\"+ creationDate[0];\n }\n data.setCreation_date(LocalDate.parse(creationDate[0], formatter));\n\n creationDate = datas[5].split(\" \");\n if(creationDate[0].length() == 9){\n creationDate[0] = \"0\"+ creationDate[0];\n }\n data.setUpdate_date(LocalDate.parse(creationDate[0], formatter));\n\n creationDate = datas[6].split(\" \");\n if(creationDate[0].length() == 9){\n creationDate[0] = \"0\"+ creationDate[0];\n }\n data.setLast_purchased_date(LocalDate.parse(creationDate[0], formatter));\n\n dataList.add(data);\n\n }\n return dataList;\n\n }", "@Override\n public void load() throws IOException, ClassNotFoundException {\n \n }", "public BioFormatsFormat() {\n\t\tcacheReaderClasses();\n\t}", "@SuppressWarnings(\"PMD.CloseResource\") // PMD does not understand Closer\n protected static <S extends Serializable> S deserializeObject(\n Path inputFile, Class<S> outputClass) {\n try {\n // Awkward nested try blocks required because we refuse to throw IOExceptions.\n try (Closer closer = Closer.create()) {\n FileInputStream fis = closer.register(new FileInputStream(inputFile.toFile()));\n BufferedInputStream bis = closer.register(new BufferedInputStream(fis));\n // Allows us to peek at the beginning of the stream and then push the bytes back in for\n // downstream consumers to read.\n PushbackInputStream pbCompressed =\n new PushbackInputStream(bis, DEFAULT_HEADER_LENGTH_BYTES);\n Format f = detectFormat(pbCompressed);\n if (f == Format.GZIP) {\n InputStream gis = closer.register(new GZIPInputStream(pbCompressed));\n // Update format after decompression\n PushbackInputStream pbUncompressed =\n new PushbackInputStream(gis, DEFAULT_HEADER_LENGTH_BYTES);\n return deserializeObject(pbUncompressed, outputClass);\n } else if (f == Format.LZ4) {\n InputStream lis = closer.register(new LZ4FrameInputStream(pbCompressed));\n // Update format after decompression\n PushbackInputStream pbUncompressed =\n new PushbackInputStream(lis, DEFAULT_HEADER_LENGTH_BYTES);\n return deserializeObject(pbUncompressed, outputClass);\n } else {\n return deserializeObject(pbCompressed, outputClass);\n }\n }\n } catch (Exception e) {\n throw new BatfishException(\n String.format(\n \"Failed to deserialize object of type %s from file %s\",\n outputClass.getCanonicalName(), inputFile),\n e);\n }\n }", "Object create(InputSource is) throws IOException, SAXException, ParserConfigurationException;", "public interface IOFactory {\n\n public FileIO newFile(String path);\n\n}", "public TreeSet<Product> readCSV() throws IOException, NumberFormatException {\n\r\n TreeSet<Product> products = new TreeSet<>();\r\n\r\n try (BufferedReader reader = new BufferedReader(new FileReader(\"src/Collection/file.csv_2.txt\"));) {\r\n while ((line = reader.readLine()) != null) {\r\n String[] row = line.split(\",\");\r\n\r\n Location location = new Location(\r\n Double.parseDouble(row[14]),\r\n Integer.parseInt(row[15]),\r\n Float.parseFloat(row[16]),\r\n row[17]);\r\n Address address = new Address(\r\n row[12],\r\n row[13],\r\n location\r\n );\r\n Organization organization = new Organization(\r\n Integer.parseInt(row[8]),\r\n row[9],\r\n row[10],\r\n OrganizationType.valueOf(row[11]),\r\n address\r\n );\r\n Coordinates coordinates = new Coordinates(\r\n Float.parseFloat(row[3]),\r\n Double.parseDouble(row[4])\r\n );\r\n try {\r\n\r\n\r\n Product product = new Product (\r\n Integer.parseInt(row[0]),\r\n row[1],\r\n LocalDate.parse(row[2].replace(\"/\", \"-\")),\r\n coordinates,\r\n Integer.parseInt(row[5]),\r\n row[6],\r\n UnitOfMeasure.valueOf(row[7]),\r\n organization\r\n );\r\n products.add(product);}\r\n catch (NumberFormatException e){\r\n System.out.println(\"wrong format\");\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n products.forEach(System.out::println);\r\n return products;\r\n }", "public abstract DataType<T> newInstance(String format);", "public String[] readClasses();", "private CategoriesReaderFactory() {\n }", "@Override\n\tpublic void init(String file_name) { deserialize(file_name); }", "public Classifier loadClassifier() throws FileNotFoundException, IOException, ClassNotFoundException {\n\n Classifier classifier;\n\n File file = new File(getServletContext().getRealPath(\"/WEB-INF/tweets.classifier\"));\n ObjectInputStream ois = new ObjectInputStream (new FileInputStream (file));\n classifier = (Classifier) ois.readObject();\n ois.close();\n\n return classifier;\n }", "public abstract <T> T read(String name, Class<T> clazz);", "protected abstract Object toObject(InputStream inputStream, Type targetType) throws BeanConversionException;", "private static XMLInputFactory2 staxFactoryInitialization(String input)\n\t\t\tthrows FactoryConfigurationError, FileNotFoundException, XMLStreamException {\n\t\t// Get an input factory\n\t\t//\n\t\tXMLInputFactory2 xmlif = (XMLInputFactory2) XMLInputFactory2.newInstance();\n\n\t\t// xmlif.setProperty(XMLInputFactory2.P_PRESERVE_LOCATION, Boolean.TRUE);\n\n\t\txmlif.configureForConvenience();\n\n\t\txmlif.setProperty(XMLInputFactory2.P_REPORT_PROLOG_WHITESPACE, Boolean.FALSE);\n\n\t\treturn xmlif;\n\t}", "public void loadListFromCsv() {\n List<Publication> list = new ArrayList<>();\n String line;\n try(BufferedReader bufferedReader = new BufferedReader(new FileReader(\"saves/data.csv\"))){\n while ((line = bufferedReader.readLine()) != null){\n String[] attributes = line.split(\",(?=([^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\n String[] formattedAttributes = formatAttributes(attributes);\n Publication book = createPublicationFromAttributes(formattedAttributes);\n list.add(book);\n }\n } catch (IOException e){\n System.out.println(\"IOException occurred: \" + e.getMessage());\n }\n\n this.library = list;\n }", "private ConnectionFactoryDefinition loadConnectionFactory(XMLStreamReader reader) throws XMLStreamException {\n\n ConnectionFactoryDefinition connectionFactory = new ConnectionFactoryDefinition();\n\n connectionFactory.setName(reader.getAttributeValue(null, \"name\"));\n\n String create = reader.getAttributeValue(null, \"create\");\n if (create != null) {\n connectionFactory.setCreate(CreateOption.valueOf(create));\n }\n loadProperties(reader, connectionFactory, \"connectionFactory\");\n\n return connectionFactory;\n\n }", "public interface CSVBean{\n \n}", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException \n\t{\n\t\tin.defaultReadObject() ;\n\t\tthis.factoryLoader = ServiceLoader.load(CalendarParameterFactory.class, CalendarParameterFactory.class.getClassLoader());\n\t}", "@Override\n DBO consume(String csv) throws TransformerException;", "@Override\n\tprotected Class<?> findClass(String name) throws ClassNotFoundException {\n\t\tFile file = new File(getSimpleName(name) + \".class\");\n FileInputStream fis = null;\n Class<?> clazz = null;\n try {\n fis = new FileInputStream(file);\n int content = 0;\n int i = 0;\n byte[] data = new byte[fis.available()];\n while ((content = fis.read()) != -1) {\n // convert to char and display it\n data[i] = (byte) content;\n i++;\n }\n clazz = defineClass(name, data, 0, data.length);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (fis != null)\n fis.close();\n } catch (IOException ex) {\n \t\tex.printStackTrace();\n \t}\n }\n return clazz;\n\t}", "public FileObjectFactory() {\n }", "public <T> T fromXML(final String xml) throws ClassNotFoundException, ObjectStreamException {\n try {\n return fromXML(new StringReader(xml));\n } catch (final ObjectStreamException e) {\n throw e;\n } catch (final IOException e) {\n throw new StreamException(\"Unexpected IO error from a StringReader\", e);\n }\n }", "public ClassCreator(){\n\n\n\t\tScanner fin = null;\n\n\t\ttry {\n\t\t\tString[] nameHandler = fileName.split(\"\\\\.\");\n\n\t\t\tString className = nameHandler[0].replaceAll(\" |_|\\\\s$|0|1|2|3|4|5|6|7|8|9\", \"\");\n\n\n\t\t\t//Setting Up Scanners/PrintWriter\n\t\t\tfin = new Scanner(new File(fileName));\n\n\n\t\t\tPrintWriter pw = new PrintWriter(className + \".java\");\n\n\n\t\t\tString[] prop = fin.nextLine().split(\"\\t\");\n\t\t\tString[] data = fin.nextLine().split(\"\\t\");\n\n\t\t\tfor(int i = 0; i<prop.length; i++) {\n\t\t\t\tpropertyList.add(new Properties(prop[i].replaceAll(\"\\\\s\", \"\"), getDataType(data[i])));\n\t\t\t}\n\n\t\t\t//Imports\n\t\t\tpw.println(\"import java.util.Scanner;\\n\\n\");\n\t\t\t\n\t\t\t//Class Line\n\t\t\tpw.println(\"\\npublic class \" + className + \" {\");\n\n\t\t\t//Properties\n\t\t\tpw.println(\"\\n\\t//======================================================= Properties\\n\");\n\n\t\t\tfor(Properties p: propertyList) {\n\t\t\t\tpw.println(p.generateProperty());\n\t\t\t}\n\n\t\t\t//Constructors\n\t\t\tpw.println(\"\\n\\t//======================================================= Constructors\\n\");\n\n\t\t\t//================= Workhorse Constructor\n\t\t\tpw.print(\"\\tpublic \" + className + \"(\");\n\t\t\tfor(int i=0; i<propertyList.size()-1; i++) {\n\t\t\t\tpw.print(propertyList.get(i).getDataType() + \" \" + propertyList.get(i).getFieldName() + \", \");\n\t\t\t}\n\t\t\tpw.print(propertyList.get(propertyList.size()-1).getDataType() + \" \" \n\t\t\t\t\t+ propertyList.get(propertyList.size()-1).getFieldName() + \"){\\n\");\n\t\t\tfor(Properties p: propertyList) {\n\t\t\t\tpw.println(p.generateSetCall(p));\n\t\t\t}\n\t\t\tpw.println(\"\\t}\\n\");\n\n\t\t\t//================= Scanner Constructor\n\t\t\tpw.print(\"\\tpublic \" + className + \"(Scanner fin) throws Exception {\\n\");\n\t\t\tpw.println(\"\\t\\tString[] parts = fin.nextLine().split(\\\"\\\\t\\\");\");\n\t\t\tint arrayCount = 0;\n\t\t\tfor(Properties p: propertyList) {\n\t\t\t\tif(p.getDataType().equals(\"int\")) {\n\t\t\t\t\tpw.println(p.generateSetCall(\"Integer.parseInt(parts[\" + arrayCount + \"])\"));\n\t\t\t\t\tarrayCount++;\n\t\t\t\t}\n\t\t\t\telse if(p.getDataType().equals(\"double\")) {\n\t\t\t\t\tpw.println(p.generateSetCall(\"Double.parseDouble(parts[\" + arrayCount + \"])\"));\n\t\t\t\t\tarrayCount++;\n\t\t\t\t}\n\t\t\t\telse if(p.getDataType().equals(\"long\")) {\n\t\t\t\t\tpw.println(p.generateSetCall(\"Long.parseLong(parts[\" + arrayCount + \"])\"));\n\t\t\t\t\tarrayCount++;\n\t\t\t\t}\n\t\t\t\telse if(p.getDataType().equals(\"boolean\")) {\n\t\t\t\t\tpw.println(p.generateSetCall(\"Boolean.parseBoolean(parts[\" + arrayCount + \"])\"));\n\t\t\t\t\tarrayCount++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpw.println(p.generateSetCall(\"parts[\" + arrayCount + \"]\"));\n\t\t\t\t\tarrayCount++;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tpw.println(\"\\n\\t}\");\n\n\t\t\t//Methods\n\t\t\tpw.println(\"\\n\\t//======================================================= Methods\\n\");\n\n\t\t\t\t//Equals\n\t\t\tpw.println(\"\\tpublic boolean equals(Object obj) {\");\n\t\t\tpw.println(\"\\t\\tif(!(obj instanceof \" + className + \")) return false;\");\n\t\t\tpw.println(\"\\t\\t\" + className + \" \" + className.substring(0,1).toLowerCase() + \" = (\" + className + \")obj;\");\n\t\t\tpw.println(\"\\t\\treturn getEqualsString().equals(\" + className.substring(0,1).toLowerCase() + \".getEqualsString());\");\n\t\t\tpw.println(\"\\t}\");\n\t\t\t\n\t\t\t\t//EqualsHelper\n\t\t\tpw.println(\"\\n\\tprivate String getEqualsString() {\");\n\t\t\tpw.print(\"\\t\\treturn \");\n\t\t\tfor(int i=0; i<propertyList.size()-1; i++) {\n\t\t\t\tpw.print(propertyList.get(i).getFieldName() + \" + \\\"~\\\" + \");\n\t\t\t}\n\t\t\tpw.print(propertyList.get(propertyList.size()-1).getFieldName() + \";\\n\");\n\t\t\tpw.println(\"\\t}\");\n\t\t\t\n\t\t\t\t//toString\n\t\t\tpw.println(\"\\n\\tpublic String toString() {\");\n\t\t\tpw.print(\"\\t\\treturn \\\"\");\n\t\t\tfor(int i=0; i<propertyList.size()-1; i++) {\n\t\t\t\tpw.print(propertyList.get(i).generateUpperCase() + \": \\\" + \" + propertyList.get(i).getFieldName() + \" + \\\", \");\n\t\t\t}\n\t\t\tpw.print(propertyList.get(propertyList.size()-1).generateUpperCase() + \": \\\" + \" + propertyList.get(propertyList.size()-1).getFieldName() + \";\\n\");\n\t\t\tpw.println(\"\\t}\");\n\t\t\t\n\t\t\t\n\t\t\t//Getters/Setters\n\t\t\tpw.println(\"\\n\\t//======================================================= Getters/Setters\\n\");\n\t\t\tfor(Properties p: propertyList) {\n\t\t\t\tpw.println(p.generateGetter());\n\t\t\t}\n\t\t\tpw.println();\n\t\t\tfor(Properties p: propertyList) {\n\t\t\t\tpw.println(p.generateSetter());\n\t\t\t}\n\n\t\t\t//End of the file code\n\t\t\tpw.print(\"\\n\\n}\");\n\t\t\tfin.close();\n\t\t\tpw.close();\n\n\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error: \" + e.getMessage());\n\t\t} finally { //Checked Last after try\n\t\t\ttry {fin.close();} catch (Exception e) {} //Just Double Checking\n\n\t\t}\n\n\n\n\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\treadCsvFileEClass = createEClass(READ_CSV_FILE);\n\t\tcreateEAttribute(readCsvFileEClass, READ_CSV_FILE__URI);\n\n\t\tprintEClass = createEClass(PRINT);\n\t\tcreateEReference(printEClass, PRINT__INPUT);\n\n\t\twriteCsvFileEClass = createEClass(WRITE_CSV_FILE);\n\t\tcreateEReference(writeCsvFileEClass, WRITE_CSV_FILE__TABLE);\n\t\tcreateEAttribute(writeCsvFileEClass, WRITE_CSV_FILE__URI);\n\n\t\texcludeColumnsEClass = createEClass(EXCLUDE_COLUMNS);\n\t\tcreateEReference(excludeColumnsEClass, EXCLUDE_COLUMNS__TABLE);\n\t\tcreateEAttribute(excludeColumnsEClass, EXCLUDE_COLUMNS__COLUMNS);\n\n\t\tselectColumnsEClass = createEClass(SELECT_COLUMNS);\n\t\tcreateEReference(selectColumnsEClass, SELECT_COLUMNS__TABLE);\n\t\tcreateEAttribute(selectColumnsEClass, SELECT_COLUMNS__COLUMNS);\n\n\t\tassertTablesMatchEClass = createEClass(ASSERT_TABLES_MATCH);\n\t\tcreateEReference(assertTablesMatchEClass, ASSERT_TABLES_MATCH__LEFT);\n\t\tcreateEReference(assertTablesMatchEClass, ASSERT_TABLES_MATCH__RIGHT);\n\t\tcreateEAttribute(assertTablesMatchEClass, ASSERT_TABLES_MATCH__IGNORE_COLUMN_ORDER);\n\t\tcreateEAttribute(assertTablesMatchEClass, ASSERT_TABLES_MATCH__IGNORE_MISSING_COLUMNS);\n\n\t\twriteLinesEClass = createEClass(WRITE_LINES);\n\t\tcreateEAttribute(writeLinesEClass, WRITE_LINES__URI);\n\t\tcreateEAttribute(writeLinesEClass, WRITE_LINES__APPEND);\n\n\t\treadLinesEClass = createEClass(READ_LINES);\n\t\tcreateEAttribute(readLinesEClass, READ_LINES__URI);\n\n\t\tselectRowsEClass = createEClass(SELECT_ROWS);\n\t\tcreateEReference(selectRowsEClass, SELECT_ROWS__TABLE);\n\t\tcreateEAttribute(selectRowsEClass, SELECT_ROWS__COLUMN);\n\t\tcreateEAttribute(selectRowsEClass, SELECT_ROWS__VALUE);\n\t\tcreateEAttribute(selectRowsEClass, SELECT_ROWS__MATCH);\n\n\t\texcludeRowsEClass = createEClass(EXCLUDE_ROWS);\n\t\tcreateEReference(excludeRowsEClass, EXCLUDE_ROWS__TABLE);\n\t\tcreateEAttribute(excludeRowsEClass, EXCLUDE_ROWS__COLUMN);\n\t\tcreateEAttribute(excludeRowsEClass, EXCLUDE_ROWS__VALUE);\n\t\tcreateEAttribute(excludeRowsEClass, EXCLUDE_ROWS__MATCH);\n\n\t\tasTableDataEClass = createEClass(AS_TABLE_DATA);\n\t\tcreateEReference(asTableDataEClass, AS_TABLE_DATA__INPUT);\n\n\t\treadPropertiesEClass = createEClass(READ_PROPERTIES);\n\t\tcreateEAttribute(readPropertiesEClass, READ_PROPERTIES__URI);\n\n\t\t// Create enums\n\t\tignoreColumnsModeEEnum = createEEnum(IGNORE_COLUMNS_MODE);\n\t\trowMatchModeEEnum = createEEnum(ROW_MATCH_MODE);\n\t}", "public static FileReader getReader() {\n return new CsvFileReader();\n }", "public interface ITaskFactoryLoader {\n\n\t/**\n\t * Dynamically load an ITaskFactory instance given its class name. \n\t * @param classname The fully qualified class name of the desired ITaskFactory class.\n\t * @return An ITaskFactory instance.\n\t */\n\tITaskFactory<?> load(String classname);\n\n}", "public static Serializer getSerializer(Properties format) {\n/* */ Serializer serializer;\n/* */ \n/* 60 */ try { String method = format.getProperty(\"method\");\n/* */ \n/* 62 */ if (method == null) {\n/* 63 */ throw new IllegalArgumentException(\"The output format has a null method name\");\n/* */ }\n/* */ \n/* 66 */ String className = format.getProperty(\"{http://xml.apache.org/xalan}content-handler\");\n/* */ \n/* */ \n/* */ \n/* 70 */ if (null == className) {\n/* */ \n/* */ \n/* 73 */ Properties methodDefaults = OutputPropertiesFactory.getDefaultMethodProperties(method);\n/* */ \n/* 75 */ className = methodDefaults.getProperty(\"{http://xml.apache.org/xalan}content-handler\");\n/* */ \n/* 77 */ if (null == className) {\n/* 78 */ throw new IllegalArgumentException(\"The output format must have a '{http://xml.apache.org/xalan}content-handler' property!\");\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 85 */ ClassLoader loader = ObjectFactory.findClassLoader();\n/* */ \n/* 87 */ Class cls = ObjectFactory.findProviderClass(className, loader, true);\n/* */ \n/* */ \n/* */ \n/* 91 */ Object obj = cls.newInstance();\n/* */ \n/* 93 */ if (obj instanceof SerializationHandler)\n/* */ \n/* */ { \n/* 96 */ serializer = cls.newInstance();\n/* 97 */ serializer.setOutputFormat(format);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* 105 */ else if (obj instanceof ContentHandler)\n/* */ \n/* */ { \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 114 */ className = \"org.apache.xml.serializer.ToXMLSAXHandler\";\n/* 115 */ cls = ObjectFactory.findProviderClass(className, loader, true);\n/* 116 */ SerializationHandler sh = (SerializationHandler)cls.newInstance();\n/* */ \n/* 118 */ sh.setContentHandler((ContentHandler)obj);\n/* 119 */ sh.setOutputFormat(format);\n/* */ \n/* 121 */ serializer = sh;\n/* */ }\n/* */ \n/* */ else\n/* */ \n/* */ { \n/* 127 */ throw new Exception(XMLMessages.createXMLMessage(\"ER_SERIALIZER_NOT_CONTENTHANDLER\", new Object[] { className })); } } catch (Exception e)\n/* */ \n/* */ { \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 137 */ throw new WrappedRuntimeException(e); }\n/* */ \n/* */ \n/* */ \n/* 141 */ return serializer;\n/* */ }", "public static void load() {\r\n\t\ttransList = new ArrayList<Transaction>();\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"loading all trans...\");\r\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"src/transaction.csv\"));\r\n\t\t\treader.readLine();\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tString item[] = line.split(\",\");\r\n\t\t\t\tString type = item[0];\r\n\t\t\t\tint acc = Integer.parseInt(item[1]);\r\n\t\t\t\tdouble amount = Double.parseDouble(item[2]);\r\n\t\t\t\tint year = Integer.parseInt(item[3]);\r\n\t\t\t\tint month = Integer.parseInt(item[4]);\r\n\t\t\t\tint date = Integer.parseInt(item[5]);\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\tcal.set(year, month - 1, date);\r\n\t\t\t\tif (type.charAt(0) == 'w') {\r\n\t\t\t\t\tWithdrawal trans = new Withdrawal(acc, amount, cal);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t} else if (type.charAt(0) == 'd') {\r\n\t\t\t\t\tboolean cleared = Boolean.parseBoolean(item[6]);\r\n\t\t\t\t\tDeposit trans = new Deposit(acc, amount, cal, cleared);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treader.close();\r\n\t\t\tSystem.out.println(\"loading finished\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static SerializerFactory createFactory(Class factory, \n Class javaType, \n QName xmlType) {\n if (factory == null) {\n return null;\n }\n\n try {\n if (factory == BeanSerializerFactory.class) {\n return new BeanSerializerFactory(javaType, xmlType);\n } else if (factory == SimpleSerializerFactory.class) {\n return new SimpleSerializerFactory(javaType, xmlType);\n } else if (factory == EnumSerializerFactory.class) {\n return new EnumSerializerFactory(javaType, xmlType);\n } else if (factory == ElementSerializerFactory.class) {\n return new ElementSerializerFactory();\n } else if (factory == SimpleListSerializerFactory.class) {\n return new SimpleListSerializerFactory(javaType, xmlType);\n }\n } catch (Exception e) {\n if (log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n return null;\n }\n\n SerializerFactory sf = null;\n try {\n Method method = \n factory.getMethod(\"create\", CLASS_QNAME_CLASS);\n sf = (SerializerFactory) \n method.invoke(null, \n new Object[] {javaType, xmlType});\n } catch (NoSuchMethodException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (IllegalAccessException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (InvocationTargetException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n }\n\n if (sf == null) {\n try {\n Constructor constructor = \n factory.getConstructor(CLASS_QNAME_CLASS);\n sf = (SerializerFactory) \n constructor.newInstance(\n new Object[] {javaType, xmlType});\n } catch (NoSuchMethodException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (InstantiationException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (IllegalAccessException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n } catch (InvocationTargetException e) {\n if(log.isDebugEnabled()) {\n log.debug(org.apache.axis.utils.Messages.getMessage(\"exception00\"), e);\n }\n }\n }\n \n if (sf == null) {\n try {\n sf = (SerializerFactory) factory.newInstance();\n } catch (InstantiationException e) {\n } catch (IllegalAccessException e) {}\n }\n return sf;\n }", "public interface ReaderFromFile {\n\t\n\tpublic List<Data> readDataFromFile (String filename);\n}", "public static <T> List readCsvFile(String fileName, Class<T> type) throws Exception {\n try(InputStream inputStream = CSVReaderUtility.class.getResourceAsStream(String.format(\"/%s\",fileName))) {\n try(InputStreamReader isr = new InputStreamReader(inputStream)) {\n try(BufferedReader reader = new BufferedReader(isr)) {\n CsvToBean<T> csvToBean = new CsvToBeanBuilder(reader)\n .withType(type)\n .withIgnoreLeadingWhiteSpace(true)\n .build();\n\n return csvToBean.parse();\n }\n }\n }\n }", "public static <T> List<T> readWithCsvBeanReader(String csvFileName, Class<T> type, CellProcessor[] processors)\n\t\t\tthrows FileNotFoundException, IOException {\n\n\t\tICsvBeanReader beanReader = null;\n\t\tList<T> list = new ArrayList<>();\n\t\ttry {\n\t\t\tbeanReader = new CsvBeanReader(new FileReader(csvFileName), CsvPreference.STANDARD_PREFERENCE);\n\t\t\tfinal String[] header = beanReader.getHeader(true);\n\t\t\tT outputContainer;\n\t\t\twhile ((outputContainer = (T) beanReader.read(type, header, processors)) != null) {\n\t\t\t\tlist.add(outputContainer);\n\t\t\t}\n\t\t} finally {\n\t\t\tif (beanReader != null) {\n\t\t\t\tbeanReader.close();\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "protected abstract void _fromXml_(Element in_xml) throws ConfigurationException;", "public void fromXml(InputStream is) throws Exception {\r\n\t\tJAXBContext jc = JAXBContext.newInstance(TaskTypes.class);\r\n\t\tUnmarshaller u = jc.createUnmarshaller();\r\n\t\tTaskTypes tt = (TaskTypes) u.unmarshal(is);\r\n\t\tthis.taskTypes = tt.taskTypes;\r\n\t}", "public JPClass getParsedClass(File f) throws Exception;", "@Test\n public void readFile() throws IOException {\n ModelInfo modelInfo = ModelReader.create().load();\n\n }", "public void getXmlFromStream (BufferedReader reader){\n\n String tmpDate = null;\n String strDate = null;\n Date date = null;\n\n try{\n XmlPullParserFactory factory = XmlPullParserFactory.newInstance();\n XmlPullParser xpp = factory.newPullParser();\n\n // point the parser to our file.\n xpp.setInput(reader);\n // get initial eventType\n int eventType = xpp.getEventType();\n\n // process tag while not reaching the end of document\n while(eventType != XmlPullParser.END_DOCUMENT) {\n switch(eventType) {\n // at start of document: START_DOCUMENT\n case XmlPullParser.START_DOCUMENT:\n //study = new Study();\n break;\n\n // at start of a tag: START_TAG\n case XmlPullParser.START_TAG:\n // get tag name\n String tagName = xpp.getName();\n\n // if <Cube>, get attribute: 'currency'\n if(tagName.equalsIgnoreCase(KEY_CUBE)) {\n if(strDate == null){\n strDate = xpp.getAttributeValue(null, KEY_DATE);\n }\n\n String currency = xpp.getAttributeValue(null, KEY_CURRENCY);\n String rate = xpp.getAttributeValue(null, KEY_RATE);\n if(currency != null) {\n\n // Create new object\n date = createDate(strDate); // Create date\n double doubleRate = Double.parseDouble(rate); // Convert string to double\n cubes.add(new CubeXML(new Date(),currency, doubleRate)); // Create object and store in list\n }\n }\n break;\n }\n // jump to next event\n eventType = xpp.next();\n }\n\n // Add euro\n cubes.add(new CubeXML(date, \"Euro\",1));\n\n } catch (XmlPullParserException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public ArrayList<Instance> read() throws IOException{\n ArrayList<Instance> instances;\n instances = new ArrayList<>();\n String s;\n String[] c;\n Instance i;\n while(reader.ready()){\n s = getInstanceFromFile();\n i = new Instance();\n c = s.split(\",\");\n for(int j = 0; j < c.length - 1; j++)\n i.addFeature(Double.parseDouble(c[j]));\n // The last part of a line is the class label\n // See dataset that is used\n i.setClassification(c[c.length - 1]);\n instances.add(i);\n }\n return instances;\n }", "public interface ConfigFileLoader {\n\n /**\n * Save the map of the node instance,\n * to the file instance.\n *\n * @throws IOException When it fails to save {@see IOException}.\n */\n void save() throws IOException;\n\n /**\n * Load the map of the file instance,\n * in the node instance.\n *\n * @throws IOException When it fails to load {@see IOException}.\n */\n void load() throws IOException;\n\n /**\n * Change the file instance to new file instance.\n *\n * @param file new file instance.\n */\n void setNewFile(File file);\n\n}", "private static Data getDataObject(final String dataset) throws IOException {\n \n final Data data = Data.create(dataset, StandardCharsets.UTF_8, ';');\n \n // Read generalization hierachies\n final FilenameFilter hierarchyFilter = new FilenameFilter() {\n @Override\n public boolean accept(final File dir, final String name) {\n if (name.matches(dataset.substring(dataset.lastIndexOf(\"/\") + 1, dataset.length() - 4) + \"_hierarchy_(.)+.csv\")) {\n return true;\n } else {\n return false;\n }\n }\n };\n \n final File testDir = new File(dataset.substring(0, dataset.lastIndexOf(\"/\")));\n final File[] genHierFiles = testDir.listFiles(hierarchyFilter);\n final Pattern pattern = Pattern.compile(\"_hierarchy_(.*?).csv\");\n \n for (final File file : genHierFiles) {\n final Matcher matcher = pattern.matcher(file.getName());\n if (matcher.find()) {\n \n final CSVHierarchyInput hier = new CSVHierarchyInput(file, StandardCharsets.UTF_8, ';');\n final String attributeName = matcher.group(1);\n \n // use all found attribute hierarchies as qis\n data.getDefinition().setAttributeType(attributeName, Hierarchy.create(hier.getHierarchy()));\n \n }\n }\n \n return data;\n }", "private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public Object readObject(File file, int format) throws IOException, FileNotFoundException;", "public static Object objectLoader(String filename) throws IOException, ClassNotFoundException {\r\n\t\t// Creat file input stream\r\n\t\tFileInputStream fileInStr = new FileInputStream(filename);\r\n\t\t// Create object input steam\r\n\t\tObjectInputStream objInStr = new ObjectInputStream(fileInStr);\r\n\t\tObject obj = (Object) objInStr.readObject();\r\n\t\t// Closing all streams\r\n\t\tobjInStr.close();\r\n\t\tfileInStr.close();\r\n\t\tSystem.out.printf(\"Deserialized data - \" + filename); // Printing message plus file name that was saved\r\n\t\treturn obj;\r\n\t}", "public interface IMacroFactory {\n /**\n * Gets a Class of <code>GmMacro</code>.\n *\n * @return Class\n */\n Class getGmMacroClass();\n\n /**\n * Sets a <b>errorHandler</b>.\n *\n * @param errorHandler\n */\n void setErrorHandler(org.xml.sax.ErrorHandler errorHandler);\n\n /**\n * Gets a <b>errorHandler</b>.\n *\n * @return org.xml.sax.ErrorHandler\n */\n org.xml.sax.ErrorHandler getErrorHandler();\n\n /**\n * Sets a <b>entityResolver</b>.\n *\n * @param entityResolver\n */\n void setEntityResolver(org.xml.sax.EntityResolver entityResolver);\n\n /**\n * Gets a <b>entityResolver</b>.\n *\n * @return org.xml.sax.EntityResolver\n */\n org.xml.sax.EntityResolver getEntityResolver();\n\n /**\n * Sets a <b>baseUri</b>.\n *\n * @param baseUri\n */\n void setBaseUri(String baseUri);\n\n /**\n * Gets a <b>baseUri</b>.\n *\n * @return String\n */\n String getBaseUri();\n\n /**\n * Creates a <code>Object</code> by the File <code>file</code>.\n *\n * @param file\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(File file) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the String representation of URI <code>uri</code>.\n *\n * @param uri\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(String uri) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the URL <code>url</code>.\n *\n * @param url\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(URL url) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the InputStream <code>in</code>.\n *\n * @param in\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(InputStream in) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the InputSource <code>is</code>.\n *\n * @param is\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(InputSource is) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the Reader <code>reader</code>.\n *\n * @param reader\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(Reader reader) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the Object <code>source</code>.\n *\n * @param source\n * @return Object\n */\n Object create(Object source);\n\n /**\n * Creates a <code>Object</code> by the Document <code>dom</code>.\n *\n * @param doc\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>Object</code> by the Element <code>element</code>.\n *\n * @param element\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return Object\n */\n Object create(Element element) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code> by the File <code>file</code>.\n *\n * @param file\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(File file) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code>\n * by the String representation of URI <code>uri</code>.\n *\n * @param uri\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(String uri) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code> by the URL <code>url</code>.\n *\n * @param url\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(URL url) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code> by the InputStream <code>in</code>.\n *\n * @param in\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(InputStream in) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code> by the InputSource <code>is</code>.\n *\n * @param is\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(InputSource is) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code> by the Reader <code>reader</code>.\n *\n * @param reader\n * @exception IOException\n * @exception SAXException\n * @exception ParserConfigurationException\n * @return GmMacro\n */\n GmMacro createGmMacro(Reader reader) throws IOException, SAXException, ParserConfigurationException;\n\n /**\n * Creates a <code>GmMacro</code>.\n *\n * @return GmMacro\n */\n GmMacro createGmMacro();\n\n /**\n * Creates a <code>GmMacro</code> by the GmMacro <code>source</code>.\n *\n * @param source\n * @return GmMacro\n */\n GmMacro createGmMacro(GmMacro source);\n\n /**\n * Creates a <code>GmMacro</code> by the Document <code>doc</code>.\n *\n * @param doc\n * @return GmMacro\n */\n GmMacro createGmMacro(Document doc);\n\n /**\n * Creates a <code>GmMacro</code> by the Element <code>element</code>.\n *\n * @param element\n * @return GmMacro\n */\n GmMacro createGmMacro(Element element);\n\n /**\n * Creates a <code>GmMacro</code> by the Stack <code>stack</code>.\n * This mehtod is supposed to be used internally\n * by the Relaxer system.\n *\n * @param stack\n * @return GmMacro\n */\n GmMacro createGmMacro(RStack stack);\n}", "private void readFile(Scanner s, List<Instance> dest) throws FileNotFoundException {\n\t\t// first, read the training data into some storage location\n\t\twhile (s.hasNextLine()) {\n\t\t\tScanner line = new Scanner(s.nextLine());\n\t\t\tif (!line.hasNext()) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString result = line.next();\n\t\t\tboolean[] attrs = new boolean[attributeNames.size()];\n\t\t\tfor (int i = 0; line.hasNext(); i++) {\n\t\t\t\tattrs[i] = line.nextBoolean();\n\t\t\t}\n\t\t\t// print\n//\t\t\tSystem.out.print(\"Example \"+result+\" with \");\n//\t\t\tfor (int j = 0; j < attrs.length; j++) {\n//\t\t\t\tSystem.out.print(attrs[j] +\"\\t\");\n//\t\t\t}\n//\t\t\tSystem.out.print(\"\\n\");\n\t\t\t// endprint\n\t\t\tInstance a = new Instance(result,attrs);\n\t\t\tdest.add(a); // finally, add our example\n\t\t\tline.close();\n\t\t}\n\t}", "public StudentXMLRepository(Validator<Student> studentValidator,String XMLfile){\n super(studentValidator);\n this.XMLfile=XMLfile;\n try {\n loadData();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public SqlFileParser(InputStream stream) {\n this.reader = new BufferedReader(new InputStreamReader(stream));\n }", "private GameModel load(String xmlFilePath) throws Exception {\r\n\t\ttry {\r\n\t\t\t// Load Game from XML\r\n\t\t\tJAXBContext context = JAXBContext.newInstance(GameModel.class);\r\n\t\t\tSystem.out.println(\"instance passed \");\r\n\t\t\tUnmarshaller unmarshaller = context.createUnmarshaller();\r\n\t\t\tSystem.out.println(\"marshaller created\");\r\n\t\t\treturn (GameModel) unmarshaller.unmarshal(new File(xmlFilePath));\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// log the exception, show the error message on UI\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t}", "TransformFactory getFactory();", "public abstract RecordReader<K , V> createRecordReader(InputSplit inputSplit) throws IOException, SfsFileDoesNotExistException;", "@Test\n\tpublic void testReader2() {\n\t\tFile file = new File(\"examples/testing/FMs/fmTestReader2.fml\");\n\t\ttry {\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(file));\n\t\t\tBufferedReader br = new BufferedReader(new StringReader(_fm));\n\t\t\tString str;\n\t\t\twhile ((str = br.readLine()) != null) {\n\t\t\t\tbw.write(str);\n\t\t\t}\n\t\t\tbw.flush();\n\t\t\tbw.close();\n\t\t} catch (IOException e) {\n\n\t\t}\n\t\tFeatureModel fm = new FMLFeatureModelReader().parseFile(file);\n\t\tFeatureModelStringBuilder visitor = new FeatureModelStringBuilder(fm);\n\t\tString produced = visitor.toString();\n\t\tassertEquals(_fm, produced);\n\n\t\t// fm to XMI\n\t\tXMIResource xmi = new FMLFeatureModelWriter(fm)\n\t\t\t\t.toXMI(\"examples/testing/FMs/fmTestReader2ecore\");\n\t\t// XMI to fm\n\t\tFeatureModel fm3 = new FMLFeatureModelReader().parseXMIFile(xmi);\n\t\tFeatureModelStringBuilder visitor3 = new FeatureModelStringBuilder(fm3);\n\t\tString produced2 = visitor3.toString();\n\n\t\tassertEquals(_fm, produced2);\n\n\t}", "public static <T> T construct(String classname, String readable) throws ConfigurationException\n {\n Class<T> cls = FBUtilities.classForName(classname, readable);\n return construct(cls, classname, readable);\n }", "private void load(FileInputStream input) {\n\t\t\r\n\t}", "public interface IFileConfigurationLoader {\r\n\t\r\n\t/**\r\n\t * <p> Loads a FileConfiguration from the given file. </p>\r\n\t * \r\n\t * @param file File to load from\r\n\t * @return the FileConfiguration\r\n\t */\r\n\tpublic FileConfiguration loadConfiguration(File file);\r\n\t\r\n}", "public JDBCModelReader(DBObjectFactory factory, DBTypeConverter typeConverter, Connection connection,\n\t\t\tString schemeName, List<String> includeTableNamePatterns) {\n\t\tsuper();\n\t\tthis.connection = connection;\n\t\tthis.factory = factory;\n\t\tthis.includeTableNamePatterns = includeTableNamePatterns;\n\t\tthis.schemeName = schemeName;\n\t\tthis.typeConverter = typeConverter;\n\t}", "public void fillBoardFromCSV(String pathToCSV){\r\n \r\n BufferedReader br = null;\r\n String line = \" \";\r\n int index = 0;\r\n \r\n \r\n try{\r\n br = new BufferedReader(new FileReader(pathToCSV));\r\n while ((line = br.readLine()) != null) {\r\n String[] lines = line.split(\",\");\r\n System.out.println(lines.length);\r\n for(int i = 0; i < 11; i++){\r\n if(lines[i].equals(\"f\")){\r\n board[index][i] = new Flat(index,i);\r\n }\r\n if(lines[i].equals(\"s\")){\r\n board[index][i] = new Slot(index,i);\r\n }\r\n }\r\n index++; \r\n }\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } finally {\r\n if (br != null) {\r\n try {\r\n br.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n \r\n \r\n }", "public void loadData(){\n try {\n entities.clear();\n\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.parse(fileName);\n\n Node root = document.getDocumentElement();\n NodeList nodeList = root.getChildNodes();\n for (int i = 0; i < nodeList.getLength(); i++){\n Node node = nodeList.item(i);\n if (node.getNodeType() == Node.ELEMENT_NODE){\n Element element = (Element) node;\n Department department = createDepartmentFromElement(element);\n try{\n super.save(department);\n } catch (RepositoryException | ValidatorException e) {\n e.printStackTrace();\n }\n }\n }\n } catch (SAXException | ParserConfigurationException | IOException e) {\n e.printStackTrace();\n }\n }", "T deserialize(InputStream stream) throws IOException;", "public void testStore() throws IOException, ClassNotFoundException {\n\n\t\t\tWriter out = new FileWriter(\"people\");\n\t\t\tpeople.export(new CSVExporter(out));\n\t\t\tout.close();\n\n\t\t\tReader in = new FileReader(\"people\");\n\t\t\tpeople = new ConcreteTable(new CSVImporter(in));\n\t\t\tin.close();\n\t\t}", "private void initFromFile(Configuration config) throws FileNotFoundException {\n String file = config.getString(OrderFile_Type_Property_Name);\n List<List<String>> contents = FileUtils.readCsv(file);\n int index;\n for (List<String> rowContent : contents) {\n index = 0;\n String accountId = rowContent.get(index++);\n String orderId = rowContent.get(index++);\n String exchange = rowContent.get(index++);\n String stockId = rowContent.get(index++);\n String tradingDay = rowContent.get(index++);\n\n\n if (this.date == 0) {\n // 2019-11-13 00:00:00\n this.date = TimeUtils.formatTradeDate(tradingDay);\n } else if (TimeUtils.formatTradeDate(tradingDay) != date) {\n throw new InitializationException(MessageFormat.format(\"Two different trading days are sent to system, {0} and {1}.\", String.valueOf(this.date), String.valueOf(TimeUtils.formatTradeDate(tradingDay))));\n }\n\n String side = rowContent.get(index++);\n String type = rowContent.get(index++);\n double price = Double.valueOf(rowContent.get(index++));\n String algo = rowContent.get(index++);\n String startTime = rowContent.get(index++);\n String endTime = rowContent.get(index++);\n int qty = Integer.valueOf(rowContent.get(index++));\n double pov = Double.valueOf(rowContent.get(index));\n\n Order order = new Order(orderId, accountId, stockId, startTime, endTime, algo, type, price, pov, side, qty, exchange);\n this.cache.put(orderId, order);\n }\n }", "public void load() throws ClassNotFoundException, IOException;", "public JavaClass parse() throws IOException, ClassFormatException {\n try {\n if (fileOwned) {\n dataInputStream = new DataInputStream(new BufferedInputStream(new FileInputStream(\n file_name), BUF_SIZE));\n }\n /****************** Read headers ********************************/\n // Check magic tag of class file\n readID();\n // Get compiler version\n readVersion();\n /****************** Read constant pool and related **************/\n // Read constant pool entries\n readConstantPool();\n // Get class information\n readClassInfo();\n // Get interface information, i.e., implemented interfaces\n readInterfaces();\n /****************** Read class fields and methods ***************/\n // Read class fields, i.e., the variables of the class\n readFields();\n // Read class methods, i.e., the functions in the class\n readMethods();\n // Read class attributes\n readAttributes();\n }\n finally {\n if (fileOwned) {\n IOUtils.closeQuitely(dataInputStream);\n }\n }\n\n // Return the information we have gathered in a new object\n return new JavaClass(class_name_index, superclass_name_index, file_name, major, minor,\n access_flags, constant_pool, interfaces, fields, methods, attributes, JavaClass.FILE);\n }", "public void ach_doc_type_csv_test () {\n\t\t\n\t}", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n Gson gson = new Gson();\n Type listFeelingType = new TypeToken<ArrayList<Feeling>>(){}.getType();\n recordedFeelings.clear();\n ArrayList<Feeling> tmp = gson.fromJson(reader, listFeelingType);\n recordedFeelings.addAll(tmp);\n fis.close();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n recordedFeelings = new ArrayList<Feeling>();\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "@Override\n public ToDoList readCSV(String csvPath) throws InvalidArgumentException {\n this.csvPath = csvPath;\n this.toDoList = new ToDoList();\n\n BufferedReader inputFile = null;\n try {\n inputFile = new BufferedReader(new FileReader(this.csvPath));\n\n String line = inputFile.readLine();\n if (line == null) {\n inputFile.close();\n return this.toDoList;\n } // Empty CSV file, no need for processing.\n this.processHeader(line);\n while ((line = inputFile.readLine()) != null) {\n this.processToDoItem(line);\n }\n inputFile.close();\n return this.toDoList;\n } catch (FileNotFoundException fnfe) {\n throw new InvalidArgumentException(\"OOPS! File not found!\");\n } catch (IOException ioe) {\n throw new InvalidArgumentException(\"There is somthing wrong!\");\n }\n }", "public <T> T fromXML(final String xml, final TypePermission... permissions)\n throws ClassNotFoundException, ObjectStreamException {\n try {\n return fromXML(new StringReader(xml), permissions);\n } catch (final ObjectStreamException e) {\n throw e;\n } catch (final IOException e) {\n throw new StreamException(\"Unexpected IO error from a StringReader\", e);\n }\n }", "public SourceFileReader createSourceFileReader(String fileReaderType) {\n\t\tSourceFileReader fileReader;\n\t\tif (fileReaderType.equals(\"local\")) {\n\t\t\tfileReader = new LocalFileReader();\n\t\t} else if (fileReaderType.equals(\"web\")) {\n\t\t\tfileReader = new WebFileReader();\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Unknown file reader type : \" + fileReaderType);\n\t\t}\n\t\treturn fileReader;\n\t}", "@Override\n public void read(DataReader in) throws IOException {\n if (versionInfo.getAssetVersion() >= 7) {\n versionInfo.setUnityRevision(new UnityVersion(in.readStringNull(255)));\n attributes = in.readInt();\n }\n \n classes.clear();\n \n if (versionInfo.getAssetVersion() >= 14) {\n StringTable stInt = new StringTable();\n \n embedded = in.readBoolean();\n int numBaseClasses = in.readInt();\n\n for (int i = 0; i < numBaseClasses; i++) {\n int classID = in.readInt();\n \n TypeClass typeClass = new TypeClass();\n typeClass.setClassID(classID);\n \n if (classID < 0) {\n UnityGUID scriptGUID = new UnityGUID();\n scriptGUID.read(in);\n typeClass.setScriptGUID(scriptGUID);\n }\n\n UnityGUID classGUID = new UnityGUID();\n classGUID.read(in);\n typeClass.setClassGUID(classGUID);\n \n if (embedded) {\n TypeNode node = new TypeNode();\n readFieldTypeNodeNew(in, node, stInt);\n typeClass.setTypeTree(node);\n }\n \n classes.add(typeClass);\n }\n } else {\n int numBaseClasses = in.readInt();\n for (int i = 0; i < numBaseClasses; i++) {\n int classID = in.readInt();\n\n TypeClass typeClass = new TypeClass();\n typeClass.setClassID(classID);\n \n TypeNode typeNode = new TypeNode();\n readFieldTypeNodeOld(in, typeNode, 0);\n typeClass.setTypeTree(typeNode);\n \n classes.add(typeClass);\n }\n \n embedded = numBaseClasses > 0;\n\n // padding\n if (versionInfo.getAssetVersion() >= 7) {\n in.readInt();\n }\n }\n }", "public ValidationInfo createCsv() {\n LocaleModule lm = LocaleManager.getInstance().getModule(LocaleModuleResource.Main);\n\n ValidationInfo vi = new ValidationInfo();\n if (_rows == null || _rows.size() == 0) {\n vi.setMessageWarning(lm.getString(\"general_export_nothing\"));\n return vi;\n }\n\n String fullFilePath = getFileName();\n\n StringBuilder sb = new StringBuilder();\n\n //create header\n String headerRow = _rows.get(0).createCsvRow(true);\n\n sb.append(headerRow + System.lineSeparator());\n\n try {\n //create rows\n for (Exportable e : _rows) {\n String rowString = e.createCsvRow(false);\n sb.append(rowString + System.lineSeparator());\n }\n\n //Output\n String strContent = sb.toString();\n Utils.writeFile(strContent, fullFilePath);\n\n vi.setMessageSuccess(String.format(lm.getString(\"general_export_success\"),\n _rows.size(), fullFilePath));\n } catch (Exception ex) {\n vi.setMessageError(lm.getString(\"general_export_error\"));\n }\n\n //open\n Utils.openFolder(fullFilePath);\n\n return vi;\n }", "public CsvManagerAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = CsvManagerPackage.eINSTANCE;\n\t\t}\n\t}", "FileLoader createJob(Reader reader);" ]
[ "0.56429434", "0.5589463", "0.5550139", "0.54421955", "0.5387389", "0.5360611", "0.53377193", "0.5332099", "0.5320242", "0.53031623", "0.52734494", "0.527082", "0.5269779", "0.5246875", "0.5238454", "0.51857644", "0.51828283", "0.5180059", "0.51769394", "0.5170823", "0.5146753", "0.5114782", "0.5114714", "0.51002884", "0.50872487", "0.5075929", "0.50683427", "0.50605035", "0.50522244", "0.50505537", "0.50458705", "0.5039885", "0.50336164", "0.5021787", "0.5016381", "0.5002299", "0.49989238", "0.49982095", "0.4992619", "0.49898297", "0.49898294", "0.49717584", "0.49650216", "0.4960685", "0.49518237", "0.49448702", "0.4921958", "0.48937017", "0.4891836", "0.48909467", "0.48831505", "0.4875903", "0.48580357", "0.48559314", "0.4851296", "0.48495498", "0.48495", "0.48489058", "0.48302892", "0.48283607", "0.4817702", "0.48167613", "0.48166776", "0.481338", "0.48105657", "0.4805302", "0.47953588", "0.47910735", "0.47904122", "0.47889218", "0.47859582", "0.47763348", "0.47712436", "0.47660437", "0.47608894", "0.4757028", "0.47463357", "0.47456527", "0.4745449", "0.4745209", "0.4739475", "0.47326118", "0.47308493", "0.4727879", "0.4720354", "0.4715717", "0.47125918", "0.47099906", "0.47094166", "0.47072", "0.47021395", "0.47015774", "0.46964046", "0.4696061", "0.46941298", "0.46910915", "0.46863297", "0.4685472", "0.46853548", "0.46764433", "0.46706668" ]
0.0
-1
Logging out the user. Will set isLoggedIn flag to false in shared preferences Clears the user data from sqlite users table
private void logoutUser() { session.setLogin(false); db.deleteUsers(); // Launching the login activity Intent intent = new Intent(Activity_Main.this, Activity_Login.class); startActivity(intent); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void logOut() {\n mApi.getSession().unlink();\n\n // Clear our stored keys\n clearKeys();\n // Change UI state to display logged out version\n setLoggedIn(false);\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(MainActivity.this, Login.class);\n startActivity(intent);\n finish();\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n finish();\n }", "private void logoutUser() {\n\t\tsession.setLogin(false);\n\n\t\tdb.deleteUsers();\n\n\t\t// Launching the login activity\n\t\tIntent intent = new Intent(MainActivity.this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t}", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(getActivity(), LoginActivity.class);\n startActivity(intent);\n getActivity().finish();\n }", "public void doLogout() {\n mSingleton.getCookieStore().removeUser(mUser);\n mPreferences.setUser(null);\n new ActivityTable().flush();\n\n //update variables\n mUser = null;\n mLogin = false;\n\n //reset drawer\n restartActivity();\n }", "public void Logout(){\n preferences.edit().remove(userRef).apply();\n }", "private void logout() {\n userModel.setLoggedInUser(null);\n final Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n finish();\n }", "private void logoutUser() {\n\t\tsession.setLogin(false);\n\n\n\t\t// Launching the login activity\n\t\tIntent intent = new Intent(EnterActivity.this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t}", "public void logout() {\n\t\tthis.setCurrentUser(null);\n\t\tthis.setUserLoggedIn(false);\t\t\n\t}", "public void logout(){\n SharedPreferences settings = mContext.getSharedPreferences(\"UserData\", 0);\n SharedPreferences.Editor preferencesEditor = settings.edit();\n preferencesEditor.clear();\n preferencesEditor.commit();\n // take user back to login screen\n Intent logoutIntent = new Intent(mContext, LoginActivity.class);\n logoutIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n mContext.startActivity(logoutIntent);\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(EscolhaProjeto.this, LoginActivity.class);\n startActivity(intent);\n finish();\n }", "public void Logout()\n {\n isLoggedIn = false;\n connection.Disconnect(); \n connection = null;\n }", "protected void userLoggedOut() {\n\t\tRuvego.userLoggedOut();\n\t\tResultsActivityMenu.userLoggedOut();\n\t\tHistory.newItem(\"homePage\");\n\t}", "public void logout() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(AppConfig.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.clear();\n editor.apply();\n mCtx.startActivity(new Intent(mCtx, LoginActivity.class));\n }", "public void logOut() {\n\t\t//Inform the database that the user want to log out\n\t\tdc.logOutPlayer(activity);\n\t\t\n\t\t/*\n\t\t * Call is made to StartActivity, which surely is in the bottom of activity-stack. Add a flag to clear stack\n\t\t * and from StartActivity a call is made to the Login screen and StartActivity is finished. By doing this we\n\t\t * assure that Login screen is at the bottom of the activity-stack and a press on back button, while placed \n\t\t * on Login screen, will result in that the application is closed\n\t\t */\n\t\tIntent intent = new Intent(activity, StartActivity.class);\n\t\tintent.putExtra(\"finish\", true);\n\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\tactivity.startActivity(intent);\n\t\tactivity.finish();\n\t}", "public void logout() {\n loggedIn = \"\";\n FacesContext.getCurrentInstance().getExternalContext()\n .getSessionMap().put(\"loggedIn\", \"\");\n }", "private void logout() {\n ((MyApplication)this.getApplication()).setLoggedIn(false);\n// Intent intent = new Intent(this, StartupActivity.class);\n// startActivity(intent);\n }", "public void logOut() {\n Logger.d(TAG,\"login#logOut\");\n Logger.d(TAG,\"login#stop reconnecting\");\n //\t\teverlogined is enough to stop reconnecting\n everLogined = false;\n isLocalLogin = false;\n reqLoginOut();\n }", "public void logout() {\n // Mengambil method clear untuk menghapus data Shared Preference\n editor.clear();\n // Mengeksekusi perintah clear\n editor.commit();\n // Membuat intent untuk berpindah halaman\n Intent intent = new Intent(context, LoginActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n context.startActivity(intent);\n }", "private void logout(){\n ParseUser.logOut();\n removeUserFromPrefs();\n Intent intent = LandingActivity.intent_factory(this);\n startActivity(intent);\n }", "public static void deleteLogin(Context context) {\n SharedPreferences.Editor editor = context.getSharedPreferences(Utils.SHARED_PREFERENCES_FILE, Context.MODE_PRIVATE).edit();\n editor.putBoolean(LOGIN_SAVED_KEY, false);\n editor.apply();\n loggedIn = false;\n }", "private void Logout() {\n\n\t\tPreferenceUtil.getInstance(mContext).saveBoolean(\"exitApp\", true);\n\t\tPreferenceUtil.getInstance(mContext).clear();\n\t\tPreferenceUtil.getInstance(mContext).destroy();\n\n\t\tZganLoginService.toClearZganDB();\n\n\t\tstopService(new Intent(mContext, ZganPushService.class));\n\n\t\tsetContentView(R.layout.nullxml);\n\t\tfinish();\n\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\n\t\tSystem.exit(0);\n\t}", "public void logout() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.clear();\n editor.apply();\n Intent myIntent = new Intent(mCtx, LoginActivity.class);\n myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n mCtx.startActivity(myIntent);\n }", "private void logout() {\n\t\tParseUser.logOut();\n\n\t\t// Go to the login view\n\t\tstartLoginActivity();\n\t}", "public void logout() {\r\n SharedPreferences sharedPreferences = ctx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = sharedPreferences.edit();\r\n editor.clear();\r\n editor.apply();\r\n ctx.startActivity(new Intent(ctx, MainActivity.class));\r\n }", "public void userLoggedOut(User user) \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"User logged out\");\n\t\t\tMainActivity.this.userLoggedOut();\t\n\t\t}", "public void setlogUserOut() {\n\t\tcontroller.logoutUser();\n\t\tuserMenuButton.setText(\"\");\n\t\tuserMenuButton.setStyle(\"\");\n\t\tuserMenuButton.getItems().removeAll(menu1, menu2);\n\t\tloggedinuser.setVisible(false);\n\t\tuserSettings.setVisible(false);\n\t\tloginoption.setVisible(true);\n\n\t}", "public void userLoggedOut(User user) \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"User logged out\");\n\t\t\tMainActivity.this.userLoggedOut();\n\t\t}", "public void logOut() {\r\n\t\tthis.modoAdmin = false;\r\n\t\tthis.usuarioConectado = null;\r\n\t}", "public void logoutUser() {\n editor.remove(Is_Login).commit();\n editor.remove(Key_Name).commit();\n editor.remove(Key_Email).commit();\n editor.remove(KEY_CUSTOMERGROUP_ID).commit();\n // editor.clear();\n // editor.commit();\n // After logout redirect user to Loing Activity\n\n }", "private void LogOut() {\n FirebaseAuth.getInstance().signOut();\n Intent intToMain = new Intent(getActivity(),LoginActivity.class);\n startActivity(intToMain);\n }", "private void logout() {\n getSharedPreferences(HELP_CATEGORIES, MODE_PRIVATE).edit().clear().apply();\n getSharedPreferences(LOGIN, MODE_PRIVATE).edit().putBoolean(IS_LOGGED_IN, false).apply();\n\n OkHttpClient client = new OkHttpClient();\n Request request = new Request.Builder()\n .url(URL + \"/nuh/logout\")\n .build();\n AsyncTask.execute(() -> {\n try {\n client.newCall(request).execute();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }", "private void logout() {\n //set offline flag\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\n new PostNoSqlDataBase(this).offline(uid);\n\n //logout\n // FirebaseAuth mAuth = FirebaseAuth.getInstance();\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(R.string.default_web_client_id))\n .requestEmail()\n .build();\n\n GoogleSignInClient mGoogleSignInClient = GoogleSignIn.getClient(this, gso);\n mGoogleSignInClient.signOut();\n FirebaseAuth.getInstance().signOut();\n //go to the main activity\n startActivity(new Intent(this, SignUpActivity.class));\n finish();\n }", "private void signOutUser() {\n mAuth.signOut();\n LoginManager.getInstance().logOut();\n Toast.makeText(ChatMessage.this, \"You have been logout\", Toast.LENGTH_SHORT).show();\n finishAffinity();\n proceed();\n }", "public void logOut() {\n sp.edit().clear().commit();\n }", "public void attemptLogout() {\n spEditor.clear();\n spEditor.putBoolean(LOGGEDIN_KEY, false);\n spEditor.commit();\n }", "public void Logout() {\n \t\t\t\n \t\t}", "private void signOut(){\n LoginSharedPreference.endLoginSession(this);\n Intent intent = new Intent(this,LoginActivity.class);\n startActivity(intent);\n finish();\n }", "public static void Logout() throws IOException {\n Socket client = ConnectionToServer();\n // Checks if the sever is online\n if (client.isConnected()) {\n OutputStream outputStream = client.getOutputStream();\n InputStream inputStream = client.getInputStream();\n\n ObjectOutputStream send = new ObjectOutputStream(outputStream);\n ObjectInputStream receiver = new ObjectInputStream(inputStream);\n\n send.writeUTF(\"Logout\"); // Send logout to server\n send.writeUTF(loggedInUser); // Send username to server\n send.flush();\n// End connections\n send.close();\n receiver.close();\n client.close();\n }\n// Resetting the application for the user on the client-side\n loggedInUser = \"\";\n Login.usernameText.setText(\"\");\n loginSuccessful = false;\n boolean[] falsePermission = {false, false, false, false};\n permission.SetUserPermission(falsePermission);\n token = \"\";\n ControlPanelFrameHandler.LogoutWindow();\n }", "@Override\n\tpublic void logOutUser() {\n\t\t\n\t}", "public void logout(){\r\n\t\tallUser.remove(this.sessionID);\r\n\t\tthis.sessionID = -1;\r\n\t}", "public void onSignOut() {\n SharedPreferences userPrefs = PreferenceManager.getDefaultSharedPreferences(\n TBLoaderAppContext.getInstance());\n SharedPreferences.Editor editor = userPrefs.edit();\n editor.clear().apply();\n mTbSrnHelper = null;\n mUserPrograms = null;\n }", "public void clearSession(){\n mIsLoggedIn = false;\n mUser = null;\n clearSharedPreference();\n }", "public void logoutCurrentUser() {\n mAuth.signOut();\n this.loggedInUser = null;\n }", "public void logOutOnClick(View view)\n {\n Intent mainIntent = new Intent(SettingsActivity.this, AppLoginActivity.class);\n mainIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n FirebaseAuth.getInstance().signOut();\n startActivity(mainIntent);\n finish();\n }", "private void logout(){\n Log.i(\"HHH\",\"disconnect\");\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\n alertDialogBuilder.setMessage(\"Are you sure you want to log out ?\");\n alertDialogBuilder.setPositiveButton(\"YES\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface arg0, int arg1) {\n Intent intent1 = new Intent(ControlDiagnostic.this, HistoryActivity.class);\n startActivity(intent1);\n //Getting out sharedpreferences\n //SharedPreferences preferences = getSharedPreferences(Config.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n //Getting editor\n /* SharedPreferences.Editor editor = preferences.edit();\n\n //Puting the value false for loggedin\n editor.putBoolean(Config.LOGGEDIN_SHARED_PREF, false);\n\n //Putting blank value to email\n editor.putString(Config.KEY_USER_EMAIL, \"\");\n\n //Saving the sharedpreferences\n editor.commit();*/\n\n //Starting login activity\n // Intent intent = new Intent(NavigationActivity.this, Login.class);\n // startActivity(intent);\n }\n });\n\n alertDialogBuilder.setNegativeButton(\"NO\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface arg0, int arg1) {\n\n }\n });\n\n //Showing the alert dialog\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n\n }", "public boolean logoutUser(Context context){\n DatabaseHandler db = new DatabaseHandler(context);\n db.resetTables();\n return true;\n }", "public void logout(final Context applicationContext) {\n LoginManager.getInstance().logOut();\n\n SharedPreferences preferences\n = applicationContext.getSharedPreferences(ApplicationConstants.sSTRING_SHARED_PREFERENCES_FILENAME, Context.MODE_PRIVATE);\n // Clear SharedPreferences\n preferences.edit().clear().apply();\n\n setLoginState(false, applicationContext);\n\n }", "@FXML\r\n private void handleButtonLogOut() {\r\n sessionContent.remove(\"activeId\");\r\n user = null;\r\n MobileApplication.getInstance().switchView(LOGIN_VIEW);\r\n }", "public void logOut() {\n\t\t// Close all opened windows and start up the App again\n\t\tcurrentUser = null;\n\t\tcurrentContact = null;\n\t\tjava.awt.Window win[] = java.awt.Window.getWindows();\n\t\tfor (int i = 0; i < win.length; i++) {\n\t\t\twin[i].dispose();\n\t\t}\n\t\tApp.main(null);\n\t}", "public boolean logoutUser(Context context){\n\t\tDatabaseHandler db = new DatabaseHandler(context);\n\t\tdb.resetTables();\n\t\treturn true;\n\t}", "public void onLogout() {\n ParseUser.logOut();\n\n promptForLogin();\n }", "public static void Logout(){\n\t\tloginSystem();\r\n\t\t\r\n\t}", "public void logout () {\n\t\tif (isLoggedIn()) {\n\t\t\tGPPSignIn.sharedInstance().signOut();\n\t\t\tGPGManager.sharedInstance().signOut();\n\t\t}\n\t}", "void logoff();", "public void logout() {\n\n clearData();\n Intent intent = new Intent(getContext(), LoginActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n\n\n }", "private void doLogout() {\r\n\t\tdoctor.setOnline(0);\r\n\t\t// Set doctor as logged out\r\n\t\tdbAdapter.updateDoctor(doctor);\r\n\t\t// Release objects and notify observers\r\n\t\tloggedIn = false;\r\n\t\tnotifyObservers();\r\n\t\tdoctors = null;\r\n\t\tdoctor = null;\r\n\t}", "public void stopLogin(Context context) {\n\t\tm_Login = false;\n\t\tif (context != null) saveMisc(context);\n\t}", "public void onLogout(){\n\t\tString userid = prefs.getString(ctx.getString(R.string.prefs_username),\"\" );\n\t\t\n\t\tif (! userid.equals(\"\"))\n\t\t{\n\t\t\tString firstname = \"\";\n\t\t\tString lastname =\"\" ;\n\t\t\t\n\t\t\tif (! prefs.getString(ctx.getString(R.string.prefs_display_name),\"\").isEmpty()) {\n\t\t\t\tString displayname = prefs.getString(ctx.getString(R.string.prefs_display_name),\"\");\n\t\t\t\tString[] name = displayname.split(\" \");\n\t\t\t\tif (name.length > 0) {\n\t\t\t\t\tfirstname = name[0];\n\t\t\t\t\tlastname = name[1];\n\t\t\t\t} else {\n\t\t\t\t\tfirstname = displayname;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint points = prefs.getInt(ctx.getString(R.string.prefs_points),0);\n\t\t\tint badges = prefs.getInt(ctx.getString(R.string.prefs_badges),0);\t\t\t\n\t\t\tboolean scoring = prefs.getBoolean(ctx.getString(R.string.prefs_scoring_enabled),true);\n\n\t\t\tupdateUser(userid, prefs.getString(ctx.getString(R.string.prefs_api_key),\"\"), firstname, lastname, points, badges, scoring);\n\t\t}\n\t\t\n\t\t\n\t\t// Reset preferences\n\t\tEditor editor = prefs.edit();\n \teditor.putString(ctx.getString(R.string.prefs_username), \"\");\n \teditor.putString(ctx.getString(R.string.prefs_api_key), \"\");\n \teditor.putString(ctx.getString(R.string.prefs_display_name),\"\");\n \teditor.putInt(ctx.getString(R.string.prefs_points), 0);\n \teditor.putInt(ctx.getString(R.string.prefs_badges), 0);\n \teditor.putBoolean(ctx.getString(R.string.prefs_scoring_enabled), false);\n \teditor.commit();\n\t}", "public void logout() {\n\n // Instance, user and token become null\n instance = null;\n user = null;\n authtoken = null;\n\n // Switch all the settings back to true\n isLifeStoryLinesOn = true;\n isFamilyTreeLinesOn = true;\n isSpouseLinesOn = true;\n isFatherSideOn = true;\n isMotherSideOn = true;\n isMaleEventsOn = true;\n isFemaleEventsOn = true;\n\n //Take care of resetting boolean logics use throughout app\n isLoggedIn = false;\n personOrSearch = false;\n startLocation = null;\n eventID = null;\n\n // Clear all lists\n\n people.clear();\n events.clear();\n personEvents.clear();\n currentPersonEvents.clear();\n eventTypes.clear();\n\n childrenMap.clear();\n maleSpouse.clear();\n femaleSpouse.clear();\n paternalAncestorsMales.clear();\n paternalAncestorsFemales.clear();\n maternalAncestorsMales.clear();\n maternalAncestorsFemales.clear();\n }", "public void logout(){\n\t\t\n\t\tcurrentUser.logout();\n\t\tcurrentUser = null;\n\t\tchangeViewPort(new GUI_Logout(\"\", \"\", this));\n\t}", "public void logOut() {\n try {\n // getGlobalNavigation().clickSignOut();\n } catch (TimeoutException e) {\n Log.log(\"logOut\", \"page loads for more than 30 seconds\", true);\n }\n }", "public void logout(View v){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.clear();\n editor.apply();\n Button view = findViewById(R.id.buttonView);\n view.setVisibility(View.INVISIBLE);\n Button logout = findViewById(R.id.buttonLogout);\n logout.setVisibility(View.INVISIBLE);\n EditText username = findViewById(R.id.username);\n username.setText(\"\");\n username.setHint(\"Username\");\n username.setVisibility(View.VISIBLE);\n EditText pass = findViewById(R.id.password);\n pass.setText(\"\");\n pass.setHint(\"Password\");\n pass.setVisibility(View.VISIBLE);\n Button login = findViewById(R.id.buttonLogin);\n login.setVisibility(View.VISIBLE);\n Button createAcc = findViewById(R.id.buttonCreateAccount);\n createAcc.setVisibility(View.VISIBLE);\n TextView accountName = findViewById(R.id.accountName);\n accountName.setVisibility(View.INVISIBLE);\n notification(this.getWindow().getDecorView(),\"You have been logged out!\");\n }", "protected void logout() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\t\tuserController.performLogout();\n\n\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t}", "@Override\n\tpublic void logout()\n\t{\n\t\tthis.user = null;\n\t}", "public void doLogout() {\n loggedIn = false;\r\n HttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n .getExternalContext().getSession(false);\r\n session.invalidate(); \r\n String pag= \"/login.xhtml\";\r\n redireccionar(pag);\r\n }", "void onLogout(boolean loggedIn);", "public void logOut() {\n\t\tToken.getIstance().setHashPassword(null);\n\t}", "public int logOut(String username)\n {\n\t (this.userCtrl.getUser(username)).setLoggedIn(false);\n\t this.clearBrowsingHistory();\n\t \n\t if (this.userCtrl.getUser(username).isLoggedIn()) // If the user is still logged in\n\t {\n\t\t return 0;\n\t }\n\t \n\t return 1; // If the user successfully logged out\n }", "private void onLogoutButtonClick() {\r\n mViewModel.logout();\r\n //Clear input fields\r\n mUsernameInput.setText(\"\");\r\n mTokenInput.setText(\"\");\r\n\r\n //Clear saved credentials\r\n FragmentActivity activity = getActivity();\r\n if (activity == null) {\r\n return;\r\n }\r\n SharedPreferences sharedPreferences = activity.getApplicationContext().getSharedPreferences(getString(R.string.key_pref_file), MODE_PRIVATE);\r\n SharedPreferences.Editor editor = sharedPreferences.edit();\r\n editor.putString(getString(R.string.key_pref_username), \"\");\r\n editor.putString(getString(R.string.key_pref_token), \"\");\r\n editor.apply();\r\n }", "@Override\n\tpublic void logout() {\n\t\tsessionService.setCurrentUserId(null);\n\t}", "private void logout() {\n fbAuth.signOut();\n startActivity(new Intent(getApplicationContext(), LoginActivity.class));\n finish();\n }", "public void logOut(){\n Intent intent=new Intent( getApplicationContext(), Login.class );\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity( intent );\n progressDialog.dismiss();\n finish();\n }", "private void logout() {\n\t\tgetUI().get().navigate(\"login\");\r\n\t\tgetUI().get().getSession().close();\r\n\t}", "public void logOutFirebaseAccounts() {\n AuthUI.getInstance()\n .signOut(mAccountsFragment.getContext())\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n public void onComplete(@NonNull Task<Void> task) {\n setNotLoggedInLayoutVisible();\n }\n });\n }", "@Override\n public void Logout() {\n\t \n }", "public static void makeUnlogged() {\n\t\tMemberSessionFacade.removeAttribute(ConfigKeys.LOGGED);\n//\t\tControllerUtils.addCookie(ConfigKeys.LOGGED, null);\n\t}", "public void logout() {\n updateToken(\"\");\n startActivity(new Intent(GarageListActivity.this, LoginScreenActivity.class));\n updateToken(\"\");\n finish();\n }", "private void signOut() {\n mAuth.signOut();\n updateUI(null);\n }", "private void logout() {\n ProgressDialog logoutProgressDialog = new ProgressDialog(ContributionsGalleryActivity.this);\n logoutProgressDialog.setMessage(getResources().getString(R.string.logging_out));\n logoutProgressDialog.setCancelable(false);\n logoutProgressDialog.show();\n ParseUser.logOutInBackground(e -> {\n logoutProgressDialog.dismiss();\n if (e != null) { // Logout has failed\n Snackbar.make(contributionsGalleryRelativeLayout, getResources().getString(R.string.logout_failed), Snackbar.LENGTH_LONG).show();\n }\n else { // Logout has succeeded\n goLoginSignupActivity();\n finish();\n }\n });\n }", "private void signOut() {\n mAuth.signOut();\n }", "private void signOut() {\n //logout of google\n GoogleSignIn.getClient(this, GoogleSignInOptions.DEFAULT_SIGN_IN).signOut()\n .addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n return;\n }\n });\n\n //logout of facebook\n LoginManager.getInstance().logOut();\n\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n }", "public void clearLoginInfo(){\n ProfileSharedPreferencesRepository.getInstance(application).clearLoginInfo();\n }", "public void logoutCurrentUser() {\n currentUser = null;\n }", "public void logout() {\n\n if (WarehouseHelper.warehouse_reserv_context.getUser().getId() != null) {\n //Save authentication line in HisLogin table\n HisLogin his_login = new HisLogin(\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName()\n + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + WarehouseHelper.warehouse_reserv_context.getUser().getLogin(),\n GlobalVars.APP_HOSTNAME, GlobalMethods.getStrTimeStamp()));\n his_login.setCreateId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n his_login.setWriteId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n\n String str = String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName() + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + PackagingVars.context.getUser().getLogin(), GlobalVars.APP_HOSTNAME,\n GlobalMethods.getStrTimeStamp());\n his_login.setMessage(str);\n\n str = \"\";\n his_login.create(his_login);\n\n //Reset the state\n state = new S001_ReservPalletNumberScan();\n\n this.clearContextSessionVals();\n\n connectedUserName_label.setText(\"\");\n }\n\n }", "public void removeCurrentUser() {\n currentUser.logout();\n currentUser = null;\n indicateUserLoginStatusChanged();\n }", "public void logout() {\n\n if (WarehouseHelper.warehouse_reserv_context.getUser().getId() != null) {\n //Save authentication line in HisLogin table\n /*\n HisLogin his_login = new HisLogin(\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n WarehouseHelper.warehouse_reserv_context.getUser().getId(),\n String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName()\n + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + WarehouseHelper.warehouse_reserv_context.getUser().getLogin(),\n GlobalVars.APP_HOSTNAME, GlobalMethods.getStrTimeStamp()));\n his_login.setCreateId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n his_login.setWriteId(WarehouseHelper.warehouse_reserv_context.getUser().getId());\n \n \n String str = String.format(Helper.INFO0012_LOGOUT_SUCCESS,\n WarehouseHelper.warehouse_reserv_context.getUser().getFirstName() + \" \" + WarehouseHelper.warehouse_reserv_context.getUser().getLastName()\n + \" / \" + PackagingVars.context.getUser().getLogin(), GlobalVars.APP_HOSTNAME,\n GlobalMethods.getStrTimeStamp());\n his_login.setMessage(str);\n\n str = \"\";\n his_login.create(his_login);\n */\n //Reset the state\n state = new S001_ReservPalletNumberScan();\n\n this.clearContextSessionVals();\n\n connectedUserName_label.setText(\"\");\n\n this.setVisible(false);\n }\n\n }", "public LoginPage logUserOut() {\n if (browser.findElements(By.id(LOGOUT_BUTTON_ID)).isEmpty()) {\n throw new RuntimeException(\"Cannot log the user out because the logout button is not visible. Is user logged in?\");\n }\n\n browser.findElement(By.id(LOGOUT_BUTTON_ID)).click();\n\n LoginPage shown = new LoginPage(browser);\n shown.waitUntilPageIsOpen();\n return shown;\n }", "@SuppressLint(\"StaticFieldLeak\")\n public void logout(View view) {\n new AsyncTask<Void, Void, Void>() {\n\n @Override\n protected Void doInBackground(Void... voids) {\n AppDataRepo repo = new AppDataRepo(MainActivity.this);\n User user = repo.getSignedUser();\n\n if (user != null) {\n repo.updateLoginStatus(user.getUserID(), false);\n }\n return null;\n }\n\n\n @Override\n protected void onPostExecute(Void aVoid) {\n super.onPostExecute(aVoid);\n finish();\n startActivity(new Intent(MainActivity.this, Login.class));\n\n }\n }.execute();\n }", "public void signOut(){\n mAuth.signOut();\n }", "void logout();", "void logout();", "private void logout() {\n Utils.showConfirmationDialogCallBack(MainActivity.this, getString(R.string.logout_sure), this);\n }", "private void signOut () {\n\n //Normal account sign out\n mAuth.signOut();\n //Google account sign out\n mGoogleSignInClient.signOut();\n updateUI(\"Signed out\");\n //Can't open chat without non-empty accountEmail\n accountEmail = \"\";\n }", "private void signOut () {\n mAuth.signOut();\n textViewStatus.setText(\"Signed Out\");\n }", "private void logout()\r\n {\r\n LogoutRequest request = new LogoutRequest();\r\n request.setUsername(username);\r\n this.sendRequest(request);\r\n }", "public String logout(){\r\n this.user = null;\r\n loggedIn = false;\r\n return \"/index?faces-redirect=true\";\r\n }", "public static void logout() {\n userId = -1;\n aisId = -1;\n \n name = \"\";\n role = \"\";\n roleFromDatabase = \"\";\n \n lastAction = LocalDateTime.now().minusYears(100);\n }", "private void logout() {\n\n\n GoogleSignInAccount account = GoogleSignIn.getLastSignedInAccount(context);\n //start home activity, when account is not null (user already signed in)\n if (account != null) {\n Log.d(\"LOGOUT\", \"Google Accoutn is not null\");\n if (mGoogleSignInClient != null) {\n mGoogleSignInClient.signOut()\n .addOnCompleteListener(getActivity(), new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n Log.d(\"LogoutButton\", \"You were Logged out succesfully\");\n //remove user id from preferences to indicate, that he is not logged in\n Preferences.saveUserId(context, null);\n\n //remove FCM token\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n FirebaseInstanceId.getInstance().deleteInstanceId();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }).start();\n\n Intent intent = new Intent(context, LoginActivity.class);\n startActivity(intent);\n //remove home activity from stack\n getActivity().finish();\n }\n });\n }\n }\n }" ]
[ "0.80017585", "0.7966654", "0.7903616", "0.7869888", "0.7771343", "0.7754528", "0.76671034", "0.7606433", "0.7572011", "0.7556309", "0.7537699", "0.75326264", "0.7521643", "0.74323696", "0.7374876", "0.7303047", "0.7286639", "0.7276985", "0.7264401", "0.7228926", "0.7228508", "0.72169816", "0.7185458", "0.71763533", "0.7170837", "0.70819885", "0.7063394", "0.70450646", "0.70395863", "0.70247126", "0.7023135", "0.7022736", "0.70136184", "0.7012071", "0.70096076", "0.69971514", "0.6996905", "0.6985118", "0.6965739", "0.6951409", "0.6948188", "0.69218314", "0.69037527", "0.6894244", "0.6886308", "0.68835795", "0.68743086", "0.68719405", "0.68671805", "0.6838854", "0.68347144", "0.6814897", "0.6813883", "0.67943007", "0.6774328", "0.6768686", "0.67675394", "0.6740339", "0.6713516", "0.6704175", "0.66956866", "0.6695434", "0.6686821", "0.6676281", "0.6658976", "0.6657616", "0.6657307", "0.66375273", "0.6629555", "0.6627208", "0.66038626", "0.6594688", "0.6576471", "0.65721524", "0.65689844", "0.6567648", "0.65416336", "0.65237105", "0.65147644", "0.65142024", "0.65038574", "0.6498572", "0.64970857", "0.64852446", "0.6483781", "0.64721185", "0.64694875", "0.6453355", "0.6448244", "0.64432836", "0.64408195", "0.6411012", "0.6411012", "0.64054614", "0.6390484", "0.63706255", "0.63656574", "0.6361518", "0.63534606", "0.6351283" ]
0.7855292
4
TileAltar altar = (TileAltar) world.getTileEntity(blockPos); if (altar != null) altar.dropItems(); TODO: Spawn particles?
@Override public void destroy(LevelAccessor world, BlockPos blockPos, BlockState blockState) { super.destroy(world, blockPos, blockState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void func_192841_a(TileEntity te, double x, double y, double z, float partialTicks, int destroyStage, float alpha) {\n/* 109 */ super.func_192841_a(te, x, y, z, partialTicks, destroyStage, alpha);\n/* 110 */ renderTileEntityAt((TileGolemBuilder)te, x, y, z, partialTicks, destroyStage);\n/* */ }", "public void breakBlock(World world, int x, int y, int z, Block par5, int par6)\r\n/* 186: */ {\r\n/* 187:209 */ if ((world.getBlock(x, y, z) != FMPBase.getFMPBlockId()) && \r\n/* 188:210 */ ((world.getTileEntity(x, y, z) instanceof TileEntityTransferNode)))\r\n/* 189: */ {\r\n/* 190:211 */ TileEntityTransferNode tile = (TileEntityTransferNode)world.getTileEntity(x, y, z);\r\n/* 191:213 */ if (!tile.getUpgrades().isEmpty()) {\r\n/* 192:214 */ for (int i = 0; i < tile.getUpgrades().size(); i++)\r\n/* 193: */ {\r\n/* 194:215 */ ItemStack itemstack = (ItemStack)tile.getUpgrades().get(i);\r\n/* 195:216 */ float f = this.random.nextFloat() * 0.8F + 0.1F;\r\n/* 196:217 */ float f1 = this.random.nextFloat() * 0.8F + 0.1F;\r\n/* 197: */ EntityItem entityitem;\r\n/* 198:220 */ for (float f2 = this.random.nextFloat() * 0.8F + 0.1F; itemstack.stackSize > 0; world.spawnEntityInWorld(entityitem))\r\n/* 199: */ {\r\n/* 200:221 */ int k1 = this.random.nextInt(21) + 10;\r\n/* 201:223 */ if (k1 > itemstack.stackSize) {\r\n/* 202:224 */ k1 = itemstack.stackSize;\r\n/* 203: */ }\r\n/* 204:227 */ itemstack.stackSize -= k1;\r\n/* 205:228 */ entityitem = new EntityItem(world, x + f, y + f1, z + f2, new ItemStack(itemstack.getItem(), k1, itemstack.getItemDamage()));\r\n/* 206:229 */ float f3 = 0.05F;\r\n/* 207:230 */ entityitem.motionX = ((float)this.random.nextGaussian() * f3);\r\n/* 208:231 */ entityitem.motionY = ((float)this.random.nextGaussian() * f3 + 0.2F);\r\n/* 209:232 */ entityitem.motionZ = ((float)this.random.nextGaussian() * f3);\r\n/* 210:234 */ if (itemstack.hasTagCompound()) {\r\n/* 211:235 */ entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());\r\n/* 212: */ }\r\n/* 213: */ }\r\n/* 214: */ }\r\n/* 215: */ }\r\n/* 216:241 */ if ((tile instanceof TileEntityTransferNodeInventory))\r\n/* 217: */ {\r\n/* 218:242 */ TileEntityTransferNodeInventory tileentity = (TileEntityTransferNodeInventory)tile;\r\n/* 219: */ \r\n/* 220:244 */ ItemStack itemstack = tileentity.getStackInSlot(0);\r\n/* 221:246 */ if (itemstack != null)\r\n/* 222: */ {\r\n/* 223:247 */ float f = this.random.nextFloat() * 0.8F + 0.1F;\r\n/* 224:248 */ float f1 = this.random.nextFloat() * 0.8F + 0.1F;\r\n/* 225: */ EntityItem entityitem;\r\n/* 226:251 */ for (float f2 = this.random.nextFloat() * 0.8F + 0.1F; itemstack.stackSize > 0; world.spawnEntityInWorld(entityitem))\r\n/* 227: */ {\r\n/* 228:252 */ int k1 = this.random.nextInt(21) + 10;\r\n/* 229:254 */ if (k1 > itemstack.stackSize) {\r\n/* 230:255 */ k1 = itemstack.stackSize;\r\n/* 231: */ }\r\n/* 232:258 */ itemstack.stackSize -= k1;\r\n/* 233:259 */ entityitem = new EntityItem(world, x + f, y + f1, z + f2, new ItemStack(itemstack.getItem(), k1, itemstack.getItemDamage()));\r\n/* 234:260 */ float f3 = 0.05F;\r\n/* 235:261 */ entityitem.motionX = ((float)this.random.nextGaussian() * f3);\r\n/* 236:262 */ entityitem.motionY = ((float)this.random.nextGaussian() * f3 + 0.2F);\r\n/* 237:263 */ entityitem.motionZ = ((float)this.random.nextGaussian() * f3);\r\n/* 238:265 */ if (itemstack.hasTagCompound()) {\r\n/* 239:266 */ entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());\r\n/* 240: */ }\r\n/* 241: */ }\r\n/* 242: */ }\r\n/* 243:271 */ world.func_147453_f(x, y, z, par5);\r\n/* 244: */ }\r\n/* 245: */ }\r\n/* 246:276 */ super.breakBlock(world, x, y, z, par5, par6);\r\n/* 247: */ }", "public void dropEntireInventory(World world, BlockPos pos, int id, int metadata) {\n int x = pos.getX();\n int y = pos.getY();\n int z = pos.getZ();\n TileEntity tileEntity = world.getTileEntity(pos);\n if (tileEntity != null && tileEntity instanceof IInventory) {\n IInventory inventory = (IInventory) tileEntity;\n for (int i = 0; i < inventory.getSizeInventory(); ++i) {\n ItemStack stack = inventory.getStackInSlot(i);\n if (stack != null) {\n Random random = new Random();\n float sx = random.nextFloat() * 0.8F + 0.1F;\n float sy = random.nextFloat() * 0.8F + 0.1F;\n float sz = random.nextFloat() * 0.8F + 0.1F;\n while (stack.stackSize > 0) {\n int qty = random.nextInt(21) + 10;\n if (qty > stack.stackSize) {\n qty = stack.stackSize;\n }\n stack.stackSize -= qty;\n EntityItem eitem = new EntityItem(world, x + sx, y + sy, z + sz, new ItemStack(stack.getItem(), qty, stack.getItemDamage()));\n if (stack.hasTagCompound()) {\n eitem.getEntityItem().setTagCompound((NBTTagCompound) stack.getTagCompound().copy());\n }\n float displacement = 0.05F;\n eitem.motionX = (float) random.nextGaussian() * displacement;\n eitem.motionY = (float) random.nextGaussian() * displacement + 0.2F;\n eitem.motionZ = (float) random.nextGaussian() * displacement;\n world.spawnEntityInWorld(eitem);\n }\n }\n }\n }\n }", "public void updateLavaTiles() {\n for (Tile tile : getTiles()) {\n Random random = new Random();\n if (tile.getType().matches(\"BurnTile\")) {\n tile.setTexture(\"Volcano_\" + (random.nextInt(4) + 5));\n }\n }\n }", "public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune) {\n/* 78 */ if (!worldIn.isRemote && worldIn.getGameRules().getGameRuleBooleanValue(\"doTileDrops\")) {\n/* */ \n/* 80 */ EntitySilverfish var6 = new EntitySilverfish(worldIn);\n/* 81 */ var6.setLocationAndAngles(pos.getX() + 0.5D, pos.getY(), pos.getZ() + 0.5D, 0.0F, 0.0F);\n/* 82 */ worldIn.spawnEntityInWorld((Entity)var6);\n/* 83 */ var6.spawnExplosionParticle();\n/* */ } \n/* */ }", "public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase entity, ItemStack itemStack)\r\n {\r\n int l = MathHelper.floor_double((double)(entity.rotationYaw * (float)this.maxRotation / 360.0F) + 0.5D) & (this.maxRotation - 1);\r\n l %= this.maxRotation;\r\n\r\n TileCampfire tile = (TileCampfire)world.getTileEntity(x, y, z);\r\n tile.rotation = l; \r\n \r\n if (itemStack.hasDisplayName()) {\r\n \ttile.func_145951_a(itemStack.getDisplayName());\r\n }\r\n \t\t\r\n// if (l == 0)\r\n// {\r\n// world.setBlockMetadataWithNotify(x, y, z, 2, 2);\r\n// }\r\n//\r\n// if (l == 1)\r\n// {\r\n// world.setBlockMetadataWithNotify(x, y, z, 5, 2);\r\n// }\r\n//\r\n// if (l == 2)\r\n// {\r\n// world.setBlockMetadataWithNotify(x, y, z, 3, 2);\r\n// }\r\n//\r\n// if (l == 3)\r\n// {\r\n// world.setBlockMetadataWithNotify(x, y, z, 4, 2);\r\n// }\r\n//\r\n// if (itemStack.hasDisplayName())\r\n// {\r\n// ((TileCampfire)world.getTileEntity(x, y, z)).func_145951_a(itemStack.getDisplayName());\r\n// }\r\n \r\n// int l = MathHelper.floor_double((double)(par5EntityLivingBase.rotationYaw * (float)this.maxRotation() / 360.0F) + 0.5D) & this.maxRotation() - 1;\r\n// l %= this.maxRotation();\r\n// TileColorable tile = (TileColorable)par1World.getTileEntity(par2, par3, par4);\r\n// tile.rotation = l;\r\n }", "public void addRandoms() {\n //Add random boulders on tiles that aren't Lava\n int tileNumber;\n int selector;\n Tile t;\n String tileTexture;\n Random random = new Random();\n SquareVector playerPos = getPlayerEntity().getPosition();\n int tileCount = GameManager.get().getWorld().getTiles().size();\n AbstractWorld world = GameManager.get().getWorld();\n int randIndex;\n\n for (int i = 0; i < 20; i++) {\n //Get respective volcano tile (5 <= Lava tiles Index <= 8\n do {\n randIndex = random.nextInt(tileCount);\n t = world.getTile(randIndex);\n } while (t.getCoordinates().isCloseEnoughToBeTheSame(playerPos));\n\n tileTexture = t.getTextureName();\n tileNumber = Integer.parseInt(tileTexture.split(\"_\")[1]);\n\n selector = random.nextInt(2);\n if (tileNumber < 5 && tileNumber > 1 && selector == 1 && !t.hasParent()) {\n entities.add(new Rock(t, true));\n } else if (t != null && (tileNumber == 3 || tileNumber == 4) &&\n selector == 0 && !t.hasParent()) {\n entities.add(new VolcanoBurningTree(t, true));\n } else {\n i--;\n }\n }\n }", "@Override /* failed to load code for net.minecraft.block.NetherPortalBlock */\r\n\r\n\t\t@OnlyIn(Dist.CLIENT)\r\n\t\t@Override\r\n\t\tpublic void animateTick(BlockState state, World world, BlockPos pos, Random random) {\r\n\t\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\t\tdouble px = pos.getX() + random.nextFloat();\r\n\t\t\t\tdouble py = pos.getY() + random.nextFloat();\r\n\t\t\t\tdouble pz = pos.getZ() + random.nextFloat();\r\n\t\t\t\tdouble vx = (random.nextFloat() - 0.5) / 2f;\r\n\t\t\t\tdouble vy = (random.nextFloat() - 0.5) / 2f;\r\n\t\t\t\tdouble vz = (random.nextFloat() - 0.5) / 2f;\r\n\t\t\t\tint j = random.nextInt(4) - 1;\r\n\t\t\t\tif (world.getBlockState(pos.west()).getBlock() != this && world.getBlockState(pos.east()).getBlock() != this) {\r\n\t\t\t\t\tpx = pos.getX() + 0.5 + 0.25 * j;\r\n\t\t\t\t\tvx = random.nextFloat() * 2 * j;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpz = pos.getZ() + 0.5 + 0.25 * j;\r\n\t\t\t\t\tvz = random.nextFloat() * 2 * j;\r\n\t\t\t\t}\r\n\t\t\t\tworld.addParticle(ParticleTypes.PORTAL, px, py, pz, vx, vy, vz);\r\n\t\t\t}\r\n\r\n\t\t}", "@Override\n\tprotected void updateTiles() {\n\n\t\tfinal byte tileId = getPlanetType().mainTileId;\n\n\t\tfor (int i = 0; i < tiles.length; i++) {\n\t\t\t// if (random.NextDouble() > 0.95f)\n\t\t\t// tiles[i] = 0;\n\t\t\t// else\n\t\t\ttiles[i] = tileId;\n\t\t}\n\t}", "private void destroyBlockAndDropItem(final Location at) {\n if (at == null) {\n return;\n }\n\n final Block b = at.getBlock();\n\n if (!MaterialManager.getInstance().contains(b.getType().name())) {\n return;\n }\n\n double chance = MaterialManager.getInstance().getChanceToDropBlock(b.getType().name());\n\n if (chance > 1.0)\n chance = 1.0;\n if (chance < 0.0)\n chance = 0.0;\n\n final double random = Math.random();\n\n if (chance == 1.0 || chance <= random) {\n ItemStack is = new ItemStack(b.getType(), 1);\n\n if (is.getType() == Material.AIR) {\n return;\n }\n\n // drop item\n at.getWorld().dropItemNaturally(at, is);\n }\n\n // changes original block to Air block\n b.setType(Material.AIR);\n }", "@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)\n public void onBlockPlace(BlockPlaceEvent event) {\n if (event.getBlock().getType() == Material.IRON_BLOCK) {\n\n running = true;\n\n Location location = event.getBlock().getLocation();\n int size = Options.ARENA_SIZE;\n\n // Set our Y to where we won't collide with anything.\n location.setY(location.getWorld().getHighestBlockYAt(location));\n\n for (int x = -size / 2; x <= size / 2; x++) {\n for (int z = -size / 2; z <= size / 2; z++) {\n int maxY = (x == -size / 2 || z == -size / 2 || x == size / 2 || z == size / 2) ? 5 : 1;\n\n for (int y = 0; y < maxY; y++) {\n Block block = location.clone().add(x, y, z).getBlock();\n\n if (y == 0) {\n block.setType(Material.NETHERRACK);\n } else {\n block.setType(Material.IRON_FENCE);\n }\n }\n }\n }\n\n Player player = event.getPlayer();\n\n player.getInventory().clear();\n player.getActivePotionEffects().clear();\n player.setGameMode(GameMode.ADVENTURE);\n player.teleport(location.clone().add(5, 1, 0));\n\n player.spigot().sendMessage(ChatMessageType.ACTION_BAR, new TextComponent(ChatColor.RED + \"An arena appears...\"));\n\n Options.KIT_ITEMS.forEach(itemStack -> player.getInventory().addItem(itemStack.clone()));\n \n updateArmor(player);\n\n Bukkit.getScheduler().scheduleSyncDelayedTask(Plugin.getInstance(), () -> {\n Location spawnLocation = location.clone().add(0, 1, 0);\n\n SpawnControl point = new SpawnControl(spawnLocation);\n NPCController controller = new NPCController(player.getUniqueId(), point);\n\n NPCRegistry.getInstance().register(controller);\n });\n\n event.setBuild(false);\n }\n }", "@Override\n public TileEntity createNewTileEntity(World world)\n {\n return null;\n }", "@Override\n \t/**\n \t * Called when the block is placed in the world.\n \t */\n \tpublic void auxiliaryOnBlockPlacedBy(TECarpentersBlock TE, World world, int x, int y, int z, EntityLivingBase entityLiving, ItemStack itemStack)\n \t{\n \t\tif (!entityLiving.isSneaking())\n \t\t{\n \t\t\t/* Match adjacent collapsible quadrant heights. */\n \t\t\t\n \t\t\tTECarpentersBlock TE_XN = world.getBlockId(x - 1, y, z) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x - 1, y, z) : null;\n \t\t\tTECarpentersBlock TE_XP = world.getBlockId(x + 1, y, z) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x + 1, y, z) : null;\n \t\t\tTECarpentersBlock TE_ZN = world.getBlockId(x, y, z - 1) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x, y, z - 1) : null;\n \t\t\tTECarpentersBlock TE_ZP = world.getBlockId(x, y, z + 1) == blockID ? (TECarpentersBlock)world.getBlockTileEntity(x, y, z + 1) : null;\n \n \t\t\tif (TE_XN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNN, Collapsible.getQuadHeight(TE_XN, Collapsible.QUAD_XZPN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNP, Collapsible.getQuadHeight(TE_XN, Collapsible.QUAD_XZPP));\n \t\t\t}\n \t\t\tif (TE_XP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPN, Collapsible.getQuadHeight(TE_XP, Collapsible.QUAD_XZNN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPP, Collapsible.getQuadHeight(TE_XP, Collapsible.QUAD_XZNP));\n \t\t\t}\n \t\t\tif (TE_ZN != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNN, Collapsible.getQuadHeight(TE_ZN, Collapsible.QUAD_XZNP));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPN, Collapsible.getQuadHeight(TE_ZN, Collapsible.QUAD_XZPP));\n \t\t\t}\n \t\t\tif (TE_ZP != null) {\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZNP, Collapsible.getQuadHeight(TE_ZP, Collapsible.QUAD_XZNN));\n \t\t\t\tCollapsible.setQuadHeight(TE, Collapsible.QUAD_XZPP, Collapsible.getQuadHeight(TE_ZP, Collapsible.QUAD_XZPN));\n \t\t\t}\n \t\t}\n \t}", "public void dropBlockAsItemWithChance(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_, int p_149690_5_, float p_149690_6_, int p_149690_7_) {}", "private void createTileEntity(StringTokenizer tiler, World world,\n\t\t\tint xplane, int yplane, int zplane, List <ItemStack> contents,\n\t\t\tRandom random) {\n\t\t\n\t\t\n\t\t String type = tiler.nextToken(\"(\");\n\t\t String tileID = tiler.nextToken(\",\");\n\t\t String blockID = tileID.substring(1);\n\t\t String tmetaData = tiler.nextToken(\")\");\n\t\t TileEntity tile;\n\t\t String metaData = tmetaData.substring(1);\n\t\t ItemStack[] myStack;\n\t\t \n\t\t//Piston \n\t\tif (Integer.parseInt(blockID) == 29)\n\t\t{ \n\t\t\tworld.setBlockAndMetadata(xplane, yplane, zplane, Integer.parseInt(blockID),Integer.parseInt(metaData));\n\t\t}\n\t\t//Chest\n\t\tif (Integer.parseInt(blockID) == 54)\n\t\t{\n\t\t\tworld.setBlockWithNotify(xplane, yplane, zplane, Block.chest.blockID);\n TileEntityChest chest = (TileEntityChest)world.getBlockTileEntity(xplane, yplane, zplane);\n\t\t\tworld.setBlockMetadata(xplane, yplane, zplane, Integer.parseInt(metaData));\n\t\t\tmyStack = contents.toArray(new ItemStack [36]);\n\t\t\tfor(int iii = 0; iii < myStack.length;iii++)\n\t\t\t{\n\t\t\tchest.setInventorySlotContents(iii, myStack[iii]);\n\t\t\t}\n\t\t}\n\t\t//Dipenser\n\t\tif (Integer.parseInt(blockID) == 23)\n\t\t{\n\t\t\tworld.setBlockWithNotify(xplane, yplane, zplane, Block.dispenser.blockID);\n TileEntityDispenser dispenser = (TileEntityDispenser)world.getBlockTileEntity(xplane, yplane, zplane);\n\t\t\tworld.setBlockMetadata(xplane, yplane, zplane, Integer.parseInt(metaData));\n\t\t\tmyStack = contents.toArray(new ItemStack [9]);\n\t\t\tfor(int iii = 0; iii < myStack.length;iii++)\n\t\t\t{\n\t\t\t\tdispenser.setInventorySlotContents(iii, myStack[iii]);\n\t\t\t}\n\t\t}\n\t}", "public void onUsingTick(ItemStack stack, EntityPlayer player, int count) {\n/* 132 */ player.motionX = 0.0D;\n/* 133 */ player.motionZ = 0.0D;\n/* */ \n/* 135 */ int searchRange = 20;\n/* 136 */ List<EntityLivingBase> entities = player.worldObj.getEntitiesWithinAABB(EntityLivingBase.class, AxisAlignedBB.getBoundingBox(player.posX - searchRange, player.posY - searchRange, player.posZ - searchRange, player.posX + searchRange, player.posY + searchRange, player.posZ + searchRange));\n/* */ \n/* 138 */ if (entities.contains(player)) {\n/* 139 */ entities.remove(player);\n/* */ }\n/* 141 */ if (count < getMaxItemUseDuration(stack) - 20) {\n/* 142 */ for (int counter = entities.size() - 1; counter >= 0; counter--) {\n/* 143 */ if (player.getDistanceToEntity((Entity)entities.get(counter)) <= 3.0F && \n/* 144 */ WandManager.consumeVisFromInventory(player, (new AspectList()).add(Aspect.FIRE, (int)(150.0F * RelicsConfigHandler.soulTomeVisMult)).add(Aspect.ENTROPY, (int)(120.0F * RelicsConfigHandler.soulTomeVisMult)))) {\n/* */ \n/* 146 */ EntityLivingBase thrownEntity = entities.get(counter);\n/* */ \n/* 148 */ Vector3 entityVec = Vector3.fromEntityCenter((Entity)thrownEntity);\n/* 149 */ Vector3 playerVec = Vector3.fromEntityCenter((Entity)player);\n/* */ \n/* 151 */ Vector3 diff = entityVec.copy().sub(playerVec).multiply((1.0F / player.getDistanceToEntity((Entity)thrownEntity) * 3.0F));\n/* */ \n/* 153 */ float curve = (float)(1.0D / player.getDistance(entityVec.x, entityVec.y, entityVec.z) * 8.0D);\n/* */ \n/* 155 */ if (!player.worldObj.isRemote)\n/* 156 */ for (int counterZ = 0; counterZ <= 3; counterZ++) {\n/* 157 */ Main.proxy.lightning(player.worldObj, player.posX, player.posY + 1.0D, player.posZ, entityVec.x, entityVec.y, entityVec.z, 40, curve, (int)(player.getDistance(entityVec.x, entityVec.y, entityVec.z) * 6.0D), 0, 0.075F);\n/* */ } \n/* 159 */ player.worldObj.playSoundAtEntity((Entity)player, \"thaumcraft:zap\", 1.0F, 0.8F);\n/* */ \n/* 161 */ thrownEntity.attackEntityFrom((DamageSource)new DamageRegistryHandler.DamageSourceTLightning((Entity)player), (float)(20.0D + 80.0D * Math.random()));\n/* */ \n/* 163 */ thrownEntity.motionX = diff.x;\n/* 164 */ thrownEntity.motionY = diff.y + 1.0D;\n/* 165 */ thrownEntity.motionZ = diff.z;\n/* */ } \n/* */ } \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 195 */ this; this; this; this; if ((((count < getMaxItemUseDuration(stack) - 20) ? 1 : 0) & ((count % 4 == 0) ? 1 : 0)) != 0 && WandManager.consumeVisFromInventory(player, (new AspectList()).add(Aspect.EARTH, TerraCost).add(Aspect.AIR, AerCost).add(Aspect.FIRE, IgnisCost).add(Aspect.ENTROPY, PerditioCost))) {\n/* */ \n/* 197 */ EntityLivingBase randomEntity = null;\n/* */ \n/* 199 */ if (entities.size() > 0) {\n/* 200 */ randomEntity = entities.get((int)(entities.size() * Math.random()));\n/* */ }\n/* 202 */ if ((((randomEntity != null) ? 1 : 0) & (!player.worldObj.isRemote ? 1 : 0)) != 0) {\n/* */ \n/* 204 */ float soulDamage = randomEntity.getMaxHealth() / RelicsConfigHandler.soulTomeDivisor;\n/* */ \n/* 206 */ if (soulDamage > 20.0F) {\n/* 207 */ soulDamage = 20.0F;\n/* 208 */ } else if (soulDamage < 1.0F) {\n/* 209 */ soulDamage = 1.0F;\n/* */ } \n/* 211 */ randomEntity.attackEntityFrom((DamageSource)new DamageRegistryHandler.DamageSourceSoulDrain((Entity)player), soulDamage);\n/* 212 */ spawnSoul(player.worldObj, randomEntity, (EntityLivingBase)player);\n/* */ } \n/* */ } \n/* */ }", "@Override\n public void updateTick(World world, int x, int y, int z, Random rand) {\n \n\t\tMutationTileEntity mte = (MutationTileEntity) world.getTileEntity(x, y, z);\n\t\tif(mte.mutationEffect > 3) {\n\t\t\t\n\t\t}\n if (world.getBlock(x, y - 1, z) == Blocks.reeds || this.func_150170_e(world, x, y, z))\n {\n if (world.isAirBlock(x, y + 1, z))\n {\n int l;\n\n for (l = 1; world.getBlock(x, y - l, z) == this; ++l)\n {\n ;\n }\n\n if (l < 3)\n {\n int i1 = world.getBlockMetadata(x, y, z);\n \n if(mte.mutationEffect > 3) {\n \tworld.setBlock(x, y, z, Block.getBlockFromName(\"wheat\"));\n \tworld.setBlockMetadataWithNotify(x,y,z, 0, 3);\n \treturn;\n }\n\n if (i1 == 15)\n {\n world.setBlock(x, y + 1, z, this);\n world.setBlockMetadataWithNotify(x, y, z, 0, 4);\n }\n else\n {\n world.setBlockMetadataWithNotify(x, y, z, i1 + 1, 4);\n }\n }\n }\n }\n }", "public boolean makePortal(Entity entityIn) {\n/* 203 */ int i = 16;\n/* 204 */ double d0 = -1.0D;\n/* 205 */ int j = MathHelper.floor(entityIn.posX);\n/* 206 */ int k = MathHelper.floor(entityIn.posY);\n/* 207 */ int l = MathHelper.floor(entityIn.posZ);\n/* 208 */ int i1 = j;\n/* 209 */ int j1 = k;\n/* 210 */ int k1 = l;\n/* 211 */ int l1 = 0;\n/* 212 */ int i2 = this.random.nextInt(4);\n/* 213 */ BlockPos.MutableBlockPos blockpos$mutableblockpos = new BlockPos.MutableBlockPos();\n/* */ \n/* 215 */ for (int j2 = j - 16; j2 <= j + 16; j2++) {\n/* */ \n/* 217 */ double d1 = j2 + 0.5D - entityIn.posX;\n/* */ \n/* 219 */ for (int l2 = l - 16; l2 <= l + 16; l2++) {\n/* */ \n/* 221 */ double d2 = l2 + 0.5D - entityIn.posZ;\n/* */ \n/* */ \n/* 224 */ for (int j3 = this.worldServerInstance.getActualHeight() - 1; j3 >= 0; j3--) {\n/* */ \n/* 226 */ if (this.worldServerInstance.isAirBlock((BlockPos)blockpos$mutableblockpos.setPos(j2, j3, l2))) {\n/* */ \n/* 228 */ while (j3 > 0 && this.worldServerInstance.isAirBlock((BlockPos)blockpos$mutableblockpos.setPos(j2, j3 - 1, l2)))\n/* */ {\n/* 230 */ j3--;\n/* */ }\n/* */ int k3;\n/* 233 */ label168: for (k3 = i2; k3 < i2 + 4; k3++) {\n/* */ \n/* 235 */ int l3 = k3 % 2;\n/* 236 */ int i4 = 1 - l3;\n/* */ \n/* 238 */ if (k3 % 4 >= 2) {\n/* */ \n/* 240 */ l3 = -l3;\n/* 241 */ i4 = -i4;\n/* */ } \n/* */ \n/* 244 */ for (int j4 = 0; j4 < 3; j4++) {\n/* */ \n/* 246 */ for (int k4 = 0; k4 < 4; k4++) {\n/* */ \n/* 248 */ for (int l4 = -1; l4 < 4; ) {\n/* */ \n/* 250 */ int i5 = j2 + (k4 - 1) * l3 + j4 * i4;\n/* 251 */ int j5 = j3 + l4;\n/* 252 */ int k5 = l2 + (k4 - 1) * i4 - j4 * l3;\n/* 253 */ blockpos$mutableblockpos.setPos(i5, j5, k5);\n/* */ \n/* 255 */ if (l4 >= 0 || this.worldServerInstance.getBlockState((BlockPos)blockpos$mutableblockpos).getMaterial().isSolid()) { if (l4 >= 0 && !this.worldServerInstance.isAirBlock((BlockPos)blockpos$mutableblockpos))\n/* */ break label168; \n/* */ l4++; }\n/* */ \n/* */ break label168;\n/* */ } \n/* */ } \n/* */ } \n/* 263 */ double d5 = j3 + 0.5D - entityIn.posY;\n/* 264 */ double d7 = d1 * d1 + d5 * d5 + d2 * d2;\n/* */ \n/* 266 */ if (d0 < 0.0D || d7 < d0) {\n/* */ \n/* 268 */ d0 = d7;\n/* 269 */ i1 = j2;\n/* 270 */ j1 = j3;\n/* 271 */ k1 = l2;\n/* 272 */ l1 = k3 % 4;\n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ \n/* 280 */ if (d0 < 0.0D)\n/* */ {\n/* 282 */ for (int l5 = j - 16; l5 <= j + 16; l5++) {\n/* */ \n/* 284 */ double d3 = l5 + 0.5D - entityIn.posX;\n/* */ \n/* 286 */ for (int j6 = l - 16; j6 <= l + 16; j6++) {\n/* */ \n/* 288 */ double d4 = j6 + 0.5D - entityIn.posZ;\n/* */ \n/* */ \n/* 291 */ for (int i7 = this.worldServerInstance.getActualHeight() - 1; i7 >= 0; i7--) {\n/* */ \n/* 293 */ if (this.worldServerInstance.isAirBlock((BlockPos)blockpos$mutableblockpos.setPos(l5, i7, j6))) {\n/* */ \n/* 295 */ while (i7 > 0 && this.worldServerInstance.isAirBlock((BlockPos)blockpos$mutableblockpos.setPos(l5, i7 - 1, j6)))\n/* */ {\n/* 297 */ i7--;\n/* */ }\n/* */ int k7;\n/* 300 */ label167: for (k7 = i2; k7 < i2 + 2; k7++) {\n/* */ \n/* 302 */ int j8 = k7 % 2;\n/* 303 */ int j9 = 1 - j8;\n/* */ \n/* 305 */ for (int j10 = 0; j10 < 4; j10++) {\n/* */ \n/* 307 */ for (int j11 = -1; j11 < 4; ) {\n/* */ \n/* 309 */ int j12 = l5 + (j10 - 1) * j8;\n/* 310 */ int i13 = i7 + j11;\n/* 311 */ int j13 = j6 + (j10 - 1) * j9;\n/* 312 */ blockpos$mutableblockpos.setPos(j12, i13, j13);\n/* */ \n/* 314 */ if (j11 >= 0 || this.worldServerInstance.getBlockState((BlockPos)blockpos$mutableblockpos).getMaterial().isSolid()) { if (j11 >= 0 && !this.worldServerInstance.isAirBlock((BlockPos)blockpos$mutableblockpos))\n/* */ break label167; \n/* */ j11++; }\n/* */ \n/* */ break label167;\n/* */ } \n/* */ } \n/* 321 */ double d6 = i7 + 0.5D - entityIn.posY;\n/* 322 */ double d8 = d3 * d3 + d6 * d6 + d4 * d4;\n/* */ \n/* 324 */ if (d0 < 0.0D || d8 < d0) {\n/* */ \n/* 326 */ d0 = d8;\n/* 327 */ i1 = l5;\n/* 328 */ j1 = i7;\n/* 329 */ k1 = j6;\n/* 330 */ l1 = k7 % 2;\n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ }\n/* */ \n/* 339 */ int i6 = i1;\n/* 340 */ int k2 = j1;\n/* 341 */ int k6 = k1;\n/* 342 */ int l6 = l1 % 2;\n/* 343 */ int i3 = 1 - l6;\n/* */ \n/* 345 */ if (l1 % 4 >= 2) {\n/* */ \n/* 347 */ l6 = -l6;\n/* 348 */ i3 = -i3;\n/* */ } \n/* */ \n/* 351 */ if (d0 < 0.0D) {\n/* */ \n/* 353 */ j1 = MathHelper.clamp(j1, 70, this.worldServerInstance.getActualHeight() - 10);\n/* 354 */ k2 = j1;\n/* */ \n/* 356 */ for (int j7 = -1; j7 <= 1; j7++) {\n/* */ \n/* 358 */ for (int l7 = 1; l7 < 3; l7++) {\n/* */ \n/* 360 */ for (int k8 = -1; k8 < 3; k8++) {\n/* */ \n/* 362 */ int k9 = i6 + (l7 - 1) * l6 + j7 * i3;\n/* 363 */ int k10 = k2 + k8;\n/* 364 */ int k11 = k6 + (l7 - 1) * i3 - j7 * l6;\n/* 365 */ boolean flag = (k8 < 0);\n/* 366 */ this.worldServerInstance.setBlockState(new BlockPos(k9, k10, k11), flag ? Blocks.OBSIDIAN.getDefaultState() : Blocks.AIR.getDefaultState());\n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ \n/* 372 */ IBlockState iblockstate = Blocks.PORTAL.getDefaultState().withProperty((IProperty)BlockPortal.AXIS, (l6 == 0) ? (Comparable)EnumFacing.Axis.Z : (Comparable)EnumFacing.Axis.X);\n/* */ \n/* 374 */ for (int i8 = 0; i8 < 4; i8++) {\n/* */ \n/* 376 */ for (int l8 = 0; l8 < 4; l8++) {\n/* */ \n/* 378 */ for (int l9 = -1; l9 < 4; l9++) {\n/* */ \n/* 380 */ int l10 = i6 + (l8 - 1) * l6;\n/* 381 */ int l11 = k2 + l9;\n/* 382 */ int k12 = k6 + (l8 - 1) * i3;\n/* 383 */ boolean flag1 = !(l8 != 0 && l8 != 3 && l9 != -1 && l9 != 3);\n/* 384 */ this.worldServerInstance.setBlockState(new BlockPos(l10, l11, k12), flag1 ? Blocks.OBSIDIAN.getDefaultState() : iblockstate, 2);\n/* */ } \n/* */ } \n/* */ \n/* 388 */ for (int i9 = 0; i9 < 4; i9++) {\n/* */ \n/* 390 */ for (int i10 = -1; i10 < 4; i10++) {\n/* */ \n/* 392 */ int i11 = i6 + (i9 - 1) * l6;\n/* 393 */ int i12 = k2 + i10;\n/* 394 */ int l12 = k6 + (i9 - 1) * i3;\n/* 395 */ BlockPos blockpos = new BlockPos(i11, i12, l12);\n/* 396 */ this.worldServerInstance.notifyNeighborsOfStateChange(blockpos, this.worldServerInstance.getBlockState(blockpos).getBlock(), false);\n/* */ } \n/* */ } \n/* */ } \n/* */ \n/* 401 */ return true;\n/* */ }", "public void breakBlock(World par1World, int par2, int par3, int par4, Block par5, int par6) {\n\t\tTileEntityCobexChest tileentitychest = (TileEntityCobexChest) par1World.getTileEntity(par2, par3, par4);\n\n\t\tif (tileentitychest != null) {\n\t\t\tfor (int j1 = 0; j1 < tileentitychest.getSizeInventory(); ++j1) {\n\t\t\t\tItemStack itemstack = tileentitychest.getStackInSlot(j1);\n\n\t\t\t\tif (itemstack != null) {\n\t\t\t\t\tfloat f = this.random.nextFloat() * 0.8F + 0.1F;\n\t\t\t\t\tfloat f1 = this.random.nextFloat() * 0.8F + 0.1F;\n\t\t\t\t\tEntityItem entityitem;\n\n\t\t\t\t\tfor (float f2 = this.random.nextFloat() * 0.8F + 0.1F; itemstack.stackSize > 0; par1World.spawnEntityInWorld(entityitem)) {\n\t\t\t\t\t\tint k1 = this.random.nextInt(21) + 10;\n\n\t\t\t\t\t\tif (k1 > itemstack.stackSize) {\n\t\t\t\t\t\t\tk1 = itemstack.stackSize;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\titemstack.stackSize -= k1;\n\t\t\t\t\t\tentityitem = new EntityItem(par1World, (double) ((float) par2 + f), (double) ((float) par3 + f1), (double) ((float) par4 + f2),\n\t\t\t\t\t\t\t\tnew ItemStack(itemstack.getItem(), k1, itemstack.getItemDamage()));\n\t\t\t\t\t\tfloat f3 = 0.05F;\n\t\t\t\t\t\tentityitem.motionX = (double) ((float) this.random.nextGaussian() * f3);\n\t\t\t\t\t\tentityitem.motionY = (double) ((float) this.random.nextGaussian() * f3 + 0.2F);\n\t\t\t\t\t\tentityitem.motionZ = (double) ((float) this.random.nextGaussian() * f3);\n\n\t\t\t\t\t\tif (itemstack.hasTagCompound()) {\n\t\t\t\t\t\t\tentityitem.getEntityItem().setTagCompound((NBTTagCompound) itemstack.getTagCompound().copy());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpar1World.func_147453_f(par2, par3, par4, par5);\n\t\t}\n\n\t\tsuper.breakBlock(par1World, par2, par3, par4, par5, par6);\n\t}", "public void PlantMe(Block block){\n \tplugin.getReplant().add(block);\r\n \t\t//run the timer to load the block\r\n \t\r\n \tif(plugin.getTreeplant_Timer().getPoolSize() < plugin.getTreeplant_Timer().getMaximumPoolSize()){\r\n \t\tplugin.getTreeplant_Timer().schedule(new Runnable() {\r\n \t\t\t\tpublic void run() {\r\n \t\t\t\t\tif(!(plugin.getReplant().isEmpty())){\r\n \t\t\t\t\t\tBlock loadedBlock = plugin.getReplant().get(0);\r\n \t\t\t\t\t\t//remove it from the list\r\n \t\t\t\t\t\tplugin.getReplant().remove(0);\r\n \t\t\t\t\t\t//protect it\r\n \t\t\t\t\t\tProtectMe(loadedBlock);\r\n \t\t\t\t\t\t//made into a sap\r\n \t\t\t\t\t\tif( (loadedBlock.getType().equals(Material.AIR)) || (loadedBlock.getType().equals(Material.FIRE)) ) //just incase it was on fire\r\n \t\t\t\t\t\t\tloadedBlock.setType(Material.SAPLING);\r\n \t\t\t\t\t\t\r\n \t\t\t\t\t\t/* No longer needed! Didn't realized leaves light blocking changed way back when.\r\n \t\t\t\t\t\t * for(int i=loadedBlock.getY(); i < 128; i++){\r\n \t\t\t\t\t\t\t//delete all the leaves in a line to the sky limit\r\n \t\t\t\t\t\t\tif(loadedBlock.getType()==Material.LEAVES){\r\n \t\t\t\t\t\t\t\t//it's a leaf delete it\r\n \t\t\t\t\t\t\t\tloadedBlock.setType(Material.AIR);\r\n \t\t\t\t\t\t\t\t//update on server | Not needed?\r\n \t\t\t\t\t\t\t\t//etc.getServer().setBlock(leafToDelete);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t//go up one\r\n \t\t\t\t\t\t\tloadedBlock = loadedBlock.getFace(BlockFace.UP);\r\n \t\t\t\t\t\t}*/\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}, plugin.getdelayTime(), TimeUnit.MILLISECONDS);\r\n \t}\r\n \t}", "@SubscribeEvent\n public void onItemUseFinish(LivingEntityUseItemEvent.Start event) {\n boolean didTeleport = false;\n\n if (teleportStabilize\n && event.getEntityLiving() instanceof PlayerEntity\n && event.getItem().getItem() == Items.CHORUS_FRUIT\n && !event.getEntityLiving().getEntityWorld().isRemote\n ) {\n World world = event.getEntityLiving().world;\n PlayerEntity player = (PlayerEntity) event.getEntityLiving();\n Map<Double, BlockPos> positions = new HashMap<>();\n BlockPos playerPos = player.getPosition();\n BlockPos targetPos = null;\n\n // find the blocks around the player\n BlockPos.getAllInBox(playerPos.add(-range, -range, -range), playerPos.add(range, range, range)).forEach(pos -> {\n if (world.getBlockState(pos).getBlock() == block && !pos.up(1).equals(playerPos)) {\n\n // should be able to stand on it\n if (world.getBlockState(pos.up(1)).getMaterial() == Material.AIR && world.getBlockState(pos.up(2)).getMaterial() == Material.AIR) {\n positions.put(WorldHelper.getDistanceSq(playerPos, pos.up(1)), pos.up(1));\n }\n }\n });\n\n // get the closest position by finding the smallest distance\n if (!positions.isEmpty()) {\n targetPos = positions.get(Collections.min(positions.keySet()));\n }\n\n if (targetPos != null) {\n double x = targetPos.getX() + 0.5D;\n double y = targetPos.getY();\n double z = targetPos.getZ() + 0.5D;\n if (player.attemptTeleport(x, y, z, true)) {\n didTeleport = true;\n\n // play sound at original location and new location\n world.playSound(null, x, y, z, SoundEvents.ITEM_CHORUS_FRUIT_TELEPORT, SoundCategory.PLAYERS, 1.0F, 1.0F);\n player.playSound(SoundEvents.ITEM_CHORUS_FRUIT_TELEPORT, 1.0F, 1.0F);\n }\n }\n\n if (didTeleport) {\n player.getCooldownTracker().setCooldown(Items.CHORUS_FRUIT, 20);\n event.getItem().shrink(1);\n event.setCanceled(true);\n }\n }\n }", "public void b(World paramaqu, Random paramRandom, BlockPosition paramdt, Block parambec)\r\n/* 77: */ {\r\n/* 78: 93 */ BlockPosition localdt1 = paramdt.up();\r\n/* 79: */ label260:\r\n/* 80: 95 */ for (int i = 0; i < 128; i++)\r\n/* 81: */ {\r\n/* 82: 96 */ BlockPosition localdt2 = localdt1;\r\n/* 83: 97 */ for (int j = 0; j < i / 16; j++)\r\n/* 84: */ {\r\n/* 85: 98 */ localdt2 = localdt2.offset(paramRandom.nextInt(3) - 1, (paramRandom.nextInt(3) - 1) * paramRandom.nextInt(3) / 2, paramRandom.nextInt(3) - 1);\r\n/* 86: 99 */ if ((paramaqu.getBlock(localdt2.down()).getType() != BlockList.grass) || (paramaqu.getBlock(localdt2).getType().blocksMovement())) {\r\n/* 87: */ break label260;\r\n/* 88: */ }\r\n/* 89: */ }\r\n/* 90:104 */ if (paramaqu.getBlock(localdt2).getType().material == Material.air)\r\n/* 91: */ {\r\n/* 92: */ Object localObject;\r\n/* 93:108 */ if (paramRandom.nextInt(8) == 0)\r\n/* 94: */ {\r\n/* 95:109 */ localObject = paramaqu.b(localdt2).a(paramRandom, localdt2);\r\n/* 96:110 */ avy localavy = ((EnumFlowerVariant)localObject).a().a();\r\n/* 97:111 */ Block localbec = localavy.instance().setData(localavy.l(), (Comparable)localObject);\r\n/* 98:112 */ if (localavy.f(paramaqu, localdt2, localbec)) {\r\n/* 99:113 */ paramaqu.setBlock(localdt2, localbec, 3);\r\n/* 100: */ }\r\n/* 101: */ }\r\n/* 102: */ else\r\n/* 103: */ {\r\n/* 104:116 */ localObject = BlockList.tallgrass.instance().setData(bbh.a, bbi.b);\r\n/* 105:117 */ if (BlockList.tallgrass.f(paramaqu, localdt2, (Block)localObject)) {\r\n/* 106:118 */ paramaqu.setBlock(localdt2, (Block)localObject, 3);\r\n/* 107: */ }\r\n/* 108: */ }\r\n/* 109: */ }\r\n/* 110: */ }\r\n/* 111: */ }", "private void spawnStuff(PlayScreen screen, float delta) {\n if (stageId!=3 && stageId!=5) {\n isCombatEnabled = true;\n int where;\n boolean spawnRight = true;\n float speed;\n\n\n //Alien Spawn\n if (System.currentTimeMillis() - lastASpawn >= SpawnATimer + extraTimer) {\n speed = (float)(Utils.doRandom(250,400));\n lastASpawn = System.currentTimeMillis();\n int count = 3;\n if (stageId==4) count = 1;\n for (int i = 0; i < count; i++) {\n if (stageId==4){\n speed = (float) (speed*0.75);\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - Alien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - Alien.width, y, Alien.width, Alien.height)))\n hits = true;\n }\n }\n screen.entities.add(new Alien(new Vector2(x, y), 1, screen.alienImages, speed, screen.player));\n }else{\n int x = 0 - Alien.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - Alien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + Alien.width*2 , y, Alien.width, Alien.height)))\n hits = true;\n }\n }\n screen.entities.add(new Alien(new Vector2(x, y), 1, screen.alienImages, speed, screen.player,false));\n }\n }\n }\n //AcidAlien Spawn\n if (System.currentTimeMillis() - lastBSpawn >= SpawnBTimer + extraTimer) {\n speed = 200;\n lastBSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - AcidAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - AcidAlien.width, y, AcidAlien.width, AcidAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new AcidAlien(new Vector2(x, y), screen.alien2Images, screen.acidImage, speed, screen.player));\n }else{\n int x = 0 - AcidAlien.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - AcidAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + AcidAlien.width*2, y, AcidAlien.width, AcidAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new AcidAlien(new Vector2(x, y), screen.alien2Images, screen.acidImage, speed, screen.player,false));\n }\n }\n //FastAlien Spawn\n if (System.currentTimeMillis() - lastCSpawn >= SpawnCTimer + extraTimer) {\n speed= Utils.doRandom(250,400);\n lastCSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - FastAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - FastAlien.width, y, FastAlien.width, FastAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new FastAlien(new Vector2(x, y), 1, screen.alien3Images,speed, screen.player));\n }else{\n int x = 0 - FastAlien.width;\n int y =0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - FastAlien.height);\n for (int h=0;h<collisions.size();h++){\n if (Collision.checkWalls(collisions.get(h),new Rectangle(x-FastAlien.width*2,y,FastAlien.width,FastAlien.height))) hits = true;\n }\n }\n screen.entities.add(new FastAlien(new Vector2(x, y), 1, screen.alien3Images, speed,screen.player,false));\n }\n\n }\n\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule ) {\n speed = 500;\n int x = 0;\n int y = 0;\n lastCapsuleSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n x = (int) screen.gameViewport.getWorldWidth();\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }else{\n x = 0 - BlueBulletItem.width;\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width *2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }\n\n int capsule = screen.random.nextInt(2);\n\n if (capsule == 0) {\n if (spawnRight) {\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages));\n }else{\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages,false));\n }\n } else if (capsule == 1) {\n if (spawnRight) {\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages));\n }else{\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages,false));\n }\n }\n\n }\n if (System.currentTimeMillis() - lastHealthSpawn >= SpawnTimerHealth) {\n speed = 500;\n lastHealthSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages));\n }else{\n int x = 0 - BlueBulletItem.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width*2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages,false));\n }\n }\n /*if (System.currentTimeMillis() - lastBombSpawn >= SpawnTimerBomb) {\n lastBombSpawn = System.currentTimeMillis();\n int x = (int) screen.gameViewport.getWorldWidth();\n int y =0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - PurpleCapsuleItem.height);\n for (int h=0;h<collisions.size();h++){\n if (Collision.checkWalls(collisions.get(h),new Rectangle(x,y,PurpleCapsuleItem.width,PurpleCapsuleItem.height))) hits = true;\n }\n }\n screen.items.add(new PurpleCapsuleItem(x, y, 500, screen.itemPurpleImages));\n }*/\n }else{\n if (stageId==3) {\n //SPACE STAGE\n ///SPAWN ENEMY SHIP:\n //TODO\n if (PlayScreen.entities.size() == 1) {\n isCombatEnabled = false;\n //no enemy spawned, so spawn:\n if (spawnIterator >= killCount) {\n //TODO END STAGE\n } else {\n System.out.println(\"SPAWNS SHIP\");\n spawnIterator++;\n screen.entities.add(new EnemyShipOne(new Vector2(0, 0), 100, screen.enemyShipOne, true, screen.player));\n\n }\n }\n //Items:\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule) {\n lastCapsuleSpawn = System.currentTimeMillis();\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new BlackBulletItem(x, y, 1000, screen.itemBlackImages));\n\n\n }\n }else{\n if (stageId == 5){\n isCombatEnabled = true;\n float speed;\n boolean spawnRight=true;\n int where=0;\n //TODO FINAL STAGE\n if (!isBossSpawned){\n //TODO\n screen.entities.add(new Boss(new Vector2(PlayScreen.gameViewport.getWorldWidth(),PlayScreen.gameViewport.getWorldHeight()/2 - Boss.height/2),screen.player));\n isBossSpawned=true;\n }\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule ) {\n speed = 500;\n int x = 0;\n int y = 0;\n lastCapsuleSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n x = (int) screen.gameViewport.getWorldWidth();\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }else{\n x = 0 - BlueBulletItem.width;\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width *2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }\n\n int capsule = screen.random.nextInt(2);\n\n if (capsule == 0) {\n if (spawnRight) {\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages));\n }else{\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages,false));\n }\n } else if (capsule == 1) {\n if (spawnRight) {\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages));\n }else{\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages,false));\n }\n }\n\n }\n if (System.currentTimeMillis() - lastHealthSpawn >= SpawnTimerHealth) {\n speed = 500;\n lastHealthSpawn = System.currentTimeMillis();\n if (stageId == 4) {\n speed = speed / 2;\n where = Utils.doRandom(0, 1);\n if (where < 50) {\n spawnRight = true;\n } else {\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages));\n } else {\n int x = 0 - BlueBulletItem.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width * 2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages, false));\n }\n }\n //TODO\n }\n }\n }\n\n //run .update(delta) on all objects\n for (int i=0; i<screen.entities.size();i++){\n screen.entities.get(i).update(delta);\n }\n\n for (int i=0; i<screen.items.size();i++){\n screen.items.get(i).update(delta);\n }\n\n //labels set:\n screen.labelHealth.setText(\"Health: \" + screen.player.health + \"/\" + screen.player.maxHealth);\n if (scoreBased) {\n screen.labelInfo.setText(\"Score: \" + screen.player.score + \"/\" + scoreGoal);\n }else{\n if (killCount>0){\n screen.labelInfo.setText(\"Score: \" + screen.player.score + \"/\" + killCount);\n }else{\n if (boss){\n screen.labelInfo.setText(\"Boss: \"+screen.player.score + \"/\" + Boss.bossHealth);\n }else{\n screen.labelInfo.setText(\"\");\n }\n\n }\n }\n if (this.stageId == 999) {\n screen.labelInfo.setText(\"Score: \" + screen.player.score);\n }\n\n\n }", "@Override\n\tpublic void onUpdate()\n\t{\n\t\tthis.lastTickPosX = this.posX;\n\t\tthis.lastTickPosY = this.posY;\n\t\tthis.lastTickPosZ = this.posZ;\n\t\tsuper.onUpdate();\n\n\t\tif (this.throwableShake > 0)\n\t\t{\n\t\t\t--this.throwableShake;\n\t\t}\n\n\t\tif (this.inGround)\n\t\t{\n\t\t\tif (this.worldObj.getBlockState(this.getPosition()).getBlock() == this.inTile)\n\t\t\t{\n\t\t\t\t++this.ticksInGround;\n\n\t\t\t\tif (this.ticksInGround == 1200)\n\t\t\t\t{\n\t\t\t\t\tthis.setDead();\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.inGround = false;\n\t\t\tthis.motionX *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.motionY *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.motionZ *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.ticksInGround = 0;\n\t\t\tthis.ticksInAir = 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t++this.ticksInAir;\n\t\t}\n\n\t\tVec3 vec3 = new Vec3(this.posX, this.posY, this.posZ);\n\t\tVec3 vec31 = new Vec3(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\t\tMovingObjectPosition movingobjectposition = this.worldObj.rayTraceBlocks(vec3, vec31);\n\t\tvec3 = new Vec3(this.posX, this.posY, this.posZ);\n\t\tvec31 = new Vec3(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\n\t\tif (movingobjectposition != null)\n\t\t{\n\t\t\tvec31 = new Vec3(movingobjectposition.hitVec.xCoord, movingobjectposition.hitVec.yCoord, movingobjectposition.hitVec.zCoord);\n\t\t}\n\n\t\tif (!this.worldObj.isRemote)\n\t\t{\n\t\t\tEntity entity = null;\n\t\t\tList list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this,\n\t\t\t\t\tthis.getEntityBoundingBox().addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D));\n\t\t\tdouble d0 = 0.0D;\n\t\t\tEntityLivingBase entitylivingbase = this.getThrower();\n\n\t\t\tfor (Object obj : list)\n\t\t\t{\n\t\t\t\tEntity entity1 = (Entity) obj;\n\n\t\t\t\tif (entity1.canBeCollidedWith() && ((entity1 != entitylivingbase) || (this.ticksInAir >= 5)))\n\t\t\t\t{\n\t\t\t\t\tfloat f = 0.3F;\n\t\t\t\t\tAxisAlignedBB axisalignedbb = entity1.getEntityBoundingBox().expand(f, f, f);\n\t\t\t\t\tMovingObjectPosition movingobjectposition1 = axisalignedbb.calculateIntercept(vec3, vec31);\n\n\t\t\t\t\tif (movingobjectposition1 != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble d1 = vec3.distanceTo(movingobjectposition1.hitVec);\n\n\t\t\t\t\t\tif ((d1 < d0) || (d0 == 0.0D))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tentity = entity1;\n\t\t\t\t\t\t\td0 = d1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (entity != null)\n\t\t\t{\n\t\t\t\tmovingobjectposition = new MovingObjectPosition(entity);\n\t\t\t}\n\t\t}\n\n\t\tif (movingobjectposition != null)\n\t\t{\n\t\t\tif ((movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK)\n\t\t\t\t\t&& (this.worldObj.getBlockState(movingobjectposition.getBlockPos()).getBlock() == Blocks.portal))\n\t\t\t{\n\t\t\t\tthis.inPortal = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.onImpact(movingobjectposition);\n\t\t\t}\n\t\t}\n\n\t\tthis.posX += this.motionX;\n\t\tthis.posY += this.motionY;\n\t\tthis.posZ += this.motionZ;\n\t\tfloat f1 = MathHelper.sqrt_double((this.motionX * this.motionX) + (this.motionZ * this.motionZ));\n\t\tthis.rotationYaw = (float) ((Math.atan2(this.motionX, this.motionZ) * 180.0D) / Math.PI);\n\n\t\tfor (this.rotationPitch = (float) ((Math.atan2(this.motionY, f1) * 180.0D) / Math.PI); (this.rotationPitch\n\t\t\t\t- this.prevRotationPitch) < -180.0F; this.prevRotationPitch -= 360.0F)\n\t\t{\n\t\t}\n\n\t\twhile ((this.rotationPitch - this.prevRotationPitch) >= 180.0F)\n\t\t{\n\t\t\tthis.prevRotationPitch += 360.0F;\n\t\t}\n\n\t\twhile ((this.rotationYaw - this.prevRotationYaw) < -180.0F)\n\t\t{\n\t\t\tthis.prevRotationYaw -= 360.0F;\n\t\t}\n\n\t\twhile ((this.rotationYaw - this.prevRotationYaw) >= 180.0F)\n\t\t{\n\t\t\tthis.prevRotationYaw += 360.0F;\n\t\t}\n\n\t\tthis.rotationPitch = this.prevRotationPitch + ((this.rotationPitch - this.prevRotationPitch) * 0.2F);\n\t\tthis.rotationYaw = this.prevRotationYaw + ((this.rotationYaw - this.prevRotationYaw) * 0.2F);\n\t\tfloat f2 = 0.99F;\n\t\tfloat f3 = this.getGravityVelocity();\n\n\t\tif (this.isInWater())\n\t\t{\n\t\t\tfor (int i = 0; i < 4; ++i)\n\t\t\t{\n\t\t\t\tfloat f4 = 0.25F;\n\t\t\t\tthis.worldObj.spawnParticle(EnumParticleTypes.WATER_BUBBLE, this.posX - (this.motionX * f4), this.posY - (this.motionY * f4),\n\t\t\t\t\t\tthis.posZ - (this.motionZ * f4), this.motionX, this.motionY, this.motionZ);\n\t\t\t}\n\n\t\t\tf2 = 0.8F;\n\t\t}\n\n\t\tthis.motionX *= f2;\n\t\tthis.motionY *= f2;\n\t\tthis.motionZ *= f2;\n\t\tthis.motionY -= f3;\n\t\tthis.setPosition(this.posX, this.posY, this.posZ);\n\t}", "private void pollOneCreatureOnThisTile(boolean lava, Creature aCreature, boolean areaEffect) {\n/* */ try {\n/* 1373 */ boolean dead = false;\n/* 1374 */ if (aCreature.poll()) {\n/* 1375 */ deleteCreature(aCreature);\n/* 1376 */ } else if (lava) {\n/* */ \n/* 1378 */ if (!aCreature.isInvulnerable() && !aCreature.isGhost() && !aCreature.isUnique())\n/* */ {\n/* 1380 */ if (aCreature.getDeity() == null || !aCreature.getDeity().isMountainGod() || aCreature.getFaith() < 35.0F)\n/* */ {\n/* 1382 */ if (aCreature.getFarwalkerSeconds() <= 0) {\n/* */ \n/* 1384 */ Wound wound = null;\n/* */ \n/* */ \n/* */ try {\n/* 1388 */ byte pos = aCreature.getBody().getRandomWoundPos((byte)10);\n/* 1389 */ if (Server.rand.nextInt(10) <= 6)\n/* */ {\n/* 1391 */ if (aCreature.getBody().getWounds() != null) {\n/* */ \n/* 1393 */ wound = aCreature.getBody().getWounds().getWoundAtLocation(pos);\n/* 1394 */ if (wound != null) {\n/* */ \n/* 1396 */ dead = wound.modifySeverity(\n/* 1397 */ (int)(5000.0F + Server.rand.nextInt(5000) * (100.0F - aCreature.getSpellDamageProtectBonus()) / 100.0F));\n/* 1398 */ wound.setBandaged(false);\n/* 1399 */ aCreature.setWounded();\n/* */ } \n/* */ } \n/* */ }\n/* 1403 */ if (wound == null)\n/* */ {\n/* 1405 */ if (!aCreature.isGhost() && !aCreature.isUnique() && \n/* 1406 */ !aCreature.isKingdomGuard())\n/* */ {\n/* 1408 */ dead = aCreature.addWoundOfType(null, (byte)4, pos, false, 1.0F, true, (5000.0F + Server.rand\n/* 1409 */ .nextInt(5000) * (100.0F - aCreature.getSpellDamageProtectBonus()) / 100.0F), 0.0F, 0.0F, false, false);\n/* */ }\n/* */ }\n/* 1412 */ aCreature.getCommunicator().sendAlertServerMessage(\"You are burnt by lava!\");\n/* 1413 */ if (dead)\n/* */ {\n/* 1415 */ aCreature.achievement(142);\n/* 1416 */ deleteCreature(aCreature);\n/* */ }\n/* */ \n/* 1419 */ } catch (Exception ex) {\n/* */ \n/* 1421 */ logger.log(Level.WARNING, aCreature.getName() + \" \" + ex.getMessage(), ex);\n/* */ }\n/* */ \n/* */ } \n/* */ }\n/* */ }\n/* 1427 */ } else if (!dead && areaEffect) {\n/* */ \n/* 1429 */ if (!aCreature.isInvulnerable() && !aCreature.isGhost() && !aCreature.isUnique()) {\n/* */ \n/* 1431 */ AreaSpellEffect aes = getAreaEffect();\n/* 1432 */ if (aes != null && aes.getFloorLevel() == aCreature.getFloorLevel()) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1437 */ byte type = aes.getType();\n/* 1438 */ Creature caster = null;\n/* */ \n/* */ try {\n/* 1441 */ caster = Server.getInstance().getCreature(aes.getCreator());\n/* */ }\n/* 1443 */ catch (NoSuchCreatureException noSuchCreatureException) {\n/* */ \n/* */ \n/* */ }\n/* 1447 */ catch (NoSuchPlayerException noSuchPlayerException) {}\n/* */ \n/* */ \n/* */ \n/* 1451 */ if (caster != null) {\n/* */ \n/* */ try {\n/* */ \n/* 1455 */ if (aCreature.getAttitude(caster) == 2 || (caster\n/* 1456 */ .getCitizenVillage() != null && caster.getCitizenVillage().isEnemy(aCreature)))\n/* */ {\n/* 1458 */ boolean ok = true;\n/* 1459 */ if (!caster.isOnPvPServer() || !aCreature.isOnPvPServer()) {\n/* */ \n/* 1461 */ Village v = aCreature.getCurrentVillage();\n/* 1462 */ if (v != null && !v.mayAttack(caster, aCreature))\n/* */ {\n/* 1464 */ ok = false;\n/* */ }\n/* */ } \n/* 1467 */ if (ok)\n/* */ {\n/* 1469 */ aCreature.addAttacker(caster);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* 1532 */ catch (Exception exe) {\n/* */ \n/* 1534 */ logger.log(Level.WARNING, exe.getMessage(), exe);\n/* */ } \n/* */ }\n/* */ } \n/* */ } \n/* */ } \n/* 1540 */ } catch (Exception ex) {\n/* */ \n/* 1542 */ logger.log(Level.WARNING, \"Failed to poll creature \" + aCreature.getWurmId() + \" \" + ex.getMessage(), ex);\n/* */ \n/* */ try {\n/* 1545 */ Server.getInstance().getCreature(aCreature.getWurmId());\n/* */ }\n/* 1547 */ catch (Exception nsc) {\n/* */ \n/* 1549 */ logger.log(Level.INFO, \"Failed to locate creature. Removing from tile. Creature: \" + aCreature);\n/* 1550 */ if (this.creatures != null) {\n/* 1551 */ this.creatures.remove(aCreature);\n/* */ }\n/* */ } \n/* */ } \n/* */ }", "@EventHandler\n public void onBlockDropEvent(BlockBreakEvent event) {\n if (!plugin.config.enabled) {\n //plugin is not enabled.. do nothing\n return;\n }\n\n Player player = event.getPlayer();\n //message for debug\n String debugMSG = \"\";\n //test if player is in creative\n if (player.getGameMode().equals(GameMode.CREATIVE)){\n //don't drop anything\n if (plugin.config.debug) {\n debugMSG = ChatColor.DARK_GREEN + \"[DEBUG]\"\n + ChatColor.YELLOW + \"[\" + player.getDisplayName() + \"]\"\n + ChatColor.RESET;\n plugin.console.log(debugMSG + \"Player in Creative Mode. Not Dropping Items.\");\n }\n return;\n }\n\n Block block = event.getBlock();\n\n\n String blockLocation = \"\";\n if (plugin.config.debug) {\n debugMSG = ChatColor.DARK_GREEN + \"[DEBUG]\"\n + ChatColor.YELLOW + \"[\" + player.getDisplayName() + \"]\"\n + ChatColor.BLUE + \"[\" + block.getType().name() + \"]\"\n + ChatColor.RESET;\n blockLocation = ChatColor.DARK_AQUA + \" X:\" + ChatColor.GRAY + block.getLocation().getBlockX()\n + ChatColor.DARK_AQUA + \" Y:\" + ChatColor.GRAY + block.getLocation().getBlockY()\n + ChatColor.DARK_AQUA + \" Z:\" + ChatColor.GRAY + block.getLocation().getBlockZ();\n }\n\n //test to see if this block was placed\n List<MetadataValue> blockD = block.getMetadata(placeBlock);\n if (blockD.size() != 0) {\n //block was placed\n // don't drop anything\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Block Was Placed. No Drops Allowed. \"\n + blockLocation\n );\n }\n return;\n }\n\n Material brokenBlock = block.getType();//gets the material that was just broken\n\n\n //test if we need to check out list of Ores,\n // OR... are we doing it for ALL Blocks\n Ore tempOre = new Ore();//set up tempOre for good measure\n\n if (plugin.config.allBlocks) {\n //we are looking at all blocks\n // make tempOre equal to the block that we broke\n tempOre.setBlock(brokenBlock);\n tempOre.setExp(plugin.config.allBlocks_exp);\n tempOre.setMultiplier(plugin.config.allBlocks_multiplier);\n tempOre.setChance(plugin.config.allBlocks_chance);\n } else {\n //find a Material in our list that matches\n tempOre = plugin.ores.stream().filter((ore) -> brokenBlock.name().contains(ore.getName())).findFirst().orElse(null);\n }\n\n\n if (tempOre == null) {\n //ore was not in our list.\n //stop method\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Block was not Registered in config. No Drops Allowed. \"\n );\n }\n\n return;\n }\n\n //find out if we hit the right chance and go from there\n int chance = plugin.rnd.nextInt(100);//get a percentage\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Chance Needed: \" + tempOre.getChance()\n + \" Chance Received: \" + chance + \" \"\n + blockLocation\n );\n }\n\n if (chance <= tempOre.getChance()) {\n //success on the chance\\\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Drops Allowed. \"\n + blockLocation\n );\n }\n\n Collection<ItemStack> droppedItems = event.getBlock().getDrops();//get what ever was dropped\n int initialDrop = 0;//variable to hold how many items were dropped to begin with\n //drop an extra item per drop\n for (ItemStack i : droppedItems) {\n initialDrop = i.getAmount();\n i.setAmount(i.getAmount()*tempOre.getMultiplier() - 1);//set amount to drop\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Drop: \" + i.getType().name()\n + \" Amount: \" + initialDrop\n + \" Multiplier: \" + tempOre.getMultiplier()\n + \" Extra Given: \" + (i.getAmount())\n + blockLocation\n );\n }\n\n event.getBlock().getWorld().dropItemNaturally(\n event.getBlock().getLocation(), i\n );\n }\n\n //find out if we need to give experience\n if (tempOre.isExp()) {\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Drop includes XP\"\n + \" Amount: \" + event.getExpToDrop()\n + \" Multiplier: \" + tempOre.getMultiplier()\n + \" Total Given: \" + (event.getExpToDrop() * tempOre.getMultiplier())\n + blockLocation\n );\n }\n\n event.setExpToDrop(event.getExpToDrop() * tempOre.getMultiplier());\n }\n\n\n }\n\n\n }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec, Random paramRandom)\r\n/* 39: */ {\r\n/* 40: 54 */ if (paramaqu.isClient) {\r\n/* 41: 55 */ return;\r\n/* 42: */ }\r\n/* 43: 58 */ if ((paramaqu.l(paramdt.up()) < 4) && (paramaqu.getBlock(paramdt.up()).getType().getLightOpacity() > 2))\r\n/* 44: */ {\r\n/* 45: 59 */ paramaqu.setBlock(paramdt, BlockList.dirt.instance());\r\n/* 46: 60 */ return;\r\n/* 47: */ }\r\n/* 48: 63 */ if (paramaqu.l(paramdt.up()) >= 9) {\r\n/* 49: 64 */ for (int i = 0; i < 4; i++)\r\n/* 50: */ {\r\n/* 51: 65 */ BlockPosition localdt = paramdt.offset(paramRandom.nextInt(3) - 1, paramRandom.nextInt(5) - 3, paramRandom.nextInt(3) - 1);\r\n/* 52: 66 */ BlockType localatr = paramaqu.getBlock(localdt.up()).getType();\r\n/* 53: 67 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 54: 68 */ if ((localbec.getType() == BlockList.dirt) && (localbec.getData(BlockDirt.a) == avd.a) && (paramaqu.l(localdt.up()) >= 4) && (localatr.getLightOpacity() <= 2)) {\r\n/* 55: 69 */ paramaqu.setBlock(localdt, BlockList.grass.instance());\r\n/* 56: */ }\r\n/* 57: */ }\r\n/* 58: */ }\r\n/* 59: */ }", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\t\r\n\t\t\t\t\tfor(Entity as: Bukkit.getWorld(\"world\").getEntities()) {\r\n\t\t\t\t\t\tif(as instanceof ArmorStand) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tas.remove();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//TOPS\r\n\t\t\t\t\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"topkills\")) {\r\n\t\t\t\t\t getTop(locTopKILLS,\"Kills\");\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlTOP KILLS ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP KILLS NAO PODE SER CARREGADO, POIS A WARP topkills NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"topcoins\")) {\r\n\t\t\t\t\t getTop(locTopCoins,\"Coins\");\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlTOP COINS ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP COINS NAO PODE SER CARREGADO, POIS A WARP topkills NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"top1v1\")) {\r\n\t\t\t\t\t getTop(locTop1v1,\"wins\");\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlTOP 1v1 ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP 1v1 NAO PODE SER CARREGADO, POIS A WARP top1v1 NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Caixa misteriosa\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"misteryBox\")) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t Spawn(misteryBox, \"žažlCAIXA MISTERIOSA\",misteryBox.getY()-1.7);\r\n\t\t\t\t\t Spawn(misteryBox, \"žežlEM BREVE!\",misteryBox.getY()-2);\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlMYSTERYBOX ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP COINS NAO PODE SER CARREGADO, POIS A WARP misteryBox NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "private void checkBlockAt(int x, int y, int z, World world,\n\t\t\tEntityPlayer entityplayer) {\n\t\tif (world.getBlock(x, y, z) == Blocks.air) {\n\t\t\tworld.playSoundEffect(x + 5.0D, y + 5.0D, z + 5.0D,\n\t\t\t\t\t\"mob.endermen.portal\", 2.0F,\n\t\t\t\t\tworld.rand.nextFloat() * 0.1F + 0.9F);\n\t\t\tentityplayer.setPosition(x, y, z);\n\t\t\tfor (int t = 1; t < 10; t++) {\n\t\t\t\tworld.spawnParticle(\"portal\", x, y, z, 0D + t, 0D + t, 0D + t);\n\t\t\t}\n\t\t} else {\n\t\t\tcheckBlockAt(x, y + 2, z, world, entityplayer);\n\t\t}\n\t}", "@Override\n public void run() {\n World world=Bukkit.getWorld(\"world\");\n world.spawnEntity(world.getHighestBlockAt(world.getSpawnLocation()).getLocation(), EntityType.VILLAGER);\n }", "@Override\n public void updateTileEntity(IBlockAccess world, int x, int y, int z) {\n }", "@Override\n\tpublic void updateEntity() {\n\t\t\n\t\tif (this.mobID != null && !this.worldObj.isRemote) {\n\t\t\t\n\t\t\tif (this.delay > 0) {\n\t\t\t\tthis.delay--;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tEntity entity = EntityList.createEntityByName(this.mobID, this.worldObj);\n\t\t\t\n\t\t\t// L'entity n'existe pas\n\t\t\tif (entity == null) {\n\t\t\t\tModGollumCoreLib.log.warning(\"This mob \"+this.mobID+\" isn't register\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tthis.worldObj.setBlockToAir(this.xCoord , this.yCoord , this.zCoord);\n\t\t\t\n\t\t\tdouble x = (double)this.xCoord + 0.5D;\n\t\t\tdouble y = (double)(this.yCoord);// + this.worldObj.rand.nextInt(3) - 1);\n\t\t\tdouble z = (double)this.zCoord + 0.5D;\n\t\t\tEntityLiving entityLiving = entity instanceof EntityLiving ? (EntityLiving)entity : null;\n\t\t\tentity.setLocationAndAngles(x, y, z, this.worldObj.rand.nextFloat() * 360.0F, this.worldObj.rand.nextFloat() * 360.0F);\n\t\t\tthis.worldObj.spawnEntityInWorld(entity);\n\t\t\t\n\t\t\tif (entityLiving == null || entityLiving.getCanSpawnHere()) {\n\t\t\t\t\n\t\t\t\tthis.worldObj.playSoundEffect (this.xCoord, this.yCoord, this.zCoord, \"dig.stone\", 0.5F, this.worldObj.rand.nextFloat() * 0.25F + 0.6F);\n\t\t\t\t\n\t\t\t\tif (entityLiving != null) {\n\t\t\t\t\tentityLiving.spawnExplosionParticle();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void die(){\n\t\tboolean success = false;\n\t\ttile.setAnimal(null);\n\t\treleasePandas();\n\n\t\twhile(!success){\n\t\t\tRandom rng = new Random();\n\t\t\tInteger idx =rng.nextInt(gf.gp.getTiles().size());\n\t\t\tif(gf.gp.getTiles().get(idx).getAnimal() == null && gf.gp.getTiles().get(idx).getEntity() == null) {\n\t\t\t\tsuccess = spawn(gf.gp.getTiles().get(idx)); break;\n\t\t\t}\n\t\t}\n\t}", "public void spawnAroundBlock(Player player, Location loc, int itemID, Item3DRunnable run) {\r\n\t\tint centerx = (int) Math.floor(loc.getX());\r\n\t\tint centery = (int) Math.floor(loc.getY());\r\n\t\tint centerz = (int) Math.floor(loc.getZ());\r\n\t\t\r\n\t\t//-----------\r\n\t\t//-----------\r\n\t\t\r\n\t\tint x = centerx * 32 + 32 + 12;\r\n\t\tint y = centery * 32;\r\n\t\tint z = centerz * 32;\r\n\t\t\r\n\t\tbyte rotation = (byte) (0);\r\n\t\t\r\n\t\tspawnZombie(player, loc.getWorld().getName(), x, y, z, rotation, itemID, standCounter);\r\n\t\t\r\n\t\t//-----------\r\n\t\t\r\n\t\tx = (int) centerx * 32 + 32;\r\n\t\ty = (int) centery * 32;\r\n\t\tz = (int) centerz * 32 + 32 + 12;\r\n\t\t\r\n\t\trotation = (byte) (256/4*1);\r\n\t\t\r\n\t\tspawnZombie(player, loc.getWorld().getName(), x, y, z, rotation, itemID, standCounter);\r\n\t\t\r\n\t\t//-----------\r\n\t\t\r\n\t\tx = (int) centerx * 32 - 12;\r\n\t\ty = (int) centery * 32;\r\n\t\tz = (int) centerz * 32 + 32;\r\n\t\t\r\n\t\trotation = (byte) (256/4*2);\r\n\t\t\r\n\t\tspawnZombie(player, loc.getWorld().getName(), x, y, z, rotation, itemID, standCounter);\r\n\t\t\r\n\t\t//-----------\r\n\t\t\r\n\t\tx = (int) centerx * 32;\r\n\t\ty = (int) centery * 32;\r\n\t\tz = (int) centerz * 32 - 12;\r\n\t\t\r\n\t\trotation = (byte) (256/4*3);\r\n\t\t\r\n\t\tspawnZombie(player, loc.getWorld().getName(), x, y, z, rotation, itemID, standCounter);\r\n\t\r\n\t\t//-----------\r\n\t\r\n\t\tactions.put(standCounter, run);\r\n\t\t\r\n\t\t//update players\r\n\t\tfor(Player p : loc.getWorld().getPlayers()) {\r\n\t\t\trespawnAll(p);\r\n\t\t}\r\n\t\t\r\n\t\tstandCounter++;\r\n\t}", "public void putRandomOnTile(Item item) {\n/* 4677 */ float newPosX = (this.tilex << 2) + 0.5F + Server.rand.nextFloat() * 3.0F;\n/* 4678 */ float newPosY = (this.tiley << 2) + 0.5F + Server.rand.nextFloat() * 3.0F;\n/* 4679 */ item.setPosXY(newPosX, newPosY);\n/* */ }", "public static void blockMove(Player player) {\n Location location1 = (Location) plugin.getConfig().get(\"region1\");\n Location location2 = (Location) plugin.getConfig().get(\"region2\");\n\n int y = (location1.getBlockY() < location2.getBlockY() ? location2.getBlockY() : location1.getBlockY());\n\n for (Location location : blockPlace.redblockloc) {\n int x = location.getBlockX();\n int z = location.getBlockZ();\n new Location(player.getWorld(), x, y + 1, z).getBlock().setType(location.getBlock().getType());\n player.sendMessage(String.valueOf(location.getBlock().getType()));\n if(location.getBlock().getType()==Material.AIR) {\n blockPlace.redblock.remove(location.getBlock().getType());\n }\n if(location.getBlock().getType()==Material.WATER) {\n blockPlace.redblock.remove(location.getBlock().getType());\n }\n if(location.getBlock().getType()== Material.IRON_BLOCK) {\n blockPlace.redblock.add(location.getBlock());\n }\n location.getBlock().setType(Material.AIR);\n }\n\n for (Location location : blockPlace.blueblockloc) {\n int xb = location.getBlockX();\n int zb = location.getBlockZ();\n new Location(player.getWorld(), xb, y + 1, zb).getBlock().setType(location.getBlock().getType());\n location.getBlock().setType(Material.AIR);\n if(location.getBlock().getType()==Material.AIR) {\n blockPlace.blueblock.remove(location.getBlock().getType());\n }\n }\n\n for (Location location : blockPlace.greenblockloc) {\n int xg = location.getBlockX();\n int zg = location.getBlockZ();\n new Location(player.getWorld(), xg, y + 1, zg).getBlock().setType(location.getBlock().getType());\n location.getBlock().setType(Material.AIR);\n }\n for (Location location : blockPlace.yellowblockloc) {\n int xy = location.getBlockX();\n int zy = location.getBlockZ();\n new Location(player.getWorld(), xy, y + 1, zy).getBlock().setType(location.getBlock().getType());\n location.getBlock().setType(Material.AIR);\n }\n }", "void makeDragon() {\n new BukkitRunnable() {\n int i = 555;\n\n @Override\n public void run() {\n Set<BlockData> set = create.get(i);\n for (BlockData blockData : set) {\n blockData.setBlock();\n }\n\n i++;\n if (i > 734) {\n cancel();\n }\n }\n }.runTaskTimer(Main.plugin, 0, 2);\n // Location end = new Location(Bukkit.getWorld(\"world\"), 3, 254, 733);\n }", "public void initTiles()\n {\n PropertiesManager props = PropertiesManager.getPropertiesManager(); \n String imgPath = props.getProperty(MahjongSolitairePropertyType.IMG_PATH);\n int spriteTypeID = 0;\n SpriteType sT;\n \n // WE'LL RENDER ALL THE TILES ON TOP OF THE BLANK TILE\n String blankTileFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_IMAGE_NAME);\n BufferedImage blankTileImage = miniGame.loadImageWithColorKey(imgPath + blankTileFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileImage(blankTileImage);\n \n // THIS IS A HIGHLIGHTED BLANK TILE FOR WHEN THE PLAYER SELECTS ONE\n String blankTileSelectedFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_SELECTED_IMAGE_NAME);\n BufferedImage blankTileSelectedImage = miniGame.loadImageWithColorKey(imgPath + blankTileSelectedFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileSelectedImage(blankTileSelectedImage);\n \n // FIRST THE TYPE A TILES, OF WHICH THERE IS ONLY ONE OF EACH\n // THIS IS ANALOGOUS TO THE SEASON TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeATiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_A_TILES);\n for (int i = 0; i < typeATiles.size(); i++)\n {\n String imgFile = imgPath + typeATiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_A_TYPE);\n spriteTypeID++;\n }\n \n // THEN THE TYPE B TILES, WHICH ALSO ONLY HAVE ONE OF EACH\n // THIS IS ANALOGOUS TO THE FLOWER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeBTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_B_TILES);\n for (int i = 0; i < typeBTiles.size(); i++)\n {\n String imgFile = imgPath + typeBTiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_B_TYPE);\n spriteTypeID++;\n }\n \n // AND THEN TYPE C, FOR WHICH THERE ARE 4 OF EACH \n // THIS IS ANALOGOUS TO THE CHARACTER AND NUMBER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeCTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_C_TILES);\n for (int i = 0; i < typeCTiles.size(); i++)\n {\n String imgFile = imgPath + typeCTiles.get(i);\n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID); \n for (int j = 0; j < 4; j++)\n {\n initTile(sT, TILE_C_TYPE);\n }\n spriteTypeID++;\n }\n }", "public void onLivingUpdate()\n {\n if (this.worldObj.isDaytime() && !this.worldObj.isRemote && !this.isChild())\n {\n float var1 = this.getBrightness(100.0F);\n\n if (var1 > 0.5F && this.rand.nextFloat() * 30.0F < (var1 - 0.4F) * 2.0F && this.worldObj.canBlockSeeTheSky(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.posY), MathHelper.floor_double(this.posZ)))\n {\n boolean var2 = true;\n ItemStack var3 = this.getEquipmentInSlot(4);\n\n if (var3 != null)\n {\n if (var3.isItemStackDamageable())\n {\n var3.setItemDamage(var3.getItemDamageForDisplay() + this.rand.nextInt(2));\n\n if (var3.getItemDamageForDisplay() >= var3.getMaxDamage())\n {\n this.renderBrokenItemStack(var3);\n this.setCurrentItemOrArmor(4, (ItemStack)null);\n }\n }\n\n var2 = false;\n }\n\n if (var2)\n {\n this.setFire(-99);\n }\n }\n }\n\n super.onLivingUpdate();\n }", "@Override\n public void onLivingUpdate() {\n if (this.lastEntityToAttack != this.entityToAttack) {\n IAttributeInstance attribute = this.getEntityAttribute(SharedMonsterAttributes.movementSpeed);\n attribute.removeModifier(EntityEnderCreeper.attackingSpeedBoost);\n if (this.entityToAttack != null) {\n attribute.applyModifier(EntityEnderCreeper.attackingSpeedBoost);\n }\n }\n this.lastEntityToAttack = this.entityToAttack;\n\n for (int i = 0; i < 2; i++) {\n this.worldObj.spawnParticle(\"portal\", this.posX + (this.rand.nextDouble() - 0.5) * this.width, this.posY + this.rand.nextDouble() * this.height - 0.25, this.posZ + (this.rand.nextDouble() - 0.5) * this.width, (this.rand.nextDouble() - 0.5) * 2.0, -this.rand.nextDouble(), (this.rand.nextDouble() - 0.5) * 2.0);\n }\n if (this.worldObj.isDaytime() && !this.worldObj.isRemote) {\n float brightness = this.getBrightness(1.0F);\n if (brightness > 0.5F && this.worldObj.canBlockSeeTheSky((int)Math.floor(this.posX), (int)Math.floor(this.posY), (int)Math.floor(this.posZ)) && this.rand.nextFloat() * 30.0F < (brightness - 0.4F) * 2.0F) {\n this.entityToAttack = null;\n this.teleportRandomly();\n }\n }\n if (this.isWet()) {\n this.attackEntityFrom(DamageSource.drown, 1);\n this.entityToAttack = null;\n this.teleportRandomly();\n }\n this.isJumping = false;\n if (this.entityToAttack != null) {\n if (this.entityToAttack.getDistanceSqToEntity(this) < 9.0 && this.canEntityBeSeen(this.entityToAttack)) {\n this.setCreeperState(1);\n }\n else {\n this.setCreeperState(-1);\n }\n this.faceEntity(this.entityToAttack, 100.0F, 100.0F);\n }\n if (!this.worldObj.isRemote && this.isEntityAlive()) {\n if (this.entityToAttack != null) {\n if (this.entityToAttack instanceof EntityPlayer && this.shouldAttackPlayer((EntityPlayer)this.entityToAttack)) {\n if (this.getCreeperState() < 0 && this.entityToAttack.getDistanceSqToEntity(this) < 16.0) {\n this.teleportRandomly();\n }\n this.teleportDelay = 0;\n }\n else if (this.entityToAttack.getDistanceSqToEntity(this) > 256.0 && this.teleportDelay++ >= 30 && this.teleportToEntity(this.entityToAttack)) {\n this.teleportDelay = 0;\n }\n }\n else {\n this.teleportDelay = 0;\n }\n }\n super.onLivingUpdate();\n }", "@Override\n public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float xOffset, float yOffset, float zOffset)\n {\n Object tileEntity = world.getTileEntity(x, y, z);\n\n if (tileEntity == null || world.isSideSolid(x, y + 1, z, ForgeDirection.DOWN))\n {\n return true;\n }\n\n\n if (TileEntityARChest.isOcelotBlockingChest(world, x, y, z))\n {\n return true;\n }\n if(this.canDoublechest) {\n if (world.getBlock(x - 1, y, z) == this && (world.isSideSolid(x - 1, y + 1, z, ForgeDirection.DOWN) || TileEntityARChest.isOcelotBlockingChest(world, x - 1, y, z)))\n {\n return true;\n }\n if (world.getBlock(x + 1, y, z) == this && (world.isSideSolid(x + 1, y + 1, z, ForgeDirection.DOWN) || TileEntityARChest.isOcelotBlockingChest(world, x + 1, y, z)))\n {\n return true;\n }\n if (world.getBlock(x, y, z - 1) == this && (world.isSideSolid(x, y + 1, z - 1, ForgeDirection.DOWN) || TileEntityARChest.isOcelotBlockingChest(world, x, y, z - 1)))\n {\n return true;\n }\n if (world.getBlock(x, y, z + 1) == this && (world.isSideSolid(x, y + 1, z + 1, ForgeDirection.DOWN) || TileEntityARChest.isOcelotBlockingChest(world, x, y, z + 1)))\n {\n return true;\n }\n\n\n if (isSameBlock(world, x - 1, y, z))\n {\n tileEntity = new InventoryLargeChest(\"container.chestDouble\", (TileEntityARChest) world.getTileEntity(x - 1, y, z), (IInventory) tileEntity);\n }\n\n if (isSameBlock(world, x + 1, y, z))\n {\n tileEntity = new InventoryLargeChest(\"container.chestDouble\", (IInventory) tileEntity, (TileEntityARChest) world.getTileEntity(x + 1, y, z));\n }\n\n if (isSameBlock(world, x, y, z - 1))\n {\n tileEntity = new InventoryLargeChest(\"container.chestDouble\", (TileEntityARChest) world.getTileEntity(x, y, z - 1), (IInventory) tileEntity);\n }\n\n if (isSameBlock(world, x, y, z + 1))\n {\n tileEntity = new InventoryLargeChest(\"container.chestDouble\", (IInventory) tileEntity, (TileEntityARChest) world.getTileEntity(x, y, z + 1));\n }\n }\n\n if (world.isRemote)\n {\n return true;\n }\n else\n {\n player.displayGUIChest((IInventory) tileEntity);\n return true;\n }\n\n }", "@Override\n\tpublic void onUpdate() {\n\t\tif (this.isEntityAlive()) {\n\t\t\tthis.lastActiveTime = this.timeSinceIgnited;\n\t\t\tint i = this.getCreeperState();\n\t\t\tif (i > 0 && this.timeSinceIgnited == 0) {\n\t\t\t\tthis.playSound(\"random.fuse\", 1.0F, 0.5F);\n\t\t\t}\n\t\t\tthis.timeSinceIgnited += i;\n\t\t\tif (this.timeSinceIgnited < 0) {\n\t\t\t\tthis.timeSinceIgnited = 0;\n\t\t\t}\n\t\t\tif (this.timeSinceIgnited >= this.fuseTime) {\n\t\t\t\tthis.timeSinceIgnited = this.fuseTime;\n\t\t\t\tif (!this.worldObj.isRemote) {\n\t\t\t\t\tthis.worldObj.spawnParticle(\"portal\", this.posX, this.posY,\n\t\t\t\t\t\t\tthis.posZ, 4D, 4D, 4D);\n\t\t\t\t\tthis.worldObj.playSoundEffect(this.posX, this.posY,\n\t\t\t\t\t\t\tthis.posZ, \"mob.endermen.portal\", 2.0F,\n\t\t\t\t\t\t\tthis.worldObj.rand.nextFloat() * 0.1F + 0.9F);\n\t\t\t\t\tList players = worldObj.getEntitiesWithinAABB(\n\t\t\t\t\t\t\tEntityPlayer.class, this.boundingBox.expand(\n\t\t\t\t\t\t\t\t\t3 + Math.floor(this.ticksExisted / 50), 2,\n\t\t\t\t\t\t\t\t\t3 + Math.floor(this.ticksExisted / 50)));\n\t\t\t\t\tObject[] playerArray = players.toArray();\n\t\t\t\t\tfor (Object o : playerArray) {\n\t\t\t\t\t\tEntityPlayer e = (EntityPlayer) o;\n\t\t\t\t\t\tint entityId = e.getEntityId();\n\t\t\t\t\t\tif (!this.worldObj.isRemote) {\n\t\t\t\t\t\t\tint dimensionId = e.dimension == 0 ? 1 : 0;\n\t\t\t\t\t\t\tPacketDispatcher.getSimpleNetworkWrapper()\n\t\t\t\t\t\t\t.sendToServer(\n\t\t\t\t\t\t\t\t\tnew MessageTeleportToDimension(\n\t\t\t\t\t\t\t\t\t\t\t\t\tdimensionId, entityId));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tthis.setDead();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsuper.onUpdate();\n\t}", "@Override\n public TileEntity createNewTileEntity(World world) {\n return new TileEntityAscender();\n }", "@SuppressWarnings(\"deprecation\")\r\n\t@Override\r\n public EnumActionResult onItemUse(EntityPlayer playerIn, World worldIn, BlockPos pos, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ)\r\n {\r\n \tItemStack stack = playerIn.getHeldItem(hand);\r\n \tif (side == EnumFacing.DOWN && side == EnumFacing.UP)\r\n {\r\n return EnumActionResult.PASS;\r\n }\r\n else if (!playerIn.canPlayerEdit(pos.offset(side), side, stack))\r\n {\r\n return EnumActionResult.PASS;\r\n }\r\n \tIBlockState iblockstate = worldIn.getBlockState(pos);\r\n Block block = iblockstate.getBlock();\r\n if (block == ModBlocks.crystalLog)\r\n {\r\n \tCrystalColors.Basic wood = iblockstate.getValue(CrystalColors.COLOR_BASIC);\r\n \tif(wood == CrystalColors.Basic.BLUE && TYPE !=PlantType.BLUE)return EnumActionResult.PASS;\r\n \tif(wood == CrystalColors.Basic.RED && TYPE !=PlantType.RED)return EnumActionResult.PASS;\r\n \tif(wood == CrystalColors.Basic.GREEN && TYPE !=PlantType.GREEN)return EnumActionResult.PASS;\r\n \tif(wood == CrystalColors.Basic.DARK && TYPE !=PlantType.DARK)return EnumActionResult.PASS;\r\n pos = pos.offset(side);\r\n\r\n if (worldIn.isAirBlock(pos))\r\n {\r\n IBlockState iblockstate1 = getPlant().getBlock().getStateForPlacement(worldIn, pos, side, hitX, hitY, hitZ, 0, playerIn);\r\n worldIn.setBlockState(pos, iblockstate1, 10);\r\n SoundType soundtype = worldIn.getBlockState(pos).getBlock().getSoundType(worldIn.getBlockState(pos), worldIn, pos, playerIn);\r\n worldIn.playSound(playerIn, pos, soundtype.getPlaceSound(), SoundCategory.BLOCKS, (soundtype.getVolume() + 1.0F) / 2.0F, soundtype.getPitch() * 0.8F);\r\n \r\n if (!playerIn.capabilities.isCreativeMode)\r\n {\r\n \tItemStackTools.incStackSize(stack, -1);\r\n }\r\n }\r\n\r\n return EnumActionResult.SUCCESS;\r\n }\r\n return EnumActionResult.PASS;\r\n }", "private boolean UpdateWithoutCarriedBlock()\r\n {\r\n if ( rand.nextInt(20) == 0 )\r\n {\r\n int i = MathHelper.floor_double( ( posX - 3D ) + rand.nextDouble() * 6D );\r\n int j = MathHelper.floor_double( posY - 1D + rand.nextDouble() * 7D );\r\n int k = MathHelper.floor_double( ( posZ - 3D ) + rand.nextDouble() * 6D );\r\n \r\n int l1 = worldObj.getBlockId( i, j, k );\r\n\r\n if ( CanPickUpBlock( i, j, k ) )\r\n {\r\n\t\t worldObj.playAuxSFX( FCBetterThanWolves.m_iEnderBlockCollectAuxFXID, i, j, k, l1 + ( worldObj.getBlockMetadata( i, j, k ) << 12 ) );\r\n\t\t \r\n setCarried( worldObj.getBlockId( i, j, k ) );\r\n setCarryingData( worldObj.getBlockMetadata( i, j, k ) );\r\n worldObj.setBlockToAir( i, j, k );\r\n }\r\n }\r\n else if ( worldObj.provider.dimensionId == 1 )\r\n {\r\n \t// Endermen in the end without a block in hand will eventually teleport back to the overworld\r\n \t\r\n \t\tif ( rand.nextInt( 9600 ) == 0 )\r\n \t\t{\r\n \t\t\t// play dimensional travel effects\r\n \t\t\t\r\n int i = MathHelper.floor_double( posX );\r\n int j = MathHelper.floor_double( posY ) + 1;\r\n int k = MathHelper.floor_double( posZ );\r\n \r\n\t\t worldObj.playAuxSFX( FCBetterThanWolves.m_iEnderChangeDimensionAuxFXID, i, j, k, 0 );\r\n\t\t \r\n setDead();\r\n \r\n return false;\r\n \t\t}\r\n }\r\n \r\n return true;\r\n }", "@Override\n\tpublic void pasteInWorld(World world, int xCoord, int yCoord ,int zCoord) {\n\n\t\t//Set all the blocks\n\t\tfor(int x = 0; x < sizeX; x++) {\n\t\t\tfor(int z = 0; z < sizeZ; z++) {\n\t\t\t\tfor(int y = 0; y< sizeY; y++) {\n\n\t\t\t\t\tif(blocks[x][y][z] != null) {\n\t\t\t\t\t\tworld.setBlockState(new BlockPos(xCoord + x, yCoord + y, zCoord + z), blocks[x][y][z].getStateFromMeta(metas[x][y][z]), 2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Set tiles for each block\n\t\tfor(TileEntity tile : tileEntities) {\n\t\t\tNBTTagCompound nbt = new NBTTagCompound();\n\t\t\ttile.writeToNBT(nbt);\n\t\t\tint x = nbt.getInteger(\"x\");\n\t\t\tint y = nbt.getInteger(\"y\");\n\t\t\tint z = nbt.getInteger(\"z\");\n\n\t\t\tint tmpX = x + xCoord;\n\t\t\tint tmpY = y + yCoord;\n\t\t\tint tmpZ = z + zCoord;\n\n\t\t\t//Set blocks of tiles again to avoid weirdness caused by updates\n\t\t\t//world.setBlock(xCoord + x, yCoord + y, zCoord + z, blocks[x][y][z], metas[x][y][z], 2);\n\n\n\t\t\tnbt.setInteger(\"x\",tmpX);\n\t\t\tnbt.setInteger(\"y\",tmpY);\n\t\t\tnbt.setInteger(\"z\",tmpZ);\n\n\t\t\tTileEntity entity = world.getTileEntity(new BlockPos(tmpX, tmpY, tmpZ));\n\n\t\t\tif(entity != null)\n\t\t\t\tentity.readFromNBT(nbt);\n\t\t}\n\t}", "@Override\n public void tick()\n {\n super.tick();\n\n if (source == null) // fix for saved entity music source so they don't NPE on a tick.\n {\n source = this.blockPosition();\n }\n\n if(!this.level.isClientSide())\n {\n boolean hasActiveTuneEntry = PlayManager.activeTuneEntityExists(this);\n if (!this.isAlive() || this.level.isEmptyBlock(this.source) || !(this.hasExactlyOnePlayerPassenger()) || !hasActiveTuneEntry)\n {\n if (PlayManager.activeTuneEntityActive(this))\n PlayManager.stopPlayingEntity(this);\n LOGGER.debug(\"has playId: {}\", hasActiveTuneEntry);\n LOGGER.debug(\"{} removed from world.\", this.getId());\n LOGGER.debug(\"{} @Block is Air: {}.\", this.getId(), this.level.isEmptyBlock(this.source));\n this.remove(RemovalReason.DISCARDED);\n this.level.updateNeighbourForOutputSignal(blockPosition(), this.level.getBlockState(blockPosition()).getBlock());\n }\n }\n }", "@Override\n public void run() {\n if (config.DebugLogging) {\n getLogger().info(\"Reverting Ice to Water to prevent server overload\");\n }\n\n Block fixblock = getServer().getWorld(blockloc.getWorld().getName()).getBlockAt(blockloc);\n fixblock.setType(Material.STATIONARY_WATER);\n\n }", "@Override\n public void tick() {\n if (!this.world.isRemote) {\n if (this.angler == null) {\n this.remove();\n return;\n }\n this.setFlag(6, this.isGlowing());\n }\n this.baseTick();\n age++;\n\n if (this.world.isRemote) {\n int i = this.getDataManager().get(cau_ent);\n\n if (i > 0 && this.caughtEntity == null) {\n this.caughtEntity = this.world.getEntityByID(i - 1);\n MinecraftForge.EVENT_BUS.post(new HookReturningEvent(this));\n }\n } else {\n ItemStack itemstack = this.angler.getHeldItemMainhand();\n\n if (age > 80 || !this.angler.isAlive() || itemstack.getItem() != Items.ITEM_GRAB_HOOK || this.getDistanceSq(this.angler) > 4096.0D) {\n this.remove();\n this.angler.fishingBobber = null;\n return;\n }\n }\n\n if (this.caughtEntity != null && this.angler != null) {\n pullEntity();\n return;\n }\n if (this.inGround) {\n if(hasGrappling && this.angler != null){\n pullUser();\n }else{\n this.remove();\n }\n return;\n }\n\n // In the air\n ++this.ticksInAir;\n if (this.ticksInAir == 20) {\n setReturning();\n }\n if (!this.world.isRemote) {\n boolean caughtSomething = checkCollision();\n if(caughtSomething){\n return;\n }\n\n if (this.isReturning) {\n Vector3d target = this.angler.getPositionVec().add(0, this.angler.getEyeHeight(), 0);\n Vector3d v = target.subtract(this.getPositionVec());\n if (v.length() < 3D) {\n this.remove();\n return;\n }\n v = v.normalize().scale(speed).subtract(0, 0.1, 0);\n this.setMotion(v);\n }\n }\n\n this.move(MoverType.SELF, this.getMotion());\n this.setPosition(this.getPosX(), this.getPosY(), this.getPosZ());\n }", "@Override\r\n public void setDead()\r\n {\r\n if (!worldObj.isRemote && !this.isDead)\r\n {\r\n if (blocks != null)\r\n {\r\n for (ItemStack[][] barrarr : blocks)\r\n {\r\n for (ItemStack[] barr : barrarr)\r\n for (ItemStack b : barr)\r\n {\r\n if (b != null) this.entityDropItem(b, 0.5f);\r\n }\r\n }\r\n if (this.getHeldItem() != null) this.entityDropItem(getHeldItem(), 1);\r\n }\r\n }\r\n super.setDead();\r\n }", "@Override\r\n\tpublic void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack) {\r\n\t\tsuper.onBlockPlacedBy(worldIn, pos, state, placer, stack);\r\n\t\tTileEntity tileentity = worldIn.getTileEntity(pos);\r\n\t\tif (tileentity instanceof TileEntityGemOfLight) { // prevent a crash if not the right type, or is null\r\n\t\t\tTileEntityGemOfLight tileEntityMBE21 = (TileEntityGemOfLight)tileentity;\r\n\r\n\t\t\t// chose a random colour for the gem:\r\n\t\t\t//Color [] colorChoices = {Color.BLUE, Color.CYAN, Color.YELLOW, Color.GREEN, Color.WHITE, Color.ORANGE, Color.RED};\r\n\t\t\t//Random random = new Random();\r\n\t\t\t//Color gemColor = colorChoices[random.nextInt(colorChoices.length)];\r\n\t\t\ttileEntityMBE21.setGemColour(Color.RED);//gemColor);\r\n\t\t}\r\n\t}", "private void pollAllCreaturesOnThisTile(boolean lava, boolean areaEffect) {\n/* 1322 */ long lStart = System.nanoTime();\n/* */ \n/* 1324 */ Creature[] lTempCreatures = getCreatures();\n/* 1325 */ for (int x = 0; x < lTempCreatures.length; x++)\n/* */ {\n/* 1327 */ pollOneCreatureOnThisTile(lava, lTempCreatures[x], areaEffect);\n/* */ }\n/* */ \n/* 1330 */ if ((float)(System.nanoTime() - lStart) / 1000000.0F > 300.0F && !Servers.localServer.testServer) {\n/* */ \n/* 1332 */ int destroyed = 0;\n/* 1333 */ for (int y = 0; y < lTempCreatures.length; y++) {\n/* */ \n/* 1335 */ if (lTempCreatures[y].isDead())\n/* 1336 */ destroyed++; \n/* */ } \n/* 1338 */ logger.log(Level.INFO, \"Tile at \" + this.tilex + \", \" + this.tiley + \" polled \" + lTempCreatures.length + \" creatures. Of those were \" + destroyed + \" destroyed. It took \" + (\n/* */ \n/* 1340 */ (float)(System.nanoTime() - lStart) / 1000000.0F) + \" ms\");\n/* */ } \n/* */ }", "public void livingTick() {\n super.livingTick();\n this.oFlap = this.wingRotation;\n this.oFlapSpeed = this.destPos;\n this.destPos = (float)((double)this.destPos + (double)(this.onGround ? -1 : 4) * 0.3D);\n this.destPos = MathHelper.clamp(this.destPos, 0.0F, 1.0F);\n if (!this.onGround && this.wingRotDelta < 1.0F) {\n this.wingRotDelta = 1.0F;\n }\n\n this.wingRotDelta = (float)((double)this.wingRotDelta * 0.9D);\n Vec3d vec3d = this.getMotion();\n if (!this.onGround && vec3d.y < 0.0D) {\n this.setMotion(vec3d.mul(1.0D, 0.6D, 1.0D));\n }\n\n this.wingRotation += this.wingRotDelta * 2.0F;\n if (!this.world.isRemote && this.isAlive() && !this.isChild() && getGender()==Gender.FEMALE && --this.timeUntilNextEgg <= 0) {\n this.playSound(SoundEvents.ENTITY_CHICKEN_EGG, 1.0F, (this.rand.nextFloat() - this.rand.nextFloat()) * 0.2F + 1.0F);\n this.entityDropItem(Items.EGG);\n this.timeUntilNextEgg = this.rand.nextInt(6000) + 6000;\n }\n\n ++this.eatTicks;\n ItemStack itemstack = this.getItemStackFromSlot(EquipmentSlotType.MAINHAND);\n if (this.canEatItem(itemstack)) {\n if (this.eatTicks > 600) {\n ItemStack itemstack1 = itemstack.onItemUseFinish(this.world, this);\n if (!itemstack1.isEmpty()) {\n this.setItemStackToSlot(EquipmentSlotType.MAINHAND, itemstack1);\n }\n\n this.eatTicks = 0;\n } else if (this.eatTicks > 560 && this.rand.nextFloat() < 0.1F) {\n this.playSound(this.getEatSound(itemstack), 1.0F, 1.0F);\n this.world.setEntityState(this, (byte)45);\n }\n }\n\n }", "private void defineDeathBlock() {\r\n BallRemover removeBall = new BallRemover(this);\r\n Rectangle death = new Rectangle(new Point(0, HEIGHT), WITH, 10);\r\n Block deathRegion = new Block(death, Color.black,0);\r\n deathRegion.addHitListener(removeBall);\r\n deathRegion.addToGame(this);\r\n }", "@SubscribeEvent(priority = EventPriority.LOWEST)\n public void interactRightClickBlock(PlayerInteractEvent.RightClickBlock evt)\n {\n boolean invalid = !evt.getEntityPlayer().isSneaking() || !CompatWrapper.isValid(evt.getItemStack())\n || !(evt.getItemStack().getItem() instanceof OceanOrb /*ItemPokedex*/) || evt.getWorld().isRemote;\n if (invalid) return;\n Block block = null;\n EntityPlayer playerIn = evt.getEntityPlayer();\n World worldIn = evt.getWorld();\n BlockPos pos = evt.getPos();\n IBlockState state = evt.getWorld().getBlockState(evt.getPos());\n block = state.getBlock();\n PokedexEntry entry = Database.getEntry(\"lugia\");\n if (block == BlockInit.LEGENDARY_SPAWN && entry != null)\n {\n SpawnData data = entry.getSpawnData();\n if (data != null) for (SpawnBiomeMatcher matcher : data.matchers.keySet())\n {\n if (data.getWeight(matcher) > 0) return;\n }\n ISpecialSpawnCondition spawnCondition = ISpecialSpawnCondition.spawnMap.get(entry);\n ISpecialCaptureCondition captureCondition = ISpecialCaptureCondition.captureMap.get(entry);\n if (spawnCondition != null)\n {\n Vector3 location = Vector3.getNewVector().set(pos);\n if (spawnCondition.canSpawn(playerIn, location))\n {\n EntityLiving entity = (EntityLiving) PokecubeMod.core.createPokemob(entry, worldIn);\n IPokemob pokemob = CapabilityPokemob.getPokemobFor(entity);\n if (captureCondition != null && !captureCondition.canCapture(playerIn, pokemob))\n {\n evt.setCanceled(true);\n return;\n }\n PokecubePlayerDataHandler.getCustomDataTag(playerIn).setBoolean(\"spwn:\" + entry.getTrimmedName(),\n true);\n entity.setHealth(entity.getMaxHealth());\n location.add(0, 1, 0).moveEntity(entity);\n spawnCondition.onSpawn(pokemob);\n playerIn.getHeldItemMainhand().setCount(0);\n worldIn.setBlockToAir(pos);\n if (pokemob.getExp() < 100)\n {\n entity = pokemob.setForSpawn(Tools.levelToXp(entry.getEvolutionMode(), 50)).getEntity();\n }\n worldIn.spawnEntity(entity);\n }\n }\n evt.setCanceled(true);\n }\n }", "private void generateItemEntities(){\n final int NUM_POTIONS = 6;\n final int NUM_IRON_ARMOUR = 1;\n final int NUM_CHESTS = 2;\n final String ITEM_BOX_STYLE = \"volcano\";\n\n\n for (int i = 0; i < NUM_POTIONS; i++) {\n Tile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n Item.randomItemPositionGenerator(DEFAULT_HEIGHT));\n if (Integer.parseInt(tile.getTextureName().split(\"_\")[1]) < 5\n && !tile.hasParent()) {\n HealthPotion potion = new HealthPotion(tile,false,\n (PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE);\n entities.add(potion);\n this.allVolcanoDialogues.add(potion.getDisplay());\n } else {\n i--;\n }\n }\n for (int i =0; i < NUM_IRON_ARMOUR; i++){\n Tile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n Item.randomItemPositionGenerator(DEFAULT_HEIGHT));\n if (Integer.parseInt(tile.getTextureName().split(\"_\")[1]) < 5\n && !tile.hasParent()) {\n IronArmour ironArmour = new IronArmour(tile, false,\n (PlayerPeon) getPlayerEntity(),ITEM_BOX_STYLE,200);\n entities.add(ironArmour);\n this.allVolcanoDialogues.add(ironArmour.getDisplay());\n } else {\n i--;\n }\n }\n for (int i = 0; i <NUM_CHESTS; i++){\n Tile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n Item.randomItemPositionGenerator(DEFAULT_HEIGHT));\n if (Integer.parseInt(tile.getTextureName().split(\"_\")[1]) < 5\n && !tile.hasParent()) {\n Treasure chest = new Treasure(tile, false,\n (PlayerPeon) getPlayerEntity(),ITEM_BOX_STYLE);\n entities.add(chest);\n this.allVolcanoDialogues.add(chest.getDisplay());\n } else {\n i--;\n }\n }\n\n Tile cooldownring = getTile(20,-7);\n CooldownRing cdring = new CooldownRing(cooldownring, false,\n (PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,0.5f);\n entities.add(cdring);\n this.allVolcanoDialogues.add(cdring.getDisplay());\n\n Tile attackAmuletTile = getTile(2,14);\n Amulet attackAmulet = new Amulet(attackAmuletTile, false,\n (PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,10);\n entities.add(attackAmulet);\n this.allVolcanoDialogues.add(attackAmulet.getDisplay());\n\n }", "private void Management_Block(Block block){\n\t\t\n\t\t switch(block.BlockState){\n\t\t \n\t\t case 0: // player is not lost game. continue with tile micro managment\n\t\t\t \n\t\t\t for (Tile tile : block.Wall){\t\t\n\t\t\t\t \n\t\t\t\t Rectangle rectTile = new Rectangle();\n\t\t\t\t rectTile = tile.getRectTile();\n\t\t\t\t boolean CoinCollision = CollisionDetection(playerUser.bounds,rectTile);\n\t\t\t\t \n\t\t\t\t switch(tile.state)\n\t\t\t\t {\n\t\t\t\t \n\t\t\t\t case 0: // no collision, show the block\n\t\t\t\t\t \n\t\t\t\t\t batch.draw(tile.getBlockImg(), rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\n\t\t\t\t\t \n\t\t\t\t\t if (PauseGame) \n\t\t\t\t\t\t continue;\n\t\t\t\t\t\t \n\t\t\t\t\t\t if (CoinCollision==true){\n\t\t\t\t\t\t\t tile.state++; \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t \t\t\t\t\n\t\t\t\t\t\t }\t\t\t\t\t\t \n\t\t\t\t\t\t else if (ThisGameRound==GameState.Running){\t \n\t\t\t\t\t\t\t if (block.Passed==false){\n\t\t\t\t\t\t\t\t if (playerUser.position.x > block.Wall.get(0).rectTile.x){\n\t\t\t\t\t\t\t\t\t levelbuilder.gamePoints = levelbuilder.gamePoints + 1;\n\t\t\t\t\t\t\t\t\t fntScore.setBitmapText(\"Score: \" + String.valueOf(levelbuilder.gamePoints));\n\t\t\t\t\t\t\t\t\t block.Passed=true;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t else if (block.Passed==true){\n\t\t\t\t\t\t\t\t //do nothing.\n\t\t\t\t\t\t\t }\t\t\t\t\t\t\t \n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t break;\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t case 1: \n\t\t\t\t\t \n\t\t\t\t\t batch.draw(tile.getBlockImg(),rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\t\t\t\t\t \n\t\t\t\t\t // if there is a collotion, draw it one time only \t\t\t \t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t\t// collision, but player has key\n\t\t\t\t\t\t PhoneDevice.Vibrate();\t\n\t\t\t\t\t\t if ((playerUser.color==block.color) || (playerUser.color==Color.ALL)){\t\t\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\ttile.setBlockImg(tile.BlockType);\t\n\t\t\t\t\t \t\ttile.PlayBreakThoughSound();\t\n\t\t\t\t\t\t }\n\t\t\t\t\t\t // collision, but player dont have a key: break from tile loop and \n\t\t\t\t\t \t // draw block crash effect\n\t\t\t\t\t\t else if (DEBUG==false){\n\t\t\t\t\t\t\t block.BlockState=1;\n\t\t\t\t\t\t\t ThisGameRound = GameState.GameOver;\t\n\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t }\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t tile.pe = Effects.setNewEffect(enumEffects.TileDistruction, block.color);\t\t\t\t\t\t \n\t\t\t\t\t tile.pe.setPosition(tile.getRectTile().x,\n\t\t\t \t\t\t\ttile.getRectTile().y+tile.Height/2);\t\n\t\t\t\t\t tile.pe.start();\t\n\t\t\t\t\t tile.state++;\t\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t break;\n\t\t\t\t\t \n\t\t\t\t case 2:\n\t\t\t\t\t // continue to draw the effect: no matter collision result\n\t\t\t\t\t tile.pe.setPosition(tile.getRectTile().x,\n\t\t\t \t\t\t\ttile.getRectTile().y+tile.Height/2);\t\n\t\t\t\t\t \n\t\t\t\t\t tile.pe.update(Gdx.graphics.getDeltaTime());\n\t\t\t\t tile.pe.draw(batch,Gdx.graphics.getDeltaTime());\t\t\t\t \t\t\t\t\t\n\t\t\t\t\t break;\n\t\t\t\t\t \n\t\t\t\t }\t\t\t\t \n\t\t\t }\t\t\t\t\n\t\t\t break;\n\t\t case 1: // player hit the wall without key\t\t\n\t\t\t \n\t\t\t for (Tile tile : block.Wall){\t\t\n\t\t\t\t \n\t\t\t\t Rectangle rectTile = new Rectangle();\n\t\t\t\t rectTile = tile.getRectTile();\t\t\t\t\n\t\t\t\t batch.draw(tile.getBlockImg(), rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t \n\t\t\t }\n\t\t\t \n\t\t\t block.PlayCrashSound();\t\t\n\t\t\t block.pe = Effects.setNewEffect(enumEffects.Crash, block.color);\t\t\t\t\t\t \n\t\t\t block.pe.setPosition(playerUser.bounds.x + playerUser.bounds.width,\n\t\t\t\t\t playerUser.bounds.y + playerUser.bounds.height/2);\t\n\t\t\t block.pe.start();\n\t\t\t block.BlockState++;\n\t\t\t break;\n\t\t\t \n\t\t case 2:\n\t\t\t \n\t\t\t for (Tile tile : block.Wall){\t\t\n\t\t\t\t \n\t\t\t\t Rectangle rectTile = new Rectangle();\n\t\t\t\t rectTile = tile.getRectTile();\t\t\t\t\n\t\t\t\t batch.draw(tile.getBlockImg(), rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t \n\t\t\t }\n\t\t\t \n\t\t\t block.pe.update(Gdx.graphics.getDeltaTime());\n\t\t\t block.pe.draw(batch,Gdx.graphics.getDeltaTime());\t\n\t\t\t break;\n\t\t }\t\t\n\t }", "public TileEntity a_()\r\n {\r\n try\r\n {\r\n return (TileEntity)this.mtPPlateEntityClass.newInstance();\r\n }\r\n catch (Exception var2)\r\n {\r\n throw new RuntimeException(var2);\r\n }\r\n }", "public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)\r\n/* 133: */ {\r\n/* 134:142 */ if (par1World.isClient) {\r\n/* 135:143 */ return true;\r\n/* 136: */ }\r\n/* 137:146 */ TileEntityTransferNode node = (TileEntityTransferNode)par1World.getTileEntity(par2, par3, par4);\r\n/* 138:148 */ if (node == null) {\r\n/* 139:149 */ return false;\r\n/* 140: */ }\r\n/* 141:152 */ if (par5EntityPlayer.getCurrentEquippedItem() != null) {\r\n/* 142:155 */ if (XUHelper.isWrench(par5EntityPlayer.getCurrentEquippedItem()))\r\n/* 143: */ {\r\n/* 144:156 */ node.pipe_type = StdPipes.getNextPipeType(par1World, par2, par3, par4, node.pipe_type);\r\n/* 145:157 */ node.onInventoryChanged();\r\n/* 146:158 */ par1World.markBlockForUpdate(par2, par3, par4);\r\n/* 147:159 */ return true;\r\n/* 148: */ }\r\n/* 149: */ }\r\n/* 150:163 */ par5EntityPlayer.openGui(ExtraUtilsMod.instance, 0, node.getWorldObj(), node.xCoord, node.yCoord, node.zCoord);\r\n/* 151:164 */ return true;\r\n/* 152: */ }", "public static void loadBlockTextures() {\n\t\tspriteTopOn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/topOn.png\");\n\t\tspriteTopOff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/topOff.png\");\n\t\tspriteROn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/rxOn.png\");\n\t\tspriteROff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/rxOff.png\");\n\t\tspriteTOn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/txOn.png\");\n\t\tspriteTOff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/txOff.png\");\n\t}", "@Override\r\n\t\tpublic void run() {\n\t\t\t\r\n\t\t\tnew BukkitRunnable() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(Entity as: Bukkit.getWorld(\"world\").getEntities()) {\r\n\t\t\t\t\t\tif(as instanceof ArmorStand) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tas.remove();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//TOPS\r\n\t\t\t\t\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"topkills\")) {\r\n\t\t\t\t\t getTop(locTopKILLS,\"Kills\");\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlTOP KILLS ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP KILLS NAO PODE SER CARREGADO, POIS A WARP topkills NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"topcoins\")) {\r\n\t\t\t\t\t getTop(locTopCoins,\"Coins\");\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlTOP COINS ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP COINS NAO PODE SER CARREGADO, POIS A WARP topkills NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"top1v1\")) {\r\n\t\t\t\t\t getTop(locTop1v1,\"wins\");\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlTOP 1v1 ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP 1v1 NAO PODE SER CARREGADO, POIS A WARP top1v1 NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Caixa misteriosa\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(MetodosWarps.containsWarp(\"misteryBox\")) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t Spawn(misteryBox, \"žažlCAIXA MISTERIOSA\",misteryBox.getY()-1.7);\r\n\t\t\t\t\t Spawn(misteryBox, \"žežlEM BREVE!\",misteryBox.getY()-2);\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žAžlMYSTERYBOX ATUALIZADO COM SUCESSO! \\n \");\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tBukkit.getConsoleSender().sendMessage(\" \\n žcžlO TOP COINS NAO PODE SER CARREGADO, POIS A WARP misteryBox NAO ESTA SETADA! \\n \");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}.runTaskLater(Main.plugin, 20);\r\n\t\t\t\r\n\t\t}", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tl.getWorld().createExplosion(drop.getLocation(), 2, false);\n\t\t\t\t\t}", "@Override\n public void update() {\n if(firstTick) {\n sortingInventory.onFirstTick();\n firstTick = false;\n }\n\n ticksSinceSync++;\n\n int x = pos.getX();\n int y = pos.getY();\n int z = pos.getZ();\n if (!worldObj.isRemote && numPlayersUsing != 0 && (ticksSinceSync + x + y + z) % 200 == 0) {\n Iterator<EntityPlayer> it = chestPlayers.iterator();\n while(it.hasNext()) {\n EntityPlayer entityPlayer = it.next();\n if(entityPlayer.isDead || ((ContainerSortingChest) entityPlayer.openContainer).getTileEntity() != this) {\n it.remove();\n }\n }\n numPlayersUsing = chestPlayers.size();\n worldObj.addBlockEvent(pos, getBlockType(), 1, numPlayersUsing);\n }\n\n prevLidAngle = lidAngle;\n float lidAngleSpeed = 0.1f;\n if (numPlayersUsing > 0 && lidAngle == 0f) {\n worldObj.playSoundEffect(x + 0.5d, y + 0.5d, z + 0.5d, \"random.chestopen\", 0.5f, worldObj.rand.nextFloat() * 0.1f + 0.9f);\n }\n\n if (numPlayersUsing == 0 && lidAngle > 0.0F || numPlayersUsing > 0 && lidAngle < 1.0F) {\n float oldLidAngle = lidAngle;\n if (numPlayersUsing > 0) {\n lidAngle += lidAngleSpeed;\n } else {\n lidAngle -= lidAngleSpeed;\n }\n\n if (lidAngle > 1f) {\n lidAngle = 1f;\n }\n\n float closeSoundAngle = 0.5f;\n if (lidAngle < closeSoundAngle && oldLidAngle >= closeSoundAngle) {\n worldObj.playSoundEffect(x + 0.5d, y + 0.5d, z + 0.5d, \"random.chestclosed\", 0.5f, worldObj.rand.nextFloat() * 0.1f + 0.9f);\n }\n\n if (lidAngle < 0f) {\n lidAngle = 0f;\n }\n }\n }", "public void renderWorldBlock(bbb renderblocks, ym iba, int i, int j, int k, int md)\r\n/* 26: */ {\r\n/* 27: 26 */ int cons = 0;\r\n/* 28: 27 */ TilePipe tt = (TilePipe)CoreLib.getTileEntity(iba, i, j, k, TilePipe.class);\r\n/* 29: 29 */ if (tt == null) {\r\n/* 30: 29 */ return;\r\n/* 31: */ }\r\n/* 32: 31 */ this.context.exactTextureCoordinates = true;\r\n/* 33: 32 */ this.context.setTexFlags(55);\r\n/* 34: 33 */ this.context.setTint(1.0F, 1.0F, 1.0F);\r\n/* 35: 34 */ this.context.setPos(i, j, k);\r\n/* 36: 35 */ if (tt.CoverSides > 0)\r\n/* 37: */ {\r\n/* 38: 36 */ this.context.readGlobalLights(iba, i, j, k);\r\n/* 39: 37 */ renderCovers(tt.CoverSides, tt.Covers);\r\n/* 40: */ }\r\n/* 41: 40 */ cons = PipeLib.getConnections(iba, i, j, k);\r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 44 */ this.context.setBrightness(this.block.e(iba, i, j, k));\r\n/* 46: */ \r\n/* 47: 46 */ this.context.setLocalLights(0.5F, 1.0F, 0.8F, 0.8F, 0.6F, 0.6F);\r\n/* 48: 47 */ this.context.setPos(i, j, k);\r\n/* 49: */ \r\n/* 50: 49 */ RenderLib.bindTexture(\"/eloraam/machine/machine1.png\");\r\n/* 51: */ \r\n/* 52: */ \r\n/* 53: */ \r\n/* 54: */ \r\n/* 55: */ \r\n/* 56: */ \r\n/* 57: */ \r\n/* 58: */ \r\n/* 59: */ \r\n/* 60: */ \r\n/* 61: */ \r\n/* 62: */ \r\n/* 63: */ \r\n/* 64: 63 */ renderCenterBlock(cons, 26, 28);\r\n/* 65: */ \r\n/* 66: 65 */ tt.cacheFlange();\r\n/* 67: 66 */ renderFlanges(tt.Flanges, 27);\r\n/* 68: */ \r\n/* 69: 68 */ RenderLib.unbindTexture();\r\n/* 70: */ }", "void nuke() {\n\t\tfor (int a = 0; a < height; a++) {\n\t\t\tfor (int b = 0; b < width; b++) {\n\t\t\t\tif (FWorld[a][b] != null) {\n\t\t\t\t\tEZ.removeEZElement(FWorld[a][b]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tEZ.removeEZElement(background);\n\t\tEZ.removeEZElement(explosion);\n\t\tturtle.kill();\n\t}", "public boolean hasTileEntity(int metadata)\r\n/* 259: */ {\r\n/* 260:304 */ return true;\r\n/* 261: */ }", "public void onBlockAdded(World world, int x, int y, int z){\n\t\t\tsuper.onBlockAdded(world, x, y, z);\n\t\t\tif (!world.isRemote && !world.isBlockIndirectlyGettingPowered(x, y, z)){ \n\t tile = (OrangeSirenTileEntity) world.getTileEntity(x, y, z); \n\t tile.setShouldStop(true);}\n\t\t\t\n\t if (!world.isRemote && world.isBlockIndirectlyGettingPowered(x, y, z)){ \n\t tile = (OrangeSirenTileEntity) world.getTileEntity(x, y, z); \n\t tile.setShouldStart(true);}\n\t\t}", "public void tick() {\n super.tick();\n BlockPos blockpos = this.dataManager.get(ATTACHED_BLOCK_POS).orElse((BlockPos)null);\n if (blockpos == null && !this.world.isRemote) {\n blockpos = this.getPosition();\n this.dataManager.set(ATTACHED_BLOCK_POS, Optional.of(blockpos));\n }\n\n if (this.isPassenger()) {\n blockpos = null;\n float f = this.getRidingEntity().rotationYaw;\n this.rotationYaw = f;\n this.renderYawOffset = f;\n this.prevRenderYawOffset = f;\n this.clientSideTeleportInterpolation = 0;\n } else if (!this.world.isRemote) {\n BlockState blockstate = this.world.getBlockState(blockpos);\n if (!blockstate.isAir(this.world, blockpos)) {\n if (blockstate.isIn(Blocks.MOVING_PISTON)) {\n Direction direction = blockstate.get(PistonBlock.FACING);\n if (this.world.isAirBlock(blockpos.offset(direction))) {\n blockpos = blockpos.offset(direction);\n this.dataManager.set(ATTACHED_BLOCK_POS, Optional.of(blockpos));\n } else {\n this.tryTeleportToNewPosition();\n }\n } else if (blockstate.isIn(Blocks.PISTON_HEAD)) {\n Direction direction3 = blockstate.get(PistonHeadBlock.FACING);\n if (this.world.isAirBlock(blockpos.offset(direction3))) {\n blockpos = blockpos.offset(direction3);\n this.dataManager.set(ATTACHED_BLOCK_POS, Optional.of(blockpos));\n } else {\n this.tryTeleportToNewPosition();\n }\n } else {\n this.tryTeleportToNewPosition();\n }\n }\n\n Direction direction4 = this.getAttachmentFacing();\n if (!this.func_234298_a_(blockpos, direction4)) {\n Direction direction1 = this.func_234299_g_(blockpos);\n if (direction1 != null) {\n this.dataManager.set(ATTACHED_FACE, direction1);\n } else {\n this.tryTeleportToNewPosition();\n }\n }\n }\n\n float f1 = (float)this.getPeekTick() * 0.01F;\n this.prevPeekAmount = this.peekAmount;\n if (this.peekAmount > f1) {\n this.peekAmount = MathHelper.clamp(this.peekAmount - 0.05F, f1, 1.0F);\n } else if (this.peekAmount < f1) {\n this.peekAmount = MathHelper.clamp(this.peekAmount + 0.05F, 0.0F, f1);\n }\n\n if (blockpos != null) {\n if (this.world.isRemote) {\n if (this.clientSideTeleportInterpolation > 0 && this.currentAttachmentPosition != null) {\n --this.clientSideTeleportInterpolation;\n } else {\n this.currentAttachmentPosition = blockpos;\n }\n }\n\n this.forceSetPosition((double)blockpos.getX() + 0.5D, (double)blockpos.getY(), (double)blockpos.getZ() + 0.5D);\n double d2 = 0.5D - (double)MathHelper.sin((0.5F + this.peekAmount) * (float)Math.PI) * 0.5D;\n double d0 = 0.5D - (double)MathHelper.sin((0.5F + this.prevPeekAmount) * (float)Math.PI) * 0.5D;\n if (this.isAddedToWorld() && this.world instanceof net.minecraft.world.server.ServerWorld) ((net.minecraft.world.server.ServerWorld)this.world).chunkCheck(this); // Forge - Process chunk registration after moving.\n Direction direction2 = this.getAttachmentFacing().getOpposite();\n this.setBoundingBox((new AxisAlignedBB(this.getPosX() - 0.5D, this.getPosY(), this.getPosZ() - 0.5D, this.getPosX() + 0.5D, this.getPosY() + 1.0D, this.getPosZ() + 0.5D)).expand((double)direction2.getXOffset() * d2, (double)direction2.getYOffset() * d2, (double)direction2.getZOffset() * d2));\n double d1 = d2 - d0;\n if (d1 > 0.0D) {\n List<Entity> list = this.world.getEntitiesWithinAABBExcludingEntity(this, this.getBoundingBox());\n if (!list.isEmpty()) {\n for(Entity entity : list) {\n if (!(entity instanceof ShulkerEntity) && !entity.noClip) {\n entity.move(MoverType.SHULKER, new Vector3d(d1 * (double)direction2.getXOffset(), d1 * (double)direction2.getYOffset(), d1 * (double)direction2.getZOffset()));\n }\n }\n }\n }\n }\n\n }", "@Override\n\tpublic void breakBlock(World worldIn, BlockPos pos, IBlockState state) {\n\t\tTileEntity tileEntity = worldIn.getTileEntity(pos);\n\t\tif (tileEntity instanceof IInventory) {\n\t\t\tInventoryHelper.dropInventoryItems(worldIn, pos, (IInventory) tileEntity);\n\t\t}\n\t\t// Super MUST be called last because it removes the tile entity\n\n\t\t//this.dropBlockAsItem(worldIn, pos, state, 0);\n\t\tsuper.breakBlock(worldIn, pos, state);\n\t}", "@Override\n\tpublic TileEntity createTileEntity(World world, int metadata) {\n\t\treturn null;\n\t}", "@Override\n public boolean isTileFriendly(){\n return false;\n }", "public void onLivingUpdate() {\n if (!this.onGround && this.motionY < 0.0D)\n this.motionY *= 0.6D;\n\n\n if (this.ticksExisted % 20 == 0 && this.getHealth() != this.getMaxHealth() && this.getHealth() >= 1)\n this.setHealth(this.getHealth() + 1);\n\n if (worldObj.isRemote) {\n if (this.isSitting())\n worldObj.spawnParticle(EnumParticleTypes.REDSTONE, posX, posY + 1.5, posZ, 0, 0, 0);\n }\n\n if (worldObj.isRemote) {\n MoWitchAndWizard.proxy.spawnParticles(\"air_normal\", this);\n }\n\n super.onLivingUpdate();\n }", "public void writeToNBT(NBTTagCompound nbt) {\n\t\tnbt.setInteger(\"xSize\", sizeX);\n\t\tnbt.setInteger(\"ySize\", sizeY);\n\t\tnbt.setInteger(\"zSize\", sizeZ);\n\n\n\t\tIterator<TileEntity> tileEntityIterator = tileEntities.iterator();\n\t\tNBTTagList tileList = new NBTTagList();\n\t\twhile(tileEntityIterator.hasNext()) {\n\t\t\tTileEntity tile = tileEntityIterator.next();\n\t\t\ttry {\n\t\t\t\tNBTTagCompound tileNbt = new NBTTagCompound();\n\t\t\t\ttile.writeToNBT(tileNbt);\n\t\t\t\ttileList.appendTag(tileNbt);\n\t\t\t} catch(RuntimeException e) {\n\t\t\t\tAdvancedRocketry.logger.warn(\"A tile entity has thrown an error: \" + tile.getClass().getCanonicalName());\n\t\t\t\tblocks[tile.getPos().getX()][tile.getPos().getY()][tile.getPos().getZ()] = Blocks.AIR;\n\t\t\t\tmetas[tile.getPos().getX()][tile.getPos().getY()][tile.getPos().getZ()] = 0;\n\t\t\t\ttileEntityIterator.remove();\n\t\t\t}\n\t\t}\n\n\t\tint[] blockId = new int[sizeX*sizeY*sizeZ];\n\t\tint[] metasId = new int[sizeX*sizeY*sizeZ];\n\t\tfor(int x = 0; x < sizeX; x++) {\n\t\t\tfor(int y = 0; y < sizeY; y++) {\n\t\t\t\tfor(int z = 0; z < sizeZ; z++) {\n\t\t\t\t\tblockId[z + (sizeZ*y) + (sizeZ*sizeY*x)] = Block.getIdFromBlock(blocks[x][y][z]);\n\t\t\t\t\tmetasId[z + (sizeZ*y) + (sizeZ*sizeY*x)] = (int)metas[x][y][z];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tNBTTagIntArray idList = new NBTTagIntArray(blockId);\n\t\tNBTTagIntArray metaList = new NBTTagIntArray(metasId);\n\n\t\tnbt.setTag(\"idList\", idList);\n\t\tnbt.setTag(\"metaList\", metaList);\n\t\tnbt.setTag(\"tiles\", tileList);\n\n\n\t\t/*for(int x = 0; x < sizeX; x++) {\n\t\t\tfor(int y = 0; y < sizeY; y++) {\n\t\t\t\tfor(int z = 0; z < sizeZ; z++) {\n\n\t\t\t\t\tidList.appendTag(new NBTTagInt(Block.getIdFromBlock(blocks[x][y][z])));\n\t\t\t\t\tmetaList.appendTag(new NBTTagInt(metas[x][y][z]));\n\n\t\t\t\t\t//NBTTagCompound tag = new NBTTagCompound();\n\t\t\t\t\ttag.setInteger(\"block\", Block.getIdFromBlock(blocks[x][y][z]));\n\t\t\t\t\ttag.setShort(\"meta\", metas[x][y][z]);\n\n\t\t\t\t\tNBTTagCompound tileNbtData = null;\n\n\t\t\t\t\tfor(TileEntity tile : tileEntities) {\n\t\t\t\t\t\tNBTTagCompound tileNbt = new NBTTagCompound();\n\n\t\t\t\t\t\ttile.writeToNBT(tileNbt);\n\n\t\t\t\t\t\tif(tileNbt.getInteger(\"x\") == x && tileNbt.getInteger(\"y\") == y && tileNbt.getInteger(\"z\") == z){\n\t\t\t\t\t\t\ttileNbtData = tileNbt;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif(tileNbtData != null)\n\t\t\t\t\t\ttag.setTag(\"tile\", tileNbtData);\n\n\t\t\t\t\tnbt.setTag(String.format(\"%d.%d.%d\", x,y,z), tag);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}*/\n\t}", "@Override\n\tpublic boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_) {\n\t\tif (player.getHeldItem() != null) {\n\t\t\tif (player.getHeldItem().getItem() == Items.iron_pickaxe) {\n\t\t\t\tplayer.getHeldItem().damageItem(100, player);\n\t\t\t\tfor (int i = -10; i < 10; i++) {// xval\n\t\t\t\t\tfor (int j = 0; j < 2; j++)\n\t\t\t\t\t\t// yval\n\t\t\t\t\t\tworld.setBlockToAir(x + i, y + j, z);\n\t\t\t\t}\n\n\t\t\t\tfor (int i = -10; i < 10; i++) {\n\t\t\t\t\tfor (int j = 0; j < 2; j++)\n\t\t\t\t\t\t// yval\n\t\t\t\t\t\tworld.setBlockToAir(x, y + j, z + i);\n\t\t\t\t}\n\t\t\t\t// player.getHeldItem().damageItem(100, player);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else {//if hand empty\n\t\t\tplayer.addChatMessage(new ChatComponentText(\"[NausicaaMod]This block digs 10x2x1 mineshafts in all 4 directions\"));\n\t\t\tplayer.addChatMessage(new ChatComponentText(\"**DISTROYS BLOCK WITH NO DROPS**\"));\n\n\t\t}\n\t\treturn false;\n\t}", "public ItemStack onItemRightClick(ItemStack var1, World var2, EntityPlayer var3)\n {\n float var4 = 1.0F;\n double var5 = var3.prevPosX + (var3.posX - var3.prevPosX) * (double)var4;\n double var7 = var3.prevPosY + (var3.posY - var3.prevPosY) * (double)var4 + 1.62D - (double)var3.yOffset;\n double var9 = var3.prevPosZ + (var3.posZ - var3.prevPosZ) * (double)var4;\n boolean var11 = this.isFull == 0;\n MovingObjectPosition var12 = this.getMovingObjectPositionFromPlayer(var2, var3, var11);\n\n if (var12 == null)\n {\n return var1;\n }\n else\n {\n FillBucketEvent var13 = new FillBucketEvent(var3, var1, var2, var12);\n\n if (MinecraftForge.EVENT_BUS.post(var13))\n {\n return var1;\n }\n else if (var13.getResult() == Event.Result.ALLOW)\n {\n if (var3.capabilities.isCreativeMode)\n {\n return var1;\n }\n else if (--var1.stackSize <= 0)\n {\n return var13.result;\n }\n else\n {\n if (!var3.inventory.addItemStackToInventory(var13.result))\n {\n var3.dropPlayerItem(var13.result);\n }\n\n return var1;\n }\n }\n else\n {\n if (var12.typeOfHit == EnumMovingObjectType.TILE)\n {\n int var14 = var12.blockX;\n int var15 = var12.blockY;\n int var16 = var12.blockZ;\n\n if (!var2.canMineBlock(var3, var14, var15, var16))\n {\n return var1;\n }\n\n if (this.isFull == 0)\n {\n if (!var3.canPlayerEdit(var14, var15, var16, var12.sideHit, var1))\n {\n return var1;\n }\n\n if (var2.getBlockMaterial(var14, var15, var16) == Material.water && var2.getBlockMetadata(var14, var15, var16) == 0)\n {\n var2.setBlockWithNotify(var14, var15, var16, 0);\n\n if (var3.capabilities.isCreativeMode)\n {\n return var1;\n }\n\n if (--var1.stackSize <= 0)\n {\n return new ItemStack(Item.bucketWater);\n }\n\n if (!var3.inventory.addItemStackToInventory(new ItemStack(Item.bucketWater)))\n {\n var3.dropPlayerItem(new ItemStack(Item.bucketWater.itemID, 1, 0));\n }\n\n return var1;\n }\n\n if (var2.getBlockMaterial(var14, var15, var16) == Material.lava && var2.getBlockMetadata(var14, var15, var16) == 0 && var2.getBlockId(var14, var15, var16) == DivineRPG.tarStill.blockID)\n {\n var2.setBlockWithNotify(var14, var15, var16, 0);\n\n if (var3.capabilities.isCreativeMode)\n {\n return var1;\n }\n\n if (--var1.stackSize <= 0)\n {\n return new ItemStack(DivineRPG.tarBucket);\n }\n\n if (!var3.inventory.addItemStackToInventory(new ItemStack(DivineRPG.tarBucket)))\n {\n var3.dropPlayerItem(new ItemStack(DivineRPG.tarBucket.itemID, 1, 0));\n }\n\n return var1;\n }\n }\n else\n {\n if (this.isFull < 0)\n {\n return new ItemStack(DivineRPG.arcaniumBucket);\n }\n\n if (var12.sideHit == 0)\n {\n --var15;\n }\n\n if (var12.sideHit == 1)\n {\n ++var15;\n }\n\n if (var12.sideHit == 2)\n {\n --var16;\n }\n\n if (var12.sideHit == 3)\n {\n ++var16;\n }\n\n if (var12.sideHit == 4)\n {\n --var14;\n }\n\n if (var12.sideHit == 5)\n {\n ++var14;\n }\n\n if (!var3.canPlayerEdit(var14, var15, var16, var12.sideHit, var1))\n {\n return var1;\n }\n\n if (this.tryPlaceContainedLiquid(var2, var5, var7, var9, var14, var15, var16) && !var3.capabilities.isCreativeMode)\n {\n return new ItemStack(DivineRPG.arcaniumBucket);\n }\n }\n }\n\n return var1;\n }\n }\n }", "public void tick()\n{\n y+=speed;\n\n for(int i=0; i<game.ea.size(); i++)\n {\n EntityA tempEnt= game.ea.get(i);\n if(Physics.Coliision(this,tempEnt))\n {\n c.removeEntity(tempEnt); //zeby po trafieniu znikal pocisk\n c.removeEntity(this);\n game.setEnemy_killed(game.getEnemy_killed()+1);\n\n }\n }\n\n/*\n* If Enemy is out of bounds player get - points\n* and loses some stamina.\n*\n* Enemies are removed from list after disapears\n */\n\n if(y>(App.getHEIGHT()-20)*2)\n {\n App.addHealth(-10);\n App.addPOINTS(-3);\n c.removeEntity(this);\n }\n\n anim.runAnimation();\n\n /*\n * If App is not in game state it doesn't\n * need to have any enemies\n */\n\n if(App.State != App.STATE.GAME)\n {\n delEnemies();\n\n }\n}", "public void doExplosionA() {\n float f3 = this.size;\n int k1 = MathHelper.floor(this.x - (double) f3 - 2.0F);\n int l1 = MathHelper.floor(this.x + (double) f3 + 2.0F);\n int i2 = MathHelper.floor(this.y - (double) f3 - 2.0F);\n int i1 = MathHelper.floor(this.y + (double) f3 + 2.0F);\n int j2 = MathHelper.floor(this.z - (double) f3 - 2.0F);\n int j1 = MathHelper.floor(this.z + (double) f3 + 2.0F);\n\n f3 *= 2.0f;\n\n List<Entity> list = this.world.getEntitiesWithinAABBExcludingEntity(this.explosionSource, new AxisAlignedBB((double) k1, (double) i2, (double) j2, (double) l1, (double) i1, (double) j1));\n Vec3d vec3d = new Vec3d(this.x, this.y, this.z);\n\n for (int k2 = 0; k2 < list.size(); ++k2) {\n Entity entity = list.get(k2);\n\n if (!entity.isImmuneToExplosions()) {\n attackEntity(entity);\n double d12 = entity.getDistance(this.x, this.y, this.z); /// (double) f3;\n\n if (d12 <= f3*1.5) {\n double d5 = entity.posX - this.x;\n double d7 = entity.posY + (double) entity.getEyeHeight() - this.y;\n double d9 = entity.posZ - this.z;\n double d13 = (double) MathHelper.sqrt(d5 * d5 + d7 * d7 + d9 * d9);\n\n if (d13 != 0.0D) {\n d5 = d5 / d13;\n d7 = d7 / d13;\n d9 = d9 / d13;\n double d14 = (double) this.world.getBlockDensity(vec3d, entity.getEntityBoundingBox());\n double d10 = (1.0D - (d12/f3)) * d14;\n //TODO fix\n// attackEntity(entity);\n// entity.attackEntityFrom(DamageSource.GENERIC, 10);\n// entity.attackEntityFrom(DamageSource.GENERIC, (float) ((int) ((d10 * d10 + d10) / 2.0D * 7.0D * (double) f3 + 1.0D)));\n double d11 = d10;\n\n if (entity instanceof EntityLivingBase) {\n d11 = EnchantmentProtection.getBlastDamageReduction((EntityLivingBase) entity, d10);\n }\n\n entity.motionX += d5 * d11;\n entity.motionY += d7 * d11;\n entity.motionZ += d9 * d11;\n\n if (entity instanceof EntityPlayer) {\n EntityPlayer entityplayer = (EntityPlayer) entity;\n\n if (!entityplayer.isSpectator() && (!entityplayer.isCreative() || !entityplayer.capabilities.isFlying)) {\n this.playerKnockbackMap.put(entityplayer, new Vec3d(d5 * d10, d7 * d10, d9 * d10));\n }\n }\n }\n }\n }\n }\n }", "@Override\n public void tick() {\n x+=velX;\n y+=velY;\n\n if(Dante.getInstance().getX() <= x)\n displayedImage = left;\n else\n displayedImage = right;\n\n choose = r.nextInt(50);\n\n for(int i = 0; i < Handler1.getInstance().objects.size(); i++) {\n GameObject temp = Handler1.getInstance().objects.get(i);\n\n if(temp.getId() == ID.Block||temp.getId()==ID.Door|| temp.getId() == ID.Obstacle) {\n if(getBoundsBigger().intersects(temp.getBounds())) {\n x += (velX*2) * -1;\n y += (velY*2) * -1;\n velX *= -1;\n velY *= -1;\n } else if(choose == 0) {\n velX = (r.nextInt(2 + 2) - 2) + speed;\n velY = (r.nextInt(2 + 2) - 2) + speed;\n\n if (velX!=0){\n if (velY<0){\n velY+=1;\n }else {\n velY-=1;\n }\n }\n\n if (velY!=0){\n if (velX>0){\n velX-=1;\n }else {\n velX+=1;\n }\n }\n }\n }\n if(temp.id==ID.Dante){\n if (++tickCounter % (r.nextInt(50) + 50) == 0) {\n\n Handler1.getInstance().addObject(new Bullet(x, y, ID.Bullet,\n temp.getX() +(r.nextInt( 11+11) -11),\n temp.getY()+(r.nextInt(11 +11) -11),\n 30, 1, bulletImage,30));\n }\n }\n }\n\n if(hp <= 0) {\n Random rand = new Random();\n if(rand.nextInt(100) <= 33)\n Handler1.getInstance().addObject(new Coin(x, y));\n Handler1.getInstance().removeObject(this);\n }\n }", "public void areaEffect(Player player){\n if(object.getProperties().containsKey(\"endLevel\")) {\n System.out.println(\"Fin du level\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n PlayScreen.setEndLevel();\n }\n\n if(object.getProperties().containsKey(\"startBossFight\")) {\n\n System.out.println(\"Start Boss Fight\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n\n TiledMapTileLayer.Cell cell = new TiledMapTileLayer.Cell();\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 6, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 7, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 8, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(99, 9, cell);\n\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 6, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 7, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 8, cell);\n cell.setTile(tileSet.getTile(910));\n layer.setCell(100, 9, cell);\n\n PlayScreen.cameraChangeBoss(true);\n setCategoryFilterFixture(GameTest.GROUND_BIT, PlayScreen.getFixtureStartBoss());\n\n }\n\n if(object.getProperties().containsKey(\"blueKnight\")) {\n System.out.println(\"Changement en bleu\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"blue\");\n }\n\n if(object.getProperties().containsKey(\"greyKnight\")) {\n System.out.println(\"Changement en gris\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"grey\");\n }\n\n if(object.getProperties().containsKey(\"redKnight\")) {\n System.out.println(\"Changement en rouge\");\n setCategoryFilter(GameTest.DESTROYED_BIT);\n getCell().setTile(null);\n PlayScreen.setColorKnight(\"red\");\n }\n\n }", "void randomBlock() {\n\t\t// map generate (int map)\n\t\tfor (int i = 0; i < mapX; i += 2) {\n\t\t\tfor (int j = 0; j < mapY; j += 2) {\n\t\t\t\tint r = (int) Math.random() * 4;\n\t\t\t\tif (r == 0) {\n\t\t\t\t\ttileMap[i][j] = new Tile(i, j, 1);\n\t\t\t\t\ttileMap[i + 1][j] = new Tile(i + 1, j, 1);\n\t\t\t\t\ttileMap[i][j + 1] = new Tile(i, j + 1, 1);\n\t\t\t\t\ttileMap[i + 1][j + 1] = new Tile(i + 1, j + 1, 1);\n\n\t\t\t\t} else {\n\t\t\t\t\ttileMap[i][j] = new Tile(i, j, 0);\n\t\t\t\t\ttileMap[i + 1][j] = new Tile(i + 1, j, 0);\n\t\t\t\t\ttileMap[i][j + 1] = new Tile(i, j + 1, 0);\n\t\t\t\t\ttileMap[i + 1][j + 1] = new Tile(i + 1, j + 1, 0);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic ItemStack onItemRightClick(ItemStack bucket, World world, EntityPlayer user)\n {\n boolean flag = this.isFull == Blocks.air;\n MovingObjectPosition movingobjectposition = this.getMovingObjectPositionFromPlayer(world, user, flag);\n\n if (movingobjectposition == null)\n {\n return bucket;\n }\n else\n {\n if (movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK)\n {\n int x = movingobjectposition.blockX;\n int y = movingobjectposition.blockY;\n int z = movingobjectposition.blockZ;\n\n if (!world.canMineBlock(user, x, y, z))\n {\n return bucket;\n }\n\n if (flag)\n {\n if (!user.canPlayerEdit(x, y, z, movingobjectposition.sideHit, bucket))\n {\n return bucket;\n }\n\n Material material = world.getBlock(x, y, z).getMaterial();\n int l = world.getBlockMetadata(x, y, z);\n\n if (material == Material.water && l == 0)\n {\n world.setBlockToAir(x, y, z);\n return this.createNewInstance(bucket, user, ToolListMF.bucketwood_water, 0);\n }\n\n if (material == Material.lava && l == 0)\n {\n \tworld.playSound(x+0.5, y+0.5, z+0.5, \"random.fizz\", 1.0F, 1.0F, true);\n world.spawnParticle(\"largeSmoke\", x+0.5, y+1F, z+0.5, 0F, 0.5F, 0F);\n \treturn this.createNewInstance(bucket, user, Items.coal, 1);\n }\n }\n else\n {\n if (this.isFull == Blocks.air)\n {\n return new ItemStack(ToolListMF.bucketwood_empty);\n }\n\n if (movingobjectposition.sideHit == 0)\n {\n --y;\n }\n\n if (movingobjectposition.sideHit == 1)\n {\n ++y;\n }\n\n if (movingobjectposition.sideHit == 2)\n {\n --z;\n }\n\n if (movingobjectposition.sideHit == 3)\n {\n ++z;\n }\n\n if (movingobjectposition.sideHit == 4)\n {\n --x;\n }\n\n if (movingobjectposition.sideHit == 5)\n {\n ++x;\n }\n\n if (!user.canPlayerEdit(x, y, z, movingobjectposition.sideHit, bucket))\n {\n return bucket;\n }\n\n if (this.tryPlaceContainedLiquid(world, x, y, z) && !user.capabilities.isCreativeMode)\n {\n return new ItemStack(ToolListMF.bucketwood_empty);\n }\n }\n }\n\n return bucket;\n }\n }", "public boolean processInteract(EntityPlayer entityplayer, EnumHand hand, @Nullable ItemStack stack)\n {\n ItemStack itemstack = entityplayer.inventory.getCurrentItem();\n\n if (!bumgave && angerLevel == 0)\n {\n if (itemstack != null && (itemstack.getItem() == Items.DIAMOND || itemstack.getItem() == Items.GOLD_INGOT || itemstack.getItem() == Items.IRON_INGOT))\n {\n if (itemstack.getItem() == Items.IRON_INGOT)\n {\n value = rand.nextInt(2) + 1;\n }\n else if (itemstack.getItem() == Items.GOLD_INGOT)\n {\n value = rand.nextInt(5) + 1;\n }\n else if (itemstack.getItem() == Items.DIAMOND)\n {\n value = rand.nextInt(10) + 1;\n }\n\n if (itemstack.stackSize - 1 == 0)\n {\n entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, null);\n }\n else\n {\n itemstack.stackSize--;\n }\n\n for (int i = 0; i < 4; i++)\n {\n for (int i1 = 0; i1 < 10; i1++)\n {\n double d1 = rand.nextGaussian() * 0.02D;\n double d3 = rand.nextGaussian() * 0.02D;\n double d6 = rand.nextGaussian() * 0.02D;\n worldObj.spawnParticle(EnumParticleTypes.EXPLOSION_NORMAL, (posX + (double)(rand.nextFloat() * width * 2.0F)) - (double)width, posY + (double)(rand.nextFloat() * height) + (double)i, (posZ + (double)(rand.nextFloat() * width * 2.0F)) - (double)width, d1, d3, d6);\n }\n }\n\n texture = new ResourceLocation(Reference.MODID, Reference.TEXTURE_PATH_ENTITES +\n \t\tReference.TEXTURE_BUM_DRESSED);\n angerLevel = 0;\n //findPlayerToAttack();\n\n if (rand.nextInt(5) == 0)\n {\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumsucker\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_SUCKER, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n bumgave = true;\n }\n else\n {\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumthankyou\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_THANKYOU, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n bumgave = true;\n\n for (int j = 0; j < 10; j++)\n {\n double d = rand.nextGaussian() * 0.02D;\n double d2 = rand.nextGaussian() * 0.02D;\n double d5 = rand.nextGaussian() * 0.02D;\n worldObj.spawnParticle(EnumParticleTypes.EXPLOSION_NORMAL, (posX + (double)(rand.nextFloat() * width * 2.0F)) - (double)width, posY + (double)(rand.nextFloat() * height), (posZ + (double)(rand.nextFloat() * width * 2.0F)) - (double)width, d, d2, d5);\n }\n\n for (int k = 0; k < value; k++)\n {\n \tif(!worldObj.isRemote) {\n\t dropItem(Item.getItemById(rand.nextInt(95)), 1);\n\t dropItem(Items.IRON_SHOVEL, 1);\n \t}\n }\n\n return true;\n }\n }\n else if (itemstack != null)\n {\n if (timetopee > 0)\n {\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumdontwant\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_DONTWANT, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n \n }\n else if (itemstack != null && (itemstack.getItem() == Item.getItemFromBlock(Blocks.YELLOW_FLOWER) || itemstack.getItem() == Item.getItemFromBlock(Blocks.RED_FLOWER)))\n {\n \t/* TODO\n \tif(!((EntityPlayerMP)entityplayer).getStatFile().hasAchievementUnlocked(MoreCreepsAndWeirdos.achievebumflower))\n \t{\n \tworldObj.playSoundAtEntity(entityplayer, \"morecreeps:achievement\", 1.0F, 1.0F);\n \tentityplayer.addStat(MoreCreepsAndWeirdos.achievebumflower, 1);\n \tconfetti(entityplayer);\n \t} */\n\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumthanks\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_THANKS, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n timetopee = rand.nextInt(1900) + 1500;\n\n if (itemstack.stackSize - 1 == 0)\n {\n entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, null);\n }\n else\n {\n itemstack.stackSize--;\n }\n }\n else if (itemstack != null && itemstack.getItem() == Items.BUCKET)\n {\n \t/* TODO\n if (!((EntityPlayerMP)entityplayer).getStatFile().hasAchievementUnlocked(MoreCreepsAndWeirdos.achievebumpot) && ((EntityPlayerMP)entityplayer).getStatFile().hasAchievementUnlocked(MoreCreepsAndWeirdos.achievebumflower))\n {\n worldObj.playSoundAtEntity(entityplayer, \"morecreeps:achievement\", 1.0F, 1.0F);\n entityplayer.addStat(MoreCreepsAndWeirdos.achievebumpot, 1);\n confetti(entityplayer);\n } \n entityplayer.addStat(MoreCreepsAndWeirdos.achievebumpot, 1);\n */\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumthanks\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_THANKS, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n timetopee = rand.nextInt(1900) + 1500;\n\n if (itemstack.stackSize - 1 == 0)\n {\n entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, null);\n }\n else\n {\n itemstack.stackSize--;\n }\n }\n else if (itemstack != null && itemstack.getItem() == Items.LAVA_BUCKET)\n {\n \t/* \n if (!((EntityPlayerMP)entityplayer).getStatFile().hasAchievementUnlocked(MoreCreepsAndWeirdos.achievebumlava) && ((EntityPlayerMP)entityplayer).getStatFile().hasAchievementUnlocked(MoreCreepsAndWeirdos.achievebumpot))\n {\n worldObj.playSoundAtEntity(entityplayer, \"morecreeps:achievement\", 1.0F, 1.0F);\n entityplayer.addStat(MoreCreepsAndWeirdos.achievebumlava, 1);\n confetti(entityplayer);\n }\n\n entityplayer.addStat(MoreCreepsAndWeirdos.achievebumpot, 1);\n */\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumthanks\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_THANKS, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n timetopee = rand.nextInt(1900) + 1500;\n\n if (itemstack.stackSize - 1 == 0)\n {\n entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, null);\n }\n else\n {\n itemstack.stackSize--;\n }\n\n int l = (int)posX;\n int j1 = (int)posY;\n int k1 = (int)posZ;\n\n if (rand.nextInt(4) == 0)\n {\n for (int l1 = 0; l1 < rand.nextInt(3) + 1; l1++)\n {\n Blocks.OBSIDIAN.dropBlockAsItem(worldObj, new BlockPos(l, j1, k1), worldObj.getBlockState(new BlockPos(l, j1, k1)), 0);\n }\n }\n\n for (int i2 = 0; i2 < 15; i2++)\n {\n double d4 = (float)l + worldObj.rand.nextFloat();\n double d7 = (float)j1 + worldObj.rand.nextFloat();\n double d8 = (float)k1 + worldObj.rand.nextFloat();\n double d9 = d4 - posX;\n double d10 = d7 - posY;\n double d11 = d8 - posZ;\n double d12 = MathHelper.sqrt_double(d9 * d9 + d10 * d10 + d11 * d11);\n d9 /= d12;\n d10 /= d12;\n d11 /= d12;\n double d13 = 0.5D / (d12 / 10D + 0.10000000000000001D);\n d13 *= worldObj.rand.nextFloat() * worldObj.rand.nextFloat() + 0.3F;\n d9 *= d13;\n d10 *= d13;\n d11 *= d13;\n worldObj.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, (d4 + posX * 1.0D) / 2D, (d7 + posY * 1.0D) / 2D + 2D, (d8 + posZ * 1.0D) / 2D, d9, d10, d11);\n worldObj.spawnParticle(EnumParticleTypes.SMOKE_NORMAL, d4, d7, d8, d9, d10, d11);\n }\n\n if (rand.nextInt(4) == 0)\n {\n entityplayer.inventory.setInventorySlotContents(entityplayer.inventory.currentItem, new ItemStack(Items.BUCKET));\n }\n }\n else if (!bumgave)\n {\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumpee\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_PEE, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n }\n }\n }\n else\n {\n // worldObj.playSoundAtEntity(this, \"morecreeps:bumleavemealone\", 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n worldObj.playSound((EntityPlayer) null, getPosition(), MCSoundEvents.ENTITY_BUM_LEAVEMEALONE, SoundCategory.NEUTRAL, 1.0F, (rand.nextFloat() - rand.nextFloat()) * 0.2F + 1.0F);\n }\n\n return super.processInteract(entityplayer, hand, stack);\n }", "@ForgeSubscribe\r\n\tpublic void OnBonemealUse(net.minecraftforge.event.entity.player.BonemealEvent e)\r\n\t{\n\t\tif (!e.world.isRemote && e.entityPlayer.dimension == YC_Mod.d_astralDimID)\r\n\t\t{\r\n\t\t\tif (e.world.getBlockId(e.X, e.Y, e.Z) == YC_Mod.b_astralCrystals.blockID && e.world.getBlockId(e.X, e.Y-1, e.Z) == Block.grass.blockID)//crystal in center and grass beneath them\r\n\t\t\t\tif (e.world.getBlockId(e.X+1, e.Y, e.Z) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X-1, e.Y, e.Z) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X, e.Y, e.Z+1) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X, e.Y, e.Z-1) == Block.sapling.blockID)//4 sapplings on sides\r\n\t\t\t\t{\r\n\t\t\t\t\tint iron = 0, gold = 0;\r\n\t\t\t\t\tint id = 0;\r\n\t\t\t\t\t//============================================2 blocks of iron and gold each diagonally===================================================\r\n\t\t\t\t\tid = e.world.getBlockId(e.X+1, e.Y, e.Z+1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X+1, e.Y, e.Z-1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X-1, e.Y, e.Z-1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X-1, e.Y, e.Z+1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\tif (iron == 2 && gold == 2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (HasCoalCount(e.world, e.X, e.Y, e.Z, 64))//stack of coal for it\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tDecrCoalCount(e.world, e.X, e.Y, e.Z, 64);\r\n\t\t\t\t\t\t\tYC_WorldGenAstral.GenerateTree(e.world, new Random(), e.X, e.Y-1, e.Z);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z+1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X, e.Y, e.Z+1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z+1, 0, 0, 3);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(e.X+\" ; \" + e.Y + \" ; \" + e.Z + \" ; \" + FMLCommonHandler.instance().getEffectiveSide());\r\n\t}", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\r\n\t}", "public synchronized void spawnMe()\n\t{\n\t\t_itemInstance = ItemTable.getInstance().createItem(\"Combat\", _itemId, 1, null, null);\n\t\t_itemInstance.dropMe(null, _location.getX(), _location.getY(), _location.getZ());\n\t}", "@Override\n\t public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) {\n\t\t int par5 = par1World.getBlockMetadata(par2, par3, par4);\n\t\t if(par5 >= 7) {\n\t\t\t super.dropBlockAsItem(par1World, par2, par3, par4, par5, par6);\n\t\t\t par1World.setBlockMetadataWithNotify(par2, par3, par4, 0, 2);\n\t\t\t return true;\n\t\t } else\n\t\t\t return super.onBlockActivated(par1World, par2, par3, par4, par5EntityPlayer, par6, par7, par8, par9);\n\t }", "public void onBlockClicked(World world, int x, int y, int z, EntityPlayer player) {}", "@SideOnly(Side.CLIENT)\r\n public void randomDisplayTick(World world, int x, int y, int z, Random random)\r\n {\r\n int meta = world.getBlockMetadata(x, y, z);\r\n if(meta != 1) {\r\n \tif(this.litLevel > 0) {\r\n\t if(random.nextInt(36) == 0) {\r\n\t world.playSound((double)((float)x + 0.5F), (double)((float)y + 0.5F), (double)((float)z + 0.5F), \"fire.fire\", 1.0F + random.nextFloat(), 0.3F + random.nextFloat() * 0.7F, false);\r\n\t }\r\n\t\r\n//\t TileCampfire tile = (TileCampfire)world.getTileEntity(x, y, z);\r\n\t float xOffset = 0.5F;\r\n\t float yOffset = 0.7F;\r\n\t float zOffset = 0.5F;\r\n\t double d0 = (double)((float)x + xOffset);\r\n\t double d1 = (double)((float)y + yOffset);\r\n\t double d2 = (double)((float)z + zOffset);\r\n\t GL11.glPushMatrix();\r\n\t MainRegistry.proxy.spawnParticle(\"largesmoke\", d0, d1, d2, 0.0D, 0.0D, 0.0D, 1.5F * this.litLevel);\r\n\t MainRegistry.proxy.spawnParticle(\"flame\", d0, d1, d2, 0.0D, 0.0D, 0.0D, 2.5F * this.litLevel);\r\n\t GL11.glPopMatrix();\r\n\t }\r\n }\r\n }", "@Override\n\tpublic Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {\n\t TileEntity tileEntity = world.getBlockTileEntity(x, y, z);\n\t if(tileEntity instanceof TileEntityBioCarbonizer){\n\t \treturn new ContainerBioCarbonizer(player.inventory, (TileEntityBioCarbonizer)tileEntity);\n\t }else if(tileEntity instanceof TileEntityBlast){\n\t \treturn new ContainerBlast(player.inventory,(TileEntityBlast)tileEntity);\n\t }else if(tileEntity instanceof TileEntityIncinerator){\n\t \treturn new ContainerIncinerator(player.inventory,(TileEntityIncinerator)tileEntity);\n\t }\n return null;\n}", "@EventHandler(priority = EventPriority.HIGHEST)\n\tpublic void onBlockPlace(BlockPlaceEvent event) {\n\t\tif(event.getPlayer().getItemInHand().getTypeId() == ConfigHandler.values.getTool()) {\n\t\t\tBlock b = event.getBlock();\n\t\t\tGLPlayer player = GLPlayer.getGLPlayer(event.getPlayer());\n\n\t\t\tInteger x = b.getX();\n\t\t\tInteger y = b.getY();\n\t\t\tInteger z = b.getZ();\n\t\t\tString world = b.getWorld().getName();\n\n\t\t\tevent.setCancelled(true);\n\t\t\t\n\t\t\tArrayList<String> args = new ArrayList<String>();\n\t\t\targs.add(x + \", \" + y + \", \" + z + \" in: \" + world);\n\t\t\tnew SearchTask(player, new SearchCallback(player), args);\n\t\t}\n\t\t\n\t\tif(event.getBlock().getType() == Material.TNT) {\n\t\t\tfor(BlockFace face : BlockFace.values()) {\n\t\t\t\tif(event.getBlock().getRelative(face).getType() == Material.REDSTONE_TORCH_ON) {\n\t\t\t\t\tplayerTNT.put(event.getBlock(), event.getPlayer().getName());\n\t\t\t\t}\n\t\t\t}\n\t\t} else if(event.getBlock().getType() == Material.REDSTONE_TORCH_ON) {\n\t\t\tfor(BlockFace face : BlockFace.values()) {\n\t\t\t\tif(event.getBlock().getRelative(face).getType() == Material.TNT) {\n\t\t\t\t\tplayerTorch.put(event.getBlock().getRelative(face), event.getPlayer().getName());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif((!event.isCancelled())) {\n\t\t\tString namePlayer = event.getPlayer().getName();\n\t\t\tInteger gm = event.getPlayer().getGameMode().getValue();\n\t\t\t\n\t\t\tif (event.getBlockPlaced().getType().toString().equalsIgnoreCase(\"FIRE\")) {\n\t\t\t\t// this gets handled by the onBlockIgnite() function\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tBlockPlaceData data = new BlockPlaceData(event.getBlock(), namePlayer, gm);\n\t\t\t\n\t\t\tGriefLogger logger = new GriefLogger(data.toString());\n\t\t\tplugin.getServer().getScheduler().scheduleAsyncDelayedTask(plugin, logger);\n\t\t}\n\t}", "@Override\n\tpublic void onEntityCollidedWithBlock(World worldIn, BlockPos pos, IBlockState state, Entity entityIn)\n\t{\t\n\t\tif (!worldIn.isRemote)\n {\t\n\t\t\tif(entityIn instanceof EntityPlayer)\n\t\t\t{\n\t\t\t\tworldIn.playSound((EntityPlayer)null, pos.getX(), pos.getY(), pos.getZ(), UBSSoundHandler.fall_trap, SoundCategory.BLOCKS, 1.0F, 1.0F);\n\t\t\t\tworldIn.setBlockState(pos, Blocks.AIR.getDefaultState(), 2);\n\t\t\t\tEntityItem item = new EntityItem(worldIn, pos.getX() + 0.5D, pos.getY() + 0.5D, pos.getZ() + 0.5D, new ItemStack(Items.STICK, 4));\n\t\t\t\titem.setPickupDelay(40); //To Set a Small Pickup Delay\n\t\t\t\tworldIn.spawnEntity(item); //To Spawn the Item\n\t\t\t}\n }\n\t\tsuper.onEntityCollidedWithBlock(worldIn, pos, state, entityIn);\n\t}", "public void updateTick(World p_149674_1_, int p_149674_2_, int p_149674_3_, int p_149674_4_, Random p_149674_5_)\n {\n if (!p_149674_1_.isClient)\n {\n if (p_149674_1_.getBlockLightValue(p_149674_2_, p_149674_3_ + 1, p_149674_4_) < 4 && p_149674_1_.getBlock(p_149674_2_, p_149674_3_ + 1, p_149674_4_).getLightOpacity() > 2)\n {\n p_149674_1_.setBlock(p_149674_2_, p_149674_3_, p_149674_4_, Blocks.dirt);\n }\n else if (p_149674_1_.getBlockLightValue(p_149674_2_, p_149674_3_ + 1, p_149674_4_) >= 9)\n {\n for (int var6 = 0; var6 < 4; ++var6)\n {\n int var7 = p_149674_2_ + p_149674_5_.nextInt(3) - 1;\n int var8 = p_149674_3_ + p_149674_5_.nextInt(5) - 3;\n int var9 = p_149674_4_ + p_149674_5_.nextInt(3) - 1;\n Block var10 = p_149674_1_.getBlock(var7, var8 + 1, var9);\n\n if (p_149674_1_.getBlock(var7, var8, var9) == Blocks.dirt && p_149674_1_.getBlockMetadata(var7, var8, var9) == 0 && p_149674_1_.getBlockLightValue(var7, var8 + 1, var9) >= 4 && var10.getLightOpacity() <= 2)\n {\n p_149674_1_.setBlock(var7, var8, var9, Blocks.grass);\n }\n }\n }\n }\n }", "private void generateItemEntities(){\n\t\tfinal int NUM_POTIONS = 6;\n\t\tfinal int NUM_IRON_ARMOUR = 1;\n\t\tfinal int NUM_CHESTS = 2;\n\t\tfinal String ITEM_BOX_STYLE = \"tundra\";\n\t\t\n\n\t\tfor (int i = 0; i < NUM_POTIONS; i++) {\n\t\t\tTile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n\t\t\t\t\tItem.randomItemPositionGenerator(DEFAULT_HEIGHT));\n\t\t\tif (!tile.hasParent()) {\n\t\t\t\tHealthPotion potion = new HealthPotion(tile, false,(PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE);\n\t\t\t\tentities.add(potion);\n\t\t\t\tthis.allTundraDialogues.add(potion.getDisplay());\n\t\t\t} else {\n\t\t\t\ti--;\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < NUM_IRON_ARMOUR; i++) {\n\t\t\tTile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n\t\t\t\t\tItem.randomItemPositionGenerator(DEFAULT_HEIGHT));\n\t\t\tif (!tile.hasParent()) {\n\t\t\t\tIronArmour ironArmour = new IronArmour(tile, false,\n\t\t\t\t\t\t(PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE,200);\n\t\t\t\tentities.add(ironArmour);\n\t\t\t\tthis.allTundraDialogues.add(ironArmour.getDisplay());\n\t\t\t} else {\n\t\t\t\ti--;\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < NUM_CHESTS; i++) {\n\t\t\tTile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n\t\t\t\t\tItem.randomItemPositionGenerator(DEFAULT_HEIGHT));\n\t\t\tif (!tile.hasParent()) {\n\t\t\t\tTreasure chest = new Treasure(tile, false,(PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE);\n\t\t\t\tentities.add(chest);\n\t\t\t\tthis.allTundraDialogues.add(chest.getDisplay());\n\t\t\t} else {\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tTile cooldownring = getTile(18,17);\n\t\tCooldownRing cdring = new CooldownRing(cooldownring, false,\n\t\t\t\t(PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,0.5f);\n\t\tentities.add(cdring);\n\t\tthis.allTundraDialogues.add(cdring.getDisplay());\n\n\t\tTile attackAmuletTile = getTile(-19,14);\n\t\tAmulet attackAmulet = new Amulet(attackAmuletTile, false,\n\t\t\t\t(PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,10);\n\t\tentities.add(attackAmulet);\n\t\tthis.allTundraDialogues.add(attackAmulet.getDisplay());\n\n\t}", "public void clearPistonTileEntity()\n {\n if (this.lastProgress < 1.0F && this.worldObj != null)\n {\n this.lastProgress = this.progress = 1.0F;\n this.worldObj.removeTileEntity(this.pos);\n this.invalidate();\n\n if (this.worldObj.getBlockState(this.pos).getBlock() == Blocks.piston_extension)\n {\n this.worldObj.setBlockState(this.pos, this.pistonState, 3);\n this.worldObj.notifyBlockOfStateChange(this.pos, this.pistonState.getBlock());\n }\n }\n }", "@Override\n\tpublic TileEntity createNewTileEntity(World world) {\n\t\treturn new TileEntityGrinder();\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic <TileEntityType extends ATileEntityBase<JSONDefinition>, JSONDefinition extends AJSONMultiModelProvider> boolean setBlock(ABlockBase block, Point3d position, WrapperPlayer playerWrapper, Axis axis){\r\n \tif(!world.isRemote){\r\n \t\tBuilderBlock wrapper = BuilderBlock.blockMap.get(block);\r\n \t\tBlockPos pos = new BlockPos(position.x, position.y, position.z);\r\n \t\tif(playerWrapper != null){\r\n \t\t\tWrapperPlayer player = playerWrapper;\r\n \t \tItemStack stack = playerWrapper.getHeldStack();\r\n \t \tAItemBase item = player.getHeldItem();\r\n \t \tEnumFacing facing = EnumFacing.valueOf(axis.name());\r\n \t \tif(!world.getBlockState(pos).getBlock().isReplaceable(world, pos)){\r\n \t pos = pos.offset(facing);\r\n \t position.add(facing.getXOffset(), facing.getYOffset(), facing.getZOffset());\r\n \t \t}\r\n \t \t\r\n\t if(item != null && player.player.canPlayerEdit(pos, facing, stack) && world.mayPlace(wrapper, pos, false, facing, null)){\r\n\t \tIBlockState newState = wrapper.getStateForPlacement(world, pos, facing, 0, 0, 0, 0, player.player, EnumHand.MAIN_HAND);\r\n\t \tif(world.setBlockState(pos, newState, 11)){\r\n\t\t \t//Block is set. See if we need to set TE data.\r\n\t\t \tif(block instanceof ABlockBaseTileEntity){\r\n\t\t \t\tBuilderTileEntity<TileEntityType> builderTile = (BuilderTileEntity<TileEntityType>) world.getTileEntity(pos);\r\n\t\t \t\tWrapperNBT data;\r\n\t\t \t\tif(stack.hasTagCompound()){\r\n\t\t \t\t\tdata = new WrapperNBT(stack);\r\n\t\t \t\t}else{\r\n\t\t \t\t\tdata = new WrapperNBT();\r\n\t\t \t\t\tif(item instanceof AItemPack){\r\n\t\t\t \t\t\tdata.setString(\"packID\", ((AItemPack<?>) item).definition.packID);\r\n\t\t\t\t \t\tdata.setString(\"systemName\", ((AItemPack<?>) item).definition.systemName);\r\n\t\t\t\t \t\tif(item instanceof AItemSubTyped){\r\n\t\t\t\t \t\t\tdata.setString(\"subName\", ((AItemSubTyped<?>) item).subName);\r\n\t\t\t\t \t\t}\r\n\t\t \t\t\t}\r\n\t\t \t\t}\r\n\t\t \t\tbuilderTile.tileEntity = (TileEntityType) ((ABlockBaseTileEntity) block).createTileEntity(this, position, player, data);\r\n\t\t \t}\r\n\t\t \t//Shrink stack as we placed this block.\r\n\t\t stack.shrink(1);\r\n\t\t return true;\r\n\t\t }\r\n\t }\r\n \t\t}else{\r\n \t\t\tIBlockState newState = wrapper.getDefaultState();\r\n \t\t\tif(world.setBlockState(pos, newState, 11)){\r\n \t\t\t\treturn true;\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \treturn false;\r\n }", "public default boolean shouldSpawnEntity(){ return false; }", "@Overwrite(remap = false)\n private void renderDroppedItem(EntityItem entityItem, IIcon icon, int p_77020_3_, float p_77020_4_, float p_77020_5_, float p_77020_6_, float p_77020_7_, int pass) {\n Tessellator tessellator = Tessellator.instance;\n ItemStack itemStack = ItemUtils.changeRenderTarget(entityItem.getEntityItem());\n\n\n if (icon == null) {\n TextureManager texturemanager = Minecraft.getMinecraft().getTextureManager();\n ResourceLocation resourcelocation = texturemanager.getResourceLocation(itemStack.getItemSpriteNumber());\n icon = ((TextureMap) texturemanager.getTexture(resourcelocation)).getAtlasSprite(\"missingno\");\n }\n\n float f14 = icon.getMinU();\n float f15 = icon.getMaxU();\n float f4 = icon.getMinV();\n float f5 = icon.getMaxV();\n float f6 = 1.0F;\n float f7 = 0.5F;\n float f8 = 0.25F;\n float f10;\n\n if (this.renderManager.options.fancyGraphics) {\n GL11.glPushMatrix();\n\n if (renderInFrame) {\n GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);\n } else {\n GL11.glRotatef((((float) entityItem.age + p_77020_4_) / 20.0F + entityItem.hoverStart) * (180F / (float) Math.PI), 0.0F, 1.0F, 0.0F);\n }\n\n float f9 = 0.0625F;\n f10 = 0.021875F;\n //ItemStack itemStack = entityItem.getEntityItem();\n int j = itemStack.stackSize;\n byte b0;\n\n if (j < 2) {\n b0 = 1;\n } else if (j < 16) {\n b0 = 2;\n } else if (j < 32) {\n b0 = 3;\n } else {\n b0 = 4;\n }\n\n b0 = getMiniItemCount(itemStack, b0);\n\n GL11.glTranslatef(-f7, -f8, -((f9 + f10) * (float) b0 / 2.0F));\n\n for (int k = 0; k < b0; ++k) {\n // Makes items offset when in 3D, like when in 2D, looks much better. Considered a vanilla bug...\n if (k > 0 && shouldSpreadItems()) {\n float x = (random.nextFloat() * 2.0F - 1.0F) * 0.3F / 0.5F;\n float y = (random.nextFloat() * 2.0F - 1.0F) * 0.3F / 0.5F;\n float z = (random.nextFloat() * 2.0F - 1.0F) * 0.3F / 0.5F;\n GL11.glTranslatef(x, y, f9 + f10);\n } else {\n GL11.glTranslatef(0f, 0f, f9 + f10);\n }\n\n if (itemStack.getItemSpriteNumber() == 0) {\n this.bindTexture(TextureMap.locationBlocksTexture);\n } else {\n this.bindTexture(TextureMap.locationItemsTexture);\n }\n\n GL11.glColor4f(p_77020_5_, p_77020_6_, p_77020_7_, 1.0F);\n ItemRenderer.renderItemIn2D(tessellator, f15, f4, f14, f5, icon.getIconWidth(), icon.getIconHeight(), f9);\n\n if (itemStack.hasEffect(pass)) {\n GL11.glDepthFunc(GL11.GL_EQUAL);\n GL11.glDisable(GL11.GL_LIGHTING);\n this.renderManager.renderEngine.bindTexture(RES_ITEM_GLINT);\n GL11.glEnable(GL11.GL_BLEND);\n GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE);\n float f11 = 0.76F;\n GL11.glColor4f(0.5F * f11, 0.25F * f11, 0.8F * f11, 1.0F);\n GL11.glMatrixMode(GL11.GL_TEXTURE);\n GL11.glPushMatrix();\n float f12 = 0.125F;\n GL11.glScalef(f12, f12, f12);\n float f13 = (float) (Minecraft.getSystemTime() % 3000L) / 3000.0F * 8.0F;\n GL11.glTranslatef(f13, 0.0F, 0.0F);\n GL11.glRotatef(-50.0F, 0.0F, 0.0F, 1.0F);\n ItemRenderer.renderItemIn2D(tessellator, 0.0F, 0.0F, 1.0F, 1.0F, 255, 255, f9);\n GL11.glPopMatrix();\n GL11.glPushMatrix();\n GL11.glScalef(f12, f12, f12);\n f13 = (float) (Minecraft.getSystemTime() % 4873L) / 4873.0F * 8.0F;\n GL11.glTranslatef(-f13, 0.0F, 0.0F);\n GL11.glRotatef(10.0F, 0.0F, 0.0F, 1.0F);\n ItemRenderer.renderItemIn2D(tessellator, 0.0F, 0.0F, 1.0F, 1.0F, 255, 255, f9);\n GL11.glPopMatrix();\n GL11.glMatrixMode(GL11.GL_MODELVIEW);\n GL11.glDisable(GL11.GL_BLEND);\n GL11.glEnable(GL11.GL_LIGHTING);\n GL11.glDepthFunc(GL11.GL_LEQUAL);\n }\n }\n\n GL11.glPopMatrix();\n } else {\n for (int l = 0; l < p_77020_3_; ++l) {\n GL11.glPushMatrix();\n\n if (l > 0) {\n f10 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.3F;\n float f16 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.3F;\n float f17 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.3F;\n GL11.glTranslatef(f10, f16, f17);\n }\n\n if (!renderInFrame) {\n GL11.glRotatef(180.0F - this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F);\n }\n\n GL11.glColor4f(p_77020_5_, p_77020_6_, p_77020_7_, 1.0F);\n tessellator.startDrawingQuads();\n tessellator.setNormal(0.0F, 1.0F, 0.0F);\n tessellator.addVertexWithUV((double) (0.0F - f7), (double) (0.0F - f8), 0.0D, (double) f14, (double) f5);\n tessellator.addVertexWithUV((double) (f6 - f7), (double) (0.0F - f8), 0.0D, (double) f15, (double) f5);\n tessellator.addVertexWithUV((double) (f6 - f7), (double) (1.0F - f8), 0.0D, (double) f15, (double) f4);\n tessellator.addVertexWithUV((double) (0.0F - f7), (double) (1.0F - f8), 0.0D, (double) f14, (double) f4);\n tessellator.draw();\n GL11.glPopMatrix();\n }\n }\n }", "public void dispara()\r\n {\r\n BulletEnemy bala = new BulletEnemy();\r\n getWorld().addObject(bala,getX(),getY()+25);\r\n }", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}" ]
[ "0.67119104", "0.65526843", "0.64717245", "0.64313084", "0.6406201", "0.63270634", "0.6286536", "0.6191274", "0.6175539", "0.6164735", "0.61439955", "0.6120074", "0.61174315", "0.60987204", "0.60782427", "0.6076902", "0.60712576", "0.60429746", "0.60208464", "0.6006016", "0.60039985", "0.5985316", "0.59472525", "0.5939155", "0.5933179", "0.59319323", "0.5930722", "0.5924194", "0.58935606", "0.5887586", "0.5886347", "0.58759844", "0.586885", "0.5863283", "0.58544457", "0.583386", "0.58163744", "0.5811934", "0.5808265", "0.58024615", "0.57973766", "0.5794219", "0.57906586", "0.5771463", "0.576923", "0.5762565", "0.57581973", "0.5752176", "0.57476497", "0.574069", "0.5737797", "0.57294166", "0.57281", "0.5726919", "0.5726223", "0.5720344", "0.5717648", "0.57137156", "0.5709512", "0.57087225", "0.5696667", "0.5695575", "0.5684828", "0.56790286", "0.56788915", "0.56785667", "0.5678371", "0.56741524", "0.56664664", "0.56643337", "0.5646318", "0.56448156", "0.56444687", "0.5640674", "0.5628094", "0.5617435", "0.56157804", "0.5614158", "0.56103414", "0.5606108", "0.5603557", "0.560175", "0.5601558", "0.559626", "0.5593597", "0.55901885", "0.5586955", "0.558579", "0.55846906", "0.558104", "0.5574542", "0.5565212", "0.55607843", "0.5557448", "0.5557166", "0.5554348", "0.5542612", "0.55416435", "0.5537442", "0.55347663", "0.55347663" ]
0.0
-1
Toast.makeText(this, "onResume", Toast.LENGTH_LONG).show(); Calendar caledar = Calendar.getInstance();
public void onResume(){ db.openDataBase(); super.onResume(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\nprotected void onResume() {\n\tsuper.onResume();\n\t//Toast.makeText(getApplicationContext(), \"onResume\", 1).show();\n}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t// Toast.makeText(getApplicationContext(), \"Resume\",\n\t\t// Toast.LENGTH_LONG).show();\n\t}", "public void onResume()\n {\n lastTime = System.currentTimeMillis();\n }", "@Override\n public void onResume() {\n super.onResume();\n getAdminDashboardDetails();\n getcalenderdate();\n }", "@Override\n\tprotected void onResume() {\n\t\t super.onResume();\n\t\t registerReceiver(timerec, new IntentFilter(\"in.ac.srmuniv.displaytime\"));\n\t}", "public void onResume() {\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n Log.d(LOG_TAG, \"onResume()\");\n\n\n\n }", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\n\t\t/*\n\t\t * if (com.fitmi.utils.Constants.sDate.length() == 0) {\n\t\t * //Constants.sDate = \"Tuesday, February 10, 2015\";\n\t\t * \n\t\t * Calendar c = Calendar.getInstance();\n\t\t * System.out.println(\"Current time => \" + c.getTime()); //\n\t\t * SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MMM-dd hh:mm:ss\");\n\t\t * SimpleDateFormat df = new SimpleDateFormat(\"EEEE, MMM dd, yyyy\");\n\t\t * com.fitmi.utils.Constants.sDate = df.format(c.getTime());\n\t\t * \n\t\t * stringDate = formattedDate;\n\t\t * \n\t\t * SimpleDateFormat postFormat = new\n\t\t * SimpleDateFormat(\"yyyy-MM-dd kk:mm:ss\");\n\t\t * com.fitmi.utils.Constants.postDate = postFormat.format(c.getTime());\n\t\t * \n\t\t * }\n\t\t */\n\n\t\t/*\n\t\t * Calendar c = Calendar.getInstance(); SimpleDateFormat targetFormatter\n\t\t * = new SimpleDateFormat( \"EEEE, MMM dd, yyyy\", Locale.ENGLISH); String\n\t\t * formattedDate = targetFormatter.format(c.getTime());\n\t\t * dateTextView.setText(formattedDate); stringDate = formattedDate;\n\t\t * \n\t\t * \n\t\t * \n\t\t * dateTextView.setText(com.fitmi.utils.Constants.sDate);\n\t\t */\n\n\t\t// changed by avinash and saikat da\n\t\t/*Calendar c = Calendar.getInstance();\n\t\tSystem.out.println(\"Current time => \" + c.getTime());\n\t\t// SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MMM-dd hh:mm:ss\");\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"EEEE, MMM dd, yyyy\");\n\t\tcom.fitmi.utils.Constants.sDate = df.format(c.getTime());\n\t\tSimpleDateFormat postFormat = new SimpleDateFormat(\n\t\t\t\t\"yyyy-MM-dd kk:mm:ss\");\n\t\tcom.fitmi.utils.Constants.postDate = postFormat.format(c.getTime());*/\n\t\tif (com.fitmi.utils.Constants.sTempDate.length() == 0) {\n\t\t\t//Constants.sDate = \"Tuesday, February 10, 2015\";\n\n\t\t\tCalendar c = Calendar.getInstance();\n\t\t\tSystem.out.println(\"Current time => \" + c.getTime());\t\n\t\t\t//\tSimpleDateFormat df = new SimpleDateFormat(\"YYYY-MMM-dd hh:mm:ss\");\n\t\t\t//SimpleDateFormat df = new SimpleDateFormat(\"EEEE, MMM dd, yyyy\");\n\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"EEEE, MMM dd, yyyy\");\n\t\t\tcom.fitmi.utils.Constants.sDate = df.format(c.getTime());\t\n\n\n\t\t\tSimpleDateFormat postFormat = new SimpleDateFormat(\"yyyy-MM-dd kk:mm:ss\");\t\t\t\n\t\t\tcom.fitmi.utils.Constants.postDate = postFormat.format(c.getTime());\n\n\n\t\t\tSimpleDateFormat dformat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\tcom.fitmi.utils.Constants.conditionDate = dformat.format(c.getTime());\n\t\t\tSystem.out.println(\"Calender post format :\"+com.fitmi.utils.Constants.postDate); \n\t\t\t//Toast.makeText(getActivity(), Constants.postDate, Toast.LENGTH_LONG).show();\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\ttoday=\tcom.fitmi.utils.Constants.sTempDate;\n\t\t}\n\t\tdateTextView.setText(com.fitmi.utils.Constants.sDate);\n\t}", "@Override\n protected void onResume() {\n// super.onResume();\n MyApplication.getInstance().setcontext(this);\n // Log.e(\"act_tenth_TAG\", \"onResume of :\" + this.getClass().getSimpleName().toString());\n\n\n super.onResume();\n }", "@Override\n protected void onResume(){\n super.onResume();\n Log.d(TAG_INFO,\"application resumed\");\n }", "@Override\n protected void onResume(){\n super.onResume();\n Log.d(TAG_INFO,\"application resumed\");\n }", "void onResume();", "@Override\n protected void onResume() {\n super.onResume();\n Log.i(\"LOG:\", \"ESTOY EN RESUME\");\n activarSensores();\n }", "@Override\n\t\tprotected void onResume() {\n\t\t\tsuper.onResume();\n\t\t\tToast.makeText(getApplicationContext(), \"onResume\", Toast.LENGTH_SHORT).show();\n\n\t\t\tLog.d(msg, \"The onResume() event\");\n\t\t}", "public void onResume();", "@Override\n public void onResume() {\n }", "@Override\r\n protected void onResume() {\n super.onResume();\r\n Log.i(TAG, \"onResume\");\r\n\r\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tEndTimer();\n\t\tStartTimer();\n\n\t}", "public void onResume() {\n super.onResume();\n }", "public void onResume() {\n super.onResume();\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n }", "@Override\n\tpublic void onResume() {\n\n\t}", "@Override\n\tpublic void onResume() {\n\n\t}", "@Override\n \tprotected void onResume() {\n \t\tsuper.onResume();\n \t\tLog.d(TAG, \"onResume\");\n \t}", "@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}", "@Override\r\n protected void onResume() {\n\tsuper.onResume();\r\n }", "@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tday();\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\tLog.d(\"maintab\", \"maintab_MainActivity------onResume\");\r\n\r\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n System.out.println(\"start: \" + boardManager.getLastTime());\n startTimer(boardManager.getLastTime());\n }", "@Override\n \tprotected void onResume() {\n \t\tsuper.onResume();\n \t}", "@Override\n \tprotected void onResume() {\n \t\tsuper.onResume();\n \t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tLog.v(\"tag\",\"onResume\" );\n\t}", "@Override\n public void onResume() {\n super.onResume();\n }", "@Override\n public void onResume() {\n super.onResume();\n }", "@Override\n public void onResume() {\n super.onResume();\n }", "@Override\n public void onResume() {\n super.onResume();\n }", "@Override\n public void onResume() {\n super.onResume();\n }", "@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t\t\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\t\r\n\t}", "@Override\n public void onCreate() {\n\n if(mTimer != null) {\n mTimer.cancel();\n } else {\n // recreate new\n mTimer = new Timer();\n }\n // schedule task\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY,11);\n calendar.set(Calendar.MINUTE,00);\n calendar.set(Calendar.SECOND,0);\n calendar.set(Calendar.MILLISECOND,0);\n\n if (calendar.before(new Date())){\n calendar.add(Calendar.DAY_OF_MONTH,1);\n };\n\n //Find next weekday\n int tag = calendar.get(Calendar.DAY_OF_WEEK);\n while ((tag < 2) || (tag > 6)) {\n calendar.add(Calendar.DAY_OF_MONTH,1);\n tag = calendar.get(Calendar.DAY_OF_WEEK);\n };\n\n mTimer.scheduleAtFixedRate(new TimeDisplayTimerTask(this.getApplicationContext()),calendar.getTime(),NOTIFY_INTERVAL);\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t \n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tLog.v(TAG, \"onCreate\");\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\t\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\t\r\n\t}", "@Override\n public void onResume() {\n\n super.onResume();\n }", "public void onResume() {\n super.onResume();\n C8006j.m18079r();\n }", "@Override\n protected void onResume() {\n super.onResume();\n }", "@Override\n protected void onResume() {\n super.onResume();\n }", "@Override\n protected void onResume() {\n super.onResume();\n }", "@Override\n protected void onResume() {\n super.onResume();\n }", "@Override\n public void onResume() {\n super.onResume();\n getLocation();\n\n }", "@Override\n protected void onResume() {\n super.onResume();\n Log.v(TAG, \"Invoked onResume()\");\n\n }", "@Override\n\tprotected void onResume() \n\t{\n\t\tsuper.onResume();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.custom_calender);\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n getSupportActionBar().setTitle(\"Calendar Reservation\");\n getSupportActionBar().setIcon(R.mipmap.ic_launcher);\n\n Title = (TextView) findViewById(R.id.judul);\n compactCalendarView = (CompactCalendarView) findViewById(R.id.calendar_test);\n compactCalendarView.drawSmallIndicatorForEvents(true);\n compactCalendarView.setUseThreeLetterAbbreviation(true);\n\n Title.setText(dateFormatForMonth.format(compactCalendarView.getFirstDayOfCurrentMonth()));\n\n getMonthEvent();\n\n compactCalendarView.setListener(new CompactCalendarView.CompactCalendarViewListener() {\n @Override\n public void onDayClick(Date dateClicked) {\n\n //Toast.makeText(CalenderTest.this, \"Date : \" + dateClicked.toString(), Toast.LENGTH_SHORT).show();\n\n String pass_date = new String(DayEvent.format(dateClicked).toString());\n\n Intent in = new Intent(getApplicationContext(), CustomerListCalendar.class);\n in.putExtra(PASS_VAR, String.valueOf(pass_date));\n startActivityForResult(in, 100);\n\n System.out.println(\"ini tanggal yang dipilih : \"+pass_date);\n\n }\n\n @Override\n public void onMonthScroll(Date firstDayOfNewMonth) {\n // Changes toolbar title on monthChange\n Title.setText(dateFormatForMonth.format(firstDayOfNewMonth));\n getMonthEvent();\n System.out.println(\"ini ganti bulan \"+dateFormatForMonth.format(firstDayOfNewMonth));\n\n }\n\n });\n\n }", "@Override\n\tpublic void onCreate() {\n\t\t\n\t\t \n\t\tfinal Calendar ca = Calendar.getInstance();\n\t\tint mHour = ca.get(Calendar.HOUR_OF_DAY);\n\t\tint mMinute = ca.get(Calendar.MINUTE);\n\t\tStringBuilder s1=new StringBuilder().append(pad(mHour)).append(\":\").append(pad(mMinute));\n\t\t\n\t todaytime=(String)s1.toString();\n\t\t\n\t\tsuper.onCreate();\n\t}", "public void onResume() {\n super.onResume();\n onLocationChanged(LocationState.getLocation());\n onGpsStatusChanged(0, null);\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n//\t\tStatService.onPause(mContext);\n\t}", "@Override\n public void onCreate() {\n \tToast.makeText(this, \"MyAlarmService.onCreate()\", Toast.LENGTH_LONG).show();\n \n \t \n \n \tLog.d(\"this is daya\",\"daya alaram\");\n \t\n }", "@Override\n public void onResume(Activity activity) {\n }", "@Override\n protected void onResume() {\n super.onResume();\n Log.d(TAG, \"onResume() called\");\n }", "@Override\n\tprotected void onResume()\n\t{\n\t\tsuper.onResume();\n\t\tAirtalkeeUserInfo.getInstance().setOnUserInfoListener(this);\n\t\tcheckBrodcast();\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t\tendloading();\r\n\t\t// getnewtime();\r\n\t\tLog.e(TAG, \"onresume---->\");\r\n\t\tBaseActivityticket.curFragmentTag = getString(R.string.five_star);\r\n\t}", "@Override\n public void onResume()\n {\n super.onResume();\n //Refresh your stuff here\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.today);\n \n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\n\t\tlineaAyuda.setText(\"Cargando...\");\n\t\tcuentaAtras(3000);\n\t}", "@Override\nprotected void onStart() {\n\tsuper.onStart();\n\t//Toast.makeText(getApplicationContext(), \"Start\", 1).show();\n}", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tLog.i(TAG, \"onResume\");\n\t}", "@Override\n protected void onResume() {\n Log.i(\"G53MDP\", \"Main onResume\");\n super.onResume();\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t\n\t\tcom.facebook.AppEventsLogger.activateApp(HomeActivity.this, \"312401348947190\");\n\t}", "@Override\n\tpublic void onDateSet(DatePicker view, int year, int monthOfYear,\n\t\t\tint dayOfMonth) {\n\t\tgetday = dayOfMonth;\n\t\tgetmonth = monthOfYear;\n\t\tgetyear = year;\n\t\tCalendar datecheck = Calendar.getInstance();\n\n\t\tdatecheck.set(getyear, getmonth, getday);\n\n\t\tLong timeinms = datecheck.getTimeInMillis(); \n/*\nswitch(view.getTag().toString())\n{\ncase \"startdialog\":\n\n\ndatevalues getdateinter = (datevalues) getActivity();\ngetdateinter.getdatefromdialog(timeinms);\n\n\t\nbreak;\n\n\n} */\n\t\n\ndatevalues getdateinter = (datevalues) getActivity();\ngetdateinter.getdatefromdialog(timeinms);\nToast checktag = Toast.makeText(getActivity(), view.getId(), Toast.LENGTH_LONG)\t;\t\nchecktag.show();\n\t\t\n}", "@Override\n public void onResume()\n {\n super.onResume();\n //Refresh your stuff here\n\n }", "@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\t\t\t\n\t\t\t\t\n\t}", "@Override\r\n protected void onResume() {\r\n Log.i(TAG, \"onResume()\");\r\n \r\n super.onResume();\r\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t setContentView(R.layout.main);\n\t \n\t AlarmManager alarm = (AlarmManager) this.getSystemService(Context.ALARM_SERVICE);\n\t Intent intent = new Intent(\"android.intent.action.TIME_SET\");\n\t\tPendingIntent pender = PendingIntent.getBroadcast(\n\t\t\t\tthis, 0, intent, 0);\n\t\t\n\t\t//현재 날짜 가져오기 시간 분 까지 가능 \n\t\t Calendar rightNow = Calendar.getInstance();// 날짜 불러오는 함수\n\t\t int year = rightNow.get(Calendar.YEAR);// 100을 나눠서 년도표시를 2009->9지만\n\t\t // decimal포멧으로 09로 표현\n\t\t int month = rightNow.get(Calendar.MONTH);// 달\n\t\t int date = rightNow.get(Calendar.DATE);// 일\n \n\t\t //String result = decimalFormat.format(year)\n\t\t // + decimalFormat.format(month) + decimalFormat.format(date);\n\t\t //Toast.makeText(this, Integer.toString(year)+Integer.toString(month)+Integer.toString(date), Toast.LENGTH_SHORT).show();\n\t\t\n\t\t Calendar calendar = Calendar.getInstance();\n\t calendar.set(year, month, date, 16, 30, 1);\n\t \n\t alarm.cancel(pender); \n\t alarm.set(AlarmManager.RTC, calendar.getTimeInMillis(), pender);\n\t \n \n //Intent intentt = new Intent(this, Myservice.class);\n //ComponentName cpn = this.startService(intentt);\n\t \n\t Intent intent3 = new Intent(\"com.hardrock.service.test\");\n\t startService(intent3);\n\n\t\t\n\t //Intent intent2 = new Intent(this,\n\t\t//\t\tScreenReceiver.class);\n\t\t//PendingIntent pender = PendingIntent.getBroadcast(\n\t\t//\t\tthis, 0, intent2, 0);\n\n\t\tButton btn1 = (Button)this.findViewById(R.id.but1);\n\t\tbtn1.setOnClickListener(this);\n\t\tButton btn2 = (Button)this.findViewById(R.id.but2);\n\t\tbtn2.setOnClickListener(this);\n\t\tButton btn3 = (Button)this.findViewById(R.id.but3);\n\t\tbtn3.setOnClickListener(this);\n\t\tButton btn4 = (Button)this.findViewById(R.id.but4);\n\t\tbtn4.setOnClickListener(this);\n\t\t\n//\t\tTabHost tabhost = getTabHost();\n//\t\ttabhost.addTab(tabhost.newTabSpec(\"tag\").setIndicator(\"알림\")\n//\t\t\t\t.setContent(new Intent(this, Alim.class)));\n//\t\t//tabhost.addTab(tabhost.newTabSpec(\"tag1\").setIndicator(\"질병\")\n//\t\t//\t\t.setContent(new Intent(this, exit.class)));\n//\t\ttabhost.addTab(tabhost.newTabSpec(\"tag1\").setIndicator(\"설정\")\n//\t\t\t\t.setContent(new Intent(this, Setting.class)));\n\n\t\t\n // NotificationManager 객체를 생성한다. NotificationManager는 시스템 서비스이므로,\n // getSystemService() 메서드를 이용해 객체를 얻는다.\n NotificationManager notifier =\n (NotificationManager) getSystemService(\n \t\tContext.NOTIFICATION_SERVICE);\n\n // Notification 객체를 생성하고,\n // 알림 발생시 상태 바에 표시할 아이콘, ticker-text, 알림 발생 시각을 지정한다.\n notify =\n new Notification(R.drawable.allsbu, \"올스\", System.currentTimeMillis());\n \n notify.flags = Notification.FLAG_ONGOING_EVENT; // flag에서 속성 바꿈 .\n\n // 알림 메세지의 확장 텍스트를 클릭한 경우, 실행할 액티비티를 인텐트로 지정한다.\n Intent intent2 = new Intent(this, SiProjectActivity.class);\n PendingIntent launchIntent =\n PendingIntent.getActivity(this, 0, intent2, 0);\n\n // setLatestEventInfo() 메서드를 사용해 알림 메세지에 대한 제목과 내용을 표시하고,\n // 알림 메세지의 확장 텍스트를 클릭한 경우 인텐트를 넘겨 지정된 액티비티를 실행한다.\n notify.setLatestEventInfo(this,\n \"올스\", \"올바른 스마트생활\", launchIntent);\n\n // 알림 횟수를 지정한다.\n // notify.number = 4;\n\n // notify() 메서드로, NotificationManager에 Notification 객체를 넘겨\n // 알림 메세지를 표시한다.\n notifier.notify(NOTIFY_1, notify);\n //Intent intent2=new Intent(this,exit.class);\n\t}", "@Override\n public void onViewResume() {\n }", "@Override\n\tprotected void onResume()\n\t{\n\t\tsuper.onResume();\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\r\n\t}", "@Override\n\tprotected void onResume() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onResume();\n\t\tnew My_orientation().start();\n\t\t if (startTime_ == 0)\n startTime_ = System.currentTimeMillis();\n\n // Instantiate here so that startTime_ is always valid\n countdownTask_ = new CountdownTimerTask();\n\n // Schedule the timer task\n timer_.scheduleAtFixedRate(countdownTask_, 1000, 1000);\n long[] pattern = { 100, 200 };\n int repeat = 0;\n vibrator_.vibrate(pattern, repeat);\n \tTelephonyManager man = (TelephonyManager) super\n .getSystemService(Context.TELEPHONY_SERVICE);\n deviceId = man.getDeviceId();\n \n Intent i=this.getIntent();\n Acc=i.getDoubleExtra(\"acc\", 0);\n \t\tspeed =i.getFloatExtra(\"speed\", 0);\n \t\tSD=i.getFloatExtra(\"ssd\", 0);\n \t\tlat=i.getDoubleExtra(\"lat\", 0);\n \t\tlon=i.getDoubleExtra(\"lon\", 0);\n \t\tScenario=i.getStringExtra(\"scenario\");\n \t\telapsed_period=i.getIntExtra(\"elpasedPeriod\", 0);\n \t\tCanIrecordVideo=i.getBooleanExtra(\"videoState\", true);\n \t\tCanISendSMS=i.getBooleanExtra(\"smsState\", true);\n \t\tAirbageStae=i.getBooleanExtra(\"airbagState\", true);\n \t\tDiff_detection=i.getLongExtra(\"Diff\", 0);\n }", "@Override\n protected void onResume() {\n super.onResume();\n alarmList = DataManager.getInstance().getAlarmListForDevice(mSelectedDevice);\n mAlarmAdapter.notifyAdapter(alarmList);\n }", "@Override\n\tprotected void onResume()\n\t{\n\t\tsuper.onResume();\n\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t// pin check\n\t\t// time @15min\n\n\t\tString time = atPrefs.getString(\"time\", \"\");\n\t\tString times = String.valueOf(System.currentTimeMillis());\n\t\t// double t = Double.valueOf(time);\n\t\t// double tw = Double.valueOf(times);\n\t\tlong t = Long.valueOf(time);\n\t\tlong tw = System.currentTimeMillis();\n\t\tString ch = atPrefs.getString(check, \"true\");\n\t\tatPrefs.edit().putString(reboot, ch).commit();\n\t\tString chh = atPrefs.getString(callcheck, \"true\");\n\t\t// Toast.makeText(getApplicationContext(), \"onresume\" + \" \" + ch,\n\t\t// Toast.LENGTH_LONG).show();\n\t\tLog.i(\"con\", ch);\n\t\tLog.i(\"cons\", chh);\n\t\tLog.i(\"call form\", getClass().getName());\n\t\t// check if app open from background or not\n\t\tif (ch.equalsIgnoreCase(\"false\")) {\n\n\t\t\tif (chh.equalsIgnoreCase(\"true\")) {\n\t\t\t\t// when we open maps,pic dont show pin\n\t\t\t\t// Toast.makeText(getApplicationContext(), \"PinLock false\",\n\t\t\t\t// Toast.LENGTH_LONG).show();\n\t\t\t\tatPrefs.edit().putString(callcheck, \"false\").commit();\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\t// app open from background\n\n\t\t\t\t// Toast.makeText(getApplicationContext(), \"PinLock\",\n\t\t\t\t// Toast.LENGTH_LONG).show();\n\t\t\t\tif (!atPrefs.getBoolean(info.checkllogin, true)) {\n\t\t\t\t\tboolean s = tw > t;\n\t\t\t\t\t// Toast.makeText(getApplicationContext(),\n\t\t\t\t\t// \"PinLock\" + \" \" + s, Toast.LENGTH_LONG).show();\n\t\t\t\t\tlong d = Math.abs(tw - t);\n\t\t\t\t\tLog.i(\"math\", String.valueOf(d));\n\t\t\t\t\t// check current time is more then prev time , limit is 15\n\t\t\t\t\t// min\n\t\t\t\t\tif (Math.abs(tw - t) > 900000) {\n\t\t\t\t\t\t// Toast.makeText(getApplicationContext(),\n\t\t\t\t\t\t// \"PinLock enter\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\tIntent ne = new Intent(getApplicationContext(),\n\t\t\t\t\t\t\t\tPinLock.class);\n\t\t\t\t\t\tstartActivity(ne);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Toast.makeText(getApplicationContext(),\n\t\t\t\t\t\t// \"PinLock else\",\n\t\t\t\t\t\t// Toast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t}", "@Override\n public void onResume() {\n \tsuper.onResume();\n \tLog.i(\"ONRESUME\", \"ONRESUME\");\n \treloadSavedState();\n }", "@Override\n protected void onResume() {\n super.onResume();\n Log.d(\"STATO\",\"RESUME\");\n applyMapSettings();\n }", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}" ]
[ "0.77141273", "0.71580297", "0.71331483", "0.7117172", "0.69988155", "0.6899494", "0.6888006", "0.687758", "0.6850628", "0.6816825", "0.6816825", "0.6751229", "0.67419314", "0.6719628", "0.67080575", "0.6706659", "0.666557", "0.66631055", "0.6618958", "0.6618958", "0.6614017", "0.6614017", "0.6614017", "0.66119564", "0.66119564", "0.6605831", "0.6572214", "0.6572214", "0.6572214", "0.6572214", "0.6553899", "0.65455055", "0.6533751", "0.65300596", "0.65208226", "0.65208226", "0.6510736", "0.65056115", "0.65056115", "0.65056115", "0.65056115", "0.65056115", "0.6501609", "0.6494521", "0.64777845", "0.6475323", "0.6473979", "0.6463304", "0.6463304", "0.64627135", "0.6447107", "0.6425426", "0.6425426", "0.6425426", "0.6425426", "0.6423829", "0.6413335", "0.64084554", "0.64039165", "0.63942486", "0.6391206", "0.63897985", "0.63848716", "0.6384527", "0.63823426", "0.6365132", "0.63594747", "0.6358627", "0.63558495", "0.6355312", "0.6348453", "0.6345813", "0.63440144", "0.63425803", "0.6336347", "0.6327072", "0.63178897", "0.63178897", "0.63178897", "0.6314836", "0.6314145", "0.6313394", "0.63127244", "0.63105243", "0.6306704", "0.6302097", "0.6302097", "0.63010025", "0.6293938", "0.6289909", "0.6288129", "0.6282065", "0.62801975", "0.62801456", "0.62801456", "0.62801456", "0.62801456", "0.62801456", "0.62801456", "0.62801456", "0.62801456" ]
0.0
-1
Intent intent = new Intent(this, DetailActivity.class);
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { getDetailActivity((int)position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onButtonClicked(View v) {\n\n Log.e(getClass().getSimpleName(),\"Button clicked !\");\n startActivity(new Intent(this,DetailActivity.class));\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int i, long id) {\n Intent intent = new Intent(getActivity(), DetailActivity.class);\n startActivity(intent);\n }", "@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n }", "public void openNewActivity(){\n Intent intent = new Intent(this, InventoryDisplay.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(getApplicationContext(), DetailActivity.class);\n intent.putExtra(Constant.INTENT_WEB_URL, webHotUrl);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent i = new Intent(context, Detail.class);\n i.putExtra(\"id\", id);\n i.putExtra(\"firstname\", firstname);\n i.putExtra(\"lastname\", lastname);\n i.putExtra(\"email\", email);\n i.putExtra(\"image\", image);\n context.startActivity(i);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.putExtra(\"actid\", actid);\n\t\t\t\tintent.setClass(Activity_detail.this, BaoMing.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "void startNewActivity(Intent intent);", "public void btn_personal_details_On_click(View v) {\n Intent i = new Intent(MainActivity.this, PersonalDetails.class);\n startActivity(i);\n }", "@Override\n public void onClick(View v) {\n\n Intent i = new Intent(context, DetailActivity.class); //create intent to switch screen\n\n //trying to place movie into putExtra by putting it into Parcelable value (bc method can't take movie object)\n //we use Parcelable (go to AndroidStudio ref. where they have the code to allow u to use Parceler library\n //essentially, you place the implementation code into buildgradle file\n i.putExtra(\"movie\", Parcels.wrap(movie));\n //add @Parcel to Movie class and add empty constructor as shown in AU (android U) page + empty constructor\n //now you can go to DetailActivity to retrieve the whole movie object just by using an intent\n\n context.startActivity(i);\n\n }", "@Override\n public void onClick(View v) {\n Intent detail=new Intent(getBaseContext(),DetailArticle.class);\n detail.putExtra(\"webURL\",webHotURL);\n startActivity(detail);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(mContext, DemandDetailActivity.class);\n //intent.putExtra(\"id\",String.valueOf(item.getPid()));\n intent.putExtra(\"pid\", String.valueOf(item.getPid()));\n intent.putExtra(\"uid\", String.valueOf(item.getUid()));\n mContext.startActivity(intent);\n }", "public void onClick(View v) {\n Intent newActivity = new Intent(Detail_1.this,TabHostMENU.class);\r\n newActivity.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n startActivity(newActivity);\r\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(getActivity(), DetailActivity.class);\n intent.putExtra(\"NAME\", (String) mNameTextView.getText());\n intent.putExtra(\"REALNAME\", (String) mRealNameTextView.getText());\n intent.putExtra(\"URL\", (String) mHero.getUrl());\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n\n Intent intent = new Intent(context, DetailActivity.class);\n intent.putExtra(\"YourValueKey\", array_detailview.get(position));\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n\n// view.getContext().startActivity(new Intent(view.getContext(), DetailActivity.class));\n// context.startActivity(new Intent(context, DetailActivity.class));\n\n\n }", "public void onClick(View view) {\n Intent detailActIntent = new Intent(view.getContext(), MainActivity.class);\n finish();\n startActivity(detailActIntent);\n\n\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, ListDataActivity.class);\n startActivity(intent);\n }", "private void startActivity(Class destination)\n {\n Intent intent = new Intent(MainActivity.this, destination);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(MainActivity.this, ListViewActivity.class);\n startActivity(intent);\n\n }", "public void GoInfo(View view) {\n Intent a = new Intent(MainActivity.this, Info.class);\n startActivity(a);\n }", "@Override\n public void onClick(View v) {\n Context context = v.getContext();\n Intent intent = new Intent(context, FuelEntryListActivity.class);\n\n startActivity(intent);\n\n }", "@Override\n public void onClick(View view) {\n Intent detail = new Intent(getBaseContext(), DetailArticle.class);\n detail.putExtra(\"webURL\", webHotURL);\n startActivity(detail);\n }", "public void onClick(View v) {\n\n\n\n startActivity(myIntent);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, PageDetailDestinasiPopuler.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, CardapioActivity.class);\n startActivity(intent);\n }", "@Override\r\n public void onClick(View view) {\n Intent intent = new Intent(context, DetailActivity.class);\r\n intent.putExtra(\"item\", itemList.get(position));\r\n context.startActivity(intent);\r\n }", "public void onClickAbout (View v)\n{\n startActivity (new Intent(getApplicationContext(), AboutActivity.class));\n}", "public void onClick(View v) {\n\n Intent visitSite_intent = new Intent(MainActivity.this, DetailActivity.class);\n visitSite_intent.putExtra(\"url\",\"http://aanm-vvrsrpolytechnic.ac.in/\");\n startActivity(visitSite_intent);\n }", "public void onItemClick(AdapterView<?> a, View v, int position, long id) {\n Intent myIntent = new Intent(MainActivity.this, DetailActivity.class);\n myIntent.putExtra(getResources().getString(R.string.pasoDatosGasolinera), presenterGasolineras.getGasolineras().get(position));\n MainActivity.this.startActivity(myIntent);\n\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1,int position, long arg3)\n {\n Student stud = null;\n stud = (Student) listView.getAdapter().getItem(position);\n Intent data = new Intent(MainActivity.this, DetailActivity.class);\n data.putExtra(\"student\",stud);\n startActivity(data);\n }", "public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(memberinfo.this,story.class);\n startActivity(intent);\n\n }", "public void onClick(View view){\n Intent toDetailActivity = new Intent (view.getContext(), Detail.class);\n toDetailActivity.putExtra(\"nama\", nama.getText().toString());\n toDetailActivity.putExtra(\"gender\",avatarCode);\n toDetailActivity.putExtra(\"pekerjaan\", job.getText().toString());\n view.getContext().startActivity(toDetailActivity);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(mContext, ItemDetailsActivity.class);\n\n intent.putExtra(\"name\", modellist.get(postition).getTitle());\n intent.putExtra(\"picture\", modellist.get(postition).getType() + postition);\n intent.putExtra(\"cost\", modellist.get(postition).getCost());\n intent.putExtra(\"id\", modellist.get(postition).getId());\n intent.putExtra(\"description\", modellist.get(postition).getDescription());\n intent.putExtra(\"extra\", modellist.get(postition).getExtra());\n\n mContext.startActivity(intent);\n// Toast.makeText(mContext, \"Make the user see the details of the item\", Toast.LENGTH_SHORT).show();\n }", "public void btn_medical_information_On_click(View v) {\n Intent i = new Intent(MainActivity.this, Medical_information.class);\n startActivity(i);\n }", "void mChapie(){\n Intent i = new Intent(context,Peminjaman.class);\n context.startActivity(i);\n\n }", "@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n// QPManager.startRecordActivity(MainActivity.this);\n }", "public void openActivity2(){\n Intent intent = new Intent(this, SearchBook.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n if (view.getId()== position){\n Intent intent = new Intent(MainActivity.this, Details.class);\n intent.putExtra(\"name\", \"bangladesh\");\n startActivity(intent);\n }\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(SingleTopActivity.this, SingleTopActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(String[] movieInformation) {\n Context context = this;\n Class destinationClass = DetailActivity.class;\n Intent intentToStartDetailActivity = new Intent(context, destinationClass);\n intentToStartDetailActivity.putExtra (\"movieInfo\", movieInformation);\n startActivity(intentToStartDetailActivity);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(Visa.this,Recepit.class);\n startActivity(intent);\n\n\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(context, DetailActivity.class);\n intent.putExtra(\"nb\", nama[position]);\n intent.putExtra(\"gb\", gambar[position]);\n intent.putExtra(\"dt\", detail[position]);\n context.startActivity(intent);\n\n\n\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent openCauseFullDetailViewPage = new Intent(NeedyProfile.this, CauseFullDetailView.class);\n startActivity(openCauseFullDetailViewPage);\n\n\n }", "public static void seeClassement(){\n\n\n Intent seeClassementIntent = new Intent(This, Classement_Activity.class);\n\n This.startActivity(seeClassementIntent);\n }", "@Override\n public void onClick(View v) {\n Intent HomeScreen = new Intent(v.getContext(), MainActivity.class);\n startActivity(HomeScreen);\n }", "public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(memberinfo.this,activity_card.class);\n startActivity(intent);\n\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), DetailActivity.class)\n .putExtra(\"title\", model.getMovieName())\n .putExtra(\"vote_average\", model.getVotes() + \"\")\n .putExtra(\"overview\", model.getMovieOverview())\n .putExtra(\"popularity\", model.getMoviePopularity() + \"\")\n .putExtra(\"release_date\", model.getMovieReleaseDate())\n .putExtra(\"vote_count\", model.getMovieVoteCount())\n .putExtra(\"Picture\", model.getMoviePoster());\n\n startActivity(intent);\n\n }", "@Override\n public void onClick(Movie movie) {\n Intent intent = new Intent(this, DetailActivity.class);\n intent.putExtra(Intent.EXTRA_TEXT, movie);\n startActivity(intent);\n }", "public void onClick(View v) {\n\n startActivity(new Intent(MainPage.this, AddFD.class));\n\n\n }", "@Override\n public void onClick(View v) {\n Intent p3page = new Intent(v.getContext(), MagdalenCollege.class);\n startActivity(p3page);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(EntranceActivity.this, ExchangeListActivity.class);\n startActivity(intent);\n }", "public void goToDisplayActivity(View view)\n {\n Intent intent = new Intent(MainActivity.this, DisplayActivity.class);\n startActivity(intent);\n }", "public void Volgende(Intent intent){\r\n\r\n startActivity(intent);\r\n\r\n }", "private void startBookingDetails() {\n\t\t\n\t\n\t Intent launchBookingDetails = new Intent(this, BookingDetails.class);\n\t launchBookingDetails.putExtra(\"obj\", obj);\n\t startActivity(launchBookingDetails);\n\n\t }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int pos, long id) {\n Intent intent = new Intent(getApplicationContext(), Detail.class);\n // intent.putExtra(\"i\",listAlarm.i);\n startActivity(intent);\n\n\n\n }", "private void gotoInfo() {\n Intent launchInfo = new Intent(this, Info.class);\n startActivity(launchInfo);\n }", "private void homemenu() \n\n{\nstartActivity (new Intent(getApplicationContext(), Home.class));\n\n\t\n}", "@Override\n public void onClick(View v) {\n Intent p1page = new Intent(v.getContext(), AshmoleanMusuem.class);\n startActivity(p1page);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, TriggerActivity.class);\n startActivity(intent);\n }", "public void onClickSearch (View v)\n{\n startActivity (new Intent(getApplicationContext(), SearchActivity.class));\n}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MyInfoActivity.this, SpecificInfoActivityed.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "public void onItemClick(AdapterView<?> parent, View view, int pos, long id) {\n \t//makes new intent\n Intent i = new Intent(view.getContext(), DetailActivity.class);\n \n //sends the title, description, and link of the item clicked to the detail activity\n i.putExtra(\"title\", listItems.get(pos).getTitle());\n i.putExtra(\"description\", listItems.get(pos).getDescription());\n i.putExtra(\"link\", listItems.get(pos).getLink());\n \n //start activity\n activity.startActivity(i);\n }", "@Override\n public void goToEvent() {\n startActivity(new Intent(AddGuests.this, DetailEventRequest.class)); }", "@Override\n public void onClick(View view) {\n startActivity(new Intent(MainActivity.this, ViewActivity.class));\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n MovieItem movieItem = arrayAdapter.getItem(position);\n Intent i = new Intent(getActivity(), DetailActivity.class);\n i.putExtra(\"myData\", movieItem);\n startActivity(i);\n }", "@Override\n public void onClick(View view) {\n Intent nationIntent = new Intent(MainActivity.this, NationActivity.class);\n startActivity(nationIntent);\n }", "public void afficherInfo(View v){\n Intent intent=new Intent(CarteActivity.this,InfoActivity.class);\n startActivity(intent);\n }", "public void onClick(View v) {\n Intent i = new Intent(v.getContext(), NewPatient.class);\n startActivity(i);\n }", "@Override\n public void onClick(Product product) {\n Log.i(\"MainActivity\", product.toString());\n Intent detailIntent = new Intent(this, DetailActivity.class);\n detailIntent.putExtra(Constants.Keys.PRODUCT_DETAIL.toString(), product);\n startActivity(detailIntent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(context, Detail_Product_Normal.class);\n intent.putExtra(Param_Collection.EXTRA_POST_ID, item.getContent().getPostId().toString());\n intent.putExtra(Param_Collection.EXTRA_POST_PRODUCT_TITLE, item.getActivity());\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, CreateNoteActivity.class);\n startActivity(intent);\n }", "public static Intent newIntent(Context context) {\n\t\treturn new Intent(context, ProductDetailsActivity.class);\n\t}", "@Override\n public void onClick(View arg0) {\n Intent i = new Intent(getApplicationContext(), sh1.class);\n startActivity(i);\n }", "public void buttonToExam(View view) {\n Log.i(\"BOTTOM NAVIGATION\", \"to exam button clicked\");\n Intent intent = new Intent(getApplicationContext(), ExamActivity.class);\n// intent.putExtra(\"extra\", \"extra\");\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, SecondActivity.class);\n startActivity(intent);\n\n }", "private void goToMain(){\n Intent intent = new Intent(getBaseContext(), MainActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getContext(), EmployeeListScreen.class);\n intent.putExtra(\"Type\",\"attendance\");\n getContext().startActivity(intent);\n }", "public void ButtonClicked(View view) {\n Intent intentInput = new Intent(DetailActivity.this, InputActivity.class);\n startActivity(intentInput);\n }", "private void goToMain(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "public void nextIntent(){\n \t\n \tIntent y=new Intent();\n \ty.setClass(MainActivity.this, Dashboard.class);\n \t\n \tstartActivity(y);\n \t\n \t\n}", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(MainActivity.this, EditDataActivity.class);\n startActivity(intent);\n\n }", "public void openCreateAccount(){\n Intent intent = new Intent(this, createAccountActivity.class);\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n Intent intent = new Intent(getActivity(), DetailsActivity.class);\n intent.putExtra(\"info\", mContactList.get(position));\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent i = new Intent(getApplicationContext(), BPActivity.class);\n startActivity(i);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n MovieDetails movieDetails = movieDetailsAdapter.getItem(i);\n Intent intent = new Intent(MainActivity.this,MovieDetailActivity.class);\n intent.putExtra(\"movieDetails\",movieDetails);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\t//intent.putExtra(\"path\",path);\n\t\t\t\tintent.setClass(MainInterfceActivity.this, PersonalInfoActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\t\n\t\t\t}", "private void buildIntent() {\n ReportLogic.report(this, \"POST\", mInfo.c_rpt, 0, null);\n Intent intent = new Intent();\n Bundle bundle = new Bundle();\n bundle.putString(PKG_NAME, mInfo.href);\n bundle.putString(APP_NAME, mInfo.name);\n intent.putExtra(DetailActivity.DETAIL, bundle);\n intent.setClass(this, DetailActivity.class);\n startActivity(intent);\n }", "public void gotonewpatient(View view)\n {\n Intent i=new Intent(this,AddNewPatient.class);\n startActivity(i);\n }", "public void onClick(View v) {\n Intent reg = new Intent(RegDetailsPersonal.this, RegDetailsEmployment.class);\n RegDetailsPersonal.this.startActivity(reg);\n }", "public void onClick(View v)\n {\n Intent fp=new Intent(getApplicationContext(),SignUpDetails.class);\n startActivity(fp);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(context,ProfileActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(StudentList.this, OngoingBatchesActivity.class);\n startActivity(intent);\n\n }", "private void openHome(){\n Intent intent2 = new Intent(AddExercises.this, MainActivity.class);\n startActivity(intent2);\n }", "@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Item item = items.get(position);\r\n\r\n //create a bundle object and add data to present in the details activity\r\n Bundle extras = new Bundle();\r\n extras.putInt(\"image\", item.getImageResourceId());\r\n extras.putString(\"title\", item.getTitleResourceId());\r\n extras.putString(\"text\", item.getTextResourceId());\r\n\r\n //create and initialise the intent\r\n Intent detailsIntent = new Intent(getActivity(), DetailsActivity.class);\r\n\r\n //attach the bundle to the intent object\r\n detailsIntent.putExtras(extras);\r\n\r\n //start the activity\r\n startActivity(detailsIntent);\r\n\r\n }", "@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Item item = items.get(position);\r\n\r\n //create a bundle object and add data to present in the details activity\r\n Bundle extras = new Bundle();\r\n extras.putInt(\"image\", item.getImageResourceId());\r\n extras.putString(\"title\", item.getTitleResourceId());\r\n extras.putString(\"text\", item.getTextResourceId());\r\n\r\n //create and initialise the intent\r\n Intent detailsIntent = new Intent(getActivity(), DetailsActivity.class);\r\n\r\n //attach the bundle to the intent object\r\n detailsIntent.putExtras(extras);\r\n\r\n //start the activity\r\n startActivity(detailsIntent);\r\n\r\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), ANQ.class);\n startActivity(intent);\n\n }", "void mstrange(){\n Intent i = new Intent(context,Pengembalian.class);\n context.startActivity(i);\n }", "@Override\r\n public void onClick(View v) {\n int id = v.getId();\r\n switch(id){\r\n case R.id.mylend:\r\n \t startActivity(new Intent(MyInfoActivity.this,CollectionActivity.class));\r\n \t break;\r\n case R.id.mywant:\r\n \t startActivity(new Intent(MyInfoActivity.this,MyWantedActivity.class));\r\n \t break;\r\n }\r\n }", "@Override\n public void onClick(View view) {\n\n AppCompatActivity activity =(AppCompatActivity) view.getContext();\n Intent intent = new Intent(activity.getApplicationContext(), ChooseRoomActivity.class);\n// intent.putExtra(\"InfoClickedItem\", homeItem);\n activity.startActivity(intent);\n\n }", "public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(memberinfo.this, home_page.class);\n startActivity(intent);\n\n }" ]
[ "0.7449965", "0.74283165", "0.73684204", "0.73490906", "0.7262337", "0.7238728", "0.71723384", "0.7150027", "0.71414936", "0.7065705", "0.7061424", "0.70578086", "0.7026566", "0.7015332", "0.69808793", "0.697401", "0.69725275", "0.6969666", "0.6967973", "0.6958447", "0.6916012", "0.6911642", "0.6906524", "0.6902446", "0.68967795", "0.68931156", "0.6874077", "0.68472224", "0.68454784", "0.6841785", "0.683128", "0.6817056", "0.6806131", "0.67879343", "0.6782005", "0.67811984", "0.6780622", "0.67727494", "0.6744002", "0.6740274", "0.6737081", "0.6733215", "0.6725118", "0.67250603", "0.67220145", "0.67168015", "0.6712315", "0.6707925", "0.670547", "0.67016846", "0.6700008", "0.66966283", "0.66944295", "0.6680059", "0.6668807", "0.66620094", "0.66543216", "0.6626368", "0.662497", "0.6616522", "0.66141576", "0.6612086", "0.66050947", "0.6599621", "0.6598662", "0.6597277", "0.65922624", "0.65897226", "0.65847003", "0.65845364", "0.65844345", "0.65837526", "0.6581677", "0.65777147", "0.65673643", "0.65668917", "0.65651816", "0.65444344", "0.6541602", "0.6536979", "0.6535377", "0.6535123", "0.6532777", "0.6529783", "0.6524214", "0.65234345", "0.65215605", "0.65164685", "0.65158296", "0.6513637", "0.6507528", "0.65051466", "0.6501202", "0.6494447", "0.6493531", "0.6493531", "0.64903545", "0.6489852", "0.64867127", "0.64814675", "0.6477123" ]
0.0
-1
Clears all data currently sored in any memory persister
protected void clearPersistedData() { Logger.v(TAG, "Clearing persisted data"); try { MemoryPersister memoryPersister = (MemoryPersister) PersisterManager.getDataPersister(PersisterManager.STRATEGY_MEMORY); for (Map.Entry<Integer, DataPersister> dataPersisterEntry : memoryPersister.getDataPersisterMap().entrySet()) { dataPersisterEntry.getValue().clearPersistedData(); } } catch (DataPersistingException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear() { this.store.clear(); }", "public void clearStorage();", "private void clearData() {}", "public void clearAllData() {\n atoms.clear();\n connections.clear();\n lines.clear();\n radical = null;\n }", "public synchronized void clear() {\n _transient.clear();\n _persistent.clear();\n _references.clear();\n }", "public void clearData()\r\n {\r\n \r\n }", "public void clear() {\r\n\t\tdata.clear();\r\n\r\n\t}", "public void clear() {\n this.data().clear();\n }", "public void clear()\n {\n keys.clear();\n comments.clear();\n data.clear();\n }", "public void clearData() {\r\n\t\tdata = null;\r\n\t}", "public void clear() {\n helpers.clear();\n islandKeysCache.clear();\n setDirty();\n }", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "void clearData();", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public static void removeAll() {\n\t\tgetPersistence().removeAll();\n\t}", "public void clearData(){\n\r\n\t}", "public void removeAllData() {\n\t\tList<T> allData = this.getAllData();\r\n\t\t// clean the map\r\n\t\tthis.dataMap.clear();\r\n\t\t\r\n\t\t// notify the subscribers\r\n\t\tthis.notifyDeleted(allData);\r\n\t}", "@Override\n\tpublic void clearAll() {\n\t\t\n\t}", "private void clearMemory() {\n\t\tRunningAppMgr.getInstance(this).killAll();\n\t\tsetMemory();\n\t}", "public void clear(){\r\n\t\tthis.countRead \t\t\t= 0;\r\n\t\tthis.countReadData \t\t= 0;\r\n\t\tthis.countRemoved \t\t= 0;\r\n\t\tthis.countRemovedData \t= 0;\r\n\t\tthis.countWrite \t\t= 0;\r\n\t\tthis.countWriteData \t= 0;\r\n\t\tthis.dataList.clear();\r\n\t\tthis.dataMap.clear();\r\n\t}", "@Override\n public void clear() {\n size = 0;\n storage = null;\n }", "public void Clean()\n\t{\n\t\tstorage.clear();\n\t}", "public static void clearAllSavedUserData() {\n cacheUser = null;\n cacheAccessToken = null;\n getSharedPreferences().edit().clear().commit();\n }", "@Override\n public void clearData() {\n }", "public void clearDataCache() {\n\t\t_cumulativeVolumeTable.clear();\n\t\tbookMap.clear();\n\t\tquoteMap.clear();\n\t\tmillisCST = 0L;\n\t}", "@SneakyThrows\n public void deleteKeysFromMemory() {\n Preferences.userRoot().clear();\n }", "public void clearAll() {\n\t\tuserMap.clear();\n\t}", "public void clearAll();", "public void clearAll();", "private void clear() {\n\t\t\tkeySet.clear();\n\t\t\tvalueSet.clear();\n\t\t\tsize = 0;\n\t\t}", "protected void clearData() {\n any.type(any.type());\n }", "public void clearAll()\n {\n textureMap.clear();\n componentMap.clear();\n }", "public synchronized void resetMemoryValues() {\n memoryValues = null;\n }", "@Override\n\tpublic void clear() {\n\t\tmap.clear();\n\t\tkeys.clear();\n\t}", "public void clear() {\n documents.clearIsAllocated();\n documents.clear();\n }", "public void clear()\n\t{\n\t\tobjectToId.clear();\n\t\tidToObject.clear();\n\t}", "private void reset() {\n\t\tdata.clear();\n\t}", "public void clear()\n\t{\n\t\troot = null;\n\t\tmaxKeyLen = -1;\n\t\tsize = 0;\n\t}", "public void clear() {\n\n\t\tdata = null;\n\t\tnumRows = 0;\n\t\tnumCols = 0;\n\t\tsize = 0L;\n\n\t}", "public static void clear() {\r\n\t\tdata.set(Collections.<String, String> emptyMap());\r\n\t}", "void clear() {\n this.mapped_vms.clear();\n this.mapped_anti_coloc_job_ids.clear();\n this.used_cpu = BigInteger.ZERO;\n this.used_mem = BigInteger.ZERO;\n }", "public void clearData() {\r\n if (m_root != null) {\r\n m_root.destroy();\r\n m_root = null;\r\n }\r\n }", "public void clear()\n {\n pages.stream().forEach((page) -> {\n page.clearCache();\n });\n\n pages.clear();\n listeners.clear();\n occupiedEntries.clear();\n }", "public void clear() {\n\t\tthis._cooccurenceMatrix = null;\n\t\tthis._modules.clear();\n\t\tthis._vertices.clear();\n\t}", "void clearAll();", "void clearAll();", "public void clear()\n\t{\n\t\tfor (int i = 0; i < data.length; i++)\n\t\t{\n\t\t\tdata[i] = 0;\n\t\t}\n\t}", "public void clearAllPreferenceData() {\n sharedPreferences.edit().clear().apply();\n }", "protected abstract void clearAll();", "public void reset()\n {\n \tthis.heapFiles.clear();\n }", "public void clear() {\n\t\tentries.clear();\n\t}", "protected void clearData() {\n getValues().clear();\n getChildIds().clear();\n getBTreeMetaData().setDirty(this);\n }", "public void clear() {\n\t\t//Kill all entities\n\t\tentities.parallelStream().forEach(e -> e.kill());\n\n\t\t//Clear the lists\n\t\tentities.clear();\n\t\tdrawables.clear();\n\t\tcollidables.clear();\n\t}", "public void removeAllData() {\n dbHelper.removeAllData(db);\n }", "private void clearTemporaryData() {\n\n numbers.stream().forEach(n -> {\n n.setPossibleValues(null);\n n.setUsedValues(null);\n });\n }", "public void clearMemoryCache() {\r\n cache.evictAll();\r\n Log.d(TAG, \"Manually cleaned complete cache.\");\r\n }", "public void clean() {\r\n\t\t\r\n\t\tlogger.trace(\"Enter clean\");\r\n\t\t\r\n\t\tdata.clear();\r\n\t\tfireTableDataChanged();\r\n\t\t\r\n\t\tlogger.trace(\"Exit clean\");\r\n\t}", "public void clear() {\n\t\tjobInstanceDao.clear();\n\t\tjobExecutionDao.clear();\n\t\tstepExecutionDao.clear();\n\t\texecutionContextDao.clear();\n\t}", "@Override\n public void clear() {\n for (int i = 0; i < size; i++) {\n data[i] = null;\n }\n size = 0;\n }", "public void clear() {\n\t\tlocation.clear();\n\t\theap.clear();\n\t}", "public void clearLookups() {\n diseaseMap = null;\n feedMap = null;\n healthMapProvenance = null;\n }", "private void clearData() {\n em.createQuery(\"delete from ViajeroEntity\").executeUpdate();\n }", "public static void clearCache() {\n\t\tclassNamesToPersistIds = null;\n\t\tclassesToPersistIds = null;\n\t}", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();", "public void clear();" ]
[ "0.74550384", "0.74271345", "0.7407298", "0.739984", "0.7358318", "0.72994304", "0.72528946", "0.72419906", "0.7240752", "0.7233072", "0.72242945", "0.7214507", "0.7214507", "0.7171503", "0.7157967", "0.7157967", "0.7157967", "0.7157967", "0.7157967", "0.7157967", "0.7157967", "0.7157967", "0.7157967", "0.7157967", "0.71504503", "0.71325016", "0.7120246", "0.7116168", "0.71069264", "0.71002156", "0.7087082", "0.7060652", "0.70539016", "0.70199805", "0.70170885", "0.70073766", "0.700482", "0.700482", "0.69846904", "0.6979735", "0.6960184", "0.694234", "0.69247663", "0.69192845", "0.6916287", "0.6911971", "0.6911708", "0.68941104", "0.6886734", "0.68862253", "0.68684435", "0.68590206", "0.68449396", "0.68444055", "0.68444055", "0.683713", "0.6828984", "0.6827309", "0.68048257", "0.6804175", "0.6799563", "0.6793362", "0.67832685", "0.67800325", "0.6777627", "0.67747205", "0.6768484", "0.6768157", "0.6735002", "0.6734391", "0.67246246", "0.6720741", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558", "0.6720558" ]
0.8305071
0
Adjusts the System clock to return mocked results.
private void mockSystemClock() { mockedStartTimestamp = record.getRecorder().getStartTimestamp(); ShadowSystemClock.setCurrentTimeMillis(mockedStartTimestamp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void advanceSystemClock(long milliseconds) {\n ShadowSystemClock.setCurrentTimeMillis(ShadowSystemClock.currentTimeMillis() + milliseconds);\n }", "@Test\n public void resetClock_WhenCalled_ClockShouldBeResetTo0(){\n ContextManager.resetClock(\"David\");\n assertEquals(mockUser.clock , 0);\n\n }", "@Test\r\n\t// numero 43\r\n\tvoid testGetTime() {\n\t\tclock.setVirtual(true);\r\n\t\tlong result = clock.getTime();\r\n\t\tlong expected = 0;\r\n\t\tassertEquals(expected, result);\r\n\t\r\n\t// numero 44\r\n\t\t//sinon cela retourne Date().getTime()\r\n\t\tclock.setVirtual(false);\r\n\t\tlong result2 = clock.getTime();\r\n\t\tlong expected2 = new Date().getTime();\r\n\t\tassertEquals(expected2, result2);\r\n\r\n\t}", "Clock tryGetClock();", "public void testTheClock() throws Exception\r\n {\r\n Clock clock = new SimpleClock();\r\n String timestamp = clock.getTimestamp();\r\n Logger logger = Logger.getLogger( \"test\" );\r\n logger.info( timestamp );\r\n }", "public int giveClock()\n {\n return clock;\n }", "@Override\n public void run() {\n long startTime = System.nanoTime();\n\n int value = 0;\n int i = 0;\n LibInterfaceOneTest app2class = new LibInterfaceOneTest(\n getApplicationContext());\n System.gc();\n\n for (; i < testCases; i++) {\n value += app2class.testMethodCall2(value);\n }\n\n long finishTime = System.nanoTime();\n\n long totalTime = finishTime - startTime;\n\n long displayTime1 = (totalTime / 1000);\n long displayTime2 = (displayTime1 / 1000);\n long displayTime3 = (displayTime2 / 1000);\n Log.d(\"MAIN ACTIVITY\", \"Total: \" + value + \" total time: \"\n + totalTime + \" display: \" + displayTime1 + \", \"\n + displayTime2 + \", \" + displayTime3);\n longToChange = displayTime1;\n Toast.makeText(\n getApplicationContext(),\n \"Total Time : \" + displayTime1 + \" μs. \" + displayTime2\n + \" ms. \" + displayTime3 + \" ns.\",\n Toast.LENGTH_LONG).show();\n\n }", "protected void setupTime() {\n this.start = System.currentTimeMillis();\n }", "@Test\r\n\tpublic void testSetCurrentTime()\r\n\t{\r\n\t\tassertEquals(0, timeService.getTimeOffset());\r\n\r\n\t\tfinal Date futureTime = new Date(System.currentTimeMillis() + offset);\r\n\t\ttimeService.setCurrentTime(futureTime);\r\n\t\tassertTrue(timeService.getTimeOffset() != 0);\r\n\t\t// since we're setting the offset indirectly via Date it may not be exactly 60 seconds!\r\n\t\tassertTrue(offset >= timeService.getTimeOffset());\r\n\t\tassertTrue(offset / 2 < timeService.getTimeOffset());\r\n\r\n\t\t// since we're setting the offset indirectly via Date it may not be exactly 60 seconds!\r\n\t\tlong now = System.currentTimeMillis();\r\n\t\tfinal long diff = timeService.getCurrentTime().getTime() - now;\r\n\t\tassertTrue(diff != 0);\r\n\t\tassertTrue(offset >= diff);\r\n\t\tassertTrue(offset / 2 < diff);\r\n\r\n\t\tfinal Date nowTime = new Date(System.currentTimeMillis());\r\n\t\ttimeService.setCurrentTime(nowTime);\r\n\t\t// since we're setting the offset indirectly via Date it may not be exactly 0 seconds!\r\n\t\tassertTrue(0 <= timeService.getTimeOffset());\r\n\t\tnow = System.currentTimeMillis();\r\n\t\tassertTrue(0 <= timeService.getCurrentTime().getTime() - now);\r\n\r\n\t\ttimeService.setCurrentTime(null);\r\n\t\tassertEquals(0, timeService.getTimeOffset());\r\n\t\tassertTrue(0 <= timeService.getCurrentTime().getTime() - System.currentTimeMillis());\r\n\r\n\t\tfinal Date pastTime = new Date(System.currentTimeMillis() - offset);\r\n\t\ttimeService.setCurrentTime(pastTime);\r\n\t\t// since we're setting the offset indirectly via Date it may not be exactly 0 seconds!\r\n\t\tassertTrue(0 > timeService.getTimeOffset()); // definitely below 0\r\n\t\tassertTrue((-1 * offset) / 2 > timeService.getTimeOffset()); // should be also below offset/2\r\n\t\tassertTrue((-2 * offset) < timeService.getTimeOffset()); // should be above 2 * offset\r\n\r\n\t\t// since we're setting the offset indirectly via Date it may not be exactly 0 seconds!\r\n\t\tfinal long diff2 = timeService.getCurrentTime().getTime() - System.currentTimeMillis();\r\n\t\tassertTrue(0 > diff2); // definitely below 0\r\n\t\tassertTrue((-1 * offset) / 2 > diff2); // should also be below offest / 2\r\n\t\tassertTrue((-2 * offset) < diff2); // should also be above 2 * offset\r\n\t}", "@Before\n\tpublic void before() throws Exception {\n\t\tthis.clock = Clock.fixed(Instant.ofEpochSecond(1234567890L), ZoneOffset.UTC);\n\t}", "public void updateClock() {\n if (!this.mDemoMode) {\n this.mCalendar.setTimeInMillis(System.currentTimeMillis());\n setText(getSmallTime());\n setContentDescription(this.mContentDescriptionFormat.format(this.mCalendar.getTime()));\n }\n }", "public void clockChange(int time);", "@Test\t\t\n\t public void testSystem() {\n\t Date expected = new SystemTimeSource().getTimeMoment();\n\t\t Date actual = new Date();\n\t assertEquals(actual, expected);\n\t }", "public void resetClock()\n {\n startingTime = System.currentTimeMillis();\n }", "public void setClock(Clock clock) {\n this.clock = clock;\n }", "@Override\n public long getTotalHarvestingTime()\n {\n return 0;\n }", "@Override protected void doProcess(Time systemTime) {\n }", "@Test\n public void testGetExecutionStatsLocked_Caching() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).invalidateAllExecutionStatsLocked();\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (23 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (7 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (2 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (6 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), false);\n final ExecutionStats originalStatsActive;\n final ExecutionStats originalStatsWorking;\n final ExecutionStats originalStatsFrequent;\n final ExecutionStats originalStatsRare;\n synchronized (mQuotaController.mLock) {\n originalStatsActive = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", ACTIVE_INDEX);\n originalStatsWorking = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", WORKING_INDEX);\n originalStatsFrequent = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", FREQUENT_INDEX);\n originalStatsRare = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", RARE_INDEX);\n }\n\n // Advance clock so that the working stats shouldn't be the same.\n advanceElapsedClock(MINUTE_IN_MILLIS);\n // Change frequent bucket size so that the stats need to be recalculated.\n setDeviceConfigLong(QcConstants.KEY_WINDOW_SIZE_FREQUENT_MS, 6 * HOUR_IN_MILLIS);\n\n ExecutionStats expectedStats = new ExecutionStats();\n expectedStats.allowedTimePerPeriodMs = originalStatsActive.allowedTimePerPeriodMs;\n expectedStats.windowSizeMs = originalStatsActive.windowSizeMs;\n expectedStats.jobCountLimit = originalStatsActive.jobCountLimit;\n expectedStats.sessionCountLimit = originalStatsActive.sessionCountLimit;\n expectedStats.expirationTimeElapsed = originalStatsActive.expirationTimeElapsed;\n expectedStats.executionTimeInWindowMs = originalStatsActive.executionTimeInWindowMs;\n expectedStats.bgJobCountInWindow = originalStatsActive.bgJobCountInWindow;\n expectedStats.executionTimeInMaxPeriodMs = originalStatsActive.executionTimeInMaxPeriodMs;\n expectedStats.bgJobCountInMaxPeriod = originalStatsActive.bgJobCountInMaxPeriod;\n expectedStats.sessionCountInWindow = originalStatsActive.sessionCountInWindow;\n expectedStats.inQuotaTimeElapsed = originalStatsActive.inQuotaTimeElapsed;\n final ExecutionStats newStatsActive;\n synchronized (mQuotaController.mLock) {\n newStatsActive = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", ACTIVE_INDEX);\n }\n // Stats for the same bucket should use the same object.\n assertTrue(originalStatsActive == newStatsActive);\n assertEquals(expectedStats, newStatsActive);\n\n expectedStats.allowedTimePerPeriodMs = originalStatsWorking.allowedTimePerPeriodMs;\n expectedStats.windowSizeMs = originalStatsWorking.windowSizeMs;\n expectedStats.jobCountLimit = originalStatsWorking.jobCountLimit;\n expectedStats.sessionCountLimit = originalStatsWorking.sessionCountLimit;\n expectedStats.expirationTimeElapsed = originalStatsWorking.expirationTimeElapsed;\n expectedStats.executionTimeInWindowMs = originalStatsWorking.executionTimeInWindowMs;\n expectedStats.bgJobCountInWindow = originalStatsWorking.bgJobCountInWindow;\n expectedStats.sessionCountInWindow = originalStatsWorking.sessionCountInWindow;\n expectedStats.inQuotaTimeElapsed = originalStatsWorking.inQuotaTimeElapsed;\n final ExecutionStats newStatsWorking;\n synchronized (mQuotaController.mLock) {\n newStatsWorking = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", WORKING_INDEX);\n }\n assertTrue(originalStatsWorking == newStatsWorking);\n assertNotEquals(expectedStats, newStatsWorking);\n\n expectedStats.allowedTimePerPeriodMs = originalStatsFrequent.allowedTimePerPeriodMs;\n expectedStats.windowSizeMs = originalStatsFrequent.windowSizeMs;\n expectedStats.jobCountLimit = originalStatsFrequent.jobCountLimit;\n expectedStats.sessionCountLimit = originalStatsFrequent.sessionCountLimit;\n expectedStats.expirationTimeElapsed = originalStatsFrequent.expirationTimeElapsed;\n expectedStats.executionTimeInWindowMs = originalStatsFrequent.executionTimeInWindowMs;\n expectedStats.bgJobCountInWindow = originalStatsFrequent.bgJobCountInWindow;\n expectedStats.sessionCountInWindow = originalStatsFrequent.sessionCountInWindow;\n expectedStats.inQuotaTimeElapsed = originalStatsFrequent.inQuotaTimeElapsed;\n final ExecutionStats newStatsFrequent;\n synchronized (mQuotaController.mLock) {\n newStatsFrequent = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", FREQUENT_INDEX);\n }\n assertTrue(originalStatsFrequent == newStatsFrequent);\n assertNotEquals(expectedStats, newStatsFrequent);\n\n expectedStats.allowedTimePerPeriodMs = originalStatsRare.allowedTimePerPeriodMs;\n expectedStats.windowSizeMs = originalStatsRare.windowSizeMs;\n expectedStats.jobCountLimit = originalStatsRare.jobCountLimit;\n expectedStats.sessionCountLimit = originalStatsRare.sessionCountLimit;\n expectedStats.expirationTimeElapsed = originalStatsRare.expirationTimeElapsed;\n expectedStats.executionTimeInWindowMs = originalStatsRare.executionTimeInWindowMs;\n expectedStats.bgJobCountInWindow = originalStatsRare.bgJobCountInWindow;\n expectedStats.sessionCountInWindow = originalStatsRare.sessionCountInWindow;\n expectedStats.inQuotaTimeElapsed = originalStatsRare.inQuotaTimeElapsed;\n final ExecutionStats newStatsRare;\n synchronized (mQuotaController.mLock) {\n newStatsRare = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", RARE_INDEX);\n }\n assertTrue(originalStatsRare == newStatsRare);\n assertEquals(expectedStats, newStatsRare);\n }", "Object getClock();", "public void updateClock(){\n clock += 1;\n if(clock >= 10000){\n clock = 0;\n }\n if (clock % (180 - playerShipManaRate) == 0){\n updateMana(\"player\", 1);\n }\n if (clock % (180 - enemyShipManaRate) == 0){\n updateMana(\"enemy\", 1);\n }\n }", "public void clock(double period);", "public void setCurrentPlayTime(long playTime) { throw new RuntimeException(\"Stub!\"); }", "@Test\n public void modTimeTest() {\n // TODO: test modTime\n }", "@Test\n\tpublic void getTheCurrentDateSystem() {\n\t\tAssert.assertNotNull(\"The actual date is returned in the expected format \",\n\t\t\t\tTimeMilisecondHelper.fromMilisecondsToDate());\n\t}", "@After\n public void after() {\n DateTimeUtils.setCurrentMillisSystem();\n }", "SystemNanoClock(boolean deprecationOverride) {\n mStartTimeNanos = System.nanoTime();\n }", "public ClockTest( String testName )\r\n {\r\n super( testName );\r\n }", "@Override\n public void startClock() {\n state = ClockState.RUNNING;\n /*\n * Used as scaling factor for workload and virtual machine power --> Need to\n * scale output as well\n */\n double scalingFactor = this.clockTicksTillWorkloadChange*this.intervalDurationInMilliSeconds;\n clockEventPublisher.fireStartSimulationEvent(0, intervalDurationInMilliSeconds, scalingFactor);\n\n while (clockTickCount <= experimentDurationInClockTicks) {\n fireEvents();\n clockTickCount++;\n\n }\n clockEventPublisher.fireFinishSimulationEvent(clockTickCount, intervalDurationInMilliSeconds);\n\n }", "private void startTiming() {\n m_startTime = Calendar.getInstance().getTimeInMillis();\n }", "public void setAlarmClock() {\n\n }", "public interface Clock {\n\n /**\n * @return The current time in milliseconds since epoch time.\n * @see System#currentTimeMillis()\n */\n long now();\n\n /**\n * Computes a point of time in the future.\n * \n * @param durationInMillis The point in the future, in milliseconds relative to the {@link #now()\n * current time}.\n * @return A timestamp representing a point in the future.\n */\n long laterBy(long durationInMillis);\n\n /**\n * Tests if a point in time occurs before the {@link #now() current time}.\n * \n * @param endInMillis The timestamnp to check.\n * @return Whether the given timestamp represents a point in time before the current time.\n */\n boolean isNowBefore(long endInMillis);\n\n}", "@Test\n public void testResetA() {\n assertNotEquals(TEST_TIME_MS, DateTimeUtils.currentTimeMillis());\n resetDateTimeProviderRule.setDateTimeFixed(TEST_TIME);\n assertEquals(TEST_TIME_MS, DateTimeUtils.currentTimeMillis());\n }", "public static void main(String args[]) {\n\t\t// Initialize a new digital clock, referenced by the variable\n\t\t// myClock, and initialized to 7h35. \n\t\tDigitalClock myClock = new DigitalClock(7,35);\n\t\t\tSystem.out.println(\"Expected time: 7h35\");\n\t\t\tSystem.out.println(\" \" + myClock.getHours() + \"h\" + myClock.getMinutes());\n\t\t// Initialize another new digital clock, referenced by the variable\n\t\t// yourClock, and initialized to 0h00. \n\t\tDigitalClock yourClock = new DigitalClock();\n\t\t\tSystem.out.println(\"Expected time: 0h00\");\n\t\t\tSystem.out.println(\" \" + yourClock.getHours() + \"h\" + yourClock.getMinutes());\n\t\t// Change the hours displayed by myClock to 33.\n\t\tmyClock.setHours(33);\n\t\t\tSystem.out.println(\"Expected time: 9h35\");\n\t\t\tSystem.out.println(\" \" + myClock.getHours() + \"h\" + myClock.getMinutes());\n\t\t// Introduce a local variable myMinutes, initialized with the\n\t\t// minutes displayed by myClock.\n\t\tint myMinutes = myClock.getMinutes();\n\t\t// Make the variable yourClock reference the digital clock referenced\n\t\t// by the variable myClock.\n\t\tyourClock = myClock;\n\t\t// Advance the minutes of the digital clock referenced by the\n\t\t// variable yourClock.\n\t\tyourClock.advanceMinutes();\n\t\t\tSystem.out.println(\"Expected time: 9h36\");\n\t\t\tSystem.out.println(\" \" + myClock.getHours() + \"h\" + myClock.getMinutes());\t\n\t\t\tSystem.out.println(\"Expected value: 35\");\n\t\t\tSystem.out.println(\" \" + myMinutes);\n\t}", "public double readClock()\n {\n return (System.currentTimeMillis() - startingTime) / 1000.0;\n }", "long getCurrentClockNs() {\n return System.nanoTime();\n }", "public static void setTime(){\n\t\tCalendar cal = Calendar.getInstance();\n\t\tif (!JsonUtils.RUNNING_LOCALLY){\n\t\t\tcal.set(Calendar.HOUR_OF_DAY, cal.get(Calendar.HOUR_OF_DAY) - 4); //account for UTC offset because of lambda\n\t\t}\n\t\tCURRENT_TIME = formatTime(cal.getTime().toString());\n\t}", "public static void restartTiming() {\n SimulatorJNI.restartTiming();\n }", "@Override\n public void run() {\n long startTime = System.nanoTime();\n\n int value = 0;\n int i = 0;\n MainActivity tester = new MainActivity();\n System.gc();\n\n for (; i < testCases; i++) {\n value += tester.intMethod(value);\n }\n\n long finishTime = System.nanoTime();\n\n Log.d(\"MAIN ACTIVITY\",\n \"************** math = \" + tester.intMethod(100));\n\n long totalTime = finishTime - startTime;\n\n long displayTime1 = (totalTime / 1000);\n long displayTime2 = (displayTime1 / 1000);\n long displayTime3 = (displayTime2 / 1000);\n Log.d(\"MAIN ACTIVITY\", \"value: \" + value + \" total time: \"\n + totalTime + \" display: \" + displayTime1 + \", \"\n + displayTime2 + \", \" + displayTime3);\n longToChange = displayTime1;\n Toast.makeText(\n getApplicationContext(),\n \"Total: \" + value + \" Total Time : \" + displayTime1\n + \" μs. \" + displayTime2 + \" ms. \" + displayTime3\n + \" ns.\", Toast.LENGTH_LONG).show();\n\n }", "private static float tock(){\n\t\treturn (System.currentTimeMillis() - startTime);\n\t}", "public /* synthetic */ void lambda$onReceive$2$Clock$2() {\n Clock.this.updateClock();\n }", "public static long CLOCK() {\n return java.lang.System.currentTimeMillis();\n }", "@Test\n public void SpeedControlTest() {\n\n /**\n * Setting up mock\n * */\n Gdx.input = mock(Input.class);\n Course course = mock(Course.class);\n when(course.getLeftBoundary()).thenReturn(0);\n when(course.getRightBoundary()).thenReturn(1080);\n\n\n /**\n * tests cases for when increasing speed\n * creating player to test on and setting test case stats\n * */\n\n player.setStats(5, 11, 3, 3);\n\n float start = player.getCurrentSpeed();\n when(Gdx.input.isKeyPressed(Input.Keys.W)).thenReturn(true);\n player.GetInput(course);\n float finish = player.getCurrentSpeed();\n\n assertTrue(finish > start);\n\n /**\n * resetting stat\n * */\n player.setCurrentSpeed(2);\n\n /**\n * test cases for when decreasing speed\n * */\n when(Gdx.input.isKeyPressed(Input.Keys.S)).thenReturn(true);\n player.GetInput(course);\n\n assertTrue(2 > player.getCurrentSpeed());\n\n }", "@Override\n public void testPeriodic()\n {\n \n }", "@Override\n\t\tpublic final double time() throws Throwable {\n\t\t\tinit();\n\t\t\ttimer.lap();\n\t\t\ttimed();\n\t\t\tdouble time = timer.lap();\n\t\t\tcleanup();\n\t\t\treturn time;\n\t\t}", "@Override\n public void run() {\n long startTime = System.nanoTime();\n\n int value = 0;\n int i = 0;\n System.gc();\n\n for (; i < testCases; i++) {\n value += MainActivity.intMethod2(value);\n }\n\n long finishTime = System.nanoTime();\n\n long totalTime = finishTime - startTime;\n\n long displayTime1 = (totalTime / 1000);\n long displayTime2 = (displayTime1 / 1000);\n long displayTime3 = (displayTime2 / 1000);\n Log.d(\"MAIN ACTIVITY\", \"total time: \" + totalTime + \" display: \"\n + displayTime1 + \", \" + displayTime2 + \", \" + displayTime3);\n longToChange = displayTime1;\n Toast.makeText(\n getApplicationContext(),\n \"Value: \" + value + \"Total Time : \" + displayTime1\n + \" μs. \" + displayTime2 + \" ms. \" + displayTime3\n + \" ns.\", Toast.LENGTH_LONG).show();\n\n }", "public long getCurrentPlayTime() {\n/* 284 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Test\n public void testGetExecutionStatsLocked_Values_BeginningOfTime() {\n // Set time to 3 minutes after boot.\n advanceElapsedClock(-JobSchedulerService.sElapsedRealtimeClock.millis());\n advanceElapsedClock(3 * MINUTE_IN_MILLIS);\n\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(MINUTE_IN_MILLIS, MINUTE_IN_MILLIS, 2), false);\n\n ExecutionStats expectedStats = new ExecutionStats();\n\n // Active\n expectedStats.allowedTimePerPeriodMs = 10 * MINUTE_IN_MILLIS;\n expectedStats.windowSizeMs = 10 * MINUTE_IN_MILLIS;\n expectedStats.jobCountLimit = mQcConstants.MAX_JOB_COUNT_ACTIVE;\n expectedStats.sessionCountLimit = mQcConstants.MAX_SESSION_COUNT_ACTIVE;\n expectedStats.expirationTimeElapsed = 11 * MINUTE_IN_MILLIS;\n expectedStats.executionTimeInWindowMs = MINUTE_IN_MILLIS;\n expectedStats.bgJobCountInWindow = 2;\n expectedStats.executionTimeInMaxPeriodMs = MINUTE_IN_MILLIS;\n expectedStats.bgJobCountInMaxPeriod = 2;\n expectedStats.sessionCountInWindow = 1;\n synchronized (mQuotaController.mLock) {\n assertEquals(expectedStats,\n mQuotaController.getExecutionStatsLocked(0, \"com.android.test\", ACTIVE_INDEX));\n }\n\n // Working\n expectedStats.windowSizeMs = 2 * HOUR_IN_MILLIS;\n expectedStats.jobCountLimit = mQcConstants.MAX_JOB_COUNT_WORKING;\n expectedStats.sessionCountLimit = mQcConstants.MAX_SESSION_COUNT_WORKING;\n expectedStats.expirationTimeElapsed = 2 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS;\n synchronized (mQuotaController.mLock) {\n assertEquals(expectedStats,\n mQuotaController.getExecutionStatsLocked(0, \"com.android.test\", WORKING_INDEX));\n }\n\n // Frequent\n expectedStats.windowSizeMs = 8 * HOUR_IN_MILLIS;\n expectedStats.jobCountLimit = mQcConstants.MAX_JOB_COUNT_FREQUENT;\n expectedStats.sessionCountLimit = mQcConstants.MAX_SESSION_COUNT_FREQUENT;\n expectedStats.expirationTimeElapsed = 8 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS;\n synchronized (mQuotaController.mLock) {\n assertEquals(expectedStats,\n mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", FREQUENT_INDEX));\n }\n\n // Rare\n expectedStats.windowSizeMs = 24 * HOUR_IN_MILLIS;\n expectedStats.jobCountLimit = mQcConstants.MAX_JOB_COUNT_RARE;\n expectedStats.sessionCountLimit = mQcConstants.MAX_SESSION_COUNT_RARE;\n expectedStats.expirationTimeElapsed = 24 * HOUR_IN_MILLIS + MINUTE_IN_MILLIS;\n synchronized (mQuotaController.mLock) {\n assertEquals(expectedStats,\n mQuotaController.getExecutionStatsLocked(0, \"com.android.test\", RARE_INDEX));\n }\n }", "public void startTime() {\n\t\tthis.clock.start();\n\t}", "@Override\n public long getHarvestingTime(String harvesterName)\n {\n return 0;\n }", "public void setCurrentPlayTime(long playTime) {\n/* 271 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void updateTime(){\r\n\t\tBlock selectedBlock = experiment.getBlocking().getSelectedBlockStructure();\r\n\t\testimatedTimeTotal.setText(secondsToString(estimateTime()));\r\n\t\testimatedTimeSubject.setText(secondsToString((long)(estimateTime()/selectedBlock.get(0).getReplications())));\r\n\t}", "public void resetTime() {\n\t\ttime_passed = 0l;\n\t}", "public synchronized void resetTime() {\n }", "@Test\n void deve_retornar_uma_lista_de_time() {\n List<TimeEntity> timeEntityList = TimeEntityStub.getTimeEntityList();\n when(timeManagementRepository.findAllByUserIdAndAndDate(any(), any())).thenReturn(timeEntityList);\n List<LocalTime> times = timeService.findTimes(TimeModelStub.getTimeModel());\n Assert.assertEquals(\"10:30:00.000\", times.get(0).toString());\n }", "@Override\n public void testPeriodic() {\n }", "public void testTime()\n {\n SudokuTimer test = new SudokuTimer();\n\n mTimer.start();\n test.start();\n\n for (int i = 0; i < 1000000000; i++)\n {\n }\n\n assertTrue(mTimer.toString().equals(test.toString()));\n\n mTimer.stop();\n\n for (int i = 0; i < 1000000000; i++)\n {\n }\n\n assertFalse(mTimer.toString().equals(test.toString()));\n\n test.stop();\n mTimer.start();\n\n for (int i = 0; i < 1000000000; i++)\n {\n }\n\n mTimer.stop();\n\n //checks to the nearest second\n assertEquals(mTimer.getElapsedTime() / 1000,\n test.getElapsedTime() / 1000);\n }", "public void resetClock()\n {\n\tstartTime = System.currentTimeMillis();\n\tpauseTime = startTime;\n\n computeClock = 0;\n\n\tframeNumber = 0;\n }", "@Test\n public void computeFactor_SummerTimeHour() {\n long startTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-03-25 00:00:00\");\n long endTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-03-25 23:59:59\");\n BillingInput billingInput = BillingInputFactory.newBillingInput(\n \"2012-03-01 00:00:00\", \"2012-04-01 00:00:00\");\n\n // when\n double factor = calculator.computeFactor(PricingPeriod.HOUR,\n billingInput, startTimeUsage, endTimeUsage, true, true);\n\n if (DateTimeHandling.isDayLightSaving(startTimeUsage, endTimeUsage)) {\n // then day has 23 hours\n assertEquals(23, factor, 0);\n } else {\n // then day has 24 hours\n assertEquals(24, factor, 0);\n }\n\n }", "private long CurrentTime(){\n return (TotalRunTime + System.nanoTime() - StartTime)/1000000;\n }", "private void timeSync() throws InterruptedException {\n long realTimeDateMs = currentTimeMs - System.currentTimeMillis();\n long sleepTime = periodMs + realTimeDateMs + randomJitter();\n\n if (slowdownFactor != 1) {\n sleepTime = periodMs * slowdownFactor;\n }\n\n if (sleepTime > 0) {\n Thread.sleep(sleepTime);\n }\n }", "public void makeNow() {\n makeNow(0);\n }", "public void testFindEmployeeOrdersWithTimer() {\n\t\tSystem.out.println(\"started test testFindEmployeeOrdersWithTimer\");\n\t\tlong start = System.currentTimeMillis();\n\t\tFlux<Order> empFoundOrders = employeeController.findEmployeeOrders(employee.getAge()).take(10);\n\t\t\n\t\tStepVerifier.withVirtualTime(() -> empFoundOrders)\n\t\t\t\t\t.expectSubscription()\n\t\t\t\t\t.thenAwait(Duration.ofHours(10))\n\t\t\t\t\t.expectNextCount(10)\n\t\t\t\t\t.verifyComplete();\n\t\tlong end = System.currentTimeMillis();\n\t\tdouble totatSeconds = (end-start)/1000;\n\t\tSystem.out.println(\"completed test testFindEmployeeOrdersWithTimer in time \"+totatSeconds);\n\t}", "public abstract double sensingTime();", "@Override\n public synchronized void reset() {\n m_accumulatedTime = 0;\n m_startTime = getMsClock();\n }", "public void timePasses(){\n crtClock++;\n if(crtClock==25)crtClock=1; // If end of day, reset to 1\n if(crtClock<=opHours)tellMeterToConsumeUnits(unitsPerHr);\n }", "public void resetTimeTrackingManager() {\n this.timeTrankiManager.setHour(9);\n this.timeTrankiManager.setMinute(0);\n this.timeTrankiManager.setSecond(0);\n }", "void setTestAlarm() \n {\n \t// start with now\n java.util.Calendar c = java.util.Calendar.getInstance();\n c.setTimeInMillis(System.currentTimeMillis());\n\n int nowHour = c.get(java.util.Calendar.HOUR_OF_DAY);\n int nowMinute = c.get(java.util.Calendar.MINUTE);\n\n int minutes = (nowMinute + 1) % 60;\n int hour = nowHour + (nowMinute == 0 ? 1 : 0);\n\n saveAlarm(this, mId, true, hour, minutes, mRepeatPref.getDaysOfWeek(),\n true, \"\", mAlarmPref.getAlertString(), true);\n }", "public void updateGameTime() {\n\t\tGameTime = Timer.getMatchTime();\n\t}", "@Override\n\tpublic long getCurrentTime() {\n\t\treturn 0;\n\t}", "@Override\n public long getTimeNeeded() {\n return timeNeeded;\n }", "@Override\n public Clock withZone(ZoneId zone) {\n return new MutableClockStub(instant, zone);\n }", "@CheckReturnValue\n public abstract long getTimeUntilReset();", "@Test(description = \"This test verifies api response time\", groups = { \"topmonitor\" }, enabled = false)\n\tpublic void testResponseTime() {\n\t\tString api = \"http://economictimes.indiatimes.com/homefeed.cms?feedtype=etjson&curpg=1\";\n\t\tLong startTime = System.currentTimeMillis();\n\t\tApiHelper.getAPIResponse(api);\n\t\tLong endTime = System.currentTimeMillis();\n\t\tLong totalTime = endTime - startTime;\n\t\tDBUtil.dbInsertApi(new Date(), api, totalTime.doubleValue());\n\t}", "public void pauseUntilNextClock(){\n\t\tlong sleepTime = (long) (1000.0 / Settings.getSettings().getClockSpeed())\n\t\t\t\t- (System.currentTimeMillis() - this.mStartOfClock);\n\t\t\n\t\tif(sleepTime > 0){\n\t\t\ttry {\n\t\t\t\tThread.sleep(sleepTime);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}else{\n\t\t\tSystem.out.println(\"WARNING: System cannot keep up with simulator clock speed!\");\n\t\t\tSystem.out.println(\"WARNING: Reduce clock speed!\");\n\t\t\t}\n\t\t\n\t\tthis.mStartOfClock = System.currentTimeMillis();\n\t}", "@Override\n public void referenceClockTime(long value, boolean seconds) {\n }", "private long calculatePostTime() {\n return System.currentTimeMillis();\n }", "public abstract double calculateStartTime();", "public void setSimTimeInRealTime(long simTimeInRealTime) {\n\t\tthis.simTimeInRealTime = simTimeInRealTime;\n\t}", "@Override\n public void testPeriodic() {\n\n LiveWindow.updateValues();\n }", "private void setUpLocalServices() {\n tearDownLocalServices();\n\n // UriGrantsManagerInternal\n final UriGrantsManagerInternal ugmi = mock(UriGrantsManagerInternal.class);\n LocalServices.addService(UriGrantsManagerInternal.class, ugmi);\n\n // AppOpsManager\n final AppOpsManager aom = mock(AppOpsManager.class);\n doReturn(aom).when(mContext).getSystemService(eq(Context.APP_OPS_SERVICE));\n\n // DeviceStateManager\n final DeviceStateManager dsm = mock(DeviceStateManager.class);\n doReturn(dsm).when(mContext).getSystemService(eq(Context.DEVICE_STATE_SERVICE));\n\n // Prevent \"WakeLock finalized while still held: SCREEN_FROZEN\".\n final PowerManager pm = mock(PowerManager.class);\n doReturn(pm).when(mContext).getSystemService(eq(Context.POWER_SERVICE));\n mStubbedWakeLock = createStubbedWakeLock(false /* needVerification */);\n doReturn(mStubbedWakeLock).when(pm).newWakeLock(anyInt(), anyString());\n doReturn(mStubbedWakeLock).when(pm).newWakeLock(anyInt(), anyString(), anyInt());\n\n // DisplayManagerInternal\n final DisplayManagerInternal dmi = mock(DisplayManagerInternal.class);\n doReturn(dmi).when(() -> LocalServices.getService(eq(DisplayManagerInternal.class)));\n\n // ColorDisplayServiceInternal\n final ColorDisplayService.ColorDisplayServiceInternal cds =\n mock(ColorDisplayService.ColorDisplayServiceInternal.class);\n doReturn(cds).when(() -> LocalServices.getService(\n eq(ColorDisplayService.ColorDisplayServiceInternal.class)));\n\n final UsageStatsManagerInternal usmi = mock(UsageStatsManagerInternal.class);\n LocalServices.addService(UsageStatsManagerInternal.class, usmi);\n\n // PackageManagerInternal\n final PackageManagerInternal packageManagerInternal = mock(PackageManagerInternal.class);\n LocalServices.addService(PackageManagerInternal.class, packageManagerInternal);\n doReturn(false).when(packageManagerInternal).isPermissionsReviewRequired(\n anyString(), anyInt());\n doReturn(null).when(packageManagerInternal).getDefaultHomeActivity(anyInt());\n\n ComponentName systemServiceComponent = new ComponentName(\"android.test.system.service\", \"\");\n doReturn(systemServiceComponent).when(packageManagerInternal).getSystemUiServiceComponent();\n\n // PowerManagerInternal\n final PowerManagerInternal pmi = mock(PowerManagerInternal.class);\n final PowerSaveState state = new PowerSaveState.Builder().build();\n doReturn(state).when(pmi).getLowPowerState(anyInt());\n doReturn(pmi).when(() -> LocalServices.getService(eq(PowerManagerInternal.class)));\n\n // PermissionPolicyInternal\n final PermissionPolicyInternal ppi = mock(PermissionPolicyInternal.class);\n LocalServices.addService(PermissionPolicyInternal.class, ppi);\n doReturn(true).when(ppi).checkStartActivity(any(), anyInt(), any());\n\n // InputManagerService\n mImService = mock(InputManagerService.class);\n // InputChannel cannot be mocked because it may pass to InputEventReceiver.\n final InputChannel[] inputChannels = InputChannel.openInputChannelPair(TAG);\n inputChannels[0].dispose();\n mInputChannel = inputChannels[1];\n doReturn(mInputChannel).when(mImService).monitorInput(anyString(), anyInt());\n doReturn(mInputChannel).when(mImService).createInputChannel(anyString());\n\n // StatusBarManagerInternal\n final StatusBarManagerInternal sbmi = mock(StatusBarManagerInternal.class);\n doReturn(sbmi).when(() -> LocalServices.getService(eq(StatusBarManagerInternal.class)));\n }", "@Before\n public void reset() {\n DateTimeZone.setDefault(DateTimeZone.UTC);\n DateTimeUtils.setCurrentMillisFixed(1L);\n suppressAllWarnings = true;\n }", "public BigDecimal getSetupTimeReal() {\n\t\tBigDecimal bd = (BigDecimal) get_Value(\"SetupTimeReal\");\n\t\tif (bd == null)\n\t\t\treturn Env.ZERO;\n\t\treturn bd;\n\t}", "public void setDelay(double clock);", "public void mock(){\n\n }", "public void setTime(){\n \tDatabaseManager.getDBM().setLockedTime(cal); \n }", "protected void setup() {\n\t\t\n\n\n\t\tif(PropertiesLoaderImpl.IS_MAIN_SIMULATION_NODE)addBehaviour(new HandleClockBehaviour(this, TimeRateControl));\n\t\telse addBehaviour(new SlaveNodeClockBehaviour(this, TimeRateControl));\n\t\t\n\t\tif(PropertiesLoaderImpl.DEBUG) System.out.println(this.getName() +\" alive!!!!!!!!!!\\nStarting the simulation time\");\n\t\t\n\t\n\t\t\tSimulationClock.getInstance().setSimulationStarted(true);\n\t\n\t}", "public abstract void updateTime(int currentTime);", "public static void startTimeMeasure() {\n \tstartTime = System.nanoTime();\n }", "@Test\n public void testTimeToPayOff() {\n assertEquals(expectedResults.getMonthsToPayOff(), results.getMonthsToPayOff());\n }", "@Override\n\tpublic void testPeriodic() {}" ]
[ "0.63777465", "0.6364044", "0.6292313", "0.57872516", "0.57706296", "0.572739", "0.57173777", "0.5674285", "0.5673685", "0.56094766", "0.55963904", "0.5584961", "0.5549698", "0.55242026", "0.5490895", "0.54599524", "0.5448794", "0.54404235", "0.5420481", "0.5413957", "0.53933644", "0.5364538", "0.536242", "0.5349365", "0.5335772", "0.53166306", "0.5315968", "0.5252644", "0.52487946", "0.524659", "0.52414244", "0.5237158", "0.52353615", "0.5194613", "0.5191386", "0.5186969", "0.51815206", "0.5181137", "0.5172231", "0.5163199", "0.51630443", "0.5153218", "0.51443505", "0.51415443", "0.51386476", "0.51182383", "0.51006955", "0.51006955", "0.51006955", "0.51006955", "0.51006955", "0.51006955", "0.51006955", "0.51006955", "0.51006955", "0.51006955", "0.50972223", "0.50962836", "0.50873226", "0.50823575", "0.5067011", "0.5059724", "0.5058498", "0.5052995", "0.50493777", "0.5033801", "0.5026201", "0.50225246", "0.50102246", "0.5008543", "0.5007458", "0.4997638", "0.49924767", "0.49814254", "0.49807414", "0.4979073", "0.49789107", "0.4969737", "0.49675563", "0.49667448", "0.4957743", "0.49479705", "0.4946931", "0.49461424", "0.49262765", "0.4923905", "0.4920481", "0.49185717", "0.49149203", "0.4914858", "0.4910757", "0.4909496", "0.49087593", "0.49048302", "0.48877388", "0.4885855", "0.4878611", "0.4876242", "0.4870683", "0.48696727" ]
0.78425604
0
create aggregator map with every available aggregator
public void triggerAllAggregators() { Map<Integer, TimedDataAggregator> aggregatorMap = new HashMap<>(); aggregatorMap.putAll(FeatureAggregators.getInstance().getAggregatorMap()); aggregatorMap.putAll(StateAggregators.getInstance().getAggregatorMap()); aggregatorMap.putAll(ClassificationAggregators.getInstance().getAggregatorMap()); aggregatorMap.putAll(TrustLevelAggregators.getInstance().getAggregatorMap()); // create shadow loopers for all aggregators Map<Integer, ShadowLooper> shadowLooperMap = createShadowLoopers(aggregatorMap); // set duration according to record long duration = record.getRecorder().getStopTimestamp() - record.getRecorder().getStartTimestamp(); // trigger all aggregators triggerAggregators(aggregatorMap, shadowLooperMap, duration); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, Set<String>> getAggregatorToFields()\n {\n if (aggregatorToField != null) {\n return aggregatorToField;\n }\n\n Map<String, Set<String>> aggregatorToFields = Maps.newHashMap();\n\n for (Map.Entry<String, Set<String>> entry : fieldToAggregator.entrySet()) {\n String field = entry.getKey();\n Set<String> aggregators = entry.getValue();\n\n for (String aggregatorName : aggregators) {\n Set<String> fieldSet = aggregatorToFields.get(aggregatorName);\n\n if (fieldSet == null) {\n fieldSet = Sets.newHashSet();\n aggregatorToFields.put(aggregatorName, fieldSet);\n }\n\n fieldSet.add(field);\n }\n }\n\n aggregatorToField = Maps.newHashMap();\n\n for (Map.Entry<String, Set<String>> entry : aggregatorToFields.entrySet()) {\n aggregatorToField.put(entry.getKey(), Collections.unmodifiableSet(entry.getValue()));\n }\n\n aggregatorToField = Collections.unmodifiableMap(aggregatorToField);\n return aggregatorToField;\n }", "@Override\n public Map<String, OEEReport> build() {\n return generators.entrySet().stream().collect(Collectors.toMap(\n entry -> entry.getKey(),\n entry -> entry.getValue().getReport()\n ));\n }", "@Override\n\tpublic void extractAggFn(List<Expr> collector) {\n\n\t}", "Aggregators retrieveAggregators() throws RepoxException;", "private Map<ServiceIdentifier<?>, Map<RegionIdentifier, Double>> aggregateDemandMap(\n ImmutableMap<ServiceIdentifier<?>, ImmutableMap<RegionIdentifier, ImmutableMap<NodeAttribute, Double>>> inferredServerDemand) {\n \n final Map<ServiceIdentifier<?>, Map<RegionIdentifier, Double>> demandMap = new HashMap<>();\n \n for (Entry<ServiceIdentifier<?>, ImmutableMap<RegionIdentifier, ImmutableMap<NodeAttribute, Double>>> serviceEntry : inferredServerDemand.entrySet()) {\n ServiceIdentifier<?> service = serviceEntry.getKey();\n \n for (Entry<RegionIdentifier, ImmutableMap<NodeAttribute, Double>> regionEntry : serviceEntry.getValue().entrySet()) {\n updateKeyKeyLoadMap(demandMap, service, regionEntry.getKey(), sumValues(regionEntry.getValue()), true);\n }\n }\n \n return demandMap;\n }", "static List<MeanWithClusterProbAggregator> map(GmmPartitionData data, int countOfComponents) {\n List<MeanWithClusterProbAggregator> aggregators = new ArrayList<>();\n for (int i = 0; i < countOfComponents; i++)\n aggregators.add(new MeanWithClusterProbAggregator());\n\n for (int i = 0; i < data.size(); i++) {\n for (int c = 0; c < countOfComponents; c++)\n aggregators.get(c).add(data.getX(i), data.pcxi(c, i));\n }\n\n return aggregators;\n }", "private void initialize()\n {\n aggregatedFields = new Fields(fieldToAggregator.keySet());\n }", "@Override\n public List<Map<String, Serializable>> getResult() {\n Preconditions.checkState(_finish, \"GetResult cannot be called before finish.\");\n List<Map<String, Serializable>> result = new ArrayList<Map<String, Serializable>>(_aggrFuncContextList.size());\n\n for (int i = 0; i < _aggrFuncContextList.size(); i++) {\n result.add(new HashMap<String, Serializable>());\n }\n\n Iterator<Pair<Long, String>> groupKeys = _groupKeyGenerator.getUniqueGroupKeys();\n while (groupKeys.hasNext()) {\n Pair<Long, String> idKeyPair = groupKeys.next();\n String stringGroupKey = idKeyPair.getSecond();\n\n for (int i = 0; i < _aggrFuncContextList.size(); i++) {\n double resultForGroupKey = _resultHolderArray[i].getResultForGroupKey(idKeyPair.getFirst());\n result.get(i).put(stringGroupKey, resultForGroupKey);\n }\n }\n return result;\n }", "private static Map<String, FeatureGroupType> buildAvailableFeatureGroupMap(List<FeatureGroupType> featureGroups){\r\n\t\tMap<String, FeatureGroupType> featureMap = new HashMap<String, FeatureGroupType>();\r\n\t\tfor(FeatureGroupType feature : featureGroups){\r\n\t\t\tfeatureMap.put(feature.getExternalId(), feature);\r\n\t\t}\r\n\t\treturn featureMap;\r\n\t}", "DataProviders retrieveAggregatorProviders(Aggregator agr) throws RepoxException;", "private Map<Integer, MessageEncoder> initialiseMap() {\n Map<Integer, MessageEncoder> composerMap = new HashMap<>();\n composerMap.put(AC35MessageType.BOAT_ACTION.getCode(), new BoatActionEncoder());\n composerMap.put(AC35MessageType.REQUEST.getCode(), new RequestEncoder());\n composerMap.put(AC35MessageType.COLOUR.getCode(), new ColourEncoder());\n\n return Collections.unmodifiableMap(composerMap);\n }", "private void buildGraph() {\n\t\tfor (Map<String, Channel> map: this.channels.values()) {\n\t\t\t// Add all channels\n\t\t\t\n\t\t\t// TODO: deal with channels spread over multiple redis instances (replicated)\n\t\t\t\n\t\t\t// Add all but ignore if some channels should be ignored\n\t\t\tfor (Map.Entry<String, Channel> entry: map.entrySet()) {\n\t\t\t\tif (IGNORE_UNICAST_AND_SUBSCRIBE) {\n\t\t\t\t\tif (entry.getKey().startsWith(\"unicast\") == false && entry.getKey().startsWith(\"sub\") == false) {\n\t\t\t\t\t\tif (entry.getKey().startsWith(\"tile\")) {\n\t\t\t\t\t\t\tchannelList.add(entry.getValue());\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchannelList.add(entry.getValue());\n\t\t\t\t}\n\t\t\t}\n\t\t\t//channelList.addAll(map.values());\n\t\t}\n\t\t\n\t\t// Double-iteration to build pairs\n\t\tfor (Channel channel1: channelList) {\n\t\t\tfor (Channel channel2: channelList) {\n\t\t\t\tif (channel1 != channel2) {\n\t\t\t\t\t// Put channels as nodes in the set\n\t\t\t\t\tthis.nodes.add(channel1.getChannelName());\n\t\t\t\t\tthis.nodes.add(channel2.getChannelName());\n\t\t\t\t\t\n\t\t\t\t\t// Build pair\n\t\t\t\t\tChannelPair pair = new ChannelPair(channel1.getChannelName(), channel2.getChannelName());\n\t\t\t\t\t\n\t\t\t\t\t// Check if it is contained in the map\n\t\t\t\t\tif (this.pairMultiplicity.containsKey(pair) == false) {\n\t\t\t\t\t\t// Count common subscribers\n\t\t\t\t\t\tint commonSubscribers = countCommonSubscribers(channel1, channel2);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (commonSubscribers > 0) {\n\t\t\t\t\t\t\t// Perform computation and add it\n\t\t\t\t\t\t\tthis.pairMultiplicity.put(pair, commonSubscribers);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}", "private static Map<String, FeatureType> buildAvailableFeatureMap(List<FeatureType> features){\r\n\t\tMap<String, FeatureType> featureMap = new HashMap<String, FeatureType>();\r\n\t\tfor(FeatureType feature : features){\r\n\t\t\tfeatureMap.put(feature.getExternalId(), feature);\r\n\t\t}\r\n\t\treturn featureMap;\r\n\t}", "@Override\n\tpublic Map<IAlgo, Integer> recommandAlgosContained() {\n\t\treturn Collections.EMPTY_MAP;\n\t}", "Graph<Integer, DefaultEdge> buildMap();", "Aggregator createAggregator(Aggregator aggregator) throws RepoxException;", "private Map<Good, Integer> initiateMarketplace() {\n Random noise = new Random();\n Map<Good, Integer> map = Collections.synchronizedMap(\n new EnumMap<Good, Integer>(Good.class));\n for (Good item : Good.values()) {\n if (item.getMinTech() <= techLevel) {\n Integer price = Math.max(item.getBasePrice()\n - (techLevel - item.getMinTech()) + alignment.getPriceChange()\n + noise.nextInt(5),\n 5);\n map.put(item, price);\n }\n }\n return map;\n }", "public Map<T, V> populateMap() {\n Map<T, V> map = new HashMap<>();\n for (int i = 0; i < entryNumber; i++) {\n cacheKeys[i] = (T) Integer.toString(random.nextInt(1000000000));\n String key = cacheKeys[i].toString();\n map.put((T) key, (V) Integer.toString(random.nextInt(1000000000)));\n }\n return map;\n }", "@Override\n public Object build() {\n return innerAggregationBuilder.getAggregations();\n }", "InfiniteMap<K,V> build();", "public static void addToMap()\n {\n Map<String, Integer> map = new HashMap<>();\n\n BiConsumer<String, Integer> mapAdderEveryTime = (s, i) -> map.put(s, i);\n\n mapAdderEveryTime.accept(\"key1\", 4);\n mapAdderEveryTime.accept(\"key2\", 4);\n\n BiConsumer<String, Integer> mapAdderIfPresent = (s, i) -> {\n map.computeIfPresent(s, (key, value) -> (value % 4 == 0) ? 0 : value +1);\n };\n\n mapAdderIfPresent.accept(\"key1\", 1);\n\n System.out.println(map);\n }", "public void initEvaluatorMap() {\n putObject(CoreConstants.EVALUATOR_MAP, new HashMap());\n }", "private Map<String, Object> createDefaultMap() {\n Map<String, Object> result = new LinkedHashMap<>();\n result.put(\"stream_speed0\", 1);\n result.put(\"stream_start0\", 0);\n result.put(\"stream_end0\", 7);\n result.put(\"stream_speed1\", -2);\n result.put(\"stream_start1\", 15);\n result.put(\"stream_end1\", 19);\n\n result.put(\"fish_quantity\", numFishes);\n result.put(\"fish_reproduction\", 3);\n result.put(\"fish_live\", 10);\n result.put(\"fish_speed\", 2);\n result.put(\"fish_radius\", 4);\n\n result.put(\"shark_quantity\", numSharks);\n result.put(\"shark_live\", 20);\n result.put(\"shark_hungry\", 7);\n result.put(\"shark_speed\", 2);\n result.put(\"shark_radius\", 5);\n\n return result;\n }", "private void populateTaxonomyTree() {\n\t\tfor (Node s: serviceMap.values()) {\n\t\t\taddServiceToTaxonomyTree(s);\n\t\t}\n\t}", "CompletableFuture<Map<String, Object>> getAccumulators();", "private void registerCaches(){\n // Initialize region arraylist\n prisoners = new HashMap<>();\n regions = QueryManager.getRegions();\n prisonBlocks = QueryManager.getPrisonBlocks();\n portals = QueryManager.getPortals();\n }", "public interface IAggregator<T> {\r\n void aggregate(Collection<T> batch);\r\n}", "private void populateOutputsInTree() {\n\t\tfor (ServiceNode s: serviceMap.values()) {\n\t\t\tfor (String outputVal : s.getOutputs())\n\t\t\t\ttaxonomyMap.get(outputVal).services.add(s);\n\t\t}\n\n\t\t// Now add the outputs of the input node\n\t\tfor (String outputVal : inputNode.getOutputs())\n\t\t\ttaxonomyMap.get(outputVal).services.add(inputNode);\n\t}", "private Map<String, Map<String,Integer>> combineResults() {\n\t\tMap<String, Map<String,Integer>>maxJointAgreement = new HashMap<>();\n\n\t\tfor (String type : this.entityTypes) {\n\t\t\tMap<String,Integer> allResults = new HashMap<>();\n\t\t\tMap<String,Integer> onlpRes = this.openNLPEntities.get(type);\n\t\t\tMap<String,Integer> cnlpRes = this.coreNLPEntities.get(type);\n\t\t\tMap<String,Integer> nltkRes = this.nltkEntities.get(type);\n\n\t\t\t// Merge individual NER results together\n\t\t\tif (onlpRes != null) {\n\t\t\t\tallResults = maxCountsMapMerge(onlpRes, allResults);\n\t\t\t}\n\t\t\tif (cnlpRes != null) {\n\t\t\t\tallResults = maxCountsMapMerge(cnlpRes, allResults);\n\t\t\t}\n\t\t\tif (nltkRes != null) {\n\t\t\t\tallResults = maxCountsMapMerge(nltkRes, allResults);\n\t\t\t}\n\t\t\tif (!allResults.isEmpty()) {\n\t\t\t\tmaxJointAgreement.put(type, allResults);\n\t\t\t}\n\t\t}\n\t\treturn maxJointAgreement;\n\t}", "private void initializeMaps(){\n\t\t\n\t\tsteps = new HashMap<Integer, Set<PlanGraphStep>>();\n\t\tfacts = new HashMap<Integer, Set<PlanGraphLiteral>>();\n\t\tinconsistencies = new HashMap<Integer, Set<LPGInconsistency>>();\n\t\t\n\t\tfor(int i = 0; i <= maxLevel; i++) {\n\t\t\tsteps.put(i, new HashSet<PlanGraphStep>());\n\t\t\tfacts.put(i, new HashSet<PlanGraphLiteral>());\n\t\t\tinconsistencies.put(i, new HashSet<LPGInconsistency>());\n\t\t}\n\t\t\n\t\t/* This level holds only the special action end which has the goals as preconditions */\n\t\tsteps.put(maxLevel + 1, new HashSet<PlanGraphStep>());\n\t}", "public Map<String, Map<String, String>> getAggregatorToFieldToName()\n {\n if (aggregatorToFieldToName != null) {\n return aggregatorToFieldToName;\n }\n\n Map<String, Set<String>> aggregatorToFields = getAggregatorToFields();\n Map<String, Map<String, String>> tAggregatorToFieldToName = Maps.newHashMap();\n\n for (Map.Entry<String, Set<String>> entry : aggregatorToFields.entrySet()) {\n String aggregatorName = entry.getKey();\n Set<String> fields = entry.getValue();\n\n Map<String, String> fieldToName = Maps.newHashMap();\n tAggregatorToFieldToName.put(aggregatorName, fieldToName);\n\n for (String field : fields) {\n fieldToName.put(field, field +\n DimensionalConfigurationSchema.ADDITIONAL_VALUE_SEPERATOR +\n aggregatorName);\n }\n }\n\n aggregatorToFieldToName = Maps.newHashMap();\n\n for (Map.Entry<String, Map<String, String>> entry : tAggregatorToFieldToName.entrySet()) {\n aggregatorToFieldToName.put(entry.getKey(), Collections.unmodifiableMap(entry.getValue()));\n }\n\n aggregatorToFieldToName = Collections.unmodifiableMap(aggregatorToFieldToName);\n return aggregatorToFieldToName;\n }", "public ClassRegistry() {\n this.classMap.putAll(CLASS_MAP);\n this.conversionMap.putAll(CONVERSION_MAP);\n conversionMap.put(\"key->new\",defaultSupplier);\n conversionMap.put(\"new\",typeName->defaultSupplier.apply(typeName));\n }", "<T> Map<String, T> resolveAll(Class<T> type);", "@Override\n public Object build() {\n return this.getChildren().stream()\n .map(child -> (org.opensearch.search.aggregations.AbstractAggregationBuilder) child.build()).collect(Collectors.toList());\n }", "private <T extends Reference> void buildMap(Map<String, T> map, List<T> objects) {\n for (T candidateObject : objects) {\n String rid = candidateObject.getId();\n log.debug(\"...... caching RID: {}\", rid);\n map.put(rid, candidateObject);\n }\n }", "@DataProvider(name = \"flatMap\")\n private Object[][] flatMapProvider() {\n final UnaryOperator<List<Integer>> operator1 = list -> list.stream()\n .flatMap(n -> Stream.generate(() -> n).limit(n))\n .collect(Collectors.toList());\n\n final UnaryOperator<List<Integer>> operator2 = list -> list.stream()\n .flatMapToInt(n -> IntStream.rangeClosed(1, n))\n .boxed()\n .collect(Collectors.toList());\n\n final UnaryOperator<List<Integer>> operator3 = list -> list.stream()\n .flatMapToInt(n -> IntStream.iterate(n, val -> val + 1).limit(n))\n .boxed()\n .collect(Collectors.toList());\n\n final UnaryOperator<List<Integer>> operator4 = list -> list.stream()\n .flatMap(Stream::of)\n .collect(Collectors.toList());\n\n return new Object[][]{\n {operator1, Arrays.asList(1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5)},\n {operator2, Arrays.asList(1, 1, 2, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 5)},\n {operator3, Arrays.asList(1, 2, 3, 3, 4, 5, 4, 5, 6, 7, 5, 6, 7, 8, 9)},\n {operator4, Arrays.asList(1, 2, 3, 4, 5)}\n };\n }", "private Map<String,List<Invertedindex>> collecting() //\r\n {\r\n Map<String,List<Invertedindex>> maps = new TreeMap<>();\r\n for (Core pon:pondred){\r\n for(Map.Entry<String,Double> term:pon.allTerms.entrySet()){\r\n if (maps.containsKey(term.getKey())){\r\n List<Invertedindex> index = maps.get(term.getKey());\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }else {\r\n List<Invertedindex> index = new ArrayList<>();\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }\r\n if(cleFreq.containsKey(pon.m_cle))\r\n cleFreq.put(pon.m_cle,cleFreq.get(pon.m_cle)+term.getValue());\r\n else cleFreq.put(pon.m_cle,term.getValue());\r\n\r\n }\r\n }\r\n return maps;\r\n }", "protected List<Aggregation> getAggregations(QueryContext queryContext) {\n\t\t\n\t\tif (_log.isDebugEnabled()) {\n\t\t\t_log.debug(\"Getting aggregations.\");\n\t\t}\n\n\t\tif (_aggregationBuilders == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<Aggregation> aggregations = new ArrayList<Aggregation>();\n\t\t\t\t\n\t\tfor (AggregationsBuilder aggregationBuilder : _aggregationBuilders) {\n\n\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t_log.debug(\n\t\t\t\t\t\"Executing \" +\n\t\t\t\t\t\taggregationBuilder.getClass().getName());\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\taggregations.addAll(\n\t\t\t\t\taggregationBuilder.buildAggregation(queryContext));\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e.getMessage(), e);\n\t\t\t}\n\t\t}\n\n\t\treturn aggregations;\n\t}", "InfiniteMap<K,V> build(MapTypes type);", "AggregationBuilder buildAggregation();", "private Map<String, Integer> getTagClassesEnrichment(PersonActivity in) {\n\t\tList<String> tags = in.getCategoryKeys(CategoryType.FORUM);\n\n\t\tMap<String, Integer> tagClasses = tags.stream()\n\t\t\t\t.map(tag -> tagClassRelation.get(tag))\n\t\t\t\t.filter(x -> x != null)\n\t\t\t\t.flatMap(List::stream)\n\t\t\t\t.collect(Collectors.groupingBy(Function.identity(), Collectors.reducing(0, e -> 1, Integer::sum)));\n\n\t\treturn tagClasses;\n\t}", "Map getAll();", "public void sinkCounterMap(){\n for(int i=1; i<(sinkCounter+1); i++){\n sinkCounterMap.put(i,1); //sink is included in basin count;\n \n }\n }", "public void groupingByMappingExample(){\n Map<String, List<Integer>> result = createPeople()\n .stream()\n .collect(groupingBy(Person::getName, mapping(Person::getAge,toList())));\n print.accept(result);\n }", "public AggregationInfo(StreamInput in) throws IOException {\n aggs = new TreeMap<>();\n final int size = in.readVInt();\n for (int i = 0; i < size; i++) {\n String key = in.readString();\n final int keys = in.readVInt();\n final Set<String> types = new TreeSet<>();\n for (int j = 0; j < keys; j++) {\n types.add(in.readString());\n }\n aggs.put(key, types);\n }\n }", "public void populateGenreMap(ItemContainer itemContainer) {\n\t\tfor (Genres genre : itemContainer.getGenres()) {\n\t\t\tif (everyGenre.containsKey(genre.getGenre())) {\n\t\t\t\tTreeSet<Genres> genres = everyGenre.get(genre.getGenre());\n\t\t\t\tgenres.add(genre);\n\t\t\t\teveryGenre.put(genre.getGenre(), genres);\n\t\t\t} else {\n\t\t\t\tTreeSet<Genres> tempSet = new TreeSet<Genres>();\n\t\t\t\ttempSet.add(genre);\n\t\t\t\teveryGenre.put(genre.getGenre(), tempSet);\n\t\t\t}\n\t\t}\n\t}", "private void initGraph() {\n nodeMap = Maps.newIdentityHashMap();\n stream.forEach(t -> {\n Object sourceKey = sourceId.extractValue(t.get(sourceId.getTableId()));\n Object targetKey = targetId.extractValue(t.get(targetId.getTableId()));\n ClosureNode sourceNode = nodeMap.get(sourceKey);\n ClosureNode targetNode = nodeMap.get(targetKey);\n if (sourceNode == null) {\n sourceNode = new ClosureNode(sourceKey);\n nodeMap.put(sourceKey, sourceNode);\n }\n if (targetNode == null) {\n targetNode = new ClosureNode(targetKey);\n nodeMap.put(targetKey, targetNode);\n }\n sourceNode.next.add(targetNode);\n });\n\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void initAggregator() throws CatascopiaException{\n\t\tString inter = this.config.getProperty(\"aggregator.interface\", \"StringAggregator\");\n\t\t\n\t\tClass<?>[] myArgs = new Class[3];\n\t\tmyArgs[0] = String.class;\n myArgs[1] = String.class;\n myArgs[2] = IMonitoringAgent.class;\n String path = \"eu.celarcloud.jcatascopia.agent.aggregators.\"+inter;\n try{\n\t Class<IAggregator> _tempClass = (Class<IAggregator>) Class.forName(path);\n\t Constructor<IAggregator> _tempConst = _tempClass.getDeclaredConstructor(myArgs);\n\t\t\tthis.aggregator = _tempConst.newInstance(this.agentID, this.agentIP, this);\n\t\t\tthis.writeToLog(Level.INFO, inter+\">> Successully instantiated and initialized\");\t\n }\n catch (ClassNotFoundException e){\n\t\t\tthis.writeToLog(Level.SEVERE, e);\n\t\t\tthrow new CatascopiaException(e.getMessage(),CatascopiaException.ExceptionType.AGGREGATOR);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tthis.writeToLog(Level.SEVERE, e);\n\t\t\tthrow new CatascopiaException(e.getMessage(),CatascopiaException.ExceptionType.AGGREGATOR);\n\t\t}\n\t}", "public IdMap() {\n\t\tthis.add(new TextItems());\n\t\tthis.add(new DateTimeEntity());\n\t\tthis.add(EntityCreator.createJson(false));\n\t\tthis.add(EntityCreator.createJson(true));\n\t\tthis.add(new ObjectMapEntry());\n\t\tthis.add(EntityCreator.createXML());\n\t}", "protected void buildHashMapForAssociationClasses(Package pack)\n {\n\n for (Iterator elementIter = pack.GetElements().iterator();elementIter.hasNext();)\n {\n Element element = (Element)elementIter.next();\n // Check the validity of the class\n checkElement(element);\n\n /////////////////////////////////\n // A numeric subtype qualifies the Type of the main element. For Class: 1 = Parameterised, 2 = Instantiated, 3 = Both, 0 = Neither, 17 = Association Class\n // If 17, because an Association Class has been created through the user interface, MiscData(3) will contain the ID of the related Association.\n // http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/element2.htm\n /////////////////////////////////\n if(element.GetSubtype() == 17)\n {\n _hashMapForAssociationClasses.put(EAConnection.getInstance().getRepository().GetConnectorByID(Integer.parseInt(element.MiscData(3))).GetConnectorGUID(), element.GetElementGUID());\n }\n }\n for (Iterator packageIter = pack.GetPackages().iterator();packageIter.hasNext();)\n {\n Package subPackage = (Package)packageIter.next();\n buildHashMapForAssociationClasses(subPackage);\n }\n }", "private static synchronized void initializeMeasureMaps() {\n\t\tintensityMeasuresList=ExerciseIntensityMeasure.getAll();\n\t\tquantityMeasuresList=ExerciseQuantityMeasure.getAll();\n\t\tintensityCodesToNamesMap=new HashMap(intensityMeasuresList.size());\n\t\tquantityCodesToNamesMap=new HashMap(quantityMeasuresList.size());\n\n\t\t// these (and the lists above) come from the db, but they can be static \n\t\t// because they change so infrequently (haven't changed in five years and\n\t\t// counting), and only manually via the db.\n\t\tfor (int i=0; i<intensityMeasuresList.size(); i++) {\n\t\t\tfinal ExerciseIntensityMeasure m=(ExerciseIntensityMeasure)intensityMeasuresList.get(i);\n\t\t\tintensityCodesToNamesMap.put(m.getCode(),m.getName());\n\t\t}\n\t\tfor (int i=0; i<quantityMeasuresList.size(); i++) {\n\t\t\tfinal ExerciseQuantityMeasure m=(ExerciseQuantityMeasure)quantityMeasuresList.get(i);\n\t\t\tquantityCodesToNamesMap.put(m.getCode(),m.getName());\n\t\t}\n\t\tmeasureMapsInitialized=true;\n\t\t\n\t}", "List<FeatureDistribution> asFeatureDistributions();", "public Set<String> getAggregators(String field)\n {\n return fieldToAggregator.get(field);\n }", "private Map<String, Object> analysisMap(ArrayList<String> data) {\n Map<String, Object> map = new HashMap<>();\n map.put(DAILY, data);\n return map;\n }", "@PostConstruct\n public void postConstruct() {\n for (DBMetadataRepository repository : dbMetadataRepositories) {\n repositoryMap.put(repository.getProvider(), repository);\n }\n }", "static Map<String, Handlers> getIntentMap()\n\t{\n\t\tMap<String, Handlers> h_map = new HashMap<>();\n\t\t\n\t\t\n\t\th_map.put (ADDRESS_ADD , Handlers.NODE_CREATE);\n\t\th_map.put (ADDRESS_ASSOCIATE , Handlers.LINK_CREATE);\n\t\th_map.put (ADDRESS_DELETE , Handlers.NODE_DELETE);\n\t\th_map.put (EVENT_ADD , Handlers.NODE_CREATE_AND_LINK);\n\t\th_map.put (EVENT_DELETE , Handlers.NODE_DELETE);\n\t\th_map.put (GROUP_ADD , Handlers.NODE_CREATE);\n\t\th_map.put (GROUP_DELETE , Handlers.NODE_DELETE);\n\t\th_map.put (GROUP_MEMBER_ADD , Handlers.LINK_CREATE);\n\t\th_map.put (GROUP_MEMBER_DELETE, Handlers.LINK_DELETE);\n\t\th_map.put (PERSON_ADD , Handlers.NODE_CREATE);\n\t\th_map.put (PERSON_DELETE , Handlers.NODE_DELETE);\n\t\th_map.put (SUBSCRIPTION_ADD , Handlers.NODE_CREATE_AND_MULTILINK);\n\t\th_map.put (SUBSCRIPTION_DELETE, Handlers.NODE_DELETE);\n\t\th_map.put (USER_DELETE , Handlers.NODE_DELETE);\n\t\th_map.put (USER_REGISTER , Handlers.REGISTER_USER);\n\n\t\treturn h_map;\n\t}", "private static Map<String, InstanceNodeConfigurationDto> groupByNode(Collection<InstanceNodeConfigurationDto> values) {\n Map<String, InstanceNodeConfigurationDto> map = new HashMap<>();\n for (InstanceNodeConfigurationDto value : values) {\n map.put(value.nodeName, value);\n }\n return map;\n }", "@PostConstruct\n public void init() {\n for (final Entry<String, Set<String>> aggregateEntry : processor.getTaskIndex().entrySet()) {\n final AggregateStopwatch stopwatchEntry = new AggregateStopwatch();\n\n aggregatedTasks.put(aggregateEntry.getKey(), stopwatchEntry);\n\n for (final String nameEntry : aggregateEntry.getValue()) {\n logger.info(\"adding stopwatchEntry - aggregate: \" + aggregateEntry.getKey() + \" task: \" + nameEntry);\n stopwatchEntry.getTimedTasks().put(nameEntry, new TaskStopwatch());\n }\n }\n }", "Map<Class<?>, Object> yangAugmentedInfoMap();", "Map<Class<?>, Object> yangAugmentedInfoMap();", "public interface ConfigInfoAggrMapper extends Mapper {\n \n /**\n * To delete aggregated data in bulk, you need to specify a list of datum.\n * The default sql:\n * DELETE FROM config_info_aggr WHERE data_id=? AND group_id=? AND tenant_id=? AND datum_id IN (...)\n *\n * @param datumList datumList\n * @return The sql of deleting aggregated data in bulk.\n */\n String batchRemoveAggr(List<String> datumList);\n \n /**\n * Get count of aggregation config info.\n * The default sql:\n * SELECT count(*) FROM config_info_aggr WHERE data_id = ? AND group_id = ? AND tenant_id = ?\n *\n * @param size datum id list size\n * @param isIn search condition\n * @return The sql of getting count of aggregation config info.\n */\n String aggrConfigInfoCount(int size, boolean isIn);\n \n /**\n * Find all data before aggregation under a dataId. It is guaranteed not to return NULL.\n * The default sql:\n * SELECT data_id,group_id,tenant_id,datum_id,app_name,content\n * FROM config_info_aggr WHERE data_id=? AND group_id=? AND tenant_id=? ORDER BY datum_id\n *\n * @return The sql of finding all data before aggregation under a dataId.\n */\n String findConfigInfoAggrIsOrdered();\n \n /**\n * Query aggregation config info.\n * The default sql:\n * SELECT data_id,group_id,tenant_id,datum_id,app_name,content FROM config_info_aggr WHERE data_id=? AND\n * group_id=? AND tenant_id=? ORDER BY datum_id LIMIT startRow,pageSize\n *\n * @param startRow The start index.\n * @param pageSize The size of page.\n * @return The sql of querying aggregation config info.\n */\n String findConfigInfoAggrByPageFetchRows(int startRow, int pageSize);\n \n /**\n * Find all aggregated data sets.\n * The default sql:\n * SELECT DISTINCT data_id, group_id, tenant_id FROM config_info_aggr\n *\n * @return The sql of finding all aggregated data sets.\n */\n String findAllAggrGroupByDistinct();\n}", "public Map<ComponentId, CHILD> getComponentMap() {\n return Collections.unmodifiableMap(producerById);\n }", "public Map<MeasurementType<L>, Offline<org.hawkular.inventory.api.model.MetricType.Blueprint>> buildMetrics(\n List<ResourceType<L>> resourceTypes) {\n\n Set<MeasurementType<L>> measTypes = new HashSet<>();\n for (ResourceType<L> resourceType : resourceTypes) {\n if (resourceType.isPersisted() == false) {\n measTypes.addAll(resourceType.getMetricTypes().stream().filter(t -> t.isPersisted() == false)\n .collect(Collectors.toList()));\n measTypes.addAll(resourceType.getAvailTypes().stream().filter(t -> t.isPersisted() == false)\n .collect(Collectors.toList()));\n }\n }\n\n Map<MeasurementType<L>, Offline<org.hawkular.inventory.api.model.MetricType.Blueprint>> retVal;\n retVal = new HashMap<>(measTypes.size());\n\n synchronized (addedIds) {\n prepareAddedIds();\n\n // we don't sync parent-child relations for types; all types are stored at root level in inventory\n for (MeasurementType<L> mt : measTypes) {\n if (!addedIds.get(IdType.METRIC_TYPE).add(mt.getID().getIDString())) {\n continue; // we already did this metric type\n }\n InventoryStructure.Builder<org.hawkular.inventory.api.model.MetricType.Blueprint> invBldr;\n org.hawkular.inventory.api.model.MetricType.Blueprint mtBP = buildMetricTypeBlueprint(mt);\n invBldr = InventoryStructure.Offline.of(mtBP);\n retVal.put(mt, invBldr.build());\n }\n }\n\n return retVal;\n }", "public static void main(String[] args) {\n\t\tMap<BigDecimal, String> result3 = items.stream()\r\n\t\t\t\t.collect(Collectors.toMap(Item::getPrice, Item::getName, (s, a) -> s + \", \" + a));\r\n\t\tresult3.forEach((k, v) -> System.out.println(k + \" \" + v));\r\n\r\n\t\tMap<Integer, String> map = items.stream()\r\n\t\t\t\t.collect(Collectors.toMap(Item::getQuantity, Item::getName, (x, y) -> x + \", \" + y));\r\n\t\tmap.forEach((x, y) -> System.out.println(\"Key: \" + x + \", value: \" + y));\r\n\t\tMap<Integer, String> map1 = items.stream().collect(\r\n\t\t\t\tCollectors.toMap(Item::getQuantity, Item::getName, (x, y) -> x + \", \" + y, LinkedHashMap::new));\r\n\t\tmap.forEach((x, y) -> System.out.println(\"Key: \" + x + \", value: \" + y));\r\n\r\n\t\t/*\r\n\t\t * Map<BigDecimal, List<Item>> result1 =\r\n\t\t * items.stream().collect(Collectors.groupingBy(Item::getPrice));\r\n\t\t * Map<BigDecimal, List<Item>> result2 = items.stream()\r\n\t\t * .collect(Collectors.groupingBy(Item::getPrice, Collectors.toList()));\r\n\t\t * Map<BigDecimal, Item> result4 =\r\n\t\t * items.stream().collect(Collectors.toMap(Item::getPrice, Item -> Item));\r\n\t\t * Map<BigDecimal, String> toMapuse = items.stream()\r\n\t\t * .collect(Collectors.toMap(Item::getPrice, Item::getName, (s, a) -> s + \", \" +\r\n\t\t * a)); ///toMapuse.forEach((k, v) -> System.out.print(k + \" \" + v));\r\n\t\t */\r\n\t}", "@Test\n public void testCoh3710_aggregateKeys()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n Object oResult = getNamedCache(getCacheName0()).aggregate(\n Collections.singleton(Integer.valueOf(1)), new Count());\n assertEquals(Integer.valueOf(0), oResult);\n }\n });\n }", "@Override\n\t\t\tpublic void putAll(Map<? extends PathwayImpl, ? extends AnalysisResult> m) {\n\t\t\t\t\n\t\t\t}", "private Map<String, Integer> getForumTagsEnrichment(PersonActivity in) {\n\t\tList<String> forums = in.getCategoryKeys(CategoryType.FORUM);\n\t\tMap<String, Integer> forumTags = forums.stream()\n\t\t\t\t.map(forumId -> forumTagRelation.get(forumId))\n\t\t\t\t.filter(x -> x != null)\n\t\t\t\t.flatMap(List::stream)\n\t\t\t\t.collect(Collectors.groupingBy(Function.identity(), Collectors.reducing(0, e -> 1, Integer::sum)));\n\t\treturn forumTags;\n\t}", "Map<Long, Double> getMetrics(String topologyName, String componentId, String metricName, AggregateFunction aggrFunction, long from, long to);", "private void setAggregations(Aggregations aggregations, ActionResponse actionResp) { Only the result of the first aggregation is returned\n //\n final Aggregation agg = aggregations.asList().get(0);\n\n if (agg instanceof InternalMetricsAggregation) {\n actionResp.addAggregation(new AggWrapper(AggWrapper.AggregationType.SIMPLE,\n XContentHelper.toString((InternalMetricsAggregation) agg).toString()));\n } else if (agg instanceof InternalSingleBucketAggregation) {\n actionResp.addAggregation(new AggWrapper(AggWrapper.AggregationType.SIMPLE,\n XContentHelper.toString((InternalSingleBucketAggregation) agg).toString()));\n } else if (agg instanceof InternalMultiBucketAggregation) {\n final Set<String> headerKeys = new HashSet<>();\n final List<Map<String, Object>> buckets = new LinkedList<>();\n final InternalMultiBucketAggregation multiBucketAgg = (InternalMultiBucketAggregation) agg;\n\n for (final MultiBucketsAggregation.Bucket bucket : multiBucketAgg.getBuckets()) {\n try {\n final XContentBuilder builder = XContentFactory.jsonBuilder();\n bucket.toXContent(builder, null);\n actionResp.addAggregation(\n new AggWrapper(AggWrapper.AggregationType.MULTI_BUCKETS, builder.string()));\n } catch (final IOException e) {\n // Ignored\n }\n }\n }\n }", "private void fillData() {\n\t\tfor(Entry<String, HashMap<String, Double>> entry : m.map.entrySet()) {\n\t\t\tfor(Entry<String, Double> subEntry : entry.getValue().entrySet()) {\n\t\t\t\tMappingData item = new MappingData(entry.getKey(), subEntry.getKey(), subEntry.getValue());\n\t\t\t\tdataList.add(item);\n\t\t\t}\n\t\t}\n\t}", "public Map<FruitType, List<Fruit>> groupByTypeConcrrently() {\n\t\treturn fruits.parallelStream().collect(Collectors.groupingByConcurrent(Fruit::getType));\n\t}", "Map<DimensionalItemId, DimensionalItemObject> getIndicatorDimensionalItemMap(\n Collection<Indicator> indicators);", "private void populateRenderableProcessors()\n {\n myProcessorsLock.readLock().lock();\n try\n {\n mySpecializedProcessorsLock.writeLock().lock();\n try\n {\n myRenderableGeometryProcessors.clear();\n myProjectionSensitiveProcessors.clear();\n for (final Entry<ProcessorDistributionKey, GeometryProcessor<? extends Geometry>> processorEntry : myGeometryProcessorsMap\n .entrySet())\n {\n if (processorEntry.getValue() instanceof RenderableGeometryProcessor)\n {\n myRenderableGeometryProcessors.put(processorEntry.getKey(),\n (RenderableGeometryProcessor<? extends Geometry>)processorEntry.getValue());\n }\n\n if (processorEntry.getValue().sensitiveToProjectionChanges())\n {\n myProjectionSensitiveProcessors.put(processorEntry.getKey(), processorEntry.getValue());\n }\n }\n myProjectionSyncManager.setProcessors(myProjectionSensitiveProcessors.values());\n }\n finally\n {\n mySpecializedProcessorsLock.writeLock().unlock();\n }\n }\n finally\n {\n myProcessorsLock.readLock().unlock();\n }\n }", "public Collection getAllCaches()\n {\n Set setRef = new HashSet();\n Collection<Map> colLoader = m_mapByName.values();\n\n for (Map mapByLoader : colLoader)\n {\n synchronized (mapByLoader)\n {\n for (Object oHolder : mapByLoader.values())\n {\n if (oHolder instanceof SubjectScopedReference)\n {\n setRef.addAll(((SubjectScopedReference) oHolder).values());\n }\n else if (oHolder instanceof NamedCache)\n {\n setRef.add(oHolder);\n }\n else\n {\n throw new UnsupportedOperationException();\n }\n }\n }\n }\n\n return setRef;\n }", "public interface Aggregation {\n\n final int SST = 0;\n final int SST_ANOMALY = 1;\n final int RANDOM_UNCERTAINTY = 2;\n final int COVERAGE_UNCERTAINTY = 3;\n final int LARGE_SCALE_UNCERTAINTY = 4;\n final int ADJUSTMENT_UNCERTAINTY = 5;\n final int SYNOPTIC_UNCERTAINTY = 6;\n final int SEA_ICE_FRACTION = 7;\n\n long getSampleCount();\n\n Number[] getResults();\n\n public double getSeaSurfaceTemperature();\n\n public double getSeaSurfaceTemperatureAnomaly();\n\n public double getRandomUncertainty();\n\n public double getLargeScaleUncertainty();\n\n public double getCoverageUncertainty();\n\n public double getAdjustmentUncertainty();\n\n public double getSynopticUncertainty();\n\n public double getSeaIceFraction();\n}", "private interface MyGenericAggFunction<A, V, R> {\n\n A init();\n\n A add( A accumulator, V val );\n\n A merge( A accumulator1, A accumulator2 );\n\n R result( A accumulator );\n\n }", "public Map<String, Object> buildMap() {\n final Map<String, Object> map = new LinkedHashMap<>();\n map.put(\"maxAttempts\", (double) this.maxAttempts);\n map.put(\"initialBackoff\", formatDuration(requireNonNull(this.initialBackoff, \"initialBackoff\")));\n map.put(\"maxBackoff\", formatDuration(requireNonNull(this.maxBackoff, \"maxBackoff\")));\n map.put(\"backoffMultiplier\", this.backoffMultiplier);\n map.put(\"retryableStatusCodes\", requireNonNull(this.retryableStatusCodes, \"retryableStatusCodes\").stream()\n .map(Code::name)\n .collect(Collectors.toList()));\n return map;\n }", "private void initializeMaps(Set<ActionProvider> actionProviders,\n\t\t\tSet<ActionHandlerProvider> registeredHandlerProviders) {\n\t\tSet<ActionHandlerProvider> sportedHandlerProviders = registeredHandlerProviders.stream()\n\t\t\t\t.sorted(Comparator.comparing(ActionHandlerProvider::getPriority)).collect(Collectors.toSet());\n\t\tSet<ActionProvider> sortedActionProvider = actionProviders = actionProviders.stream()\n\t\t\t\t.sorted(Comparator.comparing(ActionProvider::getPriority)).collect(Collectors.toSet());\n\n\t\tsortedActionProvider.forEach(aProv -> {\n\t\t\taProv.getActions().forEach(action -> {\n\t\t\t\tif (!actionKinds.containsKey(action.getKind())) {\n\t\t\t\t\tactionKinds.put(action.getKind(), action.getClass());\n\t\t\t\t\tregisteredActions.add(action);\n\n\t\t\t\t\tOptional<ActionHandler> handlerOpt = getActionHandler(action, sportedHandlerProviders);\n\t\t\t\t\tif (handlerOpt.isPresent()) {\n\t\t\t\t\t\tactionHandlers.put(action.getKind(), handlerOpt.get());\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t}", "private static void groupImperative() {\n\n Map<Currency, List<FinancialTransaction>> transactionsByCurrency = new EnumMap<>(Currency.class);\n for (FinancialTransaction transaction : transactions) {\n Currency currency = transaction.getCurrency();\n transactionsByCurrency.computeIfAbsent(currency, k -> new ArrayList<>()).add(transaction);\n }\n log.info(\"{}\", transactionsByCurrency);\n // Java 7.\n log.info(\"Handling a Map<Currency, List<FinancialTransaction>> via a for-loop (Java 7).\");\n for (Map.Entry<Currency, List<FinancialTransaction>> entry : transactionsByCurrency.entrySet()) {\n log.info(\"****************************************************\");\n log.info(\"Currency: {}\", entry.getKey());\n // Ooops: Java 8 :-) So in this way I can do everything with one of the values, being a List<String>.\n entry.getValue().stream()\n .forEach(financialTransaction -> log.info(\"Name: {}\", financialTransaction));\n }\n }", "Map<String, List<List<Attribution>>> getAttributionMap();", "private void processNameToObjectMap() {\r\n for (int i = 0; i < this.getObjectGroupCount(); i++) {\r\n ObjectGroup g = this.objectGroups.get(i);\r\n this.objectGroupNameToOffset.put(g.name, i);\r\n HashMap<String, Integer> nameToObjectMap = new HashMap<String, Integer>();\r\n for (int ib = 0; ib < this.getObjectCount(i); ib++) {\r\n nameToObjectMap.put(this.getObjectName(i, ib), ib);\r\n }\r\n g.setObjectNameMapping(nameToObjectMap);\r\n }\r\n }", "private void collectMetricsInfo() {\n // Retrieve a list of all references to registered metric services\n ServiceReference[] metricsList = null;\n try {\n metricsList = bc.getServiceReferences(null, SREF_FILTER_METRIC);\n } catch (InvalidSyntaxException e) {\n logError(INVALID_FILTER_SYNTAX);\n }\n \n // Retrieve information about all registered metrics found\n if ((metricsList != null) && (metricsList.length > 0)) {\n \n for (int nextMetric = 0;\n nextMetric < metricsList.length;\n nextMetric++) {\n \n ServiceReference sref_metric = metricsList[nextMetric];\n MetricInfo metric_info = getMetricInfo(sref_metric);\n \n // Add this metric's info to the list\n if (metric_info != null) {\n registeredMetrics.put(\n metric_info.getServiceID(),\n metric_info);\n }\n }\n }\n else {\n logInfo(\"No pre-existing metrics were found!\");\n }\n }", "public Map<AdornedAtom, List<AdornedTgd>> adornedMap() {\n Map<AdornedAtom, List<AdornedTgd>> map = new HashMap<>();\n for(AdornedAtom p: adornedPredicates) {\n ArrayList<AdornedTgd> tgd = new ArrayList<>();\n for(AdornedTgd t : adornedRules) {\n if(t.getHead().equals(p)) {\n tgd.add(t);\n }\n }\n map.put(p, tgd);\n }\n\n return map;\n }", "@PostConstruct\n\tprivate void registerAllAnalyser() {\n\n\t\t// Get configuration for analysers\n\t\tMap<String, Map<String, String>> analyserProperties = analysisConfiguration.getAnalyserConfig();\n\n\t\t//get all analyser class\n\t\tReflections reflections = new Reflections(\"eu.ill.puma.analysis.analyser\");\n\n\t\t//iterate\n\t\tfor (Class analyserClass : reflections.getTypesAnnotatedWith(Analyser.class)) {\n\n\t\t\t//get annotation\n\t\t\tAnalyser analyser = (Analyser) analyserClass.getAnnotation(Analyser.class);\n\n\t\t\t// create new pool for analyser\n\t\t\tif (analyser != null) {\n\t\t\t\tthis.analyserPools.put(analyser.name(), new AnalyserPool(analyser, analyserClass, analyserProperties.get(analyser.name())));\n\n\t\t\t\tif (analyser.enabled()) {\n\t\t\t\t\tthis.enabledAnalysers.add(analyser.name());\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tlog.error(\"Failed to get instance of analyser with class \" + analyserClass);\n\t\t\t}\n\t\t}\n\t}", "public TypeCountMap<GoodsType> getProductionMap() {\n update();\n TypeCountMap<GoodsType> result = new TypeCountMap<GoodsType>();\n result.putAll(netProduction);\n return result;\n }", "AllTransformationsMap(Producer<? extends Map<Object, ? extends PreparedTransformer<? extends R>>> transformersInput,\n List<? extends Producer<?>> valueInputs) {\n super(Iterables.prepend(valueInputs, transformersInput));\n }", "GroupBuckets buckets();", "private void buildMap(int count, char type, String typeName) {\r\n\t\tfor (int i = 1; i <= count; i++) {\r\n\t\t\toriginalMaps.add(new MapType(\"map_\" + type + i, typeName, \"colony/map_\" + type + i));\r\n\t\t}\r\n\t}", "void initialize() {\n for (Map.Entry<String, Gauge<Long>> entry : gaugeList.entrySet()) {\n registerWithSuffix(entry.getKey(), 0, entry.getValue());\n }\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate static Map createMap(Collection accessibleObjects,\n\t\t\tboolean isConstructor) {\n\t\tfinal Map map = new HashMap();\n\t\tfor (final Iterator i = accessibleObjects.iterator(); i.hasNext();) {\n\t\t\tfinal Member accessibleObject = (Member) i.next();\n\n\t\t\tif (!Modifier.isPublic(accessibleObject.getModifiers()))\n\t\t\t\tcontinue;\n\n\t\t\tfinal AccessibleObjectKey accessibleObjectKey;\n\t\t\t{\n\t\t\t\t// argCount determines the key\n\t\t\t\tint argCount = 0;\n\t\t\t\t{\n\t\t\t\t\t// The parameters determine the size of argCount\n\t\t\t\t\tfinal Class[] param;\n\t\t\t\t\tif (isConstructor) {\n\t\t\t\t\t\tparam = ((Constructor) accessibleObject)\n\t\t\t\t\t\t\t\t.getParameterTypes();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// If it is a method and the method was defined in\n\t\t\t\t\t\t// Object(), skip\n\t\t\t\t\t\t// it.\n\t\t\t\t\t\tif (((Method) accessibleObject).getDeclaringClass() == Object.class) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparam = ((Method) accessibleObject).getParameterTypes();\n\t\t\t\t\t}\n\t\t\t\t\tif (isConstructor) {\n\t\t\t\t\t\taccessibleObjectKey = new AccessibleObjectKey(\n\t\t\t\t\t\t\t\t\"$constructor\", 0);\n\t\t\t\t\t} else {\n\t\t\t\t\t\taccessibleObjectKey = new AccessibleObjectKey(\n\t\t\t\t\t\t\t\t((Method) accessibleObject).getName(),\n\t\t\t\t\t\t\t\tparam.length);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tList marr = (ArrayList) map.get(accessibleObjectKey);\n\t\t\tif (marr == null) {\n\t\t\t\tmarr = new ArrayList();\n\t\t\t\tmap.put(accessibleObjectKey, marr);\n\t\t\t}\n\n\t\t\tmarr.add(accessibleObject);\n\t\t}\n\t\treturn map;\n\t}", "public Map<Integer, Set<Room>> groupRoomsByCapacity() {\n Map<Integer, Set<Room>> result = new HashMap<>();\n for (Room room : rooms) {\n int capacity = room.getCapacity();\n if (result.containsKey(capacity)) {\n result.get(capacity).add(room);\n } else {\n Set<Room> Properties = new HashSet<>();\n Properties.add(room);\n result.put(capacity, Properties);\n }\n }\n return result;\n }", "public ObjectMappers() {\n\t\tthis.objectMappers = ImmutableList.of();\n\t}", "private void populateGlobalLibraryMap(@NotNull BuildController controller) {\n for (VariantOnlyModuleModel moduleModel : myModuleModelsById.values()) {\n File buildId = moduleModel.getBuildId();\n if (!myLibraryMapsByBuildId.containsKey(buildId)) {\n GlobalLibraryMap map = controller.findModel(moduleModel.getGradleProject(), GlobalLibraryMap.class);\n if (map != null) {\n myLibraryMapsByBuildId.put(buildId, map);\n }\n }\n }\n }", "public Map<String, List<BaiduZhannei>> buildSitemap() {\r\n Map<String, List<BaiduZhannei>> map = new HashMap<String, List<BaiduZhannei>>();\r\n map.put(GlobalConfigHolder.DOMAIN_TYPE_QUESTION, buildQuestion());\r\n// map.put(GlobalConfigHolder.DOMAIN_TYPE_TOPIC, buildTopic(GlobalConfigHolder.SITEMAP_COUNT));\r\n// map.put(GlobalConfigHolder.DOMAIN_TYPE_BLOG, buildBlog());\r\n\r\n return map;\r\n }", "@Transient\r\n\tpublic Map<String, Object> getLookups() {\r\n\t\tMap<String,Object> map = new HashMap<String,Object>();\r\n map.put(ICommercialAlias.TARGET_REGISTRY_ID, getId());\r\n map.put(ICommercialAlias.TARGET_REGISTRY_DOCUMENT, getRegistry().getDocument());\r\n map.put(ICommercialAlias.TARGET_REGISTRY_NAME, getRegistry().getName());\r\n map.put(ICommercialAlias.TARGET_REGISTRY_SURNAME, getRegistry().getSurname());\r\n map.put(ICommercialAlias.TARGET_REGISTRY_ALIAS, getRegistry().getAlias());\r\n return map;\r\n\t}", "Map<String, Result> getOrganizationsMap();", "Map getConnectionManagerMap();", "public static void main(String[] args) {\n Map<String, Set<Integer>> ms = new HashMap<>(); \n Set<Integer> s1 = new HashSet<>(Arrays.asList(1,2,3));\n Set<Integer> s2 = new HashSet<>(Arrays.asList(4,5,6));\n Set<Integer> s3 = new HashSet<>(Arrays.asList(7,8,9));\n ms.put(\"one\", s1);\n ms.put(\"two\", s2);\n ms.put(\"three\", s3);\n System.out.println(ms); \n // ch07.collections.Ch0706InterfacesVsConcrete$1\n // {one=[1, 2, 3], two=[4, 5, 6], three=[7, 8, 9]}\n\n // this is how LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>>\n // can be initially initialized\n LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>> toc =\n new LinkedHashMap<>();\n System.out.println(toc); // just using toc to get rid of eclipse warning about not using it\n \n \n\n\n\n }", "public AnnotatorPool() {\n this.factories = Generics.newHashMap();\n }" ]
[ "0.6078408", "0.5686895", "0.5658635", "0.565135", "0.55782056", "0.55598265", "0.5473726", "0.54708284", "0.54708177", "0.5453949", "0.5448019", "0.5351748", "0.53445584", "0.5327914", "0.5312866", "0.5309003", "0.52941966", "0.529006", "0.52728313", "0.5270469", "0.52587885", "0.51922214", "0.5186723", "0.51796865", "0.51643807", "0.5156378", "0.513199", "0.5111394", "0.50982994", "0.50893116", "0.5080971", "0.5070373", "0.50524306", "0.50463605", "0.50458485", "0.5038723", "0.50379115", "0.5022805", "0.50227207", "0.5014701", "0.50108", "0.50020677", "0.50008434", "0.4989561", "0.49655047", "0.4962898", "0.49476466", "0.49345884", "0.492722", "0.4922877", "0.49153048", "0.49124324", "0.49041292", "0.48965177", "0.48936924", "0.48889327", "0.4876392", "0.48717868", "0.48704246", "0.48642752", "0.48642752", "0.4860422", "0.4855912", "0.48471698", "0.48426217", "0.48369563", "0.48314083", "0.48298424", "0.48283675", "0.48227572", "0.48139036", "0.48119795", "0.48075467", "0.4803335", "0.4796431", "0.47919232", "0.47879532", "0.4781624", "0.47734132", "0.47623163", "0.4759658", "0.47577697", "0.47512376", "0.47493625", "0.4745047", "0.47425178", "0.47425067", "0.4742361", "0.4740139", "0.47393262", "0.4733546", "0.47310564", "0.4721759", "0.471783", "0.471364", "0.47100282", "0.47091568", "0.4708816", "0.47074977", "0.47073478" ]
0.5350652
12
Checks if the specified aggregator should be triggered based on the currently mocked timestamp.
private static boolean shouldAggregate(TimedDataAggregator aggregator) { long nextScheduledAggregation = aggregator.getLastAggregationTimestamp() + aggregator.getAggregationInterval(); return nextScheduledAggregation < ShadowSystemClock.currentTimeMillis(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isAlreadyTriggered();", "private static boolean bRunCollector()\n {\n String sTimeDuration = \"\";\n int iTimeDuration = 0;\n try\n {\n sTimeDuration = PropertyAccessor.getProperty(GATEWAY_PROPERTY_FILE, GARBAGE_COLLECT_TIME_DURATION);\n iTimeDuration = Integer.parseInt(sTimeDuration);\n }\n catch (Exception e)\n {\n String sErrorMessage = \"Failed to read and parse property: \" + GARBAGE_COLLECT_TIME_DURATION +\n \" from PropertyFile: \" + GATEWAY_PROPERTY_FILE + \".propertues. No \" +\n \"garbage collection will be done on the aggregator tables.\";\n log.error(sErrorMessage);\n return false;\n }\n \n if ((sTimeDuration == null) ||\n (sTimeDuration.length() <= 0))\n {\n String sErrorMessage = \"Failed to read and parse property: \" + GARBAGE_COLLECT_TIME_DURATION +\n \" from PropertyFile: \" + GATEWAY_PROPERTY_FILE + \".propertues. No \" +\n \"garbage collection will be done on the aggregator tables.\";\n log.error(sErrorMessage);\n return false;\n }\n \n Calendar oCal = Calendar.getInstance();\n oCal.add(Calendar.SECOND, (-1) * iTimeDuration);\n \n if (oCal.getTime().getTime() > dtLastRun.getTime())\n {\n return true;\n }\n \n return false;\n }", "public boolean onTarget(long timestamp)\n {\n return compareToTimestamp(timestamp) == 0;\n }", "@Override\n protected boolean isFinished() {\n return Timer.getFPGATimestamp()-startT >= 1.5;\n }", "boolean hasUpdateTriggerTime();", "boolean hasExchangeTime();", "public boolean isScheduled(){\n //System.out.println(\"nextrun: \" + nextrun.getTime() + \" nu: \" + System.currentTimeMillis());\n if (nextrun != null){\n long next = nextrun.getTime();\n \n return next < System.currentTimeMillis();\n }else{\n //null => instance has never run before & should run asap\n return true;\n }\n }", "private boolean isAlwaysRun(IConfigurationAnnotation configurationAnnotation) {\n if(null == configurationAnnotation) {\n return false;\n }\n \n boolean alwaysRun= false;\n if ((configurationAnnotation.getAfterSuite()\n || configurationAnnotation.getAfterTest()\n || configurationAnnotation.getAfterTestClass()\n || configurationAnnotation.getAfterTestMethod())\n && configurationAnnotation.getAlwaysRun())\n {\n alwaysRun= true;\n }\n \n return alwaysRun;\n }", "boolean hasDesiredTime();", "protected boolean isJobJustTriggered(Trigger trigger, Date currentTime, int nearEventInMinutes) {\n\t\tjava.util.Calendar cal = new FlashServiceImpl().getServerCalendar();\n\t\tDate prevTime = trigger.getPreviousFireTime();\n\t\tif (prevTime != null) {\n\t\t\tjava.util.Calendar serverCalendar = new FlashServiceImpl().getServerCalendar();\n\t\t\tserverCalendar.setTimeInMillis(prevTime.getTime());\n\t\t\tcal.add(java.util.Calendar.MINUTE, nearEventInMinutes);\n\t\t\tif (cal.getTime().after(currentTime)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "@Override\n public boolean shouldExecute()\n {\n if (theEntity.getAITarget() == null && theEntity.isBurning())\n {\n return false;\n }\n else\n {\n if (theEntity.isRearingFirstTick()) // only set the first tick that is rearing\n {\n return true; \n }\n else\n {\n return false;\n }\n } \n }", "public abstract boolean isScheduled();", "public boolean triggersNow()\n\t{\n\t\tif(!this.canTrigger())\n\t\t\treturn false;\n\n\t\tfor(GameObject object: this.game.actualState.stack())\n\t\t\tif(object instanceof StateTriggeredAbility)\n\t\t\t\tif(((StateTriggeredAbility)object).printedVersionID == this.ID)\n\t\t\t\t\treturn false;\n\n\t\tIdentified source = this.getSource(this.state);\n\t\tint controller;\n\t\tif(source.isGameObject())\n\t\t\tcontroller = ((GameObject)source).controllerID;\n\t\telse\n\t\t\t// it's a player\n\t\t\tcontroller = source.ID;\n\t\tfor(GameObject object: this.game.actualState.waitingTriggers.get(controller))\n\t\t\tif((object instanceof StateTriggeredAbility) && (((StateTriggeredAbility)object).printedVersionID == this.ID))\n\t\t\t\treturn false;\n\n\t\tfor(SetGenerator condition: this.triggerConditions)\n\t\t\tif(!condition.evaluate(this.game, this).isEmpty())\n\t\t\t\treturn true;\n\n\t\treturn false;\n\t}", "boolean hasSubmitTime();", "boolean hasCollectEndTime();", "public abstract boolean isTrigger();", "private boolean hasDateThreshold() {\r\n if (entity.getExpirationDate() == null) {\r\n return false;\r\n }\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.MONTH, 1);\r\n if (entity.getExpirationDate().before(calendar.getTime())) {\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean isEqualTo(final Magnitude timeStamp) {\n this.ensureAtLeastPartResolved();\n if (timeStamp instanceof DateTime) {\n if (isNull) {\n return timeStamp.isEmpty();\n }\n\n return this.date.equals(((DateTime) timeStamp).date);\n } else {\n throw new IllegalArgumentException(\"Parameter must be of type Time\");\n }\n }", "protected boolean shouldPublish(AbstractBuild<?, ?> build) {\n return isFailureOrRecovery(build);\n }", "boolean hasScheduling();", "boolean hasScheduling();", "boolean hasTriggerFulfillment();", "private boolean shouldProcessEvent(TimeSeriesEvent e) {\r\n return modCountOnLastRefresh < e.getSeriesModCount();\r\n }", "public boolean wasBuilt() {\n \t\treturn triggerForLastBuild != -1;\n \t}", "public boolean isScheduled();", "boolean hasTimeSpoutBoltA();", "private void checkIsAbleToFire() {\n\n\t\tif (ticksToNextFire <= currentTickCount) {\n\t\t\tisAbleToFire = true;\n\t\t} else {\n\t\t\tisAbleToFire = false;\n\t\t}\n\t}", "public boolean hasDesiredTime() {\n return desiredTimeBuilder_ != null || desiredTime_ != null;\n }", "boolean hasTimeSpoutBoltF();", "boolean hasTimeBoltABoltB();", "boolean hasCampaignCriterionSimulation();", "default boolean isValidFor(Granularity granularity) {\n if (granularity instanceof TimeGrain) {\n return isValidFor(((TimeGrain) granularity));\n } else {\n return granularity instanceof AllGranularity;\n }\n }", "boolean hasUseTime();", "boolean hasUseTime();", "private boolean checkForAction(){\n IndividualAction thisAction = checkTriggers();\n if(thisAction.getTriggers() == null){\n return false;\n }\n if(!checkSubjects(thisAction.getSubjects())){\n return false;\n }\n doConsumed(thisAction.getConsumed());\n doProduce(thisAction.getProduced());\n results.add(thisAction.getNarration());\n\n return true;\n }", "public boolean shouldExecute() {\n if (this.runDelay <= 0) {\n if (!net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(bean.world, bean)) {\n return false;\n }\n\n this.currentTask = -1;\n if(plantAndCollect)\n this.hasFarmItem = ((EntityWorkBean)bean).isFarmItemInInventory();\n else this.hasFarmItem = false;\n this.wantsToReapStuff = true; //this.villager.wantsMoreFood();\n }\n\n return super.shouldExecute();\n }", "boolean hasTransactionDateTime();", "public boolean hasDesiredTime() {\n return desiredTime_ != null;\n }", "boolean hasWaitTime();", "public boolean firedRecently(double time);", "boolean hasStartTime();", "@Override\n\tpublic boolean isScheduled();", "boolean hasPerformAt();", "boolean isSetAppliesDateTime();", "boolean hasAcquireDate();", "private static boolean m1355a() {\n Throwable e;\n try {\n return Modifier.isAbstract(PackageStatsCallback.class.getMethod(\"onGetStatsCompleted\", new Class[]{PackageStats.class, Boolean.TYPE}).getModifiers()) ^ 1;\n } catch (Exception e2) {\n e = e2;\n jcc.m4404a(\"PackageStatsCapture\", \"failure\", e, new Object[0]);\n return false;\n } catch (Error e3) {\n e = e3;\n jcc.m4404a(\"PackageStatsCapture\", \"failure\", e, new Object[0]);\n return false;\n }\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAutoStandBy() {\n\t\tboolean flag = oTest.checkAutoStandBy();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "@Override\n protected boolean isFinished() {\n if (_timer.get() > 1.0) {\n return true;\n }\n return false;\n }", "boolean isSimpleTrigger();", "boolean isSetTimeInterval();", "@Test\n public void testIsUseNewest() {\n TriggeredBuildSelector.DescriptorImpl d = (TriggeredBuildSelector.DescriptorImpl)j.jenkins.getDescriptorOrDie(TriggeredBuildSelector.class);\n \n d.setGlobalUpstreamFilterStrategy(null);\n assertFalse(new TriggeredBuildSelector(false, null, false).isUseNewest());\n \n d.setGlobalUpstreamFilterStrategy(TriggeredBuildSelector.UpstreamFilterStrategy.UseGlobalSetting);\n assertFalse(new TriggeredBuildSelector(false, TriggeredBuildSelector.UpstreamFilterStrategy.UseGlobalSetting, false).isUseNewest());\n \n d.setGlobalUpstreamFilterStrategy(TriggeredBuildSelector.UpstreamFilterStrategy.UseOldest);\n assertFalse(new TriggeredBuildSelector(false, TriggeredBuildSelector.UpstreamFilterStrategy.UseGlobalSetting, false).isUseNewest());\n \n d.setGlobalUpstreamFilterStrategy(TriggeredBuildSelector.UpstreamFilterStrategy.UseNewest);\n assertTrue(new TriggeredBuildSelector(false, TriggeredBuildSelector.UpstreamFilterStrategy.UseGlobalSetting, false).isUseNewest());\n \n d.setGlobalUpstreamFilterStrategy(TriggeredBuildSelector.UpstreamFilterStrategy.UseOldest);\n assertTrue(new TriggeredBuildSelector(false, TriggeredBuildSelector.UpstreamFilterStrategy.UseNewest, false).isUseNewest());\n \n d.setGlobalUpstreamFilterStrategy(TriggeredBuildSelector.UpstreamFilterStrategy.UseNewest);\n assertFalse(new TriggeredBuildSelector(false, TriggeredBuildSelector.UpstreamFilterStrategy.UseOldest, false).isUseNewest());\n }", "protected boolean canFire()\n\t\t{\n\t\treturn ( TimeUtils.timeSinceMillis(startTime) > this.fireDelay );\n\t\t}", "boolean hasDeliveryDateAfter();", "boolean hasOrderDate();", "@Test\n public void give_subscriptionCreatedAfterLastScheduledDelivery_when_getDailySubscriptionsToDeliver_then_dontReturn() {\n }", "boolean hasContainerTimestamp();", "boolean isMet();", "boolean hasShotChangeDetectionConfig();", "private boolean decideIfEventShouldBeReportedAsAFailure() {\n \tint value = new Random().nextInt(100);\n \tif (value < TARGET_SUCCESS_RATE) {\n \t\treturn false;\n \t} else {\n \treturn true;\n \t}\n }", "boolean hasVotingStartTime();", "boolean hasExecutionTime();", "protected boolean isRateRunnerEnabled() {\r\n\t\tDescription description = getDescription();\r\n\t\treturn description.testCount() > 1 && isRepeatRunnerEnabled();\r\n\t}", "public boolean hasPassed(final long delta){\n return stamp + delta <= System.currentTimeMillis();\n }", "public boolean isSetAutoReplyTriggeredSend()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AUTOREPLYTRIGGEREDSEND$20) != 0;\n }\n }", "public boolean isMet();", "boolean hasCampaignExperiment();", "public boolean isNowTime_in_period(){\r\n if (isTimeWith_in_Interval((LocalTime.now()).format(formatter),openTime,closeTime)) {\r\n // System.out.println(\"hi this works\");\r\n return true;\r\n } else {\r\n \r\n return false;\r\n }\r\n }", "public boolean isInflated() {\n // TODO(cgavidia): This rule needs to be improved!\n\n boolean fixIsDelayed = false;\n\n if (this.isReportedSevere()) {\n fixIsDelayed = isFixDelayed(MAXIMUM_RELEASES_FOR_SEVERE);\n }\n\n if (this.isReportedDefault()) {\n fixIsDelayed = isFixDelayed(MAXIMUM_RELEASES_FOR_DEFAULT);\n }\n\n boolean fixIsRejected = isFixRejected();\n boolean issueIsIgnored = isIssueIgnored();\n\n return fixIsDelayed || fixIsRejected || issueIsIgnored;\n }", "boolean hasInstant();", "private boolean shouldApply() {\n return nextRandomInt() >= unappliedJobCutoff;\n }", "public boolean isSetAggregationType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(AGGREGATIONTYPE$2) != null;\n }\n }", "public void triggerAllAggregators() {\n Map<Integer, TimedDataAggregator> aggregatorMap = new HashMap<>();\n aggregatorMap.putAll(FeatureAggregators.getInstance().getAggregatorMap());\n aggregatorMap.putAll(StateAggregators.getInstance().getAggregatorMap());\n aggregatorMap.putAll(ClassificationAggregators.getInstance().getAggregatorMap());\n aggregatorMap.putAll(TrustLevelAggregators.getInstance().getAggregatorMap());\n\n // create shadow loopers for all aggregators\n Map<Integer, ShadowLooper> shadowLooperMap = createShadowLoopers(aggregatorMap);\n\n // set duration according to record\n long duration = record.getRecorder().getStopTimestamp() - record.getRecorder().getStartTimestamp();\n\n // trigger all aggregators\n triggerAggregators(aggregatorMap, shadowLooperMap, duration);\n }", "boolean hasRemarketingAction();", "private static boolean isMonitoringTimeOver(Properties configuration) {\r\n String monitoringStartTime = configuration.getProperty(Constants.PROPERTY_MONITORING_START_TIME);\r\n if (monitoringStartTime == null) {\r\n return false;\r\n }\r\n DateTimeZone.setDefault(DateTimeZone.UTC);\r\n \r\n DateTime startTime = new DateTime(monitoringStartTime);\r\n String monitoringDuration = configuration.getProperty(Constants.PROPERTY_TIME_MONITORING_DURATION);\r\n \r\n int monitoringDurationMinutes = Integer.parseInt(monitoringDuration);\r\n DateTime endTime = startTime.plusMinutes(monitoringDurationMinutes);\r\n \r\n return endTime.isBeforeNow();\r\n }", "public boolean hasScheduling() {\n return schedulingBuilder_ != null || scheduling_ != null;\n }", "boolean isAutoRedeem();", "private boolean triggered() {\n\t\treturn true;\n\t}", "boolean hasAdGroupCriterionSimulation();", "protected void assertEvent(boolean fExpected)\n {\n Eventually.assertThat(invoking(this).wasInserted(), is(fExpected));\n }", "private static void verifyIsAggregationDataTypeMatched(String aggrFuncName, TSDataType dataType) {\n if (dataType == null) {\n return;\n }\n switch (aggrFuncName.toLowerCase()) {\n case SqlConstant.AVG:\n case SqlConstant.SUM:\n case SqlConstant.EXTREME:\n case SqlConstant.MIN_VALUE:\n case SqlConstant.MAX_VALUE:\n if (dataType.isNumeric()) {\n return;\n }\n throw new SemanticException(\n \"Aggregate functions [AVG, SUM, EXTREME, MIN_VALUE, MAX_VALUE] only support numeric data types [INT32, INT64, FLOAT, DOUBLE]\");\n case SqlConstant.COUNT:\n case SqlConstant.COUNT_TIME:\n case SqlConstant.MIN_TIME:\n case SqlConstant.MAX_TIME:\n case SqlConstant.FIRST_VALUE:\n case SqlConstant.LAST_VALUE:\n case SqlConstant.TIME_DURATION:\n case SqlConstant.MODE:\n return;\n case SqlConstant.COUNT_IF:\n if (dataType != TSDataType.BOOLEAN) {\n throw new SemanticException(\n String.format(\n \"Input series of Aggregation function [%s] only supports data type [BOOLEAN]\",\n aggrFuncName));\n }\n return;\n default:\n throw new IllegalArgumentException(\"Invalid Aggregation function: \" + aggrFuncName);\n }\n }", "public boolean isNextClockChangeCalled();", "boolean hasDateTime();", "boolean isDelayed();", "public boolean canBeScheduled(Warehouse warehouse) ;", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimestamp();", "boolean hasTimeBoltCBoltD();", "public boolean isClockChangeCalled();", "boolean hasTasksDeterminingBuildDurationMs();", "public void testGetStartTime() {\n assertTrue(mb.getStartTime() > -1);\n }", "boolean hasExpirationDate();", "private void check_this_minute() {\n controlNow = false;\n for (DTimeStamp dayControl : plan) {\n if (dayControl.point == clockTime.point) {\n controlNow = true;\n break;\n }\n }\n for (DTimeStamp simControl : extra) {\n if (simControl.equals(clockTime)) {\n controlNow = true;\n break;\n }\n }\n }", "@Test\n public void testOpen_customTimeWindowInvalid() {\n final boolean timeBucketCfg = true;\n\n // Create empty config\n final Map<String, Object> config = new HashMap<>();\n config.put(SpoutConfig.METRICS_RECORDER_TIME_BUCKET, timeBucketCfg);\n\n // Create mock TopologyContet\n final TopologyContext mockTopologyContext = mock(TopologyContext.class);\n\n // Create recorder and call open.\n final StormRecorder recorder = new StormRecorder();\n recorder.open(config, mockTopologyContext);\n\n // Validate we got called as expected.\n\n // Shouldn't have interacted with the taskId\n verify(mockTopologyContext, never()).getThisTaskIndex();\n\n // Should have registered 4 metrics.\n verify(mockTopologyContext, times(1)).registerMetric(eq(\"GAUGES\"), any(MultiAssignableMetric.class), eq(defaultTimeWindow));\n verify(mockTopologyContext, times(1)).registerMetric(eq(\"TIMERS\"), any(MultiReducedMetric.class), eq(defaultTimeWindow));\n verify(mockTopologyContext, times(1)).registerMetric(eq(\"COUNTERS\"), any(MultiCountMetric.class), eq(defaultTimeWindow));\n }", "protected boolean isTickMatched(TickMessage tick) {\n TickMessage lastTick = getLastTick();\n long timestampMs = tick.getTimestamp().getTime();\n if (timestampMs + getLateTickThresholdMs() > System.currentTimeMillis()) {\n // verify if tick is not too old\n long lastTickTimestampMs = lastTick != null ? lastTick.getTimestamp().getTime() : 0;\n if (lastTickTimestampMs == 0 || lastTickTimestampMs < timestampMs) {\n // verify if the received tick is new\n return getScheduling().matches(tick.getTimestamp());\n }\n }\n return false;\n }", "boolean isRunningDuringTick(int tick);" ]
[ "0.57552505", "0.54611903", "0.5287584", "0.5276221", "0.5275061", "0.52612334", "0.5215695", "0.5209437", "0.52017635", "0.51567006", "0.5145282", "0.5126975", "0.5120364", "0.50946873", "0.506477", "0.5057716", "0.5020122", "0.4984707", "0.4977633", "0.49699986", "0.49699986", "0.49582106", "0.49498028", "0.49401483", "0.4932319", "0.49319053", "0.49077192", "0.48994762", "0.48970306", "0.4896784", "0.48889983", "0.48870134", "0.48864967", "0.48864967", "0.48857805", "0.48785838", "0.48775885", "0.484162", "0.48339614", "0.48248607", "0.48146492", "0.4806007", "0.48054194", "0.48003542", "0.4798982", "0.47890097", "0.47794646", "0.47755647", "0.477379", "0.47638395", "0.47494286", "0.47440556", "0.4736488", "0.47349933", "0.47047383", "0.47006795", "0.46962073", "0.4696009", "0.4693625", "0.46935174", "0.468679", "0.46828103", "0.4680415", "0.46680564", "0.4667828", "0.46648487", "0.46644786", "0.46636942", "0.46628982", "0.4662539", "0.46539196", "0.46502742", "0.46484718", "0.46475887", "0.46465582", "0.46434432", "0.4642277", "0.46383408", "0.4637607", "0.46366173", "0.46364293", "0.463515", "0.4634918", "0.46319684", "0.4629522", "0.4629522", "0.4629522", "0.4629522", "0.4629522", "0.4629522", "0.4629522", "0.4622653", "0.46140966", "0.4612488", "0.46102485", "0.46083358", "0.4607761", "0.4607081", "0.46060634", "0.46031228" ]
0.7435352
0
Advances the system clock by the specified amount of milliseconds
private static void advanceSystemClock(long milliseconds) { ShadowSystemClock.setCurrentTimeMillis(ShadowSystemClock.currentTimeMillis() + milliseconds); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void advance(long millis)\n {\n millis_ += millis;\n }", "public static void advanceTimeTo(long millis) {\n\t\tClock clock = Clock.systemUTC();\n\t\tDuration offset = Duration.ofMillis(millis - clock.millis());\n\t\tTime.setClock(Clock.offset(clock, offset));\n\t}", "protected void advanceTimer(long amount, TimeUnit timeUnit) {\r\n\t\tPseudoClockScheduler sessionClock = kieSession.getSessionClock();\r\n\t\tsessionClock.advanceTime(amount, timeUnit);\r\n\t}", "public void setDelay(double clock);", "private void sleepMilliseconds(long milliseconds) {\n try {\n Thread.sleep(milliseconds);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void advanceTime(){\n\t minute++;\n\t while (minute > 59) {\n\t minute -= 60;\n\t hour++;\n\t }\n\t while (hour > 23) {\n\t hour -= 24;\n\t day++;\n\t }\n\t while (day > 6) {\n\t day -= 7;\n\t }\n\n\t }", "public void update(long ms) {\n\t\t\n\t}", "public synchronized static void incrementTime() {\n\t\ttime += 1;\n\t}", "public static void sleep(long milliseconds) {\n\t\tGeneral.sleep(milliseconds);\n\t}", "private void timeSync() throws InterruptedException {\n long realTimeDateMs = currentTimeMs - System.currentTimeMillis();\n long sleepTime = periodMs + realTimeDateMs + randomJitter();\n\n if (slowdownFactor != 1) {\n sleepTime = periodMs * slowdownFactor;\n }\n\n if (sleepTime > 0) {\n Thread.sleep(sleepTime);\n }\n }", "public synchronized static void incrementTimeBy(int ticks) {\n\t\tif (ticks > 0) {\n\t\t\ttime += ticks;\n\t\t}\n\t}", "public void clock(double period);", "public void tick()\r\n\t{\r\n\t\tduration = (int) (((Sys.getTime() - lastCall) * resolution) / Sys\r\n\t\t\t\t.getTimerResolution());\r\n\t\tlastCall = Sys.getTime();\r\n\t}", "public void pauseUntilNextClock(){\n\t\tlong sleepTime = (long) (1000.0 / Settings.getSettings().getClockSpeed())\n\t\t\t\t- (System.currentTimeMillis() - this.mStartOfClock);\n\t\t\n\t\tif(sleepTime > 0){\n\t\t\ttry {\n\t\t\t\tThread.sleep(sleepTime);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}else{\n\t\t\tSystem.out.println(\"WARNING: System cannot keep up with simulator clock speed!\");\n\t\t\tSystem.out.println(\"WARNING: Reduce clock speed!\");\n\t\t\t}\n\t\t\n\t\tthis.mStartOfClock = System.currentTimeMillis();\n\t}", "private static void pause( int milliseconds )\n\t{\n\t\ttry\n\t\t{\n\t\t\tThread.sleep( milliseconds );\n\t\t}\n\t\tcatch( InterruptedException e )\n\t\t{\n\t\t}\n\t}", "private void sleep(long ms) throws InterruptedException {\n Thread.sleep(ms);\n }", "public void sleep(long millis) {\n\n\t\tlong timeOld = System.currentTimeMillis();\n\t\tlong timeNew = 0;\n\t\tlong temp = timeNew - timeOld;\n\n\t\twhile (temp < millis) {\n\t\t\ttimeNew = System.currentTimeMillis();\n\t\t\ttemp = timeNew - timeOld;\n\t\t}\n\n\t}", "public void kickTimer() {\n delayTime = System.currentTimeMillis() + shutdownDelay;\n// System.out.println(\"Time at which the loop should kick: \" + delayTime);\n }", "public void clockChange(int time);", "public void pauseFor( final long ms )\n\t{\n\t\tpauseUntil( System.currentTimeMillis() + ms );\n\t}", "public static void sleep(long msec)\n {\n try\n {\n Thread.sleep(msec);\n }\n catch (InterruptedException e)\n {\n }\n }", "private void startClock() {\r\n\t\tTimer timer = new Timer(500, new ActionListener() {\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent theEvent) {\r\n\t\t\t\tadvanceTime();\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n timer.setRepeats(true);\r\n timer.setCoalesce(true);\r\n timer.setInitialDelay(0);\r\n timer.start();\r\n\t}", "protected final void sleep(int inMilliseconds) {\r\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(inMilliseconds);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t} // catch\r\n\t}", "private void sleepMilliseconds(int time) {\n int multipliedParam = (int) (Math.random() * time + 1);\n\n try {\n TimeUnit.MILLISECONDS.sleep(multipliedParam);\n Log.v(\"DLASync.sleep\", \" sleep \" + multipliedParam + \" milliseconds...\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public final native double setTime(double milliseconds) /*-{\n this.setTime(milliseconds);\n return this.getTime();\n }-*/;", "public static void delay(int ms){\r\n\t\t\r\n\t\ttry {\r\n\t\t\tThread.sleep(ms);\r\n\t\t} catch (InterruptedException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public abstract void advance(double deltaTime);", "public void tick(){\r\n if(timer != 0)\r\n timer++;\r\n }", "private void simulateDelay(long millis) {\n try {\n Thread.sleep(millis);\n } catch (InterruptedException ignored) {\n }\n }", "public void sleepy(long ms)\n\t{\n\t\ttry {\n\t\t\tsleep(ms);\n\t\t} catch(InterruptedException e) {}\n\t}", "public void updateTime() {\n\t\tthis.currentTime = System.currentTimeMillis();\n\t}", "public void sleep()\n\t{\n\t\ttry\n\t\t{\n\t\t\tThread.sleep(getMilliseconds());\n\t\t}\n\t\tcatch (InterruptedException e)\n\t\t{\n\t\t\t// ignore but return\n\t\t}\n\t}", "public void warte( int ms )\n {\n try\n {\n Thread.sleep( ms );\n }\n catch ( InterruptedException e )\n {\n e.printStackTrace();\n }\n }", "public final void throttle(final long ms) {\r\n this.throttledMillis += ms;\r\n try {\r\n Thread.sleep(ms);\r\n } catch (InterruptedException ex) {\r\n }\r\n }", "void delayForDesiredFPS(){\n delayMs=(int)Math.round(desiredPeriodMs-(float)getLastDtNs()/1000000);\n if(delayMs<0) delayMs=1;\n try {Thread.currentThread().sleep(delayMs);} catch (java.lang.InterruptedException e) {}\n }", "void setTime(){\n gTime += ((float)millis()/1000 - millisOld)*(gSpeed/4);\n if(gTime >= 4) gTime = 0;\n millisOld = (float)millis()/1000;\n }", "private static void snooze(int milliseconds) {\n\t\ttry {\n\t\t\tThread.sleep(milliseconds);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setTimer(long ms) {\r\n\t\tthis.timer = ms;\r\n\t}", "@Override\n protected void sleep(int milliseconds) {\n super.sleep(milliseconds);\n }", "public void faster() {\n myTimer.setDelay((int) (myTimer.getDelay() * SPEED_FACTOR));\n }", "private void plusTime(){\n\n if(totalTimeCountInMilliseconds < 10000)\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(totalTimeCountInMilliseconds + 3000, 50);// give extra 3000 milliseconds if they get the answer right\n }\n else\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(10000, 50);// set the timer to 10000 millisec if totalTimeCountInMilliseconds + 3000 > 10000\n }\n\n countDownTimer.start();\n\n\n }", "void tick(long tickSinceStart);", "public void advanceTime(){\n\t\tminute++;\r\n\t\twhile (minute > 59) {\r\n\t\t\tminute -= 60;\r\n\t\t\thour++;\r\n\t\t}\r\n\t\twhile (hour > 23) {\r\n\t\t\thour -= 24;\r\n\t\t\tday++;\r\n\t\t}\r\n\t\twhile (day > 6) {\r\n\t\t\tday -= 7;\r\n\t\t\tweek++;\r\n\t\t\ttotalMoney += abonnementen * 40;\r\n\t\t}\r\n\t\twhile(week > 51) {\r\n\t\t\tweek -= 52;\r\n\t\t}\r\n\t\t//System.out.println(\"advanceTime: \"+\"week: \"+ week + \" day: \"+ day +\" hour: \" + hour +\" minute: \"+ minute+ \" Money earned = \" + Math.round(totalMoney));\r\n\t}", "private void advanceTime() {\r\n myCurrentTimeLabel.setText(DateFormat.getDateTimeInstance().format(new Date()));\r\n }", "public static void forTime(long time) {\n\t\ttry {\n\t\t\tThread.sleep(time);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void setCurrentTime(long currentTime);", "public void timePassed(double dt) {\r\n moveOneStep(dt);\r\n }", "public void addStoredTime(long timeInMilliseconds){\n mStoredTime += timeInMilliseconds;\n }", "public void increaseSpeed() {\r\n\tupdateTimer.setDelay((int)Math.floor(updateTimer.getDelay()*0.95));\r\n\t\t}", "private void sleep(long millis){\n\t\ttry {\n\t\t\tThread.sleep(millis);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setIncTimeout(int seconds);", "public void update(int time);", "public abstract void systemTurnStarts(long ms);", "public void timer() {\r\n date.setTime(System.currentTimeMillis());\r\n calendarG.setTime(date);\r\n hours = calendarG.get(Calendar.HOUR_OF_DAY);\r\n minutes = calendarG.get(Calendar.MINUTE);\r\n seconds = calendarG.get(Calendar.SECOND);\r\n //Gdx.app.debug(\"Clock\", hours + \":\" + minutes + \":\" + seconds);\r\n\r\n buffTimer();\r\n dayNightCycle(false);\r\n }", "@Override\n public native void delay(int ms);", "public void moveDelay ( )\r\n\t{\r\n\t\ttry {\r\n\t\t\tThread.sleep( 1000 );\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void delay() {\n\n long ONE_SECOND = 1_000;\n\n try {\n Thread.sleep(ONE_SECOND);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void pause(int milliseconds) {\n\t\ttry {\n\t\t\tThread.sleep(milliseconds);\n\t\t} catch (Exception e) {\n\t\t\t// Nothing to capture\n\t\t}\n\t}", "public void timePassed(double dt) {\r\n this.moveOneStep(dt);\r\n }", "private void delay (int milliSec)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tThread.sleep (milliSec);\r\n\t\t}\r\n\t\tcatch (InterruptedException e)\r\n\t\t{\r\n\t\t}\r\n\t}", "private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }", "private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }", "public void IncWaitTime() {\n this.WaitTime++;\n }", "public void tick() {\n\t\tmFrameCount++;\n\t\t\n\t\tif (mStopwatch.getElapsedTime() > 1000) {\n\t\t\tmFramesPerSecond = mFrameCount;\n\t\t\tmFrameCount = 0;\n\t\t\t\n\t\t\tmStopwatch.restart();\n\t\t}\n\t}", "public synchronized void scheduleTick(long deltat){\n\t\tscheduler.schedule(tickTask, deltat, TimeUnit.MILLISECONDS);\n\t}", "private static void increment_time()\n\t{\n\t\ttime_of_day = time_of_day + 1;\n\t\tif(time_of_day>=120)\n\t\t{\n\t\t\ttime_of_day=time_of_day-120;\n\t\t}\n\t}", "public void delay(long waitAmount){\r\n long time = System.currentTimeMillis();\r\n while ((time+waitAmount)>=System.currentTimeMillis()){ \r\n //nothing\r\n }\r\n }", "private void sleep(long millis) {\n\t\ttry {\n\t\t\tThread.sleep(millis);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void sleepFor(float time) {\n try {\r\n Thread.sleep((int)(time*1000));\r\n } catch (InterruptedException e){\r\n }\r\n }", "private void emulateDelay() {\n try {\n Thread.sleep(700);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void next( long time );", "public void timeTick()\r\n\t{\r\n\t\tnumberDisplay1.increment();\r\n\t}", "private void scheduleResetEveryMillis(final int milliseconds) {\n Timer timer = new Timer();\n timer.scheduleAtFixedRate(new APIResetTask(theapi), milliseconds, milliseconds);\n }", "public void increaseIdleTime( final long time ) {\r\n idleTime += time;\r\n }", "public void delay(){\n try {\n Thread.sleep((long) ((samplingTime * simulationSpeed.factor)* 1000));\n } catch (InterruptedException e) {\n started = false;\n }\n }", "public static void waitTime(long s) {\n long l = System.currentTimeMillis() + s;\n while (System.currentTimeMillis() < l) {\n\n }\n }", "public void timePassed(double dt) {\n this.moveOneStep(dt);\n }", "void update(int seconds);", "public synchronized void tick(){\r\n\t\ttime++;\r\n\t\tnotifyAll();\r\n\t}", "public Timer(long millisecond) {\r\n this.period = millisecond;\r\n reset();\r\n }", "public void waitForTick(long periodMs) throws InterruptedException {\n\n long remaining = periodMs - (long)period.milliseconds();\n\n // sleep for the remaining portion of the regular cycle period.\n if (remaining > 0)\n Thread.sleep(remaining);\n\n // Reset the cycle clock for the next pass.\n period.reset();\n }", "public void step(long now) {\n\t}", "public static void sleep(long millis) {\n run(() -> Thread.sleep(millis));\n }", "public void timeUpdate(int time) {\r\n handler.setTime(time);\r\n }", "public void advanceDay(long day) {\n clock = Clock.offset(clock, Duration.ofDays(day));\n }", "public static void sleep(long ms) {\n try {\n Logger.trace(\"Sleeping for {} ms\", ms);\n Thread.sleep(ms);\n } catch (InterruptedException e) { // NOSONAR squid:S2142\n Logger.warn(\"Interrupted while sleeping for {} ms: {}\", ms, e.getMessage());\n Thread.currentThread().interrupt();\n }\n }", "public static void sleep(long milis) {\n\t\ttry {\n\t\t\tThread.sleep(milis);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setTime(long timeMillis) {\n this.timeMillis = timeMillis;\n }", "public void setMilliseconds(long milliseconds) {\n\t\tthis.milliseconds = milliseconds;\n\t}", "public void sleep(long millis) {\n long end = System.currentTimeMillis() + millis;\n for (;;)\n try {\n Thread.sleep(end - System.currentTimeMillis());\n break;\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IllegalArgumentException e) {\n break; // If sleep value goes below 0\n }\n }", "public void pause() {\n long currentTime = System.currentTimeMillis();\n ms = originalms - currentTime;\n }", "@Override\n public void update(int deltaMs)\n {\n this.system.update(deltaMs);\n }", "protected void setTimeout(long milliseconds) {\n\t\tproxy.setTimeout(milliseconds);\n\t}", "public static void pause(int ms) \r\n {\r\n try \r\n {\r\n Thread.sleep(ms);\r\n } catch (InterruptedException e) \r\n {\r\n System.err.format(\"IOException: %s%n\", e);\r\n }\r\n }", "public void delay(long millisec) {\n try {\n Thread.sleep(millisec);\n } catch (InterruptedException e) {\n LOGGER.info(e.getMessage());\n }\n }", "private void pause(long howLong)\r\n {\r\n try \r\n {\r\n Thread.sleep(howLong);\r\n }\r\n catch(InterruptedException e) \r\n {\r\n\r\n }\r\n }", "public void tick(double dt) {\n }", "public void timer()\n {\n timer += .1; \n }", "public void timePasses(){\n crtClock++;\n if(crtClock==25)crtClock=1; // If end of day, reset to 1\n if(crtClock<=opHours)tellMeterToConsumeUnits(unitsPerHr);\n }", "public abstract void twist(long ms);" ]
[ "0.7209662", "0.7054437", "0.65686524", "0.6422496", "0.6224241", "0.62188935", "0.61743045", "0.6169835", "0.616507", "0.6130302", "0.6058078", "0.6037779", "0.6035108", "0.60224164", "0.5984631", "0.59781104", "0.59585905", "0.5927782", "0.5913351", "0.5909567", "0.586645", "0.5823612", "0.5792587", "0.5770706", "0.57370913", "0.5732516", "0.5723138", "0.5686696", "0.56754404", "0.5666024", "0.5660235", "0.56565064", "0.5653442", "0.5649919", "0.5641189", "0.5634868", "0.5633729", "0.562436", "0.56120664", "0.5605508", "0.55976695", "0.5570708", "0.55619985", "0.5558998", "0.5556166", "0.5546487", "0.5544473", "0.55364764", "0.5530445", "0.5528333", "0.5528081", "0.55247307", "0.5518707", "0.55146855", "0.55080986", "0.55044514", "0.5499878", "0.5498387", "0.5489246", "0.5480467", "0.5478157", "0.5478157", "0.54748225", "0.5474328", "0.5473424", "0.54637045", "0.5456354", "0.5454631", "0.5437808", "0.5431849", "0.5431562", "0.54300165", "0.54266083", "0.54046905", "0.5403891", "0.5403562", "0.5398435", "0.53962165", "0.5393091", "0.53926295", "0.5389606", "0.5381599", "0.5358202", "0.53562105", "0.534957", "0.5348192", "0.53479254", "0.53402936", "0.53392357", "0.533918", "0.53351974", "0.533165", "0.53271806", "0.5323592", "0.5317238", "0.5303682", "0.5301797", "0.5301092", "0.529607", "0.52846444" ]
0.78846174
0
Forces the process engine to spawn a workflow thread.
public boolean getForkOnTraversal();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public State<T> run(Workflow<T> workflow) {\n System.out.println(\"delaying work for: \" + workflow);\n hasFinished = true;\n return this;\n }", "public void setSpawnActionInNewThread(boolean spawnActionInNewThread)\n {\n this.spawnActionInNewThread = spawnActionInNewThread;\n }", "public void before() {\n process = Thread.currentThread();\n }", "public Workflow() {\n\t\tsuper();\n\t}", "public void runInThread() {\n\t\tTaskRunner taskRunner = Dep.get(TaskRunner.class);\n\t\tATask atask = new ATask<Object>(getClass().getSimpleName()) {\n\t\t\t@Override\n\t\t\tprotected Object run() throws Exception {\n\t\t\t\tBuildTask.this.run();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t};\n\t\ttaskRunner.submitIfAbsent(atask);\n\t}", "public void startTask() {\n\t}", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "public void startWorkflow(String wfName) {\n\tlog(_processorName);\n\tlog(_tcpPort);\n\tlog(_wfDefPath);\n\tfor (int i = 0; i < _capabilities.size(); i++) {\n\t log(_capabilities.get(i).toString());\n\t}\n\t// TODO actually start the first task on an appropriate host\n }", "public void start() {\n // EFFECTS: starts a new thread from this instance.\n (new Thread(instance)).start();\n }", "private void startThread()\n {\n if (workerThread == null || !workerThread.isLooping())\n {\n workerThread = new LiveViewThread(this);\n workerThread.start();\n }\n }", "public void run() {\n\t\tthis.launch( null );\n\t}", "private void start()\n {\n _taskThread.start();\n _state = ActivityState.RUNNING;\n }", "private void startProcess() {\r\n \t\tstartCount++;\r\n \t\tString threadName = Thread.currentThread().getName() + \"-starter-\" + startCount;\r\n \t\tThread starter = new Thread(threadName) {\r\n \t\t\t@Override\r\n \t\t\tpublic void run() {\r\n \t\t\t\tstartupThrotle.acquireUninterruptibly();\r\n \t\t\t\tlong startTime = System.currentTimeMillis();\r\n \t\t\t\tMaximaProcess mp = makeProcess();\r\n \t\t\t\tstartupTimeHistory.add(System.currentTimeMillis() - startTime);\r\n \t\t\t\tmp.deactivate();\r\n \t\t\t\tpool.add(mp);\r\n \t\t\t\tstartupThrotle.release();\r\n \t\t\t}\r\n \t\t};\r\n \t\tstarter.start();\r\n \t}", "ThreadStart createThreadStart();", "public synchronized void start() {\n\t\tstartSuspended();\r\n\t\tsetRunnable(true);\r\n\t}", "public void createThread() {\n }", "PooledThread()\n {\n setDaemon(true);\n\n start();\n }", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "public void runResumeWorkflow() {\n\t\tassert (status == WorkflowStatus.READY\n\t\t\t\t|| status == WorkflowStatus.FINISHED || status == WorkflowStatus.ERROR);\n\n\t\tsetStatus(WorkflowStatus.INITIALIZING);\n\t}", "public void execute() {\n\t\tlaunch();\n\t}", "public void start() {\n\tanimator = new Thread(this);\n\tanimator.setName(\"erly_boid:::swarm intelligence\");\n\terlang =new Thread(co);\n\terlang.start();\n\tanimator.start();\n \n \n \t\n }", "@Override\r\n\tprotected void onPostExecute(Void result) {\n\t\tsuper.onPostExecute(result);\r\n\t\tmProgressDialog.dismiss();\r\n\t\tIntent i = new Intent(mainactivity, Workflow.class);\r\n\t\tmainactivity.startActivity(i);\r\n\t}", "public void start() {\n if (runner == null) {\n runner = new Thread(this, \"Runner\");\n runner.start();\n }\n }", "@Override\n\tpublic ITaskInstance createTaskInstance(WorkflowSession workflowSession,\n\t\t\tRuntimeContext rtCtx, IToken token,\n\t\t\tIProcessInstance processInstance, Task task, Activity activity) {\n\t\treturn null;\n\t}", "public static void launchTask(Task tsk)\n {\n getInstance().doExecute(tsk);\n }", "Map<String, Object> forceStartTaskInstance(User loginUser, int queueId);", "public void start() {\n\t\tif(t == null) {\n\t\t\tt = new Thread(this);\n\t\t\tt.start();\n\t\t}\n\t}", "private void start() {\r\n\t\tif (running)\r\n\t\t\treturn;\r\n\t\trunning = true;\r\n\t\tthread = new Thread(this);//creates threat to run program on\r\n\t\tthread.start();\r\n\t}", "public synchronized void startInstance() {\n if (this.computationScheduler instanceof SchedulerLifecycle) {\n ((SchedulerLifecycle) this.computationScheduler).start();\n }\n if (this.ioScheduler instanceof SchedulerLifecycle) {\n ((SchedulerLifecycle) this.ioScheduler).start();\n }\n if (this.newThreadScheduler instanceof SchedulerLifecycle) {\n ((SchedulerLifecycle) this.newThreadScheduler).start();\n }\n }", "public void start ()\n {\n Thread th = new Thread (this);\n // start this thread\n th.start ();\n\n }", "public void startExecution() {\n \n \t\tfinal Thread thread = this.environment.getExecutingThread();\n \t\tthread.start();\n \t\tthis.startTime = System.currentTimeMillis();\n \t}", "public void startTaskTriggerCheckerThread() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n canRunEnqueueTaskThread.set(true);\n while(canRunEnqueueTaskThread.get()) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if(taskEnqueued.get() || canRunTaskThread.get()) { //do not enqueue the task if an instance of that task is already enqueued or running.\n continue;\n //log(PrioritizedReactiveTask.this.getClass().getSimpleName() + \" already in queue or is currently executing\");\n } else if(shouldTaskActivate()) {\n System.out.println(\"Thread \" + Thread.currentThread().getId() + \" enqueued task: \" + this.getClass().getSimpleName());\n taskQueue.add(PrioritizedReactiveTask.this);\n activeTasks.add(PrioritizedReactiveTask.this);\n taskEnqueued.set(true);\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }).start();\n }", "@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t}", "void forceSpawn() throws SpawnException;", "synchronized void systemStartThreads() throws Exception {\n myHiddenPause = false;\n if (!myGamePause) {\n startThreads();\n }\n }", "public void start() {\n thread = new Thread(this);\n thread.setPriority(Thread.MIN_PRIORITY);\n thread.start();\n }", "protected final void startWork(T input) {\n\t\tif (isFormValid == null || isFormValid.test(input)) {\n\n\t\t\tif (process == null) {\n\t\t\t\tthrow new IllegalStateException(\"You must define the process. Please use the setProcess method\");\n\t\t\t}\n\n\t\t\tif (ProgressMode.SIMPLE.equals(progressMode)) {\n\t\t\t\t// simply execute the process (without displaying any feedback)\n\t\t\t\texecuteSimpleProcess(input);\n\t\t\t} else {\n\t\t\t\texecuteProcessWithPolling(input);\n\t\t\t}\n\t\t}\n\t}", "public void begin() {\n\t\t\tGeneralThreadPool.getInstance().schedule(this, 3000);\n\t\t}", "public void begin() {\n\t\t\tGeneralThreadPool.getInstance().schedule(this, 3000);\n\t\t}", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public void start() {\n if (!started) {\n thread = new Thread(this);\n thread.start();\n started = true;\n }\n }", "public boolean startProcess (Properties ctx, ProcessInfo pi, Trx trx);", "public void doStart() {\n if (this.mActive == null) {\n a();\n } else {\n com.alipay.mobile.common.task.Log.v(TAG, \"StandardPipeline.start(a task is running, so don't call scheduleNext())\");\n }\n }", "private void start(){\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }", "public void setThread(Thread t);", "private synchronized void userStartThreads() throws Exception {\n myGamePause = false;\n if (!myHiddenPause) {\n startThreads();\n }\n }", "public void pauseWorkflow() {\n\t\tassert (status == WorkflowStatus.RUNNING);\n\t\tsetStatus(WorkflowStatus.PAUSED);\n\t}", "public void setWorkflowStatus(Status status) {\r\n workflowStatus = status;\r\n }", "public void start() {\n\t\tmyThread = new Thread(this); myThread.start();\n\t}", "public synchronized void start() {\n\t\tif (running)\n\t\t\treturn;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t\trunning = true;\n\t}", "public static void parkTask(final ITask task) throws Exception {\r\n ServerFactory.getServer().getSecurityManager().executeAsSystem(new Callable<Void>() {\r\n @Override\r\n public Void call() throws Exception {\r\n IWorkflowSession iWorkflowSession = Ivy.session();\r\n // Resume a task if it's suspended.\r\n if (task.getState().equals(TaskState.SUSPENDED)) {\r\n iWorkflowSession.resumeTask(task.getId());\r\n }\r\n\r\n // If the task is resumed or created, then park task.\r\n if (task.getState().equals(TaskState.RESUMED) || (task.getState().equals(TaskState.CREATED))) {\r\n iWorkflowSession.parkTask(task);\r\n }\r\n\r\n return null;\r\n }\r\n });\r\n\r\n }", "public synchronized void start() {\n if (!this.isRunning) {\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public synchronized void start() {\r\n\r\n\t\tif (!running) {\r\n\t\t\trunning = true;\r\n\t\t\tnew Thread(this, name).start();\r\n\t\t}\r\n\t}", "public void startThread(VirtualThread newThread) {\n\t\tlog.debug(\"**** CREATING A THREAD? ****\");\n\t}", "public void startProcess() {\r\n\t\tprocess = true;\r\n\t}", "public EWorkflowFactoryImpl() {\n\t\tsuper();\n\t}", "@Override\n public void startTask(TrcRobot.RunMode runMode)\n {\n }", "private void startNormalThread() {\n customThread = new CustomThread();\n customThread.start();\n }", "protected PayerThread() {\n\t\t\tEvent.ASSERTION.issue(sets == null, \"builders is null\");\n\t\t\tEvent.ASSERTION.issue(workloadConfiguration == null, \"configuration is null\");\n\n\t\t\tsetDaemon(true);\n\t\t}", "@Override\n public void doStart() throws OfficeException {\n officeProcessManager.startAndWait();\n }", "void launch();", "void launch();", "void launch();", "void addWorkflow(Workflow workflow);", "public synchronized void start() throws Exception {\n if (_runningThread != null) {\n throw new Exception(\"Node already running!\");\n }\n _runningThread = new Thread(this);\n _runningThread.start();\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\texecutable.feedbackExecutionProcessRunning();\r\n\t\t\t}", "public void submitWorkTasks(WorkflowDefine workflowDefine) {\n\t\t\n\t\t\n\t}", "public void makeStandalone() {\n mCommonProcess = this;\n }", "public boolean isWorkflow() {\n\t\treturn true;\n\t}", "public void start() {\n LOG.entering(CLASS_NAME, \"start\");\n if (state.compareAndSet(STOPPING, STARTED)) {\n // Keep same thread running if STOPPING\n }\n else if (state.compareAndSet(STOPPED, STARTED)) {\n new Thread(this, \"XoaEventProcessor\").start();\n }\n }", "@Test\n public void testTransientProcessInstanceWithoutForkOnTraversal()\n {\n sf.getWorkflowService().startProcess(PROCESS_DEF_ID_NON_FORKED, null, true);\n\n DatabaseOperationMonitoring.instance().assertExactly(SELECT_WFUSER_REALM.times(1),\n SELECT_WORKFLOWUSER.times(1),\n SELECT_USER_PARTICIPANT.times(1));\n }", "public void start() {\n\t\tai = new Thread(this);\n\t\tai.start();\n\t}", "public void run () { run (true); }", "public void start() {\r\n\t\trunning = true;\r\n\t\tt = new Thread(this);\r\n\t\tt.start();\r\n\t}", "void startToPerformAsLeader();", "private void go() {\n\n new Thread(this).start();\n }", "public void startThread(View view) {\n //startNormalThread();\n startRunnableThread();\n }", "public void resume(){\r\n\r\n isRunning = true;\r\n ourThread = new Thread(this);\r\n ourThread.start();\r\n }", "public void startThread(){\n\t\trunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "@Override\r\n public Thread newThread(Runnable r) {\n Thread t = new Thread(r, \"example-runner\");\r\n t.setDaemon(true);\r\n return t;\r\n }", "public void execute(){\n if (pipeline != null){\n pipeline.addTask(this);\n } else {\n run();\n }\n }", "public void start() {\r\n isRunning = true;\r\n Thread thread = new myThread();\r\n thread.start();\r\n }", "@Override\n public void start() throws SyncProcessException {\n }", "public void start()\n\t{\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "void launchAsMaster();", "@Override\n public void startThread() {\n Log.d(TAG, \"Starting \" + getName() + \" thread!\");\n if (!started)\n start();\n running = enabled;\n doStartAction();\n }", "@Test\n public void testTransientProcessInstanceWithForkOnTraversal() throws Exception\n {\n final ProcessInstance pi = sf.getWorkflowService().startProcess(PROCESS_DEF_ID_FORKED, null, true);\n ProcessInstanceStateBarrier.instance().await(pi.getOID(), ProcessInstanceState.Completed);\n\n DatabaseOperationMonitoring.instance().assertExactly(SELECT_WFUSER_REALM.times(1),\n SELECT_WORKFLOWUSER.times(1),\n SELECT_USER_PARTICIPANT.times(1),\n SELECT_PREFERENCE.times(7));\n }", "@Override\n public void execute() {\n Time.sleep(3000);\n Starting.execute();\n }", "void startThread();", "private Workflow context(Action a) {\n\t\tString workflowClassName = param.workflowName;\n\t\t//Independent actions may be part of some other workflow, fill them in first.\n\t\tfor(Workflow w : workflows) {\n\t\t\tif(w.isSatisfiable(a)) {\n\t\t\t\treturn w;\n\t\t\t}\n\t\t}\n\t\t//The action do not satisfy any existing workflow. We check whether the action is independent.\n\t\t//If it is, we start a new workflow with head = this action.\n\t\ttry {\n\t\t\tClass workflowClass = Class.forName(workflowClassName);\n\t\t\tWorkflow w = (Workflow) workflowClass.newInstance();\n\t\t\tw.sys = this;\n\n\t\t\tif(w.isIndependentAction(a) && w.isSatisfiable(a)) {\n\t\t\t\tworkflows.add(w);\n\t\t\t\tSimLogger.log(Level.FINEST, \"New workflow created with action \" + a);\n\t\t\t\treturn w;\n\t\t\t}\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Class not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(InstantiationException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(IllegalAccessException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSimLogger.log(Level.FINE, \"No workflow can be found to satisify action \" + a +\n\t\t \". Action is execution is cancelled.\");\n\t\treturn null;\n\t}" ]
[ "0.59018683", "0.58994085", "0.5708537", "0.5702491", "0.5617864", "0.5559109", "0.5543914", "0.5543914", "0.54930764", "0.54930764", "0.54930764", "0.54930764", "0.54930764", "0.54930764", "0.54930764", "0.5430747", "0.541677", "0.5395428", "0.53866106", "0.53841126", "0.5366035", "0.53157294", "0.5305009", "0.5299415", "0.52390724", "0.52176136", "0.52176136", "0.52176136", "0.5204963", "0.5199161", "0.51931626", "0.5191386", "0.51831174", "0.51762694", "0.51706994", "0.5169649", "0.5168509", "0.51674634", "0.5155881", "0.51054496", "0.5101421", "0.50994563", "0.508679", "0.50733227", "0.5067522", "0.50564045", "0.5038505", "0.5023253", "0.5023253", "0.50231516", "0.50231516", "0.5014887", "0.5010077", "0.50075847", "0.49912506", "0.49872816", "0.49858117", "0.49809387", "0.49757883", "0.497253", "0.49620643", "0.4956484", "0.4953788", "0.49480495", "0.4947787", "0.49473518", "0.49437207", "0.49395207", "0.4938818", "0.49293935", "0.49272555", "0.49269104", "0.49269104", "0.49269104", "0.49268943", "0.49266493", "0.49259222", "0.49236637", "0.49032006", "0.48957124", "0.4894683", "0.48940703", "0.4889989", "0.48791254", "0.48729697", "0.48713773", "0.48633447", "0.48589072", "0.4855818", "0.48527506", "0.48477325", "0.48459628", "0.48425743", "0.4839618", "0.48364788", "0.4833589", "0.48287958", "0.48287797", "0.48251635", "0.48219484", "0.48218372" ]
0.0
-1
Forces the process engine to spawn a workflow thread.
public void setForkOnTraversal(boolean forkOnTraversal);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public State<T> run(Workflow<T> workflow) {\n System.out.println(\"delaying work for: \" + workflow);\n hasFinished = true;\n return this;\n }", "public void setSpawnActionInNewThread(boolean spawnActionInNewThread)\n {\n this.spawnActionInNewThread = spawnActionInNewThread;\n }", "public void before() {\n process = Thread.currentThread();\n }", "public Workflow() {\n\t\tsuper();\n\t}", "public void runInThread() {\n\t\tTaskRunner taskRunner = Dep.get(TaskRunner.class);\n\t\tATask atask = new ATask<Object>(getClass().getSimpleName()) {\n\t\t\t@Override\n\t\t\tprotected Object run() throws Exception {\n\t\t\t\tBuildTask.this.run();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t};\n\t\ttaskRunner.submitIfAbsent(atask);\n\t}", "public void startTask() {\n\t}", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "public void startWorkflow(String wfName) {\n\tlog(_processorName);\n\tlog(_tcpPort);\n\tlog(_wfDefPath);\n\tfor (int i = 0; i < _capabilities.size(); i++) {\n\t log(_capabilities.get(i).toString());\n\t}\n\t// TODO actually start the first task on an appropriate host\n }", "public void start() {\n // EFFECTS: starts a new thread from this instance.\n (new Thread(instance)).start();\n }", "private void startThread()\n {\n if (workerThread == null || !workerThread.isLooping())\n {\n workerThread = new LiveViewThread(this);\n workerThread.start();\n }\n }", "public void run() {\n\t\tthis.launch( null );\n\t}", "private void start()\n {\n _taskThread.start();\n _state = ActivityState.RUNNING;\n }", "private void startProcess() {\r\n \t\tstartCount++;\r\n \t\tString threadName = Thread.currentThread().getName() + \"-starter-\" + startCount;\r\n \t\tThread starter = new Thread(threadName) {\r\n \t\t\t@Override\r\n \t\t\tpublic void run() {\r\n \t\t\t\tstartupThrotle.acquireUninterruptibly();\r\n \t\t\t\tlong startTime = System.currentTimeMillis();\r\n \t\t\t\tMaximaProcess mp = makeProcess();\r\n \t\t\t\tstartupTimeHistory.add(System.currentTimeMillis() - startTime);\r\n \t\t\t\tmp.deactivate();\r\n \t\t\t\tpool.add(mp);\r\n \t\t\t\tstartupThrotle.release();\r\n \t\t\t}\r\n \t\t};\r\n \t\tstarter.start();\r\n \t}", "ThreadStart createThreadStart();", "public synchronized void start() {\n\t\tstartSuspended();\r\n\t\tsetRunnable(true);\r\n\t}", "public void createThread() {\n }", "PooledThread()\n {\n setDaemon(true);\n\n start();\n }", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "public void runResumeWorkflow() {\n\t\tassert (status == WorkflowStatus.READY\n\t\t\t\t|| status == WorkflowStatus.FINISHED || status == WorkflowStatus.ERROR);\n\n\t\tsetStatus(WorkflowStatus.INITIALIZING);\n\t}", "public void execute() {\n\t\tlaunch();\n\t}", "public void start() {\n\tanimator = new Thread(this);\n\tanimator.setName(\"erly_boid:::swarm intelligence\");\n\terlang =new Thread(co);\n\terlang.start();\n\tanimator.start();\n \n \n \t\n }", "@Override\r\n\tprotected void onPostExecute(Void result) {\n\t\tsuper.onPostExecute(result);\r\n\t\tmProgressDialog.dismiss();\r\n\t\tIntent i = new Intent(mainactivity, Workflow.class);\r\n\t\tmainactivity.startActivity(i);\r\n\t}", "public void start() {\n if (runner == null) {\n runner = new Thread(this, \"Runner\");\n runner.start();\n }\n }", "@Override\n\tpublic ITaskInstance createTaskInstance(WorkflowSession workflowSession,\n\t\t\tRuntimeContext rtCtx, IToken token,\n\t\t\tIProcessInstance processInstance, Task task, Activity activity) {\n\t\treturn null;\n\t}", "public static void launchTask(Task tsk)\n {\n getInstance().doExecute(tsk);\n }", "Map<String, Object> forceStartTaskInstance(User loginUser, int queueId);", "public void start() {\n\t\tif(t == null) {\n\t\t\tt = new Thread(this);\n\t\t\tt.start();\n\t\t}\n\t}", "private void start() {\r\n\t\tif (running)\r\n\t\t\treturn;\r\n\t\trunning = true;\r\n\t\tthread = new Thread(this);//creates threat to run program on\r\n\t\tthread.start();\r\n\t}", "public synchronized void startInstance() {\n if (this.computationScheduler instanceof SchedulerLifecycle) {\n ((SchedulerLifecycle) this.computationScheduler).start();\n }\n if (this.ioScheduler instanceof SchedulerLifecycle) {\n ((SchedulerLifecycle) this.ioScheduler).start();\n }\n if (this.newThreadScheduler instanceof SchedulerLifecycle) {\n ((SchedulerLifecycle) this.newThreadScheduler).start();\n }\n }", "public void start ()\n {\n Thread th = new Thread (this);\n // start this thread\n th.start ();\n\n }", "public void startExecution() {\n \n \t\tfinal Thread thread = this.environment.getExecutingThread();\n \t\tthread.start();\n \t\tthis.startTime = System.currentTimeMillis();\n \t}", "public void startTaskTriggerCheckerThread() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n canRunEnqueueTaskThread.set(true);\n while(canRunEnqueueTaskThread.get()) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if(taskEnqueued.get() || canRunTaskThread.get()) { //do not enqueue the task if an instance of that task is already enqueued or running.\n continue;\n //log(PrioritizedReactiveTask.this.getClass().getSimpleName() + \" already in queue or is currently executing\");\n } else if(shouldTaskActivate()) {\n System.out.println(\"Thread \" + Thread.currentThread().getId() + \" enqueued task: \" + this.getClass().getSimpleName());\n taskQueue.add(PrioritizedReactiveTask.this);\n activeTasks.add(PrioritizedReactiveTask.this);\n taskEnqueued.set(true);\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }).start();\n }", "@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t}", "void forceSpawn() throws SpawnException;", "synchronized void systemStartThreads() throws Exception {\n myHiddenPause = false;\n if (!myGamePause) {\n startThreads();\n }\n }", "public void start() {\n thread = new Thread(this);\n thread.setPriority(Thread.MIN_PRIORITY);\n thread.start();\n }", "protected final void startWork(T input) {\n\t\tif (isFormValid == null || isFormValid.test(input)) {\n\n\t\t\tif (process == null) {\n\t\t\t\tthrow new IllegalStateException(\"You must define the process. Please use the setProcess method\");\n\t\t\t}\n\n\t\t\tif (ProgressMode.SIMPLE.equals(progressMode)) {\n\t\t\t\t// simply execute the process (without displaying any feedback)\n\t\t\t\texecuteSimpleProcess(input);\n\t\t\t} else {\n\t\t\t\texecuteProcessWithPolling(input);\n\t\t\t}\n\t\t}\n\t}", "public void begin() {\n\t\t\tGeneralThreadPool.getInstance().schedule(this, 3000);\n\t\t}", "public void begin() {\n\t\t\tGeneralThreadPool.getInstance().schedule(this, 3000);\n\t\t}", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public void start() {\n if (!started) {\n thread = new Thread(this);\n thread.start();\n started = true;\n }\n }", "public boolean startProcess (Properties ctx, ProcessInfo pi, Trx trx);", "public void doStart() {\n if (this.mActive == null) {\n a();\n } else {\n com.alipay.mobile.common.task.Log.v(TAG, \"StandardPipeline.start(a task is running, so don't call scheduleNext())\");\n }\n }", "private void start(){\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }", "public void setThread(Thread t);", "private synchronized void userStartThreads() throws Exception {\n myGamePause = false;\n if (!myHiddenPause) {\n startThreads();\n }\n }", "public void pauseWorkflow() {\n\t\tassert (status == WorkflowStatus.RUNNING);\n\t\tsetStatus(WorkflowStatus.PAUSED);\n\t}", "public void setWorkflowStatus(Status status) {\r\n workflowStatus = status;\r\n }", "public void start() {\n\t\tmyThread = new Thread(this); myThread.start();\n\t}", "public synchronized void start() {\n\t\tif (running)\n\t\t\treturn;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t\trunning = true;\n\t}", "public static void parkTask(final ITask task) throws Exception {\r\n ServerFactory.getServer().getSecurityManager().executeAsSystem(new Callable<Void>() {\r\n @Override\r\n public Void call() throws Exception {\r\n IWorkflowSession iWorkflowSession = Ivy.session();\r\n // Resume a task if it's suspended.\r\n if (task.getState().equals(TaskState.SUSPENDED)) {\r\n iWorkflowSession.resumeTask(task.getId());\r\n }\r\n\r\n // If the task is resumed or created, then park task.\r\n if (task.getState().equals(TaskState.RESUMED) || (task.getState().equals(TaskState.CREATED))) {\r\n iWorkflowSession.parkTask(task);\r\n }\r\n\r\n return null;\r\n }\r\n });\r\n\r\n }", "public synchronized void start() {\n if (!this.isRunning) {\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public synchronized void start() {\r\n\r\n\t\tif (!running) {\r\n\t\t\trunning = true;\r\n\t\t\tnew Thread(this, name).start();\r\n\t\t}\r\n\t}", "public void startThread(VirtualThread newThread) {\n\t\tlog.debug(\"**** CREATING A THREAD? ****\");\n\t}", "public void startProcess() {\r\n\t\tprocess = true;\r\n\t}", "public EWorkflowFactoryImpl() {\n\t\tsuper();\n\t}", "@Override\n public void startTask(TrcRobot.RunMode runMode)\n {\n }", "private void startNormalThread() {\n customThread = new CustomThread();\n customThread.start();\n }", "protected PayerThread() {\n\t\t\tEvent.ASSERTION.issue(sets == null, \"builders is null\");\n\t\t\tEvent.ASSERTION.issue(workloadConfiguration == null, \"configuration is null\");\n\n\t\t\tsetDaemon(true);\n\t\t}", "@Override\n public void doStart() throws OfficeException {\n officeProcessManager.startAndWait();\n }", "void launch();", "void launch();", "void launch();", "void addWorkflow(Workflow workflow);", "public synchronized void start() throws Exception {\n if (_runningThread != null) {\n throw new Exception(\"Node already running!\");\n }\n _runningThread = new Thread(this);\n _runningThread.start();\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\texecutable.feedbackExecutionProcessRunning();\r\n\t\t\t}", "public void submitWorkTasks(WorkflowDefine workflowDefine) {\n\t\t\n\t\t\n\t}", "public void makeStandalone() {\n mCommonProcess = this;\n }", "public boolean isWorkflow() {\n\t\treturn true;\n\t}", "public void start() {\n LOG.entering(CLASS_NAME, \"start\");\n if (state.compareAndSet(STOPPING, STARTED)) {\n // Keep same thread running if STOPPING\n }\n else if (state.compareAndSet(STOPPED, STARTED)) {\n new Thread(this, \"XoaEventProcessor\").start();\n }\n }", "@Test\n public void testTransientProcessInstanceWithoutForkOnTraversal()\n {\n sf.getWorkflowService().startProcess(PROCESS_DEF_ID_NON_FORKED, null, true);\n\n DatabaseOperationMonitoring.instance().assertExactly(SELECT_WFUSER_REALM.times(1),\n SELECT_WORKFLOWUSER.times(1),\n SELECT_USER_PARTICIPANT.times(1));\n }", "public void start() {\n\t\tai = new Thread(this);\n\t\tai.start();\n\t}", "public void run () { run (true); }", "public void start() {\r\n\t\trunning = true;\r\n\t\tt = new Thread(this);\r\n\t\tt.start();\r\n\t}", "void startToPerformAsLeader();", "private void go() {\n\n new Thread(this).start();\n }", "public void startThread(View view) {\n //startNormalThread();\n startRunnableThread();\n }", "public void resume(){\r\n\r\n isRunning = true;\r\n ourThread = new Thread(this);\r\n ourThread.start();\r\n }", "public void startThread(){\n\t\trunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "@Override\r\n public Thread newThread(Runnable r) {\n Thread t = new Thread(r, \"example-runner\");\r\n t.setDaemon(true);\r\n return t;\r\n }", "public void execute(){\n if (pipeline != null){\n pipeline.addTask(this);\n } else {\n run();\n }\n }", "public void start() {\r\n isRunning = true;\r\n Thread thread = new myThread();\r\n thread.start();\r\n }", "@Override\n public void start() throws SyncProcessException {\n }", "public void start()\n\t{\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "void launchAsMaster();", "@Override\n public void startThread() {\n Log.d(TAG, \"Starting \" + getName() + \" thread!\");\n if (!started)\n start();\n running = enabled;\n doStartAction();\n }", "@Test\n public void testTransientProcessInstanceWithForkOnTraversal() throws Exception\n {\n final ProcessInstance pi = sf.getWorkflowService().startProcess(PROCESS_DEF_ID_FORKED, null, true);\n ProcessInstanceStateBarrier.instance().await(pi.getOID(), ProcessInstanceState.Completed);\n\n DatabaseOperationMonitoring.instance().assertExactly(SELECT_WFUSER_REALM.times(1),\n SELECT_WORKFLOWUSER.times(1),\n SELECT_USER_PARTICIPANT.times(1),\n SELECT_PREFERENCE.times(7));\n }", "@Override\n public void execute() {\n Time.sleep(3000);\n Starting.execute();\n }", "void startThread();", "private Workflow context(Action a) {\n\t\tString workflowClassName = param.workflowName;\n\t\t//Independent actions may be part of some other workflow, fill them in first.\n\t\tfor(Workflow w : workflows) {\n\t\t\tif(w.isSatisfiable(a)) {\n\t\t\t\treturn w;\n\t\t\t}\n\t\t}\n\t\t//The action do not satisfy any existing workflow. We check whether the action is independent.\n\t\t//If it is, we start a new workflow with head = this action.\n\t\ttry {\n\t\t\tClass workflowClass = Class.forName(workflowClassName);\n\t\t\tWorkflow w = (Workflow) workflowClass.newInstance();\n\t\t\tw.sys = this;\n\n\t\t\tif(w.isIndependentAction(a) && w.isSatisfiable(a)) {\n\t\t\t\tworkflows.add(w);\n\t\t\t\tSimLogger.log(Level.FINEST, \"New workflow created with action \" + a);\n\t\t\t\treturn w;\n\t\t\t}\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Class not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(InstantiationException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(IllegalAccessException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSimLogger.log(Level.FINE, \"No workflow can be found to satisify action \" + a +\n\t\t \". Action is execution is cancelled.\");\n\t\treturn null;\n\t}" ]
[ "0.59018683", "0.58994085", "0.5708537", "0.5702491", "0.5617864", "0.5559109", "0.5543914", "0.5543914", "0.54930764", "0.54930764", "0.54930764", "0.54930764", "0.54930764", "0.54930764", "0.54930764", "0.5430747", "0.541677", "0.5395428", "0.53866106", "0.53841126", "0.5366035", "0.53157294", "0.5305009", "0.5299415", "0.52390724", "0.52176136", "0.52176136", "0.52176136", "0.5204963", "0.5199161", "0.51931626", "0.5191386", "0.51831174", "0.51762694", "0.51706994", "0.5169649", "0.5168509", "0.51674634", "0.5155881", "0.51054496", "0.5101421", "0.50994563", "0.508679", "0.50733227", "0.5067522", "0.50564045", "0.5038505", "0.5023253", "0.5023253", "0.50231516", "0.50231516", "0.5014887", "0.5010077", "0.50075847", "0.49912506", "0.49872816", "0.49858117", "0.49809387", "0.49757883", "0.497253", "0.49620643", "0.4956484", "0.4953788", "0.49480495", "0.4947787", "0.49473518", "0.49437207", "0.49395207", "0.4938818", "0.49293935", "0.49272555", "0.49269104", "0.49269104", "0.49269104", "0.49268943", "0.49266493", "0.49259222", "0.49236637", "0.49032006", "0.48957124", "0.4894683", "0.48940703", "0.4889989", "0.48791254", "0.48729697", "0.48713773", "0.48633447", "0.48589072", "0.4855818", "0.48527506", "0.48477325", "0.48459628", "0.48425743", "0.4839618", "0.48364788", "0.4833589", "0.48287958", "0.48287797", "0.48251635", "0.48219484", "0.48218372" ]
0.0
-1
Evaluates the transition condition against the data instances of a process instance.
public boolean isEnabled(SymbolTable symbolTable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testProcessInstanceExec()\r\n\t{\r\n\t\tthis.processDefinition = this.jbpmService.parseXMLResource(PROCESS_FILE);\r\n\r\n\t\tthis.jbpmService.deployProcessDefinition(this.processDefinition);\r\n\r\n\t\t// Create the instance based on the latest definition\r\n\t\tProcessInstance processInstance = this.jbpmService.createProcessInstance(this.processDefinition.getName());\r\n\r\n\t\t// Make sure instance was created\r\n\t\tassertNotNull(\"Error: jbpmService failed to create process instance for process definition \\\"\"\r\n\t\t\t\t\t\t\t\t\t+ this.processDefinition.getName() + \"\\\".\", processInstance);\r\n\r\n\t\t// Should be at start node initially\r\n\t\tassertEquals(START_NODE_NAME, processInstance.getRootToken().getNode().getName());\r\n\r\n\t\t// Let's start the process execution\r\n\t\tthis.jbpmService.signalProcessInstance(processInstance.getId());\r\n\r\n\t\t// Now the process should be in the middle state.\r\n\t\t// Reload the instance through the service so root token gets updated\r\n\t\tprocessInstance = this.jbpmService.getProcessInstance(processInstance.getId());\r\n\t\tassertEquals(MIDDLE_NODE_NAME, processInstance.getRootToken().getNode().getName());\r\n\r\n\t\t// Leave middle node and transition to the end node.\r\n\t\tthis.jbpmService.signalProcessInstance(processInstance.getId());\r\n\r\n\t\t// After signal, should be at end-state of simple process\r\n\t\tassertTrue(this.jbpmService.hasProcessInstanceEnded(processInstance.getId()));\r\n\r\n\r\n\t\t// Verify we can retrieve state from database\r\n\t\t// Again, reload the instance through the service so root token is updated\r\n\t\tprocessInstance = this.jbpmService.getProcessInstance(processInstance.getId());\r\n\t\tassertEquals(END_NODE_NAME, processInstance.getRootToken().getNode().getName());\r\n\t}", "private DependResult dependResultByProcessInstance(ProcessInstance processInstance) {\n if (!processInstance.getState().isFinished()) {\n return DependResult.WAITING;\n }\n if (processInstance.getState().isSuccess()) {\n return DependResult.SUCCESS;\n }\n return DependResult.FAILED;\n }", "public void setProcessInstances(com.sforce.soap.enterprise.QueryResult processInstances) {\r\n this.processInstances = processInstances;\r\n }", "public void setProcessInstances(List<ProcessInstance> processInstances) {\r\n this.processInstances = processInstances;\r\n }", "Execution getProcessInstance();", "@Override\n\tpublic void buildEvaluator(Instances data) throws Exception {\n\t\tthis.instances = data;\n\t}", "@Override\n\tprotected Instances process(Instances arg0) throws Exception {\n\t\tInstances result = new Instances(determineOutputFormat(arg0), 0);\n\t\tInstances data = lrinstance.instances;\n\t\tdouble val = this.lrinstance.ConvertValue2Double(indexofattribute, value);\n\t\t\n\t\tfor(int i=0;i<data.numInstances();i++)\n\t\t{\n\t\t\tInstance ins = data.get(i);\n\t\t\t//System.out.println(ins.value(indexofattribute)+\" \"+val);\n\t\t\tif(ins.value(indexofattribute)==val)\n\t\t\t{\n\t\t\t\tresult.add(ins);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t\t\n\t}", "private double crossValidate(Instances data) throws Exception {\r\n\t\tbuildClassifier(data);\r\n\r\n\t\tdouble correct = 0;\r\n\t\tfor (int i = 0; i < data.numInstances(); ++i) {\r\n\t\t\tif (classifyInstance(i) == data.get(i).classValue()) {\r\n\t\t\t\t++correct;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn correct / data.numInstances();\r\n\t}", "public void visitProcess(base.vhdl.structure.Process process) throws Exception {\n\t\twhile (true) {\n\t\t\tif (!couldProcessNextGraphVariable(null, process.getRootNode()))\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t\tprocessedGraphVars.add(graphVariable.getName());\n\n\t\t}\n\n\t}", "public void execute() throws ProcessException\r\n {\r\n \tdouble input = inputVar.getData().getDoubleValue(); \t\r\n \t\r\n \tswitch (interpolationMethod)\r\n \t{\r\n \t\tcase 1:\r\n \t\t\tcomputeInterpolatedValue1D(input);\r\n \t\t\tbreak; \t\t\t\r\n \t}\r\n \t\r\n \t//System.out.println(getName() + \": \" + input + \" -> \" + outputVars[0].getData().getDoubleValue());\r\n }", "@Test\n public void testTransientProcessInstanceWithForkOnTraversal() throws Exception\n {\n final ProcessInstance pi = sf.getWorkflowService().startProcess(PROCESS_DEF_ID_FORKED, null, true);\n ProcessInstanceStateBarrier.instance().await(pi.getOID(), ProcessInstanceState.Completed);\n\n DatabaseOperationMonitoring.instance().assertExactly(SELECT_WFUSER_REALM.times(1),\n SELECT_WORKFLOWUSER.times(1),\n SELECT_USER_PARTICIPANT.times(1),\n SELECT_PREFERENCE.times(7));\n }", "public Node preprocessQuery(Query query, EvaluationContext context)\n {\n Set processStateFilters = getFullProcessStateSet();\n for (Iterator i = query.getFilter().getParts().iterator(); i.hasNext();)\n {\n FilterCriterion filter = (FilterCriterion) i.next();\n if (filter instanceof ActivityStateFilter)\n {\n ActivityStateFilter activityStateFilter = (ActivityStateFilter) filter;\n\n Collection states = Arrays.asList(activityStateFilter.getStates());\n if (!activityStateFilter.isInclusive())\n {\n Set invertedStateSet = getFullActivityStateSet();\n invertedStateSet.removeAll(states);\n states = invertedStateSet;\n }\n\n // translate activity instance states to according process instance states\n Set allowedProcessStates = new TreeSet();\n\n for (Iterator j = states.iterator(); j.hasNext();)\n {\n ActivityInstanceState state = (ActivityInstanceState) j.next();\n\n switch (state.getValue())\n {\n case ActivityInstanceState.CREATED:\n case ActivityInstanceState.APPLICATION:\n case ActivityInstanceState.INTERRUPTED:\n case ActivityInstanceState.SUSPENDED:\n case ActivityInstanceState.HIBERNATED:\n allowedProcessStates.add(ProcessInstanceState.Active);\n allowedProcessStates.add(ProcessInstanceState.Interrupted);\n break;\n\n default:\n allowedProcessStates.addAll(getFullProcessStateSet());\n break;\n }\n }\n\n processStateFilters = intersection(processStateFilters, allowedProcessStates);\n }\n else if (filter instanceof ProcessStateFilter)\n {\n ProcessStateFilter stateFilter = (ProcessStateFilter) filter;\n\n Set filterStates;\n if (stateFilter.isInclusive())\n {\n filterStates = new TreeSet(Arrays.asList(stateFilter.getStates()));\n }\n else\n {\n filterStates = getFullActivityStateSet();\n filterStates.removeAll(Arrays.asList(stateFilter.getStates()));\n }\n\n if (filterStates.contains(ProcessInstanceState.Completed)\n || filterStates.contains(ProcessInstanceState.Aborted))\n {\n // terminated process may be childs of still active super processes\n filterStates.add(ProcessInstanceState.Active);\n filterStates.add(ProcessInstanceState.Interrupted);\n }\n\n processStateFilters = intersection(processStateFilters, filterStates);\n }\n }\n\n return (Node) query.getFilter().accept(this,\n new VisitationContext(query, context, processStateFilters));\n }", "public void accept(ProcessEngine engine,ProcessInstance instance) throws Exception\n\t{\n\t\t//engine.process(this, instance);\n\t}", "protected abstract Value evaluate();", "public void setUp() throws Exception {\n\n processDefinition = new ProcessDefinition();\n\n processDefinition.setProcessVariables(new ProcessVariable[]{\n ProcessVariable.forName(\"var1\"),\n ProcessVariable.forName(\"var2\")\n });\n\n Activity theLastJoinActivity = null;\n\n\n for(int i=1; i<20; i++) {\n Activity a1 = new DefaultActivity();\n\n // a1.setQueuingEnabled(true);\n\n if(i == 7 || i==1){\n a1 = new GatewayActivity();\n }\n\n a1.setTracingTag(\"a\" + i);\n processDefinition.addChildActivity(a1);\n\n if(i==7){\n theLastJoinActivity = a1;\n }\n }\n\n {\n Transition t1 = new Transition();\n t1.setSource(\"a9\");\n t1.setTarget(\"a1\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a10\");\n t1.setTarget(\"a9\");\n\n processDefinition.addTransition(t1);\n }\n\n {\n Transition t1 = new Transition();\n t1.setSource(\"a1\");\n t1.setTarget(\"a2\");\n t1.setCondition(new Evaluate(\"var1\", \"==\", \"true\"));\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a1\");\n t1.setTarget(\"a5\");\n t1.setCondition(new Evaluate(\"var2\", \"==\", \"true\"));\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a2\");\n t1.setTarget(\"a3\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a2\");\n t1.setTarget(\"a4\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a5\");\n t1.setTarget(\"a6\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a6\");\n t1.setTarget(\"a4\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a3\");\n t1.setTarget(\"a7\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a4\");\n t1.setTarget(\"a7\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a7\");\n t1.setTarget(\"a11\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a11\");\n t1.setTarget(\"a12\");\n\n processDefinition.addTransition(t1);\n }\n\n processDefinition.afterDeserialization();\n\n ProcessInstance.USE_CLASS = DefaultProcessInstance.class;\n\n\n }", "public void accept(ProcessEngine engine,ProcessInstance instance) throws Exception\n\t{\n\t\tengine.process(this, instance);\n\t}", "public void accept(ProcessEngine engine,ProcessInstance instance) throws Exception\n\t{\n\t\tengine.process(this, instance);\n\t}", "public void evaluate() {\r\n Statistics.evaluate(this);\r\n }", "private void evaluationLogic() {\n // setup for logic:\n // if distToClosestEstimate[i][0] is smaller than threshold, we have a Tp\n // if distToClosestEstimate[i][0] is larger than threshold, we have a Fn\n // all estimatedFeatures that are not assigned Tp are therefore Fp\n for (int i = 0; i < groundTruthInstant.size(); ++i) {\n if (distToClosestEstimate[i][0] < truePositiveThreshold) {\n ++truePositiveCount;\n int assignedEstimatedFeature = (int) distToClosestEstimate[i][1];\n assignedEstimatedFeatures[assignedEstimatedFeature] = true;\n } else\n ++falseNegativeCount;\n }\n for (int i = 0; i < estimatedInstant.size(); ++i)\n if (!assignedEstimatedFeatures[i])\n ++falsePositiveCount;\n }", "@Override\n public void notify(DelegateExecution delegateExecution) throws Exception {\n HistoryService historyService = delegateExecution.getEngineServices().getHistoryService();\n List<HistoricProcessInstance> historicProcessInstances = historyService.createHistoricProcessInstanceQuery().\n processInstanceId(delegateExecution.getProcessInstanceId()).list();\n if (historicProcessInstances.size() == 1) {\n HistoricProcessInstance instance = historicProcessInstances.get(0);\n BPMNAnalyticsHolder.getInstance().getBpmnDataPublisher().publishProcessEvent(instance);\n\n //publishing analytics data of service tasks in the process\n if(BPMNAnalyticsHolder.getInstance().getAsyncDataPublishingEnabled()){\n BPMNAnalyticsHolder.getInstance().getBpmnDataPublisher().publishServiceTaskEvent(historyService.\n createHistoricActivityInstanceQuery().processInstanceId(delegateExecution.getProcessInstanceId()));\n }\n }\n }", "private static boolean isAlive(Process p) { \n\t\ttry{ \n\t\t\tp.exitValue(); \n\t\t\treturn false; \n\t\t}catch (IllegalThreadStateException e) { \n\t\t\treturn true; \n\t\t} \n\t}", "private void evaluateProbabilities()\n\t{\n\t}", "private void handleStepChange()\n {\n boolean processorsChanged = false;\n myProcessorsLock.writeLock().lock();\n try\n {\n final Iterator<Entry<ProcessorDistributionKey, GeometryProcessor<? extends Geometry>>> procIter = myGeometryProcessorsMap\n .entrySet().iterator();\n final ActiveTimeSpans activeTimeSpans = myActiveTimeSpans;\n while (procIter.hasNext())\n {\n final Entry<ProcessorDistributionKey, GeometryProcessor<? extends Geometry>> entry = procIter.next();\n if (!inProcessRange(entry.getKey(), activeTimeSpans))\n {\n processorsChanged = true;\n procIter.remove();\n myInactiveGeometries.put(entry.getKey(), New.set(entry.getValue().getGeometries()));\n entry.getValue().close();\n }\n }\n\n final Iterator<Entry<ProcessorDistributionKey, Set<Geometry>>> inactiveIter = myInactiveGeometries.entrySet()\n .iterator();\n while (inactiveIter.hasNext())\n {\n final Entry<ProcessorDistributionKey, Set<Geometry>> entry = inactiveIter.next();\n if (inProcessRange(entry.getKey(), activeTimeSpans) && !entry.getValue().isEmpty())\n {\n processorsChanged = true;\n inactiveIter.remove();\n setProcessorConstraints(entry.getKey());\n final GeometryProcessor<? extends Geometry> processor = myProcessorBuilder\n .createProcessorForClass(entry.getKey().getGeometryType());\n processor.receiveObjects(this, entry.getValue(), Collections.<Geometry>emptyList());\n myGeometryProcessorsMap.put(entry.getKey(), processor);\n }\n }\n }\n finally\n {\n myProcessorsLock.writeLock().unlock();\n }\n\n if (processorsChanged)\n {\n populateRenderableProcessors();\n }\n }", "public void executeevaluate() {\n \t\tString board = conf.getProperty(\"gamesman.board\");\n \t\tif (board == null)\n \t\t\tUtil.fatalError(\"Please specify a hash to evaluate\");\n \t\tBigInteger val = new BigInteger(board);\n \t\tSystem.out.println(gm.primitiveValue(gm.hashToState(val)));\n \t}", "public void notifyState() {\n\t\tList<T> alldata = new ArrayList<T>(this.dataMap.values());\t\r\n\t\t// call them with the current data\r\n\t\t// for each observer call them\r\n\t\tfor( ModelEvents<T> observer : this.ObserverList){\r\n\t\t\tobserver.dataState(alldata);\r\n\t\t}\r\n\r\n\t}", "@Test\n public void testTransientProcessInstanceWithoutForkOnTraversal()\n {\n sf.getWorkflowService().startProcess(PROCESS_DEF_ID_NON_FORKED, null, true);\n\n DatabaseOperationMonitoring.instance().assertExactly(SELECT_WFUSER_REALM.times(1),\n SELECT_WORKFLOWUSER.times(1),\n SELECT_USER_PARTICIPANT.times(1));\n }", "private void evaluateStage(){\n switch (currentStage){\n case EGG: if (getLifetime() >= ModelSettings.brood_lifetime_egg)\n currentStage = LARVAE;\n break;\n case LARVAE: if (getLifetime() >= ModelSettings.brood_lifetime_larvae)\n currentStage = PUPAE;\n break;\n case PUPAE: if (getLifetime() >= ModelSettings.brood_lifetime_pupae)\n System.out.println(\"This pupae is now an adult!\");\n //TODO trigger manager\n break;\n }\n }", "public void updateStates() {\n if (isRunningProcess && currentRunningProcess.getState() == ProcessState.RUNNING\n && currentRunningProcess.remainingCPUBurstTime == 0) {\n //this is end of current cpu burst, check if any more cpu time to go.\n if (currentRunningProcess.remainingCPUTime <= 0) {\n currentRunningProcess.setFinished(currentTime);\n processCounter--;\n } else {\n //this process still has more CPU time to go.\n currentRunningProcess.setBlocked();\n isBlockedProcess++;\n }\n isRunningProcess = false;\n currentRunningProcess = null;\n }\n for (Process process : processes) {\n // For each process:\n // Check if this is the running process and if it needs to be preempted (RR algorithm only).\n if (process == currentRunningProcess && currentAlgorithm == Algorithm.RR) {\n if (isRunningProcess && remainingQuantum == 0) {\n //this process has finished its quantum, it will be preempted by the next\n //ready process.\n currentRunningProcess.setReady(readyProcesses);\n isRunningProcess = false;\n currentRunningProcess = null;\n }\n }\n // Check if this process has finished being blocked.\n if (process.getState() == ProcessState.BLOCKED\n && process.remainingBlockedBurstTime == 0) {\n \tif(currentAlgorithm == Algorithm.UP){\n \t\tprocess.setRunning(randomNumbers.remove(0));\n \t\tisRunningProcess = true;\n \t\tcurrentRunningProcess = process;\n \t}\n \telse{\n \t\tprocess.setReady(readyProcesses);\n \t}\n isBlockedProcess--;\n // If UP algorithm. Set running. Otherweise set ready\n }\n // Check if this process is ready to run:\n if (process.arrivalTime <= currentTime) {\n if (process.getState() == ProcessState.NONEXISTENT) {\n process.setReady(readyProcesses);\n }\n }\n }\n }", "public void evaluate() {\n if (manoeuvre.getTrajectory().getEvolutionEnd() - manoeuvre.getCalcEvolution() <= toDoLength) { raise(); }\n }", "protected abstract Instances filterData(PipelineData data) throws Exception;", "@DISPID(46)\r\n\t// = 0x2e. The runtime will prefer the VTID if present\r\n\t@VTID(44)\r\n\tint instancesExecuted();", "private static boolean computeNextStep(FsmModel fsm, HashMap<Method, Double> actionsAndProbabilities) {\n double sum = 0;\n double rand = 0;\n HashMap<Method, Double> actionsReady = getActivableActions(fsm, actionsAndProbabilities);\n if (actionsReady.isEmpty()) {\n return false;\n }\n do {\n sum = 0;\n rand = Math.random();\n for (Method act : actionsReady.keySet()) {\n sum += actionsReady.get(act);\n if (rand <= sum) {\n try {\n System.out.println(\"\\nInvoking: \" + act.getName()) ;\n act.invoke(fsm);\n return true;\n } catch (IllegalAccessException e) {\n System.err.println(\"Illegal access to \" + act.getName());\n System.err.println(\"Shouldn't have happened\");\n // e.printStackTrace(System.err);\n } catch (InvocationTargetException e) {\n System.err.println(\"Exception on target invocation on \" + act.getName());\n System.err.println(\"Shouldn't have happened\");\n e.printStackTrace(System.err);\n }\n }\n }\n }\n while (rand > sum);\n\n return false;\n }", "boolean hasApplicationProcessInstance();", "long getNumExecutionsByTransition(StateT state, ConditionT condition);", "public void compute() throws XFormsException {\n boolean result = XPathCache.getInstance().evaluateAsBoolean(relativeContext, \"boolean(\" + this.xpathExpression + \")\");\n ModelItem modelItem = (ModelItem) this.instanceNode.getUserData(\"\");\n modelItem.getLocalUpdateView().setLocalRequired(result);\n if(result){\n modelItem.getRefreshView().setRequiredMarker();\n }else{\n modelItem.getRefreshView().setOptionalMarker();\n }\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"evaluated expression '\" + this.xpathExpression + \"' to '\" + result + \"'\");\n }\n }", "@Override\n public void onwards() {\n if (log.isDebugEnabled()) {\n log.debug(\"Onwards \"+this);\n }\n \n // First we end the activity instance. \n // Subsequent invocations to end will be ignored.\n end();\n\n boolean isTransitionTaken = false;\n \n // Take each outgoing transition 'in parallel'\n // Note that process concurrency is not the same as java multithreaded computation\n if (activity.hasOutgoingTransitions()) {\n for (TransitionImpl transition: activity.outgoingTransitions) {\n // Only take a transition if there is no condition or if the condition resolves to true.\n ConditionImpl condition = transition.condition;\n if (condition!=null ? condition.eval(this) : true) {\n isTransitionTaken = true;\n takeTransition(transition);\n }\n }\n } \n\n // if there were no outgoing transitions or none of them could be taken, \n if (!isTransitionTaken) {\n // propagate the execution flow upwards to the parent\n propagateToParent();\n }\n }", "public boolean evaluate();", "abstract boolean processStage(Stage stage, Object data);", "@Test\n\t@Deployment(resources = \"process.bpmn\")\n\tpublic void testCurrentStatus() {\n\t\t\t\n\t\t// Obtain test run of BPMN\n\t\tProcessInstanceWithVariables processInstance = (ProcessInstanceWithVariables)processEngine().getRuntimeService().startProcessInstanceByKey(PROCESS_DEFINITION_KEY);\n\n\t\t// Obtain the value of the deliveryOK variable\n\t\tboolean deliveryOK = (boolean)processInstance.getVariables().get(\"deliveryOK\");\n\t\tSystem.out.println(\"DeliveryOK: \" + deliveryOK);\n\t\t\t\n\t \n\t\t// Obtain a reference to the current task\n\t\tTaskAssert task = assertThat(processInstance).task();\n\n\t\tif (deliveryOK) {\n\t\t\t\tassertThat(processInstance).isWaitingAt(\"Activity_066txhw\");\n\t\t\t\ttask.hasName(\"Checkout 1\");\n\t\t\t\ttask.isNotAssigned();\n\t\t\t} else {\n\t\t\t\tassertThat(processInstance).isWaitingAt(\"Activity_19fouew\");\n\t\t\t\ttask.hasName(\"Checkout 2\");\n\t\t\t\ttask.isNotAssigned();\n\t\t\t}\n\n\t\t}", "public List<ProcessInstance> getProcessInstances() {\r\n return this.processInstances;\r\n }", "public void execute(ProcessInstance processInstance, NMC context, Map<String, String> map) {\n\t}", "void evaluate()\n\t{\n\t\toperation.evaluate();\n\t}", "public void trainOnInstance(Instance inst) {\n\t\t\t\t\t\t\n\t\t\ttry{\t\t\t\t\n\t\t\t\tinstancesSeen++;\n\t\t\t\tupdateStats(inst);\n\t\t\t\t\n\t\t\t\tDoubleVector normaliezedExtendedInstance = PrepareExtendedFeatureVector(inst) ;\n\t\t\t\tdouble normaliezedTargetValue= NormalizeTarget(inst) ;\n\t\t\t\tResultSummary resultSummary = getMemberships (normaliezedExtendedInstance,normaliezedTargetValue) ;\n\t\t\t\t\n\t\t\t\tdouble error = resultSummary.getNormaliezedTargetValue() - resultSummary.getFinalPrediction() ;\n\t\t\t\tthis.CurModSSE += Math.pow(error, 2) ;\n\t\t\t\t\n\t\t\t\t// checking a possible drift\n//\t\t\t\tboolean drift =checkChangeDetection() ;\n//\t\t\t\tif (drift)\n//\t\t\t\t\tthis.countChangeDetected++ ;\n\t\t\t\tboolean drift = false ;\n\t\t\t\tif ((this.instancesSeen % graceperiod)==0){\n\t\t\t\t\tdrift =checkChangeDetection() ;\n\t\t\t\t\tif (drift){\n\t\t\t\t\t\tthis.countChangeDetected++ ;\n//\t\t\t\t\t\tthis.clearAllStats();\n\t\t\t\t\t\tthis.currentValidCandidates.clear() ;\n\t\t\t\t\t\tthis.currentNonReadyCandidates.clear() ;\n\t\t\t\t\t\tcurrentSystemVersion++ ;\n\t\t\t\t\t\tSystem.out.println(\"########After a drift################\");\n\t\t\t\t\t\tSystem.out.println(this);\n\t\t\t\t\t\tSystem.out.println(\"########################\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n// \t\tVarianceRationREduction\n\t\t\t\tif (learningCriteriaOption.getChosenIndex()==1) {\n\t\t\t\t\t// checking a possible extension\n//\t\t\t\t\tif (this.instancesSeen > graceperiod && !drift ) {\n\t\t\t\t\tif (!drift ) {\n\t\t\t\t\t\tboolean systemChanged = false ;\n\t\t\t\t\t\tVector <RuleVR> removeRules= new Vector<RuleVR>() ;\n\t\t\t\t\t\tVector <RuleVR> newRules= new Vector<RuleVR>() ;\n\t\t\t\t\t\tfor (FuzzyRule rule : rs){\n\t\t\t\t\t\t\tVector <RuleVR> expansions = ((RuleVR)rule).tryToExpand(confidence, tau) ;\n\t\t\t\t\t\t\tif (expansions != null) {\n\t\t\t\t\t\t\t\tsystemChanged = true ;\n\t\t\t\t\t\t\t\tif (chooseSingleRuleOption.isSet()) {\n\t\t\t\t\t\t\t\t\tif (expansions.get(0).getInitialMerit() > expansions.get(1).getInitialMerit()) {\n\t\t\t\t\t\t\t\t\t\tnewRules.add(expansions.get(0)) ;\n\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\tnewRules.add(expansions.get(1)) ;\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (rule !=defaultRule)\n\t\t\t\t\t\t\t\t\t\tremoveRules.add((RuleVR)rule) ;\n\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\tremoveRules.add((RuleVR)rule) ;\n\t\t\t\t\t\t\t\t\tnewRules.addAll(expansions) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (systemChanged) {\n\t\t\t\t\t\t\trs.removeAll(removeRules) ;\n\t\t\t\t\t\t\trs.addAll(newRules) ;\n\t\t\t\t\t\t\tthis.clearAllStats();\n\t\t\t\t\t\t\tcurrentSystemVersion++ ;\n\t\t\t\t\t\t\tSystem.out.println(\"########################\");\n\t\t\t\t\t\t\tSystem.out.println(this);\n\t\t\t\t\t\t\tSystem.out.println(\"########################\");\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}//RMSEReduction\n\t\t\t\telse{\n\t\t\t\t\t// checking a possible extension\n\t\t\t\t\tif (this.instancesSeen > graceperiod && !drift ) {\n\t\t\t\t\t\tExtendedCandidateErrR bestExtension = this.checkValidExpansion();\n\t\t\t\t\t\tif ((bestExtension != null)) {\n\t\t\t\t\t\t\tif (chooseSingleRuleOption.isSet()) {\n\t\t\n\t\t\t\t\t\t\t\tVector<RuleErrR> newRules = bestExtension.CreateRuleFromExtension() ;\n\t\t\t\t\t\t\t\tif (bestExtension.getParentRule()!=defaultRule)\n\t\t\t\t\t\t\t\t\trs.remove(bestExtension.getParentRule()) ;\n\t\t\t\t\t\t\t\t\n\t\t//\t\t\t\t\t\tWe must choose the best candidate here!\n\t\t\t\t\t\t\t\tdouble [] SSESingleExtenstions = bestExtension.getMeanSSESingleExension() ;\n\t\t\t\t\t\t\t\tif (SSESingleExtenstions[0]<SSESingleExtenstions[1])\n\t\t\t\t\t\t\t\t\trs.add(newRules.get(0)) ;\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\trs.add(newRules.get(1)) ;\t\n\t\t\t\t\t\t\t\t\t\n\t\t//\t\t\t\t\t\trs.addAll(newRules) ;\n\t\t\t\t\t\t\t\tif (bestExtension.getParentRule()==defaultRule)\n\t\t\t\t\t\t\t\t\tdefaultRule.buildExtendedCandidates(bestExtension.getAttributeIndex());\n\t\t\n\t\t\t\t\t\t\t\tthis.clearAllStats();\n\t\t\t\t\t\t\t\tthis.currentValidCandidates.clear() ;\n\t\t\t\t\t\t\t\tthis.currentNonReadyCandidates.clear() ;\n\t\t\t\t\t\t\t\tcurrentSystemVersion++ ;\n\t\t\t\t\t\t\t\tSystem.out.println(\"########################\");\n\t\t\t\t\t\t\t\tSystem.out.println(this);\n\t\t\t\t\t\t\t\tSystem.out.println(\"########################\");\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tExtendedCandidateErrR cbestExtension = this.checkValidExpansion();\n\n\t\t\t\t\t\t\t\tVector<RuleErrR> newRules = bestExtension.CreateRuleFromExtension() ;\n\t\t\t\t\t\t\t\trs.remove(bestExtension.getParentRule()) ;\n\t\t\t\t\t\t\t\trs.addAll(newRules) ;\n\t\t\t\t\t\t\t\tthis.clearAllStats();\n\t\t\t\t\t\t\t\tthis.currentValidCandidates.clear() ;\n\t\t\t\t\t\t\t\tthis.currentNonReadyCandidates.clear() ;\n\t\t\t\t\t\t\t\tcurrentSystemVersion++ ;\n\t\t\t\t\t\t\t\tSystem.out.println(\"########################\");\n\t\t\t\t\t\t\t\tSystem.out.println(this);\n\t\t\t\t\t\t\t\tSystem.out.println(\"########################\");\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\tif (chooseSingleRuleOption.isSet()) {\n\t\t\t\t\tdouble maxMembership = 0 ;\n\t\t\t\t\tfor (ResultSummary.ResultPair resultPair: resultSummary.getResultPairs()) {\n\t\t\t\t\t\tresultPair.getRule().trainOnInstance(resultSummary, resultPair);\n\t\t\t\t\t\tmaxMembership = Math.max(maxMembership, resultPair.getMembership()) ;\n\t\t\t\t\t}\n\t\t\t\t\tif (maxMembership < max_Membership_For_Choosing_Single_Rule)\n\t\t\t\t\t\tdefaultRule.trainOnInstance(resultSummary, resultSummary.getResultPairDefaultRule()) ;\n\t\t\t\t}else{\n\t\t\t\t\tfor (ResultSummary.ResultPair resultPair: resultSummary.getResultPairs()) {\n\t\t\t\t\t\tresultPair.getRule().trainOnInstance(resultSummary, resultPair);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}catch (Exception ex){\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}", "@DISPID(45)\r\n\t// = 0x2d. The runtime will prefer the VTID if present\r\n\t@VTID(43)\r\n\tint instancesExecuting();", "public abstract boolean process();", "public void process() {\n cycleID.incrementAndGet();\r\n List<ChunkBB> chunkbbs;\r\n synchronized (loadedChunks) {\r\n chunkbbs = new LinkedList<>(loadedChunks);\r\n }\r\n\r\n Condition cond = chunkbbs.stream().map(\r\n b -> GAIA_STATES.WORLD_UUID.eq(b.getWorld())\r\n .and(GAIA_STATES.X.gt(b.getX() * 16))\r\n .and(GAIA_STATES.Z.gt(b.getZ() * 16))\r\n .and(GAIA_STATES.X.le(b.getX() * 16 + 16))\r\n .and(GAIA_STATES.Z.le(b.getZ() * 16 + 16))\r\n ).reduce(DSL.falseCondition(), (a, b) -> a.or(b));\r\n\r\n Gaia.DBI().submit((conf) -> {\r\n DSLContext ctx = DSL.using(conf);\r\n ctxref.set(ctx);\r\n ReturnContainer rec;\r\n\r\n while ((rec = input.poll()) != null) {\r\n switch (rec.getState()) {\r\n case DELETE:\r\n LOG.fine(\"[\" + cycleID + \"]Deleting:\\n\" + rec);\r\n ctx.executeDelete(rec.getRec());\r\n break;\r\n case UPDATE:\r\n try {\r\n LOG.fine(\"[\" + cycleID + \"]Updating:\\n\" + rec);\r\n ctx.executeUpdate(rec.getRec());\r\n } catch (Exception e) {\r\n LOG.log(Level.SEVERE, \"[\" + cycleID + \"]Failed to update record.\\n\" + rec.getRec(), e);\r\n }\r\n break;\r\n default:\r\n LOG.severe(\"[\" + cycleID + \"]Failed to process record.\\n\" + rec.getRec() + \"\\nUnknown state: \" + rec.getState());\r\n }\r\n }\r\n if (output.isEmpty()) {\r\n List<GaiaStatesRecord> recs = ctx\r\n .selectFrom(GAIA_STATES)\r\n .where(GAIA_STATES.TRANSITION_TIME.lt(new Timestamp(System.currentTimeMillis())))\r\n .and(cond)\r\n .fetch();\r\n if (!recs.isEmpty()) {\r\n LOG.fine(\"Adding \" + recs.size() + \" records to output queue.\");\r\n output.addAll(recs);\r\n }\r\n }\r\n ctxref.set(null);\r\n });\r\n }", "private void evaluateData () {\n long rows = DatabaseUtils.longForQuery(sqliteDBHelper.openSqlDatabaseReadable(), \"SELECT COUNT(*) FROM \" + SqliteDBStructure.DATA_AGGREGATE\r\n + \" JOIN \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \" ON \"\r\n + SqliteDBStructure.DATA_AGGREGATE + \".\" + SqliteDBStructure.ACCESS_TIME + \" = \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \".\" + SqliteDBStructure.ACCESS_TIME, null);\r\n // calculate the amount of tasks (thread) depending on the MaxBatchSize\r\n tasks = rows >= MaxBatchSize? (int)(rows/MaxBatchSize + 1):1;\r\n // set the amount of finished tasks to 0\r\n finished = 0;\r\n // send the amount of task to the main activity so it can be displayed in the progress dialog\r\n sendTaskAmount(tasks + 1);\r\n // create a thread pool with tasks amount of threads\r\n final ExecutorService executorService = Executors.newFixedThreadPool(tasks);\r\n // create a list which holds all the tasks to be executed\r\n final List<ProcessingDataHandler> taskList = new LinkedList<>();\r\n // for each task create a batch of MaxBatchSize rows to evaluate\r\n for (int i = 0; i < tasks; i++) {\r\n // pass the offset (where to start) and the limit (how many rows)\r\n taskList.add(new ProcessingDataHandler(i*MaxBatchSize, MaxBatchSize));\r\n }\r\n // invoke all the task at once\r\n new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n try {\r\n executorService.invokeAll(taskList);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }).start();\r\n\r\n updateProgressDialog();\r\n }", "public static void executeAndMonitor(VanetFSM fsm, ArrayList<VanetProperty> properties) {\n\n HashMap<Method, Double> actionsAndProbabilities = getActionTaggedMethods(fsm);\n System.out.println(\"Actions & Probabilities :\\n\" + actionsAndProbabilities);\n\n // reset FSM exploration\n fsm.reset(true);\n for (VanetProperty p : properties) {\n p.reset();\n }\n\n // make new simulation and monitor the properties\n boolean b;\n do {\n // compute next step\n b = computeNextStep(fsm, actionsAndProbabilities);\n if (b) {\n monitorProperties(fsm, properties);\n }\n }\n while (b);\n }", "public void runSRJF() {\n //init\n ArrayList<Processus> localProcess = new ArrayList<>(); //Creation of a local list of process\n //localProcess = (ArrayList<Processus>) listOfProcess.clone();\n for (Processus cpy : listOfProcess) { //Copy the list of process in the local list with new instances of process\n Processus tmp = new Processus(cpy.getName(), cpy.getTime(), (HashMap<Integer, Integer>) cpy.getListOfInOut().clone(), (HashMap<Integer, Integer>) cpy.getlistOfResource().clone());\n localProcess.add(tmp);\n }\n int size = listOfProcess.size(); //variable used to save the initial size of the list of process\n\n Processus executedProc = null; //ExecutedProc is the current process that is being execute\n Processus tmpProc = localProcess.get(0); //The tmpProc is the previous process executed\n\n //Variable we need to calcul\n double occupancyRate = 0;\n double averageWaitingTime = 0;\n double averageReturnTime = 0;\n int currentTime = 0;\n int occupancyTime = 0;\n\n //beginning of the algo\n while (!localProcess.isEmpty()) {\n tmpProc = null;\n if (executedProc != null && executedProc.getTime() <= currentTime) {//test if the current executed process is the smallest and is not in in/out operation\n for (Processus proc : localProcess) {//chose the process to execute (the shortest)\n if (proc.getTime() <= currentTime) {\n if (proc.getRessource(proc.getCurrentStep()) < executedProc.getRessource(executedProc.getCurrentStep())) {//shortest process selected\n executedProc = proc;\n }\n }\n }\n } else {//same tests but if there is no current process on the UC\n for (Processus proc : localProcess) {\n if (proc.getTime() <= currentTime) {\n if (localProcess.size() == 1 || tmpProc == null) {//if there is only only one process left in the list\n executedProc = proc;\n tmpProc = proc;\n } else if (proc.getRessource(proc.getCurrentStep()) <= tmpProc.getRessource(tmpProc.getCurrentStep())) {//shortest process selected\n executedProc = proc;\n tmpProc = proc;\n }\n }\n }\n }\n if (executedProc != null) {//if there is a process\n //execution of the process over 1 unity of time and then verifying again it's steel the smallest\n for (Processus proc : localProcess) {\n if (proc.getTime() <= currentTime && !proc.equals(executedProc)) {\n proc.setWaitingTime(1);//set th waiting time of the others process that could be executed\n }\n }\n occupancyTime++;\n currentTime++;\n executedProc.setTime(executedProc.getTime() + 1);\n executedProc.setRessource(executedProc.getCurrentStep(), executedProc.getRessource(executedProc.getCurrentStep()) - 1);\n if (executedProc.getRessource(executedProc.getCurrentStep()) <= 0) {\n if (executedProc.getCurrentStep() < executedProc.getListOfInOut().size()) {\n executedProc.setTime(currentTime + executedProc.getInOut(executedProc.getCurrentStep()));\n executedProc.setCurrentStep(executedProc.getCurrentStep() + 1);\n if (executedProc.getCurrentStep() > executedProc.getlistOfResource().size()) {\n averageReturnTime += executedProc.getExecutedTime(); //update the average return time by adding the time that the process took\n averageWaitingTime += executedProc.getWaitingTime();\n localProcess.remove(executedProc);\n }\n } else {\n averageReturnTime += executedProc.getExecutedTime(); //update the average return time by adding the time that the process took\n averageWaitingTime += executedProc.getWaitingTime();\n localProcess.remove(executedProc);\n }\n executedProc = null;\n }\n } else {\n currentTime++;\n }\n }\n //Calculation of the variables\n occupancyRate = ((double) occupancyTime / (double) currentTime) * 100;\n\n averageWaitingTime = averageWaitingTime / size;\n averageReturnTime = averageReturnTime / size;\n\n //Updating the global variables\n currentAverageReturnTime = averageReturnTime;\n logger.trace(\"Current average return time : \" + currentAverageReturnTime);\n currentAverageWaitingTime = averageWaitingTime;\n logger.trace(\"Current average waiting time : \" + currentAverageWaitingTime);\n currentOccupancyRate = occupancyRate;\n logger.trace(\"Current occupancy rate : \" + currentOccupancyRate);\n currentOccupancyTime = occupancyTime;\n logger.trace(\"Current occupancy time : \" + currentOccupancyTime);\n\n restList(); //reset the list to the origin values so the user can test another algo\n\n }", "protected EventBuilder doEvaluate(\n Execution execution, AllocationInstructions allocationInstructions, Event previousEvent) {\n EventBuilder eventBuilder = previousEvent.toBuilder();\n Set<ReferenceWithMetaParty> eventParties = new HashSet();\n Iterator var6 = eventBuilder.getPrimitive().getAllocation().iterator();\n\n while (var6.hasNext()) {\n AllocationPrimitiveBuilder allocationBuilder = (AllocationPrimitiveBuilder) var6.next();\n Set<ReferenceWithMetaParty> blockExecutionParties = new HashSet(\n allocationBuilder.build().getBefore().getExecution().getParty());\n eventParties.addAll(blockExecutionParties);\n allocationBuilder.getBefore().getExecution().clearParty()\n .addParty(this.replacePartyWithReference(blockExecutionParties));\n allocationBuilder.getAfter().getOriginalTrade().getExecution().clearParty()\n .addParty(this.replacePartyWithReference(blockExecutionParties));\n allocationBuilder.getAfter().getAllocatedTrade().forEach((allocatedTradeBuilder) -> {\n List<ReferenceWithMetaParty> allocatedExecutionParties = (List) Optional\n .ofNullable(allocatedTradeBuilder.build().getExecution()).map(Execution::getParty)\n .orElse(\n Collections.emptyList());\n eventParties.addAll(allocatedExecutionParties);\n allocatedTradeBuilder.getExecution().clearParty()\n .addParty(this.replacePartyWithReference(allocatedExecutionParties));\n });\n }\n\n eventBuilder.addEventIdentifier(this.getIdentifier(\"allocationEvent1\", 1)).setEventDate(\n DateImpl.of(LocalDate.now()))\n .addParty((List) eventParties.stream().map(ReferenceWithMetaParty::getValue).collect(\n Collectors.toList())).addTimestamp(this.getEventCreationTimestamp(ZonedDateTime.now()));\n this.postProcessors.forEach((postProcessStep) -> {\n postProcessStep.runProcessStep(Event.class, eventBuilder);\n });\n return eventBuilder;\n }", "public boolean execute() {\n\t\t\n\t\tfor (int i = 0; i <Network.size(); i++) {\n\t\t\t\n\t\t\tMyNode n = (MyNode)Network.get(i);\n\t\t\t//MyNode n1 = (MyNode) n;\t\t\n \n System.out.println(\"The frobenius_norm at node\"+\"(\"+i+\"):\"+n.frobenius_norm);\n\t\t\tretVal=retVal &&(n.frobenius_norm<=threshold);\n\t\t\tSystem.out.println(retVal);\n }\n if(retVal)\n {\n \t System.out.println(\"ALgorithm Converged...###########################!\");\n \t return myNewSVMCode.end;\n }\n else\t\n {\n\t\treturn false;\n }\n }", "@Override\r\n @SuppressWarnings(\"unchecked\")\r\n public final EVirtualMachineState perform(\r\n final VirtualMachine<RBGPMemory, ? extends RBGPProgramBase> vm) {\r\n Rule[] r;\r\n int i;\r\n Rule x;\r\n boolean b1, b2;\r\n int[] d;\r\n EVirtualMachineState e1, e2;\r\n\r\n r = this.m_rules;\r\n d = vm.m_memory.m_mem1;\r\n e1 = EVirtualMachineState.NOTHING;\r\n for (i = 0; i < r.length; i++) {\r\n x = r[i];\r\n b1 = x.m_c1.compare(d[x.m_s11.m_id], d[x.m_s12.m_id]);\r\n b2 = x.m_c2.compare(d[x.m_s21.m_id], d[x.m_s22.m_id]);\r\n\r\n if (x.m_and)\r\n b1 = (b1 && b2);\r\n else\r\n b1 = (b1 || b2);\r\n\r\n if (b1) {\r\n e2 = ((Action<VirtualMachine<RBGPMemory, ? extends VirtualMachineProgram<RBGPMemory>>>) (x.m_act))\r\n .perform(x.m_sa1, x.m_sa2, vm);\r\n if ((e2 == EVirtualMachineState.ERROR)\r\n || (e2 == EVirtualMachineState.TERMINATED))\r\n return e2;\r\n if (e2 == EVirtualMachineState.CHANGED)\r\n e1 = e2;\r\n }\r\n\r\n }\r\n\r\n return e1;\r\n }", "@Override\n\tpublic boolean execute() {\t\t\n\t\t\tif (pcpu == -1.0) \n\t\t\t{\n\t\t\t\tboolean initSuccess = initializeProb();\n\t\t\t\tif (!initSuccess)\n\t\t\t\t\treturn true; \n\t\t\t}\n\t\t\tFlag.addCycle();\n\t\t\tMinerType m1, m2;\n\t\t\tm1 = getMinerType(); // Always choose one miner\n\t\t\tNetNode mn1 = (NetNode)chooseMinerNode(m1);\n\t\t\tif (mn1.isMiner()) \n\t\t\t\t((BitcoinMinerProtocol)mn1.getProtocol(minerPid)).setSelected(true);\t\n\t\t\tdouble rd = r.nextDouble();\n\t\t\tif (rd < p2) { // two miners solved PoW concurrently\n\t\t\t\tm2 = getMinerType();\n\t\t\t\tNetNode mn2 = (NetNode)chooseMinerNode(m2);\n\t\t\t\tif (mn2.isMiner())\n\t\t\t\t\t((BitcoinMinerProtocol)mn2.getProtocol(minerPid)).setSelected(true); \n\t\t\t}\n\t\t\tforkpercentage = (double)forknodes/Network.size();\n\t\t\t//System.out.println(\"Percentage of fork:\"+forkpercentage+\"!Fork nodes are:\"+forknodes+\"!\");\n\t\t\treturn false;\n\t}", "public void execute(State state) {\n List possiblyRelevantObjectsList;\n //TODO machine learning - for now, no possibilities are relevant\n List relevantObjectsList = new ArrayList();\n state.setStateValue(relevantObjects, relevantObjectsList);\n }", "public void runSJF() {\n\n //init\n ArrayList<Processus> localProcess = new ArrayList<>(); //Creation of a local list of process\n for (Processus cpy : listOfProcess) { //Copy the list of process in the local list\n localProcess.add(cpy);\n }\n int size = listOfProcess.size(); //variable used to save the initial size of the list of process\n\n Processus executedProc = null; //ExecutedProc is the current process that is being execute\n Processus tmpProc = localProcess.get(0); //The tmpProc is the previous process executed\n\n //Variable we need to calcul\n double occupancyRate = 0;\n double averageWaitingTime = 0;\n double averageReturnTime = 0;\n int currentTime = 0;\n int occupancyTime = 0;\n\n //beginning of the algo\n while (!localProcess.isEmpty()) { //As long as there are processes that are not done yet we keep going on\n\n //Determines the next process that will be executed\n for (Processus proc : localProcess) { //flow all remaining processes\n if (proc.getTime() <= currentTime) { //check if the currentTime of the process is below the currentTime\n if (localProcess.size() == 1) { //if there is only one process left\n executedProc = proc;\n } else if ((proc.getRessource(proc.getCurrentStep()) <= tmpProc.getRessource(tmpProc.getCurrentStep())) || (proc.getTime() < tmpProc.getTime())) {//shortest process selected\n executedProc = proc;\n tmpProc = proc;\n }\n }\n }\n\n //Check if the current process is assigned\n if (executedProc != null) {\n\n //execute the current ressource\n int tmpTime = 0;\n while (executedProc.getRessource(executedProc.getCurrentStep()) > tmpTime) { //As long as there is a resource\n for (Processus proc : localProcess) {\n if (proc.getTime() <= currentTime && !proc.equals(executedProc)) { //checking if there is another process waiting\n proc.setWaitingTime(1);\n }\n }\n currentTime++; //currentTime is updating at each loop\n occupancyTime++; //occupancyTime is updating at each loop\n tmpTime++;\n }\n\n executedProc.setCurrentStep(executedProc.getCurrentStep() + 1); //Update the currentStep to the next one (index of the lists of UC and inOut)\n\n if (executedProc.getCurrentStep() >= executedProc.getlistOfResource().size()) {//if it is the end of the process\n averageReturnTime += executedProc.getExecutedTime(); //update the average return time by adding the time that the process took\n localProcess.remove(executedProc); //remove the process from the list of process that needs to run\n }\n\n if (executedProc.getCurrentStep() <= executedProc.getListOfInOut().size()) { //If there is another inOut, it set the new time\n executedProc.setTime(executedProc.getInOut(executedProc.getCurrentStep() - 1) + currentTime);\n }\n\n executedProc = null;\n } else {\n currentTime++;\n }\n }\n //end of the algo\n\n //Calculation of the variables\n occupancyRate = ((double) occupancyTime / (double) currentTime) * 100;\n for (Processus proc : listOfProcess) {\n averageWaitingTime += proc.getWaitingTime();\n }\n averageWaitingTime = averageWaitingTime / size;\n averageReturnTime = averageReturnTime / size;\n\n //Updating the global variables\n currentAverageReturnTime = averageReturnTime;\n logger.trace(\"Current average return time : \" + currentAverageReturnTime);\n currentAverageWaitingTime = averageWaitingTime;\n logger.trace(\"Current average waiting time : \" + currentAverageWaitingTime);\n currentOccupancyRate = occupancyRate;\n logger.trace(\"Current occupancy rate : \" + currentOccupancyRate);\n currentOccupancyTime = occupancyTime;\n logger.trace(\"Current occupancy time : \" + currentOccupancyTime);\n\n restList(); //reset the list to the origin values so the user can test another algo\n }", "public static void applyResults( ReturnValue[] returnValues,\r\n IProcessInstance processInstance )\r\n throws RepositoryException,\r\n AttributeReadOnlyException\r\n {\r\n\r\n // Copy the return values into the workflow data.\r\n for ( int i = 0; i < returnValues.length; i++ ) {\r\n ReturnValue returnValue = returnValues[i];\r\n\r\n if ( log.isDebugEnabled() ) {\r\n log.debug( \"Putting \" + returnValue.actualName + \" = \" +\r\n returnValue.value + \" into workflow data\" );\r\n }\r\n\r\n processInstance.getAttributeInstance( returnValue.actualName )\r\n .setValue( -1, returnValue.value );\r\n }\r\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public synchronized void processIncoming(Data data) throws WekaException {\n if (isStopRequested()) {\n return;\n }\n\n if (getStepManager().isStreamFinished(data)) {\n // done\n // notify downstream steps of end of stream\n Data d = new Data(data.getConnectionName());\n getStepManager().throughputFinished(d);\n return;\n }\n\n getStepManager().throughputUpdateStart();\n if (m_plotListeners.size() > 0) {\n if (getStepManager().numIncomingConnectionsOfType(\n StepManager.CON_INSTANCE) > 0) {\n Instance instance =\n (Instance) data.getPayloadElement(StepManager.CON_INSTANCE);\n if (m_reset) {\n m_reset = false;\n List<String> legendEntries = new ArrayList<String>();\n int i;\n for (i = 0; i < instance.dataset().numAttributes() && i < 10; i++) {\n legendEntries.add(instance.dataset().attribute(i).name());\n }\n m_instanceWidth = i;\n\n for (PlotNotificationListener l : m_plotListeners) {\n l.setLegend(legendEntries, 0.0, 1.0);\n }\n }\n\n double[] dataPoint = new double[m_instanceWidth];\n for (int i = 0; i < dataPoint.length; i++) {\n if (!instance.isMissing(i)) {\n dataPoint[i] = instance.value(i);\n }\n }\n for (PlotNotificationListener l : m_plotListeners) {\n l.acceptDataPoint(dataPoint);\n }\n\n } else if (getStepManager().numIncomingConnectionsOfType(\n StepManager.CON_CHART) > 0) {\n if (m_reset) {\n m_reset = false;\n double min =\n data.getPayloadElement(StepManager.CON_AUX_DATA_CHART_MIN, 0.0);\n double max =\n data.getPayloadElement(StepManager.CON_AUX_DATA_CHART_MAX, 1.0);\n List<String> legend =\n (List<String>) data\n .getPayloadElement(StepManager.CON_AUX_DATA_CHART_LEGEND);\n for (PlotNotificationListener l : m_plotListeners) {\n l.setLegend(legend, min, max);\n }\n }\n double[] dataPoint =\n (double[]) data\n .getPayloadElement(StepManager.CON_AUX_DATA_CHART_DATA_POINT);\n for (PlotNotificationListener l : m_plotListeners) {\n l.acceptDataPoint(dataPoint);\n }\n }\n }\n getStepManager().throughputUpdateEnd();\n }", "protected abstract void evaluate(Vector target, List<Vector> predictions);", "@Test\n public void testSingleEvent() throws Exception {\n String processId = \"test\";\n deploy(new ProcessDefinition(processId, Arrays.<AbstractElement>asList(\n new StartEvent(\"start\"),\n new SequenceFlow(\"f1\", \"start\", \"gw1\"),\n new InclusiveGateway(\"gw1\"),\n new SequenceFlow(\"f2\", \"gw1\", \"ev\"),\n new IntermediateCatchEvent(\"ev\", \"ev\"),\n new SequenceFlow(\"f3\", \"ev\", \"gw2\"),\n new InclusiveGateway(\"gw2\"),\n new SequenceFlow(\"f4\", \"gw2\", \"end\"),\n new EndEvent(\"end\")\n )));\n\n // ---\n\n String key = UUID.randomUUID().toString();\n getEngine().start(key, processId, null);\n\n // ---\n\n getEngine().resume(key, \"ev\", null);\n\n // ---\n\n assertActivations(key, processId,\n \"start\",\n \"f1\",\n \"gw1\",\n \"f2\",\n \"ev\",\n \"f3\",\n \"gw2\",\n \"f4\",\n \"end\");\n assertNoMoreActivations();\n }", "@Override\n\tpublic void execute() {\n\t\tDMNModel model = getDmnRuntime().getModels().get(0); // assuming there is only one model in the KieBase\n\t\t\n\t\t// setting input data\n\t\tDMNContext dmnContext = createDmnContext(\n\t\t\t\tImmutablePair.of(\"customerData\", new CustomerData(\"Silver\", new BigDecimal(15)))\n\t\t);\n\t\t\n\t\t// executing decision logic\n\t\tDMNResult topLevelResult = getDmnRuntime().evaluateAll(model, dmnContext);\n\t\t\n\t\t// retrieving execution results\n\t\tSystem.out.println(\"--- results of evaluating all ---\");\n\t\ttopLevelResult.getDecisionResults().forEach(this::printAsJson);\n\t}", "private void calculateOutputs(Instance instance, Hashtable<NeuralNode, Double> nodeValues) {\r\n\t\tfor (OutputNode output : outputs) {\r\n\t\t\toutput.getValue(instance, nodeValues);\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test091() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(11);\n IBk iBk0 = new IBk();\n try { \n evaluation0.evaluationForSingleInstance((Classifier) iBk0, (Instance) binarySparseInstance0, true);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // DenseInstance doesn't have access to a dataset!\n //\n verifyException(\"weka.core.AbstractInstance\", e);\n }\n }", "Result evaluate();", "private Process(Device device, Vrf vrf) {\n\t\tthis.device = device;\n\t\tthis.adjacentProcesses = new HashSet<Process>();\n\t\tthis.vrf = vrf;\n\t}", "public boolean evaluate() {\r\n\t\t\tif (this.isKnownValue()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t// handle the case when this.getValue() is null\r\n\t\t\tif (this.getValue() == null) {\r\n\t\t\t\t// if the value is null, then we just need to see if expected evaluation is also null\r\n\t\t\t\treturn this.getCurrentEvaluation() == null;\r\n\t\t\t}\r\n\t\t\t// if entities have the same name, they are equals.\r\n\t\t\tif (this.getCurrentEvaluation().getName().equalsIgnoreCase(this.getValue().getName())) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}", "public interface ProcessModel {\n\t\n\t\n\t\n\t/** \n\t * Returns the initial covariance matrix.\n\t * @return the initial covariance matrix.\n\t */\n\tpublic Matrix P0 ();\n\n\t/**\n\t * Returns the process noise matrix.\n\t * @param t time\n\t * @param dt dt = current time - previous time.\n\t * @param x current state vector\n\t * @return the process noise matrix.\n\t */\n\tpublic Matrix Q (double t, double dt, EstSTM x);\n\n\n\t/** \n\t * Returns the initial reference state.\n\t * @return the initial reference state.\n\t */\n\tpublic VectorN xref0 ();\n\t\n\t/**\n\t * Returns the number of states.\n\t * @return the number of states.\n\t */\t\n\tpublic int numberOfStates();\n\t\n\t/** \n\t * Propagate the state and state transition matrix to the next measurement time.\n\t * @param t0 previous time\n\t * @param xin array containing state and state transition matrix at previous time.\n\t * @param tf next time\n\t */\t\n\tpublic double[] propagate( double t0, double[] xin, double tf);\n\t\n\t/**\n\t * Print out the state and covariance data\n\t * @param t time\n\t * @param state state vector\n\t * @param covariance covariance matrix\n\t */\n\tpublic void print(double t, VectorN state, Matrix covariance);\n\t\n\t/**\n\t * Print out the residuals\n\t * @param t time\n\t * @param resid1 residual before the measurement update\n\t * @param resid2 residual after the measurement update\n\t */\n\tpublic void printResiduals(double t, double resid1, double resid2);\n\t\n\t/**\n\t * Close all open LinePrinters\n\t */\n\tpublic void closeLinePrinter();\n\n}", "@Override\r\n\tpublic int computeNextVal(boolean prediction, Instance inst) {\n\t\treturn 0;\r\n\t}", "public void process() {\n\t\ttime--;\n\t\tif (time <= 0) {\n\t\t\tend(false);\n\t\t\treturn;\n\t\t}\n\t\tfor (Player p : getPlayers()) {\n\t\t\t// Check if p is not null and make sure they are active\n\t\t\tif (Objects.nonNull(p) && p.isActive()) {\n\t\t\t\t// Here we will send interfaces, update the score, notify\n\t\t\t\t// players of\n\t\t\t\t// what is going on in the game etc.\n\t\t\t\tp.send(new SendMessage(\"Active\"));\n\t\t\t}\n\t\t}\n\t}", "public void performEvaluation(){\n if(validateExp(currentExp)){\n try {\n Double result = symbols.eval(currentExp);\n currentExp = Double.toString(result);\n calculationResult.onExpressionChange(currentExp,true);\n count=0;\n }catch (SyntaxException e) {\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n e.printStackTrace();\n }\n }\n\n }", "@Test\n public void isInputDataValidTest() {\n boolean invoke = Deencapsulation.invoke(modificationFibonacci, \"isInputDataValid\", \"1\");\n assertTrue(invoke);\n }", "int getExecutionStageStateValue();", "public static void evaluateTransformation(Transformation transformation) {\n \t// If the job group changes no further actions will be performed \n \tint evaluationJobGroup = currentJobGroup;\n\n\n \t// Get the correct engines\n \tfinal EngineEvaluator inEngineEvaluator = transformation.getInEngineEvaluator();\n\n\n \t// Generate the result\n \tJavaRDD<ObjectValue> result = null;\n \tif (evaluationJobGroup == currentJobGroup)\n \t\tresult = inEngineEvaluator.evaluate(transformation);\n\n \t\n \t// Store the result\n \tevaluateTransformationStore(transformation, evaluationJobGroup, result);\n }", "private void transitionRow(final NodeSchemaProcessStatus processStatus, final String keyspace) {\n\n Update transitionState =\n QueryBuilder.update(Constants.PATHSTORE_APPLICATIONS, Constants.NODE_SCHEMAS);\n transitionState\n .where(QueryBuilder.eq(Constants.NODE_SCHEMAS_COLUMNS.NODE_ID, this.nodeId))\n .and(QueryBuilder.eq(Constants.NODE_SCHEMAS_COLUMNS.KEYSPACE_NAME, keyspace))\n .with(\n QueryBuilder.set(\n Constants.NODE_SCHEMAS_COLUMNS.PROCESS_STATUS,\n processStatus == NodeSchemaProcessStatus.INSTALLING\n ? NodeSchemaProcessStatus.PROCESSING_INSTALLING.toString()\n : NodeSchemaProcessStatus.PROCESSING_REMOVING.toString()));\n\n this.session.execute(transitionState);\n }", "public void fallDetectionV2(MovementInstance movementInstance){\n double acceleration = movementInstance.getAccelerationVector();\n switch (state){\n case INIT_STATE:\n // Acceleration considered as free fall if it has value lower than 0.42G ~ 0.63G\n if (acceleration < 0.63){\n state = FallingState.FREE_FALL_DETECTION_STATE;\n }\n break;\n case FREE_FALL_DETECTION_STATE:\n //Loading data to Dateset List for 4 seconds\n flDataset.add(movementInstance);\n if(Instant.now().toEpochMilli() - flDataset.get(0).getInstanceTime() > 4000){\n Log.println(Log.DEBUG, TAG, \"FREE_FALL_DETECTED\");\n state = FallingState.IMPACT_DETECTION_STATE;\n }\n break;\n case IMPACT_DETECTION_STATE:\n //Max is Impact maximum G\n MovementInstance max = flDataset.stream().max(Comparator\n .comparing(MovementInstance::getAccelerationVector))\n .orElseThrow(NoSuchElementException::new);\n /* Min is free Fall minimum G: filter values before the Impact (max)\n and find if there is free fall (min) prior to impact */\n MovementInstance min = flDataset.stream()\n .filter(s -> s.getInstanceTime() < max.getInstanceTime())\n .min(Comparator.comparing(MovementInstance::getAccelerationVector))\n .orElseThrow(NoSuchElementException::new);\n /* Duration should be under 0.8sec and Impact > 2.02G ~ 3.1G according to statistics.\n We calculate the duration between the lowest free fall G and the highest impact G */\n long duration = max.getInstanceTime() - min.getInstanceTime();\n if (duration > 250 && duration < 800 && max.getAccelerationVector() > 2.02){\n Log.println(Log.DEBUG, TAG, \"IMPACT_DETECTED - Falling Duration: \" +duration);\n boolean isMotionless = flDataset.stream()\n //Get values that are 1 sec after the impact (filter out any bounces)\n .filter(s -> s.getInstanceTime() > max.getInstanceTime() + 1000)\n //if the remaining values show motionless behaviour then true/next state\n .noneMatch(s -> s.getAccelerationVector() < 0.90 || s.getAccelerationVector() > 1.10);\n if (isMotionless){\n Log.println(Log.DEBUG, TAG, \"IMMOBILITY_DETECTED\");\n state = FallingState.IMMOBILITY_DETECTION_STATE;\n }\n else {\n //Clear fall dataset list and reset states if motion is detected\n flDataset.clear();\n //Reset\n Log.println(Log.DEBUG, TAG, \"Resetting...\");\n state = FallingState.INIT_STATE;\n }\n }\n else {\n //Clear fall dataset list and reset states if duration or max G is incorrect.\n flDataset.clear();\n //Reset\n Log.println(Log.DEBUG, TAG, \"Resetting...\");\n state = FallingState.INIT_STATE;\n }\n break;\n case IMMOBILITY_DETECTION_STATE:\n // Trigger Countdown Alarm\n Intent intent = new Intent();\n intent.setAction(FALL_RECEIVER);\n sendBroadcast(intent);\n Log.println(Log.DEBUG, TAG, \"Alarm Triggered!!!\");\n state = FallingState.INIT_STATE;\n break;\n }\n }", "@Test\n public void testTransientProcessInstanceWithBigData() throws Exception\n {\n final ProcessInstance pi = sf.getWorkflowService().startProcess(PROCESS_DEF_ID_BIG_DATA_ACCESS, null, true);\n ProcessInstanceStateBarrier.instance().await(pi.getOID(), ProcessInstanceState.Completed);\n\n DatabaseOperationMonitoring.instance().assertExactly(SELECT_WFUSER_REALM.times(1),\n SELECT_WORKFLOWUSER.times(1),\n SELECT_USER_PARTICIPANT.times(1),\n SELECT_PREFERENCE.times(7));\n }", "@Override\n\tpublic final void execute (Map<Key, Object> context) {\n\t\tboolean outcome = makeDecision (context);\n\n\t\tif (outcome) {\n\t\t\tpositiveOutcomeStep.execute (context);\n\t\t} else {\n\t\t\tnegativeOutcomeStep.execute (context);\n\t\t}\n\t}", "@Override\n public double classifyInstance(Instance testdata) {\n // get a copy of testdata Instance with only the matched attributes\n Instance ntest = this.mm.getMatchedTestInstance(testdata);\n\n double ret = 0.0;\n try {\n ret = this.classifier.classifyInstance(ntest);\n }\n catch (Exception e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n\n return ret;\n }", "private String predict(Node currentNode, String[] newInstance) {\n\t\t// If this node is a class node, then return the class name\n\t\tif(currentNode instanceof ClassNode){\n\t\t\tClassNode node = (ClassNode) currentNode;\n\t\t\treturn node.className;\n\t\t}else{\n\t\t\t// otherwise, check which subtree we should follow\n\t\t\t// by comparing the attribute of the instance\n\t\t\t// with the one in the tree\n\t\t\tDecisionNode node = (DecisionNode) currentNode;\n\t\t\tString value = newInstance[node.attribute];\n\t\t\tfor(int i=0; i< node.attributeValues.length; i++){\n\t\t\t\tif(node.attributeValues[i].equals(value)){\n\t\t\t\t\treturn predict(node.nodes[i], newInstance);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null; // null if no subtree correspond to the attribute value for the instance\n\t}", "public static synchronized void updateExecutionStateProperty(){\n collumsCalculatedProperty.setValue(collumsCalculated);\n }", "private boolean satisfies(Instance inst) {\n\n if ((int) inst.value(m_attr) == m_val) {\n if (m_next == null) {\n\t return true;\n\t} else {\n\t return m_next.satisfies(inst);\n\t}\n }\n return false; \n }", "@Test\n public void testTransientProcessInstanceDeclaringProcessInterfaceStandardImpl() throws Exception\n {\n final ProcessInstance pi = sf.getWorkflowService().startProcess(PROCESS_DEF_ID_PROCESS_INTERFACE, null, true);\n ProcessInstanceStateBarrier.instance().await(pi.getOID(), ProcessInstanceState.Completed);\n\n DatabaseOperationMonitoring.instance().assertExactly(SELECT_WFUSER_REALM.times(1),\n SELECT_WORKFLOWUSER.times(1),\n SELECT_USER_PARTICIPANT.times(1),\n SELECT_MODEL_REF.times(1),\n SELECT_PREFERENCE.times(7));\n }", "public final void rule__Process__ValueAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10535:1: ( ( ruleProcessExpression ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10536:1: ( ruleProcessExpression )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10536:1: ( ruleProcessExpression )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:10537:1: ruleProcessExpression\n {\n before(grammarAccess.getProcessAccess().getValueProcessExpressionParserRuleCall_2_0()); \n pushFollow(FOLLOW_ruleProcessExpression_in_rule__Process__ValueAssignment_220736);\n ruleProcessExpression();\n\n state._fsp--;\n\n after(grammarAccess.getProcessAccess().getValueProcessExpressionParserRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\n public double classifyInstance(Instance instance) throws Exception {\n\n\n\n int numAttributes = instance.numAttributes();\n int clsIndex = instance.classIndex();\n boolean hasClassAttribute = true;\n int numTestAtt = numAttributes -1;\n if (numAttributes == m_numOfInputNeutrons) {\n hasClassAttribute = false; // it means the test data doesn't has class attribute\n numTestAtt = numTestAtt+1;\n }\n\n for (int i = 0; i< numAttributes; i++){\n if (instance.attribute(i).isNumeric()){\n\n double max = m_normalization[0][i];\n double min = m_normalization[1][i];\n double normValue = 0 ;\n if (instance.value(i)<min) {\n normValue = 0;\n m_normalization[1][i] = instance.value(i); // reset the smallest value\n }else if(instance.value(i)> max){\n normValue = 1;\n m_normalization[0][i] = instance.value(i); // reset the biggest value\n }else {\n if (max == min ){\n if (max == 0){\n normValue = 0;\n }else {\n normValue = max/Math.abs(max);\n }\n }else {\n normValue = (instance.value(i) - min) / (max - min);\n }\n }\n instance.setValue(i, normValue);\n }\n }\n\n double[] testData = new double[numTestAtt];\n\n\n\n\n\n int index = 0 ;\n\n if (!hasClassAttribute){\n\n for (int i =0; i<numAttributes; i++) {\n testData[i] = instance.value(i);\n }\n }else {\n for (int i = 0; i < numAttributes; i++) {\n\n if (i != clsIndex) {\n\n testData[index] = instance.value(i);\n\n index++;\n }\n }\n }\n\n\n\n DenseMatrix prediction = new DenseMatrix(numTestAtt,1);\n for (int i = 0; i<numTestAtt; i++){\n prediction.set(i, 0, testData[i]);\n }\n\n DenseMatrix H_test = generateH(prediction,weightsOfInput,biases, 1);\n\n DenseMatrix H_test_T = new DenseMatrix(1, m_numHiddenNeurons);\n\n H_test.transpose(H_test_T);\n\n DenseMatrix output = new DenseMatrix(1, m_numOfOutputNeutrons);\n\n H_test_T.mult(weightsOfOutput, output);\n\n double result = 0;\n\n if (m_typeOfELM == 0) {\n double value = output.get(0,0);\n result = value*(m_normalization[0][classIndex]-m_normalization[1][classIndex])+m_normalization[1][classIndex];\n //result = value;\n if (m_debug == 1){\n System.out.print(result + \" \");\n }\n }else if (m_typeOfELM == 1){\n int indexMax = 0;\n double labelValue = output.get(0,0);\n\n if (m_debug == 1){\n System.out.println(\"Each instance output neuron result (after activation)\");\n }\n for (int i =0; i< m_numOfOutputNeutrons; i++){\n if (m_debug == 1){\n System.out.print(output.get(0,i) + \" \");\n }\n if (output.get(0,i) > labelValue){\n labelValue = output.get(0,i);\n indexMax = i;\n }\n }\n if (m_debug == 1){\n\n System.out.println(\"//\");\n System.out.println(indexMax);\n }\n result = indexMax;\n }\n\n\n\n return result;\n\n\n }", "@Test\n @Deployment(resources = {\"BPMN/utility-counter.bpmn\"})\n public void shouldExecuteProcess() {\n ProcessInstance processInstance = runtimeService().startProcessInstanceByKey(\"utility-counter\");\n // Then it should be active\n assertThat(processInstance).isActive();\n // And it should be the only instance\n assertThat(processInstanceQuery().count()).isEqualTo(1);\n // And there should exist just a single task within that process instance\n assertThat(task(processInstance)).hasName(\"Wait\\nfor\\nPicture\");\n\n // When we complete that task\n complete(task(processInstance));\n // Then the process instance should be ended\n assertThat(processInstance).isEnded();\n }", "public void updateResult () {\n if (Ohana.isDisposed()) return;\n\n if (m_exprList != null && m_timerStart > 0L) {\n long curTime = System.currentTimeMillis();\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"Expressions are being evaluated...\");\n }\n // initial true boolean will be conjoined with at least one expression result;\n // if exprList empty, then automatic true, which is consistent with tactic condition/effect interpretation\n boolean curResult = true;\n for (Expression expr : m_exprList) { // evaluate all expressions, conjoined\n expr.clearState(); // make sure we're really re-evaluating, not using cached value\n expr.evaluate(null);\n if (expr.getResult() != null && expr.getResult() instanceof Boolean) {\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"expr: \" + expr.getResult() + \"; \" + expr.toString());\n }\n curResult &= (Boolean )expr.getResult();\n }\n } // curResult has outcome of evaluating conjunction of expressions\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"Result updated\");\n }\n if (m_period == 0L) {\n m_result = curResult;\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"No period, condition changed: \" + m_result);\n }\n setChanged();\n } else if (curTime - m_timerStart <= m_period) {\n if (!m_result && curResult) {\n // condition just turned true from false within time period\n // what about duration?\n if (m_duration == 0L) {\n // no need to consider duration, so result is true\n m_result = true;\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"Within time period but no duration, condition changed: \" + m_result);\n }\n setChanged();\n } else if (m_timerTrueDuring == 0L) {\n // duration timer hasn't started, start it\n m_timerTrueDuring = curTime;\n } else if (curTime - m_duration >= m_duration) {\n // duration was specified, timer started, AND\n // we've met duration\n m_result = true;\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"Within time period AND met duration, condition changed: \" + m_result);\n }\n setChanged();\n }\n } else if (m_result && !curResult) {\n // condition just turned false from true within time period\n if (m_duration == 0L) {\n // no duration to consider, result turns false\n m_result = false;\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"Condition turned false, no duration\");\n }\n setChanged();\n } else if (m_timerTrueDuring > 0L) {\n // duration timer started, check it\n if (curTime - m_timerTrueDuring < m_duration) {\n // condition remained true insufficiently long\n m_result = false;\n m_timerTrueDuring = 0L; // unset duration timer\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"Condition turned false, not true sufficiently long!\");\n }\n setChanged();\n }\n // TODO: if condition was true for duration, but turned false before period is up, should we consider result to be true then???\n }\n }\n } else { // period timer no longer relevant, unset it\n m_timerStart = 0L;\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"Period exceeded, unset timer, end result: \" + m_result);\n }\n setChanged();\n }\n }\n }", "@Override\n\tprotected Instances lrprocess(Instances data) {\n\t\ttry {\n\t\t\treturn this.process(data);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "protected boolean process() {\n BooleanSupplier step = _steps.peek();\n if (step == null) {\n return false;\n }\n if (step.getAsBoolean()) {\n return true;\n } else {\n _steps.remove();\n return !isFinished();\n }\n }", "@Override\n public void execute() {\n System.out.println(\"---------- OBSERVER PATTERN ----------\");\n Subject subject = new Subject();\n\n //create observers and pass in subject they want to observe (constructor code will add them as observers to the subject)\n new ObserverA(subject);\n new ObserverB(subject);\n\n //subject data changes and automatically updates all observers...triggering their souts (reporting the changed number)\n subject.changeUnstableInt();\n }", "@Override\n\tpublic int doExecution(final HshContext context) throws Exception {\n\t\tif(getChildCount()>1)\n\t\t\tthrow new RuntimeException(\"pipes not implementd\");\n\n\t\tint result=0;\n\t\tfor(final L1Node child : this)\n\t\t\tresult=NodeTraversal.executeSubtree(child, context);\n\t\t// if banged swap result true/false\n\t\tif(isBanged())\n\t\t\treturn result==0?1:0;\n\t\treturn result;\n\t}", "public boolean evaluate(SDGNode node);", "@Override\n\tpublic boolean isProcessInStateMachine() {\n\t\treturn false;\n\t}", "protected FitnessAssignmentProcess() {\r\n super();\r\n }", "@Override\n public List<IncEvalState> evaluateBeam(Expression2 lf, Object initialDiagram,\n IncEvalCost cost, Environment startEnv,\n LogFunction log, int beamSize) {\n KbestQueue<IncEvalState> heap = new KbestQueue<IncEvalState>(beamSize,\n new IncEvalState[0]);\n \n // Heap for finished parses.\n KbestQueue<IncEvalState> finishedHeap = new KbestQueue<IncEvalState>(beamSize,\n new IncEvalState[0]);\n\n // Array of elements in the current beam.\n IncEvalState[] currentBeam = new IncEvalState[beamSize + 1];\n int currentBeamSize = 0;\n\n // Accumulator for storing future continuations.\n List<IncEvalState> resultQueue = Lists.newArrayList();\n\n // Construct and queue the start state. \n // Note that continuation may be null, meaning that lf cannot\n // be evaluated by this class. If this is the case, this method\n // will return the initialState as the only result.\n Object continuation = lfToContinuation(lf, startEnv);\n IncEvalState initialState = new IncEvalState(continuation, startEnv, null,\n initialDiagram, 1.0, null);\n offer(heap, initialState, cost);\n\n while (heap.size() > 0) {\n // Copy the heap to the current beam.\n IncEvalState[] keys = heap.getItems();\n for (int i = 0; i < heap.size(); i++) {\n currentBeam[i] = keys[i];\n }\n\n // Empty the heap.\n currentBeamSize = heap.size();\n heap.clear();\n\n for (int i = 0; i < currentBeamSize; i++) {\n IncEvalState state = currentBeam[i];\n \n if (state.getContinuation() != null) {\n resultQueue.clear();\n log.startTimer(\"evaluate_continuation\");\n evaluateContinuation(state, resultQueue, log);\n log.stopTimer(\"evaluate_continuation\");\n \n for (IncEvalState next : resultQueue) {\n offer(heap, next, cost);\n }\n } else {\n // Evaluation is finished.\n offer(finishedHeap, state, cost);\n }\n }\n }\n \n List<IncEvalState> finalStates = Lists.newArrayList();\n while (finishedHeap.size() > 0) {\n finalStates.add(finishedHeap.removeMin());\n }\n Collections.reverse(finalStates);\n return finalStates;\n }", "public com.sforce.soap.enterprise.QueryResult getProcessInstances() {\r\n return processInstances;\r\n }", "public static void exec() {\n Elvis ELVIS = Elvis.getInstance();\n\n //pattern 3\n ElvisEnum ELVIS2 = ElvisEnum.INSTANCE;\n\n ELVIS.doSomething();\n ELVIS2.doSomething();\n }", "public IProcessChange addProcessChange(IRTransition t)\n throws OculusException;", "public void run(TaskMonitor taskMonitor) throws Exception {\n\t\tString invar = (String) invarHolder.getSelectedItem();\n\t\t// Extract transitions from string by name\n\t\tString[] transitionArray = invar.split(\", \");\n\t\tArrayList<CyNode> transitions = new ArrayList<CyNode>();\n\t\tHashMap<String, Integer> times = new HashMap<String, Integer>(); // Use this to store how often transitions are fired\n\t\tString amt;\n\t\tHashMap<String, Integer> tokens = new HashMap<String, Integer>();\n\t\tfor (String trans : transitionArray) {\n\t\t\tamt = \"1\"; // Default\n\t\t\tif (trans.contains(\" \")) {\n\t\t\t\tamt = trans.split(\" \")[0];\n\t\t\t\ttrans = trans.split(\" \")[1];\n\t\t\t}\n\t\t\ttimes.put(trans, Integer.parseInt(amt));\n\t\t\tfor (CyNode n : petriNet.getNodeList()) {\n\t\t\t\tif (petriNet.getDefaultNodeTable().getRow(n.getSUID()).get(\"name\", String.class).equals(trans)) {\n\t\t\t\t\ttransitions.add(n);\n\t\t\t\t\t// Gather all places influenced by the invariant\n\t\t\t\t\t// Need to get the marking and map it\n\t\t\t\t\tfor (CyEdge e : petriNet.getAdjacentEdgeIterable(n, CyEdge.Type.INCOMING)) {\n\t\t\t\t\t\ttokens.put(petriNet.getDefaultNodeTable().getRow(e.getSource().getSUID()).get(\"name\", String.class),\n\t\t\t\t\t\t\t\tpetriNet.getDefaultNodeTable().getRow(e.getSource().getSUID()).get(\"tokens\",Integer.class));\n\t\t\t\t\t}\n\t\t\t\t\tfor (CyEdge e : petriNet.getAdjacentEdgeIterable(n, CyEdge.Type.OUTGOING)) {\n\t\t\t\t\t\ttokens.put(petriNet.getDefaultNodeTable().getRow(e.getTarget().getSUID()).get(\"name\", String.class),\n\t\t\t\t\t\t\t\tpetriNet.getDefaultNodeTable().getRow(e.getTarget().getSUID()).get(\"tokens\",Integer.class));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tArrayList<String> realize = new ArrayList<String>();\n\t\tpetriUtils.namingsense(transitions, new ArrayList<String>(), times, tokens, realize, all);\n\t\t// Display realizable permutations ... kind of want to get this into petriPanel to get rid of TaskMonitor\n\t\tpetriUtils.realize = realize;\n\t}", "public Data process() throws EngineException {\n return process(new Data(GraphStore.create()));\n }", "private void checkRunningEvaluations() {\n List<EvaluatorHandle> finishedHandles = new LinkedList<EvaluatorHandle>();\n for (EvaluatorHandle handle : evaluations) {\n switch (handle.getStatus()) {\n case NEW:\n break;\n case CREATED:\n break;\n case RUNNING:\n break;\n case NOT_RESPONDING:\n break;\n case FAILED:\n case DESTROYED:\n case COMPLETED:\n File task = handle.getTask();\n log.log(Level.INFO, \"Tasks completed. Status: {0}\", handle.getStatus());\n tasks.remove(task);\n finishedHandles.add(handle);\n break;\n default:\n throw new AssertionError(handle.getStatus().name());\n }\n }\n for (EvaluatorHandle handle : finishedHandles) {\n evaluations.remove(handle);\n }\n }", "public void onProcessChanges(IDuccWork job, IDuccProcess left, IDuccProcess right);", "public abstract double classify(Instance e);" ]
[ "0.5263768", "0.523463", "0.51825017", "0.5162931", "0.51463026", "0.5098195", "0.50746876", "0.50736296", "0.49989656", "0.49801233", "0.49731922", "0.49425948", "0.48908684", "0.488477", "0.4876572", "0.48610806", "0.48610806", "0.48487055", "0.47514614", "0.47427925", "0.47260255", "0.47184274", "0.46979618", "0.46930727", "0.4636555", "0.463115", "0.46263131", "0.462569", "0.46253178", "0.4604011", "0.45981276", "0.45832986", "0.4582194", "0.45810592", "0.45768026", "0.4574734", "0.4574134", "0.45725828", "0.45720136", "0.45654914", "0.45587334", "0.45493546", "0.45430106", "0.45315558", "0.4528088", "0.45254964", "0.4516994", "0.4510613", "0.4503361", "0.44980973", "0.4491987", "0.44763425", "0.4475469", "0.44747877", "0.44731432", "0.4471044", "0.4464487", "0.44632792", "0.4462765", "0.4459687", "0.44588462", "0.44501412", "0.44469357", "0.44276923", "0.44235456", "0.44123918", "0.44054174", "0.4400481", "0.43917888", "0.4391638", "0.43905059", "0.43837675", "0.43796775", "0.43787602", "0.43747026", "0.43601578", "0.43600205", "0.43595517", "0.4359511", "0.4357785", "0.43564957", "0.435039", "0.43475908", "0.4338275", "0.43221825", "0.43216357", "0.4309287", "0.43073323", "0.43063733", "0.43037483", "0.4302405", "0.43013847", "0.43011463", "0.42997327", "0.42939582", "0.42904443", "0.4290269", "0.4279312", "0.4278308", "0.42782742", "0.42702213" ]
0.0
-1
Populates the vector inconsistencies with all inconsistencies of the transition.
public void checkConsistency(List inconsistencies);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void differences(){\n\n\t\t/* Set the value of the initial differences to zero (it is calculated through\n\t\t * incrementing the variable) */\n\t\tfixeddifferences=0;\n\n\t\t/* For every cell in the cell space */\n\t\tfor (int i=0;i<GlobalAttributes.xCells;i++){\n\t\t\tfor(int j=0;j<GlobalAttributes.yCells;j++){\n\n\t\t\t\t/* If the value in the initial configuration differs from the value\n\t\t\t\t * in the target configuration */\n\t\t\t\tif(source[i][j].topSubcellValue != target[i][j].topSubcellValue ||\n\t\t\t\t\t\tsource[i][j].bottomSubcellValue != target[i][j].bottomSubcellValue ||\n\t\t\t\t\t\tsource[i][j].leftSubcellValue != target[i][j].leftSubcellValue ||\n\t\t\t\t\t\tsource[i][j].rightSubcellValue != target[i][j].rightSubcellValue){\n\n\t\t\t\t\t/* Set the value in the fixed initial difference matrix\n\t\t\t\t\t * to true and increment the fixed initial differences counter */\n\t\t\t\t\tfixeddifferent[i][j]=true;\n\t\t\t\t\tfixeddifferences++;\n\t\t\t\t}\n\n\t\t\t\t/* Else if the value does not differ, set the value in the\n\t\t\t\t * fixed initial differences matrix to false and do not increment\n\t\t\t\t * the fixed initial differences counter */\n\t\t\t\telse{\n\t\t\t\t\tfixeddifferent[i][j]=false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void calculateTimeDifferences() {\n\n findExits();\n\n try {\n\n\n if (accumulate.size() > 0) {\n\n for (int i = 1; i < accumulate.size() - 1; i++) {\n if (accumulate.get(i).value > accumulate.get(i - 1).value\n && timeOfExists.size() > 0) {\n\n double timeOfEntry = accumulate.get(i).timeOfChange;\n double timeOfExit = timeOfExists.get(0);\n\n timeOfExists.remove(timeOfExit);\n timeOfChanges.add(timeOfExit - timeOfEntry);\n }\n\n }\n }\n } catch (IndexOutOfBoundsException exception) {\n LOG_HANDLER.logger.severe(\"calculateTimeDifferences \"\n + \"Method as thrown an OutOfBoundsException: \"\n + exception\n + \"Your timeOfChanges seems to be null\");\n }\n }", "public void calculateDifferences() {\n\t\t\tMap<Integer, Integer> shifts = new HashMap<Integer, Integer>();\n\t\t\tfor (int voiceDetected : vDitected) {\n\t\t\t\tfor (int oldValue : occurences) {\n\t\t\t\t\tint shift = voiceDetected - oldValue;\n\t\t\t\t\tif (shifts.containsKey(shift)) {\n\t\t\t\t\t\tshifts.put(shift, shifts.get(shift) + 1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshifts.put(shift, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!shifts.isEmpty()) {\n\t\t\t\tpossibleShift = getMaxValuedKey(shifts);\n\t\t\t\tvaluesSet = true;\n\t\t\t}\n\t\t}", "private void computeSat(){\n addVertexVisitConstraint();\n //add clause for each vertex must be visited only once/ all vertices must be on path\n addVertexPositionConstraint();\n //add clause for every edge in graph to satisfy constraint of vertices not belonging to edge not part of successive positions\n addVertexNonEdgeConstraint();\n }", "public void updateState(){\n\t\t\n\t\t\n\t\t\n\t\tArrayList<String> toAdd = new ArrayList<String>();\n\t\tArrayList<String> toRemove = new ArrayList<String>();\n\n\t\tthis.lastAdded.clear();\n\t\tthis.lastFulfilled.clear();\n\t\tthis.lastViolated.clear();\n\t\t\n\t\ttry {\n\n\t\t\tdo{\n\t\t\t\ttoAdd.clear();\n\t\t\t\ttoRemove.clear();\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iActive = reasoner.findall(\"xactive(A,Fa,Fm,Fd,Fr,Timeout)&not(as(A,Fa,Fm,Fd,Fr,Timeout))\");\n\t\t\t\twhile(iActive.hasNext()){\n\t\t\t\t\tUnifier un = iActive.next();\n\t\t\t\t\ttoAdd.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+ adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastAdded.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+ adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iViol = reasoner.findall(\"xviol(A,Fa,Fm,Fd,Fr,Timeout)&not(vs(A,Fa,Fm,Fd,Fr,Timeout))\");\n\t\t\t\twhile(iViol.hasNext()){\n\t\t\t\t\tUnifier un = iViol.next();\n\t\t\t\t\ttoAdd.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastViolated.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iDeactF = reasoner.findall(\"xdeact_f(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iDeactF.hasNext()){\n\t\t\t\t\tUnifier un = iDeactF.next();\n\t\t\t\t\ttoAdd.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString()+\",\"+un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastFulfilled.add(\"as(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iDeactR = reasoner.findall(\"xdeact_r(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iDeactR.hasNext()){\n\t\t\t\t\tUnifier un = iDeactR.next();\n\t\t\t\t\ttoAdd.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\tthis.lastFulfilled.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIterator<Unifier> iFailed = reasoner.findall(\"xfailed(A,Fa,Fm,Fd,Fr,Timeout)\");\n\t\t\t\twhile(iFailed.hasNext()){\n\t\t\t\t\tUnifier un = iFailed.next();\n\t\t\t\t\ttoAdd.add(\"fs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t\ttoRemove.add(\"vs(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//norms deactivated (fulfilled) whose maintenance condition does not hold can be removed.\n\t\t\t\t//if they are not removed, new instances of the same norm are not activated\n\t\t\t\tIterator<Unifier> iDeactivated_to_remove = reasoner.findall(\"ds(A,Fa,Fm,Fd,Fr,Timeout)&not(Fm)\");\n\t\t\t\twhile(iDeactivated_to_remove.hasNext()){\n\t\t\t\t\tUnifier un = iDeactivated_to_remove.next();\n\t\t\t\t\ttoRemove.add(\"ds(\"+adaptTerm(un.get(\"A\").toString())+\",\"+adaptTerm(un.get(\"Fa\").toString())+\",\"+adaptTerm(un.get(\"Fm\").toString())+\",\"+adaptTerm(un.get(\"Fd\").toString())+\",\"+adaptTerm(un.get(\"Fr\").toString())+\",\"+adaptTerm(un.get(\"Timeout\").toString())+\")\");\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t\tfor(String s:toAdd){\n\t\t\t\t\treasoner.assertValue(s);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(String s:toRemove){\n\t\t\t\t\treasoner.retract(s);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}while(toAdd.size()>0|toRemove.size()>0);\t\t\t\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "default Gwei[][] get_attestation_deltas(BeaconState state) {\n EpochNumber previous_epoch = get_previous_epoch(state);\n Gwei total_balance = get_total_active_balance(state);\n Gwei[] rewards = new Gwei[state.getValidatorRegistry().size().getIntValue()];\n Gwei[] penalties = new Gwei[state.getValidatorRegistry().size().getIntValue()];\n Arrays.fill(rewards, Gwei.ZERO);\n Arrays.fill(penalties, Gwei.ZERO);\n\n List<ValidatorIndex> eligible_validator_indices = new ArrayList<>();\n for (ValidatorIndex index : state.getValidatorRegistry().size()) {\n ValidatorRecord validator = state.getValidatorRegistry().get(index);\n if (is_active_validator(validator, previous_epoch)\n || (validator.getSlashed() && previous_epoch.increment().less(validator.getWithdrawableEpoch()))) {\n eligible_validator_indices.add(index);\n }\n }\n\n /* Micro-incentives for matching FFG source, FFG target, and head\n matching_source_attestations = get_matching_source_attestations(state, previous_epoch)\n matching_target_attestations = get_matching_target_attestations(state, previous_epoch)\n matching_head_attestations = get_matching_head_attestations(state, previous_epoch) */\n List<PendingAttestation> matching_source_attestations = get_matching_source_attestations(state, previous_epoch);\n List<PendingAttestation> matching_target_attestations = get_matching_target_attestations(state, previous_epoch);\n List<PendingAttestation> matching_head_attestations = get_matching_head_attestations(state, previous_epoch);\n\n /* for attestations in (matching_source_attestations, matching_target_attestations, matching_head_attestations):\n unslashed_attesting_indices = get_unslashed_attesting_indices(state, attestations)\n attesting_balance = get_attesting_balance(state, attestations)\n for index in eligible_validator_indices:\n if index in unslashed_attesting_indices:\n rewards[index] += get_base_reward(state, index) * attesting_balance // total_balance\n else:\n penalties[index] += get_base_reward(state, index) */\n for (List<PendingAttestation> attestations :\n Arrays.asList(matching_source_attestations, matching_target_attestations, matching_head_attestations)) {\n List<ValidatorIndex> unslashed_attesting_indices = get_unslashed_attesting_indices(state, attestations);\n Gwei attesting_balance = get_attesting_balance(state, attestations);\n for (ValidatorIndex index : eligible_validator_indices) {\n if (unslashed_attesting_indices.contains(index)) {\n rewards[index.getIntValue()] = rewards[index.getIntValue()]\n .plus(get_base_reward(state, index).times(attesting_balance).dividedBy(total_balance));\n } else {\n penalties[index.getIntValue()] = penalties[index.getIntValue()]\n .plus(get_base_reward(state, index));\n }\n }\n }\n\n /* Proposer and inclusion delay micro-rewards\n for index in get_unslashed_attesting_indices(state, matching_source_attestations):\n attestation = min([\n a for a in matching_source_attestations\n if index in get_attesting_indices(state, a.data, a.aggregation_bitfield)\n ], key=lambda a: a.inclusion_delay)\n rewards[attestation.proposer_index] += get_base_reward(state, index) // PROPOSER_REWARD_QUOTIENT\n rewards[index] += get_base_reward(state, index) * MIN_ATTESTATION_INCLUSION_DELAY // attestation.inclusion_delay */\n for (ValidatorIndex index : get_unslashed_attesting_indices(state, matching_source_attestations)) {\n PendingAttestation attestation =\n matching_source_attestations.stream()\n .filter(a -> get_attesting_indices(state, a.getData(), a.getAggregationBitfield()).contains(index))\n .min(Comparator.comparing(PendingAttestation::getInclusionDelay))\n .get();\n rewards[attestation.getProposerIndex().getIntValue()] = rewards[attestation.getProposerIndex().getIntValue()]\n .plus(get_base_reward(state, index).dividedBy(getConstants().getProposerRewardQuotient()));\n rewards[index.getIntValue()] = rewards[index.getIntValue()]\n .plus(get_base_reward(state, index)\n .times(getConstants().getMinAttestationInclusionDelay())\n .dividedBy(attestation.getInclusionDelay()));\n }\n\n /* Inactivity penalty\n finality_delay = previous_epoch - state.finalized_epoch\n if finality_delay > MIN_EPOCHS_TO_INACTIVITY_PENALTY:\n matching_target_attesting_indices = get_unslashed_attesting_indices(state, matching_target_attestations)\n for index in eligible_validator_indices:\n penalties[index] += BASE_REWARDS_PER_EPOCH * get_base_reward(state, index)\n if index not in matching_target_attesting_indices:\n penalties[index] += state.validator_registry[index].effective_balance * finality_delay // INACTIVITY_PENALTY_QUOTIENT */\n EpochNumber finality_delay = previous_epoch.minus(state.getFinalizedEpoch());\n if (finality_delay.greater(getConstants().getMinEpochsToInactivityPenalty())) {\n List<ValidatorIndex> matching_target_attesting_indices = get_unslashed_attesting_indices(state, matching_target_attestations);\n for (ValidatorIndex index : eligible_validator_indices) {\n penalties[index.getIntValue()] = penalties[index.getIntValue()]\n .plus(get_base_reward(state, index).times(getConstants().getBaseRewardsPerEpoch()));\n if (!matching_target_attesting_indices.contains(index)) {\n penalties[index.getIntValue()] = penalties[index.getIntValue()]\n .plus(state.getValidatorRegistry().get(index).getEffectiveBalance()\n .times(finality_delay).dividedBy(getConstants().getInactivityPenaltyQuotient()));\n }\n }\n }\n\n return new Gwei[][] { rewards, penalties };\n }", "public void computeTransitionsToFixDelta()\n {\n _entriesToProcess = new ArrayDeque<String>();\n \n _systemModelDelta.getKeys(_entriesToProcess);\n \n while(!_entriesToProcess.isEmpty())\n {\n processEntryDelta(_systemModelDelta.findAnyEntryDelta(_entriesToProcess.poll()));\n }\n }", "private void updateInconsistencies(PlanGraphStep newStep, int currentLevel) {\n\t\t\n\t\tSet<LPGInconsistency> currentLevelInconsistencies = inconsistencies.get(currentLevel);\n\n\t\t/** remove any unsupported precondition inconsistencies that newStep supports */ \n\t\tcheckSupportedPreconditions(newStep, currentLevel, currentLevelInconsistencies);\n\t\t\n\t\t/** add any new mutex steps */\n\t\tcheckMutexSteps(newStep, currentLevel, currentLevelInconsistencies);\n\t\t\n\t\t/** check last level facts for preconditions of newStep */\n\t\tcheckUnsupportedPreconditions(newStep, currentLevel);\n\t}", "public void advanceInconsistencyList() {\n\t\tinconsistenciesFound.remove(0);\r\n\t\tpossessiveTurn = false;\r\n\r\n\t\tcheckingEngine.replaceTextwithList();\r\n\t\ttypeHere.setText(checkingEngine.getText());\r\n\t\tgoThroughInconsistencies();\r\n\t}", "private void setTransitionsList () {\n for (int i = 0; i < dfaStates.size(); i++) {\n List<State> currStateList = dfaStates.get(i);\n int currStateListID = dfaStatesWithNumbering.get(currStateList);\n State initialState = new State(currStateListID, true);\n\n HashMap<String, List<State>> currStateListInfo = dfaTable.get(currStateList);\n for (int j = 0; j < symbolList.size()-1; j++) {\n String currSymbol = Character.toString(symbolList.get(j));\n List<State> currStateListSymbolList = currStateListInfo.get(currSymbol);\n\n if (currStateListSymbolList.size() > 0) {\n State finalState = new State(dfaStatesWithNumbering.get(currStateListSymbolList), true);\n Transition tmpTransition = new Transition(currSymbol, initialState, finalState);\n\n // now add to transition list\n if (!transitionsList.contains(tmpTransition)) {\n transitionsList.add(tmpTransition);\n }\n }\n }\n }\n }", "private void constructTransitionMatrix() {\r\n\t\tfor(Node node: mNodes) {\r\n\t\t\tint nodeId = node.getId();\r\n\t\t\tint outDegree = node.getOutDegree();\r\n\t\t\tArrayList<NodeTransition> transitionList = new ArrayList<NodeTransition>();\r\n\t\t\t\r\n\t\t\tSet<Integer> outEdges = getOutEdges(nodeId);\r\n\t\t\tfor(Integer edgeId: outEdges) {\r\n\t\t\t\tint toId = getEdge(edgeId).getToId();\r\n\t\t\t\tdouble pTransition = (double) getEdge(edgeId).getWeight() / (double) outDegree;\r\n\t\t\t\ttransitionList.add( new NodeTransition(toId, pTransition) );\r\n\t\t\t}\r\n\t\t\tmTransition.add( transitionList );\r\n\t\t}\r\n\t}", "public double calculateObservedDisagreement();", "private void removeInconsistency(LPGInconsistency inconsistency, Set<LPGInconsistency> currentInconsistencies){\n\t\tcurrentInconsistencies.remove(inconsistency);\n\t\tinconsistencyCount--;\n\t}", "public LPGInconsistency countInconsistencies() {\n\t\tInconsistencyIterator it = new InconsistencyIterator();\n\t\tint counter = 0;\n\t\tLPGInconsistency inconsistency = null;\n\t\twhile(it.hasNext()) {\n\t\t\tinconsistency = it.next();\n\t\t\tcounter++;\n\t\t}\n\t\tinconsistencyCount = counter;\n\t\t\n\t\treturn inconsistency;\n\t}", "private void extrapolation(HashMap<Long,Double> extraV){\n double g = 0;\n double h = 0;\n double newV = 0;\n for (long i=0; i<n; i++) {\n g = (oldv.get(i)-extraV.get(i));\n g = g*g;//compute g\n h = v.get(i) - 2*oldv.get(i) + extraV.get(i);\n newV = v.get(i) - g/h;\n if(g >= 1e-8 && h >= 1e-8){\n v.put(i, newV);\n }\n }\n }", "public addcons()\n {\n // initialise instance variables\n x = 0;\n }", "private Map<Integer, Set<Integer>> computeInverseTransitionRelation(LabelledTransitionSystem ret) {\n\n\t\tMap<Integer, Set<Integer>> reverseTransitionMap = new HashMap<>();\n\t\tLTSTransitionList[] transitions = ret.getStates();\n\n\t\tfor (int stateIndex = 0; stateIndex < transitions.length; stateIndex++) {\n\t\t\treverseTransitionMap.put(stateIndex, new HashSet<>());\n\t\t}\n\n\t\tfor (int stateIndex = 0; stateIndex < transitions.length; stateIndex++) {\n\n\t\t\tLTSTransitionList transition = transitions[stateIndex];\n\t\t\tthis.updateIndexes(stateIndex, transition, reverseTransitionMap);\n\t\t}\n\n\t\treturn reverseTransitionMap;\n\t}", "public Transition[] computeDistances(){\n\t\tSystem.out.println(\"Computing Transitions...\");\n\t\tTransition[] instanceTransitions = new Transition[nbBd*(nbBd-1)*4];\n\t\t//i sera l'indice de la cellule du tableau\n\t\tint i=0;\n\t\tfor (Strip aStrip : tabStrips){\n\t\t\tfor (Strip anotherStrip : tabStrips)\n\t\t\t\tif (aStrip != anotherStrip){\n\t\t\t\t\tdouble dist = Math.sqrt(Math.pow(anotherStrip.getX0() - aStrip.getX0(), 2) + Math.pow(aStrip.getY0() - anotherStrip.getY0(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), false, anotherStrip.getInd(), false, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX1() - aStrip.getX0(), 2) + Math.pow(aStrip.getY0() - anotherStrip.getY1(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), false, anotherStrip.getInd(), true, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX0() - aStrip.getX1(), 2) + Math.pow(aStrip.getY1() - anotherStrip.getY0(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), true, anotherStrip.getInd(), false, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX1() - aStrip.getX1(), 2) + Math.pow(aStrip.getY1() - anotherStrip.getY1(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), true, anotherStrip.getInd(), true, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t}//i != j\n\t\t\t//calcul de indMiddleTMin au fur et a mesure en utilisant des coefficients \n\t\t\t//pour eviter de depasser la taille maximale des int \n\t\t\tint divider = ((2*i) / ((nbBd-1) * 4));\n\t\t\tindMiddleTMin = ((indMiddleTMin * (divider - 2)) + (aStrip.indTMin0 + aStrip.indTMin1)) / divider;\n\t\t}//for\n\t\treturn instanceTransitions;\n\t}", "private float[] accDiff(float[] oldAcc, float[] newAcc)\n {\n float[] diffAcc = new float[]{0.0f, 0.0f, 0.0f};\n\n for (int i = 0; i < 3; i++)\n {\n diffAcc[i] = (newAcc[i]-oldAcc[i]);\n }\n return diffAcc;\n }", "public void fill_W() {\n /*\n * Iterate through each transition\n */\n\n // For each transition\n for (int i = 0; i < this.transitionVector.size(); i++) {\n List<Arc> listParents = this.transitionVector.get(i).getParents();\n List<Arc> listChildren = this.transitionVector.get(i).getChildren();\n\n // For each place of each transition\n for (int k = 0; k < this.placeVector.size(); k++) {\n // this.w_plus.get(k).get(i)\n\n /* pour chaque arc, on le transforme en place + poids */\n\n if (FList.contains(listChildren, this.placeVector.get(k))) {\n this.w_plus.get(k).set(i, FList.poids_arc(listChildren, this.placeVector.get(k)));\n } else {\n this.w_plus.get(k).set(i, 0);\n }\n\n if (FList.contains(listParents, this.placeVector.get(k))) {\n this.w_moins.get(k).set(i, FList.poids_arc(listParents, this.placeVector.get(k)));\n } else {\n this.w_moins.get(k).set(i, 0);\n }\n\n }\n }\n }", "public void fixInter () {\r\n\t\twhile(intervals.size() > 0) {\r\n\t\t\tintervals1.add(intervals.remove());\r\n\t\t}\r\n\t}", "private final List<State> PreE(List<State> y) {\r\n // {s \b S | exists s\u0001, (s � s\u0001 and s\u0001 \b Y )}\r\n List<State> states = new ArrayList<State>();\r\n //List<Transition> transitions = new ArrayList<Transition>();\r\n for (State sourceState : this._kripke.States) {\r\n for (State destState : y) {\r\n Transition myTransition = new Transition(sourceState, destState);\r\n \tfor(Transition transition : this._kripke.Transitions)\r\n \t{\r\n \t\tif (transition.FromState.equals(myTransition.FromState) &&\r\n \t\t\t\ttransition.ToState.equals(myTransition.ToState)) {\r\n \t\t\tif (!states.contains(sourceState)) {\r\n states.add(sourceState);\r\n }\r\n \t} \r\n \r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n return states;\r\n }", "public void checkEdges()\n\tthrows InconsistencyException\n\t{\n\t\t// first check if edges is non-null\n\t\tif(edges == null)\n\t\t\tthrow new InconsistencyException(\"The ArrayList edges should be non-null, but is null.\");\n\n\t\t// check that all vertices are referenced at least three times, as each is the vertex of at least one simplex\n\t\t// and in each simplex three edges meet at each vertex\n\t\t\n\t\t// create an array of ints that will hold the number of references to each vertex in the list of edges...\n\t\tint[] vertexReferences = new int[vertices.size()];\n\t\t\n\t\t// ... and set all these reference counts initially to zero\n\t\tfor(int i=0; i<vertexReferences.length; i++) vertexReferences[i] = 0;\n\t\t\n\t\t// go through all edges...\n\t\tfor(Edge edge:edges)\n\t\t{\n\t\t\t// go through both vertices...\n\t\t\tfor(int i=0; i<2; i++)\n\t\t\t\t// ... and increase the reference count of the vertex by 1\n\t\t\t\tvertexReferences[edge.getVertexIndices()[i]]++;\n\t\t\t// note that any vertex indices that are out of bounds will throw up an error here!\n\t\t}\n\n\t\t// check that all reference counts are >= 3\n\t\tfor(int i=0; i<vertexReferences.length; i++)\n\t\t{\n\t\t\tif(vertexReferences[i] < 3)\n\t\t\t{\n\t\t\t\t// vertex i is referenced fewer than 3 times\n\t\t\t\t\n\t\t\t\t// throw an InconsistencyException\n\t\t\t\tthrow(new InconsistencyException(\"Vertex #\" + i + \" should be referenced in the list of edges >= 3 times, but is referenced only \" + vertexReferences[i] + \" times.\"));\n\t\t\t}\n\t\t}\n\t}", "public void updateTransitionMapSmooth(){\n\t\tfor(String yWord:transition_map.keySet()){\n\t\t\tHashMap<String,DataUnit> stateTransitionMap=transition_map.get(yWord).state_transition;\n\t\t\tHashMap<String,DataUnit> terminalTransitionMap=transition_map.get(yWord).terminal_transition;\n\t\t\t\n\t\t\t//count the total number of Nyo(y)\n\t\t\tint totalStateTransitionCount=0;\n\t\t\tfor(String nextY:stateTransitionMap.keySet()){\n\t\t\t\ttotalStateTransitionCount+=stateTransitionMap.get(nextY).count;\n\t\t\t}\n\t\t\t\n\t\t\tfor(String nextY:stateTransitionMap.keySet()){\n\t\t\t\tstateTransitionMap.get(nextY).prob=(stateTransitionMap.get(nextY).count*1.0)/totalStateTransitionCount;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//count the total number of Nyo(x,y)\n\t\t\tint totalTerminalTransitionCount=0,unknown_count=0;\n\t\t\tfor(String xWord:terminalTransitionMap.keySet()){\n\t\t\t\ttotalTerminalTransitionCount+=terminalTransitionMap.get(xWord).count;\n\t\t\t\tif(unknown_set.contains(xWord)){\n\t\t\t\t\tunknown_count++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\ttotalTerminalTransitionCount+=unknown_count;\n\t\t\tterminalTransitionMap.put(unknown_word,new DataUnit(unknown_count,0.0));\n\t\t\t\n\t\t\tfor(String xWord:terminalTransitionMap.keySet()){\n\t\t\t\tterminalTransitionMap.get(xWord).prob=(terminalTransitionMap.get(xWord).count*1.0)/(totalTerminalTransitionCount);\n\t\t\t}\t\n\t\t}\n\t}", "@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(x,y)));\r\n\t\t\t\tassertTrue(v2.equals(v.add(v).add(v).add(v)));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Vector<RationaleStatus> updateStatus() {\r\n \t\tAlternativeInferences inf = new AlternativeInferences();\r\n \t\tVector<RationaleStatus> newStat = inf.updateAlternative(this);\r\n \t\treturn newStat;\r\n \t}", "private Map<State, State> equivalentStates() {\n\t\tMap<State, State> prevEcc = new HashMap<State, State>();\n\t\tMap<State, State> ecc = new HashMap<State, State>();\n\t\t\n\t\t/*\n\t\t * We will represent each equivalence classes with a representative member and\n\t\t * use a dictionary to map each state to this representative.\n\t\t * \n\t\t * First we create two equivalence classes, put all the accepting states in the\n\t\t * first and all the non accepting states in the second.\n\t\t */\n\n\t\tif (!this.acceptingStates.isEmpty()) {\n\t\t\tState rep = this.acceptingStates.iterator().next();\n\t\t\tfor (State state : this.acceptingStates) {\n\t\t\t\tecc.put(state, rep);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSet<State> nonAcceptingStates = new HashSet<State>(this.states);\n\t\tnonAcceptingStates.removeAll(this.acceptingStates);\n\t\t\n\t\tif (!nonAcceptingStates.isEmpty()) {\n\t\t\tState rep = nonAcceptingStates.iterator().next();\n\t\t\tfor (State state : nonAcceptingStates) {\n\t\t\t\tecc.put(state, rep);\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * The invariant for the following loop is:\n\t\t\t * \n\t\t\t * 1. for any s -> r association in ecc, s is equivalent to r in prevEcc, 2. for\n\t\t\t * any input symbol c, the destination of the transition from s on c is\n\t\t\t * equivalent (in prevEcc) to the destiation of the transition from r to c, 3.\n\t\t\t * for any two values r1, r2 in ecc, they are not equivalent to each other in\n\t\t\t * prevEcc, 4. all the equivalence classes in prevEcc have a representative in\n\t\t\t * ecc.\n\t\t\t * \n\t\t\t */\n\t\t\t\n\t\t}\n\t\twhile (!prevEcc.equals(ecc)) {\n\t\t\t\n\t\t\tprevEcc = ecc;\n\t\t\t\n\t\t\tecc = new HashMap<State, State>();\n\n\t\t\t/*\n\t\t\t * To establish the invariant we will set ecc with the associations of the form\n\t\t\t * \n\t\t\t * r -> r where r is a representative from prevEcc.\n\t\t\t * \n\t\t\t * This will initially satisfy the invariant because our action establishes\n\t\t\t * condition (4) and conditions (1) and (2) and (3) are correct by induction\n\t\t\t * from the validity of prevEcc.\"\n\t\t\t */\n\t\t\tfor (State state : prevEcc.values()) {\n\t\t\t\tecc.put(state, state);\n\t\t\t}\n\t\t\tfor (State state : this.states) {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * For each state s, we look in ecc for a rep r that is equivalent to s in\n\t\t\t\t * prevEcc (that is, s's rep in prevEcc is r and for every input they transition\n\t\t\t\t * to the same equivalence class in prevEcc) and add s to ecc with the same\n\t\t\t\t * equivalence rep. If no state is equivalent to s, we add s to ecc as its own\n\t\t\t\t * rep.\n\t\t\t\t */\n\n\t\t\t\tIterator<State> p = ecc.keySet().iterator();\n\t\t\t\tState rep = null;\n\t\t\t\tboolean equivalent = false;\n\t\t\t\twhile (p.hasNext() && !equivalent) {\n\t\t\t\t\trep = (State) p.next();\n\t\t\t\t\tequivalent = this.equivalentIn(prevEcc, state, rep);\n\t\t\t\t}\n\t\t\t\tif (equivalent) {\n\t\t\t\t\tecc.put(state, rep);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tecc.put(state, state);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ecc;\n\t\t\n\t}", "private void ensureDistances() {\n if (getDistanceEnd() > distances.length) {\n int newLength = distances.length * 4;\n double[] newDistances = new double[newLength];\n System.arraycopy(distances, 0, newDistances, 0, distances.length);\n Arrays.fill(newDistances, distances.length, newLength, -1);\n distances = newDistances;\n }\n }", "private void tstNMAssociationInverse() {\n\t\t// configure collection properties of Location and ClosingPeriod\n\t\t// to use TreeSet as collection implementing class\n\t\t((TypePropertyCollection) (new Location()).getProperty(\"closedons\").getType())\n\t\t\t\t.setCollectionClass(TreeSet.class);\n\t\t((TypePropertyCollection) (new ClosingPeriod()).getProperty(\"locations\").getType())\n\t\t\t\t.setCollectionClass(TreeSet.class);\n\t\t// set up two locations and closing periods\n\t\tClosingPeriod cp1 = new ClosingPeriod(\"\\\"20050101\\\" \\\"1\\\"\");\n\t\tClosingPeriod cp2 = new ClosingPeriod(\"\\\"20050201\\\" \\\"2\\\"\");\n\t\tLocation locA = new Location(\"\\\"A\\\"\");\n\t\tLocation locB = new Location(\"\\\"B\\\"\");\n\n\t\t// at the beginning all four collection properties are\n\t\t// undefined (null)\n\t\tAssert.assertNull(locA.getClosedons());\n\t\tAssert.assertNull(locB.getClosedons());\n\t\tAssert.assertNull(cp1.getLocations());\n\t\tAssert.assertNull(cp2.getLocations());\n\n\t\t// link locA with cp1\n\t\tlocA.addClosedon(cp1);\n\t\tAssert.assertEquals(1, locA.getClosedons().size());\n\t\tReadonlyListCollection<ClosingPeriod> cps = (ReadonlyListCollection<ClosingPeriod>) locA.getClosedons();\n\t\tAssert.assertSame(cp1, cps.get(0));\n\t\tAssert.assertNull(locB.getClosedons());\n\t\tReadonlyListCollection<Location> locs = (ReadonlyListCollection<Location>) cp1.getLocations();\n\t\tAssert.assertSame(locA, locs.get(0));\n\t\tAssert.assertEquals(1, cp1.getLocations().size());\n\t\tAssert.assertNull(cp2.getLocations());\n\n\t\t// link locA with cp2\n\t\tlocA.addClosedon(cp2);\n\t\tAssert.assertEquals(2, locA.getClosedons().size());\n\t\tcps = (ReadonlyListCollection<ClosingPeriod>) locA.getClosedons();\n\t\tAssert.assertSame(cp1, cps.get(0));\n\t\tAssert.assertSame(cp2, cps.get(1));\n\t\tAssert.assertNull(locB.getClosedons());\n\t\tAssert.assertEquals(1, cp1.getLocations().size());\n\t\tlocs = (ReadonlyListCollection<Location>) cp1.getLocations();\n\t\tAssert.assertSame(locA, locs.get(0));\n\t\tAssert.assertEquals(1, cp2.getLocations().size());\n\t\tlocs = (ReadonlyListCollection<Location>) cp2.getLocations();\n\t\tAssert.assertSame(locA, locs.get(0));\n\n\t\t// link locB with cp1\n\t\tlocB.addClosedon(cp1);\n\t\tAssert.assertEquals(2, locA.getClosedons().size());\n\t\tcps = (ReadonlyListCollection<ClosingPeriod>) locA.getClosedons();\n\t\tAssert.assertSame(cp1, cps.get(0));\n\t\tAssert.assertSame(cp2, cps.get(1));\n\t\tAssert.assertEquals(1, locB.getClosedons().size());\n\t\tcps = (ReadonlyListCollection<ClosingPeriod>) locB.getClosedons();\n\t\tAssert.assertSame(cp1, cps.get(0));\n\t\tAssert.assertEquals(2, cp1.getLocations().size());\n\t\tlocs = (ReadonlyListCollection<Location>) cp1.getLocations();\n\t\tAssert.assertSame(locA, locs.get(0));\n\t\tAssert.assertSame(locB, locs.get(1));\n\t\tAssert.assertEquals(1, cp2.getLocations().size());\n\t\tlocs = (ReadonlyListCollection<Location>) cp2.getLocations();\n\t\tAssert.assertSame(locA, locs.get(0));\n\n\t\t// link locB with cp2\n\t\tlocB.addClosedon(cp2);\n\t\tAssert.assertEquals(2, locA.getClosedons().size());\n\t\tcps = (ReadonlyListCollection<ClosingPeriod>) locA.getClosedons();\n\t\tAssert.assertSame(cp1, cps.get(0));\n\t\tAssert.assertSame(cp2, cps.get(1));\n\t\tAssert.assertEquals(2, locB.getClosedons().size());\n\t\tcps = (ReadonlyListCollection<ClosingPeriod>) locB.getClosedons();\n\t\tAssert.assertSame(cp1, cps.get(0));\n\t\tAssert.assertSame(cp2, cps.get(1));\n\t\tAssert.assertEquals(2, cp1.getLocations().size());\n\t\tlocs = (ReadonlyListCollection<Location>) cp1.getLocations();\n\t\tAssert.assertSame(locA, locs.get(0));\n\t\tAssert.assertSame(locB, locs.get(1));\n\t\tAssert.assertEquals(2, cp2.getLocations().size());\n\t\tlocs = (ReadonlyListCollection<Location>) cp2.getLocations();\n\t\tAssert.assertSame(locA, locs.get(0));\n\t\tAssert.assertSame(locB, locs.get(1));\n\n\t\tAssert.assertEquals(2, cp1.getLocations().size());\n\t\ttry {\n\t\t\tcp1.addLocation(locA);\n\t\t\tAssert.fail(\"expected ValidationInstanceAssocTwiceException\");\n\t\t} catch (ValidationInstanceAssocTwiceException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t\tAssert.assertEquals(2, cp1.getLocations().size());\n\t\ttry {\n\t\t\tcp1.addLocation(locB);\n\t\t\tAssert.fail(\"expected ValidationInstanceAssocTwiceException\");\n\t\t} catch (ValidationInstanceAssocTwiceException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t\tAssert.assertEquals(2, cp1.getLocations().size());\n\t\tAssert.assertEquals(2, locB.getClosedons().size());\n\t\ttry {\n\t\t\tlocB.addClosedon(cp1);\n\t\t\tAssert.fail(\"expected ValidationInstanceAssocTwiceException\");\n\t\t} catch (ValidationInstanceAssocTwiceException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t\tAssert.assertEquals(2, locB.getClosedons().size());\n\t\ttry {\n\t\t\tlocB.addClosedon(cp2);\n\t\t\tAssert.fail(\"expected ValidationInstanceAssocTwiceException\");\n\t\t} catch (ValidationInstanceAssocTwiceException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t\tAssert.assertEquals(2, locB.getClosedons().size());\n\t}", "@SuppressWarnings(\"unchecked\")\n private void initAdjList()\n {\n adjList = new ArrayList[v];\n\n for(int i = 0; i < v; i++)\n {\n adjList[i] = new ArrayList<>();\n }\n }", "public void calcFragility() {\n System.out.println(\"Calculating . . . \");\n\n // getting all exposures\n HashMap<String, HashMap<String, Double>> exposures = gfmBroker.getExposures();\n\n // data structure to store fragility calculations/responses\n responses = new HashMap<>();\n\n double failure=0.0;\n\n /*\n ******** Calculate fragility here ********\n */\n for (JsonNode n : assets) {\n\n String id = n.get(\"id\").asText();\n Double dv = exposures.get(\"wind\").get(id);\n\n // store responses\n responses.put(id, failure);\n }\n }", "public void fillVector(){\n int n = min.length;\n for (int i = 0; i < n; i++) {\n this.x[i] = min.x[i] + (max.x[i] - min.x[i])*rn.uniformDeviate();\n }\n }", "public Relation<ModelGraphVertex, ModelGraphVertex> fillRelation() {\n\t\tRelation<ModelGraphVertex, ModelGraphVertex> r = new Relation<ModelGraphVertex, ModelGraphVertex>();\n\n\t\tIterator<JComboBox> it = cmbList.iterator();\n\t\tint position = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tJComboBox cmb = it.next();\n\t\t\tif (cmb.getSelectedIndex() > 0) {\n\t\t\t\tint index = cmb.getSelectedIndex() - 1; // the first item in the\n\t\t\t\t// combobox is no\n\t\t\t\t// transition, but the\n\t\t\t\t// item \"no equivalent\"\n\t\t\t\tModelGraphVertex tProv = provTransitions.get(position);\n\t\t\t\tModelGraphVertex tReq = reqTransitions.get(index);\n\t\t\t\tTuple<ModelGraphVertex, ModelGraphVertex> tuple = new Tuple<ModelGraphVertex, ModelGraphVertex>(\n\t\t\t\t\t\ttProv, tReq);\n\t\t\t\tr.addR(tuple);\n\t\t\t}\n\t\t\tposition++;\n\t\t}\n\t\tposition = 0;\n\t\tit = cmbList.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tJComboBox cmb = it.next();\n\t\t\tif (cmb.getSelectedIndex() > 0) {\n\t\t\t\tint index = cmb.getSelectedIndex() - 1; // the first item in the\n\t\t\t\t// combobox is no\n\t\t\t\t// transition, but the\n\t\t\t\t// item \"no equivalent\"\n\t\t\t\tModelGraphVertex tProv = provTransitions.get(position);\n\t\t\t\tModelGraphVertex tReq = reqTransitions.get(index);\n\t\t\t\tTuple<ModelGraphVertex, ModelGraphVertex> tuple = new Tuple<ModelGraphVertex, ModelGraphVertex>(\n\t\t\t\t\t\ttReq, tProv);\n\t\t\t\tr.addR(tuple);\n\t\t\t}\n\t\t\tposition++;\n\t\t}\n\t\treturn r;\n\t}", "private void addErrors(GraphObs graphPlusObser, GraphGenSettings graphSettings)\n {\n Random rand = new Random();\n Vertex startSync = null;\n Graph gr = graphPlusObser.graph; // Easy Graph reference\n \n if(graphSettings.timeSyncT0)\n {\n startSync = new Vertex(Integer.MAX_VALUE,\"S\");\n gr.addVertex(startSync);\n // New Vertex added but no bounds (bec. no edges -> those need init)\n }\n \n int observations = graphSettings.numObservations;\n int obsLength = graphSettings.observationLength;\n \n int trys = 200000; // tries remaining for with obsLength\n // Try to add observations of a certain length but not sure if its\n // possible \n int currentLen; // length remaining\n ArrayList<Vertex[]> falsieSubs = new ArrayList(); // all Obs pairs\n \n if(graphSettings.timeSyncT0) // going to add an edge lateron\n obsLength--;\n while(observations > 0 && trys > 0)\n {\n currentLen = obsLength;\n \n // Do not care about fault so some random edge is good\n DEdge randomEdge = gr.randomEdge();\n Vertex end = randomEdge.getEnd();\n Vertex start = randomEdge.getStart();\n LinkedList<DEdge> path = new LinkedList();\n path.add(randomEdge);\n currentLen--;\n \n // First search forward for this Observation-path\n while(currentLen > 0)\n {\n LinkedList<Vertex> possibilities = gr.adjacentNodes(end);\n if(possibilities == null || possibilities.size() < 1)\n break;\n Vertex newEnd = possibilities.get(rand.nextInt(possibilities.size()));\n DEdge de = gr.getDirectEdge(end, newEnd);\n path.add(de);\n end = newEnd;\n currentLen--;\n }\n // Then look for an earlier starting position for the Obs-path\n while(currentLen > 0)\n {\n LinkedList<Vertex> possibilities = gr.incomingNodes(start);\n if(possibilities == null || possibilities.size() < 1)\n break;\n Vertex newStart = possibilities.get(rand.nextInt(possibilities.size()));\n DEdge de = gr.getDirectEdge(newStart, start);\n path.push(de);\n start = newStart;\n currentLen--;\n }\n \n // Usable Observation pair (right length is all we need here)\n if(currentLen < 1)\n {\n observations--;\n Vertex[] obs = {start, end};\n falsieSubs.add(obs);\n }\n trys--;\n }\n // Should there be more observations ? -> try using a smaller length\n if(observations > 0)\n {\n graphSettings.observationLength--;\n addErrors(graphPlusObser, graphSettings); \n // Recursive call!, might cause Memory probs. \n // Tries again with smaller observations\n }\n // Add T0 edges if needed !! & Replace the starting vertices\n if(graphSettings.timeSyncT0)\n {\n for(Vertex[] obs : falsieSubs)\n {\n // See if the edge exists, if not add it!\n if(!gr.directReach(startSync, obs[0]))\n {\n // Add that edge!\n gr.addEdge(startSync, obs[0], 0, 0);\n }\n obs[0] = startSync; // and replace the starting Vertex with T0\n }\n }\n \n // Now initialize these Vertex-pairs as true observations (with errors!)\n graphPlusObser.observations = new LinkedList();\n \n for(Vertex[] obs : falsieSubs)\n {\n GraphPath startPath = new GraphPath(obs[0]);\n ArrayList<int[]> boundsFound = pathCalc(startPath, 0, 0, obs[1], \n gr);\n int[] combinedBound = combinePaths(boundsFound);\n \n // The error addition\n combinedBound[0] += 500;\n combinedBound[1] += 500;\n \n Observation fullObs = new Observation(obs[0],obs[1],combinedBound[0]\n , combinedBound[1]);\n graphPlusObser.observations.add(fullObs);\n }\n }", "public ArrayList<Integer> checkDeterminism() {\n\t\t\tArrayList<Integer> indexOfNonDeterministicPartners = new ArrayList<Integer>();\n\t\t\tint index = 0;\n\t\t\tfor (Transition transition : transitions) {\n\t\t\t\t// If there is an empty, empty -> x transition, there can be no\n\t\t\t\t// other transitions\n\t\t\t\t// debatable if empty, empty-> x should be allowed?\n\t\t\t\tif (isDoNothingTransition()) {\n\t\t\t\t\tindexOfNonDeterministicPartners.add(index);\n\t\t\t\t\t// conflict with all (if any exist), don't bother checking\n\t\t\t\t\t// other conditions\n\n\t\t\t\t\t// Check combinations with empty\n\t\t\t\t} else if ((transition.pop == DPDA.emptyChar && transition.read == this.read)\n\t\t\t\t\t\t|| (transition.pop == transition.pop && transition.read == null)\n\t\t\t\t\t\t|| (pop == DPDA.emptyChar && transition.read == this.read)\n\t\t\t\t\t\t|| (transition.pop == transition.pop && read == null)) {\n\t\t\t\t\tindexOfNonDeterministicPartners.add(index);\n\n\t\t\t\t\t// Check identical combinations\n\t\t\t\t} else if (transition.pop == pop && transition.read == read) {\n\t\t\t\t\tindexOfNonDeterministicPartners.add(index);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn indexOfNonDeterministicPartners;\n\t\t}", "public void initializeDemandVector() {\r\n\t\tdouble marketSplit = Parameters.marketSplit / 100.0;\r\n\t\tfor (int i = 0; i < demandVector.length; i++) {\r\n\t\t\t\r\n\t\t\tdouble r = RandomHelper.nextDoubleFromTo(0, 1);\r\n\t\t\t\r\n\t\t\tdemandVector[i] = r < marketSplit ? 1 : 0;\r\n\t\t}\r\n\t}", "public void adaptProductVector() {\t\t\r\n\t\tHashMap<Integer, Integer> neighboursAdaption = new HashMap<Integer, Integer>();\r\n\t\t\r\n\t\tdouble threshold = Parameters.adaptationThreshold / 100.0;\r\n\t\tint neighbours = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < Parameters.vectorSpaceSize; i++) {\r\n\t\t\tneighboursAdaption.put(i, 0);\r\n\t\t}\r\n\t\t\r\n\t\tfor (Object o: network.getAdjacent(this)) {\t\t\r\n\t\t\tif (o instanceof Customer) {\r\n\t\t\t\tCustomer c = (Customer)o;\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 0; i < Parameters.vectorSpaceSize; i++) {\r\n\t\t\t\t\tint count = neighboursAdaption.get(i);\r\n\t\t\t\t\tif (c.getDemandVector()[i] == 1) {\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tneighboursAdaption.put(i, count);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tneighbours++;\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < Parameters.vectorSpaceSize; i++) {\r\n\t\t\tif ((double)neighboursAdaption.get(i) / neighbours >= threshold ) {\r\n\t\t\t\tdemandVector[i] = 1;\r\n\t\t\t}\r\n\t\t}\t\t \r\n\t}", "public List<OntologyChange> createChanges() {\n\n var to = frameUpdate.getToFrame();\n var toSubject = to.getSubject();\n Frame serverFrame = getFrameForSubject(toSubject);\n if(serverFrame.equals(to)) {\n // Nothing to do\n return Collections.emptyList();\n }\n\n\n // Get the axioms that were consumed in the translation\n var fromAxioms = getAxiomsForFrame(frameUpdate.getFromFrame(), Mode.MAXIMAL);\n\n var ontologyIds = projectOntologiesIndex.getOntologyIds()\n .collect(toList());\n\n var toAxioms = getAxiomsForFrame(frameUpdate.getToFrame(), Mode.MINIMAL);\n\n\n var axiom2OntologyMap = LinkedHashMultimap.<OWLAxiom, OWLOntologyID>create();\n\n // Generate a map of existing axioms so we can ensure they stay in the correct place\n for(OWLOntologyID ontologyId : ontologyIds) {\n for(OWLAxiom fromAxiom : fromAxioms) {\n if(isContainedInOntology(fromAxiom, ontologyId)) {\n axiom2OntologyMap.put(fromAxiom, ontologyId);\n }\n }\n }\n\n\n var mutatedOntologies = Sets.<OWLOntologyID>newLinkedHashSet();\n List<OntologyChange> changes = Lists.newArrayList();\n for(OWLAxiom fromAxiom : fromAxioms) {\n for(OWLOntologyID ontologyId : ontologyIds) {\n if(isContainedInOntology(fromAxiom, ontologyId) && !toAxioms.contains(fromAxiom)) {\n mutatedOntologies.add(ontologyId);\n }\n // We need to add this here in case an axiom containing fresh entities has been added and then\n // removed (caused by a re-edit). The fresh entities will get \"grounded\" and then the axiom added\n // hence, ontology.contains() won't work.\n changes.add(of(ontologyId, fromAxiom));\n }\n }\n\n\n for(OWLAxiom toAxiom : toAxioms) {\n Collection<OWLOntologyID> existingLocations = axiom2OntologyMap.get(toAxiom);\n if(existingLocations.isEmpty()) {\n // Fresh axiom to be placed somewhere\n if(mutatedOntologies.size() == 1) {\n // Assume edit i.e. replacement of axiom in the same ontology.\n changes.add(AddAxiomChange.of(mutatedOntologies.iterator()\n .next(), toAxiom));\n }\n else {\n // Multiple ontologies were affected. We now need to place the fresh axiom in the appropriate\n // ontology\n OWLOntologyID freshAxiomOntology = getFreshAxiomOntology(fromAxioms, ontologyIds);\n changes.add(AddAxiomChange.of(freshAxiomOntology, toAxiom));\n }\n }\n else {\n // Ensure it is still in there\n for(OWLOntologyID ontId : existingLocations) {\n changes.add(AddAxiomChange.of(ontId, toAxiom));\n }\n }\n }\n return changes;\n }", "private void clean() {\n Iterable<Long> v = vertices();\n Iterator<Long> iter = v.iterator();\n while (iter.hasNext()) {\n Long n = iter.next();\n if (world.get(n).adj.size() == 0) {\n iter.remove();\n }\n }\n }", "private void graduallyChange() {\r\n\t\t\tif(governmentLegitimacy> 0.2) governmentLegitimacy -= 0.01;\r\n\t\t}", "default Gwei[][] get_crosslink_deltas(BeaconState state) {\n Gwei[] rewards = new Gwei[state.getValidatorRegistry().size().getIntValue()];\n Gwei[] penalties = new Gwei[state.getValidatorRegistry().size().getIntValue()];\n Arrays.fill(rewards, Gwei.ZERO);\n Arrays.fill(penalties, Gwei.ZERO);\n\n EpochNumber epoch = get_previous_epoch(state);\n for (UInt64 offset : UInt64s.iterate(UInt64.ZERO, get_epoch_committee_count(state, epoch))) {\n ShardNumber shard = get_epoch_start_shard(state, epoch)\n .plusModulo(offset, getConstants().getShardCount());\n List<ValidatorIndex> crosslink_committee = get_crosslink_committee(state, epoch, shard);\n Pair<Crosslink, List<ValidatorIndex>> winner =\n get_winning_crosslink_and_attesting_indices(state, epoch, shard);\n List<ValidatorIndex> attesting_indices = winner.getValue1();\n Gwei attesting_balance = get_total_balance(state, attesting_indices);\n Gwei committee_balance = get_total_balance(state, crosslink_committee);\n for (ValidatorIndex index : crosslink_committee) {\n Gwei base_reward = get_base_reward(state, index);\n if (attesting_indices.contains(index)) {\n rewards[index.getIntValue()] = rewards[index.getIntValue()]\n .plus(base_reward.times(attesting_balance).dividedBy(committee_balance));\n } else {\n penalties[index.getIntValue()] = penalties[index.getIntValue()]\n .plus(base_reward);\n }\n }\n }\n\n return new Gwei[][] { rewards, penalties };\n }", "private void addVertexNonEdgeConstraint(){\n for (int i=0; i < g.nonEdges.size(); i++){\n Edge edge = g.nonEdges.get(i);\n int vertex1 = edge.from;\n int vertex2 = edge.to;\n for (int pCount =0; pCount < positionCount-1; pCount++){\n ArrayList<Integer> values = new ArrayList<>();\n values.add((variables[vertex1][pCount] * -1));\n values.add((variables[vertex2][pCount+1] * -1));\n clauses.add(values);\n values = new ArrayList<>();\n values.add((variables[vertex1][pCount+1] * -1));\n values.add((variables[vertex2][pCount] * -1));\n clauses.add(values);\n }\n\n }\n }", "public void gotOld(){\n\n for (int i = 0; i < residents.size(); i ++){\n\n residents.get(i).gotOld();\n }\n }", "private static void createSlideTransitions() {\n\t\tif (slideList.size() < SLIDES_REGIONS_LIMIT) {\n\t\t\tint length = (slideList.size() / 2) - 1;\n\t\t\t\n\t\t\tif (slideList.size() % 2 == 0) {\n\t\t\t\tlength++;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < length; i++) {\n\t\t\t\ttransitionList.add(slideList.get(i));\n\t\t\t\ttransitionList.add(slideList.get(length - i - 1));\n\t\t\t}\n\t\t} else {\n\t\t\tint length = slideList.size() / NUMBER_REGIONS / 2 - 1;\n\t\t\t\n\t\t\tif (slideList.size() % 2 == 0) {\n\t\t\t\tlength++;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < NUMBER_REGIONS; i++) {\n\t\t\t\tfor (int j = 0; j < length; j++) {\n\t\t\t\t\ttransitionList.add(slideList.get(j + i * length));\n\t\t\t\t\t//System.out.println(i * length - j - 1);\n\t\t\t\t\ttransitionList.add(slideList.get((i + 1) * length - j - 1));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (slideList.size() % 2 != 0) {\n\t\t\t\ttransitionList.add(slideList.get(slideList.size() - 1));\n\t\t\t}\n\t\t}\n\t}", "public static final void getVanillas(final ChangeCategory[] dest, int destOff) {\r\n\t\t//return new ChangeCategory[]{Added, Removed, Attribute_Changes, Objects_Added, Objects_Removed}; \r\n\t\tdest[destOff++] = Added;\r\n\t\tdest[destOff++] = Removed;\r\n\t\tdest[destOff++] = Attribute_Changes;\r\n\t\tdest[destOff++] = Objects_Added;\r\n\t\tdest[destOff] = Objects_Removed;\r\n\t}", "private synchronized void initCircumstances() {\n if (circV == null) {\n\n // Calculate visit circumstances, which includes setup time.\n Function<Long, WorldCoords> coords = getObs()::getCoords;\n int size = Math.max(1, (int) (interval.getLength() / QUANTUM));\n circV = new TreeMap<Circumstance, Double[]>();\n for (Circumstance c: Circumstance.values()) {\n circV.put(c, new Double[size]);\n }\n TimingWindowSolver tws = new TimingWindowSolver(obs);\n ImprovedSkyCalc calc = new ImprovedSkyCalc(variant.getSchedule().getSite());\n for (int i = 0; i < size; i++) {\n long t = interval.getStart() + QUANTUM * i;\n calc.calculate(coords.apply(t), new Date(t), true);\n for (Circumstance c: Circumstance.values()) {\n Double[] vals = circV.get(c);\n switch (c) {\n case AIRMASS: vals[i] = calc.getAirmass(); break;\n case AZIMUTH: vals[i] = calc.getAzimuth(); break;\n case ELEVATION: vals[i] = calc.getAltitude(); break;\n case LUNAR_DISTANCE: vals[i] = calc.getLunarDistance(); break;\n case PARALLACTIC_ANGLE: vals[i] = calc.getParallacticAngle(); break;\n case TOTAL_SKY_BRIGHTNESS: vals[i] = calc.getTotalSkyBrightness(); break;\n case HOUR_ANGLE: vals[i] = calc.getHourAngle(); break;\n case TIMING_WINDOW_OPEN: vals[i] = tws.includes(t) ? 1. : 0.; break;\n default: throw new Error(\"Missing switch case for \" + c);\n }\n }\n }\n\n // Now calculate circumstances for science.\n if (getSetupType() != SetupType.NONE) {\n\n circS = new TreeMap<Circumstance, Double[]>();\n final long setupTime = getSetupTime();\n\n for (Circumstance c: Circumstance.values()) {\n\n Double[] valsV = circV.get(c);\n Double[] valsS = new Double[valsV.length];\n\n // We want to copy the range n ... length where n is the first\n // quantum that's not during setup time, or the last sample, so\n // we guarantee at least one.\n int n = Math.min((int) (setupTime / QUANTUM), valsV.length - 1);\n System.arraycopy(valsV, n, valsS, n, valsV.length - n);\n\n circS.put(c, valsS);\n\n }\n\n } else {\n\n // Science and visit circumstances are the same if there is no setup.\n circS = circV;\n\n }\n\n }\n }", "private void lorentzInvariant() {\n if (world.getEvents().isEmpty()) {\n System.out.println(\"You don't have any events to get the Lorentz Invariant of!\");\n } else {\n Event event1 = selectEvent(\"What is the first event you want to compare?\");\n Event event2 = selectEvent(\"What is the second event you want to compare?\");\n double invariant = event1.lorentzInvariant(event2);\n String out = \"The Lorentz Invariant of \" + event1.getName() + \" and \" + event2.getName() + \" is \";\n System.out.println(out + invariant);\n String separation;\n if (Math.abs(invariant) < ALLOWED_DELTA) {\n separation = \"null\";\n } else if (invariant > 0) {\n separation = \"spacelike\";\n } else {\n separation = \"timelike\";\n }\n System.out.println(\"This means that the two events are \" + separation + \" separated.\");\n }\n }", "private void transformVariatesToView() {\n\n //GCP-4378 NEW SCHEMA CHANGES - indexoutofboundsexception\n if (factorsDtoTrial != null && factorsDtoTrial.size() > 0) {\n // transform Variate list to Constants\n List<Constant> constantsData = new ArrayList<Constant>();\n Integer numeroDeInstancias = factorsDtoTrial.get(0).getSizeLevels();\n for (Variate variate : variatesDtoConstants) {\n for (int i = 0; i < numeroDeInstancias; i++) {\n ibfb.domain.core.Constant constant = ConverterDTOtoDomain.getConstant(variate);\n // TODO ajustar estructura para que se recupere los datos tipo numero sin el .0\n // if(variate.getDtype().equals(\"N\")){\n // constant.setValue(DecimalUtils.getValueAsString((Double)variate.getDataObject(i)));\n // }else{\n // constant.setValue(variate.getDataObject(i));\n constant.setValue(DecimalUtils.getValueAsString(variate.getDataObject(i)));\n // }\n constant.setInstance(i + 1);\n // constant.setOunitid(variate.getOunitidObject(i));\n constant.setVariateId(variate.getVariatid());\n constant.setStudyId(variate.getStudyid());\n constants.add(constant);\n }\n }\n }\n\n Comparator<Constant> constantComparator = new Comparator<Constant>() {\n\n @Override\n public int compare(Constant o1, Constant o2) {\n return o1.getInstance().compareTo(o2.getInstance());\n }\n };\n\n Collections.sort(constants, constantComparator);\n\n // transform Variate list to Variate(from view)\n for (Variate variate : variatesDTO) {\n ibfb.domain.core.Variate variateToAdd = ConverterDTOtoDomain.getVariate(variate);\n variates.add(variateToAdd);\n }\n\n\n workbookStudy.setConstants(constants);\n workbookStudy.setConstantsData(constants);\n\n workbookStudy.setVariates(variates);\n workbookStudy.setVariatesData(variates);\n }", "@Test\n public void testVerticalDisplacementTo() {\n System.out.println(\"Testing verticleDisplacementTo() for a range of different GPS coordinates\");\n double distancesExpected[] = {\n 555.998,\n -555.998,\n -555.998,\n 555.998,\n\t\t\t72.266,\n\t\t\t-72.266,\n\t\t\t-72.266,\n\t\t\t72.266\n };\n\t\t\n for (int i = 0; i < this.testCoordinates.length; i++) {\n double expResult = distancesExpected[i];\n double result = this.origin.verticalDisplacementTo(this.testCoordinates[i]);\n\t\t\tSystem.out.println(\"Expected: \" + expResult + \", Actual: \" + result);\n assertEquals(expResult, result, 0.1);\n }\n }", "public void updateTransitionMap(){\n\t\tfor(String yWord:transition_map.keySet()){\n\t\t\tHashMap<String,DataUnit> stateTransitionMap=transition_map.get(yWord).state_transition;\n\t\t\t\n\t\t\t//count the total number of Nyo(y)\n\t\t\tint totalStateTransitionCount=0;\n\t\t\tfor(String nextY:stateTransitionMap.keySet()){\n\t\t\t\ttotalStateTransitionCount+=stateTransitionMap.get(nextY).count;\n\t\t\t}\n\t\t\t\n\t\t\tfor(String nextY:stateTransitionMap.keySet()){\n\t\t\t\tstateTransitionMap.get(nextY).prob=(stateTransitionMap.get(nextY).count*1.0)/totalStateTransitionCount;\n\t\t\t}\n\t\t\t\n\t\t\t//count the total number of Nyo(x,y)\n\t\t\tHashMap<String,DataUnit> terminalTransitionMap=transition_map.get(yWord).terminal_transition;\n\t\t\t\n\t\t\tint totalTerminalTransitionCount=0;\n\t\t\tint typeCount=0;\n\t\t\tfor(String xWord:terminalTransitionMap.keySet()){\n\t\t\t\ttotalTerminalTransitionCount+=terminalTransitionMap.get(xWord).count;\n\t\t\t\ttypeCount++;\n\t\t\t}\n\t\t\ttypeCount++;\n\t\t\tfor(String xWord:terminalTransitionMap.keySet()){\n\t\t\t\tterminalTransitionMap.get(xWord).prob=(terminalTransitionMap.get(xWord).count+1.0)/(totalTerminalTransitionCount+typeCount);\n\t\t\t}\n\t\t\t\n\t\t\tterminalTransitionMap.put(unknown_word,new DataUnit(1,1.0/(totalTerminalTransitionCount+typeCount)));\n\t\t}\n\t}", "public void printArrivalDiscrepancies() {\n// violations.stream()\n// .filter((ValidationError t) -> t.getType() == ValidationError.ViolationType.REENTRY)\n// .forEach(e -> {\n// System.out.println(e.getEmployee());\n// });\n printEmployeesForViolationType(ValidationError.ViolationType.REENTRY);\n }", "public void trimTransitionsArray() {\n if (numTransitions < transitionsArray.length) {\n final Transition[] newArray = new Transition[numTransitions];\n System.arraycopy(transitionsArray, 0, newArray, 0, numTransitions);\n transitionsArray = newArray;\n }\n }", "List<State> adj() {\n\t\t\tList<State> adj = new ArrayList<State>();\n\t\t\tList<Edge> edgeList = edgeMap.get(city);\n\n\t\t\tfor (Edge e : edgeList) {\n\t\t\t\tboolean isPlane = e.cost == 0;\n\t\t\t\tif (ticketUsed == true && isPlane) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tint toCity = e.to;\n\t\t\t\tState s = new State(toCity, isPlane, dist + e.cost);\n\n\t\t\t\tadj.add(s);\n\t\t\t}\n\n\t\t\treturn adj;\n\t\t}", "public void diffuse() {\r\n\t\tdouble[][][] before = quantity;\r\n\t\t/* Index of the box in positive (negative) .. direction, taking account of the boundary conditions */\r\n\t\tint xAbove, xBelow, yAbove, yBelow, zAbove, zBelow;\r\n\t\t/* Quantity of chemical leaving the box in the positive (negative) .. direction */\r\n\t\tdouble qxAbove, qxBelow, qyAbove, qyBelow, qzAbove, qzBelow;\r\n\t\t/* Flags for leakiness at borders */\r\n\t\tboolean leaky[] = sim.getLeaky();\r\n\t\tdouble leakyRate[] = sim.getLeakyRate();\r\n\t\t/*\r\n\t\t * Flux of molecules crossing in the positive x-direction (Fick's law)\r\n\t\t * \tJ = -D(dC/dx) = -D*(C(x+dx)-C(x))/dx = -D*(N(x+dx)-N(x))/((dx)^2*dy*dz) molecules/(micron)^2/sec\r\n\t\t * Number of molecules transferred in the positive x-direction over dt\r\n\t\t * \txAbove = J*(dy*dz)*dt = -((D*dt)/(dx)^2)*(N(x+dx)-N(x)) = -kX*(N(x+dx)-N(x))\r\n\t\t * where kX = (D*dt)/(dx)^2 is a dimensionless constant\r\n\t\t */\r\n\t\tdouble normX = sim.getDt()/Math.pow(box[0],2);\r\n\t\tdouble normY = sim.getDt()/Math.pow(box[1],2);\r\n\t\tdouble normZ = sim.getDt()/Math.pow(box[2],2);\r\n\t\tdouble kX = diffusivity*normX;\r\n\t\tdouble kY = diffusivity*normY;\r\n\t\tdouble kZ = diffusivity*normZ;\r\n\t\tfor(int i=0;i<boxes[0];i++)\r\n\t\t\tfor(int j=0;j<boxes[1];j++)\r\n\t\t\t\tfor(int k=0;k<boxes[2];k++) {\t\r\n\t\t\t\t\t/* Is this box the last box? \r\n\t\t\t\t\t * \tIf so, is the boundary solid? If so, there is no box above, else, the box 'above' is the first box\r\n\t\t\t\t\t * \tElse, the box above is the next box */\r\n\t\t\t\t\txAbove = (i == boxes[0]-1 ? (sim.getSolid()[0] ? -1 : 0) : i+1);\r\n\t\t\t\t\txBelow = (i == 0 ? (sim.getSolid()[0] ? -1 : boxes[0]-1) : i-1);\r\n\t\t\t\t\tyAbove = (j == boxes[1]-1 ? (sim.getSolid()[1] ? -1 : 0) : j+1);\r\n\t\t\t\t\tyBelow = (j == 0 ? (sim.getSolid()[1] ? -1 : boxes[1]-1) : j-1);\r\n\t\t\t\t\tzAbove = (k == boxes[2]-1 ? (sim.getSolid()[2] ? -1 : 0) : k+1);\r\n\t\t\t\t\tzBelow = (k == 0 ? (sim.getSolid()[2] ? -1 : boxes[2]-1) : k-1);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(xAbove != -1) {\r\n\t\t\t\t\t\t/* Calculate the quantity of chemical leaving the box in this direction */\r\n\t\t\t\t\t\tqxAbove = -kX*(before[xAbove][j][k]-before[i][j][k]);\r\n\t\t\t\t\t\t/* Add that quantity to the box above */ \r\n\t\t\t\t\t\tquantity[xAbove][j][k] += qxAbove;\r\n\t\t\t\t\t\t/* Remove it from this box */\r\n\t\t\t\t\t\tquantity[i][j][k] -= qxAbove;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (leaky[0]) {\r\n\t\t\t\t\t\t\t/* Calculate the quantity of chemical leaving the box in this direction (0 outside box if leaky)*/\r\n\t\t\t\t\t\t\tqxAbove = normX*leakyRate[0]*before[i][j][k];\r\n\t\t\t\t\t\t\t/* Remove it from this box */\r\n\t\t\t\t\t\t\tquantity[i][j][k] -= qxAbove;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(xBelow != -1) {\r\n\t\t\t\t\t\tqxBelow = -kX*(before[xBelow][j][k]-before[i][j][k]);\r\n\t\t\t\t\t\tquantity[xBelow][j][k] += qxBelow;\r\n\t\t\t\t\t\tquantity[i][j][k] -= qxBelow;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (leaky[1]) {\r\n\t\t\t\t\t\t\tqxBelow = normX*leakyRate[1]*before[i][j][k];\r\n\t\t\t\t\t\t\tquantity[i][j][k] -= qxBelow;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(yAbove != -1) {\r\n\t\t\t\t\t\tqyAbove = -kY*(before[i][yAbove][k]-before[i][j][k]);\r\n\t\t\t\t\t\tquantity[i][yAbove][k] += qyAbove;\r\n\t\t\t\t\t\tquantity[i][j][k] -= qyAbove;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (leaky[2]) {\r\n\t\t\t\t\t\t\tqyAbove = normY*leakyRate[2]*before[i][j][k];\r\n\t\t\t\t\t\t\tquantity[i][j][k] -= qyAbove;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(yBelow != -1) {\r\n\t\t\t\t\t\tqyBelow = -kY*(before[i][yBelow][k]-before[i][j][k]);\r\n\t\t\t\t\t\tquantity[i][yBelow][k] += qyBelow;\r\n\t\t\t\t\t\tquantity[i][j][k] -= qyBelow;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (leaky[3]) {\r\n\t\t\t\t\t\t\tqyBelow = normY*leakyRate[3]*before[i][j][k];\r\n\t\t\t\t\t\t\tquantity[i][j][k] -= qyBelow;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(zAbove != -1) {\r\n\t\t\t\t\t\tqzAbove = -kZ*(before[i][j][zAbove]-before[i][j][k]);\r\n\t\t\t\t\t\tquantity[i][j][zAbove] += qzAbove;\r\n\t\t\t\t\t\tquantity[i][j][k] -= qzAbove;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (leaky[4]) {\r\n\t\t\t\t\t\t\tqzAbove = normZ*leakyRate[4]*before[i][j][k];\r\n\t\t\t\t\t\t\tquantity[i][j][k] -= qzAbove;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(zBelow != -1) {\r\n\t\t\t\t\t\tqzBelow = -kZ*(before[i][j][zBelow]-before[i][j][k]);\r\n\t\t\t\t\t\tquantity[i][j][zBelow] += qzBelow;\r\n\t\t\t\t\t\tquantity[i][j][k] -= qzBelow;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (leaky[3]) {\r\n\t\t\t\t\t\t\tqzBelow = normZ*leakyRate[5]*before[i][j][k];\r\n\t\t\t\t\t\t\tquantity[i][j][k] -= qzBelow;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t}", "private void generateUpsAndDowns() {\n\t\t// rows are simulation at given time, columns paths\n\t\tupsAndDowns = new double[lastTime][numberOfSimulations];\n\t\tdouble threshold = convert();// if the simulated number is less than this, we have up\n\t\t// double for loop, time and simulations\n\t\tfor (int timeIndex = 0; timeIndex < lastTime; timeIndex++) {\n\t\t\tfor (int simulationIndex = 0; simulationIndex < numberOfSimulations; simulationIndex++) {\n\t\t\t\t// the way we convert the probability into a condition on the generated numbers\n\t\t\t\tif (randomGenerator.getNextInteger() < threshold) {\n\t\t\t\t\tupsAndDowns[timeIndex][simulationIndex] = increaseIfUp;\n\t\t\t\t} else {\n\t\t\t\t\tupsAndDowns[timeIndex][simulationIndex] = decreaseIfDown;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Vector<RationaleStatus> updateStatus()\r\n\t{\r\n\t\t//don't update status of the parent element!\r\n\t\tif ((this.name.compareTo(\"Tradeoffs\") == 0) ||\r\n\t\t\t\t(this.name.compareTo(\"Co-occurrences\") == 0))\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t//need to replace with real content!\r\n\t\tVector<RationaleStatus> newStat = new Vector<RationaleStatus>();\r\n\t\tTradeoffInferences inf = new TradeoffInferences();\r\n\t\tnewStat = inf.updateTradeoffStatus(this);\r\n\t\treturn newStat;\r\n\t\t\r\n\t}", "public NewTransitionRecord(){\r\n fromstate = 0;\r\n tostate = 0;\r\n rate = 0.0;\r\n }", "public EliminationAnswer() {\n pairs = new Vector<>();\n }", "public void assignAdjacentNonets(){\n\t\tfor(int i=1;i<=9;i++){\n\t\t\tList<Integer> adjNonets = new ArrayList<>();\n\t\t\tswitch(i){\n\t\t\tcase 1:\tadjNonets.add(2);\n\t\t\tadjNonets.add(4);\n\n\t\t\tcase 2: adjNonets.add(1);\n\t\t\tadjNonets.add(3);\n\t\t\tadjNonets.add(5);\n\n\t\t\tcase 3: adjNonets.add(2);\n\t\t\tadjNonets.add(6);\n\n\t\t\tcase 4: adjNonets.add(1);\n\t\t\tadjNonets.add(5);\n\t\t\tadjNonets.add(7);\n\n\t\t\tcase 5: adjNonets.add(2);\n\t\t\tadjNonets.add(4);\n\t\t\tadjNonets.add(6);\n\t\t\tadjNonets.add(8);\n\n\t\t\tcase 6: adjNonets.add(3);\n\t\t\tadjNonets.add(5);\n\t\t\tadjNonets.add(9);\n\n\t\t\tcase 7: adjNonets.add(4);\n\t\t\tadjNonets.add(8);\n\n\t\t\tcase 8: adjNonets.add(5);\n\t\t\tadjNonets.add(7);\n\t\t\tadjNonets.add(9);\n\n\t\t\tcase 9: adjNonets.add(6);\n\t\t\tadjNonets.add(8);\n\t\t\t}\n\t\t\tADJACENT_NONETS.put(i,adjNonets);\n\t\t}\n\t}", "public static void assertTransitionsEquals(Transition expectedTransitions[],Transition actualTransitions[]){\n\t\t\n\t\tArrayList<String> expectedToString = new ArrayList<String>();\n\t\tArrayList<String> actualToString = new ArrayList<String>();\n\t\n\t\t\n\t\t//populate\n\t\tfor ( Transition expected : expectedTransitions ){\n\t\t\texpectedToString.add(getTransitionString(expected));\n\t\t}\n\n\t\tfor ( Transition actual : actualTransitions ){\n\t\t\tactualToString.add(getTransitionString(actual));\n\t\t}\n\t\t\n\t\t\n\t\t//double check\n\t\tfor ( String expected : expectedToString ){\n\t\t\tif ( ! actualToString.contains(expected) ){\n\t\t\t\tfail(\"Transition \"+expected+\" not found\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor ( String actual : actualToString ){\n\t\t\tif ( ! actualToString.contains(actual) ){\n\t\t\t\tfail(\"Transition \"+actual+\" not expected\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "void calculate_distance()\n {\n \t\n \tfor(int i = 0; i<V ; i++)\n \t{\n \t\tfor(int j = 0; j<E ; j++)\n \t\t{\n \t\t\trelax(edge[j].src, edge[j].destination, edge[j].weight);\n \t\t}\n \t\tsp[i] = dist[i];\n \t\tx[i] = dist[i];\n \t}\n \tSystem.out.println();\n }", "void find_negative_cycle(){\n \t\n \tfor(int j = 0; j<E ; j++)\n\t\t{\n\t\t\trelax(edge[j].src, edge[j].destination, edge[j].weight);\n\t\t}\n \tfor(int i = 0; i<V ; i++)\n\t\t{\n \t\tif(x[i] != dist[i])\n\t\t\t{\n \t\t\tNegCycle = true;\n\t\t\t\tSystem.out.println(\"Negative Cycle Found \");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n }", "private void updateValues() {\n \n //Find the spaces that can be solved.\n List<Number>updatableNumbers = numbers.stream()\n .filter(n -> n.getUsedValues() != null)\n .filter(n -> n.getUsedValues().size() == 8)\n .filter(n -> n.getValue() == 0)\n .collect(Collectors.toList());\n\n updatableNumbers.forEach(u -> {\n //Create a list of numbers 1-9\n List<Integer> intThrough9 = IntStream.rangeClosed(1, 9)\n .boxed()\n .collect(Collectors.toList());\n\n //Remove the used numbers from the list of 9 \n //to get expected value.\n intThrough9.removeAll(u.getUsedValues());\n u.setValue(intThrough9.get(0));\n }\n );\n }", "public Individual[] getMigrationCandidates(Individual[] currentPopulation, int migrationCount);", "public void invert() {\n \n for(T first : getFirstDimension()) {\n \n for(T second : getMatches(first)) {\n \n Double sim = get(first, second);\n \n if(sim!=null && sim > 0.0) {\n set(first, second, 1.0/sim);\n }\n \n }\n \n }\n }", "@Override\r\n\tpublic void notifyObservers() {\n\t\tEnumeration<Observer> enumo = vector.elements();\r\n\t\twhile(enumo.hasMoreElements()){\r\n\t\t\tenumo.nextElement().update();\r\n\t\t}\r\n\t}", "protected void stateChanged(final SpacecraftState state) {\n final AbsoluteDate date = state.getDate();\n final boolean forward = date.durationFrom(getStartDate()) >= 0.0;\n for (final DoubleArrayDictionary.Entry changed : state.getAdditionalStatesValues().getData()) {\n final TimeSpanMap<double[]> tsm = unmanagedStates.get(changed.getKey());\n if (tsm != null) {\n // this is an unmanaged state\n if (forward) {\n tsm.addValidAfter(changed.getValue(), date, false);\n } else {\n tsm.addValidBefore(changed.getValue(), date, false);\n }\n }\n }\n }", "public void diminueVies() {\n\n nbVies_restantes.set(nbVies_restantes.get()-1);\n\n }", "private ScheduleGrph initializeIdenticalTaskEdges(ScheduleGrph input) {\n\n\t\tScheduleGrph correctedInput = (ScheduleGrph) SerializationUtils.clone(input);\n\t\t// FORKS AND TODO JOINS\n\t\t/*\n\t\t * for (int vert : input.getVertices()) { TreeMap<Integer, List<Integer>> sorted\n\t\t * = new TreeMap<Integer, List<Integer>>(); for (int depend :\n\t\t * input.getOutNeighbors(vert)) { int edge = input.getSomeEdgeConnecting(vert,\n\t\t * depend); int weight = input.getEdgeWeightProperty().getValueAsInt(edge); if\n\t\t * (sorted.get(weight) != null) { sorted.get(weight).add(depend); } else {\n\t\t * ArrayList<Integer> a = new ArrayList(); a.add(depend); sorted.put(weight, a);\n\t\t * }\n\t\t * \n\t\t * } int curr = -1; for (List<Integer> l : sorted.values()) { for (int head : l)\n\t\t * {\n\t\t * \n\t\t * if (curr != -1) { correctedInput.addDirectedSimpleEdge(curr, head); } curr =\n\t\t * head; }\n\t\t * \n\t\t * } }\n\t\t */\n\n\t\tfor (int vert : input.getVertices()) {\n\t\t\tfor (int vert2 : input.getVertices()) {\n\t\t\t\tint vertWeight = input.getVertexWeightProperty().getValueAsInt(vert);\n\t\t\t\tint vert2Weight = input.getVertexWeightProperty().getValueAsInt(vert2);\n\n\t\t\t\tIntSet vertParents = input.getInNeighbors(vert);\n\t\t\t\tIntSet vert2Parents = input.getInNeighbors(vert2);\n\n\t\t\t\tIntSet vertChildren = input.getOutNeighbors(vert);\n\t\t\t\tIntSet vert2Children = input.getOutNeighbors(vert2);\n\n\t\t\t\tboolean childrenEqual = vertChildren.containsAll(vert2Children)\n\t\t\t\t\t\t&& vert2Children.containsAll(vertChildren);\n\n\t\t\t\tboolean parentEqual = vertParents.containsAll(vert2Parents) && vert2Parents.containsAll(vertParents);\n\n\t\t\t\tboolean inWeightsSame = true;\n\t\t\t\tfor (int parent : vertParents) {\n\t\t\t\t\tfor (int parent2 : vert2Parents) {\n\t\t\t\t\t\tif (parent == parent2 && input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(parent, vert)) == input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(parent2, vert2))) {\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tinWeightsSame = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!inWeightsSame) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tboolean outWeightsSame = true;\n\t\t\t\tfor (int child : vertChildren) {\n\t\t\t\t\tfor (int child2 : vert2Children) {\n\t\t\t\t\t\tif (child == child2 && input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(vert, child)) == input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(vert2, child2))) {\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\toutWeightsSame = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!outWeightsSame) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tboolean alreadyEdge = correctedInput.areVerticesAdjacent(vert, vert2)\n\t\t\t\t\t\t|| correctedInput.areVerticesAdjacent(vert2, vert);\n\n\t\t\t\tif (vert != vert2 && vertWeight == vert2Weight && parentEqual && childrenEqual && inWeightsSame\n\t\t\t\t\t\t&& outWeightsSame && !alreadyEdge) {\n\t\t\t\t\tint edge = correctedInput.addDirectedSimpleEdge(vert, vert2);\n\t\t\t\t\tcorrectedInput.getEdgeWeightProperty().setValue(edge, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn correctedInput;\n\t}", "private void updateTrails() {\n for (int i = 0; i < numberOfCities; i++) {\n for (int j = 0; j < numberOfCities; j++) {\n trails[i][j] *= evaporation;\n }\n }\n for (Ant a : ants) {\n double contribution = Q / a.trailLength(graph);\n for (int i = 0; i < numberOfCities - 1; i++) {\n trails[a.trail[i]][a.trail[i + 1]] += contribution;\n }\n trails[a.trail[numberOfCities - 1]][a.trail[0]] += contribution;\n }\n }", "void contractEdges(DynamicGraph G, Integer u, Integer v ){\n G.removeEdges(u, v);\n // for all vertices w adj to v\n for (Integer w: G.adjacent(v)){\n // addEdge(u, w);\n G.addEdge(u, w);\n }\n // removeVertex(v); decrement V.\n G.removeVertex(v);\n /*System.out.println(\"After contracting edge u: \"+ u +\" v: \"+ v);\n System.out.println(G);*/\n }", "private void supplementMST(){\n\t\tList<Village> noOutRoads = getNoOutRoadVillages();\n\t\tList<Village> noInRoads = getNoInRoadVillages();\n\t\t\n\t\tfor(Village v: noOutRoads){\n\t\t\tVillage closestVillage = findClosestVillageTo(v,noInRoads);\n\t\t\tnoInRoads.remove(closestVillage);\n\t\t\tnew Road(v,closestVillage);\n\t\t}\n\t\t\n\t\tfor(Village v: noInRoads){\n\t\t\tnew Road(findClosestVillageTo(v,villages),v);\n\t\t}\n\t}", "public void setAsUp () \n\t{ \n\t\tn.setFailureState(true);\n\t\tfinal SortedSet<WLightpathRequest> affectedDemands = new TreeSet<> ();\n\t\tgetOutgoingFibers().forEach(f->affectedDemands.addAll(f.getTraversingLpRequestsInAtLeastOneLp()));\n\t\tgetIncomingFibers().forEach(f->affectedDemands.addAll(f.getTraversingLpRequestsInAtLeastOneLp()));\n\t\tfor (WLightpathRequest lpReq : affectedDemands)\n\t\t\tlpReq.internalUpdateOfRoutesCarriedTrafficFromFailureState();\n\t}", "public void makeWeakRepresentative() {\n\t\t\tif (mPrimaryEdge == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// hash map from store indices we have seen on the primary path to the previous destination/new source of\n\t\t\t// the primary edge (or in other words, to the new candidate for weak-i equivalence class).\n\t\t\tfinal HashMap<CCTerm, ArrayNode> seenStores = new HashMap<CCTerm, ArrayNode>();\n\t\t\t// for each index, the information about secondary edge that we later need to invert.\n\t\t\tfinal HashMap<CCTerm, ArrayNode> todoSecondary = new HashMap<CCTerm, ArrayNode>();\n\t\t\tfinal HashMap<CCTerm, CCAppTerm> todoSecondaryStores = new HashMap<CCTerm, CCAppTerm>();\n\t\t\t// the select information for the new root node.\n\t\t\tfinal HashMap<CCTerm, CCAppTerm> newSelectMap = new HashMap<CCTerm, CCAppTerm>();\n\t\t\tArrayNode node = this;\n\t\t\tArrayNode prev = null;\n\t\t\tCCAppTerm prevStore = null;\n\t\t\twhile (node.mPrimaryEdge != null) {\n\t\t\t\t// invert the last primary edge\n\t\t\t\tfinal ArrayNode next = node.mPrimaryEdge;\n\t\t\t\tfinal CCAppTerm nextStore = node.mPrimaryStore;\n\t\t\t\tnode.mPrimaryEdge = prev;\n\t\t\t\tnode.mPrimaryStore = prevStore;\n\n\t\t\t\tfinal CCTerm index = getIndexFromStore(nextStore).getRepresentative();\n\t\t\t\tfinal ArrayNode old = seenStores.put(index, next);\n\t\t\t\tif (old == node) {\n\t\t\t\t\t// the node is in the middle of two consecutive stores on the same\n\t\t\t\t\t// index. There is no need to move the secondary information\n\t\t\t\t\t// around.\n\t\t\t\t\t//\n\t\t\t\t\t// This branch is intentionally left empty!\n\t\t\t\t} else if (node.mSecondaryEdge != null) { //NOPMD\n\t\t\t\t\tif (old == null) {\n\t\t\t\t\t\t// we have to invert the secondary edge in the end, but\n\t\t\t\t\t\t// we should wait until the inversion of the primary edges\n\t\t\t\t\t\t// is completed.\n\t\t\t\t\t\ttodoSecondary.put(index, node.mSecondaryEdge);\n\t\t\t\t\t\ttodoSecondaryStores.put(index, node.mSecondaryStore);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// insert the secondary edge of node into old node. The reasoning is that\n\t\t\t\t\t\t// the old node is connected using only primary edges on different indices, so it has\n\t\t\t\t\t\t// the same weak-i representative as node.\n\t\t\t\t\t\tassert (getIndexFromStore(old.mPrimaryStore).getRepresentative() == index);\n\t\t\t\t\t\tassert (old.mSecondaryEdge == null);\n\t\t\t\t\t\told.mSecondaryEdge = node.mSecondaryEdge;\n\t\t\t\t\t\told.mSecondaryStore = node.mSecondaryStore;\n\t\t\t\t\t}\n\t\t\t\t\tnode.mSecondaryEdge = null;\n\t\t\t\t\tnode.mSecondaryStore = null;\n\t\t\t\t} else if (!node.mSelects.isEmpty()) {\n\t\t\t\t\tif (old == null) {\n\t\t\t\t\t\t// assertion holds, because index was not in seenStores.\n\t\t\t\t\t\tassert node.mSelects.get(index) != null;\n\t\t\t\t\t\t// we need to move the select information into the new root node.\n\t\t\t\t\t\tnewSelectMap.put(index, node.mSelects.get(index)); \n\t\t\t\t\t} else {\n\t\t\t\t\t\t// old is weak-i equivalent to node and can be used as new weak-i representative.\n\t\t\t\t\t\told.mSelects = node.mSelects;\n\t\t\t\t\t}\n\t\t\t\t\tnode.mSelects = Collections.emptyMap();\n\t\t\t\t}\n\n\t\t\t\tprev = node;\n\t\t\t\tnode = next;\n\t\t\t\tprevStore = nextStore;\n\t\t\t}\n\t\t\tnode.mPrimaryEdge = prev;\n\t\t\tnode.mPrimaryStore = prevStore;\n\t\t\tmConstTerm = node.mConstTerm;\n\t\t\tnode.mConstTerm = null;\n\t\t\tfinal Map<CCTerm, CCAppTerm> rootSelects = node.mSelects;\n\t\t\tnode.mSelects = Collections.emptyMap();\n\t\t\tfor (final Entry<CCTerm, ArrayNode> entry : seenStores.entrySet()) {\n\t\t\t\t// The seen stores get the new representatives of their weak-i equivalence groups\n\t\t\t\tfinal CCTerm index = entry.getKey();\n\t\t\t\tfinal CCAppTerm select = rootSelects.remove(index);\n\t\t\t\tif (select != null) {\n\t\t\t\t\tentry.getValue().mSelects = \n\t\t\t\t\t\tCollections.singletonMap(index, select);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Now invert the secondary edges\n\t\t\tfor (final Entry<CCTerm, ArrayNode> entry : todoSecondary.entrySet()) {\n\t\t\t\tfinal CCTerm index = entry.getKey();\n\t\t\t\tArrayNode dest = entry.getValue();\n\t\t\t\tdest = dest.findSecondaryNode(index);\n\t\t\t\tif (dest.mSecondaryEdge != null) {\n\t\t\t\t\tdest.makeWeakIRepresentative();\n\t\t\t\t}\n\t\t\t\tdest.mSecondaryEdge = this;\n\t\t\t\tdest.mSecondaryStore = todoSecondaryStores.get(index);\n\t\t\t\tnewSelectMap.putAll(dest.mSelects);\n\t\t\t\tdest.mSelects = Collections.emptyMap();\n\t\t\t}\n\t\t\tnewSelectMap.putAll(rootSelects);\n\t\t\tmSelects = newSelectMap;\n\t\t}", "public ArrayList<Integer>result(){\n\t\t\n\t\tArrayList<Integer> res= new ArrayList<>();\n\t\t\n\t\tif(!this.hasEulerLoop()) return res;\n\t\t\n\t\tStack<Integer> cur_vet= new Stack<>();\n\t\t\n\t\tint cur_v=0;\n\t\t\n\t\tGraph_Euler g= (Graph_Euler)graph.clone();\n\t\t\n\t\tcur_vet.push(cur_v);\n\t\t\n\t\twhile(!cur_vet.isEmpty()) {\n\t\t\t\n\t\t\tif(g.degree(cur_v)!=0) { // haven't form the cycle with current vertex\n\t\t\t\t\n\t\t\t\tcur_vet.push(cur_v);\n\t\t\t\t\n\t\t\t\t//System.out.println(cur_vet);\n\t\t\t\t\n\t\t\t\tint w=g.adj(cur_v).iterator().next(); // traverse the next edge \n\t\t\t\t\n\t\t\t\tg.removeEdge(cur_v, w);\n\t\t\t\t\n\t\t\t\tcur_v=w;\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\t\n\t\t\t\t//System.out.println(\"pp\"+cur_v);\n\t\t\t\t\n\t\t\t\tres.add(cur_v); // have form the cycle with current vertex\n\t\t\t\t\n\t\t\t\tcur_v=cur_vet.pop(); // needed to back_track\n\t\t\t\t\n\t\t\t\t//System.out.println(cur_vet);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn res;\n\t}", "@Test\r\n public void testIncidentEdges() {\r\n System.out.println(\"incidentEdges\");\r\n MyDigraph instance = new MyDigraph();\r\n\r\n Object v1Element = 44;\r\n Object v2Element = 55;\r\n Object v3Element = 66;\r\n\r\n Vertex v1 = instance.insertVertex(v1Element);\r\n Vertex v2 = instance.insertVertex(v2Element);\r\n Vertex v3 = instance.insertVertex(v3Element);\r\n\r\n int expectedResult = 0;\r\n int resultV1 = instance.incidentEdges(v1).size();\r\n int resultV2 = instance.incidentEdges(v2).size();\r\n int resultV3 = instance.incidentEdges(v3).size();\r\n\r\n assertEquals(expectedResult, resultV1);\r\n assertEquals(expectedResult, resultV2);\r\n assertEquals(expectedResult, resultV3);\r\n\r\n Object e1Element = \"A\";\r\n Object e2Element = \"B\";\r\n\r\n Edge e1 = instance.insertEdge(v1, v2, e1Element);\r\n Edge e2 = instance.insertEdge(v1, v3, e2Element);\r\n\r\n expectedResult = 2;\r\n\r\n resultV1 = instance.incidentEdges(v1).size();\r\n\r\n assertEquals(expectedResult, resultV1);\r\n\r\n expectedResult = 1;\r\n\r\n resultV2 = instance.incidentEdges(v2).size();\r\n resultV3 = instance.incidentEdges(v3).size();\r\n\r\n assertEquals(expectedResult, resultV2);\r\n assertEquals(expectedResult, resultV3);\r\n }", "public TransitionSystemEdge addEdge(TransitionSystemEdge newEdge) {\n\t\tTransitionSystemVertex v1 = (TransitionSystemVertex) newEdge\n\t\t\t\t.getSource();\n\t\tTransitionSystemVertex v2 = (TransitionSystemVertex) newEdge.getDest();\n\n\t\tHashSet edges = this.getEdgesBetween(v1, v2);\n\t\tif ((v1 != v2) && (edges.size() > 1)) { // 1 - created edge\n\t\t\t// The edge has been created, hence the nodes v1 and v2 know about\n\t\t\t// it.\n\t\t\t// and newEdge is not an inEdge of v1 (hence false as 2nd argument)\n\t\t\tv1.removeEdge(newEdge, false);\n\t\t\t// The edge has been created, hence the nodes v1 and v2 know about\n\t\t\t// it.\n\t\t\t// and newEdge is an inEdge of v2 (hence true as 2nd argument)\n\t\t\tv2.removeEdge(newEdge, true);\n\n\t\t\tIterator it = edges.iterator();\n\t\t\treturn (TransitionSystemEdge) it.next();\n\t\t} else if ((v1 == v2) && (edges.size() >= 2)) { // a tricky check for\n\t\t\t// the case of loops\n\t\t\tIterator it = edges.iterator();\n\t\t\tTransitionSystemEdge existingEdge = null;\n\t\t\tint k = 0;\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tTransitionSystemEdge anEdge = (TransitionSystemEdge) it.next();\n\t\t\t\tif (anEdge.getIdentifier().equals(newEdge.getIdentifier())) {\n\t\t\t\t\tk++;\n\t\t\t\t\texistingEdge = anEdge;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (k == 1) {\n\t\t\t\tsuper.addEdge(newEdge);\n\t\t\t\treturn newEdge;\n\t\t\t} else {\n\t\t\t\t// The edge has been created, hence the nodes v1 and v2 know\n\t\t\t\t// about it.\n\t\t\t\t// and newEdge is not an inEdge of v1 (hence false as 2nd\n\t\t\t\t// argument)\n\t\t\t\tv1.removeEdge(newEdge, false);\n\t\t\t}\n\t\t\t// The edge has been created, hence the nodes v1 and v2 know about\n\t\t\t// it.\n\t\t\t// and newEdge is an inEdge of v2 (hence true as 2nd argument)\n\t\t\tv2.removeEdge(newEdge, true);\n\t\t\treturn existingEdge;\n\t\t} else {\n\t\t\tsuper.addEdge(newEdge);\n\t\t\treturn newEdge;\n\t\t}\n\t}", "private List<Matrix> obtainTransitions(List<Matrix>probs){\n\t\tList<Matrix> output = new ArrayList<Matrix>();\n\t\tfor (int i =0;i<probs.size();i++) {\n\t\t\toutput.add(genTransFunction(probs.get(i)));\n\t\t}\n\t\treturn output;\n\t}", "@Override\n public void interagit() {\n super.interagit();\n ArrayList<EtreVivant> cibles = this.ciblesPotentiellesAdjacentes(this.getPosition(),this.nombreVoisins);\n cibles.stream().filter((vivants) -> (vivants.getEtat().equals(EtatEtreVivant.MALADE))).forEach((vivants) -> {\n this.soigne(vivants);\n });\n }", "@org.junit.Test\n public void inverser_vector() throws Exception {\n //voici un commentaire\n Vector<Integer> inppuut = new Vector<Integer>();\n inppuut.add(1);\n inppuut.add(2);\n inppuut.add(3);\n inppuut.add(4);\n\n Vector<Integer> expec = new Vector<Integer>();\n expec.add(4);\n expec.add(3);\n expec.add(2);\n expec.add(1);\n\n VectorHelper.inverser_vector(inppuut);\n assertEquals(expec, inppuut);\n\n }", "private void mergeStates() {\n ArrayList<DFAState> newStates = new ArrayList<DFAState>();\r\n HashSet<Integer> newAcceptStates = new HashSet<Integer>();\r\n HashMap<Integer, Integer> merged = new HashMap<Integer, Integer>();\r\n ArrayList<ArrayList<Integer>> mergeGroups = new ArrayList<ArrayList<Integer>>();\r\n for (int i = 0; i < D.length; i++) {\r\n if (merged.get(i) != null || states[i] == null) {\r\n continue;\r\n }\r\n\r\n DFAState state = states[i];\r\n\r\n ArrayList<Integer> toMerge = new ArrayList<Integer>();\r\n for (int j = i + 1; j < D.length; j++) {\r\n if (!D[i][j]) {\r\n toMerge.add(j);\r\n merged.put(j, i);\r\n }\r\n }\r\n\r\n // renumber existing transitions\r\n for (int j = 0; j < state.transitions.size(); j++) {\r\n Integer transition = state.transitions.get(j);\r\n if (merged.containsKey(transition)) {\r\n state.transitions.set(j, merged.get(transition));\r\n }\r\n }\r\n\r\n if (acceptStates.contains(i)) {\r\n newAcceptStates.add(i);\r\n }\r\n toMerge.add(i);\r\n mergeGroups.add(toMerge);\r\n newStates.add(state);\r\n }\r\n\r\n renumberStates(mergeGroups, newAcceptStates);\r\n\r\n // replace attributes\r\n DFAState[] newStatesArray = new DFAState[newStates.size()];\r\n newStatesArray = newStates.toArray(newStatesArray);\r\n states = newStatesArray;\r\n acceptStates = newAcceptStates;\r\n }", "public Vector<RationaleStatus> updateOnDelete() {\r\n \t\tAlternativeInferences inf = new AlternativeInferences();\r\n \t\tVector<RationaleStatus> newStat = inf.updateOnDelete(this);\r\n \t\treturn newStat;\r\n \t}", "protected void updateBaseline(TreeSet<StateTransition> stateTransitions) {\n if (!useBaseline) return;\n\n int size = stateTransitions.size();\n\n double mean = 0;\n for (StateTransition stateTransition : stateTransitions) mean += stateTransition.tdTarget;\n mean /= size;\n averageMean = averageMean == Double.MIN_VALUE ? mean : tau * averageMean + (1 - tau) * mean;\n\n double std = 0;\n for (StateTransition stateTransition : stateTransitions) std += Math.pow(stateTransition.tdTarget - mean, 2);\n std = Math.sqrt(std / (size - 1));\n averageStandardDeviation = averageStandardDeviation == Double.MIN_VALUE ? std : tau * averageStandardDeviation + (1 - tau) * std;\n\n for (StateTransition stateTransition : stateTransitions) {\n stateTransition.tdTarget = (stateTransition.tdTarget - averageMean) / averageStandardDeviation;\n }\n }", "protected void processEntryTransition(InternalSystemEntryDelta entryDelta,\n Collection<String> toStates)\n {\n Transition lastTransition = null;\n \n String fromState = entryDelta.getCurrentEntryState();\n \n for(String toState : toStates)\n {\n if(\"<expected>\".equals(toState))\n toState = entryDelta.getExpectedEntryState();\n \n lastTransition = processEntryStateMismatch(lastTransition,\n entryDelta,\n fromState,\n toState);\n \n fromState = toState;\n }\n }", "public void recalculateVector()\r\n {\r\n recalculateVector(destX, destY);\r\n }", "private void calculateInitialAndFinalTemperature(){\n double maxSolutionValueDifference = 0;\n double minSolutionValueDifference = 0;\n double solutionValueDifference = 0;\n ArrayList<int[]> neighbours = getAllNeighbours(getInitialSolution());\n\n for(int i = 0; i <= neighbours.size() - 1; i++){\n for(int j = 0; j <= neighbours.size() - 1; j++){\n if(i != j){\n solutionValueDifference = getSolutionDifference(neighbours.get(i), neighbours.get(j));\n\n if((maxSolutionValueDifference == 0) && (minSolutionValueDifference == 0)){\n maxSolutionValueDifference = solutionValueDifference;\n minSolutionValueDifference = solutionValueDifference;\n }\n\n if(solutionValueDifference > maxSolutionValueDifference){\n maxSolutionValueDifference = solutionValueDifference;\n }\n else{\n if((solutionValueDifference > 0) && (solutionValueDifference < minSolutionValueDifference)){\n minSolutionValueDifference = solutionValueDifference;\n }\n }\n }\n }\n }\n\n this.initialTemperature = maxSolutionValueDifference;\n this.finalTemperature = minSolutionValueDifference;\n }", "private int[] actualizarDisp(int asignacion[][], int disponibles[]){\r\n \r\n //Vector auxiliar a ser actualizado\r\n int update[] = disponibles;\r\n \r\n //Proceso de actualizacion de vector\r\n for(int j = 0; j < update.length; j++){\r\n for(int i = 0; i < asignacion.length; i++){\r\n //Restar el valor almacenado en cada proceso para cada tipo de recurso respectivo\r\n update[j] = recursos[j] - asignacion[i][j];\r\n }\r\n }\r\n \r\n return update;\r\n }", "private Set<Integer> getStatesFromWichReachableAccepting(LabelledTransitionSystem ret) {\n\t\tMap<Integer, Set<Integer>> reversedReachable = this.computeInverseTransitionRelation(ret);\n\n\t\tSet<Integer> reachable = new HashSet<>();\n\n\t\tlogger.debug(\"Accepting states: \" + ret.getAccepting());\n\t\tSet<Integer> current = ret.getAccepting();\n\n\t\tboolean[] visited = new boolean[ret.getStates().length];\n\n\t\twhile (!current.isEmpty()) {\n\t\t\tInteger evaluated = current.iterator().next();\n\t\t\tcurrent.remove(evaluated);\n\t\t\tif (!visited[evaluated]) {\n\t\t\t\tvisited[evaluated] = true;\n\t\t\t\treachable.add(evaluated);\n\t\t\t\tSet<Integer> prev = new HashSet<>(reversedReachable.get(evaluated));\n\t\t\t\tcurrent.addAll(prev);\n\t\t\t}\n\t\t}\n\n\t\treturn reachable;\n\t}", "@Override\r\n\tprotected void collectDisappearingPotential(V v) {\r\n\t\tif (graph.outDegree(v) == 0) {\r\n\t\t\tif (isDisconnectedGraphOK()) {\r\n\t\t\t\tif (v instanceof TopicVertex) {\r\n\t\t\t\t\tpr_disappearing_potential += getCurrentValue(v);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// not necessary for hits-hub\r\n\t\t\t\t\t// disappearing_potential.hub += getCurrentValue(v);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tthrow new IllegalArgumentException(\"Outdegree of \" + v\r\n\t\t\t\t\t\t+ \" must be > 0\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t// not necessary for hits-hub\r\n\t\t// if (graph.inDegree(v) == 0) {\r\n\t\t// if (isDisconnectedGraphOK()) {\r\n\t\t// if (!(v instanceof TopicReferenceVertex)) {\r\n\t\t// disappearing_potential.authority += getCurrentValue(v);\r\n\t\t// }\r\n\t\t// } else {\r\n\t\t// throw new IllegalArgumentException(\"Indegree of \" + v\r\n\t\t// + \" must be > 0\");\r\n\t\t// }\r\n\t\t// }\r\n\t}", "private ArrayList<int[]> findTransitionsToWithinLimits(char[] pattern) {\n ArrayList<int[]> validtransitions=new ArrayList<int[]>();\n double patternscore=getMatchScore(pattern);\n for (int i=0;i<pattern.length;i++) { // for each position\n for (int j=0;j<4;j++) {\n double newscore=patternscore+transitions[i][j];\n if (newscore>=minMatch && newscore<=maxMatch) {\n validtransitions.add(new int[]{i,j});\n }\n }\n }\n return validtransitions;\n }", "public void reduce() {\n if (numTransitions <= 1) {\n return;\n }\n sortTransitions(Transition.CompareByDestThenMinMax);\n State p = null;\n int min = -1, max = -1;\n int upto = 0;\n for (int i=0;i<numTransitions;i++) {\n final Transition t = transitionsArray[i];\n if (p == t.to) {\n if (t.min <= max + 1) {\n if (t.max > max) max = t.max;\n } else {\n if (p != null) {\n transitionsArray[upto++] = new Transition(min, max, p);\n }\n min = t.min;\n max = t.max;\n }\n } else {\n if (p != null) {\n transitionsArray[upto++] = new Transition(min, max, p);\n }\n p = t.to;\n min = t.min;\n max = t.max;\n }\n }\n\n if (p != null) {\n transitionsArray[upto++] = new Transition(min, max, p);\n }\n numTransitions = upto;\n }", "private float[] gyrDiff(float[] oldGyr, float[] newGyr)\n {\n float[] diffGyr = new float[]{0.0f, 0.0f, 0.0f};\n\n for (int i = 0; i < 3; i++)\n {\n diffGyr[i] = (newGyr[i]-oldGyr[i]);\n }\n return newGyr;\n }", "void FlowMaintain() {\n newFlowCap[0] = Integer.MAX_VALUE; // initial value\n\n // check the smallest in the edgesInPath, if edgesInPath is empty ==> new flow is INF\n for (Edge<E> edge : edgesInPath) {\n if (edge.getCapability() < newFlowCap[0]) {\n newFlowCap[0] = edge.getCapability();\n }\n }\n }", "public DiscreteChangeOneMutation(int[] ranges) { \n this.ranges = ranges;\n }", "public void testPersistence() {\n ImmutableSet<Integer> set = new ImmutableSet();\n for (int i = -50; i < 51; i++) {\n set.add(i);\n assertTrue(set.current != set.pastVersions.get(set.pastVersions.size()-1));\n }\n for(int i = -50; i < 51; i++) {\n set.remove(i);\n assertTrue(set.current != set.pastVersions.get(set.pastVersions.size()-1));\n }\n }", "public void inferOutwardsInformation()\n\t{\n\t\t// To prepare everything, delete all outwards information\n\t\tfor(int i=0; i<faces.size(); i++)\n\t\t{\n\t\t\tgetFace(i).setNoOfFacesToOutside(IndexArray.NONE);\n\t\t}\n\t\tfor(int i=0; i<simplices.size(); i++)\n\t\t{\n\t\t\tgetSimplex(i).setOuterFaceIndex(IndexArray.NONE);\n\t\t\tgetSimplex(i).setOuterNeighbourSimplexIndex(IndexArray.NONE);\n\t\t}\n\t\t\n\t\t// First, find the indices of all outside faces, ...\n\t\tArrayList<Integer> outsideFaceIndices = getOutsideFaceIndicesBeforeAllInfoHasBeenInferred();\n\t\t\n\t\t// System.out.println(\"SimplicialComplex::inferOutwardsInformation: outsideFaceIndices=\"+outsideFaceIndices);\n\t\t\n\t\tint noOfFacesToOutside = 0;\n\t\t\n\t\t// ... mark the number of faces to the outside as zero from these outside faces, ...\n\t\tfor(int outsideFaceIndex : outsideFaceIndices)\n\t\t{\n\t\t\tfaces.get(outsideFaceIndex).setNoOfFacesToOutside(noOfFacesToOutside);\n\t\t}\n\t\t\n\t\tint noOfChangedSimplices;\n\t\tdo\n\t\t{\n\t\t\t// System.out.println(\"SimplicialComplex::inferOutwardsInformation: noOfFacesToOutside=\"+noOfFacesToOutside);\n\t\t\t\n\t\t\t// reset the number of changed simplices\n\t\t\tnoOfChangedSimplices = 0;\n\t\t\t\n\t\t\t// go through all simplices...\n\t\t\tfor(Simplex simplex : simplices)\n\t\t\t{\n\t\t\t\t// System.out.println(\" SimplicialComplex::inferOutwardsInformation: simplex index=\"+getSimplexIndex(simplex));\n\n\t\t\t\t// ... whose outwards information has not been set, ...\n\t\t\t\tif(simplex.getOuterFaceIndex() == IndexArray.NONE)\n\t\t\t\t{\n\t\t\t\t\t// ... and infer its outer face index\n\t\t\t\t\tint outerFaceIndex = simplex.inferOuterFaceIndex();\n\n\t\t\t\t\t// System.out.println(\" SimplicialComplex::inferOutwardsInformation: outerFaceIndex=\"+outerFaceIndex);\n\n\t\t\t\t\t// has inferring the outer-face index actually succeeded?\n\t\t\t\t\tif(outerFaceIndex != IndexArray.NONE)\n\t\t\t\t\t{\n\t\t\t\t\t\t// yes\n\n\t\t\t\t\t\t// System.out.println(\" SimplicialComplex::inferOutwardsInformation: getFace(outerFaceIndex).getNoOfFacesToOutside()=\"+getFace(outerFaceIndex).getNoOfFacesToOutside());\n\n\t\t\t\t\t\t// check if this face's number of faces to the outside = <i>noOfFacesToOutside</i>\n\t\t\t\t\t\tif(getFace(outerFaceIndex).getNoOfFacesToOutside() == noOfFacesToOutside)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// yes; set this simplex's outwards information, first its outer face...\n\t\t\t\t\t\t\tsimplex.setOuterFaceIndex(outerFaceIndex);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t// ... and then its outer neighbour simplex index\n\t\t\t\t\t\t\tsimplex.setOuterNeighbourSimplexIndex(\n\t\t\t\t\t\t\t\t\tIndexArray.getFirstOtherIndex(\n\t\t\t\t\t\t\t\t\t\t\tthis.getSimplexIndex(simplex),\t// the index of <i>simplex</i>\n\t\t\t\t\t\t\t\t\t\t\tgetFace(outerFaceIndex).getSimplexIndices()\n\t\t\t\t\t\t\t\t\t\t\t)\t// the index of the simplex neighbouring face #<i>outerFaceIndex</i> that is *not* <i>simplex</i>\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t// set this simplex's other faces' outwards information\n\t\t\t\t\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// find the <i>i</i>th face of the simplex\n\t\t\t\t\t\t\t\tFace face = simplex.getFace(i);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// has this face's outward information been set?\n\t\t\t\t\t\t\t\tif(face.getNoOfFacesToOutside() == IndexArray.NONE)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tface.setNoOfFacesToOutside(noOfFacesToOutside + 1);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// increase the number of changed simplices\n\t\t\t\t\t\t\tnoOfChangedSimplices++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// increase the number of faces to the outside by 1\n\t\t\tnoOfFacesToOutside++;\t\t\t\n\t\t}\n\t\twhile(noOfChangedSimplices > 0);\n//\t\t\n//\t\t// ... and mark the outer neighbour of each simplex that has an outside face as the outside\n//\t\t// and its outer face as the outside face, and set <i>noOfFacesToOutside</i> for the remaining faces to 1\n//\t\tnoOfFacesToOutside++;\t// now has value 1\n//\t\t// Do this by going through all simplices, ...\n//\t\tfor(Simplex simplex : simplices)\n//\t\t{\t\t\t\n//\t\t\t// ...and if a simplex has an outside face, ...\n//\t\t\tint outsideFaceIndex = simplex.getFaceIndexInList(outsideFaceIndices);\n//\t\t\t\n//\t\t\t// System.out.println(\"SimplicialComplex::inferOutwardsInformation: outsideFaceIndex = \"+outsideFaceIndex);\n//\t\t\t\n//\t\t\tif(outsideFaceIndex != IndexArray.NONE)\n//\t\t\t{\n//\t\t\t\t// ...then add the relevant outwards information to the simplex ...\n//\t\t\t\tsimplex.setOuterFaceIndex(outsideFaceIndex);\n//\t\t\t\tsimplex.setOuterNeighbourSimplexIndex(IndexArray.OUTSIDE);\n//\t\t\t\t\n//\t\t\t\t// ...and set <i>noOfFacesToOutside</i> for the faces that have not already been marked as outside faces as 1; ...\n//\t\t\t\tfor(int i=0; i<4; i++)\n//\t\t\t\t{\n//\t\t\t\t\t// take the <i>i</i>th face\n//\t\t\t\t\tFace face = simplex.getFace(i);\n//\t\t\t\t\t\n//\t\t\t\t\t// if its <i>noOfFacesToOutside</i> variable has not been set yet, set it to 1\n//\t\t\t\t\tif(face.getNoOfFacesToOutside() == IndexArray.NONE) face.setNoOfFacesToOutside(noOfFacesToOutside);\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\telse\n//\t\t\t{\n//\t\t\t\t// ... otherwise mark the outwards information as not set.\n//\t\t\t\tsimplex.setOuterFaceIndex(IndexArray.NONE);\n//\t\t\t\tsimplex.setOuterNeighbourSimplexIndex(IndexArray.NONE);\t\t\t\t\n//\t\t\t}\n//\t\t\t\n//\t\t\t// System.out.println(\"SimplicialComplex::inferOutwardsInformation: simplex = \"+simplex);\n//\t\t}\n//\t\t\n//\t\t// Next, iterate \"inwards\"!\n//\t\t\n//\t\t// Create a list of all the simplices that have been changed in the current iteration\n//\t\tArrayList<Simplex> changedSimplices = new ArrayList<Simplex>();\n//\t\t\n//\t\tdo\n//\t\t{\n//\t\t\t// the number of faces to the outside will be one more for the next set of faces\n//\t\t\tnoOfFacesToOutside++;\n//\t\t\t\n//\t\t\t// clear the list of simplices that have been changed in this iteration\n//\t\t\tchangedSimplices.clear();\n//\n//\t\t\t// Go through all simplices...\n//\t\t\tfor(Simplex simplex : simplices)\n//\t\t\t{\n//\t\t\t\t// System.out.println(\"SimplicialComplex::inferOutwardsInformation: simplex = \"+simplex);\n//\n//\t\t\t\t// ... that lack outwards information, ...\n//\t\t\t\tif(simplex.getOuterFaceIndex() == IndexArray.NONE)\n//\t\t\t\t{\n//\t\t\t\t\t// System.out.println(\"SimplicialComplex::inferOutwardsInformation: \");\n//\t\t\t\t\t\n//\t\t\t\t\t// ... find the indices of the current simplex's neighbours, ...\n//\t\t\t\t\tint[] neighbourSimplexIndices = simplex.getNeighbourSimplexIndices();\n//\t\t\t\t\t\n//\t\t\t\t\t// System.out.println(\"SimplicialComplex::inferOutwardsInformation: neighbourSimplexIndices = \"+neighbourSimplexIndices);\n//\t\t\t\t\t\n//\t\t\t\t\t// ... identify the first of the nearest-neighbour simplices *with* outwards information\n//\t\t\t\t\t// that hasn't been changed in the current iteration, ...\n//\t\t\t\t\tint outerNeighbourSimplexIndex = IndexArray.NONE;\n//\t\t\t\t\tfor(int i=0; (i<4) && (outerNeighbourSimplexIndex == IndexArray.NONE); i++)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tint neighbourSimplexIndex = neighbourSimplexIndices[i];\n//\t\t\t\t\t\tSimplex neighbour = simplices.get(neighbourSimplexIndex);\n//\t\t\t\t\t\tif(\n//\t\t\t\t\t\t\t\t(neighbour.getOuterFaceIndex() != IndexArray.NONE)\t// neighbour's outwards information has been set...\n//\t\t\t\t\t\t\t\t&& (!changedSimplices.contains(neighbour))\t// ... and neighbour is not in list of simplices that have been changed in this iteration\n//\t\t\t\t\t\t)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\touterNeighbourSimplexIndex = neighbourSimplexIndex;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\n//\t\t\t\t\t// ... and if there is such a neighbour...\n//\t\t\t\t\tif(outerNeighbourSimplexIndex != IndexArray.NONE)\n//\t\t\t\t\t{\n//\t\t\t\t\t\t// ... set <simplex>'s outwards information towards this neighbour, ...\n//\t\t\t\t\t\tsimplex.setOuterNeighbourSimplexIndex(outerNeighbourSimplexIndex);\n//\t\t\t\t\t\tsimplex.setOuterFaceIndex(simplex.sharedFaceIndex(simplices.get(outerNeighbourSimplexIndex)));\n//\t\t\t\t\t\n//\t\t\t\t\t\t// ... add the changed simplex to the list of changed simplices, ...\n//\t\t\t\t\t\tchangedSimplices.add(simplices.get(outerNeighbourSimplexIndex));\n//\t\t\t\t\t\t\n//\t\t\t\t\t\t// ...and set <i>noOfFacesToOutside</i> for the faces that have not already been marked as outside faces as <i>noOfFacesToOutside</i>\n//\t\t\t\t\t\tfor(int i=0; i<4; i++)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t// take the <i>i</i>th face\n//\t\t\t\t\t\t\tFace face = simplex.getFace(i);\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t// if its <i>noOfFacesToOutside</i> variable has not been set yet, set it to 1\n//\t\t\t\t\t\t\tif(face.getNoOfFacesToOutside() == IndexArray.NONE) face.setNoOfFacesToOutside(noOfFacesToOutside);\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n//\t\t// repeat if simplices have been changed in the iteration that just finished\n//\t\twhile (changedSimplices.size() > 0);\n\t}", "public void eventLiving(double[] changes){\n living = (int) Math.floor(living * (1 + (changes[0]/100)));\n living += changes[1];\n \n if(living > 100){\n living = 100;\n }\n \n if(living < 0){\n living = 0;\n }\n }", "protected void updateValues(){\n double total = 0;\n for(int i = 0; i < values.length; i++){\n values[i] = \n operation(minimum + i * (double)(maximum - minimum) / (double)numSteps);\n \n total += values[i];\n }\n for(int i = 0; i < values.length; i++){\n values[i] /= total;\n }\n }", "public void minimize() {\n D = new boolean[states.length][states.length];\r\n S = new ArrayList<ArrayList<HashSet<Point>>>(); // lol\r\n\r\n //noinspection ForLoopReplaceableByForEach\r\n for (int i = 0; i < states.length; i++) {\r\n ArrayList<HashSet<Point>> innerList = new ArrayList<HashSet<Point>>();\r\n\r\n //noinspection ForLoopReplaceableByForEach\r\n for (int j = 0; j < states.length; j++) {\r\n Arrays.fill(D[i], false);\r\n innerList.add(new HashSet<Point>());\r\n }\r\n S.add(innerList);\r\n }\r\n\r\n // 2. states with different acceptances are distinguishable\r\n for (int i = 0; i < states.length; i++) {\r\n for (int j = i + 1; j < states.length; j++) {\r\n if (acceptStates.contains(i) != acceptStates.contains(j)) {\r\n D[i][j] = true;\r\n }\r\n }\r\n }\r\n\r\n // 3. mark as possibly indistinguishable, enforce distinguishability\r\n for (int i = 0; i < states.length; i++) {\r\n for (int j = i + 1; j < states.length; j++) {\r\n // only pairs that are as of yet indistinguishable\r\n if (D[i][j]) {\r\n continue;\r\n }\r\n\r\n DFAState qi = states[i];\r\n DFAState qj = states[j];\r\n\r\n // one of the things being compared is unreachable\r\n if (qi == null || qj == null) {\r\n continue;\r\n }\r\n\r\n // helps emulate \"for any\"\r\n boolean distinguished = false;\r\n for (int k = 0; k < qi.transitions.size(); k++) {\r\n int m = qi.transitions.get(k);\r\n int n = qj.transitions.get(k);\r\n\r\n // if on the same letter, qm and qn move to distinguishable states\r\n if (D[m][n] || D[n][m]) {\r\n dist(i, j);\r\n distinguished = true;\r\n break;\r\n }\r\n }\r\n\r\n if (!distinguished) {\r\n // qm and qn are indistinguishable\r\n for (int k = 0; k < qi.transitions.size(); k++) {\r\n int m = qi.transitions.get(k);\r\n int n = qj.transitions.get(k);\r\n\r\n if (m < n && !(i == m && j == n)) {\r\n S.get(m).get(n).add(new Point(i, j));\r\n } else if (m > n && !(i == n && j == m)) {\r\n S.get(n).get(m).add(new Point(i, j));\r\n }\r\n }\r\n }\r\n\r\n }\r\n }\r\n\r\n mergeStates();\r\n }", "public double getTransition(){\n\t\treturn transition;\n\t}" ]
[ "0.53394663", "0.5228623", "0.5174127", "0.50927633", "0.5071377", "0.5060003", "0.5051232", "0.5022984", "0.49834946", "0.49649605", "0.48082733", "0.47987843", "0.47320256", "0.47224468", "0.47141394", "0.4699533", "0.4671131", "0.46659952", "0.46456468", "0.4636389", "0.46318325", "0.45707914", "0.45613992", "0.45488277", "0.45285589", "0.4526846", "0.4521617", "0.4505865", "0.44934583", "0.44930556", "0.44856414", "0.4483416", "0.44694716", "0.44668835", "0.4463738", "0.44560447", "0.4448459", "0.44447064", "0.4437451", "0.44357106", "0.44253442", "0.4418293", "0.44160926", "0.44010288", "0.4397812", "0.43885747", "0.43879023", "0.43817902", "0.43764877", "0.43689367", "0.43653104", "0.43568984", "0.43484157", "0.4331596", "0.43301675", "0.43274823", "0.43123424", "0.4311742", "0.43078128", "0.43022236", "0.42981568", "0.4290334", "0.4279625", "0.4278115", "0.4275067", "0.42734835", "0.42716494", "0.42713857", "0.42710268", "0.42694277", "0.42659447", "0.42553678", "0.425469", "0.4253645", "0.42503363", "0.4249119", "0.42488435", "0.4247656", "0.4244931", "0.42338225", "0.42333493", "0.42292714", "0.42287648", "0.42250353", "0.4222925", "0.42207715", "0.421858", "0.4216942", "0.42165136", "0.4213207", "0.42105117", "0.42090315", "0.42083532", "0.42057773", "0.4204461", "0.41961604", "0.41945678", "0.41936365", "0.41916633", "0.41883475" ]
0.50186396
8
Utility function to transform an expression that contains function calls into an expression where each function call is replaced by a unique placeholder variable.
public static ExtractedExpression extractFunctionCalls(AbstractExpression exp) { ExtractedExpression ee = new ExtractedExpression(exp); AbstractFunctionCall fc = exp.getEmbeddedFunctionCall(); while (fc != null) { String var = FreeVarNameProvider.getFreeVariable("subst"); ee.rewrite(var, fc); fc = ee.getExpression().getEmbeddedFunctionCall(); } return ee; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Expression transform(Expression exp)\n {\n return UseContracts.execute(exp, fun, callers);\n }", "@Override\n public RowExpression rewrite(RowExpression expression, Rule.Context context)\n {\n if (expression instanceof CallExpression && ((CallExpression) expression).getArguments().stream().anyMatch(OriginalExpressionUtils::isExpression)) {\n return removeOriginalExpressionArguments((CallExpression) expression, context.getSession(), context.getSymbolAllocator(), context);\n }\n return removeOriginalExpression(expression, context, new HashMap<>());\n }", "public T expr(final Expression expression) {\r\n\t\tif (expression.values() == null)\r\n\t\t\treturn expr(expression.expression());\r\n\t\treturn expr(expression.expression(), expression.values()\r\n\t\t\t\t.toArray());\r\n\t}", "private String substituteAlias(String referencedAlias,\n String referencedFunc, String aFunc) {\n\n String returnedFunc = aFunc;\n /*\n * Process single word functions first\n */\n if (!returnedFunc.contains(\"(\")) {\n if (returnedFunc.trim().equalsIgnoreCase(referencedAlias)) {\n return returnedFunc.replace(referencedAlias, referencedFunc);\n }\n return returnedFunc;\n }\n\n /*\n * Need to make sure that the number of closing and opening parenthesis\n * is the same.\n */\n int openParenthesisNumber = 0;\n int closeParenthesisNumber = 0;\n\n for (char c : returnedFunc.toCharArray()) {\n if (c == '(') {\n openParenthesisNumber++;\n } else if (c == ')') {\n closeParenthesisNumber++;\n }\n }\n\n /*\n * If the some closing parenthesis are missing add them at the end of\n * returnedFunc\n */\n if (openParenthesisNumber != closeParenthesisNumber) {\n int parenthesisDeficit = openParenthesisNumber\n - closeParenthesisNumber;\n for (int idef = 0; idef < parenthesisDeficit; idef++) {\n returnedFunc = returnedFunc + \")\";\n }\n }\n\n /*\n * Find all the words that make up our returnedFunc\n */\n String delims = \"[ (),]+\";\n String[] returnedFuncWords = returnedFunc.split(delims);\n\n /*\n * Go over each returnedFunc word and replaced each referencedAlias with\n * referencedFunc\n */\n for (String component : returnedFuncWords) {\n if (component.equalsIgnoreCase(referencedAlias)) {\n /*\n * Word that potentially needs de-aliasing found.\n */\n boolean doneDealiasing = false;\n int startInd = 0;\n while (!doneDealiasing) {\n int componentBeforePosition = returnedFunc\n .indexOf(component, startInd) - 1;\n int componentAfterPosition = componentBeforePosition\n + component.length() + 1;\n boolean isRoundedBefore = Character\n .toString(returnedFunc\n .charAt(componentBeforePosition))\n .equalsIgnoreCase(\"(\")\n || Character\n .toString(returnedFunc\n .charAt(componentBeforePosition))\n .equalsIgnoreCase(\")\")\n || Character\n .toString(returnedFunc\n .charAt(componentBeforePosition))\n .equalsIgnoreCase(\",\");\n boolean isRroundedAfter = Character\n .toString(\n returnedFunc.charAt(componentAfterPosition))\n .equalsIgnoreCase(\"(\")\n || Character\n .toString(returnedFunc\n .charAt(componentAfterPosition))\n .equalsIgnoreCase(\")\")\n || Character\n .toString(returnedFunc\n .charAt(componentAfterPosition))\n .equalsIgnoreCase(\",\");\n if (isRoundedBefore && isRroundedAfter) {\n /*\n * De-alias word since surrounded by '(', ')', or ','\n */\n StringBuilder strb = new StringBuilder();\n int startIndx = componentBeforePosition + 1;\n int endIndx = startIndx + component.length();\n int returnedFuncLen = returnedFunc.length();\n strb.append(returnedFunc, 0, startIndx);\n strb.append(referencedFunc);\n strb.append(returnedFunc, endIndx, returnedFuncLen);\n returnedFunc = strb.toString();\n doneDealiasing = true;\n } else {\n startInd = componentAfterPosition;\n }\n }\n }\n }\n\n logger.debug(\"returnedFunc=\" + returnedFunc);\n\n return returnedFunc;\n }", "public void storeEval(final String expression, final String variableName);", "public Object eval (Object expression);", "public abstract void substitute(LambdaTerm N, Variable x);", "@Override\r\n\tpublic void visit(FunctionCallExpression functionCallExpression) {\n\r\n\t}", "private CodeFragment callFunc(List<AlangParser.ExpressionContext> expressions, Function f) {\n CodeFragment result = new CodeFragment();\n\n ST template;\n if (f.returntype.equals(Types.LLVMVOID)) {\n template = this.group.getInstanceOf(\"voidfunccall\");\n } else {\n template = this.group.getInstanceOf(\"funccall\");\n result.setRegister(this.generateNewRegister(false));\n template.add(\"reg\", result.getRegister());\n template.add(\"type\", f.returntype);\n if (f.returntype.equals(Types.LLVMZNAK)){\n result.setCharRegister();\n }\n }\n\n template.add(\"name\", f.name);\n\n for (int i = 0; i < expressions.size(); i++) {\n CodeFragment expr = visit(expressions.get(i));\n result.addCode(expr);\n if (i == 0)\n template.add(\"args\", f.args.get(i) + \" \" + expr.getRegister());\n else\n template.add(\"args\", \", \" + f.args.get(i) + \" \" + expr.getRegister());\n\n String exprtext = expressions.get(i).getText();\n if (this.globals.containsKey(exprtext)) {\n this.addError(expressions.get(i), exprtext, \"Cannot pass global array to function\");\n return new CodeFragment(\"\");\n }\n\n /* if we are passing whole array to function, pass also its dimensions */\n if (this.vars.get(this.scope).containsKey(exprtext)) {\n Variable v = this.vars.get(this.scope).get(exprtext);\n for (int j = 0; j < v.levelregs.size(); j++) {\n String finalreg = v.levelregs.get(j);\n if (!v.isLocalArray) {\n finalreg = this.generateNewRegister(false);\n result.addCode(String.format(\"%s = load i32, i32* %s\\n\", finalreg, v.levelregs.get(j)));\n }\n template.add(\"args\", \", i32 \" + finalreg);\n }\n }\n }\n\n result.addCode(template.render() + \"\\n\");\n return result;\n }", "public CALL(Exp f, ExpList a) {func=f; args=a;}", "public Expression substitute(String var, Expression replacement) {\n\treturn \n\t new UnaryPrimitiveApplication(operator, \n\t\t\t\t\t argument.substitute(var, \n\t\t\t\t\t\t\t replacement));\n }", "void visitOperandFunction(ArgumentFunction operand);", "public static Expression transform(Expression input){\n\t\tshouldBeIgnored = false;\n\t\tif(check(input) == false) return null;\n\n\t\treturn recursiveTransform(input);\n\t}", "public interface ExpressionVisitor{\n\n void handel(BracketExpression bracketExpression);\n\n void handel(NaturalNumber naturalNumber);\n\n\n void handel(Sum sum);\n void handel(Difference difference);\n void handel(Product product);\n void handel(Quotient quotient);\n\n void handel(VariableExpression variableExpression);\n}", "protected String expandFunctions( String formula, String user, List<String> roles ) {\n formula = formula.replaceAll( \"USER\\\\(\\\\)\", String.format( \"\\\"%s\\\"\", user ) );\n\n // \"expand\" ROLES() function (regex: escape parentheses and escape backslash that escapes parentheses\n StringBuilder buf = new StringBuilder();\n int i = 0;\n for ( String role : roles ) {\n if ( i > 0 ) {\n buf.append( \";\" );\n }\n buf.append( String.format( \"\\\"%s\\\"\", role ) );\n i++;\n }\n return formula.replaceAll( \"ROLES\\\\(\\\\)\", buf.toString() );\n }", "Expression createExpression();", "void substituteIndicatorExpressions(Collection<Indicator> indicators);", "public static FunctionCallExpression parse(Expression firstOperand, TokenStream tokens)\n\t{\n\t\tFunctionCallExpression expr = null;\n\n\t\tArgumentList argList = ArgumentList.parse(tokens);\n\t\tif (argList != null) {\n\t\t\texpr = new FunctionCallExpression(firstOperand, argList,\n\t\t\t\t\tfirstOperand.getLine(), firstOperand.getColumn());\n\t\t}\n\n\t\treturn expr;\n\t}", "protected void replaceVariable(SqlCall sqlCall, ScriptVariable variable) throws ParamReplaceException {\n if (sqlCall.getOperator() instanceof SqlFunction) {\n new SqlFunctionRegisterVisitor().visit(sqlCall);\n }\n for (int i = 0; i < sqlCall.operandCount(); i++) {\n SqlNode sqlNode = sqlCall.getOperandList().get(i);\n if (sqlNode == null) {\n continue;\n }\n if (sqlNode instanceof SqlCall) {\n replaceVariable((SqlCall) sqlNode, variable);\n } else if (sqlNode instanceof SqlIdentifier) {\n if (sqlNode.toString().equalsIgnoreCase(variable.getNameWithQuote())) {\n sqlCall.setOperand(i, SqlNodeUtils.toSingleSqlLiteral(variable, sqlNode.getParserPosition()));\n }\n } else if (sqlNode instanceof SqlNodeList) {\n SqlNodeList nodeList = (SqlNodeList) sqlNode;\n\n List<SqlNode> toRemove = new LinkedList<>();\n List<SqlNode> toAdd = new LinkedList<>();\n\n for (SqlNode node : nodeList.getList()) {\n if (node instanceof SqlCall) {\n replaceVariable((SqlCall) node, variable);\n } else {\n if (node.toString().equalsIgnoreCase(variable.getNameWithQuote())) {\n List<SqlNode> variableNodes = SqlNodeUtils.createSqlNodes(variable, sqlCall.getParserPosition());\n if (CollectionUtils.isNotEmpty(variableNodes)) {\n toAdd.addAll(variableNodes);\n }\n toRemove.add(node);\n }\n }\n }\n nodeList.getList().removeAll(toRemove);\n nodeList.getList().addAll(toAdd);\n } else {\n Pattern variablePattern = Pattern.compile(String.format(Const.VARIABLE_PATTERN_TEMPLATE, variable.getName()), Pattern.CASE_INSENSITIVE);\n Matcher matcher = variablePattern.matcher(sqlNode.toSqlString(sqlDialect).getSql());\n if (matcher.find()) {\n log.warn(\"variable replace failed due to unknown sql type :\" + sqlNode.getKind() + \">\" + sqlNode.toSqlString(sqlDialect).getSql());\n throw new ParamReplaceException();\n }\n }\n }\n }", "public static MethodCallExpression accept(ExpressionVisitor visitor) { throw Extensions.todo(); }", "@Test\n public void testAliasedFunction() throws Exception {\n String sql = \"SELECT REPLACE(a, 'x', 'y') AS y FROM g\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node functionNode = verifyAliasSymbol(selectNode, Select.SYMBOLS_REF_NAME, \"y\", Function.ID);\n verifyProperty(functionNode, Function.NAME_PROP_NAME, \"REPLACE\");\n verifyElementSymbol(functionNode, Function.ARGS_REF_NAME, 1, \"a\");\n verifyConstant(functionNode, Function.ARGS_REF_NAME, 2, \"x\");\n verifyConstant(functionNode, Function.ARGS_REF_NAME, 3, \"y\");\n \n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"g\");\n \n verifySql(sql, fileNode);\n }", "private static void useSupplier(Supplier<Integer> expression){}", "@Override\n\tpublic Expression replacedVar(Map<Variable, Variable> replacement) {\n\t\tList<Tuple<String, Variable>> newVars = new ArrayList<Tuple<String, Variable>>(this.variables);\n\t\tnewVars.replaceAll(itm -> {\n\t\t\tif (itm.second() != null && replacement.containsKey(itm.second())) {\n\t\t\t\treturn new Tuple<String, Variable>(itm.first(), replacement.get(itm.second()));\n\t\t\t}\n\t\t\treturn itm;\n\t\t});\n\t\treturn new Expression(this.desc, newVars);\n\t}", "public Stmt createEval(Expr expr) {\n return xnf.Eval(expr.position(), expr);\n }", "<T extends Formula> T replaceArgs(T f, List<Formula> args);", "public void rewrite(LambdaExp lexp, Object formals, Object body,\n\t\t Translator tr, TemplateScope templateScopeRest)\n {\n lexp.setCallConvention(tr);\n rewriteFormals(lexp, formals, tr, templateScopeRest);\n if (body instanceof PairWithPosition)\n lexp.setFile(((PairWithPosition) body).getFileName());\n body = rewriteAttrs(lexp, body, tr);\n rewriteBody(lexp, body, tr);\n }", "public Object eval(String expression) throws Exception;", "public interface VariableExpander {\n /**\n * Return the input string with any variables replaced by their\n * corresponding value. If there are no variables in the string,\n * then the input parameter is returned unaltered.\n */\n public String expand(String param);\n }", "private String replaceVariable(String statement) {\r\n String pattern = \"\\\\$\\\\{(.+?)\\\\}\";\r\n Pattern p = Pattern.compile(pattern);\r\n Matcher m = p.matcher(statement);\r\n StringBuffer sb = new StringBuffer();\r\n while (m.find()) {\r\n String key = m.group(1);\r\n String value = this.getSqlFragment(key);\r\n m.appendReplacement(sb, \"\");\r\n sb.append(value == null ? \"\" : value);\r\n }\r\n m.appendTail(sb);\r\n return sb.toString();\r\n }", "protected SqlCall autoFixSqlCall(ScriptVariable variable) throws ParamReplaceException {\n SqlOperator sqlOperator = sqlCall.getOperator();\n List<SqlNode> operandList = new ArrayList<>();\n\n SqlKind kind = sqlCall.getOperator().kind;\n\n switch (kind) {\n case GREATER_THAN:\n case GREATER_THAN_OR_EQUAL:\n reduceVariableToMin(variable);\n replaceVariable(sqlCall, variable);\n operandList.addAll(sqlCall.getOperandList());\n break;\n case LESS_THAN:\n case LESS_THAN_OR_EQUAL:\n reduceVariableToMax(variable);\n replaceVariable(sqlCall, variable);\n operandList.addAll(sqlCall.getOperandList());\n break;\n case EQUALS:\n sqlOperator = SqlStdOperatorTable.IN;\n replaceVariable(sqlCall, variable);\n operandList.addAll(sqlCall.getOperandList());\n break;\n case NOT_EQUALS:\n sqlOperator = SqlStdOperatorTable.NOT_IN;\n replaceVariable(sqlCall, variable);\n operandList.addAll(sqlCall.getOperandList());\n break;\n case LIKE:\n SqlLikeOperator likeOperator = (SqlLikeOperator) sqlCall.getOperator();\n if (likeOperator.isNegated()) {\n sqlOperator = SqlStdOperatorTable.AND;\n operandList = variable.getValues().stream().map(val -> {\n ArrayList<SqlNode> operands = new ArrayList<>();\n operands.add(sqlCall.getOperandList().get(0));\n operands.add(new SqlSimpleStringLiteral(val));\n return SqlNodeUtils\n .createSqlBasicCall(SqlStdOperatorTable.NOT_LIKE, operands);\n }).collect(Collectors.toList());\n } else {\n sqlOperator = SqlStdOperatorTable.OR;\n operandList = variable.getValues().stream().map(val -> {\n ArrayList<SqlNode> operands = new ArrayList<>();\n operands.add(sqlCall.getOperandList().get(0));\n operands.add(new SqlSimpleStringLiteral(val));\n return SqlNodeUtils\n .createSqlBasicCall(SqlStdOperatorTable.LIKE, operands);\n }).collect(Collectors.toList());\n }\n break;\n default:\n replaceVariable(sqlCall, variable);\n operandList.addAll(sqlCall.getOperandList());\n break;\n }\n return SqlNodeUtils.createSqlBasicCall(sqlOperator, operandList);\n }", "public static RuntimeVariablesExpression runtimeVariables(Iterable<ParameterExpression> expressions) { throw Extensions.todo(); }", "JavaExpression createJavaExpression();", "@Test\n\tpublic void testFunctionCall() throws ParseException {\n\n\t\t// function call with one argument\n\t\tExpression expression = langParser(\"today('GMT')\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\tFunctionCall functionCall = (FunctionCall) expression;\n\t\tassertEquals(functionCall.getFunctionValue().getClass(), Identifier.class);\n\t\tassertEquals(((Identifier) functionCall.getFunctionValue()).getName(), \"today\");\n\t\tassertEquals(functionCall.getArguments().size(), 1);\n\t\tassertEquals(functionCall.getArguments().get(0).getClass(), StringLiteral.class);\n\t\tassertEquals(((StringLiteral) functionCall.getArguments().get(0)).getValue(), \"GMT\");\n\n\t\t// function call with no argument\n\t\texpression = langParser(\"now()\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\tfunctionCall = (FunctionCall) expression;\n\t\tassertEquals(functionCall.getFunctionValue().getClass(), Identifier.class);\n\t\tassertEquals(((Identifier) functionCall.getFunctionValue()).getName(), \"now\");\n\t\tassertEquals(functionCall.getArguments().size(), 0);\n\n\t\t// function call with an expression as function value\n\t\texpression = langParser(\"a(1)(3)\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\tfunctionCall = (FunctionCall) expression;\n\t\tassertEquals(functionCall.getFunctionValue().getClass(), FunctionCall.class);\n\t\tassertEquals(functionCall.getArguments().size(), 1);\n\n\t\t// function call with lambda expression\n\t\texpression = langParser(\"(fn(a,b)->mul(add(a,1),b))(4,5)\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\tfunctionCall = (FunctionCall) expression;\n\t\tassertEquals(functionCall.getFunctionValue().getClass(), FunctionLiteral.class);\n\t\tassertEquals(functionCall.getArguments().size(), 2);\n\t}", "@Override\n public Node rewriteFunctionExpression(FunctionExpression functionExpression) {\n RewriteItem varargRewriteItem = getVarargRewriteItem(functionExpression);\n if (varargRewriteItem != null) {\n functionExpression =\n FunctionExpression.Builder.from(functionExpression)\n .setStatements(\n redeclareItems(\n functionExpression.getBody(), ImmutableList.of(varargRewriteItem))\n .getStatements())\n .build();\n }\n\n // Redeclare non-final parameters.\n return FunctionExpression.Builder.from(functionExpression)\n .setStatements(\n redeclareItems(\n functionExpression.getBody(),\n getNonFinalRewriteItems(functionExpression))\n .getStatements())\n .build();\n }", "public interface IOptimizableFuncExpr {\n public AbstractFunctionCallExpression getFuncExpr();\n\n public int getNumLogicalVars();\n\n public int getNumConstantVals();\n\n public LogicalVariable getLogicalVar(int index);\n\n public void setLogicalExpr(int index, ILogicalExpression logExpr);\n\n public ILogicalExpression getLogicalExpr(int index);\n\n public void setFieldName(int index, List<String> fieldName);\n\n public List<String> getFieldName(int index);\n\n public void setFieldType(int index, IAType fieldName);\n\n public IAType getFieldType(int index);\n\n public void setOptimizableSubTree(int index, OptimizableOperatorSubTree subTree);\n\n public OptimizableOperatorSubTree getOperatorSubTree(int index);\n\n public IAlgebricksConstantValue getConstantVal(int index);\n\n public int findLogicalVar(LogicalVariable var);\n\n public int findFieldName(List<String> fieldName);\n\n public void substituteVar(LogicalVariable original, LogicalVariable substitution);\n\n public void setPartialField(boolean partialField);\n\n public boolean containsPartialField();\n\n public void setSourceVar(int index, LogicalVariable var);\n\n public LogicalVariable getSourceVar(int index);\n}", "public static Expression reduceExtensions(Expression expression) { throw Extensions.todo(); }", "public static MethodCallExpression call(Expression expression, Method method, Expression expression0, Expression expression1) { throw Extensions.todo(); }", "Expr expr();", "private void jetInvokeExpr(){\n\t\tInvokeExpr invokeExpr = (InvokeExpr) rExpr;\n\t\tSootMethodRef methodRef = invokeExpr.getMethodRef();\n\t\tif(StringModeling.stringMethods.contains(methodRef.getSignature())){\n\t\t\tjetStringOperation(invokeExpr);\n\t\t}else{\n\t\t\tValue thisBase = null;\n\t\t\tif(invokeExpr instanceof InterfaceInvokeExpr){\n\t\t\t\tthisBase = ((InterfaceInvokeExpr) invokeExpr).getBase();\n\t\t\t}else if(invokeExpr instanceof SpecialInvokeExpr){\n\t\t\t\tthisBase = ((SpecialInvokeExpr) invokeExpr).getBase();\n\t\t\t}else if(invokeExpr instanceof VirtualInvokeExpr){\n\t\t\t\tthisBase = ((VirtualInvokeExpr) invokeExpr).getBase();\n\t\t\t}\n\t\t\tString funStr = constructFunStr(invokeExpr);\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append(\"(\");\n\t\t\tsb.append(funStr);\n\t\t\tsb.append(\" \");\n\t\t\t\n\t\t\tif(thisBase != null){\n\t\t\t\tString thisBaseName = fileGenerator.getRenameOf(thisBase, false, this.stmtIdx);\n\t\t\t\tsb.append(thisBaseName);\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t\t\n\t\t\tfor(Value param : invokeExpr.getArgs()){\n\t\t\t\tif(param instanceof Constant){\n\t\t\t\t\tsb.append(param.toString());\n\t\t\t\t}else{\n\t\t\t\t\tString paramName = fileGenerator.getRenameOf(param, false, this.stmtIdx);\n\t\t\t\t\tif(param instanceof NumericConstant && paramName.startsWith(\"-\")){\n\t\t\t\t\t\t//-1 --> (- 0 1)\n\t\t\t\t\t\tsb.append(\"(- 0 \");\n\t\t\t\t\t\tsb.append(paramName.substring(1));\n\t\t\t\t\t\tsb.append(\")\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append(paramName);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t\t\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t}\n\t}", "public static String evaluate( String expr )\n {\n\n\tString[] arr = expr.split(\"//s+\");\n\tString ret = \"\";\n\tALStack<String> stack = new ALStack<String>();\n\tfor( String s: arr)\n\t stack.push(s);\n\n\tif( stack.peek().equals(\"(\")){\n\t stack.pop();\n\t int operator = findOp(stack.pop());\n\t ret = unload(operator, stack);\n\t return ret;\n\t}\n\treturn \"\";\n }", "@Override\n\tprotected void remapVariablesInThisExpression(Map<String, String> fromToVariableMap) {\n\t}", "public Object getExpression();", "private QueryFunction compile(Stack<QueryTerm> queryTerms) {\n if (queryTerms.isEmpty()) return (s, r) -> s;\n return (s, r) -> Queries.of(queryTerms.pop()).apply(compile(queryTerms).apply(s, r), r);\n }", "public static ExpressionTree makeExpression(String function,\n List<Field> inFields,\n Field resultField) {\n List<TreeNode> children = new ArrayList<TreeNode>(inFields.size());\n for (Field field : inFields) {\n children.add(makeField(field));\n }\n\n TreeNode root = makeFunction(function, children, resultField.getType());\n return makeExpression(root, resultField);\n }", "public static String variableSubstitution(String target, String prefix, String suffix,\n Function<String, Optional<CharSequence>> replacements) {\n if (target.contains(prefix)) {\n StringBuilder result = null;\n int ix = target.indexOf(\"${\");\n int lastEnd = 0;\n while (ix >= 0 && ix < target.length() - prefix.length()) {\n int endIx = target.indexOf(suffix, ix + prefix.length());\n if (endIx < ix) {\n break;\n }\n String toResolve = target.substring(ix + prefix.length(), endIx);\n Optional<CharSequence> maybeResolved = replacements.apply(toResolve);\n if (maybeResolved.isPresent()) {\n if (result == null) {\n result = new StringBuilder();\n }\n result.append(target.substring(lastEnd, ix));\n result.append(maybeResolved.get());\n }\n lastEnd = endIx + 1;\n ix = target.indexOf(prefix, endIx);\n }\n if (result != null) {\n if (lastEnd < target.length() - 1) {\n result.append(target.substring(lastEnd));\n }\n return result.toString();\n }\n }\n return target;\n }", "Expression simplifyForSideEffect();", "void onChange_placeholder()\n/* 53: */ {\n/* 54: 89 */ onChange_placeholder_xjal(this.placeholder);\n/* 55: */ }", "public void setExpression(Object expression);", "private void replaceThis(Expression e, Stack<Variable> variables) throws LookupException {\n // Replace occurences of 'this' by the right variable\n List<ThisLiteral> descendants = e.descendants(ThisLiteral.class);\n for (Element replacee : descendants) {\n NameExpression replacer = eFactory().createNeioNameExpression(lastElement);\n replacee.replaceWith(replacer);\n\n RegularMethodInvocation mi = (RegularMethodInvocation) replacer.parent();\n // Am I the target of a method invocation?\n if (mi.getTarget().equals(replacer)) {\n setThis(mi, replacer, variables);\n }\n }\n }", "private void setTemporaryExpression(String parameterName, String expression) throws SAXException {\n Parameter parameter = currentNode.getParameter(parameterName);\n if (parameter == null)\n throw new SAXException(\"Node \" + currentNode.getName() + \" has no parameter '\" + parameterName + \"'\");\n expressionMap.put(parameter, expression);\n }", "Unary expr(Expr e);", "public String evaluate(String expression);", "void visit(MultiplicationExpression expression);", "public static MethodCallExpression call(Method method, Iterable<Expression> expressions) { throw Extensions.todo(); }", "public static String resolvePlaceholders(String text)\n/* */ {\n/* 67 */ if (text == null) {\n/* 68 */ return text;\n/* */ }\n/* 70 */ return parseStringValue(null, text, text, new HashSet());\n/* */ }", "EvaluationResult evalExpression(ValueExp expr) { return evalExpression(expr, true); }", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Calc.Function function = token.getValue(); // e.g. CalcGrammar.Function.sin\n Expression argument = next.pollFirst().getTarget(); // e.g. Expression.Variable(\"x\")\n return new Expression.Function(function, argument);\n }", "public static String substituteExpressionLanguage(String stringToParse, Map<String, Object> variableMap) {\r\n \r\n return substituteExpressionLanguage(stringToParse, variableMap, true, true, true, false);\r\n \r\n }", "protected String evaluateAndReplaceExpressionValues(String row, int index, Object model,\r\n Map<String, Object> expandedContext, Pattern expressionPattern, ExpressionEvaluator expressionEvaluator) {\r\n\r\n Matcher matcher = expressionPattern.matcher(row);\r\n\r\n while (matcher.find()) {\r\n String matchingGroup = matcher.group(1);\r\n String expression = expressionConversionMap.get(matchingGroup);\r\n\r\n //adjust prefix for evaluation\r\n expression = expression.replace(UifConstants.LINE_PATH_BIND_ADJUST_PREFIX,\r\n this.getBindingInfo().getBindingPath() + \"[\" + index + \"].\");\r\n\r\n //get expression result\r\n Object value = expressionEvaluator.evaluateExpressionTemplate(expandedContext, expression);\r\n\r\n if (value != null) {\r\n row = row.replace(matcher.group(), value.toString());\r\n } else {\r\n row = row.replace(matcher.group(), \"\");\r\n }\r\n }\r\n\r\n return row;\r\n }", "ExpOperand createExpOperand();", "ParenthesisExpr createParenthesisExpr();", "@Override\n public R visit(CFunctionCallExpression exp) throws X {\n return visit((AFunctionCallExpression) exp);\n }", "public static BinaryExpression addAssignChecked(Expression expression0, Expression expression1, Method method, LambdaExpression lambdaExpression) { throw Extensions.todo(); }", "private String translateExpression(PropertyExpression e) {\n if (e.getObjectExpression() instanceof BinaryExpression) {\n BinaryExpression be = (BinaryExpression) e.getObjectExpression();\n if (be.getOperation().getText().equals(\"[\")) {\n String left = translateExpression(be.getLeftExpression());\n if (left.equals(inputName)) {\n return withInputSuffix(e.getPropertyAsString()) + \"[\" + translateExpression(be.getRightExpression()) + \"]\";\n }\n }\n }\n\n\n String obj = translateExpression(e.getObjectExpression());\n //TODO fix for \"not in main case\"\n //if (obj.equals(outputName) && shaderType.equals(\"vs\")) return withOutputSuffix(e.getPropertyAsString());\n if (obj.equals(outputName)) return withOutputSuffix(e.getPropertyAsString());\n //TODO fix for \"not in main case\"\n //if (obj.equals(inputName) && shaderType.equals(\"fs\")) return withOutputSuffix(e.getPropertyAsString());\n if (obj.equals(inputName)) return withInputSuffix(e.getPropertyAsString());\n //if (obj.equals(outputName)) return e.getPropertyAsString();\n //if (obj.equals(inputName)) return e.getPropertyAsString();\n if (obj.equals(\"\")) return e.getPropertyAsString();\n if ((e.getObjectExpression() instanceof BinaryExpression)) return \"(\" + obj + \").\" + e.getPropertyAsString();\n return obj + \".\" + e.getPropertyAsString();\n }", "public static Expression reduce(Expression expression) { throw Extensions.todo(); }", "public void tokenizeFunctionArguments(){\n for (int i = 0; i < tokenization.size(); i++){\n if (tokenization.get(i).kind == Token.Kind.FUN && tokenization.get(i+1).kind == Token.Kind.LEFT){\n int argIn = i + 2;\n HashMap<String, String> argNameMap = new HashMap<>();\n int argNum = 1;\n while (tokenization.get(argIn).kind == Token.Kind.ID || tokenization.get(argIn).kind == Token.Kind.COMMA || tokenization.get(argIn).kind == Token.Kind.RIGHT){\n if (tokenization.get(argIn).kind == Token.Kind.ID){\n argNameMap.put(tokenization.get(argIn).varName,\"$\" + argNum);\n tokenization.get(argIn).varName = \"$\" + argNum;\n argNum++;\n }\n argIn++;\n }\n //By here argIn is the index of the right parenthesis if there are arguments\n int funBodyIn = argIn;\n if (tokenization.get(funBodyIn).kind != Token.Kind.LBRACE){\n\n }\n else{\n int bracketBalance = 1;\n funBodyIn = funBodyIn + 1;\n while (bracketBalance > 0){\n if (tokenization.get(funBodyIn).kind == Token.Kind.ID && argNameMap.containsKey(tokenization.get(funBodyIn).varName)){\n tokenization.get(funBodyIn).varName = argNameMap.get(tokenization.get(funBodyIn).varName);\n }\n else if (tokenization.get(funBodyIn).kind == Token.Kind.LBRACE){\n bracketBalance++;\n }\n else if (tokenization.get(funBodyIn).kind == Token.Kind.RBRACE){\n bracketBalance--;\n }\n funBodyIn++;\n }\n }\n }\n }\n }", "@Override\r\n\tpublic void visit(VariableExpression variableExpression) {\n\r\n\t}", "public interface IExpressionRuntime\n{\n Object evaluate();\n}", "public final Object call() throws RecognitionException {\n Object result = null;\n\n\n CommonTree IDENT12=null;\n Object argument11 =null;\n\n\n\n ArrayList<Object> arguments = new ArrayList<Object> ();\n \n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:263:3: ( ^( CALL IDENT ( argument )* ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:263:5: ^( CALL IDENT ( argument )* )\n {\n match(input,CALL,FOLLOW_CALL_in_call472); \n\n match(input, Token.DOWN, null); \n IDENT12=(CommonTree)match(input,IDENT,FOLLOW_IDENT_in_call474); \n\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:263:18: ( argument )*\n loop13:\n do {\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0==ARG) ) {\n alt13=1;\n }\n\n\n switch (alt13) {\n \tcase 1 :\n \t // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:263:19: argument\n \t {\n \t pushFollow(FOLLOW_argument_in_call477);\n \t argument11=argument();\n\n \t state._fsp--;\n\n\n \t arguments.add(argument11); \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop13;\n }\n } while (true);\n\n\n match(input, Token.UP, null); \n\n\n \n FunctInfo functInfo = findFunction((IDENT12!=null?IDENT12.getText():null));\n if (functInfo == null) {\n BFlatGUI.debugPrint(0, \"No function match found for \" + (IDENT12!=null?IDENT12.getText():null));\n } else {\n //System.out.println(\"found arguments for \"+(IDENT12!=null?IDENT12.getText():null)+\": \"+arguments);\n String[] paramNames = functInfo.paramList.split(\";\");\n if (paramNames[0].equals(\"\")) paramNames = new String[]{};\n \n if (paramNames.length != arguments.size()) {\n BFlatGUI.debugPrint(0, \"# of arguments do not match # of parameters for call to \" + (IDENT12!=null?IDENT12.getText():null));\n } else {\n String[] types = functInfo.typeList.split(\";\");\n if (types[0].equals(\"\")) types = new String[]{};\n \n boolean parameterMatchArgsTypes = checkParamArgTypes(types, arguments);\n if (!parameterMatchArgsTypes) {\n BFlatGUI.debugPrint(0, \"arguments types and parameters types don't match for call to \" + (IDENT12!=null?IDENT12.getText():null));\n } else {\n \t\t BFlatGUI.setStack(scopeStack.getStackString(\"\"));\n \t\t BFlatGUI.setSymbolTable(smanager.toString());\n BFlatGUI.debugPrint(6, \"pausing at function call \"+(IDENT12!=null?IDENT12.getText():null));\n \t\t if (stepping)\n \t\t Pauser.waitForGo();\n \t\t \n \t\t BufferedTreeNodeStream blockStream = new BufferedTreeNodeStream(functInfo.body);\n \t\t //BFlatGUI.debugPrint(3, scopeStack.getStackString(getIndent()));\n \t\t \n indent++;\n \t\t BFlatGUI.debugPrint(3, getIndent()+\"Entering \"+(IDENT12!=null?IDENT12.getText():null)+\" function!\");\n \t\t \n \t\t EvaluatorWalker e = new EvaluatorWalker(blockStream, (IDENT12!=null?IDENT12.getText():null), functionDefinitions, arguments, paramNames);\n \t\t result = e.block();\n \t\t \n BFlatGUI.debugPrint(3, getIndent()+\"Leaving \"+(IDENT12!=null?IDENT12.getText():null)+\" function!\");\n \t\t BFlatGUI.setStack(scopeStack.getStackString(\"\"));\n scopeStack.pop();\n \n \t\t indent--;\n \t\t \n \t\t lastAssignmentResult = result;\n \t\t }\n \t } \n }\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return result;\n }", "public static Expression unwrap( Expression expr ) {\n\tType etype = ExpressionInternal.class.cast(expr).type() ;\n\n\tif (etype.equals( _t(\"java.lang.Boolean\")))\n\t return _call( expr, \"booleanValue\", _s(_boolean()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Byte\") ))\n\t return _call( expr, \"byteValue\", _s(_byte()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Character\") ))\n\t return _call( expr, \"charValue\", _s(_char()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Short\") ))\n\t return _call( expr, \"shortValue\", _s(_short()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Integer\") ))\n\t return _call( expr, \"intValue\", _s(_int()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Long\") ))\n\t return _call( expr, \"longValue\", _s(_long()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Float\") ))\n\t return _call( expr, \"floatValue\", _s(_float()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Double\") ))\n\t return _call( expr, \"doubleValue\", _s(_double()) ) ;\n\telse return expr ;\n }", "private Code<?> transform(Code.Quantifier e) {\n\t\tPair<SemanticType, Integer>[] e_types = e.types;\n\t\tPair<SemanticType, Integer>[] n_types = new Pair[e_types.length];\n\t\tCode<?> invariant = null;\n\t\tfor (int i = 0; i != e_types.length; ++i) {\n\t\t\tPair<SemanticType, Integer> p1 = e_types[i];\n\t\t\tCode.Variable var = Code.Variable(p1.first(), p1.second());\n\t\t\tPair<SemanticType,Code<?>> p2 = expand(var, p1.first(), 0);\n\t\t\tn_types[i] = new Pair<SemanticType,Integer>(p2.first(),p1.second());\n\t\t\tCode<?> ei = p2.second();\t\t\t\n\t\t\tif (ei != null) {\n\t\t\t\tinvariant = invariant == null ? ei : and(invariant, ei);\n\t\t\t}\n\t\t}\n\t\tCode<?> body = transform(e.operands[0]);\n\t\tif (invariant != null) {\n\t\t\t// We need to treat universal and existential quantifiers\n\t\t\t// differently.\n\t\t\tif(e.opcode == Code.Op.EXISTS) {\n\t\t\t\tbody = and(invariant, body);\n\t\t\t} else {\n\t\t\t\tbody = implies(invariant, body);\n\t\t\t}\n\t\t}\n\t\treturn Code.Quantifier(e.type, e.opcode, body, n_types, e.attributes());\n\t}", "public static MethodCallExpression call(Method method, Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static void ExpressionReplace ( Expression E, List<PortParameter> LPortParameter, List<List<Variable>>LLVariable)\n\t{\n\t\tif(E instanceof RequiredDataParameterReference)\n\t\t{\n\t\t\tRequiredDataParameterReference rdr = (RequiredDataParameterReference) E;\n\t\t\tint indexPortPara = LPortParameter.indexOf(rdr.getPortReference().getTarget());\n\t\t\tint indexVarPara = LPortParameter.get(indexPortPara).getType().getDataParameter().indexOf(rdr.getTargetParameter());\n\t\t\t\n\t\t\tVariableReference VarRef = expressionFactory.createVariableReference();\n\t\t\tVariable Var = LLVariable.get(indexPortPara).get(indexVarPara);\n\t\t\tVarRef.setTargetVariable(Var);\n\t\t\tEObject eo = E;\n\t\t\tif (eo.eContainer() instanceof FunctionCallExpression)\n\t\t\t{\n\t\t\t\tFunctionCallExpression fcall = (FunctionCallExpression) eo.eContainer();\n\t\t\t\tfcall.getActualData().set(fcall.getActualData().indexOf(E), VarRef);\n\t\t\t}\n\t\t\telse if (eo.eContainer() instanceof BinaryExpression)\n\t\t\t{\n\t\t\t\tBinaryExpression bexp = (BinaryExpression) eo.eContainer(); \n\t\t\t\tif(bexp.getLeftOperand().equals(E))\n\t\t\t\t\tbexp.setLeftOperand(VarRef);\n\t\t\t\tif(bexp.getRightOperand().equals(E))\n\t\t\t\t\tbexp.setRightOperand(VarRef);\n\t\t\t}\n\t\t\telse if (eo.eContainer() instanceof AssignmentAction)\n\t\t\t{\n\t\t\t\tAssignmentAction aa = (AssignmentAction)eo.eContainer();\n\t\t\t\tif(aa.getAssignedTarget().equals(E))\n\t\t\t\t\taa.setAssignedTarget(VarRef);\n\t\t\t\tif(aa.getAssignedValue().equals(E))\n\t\t\t\t\taa.setAssignedValue(VarRef);\n\t\t\t}\n\t\t\telse if(eo.eContainer() instanceof UnaryExpression)\n\t\t\t{\n\t\t\t\tUnaryExpression UE = (UnaryExpression)eo.eContainer();\n\t\t\t\tUE.setOperand(VarRef);\n\t\t\t}\n\t\t\telse if(eo.eContainer() instanceof InteractionSpecification)\n\t\t\t{\n\t\t\t\tInteractionSpecification ispectmp = (InteractionSpecification)eo.eContainer();\n\t\t\t\tispectmp.setGuard(VarRef);\n\t\t\t}\n\t\t}\t\t\n\t\telse if(E instanceof FunctionCallExpression)\n\t\t{\n\t\t\tFunctionCallExpression Fcall = (FunctionCallExpression) E;\n\t\t\tfor (Object o : Fcall.getActualData())\n\t\t\t{\n\t\t\t\tExpression E1 = (Expression) o;\n\t\t\t\tExpressionReplace(E1, LPortParameter,LLVariable);\n\t\t\t}\n\t\t}\n\t\telse if(E instanceof BinaryExpression)\n\t\t{\n\t\t\tBinaryExpression BE = (BinaryExpression) E;\t\n\t\t\tExpressionReplace(BE.getRightOperand(), LPortParameter,LLVariable);\n\t\t\tExpressionReplace(BE.getLeftOperand(), LPortParameter,LLVariable);\n\t\t}\n\t\telse if(E instanceof UnaryExpression)\n\t\t{\n\t\t\tUnaryExpression UE = (UnaryExpression)E;\n\t\t\tExpressionReplace(UE.getOperand(), LPortParameter,LLVariable);\n\t\t}\n\t\telse if(E instanceof IfAction)\n\t\t{\n\t\t\t//TODO\n\t\t}\t\t\t\n\t}", "public SimpleLambda getTheLambda(int offset) {\n int scopedVar = offset;\n return (int x, int y) -> x + y + scopedVar;\n }", "public static UnaryExpression convert_(Expression expression, Class type, Method method) { throw Extensions.todo(); }", "public static BinaryExpression addAssign(Expression expression0, Expression expression1, Method method, LambdaExpression lambdaExpression0, LambdaExpression lambdaExpression1) { throw Extensions.todo(); }", "public static MethodCallExpression call(Method method, Expression[] expressions) { throw Extensions.todo(); }", "void visit(Register expression);", "public static BinaryExpression leftShiftAssign(Expression expression0, Expression expression1, Method method, LambdaExpression lambdaExpression) { throw Extensions.todo(); }", "VariableExp createVariableExp();", "public static <E> Function<E, E> replaceNullWith(E val) {\r\n\t\treturn new ReplaceNulls<E>(val);\n\t}", "public void visit(Reference obj) {\n visitNode(obj.getExpression());\n }", "public static String substituteExpressionLanguage(String stringToParse, \r\n Map<String, Object> variableMap, boolean allowStaticClasses, boolean silent, boolean lenient, boolean logOnNull) {\r\n\r\n // //we dont have jexl so dont do this logic\r\n // return stringToParse;\r\n\r\n return GrouperClientUtils.substituteExpressionLanguage(stringToParse, variableMap, allowStaticClasses, silent, lenient, logOnNull);\r\n }", "private static String resolveVariables(String nodeValue, Collection<String> variableChain) {\n\n String resolved = nodeValue;\n Matcher varNameMatcher = varNamePattern.matcher(nodeValue);\n\n Collection<String> variablesToResolve = new HashSet<String> ();\n\n while (varNameMatcher.find()) {\n String varName = varNameMatcher.group(1);\n if (variableChain != null && variableChain.contains(varName)) {\n // Found recursive reference when resolving variables. Log message and return null.\n log.debug(\"Found a recursive variable reference when resolving ${\" + varName + \"}\");\n return null;\n } else {\n variablesToResolve.add(varName);\n }\n }\n\n for (String nextVariable : variablesToResolve) {\n String value = getPropertyValue(nextVariable);\n\n if (value != null && !value.isEmpty()) {\n Collection<String> thisVariableChain = new HashSet<String> ();\n thisVariableChain.add(nextVariable);\n\n if (variableChain != null && !variableChain.isEmpty()) {\n thisVariableChain.addAll(variableChain);\n }\n\n String resolvedValue = resolveVariables(value, thisVariableChain);\n\n if (resolvedValue != null) {\n resolved = resolved.replaceAll(\"\\\\$\\\\{\" + nextVariable + \"\\\\}\", resolvedValue);\n } else {\n // Variable value could not be resolved. Log message and return null.\n log.debug(\"Could not resolve the value \" + value + \" for variable ${\" + nextVariable + \"}\");\n return null;\n }\n } else {\n // Variable could not be resolved. Log message and return null.\n log.debug(\"Variable \" + nextVariable + \" cannot be resolved.\");\n return null;\n }\n }\n\n return resolved;\n }", "public static MethodCallExpression call(Method method, Expression expression) { throw Extensions.todo(); }", "public static UnaryExpression convertChecked_(Expression expression, Class type, Method method) { throw Extensions.todo(); }", "@FunctionalInterface\npublic interface StepExpr extends Expr {\n\n /**\n * {@inheritDoc}\n *\n * @return evaluated XML node views\n */\n @Override\n <N extends Node> IterableNodeView<N> resolve(Navigator<N> navigator, NodeView<N> view, boolean greedy)\n throws XmlBuilderException;\n\n}", "private String translateInfixExpression(InfixExpression e) {\n String left = translateExpression(e.getLeft());\n String right = translateExpression(e.getRight());\n return String.format(\"(%s %s %s)\", left, e.getOp(), right);\n }", "@Test\n\tpublic void test1() {\n\t\t// num must be implicitly final for the code to compile.\n\t\tfinal int num = 1;\n\t\t// We can read final local variables from the outer scope of lambda expressions\n\t\tConverter<Integer, String> stringConverter =\n\t\t (from) -> String.valueOf(from + num);\n\n\t\t\n\t\tSystem.out.println(stringConverter.convert(2)); // 3\n\t}", "Hojas eval();", "public static Expression wrap( Expression expr ) {\n\tType etype = ExpressionInternal.class.cast(expr).type() ;\n\tSignature sig = _s(_void(),etype) ;\n\n\tif (etype.equals( _boolean() ) )\n\t return _new( _t(\"java.lang.Boolean\"), sig, expr ) ; \n\telse if (etype.equals( _byte() ) )\n\t return _new( _t(\"java.lang.Byte\"), sig, expr ) ; \n\telse if (etype.equals( _char() ) )\n\t return _new( _t(\"java.lang.Character\"), sig, expr ) ; \n\telse if (etype.equals( _short() ) )\n\t return _new( _t(\"java.lang.Short\"), sig, expr ) ; \n\telse if (etype.equals( _int() ) )\n\t return _new( _t(\"java.lang.Integer\"), sig, expr ) ; \n\telse if (etype.equals( _long() ) )\n\t return _new( _t(\"java.lang.Long\"), sig, expr ) ; \n\telse if (etype.equals( _float() ) )\n\t return _new( _t(\"java.lang.Float\"), sig, expr ) ; \n\telse if (etype.equals( _double() ) )\n\t return _new( _t(\"java.lang.Double\"), sig, expr ) ; \n\telse\n\t return expr ;\n }", "public static List replaceInitWithPrepended(FEContext context,\n List fns, List stmts)\n {\n Function init = findInit(context, fns);\n fns.remove(init);\n StmtBlock oldBody = (StmtBlock)init.getBody();\n List newStmts = new ArrayList(stmts);\n newStmts.addAll(oldBody.getStmts());\n Statement newBody = new StmtBlock(oldBody.getContext(), newStmts);\n init = new Function(init.getContext(), init.getCls(),\n init.getName(), init.getReturnType(),\n init.getParams(), newBody,\n init.getPeekRate(), init.getPopRate(),\n init.getPushRate());\n fns.add(init);\n return fns;\n }", "private String resolveCall(String module, Call call)\n {\n if(call==null) return module;\n\n String callMod = modules.get(call.module);\n\n if(call.union!=null)\n {\n callMod = callMod + \"in(\"+ call.union +\").\\n\";\n }\n Module m = null; \n try\n {\n m = compileModule(callMod);\n\n if(call.containsVar)\n {\n module = resolveVars(module, m, call);\n }\n else\n {\n if(callSucceeds(m, call))\n {\n System.out.println(\"CALL SUCCESS - \"+call.callString);\n module = affirmCall(module, call);\n System.out.println(module);\n }\n else\n {\n System.out.println(\"CALL FAILED - \"+call.callString);\n module = removeCall(module, call);\n }\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n return module;\n }", "FunDef resolve(\n Exp[] args,\n Validator validator,\n List<Conversion> conversions);", "public static InvocationExpression invoke(Expression expression, Expression arguments[]) { throw Extensions.todo(); }", "public R visit(Call n) {\n R _ret=null;\n // System.out.println(\"checking1\");\n n.f0.accept(this);\n simple_exp=0;\n String s1 = (String)n.f1.accept(this);\n simple_exp=0;\n n.f2.accept(this);\n coming_from_param=1;\n //System.out.println(s1);\n String s3 = (String)n.f3.accept(this);\n int temp = new_temp++;\n \n String [] tokens = params.split(\" \");\n\n \n //System.out.println(\"checking \"+params);\n \n int i=0;\n while(i<tokens.length)\n {\n\t if(!tokens[i].equals(\"TEMP\"))\n\t {\n\t \t int temp1 = new_temp++;\n\t \t System.out.println(\"MOVE TEMP \"+temp1+\" \"+tokens[i] +\" \");\n\t \t tokens[i]=\"TEMP \"+temp1;\n\t \t i++;\n\t }\n\t else\n\t i=i+2;\n }\n params = \"\";\n for(i=0;i<tokens.length;i++)\n \t params = params+tokens[i]+\" \"; \n \n \n System.out.println(\"MOVE TEMP \"+temp+\" CALL \"+s1+ \" ( \"+params+\" ) \");\n n.f4.accept(this);\n coming_from_param=0;\n return (R)(\"TEMP \"+temp);\n }", "private static UnaryExpr retrieveUnaryExpression(Expression expression) {\n return expression.asUnaryExpr();\n }", "private static List renameAndQuoteArgs(String newCmdName, List<Object> expr) {\n\n // Construct the quoted argument list.\n List<? super Object> quotedArgs = new ArrayList<>();\n quotedArgs.add(\"quote\");\n quotedArgs.add(expr.get(1));\n\n // Construct the replacement expression.\n final List<? super Object> macro = new ArrayList<>();\n macro.add(newCmdName);\n macro.add(quotedArgs);\n\n // Copy the other arguments as-is.\n macro.addAll(expr.subList(2, expr.size()));\n return macro;\n }", "@Override\n protected void visitFunctionNode(FunctionNode node) {\n // TODO(lukes): move this logic to run as part of ResolveExpressionsTypeVisitor (possibly\n // extracted into a helper class)\n SoyFunction function = node.getSoyFunction();\n if (function instanceof BuiltinFunction) {\n visitNonpluginFunction((BuiltinFunction) function, node);\n } else {\n visitFunction(function, node);\n }\n\n // Recurse to operands.\n visitChildren(node);\n }", "public void accept(ExpressionNodeVisitor visitor);" ]
[ "0.5375613", "0.5259708", "0.5224061", "0.5180812", "0.51323557", "0.51001686", "0.5058104", "0.5057522", "0.50130165", "0.4966205", "0.49448967", "0.489199", "0.48709232", "0.48646075", "0.48636094", "0.48627913", "0.48581097", "0.485393", "0.4843561", "0.47956988", "0.47895962", "0.47681093", "0.47231627", "0.4711737", "0.46723703", "0.46649763", "0.46546862", "0.46501082", "0.46438476", "0.4636968", "0.46183708", "0.4616469", "0.46027422", "0.4602677", "0.45877236", "0.45834193", "0.45773846", "0.45686108", "0.45591092", "0.4521737", "0.45185903", "0.4509917", "0.4506224", "0.45038202", "0.45013478", "0.44955823", "0.44935244", "0.4483227", "0.44712374", "0.44677636", "0.44640058", "0.44611102", "0.44597527", "0.44575074", "0.4454723", "0.4454341", "0.4454074", "0.4446072", "0.4434049", "0.44296783", "0.44143507", "0.4413619", "0.43975723", "0.43935758", "0.43923116", "0.43896154", "0.43883547", "0.43878788", "0.43847013", "0.4361495", "0.4358997", "0.4356301", "0.4347863", "0.43382853", "0.43290567", "0.4326205", "0.43247128", "0.43235165", "0.43228126", "0.43212277", "0.43172944", "0.43149582", "0.4310585", "0.4306263", "0.43057734", "0.4303927", "0.42966405", "0.42955977", "0.42926902", "0.4290618", "0.42898726", "0.42851317", "0.42846945", "0.42817256", "0.42806083", "0.42787337", "0.42777193", "0.42731547", "0.42705455", "0.42666104" ]
0.6369897
0
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.sliding); b1=(Button)findViewById(R.id.h1); b2=(Button)findViewById(R.id.h2); b3=(Button)findViewById(R.id.h3); b4=(Button)findViewById(R.id.h4); cb=(CheckBox)findViewById(R.id.cb); sd=(SlidingDrawer) findViewById(R.id.slidingD); b1.setOnClickListener(this); b2.setOnClickListener(this); b3.setOnClickListener(this); b4.setOnClickListener(this); cb.setOnCheckedChangeListener(this); sd.setOnDrawerOpenListener(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onCheckedChanged(CompoundButton arg0, boolean arg1) { if(arg0.isChecked()){ sd.lock(); }else{ sd.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View arg0) { switch(arg0.getId()){ case R.id.h1: sd.open(); break; case R.id.h2: break; case R.id.h3: sd.toggle(); break; case R.id.h4: sd.close(); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onDrawerOpened() { MediaPlayer mp=MediaPlayer.create(this,R.raw.explosion); mp.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println("Prueba Ejecucion"); Scanner entrada = new Scanner(System.in); System.out.println("Escriba la palabra o frase: "); Invertirpalabra inv = new Invertirpalabra(); inv.invertirPalabra(entrada.nextLine()); System.out.println("La Palabra Invertida es: " + inv.invertirPalabra(entrada.nextLine())); entrada.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Will launch the application
public static void main(String[] args) { launch(args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void launchApp();", "public void startApp()\r\n\t{\n\t}", "private void launchMain() {\n\t\tfinal Intent i = new Intent(this, MainActivity.class);\n\t\tstartActivity(i);\n\t}", "public static void main(String[] args) \r\n\t {\r\n\t\tApplication.launch(args);\r\n\t }", "public void startApp() {\n\n\t\tboolean isContinue = true;\n\t\tint i = 0;\n\t\twhile (isContinue) {\n\t\t\ti = displayAppMenu();\n\t\t\texecuteMenuItem(i);\n\n\t\t\tif (i == APP_EXIT) {\n\t\t\t\tisContinue = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "void launch();", "void launch();", "void launch();", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tApplication.launch(args);\r\n\t}", "public void startApp() {\n if (midletPaused) {\n resumeMIDlet ();\n } else {\n initialize ();\n startMIDlet ();\n }\n midletPaused = false;\n }", "public void startApp() {\n if (midletPaused) {\n resumeMIDlet ();\n } else {\n initialize ();\n startMIDlet ();\n }\n midletPaused = false;\n }", "public static void main(String[] args) {\n\t\t\n\t\tApplication.launch(args);\n\t\t\n\t\t\n\t\t\n\n\t}", "public void startApp() {\n if (midletPaused) {\n resumeMIDlet();\n } else {\n initialize();\n startMIDlet();\n }\n midletPaused = false;\n }", "public static void main(String[] args) {\n\t\tApplication.launch(args);\n\n\t}", "public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}", "public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tApplication.launch(args); // Not needed for running from the command line\n\t}", "public static void main(String[] args) {\n Application.launch(args);\n }", "public static void main(final String... args) {\n\n Application.launch();\n }", "public static void main(String[] args){\r\n //Launch the JavaFX app\r\n Application.launch(args);\r\n }", "public static void main(String[] args) {\n\n Application.launch(args);\n }", "public void start() {\n\t\tSystem.out.println(\"Starting new application\");\n\t\texec.init(this);\n\t\tthread = new Thread(this);\n\t\trunning = true;\n\t\tgd.setFullScreenWindow(screen.getFrame());\n\t\tscreen.getFrame().setVisible(true);\n\t\tthread.start();\n\t}", "public static void launch() {\r\n\t\tint choice = EXIT;\r\n\t\tdo {\r\n\t\t\tchoice = displayMenu();\r\n\t\t\texecuteMenuItem(choice);\r\n\t\t} while (choice != EXIT);\r\n\t}", "public void launch() {\n m_frame.pack();\n m_frame.setVisible(true);\n }", "private void openApp(String packageName) {\n final String launcherPackage = packageName;\n assertThat(launcherPackage, notNullValue());\n mDevice.wait(Until.hasObject(By.pkg(launcherPackage).depth(0)), LAUNCH_TIMEOUT);\n\n // Launcher app\n Context context = InstrumentationRegistry.getContext();\n final Intent intent = context.getPackageManager()\n .getLaunchIntentForPackage(packageName);\n\n // Clear out any previous instances\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n context.startActivity(intent);\n\n // Wait for the app to appear\n mDevice.wait(Until.hasObject(By.pkg(packageName).depth(0)), LAUNCH_TIMEOUT);\n }", "public void startApp() {\r\n\t\ttry {\r\n\t\t\tFXMLLoader loader;\r\n\t\t\t// load the FXML resource\r\n\t\t\tif (isRegister) {\r\n\t\t\t\tloader = changeScreen(\"/view/HomeRegister.fxml\", new BorderPane(), \"Register\");\r\n\t\t\t\tHomeRegisterController regiController = loader.getController();\r\n\t\t\t\tregiController.setMain(this);\r\n\t\t\t} else {\r\n\t\t\t\tloader = changeScreen(\"/view/HomeIdentification.fxml\", new BorderPane(), \"Identification\");\r\n\t\t\t\tHomeIdentificationController identiController = loader.getController();\r\n\t\t\t\tidentiController.setMain(this);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n Application.launch(App.class, args);\n }", "public static void main(String[] args) {\n // Create the system.\n Application.launch( args );\n }", "public static void main(String... args) {\n\t\tApplication.launch(View.class, args);\n\t}", "public static void main(String[] args) {\r\n\t launch(args); \r\n \r\n}", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n launch(RestaurantManagementApp.class, args);\n }", "public static void main(String[] args) {\n //launch it\n launch();\n }", "public static void main(String[] args) {\n\t\tApplication.launch(TamaView.class, args);\n\n\t}", "public static void main(String[] args)\r\n {\r\n launch(args);\r\n }", "public static void main(String[] args) {\n launch(args);\r\n \r\n }", "public static void main(String[] args) {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n try {\n new LaunchGame().setVisible(true);\n } catch (IOException ex) {\n Logger.getLogger(LaunchGame.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n });\n }", "public static void launch(String[] args)\n {\n launch_WIN(filter(args));\n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void launchingBrowser() throws Exception {\n\n\t\tString applicationURL = merchEnv.getProtocol() + \"://\"\n\t\t\t\t+ merchEnv.getHost() + \":\" + merchEnv.getPort() + \"/\";\n\t\tselectedBrowser = merchEnv.getBrowser();\n\t\ttry {\n\t\t\tbaseScreen = new BaseScreen(selectedBrowser, applicationURL,\n\t\t\t\t\tmerchEnv.getContext(), merchEnv, merchUserInfo, merchUI);\n\t\t} catch (ScreenException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void main(String[] args) {\n launch(args);\r\n }", "public static void main(String[] args) {\n launch(args);\r\n }", "public static void main(String[] args) {\n launch(args);\r\n }", "boolean launch();", "public void startActivity(Stage primaryStage) {\n\n this.window = primaryStage;\n\n this.window.setTitle(\"TAGGER\");\n\n firstScene = new LauncherWindow(this);\n\n this.window.setScene(firstScene.createAndReturnScene());\n scenesSeen.add(firstScene);\n\n this.window.show();\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "@Override\r\n\tpublic void launch(ISelection arg0, String arg1) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tSystem.out.println(\"Ok launch\");\r\n\t\tMessageBox dialog = new MessageBox(shell, SWT.ICON_QUESTION | SWT.OK\r\n\t\t\t\t| SWT.CANCEL);\r\n\t\tdialog.setText(\"ZCWeb Running Application\");\r\n\t\tdialog.setMessage(\"You choosed to run/debug ---- \"\r\n\t\t\t\t+ sampleGetSelectedProject() + \" ---- as a Web Application\");\r\n\t\tdialog.open();\r\n\t\tLaunchWebApp.main(args);\r\n\r\n\t}", "public abstract void start(String[] args, Window window);", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "protected void startApp() throws MIDletStateChangeException {\n\t\tform = new Form(\"Welcome\");\r\n\t\tform.append(\"Welcome to demo app\");\r\n\t\tdisplay = Display.getDisplay(this);\r\n\t\tdisplay.setCurrent(form);\r\n\t}", "public static void launch(String[] args) {\r\n\t\t// Figure out the right class to call\r\n\t\tStackTraceElement[] cause = Thread.currentThread().getStackTrace();\r\n\r\n\t\tboolean foundThisMethod = false;\r\n\t\tString callingClassName = null;\r\n\t\tfor (StackTraceElement se : cause) {\r\n\t\t\t// Skip entries until we get to the entry for this class\r\n\t\t\tString className = se.getClassName();\r\n\t\t\tString methodName = se.getMethodName();\r\n\t\t\tif (foundThisMethod) {\r\n\t\t\t\tcallingClassName = className;\r\n\t\t\t\tbreak;\r\n\t\t\t} else if (LWJGUIApplication.class.getName().equals(className) && \"launch\".equals(methodName)) {\r\n\t\t\t\tfoundThisMethod = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (callingClassName == null) {\r\n\t\t\tthrow new RuntimeException(\"Error: unable to determine main class\");\r\n\t\t}\r\n\t\tObject object = null;\r\n\t\ttry {\r\n\t\t\tClass<?> theClass = Class.forName(callingClassName, true, Thread.currentThread().getContextClassLoader());\r\n\t\t\tobject = theClass.newInstance();\r\n\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tlaunch((LWJGUIApplication) object,args);\r\n\t}", "public static void main (String[] args) {\n launch(args);\n }", "public static void main(String[] args)\r\n {\r\n launch(args);\r\n }", "public static void main(String[] args) {\n\t\tGameEnvironment runningGame = new GameEnvironment();\n\t\trunningGame.launchStartupScreen();\n\t}", "public void launchPhone(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_DIAL);\n \tsendIntent.setData(Uri.parse(\"tel:\"));\n \t\n \tfinal ResolveInfo mInfo = pacman.resolveActivity(sendIntent, 0);\n \tString s = pacman.getApplicationLabel(mInfo.activityInfo.applicationInfo).toString();\n \t\n \tif (s != null && s.length() > 2) {\n startActivity(sendIntent);\n return;\n } else {\n \tToast.makeText(context, \"No Phone Call App Availible\", Toast.LENGTH_SHORT).show();\n \treturn;\n }\n\t}", "public void startApplication() {\n\t\tgameView = new GameGUI(this);\n\t\t\n\t\t/*\n\t\t * Create bonus GUI now.\n\t\t * TODO: Use swing worker thread to create bonus GUI\n\t\t * \t\t that way if GUI had more bells and whistles to it\n\t\t * \t\t the bonus GUI creation wouldn't take up processing time\n\t\t * \t\t on the main thread.\n\t\t */\n\t\tcreateBonusGUI();\n\t\t\n\t\t//GUI created and ready to show to the user\n\t\tgameView.allowVisibility();\n\t\tGameSounds.startBackgroundMusic();\n\t}", "public static void main(String[] args) {\n launch(args);\n\n }", "public void launchSlave()\n {\n \tIntent mIntent = new Intent(MainActivity.this, SlaveActivity.class);\n \tstartActivityForResult(mIntent, NEW_SLAVE_ACTIVITY);\n }", "public static void main(String[] args) {\r\n\t launch(args);\r\n\t}", "public static void main(String[] args) {\n launch(GretellaApp.class, args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args)\n {\n launch(args);\n }", "public static void main(String[] args) {\n\t\tlaunch(PhotoFlowApplication.class, args);\n\t}", "public static void main(String[] args) {\n\n launch(args);\n }", "public void open() {\n display = Display.getDefault();\n createContents();\n shell.open();\n shell.layout();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch()) {\n display.sleep();\n }\n }\n\n // programme stop with exit 0\n System.exit(0);\n\n }", "public static void main(String[] args) {\n\tNaukriPopup oo= new NaukriPopup();\n\too.launch();\n\too.launch1();\n}", "public static void main(String[] args)\r\n {\r\n launch(args);\r\n }", "public void launchStartupScreen() {\n\t\tnew StartUpScreen(this);\n\t}", "public static void main(String[] args) {\n\t launch(args);\n\t }", "public static void main(String[] args) {\n\t launch(args);\n\t }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }" ]
[ "0.84447134", "0.75141436", "0.74251604", "0.7326748", "0.718646", "0.7172269", "0.7172269", "0.7172269", "0.7143943", "0.7142146", "0.7142146", "0.71390504", "0.7125771", "0.7105848", "0.7064719", "0.7064719", "0.70594597", "0.70594597", "0.70594597", "0.69810766", "0.6966568", "0.69367", "0.6935497", "0.6932919", "0.6924653", "0.6833451", "0.6798683", "0.67941326", "0.67853564", "0.6764753", "0.6751386", "0.6722094", "0.67057973", "0.65545416", "0.65545416", "0.65545416", "0.65545416", "0.65545416", "0.65443915", "0.65234995", "0.6515908", "0.6512312", "0.64916617", "0.646843", "0.64600134", "0.6457307", "0.6456573", "0.64518404", "0.64518404", "0.64518404", "0.6445933", "0.6438471", "0.64290965", "0.64243275", "0.6409704", "0.6390008", "0.6390008", "0.6390008", "0.6390008", "0.6390008", "0.6390008", "0.6390008", "0.6389087", "0.6387265", "0.638278", "0.6369652", "0.63680947", "0.636603", "0.63618034", "0.6361675", "0.63506794", "0.6346182", "0.63461167", "0.63393", "0.63393", "0.63393", "0.63393", "0.63393", "0.63393", "0.6337157", "0.6329181", "0.6328852", "0.6327251", "0.6320598", "0.63194263", "0.6310681", "0.631068", "0.631068", "0.6309898", "0.6309898", "0.6309898", "0.6309898", "0.6309898", "0.6309898", "0.6309898", "0.6309898", "0.6309898", "0.6309898", "0.6309898", "0.6309898", "0.6309898" ]
0.0
-1
Created by Administrator on 2017/1/17.
public interface ArticleDao extends PagingAndSortingRepository<Article,Long> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public void create() {\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "Petunia() {\r\n\t\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private TMCourse() {\n\t}", "public void mo38117a() {\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo4359a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public Pitonyak_09_02() {\r\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void autoDetails() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private UsineJoueur() {}", "@Override\n public void init() {\n\n }", "private ReportGenerationUtil() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "private static void oneUserExample()\t{\n\t}", "private Singletion3() {}", "@Override\n protected void getExras() {\n }", "public void mo55254a() {\n }", "protected Doodler() {\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public static void created() {\n\t\t// TODO\n\t}", "CreationData creationData();", "@Override\n public Date getCreated()\n {\n return null;\n }", "@Override\n void init() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public void verarbeite() {\n\t\t\r\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private void getStatus() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private SingleTon() {\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void init() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo12930a() {\n }", "private MApi() {}", "Consumable() {\n\t}", "private void init() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "protected void onFirstUse() {}", "@Override\n protected void startUp() {\n }", "protected void mo6255a() {\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "private Aliyun() {\n\t\tsuper();\n\t}", "private CreateDateUtils()\r\n\t{\r\n\t}", "@Override\n public void initialize() {\n \n }" ]
[ "0.6265855", "0.6055953", "0.57983196", "0.577991", "0.5777648", "0.57686025", "0.574927", "0.57467324", "0.5745444", "0.57232845", "0.5704575", "0.568985", "0.5655042", "0.56472826", "0.5645849", "0.5642496", "0.56422496", "0.5622656", "0.5621176", "0.5621176", "0.56188256", "0.5618226", "0.5617877", "0.5617655", "0.5613148", "0.5613148", "0.5611031", "0.5603672", "0.5603518", "0.5601536", "0.55778074", "0.5565112", "0.5559388", "0.55556005", "0.55469847", "0.5538849", "0.552213", "0.551909", "0.5516536", "0.55129445", "0.5507815", "0.5495045", "0.5495045", "0.5495045", "0.5495045", "0.5495045", "0.5495045", "0.5495045", "0.54885715", "0.54854506", "0.5475826", "0.5475826", "0.5475826", "0.5475826", "0.5475826", "0.5475826", "0.54690325", "0.54573077", "0.5452352", "0.5452142", "0.5447737", "0.5446038", "0.54390466", "0.5406849", "0.54033995", "0.5393798", "0.538618", "0.53668994", "0.53608584", "0.53544235", "0.5354092", "0.53540117", "0.5347629", "0.53471345", "0.5343068", "0.5341233", "0.5341233", "0.5336082", "0.5333828", "0.53262055", "0.53256494", "0.5318625", "0.5318296", "0.5317105", "0.5310815", "0.5304859", "0.53027517", "0.53021437", "0.52911323", "0.5290908", "0.5283374", "0.52774674", "0.5268635", "0.526819", "0.526819", "0.526819", "0.526819", "0.526819", "0.52678376", "0.52672815", "0.526578" ]
0.0
-1
Retrieves a list of all users from database
@Override public ObservableList<User> getAllUsers() { return controller.getAllUsers(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getAllUsers();", "public List<User> getAllUsers();", "List<User> getAllUsers();", "List<User> getAllUsers();", "public List<User> getAllUsers(){\n myUsers = loginDAO.getAllUsers();\n return myUsers;\n }", "public List<User> queryAllUsers() {\n \tList<User> userList = new ArrayList<>();\n\tUser user;\n String sql = \"SELECT * FROM users\";\n\ttry {\t\n this.statement = connection.prepareStatement(sql);\n this.resultSet = this.statement.executeQuery();\n while(this.resultSet.next()) {\n\t\tuser = new User();\n user.setUserName(this.resultSet.getString(\"user_name\"));\n user.setHashedPassword(this.resultSet.getString(\"hashed_password\"));\n\t\tuser.setEmail(this.resultSet.getString(\"email\"));\n user.setHashedAnswer(this.resultSet.getString(\"hashed_answer\"));\n user.setIsActivated(this.resultSet.getInt(\"is_activated\"));\n user.setPublicKey(this.resultSet.getString(\"pubkey\"));\n\t\tuserList.add(user);\n }\t\n this.statement.close();\n\t} \n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n return userList;\n }", "public List<Users> getUserList(){\n\t\tList<Users> users = (List<Users>) this.userDao.findAll();\n\t\treturn users;\n\t}", "public List<User> findAll() \n\t{\n\t\tString sql = \"SELECT * FROM VIDEOGAMESTORE.USERS\";\n\t\t\n\t\t// Instantiate a new list of Users.\n\t\tList<User> userList = new ArrayList<User>();\n\t\t\n\t\ttry {\n\t\t\tSqlRowSet srs = jdbcTemplate.queryForRowSet(sql);\n\t\t\twhile(srs.next())\n\t\t\t{\n\t\t\t\t// Add a new User to the list for every row that is returned\n\t\t\t\tuserList.add(new User(srs.getString(\"USERNAME\"), srs.getString(\"PASSWORD\"), srs.getString(\"EMAIL\"),\n\t\t\t\t\t\tsrs.getString(\"FIRST_NAME\"), srs.getString(\"LAST_NAME\"), srs.getInt(\"GENDER\"), srs.getInt(\"USER_PRIVILEGE\"), srs.getInt(\"ID\")));\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn userList;\n\t}", "public List listUsers() {\n Session session = HibernateSessionFactory.getSessionFactory().openSession();\n Transaction tx = null;\n List users = null;\n try {\n tx = session.beginTransaction();\n users = session.createQuery(\"FROM User\").list();\n for (Iterator iterator = users.iterator(); iterator.hasNext(); ) {\n User user = (User) iterator.next();\n System.out.print(\"id: \" + user.getId());\n System.out.print(\" Username: \" + user.getUsername());\n System.out.print(\" Password: \" + user.getPassword());\n System.out.println(\" Email: \" + user.getEmail());\n }\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null) tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n return users;\n }", "public List<User> retrieveAllUsers() {\n\t\treturn (List<User>) userRepository.findAll();\n\t}", "List<User> getAll() throws SQLException;", "@Override\n public List<User> selectAllUsers() {\n\n List<User> userList = new ArrayList<>();\n\n try (Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD)) {\n\n String sql = \"SELECT * FROM ers_users\";\n\n PreparedStatement ps = connection.prepareStatement(sql);\n\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n userList.add(\n new User(\n rs.getInt(1)\n , rs.getString(2)\n , rs.getString(3)\n , rs.getString(4)\n , rs.getString(5)\n , rs.getString(6)\n , rs.getInt(7)\n )\n );\n }\n }\n\n catch (SQLException e) {\n\n e.printStackTrace();\n }\n\n return userList;\n }", "@GetMapping(\"/users\")\n\tpublic List<User> retrieveAllUsers() {\n\t\treturn userService.findAll();\n\t}", "Iterable<User> getAllUsers();", "public static List<User> getAllUsers(){\n\t\t// getting all users\n\t\treturn dao.getAllUsers();\n\t}", "public List<TbUser> getAllUsers() {\n return userRepository.findAll();\n }", "@Override\n public List<User> getAllUsers() {\n\n Session session = sessionFactory.openSession();\n Transaction tx = session.beginTransaction();\n List<User> hiberusers =\n session.createQuery(\"From User\").list();\n tx.commit();\n session.close();\n return hiberusers;\n }", "public List<User> getAllUsers() {\n\t\tLog.i(TAG, \"return all users list.\");\n\t\tList<User> result = new ArrayList<User>();\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tString getUsers = \"select * from \" + TABLE_USER;\n\t\tCursor cursor = db.rawQuery(getUsers, null);\n\t\tfor (cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()) {\n\t\t\tUser user = new User(cursor.getInt(0), cursor.getString(1), cursor.getString(2));\n\t\t\tresult.add(user);\n\t\t}\n\t\treturn result;\n\t}", "public List<Users> getAllUsers() {\r\n\t\t// return usDao.findAll();\r\n\t\treturn usDao.getAllUsers();\r\n\t}", "public ArrayList<IndividualUser> listAllUsers() {\n try {\n PreparedStatement s = sql.prepareStatement(\"SELECT id, userName, firstName, lastName FROM Users \");\n s.execute();\n ResultSet results = s.getResultSet();\n ArrayList<IndividualUser> users = new ArrayList<>();\n if (!results.isBeforeFirst()) {\n results.close();\n s.close();\n return users;\n }\n\n while (!results.isLast()) {\n results.next();\n IndividualUser u = new IndividualUser(results.getInt(1), results.getString(2), results.getString(3), results.getString(4));\n\n users.add(u);\n\n }\n\n results.close();\n s.close();\n\n return users;\n } catch (SQLException e) {\n sqlException(e);\n return null;\n }\n }", "@Override\r\n\tpublic List<User> queryAllUsers() {\n\t\tList<User> users = userMapper.queryAllUsers();\r\n\t\treturn users;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<User> getUsers() \r\n\t{\n\t\tSession session = sessionFactory.getCurrentSession();\r\n String sql = \"select * from users\";\r\n Query query = session.createSQLQuery(sql).addEntity(User.class);\r\n\t\tSystem.out.println(\"getUsers list is : \" + query.list().size());\r\n\t\treturn query.list();\r\n\t}", "@Override\n\tpublic List<User> getUserList() {\n\t\treturn userDao.queryUser();\n\t}", "List<User> fetchAllUSers();", "@Override\n\tpublic List<User> getAllUsers() {\n\t\tlog.info(\"get all users!\");\n\t\treturn userRepository.findAll();\n\t}", "@Override\n\tpublic List<User> list() \n\t{\n\t\treturn userDAO.list();\n\t}", "public List<User> getAllUsers(){\n return userRepository.findAll();\n }", "public List<User> getAllUsers() {\n\t\treturn userDao.selectAllUsers();\n\t}", "List<User> getUsers();", "List<User> getUsers();", "public List<User> getAllUsers() {\n\t\tfactory = new Configuration().configure().buildSessionFactory();\n\t\tsession = factory.getCurrentSession();\n\t\tsession.beginTransaction();\n\t\tQuery query = session.createQuery(\"from User\");\n\t\tList<User> list = query.getResultList();\n\t\tsession.close();\n\t\treturn list;\n\n\t\t\n\t}", "public List<User> listAll() throws Exception;", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "@Override\n\tpublic List<ERSUser> getAllUsers() {\n\t\treturn userDao.selectAllUsers();\n\t}", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "public List<User> getAll() {\n\t\treturn service.getAll();\n\t}", "@Override\n\tpublic ArrayList<User> findAll() {\n\t\t\n\t\treturn userDao.querydAll();\n\t}", "@Override\r\n\tpublic List<User> findAllUsers() {\n\t\treturn userDAO.findAllUsers();\r\n\t}", "@Override\n\tpublic List<User> getAllUser() {\n\t\tList<User> users = dao.searchAllUser();\n\t\treturn users;\n\t}", "@SuppressWarnings(\"unchecked\")\n @Override\n public List<User> listUsers() {\n Session session = this.sessionFactory.getCurrentSession();\n List<User> UsersList = session.createQuery(\"from User\").list();\n for(User u : UsersList){\n logger.info(\"User List::\"+u);\n }\n return UsersList;\n }", "public List<User> getAllUsers() {\n List<User> users = null;\n Session session = null;\n try {\n session = openSession();\n users = session.createCriteria(User.class).list();\n } catch (HibernateException he) {\n logger.error(\"Hibernate Exception: \" + he);\n } catch (Exception e) {\n logger.error(\"Exception: \" + e);\n } finally {\n if (session != null) {\n session.close();\n }\n }\n return users;\n }", "@Override\n\tpublic List<Users> getAll() {\n\t\treturn usersDAO.getAll();\n\t}", "public List<User> getAllUsers() {\n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction();\n\n\t\tQuery query = session.createQuery(\"from User u order by u.lastLogin DESC\");\n\t\tList<User> userList = query.list();\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\n\t\treturn userList;\n\t}", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "public static List<UserDB> getAllUsers() {\n\n\t\tUserDB newUser = new UserDB();\n\n\t\treturn newUser.getAllUsers();\n\t}", "public List<User> list() {\n\t\treturn userDao.list();\n\t}", "public List<User> getAllUsers() {\n\t\tList<User> users = new ArrayList<User>();\n\t\tString selectQuery = \"SELECT * FROM \" + UserDataSource.TABLE_USERS;\n\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tCursor c = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tif (c.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tUser user = UserDataSource.cursorToUser(c);\n\n\t\t\t\t// adding to list\n\t\t\t\tusers.add(user);\n\t\t\t} while (c.moveToNext());\n\t\t}\n\n\t\treturn users;\n\t}", "public List<User> getAllUsers() {\n\t\tTypedQuery<User> query = em.createNamedQuery(\"User.findAll\", User.class);\n\n\t\tList<User> result = query.getResultList();\n\t\tlog(\"got all users, result size: \" + result.size());\n\t\treturn result;\n\t}", "@Override\n\tpublic List<Object> getAllUsers() {\n\t\tList<Object> usersList = new ArrayList<Object>();\n\t\tList<TestUser> users = dao.getAll();\n\t\tSystem.out.println(dao.exists(5));\n\t\tfor(TestUser user : users){\n\t\t\tMap<String,Object> m = new HashMap<String,Object>();\n\t\t\tm.put(\"id\", user.getId());\n\t\t\tm.put(\"name\", user.getUsername());\n\t\t\tm.put(\"pwd\", user.getPassword());\n\t\t\tJSONObject j = new JSONObject(m);\n\t\t\tusersList.add(j);\n\t\t}\n\t\treturn usersList;\n\t}", "@Override\n\tpublic List<User> getallUserDetail() {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\t// select all from table user\n\t\tString sql = \"SELECT * FROM user\";\n\t\tList<User> listuser = jdbcTemplate.query(sql, new RowMapper<User>() {\n\n\t\t\t@Override\n\t\t\tpublic User mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\tUser user = new User();\n\t\t\t\t// set parameters\n\t\t\t\tuser.setUserid(rs.getLong(\"user_id\"));\n\t\t\t\tuser.setEmailid(rs.getString(\"emailid\"));\n\t\t\t\tuser.setAppversion(rs.getString(\"appversion\"));\n\t\t\t\tuser.setGcmregistartionkey(rs.getString(\"gcmregistartionkey\"));\n\t\t\t\tuser.setMobileno(rs.getString(\"mobileno\"));\n\t\t\t\tuser.setUuid(rs.getString(\"uuid\"));\n\t\t\t\tuser.setUsername(rs.getString(\"username\"));\n\t\t\t\tuser.setCreateddate(rs.getDate(\"createddate\"));\n\t\t\t\treturn user;\n\t\t\t}\n\n\t\t});\n\n\t\treturn listuser;\n\n\t}", "public List<User> fetchAll()\n {\n String query = \"SELECT * FROM user\";\n RowMapper<User> userRowMapper = new BeanPropertyRowMapper<>(User.class); // a collection type that holds the results of the query\n List<User> userList; // list of users that will be returned\n try\n {\n userList = template.query(query, userRowMapper); // call the database and assign the results to the userList\n } catch (EmptyResultDataAccessException e)\n {\n userList = new ArrayList<>(); // return an empty arrayList\n }\n return userList;\n }", "List<KingdomUser> getAllUsers();", "@Override\n\tpublic List<User> getAll() {\n\t\treturn userDao.getAll();\n\t}", "public List<User> getUserList() {\n return getSqlSession().getMapper(UserMapper.class).getUserList();\n }", "@Override\n\tpublic List<User> selectAllUser() {\n\t\tList<User> users = null;\n\t\ttry {\n\t\t\tusers = client.queryForList(\"selectAllUser\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn users;\n\n\t}", "protected void getUserList() {\n\t\tmyDatabaseHandler db = new myDatabaseHandler();\n\t\tStatement statement = db.getStatement();\n\t\t// db.createUserTable(statement);\n\t\tuserList = new ArrayList();\n\t\tsearchedUserList = new ArrayList();\n\t\tsearchedUserList = db.getUserList(statement);\n\t\tuserList = db.getUserList(statement);\n\t\tusers.removeAllElements();\n\t\tfor (User u : userList) {\n\t\t\tusers.addElement(u.getName());\n\t\t}\n\t}", "public Users findAll() {\n\tthis.createConnection();\n try {\n Connection con = this.getCon();\n PreparedStatement stmnt = con.prepareStatement(this.getAllQuery());\n ResultSet rs = stmnt.executeQuery();\n return get(rs);\n } catch (SQLException e) {\n System.out.println(\"SQL Exception\" + e.getErrorCode() + e.getMessage());\n e.getStackTrace();\n return new Users();\n }\n }", "public void getAllUsers() {\n\t\t\n\t}", "@Override\r\n\tpublic List<User> getAll() {\n\t\treturn users;\r\n\t}", "@Override\r\n\tpublic User getAllUser() {\n\t\tList<User> list=null;\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT * FROM USER\";\r\n\t\t\treturn qr.query(sql, new BeanHandler<User>(User.class));\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static List<User> getUsersList(){\n\t\tWSResponse response = null;\n\t\tList<User> resultList = new ArrayList<User>();\n\t\ttry{\n\t\tPromise<WSResponse> result = WS.url(Utils.getApiUrl()+Urls.GET_USERS_URL)\n\t\t\t\t\t\t\t\t\t\t.setContentType(Urls.CONTENT_TYPE_JSON)\n\t\t\t\t\t\t\t\t\t\t.get();\n\t\tresponse = result.get(10000);\n\t\tGson gson = new Gson();\n\t\tUser[] users = gson.fromJson(response.getBody(), User[].class);\n\t\tfor(int i=0; i<users.length; i++){\n\t\t\tresultList.add(users[i]);\n\t\t}\n\t\t} catch(Exception exception){\n\t\t\tController.flash(Messages.ERROR, Messages.CANT_LOAD_USERS + exception);\n\t\t}\n\t\treturn resultList;\n\t}", "@RequestMapping(method = RequestMethod.GET)\n\tpublic List<User> getAll() {\n\t\tList<User> users = dao.getAll();\n\t\treturn users;\n\t}", "public List<User> allUserRecords() {\n\t\tSystem.out.println(\"Calling getAllUserRecords() Method To Fetch Users Record\");\t\n\t\tList<User> userList = userDAO.listUser();\n\t\treturn userList;\n\t}", "public ArrayList<User> showUsers() throws SQLException {\n ArrayList<User> users = new ArrayList<>();\n PreparedStatement pr = connection.prepareStatement(Queries.showUserList);\n ResultSet result = pr.executeQuery();\n while (result.next()) {\n users.add(new User(\n result.getInt(\"id\"),\n result.getString(\"user_full_name\"),\n result.getString(\"email\"),\n result.getInt(\"phone\")));\n }\n pr.close();\n return users;\n }", "public List<User> getAllUsers() {\n\t\treturn userDao.getAllUsers();\n\t}", "@GetMapping(\"/allusers\")\n\t@Secured({CommonConstants.ROLE_EMPLOYEE,CommonConstants.ROLE_ADMIN})\n\tpublic ResponseEntity<List<UserEntity>> fetchUsers(){\n\t\treturn new ResponseEntity<List<UserEntity>>(this.service.findAll(), HttpStatus.OK);\n\t}", "public List<User> getAllUsers() {\n return users;\n }", "@GetMapping(path = \"/all\")\n public @ResponseBody\n Iterable<User> getAllUsers() {\n LOG.info(\"Displays all the users from the database\");\n return userRepository.findAll();\n }", "@GetMapping(path=\"/all\")\n\tpublic @ResponseBody Iterable<User> getAllUsers() {\n\t\t// This returns a JSON or XML with the users\n\t\treturn userRepository.findAll();\n\t}", "@Override\r\n\tpublic List<User> users() {\r\n\t\tList<User> ris = new ArrayList<>();\r\n\t\tList< Map <String,String>> maps = getAll(SELECT_USERS);\r\n\t\tfor (Map<String, String> map : maps) {\r\n\t\t\tris.add(IMappable.fromMap(User.class, map));\r\n\t\t}\r\n\t\treturn ris;\r\n\t}", "public ArrayList findAll() {\n String query = \"SELECT * FROM SilentAuction.Users\";\n ArrayList aUserCollection = selectUsersFromDB(query);\n return aUserCollection;\n }", "@Override\r\n\tpublic List listAllUser() {\n\t\treturn userDAO.getUserinfoList();\r\n\t}", "@Override\n\tpublic List<User> getList() {\n\t\treturn Lists.newArrayList(userRepository.findAll());\n\t}", "public List<User> getUsers();", "public List<YuserVO> getAllUsers() {\n\t\tList<YuserVO> list = null;\n\t\t\ttry {\n\t\t\t\tlist = userDao.getAllUsers();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(\"get users failed ..................................\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\treturn list;\n\t}", "@Override\n\tpublic List<User> getUserList() {\n\t\treturn userDao.getList();\n\t}", "@Override\r\n\tpublic List<User> getUsers() {\n\t\tList<User> userlist=dao.getUsers();\r\n\t\treturn userlist;\r\n\t}", "public List<User> getAllUsers() {\n\t\tEntityManager entityManager = HandleConnectionToDB.getEntityManager();\n\t\tentityManager.getTransaction().begin();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<User> users = entityManager.createQuery(\"from User\").getResultList();\n\t\tif (users.size() > 0) {\n\t\t\tusers.get(0).getFriendList().size();\n\t\t\tusers.get(0).getUserLobby().size();\n\t\t\tusers.get(0).getFriendList().size();\n\t\t}\n\t\tentityManager.getTransaction().commit();\n\n\t\tHandleConnectionToDB.closeEntityManager();\n\t\treturn users;\n\n\t}", "public ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;", "public static ArrayList<Userdatas> getAllUsersList() {\n\t\tRequestContent rp = new RequestContent();\n\t\trp.type = RequestType.GET_ALL_USERS;\n\t\tReceiveContent rpp = sendReceive(rp);\n\t\tArrayList<Userdatas> anagList = (ArrayList<Userdatas>) rpp.parameters[0];\n\t\treturn anagList;\n\t}", "@GetMapping\n public List<User> getAllUsers() {\n return userService.getAllUsers();\n }", "@Override\r\n\tpublic List<User> getAllUser() {\n\t\tList<User> listStudents = new ArrayList<User>();\r\n\t\tlistStudents = userReposotory.findAll();\r\n\t\treturn listStudents;\r\n\t}", "@Override\n\tpublic List<User> getUsers() {\n\t\treturn mongoTemplate.findAll(User.class);\n\t}", "@RequestMapping(value = \"/users/list\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<UsersDTO> findAllUsers() {\n\t\tlogger.info(\"Return All Users.\");\t\n\t\treturn (List<UsersDTO>) usersService.findAllUsers();\n\t}", "@Override\n public List<User> findAll() {\n try {\n return runner.query(con.getThreadConnection(),\"select * from user\",new BeanListHandler<User>(User.class));\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }", "public List<UserData> list() {\n\t\treturn userDAO.list();\r\n\t}", "public List<TestUser> getAllUsers(){\n\t\tSystem.out.println(\"getting list of users..\");\n\t\tList<TestUser> user=new ArrayList<TestUser>();\n\t\tuserRepositary.findAll().forEach(user::add);\n\t\t//System.out.println(\"data: \"+userRepositary.FindById(\"ff80818163731aea0163731b190c0000\"));\n\t\treturn user;\n\t}", "public String[] listUsers();", "public ArrayList<User> getAllUsers() {\n return profile.getAllUsers();\n }", "public ResultSet fetchSelectAllUsers() {\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tTo create connection to the DataBase\r\n\t\t\t*/\r\n\t\t\tnew DbConnection();\r\n\t\t\t/**\r\n\t\t\t*\tStore the table data in ResultSet rs and then return it\r\n\t\t\t*/\r\n\t\t\trs = stmt.executeQuery(SELECT_ALL_USERS_QUERY);\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSqlExcep.printStackTrace();\r\n\t\t} catch(ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\tcloseDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\treturn rs;\r\n\t}", "@Override\n\tpublic List<UserWithoutPassword> getUserList() {\n\t\treturn userDao.findAll();\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<User> listUsers() {\n\t\treturn (List<User>) openSession().createCriteria(User.class).list();\n\t}", "@Override\n\tpublic Iterable<com.example.demo.model.User> getAllUsers() {\n\t\treturn userRepository.findAll();\n\t}", "public List<User> getAllUsers() {\n\n\t\tList<User> result = new ArrayList<User>();\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement ps = ((org.inria.jdbc.Connection) db).prepareStatement(TCell_QEP_IDs.QEP.EP_getAllUsers);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tString query = \"SELECT IdGlobal, TCELLIP, PUBLICKEY, TCELLPORT from USER\";\n\t\t\tSystem.out.println(\"Executing query : \" + query);\t\t\t\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tint UserGID =rs.getInt(1);\n\t\t\t\tString TCellIP = rs.getString(2);\n\t\t\t\t\n\t\t\t\t//convert Blob to String\n\t\t\t\tBlob myPubKeyBlob = rs.getBlob(3);\n\t\t\t\tbyte[] bPubKey = myPubKeyBlob.getBytes(1, (int) myPubKeyBlob.length());\n\t\t\t\tString pubKey = new String(bPubKey);\n\t\t\t\t\n\t\t\t\tint port = rs.getInt(4);\n\t\t\t\tUser user = new User(UserGID,TCellIP, port, pubKey);\n\t\t\t\tresult.add(user);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Uncomment when the close function will be implemented\n\t\t\t// attemptToClose(ps);\n\t\t\t\n\t\t}\n\n\t\treturn result;\n\n\t}", "@Override\n\tpublic List All() {\n\t\treturn new userDaoImpl().All();\n\t}", "@GET\n\t@Path(\"/allUsers\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Map<String, List<User>> getUser() throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\t\tMap<String, List<User>> user = userDao.getUser();\n\t\t\n\t\treturn user; \n\t}", "@Override\r\n\tpublic List<?> getAllUser() {\n\t\treturn userQueryRepositoryImpl.getAllUser();\r\n\t}", "@Override\n\tpublic List<UserEntity> getAllUsers() {\n\t\treturn userRepository.findAll();\n\t}", "@GetMapping(\"/userslist\")\n\tpublic List<User> usersList() {\n\t\treturn userService.usersList();\n\t}", "public static ArrayList<User> selectUsers() {\n \n ArrayList<User> users = new ArrayList<>();\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n\n String query = \"SELECT * FROM users \";\n \n try {\n ps = connection.prepareStatement(query);\n rs = ps.executeQuery();\n ResultSetMetaData mD = rs.getMetaData();\n int colCount = mD.getColumnCount();\n User user = null;\n \n for (int i = 0; i < colCount; i++) {\n if (rs.next()) {\n user = new User();\n user.setUserID(rs.getInt(\"userID\"));\n user.setFirstName(rs.getString(\"firstName\"));\n user.setLastName(rs.getString(\"lastName\"));\n user.setEmail(rs.getString(\"email\"));\n user.setAddr1(rs.getString(\"addr1\"));\n user.setAddr2(rs.getString(\"addr2\"));\n user.setCity(rs.getString(\"city\"));\n user.setStateRegion(rs.getString(\"state\"));\n user.setZipcode(rs.getInt(\"zip\"));\n user.setCountry(rs.getString(\"country\"));\n user.setRoleName(rs.getString(\"roleName\"));\n System.out.println(user.getFirstName());\n users.add(user);\n }\n }\n return users;\n } catch (SQLException e) {\n System.out.println(e);\n return null;\n } finally {\n DBUtil.closeResultSet(rs);\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }", "public List<User> selectAllUser() {\n\t\treturn userMapper.selectAllUser();\n\t}" ]
[ "0.8667585", "0.85321885", "0.8431053", "0.8431053", "0.83960617", "0.8385838", "0.82855964", "0.8258779", "0.82355", "0.8233589", "0.82306165", "0.8227738", "0.82130873", "0.8196659", "0.81918216", "0.8184615", "0.81726855", "0.8170898", "0.81610346", "0.8132958", "0.8108163", "0.8106559", "0.8100118", "0.8095211", "0.8076782", "0.807526", "0.807438", "0.80743617", "0.80711406", "0.80711406", "0.80701107", "0.8049392", "0.803939", "0.8038952", "0.8038629", "0.8035874", "0.8032692", "0.802778", "0.8022365", "0.80172604", "0.8016466", "0.80096483", "0.80041206", "0.8002504", "0.79966855", "0.7994859", "0.79905576", "0.79900414", "0.7980566", "0.7976173", "0.7966882", "0.79604787", "0.79519993", "0.7949831", "0.7943981", "0.7940198", "0.7934657", "0.7927379", "0.79253954", "0.7925341", "0.79100853", "0.79080003", "0.7907293", "0.7887155", "0.7880342", "0.787646", "0.7874502", "0.7874414", "0.78719866", "0.7871876", "0.7865475", "0.7865338", "0.78628194", "0.78610164", "0.78291124", "0.78265977", "0.7825818", "0.78241247", "0.78183645", "0.7814869", "0.7812438", "0.7806272", "0.7805545", "0.7798637", "0.779367", "0.77920437", "0.7788832", "0.7784206", "0.7779257", "0.7774909", "0.7766024", "0.77600497", "0.7749231", "0.77434707", "0.7738846", "0.77386355", "0.7737889", "0.7737444", "0.77371055", "0.77361375", "0.7735196" ]
0.0
-1
Creates a single, new user in database
@Override public boolean addUser(User user) { return controller.addUser(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createUser(User user);", "public void createUser(User user) {\n\n\t}", "User create(final User user) throws DatabaseException;", "User createUser(User user);", "User createUser();", "boolean create(User user) throws Exception;", "User create(User user);", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "UserCreateResponse createUser(UserCreateRequest request);", "User createUser(UserCreationModel user);", "@Test\n\tpublic void newUser() {\n\n\t\tUser user = new User(\"moviewatcher\", \"$2a$10$37jGlxDwJK4mRpYqYvPmyu8mqQJfeQJVSdsyFY5UNAm9ckThf2Zqa\", \"USER\");\n\t\tuserRepository.save(user);\n\n\t\tassertThat(user).isNotNull();\n\t\tassertThat(user).hasFieldOrPropertyWithValue(\"username\", \"moviewatcher\");\n\t}", "@POST\n\t@Path(\"/newUser\")\n\t@Consumes({ MediaType.APPLICATION_JSON })\n\t@Produces({ MediaType.APPLICATION_JSON })\n\t@Transactional\n\tpublic Response createUser(User user) {\n\t\tuserDao.createUser(user);\n\n\t\treturn Response.status(201)\n\t\t\t\t.entity(\"A new user has been created\").build();\n\t}", "@Override\n\tpublic int create(Users user) {\n\t\tSystem.out.println(\"service:creating new user...\");\n\t\treturn userDAO.create(user);\n\t}", "public void createUser() {\n try {\n conn = dao.getConnection();\n\n ps = conn.prepareStatement(\"INSERT INTO Users(username, password) VALUES(?, ?)\");\n ps.setString(1, this.username);\n ps.setString(2, this.password);\n\n ps.execute();\n\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "Boolean registerNewUser(User user);", "public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}", "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "public void createUser() {\r\n\t\tif(validateUser()) {\r\n\t\t\t\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"INSERT INTO t_user (nom,prenom,userName,pass,tel,type,status) values(?,?,?,?,?,?,?)\");\r\n\t\t\t\tps.setString(1, this.getNom());\r\n\t\t\t\tps.setString(2, this.getPrenom());\r\n\t\t\t\tps.setString(3, this.getUserName());\r\n\t\t\t\tps.setString(4, this.getPassword());\r\n\t\t\t\tps.setInt(5, Integer.parseInt(this.getTel().trim()));\r\n\t\t\t\tps.setString(6, this.getType());\r\n\t\t\t\tps.setBoolean(7, true);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\tnew Message().error(\"Fin d'ajout d'utilisateur\");\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tnew Message().error(\"Echec d'ajout d'utilisateur\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closePrepareStatement(ps);\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "int createUser(User data) throws Exception;", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "public void newUser(User user);", "public void createUser(SignUpDto signupdto) {\n\t\tUser user = new User();\r\n\t\t\r\n\t\tuser.setId(signupdto.getId());\r\n\t\tuser.setPw(signupdto.getPw());\r\n\t\tuser.setNickname(signupdto.getNickname());\r\n\t\t\r\n\t\tuserRepository.save(user);\t\r\n\t}", "boolean createUser(String username, String password);", "int newUser(String username, String password, Time creationTime);", "@Transactional\n public Long createUser(User user) {\n user.setId(null);\n final User createdUser = userRepository.save(user);\n return createdUser.getId();\n }", "void createUser() throws SQLException {\n String name = regName.getText();\n String birthdate = regAge.getText();\n String username = regUserName.getText();\n String password = regPassword.getText();\n String query = \" insert into users (name, birthdate, username, password)\"\n + \" values (?, ?, ?, ?)\";\n\n DB.registerUser(name, birthdate, username, password, query);\n }", "public User createUser(User user) {\n\t\treturn userRepository.save(user);\n\t}", "public User createUser(User user) {\n\t\treturn userRepository.save(user);\n\t}", "public void creatUser(String name, String phone, String email, String password);", "public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }", "@Override\n\tpublic User createUser(User user) {\n\t\tem.persist(user);\n\t\tem.flush();\n\t\treturn user;\n\t}", "public int createUser(Users user) {\n\t\t int result = getTemplate().update(INSERT_users_RECORD,user.getUsername(),user.getPassword(),user.getFirstname(),user.getLastname(),user.getMobilenumber());\n\t\t\treturn result;\n\t\t\n\t\n\t}", "private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "@POST\n public User create(User user) {\n SecurityUtils.getSubject().checkPermission(\"User:Edit\");\n\n userFacade.create(user);\n return user;\n }", "@Override\n\tpublic String DBcreateUser(String userJson) {\n\t\tUser newUser = (User) jsonToUserPOJO(userJson);\n\t\tString id = userRepository.create(newUser);\n\t\treturn id;\n\t}", "private User createUser(String username, String name, String email, String password) {\n UserDTO userDTO = new UserDTO();\n userDTO.setEmail(email);\n userDTO.setName(name);\n userDTO.setPassword(password);\n userDTO.setUsername(username);\n\n userService.registerUser(userDTO);\n\n User user = userService.getUserByEmail(email);\n return user;\n }", "public void createUser() throws ServletException, IOException {\n\t\tString fullname = request.getParameter(\"fullname\");\n\t\tString password = request.getParameter(\"password\");\n\t\tString email = request.getParameter(\"email\");\n\t\tUsers getUserByEmail = productDao.findUsersByEmail(email);\n\t\t\n\t\tif(getUserByEmail != null) {\n\t\t\tString errorMessage = \"we already have this email in database\";\n\t\t\trequest.setAttribute(\"message\", errorMessage);\n\t\t\t\n\t\t\tString messagePage = \"message.jsp\";\n\t\t\tRequestDispatcher requestDispatcher = request.getRequestDispatcher(messagePage);\n\t\t\trequestDispatcher.forward(request, response);\n\t\t}\n\t\t// create a new instance of users class;\n\t\telse {\n\t\t\tUsers user = new Users();\n\t\t\tuser.setPassword(password);\n\t\t\tuser.setFullName(fullname);\n\t\t\tuser.setEmail(email);\n\t\t\tproductDao.Create(user);\n\t\t\tlistAll(\"the user was created\");\n\t\t}\n\n\t\t\n\t}", "public UserEntity create(String userId) throws CreateException;", "@Override\n\tpublic User Create(User t) {\n\t\tsessionFactory.getCurrentSession().save(t);\n\t\t\n\t\treturn t;\n\t}", "public void insertUser() {}", "public static void createUser(User user) throws LegoHouseException {\n try {\n Connection con = Connector.connection();\n String SQL = \"INSERT INTO users (email, password, role) VALUES (?, ?, ?)\";\n PreparedStatement ps = con.prepareStatement(SQL, Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, user.getEmail());\n ps.setString(2, user.getPassword());\n ps.setString(3, user.getRole());\n ps.executeUpdate();\n ResultSet ids = ps.getGeneratedKeys();\n ids.next();\n int id = ids.getInt(1);\n user.setId(id);\n }\n catch (SQLException | IllegalAccessException | InstantiationException | ClassNotFoundException ex) {\n throw new LegoHouseException(ex.getMessage(), \"index\");\n }\n }", "private void createUser(String username) {\n if (TextUtils.isEmpty(username)) {\n Toast.makeText(this, \"Username Field Required!\", Toast.LENGTH_SHORT).show();\n return;\n }else {\n FirebaseUser current_user = FirebaseAuth.getInstance().getCurrentUser();\n String userID = current_user.getUid();\n User user = new User(et_username.getText().toString(), et_gender.getText().toString(), \"Newbie\", \"Online\", \"Active\", userID, \"default_url\");\n mRef.child(mAuth.getCurrentUser().getUid()).setValue(user);\n }\n }", "@RequestMapping(value=\"\", method=RequestMethod.POST, consumes=MediaType.MULTIPART_FORM_DATA_VALUE, produces = \"application/json\")\n\tpublic @ResponseBody Object createUser(@RequestParam String userName, @RequestParam String userPassword, @RequestParam String userFirstName, \n\t\t\t@RequestParam String userLastName, @RequestParam String userPicURL,@RequestParam String userEmail, @RequestParam String userEmployer,\n\t\t\t@RequestParam String userDesignation, @RequestParam String userCity, @RequestParam String userState, @RequestParam(required=false) String programId, \n\t\t\t@RequestParam long updatedBy, @RequestParam String userExpertise, @RequestParam String userRoleDescription,\n\t\t\t@RequestParam String userPermissionCode, @RequestParam String userPermissionDescription, HttpServletRequest request, HttpServletResponse response) {\n\t\treturn userService.createUser(userName, userPassword, userFirstName, userLastName, userPicURL, userEmail, userEmployer, userDesignation, userCity, userState, programId, updatedBy, userExpertise, userRoleDescription, userPermissionCode, userPermissionDescription, request, response);\n\t}", "@Override\n public void createUser(User user) {\n run(()->{this.userDAO.save(user);});\n\n }", "public void create(String userName, String password, String userFullname,\r\n\t\t\tString userSex, int userTel, String role);", "@PostMapping(\"/user/new/\")\n\tpublic userprofiles createUser(@RequestParam String firstname, @RequestParam String lastname, @RequestParam String username, @RequestParam String password, @RequestParam String pic) {\n\t\treturn this.newUser(firstname, lastname, username, password, pic);\n\t}", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "@Override\n\tpublic void createUser(User user) {\n\t\tSystem.out.println(\"INSIDE create user function\");\n\t\tem.persist(user);\n\t\t\t\n\t}", "public boolean createNewUser(String username){\n boolean isCreated=false;\n try{\n\n database = dbH.getWritableDatabase();\n dbH.openDataBase();\n database.execSQL(\"INSERT INTO CurrentUser (Username) VALUES ('\" + username + \"');\");\n isCreated=true;\n dbH.close();\n }\n catch (SQLException e){\n }\n return isCreated;\n }", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "public int createAccount(User user) throws ExistingUserException,\n UnsetPasswordException;", "private void createUser(final String email, final String password) {\n\n }", "@PostMapping(\"/users\")\n public UsersResponse createNewUser(@RequestBody NewUserRequest request) {\n User user = new User();\n user.setName(request.getName());\n user.setAge(request.getAge());\n user = userRepository.save(user);\n return new UsersResponse(user.getId(), user.getName() + user.getAge());\n }", "void registerUser(User newUser);", "public void createUser(String username, String password, String role) {\r\n Optional<User> user = userRepo.findByName(username);\r\n if (!user.isPresent()) {\r\n User newUser = new User();\r\n newUser.setName(username);\r\n newUser.setPassword(password);\r\n newUser.setRole(role);\r\n userRepo.save(newUser);\r\n }\r\n }", "User registration(User user);", "@PostMapping(\"/user\")\n\tpublic ResponseEntity<User> createUser(@RequestBody User user) throws Exception {\n\t\tlog.debug(\"REST request to save User : {}\", user);\n\t\tif (user.getId() != null) {\n\t\t\tthrow new Exception(\"A new user cannot already have an ID\");\n\t\t}\n\t\tUser result = userService.save(user);\n\t\tlog.debug(\"Added new user:: \" + user);\n\t\treturn new ResponseEntity<User>(result, HttpStatus.CREATED);\n\t}", "public static User createUser(String id) {\n\n User user = new User();\n user.setId(id);\n\n return user;\n }", "@Override\n public void registerUser(User user) {\n userDAO.createUser(user);\n }", "public User createUser(User newUser) {\n if(userRepository.findByUsername(newUser.getUsername()) != null){\n throw new UsernameException(\"The username is already taken please choose another one\");\n }\n newUser.setToken(\"dummy_token\"); //not really needed after registration;\n\n newUser.setStatus(UserStatus.ONLINE);\n userRepository.save(newUser); //userRepository creates User entity for the first time\n\n newUser.setToken(generateToken(newUser));\n userRepository.save(newUser); //userRepository saves the new entity items to existing user\n\n log.debug(\"Created Information for User: {}\", newUser);\n return newUser;\n }", "void addNewUser(User user, int roleId) throws DAOException;", "@Override\npublic String createUser(String userAccount, String userPassword,\n\t\tString userSex, String userEmail, String userName) {\n\t\n\tUser user = new User(userAccount, userPassword, userSex , userEmail, userName);\n\tem.persist(user) ;\n\t return \n\t\t\t \"Account: \" + user.getUserAccount() + \"\\n\" +\n\t\t\t\"Password: \" + user.getUserPassword() + \"\\n\" + \n\t\t\t\"Sex: \" + user.getUserSex() + \"\\n\" +\n\t\t\t\"Email: \" + user.getUserEmail() + \"\\n\" +\n\t\t\t\"Name: \" + user.getUserName();\n\n\t\n}", "public void createUser(String userName, String password,\n boolean createDB) throws Exception;", "public void registerUser(User newUser) {\r\n userRepo.save(newUser);\r\n }", "public void makeNewUser(String name, int age, String address, String password)\n throws SQLException, ConnectionFailedException, DatabaseInsertException {\n if (this.currentUserAuthenticated) {\n // find the role ID that corresponds to customer\n EnumMapRolesAndAccounts map = new EnumMapRolesAndAccounts();\n map.createEnumMap();\n int roleId = map.roleIds.get(Roles.CUSTOMER);\n int userId = DatabaseInsertHelper.insertNewUser(name, age, address, roleId, password);\n System.out.println(\"User ID - \" + userId);\n System.out.println(\"succesfully made user\");\n } else {\n System.out.println(\"failed making user\");\n throw new ConnectionFailedException();\n }\n }", "@PostMapping\n public User create(@RequestBody final User user) {\n return userService.create(user);\n }", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "@PostMapping(\"/users\")\n\tpublic ResponseEntity<UserDTO> creareUser(@RequestBody(required = true) @Valid UserDTO user) {\n\t\tuser = userService.createUser(user);\n\t\treturn new ResponseEntity<>(user, HttpStatus.CREATED);\n\t}", "@Override\n public User signUpUser(String name, String username, String password, String email) throws UsernameExistsException {\n User u = new User(name, username, password, email);\n if (userDataMapper.getUserByUserName(username) != null)\n throw new UsernameExistsException();\n userDataMapper.add(u);\n return u;\n }", "@PostMapping(\"/users\")\n\tpublic ResponseEntity<Object> createUser(@Valid @RequestBody User user) {\n\t\tUser createUser = userService.save(user);\n\n\t\t// Return Created User URI e.g. users/6\n\t\t// It Will return the status code of 201 created\n\t\tURI uri = ServletUriComponentsBuilder.fromCurrentRequest().path(\"/{id}\").buildAndExpand(createUser.getId())\n\t\t\t\t.toUri();\n\t\treturn ResponseEntity.created(uri).build();\n\n\t}", "public int insertUser(final User user);", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "public boolean createUser() {\r\n\t\tboolean signupSuccess = false;\r\n\t\t/**\r\n\t\t*\tSince connecting to database (DbConnection()) and retrieving data (fetchSelectAllUsers())\r\n\t\t* throw SQLException and throwing an exception from multiple levels again and again is not\r\n\t\t*\ta good way, so its is needed to catch the exception here.\r\n\t\t*/\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tCreate a connection to the database\r\n\t\t\t*/\r\n\t\t\tDbConnection signupConn = new DbConnection();\r\n\t\t\t/**\r\n\t\t\t*\tinsert data into table\r\n\t\t\t*/\r\n\t\t\tsignupSuccess = signupConn.executeInsertIntoUsers(uName, password, fullName, phone, email);\r\n\r\n\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSystem.out.println(\"**************Error Connecting to the Database**************\");\r\n\t\t\tSqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\t//validateConn.closeDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\treturn signupSuccess;\r\n\t}", "public boolean newUser(String email, String senha) {\n try {\n return usDao.newUser(email, senha);\n } catch (SQLException ex) {\n throw new RuntimeException(\"an error occurred trying to add a new user to database: \" + ex.getMessage());\n }\n }", "UserModel createUserModel(UserModel userModel);", "public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void addNewUser(User user) {\n\t\tSystem.out.println(\"BirdersRepo. Adding new user to DB: \" + user.getUsername());\n\t\tDocument document = Document.parse(gson.toJson(user));\n\t\tcollection.insertOne(document);\n\t}", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "public int insertUser(User newUser) {\r\n\r\n try {\r\n BusTrackerDB = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(\"username\", newUser.getUsername());\r\n values.put(\"password\", newUser.getPassword());\r\n\r\n BusTrackerDB.insert(\"user\", null, values);\r\n } catch (SQLiteException e) { return 0; }\r\n\r\n BusTrackerDB.close();\r\n\r\n return 1;\r\n }", "public eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser addNewCreateUser()\n {\n synchronized (monitor())\n {\n check_orphaned();\n eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser target = null;\n target = (eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser)get_store().add_element_user(CREATEUSER$0);\n return target;\n }\n }", "@Override\n\tpublic String createUser(User users) {\n\t\tuserRepository.save(users);\n\t\treturn \"Save Successful\";\n\t}", "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n\t@RequestMapping(value = \"/users\", method = RequestMethod.POST)\n\tpublic ResponseEntity<AppUser> createUser(@RequestBody AppUser appUser) {\n\t\tif (appUserRepository.findOneByUsername(appUser.getUsername()) != null) {\n\t\t\tthrow new RuntimeException(\"Username already exist\");\n\t\t}\n\t\treturn new ResponseEntity<AppUser>(appUserRepository.save(appUser), HttpStatus.CREATED);\n\t}", "public void create() throws DuplicateException, InvalidUserDataException, \n NoSuchAlgorithmException, SQLException {\n\tUserDA.create(this);\n }", "public boolean createUser(User user) {\n\t\ttry {\n\t\t\tem.persist(user);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tlogger.warning(\"Unable to create new user\");\n\t\t\treturn false;\n\t\t}\n\t}", "public void createUserAccount(UserAccount account);", "public void createUserInFirebase(String name, String email, String Uid) {\n User user = new User();\n user.setName(name);\n user.setEmail(email);\n mDatabase.child(\"users\").child(Uid).setValue(user);\n }", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "public SignUpModel createUser(SignUpModel user) {\n\t\tSignUpModel result = signUpRepo.save(user);\n\t\treturn result;\n\t}", "@POST\n\t@Path(\"/signUp\")\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic String createUser(User user) {\n\t\tUserService.createUser(user);\n\t\treturn \"User \" + user.getUsername() + \" is created successfully\";\n\t}", "@Override\n\tpublic int insertUser(String username, String password) {\n\t\treturn userMapper.insertUser(username, password);\n\t}", "public boolean create(User u) {\n\t\t\n\t\tString sql = \"INSERT INTO VIDEOGAMESTORE.USERS(USERNAME, PASSWORD, EMAIL, FIRST_NAME, LAST_NAME, GENDER, USER_PRIVILEGE)\"\n\t\t\t\t+ \"VALUES (?, ?, ?, ?, ?, ?,?)\";\n\t\t\n\t\t// Call jdcbTemplate's update() function, if rows returns 1, it was successful.\n\t\ttry {\n\t\t\tint rows = jdbcTemplate.update(sql, u.getUsername(), u.getPassword(), u.getEmailAddress(),\n\t\t\t\t\tu.getFirstName(), u.getLastName(), u.getGender(), u.getUserPrivilege());\n\t\t\treturn rows == 1 ? true : false;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn false;\n\t\t\n\t}", "public String createUserAction()throws Exception{\n\t\tString response=\"\";\n\t\tresponse=getService().getUserMgmtService().createNewUser(\n\t\t\t\tgetAuthBean().getUserName(),\n\t\t\t\tgetAuthBean().getFirstName(),\n\t\t\t\tgetAuthBean().getLastName(),\n\t\t\t\tgetAuthBean().getEmailId(),\n\t\t\t\tgetAuthBean().getRole()\n\t\t);\n\t\tgetAuthBean().setResponse(response);\n\t\tinputStream = new StringBufferInputStream(response);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}", "@Test\n\tpublic void test_create_new_user_success(){\n\t\tUser user = new User(null, \"create_user\", \"[email protected]\", \"12345678\");\n\t\tResponseEntity<User> response = template.postForEntity(REST_SERVICE_URI + ACCESS_TOKEN + token, user, User.class);\n\t\tUser newUser = response.getBody();\n\t\tassertThat(newUser.getName(), is(\"create_user\"));\n\t\tassertThat(response.getStatusCode(), is(HttpStatus.CREATED));\n\t\tvalidateCORSHttpHeaders(response.getHeaders());\n\t}", "public void createUser(VUser vUser) {\n\t\tUser user = new User();\n\n\t\tboolean match = Pattern.matches(Constants.REGEX_EMAIL, vUser.getEmail());\n\t\tif (!match) {\n\t\t\tthrow new ResponseStatusException(HttpStatus.BAD_REQUEST, \"El email tiene formato incorrecto.\");\n\t\t}\n\n\t\tif (repo.getUserByEmail(vUser.getEmail()) != null) {\n\t\t\tthrow new ResponseStatusException(HttpStatus.BAD_REQUEST, \"Ya hay un usuario con ese email.\");\n\t\t}\n\n\t\tuser.setEmail(vUser.getEmail());\n\t\tuser.setFullName(vUser.getFullName());\n\t\t\n\t\tif(vUser.getFullName() == null || vUser.getFullName().isEmpty()) {\n\t\t\tuser.setFullName(vUser.getEmail());\n\t\t}\n\n\t\t// TODO: hashear password\n\t\tuser.setPasswordHash(vUser.getPassword());\n\n\t\tuser.setRoles(vUser.getRoles());\n\t\tuser.setUserType(vUser.getUserType());\n\n\t\trepo.createUser(user);\n\t}", "private void createNewUser(final User unmanagedUser) {\n Realm realm = (mRealm == null) ? Realm.getDefaultInstance() : mRealm;\n //create by administrator\n realm.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n User u2 = realm.createObject(User.class, PrimaryKeyFactory.getInstance().nextKey(User.class));\n u2.setLoggedIn(false);\n u2.setUserId(unmanagedUser.getUserId());\n\n String password = unmanagedUser.getPassword();\n if (password == null) {\n password = \"\";\n }\n u2.setPassword(password);\n\n u2.setUserName(unmanagedUser.getUserName());\n u2.setStartDate(unmanagedUser.getStartDate());\n u2.setEndDate(unmanagedUser.getEndDate());\n u2.setCreated(new Date());\n u2.setActive(unmanagedUser.getActive());\n u2.setSpecial(false);\n u2.setPermission(unmanagedUser.getPermission());\n u2.setEnabled(unmanagedUser.getEnabled());\n }\n });\n\n if (mRealm == null)\n realm.close();\n }", "@PostMapping\n @ResponseStatus(HttpStatus.CREATED)\n public UserResponse createUser(@Valid @RequestBody CreateUserRequest createUser) {\n return userMapper.toUserResponse(\n userService.createUser(\n userMapper.toDto(createUser)\n )\n );\n }", "private void createUser(Request request, Response response) {\r\n\t\tUserBean userBean = new UserBean();\r\n\t\tRESTfulSession session = null;\r\n\r\n\t\ttry {\r\n\t\t\tBeanHelper.populateUserBeanFromRequest(request, userBean);\r\n\t\t\tString username = userBean.getUsername();\r\n\t\t\tString password = userBean.getPassword();\r\n\t\t\tString email = userBean.getEmail();\r\n\r\n\t\t\tif (StringHelper.isNullOrNullString(username)\r\n\t\t\t\t\t|| StringHelper.isNullOrNullString(password)\r\n\t\t\t\t\t|| StringHelper.isNullOrNullString(email)) {\r\n\t\t\t\tthrow new InvalidInputException();\r\n\t\t\t}\r\n\r\n\t\t\tsession = userService.createUser(userBean);\r\n\t\t} catch (InvalidInputException e) {\r\n\t\t\tresponse.setStatus(Status.CLIENT_ERROR_BAD_REQUEST, e.getMessage());\r\n\t\t} catch (Exception e) {\r\n\t\t\tresponse.setStatus(Status.SERVER_ERROR_INTERNAL, e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tlog.error(e);\r\n\t\t} finally {\r\n\t\t\t// generate response XML\r\n\t\t\txmlSerializationService.generateXMLResponse(request, response,\r\n\t\t\t\t\tsession);\r\n\t\t}\r\n\t}", "@RequestMapping(method=RequestMethod.POST)\n\tpublic User create(@AuthenticationPrincipal @RequestBody UserEntry entry) {\n\t\tUser user = new User(entry);\n\t\tuser.setUserId(counter.getNextUserIdSequence());\n\t\tuser.setRoleId(role.findByIsDefault(true).getRoleId());\n\t\tPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();\n\t\tString hashedPassword = passwordEncoder.encode(user.getPassword());\n\t\tuser.setPassword(hashedPassword);\n\t\treturn repo.save(user);\n\t}", "Human_User createHuman_User();", "@PostMapping(value = \"/user\", produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<User> createUser(@Valid @RequestBody User user) {\n\n userRepository.save(user);\n\n return ResponseEntity.ok().body(user);\n }" ]
[ "0.8114209", "0.80457777", "0.80410475", "0.7893462", "0.7853872", "0.7709961", "0.76841253", "0.759745", "0.7583883", "0.7575278", "0.7574082", "0.7568939", "0.75641835", "0.74826926", "0.7474497", "0.7455583", "0.73908615", "0.7366296", "0.73598284", "0.7330534", "0.7308813", "0.7286103", "0.7274504", "0.7259166", "0.7244969", "0.72221565", "0.7215505", "0.7215505", "0.71944886", "0.7189399", "0.71848494", "0.715741", "0.71493536", "0.7141334", "0.7137969", "0.711185", "0.70828915", "0.70778763", "0.7073097", "0.70730764", "0.70707715", "0.705976", "0.70408356", "0.7030625", "0.70244926", "0.7001544", "0.69855267", "0.6983704", "0.69833076", "0.69653136", "0.696309", "0.6961905", "0.6960866", "0.6959063", "0.69468695", "0.6937507", "0.6934529", "0.6930942", "0.6925134", "0.69112545", "0.691029", "0.6901376", "0.69010943", "0.6901012", "0.68898857", "0.687189", "0.6870719", "0.68645036", "0.68601453", "0.6857434", "0.6855791", "0.6850625", "0.6849738", "0.6849339", "0.6848923", "0.6848185", "0.6844365", "0.6840136", "0.6834951", "0.68258274", "0.68191457", "0.6819007", "0.68181664", "0.6818161", "0.6815988", "0.6811334", "0.68053234", "0.67966014", "0.6792583", "0.6787877", "0.6767564", "0.6755619", "0.6739498", "0.6737579", "0.6729935", "0.6729265", "0.67269677", "0.67260295", "0.67223394", "0.6721321", "0.67171997" ]
0.0
-1
Updates a single, existing user in database
@Override public boolean updateUser(User user) { return controller.updateUser(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User updateUser(User user);", "public void updateUser() {\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(db.DB.connectionString, db.DB.user, db.DB.password);\n Statement stmt = conn.createStatement();\n String query = \"update users set first_name='\" + firstName + \"', \";\n query += \"last_name='\" + lastName + \"', \";\n query += \"phone_number='\" + phoneNumber + \"', \";\n query += \"email='\" + email + \"', \";\n query += \"address='\" + address + \"', \";\n query += \"id_city='\" + idCity + \"' \";\n query += \"where id_user = \" + id;\n stmt.executeUpdate(query);\n\n User updatedUser = findUser(id);\n updatedUser.setFirstName(firstName);\n updatedUser.setLastName(lastName);\n updatedUser.setPhoneNumber(phoneNumber);\n updatedUser.setEmail(email);\n updatedUser.setIdCity(idCity);\n updatedUser.setAddress(address);\n\n } catch (SQLException ex) {\n Logger.getLogger(UserController.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n clear();\n try {\n conn.close();\n } catch (Exception e) {\n /* ignored */ }\n }\n }", "int updateUserById( User user);", "void updateUserById(String username, User userData);", "public boolean update(User u);", "void updateUser(@Nonnull User user);", "ManageUserResponse updateUser(UserUpdateRequest user, Long userId);", "public void updateUser(User user) {\n\t\t\r\n\t}", "void update(User user) throws SQLException;", "void updateUser(User entity) throws UserDaoException;", "UserEntity updateUser(UserEntity userEntity);", "UpdateUserResult updateUser(UpdateUserRequest updateUserRequest);", "void editUser(String uid, User newUser);", "public void update(User user);", "public void updateUser(int uid, String name, String phone, String email, String password, int money, int credit);", "public void updateUser(User oldUser, User newUser) ;", "@Override\n\tpublic boolean updateUser(Integer Id, User user) {\n\t\treturn false;\n\t}", "ResponseMessage updateUser(final User user);", "public String updateUser(){\n\t\tusersservice.update(usersId, username, password, department, role, post, positionId);\n\t\treturn \"Success\";\n\t}", "@Override\n public User update(User user) {\n return dao.update(user);\n }", "public void updateUser(User user) {\n\t\t\r\n\t\tsessionFactory.getCurrentSession().update(user);\r\n\t\t\r\n\t}", "public User updateUser(long id, UserDto userDto);", "@Override\r\n\tpublic void update(User user) {\n\t\tuserDao.update(user);\r\n\t}", "User modifyUser(Long user_id, User user);", "@Override\n\tpublic int updateUser(User user) {\n\t\treturn userDao.updateUser(user);\n\t}", "@Override\n public void updateUser(User u) {\n Session session = this.sessionFactory.getCurrentSession();\n session.update(u);\n logger.info(\"User updated successfully, User Details=\"+u);\n }", "@Override\n\tpublic void updateUser(User user)\n\t{\n\n\t}", "@Override\n\tpublic void update(User user)\n\t{\n\t\tuserDAO.update(user);\n\t}", "void update(User user);", "void update(User user);", "@Override\n\tpublic int update(TbUser user) {\n\t\treturn new userDaoImpl().update(user);\n\t}", "void updateUser(UserDTO user);", "public void updateUser(int id, User user) {\n\t\tEntityManager entityManager = HandleConnectionToDB.getEntityManager();\n\t\tUser userFind = entityManager.find(User.class, id);\n\n\t\tentityManager.getTransaction().begin();\n\t\tuserFind.setPicture(user.getPicture());\n\t\tuserFind.setPassword(user.getPassword());\n\t\tuserFind.setUsername(user.getUsername());\n\t\tentityManager.getTransaction().commit();\n\t}", "@Override\n\tpublic int update(Users user) {\n\t\treturn userDAO.update(user);\n\t}", "@Override\n\tpublic void update(User objetc) {\n\t\tuserDao.update(objetc);\n\t}", "public void update(User object) throws DaoException {\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n try {\n connection = dataSourceUtils.getConnection(dataSource);\n preparedStatement = connection.prepareStatement(UPDATE_USER);\n\n preparedStatement.setString(1, object.getUserName());\n preparedStatement.setString(2, object.getLogin());\n preparedStatement.setString(3, object.getPassword());\n preparedStatement.setLong(4, object.getUserId());\n preparedStatement.executeUpdate();\n } catch (SQLException e) {\n throw new DaoException(e);\n } finally {\n DataSourceUtils.releaseConnection(connection, dataSource);\n try {\n preparedStatement.close();\n } catch (SQLException e) {\n LOGGER.error(e);\n }\n }\n }", "@Override\n\tpublic void updateUser(User pUser) {\n\t\t\n\t}", "@Override\n\tpublic void updateUser(user theUser) {\n\t}", "public User UpdateUser(User user){\n\t\t\treturn user;\n\t\t}", "public User updateone_user(User user) {\n\t\tConnection conn=null;\t\t\t\n\t\tString sql = \"update users set username=?,password=?,phonenumber=?,email=? where id=?\";\n\t\t\n\t\ttry {\n\t \t conn =ConnectDB.getconnect();\n\t\t\t\t\tPreparedStatement pstmt=conn.prepareStatement(sql);\t\n\t\t\t\tpstmt.setString(1, user.getUsername());\n\t\t\t\tpstmt.setString(2,user.getPassword());\n\t\t\t\tpstmt.setString(3,user.getPhonenumber());\n\t\t\t\tpstmt.setString(4, user.getEmail());\n\t\t\t\tpstmt.setInt(5, user.getId());\n\t\t\t\t System.out.println(\"userDAO修改的user.getUsername()=\"+user.getUsername());\n\t\t\t\t\n\t\t\tpstmt.executeUpdate();\n\t\t\t\tpstmt.close();\n\t\t\t\tconn.close();\n\t\t\t\treturn user;\n\t\t\t\t}catch (Exception e) {\n\t\t\t\t\te.printStackTrace() ;\n\t\t\t\t System.out.println(\"修改一行数据失败\");\n\t\t\t\t}\t\n\t\treturn user;\n\t}", "@Override\r\n\tpublic void updateUser(User user) {\n\t\tuserReposotory.save(user);\r\n\t\t\r\n\t}", "public void updateUserDetails() {\n\t\tSystem.out.println(\"Calling updateUserDetails() Method To Update User Record\");\n\t\tuserDAO.updateUser(user);\n\t}", "@Override\n\tpublic ApplicationResponse updateUser(String id, UserRequest request) {\n\t\tUserEntity user = null;\n\t\tOptional<UserEntity> userEntity = repository.findById(id);\n\t\tif (userEntity.isPresent()) {\n\t\t\tuser = userEntity.get();\n\t\t\tif (!StringUtils.isEmpty(request.getFirstName())) {\n\t\t\t\tuser.setFirstName(request.getFirstName());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getSurName())) {\n\t\t\t\tuser.setSurName(request.getSurName());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getDob())) {\n\t\t\t\tuser.setDob(request.getDob());\n\t\t\t}\n\t\t\tif (!StringUtils.isEmpty(request.getTitle())) {\n\t\t\t\tuser.setTitle(request.getTitle());\n\t\t\t}\n\t\t\tuser = repository.save(user);\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(user));\n\t\t} else {\n\t\t\tthrow new UserNotFoundException(\"User not found\");\n\t\t}\n\t}", "public int updateUser(User user) {\n\t\t\n\t\treturn 1;\n\t}", "@Override\r\n\tpublic void apiUpdateUser(User user) {\n\t\tUser a = findByIdUser(user.getId());\r\n\t\tif (StringUtils.hasText(user.getUserName()))\r\n\t\t{\r\n\t\t\ta.setUserName(user.getUserName());\r\n\t\t}\r\n\t\tif (StringUtils.hasText(user.getPassWord()))\r\n\t\t{\r\n\t\t\ta.setPassWord(user.getPassWord());\r\n\t\t}\r\n\t\tuserReposotory.save(a);\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void updateUser(TUsers tuser) {\n\t\tdao.updateUser(tuser);\r\n\t}", "private static void updateUserTest(Connection conn) {\n\t\t\n\t\ttry {\n\t\t\tUser existingUser = User.loadUserById(conn, 3); // User user = User.loadUserById(conn, 3);\n\t\t\t// the same id is preserved\n\t\t\texistingUser.setUsername(\"jo\");\n\t\t\texistingUser.setEmail(\"[email protected]\");\n\t\t\texistingUser.setUserGroupId(2);\n\t\t\texistingUser.saveToDB(conn);\n\t\t\t\n\t\t\t/*Następnie\tnależy\tsprawdzić,\tczy:\n\t\t\t\t1.\t Czy\twpis\tw\tbazie\tdanych\tma\twszystkie\n\t\t\t\tdane\todpowiednio\tponastawiane?\n\t\t\t\t2.\t Czy\tobiekt\tma\tnastawione\tpoprawne\tid? - czyli niezmienione, bo nie mamy settera dla id\n\t\t\t\t3.\t Czy\tnie\tdodał\tsię\tnowy\twpis\tw\tbazie?*/\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n\tpublic void updateOne(User u) {\n\t\tdao.updateInfo(u);\n\t}", "@Override\n\tpublic void update(Connection conn, User user,Long id) throws SQLException {\n\t\tString updateSql=\"update tbl_user set name=?,password=?,email=?where id=?\";\n\t\tPreparedStatement ps=conn\n\t\t\t\t.prepareCall(updateSql);\n\t\tps.setString(1, user.getName());\n\t\tps.setString(2, user.getPassword());\n\t\tps.setString(3, user.getEmail());\n\t\tps.setLong(4, id);\n\t\tps.execute();\n\t}", "public User updateUser(User update) {\n\t\treturn userRepository.save(update);\n\t}", "public void update() throws Exception {\n\t HaUserDao.getInstance().updateUser(this);\n\t}", "@Override\r\n\tpublic boolean updateUser(user user) {\n\t\tif(userdao.updateByPrimaryKey(user)==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}", "@Override\n\tpublic void updateUser(User user) {\n\t userMapper.updateUser(user);\n\t}", "void updateUser(Integer id, Long version, UserBuilder userBuilder);", "User editUser(User user);", "public void userUpdate(User user) {\n\t\tdao.userUpdate(user);\n\t}", "public User update(User user)throws Exception;", "@Override\n\tpublic void updateUser(User user) {\n\t\tiUserDao.updateUser(user);\n\t}", "public void update(User user) {\n\t\tuserDao.update(user);\n\t}", "public int update(User user) {\n\t\treturn this.userDao.updateByPrimaryKey(user);\r\n\t}", "void update(String userName, String password, String userFullname,\r\n\t\tString userSex, int userTel, String role);", "public User updateUser(User user, Long id) {\n\t\tUser existingUser = repository.findById(id).get();\n\t\t\n\t\tRSA rsaUser = rsaRepository.findByIdUser(id);\n\t\t\n\t\tString nameEncript = encript.criptografa(user.getName(), rsaUser.getPublicKey()).toString();\n\t\t\n\t\tString emailEncript = encript.criptografa(user.getEmail(), rsaUser.getPublicKey()).toString();\n\t\t\n\t\tif(existingUser != null) {\n\t\t\texistingUser.setName(nameEncript);\n\t\t\texistingUser.setEmail(emailEncript);\n\t\t}else {\n\t\t\tthrow new NotFoundException(\"User com o Id: \" + id + \" não encontrado em nossa base de dados!\");\n\t\t}\n\t\t\n\t\trepository.save(existingUser);\n\t\t\n\t\treturn existingUser;\n\t}", "User update(User userToUpdate, RegisterRequest registerRequest);", "@Override\n\tpublic void updateUser(User curpwd) {\n\t\tuserRepository.save(curpwd);\n\t}", "@Override\r\n\tpublic void updateUser(User user) {\r\n\t\tUser entity = userDAO.findById(user.getId());\r\n\t\tif(entity!=null){\r\n\t\t\tentity.setUsername(user.getUsername());\r\n\t\t\tif(!user.getPassword().equals(entity.getPassword())){\r\n\t\t\t\tentity.setPassword(encoder.encode(user.getPassword()));\r\n\t\t\t}\r\n\t\t\tentity.setFirstName(user.getFirstName());\r\n\t\t\tentity.setLastName(user.getLastName());\r\n\t\t\tentity.setEmail(user.getEmail());\r\n\t\t\tentity.setRoles(user.getRoles());\r\n\t\t\tentity.setDateOfBirth(user.getDateOfBirth());\r\n\t\t\tentity.setDepartment(user.getDepartment());\r\n\t\t}\r\n\r\n\t}", "public void updateUser(user user) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_USER_NAME, user.getName());\n values.put(COLUMN_USER_EMAIL, user.getEmail());\n values.put(COLUMN_USER_PASSWORD, user.getPassword());\n\n // updating row\n db.update(TABLE_NAME, values, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n db.close();\n }", "public void updateUser(Person user) {\n\t\t\n\t}", "@Override\n\tpublic void editUser(ERSUser user) {\n\t\tuserDao.updateUser(user);\n\t}", "public void update(User user) {\n repository.update(user);\n }", "public void update(com.conurets.inventory.model.User model) throws InventoryException {\n }", "@Override\r\n\tpublic int updateUser(User user, String userName) {\n\t\treturn 0;\r\n\t}", "public void updateUser(User detachedUser) throws Exception;", "@Override\r\n\tpublic int updateUser(Users user) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic User update(User user) {\n\t\tUser oldUser = new User();\n\t\tif(user.getId() !=null) {\n\t\t\toldUser = repo.findById(user.getId()).get();\n\t\t}\n\t\t\toldUser.setUserId(user.getUserId());\n\t\t\toldUser.setName(user.getName());\n\t\t\toldUser.setEmail(user.getEmail());\n\t\t\t\n\t\treturn repo.save(oldUser);\n\t}", "@Override\r\n\tpublic int updateByPrimaryKey(User record) {\n\t\treturn userDao.updateByPrimaryKey(record);\r\n\t}", "public Account update(Account user);", "public void updateUser(User user) throws HibernateException\r\n\t{\r\n\t Session session = sessionFactory.getCurrentSession();\r\n\t session.update(user);\r\n\t}", "public void updateUser(User user) {\n update(\"UPDATE user SET \" +\n \"role_id = ?,\" +\n \"given_name = ?,\" +\n \"family_name = ?,\" +\n \"username = ?,\" +\n \"email = ?,\" +\n \"password = ?,\" +\n \"phone = ? \" +\n \"WHERE id = ?\",\n new Object[] {\n user.getRoleId(),\n user.getGivenName(),\n user.getFamilyName(),\n user.getUsername(),\n user.getEmail(),\n user.getPassword(),\n user.getPhone(),\n user.getId()});\n }", "void updateUser(int id, UpdateUserDto updateUserDto);", "@ApiMethod(name = \"updateUser\")\n\tpublic User updateUser(User user) {\n\t\tEntityManager mgr = getEntityManager();\n\t\ttry {\n\t\t\tif (!containsUser(user)) {\n\t\t\t\tthrow new EntityNotFoundException(\"Object does not exist\");\n\t\t\t}\n\t\t\tmgr.persist(user);\n\t\t} finally {\n\t\t\tmgr.close();\n\t\t}\n\t\treturn user;\n\t}", "public void update(User u) {\n\r\n\t}", "public String update() {\r\n\t\tuserService.update(userEdit);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"update\";\r\n\t}", "@Headers({\n \"Content-Type:application/json\"\n })\n @PUT(\"administrators/{id}\")\n Call<Void> updateUser(\n @retrofit2.http.Path(\"id\") Integer id, @retrofit2.http.Body UserBody userBody\n );", "public User update(User user) {\n\t\treturn userDao.update(user);\n\t}", "public User update(User user) throws DataAccessException;", "public Boolean updateUserData (User currentUser){ //throws Exception if user not existing in database\n\n if(userRepository.existsById(currentUser.getId())){\n User temp_user = getUserById(currentUser.getId());\n\n temp_user.setUsername(currentUser.getUsername());\n temp_user.setBirthday_date(currentUser.getBirthday_date());\n userRepository.save(temp_user);\n\n return true;\n }else{\n throw new UnknownUserException(\"This user doesn't exist and can therefore not be updated\");\n }\n }", "@Override\n public TechGalleryUser updateUser(final TechGalleryUser user) throws BadRequestException {\n if (!userDataIsValid(user) && user.getId() != null) {\n throw new BadRequestException(i18n.t(\"User's email cannot be blank.\"));\n } else {\n userDao.update(user);\n return user;\n }\n }", "@PutMapping(\"/user/{id}\")\n\tpublic ResponseEntity<User> updateUser(@PathVariable(\"id\") int id, @RequestBody User user) {\n\t\tUser currentUser = userDao.getUserById(id);\n\t\tif (currentUser == null) {\n\t\t\treturn new ResponseEntity<User>(HttpStatus.NOT_FOUND);\n\t\t} else {\n\t\t\tcurrentUser.setFullName(user.getFullName());\n\t\t\tcurrentUser.setUserName(user.getUserName());\n\t\t\tcurrentUser.setEmail(user.getEmail());\n\t\t\tuserDao.update(currentUser);\n\t\t\treturn new ResponseEntity<User>(currentUser, HttpStatus.OK);\n\t\t}\n\t}", "public void updateUser(UserModel body, Integer id) {\n UserModel userModelToUpdate = userRepository.getOne(id);\n userModelToUpdate.setFirstname(body.getFirstname());\n if(body.getPassword()!=null) {\n //validate on UserModel entity\n }\n userModelToUpdate.setLastname(body.getLastname());\n userModelToUpdate.setEmail(body.getEmail());\n userModelToUpdate.setPassword(body.getPassword());\n userModelToUpdate.setUsername(body.getUsername());\n userRepository.save(body);\n // wait for best practice\n }", "public int updateUser(User user) {\n\t\treturn userMapper.updateUser(user);\r\n\t}", "@Override\n\tpublic int updateUser(SmbmsUser user) {\n\t\treturn sud.updateUser(user);\n\t}", "@Test\n void testUpdateUser() {\n String password = \"testPassword\";\n User updateUser = (User) userData.crud.getById(1);\n updateUser.setPassword(password);\n userData.crud.updateRecords(updateUser);\n User getUser = (User) userData.crud.getById(1);\n assertEquals(getUser, updateUser);\n logger.info(\"Updated the password for ID: \" + updateUser.getId());\n }", "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n\t@RequestMapping(value = \"/users\", method = RequestMethod.PUT)\n\tpublic AppUser updateUser(@RequestBody AppUser appUser) {\n\t\tif (appUserRepository.findOneByUsername(appUser.getUsername()) != null\n\t\t\t\t&& appUserRepository.findOneByUsername(appUser.getUsername()).getId() != appUser.getId()) {\n\t\t\tthrow new RuntimeException(\"Username already exist\");\n\t\t}\n\t\treturn appUserRepository.save(appUser);\n\t}", "public void update(User user) {\n\t\tString sql=\"update SCOTT.USERS set USERNAME='\"+user.getUsername()+\"',PASSWORD='\"+user.getPassword()+\"',NICKNAME='\"+user.getNickname()+\"',EMAIL='\"+user.getEmail()+\"',STATE='\"+user.getState()+\"',CODE='\"+user.getCode()+\"' where ID='\"+user.getUid()+\"'\";\n\t\t\n\t\tJdbcUtils jdbcutils=new JdbcUtils();\n\t\tjdbcutils.executeUpdate(sql);\n\t\t\n\t}", "public void update(User u) {\n\t\tUserDao ua=new UserDao();\n\t\tua.update(u);\n\t\t\n\t}", "@Override\n\tpublic void update(User user) throws DAOException {\n\t\t\n\t}", "public void updateUser(User user) {\n\t\tEntityManager entityManager = HandleConnectionToDB.getEntityManager();\n\t\tentityManager.getTransaction().begin();\n\t\tuser = entityManager.merge(user);\n\t\tentityManager.persist(user);\n\t\tentityManager.getTransaction().commit();\n\t\tHandleConnectionToDB.closeEntityManager();\n\t}", "@Override\n\t@Transactional\n\tpublic void updateUser(User user) {\n\t\tuserRepository.saveAndFlush(user);\n\t}", "@Override\n\tpublic Boolean updateUser(User user) {\n\t\treturn null;\n\t}", "@Transactional(readOnly=false)\r\n\tpublic void updateUser(User user) {\n\t\tthis.userDao.updateEntry(user);\r\n\t}" ]
[ "0.8199384", "0.7966707", "0.79300565", "0.7877367", "0.78130597", "0.7775774", "0.7752446", "0.7748291", "0.77396953", "0.7654117", "0.7637119", "0.7626018", "0.76194245", "0.75982785", "0.75921696", "0.7542497", "0.7534886", "0.75238734", "0.7516813", "0.7466964", "0.7460832", "0.7429301", "0.7427515", "0.7411369", "0.739771", "0.7384916", "0.73773444", "0.7366535", "0.73645866", "0.73645866", "0.7363351", "0.7352202", "0.73343575", "0.73340315", "0.7333278", "0.7317408", "0.72989976", "0.7287923", "0.72755325", "0.7273265", "0.7264981", "0.72453606", "0.7221167", "0.722027", "0.7210373", "0.7207637", "0.71983516", "0.71946025", "0.719116", "0.71875006", "0.7176581", "0.7176535", "0.7172539", "0.71700764", "0.71652025", "0.7160481", "0.7148183", "0.7146376", "0.71345365", "0.7132713", "0.7124754", "0.71225065", "0.7120471", "0.7113641", "0.71126044", "0.71102625", "0.7106916", "0.7104465", "0.71038276", "0.70961344", "0.7095839", "0.7094497", "0.708326", "0.7081969", "0.7079876", "0.70663846", "0.70508826", "0.7045565", "0.70448476", "0.70420563", "0.7027124", "0.7026357", "0.7025425", "0.7023414", "0.702239", "0.7018203", "0.7013702", "0.7000467", "0.699977", "0.6998303", "0.6989669", "0.6987095", "0.6980034", "0.6976959", "0.69663393", "0.696243", "0.69529617", "0.69517124", "0.6951566", "0.6951319" ]
0.7170725
53
Deletes a single, existing user in database
@Override public boolean deleteUser(User user) { return controller.deleteUser(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteUserById(Long id);", "void deleteUserById(Integer id);", "public void deleteUser(User userToDelete) throws Exception;", "public void deleteUser(long id){\n userRepository.deleteById(id);\n }", "public void deleteUser(User user) {\n update(\"DELETE FROM user WHERE id = ?\",\n new Object[] {user.getId()});\n }", "public void deleteUser(int id) {\r\n userRepo.deleteById(id);\r\n }", "public void deleteUser(String name);", "public void delete(User user){\n userRepository.delete(user);\n }", "public void deleteUser(int id) {\n\t\tuserRepository.delete(id);\r\n\t}", "@Override\n\tpublic int deleteUser(Integer id) {\n\t\treturn userDao.deleteUser(id);\n\t}", "public void deleteUser(User user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_USER, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n db.close();\n }", "void deleteUser(String username) throws UserDaoException;", "void deleteUser(int id);", "public void deleteUser(User user) {\n\t\tdelete(user);\r\n\t}", "@Override\n\tpublic void deleteOne(User u) {\n\t\tdao.deleteOne(u);\n\t}", "@Override\n\tpublic void deleteUser(User user) {\n\t\topenSession().createQuery(\"DELETE FROM User where userId =\" + user.getUserId()).executeUpdate();\n\t\t\n\t}", "public void deleteUser(User user) {\n\t\t\r\n\t\tsessionFactory.getCurrentSession().delete(user);\t\r\n\t\t\r\n\t}", "public void deleteUser(String username);", "public void deleteUser(int id){\r\n\t\tconfigDao.deleteUserById(id);\r\n\t}", "@Override\r\n\tpublic void delete(User user) {\n\t\tuserDao.delete(user);\r\n\t}", "public boolean delete(User user);", "public void deleteUser(final Long id) {\n userRepository.deleteById(id);\n }", "@Override\r\n\tpublic int deleteUser(Users user) {\n\t\treturn 0;\r\n\t}", "public void deleteUser(Integer uid);", "public void delete(User user) {\n\t\tuserDao.delete(user);\n\t}", "public void deleteUser(int id) {\n\t\tet.begin();\n\t\tem.remove(em.find(User.class, id));\n\t\tet.commit();\n\t}", "public void deleteUser(User user) {\r\n\t\tusersPersistence.deleteUser(user);\r\n\t}", "public User delete(String user);", "@Override\r\n\tpublic int delete(int id) {\n\t\treturn userDAO.DeleteUser(id);\r\n\t}", "public void deleteUser(long userId);", "public void deleteUser(user user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_NAME, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getId())});\n db.close();\n }", "public void deleteUserById(Long userId);", "@Override\n\tpublic int delete(Users user) {\n\t\t\n\t\treturn userDAO.delete(user);\n\t}", "boolean delete(User user);", "void deleteUser( String username );", "@Override\n\tpublic void deleteUser(int id) {\n\t\tuserMapper.deleteUser(id);\n\t}", "void deleteUser(String userId);", "public void deleteUser(Integer id) {\n UserModel userModel;\n try {\n userModel = userRepository.findById(id).orElseThrow(IOException::new);\n }\n catch (IOException e) {\n System.out.println(\"User not found\");\n userModel = null;\n }\n userRepository.delete(userModel);\n }", "public void deleteUser(Integer id) throws BadRequestException;", "public static int delete(User user) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n\n String query = \"DELETE FROM users \"\n + \"WHERE Email = ?\";\n try {\n ps = connection.prepareStatement(query);\n ps.setString(1, user.getEmail());\n\n return ps.executeUpdate();\n } catch (SQLException e) {\n System.out.println(e);\n return 0;\n } finally {\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }", "@Override\n\tpublic void delete(User user)\n\t{\n\t\tuserDAO.delete(user);\n\t}", "void delete(User user);", "void delete(User user);", "public void delete(User user) {\n repository.delete(user);\n }", "@Override\n\tpublic void deleteUser(User user)\n\t{\n\n\t}", "public String deleteUser(){\n\t\tusersservice.delete(usersId);\n\t\treturn \"Success\";\n\t}", "@Override\r\n\tpublic int deleteByPrimaryKey(Integer id) {\n\t\treturn userDao.deleteByPrimaryKey(id);\r\n\t}", "public void deleteUserById(int id){\n userListCtrl.deleteUser(id);\n }", "@Override\n\tpublic void deleteUser(User user) {\n\t\tiUserDao.deleteUser(user);\n\t}", "@Override\r\n\tpublic boolean delUser(user user) {\n\t\tif(userdao.deleteByPrimaryKey(user.gettUserid())==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}", "void deleteUser(String deleteUserId);", "@Override\n\tpublic int deleteByPrimaryKey(Integer id) {\n\t\treturn userMapper.deleteByPrimaryKey(id);\n\t}", "public User delete(User user);", "void deleteUser(User user, String token) throws AuthenticationException;", "@Override\n\tpublic void deleteUser(String id) throws Exception {\n\t\t\n\t}", "public void deleteUserRecord() {\n\t\tSystem.out.println(\"Calling deleteUserRecord() Method To Delete User Record\");\n\t\tuserDAO.deleteUser(user);\n\t}", "public void removeUser(){\n googleId_ = User.getDeletedUserGoogleID();\n this.addToDB(DBUtility.get().getDb_());\n }", "@Override\n public void delete(User user) {\n dao.delete(user);\n }", "public int deleteUser(int id) {\n\t\treturn userMapper.deleteUser(id);\r\n\t}", "public void deleteUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk deleteUser\");\r\n\t}", "@Override\n public boolean deleteUser(User user) {\n return false;\n }", "@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}", "@Override\n\tpublic void delete_User(String user_id) {\n\t\tuserInfoDao.delete_User(user_id);\n\t}", "public void deleteUser(String id) {\n\t\tSystem.out.println(\"deleteUser\");\n\t\t personDAO.deleteUser(id);\n\t}", "public void deleteUser(User u) {\n\t\tuserRepository.delete(u);\n\t}", "public void deleteUser(String username) {\n profile.deleteUser(username);\n }", "@Override\n\tpublic Boolean deleteUser(User user) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void deleteUser(int userId) {\n\t\tuserDao.deleteUser(userId);\n\t}", "@Override\n\tpublic int delete(int uid) {\n\t\treturn new userDaoImpl().delete(uid);\n\t}", "public Boolean DeleteUser(User user){\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic void deleteUserById(Integer id) {\n\n\t}", "@Override\n\tpublic void delete(Connection conn, User user) throws SQLException {\n\t\tString deleteSql=\"delete from tbl_user where id=?\";\n\t\tPreparedStatement ps=conn\n\t\t\t\t.prepareCall(deleteSql);\n\t\tps.setLong(1, user.getId());\n\t\tps.execute();\n\t\t\n\t}", "void remove(User user) throws SQLException;", "public void deleteAppUser(AppUserTO appUser) {\n\t\ttry {\n\t\t\tthis.jdbcTemplate.update(\"delete from carbon_app_user where id=?\",\n\t\t\t\t\tappUser.getId());\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error in AppUserDAO: deleteAppUser\", e);\n\t\t}\n\t}", "public void deleteUser(IndividualUser user) {\n try{\n PreparedStatement s = sql.prepareStatement(\"DELETE FROM Users WHERE userName=? AND id=? AND firstName=? AND lastName=?;\");\n s.setString(1, user.getId());\n s.setInt(2,user.getIdNum());\n s.setString(3, user.getFirstName());\n s.setString(4, user.getLastName());\n s.execute();\n s.close();\n } catch (SQLException e) {\n sqlException(e);\n }\n }", "@Override\n\tpublic int delete(String username) {\n\t\tUsers user = userDAO.read(username);\n\t\treturn delete(user);\n\t}", "public void delete(User u) {\n\t\tUserDao ua=new UserDao();\n\t\tua.delete(u);\n\t\t\n\t}", "public void deleteUser(Userlist user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_USERLIST, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getID())});\n db.close();\n }", "@Override\r\n\tpublic int deleteUser(String userId) {\n\t\treturn userMapper.deleteUser(userId);\r\n\t}", "Integer removeUserByUserId(Integer user_id);", "public void deleteUser(Long id) {\n\t\tOptional<User> user = repository.findById(id);\n\n\t\tif (user.isPresent()) {\n\t\t\trepository.deleteById(id);\n\t\t} else {\n\t\t\tthrow new NotFoundException(\"User com o Id: \" + id + \" não encontrado em nossa base de dados!\");\n\t\t}\n\t}", "@Override\r\n\tpublic void delete(UserMain user) {\n\t\tusermaindao.delete(user);\r\n\t}", "@Override\n\tpublic int delUser(Integer id)throws Exception {\n\t\treturn userMapper.delUser(id);\n\t}", "public DeleteUserResponse deleteUser(DeleteUserRequest request) throws GPUdbException {\n DeleteUserResponse actualResponse_ = new DeleteUserResponse();\n submitRequest(\"/delete/user\", request, actualResponse_, false);\n return actualResponse_;\n }", "public void deleteUser(int id) throws Exception {\n\t\tSession session = null;\n \t\ttry {\n\t\t\tsession = sf.openSession();\n\t\t\tString sql = \"delete from sys_user where emp_id=\"+id;\n\t\t\tSQLQuery sqlQuery=session.createSQLQuery(sql);\n\t\t\tsqlQuery.executeUpdate();\n\t\t\tsession.flush();\n\t\t} catch (Exception e) {\n \t\t\te.printStackTrace();\n \t\t} finally {\n\t\t\tif (session != null)\n\t\t\t\tsession.close();\n\t\t}\n\t}", "void removeUser(Long id);", "public int deleteByPrimaryKey(Long id) {\r\n User key = new User();\r\n key.setId(id);\r\n int rows = getSqlMapClientTemplate().delete(\"spreader_tb_user.ibatorgenerated_deleteByPrimaryKey\", key);\r\n return rows;\r\n }", "@Override\r\n\tpublic int delete(User user) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void deleteUser(Long userId) {\n\t\tusersRepo.deleteById(userId);\n\n\t}", "public void delete(int id){\n\t\tuserRepository.delete(id);\n\t}", "@Override\n\tpublic void delete(String id) {\n\t\tuserDao.delete(id);\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\tuserDao.delete(id);\n\t}", "public int delete(Long userId) {\n LOGGER.debug(\"delete a User\");\n Session s = getSession();\n Query query = s.createQuery(\"delete User where id = :ID\");\n query.setParameter(\"ID\", userId);\n int result = query.executeUpdate();\n return result;\n }", "public static void deleteUserFromDb(Person person) {\n int id = person.getId();\n\n String query = \"DELETE FROM users WHERE idusers = \" + id + \";\";\n DbConnector.updateValueInDb(query);\n }", "@DeleteMapping(\"/users/{id}\")\n\tpublic void deleteUser(@PathVariable int id) {\n\t\tuserService.deleteById(id);\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void deleteByUser(User user) {\n\t\tuserReposotory.delete(user);\r\n\t}", "public Boolean deleteUser (long id){\n User user_to_be_deleted = userRepository.findById(id);\n if(user_to_be_deleted != null){\n userRepository.delete(user_to_be_deleted);\n return userRepository.existsById(id);\n }else{\n throw new UnknownUserException(\"This user doesn't exist and can therefore not be deleted\");\n }\n\n }", "@Override\r\n\tpublic void deleteByIdUser(int id) {\n\t\tuserReposotory.deleteById(id);\r\n\t}", "private void deleteUser() throws SQLException {\n System.out.println(\"Are you sure you want to delete your user? Y/N\");\n if (input.next().equalsIgnoreCase(\"n\")) return;\n\n List<Integer> websiteIds = new ArrayList<>();\n try (PreparedStatement stmt = connection.prepareStatement(\"SELECT * FROM passwords \" +\n \"WHERE user_id like (?)\")) {\n stmt.setInt(1, user.getId());\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n websiteIds.add(rs.getInt(\"website_data_id\"));\n }\n }\n\n try (PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM passwords \" +\n \"WHERE user_id like (?)\")) {\n stmt.setInt(1, user.getId());\n stmt.executeUpdate();\n }\n\n for (int website : websiteIds) {\n try (PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM website_data \" +\n \"WHERE website_data_id like (?)\")) {\n stmt.setInt(1, website);\n stmt.executeUpdate();\n }\n }\n\n try (PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM users \" +\n \"WHERE id like (?)\")) {\n stmt.setInt(1, user.getId());\n stmt.executeUpdate();\n }\n\n System.out.println(\"User \" + user.getUsername() + \" deleted.\");\n System.exit(0);\n }", "public void delete() throws NotFoundException {\n\tUserDA.delete(this);\n }" ]
[ "0.80805045", "0.80073154", "0.79661953", "0.79624563", "0.79016966", "0.7889683", "0.7841047", "0.7840835", "0.78251433", "0.77705795", "0.7748247", "0.77441776", "0.7741333", "0.7730336", "0.7728563", "0.7726267", "0.77239054", "0.77023363", "0.76924694", "0.7692352", "0.7689237", "0.76672125", "0.76557523", "0.76551586", "0.76483405", "0.76439095", "0.76397717", "0.7634046", "0.7633796", "0.7631238", "0.7608331", "0.7607215", "0.76030463", "0.7599234", "0.7599147", "0.75933015", "0.7590995", "0.7576653", "0.757183", "0.7566772", "0.75599825", "0.7559366", "0.7559366", "0.75593007", "0.75456697", "0.7544814", "0.7541135", "0.75280577", "0.75213754", "0.7509154", "0.74986905", "0.7487906", "0.74798495", "0.7479695", "0.74710137", "0.7467899", "0.74644107", "0.74467385", "0.7445642", "0.74390346", "0.74276125", "0.74265915", "0.7424054", "0.7420463", "0.74015003", "0.739113", "0.73873514", "0.73853385", "0.73829204", "0.7381658", "0.73780257", "0.7364364", "0.73481077", "0.73461056", "0.73379946", "0.7324673", "0.73217654", "0.7318525", "0.7315871", "0.73136264", "0.73030525", "0.73020965", "0.73009557", "0.7280036", "0.72799087", "0.727942", "0.7277665", "0.7266464", "0.7262313", "0.7259936", "0.7255185", "0.72548866", "0.7254074", "0.7252285", "0.7251471", "0.7250709", "0.7246505", "0.7245219", "0.7245168", "0.7244823" ]
0.7656259
22
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_setup4); cb = (CheckBox) findViewById(R.id.ck_setup4); boolean cb_Protected = pre.getBoolean("cb_Protected", false); if (cb_Protected) { cb.setChecked(true); cb.setText("防盗保护已经开启"); } else { cb.setChecked(false); cb.setText("防盗保护没有开启"); } cb.setOnCheckedChangeListener(new OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if (isChecked) { pre.edit().putBoolean("cb_Protected", true).commit(); cb.setText("防盗保护已经开启"); } else { pre.edit().putBoolean("cb_Protected", false).commit(); cb.setText("防盗保护没有开启"); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onPageScrollStateChanged(int arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onPageScrolled(int arg0, float arg1, int arg2) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Returns the name of the node.
public String getName() { return this.name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String name() {\n return node.getNodeName();\n }", "public String getName()\n {\n \tif (_nodeVRL==null)\n \t\treturn null;\n \t\n return _nodeVRL.getBasename(); // default= last part of path\n }", "public String getNodeName (CyNode node) {\n return nodeHandler.getNodeName(node);\n }", "public String getNodeName()\n {\n return displayNode.toString();\n }", "public String getNodeName() {\n final String ret;\n\n if (this.eName == null) {\n if (this.getNode() == null) {\n ret = null;\n } else {\n ret = this.getNode().getNodeName();\n }\n } else {\n ret = this.eName;\n }\n\n return ret;\n }", "public String name() {\n return BPMNode.getId();\n }", "String getNodeName();", "public String getName() {\n return element.getNodeName();\n }", "String getNodeName() {\n return this.nodeName;\n }", "public String getNodeName() {\n if (nodeName == null) {\n nodeName = EJBLookup.getNodeConfigurationEngine().getNodeName();\n }\n return nodeName;\n }", "static String getName(Node node) {\n Attr attribute = (Attr) node.getAttributes().getNamedItemNS(null, ATTR_NAME);\n\n if (attribute != null) {\n return attribute.getValue();\n }\n\n return null;\n }", "String getNodeName() {\n return nodeName;\n }", "public String getNodeName()\n\t{\n\t\tif (this.name == null)\n\t\t\tthis.name = StyleEditorUtility.DEFAULT_STYLE_NODE_NAME;\n\n\t\treturn this.name;\n\t}", "public String getNodeName() {\n return nodeName;\n }", "public Name getNodeTypeName() {\n return nodeTypeName;\n }", "public String getName () { return n.getName(); }", "private String getName(Name node) {\n\t\tif (node.isQualifiedName()) {\n\t\t\tQualifiedName name = (QualifiedName) node;\n\t\t\treturn getName(name.getQualifier());\n\t\t}\n\t\t//if it's a simple name\n\t\telse if (node.isSimpleName()) {\n\t\t\treturn node.toString();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public abstract String toName(Object inNode);", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "public String getName() { \n\t\treturn getNameElement().getValue();\n\t}", "public String getNodeName()\n {\n return Constants.ELEMNAME_NUMBER_STRING;\n }", "public String getNameIdNode() {\r\n String nameIdNode = null;\r\n nameIdNode = this.getParam(ESCOConstantes.NAMEID_NODE);\r\n // Add the root element if not present\r\n if (null != nameIdNode && !nameIdNode.startsWith(ESCOConstantes.STEM_NAME_SEPARATOR)) {\r\n nameIdNode = ESCOConstantes.STEM_NAME_SEPARATOR + nameIdNode;\r\n }\r\n\r\n return nameIdNode;\r\n }", "public String getNodeNameColumnName () {\n return nodeHandler.getNodeNameColumnName();\n }", "@Nullable\n public String getName() {\n return getElement().getName();\n }", "public java.lang.String getName();", "public String getTagName() \n {\n return _node == null ? null : _node.getName().getLocalPart();\n }", "public String getName() {\r\n\t\treturn name.get();\r\n\t}", "@Override\r\n\t\tpublic String getNodeName()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public final String getTagName() {\n return getNodeName();\n }", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "public String\n getNodeName() \n {\n return pNodeName;\n }", "@Override\n\tpublic String getNodeName() {\n\t\treturn null;\n\t}", "private String getName(Node node) {\n\t\tif (node.hasAttributes() == false) \n\t\t\treturn null;\n\t\t\n\t\tfor (int i = 0; i<node.getAttributes().getLength(); i++) {\n\t\t\tif (node.getAttributes().item(i).getNodeName().equals(\"name\")) \n\t\t\t\treturn node.getAttributes().item(i).getNodeValue();\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic String getName() {\n\t\tfinal PsiElement nameIdentifier = getNameIdentifier();\n\t\treturn nameIdentifier != null ? nameIdentifier.getText() : getText();\n\t}", "public String getName() {\n\t\treturn this.toString();\n\t}", "public String getName() {\n return name.get();\n }", "private String getUniqueNodeName() {\n return String.format(\"N%d\", uniqueNode++);\n }", "public final Identifier getName() {\n return getMemberImpl().getName();\n }", "public String getNode() {\n return node;\n }", "public String getNode() {\n return node;\n }", "public String getName() {\n if(name == null)\n return \"\"; \n return name;\n }", "public java.lang.String getName() {\n return localName;\n }", "public java.lang.String getName() {\n return localName;\n }", "public java.lang.String getName() {\n return localName;\n }", "public Identifier getName();", "public String getNode()\n {\n return node;\n }", "public final String getName() {\n\treturn name.getName();\n }", "public java.lang.String getName() {\r\n return localName;\r\n }", "public java.lang.String getName() {\r\n return localName;\r\n }" ]
[ "0.8815894", "0.81364703", "0.8128006", "0.7927621", "0.7853103", "0.7719504", "0.7714218", "0.7710869", "0.76372796", "0.7496369", "0.74891233", "0.74804306", "0.7478859", "0.74219114", "0.7419445", "0.7359027", "0.73572487", "0.73556805", "0.7290152", "0.7290152", "0.7290152", "0.7267746", "0.72118074", "0.71503615", "0.71326065", "0.71153986", "0.711159", "0.70636", "0.70593745", "0.70522517", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.70420015", "0.7025212", "0.70164794", "0.7014881", "0.70141447", "0.7006256", "0.6990162", "0.6986766", "0.6976743", "0.6916164", "0.69082546", "0.6904761", "0.6900385", "0.6900385", "0.6900385", "0.6896175", "0.68945557", "0.68883765", "0.6880712", "0.6875921" ]
0.0
-1
Sets name of the node.
public void setName(String name) { this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName (String n) {\n name = n;\n }", "public void setName(String n) {\r\n name = n;\r\n }", "public void setName (String n){\n\t\tname = n;\n\t}", "public void changeName(String name) {\n this.treeName = name;\n }", "public void setName(String name) {\r\n\t\t_name = name;\r\n\t}", "public void setName(String name) {\n\t this.name = name;\n\t }", "public final void setName(String name) {\n\t\tthis.name = name;\n\t}", "@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}", "public void setName (String name) \n\t{ \n\t\tif (name == null) WNet.ex(\"Names cannot be null\");\n\t\tif (name.contains(WNetConstants.LISTSEPARATORANDINVALIDNAMECHARACTER)) throw new Net2PlanException(\"Names cannot contain the character: \" + WNetConstants.LISTSEPARATORANDINVALIDNAMECHARACTER); \n\t\tif (getNet().getNodes().stream().anyMatch(n->n.getName().equals(name))) WNet.ex(\"Names cannot be repeated\");\n\t\tif (name.contains(\" \")) throw new Net2PlanException(\"Names cannot contain spaces\"); \n\t\tn.setName(name); \n\t}", "public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}", "public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}", "public void setName (String name) {\r\n\t\tthis.name = name;\r\n\t}", "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String n) {\n this.name = n;\n }", "public void setName(String n) {\r\n\t\tthis.name = n;\r\n\t}", "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}", "public void setName(final String name) {\n\t\tthis.name = name;\n\t}", "public void setName(final String name) {\n\t\tthis.name = name;\n\t}", "public void setName(final String name) {\n\t\tthis.name = name;\n\t}", "public void setName(final String name) {\n\t\tthis.name = name;\n\t}", "public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "public void setName(String name) {\r\n this._name = name;\r\n }", "public void setName (String name) {\n this.name = name;\n }", "public void setName (String name) {\n this.name = name;\n }", "public void setName (String name) {\n this.name = name;\n }", "public void setName(String name) {\n if (!name.isEmpty()) {\n this.name = name;\n }\n }", "public void setName(String name) {\r\n \t\tthis.name = name;\r\n \t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\n _name = name;\n }", "public void setName(final String name) {\n this.name = name;\n }", "public void setName(final String name) {\n this.name = name;\n }", "public void setName(final String name) {\n this.name = name;\n }", "public void setName(final String name) {\n this.name = name;\n }", "public void setName( final String name )\n\t{\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t}" ]
[ "0.78944355", "0.7894219", "0.7878848", "0.7876542", "0.7850503", "0.78433263", "0.7841048", "0.78332025", "0.7814625", "0.7811508", "0.7811508", "0.7800895", "0.7799315", "0.7793572", "0.778785", "0.77874357", "0.77864873", "0.77864873", "0.77864873", "0.77864873", "0.7785428", "0.7785428", "0.7771617", "0.7771617", "0.77713746", "0.7763694", "0.7763694", "0.7763694", "0.77596", "0.7757724", "0.77547747", "0.77547747", "0.77547747", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.77510124", "0.774949", "0.7745984", "0.7745984", "0.7745984", "0.7745984", "0.7745578", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894", "0.77414894" ]
0.0
-1
Returns namespace of the node.
public String getNameSpace() { return this.namespace; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Optional<String> namespace() {\n return Codegen.stringProp(\"namespace\").config(config).get();\n }", "@Nullable public String getNamespace() {\n return namespace;\n }", "java.lang.String getNamespace();", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "String getNamespace();", "String getNamespace();", "String getNamespace();", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace();", "public String getNamespace()\n {\n return NAMESPACE;\n }", "public String getNamespace()\n/* */ {\n/* 357 */ return this.namespace;\n/* */ }", "@Updatable\n public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return this.namespace;\n }", "public String getNamespaceName() {\n return namespaceName;\n }", "@Override\n\tpublic String getNamespace() {\n\t\treturn nameSpace;\n\t}", "int getNamespaceUri();", "public String getNamespaceURI() {\n return this.namespaceUri;\n }", "String getReferenceNamespace();", "@Override\n\tprotected String getNamespace() {\n\t\treturn NAMESPACE;\n\t}", "public java.lang.String getNameSpaceURI()\n {\n return nsURI;\n }", "public java.lang.String getNameSpaceURI()\n {\n return nsURI;\n }", "public java.lang.String getNameSpaceURI()\n {\n return nsURI;\n }", "String getNamespaceStringValue(Object ns);", "public String getNamespace() {\n return EPPSecDNSExtFactory.NS;\n }", "public String getNamespace() {\n return getTypeDefinition().getNamespace();\n }", "String getTargetNamespace();", "@XmlElement(required = true, name = \"namespace\")\n public String getNamespace() {\n return namespace;\n }", "org.apache.xmlbeans.XmlNMTOKEN xgetNamespace();", "String getNamespacePrefix(Object ns);", "public String getXmlns()\r\n\t{\r\n\t\treturn xmlns;\r\n\t}", "protected final Namespace getNamespace()\n {\n return m_namespace;\n }", "public String getNamespace() {\n\t\treturn EPPNameVerificationMapFactory.NS;\n\t}", "public YANG_NameSpace getNameSpace() {\n\t\treturn namespace;\n\t}", "public NamespaceId getNamespaceId() {\n return namespaceId;\n }", "public String getNamespaceURL() {\n return namespaceURL;\n }", "private String getNamespace(String qname) {\n StringTokenizer tok = new StringTokenizer(qname, \":\");\n String prefix;\n\n if (tok.countTokens() == 1) {\n return \"\";\n }\n prefix = tok.nextToken();\n\n NamedNodeMap map = mDoc.getDocumentElement().getAttributes();\n for (int j = 0; j < map.getLength(); j++) {\n Node n = map.item(j);\n\n if (n.getLocalName().trim().equals(prefix.trim())) {\n return n.getNodeValue();\n }\n }\n\n return \"\";\n }", "Namespace getGpmlNamespace();", "private String getNamespace(Package pkg) {\n/* */ String nsUri;\n/* 223 */ if (pkg == null) return \"\";\n/* */ \n/* */ \n/* 226 */ XmlNamespace ns = pkg.<XmlNamespace>getAnnotation(XmlNamespace.class);\n/* 227 */ if (ns != null) {\n/* 228 */ nsUri = ns.value();\n/* */ } else {\n/* 230 */ nsUri = \"\";\n/* 231 */ } return nsUri;\n/* */ }", "@Override\r\n\tpublic String getNamespace() {\n\t\treturn null;\r\n\t}", "public String getTargetNamespace()\r\n {\r\n return targetNamespace;\r\n }", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "public String getDefaultNamespace() {\n return defaultNamespaceUri;\n }", "public final String getTargetNamespace() {\n return fTargetNamespace;\n }", "@Override\n\tpublic String getNamespace() {\n\t\treturn null;\n\t}", "public String getNamespaceURI()\n {\n return moduleNS;\n }", "public String getNameSpace() {\n return nameSpace;\n }", "@Override\n\tpublic Namespace getNamespace(Address addr) {\n\t\tif (addr.isMemoryAddress()) {\n\t\t\tfor (TraceSymbol sym : symbolManager.labels().getAt(program.snap, null, addr, true)) {\n\t\t\t\tif (sym instanceof TraceNamespaceSymbol /* Function */) {\n\t\t\t\t\treturn (TraceNamespaceSymbol) sym;\n\t\t\t\t}\n\t\t\t\treturn sym.getParentNamespace();\n\t\t\t}\n\t\t}\n\t\treturn symbolManager.getGlobalNamespace();\n\t}", "public String getTargetNamespace() {\n return _targetNamespace;\n }", "public String getFullName() {\n return getNamespace().getFullName();\n }", "@TargetAttributeType(\n\t\tname = NAMESPACE_ATTRIBUTE_NAME,\n\t\trequired = true,\n\t\tfixed = true,\n\t\thidden = true)\n\tpublic default TargetSymbolNamespace getNamespace() {\n\t\treturn getTypedAttributeNowByName(NAMESPACE_ATTRIBUTE_NAME, TargetSymbolNamespace.class,\n\t\t\tnull);\n\t}", "public String getFeedNamespacePrefix(String namespace);", "public java.lang.Long getOpcnamespace() {\n\t\treturn getValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCNAMESPACE);\n\t}", "public final Namespace getDefaultNamespace() {\n return _defaultNamespace;\n }", "public static String getURI() {\n\t\treturn NS;\n\t}", "public static String getURI() {\n return NS;\n }", "Rule Namespace() {\n // No direct effect on value stack\n return FirstOf(\n ScopedNamespace(),\n PhpNamespace(),\n XsdNamespace());\n }", "public String getXMLSchemaTargetNamespace() {\n String targetNamespace = getPreferenceStore().getString(CONST_DEFAULT_TARGET_NAMESPACE);\n if (!targetNamespace.endsWith(\"/\")) {\n targetNamespace = targetNamespace + \"/\";\n }\n return targetNamespace;\n }", "@Override\n public String getFullyQualifiedNamespace() {\n return this.namespace == null ? extractFqdnFromConnectionString() : (this.namespace + \".\" + domainName);\n }", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "public String getAffectedNamespace() {\n\t\t\treturn affectedNamespace;\n\t\t}", "public String getBaseNamespace() {\n/* 454 */ return \"http://www.w3.org/2000/09/xmldsig#\";\n/* */ }", "public Namespace getNamespace(String name) {\n if (entities != null) {\n if (name == null || name.equals(entities.getName())) {\n\treturn entities;\n } else if (entities.containsNamespaces()) {\n\tActiveNode ns = entities.getBinding(name);\n\tif (ns != null && ns.asNamespace() != null)\n\t return ns.asNamespace();\n }\n }\n if (nameContext != null) {\n return nameContext.getNamespace(name);\n } else {\n return null;\n }\n }", "public java.util.Map<String,String> getNamespaces() {\n return (_namespaces);\n }", "@Override\r\n\tpublic String getNamespaceURI() {\n\t\treturn null;\r\n\t}", "String getImportedNamespace();", "public java.lang.String getRootElementNS() {\r\n return rootElementNS;\r\n }", "@Override\r\n\t\tpublic String getNamespaceURI()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "String getNameSpace();", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "String getAttributeNamespaceUri(Object attr);", "public Map<String,String> getNamespaces() {\n return namespaces;\n }", "Rule XsdNamespace() {\n return Sequence(\n \"xsd_namespace\",\n Literal(),\n actions.pushXsdNamespaceNode());\n }", "public AVM2Namespace getAVM2InternalNamespace();", "Rule ScopedNamespace() {\n return Sequence(\n \"namespace \",\n ScopeAndId());\n }", "@DISPID(1091) //= 0x443. The runtime will prefer the VTID if present\n @VTID(11)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject namespaces();", "static String getName(Node node) {\n Attr attribute = (Attr) node.getAttributes().getNamedItemNS(null, ATTR_NAME);\n\n if (attribute != null) {\n return attribute.getValue();\n }\n\n return null;\n }", "public final String getOwnerNameWithoutPackage() {\n return ElementUtils.getDeclaringClassNameWithoutPackage(node);\n }", "public AVM2Namespace getAVM2ProtectedNamespace();", "private String getDefaultNS() {\n\t\treturn model.getNsPrefixURI(\"\");\n\t}", "@Override\n public String getPrefix(String namespaceURI) {\n return sourceDocument.lookupPrefix(namespaceURI);\n }", "public final String name() {\n return node.getNodeName();\n }", "public QName getQName() {\r\n return new QName(getNamespace(), getName());\r\n }", "public Map getNamespaceMap() {\n/* 130 */ return this.nsMap;\n/* */ }", "private List<Namespace> namespaces() {\n\t\tList<Namespace> namespaces = new ArrayList<>();\n\t\tfor (OwnerTraceData ancestor = data; ancestor != null; ancestor = ancestor.parent) {\n\t\t\tNamespace ns = new Namespace();\n\t\t\tns.data = ancestor;\n\t\t\tnamespaces.add(ns);\n\t\t}\n\t\tCollections.reverse(namespaces);\n\t\tObject2IntMap<String> numbering = new Object2IntOpenHashMap<>(namespaces.size());\n\t\tfor (Namespace ns : namespaces) {\n\t\t\t/*\n\t\t\t * Make a copy since the alias could be changed in another thread (unlikely but possible).\n\t\t\t */\n\t\t\tString alias = ns.data.alias;\n\t\t\tif (!numbering.containsKey(alias)) {\n\t\t\t\tns.name = alias;\n\t\t\t\tnumbering.put(alias, 2);\n\t\t\t} else {\n\t\t\t\tint number = numbering.getInt(alias);\n\t\t\t\tns.name = alias + number;\n\t\t\t\tnumbering.put(alias, number + 1);\n\t\t\t}\n\t\t}\n\t\treturn namespaces;\n\t}", "@Override\n public String getNamespaceURI(String prefix)\n {\n if (prefix == null) {\n throw new IllegalArgumentException(\"Illegal to pass null prefix\");\n }\n for (int i = 0, len = _namespaces.size(); i < len; ++i) {\n Namespace ns = _namespaces.get(i);\n if (prefix.equals(ns.getPrefix())) {\n return ns.getNamespaceURI();\n }\n }\n // Not found; how about from parent?\n if (_parentCtxt != null) {\n String uri = _parentCtxt.getNamespaceURI(prefix);\n if (uri != null) {\n return uri;\n }\n }\n if (prefix.equals(XMLConstants.XML_NS_PREFIX)) {\n return XMLConstants.XML_NS_URI;\n }\n if (prefix.equals(XMLConstants.XMLNS_ATTRIBUTE)) {\n return XMLConstants.XMLNS_ATTRIBUTE_NS_URI;\n }\n return null;\n }", "public String getNode() {\n return node;\n }" ]
[ "0.7678131", "0.76096207", "0.75858605", "0.7484753", "0.7484753", "0.7484753", "0.7482847", "0.7482847", "0.7482847", "0.742804", "0.7387407", "0.7360724", "0.73339796", "0.72792524", "0.72462666", "0.7239672", "0.7150501", "0.69824916", "0.69435674", "0.69380075", "0.6932003", "0.68986356", "0.68986356", "0.68986356", "0.68668944", "0.6852118", "0.6844701", "0.6825325", "0.68202406", "0.6804908", "0.6800045", "0.67593503", "0.6744853", "0.67224", "0.6707294", "0.6687489", "0.66418535", "0.6637579", "0.6616679", "0.661129", "0.6566432", "0.6513456", "0.6492168", "0.6492168", "0.6492168", "0.6492034", "0.6491651", "0.6478578", "0.646841", "0.64643455", "0.6457252", "0.64093167", "0.6380431", "0.63438594", "0.62944496", "0.6225821", "0.6212201", "0.62035155", "0.61945385", "0.61634684", "0.6157869", "0.6152043", "0.6138055", "0.6138055", "0.6138055", "0.6138055", "0.6138055", "0.61003685", "0.60695875", "0.60345703", "0.6033499", "0.6017374", "0.6010954", "0.60090923", "0.59848315", "0.5973765", "0.59569186", "0.59569186", "0.59569186", "0.59569186", "0.59569186", "0.59569186", "0.59569186", "0.59226185", "0.59185046", "0.59087133", "0.5874922", "0.58382726", "0.58246", "0.5807673", "0.5805198", "0.5800115", "0.5795867", "0.5792445", "0.57777166", "0.5749407", "0.5733751", "0.57299495", "0.5707776", "0.57000774" ]
0.71995693
16
Sets namespace of the node.
public void setNameSpace(String namespace) { this.namespace = namespace; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setNamespace(String namespace);", "void setNamespace(java.lang.String namespace);", "public void setNamespace(String namespace) {\n\t\t\r\n\t}", "public void setNamespace (\r\n String strNamespace) throws java.io.IOException, com.linar.jintegra.AutomationException;", "public void setNamespace(String namespace) {\n this.namespace = namespace;\n }", "public void setNamespace(String namespace) {\n this.namespace = namespace;\n }", "public void setNamespace(String namespace) {\r\n if (StringUtils.isBlank(namespace)) {\r\n throw new IllegalArgumentException(\"namespace is blank\");\r\n }\r\n\t\t\tthis.namespace = namespace;\r\n\t\t}", "void xsetNamespace(org.apache.xmlbeans.XmlNMTOKEN namespace);", "abstract XML addNamespace(Namespace ns);", "public void setNameSpaceURI(String nsURI) {\n this.nsURI = nsURI;\n }", "public void setNamespace(final String namespaceValue) {\n this.namespace = namespaceValue;\n }", "public final void changeNS(String ns) {\n\t\tif (ns != null && !ns.isEmpty() && _nsURI != null) {\n\t\t\t_nsURI = ns;\n\t\t}\n\t}", "@Override\r\n\t\tpublic void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\tpublic Attr setAttributeNodeNS(Attr newAttr) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void setNamespaceHandler(NamespaceHandler nsHandler)\r\n {\r\n _nsHandler = nsHandler;\r\n }", "@Updatable\n public String getNamespace() {\n return namespace;\n }", "public void setNamespaceContext(KeyValuePairSet kvps) {\n this.namespaceContext = kvps;\n }", "public Namespace() {\n this(DSL.name(\"namespace\"), null);\n }", "public void setNameSpacePrefix(String nsPrefix) {\n this.nsPrefix = nsPrefix;\n }", "public Node setNamedItemNS(Node arg)\n throws DOMException {\n\n \tif (isReadOnly()) {\n throw\n new DOMExceptionImpl(DOMException.NO_MODIFICATION_ALLOWED_ERR,\n \"DOM001 Modification not allowed\");\n }\n \n \tif(arg.getOwnerDocument() != ownerNode.ownerDocument()) {\n throw new DOMExceptionImpl(DOMException.WRONG_DOCUMENT_ERR,\n \"DOM005 Wrong document\");\n }\n\n NodeImpl argn = (NodeImpl)arg;\n \tif (argn.isOwned()) {\n throw new DOMExceptionImpl(DOMException.INUSE_ATTRIBUTE_ERR,\n \"DOM009 Attribute already in use\");\n }\n\n // set owner\n argn.ownerNode = ownerNode;\n argn.isOwned(true);\n\n \tint i = findNamePoint(argn.getNamespaceURI(), argn.getLocalName());\n \tNodeImpl previous = null;\n \tif (i >= 0) {\n previous = (NodeImpl) nodes.elementAt(i);\n nodes.setElementAt(arg,i);\n previous.ownerNode = ownerNode.ownerDocument();\n previous.isOwned(false);\n // make sure it won't be mistaken with defaults in case it's reused\n previous.isSpecified(true);\n \t} else {\n \t // If we can't find by namespaceURI, localName, then we find by\n \t // nodeName so we know where to insert.\n \t i = findNamePoint(arg.getNodeName(),0);\n if (i >=0) {\n previous = (NodeImpl) nodes.elementAt(i);\n nodes.insertElementAt(arg,i);\n } else {\n i = -1 - i; // Insert point (may be end of list)\n if (null == nodes) {\n nodes = new Vector(5, 10);\n }\n nodes.insertElementAt(arg, i);\n }\n }\n // \tchanged(true);\n\n \t// Only NamedNodeMaps containing attributes (those which are\n \t// bound to an element) need report MutationEvents\n if (NodeImpl.MUTATIONEVENTS\n && ownerNode.ownerDocument().mutationEvents)\n {\n // MUTATION POST-EVENTS:\n ownerNode.dispatchAggregateEvents(\n (AttrImpl)arg,\n previous==null ? null : previous.getNodeValue()\n );\n }\n \treturn previous;\n\n }", "@Override\n\tpublic void namespace() {\n\t\t\n\t}", "public NsNamespaces() {\n this(DSL.name(\"ns_namespaces\"), null);\n }", "public void testSetNamespacePrefix() throws RepositoryException{\n String prefix = \"prefix\";\n String uri =\"uri\";\n session.setNamespacePrefix(prefix, uri);\n \n sessionControl.replay();\n sfControl.replay();\n \n jt.setNamespacePrefix(prefix, uri);\n }", "public void setNamespaces(java.util.Map<String,String> namespaces) {\n _namespaces = namespaces;\n }", "@Override\r\n public DTextArea setDsfNamespace(DNamespace namespace){\r\n \tsuper.setDsfNamespace(namespace) ;\r\n \treturn this ;\r\n }", "@Override\n\tprotected String getNamespace() {\n\t\treturn NAMESPACE;\n\t}", "public String getNamespace() {\n return namespace;\n }", "@Override\n\tpublic String getNamespace() {\n\t\treturn nameSpace;\n\t}", "public void setXmlns(String xmlns)\r\n\t{\r\n\t\tthis.xmlns = xmlns;\r\n\t}", "protected abstract void defineNamespace(int index, String prefix)\n throws IOException;", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "public XMLNamespaces() {\n this(libsbmlJNI.new_XMLNamespaces__SWIG_0(), true);\n }", "public void setContext(String namespace, String key, String value) {\n if (context == null) {\n context = new HashMap<String, Map<String, String>>();\n }\n\n Map<String, String> namespaceMap = context.get(namespace);\n if (namespaceMap == null) {\n namespaceMap = new HashMap<String, String>();\n context.put(namespace, namespaceMap);\n }\n\n namespaceMap.put(key, value);\n }", "public void setAttributeNS(final String namespaceURI, final String qualifiedName,\n final String attributeValue) {\n final String value = attributeValue;\n final DomAttr newAttr = new DomAttr(getPage(), namespaceURI, qualifiedName, value, true);\n newAttr.setParentNode(this);\n attributes_.put(qualifiedName, newAttr);\n\n if (namespaceURI != null) {\n namespaces().put(namespaceURI, newAttr.getPrefix());\n }\n }", "public void setNameSpaceService(NamespaceService nameSpaceService)\n {\n this.nameSpaceService = nameSpaceService;\n }", "public void setOpcnamespace(java.lang.Long value) {\n\t\tsetValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCNAMESPACE, value);\n\t}", "public void setNameInNamespace(String fullName) {\n this.fullName = fullName;\n }", "void unsetNamespace();", "public String getNamespace()\n {\n return NAMESPACE;\n }", "public void setNamespaceService(NamespaceService namespaceService) {\n\t\tthis.namespaceService = namespaceService;\n\t}", "public final void mT__51() throws RecognitionException {\n try {\n int _type = T__51;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalSpeADL.g:49:7: ( 'namespace' )\n // InternalSpeADL.g:49:9: 'namespace'\n {\n match(\"namespace\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "void declarePrefix(String prefix, String namespace);", "@Nullable public String getNamespace() {\n return namespace;\n }", "public Builder setNameKeySpace(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n nameKeySpace_ = value;\n onChanged();\n return this;\n }", "public final void rule__AstNamespace__NamespacesAssignment_4_6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:22720:1: ( ( ruleAstNamespace ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:22721:1: ( ruleAstNamespace )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:22721:1: ( ruleAstNamespace )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:22722:1: ruleAstNamespace\n {\n before(grammarAccess.getAstNamespaceAccess().getNamespacesAstNamespaceParserRuleCall_4_6_0()); \n pushFollow(FOLLOW_ruleAstNamespace_in_rule__AstNamespace__NamespacesAssignment_4_645513);\n ruleAstNamespace();\n\n state._fsp--;\n\n after(grammarAccess.getAstNamespaceAccess().getNamespacesAstNamespaceParserRuleCall_4_6_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void setName(String fullName, String namespace)\n/* */ {\n/* 381 */ int index = fullName.indexOf(':');\n/* 382 */ if ((namespace == null) || (index < 0)) {\n/* 383 */ this.name = fullName;\n/* */ } else {\n/* 385 */ this.name = fullName.substring(index + 1);\n/* */ }\n/* 387 */ this.fullName = fullName;\n/* 388 */ this.namespace = namespace;\n/* */ }", "void registerNamespaceToGlobalScope(String namespace) {\n providesObjectChildren.put(namespace, new LinkedHashSet<String>());\n if (isJsLibrary) {\n maybeAddExport(NodeUtil.newQName(compiler, namespace));\n }\n fileToModule.put(file, this);\n namespaceToModule.put(namespace, this);\n }", "public String getNamespace();", "@Override\r\n\tpublic void setNamespacePrefix(String prefix, String uri)\r\n\t\t\tthrows NamespaceException, RepositoryException {\n\t\t\r\n\t}", "java.lang.String getNamespace();", "@XmlElement(required = true, name = \"namespace\")\n public String getNamespace() {\n return namespace;\n }", "String getNamespace();", "String getNamespace();", "String getNamespace();", "public String getNamespace() {\n return this.namespace;\n }", "public void setNode(String node)\n {\n this.node = node;\n }", "public Optional<String> namespace() {\n return Codegen.stringProp(\"namespace\").config(config).get();\n }", "void setNode(String path, Node node)\n throws ProcessingException;", "public void setTargetNamespace(String targetNamespace)\r\n {\r\n this.targetNamespace = targetNamespace;\r\n }", "public String getNamespace()\n/* */ {\n/* 357 */ return this.namespace;\n/* */ }", "private void internalAddNamespace(NamespaceDefinition def) {\n String uri = def.getUri();\n String prefix = def.getPrefix();\n def.setIndex(m_container.getBindingRoot().\n getNamespaceUriIndex(uri, prefix));\n m_namespaces.add(def);\n m_uriMap.put(uri, def);\n }", "@Override\r\n\tpublic String getNamespace() {\n\t\treturn null;\r\n\t}", "void visit(Namespace namespace);", "public void setRootElementNS(java.lang.String rootElementNS) {\r\n this.rootElementNS = rootElementNS;\r\n }", "public void setNode(String node) {\n this.node = node;\n }", "private void emitNS(Namespace namespace) throws SAXException {\n if (namespace.getPrefix() == null || \n namespace.getNamespaceURI() == null) return;\n handler.startPrefixMapping(namespace.getPrefix(), namespace.getNamespaceURI());\n }", "public void set(String namespace, String key, Object obj, Date expires) {\n \t\tthis.init();\n\t\tthis._set(this.getKey(namespace, key), obj, expires);\n \t\t\n \t}", "@Override\n\tpublic String getNamespace() {\n\t\treturn null;\n\t}", "private static void bindDefaultNamespace(FeedReaderPreferences settings, XPath xpath) {\n String defaultNamespace = settings.getDefaultNamespace();\n String defaultNamespacePrefix = settings.getDefaultNamespacePrefix();\n if (!defaultNamespace.isEmpty() && !defaultNamespacePrefix.isEmpty()) {\n SimpleNamespaceContext nsContext = new SimpleNamespaceContext();\n nsContext.bindNamespaceUri(defaultNamespacePrefix, defaultNamespace);\n xpath.setNamespaceContext(nsContext);\n }\n }", "Namespaces namespaces();", "@Test\n\tpublic void test_TCM__OrgJdomNamespace_getNamespace() {\n\t\tfinal Namespace ns = Namespace.getNamespace(\"prefx\", \"http://some.other.place\");\n\n\t\tfinal Attribute attr = new Attribute(\"test\", \"value\", ns);\n\t\tfinal Namespace ns2 = Namespace.getNamespace(\"prefx\", \"http://some.other.place\");\n\n\t\tassertTrue(\"incorrect Namespace\", attr.getNamespace().equals(ns2));\n\n\t}", "public NsNamespaces(Name alias) {\n this(alias, NS_NAMESPACES);\n }", "public Namespace(String alias) {\n this(DSL.name(alias), NAMESPACE);\n }", "public NsNamespaces(String alias) {\n this(DSL.name(alias), NS_NAMESPACES);\n }", "String getTargetNamespace();", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t\ttry {\n\t\t\t\tchanging = true;\n\t\t\t\telement.setAttributeNS(namespaceURI, localName, value);\n\t\t\t} finally {\n\t\t\t\tchanging = false;\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic void setNode(Node node) {\n\t\tthis.node = (MessagingNode) node;\r\n\t}", "public void setDefaultNamespace(String namespaceUri) {\n if (namespaceUri == null)\n throw new NullPointerException(\"null namespace URI\");\n defaultNamespaceUri = namespaceUri;\n }", "public String getNamespaceName() {\n return namespaceName;\n }", "Rule ScopedNamespace() {\n return Sequence(\n \"namespace \",\n ScopeAndId());\n }", "private void addNamespace(ClassTree tree, GenerationContext<JS> context, List<JS> stmts) {\r\n\t\tElement type = TreeUtils.elementFromDeclaration(tree);\r\n\t\tif (JavaNodes.isInnerType(type)) {\r\n\t\t\t// this is an inner (anonymous or not) class - no namespace declaration is generated\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tString namespace = context.getCurrentWrapper().getNamespace();\r\n\t\tif (!namespace.isEmpty()) {\r\n\t\t\tJavaScriptBuilder<JS> js = context.js();\r\n\t\t\tJS target = js.property(js.name(GeneratorConstants.STJS), \"ns\");\r\n\t\t\tstmts.add(js.expressionStatement(js.functionCall(target, Collections.singleton(js.string(namespace)))));\r\n\t\t}\r\n\t}", "protected static void addOrUpdateNamespace(MasterProcedureEnv env, NamespaceDescriptor ns)\n throws IOException {\n getTableNamespaceManager(env).addOrUpdateNamespace(ns);\n }", "public Namespace(Name alias) {\n this(alias, NAMESPACE);\n }", "Rule Namespace() {\n // No direct effect on value stack\n return FirstOf(\n ScopedNamespace(),\n PhpNamespace(),\n XsdNamespace());\n }", "protected abstract void undefineNamespace(int index);", "boolean isSetNamespace();", "void setNodeServiceUrl(String nodeServiceUri)\n throws IOException, SoapException;", "public void setNode_2(String node_2);", "private void setNode(DefaultMutableTreeNode node){\n\t\t\n\t\tthis.node = node;\n\t\t\n\t}", "protected final Namespace getNamespace()\n {\n return m_namespace;\n }", "public synchronized void setNode(String path, Node node)\n throws ProcessingException {\n if ( path == null || path.equals(\"/\")) {\n data = DOMUtil.createDocument();\n data.appendChild(data.createElementNS(null, \"context\"));\n data.getFirstChild().appendChild(data.importNode(node, true));\n } else {\n path = this.createPath(path); \n Node removeNode = DOMUtil.selectSingleNode(data, path, this.xpathProcessor);\n removeNode.getParentNode().replaceChild(data.importNode(node, true), removeNode);\n }\n }", "public void storeDefaultNamespace(String prefix, String nsUri) {\r\n\t\tif (nsUri == null || \"\".equals(nsUri)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tupdateLastModified();\r\n\t\tif (defaultNamespaces == null) {\r\n\t\t\tdefaultNamespaces = new LinkedMap();\r\n\t\t}\r\n\t\tif (!defaultNamespaces.containsKey(nsUri)) {\r\n\t\t\tdefaultNamespaces.put(nsUri, prefix);\r\n\t\t}\r\n\t}", "private void setNamespacePrefix(int index, String prefix) {\n if (index < m_prefixes.length) {\n m_prefixes[index] = prefix;\n } else if (m_extensionUris != null) {\n index -= m_prefixes.length;\n for (int i = 0; i < m_extensionUris.length; i++) {\n int length = m_extensionUris[i].length;\n if (index < length) {\n m_extensionPrefixes[i][index] = prefix;\n break;\n } else {\n index -= length;\n }\n }\n }\n }", "public boolean isNamespaceAware () {\n return true;\n }", "@Override\n public void setNamespaceAware(boolean isNamespaceAware) {\n if (null == documentBuilderFactory) {\n loadDocumentBuilderFactory();\n }\n documentBuilderFactory.setNamespaceAware(isNamespaceAware);\n }", "public String getTargetNamespace()\r\n {\r\n return targetNamespace;\r\n }", "public KadNode setNode(Node node) {\r\n\t\tthis.node = node;\r\n\t\treturn this;\r\n\t}", "public Event setNode(String node) {\n this.node = node;\n return this;\n }" ]
[ "0.8216016", "0.8059839", "0.7251343", "0.7131716", "0.6902404", "0.6902404", "0.6902305", "0.68330485", "0.65765184", "0.64862114", "0.6447456", "0.6402949", "0.6380091", "0.63619584", "0.62100744", "0.6107692", "0.59512603", "0.5926736", "0.5918629", "0.5895101", "0.5849963", "0.5823832", "0.5816239", "0.581518", "0.5801966", "0.57712334", "0.5695565", "0.56848603", "0.5659789", "0.5616545", "0.5582097", "0.5582097", "0.5582097", "0.5515336", "0.550323", "0.54858935", "0.54805106", "0.545292", "0.5448392", "0.5437255", "0.5430336", "0.5428268", "0.54228765", "0.54163235", "0.53876406", "0.538731", "0.53709847", "0.53679585", "0.5359435", "0.5348509", "0.53359926", "0.53354967", "0.5332323", "0.533185", "0.533185", "0.533185", "0.5321201", "0.53169084", "0.529631", "0.5268097", "0.52534467", "0.52351606", "0.5230327", "0.5217367", "0.5217244", "0.520273", "0.519944", "0.5198566", "0.5185339", "0.5181011", "0.51761085", "0.51724535", "0.51695615", "0.515393", "0.5153467", "0.5150574", "0.51503044", "0.5145964", "0.5122877", "0.5119665", "0.51104635", "0.51083606", "0.5105216", "0.50788873", "0.506352", "0.50619453", "0.50568306", "0.5056065", "0.50331795", "0.5019911", "0.5004046", "0.49949917", "0.49795112", "0.4969061", "0.4968747", "0.4965512", "0.49603745", "0.49601704", "0.4955662", "0.494471" ]
0.72434556
3
String nama, String isi, long waktu, int foto
void populate() { daftarNotifikasi.add(new DaftarNotifikasi("Ludfi Ika P", "Hari ini mau gathering dimana?", 2, R.drawable.profil_2)); daftarNotifikasi.add(new DaftarNotifikasi("Erinda", "Ada pagelaran di kota", 6, R.drawable.profil_3)); daftarNotifikasi.add(new DaftarNotifikasi("Aleq", "Saya punya solusi untuk itu", 10, R.drawable.profil_1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }", "public boolean SetImgPagina (int Cod, File imgfile, int numero_pagina){\n try {\n\n \n Connection connect = model.connectionDataBase.ConnectionDB.Connect();\n\n FileInputStream fin = new FileInputStream(imgfile);\n\n \n PreparedStatement pre = connect.prepareStatement(\"INSERT INTO pagine_opera\" + \"(immagine_pagina, cod_opera, numero_pagina, approvata) VALUES (?,?,?,?)\");\n\n pre.setInt(2,Cod);\n pre.setInt(3, numero_pagina);\n pre.setString(4, \"no\");\n\n pre.setBinaryStream(1,(InputStream)fin,(int)imgfile.length());\n pre.executeUpdate();\n\n \n pre.close();\n connect.close();\n\n return true;\n\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n\n return false;\n }", "public Pasien(String nama, String alamat, String tempatLahir, int tanggalLahir, int bulanLahir, int tahunLahir, String NIK) {\r\n this.nama = nama;\r\n this.alamat = alamat;\r\n this.tempatLahir = tempatLahir;\r\n this.NIK = NIK;\r\n this.tanggalLahir = tanggalLahir;\r\n this.bulanLahir = bulanLahir;\r\n this.tahunLahir = tahunLahir;\r\n }", "private void putDefaultInformation() throws FileNotFoundException, SQLException, IOException {\n staff_name = \"Sin informacion\";\n staff_surname = \"Sin informacion\";\n id_type = \"Sin informacion\";\n id_number = \"Sin informacion\";\n putProfPic(null);\n phone_number = \"Sin informacion\";\n mobile_number = \"Sin informacion\";\n email = \"Sin informacion\";\n birthdate = GBEnvironment.getInstance().serverDate();\n gender = \"Seleccione sexo\";\n }", "public void setFoto(java.lang.String foto) {\n this.foto = foto;\n }", "private void putPersonalInformation() throws SQLException, FileNotFoundException, IOException {\n AdUserPersonalData personal;\n try {\n personal = PersonalDataController.getInstance().getPersonalData(username);\n staff_name = personal.getGbStaffName();\n staff_surname = personal.getGbStaffSurname();\n id_type = \"\"+personal.getGbIdType();\n id_number = personal.getGbIdNumber();\n putProfPic(personal.getGbPhoto());\n phone_number = personal.getGbPhoneNumber();\n mobile_number = personal.getGbMobileNumber();\n email = personal.getGbEmail();\n birthdate = personal.getGbBirthdate();\n gender = \"\"+personal.getGbGender();\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putException(ex);\n }\n }", "public static void tambahDepan() {\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n Scanner masukan = new Scanner(System.in);\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH DEPAN : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n // -- -- -- -- -- --bagian menciptakan & mengisi simpul baru--------------\n simpul baru;\n baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //-- -- -- --bagian mencangkokkan simpul baru ke dalam simpul lama--- ----- --\n if (awal == null) // jika senarai masih kosong\n {\n awal = baru;\n akhir = baru;\n baru.kiri = null;\n baru.kanan = null;\n } else // jika senarai tidak kosong\n {\n baru.kanan = awal;\n awal.kiri = baru;\n awal = baru;\n awal.kiri = null;\n }\n }", "public static void tambahBelakang() {\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n Scanner masukan = new Scanner(System.in);\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH BELAKANG : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n //------------bagian menciptakan & mengisi simpul baru--------------\n simpul baru;\n baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //--------bagian mencangkokkan simpul baru ke dalam simpul lama---------\n if (awal == null)// jika senarai kosong\n {\n awal = baru;\n akhir = baru;\n baru.kiri = null;\n baru.kanan = null;\n } else // jika senarai tidak kosong\n {\n baru.kiri = akhir;\n akhir.kanan = baru;\n akhir = baru;\n akhir.kanan = null;\n }\n }", "public void PoblarINFO(String llamado) {//C.P.M Aqui llega como argumento llamado\r\n try {\r\n rs = modelo.Obteninfo();//C.P.M Mandamos a poblar la informacion de negocio\r\n if (llamado.equals(\"\")) {//C.P.M si el llamado llega vacio es que viene de la interface\r\n while (rs.next()) {//C.P.M recorremos el resultado para obtener los datos\r\n vista.jTNombreempresa.setText(rs.getString(1));//C.P.M los datos los enviamos a la vista de la interface\r\n vista.jTDireccion.setText(rs.getString(2));\r\n vista.jTTelefono.setText(rs.getString(3));\r\n vista.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n if (llamado.equals(\"factura\")) {//C.P.M de lo contrario es llamado de factura y los valores se van a la vista de vactura \r\n while (rs.next()) {//C.P.M recorremos el resultado \r\n vistafactura.jTNombreempresa.setText(rs.getString(1));//C.P.M enviamos los datos a la vista de factura\r\n vistafactura.jTDireccion.setText(rs.getString(2));\r\n vistafactura.jTTelefono.setText(rs.getString(3));\r\n vistafactura.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n } catch (SQLException ex) {//C.P.M Notificamos a el usuario si ocurre algun error\r\n JOptionPane.showMessageDialog(null,\"Ocurio un error al intentar consultar la informacion del negocio\");\r\n }\r\n }", "public void setNama(String nama) {\r\n this.nama = nama;\r\n }", "public void insertarAlimento (int id_alimento, String nombre, String estado, float caloria, float proteinas,float grasas, float hidratos_de_carbono, float H20, float NE, float vitamina_a, float vitamina_B1, float vitamina_B2, float vitamina_C, float Niac, float sodio, float potasio, float calcio, float magnesio, float cobre, float hierro, float fosforo, float azufre, float cloro, float Fen, float Ileu, float Leu, float Lis, float Met, float Tre, float Tri, float Val, float Acid, float AlCAL);", "public void setNumFilhos(int numFilhos){ \n this.numFilhos = numFilhos;\n }", "Karyawan(String n)\n {\n this.nama = n;\n }", "public String getNama() {\r\n return nama;\r\n }", "public Moto( String nome , float valor , int ano ){\n super( nome , valor ); //define ser uma subclasse\n this.marca = \"Honda\";\n this.ano = ano;\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n ServletOutputStream out = response.getOutputStream();\r\n \r\n \r\n if(request.getParameter(\"tambah\") != null && request.getParameter(\"tambah\").equals(\"Tambah\")){\r\n \r\n \r\n \r\n int Result= 0;\r\n String Nkacamata= request.getParameter(\"Nkacamata\");\r\n int Harga = Integer.parseInt(request.getParameter(\"harga\"));\r\n Harga = Harga;\r\n String deskripsi = request.getParameter(\"deskripsi\");\r\n String kategori = request.getParameter(\"kategori\");\r\n Part part = request.getPart(\"photo\");\r\n \r\n String photo= \"../img/\";\r\n \r\n try {\r\n String sql =\"INSERT INTO datakacamata (nama,harga,deskripsi,kategori,photo) VALUES(?,?,?,?,?)\";\r\n PreparedStatement statement = koneksi.koneksi.getConnection().prepareStatement(sql);\r\n InputStream is = part.getInputStream();\r\n statement.setString(1, Nkacamata);\r\n statement.setInt(2, Harga);\r\n statement.setString(3, deskripsi);\r\n statement.setString(4, kategori);\r\n statement.setBlob(5, is);\r\n \r\n Result=statement.executeUpdate();\r\n if(Result >0){\r\n System.out.println(\"Sukses coyyyy\");\r\n response.sendRedirect(\"admin\");\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Error\"+e.getMessage());\r\n }\r\n \r\n \r\n }else if(request.getParameter(\"edit\") != null && request.getParameter(\"edit\").equals(\"Edit\")){\r\n \r\n String id = request.getParameter(\"id\");\r\n String Nkacamata = request.getParameter(\"Nkacamata\");\r\n int harga = Integer.parseInt(request.getParameter(\"harga\"));\r\n String deskripsi = request.getParameter(\"deskripsi\");\r\n String kategori = request.getParameter(\"kategori\");\r\n // Part part = request.getPart(\"photo\");\r\n int Result = 0;\r\n String sql =\"UPDATE datakacamata SET nama=?, harga=?, deskripsi=?, kategori=? WHERE id=?\";\r\n \r\n try{\r\n PreparedStatement statement = koneksi.koneksi.getConnection().prepareStatement(sql);\r\n //InputStream is = part.getInputStream(); \r\n statement.setString(1, Nkacamata);\r\n statement.setInt(2, harga);\r\n statement.setString(3, deskripsi);\r\n statement.setString(4, kategori);\r\n// statement.setBlob(5, is);\r\n statement.setString(5, id);\r\n Result=statement.executeUpdate();\r\n if(Result > 0){\r\n response.sendRedirect(\"admin\");\r\n }\r\n \r\n System.out.println(\"SUkses\");\r\n }catch(Exception e){\r\n System.out.println(\"Error\"+e.getMessage());\r\n }\r\n }else if(request.getParameter(\"regist\") != null && request.getParameter(\"regist\").equals(\"Regist\")){\r\n \r\n String username = request.getParameter(\"username\");\r\n String nama = request.getParameter(\"nama\");\r\n String email = request.getParameter(\"email\");\r\n String password = request.getParameter(\"password\");\r\n String jenkel = request.getParameter(\"jenkel\");\r\n \r\n String sql =\"INSERT INTO admin (username, nama, email, password, jenkel)VALUES(?,?,?,?,?)\";\r\n \r\n try{\r\n PreparedStatement statement = koneksi.koneksi.getConnection().prepareStatement(sql);\r\n statement.setString(1, username);\r\n statement.setString(2, nama);\r\n statement.setString(3, email);\r\n statement.setString(4, password);\r\n statement.setString(5, jenkel);\r\n statement.executeUpdate();\r\n System.out.println(\"SUkses\");\r\n response.sendRedirect(\"proses/loginadmin\");\r\n }catch(Exception e){\r\n System.out.println(\"Error\"+e.getMessage());\r\n }\r\n }\r\n \r\n \r\n }", "public void editarAlimento(int id_alimento, String nombre, String estado, float caloria, float proteinas,float grasas ,float hidratos_de_carbono, float H20, float NE, float vitamina_a, float vitamina_B1, float vitamina_B2, float vitamina_C, float Niac, float sodio, float potasio, float calcio, float magnesio, float cobre, float hierro, float fosforo, float azufre, float cloro, float Fen, float Ileu, float Leu, float Lis, float Met, float Tre, float Tri, float Val, float Acid, float AlCAL);", "public int MasalarmasaEkle(String masa_adi) {\n baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n int masa_no = 0;\r\n // masalar tablosundaki en son id ye gore masa_no yu getirir\r\n String sorgu = \"select masa_no from masalar where idmasalar= (select idmasalar from masalar order by idmasalar desc limit 0, 1)\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n while (rs.next()) {\r\n masa_no = rs.getInt(1);\r\n }\r\n masa_no = masa_no + 1;\r\n String sorgu2 = \"insert into masalar (masa_no, masa_adi) values (\" + masa_no + \", '\" + masa_adi + \"')\";\r\n ps = vb.con.prepareStatement(sorgu2);\r\n ps.executeUpdate();\r\n String sorgu3 = \"insert into masa_durum (masa_no, durum) values (\" + masa_no + \", 0)\";\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n return masa_no;\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n return 0;\r\n }\r\n finally{\r\n try {\r\n vb.con.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }", "private String beriIzDatoteke(String ime){\n\n // ustvarimo vhodni podatkovni tok\n FileInputStream inputStream;\n\n //ugotovimo, koliko je velika datoteka\n File file = new File(getFilesDir(), ime);\n int length = (int) file.length();\n\n //pripravimo spremenljivko, v katero se bodo prebrali podatki\n byte[] bytes = new byte[length];\n\n //preberemo podatke\n try {\n inputStream = openFileInput(ime);\n inputStream.read(bytes);\n inputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n //podatke pretvorimo iz polja bajtov v znakovni niz\n String vsebina = new String(bytes);\n\n return vsebina;\n }", "void setNama(String nama) {\r\n\tthis.nama = nama;\r\n }", "public void cargaInfo(){\n InfoFragment.txtCanton.setText(sitio[4]);\n InfoFragment.txtDesc.setText(sitio[2]);\n InfoFragment.txtDirec.setText(sitiosInfo[2]);\n InfoFragment.txtFono.setText(sitiosInfo[5]);\n InfoFragment.txtWeb.setText(sitiosInfo[7]);\n InfoFragment.txtHorario.setText(sitiosInfo[6]);\n InfoFragment.ratingBarTotal.setRating(Float.parseFloat(sitio[5]));\n if(bcoment_ind){\n InfoFragment.ratingUsuario.setRating(Float.parseFloat(comentario_ind[1]));\n }\n if(!LugaresContainer.id_favorito.equals(\"0\")){\n InfoFragment.checkBoxFav.setChecked(true);\n }\n }", "public void setAnoFilmagem(String anoFilmagem);", "private void TambahData(String judul,String penulis,String harga){\n try{ // memanipulasi kesalahan\n String sql = \"INSERT INTO buku VALUES(NULL,'\"+judul+\"','\"+penulis+\"',\"+harga+\")\"; // menambahkan data dengan mengkonekan dari php\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n stt.executeUpdate(sql); \n model.addRow(new Object[]{judul,penulis,harga}); // datanya akan tertambah dibaris baru di tabel model\n \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "public void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);", "public void setIdfilial(int idfilial){\r\n this.idfilial = idfilial;\r\n }", "public Paises obtenerPaisPorID(Integer txtPais);", "public laporan(String username, String nama) {\n initComponents();\n user=username;\n koneksi DB = new koneksi();\n DB.config();\n con = DB.con;\n stat = DB.stm;\n jLabel8.setText(nama);\n name=nama;\n }", "public boolean iliskMasaEkleme(int masa_no, int kullanici_no) {\n baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n String sorgu3 = \"insert into ilisk_masa (kullanici_no, masa_no) values (\" + kullanici_no + \", \" + masa_no + \")\";\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n vb.con.close();\r\n ps.close();\r\n \r\n return true;\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n return false;\r\n }\r\n }", "public void setBunga(int tipeBunga){\n }", "public void setPerfil(int perfil){\n this.perfil = perfil;\n }", "private void razia(){\n /* Mereset semua Error dan fokus menjadi default */\n mViewUser.setError(null);\n mViewPassword.setError(null);\n View fokus = null;\n boolean cancel = false;\n\n /* Mengambil text dari form User dan form Password dengan variable baru bertipe String*/\n String user = mViewUser.getText().toString();\n String password = mViewPassword.getText().toString();\n\n /* Jika form user kosong atau TIDAK memenuhi kriteria di Method cekUser() maka, Set error\n * di Form User dengan menset variable fokus dan error di Viewnya juga cancel menjadi true*/\n if (TextUtils.isEmpty(user)){\n mViewUser.setError(\"This field is required\");\n fokus = mViewUser;\n cancel = true;\n }else if(!cekUser(user)){\n mViewUser.setError(\"This Username is not found\");\n fokus = mViewUser;\n cancel = true;\n }\n\n /* Sama syarat percabangannya dengan User seperti di atas. Bedanya ini untuk Form Password*/\n if (TextUtils.isEmpty(password)){\n mViewPassword.setError(\"This field is required\");\n fokus = mViewPassword;\n cancel = true;\n }else if (!cekPassword(password)){\n mViewPassword.setError(\"This password is incorrect\");\n fokus = mViewPassword;\n cancel = true;\n }\n\n /* Jika cancel true, variable fokus mendapatkan fokus */\n if (cancel) fokus.requestFocus();\n else masuk();\n }", "public static void main(String[] args){\n //deklarasi variabel\n String nama, alamat, hobi;\n int usia, nilai;\n \n //membuat scanner baru\n Scanner keyboard = new Scanner(System.in);\n \n //tampilkan output ke user\n System.out.println(\"## Pendaftaran Mahasiswa Baru Universitas Mercu Buana Bekasi\");\n System.out.print(\"Nama Mahasiswa: \");\n //menggunakan Scanner dan menyimpan apa yang diketik divariabel nama\n nama = keyboard.nextLine();\n //Tampilkan output lagi\n System.out.print(\"Alamat: \");\n //menggunakan scanner lagi\n alamat = keyboard.nextLine();\n \n System.out.print(\"Hobi: \");\n hobi = keyboard.nextLine();\n \n System.out.print(\"Usia: \");\n usia = keyboard.nextInt();\n \n System.out.print(\"Nilai: \");\n nilai = keyboard.nextInt();\n \n //menampilkan apa yang sudah disimpan di variabel\n System.out.println(\"-----------------------------\");\n System.out.println(\"Nama Mahasiswa: \" + nama);\n System.out.println(\"Alamat: \" + alamat);\n System.out.println(\"Usia: \" + usia);\n System.out.println(\"Nilai: \" + nilai);\n }", "public static void IngresoDatos(){\n int IFila=0,ICol=0;\n int INota;\n for(IFila=0;IFila<10;IFila++)\n {\n StrNotas[IFila][0]=JOptionPane.showInputDialog(null, \"Ingrse nombre del alumno:\");\n INota=LlenadoRandom(0,100);\n StrNotas[IFila][1]=Integer.toString(INota);\n if(INota<61)\n StrNotas[IFila][2]=\"Perdio\";\n else\n StrNotas[IFila][2]=\"gano\";\n }\n }", "public Student(String imePrezime, String fakultet, int godina) {\r\n\t\tthis.imePrezime = imePrezime;\r\n\t\tthis.fakultet = fakultet;\r\n\t\tthis.godina = godina;\r\n\t}", "public Usuario(int idUsuario, String nome, String email, String telefone, int motorista){\n\t\tthis.idUsuario = idUsuario;\n\t\tthis.nome = nome;\n\t\tthis.email = email;\n\t\tthis.telefone = telefone;\n\t\tthis.motorista = motorista;\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hola Mundo\");\n\t\t\n\t\t//--------------------------------------------------\n\t\t\n\t\t// Tipos de datos primitivos inician con minúscula\n\t\t\n\t\t// Enteros\n\t\tbyte edad = 24; // Tamaño: -128 a 127\n\t\tshort año = 20020;\n\t\tint idUsuario = 1847590;\n\t\tlong idAmazon = 109399029304012092L; // L es necesario al final, para identificarlo como long\n\t\t\n\t\t// Floante (Decimal)\n\t\tfloat radio = 35.63F; //F es necesario al final, para identificarlo como float\n\t\tdouble precio_acumulado = 34542342.546404935945034; // Se usa para datos con mayor precisión\n\t\t\n\t\t// Char (Un solo caracter)\n\t\tchar genero = 'M';\n\t\t\n\t\t// Lógico (Booleano)\n\t\tboolean visible = false;\n\t\tboolean funciona = true;\n\t\t\n\t\t// Constantes siempre en Mayúsculas\n\t\tint INICIA = 1;\n\t\tint VALOR_MAXIMO = 1524;\n\t\t\n\t\t//Lower camel case para variables, métodos u objetos\n\t\tint minValor = 1;\n\t\tboolean pruebaGit = true;\n\t\t\n\t\t//---------------------------------------------------------------\n\t\t\n\t\t// Cast automático\n\t\tbyte b = 24;\n\t\tshort s = b;\n\t\tb = (byte) s; // Cast explícito o manual\n\t\t\n\t\tint i = 24;\n\t\tdouble d = 12.24;\n\t\ti = (int) d; // Recorta el decimal, solo toma la parte entera del número\n\t\t\n\t\tint codigo = 97;\n\t\tchar codigoASCII = (char) codigo; // Cast explícito\t\t\n\t\t\n\t\t// Short a Byte\n\t\tshort numero = 2020;\n\t\tbyte numByte = (byte) numero; // Casting de un dato mas grande que el rango\n\t\t\t\t\t\t\t\t\t // del tipo de dato destino, genera números \"aleatorios\".\n\t\t\n\t\tSystem.out.println(\"\\n\" + numByte); // + variable (Concatenación)\n\t\tSystem.out.println(codigoASCII);\n\t\t\n\t\t//----------------------------------------------------\n\t\t\n\t\t// Arreglos\n\t\t\n\t\t// Formas de declarar un arreglo\n\t\tint[] arrayEntero;\n\t\tdouble arrayDouble[];\n\t\t\n\t\t// Iniciarlo\n\t\t// tipoDeDato[Dimensión] NombreDelArreglo = new tipoDeDato[N° de elementos]\n\t\tdouble[] arreglo1D = new double[3]; \n\t\tint[][] arreglo2D = new int[2][3]; // Arreglo 2D de 6 elementos\n\t\tchar[][][] arreglo3D = new char[3][3][2]; // Arreglo 3D de 18 elementos\n\t\t\n\t\t// Llenando el arreglo\n\t\tchar[][] days = { {'L','M','M'},\n\t\t\t\t\t\t {'J','V','S'} };\n\t\t\n\t\tchar[][][] days3D = { { {'a','b','c'}, {'d','e','f'} },\n\t\t\t\t\t\t\t { {'d','e','f'}, {'a','b','c'} } };\n\t\t\n\t\t// Agregar elementos al arreglo mediante los índices\n\t\tchar[] saludo = new char[4];\n\t\t\n\t\tsaludo[0] = 'H';\n\t\tsaludo[1] = 'o';\n\t\tsaludo[2] = 'l';\n\t\tsaludo[3] = 'a';\n\t\t\n\t\tSystem.out.println(\"\\n\" + saludo[0]);\n\t\tSystem.out.println(saludo[1]);\n\t\tSystem.out.println(saludo[2]);\n\t\tSystem.out.println(saludo[3]);\n\t\t\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Operadores aritméticos\n\t\tSystem.out.println(\"\\n\"+ 12+21);\n\t\tSystem.out.println(20-5);\n\t\tSystem.out.println(12*15);\n\t\tSystem.out.println(15/3);\n\t\tSystem.out.println(17%5);\n\t\t\n\t\t// Operadores de asignación\n\t\tint a = 10;\n\t\tSystem.out.println(\"\\n\" + (a += 2)); // Es equivalente: a = a + 2; + (Asignaciones de variables)\n\t\tSystem.out.println(a -= 3);\n\t\tSystem.out.println(a *= 4);\n\t\tSystem.out.println(a /= 5);\n\t\tSystem.out.println(a %= 6);\n\t\t\n\t\t\n\t\t// Operadores de incremento y decremento (Prefijo y Postfijo)\n\t\tint p = 5;\n\t\t\n\t\t/* ++p\n\t\t * 1. Incrementa el valor p + 1\n\t\t * 2. Asigna el valor a p */\n\t\tSystem.out.println(\"\\n\" + (++p));\n\t\t\n\t\t/* p++\n\t\t * Asigna el valor a p, p = p\n\t\t * Incrementa el valor p + 1 */\n\t\tSystem.out.println(p++); // Imprime el mismo valor 5\n\t\tSystem.out.println(p); // Imprime el valor aumentado en 1, 6\n\t\t\n\t\t// Operadores de equidad (Booleanos)\n\t\tint r = 24;\n\t\tint w = 12;\n\t\t\n\t\tSystem.out.println(\"\\n\" + (r == w));\n\t\tSystem.out.println(r != w);\n\t\t\n\t\t// Operadores relacionales\n\t\tSystem.out.println(\"\\nr > w -> \" + (r > w));\n\t\tSystem.out.println(r < w);\n\t\tSystem.out.println(r >= w);\n\t\tSystem.out.println(r <= w);\n\t\t\n\t\t// Operadores lógicos\n\t\tboolean n = false;\n\t\tboolean m = true;\n\t\t\n\t\tSystem.out.println(\"\\nn && m -> \" + (n && m));\n\t\tSystem.out.println(n || m);\n\t\tSystem.out.println(!n);\n\t}", "private void SubirFotoUsuario(byte[] bDatos, String nombre)\n {\n // Si no hay datos, salimos\n if (bDatos == null)\treturn ;\n\n // Establecemos los parametros\n RequestParams params = new RequestParams();\n params.put(\"archivo\", new ByteArrayInputStream(bDatos), \"imagen.jpg\");\n params.put(\"directorio\", \"Usuarios\");\n params.put(\"nombre\", nombre);\n\n // Realizamos la petición\n cliente.post(getActivity(), Helpers.URLApi(\"subirimagen\"), params, new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n // Obtenemos el objeto JSON\n JSONObject objeto = Helpers.ResponseBodyToJSON(responseBody);\n\n // Si está OK\n if (objeto.isNull(\"Error\"))\n {\n // Si tenemos el Google Play Services\n if (GCMRegistrar.checkPlayServices(getActivity()))\n // Registramos el ID del Google Cloud Messaging\n GCMRegistrar.registrarGCM(getActivity());\n\n // Abrimos la ventana de los ofertas\n Helpers.LoadFragment(getActivity(), new Ofertas(), \"Ofertas\");\n }\n else\n {\n try {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), objeto.getString(\"Error\"));\n }\n catch (Exception ex) { }\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), getString(R.string.failuploadphoto));\n }\n });\n }", "public void mostrar_dados()\n {\n try\n {\n jl_codigo.setText(con_clientes.resultset.getString(\"codigo\"));\n tf_nome.setText(con_clientes.resultset.getString(\"nome\"));\n cb_dndia.setSelectedItem(con_clientes.resultset.getString(\"dn_dia\"));\n cb_dnmes.setSelectedItem(con_clientes.resultset.getString(\"dn_mes\"));\n cb_dnano.setSelectedItem(con_clientes.resultset.getString(\"dn_ano\"));\n tf_natural.setText(con_clientes.resultset.getString(\"naturalidade\"));\n tf_foto.setText(con_clientes.resultset.getString(\"foto\"));\n jl_foto.setIcon(new ImageIcon(\"/Estoque/Imagens/\"+tf_foto.getText()));\n \n }\n catch(SQLException erro)\n {\n if (navega == 1)\n JOptionPane.showMessageDialog(null,\"Olha, você já está no primeiro registro\");\n else if (navega == 2)\n JOptionPane.showMessageDialog(null,\"Olha, você já está no último registro\");\n else\n JOptionPane.showMessageDialog(null,\"Não localizou dados \"+erro);\n navega=0;\n }\n }", "public TipoUsuario(int id_tipousuario, String usuario) {\n this.id_tipousuario = id_tipousuario;\n this.usuario = usuario;\n }", "public void TampilkanHasil(String isi_hasil){\n TextView hasil = (TextView) findViewById(R.id.txt_mainactivity_hasilBMI);\n hasil.setText(isi_hasil);\n }", "public Pupil(String n, int a, int f){\n\t\tthis.age=a;\n\t\tthis.form=f;\n\t\tthis.name=n;\n\t}", "void setNama(String nama){\n this.nama = nama;\n }", "public ingresarBiblioteca() {\n initComponents();\n this.nombreUsuario.setText(usuariosID[0].getNombre());\n this.Picture.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.PLAIN,10));\n usuario.insertarInicio(this.nombreUsuario.getText()/*, carpeta*/);\n usuario.obtenerNodo(0).getArchivo().insertarFinal(\"GENERAL\");//carpeta.insertarFinal(\"GENERAL\");\n }", "public PoslovniKorisnik(String naziv, String web, String email, String telefon, Long id) {\n\t\tsuper(email, telefon, id);\n\t\tthis.naziv = naziv;\n\t\tthis.web = web;\n\t}", "public void createPersonalInfos(JFrame jFrame, ControllerAdmin controllerAdminPersonalInfos){\n JLabel jLabelAcount = new JLabel(\"Compte\");\n jLabelAcount.setBounds(20, 20, 100, 28);\n\n JLabel jLabelId = new JLabel(\"Identifiant :\");\n jLabelId.setBounds(40, 50, 300, 28);\n JTextField jTextFieldId = new JTextField(controllerAdminPersonalInfos.getUser().getId());\n jTextFieldId.setBounds(40, 80, 300, 28);\n\n JLabel jLabelLastName = new JLabel(\"Nom :\");\n jLabelLastName.setBounds(40, 110, 300, 28);\n JTextField jTextFieldLastName = new JTextField(controllerAdminPersonalInfos.getUser().getLastName());\n jTextFieldLastName.setBounds(40, 140, 300, 28);\n\n JLabel jLabelFirstName = new JLabel(\"Prenom :\");\n jLabelFirstName.setBounds(40, 170, 300, 28);\n JTextField jTextFieldFirstName = new JTextField(controllerAdminPersonalInfos.getUser().getFirstName());\n jTextFieldFirstName.setBounds(40, 200, 300, 28);\n\n JLabel jLabelEmail = new JLabel(\"Email :\");\n jLabelEmail.setBounds(40, 230, 300, 28);\n JTextField jTextFieldEmail = new JTextField(controllerAdminPersonalInfos.getUser().getEmail());\n jTextFieldEmail.setBounds(40, 260, 300, 28);\n\n JLabel jLabelPassword = new JLabel(\"Mot de passe :\");\n jLabelPassword.setBounds(40, 290, 300, 28);\n JPasswordField jPasswordFieldPassword = new JPasswordField(controllerAdminPersonalInfos.getUser().getPassword());\n jPasswordFieldPassword.setBounds(40, 320, 300, 28);\n\n JButton jButtonModifPassword = new JButton(\"Modifier le mot de passe\");\n jButtonModifPassword.setBounds(350, 320, 200, 28);\n\n //set editabilite\n jTextFieldId.setEditable(false);\n jTextFieldLastName.setEditable(false);\n jTextFieldFirstName.setEditable(false);\n jTextFieldEmail.setEditable(false);\n jPasswordFieldPassword.setEditable(false);\n\n // Ajout des element à la JFrame\n jFrame.add(jLabelAcount);\n jFrame.add(jLabelId);\n jFrame.add(jTextFieldId);\n jFrame.add(jLabelLastName);\n jFrame.add(jTextFieldLastName);\n jFrame.add(jLabelFirstName);\n jFrame.add(jTextFieldFirstName);\n jFrame.add(jLabelEmail);\n jFrame.add(jTextFieldEmail);\n jFrame.add(jLabelPassword);\n jFrame.add(jButtonModifPassword);\n jFrame.add(jPasswordFieldPassword);\n\n jButtonModifPassword.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n createModifPassword(jFrame, controllerAdminPersonalInfos);\n jFrame.repaint();\n }\n });\n\n jFrame.setLayout(null);\n jFrame.setVisible(true);\n }", "public String getAnoFilmagem();", "public int Tipo() {\r\n File archivo = null;\r\n FileReader fr = null;\r\n BufferedReader br = null;\r\n \r\n try {\r\n String linea;\r\n for (a=0;a<5;a++){\r\n if (a==0){\r\n tipo=\"Embarazadas\";\r\n }\r\n if (a==1){\r\n tipo=\"Regulares\";\r\n }\r\n if (a==2){\r\n tipo=\"Discapacitados\";\r\n }\r\n if (a==3){\r\n tipo=\"Mayores\";\r\n }\r\n if (a==4){\r\n tipo=\"Corporativos\";\r\n }\r\n archivo = new File (System.getProperty(\"user.dir\")+\"/Clientes/\"+tipo+\".txt\");\r\n fr = new FileReader (archivo);\r\n br = new BufferedReader(fr);\r\n while((linea=br.readLine())!=null){\r\n if (leerTipo == contador){\r\n errorTipo =String.valueOf(String.valueOf(leerTipo).length());\r\n if (a==0){\r\n resultadoembarazadas+=1;\r\n }\r\n if (a==1){\r\n resultadoregulares+=1;\r\n }\r\n if (a==2){\r\n resultadodiscapacitados+=1;\r\n }\r\n if (a==3){\r\n resultadomayores+=1;\r\n }\r\n if (a==4){\r\n resultadocorporativos+=1;\r\n }\r\n contador +=1;\r\n leerTipo +=6;\r\n\r\n }\r\n else{\r\n contador += 1;\r\n }\r\n }\r\n }\r\n\r\n }\r\n catch(Exception e){\r\n e.printStackTrace();\r\n }finally{\r\n // En el finally cerramos el fichero, para asegurarnos\r\n // que se cierra tanto si todo va bien como si salta \r\n // una excepcion.\r\n try{ \r\n if( null != fr ){ \r\n fr.close(); \r\n } \r\n }catch (Exception e2){ \r\n e2.printStackTrace();\r\n }\r\n }\r\n //return resultado;\r\n return 0;\r\n }", "public void tambahIsi(){\n status();\n //kondisi jika air penuh\n if(level==6){\n Toast.makeText(this,\"Air Penuh\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(++level);\n }", "private void TampilData(){\n try{ //\n String sql = \"SELECT * FROM buku\"; // memanggil dari php dengan tabel buku\n stt = con.createStatement(); // membuat statement baru dengan mengkonekan ke database\n rss = stt.executeQuery(sql); \n while (rss.next()){ \n Object[] o = new Object [3]; // membuat array 3 dimensi dengan nama object\n \n o[0] = rss.getString(\"judul\"); // yang pertama dengan ketentuan judul\n o[1] = rss.getString(\"penulis\"); // yang kedua dengan ketentuan penulis\n o[2] = rss.getInt(\"harga\"); // yang ketiga dengan ketentuan harga\n model.addRow(o); // memasukkan baris dengan mengkonekan di tabel model\n } \n }catch(SQLException e){ // memanipulasi kesalahan\n System.out.println(\"ini error\"); // menampilkan pesan ini error\n }\n }", "private void ulangiEnkripsi() {\n this.tfieldP.setText(\"P\");\n this.tfieldQ.setText(\"Q\");\n this.tfieldN.setText(\"N\");\n this.tfieldTN.setText(\"TN\");\n this.tfieldE.setText(\"E\");\n this.tfieldD.setText(\"D\");\n this.tfieldLokasidannamafilehasilenkripsi.setText(\"Lokasi & Nama File Hasil Enkripsi\");\n this.tfieldLokasidannamafileenkripsi.setText(\"Lokasi & Nama File\");\n this.fileAsli = null;\n this.pbEnkripsi.setValue(0);\n this.enkripsi.setP(null);\n this.enkripsi.setQ(null);\n this.enkripsi.setN(null);\n this.enkripsi.setTn(null);\n this.enkripsi.setE(null);\n this.enkripsi.setD(null);\n }", "public void BacaIsi(int masalah){\r\n\t\t// KAMUS LOKAL\r\n\t\tint metode;\r\n\t\tint nbBrs;\r\n\t\tint nbKol;\r\n\r\n\t\tMatriks tempM;\r\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t// ALGORITMA\r\n\t\tSystem.out.printf(\"Pilih metode pembacaan matriks \\n1. Input Keyboard \\n2. File \\n\");\r\n\r\n\t\tmetode = sc.nextInt();\r\n\r\n\t\tif (metode == 1) {\r\n\r\n\t\t\t// Menerima Masukan dari keyboard untuk SPL\r\n\t\t\tif (masalah == 1) {\r\n\r\n\t\t\t\tSystem.out.printf(\"Panjang baris:\");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\tSystem.out.printf(\"Panjang kolom:\");\r\n\t\t\t\tnbKol = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol);\r\n\r\n\t\t\t\tSystem.out.println(\"Matriks:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tfor (int j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n<<<<<<< HEAD\r\n\t\t\t\t\r\n=======\r\n>>>>>>> 3fd955cf024845ce6a62834b1327d604a20de6d4\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t}\r\n\r\n\t\t\t// Menerima Masukan untuk Interpolasi Linier dari Keyboard\r\n\t\t\telse if (masalah == 2) {\r\n\t\t\t\tString titik;\r\n\t\t\t\tScanner scanner = new Scanner(System.in).useDelimiter(\"line.separator\");\r\n\t\t\t\tScanner s;\r\n\r\n\t\t\t\tSystem.out.printf(\"Input N: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,2);\r\n\r\n\t\t\t\tSystem.out.println(\"Titik:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs+1; i++) {\r\n\t\t\t\t\ttitik = scanner.nextLine();\r\n\t\t\t\t\ttitik = titik.substring(1, titik.length()-1);\r\n\r\n\t\t\t\t\ts = new Scanner(titik).useDelimiter(\", \");\r\n\r\n\t\t\t\t\ttempM.Elmt[i][0] = s.nextDouble();\r\n\t\t\t\t\ttempM.Elmt[i][1] = s.nextDouble();\r\n\r\n\t\t\t\t\ts.close();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tscanner.close();\r\n<<<<<<< HEAD\r\n\t\t\t\t\r\n=======\r\n>>>>>>> 3fd955cf024845ce6a62834b1327d604a20de6d4\r\n\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t}\r\n\r\n\t\t\t//Menerima Masukan untuk Regresi Linier berganda\r\n\t\t\telse if (masalah == 3) {\r\n\t\t\t\tSystem.out.printf(\"Jumlah data: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\r\n\t\t\t\tSystem.out.printf(\"Jumlah peubah: \");\r\n\t\t\t\tnbKol = sc.nextInt();\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol+1);\r\n\r\n\t\t\t\tSystem.out.println(\"Matriks:\");\r\n\t\t\t\tfor (int i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tfor (int j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t\t\r\n\t\t\t} \r\n\t\t\t// Menerima Masukan input untuk persoalan matriks inverse dan determinan\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Ukuran Matriks: \");\r\n\t\t\t\tnbBrs = sc.nextInt();\r\n\t\t\t\ttempM = new Matriks(nbBrs, nbBrs);\r\n\t\t\t\tSystem.out.println(\"Elemen Matriks: \");\r\n\r\n\t\t\t\tfor(int i=0; i<nbBrs; i++){\r\n\t\t\t\t\tfor(int j=0; j<nbBrs; j++){\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Menerima masukan dari file eksternal\r\n\t\telse if (metode == 2) {\r\n\t\t\tint i = 0;\r\n\t\t\tint j = 0;\r\n\t\t\tdouble tempI;\r\n\r\n\t\t\tString b;\r\n\t\t\tString[] baris;\r\n\r\n\t\t\tSystem.out.printf(\"Masukkan alamat file: \");\r\n\t\t\tString alamat = sc.next();\r\n\r\n\t\t\tFile file = new File(alamat);\r\n\r\n\t\t\ttry {\r\n\t\t\t\tScanner s = new Scanner(file);\r\n\r\n\t\t\t\twhile (s.hasNextLine()) {\r\n\t\t\t\t\tb = s.nextLine();\r\n\t\t\t\t\ti = i + 1;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\ts.close();\r\n\r\n\t\t\t\tbaris = new String[i];\r\n\t\t\t\ts = new Scanner(file);\r\n\t\t\t\tnbBrs = i;\r\n\t\t\t\ti = 0;\r\n\r\n\t\t\t\twhile (s.hasNextLine()) {\r\n\t\t\t\t\tbaris[i] = s.nextLine();\r\n\t\t\t\t\ti = i + 1;\r\n\t\t\t\t}\r\n\t\t\t\ts.close();\r\n\r\n\t\t\t\ts = new Scanner(baris[0]);\r\n\r\n\t\t\t\twhile (s.hasNextDouble()) {\r\n\t\t\t\t\ttempI = s.nextDouble();\r\n\t\t\t\t\tj = j + 1;\r\n\t\t\t\t}\r\n\t\t\t\ts.close();\r\n\t\t\t\tnbKol = j;\r\n\r\n\t\t\t\ttempM = new Matriks(nbBrs,nbKol);\r\n\r\n\t\t\t\tfor (i=0; i<nbBrs; i++) {\r\n\t\t\t\t\tsc = new Scanner(baris[i]);\r\n\r\n\t\t\t\t\tfor (j=0; j<nbKol; j++) {\r\n\t\t\t\t\t\ttempM.Elmt[i][j] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\tsc.close();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.Elmt = tempM.Elmt;\r\n\t\t\t\tthis.BrsEff = tempM.BrsEff;\r\n\t\t\t\tthis.KolEff = tempM.KolEff;\r\n\t\t\t} catch(FileNotFoundException e) {\r\n\t\t\t\tSystem.out.println(\"An error occured.\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void tambahTengah() {\n Scanner masukan = new Scanner(System.in);\n System.out.println(\"\\nTentukan Lokasi Penambahan Data\");\n int LOKASI = masukan.nextInt();\n masukan.nextLine();\n\n int jumlahSimpulYangAda = hitungJumlahSimpul();\n if (LOKASI == 1) {\n System.out.println(\"Lakukan penambahan di depan\");\n } else if (LOKASI > jumlahSimpulYangAda) {\n System.out.println(\"Lakukan penambahan di belakang\");\n } else {\n\n //------------bagian entri data dari keyboard--------------\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH TENGAH : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n //-- -- -- -- -- --bagian menemukan posisi yang dikehendaki-----------\n simpul bantu;\n bantu = awal;\n int i = 1;\n while ((i < LOKASI)\n && (bantu != akhir)) {\n bantu = bantu.kanan;\n i++;\n }\n\n // -- -- -- -- -- --bagian menciptakan & mengisi simpul baru-----------\n simpul baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //-- -- --bagian mencangkokkan simpul baru ke dalam linkedlist lama------\n baru.kiri = bantu.kiri;\n baru.kiri.kanan = baru;\n baru.kanan = bantu;\n bantu.kiri = baru;\n }\n }", "public int Masaid_Bul(String masa_adi) throws SQLException {\n baglanti vb = new baglanti();\r\n try {\r\n \r\n vb.baglan();\r\n int masaid = 0;\r\n String sorgu = \"select idmasalar from masalar where masa_adi='\" + masa_adi + \"';\";\r\n\r\n ps = vb.con.prepareStatement(sorgu);\r\n\r\n rs = ps.executeQuery(sorgu);\r\n while (rs.next()) {\r\n masaid = rs.getInt(1);\r\n }\r\n\r\n return masaid;\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n return 0;\r\n }\r\n finally{\r\n vb.con.close();\r\n }\r\n }", "public void setInstancia(java.lang.String instancia) {\r\n this.instancia = instancia;\r\n }", "private void kirimData(final Uri fileUri, final String isi, final String nama, final String rt, final String rw) {\n VolleyMultipartRequest multipartRequest = new VolleyMultipartRequest(Request.Method.POST, \"http://212.237.31.161/api/aspiration\", new Response.Listener<NetworkResponse>() {\n @Override\n public void onResponse(NetworkResponse response) {\n String resultResponse = new String(response.data);\n// try {\n//\n// } catch (JSONException e) {\n// e.printStackTrace();\n// }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n//\n if (error instanceof TimeoutError || error instanceof NoConnectionError) {\n Toast.makeText(TambahAspirasi.this.getContext(), \"Tidak dapat memuat data\\nTolong perika koneksi internet anda !\", Toast.LENGTH_LONG).show();\n }\n\n }\n }) {\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"rt\", rt);\n params.put(\"rw\", rw);\n params.put(\"aspiration\", isi);\n params.put(\"name\", nama);\n params.put(\"title\", nama);\n return params;\n }\n\n @Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n // file name could found file base or direct access from real path\n // for now just get bitmap data from ImageView\n params.put(\"photo_id\", new DataPart(fileUri.getLastPathSegment(), AppHelper.getFileDataFromDrawable(TambahAspirasi.this.getContext(), fotoktp.getDrawable()), \"image/jpeg\"));\n\n return params;\n }\n };\n\n VolleySingleton.getInstance(TambahAspirasi.this.getContext()).addToRequestQueue(multipartRequest);\n }", "public boolean fHalamanPelanggan(HttpSession vFSesi) {\n boolean vKeluaran = false;\n \n try{\n String vID = vFSesi.getAttribute(\"sesIDPub\").toString();\n String vSandi = vFSesi.getAttribute(\"sesSandiPUb\").toString();\n String vEmailDB = \"\";\n String vSandiDB = \"\";\n\n //String vKeluaran = \"fHalamanAdmin -> ID: \" + vID + \" & sandi: \" + vSandi;\n /* mencocokkan data session dengan basisdata */\n /* mengambil data nama dan sandi */\n ClsOperasiBasisdataOri oOpsBasisdata = new ClsOperasiBasisdataOri();\n\n /* \n String vFNamaBerkasKonf,\n String vFNamaBd,\n String vFNamaTabel,\n String[] vFArrNamaKolom,\n String vFKolomUrut,\n String vFJenisUrut,\n String[] vFOffset\n */\n\n ResultSet vHasil = oOpsBasisdata.fArrAmbilDataDbKondisi(\"\",\"\", \n \"tb_pelanggan\", \n new String[]{\"email\",\"sandi\"}, \n new String[]{\"email\"},\n \"nomor\", \n \"\", new String[]{\"0\",\"1\"},\"=\");\n\n /* keluaran permintaan */\n while(vHasil.next()){\n vEmailDB = vHasil.getString(\"email\");\n vSandiDB = vHasil.getString(\"sandi\");\n }\t\t\t\n \n System.out.println(vID + \"#\" + vEmailDB + \"#\" + \"#\" + vSandi + \"#\" + vSandiDB);\n /* mencocokkan data */\n if (vID != null && vEmailDB !=null && vSandi != null && vSandiDB != null) {\n \n /* sebelum divalidasi */\n /* apabila data POST sesuai dgn data dalam tabel basisdata: lupa password jadi di NOT */\n if(vID.equals(vEmailDB) && vSandi.equals(vSandiDB)){\n vKeluaran = true;\n }\n }\n }catch(SQLException | DOMException e){\n /* pencatatan sistem */\n if(ClsKonf.vKonfCatatSistem == true){\n String vNamaKelas = \"ClsPelanggan.java\";\n String vNamaMetode = \"fHalamanPelanggan\";\n String vCatatan = vNamaKelas + \"#\" + vNamaMetode + \"#\" + e.toString();\n /* obyek catat */\n ClsCatat oCatat = new ClsCatat();\n oCatat.fCatatSistem(ClsKonf.vKonfCatatKeOutput, \n ClsKonf.vKonfCatatKeBD, \n ClsKonf.vKonfCatatKeBerkas, \n vCatatan);\n }\n }\n \n /* debug nilai id dan password */\n //System.out.println(\"Belum divalidasi : \" + vID + \" = \" + vNamaDB + \" & \" + vSandi + \" = \" + vSandiDB);\n /* nilai keluaran */\n return vKeluaran;\n }", "public void testNamaPnsYangPensiunTahunIni(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPnsYangPensiunTahunIni(); \n\n\t\tshowData_YangpensiunTahunini(data,\"nip\",\"nama\",\"tmtpensiun\");\n\t}", "public void setDato(int dato) {\r\n this.dato = dato;\r\n }", "private String peso(long peso,int i)\n {\n DecimalFormat df=new DecimalFormat(\"#.##\");\n //aux para calcular el peso\n float aux=peso;\n //string para guardar el formato\n String auxPeso;\n //verificamos si el peso se puede seguir dividiendo\n if(aux/1024>1024)\n {\n //variable para decidir que tipo es \n i=i+1;\n //si aun se puede seguir dividiendo lo mandamos al mismo metodo\n auxPeso=peso(peso/1024,i);\n }\n else\n {\n //si no se puede dividir devolvemos el formato\n auxPeso=df.format(aux/1024)+\" \"+pesos[i];\n }\n return auxPeso;\n }", "public void tipoDatos() {\n\t\tint num = 10;\n\t\t// Texto STring\n\t\tString cadena = \"cadena\";\n\n\t\t// Decimale O flotante\n\t\tdouble decimal = 12.16;\n\t\tfloat fl = new Float(10);\n\t\t// Bolean\n\t\tboolean bl = true;\n\n\t\t// ARREGLOS\n\t\t// string\n\t\tString[] veString = new String[5];\n\t\tveString[0] = \"hola mundo\";\n\t\tveString[1] = \"hola mundo\";\n\t\tveString[2] = \"hola mundo\";\n\t\tveString[3] = \"hola mundo\";\n\t\tveString[4] = \"hola mundo\";\n\n\t\tint[] varNum = new int[] { 0, 1, 2, 3, 4, 5 };\n\n\t}", "public static boolean modif(Forma form, String tipo, String operador) {\n if(operador.equals(\"resta\")){\n String disp = \"\";\n String tabla = tipo;\n String query = \"\";\n \n switch (tipo) {\n case \"alumnoMaterial\":\n case \"profeMaterial\":\n tabla = \"material\";\n break;\n case \"profeEquipo\":\n case \"alumnoEquipo\":\n tabla = \"equipo\";\n break;\n case \"profeConsumible\":\n tabla = \"consumible\";\n break;\n case \"profeReactivo\":\n tabla = \"reactivo\";\n break;\n default:\n break;\n }\n try {\n Statement statement = connection.createStatement();\n query = \"SELECT Disponibilidad FROM \" + tabla +\n \" WHERE Nombre = '\" + form.getDesc() + \"'\";\n ResultSet result = statement.executeQuery(query);\n while (result.next()) {\n disp = result.getString(1);\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n //checo que haya suficientes\n int iDisp = Integer.parseInt(disp);\n int iCant = Integer.parseInt(form.getCant());\n iDisp = iDisp - iCant;\n //si no hay, regreso falso para fallar\n if(iDisp < 0) {\n return false;\n } else {\n //si si hay, inserto la nueva dipobilidad en el inventario\n try {\n query = \"UPDATE \" + tabla + \" SET Disponibilidad = ? WHERE Nombre = ?\";\n PreparedStatement preparedStmt = connection.prepareStatement(query);\n preparedStmt.setInt (1, iDisp);\n preparedStmt.setString(2, form.getDesc());\n preparedStmt.executeUpdate();\n \n if (preparedStmt.executeUpdate() == 1) {\n return true;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }\n return false;\n } else {\n String disp = \"\";\n String tabla = tipo;\n String query = \"\";\n \n try {\n Statement statement = connection.createStatement();\n query = \"SELECT Disponibilidad FROM \" + tabla +\n \" WHERE Nombre = '\" + form.getDesc() + \"'\";\n ResultSet result = statement.executeQuery(query);\n while (result.next()) {\n disp = result.getString(1);\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n //checo que haya suficientes\n int iDisp = Integer.parseInt(disp);\n int iCant = Integer.parseInt(form.getCant());\n iDisp = iDisp + iCant;\n //si no hay, regreso falso para fallar\n \n //si si hay, inserto la nueva dipobilidad en el inventario\n try {\n query = \"UPDATE \" + tabla + \" SET Disponibilidad = ? WHERE Nombre = ?\";\n PreparedStatement preparedStmt = connection.prepareStatement(query);\n preparedStmt.setInt (1, iDisp);\n preparedStmt.setString(2, form.getDesc());\n preparedStmt.executeUpdate();\n \n if (preparedStmt.executeUpdate() == 1) {\n return true;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }\n return false;\n }", "public int Kullanicino_Bul(String kullanici_adi) throws SQLException {\n baglanti vb = new baglanti();\r\n try {\r\n \r\n vb.baglan();\r\n int kullanicino = 0;\r\n String sorgu = \"select kullanici_no from kullanicilar where kullanici_adi='\" + kullanici_adi + \"';\";\r\n\r\n ps = vb.con.prepareStatement(sorgu);\r\n\r\n rs = ps.executeQuery(sorgu);\r\n while (rs.next()) {\r\n kullanicino = rs.getInt(1);\r\n }\r\n return kullanicino;\r\n\r\n } catch (Exception e) {\r\n Logger.getLogger(siparis.class.getName()).log(Level.SEVERE, null, e);\r\n return 0;\r\n }\r\n finally{\r\n vb.con.close();\r\n }\r\n }", "public boolean action(Event e, Object o){\n \n \n if(e.target==guardar){\n RandomAccessFile archi;\n \n try {\n \n File ff = new File (\"Notas.dat\"); \n \n if (ff.exists()== false){\n \n archi = new RandomAccessFile(\"Notas.dat\",\"rw\");\n \n }\n else{\n archi = new RandomAccessFile(\"Notas.dat\",\"rw\");\n archi.seek(archi.length());\n \n }\n \n String code = caja1.getText();\n int L1 = code.length();\n byte [ ]x1 = new byte [5];\n code.getBytes(0,L1,x1,0);\n \n String name = caja2.getText();\n int L2 = name.length();\n byte [ ]x2 = new byte [10];\n name.getBytes(0,L2,x2,0);\n \n int tipo=Integer.parseInt(caja3.getText());\n String pc=\"\";\n \n if (tipo==1) {\n pc=\"Computadores\";\n }else{\n if (tipo==2) {\n pc=\"Audiovisuales\";\n }else{\n if (tipo==3) {\n pc=\"Moviles\";\n }else{\n pc=\"No valido\";\n }\n }\n }\n \n int L3 = pc.length();\n byte [ ]x3 = new byte [13];\n pc.getBytes(0,L3,x3,0);\n \n \n archi.write(x1,0,5);\n archi.write(x2,0,10);\n archi.write(x3,0,13);\n \n caja1.setText(\"\");\n caja2.setText(\"\");\n caja3.setText(\"\");\n \n archi.close();\n return true;\n }//\n catch(IOException q){\n }\n \n return true;\n \n }\n if(e.target==buscar){ //Para mostrar los Datos y/o Resultados\n RandomAccessFile archi;\n try{\n \n archi = new RandomAccessFile(\"Notas.dat\",\"rw\");\n \n byte []h1 = new byte[5];\n byte []h2= new byte[10];\n byte []h3 = new byte[13];\n Datos.setText(\"\");\n \n archi.length();\n Datos.appendText(\" \"+\" ID dispositivo \"+\" Nombre del Dispositivo \"+\" Tipo de Dispositivo \"+\"\\n\");\n for(int i=0; i<archi.length()/28;i++){\n archi.seek(28*i);\n \n archi.read(h1,0,5);\n String id =new String(h1);\n \n archi.read(h2,0,10);\n String Name = new String(h2);\n \n archi.read(h3,0,13);\n String TP = new String(h3);\n \n Datos.appendText(\" \"+id);\n Datos.appendText(\" \"+Name);\n Datos.appendText(\" \"+TP);\n Datos.appendText(\"\\n\");\n }\n \n \n \n }\n catch(IOException q){}\n return true;\n }\n \n \n if(e.target==Limpiar){\n Datos.setText(\"\");\n return true;\n }\n return true;\n //Cierre del Public...\n }", "public void simpanDataBuku(){\n String sql = (\"INSERT INTO buku (judulBuku, pengarang, penerbit, tahun, stok)\" \n + \"VALUES ('\"+getJudulBuku()+\"', '\"+getPengarang()+\"', '\"+getPenerbit()+\"'\"\n + \", '\"+getTahun()+\"', '\"+getStok()+\"')\");\n \n try {\n //inisialisasi preparedstatmen\n PreparedStatement eksekusi = koneksi. getKoneksi().prepareStatement(sql);\n eksekusi.execute();\n \n //pemberitahuan jika data berhasil di simpan\n JOptionPane.showMessageDialog(null,\"Data Berhasil Disimpan\");\n } catch (SQLException ex) {\n //Logger.getLogger(modelPelanggan.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null, \"Data Gagal Disimpan \\n\"+ex);\n }\n }", "private void carregaInformacoes() {\n Pessoa pessoa = (Pessoa) getIntent().getExtras().getSerializable(\"pessoa\");\n edtNome.setText(pessoa.getNome());\n edtEmail.setText(pessoa.getEmail());\n edtTelefone.setText(pessoa.getTelefone());\n edtIdade.setText(pessoa.getIdade());\n edtCPF.setText(pessoa.getCpf());\n }", "private void sumarEdificio(int tipo){\n int cantActual;\n //Buscar tipo\n switch(tipo){\n case vg.CHOZA:\n cantActual = Integer.parseInt(jTextFieldChoza.getText());\n jTextFieldChoza.setText(String.valueOf(cantActual+1));\n break;\n case vg.CAMPAMENTO:\n cantActual = Integer.parseInt(jTextFieldCampamento.getText());\n jTextFieldCampamento.setText(String.valueOf(cantActual+1));\n break;\n case vg.CUARTEL:\n cantActual = Integer.parseInt(jTextFieldCuartel.getText());\n jTextFieldCuartel.setText(String.valueOf(cantActual+1));\n break;\n case vg.MINA:\n cantActual = Integer.parseInt(jTextFieldMina.getText());\n jTextFieldMina.setText(String.valueOf(cantActual+1));\n break;\n case vg.RECOLECTOR:\n cantActual = Integer.parseInt(jTextFieldRecolector.getText());\n jTextFieldRecolector.setText(String.valueOf(cantActual+1));\n break;\n case vg.TORRE:\n cantActual = Integer.parseInt(jTextFieldTorre.getText());\n jTextFieldTorre.setText(String.valueOf(cantActual+1));\n break;\n case vg.CAÑON:\n cantActual = Integer.parseInt(jTextFieldCañon.getText());\n jTextFieldCañon.setText(String.valueOf(cantActual+1));\n break;\n case vg.MORTERO:\n cantActual = Integer.parseInt(jTextFieldMortero.getText());\n jTextFieldMortero.setText(String.valueOf(cantActual+1));\n break;\n default:\n break;\n }\n }", "public void saveDataInt(String clave, int valor){\r\n editor.putInt(clave, valor);\r\n editor.commit();\r\n }", "void setCodiceFiscale(String codiceFiscale);", "public void setTipo(int tipo) {\r\n this.tipo = tipo;\r\n }", "public void limparCampos() {\n\n // Limpa todos formularios.\n textoNome.setText(\"\");\n textoCPF.setText(\"\");\n comboGenero.setSelectedIndex(0);\n textoDataDeNascimento.setText(\"\");\n textoEnderecoLogradouro.setText(\"\");\n textoBairro.setText(\"\");\n textoComplemento.setText(\"\");\n textoNumero.setText(\"\");\n textoEmail.setText(\"\");\n textoTelefone.setText(\"\");\n textoCelular.setText(\"\");\n textoCEP.setText(\"\");\n textoDD_Celular.setText(\"\");\n textoDD_Telefone.setText(\"\");\n Icon imagemPerfil = new ImageIcon(\"src\\\\br\\\\com\\\\Grupo07\\\\Imagens\\\\perfil.jpg\");\n imagemCliente.setIcon(imagemPerfil);\n\n }", "private void preencherCampos(){\n if (!TextUtils.isEmpty(usuario.getPhotoUrl())){\n Picasso.with(EditarUsuarioPerfilActivity.this).load(usuario.getPhotoUrl()).transform(new CircleTransform()).into(imgPerfilUser);\n }else{\n Picasso.with(EditarUsuarioPerfilActivity.this).load(R.drawable.ic_empresa_new).transform(new CircleTransform()).into(imgPerfilUser);\n }\n\n\n editNome.setText(usuario.getNome());\n editEmail.setText(usuario.getEmail());\n editrelefoneCel.setText(usuario.getTelefoneCel());\n editTelefoneResidencial.setText(usuario.getTelefoneResidencial());\n textUserEditHabilidades.setText(textUserEditHabilidades.getText().toString());\n editCEP.setText(usuario.getCEP());\n editPais.setText(usuario.getPais());\n editEstado.setText(usuario.getEstado());\n editCidade.setText(usuario.getCidade());\n editBairro.setText(usuario.getBairro());\n editRua.setText(usuario.getRua());\n editNumero.setText(usuario.getNumero());\n editComplemento.setText(usuario.getComplemento());\n }", "Tarifas(int tipoTarifa, double costeMinuto, String nombreTarifa)\n {\n this.tipoTarifa = tipoTarifa;\n this.costeMinuto = costeMinuto;\n this.nombreTarifa = nombreTarifa;\n }", "public boolean InsertarInformacionInmueble(String id,String direccion,String lugarReferencia,String tamano, String estrato,String tipo,String habitaciones,String usuario,String precio){\n\t\ttry{\n\t\t\tPreparedStatement statement=getConnection().prepareStatement(\"insert into inmuebles (direccion,lugarReferencia,tamano,estrato,tipo,habitaciones,idUsuario,precio) values(?,?,?,?,?,?,?,?)\");\n\t\t\tstatement.setString(1, direccion);\n\t\t\tstatement.setString(2, lugarReferencia);\n\t\t\tstatement.setInt(3, Integer.parseInt(tamano));\n\t\t\tstatement.setInt(4, Integer.parseInt(estrato));\n\t\t\tstatement.setString(5, tipo);\n\t\t\tstatement.setInt(6, Integer.parseInt(habitaciones));\n\t\t\tstatement.setString(7, usuario);\n\t\t\tstatement.setInt(8, Integer.parseInt(precio));\n\t\t\tstatement.execute();\n\t\t\tstatement.close();\n\t\t\treturn true;\n\t\t}catch(SQLException exception){\n\t\t\tSystem.err.println(exception);\n\t\t\treturn false;\n\t\t}\n\t}", "Filmes(String nome,String genero){\n\t\tthis.nome = nome;\n\t\tthis.genero = genero;\n\t}", "public void setId_usuario(String usuario) {\n this.id_usuario = usuario;\n }", "public void testNamaPNSYangSkepnyaDiterbitkanOlehPresiden(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPNSYangSkepnyaDiterbitkanOlehPresiden(); \n\n\t\tshowData(data,\"nip\",\"nama\",\"tanggal_lahir\",\"tanggal_berhenti\",\"pangkat\",\"masa_kerja\",\"penerbit\");\n\t}", "public void setFilial(int filial);", "public void Get() { ob = ti.Get(currentrowi, \"persoana\"); ID = ti.ID; CNP = ob[0]; Nume = ob[1]; Prenume = ob[2]; }", "public void setFiMaHoso(String fiMaHoso) {\n this.fiMaHoso = fiMaHoso;\n }", "public void setFiMaHoso(String fiMaHoso) {\n this.fiMaHoso = fiMaHoso;\n }", "public int obtenerDatos() {\n codigo =Integer.parseInt(modelo.getValueAt(fila,0).toString());\n return codigo;\n }", "public void ajouterFiche(Fiche fiche) ;", "String getDataNascimento();", "public void setAlamat(String alamat) {\r\n this.alamat = alamat;\r\n }", "public void SetBilangan(int i){\n\t\tTkn=TipeToken.Bilangan;\n\t\tTipeBilangan = Tipe._int;\n\t\tVal.I = i;\n\t}", "public static void main(String[] args) {\n\t\tUsuario user = new Usuario(1, \"Joseph\", \"Climber\", \"Joseph Climber\", \"[email protected]\" \"222-3344\");\r\n\t\t\r\n\t\tpublic void mostrar() {\r\n\t\tSystem.out.println(\"\\n\\nUsuário:\\n\");\r\n\t\tSystem.out.println(\"Matrícula: \" + this.matricula);\r\n\t\tSystem.out.println(\"Login: \" + this.login);\r\n\t\tSystem.out.println(\"Senha: \" + this.senha);\r\n\t\tSystem.out.println(\"Nome: \" + this.nome);\r\n\t\tSystem.out.println(\"Email: \" + this.email);\r\n\t\tSystem.out.println(\"Telefone: \" + this.telefone);\r\n\t\t\r\n\t\tuser.mostrar();\r\n\t\t}\r\n\t\t\r\n\t\tItemDePedido Idp1 = new ItemDePedido();\r\n\t\tIdp1.setQtde(2);\r\n\t\tIdp1.setSubtotal(22.98);\r\n\r\n\r\n\t\tItemDePedido Idp2 = new ItemDePedido();\r\n\t\tIdp2.setQtde(1);\r\n\t\tIdp2.setSubtotal(98.75);\r\n\t\t\r\n\t\t\r\n\t\tEndereco end = new Endereco();\r\n\t\tend.setBairro(\"\");\r\n\t\tend.setCidade(\"\");\r\n\t\tend.setCep(\"\");\r\n\t\tend.setLogradouro(\"\");\r\n\t\tend.setComplemento(\"\");\r\n\t\tend.setEstado(\"\");\r\n\t\tend.setNumero(\"\");\r\n\t\t\r\n\t\tNotebook note = new Notebook();\r\n\t\tnote.setDescricao(null);\r\n\t\tnote.setModelo(\"Intel\");\r\n\t\tnote.setNumeroNote(2002-4);\r\n\t\tnote.setDataCadastro(\"0001-5\");\r\n\t\tnote.setFigura(\"\");\r\n\t\tnote.setPrecoUnitario(2.000);\r\n\t\t\r\n\t\tnote.setDescricao(null);\r\n\t\tnote.setModelo(\"CCE\");\r\n\t\tnote.setNumeroNote(2044-4);\r\n\t\tnote.setDataCadastro(\"0456-5\");\r\n\t\tnote.setFigura(\"\");\r\n\t\tnote.setPrecoUnitario(1500.00);\r\n\t\t\r\n\t\tnote.setDescricao(null);\r\n\t\tnote.setModelo(\"Positivo\");\r\n\t\tnote.setNumeroNote(2012-4);\r\n\t\tnote.setDataCadastro(\"00063-5\");\r\n\t\tnote.setFigura(\"\");\r\n\t\tnote.setPrecoUnitario(1.800);\r\n\t\t\r\n\t\t\r\n\t\tPedido pdd = new Pedido();\r\n\t\tpdd.setNumero(0001);\r\n\t\tpdd.setDataEmissao(\"23-11-2018\");\r\n\t\tpdd.setFormaDePagamento(\"\");\r\n\t\tpdd.setValorTotal(1.200);\r\n\t\tpdd.setSituacao(\"\");\r\n\t\t\r\n\t\t\r\n\t}", "public void tampilharga(){\n try{\n Statement statement = (Statement)conek.GetConnection().createStatement();\n ResultSet res = statement.executeQuery(\"select * from tblaktivitas where compart='\"+ txtcompart.getSelectedItem() +\"' AND nama_grup= '\"+txtgrup.getSelectedItem()+\"'\"); \n \n while(res.next()){\n String price = res.getString(\"harga\");\n String aktivitas = res.getString(\"pekerjaan\");\n String hektar = res.getString(\"ha\");\n txtharga.setText(price);\n txtaktivitas.setText(aktivitas); \n txtha.setText(hektar);\n }\n res.close();\n }catch (Exception e){\n System.out.println(e.getMessage());\n }\n jmlharga = Integer.valueOf(txtharga.getText());\n jmlha = Integer.valueOf(txtha.getText());\n }", "public int updateDataMahasiswa(Uang uang) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_PEMASUKAN, uang.getPemasukan());\n values.put(COLUMN_PENGELUARAN, uang.getPengeluaran());\n return db.update(TABLE_NAME, values, COLUMN_ID + \" = ?\",\n new String[]{String.valueOf(uang.getId())});\n }", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "private void hienThi() {\n try {\n if (isInsert) {\n txtMaThucAn.setText(ThucPhamController.hienMa());\n txtMaThucAn.setEnabled(false);\n hienTrangThai();\n } else {\n txtMaThucAn.setText(tp.getMathucpham());\n txtMaThucAn.setEnabled(false);\n txtTenThucAn.setText(tp.getTenthucpham());\n jSpinSoLuong.setValue(tp.getSoluong());\n String sDonGia = Integer.toString((int) tp.getDongia());\n txtDonGia.setText(sDonGia);\n hienTrangThai();\n if (tp.getTrangthai() == 1) {\n cbbTrangThai.setSelectedIndex(0);\n } else {\n cbbTrangThai.setSelectedIndex(1);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }", "public PrivatniKorisnik(Long id, String ime, String prezime, String email, String telefon) {\n\t\tsuper(id, email, telefon);\n\t\tthis.ime = ime;\n\t\tthis.prezime = prezime;\n\t}", "public void setFila(int fila) {\r\n\t\tthis.fila = fila;\r\n\t}", "@Test\n public void WertZuweisung (){\n String bez = \"Test\";\n String matGr = \"Test\";\n String zeichNr = \"Test\";\n float preis = 3;\n int ve = 1;\n try {\n Teilebestand teil = new Teilebestand();\n teil.setBezeichnung(bez);\n teil.setMaterialgruppe(matGr);\n teil.setPreis(preis);\n teil.setTyp(Teilebestand.Typ.kaufteile);\n teil.setZeichnungsnummer(zeichNr);\n teil.setVe(ve);\n \n teil.save();\n \n assertEquals(teil.getBezeichnung(), bez);\n assertEquals(teil.getMaterialgruppe(), matGr);\n assertEquals(teil.getPreis(), preis, 0.1);\n assertNotNull(preis);\n assertEquals(teil.getTyp(), Teilebestand.Typ.kaufteile);\n assertEquals(teil.getVe(), ve);\n assertNotNull(ve);\n assertEquals(teil.getZeichnungsnummer(), zeichNr);\n \n } catch (SQLException ex) {\n fail(ex.getSQLState());\n }\n \n \n \n \n }", "private void edit() {\n if (String.valueOf(tgl_pengobatanField.getText()).equals(null)\n || String.valueOf(waktu_pengobatanField.getText()).equals(null)) {\n Toast.makeText(getApplicationContext(),\n \"Ada Yang Belum Terisi\", Toast.LENGTH_SHORT).show();\n } else {\n SQLite.update(Integer.parseInt(idField.getText().toString().trim()),nama_pasien2,nama_dokter2, tgl_pengobatanField.getText().toString().trim(),waktu_pengobatanField.getText().toString(),\n keluhan_pasienField.getText().toString().trim(),hasil_diagnosaField.getText().toString().trim(),\n biayaField.getText().toString().trim());\n blank();\n finish();\n }\n }", "public static void alamatPerusahaan() {\r\n System.out.println(\"Karyawan bekerja di Perusahaan \" + Employee.perusahaan + \" yang beralamat di Jalan Astangkuri Jakarta\");\r\n }", "@Override\n\tpublic void aumentar(int cantidad) {\n\t\t\n\t}", "public void insert() {\n SiswaModel m = new SiswaModel();\n m.setNisn(view.getTxtNis().getText());\n m.setNik(view.getTxtNik().getText());\n m.setNamaSiswa(view.getTxtNama().getText());\n m.setTempatLahir(view.getTxtTempatLahir().getText());\n \n //save date format\n String date = view.getDatePickerLahir().getText();\n DateFormat df = new SimpleDateFormat(\"MM/dd/yyyy\"); \n Date d = null;\n try {\n d = df.parse(date);\n } catch (ParseException ex) {\n System.out.println(\"Error : \"+ex.getMessage());\n }\n m.setTanggalLahir(d);\n \n //Save Jenis kelamin\n if(view.getRadioLaki().isSelected()){\n m.setJenisKelamin(JenisKelaminEnum.Pria);\n }else{\n m.setJenisKelamin(JenisKelaminEnum.Wanita);\n }\n \n m.setAsalSekolah(view.getTxtAsalSekolah().getText());\n m.setHobby(view.getTxtHoby().getText());\n m.setCita(view.getTxtCita2().getText());\n m.setJumlahSaudara(Integer.valueOf(view.getTxtNis().getText()));\n m.setAyah(view.getTxtNamaAyah().getText());\n m.setAlamat(view.getTxtAlamat().getText());\n \n if(view.getRadioLkkAda().isSelected()){\n m.setLkk(LkkEnum.ada);\n }else{\n m.setLkk(LkkEnum.tidak_ada);\n }\n \n //save agama\n m.setAgama(view.getComboAgama().getSelectedItem().toString());\n \n dao.save(m);\n clean();\n }", "public static Usuario getUsuario(int i)throws IOException{\n if(i>=0 && i<getNumerodeUsers()){ //si esta dentro del rango sigue con su trabajo\r\n flujou.seek(i*Tamañouser); // se posiciona en la posicion que busca\r\n return new Usuario(flujou.readUTF(),flujou.readUTF(),flujou.readFloat()); // regresa el usuario de esa posicion en el archivo\r\n \r\n }else{\r\n JOptionPane.showMessageDialog(null,\"Posicion de usuario inválida\");\r\n return null;\r\n }\r\n }", "private String setFichero(enumFicheros fichero)\n\t{\n\t\tswitch(fichero)\n\t\t{\n\t\tcase FICHERO_INFO_RANURA1:\n\t\t{\n\t\t\treturn fichero_info_ranura1;\n\t\t}\n\t\tcase FICHERO_INFO_RANURA2:\n\t\t{\n\t\t\treturn fichero_info_ranura2;\n\t\t}\n\t\tcase FICHERO_INFO_RANURA3:\n\t\t{\n\t\t\treturn fichero_info_ranura3;\n\t\t}\n\t\tcase FICHERO_PJ_RANURA1:\n\t\t{\n\t\t\treturn fichero_pj_ranura1;\n\t\t}\n\t\tcase FICHERO_PJ_RANURA2:\n\t\t{\n\t\t\treturn fichero_pj_ranura2;\n\t\t}\n\t\tcase FICHERO_PJ_RANURA3:\n\t\t{\n\t\t\treturn fichero_pj_ranura3;\n\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public void setNama() {\n nama.postValue(\"Hello, Riyanto!\");\n }", "public Asignacion_usuario_Perfil1() {\n int CodigoAplicacion = 120;\n initComponents();\n llenadoDeCombos();\n llenadoDeTablas();\n \n\n \n }" ]
[ "0.62550706", "0.5971511", "0.59121245", "0.5827097", "0.5758123", "0.57412815", "0.5665627", "0.5608077", "0.5607113", "0.560586", "0.5590226", "0.556453", "0.55366814", "0.55333525", "0.55123335", "0.5512196", "0.5511294", "0.5508327", "0.55049014", "0.548902", "0.5485954", "0.54737103", "0.54482985", "0.542079", "0.54136163", "0.5405784", "0.53970766", "0.53785825", "0.5374375", "0.5357387", "0.53557086", "0.53505397", "0.53387564", "0.5331829", "0.53311", "0.532952", "0.53270245", "0.5315742", "0.5307682", "0.53071713", "0.530052", "0.52982664", "0.52939385", "0.5293191", "0.5285443", "0.528182", "0.52806", "0.5278479", "0.52693874", "0.5262443", "0.5254699", "0.52545637", "0.5254314", "0.5251097", "0.52492404", "0.5240616", "0.52300274", "0.52267903", "0.52245045", "0.5223154", "0.52224195", "0.52223796", "0.5219814", "0.52155095", "0.5212", "0.5211803", "0.52091134", "0.52073514", "0.5205168", "0.52050984", "0.52049816", "0.52048963", "0.5203294", "0.52009654", "0.51988524", "0.5194884", "0.518944", "0.5189023", "0.51755893", "0.51755893", "0.51755595", "0.517187", "0.5170564", "0.51660293", "0.51613533", "0.5160421", "0.51569074", "0.51500946", "0.5149104", "0.51471436", "0.5144148", "0.51427454", "0.514191", "0.51418203", "0.5140506", "0.51372916", "0.51347405", "0.51326185", "0.51324284", "0.5130422", "0.5127599" ]
0.0
-1
set the default tag if tag is empty
public <T> void addToRequestQueue(Request<T> req, String tag) { req.setTag(TextUtils.isEmpty(tag) ? TAG : tag); getRequestQueue().add(req); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Tag addDefaultTag(){\n StringProperty tagName = new SimpleStringProperty();\n tagName.setValue(\"New Tag\");\n Tag newTag = new Tag(tagName);\n\n\n /* verify if id is integer or string, we handle just strings here\n newTag.setIdProperty(0);\n */\n\n addTag(newTag);\n\n System.out.println(contentFromTags(tags));\n\n return newTag;\n }", "protected void initTag()\n {\n }", "public void setToTag(String tag) throws ParseException,NullPointerException;", "public static Tag emptyTag() {\n\t\treturn new Tag(NAME, \"\");\n\t}", "void setNilTag();", "public void changeDefaultQueryTag(String tag) throws PixConsumerException {\n\t\t\n\t\tif ((tag != null) && (tag.length() > 0)) {\n\t\t\ttry {\n\t\t\t\tsetField(QPD_2, tag);\n\t\t\t} catch (PixPdqMessageException e) {\n\t\t\t\tthrow new PixConsumerException(e);\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new PixConsumerException(\"PixConsumerQuery: changeDefaultQueryTag - \" + tag + \" invalid parameter \");\n\t\t}\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"PixConsumerQuery: changeDefaultQueryTag \");\n\t\t}\n\t}", "public void setTag(String tag);", "private void initializeTag()\n {\n Iterator<node_info> it=this.ga.getV().iterator();\n while(it.hasNext())\n {\n it.next().setTag(Double.POSITIVE_INFINITY);\n }\n }", "@Override\n\tpublic Tag getTag() {\n\t\treturn null;\n\t}", "public void setTag(Object tag)\n {\n fTag = tag;\n }", "public void setTag(String tag) {\r\n this.tag = tag;\r\n }", "public Tags() {\n set (\"\");\n }", "public void setTag(Tag tag) {\n\t\tProgramTags newTag = program.getTagIfPresent(tag); // throws if no such tag in program\n\t\tsetTag(newTag);\n\t}", "public void setTag( String tag )\n {\n this.tag = tag;\n }", "void setTag(java.lang.String tag);", "public Builder setTag(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n tag_ = value;\n onChanged();\n return this;\n }", "public void setDefault(String key){\n _default = key;\n }", "@Override\n\tpublic String getTagName() {\n\t\treturn null;\n\t}", "public static void addDefaultProperty(String tag, String value) {\n defprops.setProperty(tag, value);\n }", "public void setTag(String tag) {\n this.tag = tag;\n }", "public void setTag(String tag) {\n this.tag = tag;\n }", "public void setEmptyTags (String[] tags) {\n\t\temptyTags = tags;\n\t}", "public void setFromTag(String tag) throws ParseException,NullPointerException;", "public static <T> ITag.INamedTag<T> defaulted(RegistryKey<Registry<T>> type, ITag.INamedTag<T> tag, RegistryKey<?> parent)\n {\n RegistryKey<T> regKey = RegistryKey.func_240903_a_(type, tag.getName());\n Set<ResourceLocation> other = defaults.get(parent);\n if (other == null)\n throw new IllegalStateException(\"Attempted to set nested default without setting parent: \" + regKey + \" -> \" + parent);\n defaults.put(regKey, other);\n return tag;\n }", "public void setTag(ProgramTags tag) {\n\t\tthis.tag = program.getTagIfPresent(tag.getTag());\n\t}", "@Override\n\tprotected String openTag(String tag) {\n\t\t// store position of parser for openening tag only if\n\t\t// it the first openened, e.g. <b>text<b>text2</b> will draw\n\t\t// text and text2 in bold weight\n\t\tif (!tags.containsKey(tag)) {\n\t\t\ttags.put(tag, Integer.valueOf(clearedText.length()));\n\t\t}\n\t\treturn \"\";\n\t}", "public void setTag(String tagName, Object value);", "public AnnotationDefaultAttr(ElemValPair s) { //\r\n elem = s;\r\n }", "public Builder clearTag() {\n \n tag_ = getDefaultInstance().getTag();\n onChanged();\n return this;\n }", "protected void setToDefault(){\n\n\t}", "public void defaultVisit(ParseNode node) {}", "public static <T> ITag.INamedTag<T> defaulted(RegistryKey<Registry<T>> type, ITag.INamedTag<T> tag, Set<ResourceLocation> values)\n {\n defaults.put(RegistryKey.func_240903_a_(type, tag.getName()), ImmutableSet.copyOf(values));\n return tag;\n }", "public void setItTag(String itTag) {\n this.itTag = itTag == null ? null : itTag.trim();\n }", "public void setTag(int tag) {\n this.tag = tag;\n }", "public String getModelXMLTagValue(String tagname, String default_value) {\n\t\tElement res = getModelXMLElement(tagname);\n\t\treturn (res != null) ? res.getTextContent() : default_value;\n\t}", "@Override\r\n\tpublic void setParent(Tag arg0) {\n\t}", "private void clearHasTag() {\n \n hasTag_ = 0;\n }", "public void setDefault(String defaultTarget) {\n this.defaultTarget = defaultTarget;\n }", "private void setHasTag(int value) {\n \n hasTag_ = value;\n }", "public Builder clearTag() {\n if (tagBuilder_ == null) {\n tag_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000080);\n onChanged();\n } else {\n tagBuilder_.clear();\n }\n return this;\n }", "public void setTAG(String TAG) {\r\n this.TAG = TAG == null ? null : TAG.trim();\r\n }", "@Override\n public void setTag(int t) {\n this.tag = t;\n\n }", "ParameterableElement getDefault();", "@Override\n\tpublic TemplateArgument getDefaultValue()\n\t{\n\t\tif (hasDefault())\n\t\t\treturn new TypenameTemplateArgument(getDefault());\n\t\telse\n\t\t\treturn null;\n\t}", "@Override\n protected void onComponentTag(final ComponentTag _tag)\n {\n _tag.setName(\"a\");\n super.onComponentTag(_tag);\n onComponentTagInternal(_tag);\n }", "public Tag(String tag) {\n\t\tthis.tag = tag;\n\t}", "public void _default(Object parser, Object data) {\n }", "public boolean setTag(int tag)\n {\n if (tag < 0) {\n return false;\n }\n\n tag_ = tag;\n return true;\n }", "public void setTagname(String tagname) {\n this.tagname = tagname == null ? null : tagname.trim();\n }", "Tag(String name){\r\n this.tagName = name;\r\n }", "protected void tag (int ltagStart) throws HTMLParseException {\r\n Tag tag = new Tag ();\r\n Token token = new Token (tag, false);\r\n switch (nextToken) {\r\n case STRING:\r\n tag.setType (stringValue);\r\n match (STRING);\r\n arglist (tag);\r\n if (tagmode) {\r\n block.setRest (lastTagStart);\r\n } else {\r\n token.setStartIndex (ltagStart);\r\n //block.addToken (token);\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(token);\r\n }\r\n break;\r\n case MT:\r\n tagmode = false;\r\n match (MT);\r\n break;\r\n case END:\r\n block.setRest (lastTagStart);\r\n tagmode = false;\r\n return;\r\n default:\r\n arglist (tag);\r\n }\r\n }", "public void setDefault(String defaultValue) {\n this.defaultValue = defaultValue;\n }", "public void setToDefault();", "public boolean isDefaultElement();", "public TagAttributeHandlerBuilder tag(String tag) {\n this.tag = tag;\n return this;\n }", "public void setMyTag(int theTag)\n\t{\n\t\tmyTag = theTag;\n\t}", "java.lang.String getTag();", "java.lang.String getTag();", "public void setDefault(String defaultTitle) {\n this.defaultTitle = defaultTitle;\n }", "protected void handleStart(HtmlDocument.Tag tag) {\n if (!tag.isSelfTerminating()) {\n // Add to the stack of tags needing closing tag\n mSeenTags.push(new TagWrapper(tag, mBuilder.length()));\n }\n }", "public void setTagName(String tagName) {\n this.tagName = tagName == null ? null : tagName.trim();\n }", "public void setTagName(String tagName) {\n this.tagName = tagName == null ? null : tagName.trim();\n }", "public void setDefaultTarget(String defaultTarget) {\n this.defaultTarget = defaultTarget;\n }", "void unsetTag();", "@Override\n\tpublic Tag getPreTag() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void setDefault(String oletus) {\r\n\t\ttextVastaus.setText(oletus);\r\n\t}", "default void configureChild(Tag<? extends Type> tag) {\n // noop\n }", "public void setDefaultHandler(ElementHandler handler) {\r\n defaultHandler = handler;\r\n }", "protected void setFragmentTag(String tag) {\n\t\tif (mContext == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (mContext instanceof BaseActivity) {\n\t\t\tBaseActivity activity = (BaseActivity) mContext;\n\t\t\tactivity.setCurrentFragment(tag);\n\t\t}\n\t}", "void xsetTag(org.apache.xmlbeans.XmlString tag);", "public void xsetIdTag(ocpp.IdToken idTag)\n {\n synchronized (monitor())\n {\n check_orphaned();\n ocpp.IdToken target = null;\n target = (ocpp.IdToken)get_store().find_element_user(IDTAG$0, 0);\n if (target == null)\n {\n target = (ocpp.IdToken)get_store().add_element_user(IDTAG$0);\n }\n target.set(idTag);\n }\n }", "public void addTag(String singleTag) {\n \t\tif (!this.tags.contains(singleTag))\n \t\t\tthis.tags.add(singleTag);\n \t}", "public Tag() {\n\t}", "public Tag() {\n\t}", "E createDefaultElement();", "@Api(1.1)\n @NonNull\n public Builder tag(Object tag) {\n mRequestBuilder.tag(tag);\n return this;\n }", "private void tagZero(graph g) {\n\t\tCollection<node_data> temp = g.getV();\n\t\tfor (node_data node : temp) {\n\t\t\tnode.setTag(0);\n\t\t}\n\t}", "public void defaultContent() {\n\t\tgetter().switchTo().defaultContent();\r\n\t}", "public boolean isSetTag() {\n return this.tag != null;\n }", "public void setIdTagsOff () {\n\t\tidTags = false;\n\t}", "Object getDefaultLabel() {\n return null;\n }", "@Override\n\t\tpublic void visitTag(Tag tag) {\n\t\t\tsuper.visitTag(tag);\n\t\t\tif ( engine.isPageContent(tag) ) {\n\t\t\t\tString tcontent = extractText(tag, 0);\n\t\t\t\tif ( tcontent == null ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif ( content == null || content.length() < tcontent.length() ) {\n\t\t\t\t\tcontent = tcontent; \n\t\t\t\t}\n\t\t\t} else if ( engine.isPageTitle(tag) ) {\n\t\t\t\tString ttitle = extractText(tag, 0);\n\t\t\t\tif ( ttitle == null ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif ( title == null || title.length() < ttitle.length() ) {\n\t\t\t\t\ttitle = ttitle;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n\tpublic Object visitDefaultValueComponent(DefaultValue defaultValue) {\n\t\treturn null;\n\t}", "@JsonSetter(\"tag\")\r\n public void setTag(String tag) {\r\n this.tag = tag;\r\n }", "public void init(List<String> text, String tag) {\n if (null == this.text)\n this.text = text;\n else\n tags.getLast().text = text;\n tags.addLast(new Tag(tag));\n }", "public void setTag(List<Tag> tag)\n\t{\n\t\t this.addKeyValue(\"Tag\", tag);\n\n\t}", "public void initDefaultValues(BinaryContent t)\r\n\t{\n\r\n\t}", "@Override\n public int addDefaultAttribute(String localName, String uri, String prefix,\n String value)\n {\n // nothing to do, but to indicate we didn't add it...\n return -1;\n }", "public String getTag() {\r\n return tag;\r\n }", "@Override\r\n public String getXMLTag() {\r\n return XMLTAG;\r\n }", "boolean isSetTag();", "public String getTag() {\n return tag;\n }", "public String getTag() {\n return tag;\n }", "public void setDefaultValue(String defaultValue){\n m_defaultValue = defaultValue;\n }", "@Override\n protected void onComponentTag(final ComponentTag _tag)\n {\n super.onComponentTag(_tag);\n _tag.setName(\"a\");\n _tag.put(\"href\", \"#\");\n onComponentTagInternal(_tag);\n }", "@Override\n public String getXMLTag() {\n return XMLTAG;\n }", "public String getTag() {\n\t\treturn tag;\n\t}", "public String getTag() {\n return tag;\n }", "public static void setTag(String string) {\n\t\ttags.put(last[0], string);\n\t}", "public String getDefault();", "public void addTag(String t) {\n\t\tif (!tagList.containsKey(t)) {\n\t\t\ttagList.put(t, 0);\n\t\t} else {\n\t\t\tSystem.out.print(\"Tag already exists!\");\n\t\t}\n\t}" ]
[ "0.6947677", "0.64617544", "0.63822204", "0.63353443", "0.62309545", "0.6083666", "0.6058373", "0.6008387", "0.6006476", "0.59884214", "0.5962166", "0.59496534", "0.5919006", "0.5916324", "0.591185", "0.5904689", "0.5898822", "0.5888592", "0.5884294", "0.5864048", "0.5864048", "0.5858492", "0.58562315", "0.5830822", "0.5727815", "0.57204556", "0.57045686", "0.5672976", "0.5658094", "0.5651695", "0.5641731", "0.56397617", "0.56309223", "0.56159246", "0.5606066", "0.5588153", "0.55871", "0.5557685", "0.5553647", "0.5515448", "0.5514667", "0.5493962", "0.549307", "0.54907286", "0.5482676", "0.5460967", "0.5447615", "0.5420674", "0.5416648", "0.54132336", "0.5410829", "0.5407827", "0.5401568", "0.53650737", "0.5364761", "0.5355827", "0.53534096", "0.53534096", "0.5351589", "0.5336684", "0.5322571", "0.5322571", "0.531952", "0.5315853", "0.53142554", "0.5305742", "0.5304962", "0.5294238", "0.5291956", "0.52878183", "0.5287736", "0.528014", "0.5279936", "0.5279936", "0.52792174", "0.5276118", "0.52754855", "0.52532625", "0.5241948", "0.5238587", "0.5234842", "0.5234398", "0.52220064", "0.52184284", "0.52144706", "0.5214317", "0.52044463", "0.51881444", "0.51828927", "0.51764876", "0.51740354", "0.5151463", "0.5151463", "0.5145106", "0.51343423", "0.51289093", "0.5112073", "0.51069754", "0.51067007", "0.5097476", "0.5096516" ]
0.0
-1