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
end setStartDate(); / Sets value as the attribute value for EndDate Business Rules: This is an optional value which can be updated at any time. Cannot be earlier than sysdate.
public void setEndDate(Date value) { validateEndDate(value); setAttributeInternal(ENDDATE, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStartDate(java.util.Date value);", "public void setEndDate(java.util.Date value);", "void setStartDate(Date startDate);", "public void setStartDate(Date s);", "public void setEndDate(Date value) {\r\n this.endDate = value;\r\n }", "void setEndDate(Date endDate);", "public void setStartDate(Date value)\n {\n validateStartDate(value);\n setAttributeInternal(STARTDATE, value);\n \n }", "public void setEndDate(Date end)\r\n {\r\n this.endDate = end;\r\n }", "public void setStartDate(Date start)\r\n {\r\n this.startDate = start;\r\n }", "public void setEndDate(java.sql.Date newEndDate) {\n\tendDate = newEndDate;\n}", "public void setStartDate(Date startDate) {\r\n this.startDate = startDate;\r\n }", "public void setStartDate(Date startDate) {\r\n this.startDate = startDate;\r\n }", "public void setStartDate(Date startDate)\r\n {\r\n m_startDate = startDate;\r\n }", "protected void setStartDate(final AbsoluteDate startDate) {\n this.startDate = startDate;\n }", "public void setEndDate(java.lang.String value) {\n this.endDate = value;\n }", "public void setEndDate(Date endDate) {\r\n this.endDate = endDate;\r\n }", "public void setEndDate(Date endDate) {\r\n this.endDate = endDate;\r\n }", "public void setStartDate(Date startDate) {\n this.startDate = startDate;\n }", "public void setStartDate(Date startDate) {\n this.startDate = startDate;\n }", "public void setStartDate(Date startDate) {\n this.startDate = startDate;\n }", "public void setStartDate(java.sql.Date newStartDate) {\n\tstartDate = newStartDate;\n}", "@Override\n\tpublic void setStartDate(Date startDate) {\n\t\tmodel.setStartDate(startDate);\n\t}", "public void setREQ_END_DATE(java.sql.Date value)\n {\n if ((__REQ_END_DATE == null) != (value == null) || (value != null && ! value.equals(__REQ_END_DATE)))\n {\n _isDirty = true;\n }\n __REQ_END_DATE = value;\n }", "public void setEndDate(String date){\n\t\tthis.endDate = date;\n\t}", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "void setEventStartDate(Date startEventDate);", "public void setStartDate(Date startDate) {\n\t\tthis.startDate = startDate;\n\t}", "public void setStartDate(Date startDate) {\n\t\tthis.startDate = startDate;\n\t}", "public void setEndDate(String endDate) {\n this.endDate = endDate;\n }", "public void setStartDate(String startDate) {\n this.startDate = startDate;\n }", "public void validateEndDate(Date value)\n {\n \n if (value != null)\n {\n OADBTransaction transaction = getOADBTransaction();\n\n // Note that we want to truncate these values to allow for the possibility\n // that we're trying to set them to be the same day. Calling \n // dateValue( ) does not include time. Were we to want the time element,\n // we would call timestampValue(). Finally, you cannot compare \n // oracle.jbo.domain.Date objects directly. Instead, convert the value to \n // a long as shown.\n \n long sysdate = transaction.getCurrentDBDate().dateValue().getTime();\n long endDate = value.dateValue().getTime();\n\n if (endDate < sysdate)\n { \n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"EndDate\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_END_DATE_PAST\"); // Message name\n } \n }\n\n }", "public void setEnddate(Date enddate) {\r\n this.enddate = enddate;\r\n }", "public void setServiceEndDate(Date value) {\n setAttributeInternal(SERVICEENDDATE, value);\n }", "void setEventEndDate(Date endEventDate);", "public void setBeginDate(Date beginDate) {\n this.beginDate = beginDate;\n if(this.beginDate.before(DateUtils.getToday())){\n this.beginDate = DateUtils.getToday();\n }\n //For new event or event with beginDate after endDate, set endDate after 30 minutes when beginDate change\n if(this.endDate == null || (this.endDate != null && !this.endDate.after(beginDate)))\n this.endDate = new Date(beginDate.getTime() + TimeUnit.MINUTES.toMillis(30));\n }", "public void validateStartDate(Date value)\n {\n \n if (value != null)\n {\n OADBTransaction transaction = getOADBTransaction();\n\n // Note that we want to truncate these values to allow for the possibility\n // that we're trying to set them to be the same day. Calling \n // dateValue( ) does not include time. Were we to want the time element,\n // we would call timestampValue(). Finally, you cannot compare \n // oracle.jbo.domain.Date objects directly. Instead, convert the value to \n // a long as shown.\n \n long sysdate = transaction.getCurrentDBDate().dateValue().getTime();\n long startDate = value.dateValue().getTime();\n\n if (startDate < sysdate)\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"StartDate\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_START_DATE_PAST\"); // Message name\n } \n }\n \n }", "@Override\n\tpublic void setStartDate(java.util.Date startDate) {\n\t\t_esfTournament.setStartDate(startDate);\n\t}", "public void setEndDate(Date eDate) throws IllegalArgumentException {\n\t\tif (eDate == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tendDate = eDate;\n\t\tupdateAvailability(\"\");\n\t}", "public void setEndDate(Date endDate) {\n\t\tthis.endDate = endDate;\n\t}", "public void setEndDate(Date endDate) {\n\t\tthis.endDate = endDate;\n\t}", "public void setDate(Date date) {\r\n \t\tthis.startDate = date;\r\n \t}", "public void setStartDate(Date sDate) throws IllegalArgumentException {\n\t\tif (sDate == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tstartDate = sDate;\n\t\tupdateAvailability(\"\");\n\t}", "public void setStartDate(String date){\n\t\tthis.startDate = date;\n\t}", "public void setEndDate(Long endDate) {\n\t\tthis.endDate = endDate;\n\t}", "public void setEndDate (java.util.Date endDate) {\r\n\t\tthis.endDate = endDate;\r\n\t}", "public void setActualStart(Date actualStartDate)\r\n {\r\n m_actualStart = actualStartDate;\r\n }", "public void setStartdate(Date startdate) {\r\n this.startdate = startdate;\r\n }", "@Test\n\tpublic void testSetEndDate() {\n\t\tassertNotEquals(calTest, initialJob.getEndDate());\n\t\tinitialJob.setEndDate(calTest.get(Calendar.YEAR), calTest.get(Calendar.MONTH), \n\t\t\t\tcalTest.get(Calendar.DATE), calTest.get(Calendar.HOUR), \n\t\t\t\tcalTest.get(Calendar.MINUTE));\n\t\tassertEquals(calTest, initialJob.getEndDate());\n\t}", "public void setServiceStartDate(Date value) {\n setAttributeInternal(SERVICESTARTDATE, value);\n }", "public void setDtEnd(Date dtEnd) {\r\n this.dtEnd = dtEnd;\r\n }", "public void setREQ_START_DATE(java.sql.Date value)\n {\n if ((__REQ_START_DATE == null) != (value == null) || (value != null && ! value.equals(__REQ_START_DATE)))\n {\n _isDirty = true;\n }\n __REQ_START_DATE = value;\n }", "public void setEndDate(java.util.Calendar endDate) {\n this.endDate = endDate;\n }", "public void setEndServiceDate(Date value) {\n setAttributeInternal(ENDSERVICEDATE, value);\n }", "public void setBeginnDate(Date beginnDate) {\n\t\tthis.beginnDate = beginnDate;\n\t}", "public void setStartdate(Date startdate) {\n this.startdate = startdate;\n }", "public void setDateStart (Timestamp DateStart);", "void setDateRange(Date start, Date end);", "@Test\n\tpublic void testSetStartDate() {\n\t\tassertNotEquals(calTest, initialJob.getStartDate());\n\t\tinitialJob.setStartDate(calTest.get(Calendar.YEAR), calTest.get(Calendar.MONTH), \n\t\t\t\tcalTest.get(Calendar.DATE), calTest.get(Calendar.HOUR), \n\t\t\t\tcalTest.get(Calendar.MINUTE));\n\t\tassertEquals(calTest, initialJob.getStartDate());\n\t\t\n\t\t// check different dates are not equivalent\n\t\tinitialJob.setStartDate(calTest.get(Calendar.YEAR) + 1, calTest.get(Calendar.MONTH), \n\t\t\t\tcalTest.get(Calendar.DATE), calTest.get(Calendar.HOUR), \n\t\t\t\tcalTest.get(Calendar.MINUTE));\n\t\tassertNotEquals(calTest, initialJob.getStartDate());\n\t}", "public Builder setStartDate(long value) {\n \n startDate_ = value;\n onChanged();\n return this;\n }", "public void setStartDate(String startDate) throws ParseException {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n this.startDate = dateFormat.parse(startDate);\n }", "@Override\n\tpublic Long updateEndDate() {\n\t\treturn null;\n\t}", "public Builder setEndDate(long value) {\n \n endDate_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void setEndDate(java.util.Date endDate) {\n\t\t_esfTournament.setEndDate(endDate);\n\t}", "public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);", "public void setStartDate(java.util.Calendar startDate) {\n this.startDate = startDate;\n }", "public void setStartDayEnd(Integer startDayEnd) {\n this.startDayEnd = startDayEnd;\n }", "public Builder setEndDate(long value) {\n bitField0_ |= 0x00000080;\n endDate_ = value;\n\n return this;\n }", "public void setEND_DATE(Date END_DATE) {\n this.END_DATE = END_DATE;\n }", "public void setStart(Date newStart) {\n if (!newStart.before(_end)) {\n throw new IllegalArgumentException(ERR_START_AFTER_END);\n }\n _start = (Date) newStart.clone();\n }", "protected AbsoluteDate getStartDate() {\n return startDate;\n }", "public referential.store.v2.WeekPattern.Builder setEndDate(java.lang.String value) {\n validate(fields()[2], value);\n this.endDate = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public void setDtStart(Date dtStart) {\r\n this.dtStart = dtStart;\r\n }", "@Override\n\tpublic Long updateStartDate() {\n\t\treturn null;\n\t}", "public Date getEndDate() {\r\n return endDate;\r\n }", "public Date getEndDate() {\r\n return endDate;\r\n }", "public void setEndExecDate(java.util.Calendar endExecDate)\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(ENDEXECDATE$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ENDEXECDATE$10);\n }\n target.setCalendarValue(endExecDate);\n }\n }", "public Date getEndDate()\r\n {\r\n return this.endDate;\r\n }", "public void setStartDate(LocalDateTime startDate) {\n this.startDate = startDate;\n }", "public Date getEndDate() {\r\n return this.endDate;\r\n }", "@Test\n public void testSetStartDate() {\n System.out.println(\"setStartDate\");\n Calendar newStart = new GregorianCalendar(2000, 01, 01);\n String startDate = newStart.toString();\n DTO_Ride instance = dtoRide;\n instance.setStartDate(startDate);\n \n String result = instance.getStartDate();\n assertEquals(newStart, newStart);\n }", "@Test\n public void testSetEndDate() {\n System.out.println(\"setEndDate\");\n Calendar newEnd = new GregorianCalendar(2000, 01, 01);\n String endDate = newEnd.toString();\n DTO_Ride instance = dtoRide;\n instance.setEndDate(endDate);\n \n String result = endDate.toString();\n assertEquals(newEnd, newEnd);\n }", "public void setJobStartDate(java.util.Calendar jobStartDate)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(JOBSTARTDATE$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(JOBSTARTDATE$0);\r\n }\r\n target.setCalendarValue(jobStartDate);\r\n }\r\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public void setBaselineStart(Date baselineStartDate)\r\n {\r\n m_baselineStart = baselineStartDate;\r\n }", "public Date getStartDate() {\r\n return startDate;\r\n }", "public Date getStartDate() {\r\n return startDate;\r\n }", "public void changeStartDate(DateToken startToken) {\r\n\t\tDateTime now = new DateTime();\r\n\t\tif (Interval.nowStub != null) now = Interval.nowStub;\r\n\t\t\r\n\t\tstartDateExplicitlySet = true;\r\n\t\t\r\n\t\tif (this.start == null) {\r\n\t\t\tDateTime start = startToken.mergeInto(now).withTime(0, 0, 0, 0);\r\n\r\n\t\t\t// not leaping forward a year here; date should be taken as is\r\n\t\t\t\r\n\t\t\tthis.start = start;\r\n\t\t\tend = start.withTime(23, 59, 0, 0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// a time has already been set\r\n\t\t\tDateTime start = startToken.mergeInto(this.start);\r\n\t\t\tthis.start = start;\r\n\t\t\tif (end.isBefore(this.start)) {\r\n\t\t\t\tend = this.start.plusHours(1);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tend = startToken.mergeInto(end);\r\n\t\t\t\tif (end.isBefore(start)) {\r\n\t\t\t\t\tend = start.plusHours(1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void xsetEndExecDate(org.apache.xmlbeans.XmlDate endExecDate)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDate target = null;\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(ENDEXECDATE$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(ENDEXECDATE$10);\n }\n target.set(endExecDate);\n }\n }", "public abstract void setEndTime(Date endTime);", "Date getEndDate();", "Date getEndDate();", "public String getEndDate() {\n return endDate;\n }", "public void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);", "public void setEndDateTime(java.util.Date endDateTime) {\n this.endDateTime = endDateTime;\n }", "public String getEndDate(){\n\t\treturn this.endDate;\n\t}" ]
[ "0.7868655", "0.78298646", "0.7789037", "0.7656941", "0.7615389", "0.75731164", "0.7556387", "0.7418688", "0.7395768", "0.7262013", "0.72369236", "0.72369236", "0.7195909", "0.7192843", "0.7164872", "0.71635294", "0.71635294", "0.71378165", "0.71378165", "0.71378165", "0.7128195", "0.7108603", "0.70887303", "0.70583516", "0.7055618", "0.7055618", "0.7055618", "0.7001219", "0.69867873", "0.69867873", "0.69862795", "0.6972102", "0.69668627", "0.69628215", "0.69624245", "0.696225", "0.692384", "0.6917093", "0.6915145", "0.68922114", "0.6882228", "0.6882228", "0.68225014", "0.68099904", "0.68001014", "0.6794704", "0.67923373", "0.6787674", "0.6750738", "0.672781", "0.6716029", "0.67044055", "0.66950655", "0.6686113", "0.6665265", "0.66643244", "0.6654348", "0.6650496", "0.6649457", "0.66489124", "0.6597882", "0.659056", "0.6589456", "0.6579413", "0.657097", "0.6569749", "0.656278", "0.65520936", "0.65332913", "0.6512349", "0.6489651", "0.64752597", "0.6468756", "0.6468096", "0.64476216", "0.6443324", "0.6443324", "0.64113593", "0.64054674", "0.6396431", "0.6384613", "0.63745826", "0.6374383", "0.6339027", "0.63330364", "0.63330364", "0.63330364", "0.63330364", "0.6332862", "0.63325715", "0.63325715", "0.6315638", "0.6298526", "0.62970865", "0.62888104", "0.62888104", "0.6285439", "0.6283311", "0.62638724", "0.62630296" ]
0.7723695
3
end setEndDate() / Validates the end date (created as a separate method so it can be called in validateEntity and setEndDate).
public void validateEndDate(Date value) { if (value != null) { OADBTransaction transaction = getOADBTransaction(); // Note that we want to truncate these values to allow for the possibility // that we're trying to set them to be the same day. Calling // dateValue( ) does not include time. Were we to want the time element, // we would call timestampValue(). Finally, you cannot compare // oracle.jbo.domain.Date objects directly. Instead, convert the value to // a long as shown. long sysdate = transaction.getCurrentDBDate().dateValue().getTime(); long endDate = value.dateValue().getTime(); if (endDate < sysdate) { throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT, getEntityDef().getFullName(), // EO name getPrimaryKey(), // EO PK "EndDate", // Attribute Name value, // Attribute value "AK", // Message product short name "FWK_TBX_T_END_DATE_PAST"); // Message name } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEndDate(Date end)\r\n {\r\n this.endDate = end;\r\n }", "void setEndDate(Date endDate);", "public void setEndDate(Date endDate) {\r\n this.endDate = endDate;\r\n }", "public void setEndDate(Date endDate) {\r\n this.endDate = endDate;\r\n }", "public void setEndDate(Date value) {\r\n this.endDate = value;\r\n }", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "public void setEndDate(java.util.Date value);", "public void setEndDate(String date){\n\t\tthis.endDate = date;\n\t}", "public void setEndDate(Date endDate) {\n\t\tthis.endDate = endDate;\n\t}", "public void setEndDate(Date endDate) {\n\t\tthis.endDate = endDate;\n\t}", "void setEventEndDate(Date endEventDate);", "public void setEndDate(Date value)\n {\n\n validateEndDate(value);\n setAttributeInternal(ENDDATE, value);\n \n }", "public void setEndDate (java.util.Date endDate) {\r\n\t\tthis.endDate = endDate;\r\n\t}", "public void setEndDate(java.sql.Date newEndDate) {\n\tendDate = newEndDate;\n}", "public void setEndDate(Date eDate) throws IllegalArgumentException {\n\t\tif (eDate == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tendDate = eDate;\n\t\tupdateAvailability(\"\");\n\t}", "@Override\n\tpublic void setEndDate(java.util.Date endDate) {\n\t\t_esfTournament.setEndDate(endDate);\n\t}", "public void setEndDate(String endDate) {\n this.endDate = endDate;\n }", "public void setEnddate(Date enddate) {\r\n this.enddate = enddate;\r\n }", "Date getEndDate();", "Date getEndDate();", "public void setEndDate(Long endDate) {\n\t\tthis.endDate = endDate;\n\t}", "public Date getEndDate() {\r\n return endDate;\r\n }", "public Date getEndDate() {\r\n return endDate;\r\n }", "public void setEndDate(java.util.Calendar endDate) {\n this.endDate = endDate;\n }", "public Date getEndDate() {\r\n return this.endDate;\r\n }", "public void setDtEnd(Date dtEnd) {\r\n this.dtEnd = dtEnd;\r\n }", "public Date getEndDate()\r\n {\r\n return this.endDate;\r\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public void setEndDateTime(java.util.Date endDateTime) {\n this.endDateTime = endDateTime;\n }", "public void setEndDate(java.lang.String value) {\n this.endDate = value;\n }", "public Date getEndDate();", "public Date getEndDate();", "@Test\n\tpublic void testSetEndDate() {\n\t\tassertNotEquals(calTest, initialJob.getEndDate());\n\t\tinitialJob.setEndDate(calTest.get(Calendar.YEAR), calTest.get(Calendar.MONTH), \n\t\t\t\tcalTest.get(Calendar.DATE), calTest.get(Calendar.HOUR), \n\t\t\t\tcalTest.get(Calendar.MINUTE));\n\t\tassertEquals(calTest, initialJob.getEndDate());\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndDate();", "public void setEndDate(LocalDateTime endDate) {\n this.endDate = endDate;\n }", "public Date getEndDate() {\n\t\treturn endDate;\n\t}", "public Date getEndDate() {\n\t\treturn endDate;\n\t}", "public long getEndDate() {\n return endDate_;\n }", "public abstract void setEndTime(Date endTime);", "public Date getEndDate() {\n\t\treturn this.endDate;\n\t}", "public CommonAlert dateEnd(Date dateEnd) {\n this.dateEnd = dateEnd;\n return this;\n }", "public void setEND_DATE(Date END_DATE) {\n this.END_DATE = END_DATE;\n }", "long getEndDate();", "long getEndDate();", "@Test\n\tpublic void testValidateEndDate() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateEndDate(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateEndDate(\"Invalid value.\");\n\t\t\t\tfail(\"The end date was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\n\t\t\tMap<DateTime, String> dateToString = ParameterSets.getDateToString();\n\t\t\tfor(DateTime date : dateToString.keySet()) {\n\t\t\t\tAssert.assertEquals(date, SurveyResponseValidators.validateEndDate(dateToString.get(date)));\n\t\t\t}\n\t\t\t\n\t\t\tMap<DateTime, String> dateTimeToString = ParameterSets.getDateTimeToString();\n\t\t\tfor(DateTime date : dateTimeToString.keySet()) {\n\t\t\t\tAssert.assertEquals(date, SurveyResponseValidators.validateEndDate(dateTimeToString.get(date)));\n\t\t\t}\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "protected void validateEntity()\n {\n super.validateEntity();\n \n Date startDate = getStartDate();\n Date endDate = getEndDate();\n \n validateStartDate(startDate);\n validateEndDate(endDate);\n\n // We validate the following here instead of from within an attribute because\n // we need to make sure that both values are set before we perform the test.\n\n if (endDate != null)\n {\n // Note that we want to truncate these values to allow for the possibility\n // that we're trying to set them to be the same day. Calling \n // dateValue( ) does not include time. Were we to want the time element,\n // we would call timestampValue(). Finally, whenever comparing jbo\n // Date objects, we have to convert to long values.\n \n long endDateLong = endDate.dateValue().getTime();\n\n // We can assume we have a Start Date or the validation of this \n // value would have thrown an exception.\n \n if (endDateLong < startDate.dateValue().getTime())\n {\n throw new OARowValException(OARowValException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(),\n getPrimaryKey(),\n \"AK\", // Message product short name\n \"FWK_TBX_T_START_END_BAD\"); // Message name\n } \n } \n \n }", "public long getEndDate() {\n return endDate_;\n }", "public Builder setEndDate(long value) {\n \n endDate_ = value;\n onChanged();\n return this;\n }", "public void validateEndDateAndTime(String startDate, String endDate) {\n boolean isValid = false;\n if (!validateDateAndTime(startDate)) {\n isValid = validateDateAndTime(endDate); //End date can still be valid if start date isn't\n } else {\n if (validateDateAndTime(endDate)) {\n // If startDate is valid, then End date must be valid and occur after start date\n Calendar startCal = DateUtility.convertToDateObj(startDate);\n Calendar endCal = DateUtility.convertToDateObj(endDate);\n isValid = startCal.before(endCal);\n }\n }\n setEndDateAndTimeValid(isValid);\n }", "public void setEndTimeDate(Date endTimeDate) {\n this.endTimeDate = endTimeDate;\n }", "public LocalDate getEndDate() { return this.endDate; }", "public long getEndDate() {\n return endDate_;\n }", "public long getEndDate() {\n return endDate_;\n }", "@Override\n\tpublic Long updateEndDate() {\n\t\treturn null;\n\t}", "public void setEndTime(Date endTime) {\r\n this.endTime = endTime;\r\n }", "public Long getEndDate() {\n\t\treturn endDate;\n\t}", "public java.util.Date getEndDate () {\r\n\t\treturn endDate;\r\n\t}", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "public String getEndDate() {\n return endDate;\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void testChangeReservationEndWithStartDateAfterEndDate() throws Exception {\n\t\tReservation res1 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(), validStartDate,\n\t\t\t\tvalidEndDate);\n\t\tbookingManagement.changeReservationEnd(res1.getId(), validStartDate);\n\t}", "@ApiModelProperty(value = \"The event end date in the event or site timezone\")\n public String getEndDate() {\n return endDate;\n }", "private boolean validateEventEndDate(){\n //get event end date\n String eventEndDateInput = eventEndDateTV.getText().toString().trim();\n\n //if event end date == null\n if(eventEndDateInput.isEmpty())\n {\n eventEndDateTV.setError(\"Please set the end date for the event\");\n return false;\n }\n else{\n eventEndDateTV.setError(null);\n return true;\n }\n }", "public String getEndDate(){\n\t\treturn this.endDate;\n\t}", "public String getEndDate();", "@Override\n\tpublic java.util.Date getEndDate() {\n\t\treturn _esfTournament.getEndDate();\n\t}", "public void checkEndDate(String endDate, DateTime dateTime)\n throws IllegalCommandArgumentException {\n int startDay = Integer.parseInt(endDate.split(dateOperator)[0]);\n if (dateTime.getEndDate().getDayOfMonth() != startDay) {\n throw new IllegalCommandArgumentException(\n Constants.FEEDBACK_INVALID_DATE, Constants.CommandParam.DATETIME);\n }\n }", "public void setEndDate(@Nullable DateWithOffset endDate) {\r\n this.endDate = endDate;\r\n }", "public void setEndTime(Date endTime) {\n\t\tthis.endTime = endTime;\n\t}", "public LocalDate getEndDate () {\n\t\treturn DateUtils.toLocalDate(this.end);\n\t}", "public java.sql.Date getEndDate() {\n\treturn endDate;\n}", "String getEndDate();", "public void setEndTime( Date endTime ) {\n this.endTime = endTime;\n }", "public Date getEndDate()\n {\n return (Date)getAttributeInternal(ENDDATE);\n }", "public void setEndTime(java.util.Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(java.util.Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(java.util.Date endTime) {\n this.endTime = endTime;\n }", "public Date getDtEnd() {\r\n return dtEnd;\r\n }", "public java.lang.String getEndDate() {\n return endDate;\n }", "public Builder setEndDate(long value) {\n bitField0_ |= 0x00000080;\n endDate_ = value;\n\n return this;\n }", "private int processEndDate(int count) {\n String line = this.result.get(count);\n if (line.indexOf(\"char:\") == 0) {\n checkEmptyLine(line);\n line = this.result.get(++count);\n }\n if (!line.equals(\"start:end-date\")) {\n throw new IllegalArgumentException(\"Not find end-date tag.\");\n }\n line = this.result.get(++count).replace(\"\\t\", \"\").trim();\n if (line.indexOf(\"char:\") != 0 || line.indexOf(\"char:\") == 0\n && line.substring(5).trim().length() == 0) {\n this.endDate = null;\n }\n else {\n String strDate = line.substring(5).trim();\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\"yyyy-MM-dd\");\n try {\n this.endDate = LocalDate.parse(strDate, format);\n if (this.endDate.isBefore(this.beginDate)) {\n throw new IllegalArgumentException(\"Invalid end date.\");\n }\n checkDate(strDate, this.endDate);\n }\n catch (DateTimeParseException e) {\n throw new IllegalArgumentException(\"Illegal date: \" + e.getMessage());\n }\n line = this.result.get(++count);\n if (line.indexOf(\"char:\") == 0) {\n checkEmptyLine(line);\n line = this.result.get(++count);\n }\n }\n if (!line.equals(\"end:end-date\")) {\n throw new IllegalArgumentException(\"Not find end-date end tag.\");\n }\n this.state = ProcessState.WAIT_AMOUNT;\n return ++count;\n }", "public java.lang.String getEndDate() {\n return endDate;\n }", "public void setREQ_END_DATE(java.sql.Date value)\n {\n if ((__REQ_END_DATE == null) != (value == null) || (value != null && ! value.equals(__REQ_END_DATE)))\n {\n _isDirty = true;\n }\n __REQ_END_DATE = value;\n }", "public void setEndtime(Date endtime) {\n this.endtime = endtime;\n }", "@ApiModelProperty(value = \"End of the range\")\n public String getDateEnd() {\n return dateEnd;\n }", "public java.util.Date getEndDateTime() {\n return this.endDateTime;\n }", "public void setExpEndDate(Date expEndDate) {\n\t\tthis.expEndDate = expEndDate;\n\t}", "public LocalDate getEnd_date(){\n return this.end_date;\n }", "public Date getEnddate() {\r\n return enddate;\r\n }", "public java.util.Calendar getEndDate() {\n return endDate;\n }", "public void setServiceEndDate(Date value) {\n setAttributeInternal(SERVICEENDDATE, value);\n }", "public LocalDateTime getEndDate() {\n return endDate;\n }", "public static String validateJobEndDate(Date startDate, Date endDate) {\n if (endDate.before(startDate)) {\n return \"End date cannot be before start date\";\n } else if (endDate.before(new Date())) {\n return \"End date cannot be before current date\";\n } else {\n return null;\n }\n }" ]
[ "0.8573244", "0.82019454", "0.8154024", "0.8154024", "0.8134272", "0.8097933", "0.8097933", "0.8097933", "0.8065494", "0.78952557", "0.7886881", "0.7886881", "0.771053", "0.77053356", "0.7702188", "0.7671205", "0.76707876", "0.7640346", "0.75825775", "0.75445867", "0.7532909", "0.7532909", "0.7529372", "0.7523149", "0.7523149", "0.7520659", "0.74916226", "0.74647975", "0.74553347", "0.7452677", "0.7452677", "0.7452677", "0.7452677", "0.73954564", "0.73609716", "0.7307529", "0.7307529", "0.72747093", "0.72081137", "0.7206668", "0.7185529", "0.7185529", "0.7145896", "0.71339417", "0.71305376", "0.71027565", "0.7082235", "0.7077047", "0.7077047", "0.7075412", "0.7070646", "0.7048164", "0.7036491", "0.7027338", "0.7014622", "0.7006656", "0.6999552", "0.6996978", "0.699398", "0.69782543", "0.6975576", "0.6964912", "0.69384235", "0.69384235", "0.69384235", "0.69384235", "0.6908527", "0.68877643", "0.6872024", "0.68699336", "0.68692315", "0.6857685", "0.6857669", "0.6855449", "0.6829436", "0.6821912", "0.68203175", "0.6770214", "0.6752793", "0.6747284", "0.6736452", "0.673582", "0.673582", "0.673582", "0.6705429", "0.66798645", "0.66709197", "0.6660819", "0.6657608", "0.6639428", "0.66036355", "0.6583783", "0.6579576", "0.6566538", "0.6559169", "0.65588605", "0.6556054", "0.65331256", "0.64995474", "0.6490804" ]
0.7864194
12
/ Retrieves the definition object for this instance class. / Gets the attribute value for SupplierId, using the alias name SupplierId Retrieves the definition object for this instance class.
public static synchronized EntityDefImpl getDefinitionObject() { if (mDefinitionObject == null) { mDefinitionObject = (OAEntityDefImpl)EntityDefImpl.findDefObject("oracle.apps.fnd.framework.toolbox.schema.server.SupplierEO"); } return mDefinitionObject; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getSupplierId() {\n\t\treturn supplierId;\n\t}", "public Integer getSupplierId() {\n return supplierId;\n }", "public Integer getSupplierid() {\r\n return supplierid;\r\n }", "String getSupplierID();", "public int getSupplierId()\n {\n return(this.SupplierId);\n }", "@Override\n\tpublic Supplier getSupplierId(long supplierId) {\n\t\tString sql=\"SELECT * FROM supplier WHERE supplier_id=?\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId);\n\t}", "public Supplier getById(int id){ \n\t Supplier e=(Supplier)template.get(Supplier.class,id); \n\t return e; \n\t}", "public String getSupplier() {\n return supplier;\n }", "public String getSupplierName() {\n return supplierName;\n }", "public SupplierCard find_Supplier(Integer supplier_id) {\n return supplier_dao.find(supplier_id);\n }", "public jkt.hms.masters.business.MasStoreSupplier getSupplier () {\n\t\treturn supplier;\n\t}", "public String getSupplierPartId() {\r\n return this.supplierPartId;\r\n }", "public Short getSuppliersId() {\n return suppliersId;\n }", "public void setSupplierId(Integer supplierId) {\n this.supplierId = supplierId;\n }", "public void setSupplierId(Long supplierId) {\n\t\tthis.supplierId = supplierId;\n\t}", "public Supplier findSupplierById(int id) throws NameValidationException, AddressValidationException, ZipCodeValidationException, CityValidationException, PhoneValidationException, EmailValidationException {\n\t\tResultSet rs;\n\t\tSupplier res = null;\n\t\ttry {\n\t\t\tfindSupplierById.setInt(1, id);\n\t\t\trs = findSupplierById.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tres = buildSupplierObject(rs);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn res;\n\t}", "public void setSupplierid(Integer supplierid) {\r\n this.supplierid = supplierid;\r\n }", "@Override\n public KitchenSupplier getKitchenSupplier(Long selectedSupplierId) {\n KitchenSupplier ks = em.find(KitchenSupplier.class, selectedSupplierId);\n return ks;\n }", "public void setSupplierId(int SupplierIdIn)\n {\n this.SupplierId = SupplierIdIn;\n }", "public String getSupplierNum() {\n return supplierNum;\n }", "public SupplierEntity getSupplierEntity(int supplierId) {\n\n SupplierEntity originEntity = new SupplierEntity();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n originEntity = (SupplierEntity)session.get(SupplierEntity.class, supplierId);\n tx.commit();\n if (originEntity != null) {\n log.warn(\"Retrieved supplier: \" + originEntity + \" with id of: \" + originEntity.getSupplierId());\n }\n } catch (HibernateException e) {\n\n if (tx!=null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return originEntity;\n\n }", "@Override\n\tpublic DataTablesResponseInfo getSupplier() {\n\t\tDataTablesResponseInfo info = new DataTablesResponseInfo();\n\t\tinfo.setData(purchaseDao.getSupplier());\n\t\treturn info;\n\t}", "Supplier findSupplierById(Integer id)throws SQLException;", "SupplierInfo selectByPrimaryKey(Long id);", "public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }", "public Map getEditSupplier(Long suppilerId) {\r\n\r\n\t\tSupplierDetailDao dao1 = new SupplierDetailDao();\r\n\t\tList catList = dao1.getEditSupplier1(suppilerId);\r\n\t\t\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < catList.size(); i++) {\r\n\t\t\tObject[] o = (Object[]) catList.get(i);\r\n\t\t\tSupplierEditBean bean = new SupplierEditBean();\r\n\t\t\tbean.setAddress((String) o[0]);\r\n\t\t\tbean.setCity((String) o[1]);\r\n\t\t\tbean.setContactPerson((String) o[2]);\r\n\t\t\tbean.setPin((Long) o[3]);\r\n\t\t\tbean.setEmail((String) o[4]);\r\n\t\t\tbean.setMobileno((Long) o[5]);\r\n\t\t\tbean.setPanNo((String) o[6]);\r\n\t\t\tbean.setSupplierName((String) o[7]);\r\n\t\t\tbean.setSuppCode((String) o[8]);\r\n\t\t\tbean.setTaxType((String) o[9]);\r\n\r\n\t\t\tmap.put(bean.getSupplierName(), bean);\r\n\t\t}\r\n\t\treturn map;\r\n\t}", "@Override\n public Interface_SupplierReadOnly getSupplier() {\n return supplier;\n }", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\n\t\t\t\"ID: %d. Name: %s. Supplier: [ \"+supplier+\" ]\", id, name\n\t\t);\n\t}", "public int getId() {\n\t\treturn definition.get().getId();\n\t}", "@Override\r\n public List querySupplierIdByAdcolumn(String str) throws SQLException {\n return sqlMapClient.queryForList(\"CMS_SUPPLIER_ADCOLUMN.abatorgenerated_querySupplierIdByAdcolumn\", str);\r\n }", "public String getSuppliersInforId() {\n return suppliersInforId;\n }", "public Supplier findSupplier(int suppliernum, boolean retrieveAssociation);", "public void setSupplierPartId(String supplierPartId) {\r\n this.supplierPartId = supplierPartId;\r\n }", "public void setSupplierId(Number value)\n {\n\n // BC4J validates that this can be updated only on a new line, and that this\n // mandatory attribute is not null. This code adds the additional check \n // of only allowing an update if the value is null to prevent changes while \n // the object is in memory.\n\n if (getSupplierId() != null)\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"SupplierId\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_ID_NO_UPDATE\"); // Message name\n\n }\n\n if (value != null)\n {\n // Supplier id must be unique. To verify this, you must check both the\n // entity cache and the database. In this case, it's appropriate\n // to use findByPrimaryKey( ) because you're unlikely to get a match, and\n // and are therefore unlikely to pull a bunch of large objects into memory.\n\n // Note that findByPrimaryKey() is guaranteed to check all suppliers. \n // First it checks the entity cache, then it checks the database.\n\n OADBTransaction transaction = getOADBTransaction();\n Object[] supplierKey = {value};\n EntityDefImpl supplierDefinition = SupplierEOImpl.getDefinitionObject();\n SupplierEOImpl supplier = \n (SupplierEOImpl)supplierDefinition.findByPrimaryKey(transaction, new Key(supplierKey));\n\n if (supplier != null)\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"SupplierId\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_ID_UNIQUE\"); // Message name \n }\n } \n \n setAttributeInternal(SUPPLIERID, value);\n \n }", "public Esysmeudef get(Long id);", "@Override\r\n\tpublic List<Address> getAddressBySupplierId(int supplierId, int companyId) {\n\t\treturn getAddressDAO().getAddressBySupplierId(supplierId,companyId);\r\n\t}", "public List getEpSupplier() {\n\t\treturn getHibernateTemplate().find(\" from JSupplierNh \");\n\t}", "public static synchronized EntityDefImpl getDefinitionObject()\n {\n if (mDefinitionObject == null)\n {\n mDefinitionObject = (EntityDefImpl)EntityDefImpl.findDefObject(\"es.sysmap.interflex.model.bdc.Sgaexpedbulto\");\n }\n return mDefinitionObject;\n }", "public String id() {\n return definition.getString(ID);\n }", "public HashMap<Integer, Float> getProductsForSupplier(int supplierId) {\n\t\tHashMap<Integer, Float> map = new HashMap<Integer, Float>();\n\t\tString sql = \"select product_id, offer_price from supplier_products where supplier_id = ? order by product_id asc\";\n\t\ttry (Connection connection = DriverManager.getConnection(URL, user, password);\n\t\t\t\tPreparedStatement statement = connection.prepareStatement(sql)) {\n\t\t\tstatement.setInt(1, supplierId);\n\t\t\tResultSet res = statement.executeQuery();\n\n\t\t\twhile (res.next()) {\n\t\t\t\tmap.put(res.getInt(1), res.getFloat(2));\n\t\t\t}\n\t\t\treturn map;\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Couldn't find a supplier with the id: \" + supplierId);\n\t\t}\n\t\treturn null;\n\t}", "public DeclaredType getClassFromAnnotationMethod(Supplier<Class<?>> supplier) {\n\t\ttry {\n\t\t\treturn (DeclaredType) of(supplier.get());\n\t\t} catch (MirroredTypeException e) {\n\t\t\t// types WILL be declared\n\t\t\treturn (DeclaredType) e.getTypeMirror();\n\t\t}\n\t}", "public static SupplierEntityExpert getSupplierEntityExpert(OADBTransaction txn)\n { \n return (SupplierEntityExpert)txn.getExpert(SupplierEOImpl.getDefinitionObject()); \n \n }", "public ShortlistedSuppliersTable getShortlistedSupplierData(JSONObject shortlistedSupplier, String shortlistedSupplierId) {\n try {\r\n if ( shortlistedSupplier != null) {\r\n\r\n String proposalId = shortlistedSupplier.getString(\"proposal_id\");\r\n String supplierId = shortlistedSupplier.getString(\"supplier_id\");\r\n String supplierContentTypeId = shortlistedSupplier.getString(\"content_type_id\");\r\n //String phase = shortlistedSupplier.getString(\"phase\");\r\n String phase = \"1\"; // TODO: 23/2/17 hardcoded. remove it\r\n String lastModified = getCurrentDate();\r\n return new ShortlistedSuppliersTable(shortlistedSupplierId, proposalId, supplierId, supplierContentTypeId, phase, lastModified);\r\n }\r\n }\r\n catch (Exception e){\r\n Log.d(\"getShortlistSuppData\", e.getMessage());\r\n }\r\n return null;\r\n }", "@Override\n\tpublic SupplierView getSupplierBySupplierIdAndProductId(long supplierId, long productId) {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type,s.image,s.permanent_address, s.temporary_address,h.quantity,h.cost,i.product_id, i.product_name FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id INNER JOIN product i on h.product_product_id=i.product_id WHERE supplier_id=? and product_id=?\";\n\t\tRowMapper<SupplierView> rowmapper=new BeanPropertyRowMapper<SupplierView> (SupplierView.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId, productId);\n\t}", "public Supplier() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public RowIterator getSupplierSiteEO()\n {\n return (RowIterator)getAttributeInternal(SUPPLIERSITEEO);\n }", "public void getSupplier(Supplier supplier) {\n\t\r\n}", "ProductPurchaseItem getSupplierProductPurchaseItemPerCatalogNo(long suppId, String catalogNo);", "long getDeskId();", "long getDeskId();", "public void setSuppliersId(Short suppliersId) {\n this.suppliersId = suppliersId;\n }", "public java.lang.Integer getPkg_def_id() {\n return pkg_def_id;\n }", "AttributeDefinition getDefinition();", "public void setSupplier(Supplier supplier) {\n this.supplier = supplier;\n }", "@Override\r\n\tpublic int hashCode() {\r\n\t\tfinal int prime = 31;\r\n\t\tint result = 1;\r\n\t\tresult = prime * result + ((supplierID == null) ? 0 : supplierID.hashCode());\r\n\t\treturn result;\r\n\t}", "@ApiModelProperty(value = \"Identifier for the product that is related to the referenced one\")\n public String getId() {\n return id;\n }", "public Map getAllBillBySuppliers1(String supplierId) {\n\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\tList list = dao.getAllBillBySuppliers1(supplierId);\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tObject[] o = (Object[]) list.get(i);\r\n\t\t\tcom.smt.bean.GetSupplierDetails bean = new com.smt.bean.GetSupplierDetails();\r\n\t\t\tSystem.out.println(Arrays.toString(o));\r\n\t\t\tbean.setBillNo(o[0].toString());\r\n\r\n\t\t\t// bean.setTotalAmount((Double)o[1]);\r\n\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\tmap.put(bean.getBillNo(), bean);\r\n\r\n\t\t}\r\n\t\treturn map;\r\n\t}", "String getDistributionID();", "static Defaulable create(Supplier<Defaulable> supplier) {\n return supplier.get();\n }", "@Override\n public String provideDemandTypeId( )\n {\n return _strDemandeTypeId;\n }", "static ElementalDefinition forId(int id) {\r\n for (ElementalDefinition def : ElementalDefinition.values()) {\r\n if (def != null) {\r\n if (def.getId() == id) {\r\n return def;\r\n }\r\n }\r\n }\r\n return null;\r\n }", "public int getHC_EmployeeGrade2_ID();", "ArrayList<Relation> attributeCountLT4ForPropertiesbySupplierId(String supplierId);", "public void updateSupplierDetail(Supplier obj) {\n\t\t\r\n\t}", "public String getDefinition(){\n\t\treturn definition;\n\t}", "String getDefinition();", "public long getDemandId() {\n return demandId;\n }", "public String getReferenceId();", "public boolean makeSupplier(int id) {\n\t\t\t/*String query=\"select Role from registration_customer_data where id=?\";\n\t\t\tString role = (String) template.queryForObject(\n\t\t\t\t\tquery, new Object[] { id }, String.class);\n System.out.println(\"name==\"+role);\n \n*/ String role=\"Supplier\";\n\t\t\ttemplate.update(\n \"update registration_customer_data set Role = ? where id = ?\", \n role, id);\n boolean flag=true;\n return flag;\n\t\t}", "public static Key createPrimaryKey(Number supplierId) {\n return new Key(new Object[]{supplierId});\n }", "public Number getDetailId() {\n return (Number)getAttributeInternal(DETAILID);\n }", "Optional<SuppliesDTO> findOne(Long id);", "public Catalogue()\n {\n SupplierId = 0;\n }", "public void setSupplier (jkt.hms.masters.business.MasStoreSupplier supplier) {\n\t\tthis.supplier = supplier;\n\t}", "@Override\n\tpublic List<Supplier> gets(int id) {\n\t\treturn null;\n\t}", "public interface IdFactory extends Supplier<String>\n{\n\n // Twitter has encountered a similar need for generating coherent IDs and has developed Snowflake:\n // https://blog.twitter.com/2010/announcing-snowflake\n\n /**\n * @return A new unique identifier for the encapsulated context.\n */\n @Override\n String get();\n}", "void declare(String name, Supplier<T> propertySupplier);", "List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);", "public org.apache.xmlbeans.XmlIDREF xgetGPSAntennaDetailsID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlIDREF target = null;\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().find_attribute_user(GPSANTENNADETAILSID$14);\r\n return target;\r\n }\r\n }", "public GameObjectDefinition getDefinition() {\n\t\tif (definition == null)\n\t\t\tdefinition = GameObjectDefinition.forId(id);\n\t\treturn definition;\n\t}", "public Map getAllBillBySuppliers(String supplierId) {\n\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\tList list = dao.getAllBillBySuppliers(supplierId);\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < list.size(); i++)\r\n\t\t{\r\n\t\t\tObject[] o = (Object[]) list.get(i);\r\n\t\t\tcom.smt.bean.GetSupplierDetails bean = new com.smt.bean.GetSupplierDetails();\r\n\t\t\tSystem.out.println(Arrays.toString(o));\r\n\r\n\t\t\tString pendingBal = o[2].toString();\r\n\t\t\tif (pendingBal.equals(\"0\")) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tbean.setBillNo(o[0].toString());\r\n\t\t\t\t//bean.setItemName(o[0].toString());\r\n\t\t\t\tbean.setSize(o[1].toString());\r\n\t\t\t\tbean.setBarcode(o[2].toString());\t\t\t\r\n\t\t\t}\r\n\t\t\t// bean.setTotalAmount((Double)o[1]);\r\n\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\tmap.put(bean.getBillNo(), bean);\r\n\r\n\t\t}\r\n\t\treturn map;\r\n\t}", "public Opportunities[] findWhereSupplierIdEquals(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ? ORDER BY supplier_id\", new Object[] { new Integer(supplierId) } );\r\n\t}", "public String getPreferredDefinition() {\n return (String) getAttributeInternal(PREFERREDDEFINITION);\n }", "public static PropertyMaker getPropertyMakerFor(int propId) {\n return propertyListTable[propId];\n }", "public org.apache.xmlbeans.XmlIDREF xgetGPSReceiverDetailsID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlIDREF target = null;\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().find_attribute_user(GPSRECEIVERDETAILSID$16);\r\n return target;\r\n }\r\n }", "public long getDeskId() {\n return deskId_;\n }", "public long getDeskId() {\n return deskId_;\n }", "@Override\n public List<KitchenSupplier> getKitchenSupplier(String supplierName) {\n Query query = em.createQuery(\"SELECT k FROM KitchenSupplier k WHERE k.ksupplierName = :inSupplierName\");\n query.setParameter(\"inSupplierName\", supplierName);\n List<KitchenSupplier> s = null;\n try {\n s = query.getResultList();\n } catch (NoResultException ex) {\n System.out.println(\"caught no result exception\");\n }\n return s;\n }", "public String getSupplierCommodity() {\n return supplierCommodity;\n }", "com.google.privacy.dlp.v2.FieldId getFieldId();", "public void getName(Supplier supplier) {\n\t\r\n}", "@Override\n public V get(final K name, final Supplier<V> supplier)\n {\n V value = get(name);\n\n if (value == null)\n {\n value = supplier.get();\n put(name, value);\n }\n\n return value;\n }", "public void addSupplier(ModelElement supplier1)\n // -end- 335C0D7A02E4 add_head327A646F00E6 \"Dependency::addSupplier\"\n ;", "public IExpObject getProperty(Integer id) throws ExpException {\n return null;\n }", "public void setSupplier(String supplier) {\n this.supplier = supplier == null ? null : supplier.trim();\n }", "Optional<CPAllocationGeneralExpenseDetails> findOne(UUID id);", "Short getId();", "public Short getBrandId() {\n return brandId;\n }", "public BigDecimal getId() {\n return (BigDecimal) getAttributeInternal(ID);\n }", "public Short getAddressId() {\r\n return addressId;\r\n }" ]
[ "0.6757869", "0.67285585", "0.6691004", "0.657069", "0.6374942", "0.61545944", "0.60744816", "0.5986076", "0.59244275", "0.586483", "0.58360934", "0.5814617", "0.57872313", "0.57766676", "0.57540274", "0.57355124", "0.56515473", "0.5613589", "0.55825824", "0.5540656", "0.55218804", "0.55211943", "0.55091727", "0.54834473", "0.5465633", "0.5279786", "0.5271228", "0.52219635", "0.51731867", "0.51610017", "0.5111368", "0.5060151", "0.50505733", "0.50475764", "0.5030019", "0.5028983", "0.5014898", "0.50129217", "0.50115967", "0.49929482", "0.494953", "0.4927464", "0.4908087", "0.48771855", "0.48714823", "0.4852791", "0.4804795", "0.48011655", "0.4794007", "0.4794007", "0.4757286", "0.47230175", "0.47067478", "0.4700649", "0.46696228", "0.46661064", "0.46490106", "0.46480712", "0.46414658", "0.46023545", "0.45816088", "0.45725426", "0.45448533", "0.45339328", "0.453368", "0.45116618", "0.45070747", "0.4506168", "0.45012346", "0.4479415", "0.4478796", "0.44755313", "0.44589308", "0.44518864", "0.44415444", "0.44384134", "0.4437235", "0.4427228", "0.44166178", "0.441512", "0.4414358", "0.4411913", "0.43995625", "0.43928623", "0.43928248", "0.43911505", "0.43911505", "0.43890455", "0.43857628", "0.43833438", "0.43818516", "0.4377741", "0.43760857", "0.43621498", "0.43610406", "0.43552658", "0.43542922", "0.43455225", "0.4343979", "0.43430886" ]
0.6126304
6
/ Gets the attribute value for Name, using the alias name Name
public String getName() { return (String)getAttributeInternal(NAME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object get(String aName) { return _attrMap.get(aName); }", "public String getAttribute(String name);", "public Object getAttribute(String name);", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "java.lang.String getAttribute();", "public String getAttribute(String name)\n\tthrows SdpParseException {\n\tif (name != null) {\n\t for (int i = 0; i < this.attributeFields.size(); i++) {\n\t\tAttributeField af = (AttributeField)\n\t\t this.attributeFields.elementAt(i);\n\t\tif (name.equals(af.getAttribute().getName())) \n\t\t return (String) af.getAttribute().getValue();\n\t }\n\t return null; \n\t} else throw new NullPointerException(\"null arg!\");\n }", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "public String getAttributeValue(final String name) {\n return getAttributeValue(name, \"\");\n }", "public HbAttributeInternal getAttribute(String name);", "public AXValue getName() {\n return name;\n }", "final private com.org.multigear.mginterface.engine.Configuration.Attr getAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Name getAlias() {\n\t\treturn getSingleName();\n\t}", "private String getAttribute(Node nNode,String name) {\n \tNamedNodeMap attributes = nNode.getAttributes();\n \t\n \t// get the number of nodes in this map\n \tint numAttrs = attributes.getLength();\n \t\n \tfor (int i = 0; i < numAttrs; i++) {\n \t\t\n \t\tAttr attr = (Attr) attributes.item(i);\n \t\tString attrName = attr.getNodeName();\n \t\tString attrValue = attr.getNodeValue();\n \n \t\tif(attrName == name) {\n \t\t\treturn attrValue;\n \t\t}\n \t}\n \t\n \treturn null;\n }", "String getAttribute();", "@Override\n\tpublic String getName() {\n\t\treturn (String) attributes.get(\"name\");\n\t}", "public String getName() { return (String)get(\"Name\"); }", "public Object getProperty(String attName);", "public Attribute getAttributeByName(String name){\n for (Attribute a : attributeList){\n if (a.getAttributeName().equals(name))\n return a;\n }\n return null;\n }", "public String getAliasName() {\n return name;\n }", "public String getAliasName() {\n return name;\n }", "public String getAliasName() {\n return name;\n }", "public String getAliasName() {\n return name;\n }", "public String getLocalAttribute(String name) {\n\t\treturn localAttributes.get(name);\n\t}", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public String getAttribute(String name) {\n if (_lastTag == null)\n return null;\n return _lastTag.getAttribute(name);\n }", "Attribute getAttribute();", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public Attribute getAttribute(String sName)\n {\n ensureLoaded();\n return (Attribute) m_tblAttribute.get(sName);\n }", "public Attribute getAttribute(String name) {\n return getAttribute(name, \"\");\n }", "String getAttributeName(Object attr);", "protected ProbeValue getAttribute(String name) {\n if (values != null) {\n return values.get(name);\n } else {\n return null;\n }\n }", "public String getName() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tString name = nameValue.getName();\n\t\t\tif (name == null)\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t\treturn name;\n\t\t}\n\t}", "public native final String attr(final String name)\n\t/*-{\n\t\treturn this.attr(name);\n\t}-*/;", "String attributeToGetter(String name);", "public String getPropertyNameMapped(String aName) { return aName; }", "public static String getAttributeValue(ClassAdStructAttr[] classAd,String AttrName) {\n int len = classAd.length;\n for(int i=0;i<len;i++) {\n if(AttrName.compareToIgnoreCase(classAd[i].getName()) == 0)\n return classAd[i].getValue();\n }\n return null;\n }", "public String name() {\n return aliases.get(0);\n }", "private String readAttributeValue(XmlPullParser xpp, String name, String def)\n {\n int count = xpp.getAttributeCount();\n for (int n = 0; n < count; n++)\n {\n String attrName = xpp.getAttributeName(n);\n if (attrName != null && attrName.equalsIgnoreCase(name))\n return xpp.getAttributeValue(n);\n }\n return def;\n }", "public static Object getAttribute(String name) {\n\t\treturn GPortalExecutionContext.getRequest().getSessionContext().getAttribute(name);\n\t}", "@Override\n\tpublic String getValue() {\n\t\treturn name;\n\t}", "String getValueName();", "@SuppressWarnings(\"unchecked\")\n\tprivate static<T, K> T getValue(Entry<K> entry, String name){\n\t\tObject var = entry.getEntryContainer().resolveAttribute(name, entry);\n\t\treturn (T) var;\n\t\t\n\t}", "public String getAttribute(int nameCode) {\r\n return bufferedAttributes.getValueByFingerprint(nameCode & 0xfffff);\r\n }", "public String getAslName() {\n return (String) getAttributeInternal(ASLNAME);\n }", "public final String getNameAttribute() {\n return getAttributeValue(\"name\");\n }", "public String getAliasname() {\n return aliasname;\n }", "private String getXmlAttribute(XmlResourceParser xml, String name) {\n\t\tint resId = xml.getAttributeResourceValue(null, name, 0);\n\t\tif (resId == 0) {\n\t\t\treturn xml.getAttributeValue(null, name);\n\t\t} else {\n\t\t\treturn getString(resId);\n\t\t}\n\t}", "String getMetadataValue( String name )\n throws MetadataNameNotFoundException;", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public String getAttributeName() {\n/* 85 */ return this.attributeName;\n/* */ }", "public String getAttributeValue(Node node, String attributeName) throws Exception;", "String getControllingAttributeName();", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public AttributeList getAttributeByValue(String name) {\n for (AttributeList a = atts ; a != null ; a = a.next) {\n if ((a.values != null) && a.values.contains(name)) {\n return a;\n }\n }\n return null;\n }", "public DictionarySimpleAttribute lookupAttribute(String xmlName) {\n\t\tDictionarySimpleAttribute rv = this.attributes.get(xmlName);\n\n\t\tif(log.isTraceEnabled()) {\n\t\t\tlog.trace(\"Attribute forward lookup performed:\");\n\t\t\tlog.trace(\"[S] XML name: \" + xmlName);\n\t\t\tlog.trace(\"[R] Dictionary entry: \" + rv);\n\t\t}\n\n\t\treturn rv;\n\t}", "public static String getAttribute( HttpServletRequest request, String attribName ) {\n return getAttribute( request, attribName, false );\n }", "public static String getAttribute( HttpServletRequest request, String attribName ) {\n return getAttribute( request, attribName, false );\n }", "public tudresden.ocl20.core.jmi.ocl.commonmodel.Attribute lookupAttribute(java.lang.String attName) {\n Iterator featuresIt = getFeature().iterator();\n while(featuresIt.hasNext()){\n Feature feature = (Feature) featuresIt.next();\n if(feature instanceof Attribute && feature.getNameA().equals(attName)){\n return (Attribute) feature;\n }\n }\n Iterator parentsIt = this.getParents().iterator();//getGeneralization().iterator();\n while(parentsIt.hasNext()){\n Classifier parent = (Classifier) parentsIt.next();//((GeneralizationImpl) parentsIt.next()).getParent();\n Attribute a = (Attribute) parent.lookupAttribute(attName);\n if(a != null){\n return a;\n }\n }\n \n return null;\n }", "Object getAttribute(int attribute);", "public TLAttribute getAttribute(String attributeName);", "@Override\n\t\tpublic Object getAttribute(String name) {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tpublic Object getAttribute(String name) {\n\t\t\treturn null;\n\t\t}", "public AttributeList getAttribute(String name) {\n for (AttributeList a = atts ; a != null ; a = a.next) {\n if (a.name.equals(name)) {\n return a;\n }\n }\n return null;\n }", "public String getName() {\n return (String) getValue(NAME);\n }", "public Attribute fetchAttribute(String key, String value);", "public String getValue() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tObject value = nameValue.getValue();\n\t\t\tif (value == null)\n\t\t\t\treturn null;\n\t\t\telse if (value instanceof String)\n\t\t\t\treturn (String) value;\n\t\t\telse\n\t\t\t\treturn value.toString();\n\t\t}\n\t}", "public String getAttributeName() {\n return this.attributeName;\n }", "public String getName(){\n\n //returns the value of the name field\n return this.name;\n }", "public java.lang.String getName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$26);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public java.lang.String getName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$2);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "protected String getAnnotationAttributeValue(\r\n\t\t\tIClassElementCodeGenConfig argCodeGenConfig,\r\n\t\t\tString argAnnotationName, String argAttributeName) {\r\n\t\tString result = EMPTY;\r\n\t\tif (!argCodeGenConfig.getAnnotations().isEmpty()) {\r\n\t\t\tfor (AnnotationConfig annotation : argCodeGenConfig\r\n\t\t\t\t\t.getAnnotations()) {\r\n\t\t\t\tif (argAnnotationName.equals(annotation.getName())) {\r\n\t\t\t\t\tresult = annotation.getAttribute(argAttributeName);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public String getAlias();", "public String getAlias();", "public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}", "public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}", "public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}", "Object getAttribute(String key);", "Object getAttribute(String key);", "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}", "abstract Object getXMLProperty(XMLName name);", "private String loadAttributeName() {\n return parseMapField().getKey();\n }", "public YangString getNameValue() throws JNCException {\n return (YangString)getValue(\"name\");\n }", "public YangString getNameValue() throws JNCException {\n return (YangString)getValue(\"name\");\n }", "public java.lang.String getName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$4);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$8);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public java.lang.String getName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$6);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public Object getattr(String name) {\n return getattr(name, null);\n }", "@Basic @Raw\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}", "public String getValue(String xmlName)\n {\n int index = getIndex(xmlName);\n \n if (index < 0)\n {\n return null;\n }\n return getValue(index);\n }", "public String getName() {\n return aao.getName();\n }" ]
[ "0.749128", "0.746751", "0.72956204", "0.7293102", "0.7269352", "0.71463567", "0.7125915", "0.70566094", "0.7043623", "0.7043623", "0.7043623", "0.67931265", "0.6753232", "0.6739746", "0.67216134", "0.66648436", "0.66607225", "0.66297", "0.6626158", "0.6618405", "0.65874666", "0.6571714", "0.656572", "0.65415466", "0.65398854", "0.65340936", "0.65241694", "0.65241694", "0.65241694", "0.65241694", "0.64987636", "0.64839077", "0.64818645", "0.64756984", "0.6441592", "0.64227396", "0.64205825", "0.636658", "0.63558006", "0.63454205", "0.6306303", "0.6297076", "0.62961096", "0.625451", "0.6205401", "0.62036914", "0.6199689", "0.6197891", "0.61829233", "0.61331606", "0.61147565", "0.6111711", "0.6105786", "0.6100795", "0.6088269", "0.60819346", "0.6081415", "0.60812354", "0.6065549", "0.6061474", "0.60305315", "0.60203725", "0.60199344", "0.6010894", "0.6010894", "0.6009006", "0.5991897", "0.597652", "0.596143", "0.596143", "0.5960686", "0.59521586", "0.5949355", "0.5946457", "0.59393686", "0.5939162", "0.59370905", "0.5934915", "0.59248465", "0.5917491", "0.5917491", "0.590233", "0.590233", "0.590233", "0.58927715", "0.58927715", "0.58902293", "0.58902293", "0.58902293", "0.5873664", "0.5867136", "0.584871", "0.584871", "0.58368355", "0.58307856", "0.5830562", "0.582701", "0.58228606", "0.5808095", "0.5802224" ]
0.6447021
34
/ Gets the attribute value for OnHoldFlag, using the alias name OnHoldFlag
public String getOnHoldFlag() { return (String)getAttributeInternal(ONHOLDFLAG); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOnHoldFlag(String value)\n {\n // Valid values are null, Y and N\n\n if ((value != null) && (!(\"\".equals(value.trim()))))\n { \n if (!((\"Y\".equals(value)) || (\"N\".equals(value))))\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"OnHoldFlag\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_ONHOLD_INVALID\"); // Message name\n\n }\n }\n\n setAttributeInternal(ONHOLDFLAG, value);\n \n }", "public String getActiveFlag() {\n return (String) getAttributeInternal(ACTIVEFLAG);\n }", "public LocalHolding\t\tgetHolding();", "public String getActiveflag() {\n return (String)getAttributeInternal(ACTIVEFLAG);\n }", "public String getAvailableForRentFlag() {\n return (String) getAttributeInternal(AVAILABLEFORRENTFLAG);\n }", "public String getIvaFlag() {\n return (String) getAttributeInternal(IVAFLAG);\n }", "public org.apache.xmlbeans.XmlBoolean xgetUseTimings()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(USETIMINGS$22);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(USETIMINGS$22);\n }\n return target;\n }\n }", "public String getOutBoundFlag(String appKey) throws DataServiceException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t\tString outBoundFlag = \"\";\r\n\t\ttry{\r\n\t\t\toutBoundFlag = (String) queryForObject(\"getAppFlagValue.query\",appKey);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tLOGGER.error(\"Exception in getting outboundFlag value \" + e.getMessage(), e);\r\n\t\t\r\n\t\t}\r\n\t\treturn outBoundFlag;\r\n\t\r\n\t}", "int getFlag();", "public Byte getAuditFlag() {\n return auditFlag;\n }", "String getSpareFlag();", "public String getQualFlag() {\r\n return (String) getAttributeInternal(QUALFLAG);\r\n }", "public String getStolenFlag()\n\t{\n\t\treturn stolenFlag;\n\t}", "public String getUseFlag() {\n return useFlag;\n }", "public String getIvaMFlag() {\n return (String) getAttributeInternal(IVAMFLAG);\n }", "public boolean isHolding();", "public RecordFlagEnum getFlag();", "public String getLocalFlag() {\n return (String)getAttributeInternal(LOCALFLAG);\n }", "public String getReadWriteAttribute();", "public String getShowFlag() {\r\n return (String) getAttributeInternal(SHOWFLAG);\r\n }", "public java.lang.String getHoldCode() {\n return holdCode;\n }", "public String getLocalFlag() {\n return (String) getAttributeInternal(LOCALFLAG);\n }", "public double getHoldTime();", "public T getHold();", "public String getChangedflag() {\n return (String) getAttributeInternal(CHANGEDFLAG);\n }", "public String getAtmState();", "public Integer getFLAG() {\n return FLAG;\n }", "public int getFlag()\n {\n return flag;\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "protected byte[] getOnTimerSetting() {return null;}", "public AttrCheck getAttrchk()\n {\n return this.attrchk;\n }", "public String getSettleFlag() {\n return settleFlag;\n }", "public Boolean getActiveflag() {\n return activeflag;\n }", "@Override\n\tpublic int getFlags() {\n\t\treturn heldObj.getFlags();\n\t}", "public String getRetentionFlag() {\n return (String) getAttributeInternal(RETENTIONFLAG);\n }", "public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}", "public av m18471e() {\n return this.status;\n }", "public Integer getdocverificationflag() {\n return (Integer) getAttributeInternal(DOCVERIFICATIONFLAG);\n }", "public LocalHolding getHoldingForUpdate();", "long getFlags();", "public HbAttributeInternal getAttribute(String name);", "public Boolean isHeld() { return held; }", "public long getFlags() {\n }", "public String getApprovedFlag() {\r\n return (String) getAttributeInternal(APPROVEDFLAG);\r\n }", "RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);", "public Boolean getFlag() {\n return flag;\n }", "public String getPayInterestFlag() {\n return payInterestFlag;\n }", "public boolean getUseTimings()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(USETIMINGS$22);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(USETIMINGS$22);\n }\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }", "java.lang.String getAttribute();", "int getTapToFocusHoldTimeMillis();", "boolean getArmedMark();", "private String readAttributeValue(XmlPullParser xpp, String name, String def)\n {\n int count = xpp.getAttributeCount();\n for (int n = 0; n < count; n++)\n {\n String attrName = xpp.getAttributeName(n);\n if (attrName != null && attrName.equalsIgnoreCase(name))\n return xpp.getAttributeValue(n);\n }\n return def;\n }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public boolean isOn() {\n return onFlag;\n }", "@Override\n public int getFlag() {\n return flag_;\n }", "public boolean getAtmStatus();", "public Integer getLockFlag() {\n return lockFlag;\n }", "public Integer getLockFlag() {\n return lockFlag;\n }", "public Integer getLockFlag() {\n return lockFlag;\n }", "public String getCheckFlag() {\r\n return checkFlag;\r\n }", "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 String getAttribute7()\n {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public Short getShortAttribute();", "String getFlag() {\n return String.format(\"-T%d\", this.value);\n }", "protected byte[] getOffTimerReservationSetting() {return null;}", "public String getAttr7() {\n return attr7;\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "BooleanProperty getOn();", "public int getOn() {\r\n\t\treturn onkey;\r\n\t}", "public String getCheckFlag() {\n return checkFlag;\n }", "public String getRetentionMFlag() {\n return (String) getAttributeInternal(RETENTIONMFLAG);\n }", "public org.apache.xmlbeans.XmlBoolean xgetEffdatedOnly()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlBoolean target = null;\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(EFFDATEDONLY$20);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(EFFDATEDONLY$20);\r\n }\r\n return target;\r\n }\r\n }", "protected abstract T getNormalFlagValue();", "public Boolean getActiveFlag() {\n\t\treturn activeFlag;\n\t}", "public java.lang.Short getForwardCallIndIsupPref() {\r\n return forwardCallIndIsupPref;\r\n }", "public String getPartProbationFlag() {\n return (String)getAttributeInternal(PARTPROBATIONFLAG);\n }", "@Override\n public int getFlag() {\n return flag_;\n }", "public Boolean getBooleanAttribute();", "public int getHoldability() throws SQLException {\n\n try {\n debugCodeCall(\"getHoldability\");\n checkClosed();\n return conn.getHoldability();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public int getAtt(){ \r\n return att;\r\n }", "boolean isSetPaymentDelay();", "public final String getOnBlurAttribute() {\n return getAttributeValue(\"onblur\");\n }", "@Generated\n @Selector(\"attenuationValue\")\n public native byte attenuationValue();", "public Byte getDisableFlag() {\n return disableFlag;\n }", "public String getFlaginfo() {\n return flaginfo;\n }", "public void setOnHold(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.2.setOnHold(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.setOnHold(java.lang.String):void\");\n }", "public Number getIdexped()\n {\n return (Number)getAttributeInternal(IDEXPED);\n }", "int getMqttEnabledStateValue();", "String getAttribute();", "public boolean hasAktif() {\n return fieldSetFlags()[6];\n }", "private byte attributes() {\n return (byte) buffer.getShort(ATTRIBUTES_OFFSET);\n }", "public String getRelativeflag() {\n return (String)getAttributeInternal(RELATIVEFLAG);\n }", "Attribute getAttribute();", "OnosYangOpType yangStatePacOpType();", "OnosYangOpType yangStatePacOpType();", "public final String getOnFocusAttribute() {\n return getAttributeValue(\"onfocus\");\n }", "public String getLBR_ICMS_OwnTaxStatus();", "public String getAttribute(int nameCode) {\r\n return bufferedAttributes.getValueByFingerprint(nameCode & 0xfffff);\r\n }", "public Getter reqGetOffTimerReservationSetting() {\n\t\t\treqGetProperty(EPC_OFF_TIMER_RESERVATION_SETTING);\n\t\t\treturn this;\n\t\t}", "@Override\r\n\t\tpublic int getHoldability() throws SQLException {\n\t\t\treturn 0;\r\n\t\t}" ]
[ "0.63746196", "0.58059114", "0.57848626", "0.5775244", "0.558688", "0.55662084", "0.552595", "0.5461532", "0.5454901", "0.5427994", "0.54222834", "0.5345639", "0.5338978", "0.53027415", "0.5263488", "0.5243726", "0.5237875", "0.5225947", "0.52107704", "0.52080005", "0.52003145", "0.5195996", "0.51830274", "0.51601243", "0.5127537", "0.5093561", "0.50430286", "0.5042168", "0.5028115", "0.501516", "0.50050926", "0.5001795", "0.4983289", "0.4981969", "0.49810916", "0.496685", "0.49665767", "0.49657643", "0.49402905", "0.49342403", "0.49309573", "0.49070394", "0.48982874", "0.4890259", "0.4881631", "0.48539978", "0.48488662", "0.48412892", "0.4827901", "0.48229083", "0.48223227", "0.4821627", "0.4820216", "0.48167711", "0.48072374", "0.48025826", "0.48013556", "0.48013556", "0.48013556", "0.47964507", "0.47874707", "0.4784132", "0.4782312", "0.47796142", "0.47636107", "0.476136", "0.47612086", "0.4760511", "0.47588563", "0.47585365", "0.47540423", "0.47398138", "0.47370172", "0.4736949", "0.47369373", "0.47360122", "0.47332537", "0.472676", "0.47247505", "0.47218168", "0.47193992", "0.4717623", "0.471639", "0.47085828", "0.4708541", "0.47037378", "0.4697604", "0.46972522", "0.46958005", "0.46881887", "0.4685925", "0.46854424", "0.4683404", "0.4682068", "0.4682068", "0.46819118", "0.4679529", "0.46762204", "0.46732435", "0.46649694" ]
0.79968697
0
/ Gets the attribute value for StartDate, using the alias name StartDate
public Date getStartDate() { return (Date)getAttributeInternal(STARTDATE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getStartDate();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getStartDate();", "String getStartDate();", "public String getStartDate(){\n\t\treturn this.startDate;\n\t}", "public String getStartDate();", "public String getStartDate() {\n\t\treturn startDate.getText();\n\t}", "public String getDate(){ return this.start_date;}", "public String getStartDate() {\n return startDate;\n }", "@ApiModelProperty(value = \"Start of the range\")\n public String getDateStart() {\n return dateStart;\n }", "public final DtStart getStartDate() {\n return getProperty(Property.DTSTART);\n }", "public Date getStartDate();", "public Date getStartDate();", "public String getStartDate() {\n return startDate;\n }", "Date getStartDate();", "Date getStartDate();", "Date getStartDate();", "protected AbsoluteDate getStartDate() {\n return startDate;\n }", "public Date getStartDate()\r\n {\r\n return this.startDate;\r\n }", "public Date getStartDate() {\n\t\treturn this.startDate;\n\t}", "public Date getServiceStartDate() {\n return (Date) getAttributeInternal(SERVICESTARTDATE);\n }", "java.lang.String getStartDateYYYYMMDD();", "@Override\n\tpublic Date getStartDate() {\n\t\treturn model.getStartDate();\n\t}", "public Date getDeliveryStartDate() {\n return (Date)getAttributeInternal(DELIVERYSTARTDATE);\n }", "public Timestamp getDateStart() {\n\t\treturn (Timestamp) get_Value(\"DateStart\");\n\t}", "public Date getStartDate() {\r\n return startDate;\r\n }", "public Date getStartDate() {\r\n return startDate;\r\n }", "long getStartDate();", "public String getStartDateString() {\n SimpleDateFormat format = new SimpleDateFormat(DpdInputForm.DATA_FORMAT, Locale.ENGLISH);\n return format.format(new Date(this.startDate));\n }", "public Date getStartDate() {\n\t\treturn startDate;\n\t}", "public Date getStartDate() {\n\t\treturn startDate;\n\t}", "public long getStartDate() {\n return startDate_;\n }", "@NotNull\r\n public DateWithOffset getStartDate() {\r\n checkStartDate();\r\n return startDate;\r\n }", "public Date getStartDate() {\n return startDate;\n }", "public Date getStartDate() {\n return startDate;\n }", "public Date getStartDate() {\n return startDate;\n }", "public long getStartDate() {\n return startDate_;\n }", "public Date getDtStart() {\r\n return dtStart;\r\n }", "public Date getStartDate() {\r\n\t\treturn new Date(startDateText.getDay(), startDateText.getMonth()+1, startDateText.getYear());\r\n\t}", "public java.sql.Date getStartDate() {\n\treturn startDate;\n}", "public LocalDate getStartDate() { return this.startDate; }", "public Date getStartServiceDate() {\n return (Date) getAttributeInternal(STARTSERVICEDATE);\n }", "@ApiModelProperty(value = \"The date from which the product starts\")\n @JsonProperty(\"startDate\")\n public Date getStartDate() {\n return startDate;\n }", "public java.util.Calendar getStartDate() {\n return startDate;\n }", "public TimeDateComponents getEventStartDate() {\n return getEventDates().getStartDate();\n }", "public Date getStartDate()\r\n {\r\n Date result = m_startDate;\r\n if (result == null)\r\n {\r\n result = getParentFile().getStartDate();\r\n }\r\n return (result);\r\n }", "public LocalDate getStart_date(){\n return this.start_date;\n }", "@ApiModelProperty(value = \"The event start date in the event or site timezone\")\n public String getStartDate() {\n return startDate;\n }", "public Date getStart() {\n return start;\n }", "public java.lang.String getStartDateYYYYMMDD() {\n java.lang.Object ref = startDateYYYYMMDD_;\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 startDateYYYYMMDD_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getStartDateYYYYMMDD() {\n java.lang.Object ref = startDateYYYYMMDD_;\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 startDateYYYYMMDD_ = s;\n return s;\n }\n }", "public Date getStart() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.Start);\n\t}", "public Date getStart() {\n return (Date) _start.clone();\n }", "public java.util.Date getDate(String attr) {\n return (java.util.Date) super.get(attr);\n }", "public final String getStartdate() {\n\t\treturn startdate;\n\t}", "public LocalDate getDate () {\n\t\treturn DateUtils.toLocalDate(this.start);\n\t}", "public Optional<Date> getStartDate() {\n return Optional.ofNullable(createdDate);\n }", "java.lang.String getStartDateYYYY();", "public Date getEnterDate() {\r\n return (Date) getAttributeInternal(ENTERDATE);\r\n }", "public Date getStartdate() {\r\n return startdate;\r\n }", "public Date getStartdate() {\n return startdate;\n }", "public Date getActualStart()\r\n {\r\n return (m_actualStart);\r\n }", "public String getStartDate() {\n SimpleDateFormat formatDate = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatDate.format(fecha);\n }", "@ApiModelProperty(value = \"An array of each component of the event start date\")\n public DateDetails getStartDateDetails() {\n return startDateDetails;\n }", "String getStartDateParam(String dateString);", "public java.util.Date getStartDateTime() {\n return this.startDateTime;\n }", "public String getReturnDate() {\n\t\treturn returnDateElement.getAttribute(\"value\");\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getStartTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(STARTTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getStartTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(STARTTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getStartTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(STARTTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getStartTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(STARTTIME_PROP.get());\n }", "public LocalDateTime getStartDate() {\n return startDate;\n }", "public DTM getDateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }", "@Override\n\tpublic java.util.Date getStartDate() {\n\t\treturn _esfTournament.getStartDate();\n\t}", "public Date getEarliestStartDate();", "@Nullable\n @Generated\n @Selector(\"fetchStartDate\")\n public native NSDate fetchStartDate();", "public java.lang.String getStartDay() {\r\n return localStartDay;\r\n }", "public Date getBeginnDate() {\n\t\treturn beginnDate;\n\t}", "@Override\r\n\tpublic Date getAttr_reg_dt() {\n\t\treturn super.getAttr_reg_dt();\r\n\t}", "Date getStartDay();", "public Date getEffectivedateFrom() {\n return (Date) getAttributeInternal(EFFECTIVEDATEFROM);\n }", "public Date getStartedDate() {\n return this.startedDate;\n }", "public java.sql.Date getREQ_START_DATE()\n {\n \n return __REQ_START_DATE;\n }", "@Nullable\n @Generated\n @Selector(\"requestStartDate\")\n public native NSDate requestStartDate();", "public DateTime getStartDateTime() {\r\n\t\treturn start;\r\n\t}", "public org.apache.xmlbeans.XmlDate xgetStartExecDate()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDate target = null;\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(STARTEXECDATE$8, 0);\n return target;\n }\n }", "private Date getDateAttribute(Element element, String attributeName)\n {\n return parseDate(getAttribute(element,attributeName));\n }", "public DTM getRxa3_DateTimeStartOfAdministration() { \r\n\t\tDTM retVal = this.getTypedField(3, 0);\r\n\t\treturn retVal;\r\n }", "@Nullable\n @Generated\n @Selector(\"responseStartDate\")\n public native NSDate responseStartDate();", "public Date getPaperMediumStartTime() {\n return (Date)getAttributeInternal(PAPERMEDIUMSTARTTIME);\n }", "public Integer getDayStart() {\n return dayStart;\n }", "public String getDayStartString() {\n return dayStartString;\n }", "public com.google.protobuf.ByteString\n getStartDateYYYYMMDDBytes() {\n java.lang.Object ref = startDateYYYYMMDD_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n startDateYYYYMMDD_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Number getBudgetAsToDate() {\n return (Number) getAttributeInternal(BUDGETASTODATE);\n }", "private Date getDateAttribute(Element element, String tagName, String attributeName)\n {\n return parseDate(getAttribute(element,tagName,attributeName));\n }", "public String getStartDateTimeString() {\n return startDateTimeString;\n }", "public void setStartDate(Date start)\r\n {\r\n this.startDate = start;\r\n }", "public Timestamp getDateStart();", "public void setStartDate(String startDate) {\n this.startDate = startDate;\n }", "public String getEventDate() {\n\t\treturn date;\n\t}", "public LocalDateTime getStartDate();" ]
[ "0.7170481", "0.71081686", "0.7056084", "0.69917434", "0.698241", "0.6958412", "0.68262327", "0.6791055", "0.676786", "0.67604846", "0.6726788", "0.6726788", "0.67116654", "0.67098004", "0.67098004", "0.67098004", "0.66719866", "0.6660101", "0.66414547", "0.65948945", "0.6584155", "0.6563213", "0.65575314", "0.65473706", "0.6539835", "0.6539835", "0.65171796", "0.65135854", "0.65086937", "0.65086937", "0.6489573", "0.64835835", "0.6479683", "0.6479683", "0.6479683", "0.6428046", "0.6423433", "0.6390298", "0.6362225", "0.62817705", "0.6281568", "0.62584054", "0.62564087", "0.6237604", "0.6226984", "0.62023854", "0.6183238", "0.6183084", "0.6157219", "0.61304164", "0.61231744", "0.611535", "0.61012083", "0.6095549", "0.60856557", "0.60795045", "0.60569865", "0.60517395", "0.6050447", "0.6019982", "0.5983428", "0.5979333", "0.59554523", "0.59326094", "0.59300965", "0.58971334", "0.5895492", "0.5895492", "0.58882886", "0.58882886", "0.5875921", "0.5869305", "0.58600116", "0.58560467", "0.5850473", "0.58453035", "0.58434796", "0.5838277", "0.5835378", "0.5833457", "0.58179784", "0.5816752", "0.581129", "0.5776432", "0.57709396", "0.5758853", "0.5756063", "0.5745684", "0.57362425", "0.572653", "0.57188886", "0.57145107", "0.5708524", "0.57071984", "0.5700247", "0.5699371", "0.56973934", "0.568349", "0.567602", "0.5668833" ]
0.75108
0
/ Gets the attribute value for EndDate, using the alias name EndDate
public Date getEndDate() { return (Date)getAttributeInternal(ENDDATE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getEndDate();", "@ApiModelProperty(value = \"End of the range\")\n public String getDateEnd() {\n return dateEnd;\n }", "public String getEndDate();", "public String getEndDate(){\n\t\treturn this.endDate;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndDate();", "public String getEndDate() {\n\t\treturn endDate.getText();\n\t}", "public java.lang.String getEndDate() {\n return endDate;\n }", "public Date getEndDate()\r\n {\r\n return this.endDate;\r\n }", "public Date getEndDate() {\r\n return this.endDate;\r\n }", "Date getEndDate();", "Date getEndDate();", "public Date getEndDate();", "public Date getEndDate();", "public String getEndDate() {\n return endDate;\n }", "public java.lang.String getEndDate() {\n return endDate;\n }", "public Date getEND_DATE() {\n return END_DATE;\n }", "public Date getDtEnd() {\r\n return dtEnd;\r\n }", "public String getEndDateString() {\n SimpleDateFormat format = new SimpleDateFormat(DpdInputForm.DATA_FORMAT, Locale.ENGLISH);\n return format.format(new Date(this.endDate));\n }", "public Date getEndDate() {\n\t\treturn this.endDate;\n\t}", "long getEndDate();", "long getEndDate();", "public Date getEndDate() {\r\n return endDate;\r\n }", "public Date getEndDate() {\r\n return endDate;\r\n }", "public Date getEndServiceDate() {\n return (Date) getAttributeInternal(ENDSERVICEDATE);\n }", "public java.util.Date getEndDateTime() {\n return this.endDateTime;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date get_end() {\n\t\treturn this.end;\n\t}", "public Date getServiceEndDate() {\n return (Date) getAttributeInternal(SERVICEENDDATE);\n }", "public Date getEndDate() {\n\n String[] dateParts = description.split(\"<br />\");\n String end = dateParts[1];\n SimpleDateFormat sdf = new SimpleDateFormat(\"E, dd MMMMM yyyy - HH:mm\");\n\n //Split first part of Description and transform to Date\n //Exaample first part = \"Start Date: Tues 18 March 2017\"\n try {\n EndDate = sdf.parse(end.split(\": \")[1]);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return EndDate;\n }", "public LocalDate getEnd_date(){\n return this.end_date;\n }", "public Date getEndDate() {\n\t\treturn endDate;\n\t}", "public Date getEndDate() {\n\t\treturn endDate;\n\t}", "public LocalDate getEndDate () {\n\t\treturn DateUtils.toLocalDate(this.end);\n\t}", "public Date getEnddate() {\r\n return enddate;\r\n }", "public java.util.Date getEndDate () {\r\n\t\treturn endDate;\r\n\t}", "public Long getEndDate() {\n\t\treturn endDate;\n\t}", "public Date getDeliveryEndDate() {\n return (Date)getAttributeInternal(DELIVERYENDDATE);\n }", "public java.lang.String getEndDay() {\r\n return localEndDay;\r\n }", "public TimeDateComponents getEventEndDate() {\n return getEventDates().getEndDate();\n }", "public String eventEndString() {\n return DateUtils.formatExtDate(this.endDate);\n }", "public java.sql.Date getEndDate() {\n\treturn endDate;\n}", "public long getEndDate() {\n return endDate_;\n }", "public LocalDate getEndDate() { return this.endDate; }", "public long getEndDate() {\n return endDate_;\n }", "public long getEndDate() {\n return endDate_;\n }", "@ApiModelProperty(value = \"The event end date in the event or site timezone\")\n public String getEndDate() {\n return endDate;\n }", "Date getEndDay();", "@Override\n\tpublic java.util.Date getEndDate() {\n\t\treturn _esfTournament.getEndDate();\n\t}", "public long getEndDate() {\n return endDate_;\n }", "public final String getEnddate() {\n\t\treturn enddate;\n\t}", "Integer getEndDay();", "public java.util.Calendar getEndDate() {\n return endDate;\n }", "public Date getEnd() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.End);\n\t}", "public String getStartDayEndString() {\n return startDayEndString;\n }", "public void setEndDate(Date end)\r\n {\r\n this.endDate = end;\r\n }", "@Nullable\r\n public DateWithOffset getEndDate() {\r\n return endDate;\r\n }", "@ApiModelProperty(value = \"An array of each component of the event end date\")\n public DateDetails getEndDateDetails() {\n return endDateDetails;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "String getEndDateParam(String dateString);", "public Integer getDurationEndDay() {\n return durationEndDay;\n }", "java.lang.String getEndDateYYYY();", "@Nullable\n @Generated\n @Selector(\"responseEndDate\")\n public native NSDate responseEndDate();", "public String getEndDayKey() {\n return endDayKey;\n }", "public CommonAlert dateEnd(Date dateEnd) {\n this.dateEnd = dateEnd;\n return this;\n }", "public LocalDateTime getEndDate() {\n return endDate;\n }", "public void setEndDate(Date value)\n {\n\n validateEndDate(value);\n setAttributeInternal(ENDDATE, value);\n \n }", "public M csmiBirthdayEnd(Object end){this.put(\"csmiBirthdayEnd\", end);return this;}", "public Integer getStartDayEnd() {\n return startDayEnd;\n }", "public Date getExpEndDate() {\n\t\treturn this.expEndDate;\n\t}", "public void setEndDate(String date){\n\t\tthis.endDate = date;\n\t}", "public String getEndAt() {\n return endAt;\n }", "public StrColumn getDateEndProcessing() {\n return delegate.getColumn(\"date_end_processing\", DelegatingStrColumn::new);\n }", "public void setEndDate(java.lang.String value) {\n this.endDate = value;\n }", "public void setEndDate(Date value) {\r\n this.endDate = value;\r\n }", "public Date getEndtime() {\n return endtime;\n }", "@Nullable\n @Generated\n @Selector(\"requestEndDate\")\n public native NSDate requestEndDate();", "public LocalDateTime getEndDate();", "public void setDtEnd(Date dtEnd) {\r\n this.dtEnd = dtEnd;\r\n }", "public OffsetDateTime usageEnd() {\n return this.usageEnd;\n }", "public void setEND_DATE(Date END_DATE) {\n this.END_DATE = END_DATE;\n }", "public DateTime getEnd() {\r\n return new DateTime(getEndMillis(), getChronology());\r\n }", "public java.sql.Date getREQ_END_DATE()\n {\n \n return __REQ_END_DATE;\n }", "LocalDate getCollectionEndDate();", "public Timestamp getCEndTs() {\r\n return (Timestamp) getAttributeInternal(CENDTS);\r\n }", "public Date getEndTimestamp() {\r\n return endTimestamp;\r\n }", "public void setEnddate(Date enddate) {\r\n this.enddate = enddate;\r\n }", "void setEventEndDate(Date endEventDate);", "public void validateEndDate(Date value)\n {\n \n if (value != null)\n {\n OADBTransaction transaction = getOADBTransaction();\n\n // Note that we want to truncate these values to allow for the possibility\n // that we're trying to set them to be the same day. Calling \n // dateValue( ) does not include time. Were we to want the time element,\n // we would call timestampValue(). Finally, you cannot compare \n // oracle.jbo.domain.Date objects directly. Instead, convert the value to \n // a long as shown.\n \n long sysdate = transaction.getCurrentDBDate().dateValue().getTime();\n long endDate = value.dateValue().getTime();\n\n if (endDate < sysdate)\n { \n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"EndDate\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_END_DATE_PAST\"); // Message name\n } \n }\n\n }", "public Date getElectronicEndTime() {\n return (Date)getAttributeInternal(ELECTRONICENDTIME);\n }", "public java.util.Calendar getEndExecDate()\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(ENDEXECDATE$10, 0);\n if (target == null)\n {\n return null;\n }\n return target.getCalendarValue();\n }\n }", "public void setEndDate(String endDate) {\n this.endDate = endDate;\n }", "public Element getEndExpression() {\n\t\treturn endExpression;\n\t}", "public Date getEndTimeDate() {\n return endTimeDate;\n }", "public void setEndDate(java.util.Date value);" ]
[ "0.73270017", "0.7222728", "0.71798193", "0.71371955", "0.7071473", "0.70191664", "0.6953999", "0.6952553", "0.6942434", "0.6924556", "0.6924556", "0.6903257", "0.6903257", "0.69027084", "0.68645257", "0.6863779", "0.68579733", "0.68520236", "0.68352276", "0.6834234", "0.6834234", "0.67891896", "0.67891896", "0.6747057", "0.67463356", "0.6736571", "0.6736571", "0.6736571", "0.6736571", "0.672328", "0.6720838", "0.66988534", "0.66982883", "0.6697442", "0.6697442", "0.66965586", "0.6680871", "0.66767937", "0.66440165", "0.6640249", "0.6616376", "0.6606087", "0.65523213", "0.6550684", "0.6538826", "0.65173995", "0.6512699", "0.65036255", "0.649861", "0.64552814", "0.64483047", "0.6433298", "0.64313996", "0.64280784", "0.64138967", "0.6409534", "0.6376643", "0.6342341", "0.63283294", "0.6298498", "0.62739915", "0.62739915", "0.6264806", "0.6264806", "0.6260797", "0.62349635", "0.62025064", "0.61490923", "0.6075826", "0.60743475", "0.60621876", "0.60580224", "0.6057173", "0.6047429", "0.6040943", "0.60364646", "0.60310084", "0.60203964", "0.60161525", "0.60134214", "0.6010249", "0.6009204", "0.60040873", "0.59924734", "0.5984747", "0.5978911", "0.59654146", "0.59625256", "0.5943995", "0.5932343", "0.59251547", "0.5923584", "0.5908577", "0.58897734", "0.58891153", "0.5883038", "0.5854725", "0.58454907", "0.58414346", "0.5810172" ]
0.7793811
0
/ Gets the attribute value for LastUpdateDate, using the alias name LastUpdateDate
public Date getLastUpdateDate() { return (Date)getAttributeInternal(LASTUPDATEDATE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getLastUpdatedDate() {\r\n return (Date) getAttributeInternal(LASTUPDATEDDATE);\r\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }", "public Timestamp getLastUpdatedDate() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDDATE);\n }", "Date getForLastUpdate();", "public long getLastUpdateDate() {\n return (Long)content.get(LAST_UPDATE_DATE);\n }", "public Number getLastUpdatedBy()\n {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastUpdateDate() {\r\n\t\treturn lastUpdateDate;\r\n\t}", "public java.lang.String getDate_last_update() {\n return date_last_update;\n }", "public Timestamp getLastUpdatedAt() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDAT);\n }", "public Date getLastUpdateDt() {\n\t\treturn this.lastUpdateDt;\n\t}", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\r\n return (Number) getAttributeInternal(LASTUPDATEDBY);\r\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public long getDateRecordLastUpdated(){\n return dateRecordLastUpdated;\n }", "public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }", "public Date getLastupdatedate() {\n return lastupdatedate;\n }", "public Date getUpdatedDate() {\n return (Date) getAttributeInternal(UPDATEDDATE);\n }", "public String getLastUpdatedDateItem() {\n return lastUpdatedDateItem;\n }", "public Date getLastUpdateDate() {\r\n return lastUpdateDate;\r\n }", "public Date getLastUpdate() {\r\n return lastUpdate;\r\n }", "public Date getLastUpdateDate() {\n return lastUpdateDate;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Number getLastUpdateLogin()\n {\n return (Number)getAttributeInternal(LASTUPDATELOGIN);\n }", "public String getLastupdateby() {\n return lastupdateby;\n }", "public String getMapLastUpdateDt() {\n\t\treturn this.mapLastUpdateDt;\n\t}", "public Date getDateUpdated() {\n\t\treturn parseDate(getProperty(DATE_UPDATED_PROPERTY));\n\t}", "public java.util.Date getLastUpdatedAt() {\n return this.lastUpdatedAt;\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public String getLastUpdateBy() {\r\n\t\treturn lastUpdateBy;\r\n\t}", "Date getUpdatedDate();", "@JsonIgnore\n\tpublic Date getLatestUpdate()\n\t{\n\t\treturn latestUpdate;\n\t}", "public Number getLastUpdateLogin() {\n return (Number)getAttributeInternal(LASTUPDATELOGIN);\n }", "public Number getLastUpdateLogin() {\n return (Number)getAttributeInternal(LASTUPDATELOGIN);\n }", "public Number getLastUpdateLogin() {\n return (Number)getAttributeInternal(LASTUPDATELOGIN);\n }", "public Number getLastUpdateLogin() {\n return (Number) getAttributeInternal(LASTUPDATELOGIN);\n }", "public LocalDateTime getLastUpdateDate() {\n return this.lastUpdateDate;\n }", "public java.util.Date getLastUpdatedDateTime() {\n return this.lastUpdatedDateTime;\n }", "public void setLastUpdateDate(Date value)\n {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getLastStatusChangeDate();", "public DateAdp Modified_latest() {return modified_latest;}", "public final Date getLastModifiedAt( )\n\t{\n\t\treturn new Date( this.data.getLong( \"lastModifiedAt\" ) );\n\t}", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"updatedAt\")\n public Long getUpdatedAtDD() {\n return getUpdatedAt() == null ? null : getUpdatedAt().getTime();\n }", "public Date getUpdatedOn();", "public java.util.Calendar getLastUpdateDate() {\n return lastUpdateDate;\n }", "public Timestamp getLastUpdated() {\n return lastUpdated;\n }", "public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}", "public long getLastModified()\r\n/* 283: */ {\r\n/* 284:424 */ return getFirstDate(\"Last-Modified\");\r\n/* 285: */ }", "public String getLastUpdated() {\n return lastUpdated;\n }", "public Date getModifiedon()\n {\n return (Date)getAttributeInternal(MODIFIEDON);\n }", "public String getLastUpdate() {\n return lastUpdate;\n }", "public String getUpdateDate() {\r\n return updateDate;\r\n }", "Date getDateUpdated();", "public Timestamp getModifiedDate() {\r\n return (Timestamp) getAttributeInternal(MODIFIEDDATE);\r\n }", "public java.util.Date getLastUpdatedTimestamp() {\n return this.lastUpdatedTimestamp;\n }", "@ApiModelProperty(required = false, value = \"epoch timestamp in milliseconds\")\n public Long getLastUpdated() {\n return lastUpdated;\n }", "public long getLastUpdate() {\n return this.lastUpdate;\n }", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "public String getLastUpdateUser() {\n return lastUpdateUser;\n }", "public String getLastUpdateUser() {\n return lastUpdateUser;\n }", "long getLastUpdatedTime();", "protected String getValueOfColumnLastUpdateUser() {\n return SessionContext.open().getUid();\n }", "public final native DateTime getUpdatedMax() /*-{\n return this.getUpdatedMax();\n }-*/;", "public Date getLastModifiedDate() {\n\t\treturn this.lastModifiedDate;\n\t\t\n\t}", "@Schema(example = \"1592180992\", required = true, description = \"Time when labeling information was last changed (timestamp)\")\n public Long getUpdatedAt() {\n return updatedAt;\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public Date getModifiedDate() {\n return (Date) getAttributeInternal(MODIFIEDDATE);\n }", "public Date getUpdateDatetime();", "public Long getLastModifiedDate()\r\n\t{\r\n\t\treturn lastModifiedDate;\r\n\t}", "public long getLastUpdateTs() {\n return lastUpdateTs;\n }", "public Date getFlastupdatetime() {\n return flastupdatetime;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The date that this resource was last updated (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT).\")\n\n public String getDateUpdated() {\n return dateUpdated;\n }" ]
[ "0.7622095", "0.75852734", "0.75852734", "0.75852734", "0.75852734", "0.75852734", "0.75852734", "0.75852734", "0.75207984", "0.75207984", "0.7462972", "0.7185587", "0.7079203", "0.7035274", "0.70310843", "0.70310843", "0.69899887", "0.69866574", "0.69612205", "0.6956544", "0.6896283", "0.6896283", "0.6896283", "0.6896283", "0.6896283", "0.6896283", "0.6896283", "0.68889314", "0.6865143", "0.6865143", "0.68563795", "0.6848829", "0.68365574", "0.68219894", "0.6789405", "0.6786363", "0.67859125", "0.6735406", "0.6693842", "0.6693842", "0.6693842", "0.6633893", "0.66188407", "0.6550104", "0.6549268", "0.6539257", "0.6529292", "0.6529292", "0.65258837", "0.6525471", "0.6513895", "0.6511096", "0.6511096", "0.6511096", "0.65094906", "0.6496059", "0.6493073", "0.64554065", "0.64527005", "0.64438814", "0.6409214", "0.6397957", "0.6387476", "0.637303", "0.6355456", "0.6344975", "0.633058", "0.63059616", "0.6290843", "0.6275779", "0.6263563", "0.6253757", "0.62465155", "0.62346977", "0.6234372", "0.6234071", "0.6221308", "0.6221308", "0.6221308", "0.6216007", "0.6216007", "0.62114006", "0.6205527", "0.62018967", "0.619591", "0.61754906", "0.6172014", "0.6172014", "0.6172014", "0.6172014", "0.6172014", "0.6172014", "0.6172014", "0.6172014", "0.61710966", "0.6170431", "0.61650085", "0.61645293", "0.6145556", "0.6140904" ]
0.7789028
0
/ Sets value as the attribute value for LastUpdateDate
public void setLastUpdateDate(Date value) { setAttributeInternal(LASTUPDATEDATE, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdatedDate(Date value) {\r\n setAttributeInternal(LASTUPDATEDDATE, value);\r\n }", "void setLastUpdatedTime();", "public Date getLastUpdateDate()\n {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public void setLastUpdate( Date lastUpdate ) {\r\n this.lastUpdate = lastUpdate;\r\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "@Override\n\tpublic void setLastUpdatedTime(Date lastUpdated) {\n\n\t}", "public void setUpdatedDate(Date value) {\n setAttributeInternal(UPDATEDDATE, value);\n }", "void setUpdatedDate(Date updatedDate);", "public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdatedDate() {\r\n return (Date) getAttributeInternal(LASTUPDATEDDATE);\r\n }", "public void setUpdatedAt(final Date value)\n\t{\n\t\tsetUpdatedAt( getSession().getSessionContext(), value );\n\t}", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "public void setUpdatedAt(Date value) {\n setAttributeInternal(UPDATEDAT, value);\n }", "public void setUpdatedAt(Date value) {\n setAttributeInternal(UPDATEDAT, value);\n }", "public void setLastUpdateDate(Date lastUpdateDate) {\r\n this.lastUpdateDate = lastUpdateDate;\r\n }", "public void setUpdatedOn(Date updatedOn);", "public void setLastUpdatedAt(Timestamp value) {\n setAttributeInternal(LASTUPDATEDAT, value);\n }", "public void setLastUpdateDate(Date lastUpdateDate) {\n this.lastUpdateDate = lastUpdateDate;\n }", "public void setLastupdatedate(Date lastupdatedate) {\n this.lastupdatedate = lastupdatedate;\n }", "public void setLastStatusChangeDate(java.util.Date value);", "private void setUpdateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(UPDATETIME_PROP.get(), value);\n }", "public void setLastUpdateDate(long lastUpdateDate) {\n content.put(LAST_UPDATE_DATE, lastUpdateDate);\n }", "public void setUpdateDatetime(Date updateDatetime);", "public void setUpdatedAt(final SessionContext ctx, final Date value)\n\t{\n\t\tsetProperty(ctx, UPDATEDAT,value);\n\t}", "public void setLastUpdateDate(String lastUpdateDate) {\r\n\t\tthis.lastUpdateDate = lastUpdateDate;\r\n\t}", "public void setLastUpdateLogin(Number value)\n {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "void setLastAccessDate();", "public Timestamp getLastUpdatedDate() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDDATE);\n }", "Date getForLastUpdate();", "public void setLastUpdatedBy(Number value)\n {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "void setDateUpdated(final Date dateUpdated);", "public void setUpdated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_updated, value);\r\n }", "public void setUpdated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_updated, value);\r\n }", "public void setUpdated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_updated, value);\r\n }", "public void setUpdateTime(Date updateTime)\n/* */ {\n/* 198 */ this.updateTime = updateTime;\n/* */ }", "public void setLastUpdated(final Date date) {\n this.lastUpdated = date;\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public void setModifiedDate(Date value) {\n setAttributeInternal(MODIFIEDDATE, value);\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "void setLastLogin(Date lastLogin);", "public void setLastUpdateDt(Date lastUpdateDt) {\n\t\tthis.lastUpdateDt = lastUpdateDt;\n\t}", "public void setLastUpdateDate(LocalDateTime lastUpdateDate) {\n this.lastUpdateDate = lastUpdateDate;\n }", "public void setUpdatedate(Date updatedate) {\r\n this.updatedate = updatedate;\r\n }", "public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }", "public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"updatedAt\")\n public void setUpdatedAtDD(Long value) {\n setUpdatedAt(new Date(value));\n }", "public Date getUpdatedDate() {\n return (Date) getAttributeInternal(UPDATEDDATE);\n }", "public void setLastUpdateLogin(Number value) {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "public void setLastUpdateLogin(Number value) {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "public void setLastUpdateLogin(Number value) {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "public void setLastUpdateLogin(Number value) {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "public Date getLastUpdateDate() {\r\n return lastUpdateDate;\r\n }", "public Timestamp getLastUpdatedAt() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDAT);\n }", "public java.util.Date getLastUpdatedAt() {\n return this.lastUpdatedAt;\n }", "public String getLastUpdateDate() {\r\n\t\treturn lastUpdateDate;\r\n\t}", "public void setLastTableRowEdit(java.util.Date value);", "public void setLastUpdatedBy(Number value) {\r\n setAttributeInternal(LASTUPDATEDBY, value);\r\n }", "public void updateDateModified() {\n dateModified = DateTime.now();\n }", "Date getDateUpdated();", "public Date getLastupdatedate() {\n return lastupdatedate;\n }", "public void setLastUpdate(String lastUpdate) {\n this.lastUpdate = lastUpdate;\n }", "public Date getLastUpdate() {\r\n return lastUpdate;\r\n }", "public java.lang.String getDate_last_update() {\n return date_last_update;\n }", "Date getUpdatedDate();", "public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }", "public void setLastUpdated(long lastUpdated) {\n\t\tassert lastUpdated > this.lastUpdated; \n\t\tthis.lastUpdated = lastUpdated;\n\t}", "public Date getLastUpdateDate() {\n return lastUpdateDate;\n }", "public void setUpdatedDate(Date date) {\n\t\tthis.updatedDate=date;\r\n\t}", "public String getUpdateDate() {\r\n return updateDate;\r\n }", "public Date getUpdatedate() {\r\n return updatedate;\r\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }" ]
[ "0.787219", "0.787219", "0.787219", "0.787219", "0.787219", "0.787219", "0.787219", "0.787219", "0.7718728", "0.72026914", "0.7200549", "0.7049809", "0.70383936", "0.70383936", "0.70383936", "0.70383936", "0.70383936", "0.70383936", "0.70383936", "0.69963455", "0.69868547", "0.6980334", "0.6972884", "0.6972884", "0.6965753", "0.6932261", "0.6903603", "0.6903603", "0.6903603", "0.69034725", "0.69034725", "0.69016266", "0.6885417", "0.6858299", "0.683298", "0.6831245", "0.6745069", "0.6739796", "0.6736276", "0.67302835", "0.6712596", "0.6688154", "0.6663264", "0.66557276", "0.663416", "0.6578945", "0.6566161", "0.65613276", "0.6555916", "0.6555916", "0.6555916", "0.6543835", "0.64931214", "0.64729863", "0.64729863", "0.6469066", "0.64620024", "0.64620024", "0.6437864", "0.6435742", "0.6424471", "0.64236283", "0.64206445", "0.64206445", "0.64108366", "0.64108366", "0.6407918", "0.64057153", "0.63908947", "0.63908947", "0.63908947", "0.63908947", "0.63809764", "0.6372903", "0.63668567", "0.6363843", "0.6357432", "0.63484013", "0.6345204", "0.6344778", "0.6340632", "0.6329447", "0.63240963", "0.6303947", "0.63025105", "0.62962866", "0.6292812", "0.62925464", "0.628963", "0.6288069", "0.62863195", "0.6284918", "0.6284918", "0.6284918", "0.6284918", "0.6284918", "0.6284918", "0.6284918", "0.6284918", "0.6284918" ]
0.81459093
0
/ Gets the attribute value for LastUpdatedBy, using the alias name LastUpdatedBy
public Number getLastUpdatedBy() { return (Number)getAttributeInternal(LASTUPDATEDBY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\r\n return (Number) getAttributeInternal(LASTUPDATEDBY);\r\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String) getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedby() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getLastUpdatedBy() {\n return lastUpdatedBy;\n }", "public String getLastUpdateBy() {\r\n\t\treturn lastUpdateBy;\r\n\t}", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public String getLastupdateby() {\n return lastupdateby;\n }", "public String getUpdatedBy() {\r\n return updatedBy;\r\n }", "public native final String getLastModifiedBy() /*-{\n return this[\"@LastModifiedBy\"];\n }-*/;", "public String getUpdatedBy() {\r\n\t\treturn updatedBy;\r\n\t}", "public String getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "public Long getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public java.lang.String getLastChangedBy() {\n\t\treturn lastChangedBy;\n\t}", "public String getLastModifiedBy() {\n\t\treturn this.lastModifiedBy;\n\t}", "public String updatedBy() {\n return this.updatedBy;\n }", "public String getModifiedby()\n {\n return (String)getAttributeInternal(MODIFIEDBY);\n }", "public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\r\n return lastModifiedBy;\r\n }", "public void setLastUpdatedBy(Number value)\n {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\n return lastModifiedBy;\n }", "public String getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public String getLastModifiedBy() {\n return lastModifiedBy;\n }", "public Integer getLastModifiedBy() {\r\n\t\treturn lastModifiedBy;\r\n\t}", "public String getModifiedBy() {\r\n return (String) getAttributeInternal(MODIFIEDBY);\r\n }", "public void setLastUpdatedBy(Number value) {\r\n setAttributeInternal(LASTUPDATEDBY, value);\r\n }", "public String getModifiedBy() {\n return (String) getAttributeInternal(MODIFIEDBY);\n }", "@ApiModelProperty(value = \"Id of the user who last modified the record.\")\n public Long getLastModifiedBy() {\n return lastModifiedBy;\n }", "@ApiModelProperty(value = \"A string containing the universal identifier DN of the subject that most recently updated the policy\")\n public String getLastModifiedBy() {\n return lastModifiedBy;\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public UserItem getUpdatedBy() {\n return updatedBy;\n }", "protected String getValueOfColumnLastUpdateUser() {\n return SessionContext.open().getUid();\n }", "public User getModifiedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Modified_By\");\n\n\t}", "@Valid\n @JsonProperty(\"lastModifiedBy\")\n public LastModifiedBy getLastModifiedBy();", "public void setLastUpdatedBy(String lastUpdatedBy) {\n this.lastUpdatedBy = lastUpdatedBy;\n }", "public void setLastUpdatedBy(String lastUpdatedBy) {\n this.lastUpdatedBy = lastUpdatedBy;\n }", "public Timestamp getLastUpdatedDate() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDDATE);\n }", "public java.lang.CharSequence getLASTMODIFIEDBY() {\n return LAST_MODIFIED_BY;\n }", "public java.lang.CharSequence getLASTMODIFIEDBY() {\n return LAST_MODIFIED_BY;\n }", "public String getLastUpdateUser() {\n return lastUpdateUser;\n }", "public String getLastUpdateUser() {\n return lastUpdateUser;\n }", "public String getLastUpdateAuthor() {\n return (String)content.get(LAST_UPDATE_AUTHOR);\n }", "public Date getModifiedBy() {\n return modifiedBy;\n }", "public Number getCreatedBy()\n {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "@Override\n\tpublic java.lang.String getModifiedBy() {\n\t\treturn _locMstLocation.getModifiedBy();\n\t}", "public Timestamp getLastUpdatedAt() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDAT);\n }", "public Date getLastUpdatedDate() {\r\n return (Date) getAttributeInternal(LASTUPDATEDDATE);\r\n }", "public Timestamp getLastModifiedByTimestamp() {\n\t\treturn new Timestamp(this.lastModifiedByTimestamp.getTime());\n\t}", "@ApiModelProperty(value = \"The user name of the person performing the action.\")\n public String getUpdatedBy() {\n return updatedBy;\n }", "public java.lang.String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public void setLastUpdateBy(String lastUpdateBy) {\r\n\t\tthis.lastUpdateBy = lastUpdateBy;\r\n\t}", "public String getCreatedby()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public Long getLastModifiedUser() {\n\t\treturn this.lastModifiedUser;\n\t\t\n\t}", "public String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }" ]
[ "0.8382598", "0.8382598", "0.80627984", "0.80627984", "0.80627984", "0.80627984", "0.80627984", "0.80627984", "0.80627984", "0.80139625", "0.80011606", "0.80011606", "0.78945476", "0.78945476", "0.7823267", "0.775972", "0.7752355", "0.7366267", "0.7288687", "0.7288687", "0.723507", "0.7230538", "0.72265375", "0.716093", "0.7159992", "0.7129365", "0.7093763", "0.7093763", "0.7093763", "0.7093763", "0.7081085", "0.7081085", "0.7081085", "0.7081085", "0.7081085", "0.7081085", "0.7081085", "0.7081085", "0.7081085", "0.7081085", "0.7081085", "0.7081085", "0.7081085", "0.70358247", "0.7032689", "0.7030898", "0.70256084", "0.70165", "0.70165", "0.6994149", "0.6976413", "0.6973385", "0.69542426", "0.6895403", "0.6847867", "0.6814759", "0.67924637", "0.67793983", "0.6779181", "0.6767255", "0.67576903", "0.67576903", "0.67576903", "0.67576903", "0.67576903", "0.67576903", "0.67576903", "0.67576903", "0.67576903", "0.67550504", "0.6726803", "0.67158467", "0.66772896", "0.663278", "0.663278", "0.65633845", "0.65372926", "0.651217", "0.6499061", "0.6499061", "0.649155", "0.64896965", "0.6471413", "0.6471348", "0.6444043", "0.64358294", "0.6423781", "0.64217126", "0.6395997", "0.63861966", "0.63861966", "0.63861966", "0.63718295", "0.6370744", "0.63676643", "0.63565665", "0.63565665", "0.6336643", "0.6336643", "0.6336643" ]
0.8129155
2
/ Sets value as the attribute value for LastUpdatedBy
public void setLastUpdatedBy(Number value) { setAttributeInternal(LASTUPDATEDBY, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\r\n setAttributeInternal(LASTUPDATEDBY, value);\r\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public void setUpdatedBy(String value) {\n setAttributeInternal(UPDATEDBY, value);\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy()\n {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastUpdatedBy() {\n return lastUpdatedBy;\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "void setUpdateby(final U lastModifiedBy);", "public String getUpdatedBy() {\r\n return updatedBy;\r\n }", "public Number getLastUpdatedBy() {\r\n return (Number) getAttributeInternal(LASTUPDATEDBY);\r\n }", "public void setLastUpdatedBy(String lastUpdatedBy) {\n this.lastUpdatedBy = lastUpdatedBy;\n }", "public void setLastUpdatedBy(String lastUpdatedBy) {\n this.lastUpdatedBy = lastUpdatedBy;\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getUpdatedby() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String) getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedBy() {\r\n\t\treturn updatedBy;\r\n\t}", "public void setLASTMODIFIEDBY(java.lang.CharSequence value) {\n this.LAST_MODIFIED_BY = value;\n }", "public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }", "public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }", "public void setModifiedBy(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_modifiedBy, value.getSemanticObject());\r\n }else\r\n {\r\n removeModifiedBy();\r\n }\r\n }", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public int getUpdatedBy();", "public String updatedBy() {\n return this.updatedBy;\n }", "void setLastUpdatedTime();", "public String getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "public void setUpdatedby( String updatedby )\n {\n this.updatedby = updatedby;\n }", "public void setModifiedBy(String value) {\r\n setAttributeInternal(MODIFIEDBY, value);\r\n }", "public void setModifiedBy(String value) {\n setAttributeInternal(MODIFIEDBY, value);\n }", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\r\n return lastModifiedBy;\r\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\n return lastModifiedBy;\n }", "public Long getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "public String getLastUpdateBy() {\r\n\t\treturn lastUpdateBy;\r\n\t}", "public void setLastUpdateBy(String lastUpdateBy) {\r\n\t\tthis.lastUpdateBy = lastUpdateBy;\r\n\t}", "public void setModifiedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.modifiedBy, v))\n {\n this.modifiedBy = v;\n setModified(true);\n }\n \n \n }", "public UserItem getUpdatedBy() {\n return updatedBy;\n }", "@ApiModelProperty(value = \"Id of the user who last modified the record.\")\n public Long getLastModifiedBy() {\n return lastModifiedBy;\n }", "public Date getModifiedBy() {\n return modifiedBy;\n }", "public void setUpdatedBy(String updatedBy) {\r\n\t\tthis.updatedBy = updatedBy;\r\n\t}", "public void setUpdatedBy(String updatedBy) {\r\n this.updatedBy = updatedBy == null ? null : updatedBy.trim();\r\n }", "public String getLastupdateby() {\n return lastupdateby;\n }", "public String getModifiedby()\n {\n return (String)getAttributeInternal(MODIFIEDBY);\n }", "@ApiModelProperty(value = \"The user name of the person performing the action.\")\n public String getUpdatedBy() {\n return updatedBy;\n }", "public void setUpdatedBy(UserItem userItem) {\n this.updatedBy = userItem;\n }", "public void setLastUpdateDate(Date value)\n {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setCreatedBy(Number value)\n {\n setAttributeInternal(CREATEDBY, value);\n }", "@ApiModelProperty(value = \"A string containing the universal identifier DN of the subject that most recently updated the policy\")\n public String getLastModifiedBy() {\n return lastModifiedBy;\n }", "public void setModifiedByUser(long modifiedByUser);", "public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() {\n return this.lastModifiedBy;\n }", "public void setLastUpdatedDate(Date value) {\r\n setAttributeInternal(LASTUPDATEDDATE, value);\r\n }", "public Integer getLastModifiedBy() {\r\n\t\treturn lastModifiedBy;\r\n\t}", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(Long updatedBy) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy( Integer updatedBy ) {\n this.updatedBy = updatedBy;\n }", "public void setUpdatedBy(String updatedBy) {\n\t\tthis.updatedBy = updatedBy;\n\t}", "public void setModifiedBy(int tmp) {\n this.modifiedBy = tmp;\n }", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "public void setLastUpdated(Date lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "public java.lang.String getLastChangedBy() {\n\t\treturn lastChangedBy;\n\t}", "public void setCreatedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.createdBy, v))\n {\n this.createdBy = v;\n setModified(true);\n }\n \n \n }" ]
[ "0.8284004", "0.8284004", "0.8045458", "0.800169", "0.800169", "0.800169", "0.800169", "0.800169", "0.800169", "0.800169", "0.800169", "0.800169", "0.76418006", "0.76418006", "0.76418006", "0.7187985", "0.7187985", "0.71746767", "0.7146426", "0.71198195", "0.71198195", "0.71198195", "0.71198195", "0.71198195", "0.71198195", "0.71198195", "0.70931965", "0.70931965", "0.70670223", "0.70611197", "0.7048403", "0.70432025", "0.70432025", "0.7017457", "0.7017457", "0.6985771", "0.6972958", "0.6943939", "0.69368017", "0.6925762", "0.6925762", "0.6925762", "0.68860453", "0.68860453", "0.68860453", "0.68860453", "0.68860453", "0.68860453", "0.68860453", "0.68860453", "0.68860453", "0.68860453", "0.68860453", "0.68860453", "0.68860453", "0.68855643", "0.6874124", "0.6874015", "0.6863885", "0.68594784", "0.6824774", "0.6803302", "0.6802575", "0.6802575", "0.6802575", "0.6802575", "0.6787638", "0.678516", "0.6783008", "0.67695236", "0.675874", "0.6690172", "0.66144574", "0.6609029", "0.6604144", "0.65968627", "0.6594692", "0.6591001", "0.6571602", "0.65575135", "0.65522027", "0.65518767", "0.654521", "0.65342456", "0.65261817", "0.65261817", "0.65245855", "0.65121835", "0.6511997", "0.6511997", "0.6511997", "0.6511997", "0.6503237", "0.6502879", "0.6498483", "0.64779615", "0.64779615", "0.64779615", "0.64770603", "0.6454234" ]
0.82526016
2
/ Gets the attribute value for CreationDate, using the alias name CreationDate
public Date getCreationDate() { return (Date)getAttributeInternal(CREATIONDATE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public Date getCreatedDate() {\n return (Date) getAttributeInternal(CREATEDDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreatedon()\n {\n return (Date)getAttributeInternal(CREATEDON);\n }", "public Timestamp getCreatedDate() {\n return (Timestamp) getAttributeInternal(CREATEDDATE);\n }", "public Timestamp getCreatedDate() {\n return (Timestamp)getAttributeInternal(CREATEDDATE);\n }", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "Date getCreationDate();", "public Date getDateCreated() {\n\t\treturn parseDate(getProperty(DATE_CREATED_PROPERTY));\n\t}", "public Date getNotiCreated() {\r\n return (Date) getAttributeInternal(NOTICREATED);\r\n }", "@Override\n protected String getCreationDate() {\n try {\n if (exists() && ((Node) item).hasProperty(JcrConstants.JCR_CREATED)) {\n long creationTime = ((Node) item).getProperty(JcrConstants.JCR_CREATED).getValue().getLong();\n return HttpDateFormat.creationDateFormat().format(new Date(creationTime));\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:created property\");\n }\n\n // fallback\n return super.getCreationDate();\n }", "public Date getCreationDate() {\n\n \n return creationDate;\n\n }", "Date getCreateDate();", "Date getCreateDate();", "Date getCreatedDate();", "public Date getDateCreated(){return DATE_CREATED;}", "public Date getCreationDate();", "public Date getCreationDate()\r\n {\r\n return (m_creationDate);\r\n }", "public Date getCreateDate();", "public Date getCreateDate();", "public Date getCreateDate();", "@Override\n public String getCreationDate() {\n return creationDate;\n }", "Date getDateCreated();", "public Long getCreationDate()\r\n\t{\r\n\t\treturn creationDate;\r\n\t}", "public String getCreateDate() {\n return createDate;\n }", "public Timestamp getCreatedAt() {\n return (Timestamp) getAttributeInternal(CREATEDAT);\n }", "public Date getCreationDate() {\r\n return this.creationDate;\r\n }", "public Date getCreation() {\n return creation;\n }", "@JsonProperty(\"Date Created\")\n\tString getCreated() {\n\t\treturn getDate(created);\n\t}", "public Date getCreatedDate();", "public Date getCreateDate() { return this.createDate; }", "public Date getCreationDate()\n {\n return creationDate;\n }", "public Date getExtendedCreationDate()\r\n {\r\n return (m_extendedCreationDate);\r\n }", "public Date getCreationdate() {\n return creationdate;\n }", "public Date getCREATED_DATE() {\r\n return CREATED_DATE;\r\n }", "public long getCreationDate() {\n return creationDate_;\n }", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"createdAt\")\n public Long getCreatedAtDD() {\n return getCreatedAt() == null ? null : getCreatedAt().getTime();\n }", "@ApiModelProperty(value = \"An integer containing the creation date and time, in number of seconds\")\n public String getCreationDate() {\n return creationDate;\n }", "@java.lang.Override\n public long getCreationDate() {\n return creationDate_;\n }", "public Date getCreationDate() {\n return creationDate;\n }", "public String getCreateDate() {\r\n\t\treturn createDate;\r\n\t}", "public String getDatecreated() {\n\t\treturn datecreated;\n\t}", "String getCreated_at();", "@java.lang.Override\n public long getCreationDate() {\n return creationDate_;\n }", "public String getCreateDate() {\n return createDate;\n }", "public Date getDateCreated();", "public String getCreateDate() {\n return createDate;\n }", "public String getCreateDate() {\n return createDate;\n }", "public String getCreatedby()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _dictData.getCreateDate();\n\t}", "public Date getCreationDate() {\n\t\treturn this.creationDate;\n\t\t\n\t}", "public java.lang.String getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreationDate() {\r\n\t\treturn creationDate;\r\n\t}", "@Override\r\n\tpublic Date getAttr_reg_dt() {\n\t\treturn super.getAttr_reg_dt();\r\n\t}", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public Date getDateCreated(){\n\t\treturn dateCreated;\n\t}", "public String getDatecreated() {\n return datecreated;\n }", "public Date getCreated() {\r\n return createdDate;\r\n }", "public Date getCreatedOn()\n {\n return _model.getCreatedOn();\n }", "public Date getCreationDate() {\n\t\treturn creationDate;\n\t}", "@Override\n\tpublic Date getCreateDate();", "@Override\n\tpublic Date getCreateDate();", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}", "public long getCreationDate() {\n return creationDate_;\n }", "public static String getDate() {\n return annotation != null ? annotation.date() : \"Unknown\";\n }", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn _second.getCreateDate();\n\t}", "public final Date getCreatedAt( )\n\t{\n\t\treturn new Date( this.data.getLong( \"createdAt\" ) );\n\t}", "public Date getCreateDate() {\n return createDate;\n }", "public java.util.Date getDate(String attr) {\n return (java.util.Date) super.get(attr);\n }", "public Date getdCreateDate() {\r\n return dCreateDate;\r\n }", "public Date getdCreateDate() {\r\n return dCreateDate;\r\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "@JsonProperty(\"created_date\")\n\tpublic Date getCreatedDate() {\n\t\treturn createdDate;\n\t}", "public java.util.Date getCreationDate() {\n return this.creationDate;\n }", "public Date getCreate_date() {\n return create_date;\n }", "@DISPID(110)\r\n\t// = 0x6e. The runtime will prefer the VTID if present\r\n\t@VTID(105)\r\n\tjava.util.Date creationDateTime();", "public Long getCreatedDate() {\r\n\t\treturn createdDate;\r\n\t}", "public Date getCreateddate() {\n return createddate;\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Calendar getDate()\n {\n return this.dateOfCreation;\n }", "@Raw @Basic @Immutable\r\n public Date getCreationTime() {\r\n return creationTime;\r\n }", "public String getCreateDateItem() {\n return createDateItem;\n }", "public Date getCreatedDate() {\n return Utils.parseDateTimeUtc(created_on);\n }" ]
[ "0.70844877", "0.70844877", "0.70844877", "0.7050399", "0.69434804", "0.69434804", "0.69434804", "0.69434804", "0.69434804", "0.69434804", "0.6909243", "0.68785495", "0.6812948", "0.6759892", "0.6759892", "0.6668815", "0.66435295", "0.6620609", "0.66117126", "0.6523317", "0.64690775", "0.64690775", "0.6465906", "0.64636624", "0.6460776", "0.6450489", "0.64270544", "0.64270544", "0.64270544", "0.6406766", "0.6361418", "0.6360576", "0.6358995", "0.6336636", "0.63308084", "0.6328199", "0.63123494", "0.6311997", "0.6296392", "0.62948984", "0.62820065", "0.62753904", "0.62750274", "0.6258857", "0.6255074", "0.62534326", "0.6251492", "0.62317955", "0.62288845", "0.62269664", "0.6226795", "0.62260777", "0.6225513", "0.62180805", "0.62124956", "0.62124956", "0.6209648", "0.6209457", "0.6205246", "0.62034637", "0.61989355", "0.6198638", "0.61884886", "0.61884886", "0.61884886", "0.61666393", "0.61666393", "0.61666393", "0.61654836", "0.6159875", "0.6136045", "0.61329794", "0.6126717", "0.611886", "0.611886", "0.61170554", "0.61170554", "0.61170554", "0.61108834", "0.61019605", "0.60999775", "0.609544", "0.60931766", "0.60905606", "0.6074152", "0.6074152", "0.60674495", "0.60674495", "0.60660315", "0.60658926", "0.60618573", "0.60605437", "0.60548025", "0.6049025", "0.6041614", "0.6041614", "0.6041517", "0.6039323", "0.6034134", "0.6034031" ]
0.71950793
0
/ Sets value as the attribute value for CreationDate
public void setCreationDate(Date value) { setAttributeInternal(CREATIONDATE, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreatedDate(Date value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "public void setCreationDate(Date creationDate);", "public void setNotiCreated(Date value) {\r\n setAttributeInternal(NOTICREATED, value);\r\n }", "public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }", "void setCreationDate(Date val)\n throws RemoteException;", "public void setCreationDate(Date creationDate) {\n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "void setCreatedDate(Date createdDate);", "public void setCreatedAt(final Date value)\n\t{\n\t\tsetCreatedAt( getSession().getSessionContext(), value );\n\t}", "public void setCreatedDate(Date createdDate);", "public void setDateCreated(Date dateCreated);", "public Builder setCreationDate(long value) {\n \n creationDate_ = value;\n onChanged();\n return this;\n }", "void setCreateDate(final Date creationDate);", "public void setCreatedDate(Timestamp value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "public void setCreated(java.util.Date value)\r\n {\r\n getSemanticObject().setDateProperty(swb_created, value);\r\n }", "void setCreateDate(Date date);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreationDate(Date creationDate) {\r\n this.creationDate = creationDate;\r\n }", "public Date getCreationDate()\n {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public void setCreationDate(Date creationDate)\r\n {\r\n m_creationDate = creationDate;\r\n }", "public void setCreateDate(Date createDate) { this.createDate = createDate; }", "public void setCreated(Date v) \n {\n \n if (!ObjectUtils.equals(this.created, v))\n {\n this.created = v;\n setModified(true);\n }\n \n \n }", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public void setCreateDate(String value) {\n this.createDate = value;\n }", "public void setCreationDate(String creationDate) {\r\n\t\tthis.creationDate = new SimpleStringProperty(creationDate);\r\n\t}", "public void setCreatedAt(final SessionContext ctx, final Date value)\n\t{\n\t\tsetProperty(ctx, CREATEDAT,value);\n\t}", "public IBusinessObject setCreationDate(Timestamp creationDate)\n throws ORIOException;", "private void setCreateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(CREATETIME_PROP.get(), value);\n }", "public void setCreationDate(Date creationDate) {\n \n this.creationDate = creationDate;\n\n }", "public Builder setCreateDate(String value) {\n validate(fields()[2], value);\n this.createDate = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"createdAt\")\n public void setCreatedAtDD(Long value) {\n setCreatedAt(new Date(value));\n }", "public Builder setCreationDate(long value) {\n\n creationDate_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "public void setCreationdate(Date creationdate) {\n this.creationdate = creationdate;\n }", "private void setCreatedTime(int value) {\n \n createdTime_ = value;\n }", "public void setCreationDate(Long creationDate)\r\n\t{\r\n\t\tthis.creationDate = creationDate;\r\n\t}", "public void setDate( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), DATE, value);\r\n\t}", "Builder addDateCreated(String value);", "public void setCREATED_DATE(Date CREATED_DATE) {\r\n this.CREATED_DATE = CREATED_DATE;\r\n }", "public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\r\n/* */ }", "Builder addDateCreated(Date value);", "public void setCreationDate(Calendar creationDate) {\n/* 248 */ getCOSObject().setDate(COSName.CREATION_DATE, creationDate);\n/* */ }", "void setDateCreated(final Date dateCreated);", "public void setCreatedAt(Timestamp value) {\n setAttributeInternal(CREATEDAT, value);\n }", "@ApiModelProperty(value = \"An integer containing the creation date and time, in number of seconds\")\n public String getCreationDate() {\n return creationDate;\n }", "public Date getCreatedDate() {\n return (Date) getAttributeInternal(CREATEDDATE);\n }", "@Override\n public String getCreationDate() {\n return creationDate;\n }", "public Date getCreationDate() {\n\n \n return creationDate;\n\n }", "public void setCreationTime(DateTime creationTime) {\n this.created = creationTime;\n }", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "@java.lang.Override\n public long getCreationDate() {\n return creationDate_;\n }", "@Override\n\tpublic void setCreateDate(Date createDate);", "@Override\n\tpublic void setCreateDate(Date createDate);", "public void setCreationDate(final Date creationDate) {\n\t\tthis.creationDate = creationDate;\n\t}", "void setCreationDate( String username, Date creationDate ) throws UserNotFoundException;", "@java.lang.Override\n public long getCreationDate() {\n return creationDate_;\n }", "public void setCreateDate(java.util.Date newVal) {\n if ((newVal != null && this.createDate != null && (newVal.compareTo(this.createDate) == 0)) || \n (newVal == null && this.createDate == null && createDate_is_initialized)) {\n return; \n } \n try {\n this.createDate = (java.util.Date)newVal.clone();\n } catch (Exception e) {\n // do nothing\n }\n\n createDate_is_modified = true; \n createDate_is_initialized = true; \n }", "public static void setDate( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, DATE, value);\r\n\t}", "public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }", "public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }", "public void setCreatedAt(Date date) {\n\t\t\n\t}", "public void setCreationDate(java.util.Date creationDate) {\n this.creationDate = creationDate;\n }", "public Builder setCreateDate(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n createDate_ = value;\n onChanged();\n return this;\n }", "public void setCreateddate( Date createddate )\n {\n this.createddate = createddate;\n }", "public void setCreatedDate(Date createdDate) {\r\n this.createdDate = createdDate;\r\n }", "public void setCreatedDate(Date createdDate) {\r\n this.createdDate = createdDate;\r\n }", "@Override\n protected String getCreationDate() {\n try {\n if (exists() && ((Node) item).hasProperty(JcrConstants.JCR_CREATED)) {\n long creationTime = ((Node) item).getProperty(JcrConstants.JCR_CREATED).getValue().getLong();\n return HttpDateFormat.creationDateFormat().format(new Date(creationTime));\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:created property\");\n }\n\n // fallback\n return super.getCreationDate();\n }", "public Date getCreationDate()\r\n {\r\n return (m_creationDate);\r\n }", "public Timestamp getCreatedDate() {\n return (Timestamp)getAttributeInternal(CREATEDDATE);\n }", "public void setCreatorDate(Date creatorDate) {\n this.creatorDate = creatorDate;\n }", "public void setCreatedOn(DateTime createdOn);", "Date getCreationDate();", "public Timestamp getCreatedDate() {\n return (Timestamp) getAttributeInternal(CREATEDDATE);\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }", "public void setCreated(Date created) {\n this.created = created;\n }" ]
[ "0.78441215", "0.78441215", "0.78441215", "0.78441215", "0.78441215", "0.78441215", "0.78441215", "0.78441215", "0.76671463", "0.75199795", "0.7439033", "0.74124986", "0.74124986", "0.72860867", "0.72721815", "0.7267269", "0.7267269", "0.725362", "0.72436506", "0.72033167", "0.7200213", "0.71758235", "0.7139954", "0.7123192", "0.7108293", "0.7108293", "0.7108293", "0.70841646", "0.70508564", "0.70508564", "0.70508564", "0.7019203", "0.6973048", "0.6947636", "0.6931022", "0.69239455", "0.68951154", "0.68951154", "0.68951154", "0.68838453", "0.6875769", "0.68714434", "0.6845583", "0.68154883", "0.6804021", "0.67995596", "0.6795868", "0.6795868", "0.6795868", "0.6795868", "0.6795868", "0.6795868", "0.6749663", "0.6742571", "0.6726715", "0.6713619", "0.6689164", "0.66855115", "0.6680903", "0.6675792", "0.6662219", "0.66410214", "0.6634923", "0.66121846", "0.66068846", "0.6591679", "0.6578373", "0.65687084", "0.6562123", "0.6548573", "0.6540262", "0.6540262", "0.65345544", "0.65345544", "0.6528713", "0.6508027", "0.6508027", "0.6503524", "0.6497847", "0.6496298", "0.6492919", "0.649178", "0.6469407", "0.6469407", "0.6455316", "0.64497966", "0.6447907", "0.6433953", "0.64296365", "0.64296365", "0.6414255", "0.64083374", "0.63947225", "0.63924325", "0.6391084", "0.6383783", "0.63813055", "0.6380226", "0.6380226", "0.6380226" ]
0.8054616
0
/ Gets the attribute value for CreatedBy, using the alias name CreatedBy
public Number getCreatedBy() { return (Number)getAttributeInternal(CREATEDBY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedby()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "@java.lang.Override\n public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = s;\n return s;\n }\n }", "public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public User getCreatedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Created_By\");\n\n\t}", "public String getCreatedBy() {\n return this.createdBy;\n }", "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public String createdBy() {\n return this.createdBy;\n }", "public String getCreatedby() {\n return createdby;\n }", "@JsonProperty(\"created_by\")\n@ApiModelProperty(example = \"hello@rockset.com\", value = \"Creator of requested virtual instance.\")\n public String getCreatedBy() {\n return createdBy;\n }", "@Valid\n @JsonProperty(\"createdBy\")\n public CreatedBy getCreatedBy();", "public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}", "public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}", "public com.myconnector.domain.UserData getCreatedBy () {\n\t\treturn createdBy;\n\t}", "@ApiModelProperty(value = \"A string containing the universal identifier DN of the subject that created the policy\")\n public String getCreatedBy() {\n return createdBy;\n }", "public String getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public native final String getCreatedBy() /*-{\n return this[\"@CreatedBy\"];\n }-*/;", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\r\n return createdBy;\r\n }", "public StringFilter getCreatedBy() {\n\t\treturn createdBy;\n\t}", "@ApiModelProperty(value = \"Id of the user who created the record.\")\n public Long getCreatedBy() {\n return createdBy;\n }", "public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\n return createdBy;\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "int getCreatedBy();", "public BoxUser.Info getCreatedBy() {\n return this.createdBy;\n }", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "public int getCreatedBy();", "@AutoEscape\n\tpublic String getCreatedByUser();", "public java.lang.Integer getCreatedby() {\n\treturn createdby;\n}", "public String getCreateBy() {\r\n return createBy;\r\n }", "@Override\n\tpublic java.lang.String getCreatedBy() {\n\t\treturn _locMstLocation.getCreatedBy();\n\t}", "public void setCreatedBy(String createdBy){\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public void setCreatedby( String createdby )\n {\n this.createdby = createdby;\n }", "public void setCreatedBy(java.lang.String createdBy) {\r\n this.createdBy = createdBy;\r\n }", "@Override\r\n\tpublic FaqUser getCreatedBy() {\n\t\treturn this.createdBy;\r\n\t}", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public void setCreatedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.createdBy, v))\n {\n this.createdBy = v;\n setModified(true);\n }\n \n \n }", "public String getCreateBy() {\r\n\t\treturn createBy;\r\n\t}", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(final CreatedBy createdBy);", "public void setCreatedBy(Number value)\n {\n setAttributeInternal(CREATEDBY, value);\n }", "@Override\n protected String getCreatorDisplayName() {\n try {\n // DAV:creator-displayname -> use jcr:createBy if present.\n if (exists() && ((Node) item).hasProperty(Property.JCR_CREATED_BY)) {\n return ((Node) item).getProperty(Property.JCR_CREATED_BY).getString();\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:createdBy property\");\n }\n\n // fallback\n return super.getCreatorDisplayName();\n }", "public Timestamp getCreatedByTimestamp() {\n\t\treturn new Timestamp(this.createdByTimestamp.getTime());\n\t}", "public void setCreatedBy(String createdBy) {\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public void setCreatedBy(User createdBy)\n\t{\n\t\t this.addKeyValue(\"Created_By\", createdBy);\n\n\t}", "public void setCreatedBy( Integer createdBy ) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }" ]
[ "0.7822937", "0.7822937", "0.7822937", "0.7822937", "0.77975947", "0.77925074", "0.77925074", "0.77925074", "0.7597952", "0.7597952", "0.75792164", "0.75792164", "0.75792164", "0.75792164", "0.75792164", "0.75792164", "0.7385203", "0.73755175", "0.7343736", "0.7343736", "0.7343736", "0.7331741", "0.73200667", "0.73200333", "0.7295982", "0.7295982", "0.7289918", "0.72808504", "0.72635275", "0.72625035", "0.7253061", "0.72446054", "0.7243367", "0.7206928", "0.7206928", "0.7206928", "0.7206928", "0.7180698", "0.7177439", "0.7171675", "0.71282136", "0.71278954", "0.712409", "0.7064559", "0.7064559", "0.7064559", "0.7064559", "0.70375085", "0.6967357", "0.6941236", "0.6940986", "0.69310385", "0.68917567", "0.6853865", "0.6853865", "0.6853865", "0.6853865", "0.6853865", "0.6853865", "0.6853865", "0.680828", "0.68040633", "0.675454", "0.675454", "0.675454", "0.675454", "0.675454", "0.675454", "0.675454", "0.675454", "0.675454", "0.675454", "0.675454", "0.675454", "0.675454", "0.6708584", "0.66900367", "0.6635427", "0.65678644", "0.655583", "0.6535868", "0.6492763", "0.6491826", "0.6485344", "0.6485344", "0.6485344", "0.6485344", "0.64761335", "0.64439374", "0.64380425", "0.64380425", "0.64372694", "0.6433391", "0.64295673", "0.6426051", "0.64230365", "0.6391789", "0.6381362", "0.6377348", "0.6377348" ]
0.7687978
8
/ Sets value as the attribute value for CreatedBy
public void setCreatedBy(Number value) { setAttributeInternal(CREATEDBY, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "public void setCreatedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.createdBy, v))\n {\n this.createdBy = v;\n setModified(true);\n }\n \n \n }", "public void setCreatedBy(final CreatedBy createdBy);", "public Builder setCreatedBy(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n createdBy_ = value;\n onChanged();\n return this;\n }", "void setCreateby(final U createdBy);", "public void setCreatedBy (com.myconnector.domain.UserData createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "@java.lang.Override\n public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = s;\n return s;\n }\n }", "public void setCreatedBy(User createdBy)\n\t{\n\t\t this.addKeyValue(\"Created_By\", createdBy);\n\n\t}", "public void setCreatedby( String createdby )\n {\n this.createdby = createdby;\n }", "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "public void setCreatedBy(String createdBy){\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "@JsonProperty(\"created_by\")\n@ApiModelProperty(example = \"hello@rockset.com\", value = \"Creator of requested virtual instance.\")\n public String getCreatedBy() {\n return createdBy;\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public void setCreatedBy(java.lang.String createdBy) {\r\n this.createdBy = createdBy;\r\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedby() {\n return createdby;\n }", "@ApiModelProperty(value = \"A string containing the universal identifier DN of the subject that created the policy\")\n public String getCreatedBy() {\n return createdBy;\n }", "public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\r\n this.createdBy = createdBy;\r\n }", "public String getCreatedBy() {\n return this.createdBy;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Number getCreatedBy()\n {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }", "public void setCreatedBy( Integer createdBy ) {\n this.createdBy = createdBy;\n }", "public String getCreatedBy() {\n return createdBy;\n }", "public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "@ApiModelProperty(value = \"Id of the user who created the record.\")\n public Long getCreatedBy() {\n return createdBy;\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }", "public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}", "public void setCreatedBy(String createdBy) {\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedby(String createdby)\n {\n this.createdby.set(createdby.trim().toUpperCase());\n }", "public void setCreatedByUser(String createdByUser);", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public String createdBy() {\n return this.createdBy;\n }", "public com.myconnector.domain.UserData getCreatedBy () {\n\t\treturn createdBy;\n\t}", "public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy == null ? null : createdBy.trim();\n }", "public String getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public String getCreatedby()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public void setCreatedBy(String createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "public void setCreatedBy(StringFilter createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "@Valid\n @JsonProperty(\"createdBy\")\n public CreatedBy getCreatedBy();", "public void setCreatedBy(Long createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public void setCreatedby(java.lang.Integer newValue) {\n\tthis.createdby = newValue;\n}", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\n return createdBy;\n }", "public StringFilter getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public User getCreatedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Created_By\");\n\n\t}", "public String getCreateBy() {\r\n return createBy;\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }", "public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }" ]
[ "0.83642095", "0.83642095", "0.83642095", "0.83642095", "0.83642095", "0.83642095", "0.83642095", "0.7991223", "0.7991223", "0.7991223", "0.7991223", "0.7991223", "0.7991223", "0.7991223", "0.7991223", "0.7958585", "0.7786197", "0.7719756", "0.7599392", "0.7499623", "0.74637234", "0.74571043", "0.7393479", "0.73674417", "0.73468864", "0.733883", "0.73362947", "0.73362947", "0.73362947", "0.7304288", "0.7304288", "0.7304288", "0.7304245", "0.7291322", "0.7291322", "0.7291322", "0.7291322", "0.72867453", "0.72799826", "0.7277304", "0.7262267", "0.7250624", "0.7248361", "0.7242692", "0.72278935", "0.7207277", "0.7201443", "0.71827996", "0.71827996", "0.71827996", "0.71827996", "0.71827996", "0.71827996", "0.71731746", "0.7172986", "0.7172986", "0.7172986", "0.7168835", "0.7164563", "0.7161413", "0.7161413", "0.7151448", "0.7150904", "0.714936", "0.7145328", "0.7145328", "0.71420705", "0.7136167", "0.71359825", "0.7119818", "0.7119818", "0.71196765", "0.71063966", "0.7105293", "0.7100286", "0.7100286", "0.7100286", "0.7100286", "0.7037524", "0.70353603", "0.7032503", "0.7032503", "0.7032503", "0.7032503", "0.7029574", "0.698876", "0.6974963", "0.696365", "0.69253814", "0.6889453", "0.6889453", "0.6889453", "0.6889453", "0.6868168", "0.68513334", "0.68404925", "0.68398464", "0.6822691", "0.6820005", "0.6820005" ]
0.81837034
7
/ Gets the attribute value for LastUpdateLogin, using the alias name LastUpdateLogin
public Number getLastUpdateLogin() { return (Number)getAttributeInternal(LASTUPDATELOGIN); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Number getLastUpdateLogin() {\n return (Number)getAttributeInternal(LASTUPDATELOGIN);\n }", "public Number getLastUpdateLogin() {\n return (Number)getAttributeInternal(LASTUPDATELOGIN);\n }", "public Number getLastUpdateLogin() {\n return (Number)getAttributeInternal(LASTUPDATELOGIN);\n }", "public Number getLastUpdateLogin() {\n return (Number) getAttributeInternal(LASTUPDATELOGIN);\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy()\n {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastUpdateUser() {\n return lastUpdateUser;\n }", "public String getLastUpdateUser() {\n return lastUpdateUser;\n }", "protected String getValueOfColumnLastUpdateUser() {\n return SessionContext.open().getUid();\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\r\n return (Number) getAttributeInternal(LASTUPDATEDBY);\r\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public Date getLastUpdateDate()\n {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public String getLastupdateby() {\n return lastupdateby;\n }", "public String getLastLogin() { \n return this.lastLogin; \n }", "public void setLastUpdateLogin(Number value)\n {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Timestamp getLastUpdatedDate() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDDATE);\n }", "public Timestamp getLastUpdatedAt() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDAT);\n }", "Date getLastLogin();", "public long getLastUpdateDate() {\n return (Long)content.get(LAST_UPDATE_DATE);\n }", "public String getLastUpdateBy() {\r\n\t\treturn lastUpdateBy;\r\n\t}", "Date getLastLoginDate();", "public long getLastLoginTime()\n\t{\n\t\treturn m_lastLogin;\n\t}", "public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }", "long getLastUpdatedTime();", "public long getDateRecordLastUpdated(){\n return dateRecordLastUpdated;\n }", "public int getLastLogin() {\n\t \t return lastLogin; \n\t}", "public String getLastUpdate() {\n return lastUpdate;\n }", "public java.util.Calendar getLast_login() {\n return last_login;\n }", "public String getUpdatedby() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public long getLastUpdate() {\n return this.lastUpdate;\n }", "public Date getLastUpdatedDate() {\r\n return (Date) getAttributeInternal(LASTUPDATEDDATE);\r\n }", "public String getLastUpdated() {\n return lastUpdated;\n }", "public void setLastUpdateLogin(Number value) {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "public void setLastUpdateLogin(Number value) {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "public void setLastUpdateLogin(Number value) {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "public void setLastUpdateLogin(Number value) {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "public String getLastUpdateDate() {\r\n\t\treturn lastUpdateDate;\r\n\t}", "@Override\n\tpublic Date getLastLogin() {\n\t\treturn this.lastLogin;\n\t}", "public String getLastUpdateString() {\r\n return getLastUpdateString(lastUpdatedTime);\r\n }", "public Long getLastModifiedUser() {\n\t\treturn this.lastModifiedUser;\n\t\t\n\t}", "public Date getLastUpdate() {\r\n return lastUpdate;\r\n }", "public String getLastLoginip() {\n return lastLoginip;\n }", "public Timestamp getLastUpdated() {\n return lastUpdated;\n }", "public java.lang.String getDate_last_update() {\n return date_last_update;\n }", "long getLoginAt();", "public Date getLastLoginTime() {\r\n return lastLoginTime;\r\n }", "@ApiModelProperty(required = false, value = \"epoch timestamp in milliseconds\")\n public Long getLastUpdated() {\n return lastUpdated;\n }", "public String getLastUpdatedBy() {\n return lastUpdatedBy;\n }", "public long getLastLoginTime() {\n\t\t\treturn lastLoginTime;\n\t\t}", "public Date getLastLoginTime() {\n return lastLoginTime;\n }", "public Date getLastLoginTime() {\n return lastLoginTime;\n }", "public Date getLastLoginTime() {\n return lastLoginTime;\n }", "public Date getLastupdatedate() {\n return lastupdatedate;\n }", "public long getLastUpdateTs() {\n return lastUpdateTs;\n }", "Date getForLastUpdate();", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getLastName() {\n return (String)getAttributeInternal(LASTNAME);\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public String getLastMaintainedUserNameFromLDAP() {\n \treturn getLastMaintainedUserName(position);\n }", "public String getLastUpdatedString() {\n return lastUpdated.toString();\n }", "public Integer getLastUpdate() {\n return lastUpdate;\n }", "public Date getLastUpdateDate() {\r\n return lastUpdateDate;\r\n }", "public long getLastUpdatedTime() {\n return lastUpdatedTime;\n }", "public String getLastUpdateAuthor() {\n return (String)content.get(LAST_UPDATE_AUTHOR);\n }", "public String getUpdatedBy() {\n return (String) getAttributeInternal(UPDATEDBY);\n }", "public String getLastLoginIp() {\r\n return lastLoginIp;\r\n }", "public Date getLastUpdateDate() {\n return lastUpdateDate;\n }", "public long getLastModified()\r\n/* 283: */ {\r\n/* 284:424 */ return getFirstDate(\"Last-Modified\");\r\n/* 285: */ }", "Date getLastServerUpdate();", "public String getMapLastUpdateDt() {\n\t\treturn this.mapLastUpdateDt;\n\t}", "public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}", "@Schema(example = \"1592180992\", required = true, description = \"Time when labeling information was last changed (timestamp)\")\n public Long getUpdatedAt() {\n return updatedAt;\n }", "public Date getLastUpdateDt() {\n\t\treturn this.lastUpdateDt;\n\t}", "public String getLastLoginDescription() {\r\n\t\treturn lastLoginDescription;\r\n\t}", "@java.lang.Override\n public long getLoginAt() {\n return loginAt_;\n }", "public native final String getLastModifiedBy() /*-{\n return this[\"@LastModifiedBy\"];\n }-*/;", "public String getCacheLastUpdated() {\n return cacheLastUpdated;\n }", "public String lastupdated() throws Exception{\r\n\t\ttry {\r\n\t\t\telement = driver.findElement(lastupdated);\r\n\t\t\tStr_lastupdated = element.getText();\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new Exception(\"LAST UPDATED NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t}\r\n\t\treturn Str_lastupdated;\r\n\t}", "public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }", "@java.lang.Override\n public long getLoginAt() {\n return loginAt_;\n }" ]
[ "0.78845984", "0.78845984", "0.78845984", "0.7857442", "0.7022542", "0.7022542", "0.70214444", "0.6937622", "0.6937622", "0.6888901", "0.68831176", "0.68831176", "0.68831176", "0.68831176", "0.68831176", "0.68831176", "0.68831176", "0.68130326", "0.680351", "0.680351", "0.6742419", "0.670646", "0.6679693", "0.65278745", "0.65247655", "0.65247655", "0.65247655", "0.65247655", "0.65247655", "0.65247655", "0.65247655", "0.6514664", "0.64778113", "0.6472249", "0.6437295", "0.6436666", "0.6426218", "0.64194536", "0.63913727", "0.63913727", "0.63518304", "0.6313312", "0.63118285", "0.6302025", "0.6287361", "0.628546", "0.6279487", "0.6278707", "0.6257307", "0.6239677", "0.6239677", "0.6239677", "0.6239677", "0.6237205", "0.62271196", "0.6211993", "0.62110674", "0.616652", "0.6154699", "0.61509645", "0.61466074", "0.61462027", "0.61348695", "0.6127494", "0.6122408", "0.61063087", "0.609246", "0.609246", "0.609246", "0.60913366", "0.6086139", "0.60852903", "0.60743225", "0.60743225", "0.60644066", "0.6063926", "0.6063926", "0.6063926", "0.60480165", "0.6046346", "0.60085064", "0.6005948", "0.6000012", "0.59878266", "0.5983499", "0.59775764", "0.5959583", "0.5956402", "0.5946186", "0.5941021", "0.5928953", "0.5917781", "0.5913449", "0.5909619", "0.5908991", "0.58851415", "0.5880964", "0.5858766", "0.58554626", "0.5843784" ]
0.80151206
0
/ Sets value as the attribute value for LastUpdateLogin
public void setLastUpdateLogin(Number value) { setAttributeInternal(LASTUPDATELOGIN, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLastUpdateLogin(Number value) {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "public void setLastUpdateLogin(Number value) {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "public void setLastUpdateLogin(Number value) {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "public void setLastUpdateLogin(Number value) {\n setAttributeInternal(LASTUPDATELOGIN, value);\n }", "public Number getLastUpdateLogin()\n {\n return (Number)getAttributeInternal(LASTUPDATELOGIN);\n }", "void setLastLogin(Date lastLogin);", "public void setLastLogin() {\r\n game.settings.setLastSeen(strDate);\r\n }", "public Number getLastUpdateLogin() {\n return (Number)getAttributeInternal(LASTUPDATELOGIN);\n }", "public Number getLastUpdateLogin() {\n return (Number)getAttributeInternal(LASTUPDATELOGIN);\n }", "public Number getLastUpdateLogin() {\n return (Number)getAttributeInternal(LASTUPDATELOGIN);\n }", "public Number getLastUpdateLogin() {\n return (Number) getAttributeInternal(LASTUPDATELOGIN);\n }", "void setLastUpdatedTime();", "void updateLastLogin()\n throws Exception;", "public void setLastLogin(int lastLogin) { \n\t\t this.lastLogin = lastLogin; \n\t}", "public void setLastLoginTime(long t)\n\t{\n\t\tm_lastLogin = t;\n\t}", "public void setLastLogin(LocalDateTime lastLogin) {\r\n\t\tthis.lastLogin = lastLogin;\r\n\t\tDateTimeFormatter dtFormat = DateTimeFormatter.ofPattern(\"h:mm:ss a\");\r\n\t\tlastLoginDescription = lastLogin.format(dtFormat);\r\n\t}", "public void setLastUpdateDate(Date value)\n {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastLogin(String lastLogin) {\n String oLastLogin = getLastLogin();\n this.lastLogin = lastLogin;\n\n firePropertyChange(PROPNAME_LASTLOGIN, oLastLogin, this.lastLogin);\n }", "public void setLastLoginTime(Date lastLoginTime) {\r\n this.lastLoginTime = lastLoginTime;\r\n }", "void setLastAccessDate();", "@Override\r\n\tpublic void updateLastLogin(Wx_BindCustomer wx_BindCustomer) {\n\t\tshopuserDao.updateLastLogin(wx_BindCustomer);\r\n\t}", "protected String getValueOfColumnLastUpdateUser() {\n return SessionContext.open().getUid();\n }", "@Override\n\tpublic Date getLastLogin() {\n\t\treturn this.lastLogin;\n\t}", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateUser(String lastUpdateUser) {\n this.lastUpdateUser = lastUpdateUser;\n }", "public void setLastLoginTime(Date lastLoginTime) {\n this.lastLoginTime = lastLoginTime;\n }", "public void setLastLoginTime(Date lastLoginTime) {\n this.lastLoginTime = lastLoginTime;\n }", "public void setLastLoginTime(Date lastLoginTime) {\n this.lastLoginTime = lastLoginTime;\n }", "@Modifying\r\n @Query(value = \"update BaseUser u set u.lastLogin = CURRENT_TIMESTAMP where u.credential.username=:username\")\r\n @org.springframework.data.couchbase.core.query.Query(value = \"update BaseUser u set u.lastLogin = \" +\r\n \"CURRENT_TIMESTAMP where u.credential.username=:username\")\r\n void updateLastLogin(@Param(\"username\") String username);", "public String getLastLogin() { \n return this.lastLogin; \n }", "public void setLastUpdatedBy(Number value)\n {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedAt(Timestamp value) {\n setAttributeInternal(LASTUPDATEDAT, value);\n }", "@java.lang.Override\n public long getLoginAt() {\n return loginAt_;\n }", "public CorePlayer setLastLogin(final Date lastLogin) {\n\t\tGuard.ArgumentNotNull(lastLogin, \"lastLogin\");\n\t\t\n\t\tthis.lastLogin = lastLogin;\n\t\treturn this;\n\t}", "Date getLastLogin();", "void updateLastLogin(@Param(\"key\") int key);", "public Date getLastLoginTime() {\r\n return lastLoginTime;\r\n }", "public Date getLastUpdateDate()\n {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public String getLastUpdateUser() {\n return lastUpdateUser;\n }", "public String getLastUpdateUser() {\n return lastUpdateUser;\n }", "@java.lang.Override\n public long getLoginAt() {\n return loginAt_;\n }", "@Override\n\tpublic AuthUser update(AuthUser knownUser) {\n\t\tUser.setLastLoginDate(knownUser);\n\t\treturn knownUser;\n\t}", "public void setLastUpdate(String lastUpdate) {\n this.lastUpdate = lastUpdate;\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLast_login(java.util.Calendar last_login) {\n this.last_login = last_login;\n }", "public void setLastUpdateUser(String lastUpdateUser) {\n this.lastUpdateUser = lastUpdateUser == null ? null : lastUpdateUser.trim();\n }", "public void setLastContactsUpdate() {\n long time = new Date().getTime();\n preferences.edit()\n .putLong(LAST_CONTACTS_UPDATE, time)\n .apply();\n }", "public void setLastUpdate( Date lastUpdate ) {\r\n this.lastUpdate = lastUpdate;\r\n }", "public Date getLastLoginTime() {\n return lastLoginTime;\n }", "public Date getLastLoginTime() {\n return lastLoginTime;\n }", "public Date getLastLoginTime() {\n return lastLoginTime;\n }", "Date getLastLoginDate();", "public void setLastUpdatedDate(Date value) {\r\n setAttributeInternal(LASTUPDATEDDATE, value);\r\n }", "public void setLastUpdate(long lastUpdate) {\n this.lastUpdate = lastUpdate;\n }", "public int getLastLogin() {\n\t \t return lastLogin; \n\t}", "public long getLastLoginTime()\n\t{\n\t\treturn m_lastLogin;\n\t}", "public void setGmtLogin(Date gmtLogin) {\n this.gmtLogin = gmtLogin;\n }", "public void setLastLoginTime(long lastLoginTime) {\n\t\t\tthis.lastLoginTime = lastLoginTime;\n\t\t}", "public Number getLastUpdatedBy()\n {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public void setLastUpdated(long lastUpdated) {\n\t\tassert lastUpdated > this.lastUpdated; \n\t\tthis.lastUpdated = lastUpdated;\n\t}", "@Override\n\tpublic void setLastUpdatedTime(Date lastUpdated) {\n\n\t}", "public void setLastUpdatedBy(Number value) {\r\n setAttributeInternal(LASTUPDATEDBY, value);\r\n }", "public java.util.Calendar getLast_login() {\n return last_login;\n }", "public Builder setLoginAt(long value) {\n\n loginAt_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "public long getLastLoginTime() {\n\t\t\treturn lastLoginTime;\n\t\t}", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public static void setAccountsLastModified(long timestamp) {\r\n log.debug(\"Setting accountsLastModified to \" + timestamp);\r\n accountsLastModified = timestamp;\r\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdated(String lastUpdated) {\n this.lastUpdated = lastUpdated;\n }", "private void setUpdateUser(entity.User value) {\n __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value);\n }", "public void setLastUpdUserId(Integer value) {\n set(6, value);\n }", "void setAllSeenByLogin(String login);", "public void setLoginTime(Date loginTime) {\n this.loginTime = loginTime;\n }", "public void setLoginTime(Date loginTime) {\n this.loginTime = loginTime;\n }", "public String getLastupdateby() {\n return lastupdateby;\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }" ]
[ "0.7849504", "0.7849504", "0.7849504", "0.7849504", "0.72254", "0.71797454", "0.7143013", "0.7115444", "0.7115444", "0.7115444", "0.70476353", "0.6803865", "0.6681802", "0.6668467", "0.6631264", "0.6589052", "0.652097", "0.6498105", "0.63421565", "0.63137734", "0.6299253", "0.6293628", "0.629016", "0.6274988", "0.6274988", "0.6274988", "0.6274988", "0.6274988", "0.6274988", "0.6274988", "0.6274988", "0.62674236", "0.625448", "0.625448", "0.625448", "0.6236125", "0.61812764", "0.61612016", "0.6148108", "0.61445844", "0.6137459", "0.6134291", "0.6105896", "0.61029947", "0.6102051", "0.60876507", "0.60876507", "0.60862994", "0.60682106", "0.6056763", "0.6056665", "0.6056665", "0.6030143", "0.6029591", "0.6028916", "0.60222393", "0.60209835", "0.60209835", "0.60209835", "0.6020812", "0.60122514", "0.60075855", "0.5999766", "0.5987823", "0.59867716", "0.59860325", "0.59826165", "0.5974564", "0.5971702", "0.5949436", "0.59475553", "0.5937349", "0.5930571", "0.5911824", "0.5911824", "0.5911824", "0.5911824", "0.5911824", "0.5911824", "0.5911824", "0.58825415", "0.5879879", "0.5879879", "0.5879879", "0.5879879", "0.5879879", "0.5879879", "0.5879879", "0.5879879", "0.5879879", "0.58796334", "0.58776295", "0.5864338", "0.5856896", "0.5855185", "0.5855185", "0.58534074", "0.58509755", "0.58509755", "0.58509755" ]
0.8127829
0
/ Gets the attribute value for AttributeCategory, using the alias name AttributeCategory
public String getAttributeCategory() { return (String)getAttributeInternal(ATTRIBUTECATEGORY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getIntAttributeCategory() {\n return (String) getAttributeInternal(INTATTRIBUTECATEGORY);\n }", "public String getExtAttributeCategory() {\n return (String) getAttributeInternal(EXTATTRIBUTECATEGORY);\n }", "public Attribute fetchAttribute(String key, String value);", "Attribute getAttribute();", "java.lang.String getAttribute();", "Object getAttribute(int attribute);", "int getCategoryValue();", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public String getAttribute(String name);", "String getAttribute();", "public Object getAttribute(String name);", "public tudresden.ocl20.core.jmi.ocl.commonmodel.Attribute lookupAttribute(java.lang.String attName) {\n Iterator featuresIt = getFeature().iterator();\n while(featuresIt.hasNext()){\n Feature feature = (Feature) featuresIt.next();\n if(feature instanceof Attribute && feature.getNameA().equals(attName)){\n return (Attribute) feature;\n }\n }\n Iterator parentsIt = this.getParents().iterator();//getGeneralization().iterator();\n while(parentsIt.hasNext()){\n Classifier parent = (Classifier) parentsIt.next();//((GeneralizationImpl) parentsIt.next()).getParent();\n Attribute a = (Attribute) parent.lookupAttribute(attName);\n if(a != null){\n return a;\n }\n }\n \n return null;\n }", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "String getCategory();", "String getCategory();", "private Object getAnomizedCategory() {\r\n\tString categorie = (String) record.get(\"categorie\");\r\n\tif (categorie != null) {\r\n\t switch (categorie) {\r\n\t case \"AD\":\r\n\t case \"CO\":\r\n\t case \"FI\":\r\n\t case \"IBL\":\r\n\t case \"KI\":\r\n\t case \"KL\":\r\n\t case \"VO\":\r\n\t\tbreak;\r\n\t default:\r\n\t\tcategorie = null;\r\n\t\tbreak;\r\n\t }\r\n\t}\r\n\r\n\treturn categorie;\r\n }", "public String getCategory()\r\n {\r\n return (m_category);\r\n }", "public int getCategoryValue() {\n return category_;\n }", "public String getCatName() {\n return (String)getAttributeInternal(CATNAME);\n }", "public final Class<? extends Attribute> getCategory() {\n/* 219 */ return (Class)SheetCollate.class;\n/* */ }", "public Attribute fetchAttributeById(int attribId);", "public Object getAttribute(String attribute_name) \n throws AttributeNotFoundException,\n MBeanException,\n ReflectionException {\n if (attribute_name == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Attribute name cannot be null\"), \n \"Cannot invoke a getter of \" + dClassName + \" with null attribute name\");\n }\n\n attribute_name = RunTimeSingleton.decode(attribute_name, \"US-ASCII\"); // HtmlAdapter made from info/admin -> info%2Fadmin\n // \"logging/org.xmlBlaster.engine.RequestBroker\"\n if (attribute_name.startsWith(\"logging/\"))\n attribute_name = attribute_name.substring(8); // \"org.xmlBlaster.engine.RequestBroker\"\n\n try {\n Level level = this.glob.getLogLevel(attribute_name);\n return level.toString();\n }\n catch (ServiceManagerException e) {\n if (attribute_name == null || attribute_name.length() == 0 || \"logging/\".equals(attribute_name)) return Level.INFO.toString();\n throw(new AttributeNotFoundException(\"Cannot find '\" + attribute_name + \"' attribute in \" + dClassName));\n }\n }", "public int getCategoryValue() {\n return category_;\n }", "public EntityCategory getCategory ( ) {\n\t\treturn extract ( handle -> handle.getCategory ( ) );\n\t}", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "Object getAttribute(String key);", "Object getAttribute(String key);", "public String getName(){\n return category;\n }", "Category getCategoryByName(String categoryName);", "@java.lang.Override public int getCategoryValue() {\n return category_;\n }", "@AutoEscape\n public String getCategory();", "public AnnotationCategory getCategory () {\n\t\treturn category;\n\t}", "public String getCategory();", "com.google.ads.googleads.v14.services.AudienceInsightsCategory getCategory();", "@java.lang.Override public int getCategoryValue() {\n return category_;\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "String getDomainObjectLabel(AttributeValue attributeValue);", "public int getCategory(){\n\t\treturn this.cat;\n\t}", "public TLAttribute getAttribute(String attributeName);", "public String getCategory(){\r\n\t\treturn this.category;\r\n\t}", "public String getCategory()\n {\n return (String) getProperty(PropertyIDMap.PID_CATEGORY);\n }", "public abstract String getCategory();", "public abstract String getCategory();", "public long getCategory() {\r\n\t\treturn this.category;\r\n\t}", "public Object getAttribute(Object key);", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public String getNotiCategory() {\r\n return (String) getAttributeInternal(NOTICATEGORY);\r\n }", "public String getCategCode() {\n return (String) getAttributeInternal(CATEGCODE);\n }", "public java.lang.String getCategory() {\n return category;\n }", "public String getCategory() {\n return this.category;\n }", "public String getAttributeValue(Node node, String attributeName) throws Exception;", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "public String category() {\n return this.category;\n }", "public String category() {\n return this.category;\n }", "public String getCategory() {\r\n return category;\r\n }", "public HbAttributeInternal getAttribute(String name);", "CodeType getCategory();", "public String getCategory() {\n return this.category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategoryName() {\n return category.getName();\n }", "public CategorySelDTO getCategory() {\r\n\t\ttype(ConfigurationItemType.CATEGORY);\r\n\t\treturn categoryValue;\r\n\t}", "public String getAttribute() {\n return attribute;\n }", "public String getCategory() {\t//TODO - change to array list of categories\n\t\treturn category;\n\t}", "public Integer getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public String getCategory(String packageName) throws Exception {\n\t\tString result = null;\n\t\tsynchronized(mappingLock) {\n\t\t\tassertCache();\n\t\t\tresult = packageMapping.get(packageName);\n\t\t}\n\t\treturn result;\n\t}", "public String getCategory()\n {\n return category;\n }", "public Object get(String aName) { return _attrMap.get(aName); }", "public int getCategory() {\r\n\t\treturn category;\r\n\t}", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public String getCategory() {\n return category;\n }", "public Category getCategory();", "public String getCategoryKey() {\n return getCategory().getWordVal();\n }", "public String getAttribute(String key) {\n return attributes.get(key);\n }", "public String getCategory()\n\t{\n\t\treturn category;\n\t}", "public String getAttribute(String attributeName)\n\t{\n\t\treturn attributes.get(attributeName);\n\t}", "Category getByName(String name);", "public java.lang.Integer getAdditionalCategoryCat() {\r\n return additionalCategoryCat;\r\n }", "public String getCategory() {\n return mCategory;\n }", "public Object getAttribute(Object key) {\n return getAttributes().get(key);\n }", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "public ItemCategory getCategory();", "public String getProductCategory() {\n return (String)getAttributeInternal(PRODUCTCATEGORY);\n }", "String getAttributeStringValue(Object attr);", "private String getAttributeValue(final Attribute attribute) {\n\t List<String> values = this.getAttributeValues(attribute);\n\t if (values.size()>0) {\n\t return values.get(0);\n\t } else {\n\t return \"\";\n\t }\n\t}", "public String getAttribute(final String attributeLocator);", "public String getCat() {\n\t\treturn this.cat;\n\t}", "public Attribute getAttributeByName(String name){\n for (Attribute a : attributeList){\n if (a.getAttributeName().equals(name))\n return a;\n }\n return null;\n }", "public synchronized Object getAttribute(String key) {\n return attributes.get(key);\n }", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }" ]
[ "0.67913675", "0.64737356", "0.64312303", "0.64263356", "0.6404815", "0.6389907", "0.6358127", "0.62720615", "0.62720615", "0.62720615", "0.6247175", "0.6222443", "0.62107223", "0.6199868", "0.6160711", "0.61440915", "0.61229175", "0.61229175", "0.6107393", "0.608479", "0.60814327", "0.6069306", "0.60668606", "0.60645753", "0.6060458", "0.59719694", "0.5971008", "0.59663796", "0.5965984", "0.5965984", "0.59386253", "0.5924554", "0.59146255", "0.5911791", "0.59035826", "0.58939433", "0.5892247", "0.5853832", "0.58479756", "0.5844046", "0.5843992", "0.58330464", "0.58310235", "0.5820976", "0.5819947", "0.5819947", "0.58161944", "0.581067", "0.58028257", "0.5800992", "0.57997376", "0.5799175", "0.57961506", "0.57902956", "0.57872707", "0.5761906", "0.5761906", "0.5739907", "0.57395923", "0.5733849", "0.57324505", "0.5732213", "0.5726798", "0.57221925", "0.57130766", "0.5711618", "0.57115155", "0.5709638", "0.5709638", "0.57073015", "0.5702658", "0.5686329", "0.5679398", "0.5669911", "0.5668751", "0.5668751", "0.5668751", "0.5668751", "0.5668751", "0.5668751", "0.5668751", "0.5665835", "0.56656504", "0.5664281", "0.5662575", "0.5648274", "0.5636154", "0.56342036", "0.5633502", "0.5623204", "0.56156063", "0.5615053", "0.5602154", "0.5600991", "0.55993384", "0.55926234", "0.55825585", "0.55825084", "0.5577615", "0.55769676" ]
0.7203007
0
/ Sets value as the attribute value for AttributeCategory
public void setAttributeCategory(String value) { setAttributeInternal(ATTRIBUTECATEGORY, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "void setInternal(ATTRIBUTES attribute, Object iValue);", "protected abstract void setContextAttribute(String name, Object value);", "public void setIntAttributeCategory(String value) {\n setAttributeInternal(INTATTRIBUTECATEGORY, value);\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "public void setExtAttributeCategory(String value) {\n setAttributeInternal(EXTATTRIBUTECATEGORY, value);\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "public void setAttrib(String name, String value);", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "void setAttributes(String attributeName, String attributeValue);", "public AttributeType(AttributeCategory category) {\n setCategory(category);\n }", "void setInt(int attributeValue);", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void setCategory(AttributeCategory category) {\n if (category == null) {\n throw new NullPointerException();\n }\n this.category = category;\n }", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void set(AttributeDefinition attribute, Object value)\n throws UnknownAttributeException, ModificationNotPermitedException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \"cannot be modified with set method\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "public CategoryBuilder setValue(String value)\n {\n fValue = value;\n return this;\n }", "public void setCategory(final Category value)\r\n\t{\r\n\t\tsetCategory( getSession().getSessionContext(), value );\r\n\t}", "public void setAttribute(String name, Object value);", "public int storeAttribute(String key, String value);", "CloudCategory(String value) {\n this.value = value;\n }", "public void processDefinitionAttribute(String name, String value) {\n\t\tcurrentDefinition.setAttribute(name, value);\n\t}", "void setString(String attributeValue);", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "public void set(String attribute, Object value) {\r\n\t\tput(attribute, value);\r\n\t}", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "public static void attribute(String name, Word value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "public void setAttribute(Object key, Object value);", "public static void attribute(String name, String value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public static void attribute(String name, int value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void setValue(final List<String> attrValue) {\r\n if (attrValue != null) {\r\n this.value = attrValue;\r\n }\r\n }", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }", "protected final void addAttribute(final String name, final String value) {\n if(value == null) attributes.remove(name);\n else attributes.put(name, value);\n\t}", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "void updateCategory(String category){}", "@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}", "public void setCategory(final SessionContext ctx, final Category value)\r\n\t{\r\n\t\tsetProperty(ctx, CATEGORY,value);\r\n\t}", "default void putAttribute(ConceptName name, Attribute attribute) {}", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "public void addAttribute(ClassAttribute attributeType, String value)\n\t{\n\t\tif (attributeType.interpretAsInteger)\n\t\t{\n\t\t\tattributes.put(attributeType, new Integer(value));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tattributes.put(attributeType, value);\n\t\t}\n\t}", "private void writeAttribute(CategoryProperties props, IHDF5Writer writer, String path) {\n TableRecords recs = CifPlusUtilities.getInstance().getTableRecordsFromCategoryProperties(props);\r\n TableFields fields = recs.getTableFields();\r\n for (int k = 0; k < recs.getRecordsNum(); ++k) {\r\n for (int i = 0; i < fields.getFieldNum(); i++) {\r\n if (fields.getDataType(i) == Global.DATA_STRING) {\r\n writer.string().setArrayAttr(path, fields.getName(i), recs.getRecordString(k, i));\r\n }\r\n }\r\n }\r\n }", "public Builder setCategoryValue(int value) {\n category_ = value;\n onChanged();\n return this;\n }", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "public void setAttribute3(String value)\n {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public Attribute_New(String _name, String _value)\n {\n name = _name;\n\n List singleAttributList = new ArrayList<String>();\n singleAttributList.add(_value);\n\n }", "public void setNotiCategory(String value) {\r\n setAttributeInternal(NOTICATEGORY, value);\r\n }", "public GraphAttribute(V value) {\n Rules.checkAttributeValue(value);\n this.value = value;\n this.valueClass = value.getClass();\n }", "private static String setAttributesForStoring( Value value, Node node )\n\t{\n\t\tNamedNodeMap map = node.getAttributes();\n\t\tString type = \"\";\n\t\tif ( map != null ) {\n\t\t\tNode attr;\n\t\t\tfor( int i = 0; i < map.getLength(); i++ ) {\n\t\t\t\tattr = map.item( i );\n\t\t\t\tif ( !attr.getNodeName().equals( JOLIE_TYPE_ATTRIBUTE ) ) { // do not consider attribute type\n\t\t\t\t\tgetAttribute( value, (attr.getLocalName() == null) ? attr.getNodeName() : attr.getLocalName() ).setValue( attr.getNodeValue() );\n\t\t\t\t} else {\n\t\t\t\t\ttype = attr.getNodeValue();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn type;\n\t}", "public void setCategory(String category);", "void updateCategory(Category category);", "void updateCategory(Category category);", "void setValueExpression(String attributeName, ValueExpression valueExpression);", "public void setAttribute(String key, Object value)\n {\n final IAttributeEditor editor = editors.get(key);\n if (editor != null)\n {\n editor.setValue(value);\n }\n }", "public String getAttributeCategory()\n {\n return (String)getAttributeInternal(ATTRIBUTECATEGORY);\n }", "void setAttribute(String key, Object value)\n throws ProcessingException;", "protected void populateAttributeValue(final AttributeValue value, final Attribute attribute, final String localizedAttributeKey) {\n\t\tvalue.setAttribute(attribute);\n\t\tvalue.setAttributeType(attribute.getAttributeType());\n\t\tvalue.setLocalizedAttributeKey(localizedAttributeKey);\n\t}", "public void setName(String ac) {\n categoryName = ac;\n }", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "public void setValue(Class<? extends ADao> pType, String pName, String pAttribute, Object pValue) {\n\t\t\n\t}", "@java.lang.Override public int getCategoryValue() {\n return category_;\n }", "public int getCategoryValue() {\n return category_;\n }", "public void setCategory(Category c) {\n this.category = c;\n }", "public void setAttribute(Attribute attribute) \n throws AttributeNotFoundException,\n InvalidAttributeValueException,\n MBeanException, \n ReflectionException {\n if (attribute == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Attribute cannot be null\"), \n \"Cannot invoke a setter of \" + dClassName + \" with null attribute\");\n }\n String name = attribute.getName();\n if (name == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Attribute name cannot be null\"), \n \"Cannot invoke the setter of \" + dClassName + \" with null attribute name\");\n }\n\n name = RunTimeSingleton.decode(name, \"US-ASCII\"); // HtmlAdapter made from info/admin -> info%2Fadmin\n // \"logging/org.xmlBlaster.engine.RequestBroker\"\n if (name.startsWith(\"logging/\"))\n name = name.substring(8); // \"org.xmlBlaster.engine.RequestBroker\"\n\n String value = (String)attribute.getValue();\n log.debug(\"Setting log level of name=\" + name + \" to '\" + value + \"'\");\n\n try {\n Level level = Level.toLevel(value);\n this.glob.changeLogLevel(name, level);\n }\n catch (ServiceManagerException e) {\n throw(new AttributeNotFoundException(\"Cannot set log level attribute '\"+ name +\"':\" + e.getMessage()));\n }\n catch (Throwable e) {\n throw(new AttributeNotFoundException(\"Cannot set log level attribute '\"+ name +\"':\" + e.toString()));\n }\n }", "public void addAttribute(String key, Object value) {\n\t\tmyAttributes.put(key, value);\n\t}", "public static void attribute(String name, boolean value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void setAttribute(String attribute, String value)\n\t{\n\t\tattributes.put(attribute, value);\n\t}", "public void setCategCode(String value) {\n setAttributeInternal(CATEGCODE, value);\n }", "public static void attribute(String name, long value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "@java.lang.Override public int getCategoryValue() {\n return category_;\n }", "public Builder setCategoryValue(int value) {\n \n category_ = value;\n onChanged();\n return this;\n }", "void setProperty(String attribute, String value);", "public void attribute(int nameCode, CharSequence value)\r\n throws XPathException {\r\n\r\n bufferedAttributes.addAttribute(nameCode, value.toString());\r\n\r\n // Note: we're relying on the fact that AttributeCollection can hold two attributes of the same name\r\n // and maintain their order, because the check for duplicate attributes is not done until later in the\r\n // pipeline. We validate both the attributes (see Bugzilla #4600 which legitimizes this.)\r\n\r\n }", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "String attributeToSetter(String name);", "public void setAttribute(NameValue a) {\n\t\tattribute = a;\n\t\tattribute.setSeparator(Separators.COLON);\n\t}", "public void set(Object key, Object value) {\n if(attributes == null)\n attributes = new HashMap<>();\n attributes.put(key, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setProductAttrValue(String value) {\n setAttributeInternal(PRODUCTATTRVALUE, value);\n }", "public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }", "public void setAttribute(String key, String value) {\n attributes.put(key, value);\n }", "public int getCategoryValue() {\n return category_;\n }", "int getCategoryValue();", "public void setAttribute2(String value)\n {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "@Override\n public void setValue(int index, Object value)\n {\n if (index == 1)\n {\n super.setValue(index, value); \n }\n else if (index == 2)\n {\n if (m_Scaler != 0)\n {\n try\n { \n m_Value = ((Number)value).doubleValue() * getScaler();\n }\n catch (Exception ex)\n {\n //Sometimes scaler is set for wrong Object type.\n setValue(value);\n }\n }\n else\n {\n setValue(value);\n }\n }\n else if (index == 3)\n { \n //Set default values.\n if (value == null)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n if (Array.getLength(value) != 2)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n m_Scaler = ((Number)Array.get(value, 0)).intValue();\n m_Unit = (((Number)Array.get(value, 1)).intValue() & 0xFF);\n }\n }\n }\n else\n {\n throw new IllegalArgumentException(\"GetValue failed. Invalid attribute index.\");\n }\n }", "@Override\n public void setAttribute(String name, Object value) {\n if (name == null)\n throw new IllegalArgumentException(\"standardSession.setAttribute.namenull\");\n // Null value is the same as removeAttribute()\n if (value == null) {\n removeAttribute(name);\n return;\n }\n if (!valid)\n return;\n attributes.put(name, value);\n }" ]
[ "0.6781918", "0.67755765", "0.67336357", "0.66906065", "0.65614337", "0.6527701", "0.6509384", "0.6365185", "0.6336628", "0.6336628", "0.6327898", "0.63172895", "0.6221549", "0.6204094", "0.61910456", "0.61905944", "0.6188792", "0.61763936", "0.6175104", "0.6164961", "0.61391765", "0.6097865", "0.6078436", "0.6076008", "0.60736954", "0.60573244", "0.6052559", "0.6049396", "0.6043289", "0.60394645", "0.6030735", "0.60050803", "0.60050803", "0.5997323", "0.5984956", "0.5980869", "0.5976592", "0.59737855", "0.59655", "0.59290665", "0.5925812", "0.5922463", "0.591011", "0.58820647", "0.5878719", "0.5860775", "0.58506745", "0.5841859", "0.584083", "0.5840809", "0.58390284", "0.58315814", "0.580543", "0.58030814", "0.57988536", "0.57977384", "0.57945615", "0.57863426", "0.57780266", "0.57780266", "0.5776555", "0.5767391", "0.5765124", "0.57565266", "0.5743066", "0.5741215", "0.5739414", "0.5737285", "0.57351494", "0.572959", "0.57218754", "0.57152545", "0.57093877", "0.5708508", "0.57065785", "0.5704465", "0.57007223", "0.56995595", "0.5692991", "0.56873333", "0.56844056", "0.56835496", "0.5682858", "0.56778914", "0.56767696", "0.5671598", "0.566972", "0.566972", "0.566972", "0.566972", "0.566972", "0.566972", "0.5669247", "0.5667068", "0.5660956", "0.56604475", "0.56583846", "0.56534064", "0.56423575", "0.5631757" ]
0.74091977
0
/ Gets the attribute value for Attribute1, using the alias name Attribute1
public String getAttribute1() { return (String)getAttributeInternal(ATTRIBUTE1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute1() {\n return attribute1;\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttr1() {\n return attr1;\n }", "public String getAttr1() {\n return attr1;\n }", "Object getAttribute(int attribute);", "Attribute getAttribute();", "java.lang.String getAttribute();", "public String getAttribute2() {\n return attribute2;\n }", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public String getAttribute2()\n {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute(String name);", "public Object getAttribute(String name);", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String) getAttributeInternal(ATTRIBUTE2);\n }", "String getAttribute();", "public Attribute fetchAttribute(String key, String value);", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public Object get(String aName) { return _attrMap.get(aName); }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public String getExtAttribute1() {\n return (String) getAttributeInternal(EXTATTRIBUTE1);\n }", "public String getAttribute3() {\n return attribute3;\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/* */ }", "public Object getProperty(String attName);", "Object getAttribute(String key);", "Object getAttribute(String key);", "public String getAttribute(final String attributeLocator);", "public String getAttribute3()\n {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "public HbAttributeInternal getAttribute(String name);", "public TLAttribute getAttribute(String attributeName);", "String attributeToGetter(String name);", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public String getAttr2() {\n return attr2;\n }", "public String getAttr2() {\n return attr2;\n }", "public Attribute getAttributeByName(String name){\n for (Attribute a : attributeList){\n if (a.getAttributeName().equals(name))\n return a;\n }\n return null;\n }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public void setAttr1(String attr1) {\n this.attr1 = attr1;\n }", "public void setAttr1(String attr1) {\n this.attr1 = attr1;\n }", "public Attribute fetchAttributeById(int attribId);", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "Pair<String, String> getAdditionalAttribute();", "public String getIntAttribute1() {\n return (String) getAttributeInternal(INTATTRIBUTE1);\n }", "public String getAttribute3() {\n return (String) getAttributeInternal(ATTRIBUTE3);\n }", "public Object getAttribute(Object key);", "public SourceAttribute getSourceAttribute(int i){\n\t\tif(source==null){\n\t\t\t//no source predicate is associated with this pred\n\t\t\t//just return the variable name\n\t\t\treturn new SourceAttribute(getVars().get(i), \"string\", \"F\");\n\t\t}\n \treturn source.getAttr(i);\n }", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "public tudresden.ocl20.core.jmi.ocl.commonmodel.Attribute lookupAttribute(java.lang.String attName) {\n Iterator featuresIt = getFeature().iterator();\n while(featuresIt.hasNext()){\n Feature feature = (Feature) featuresIt.next();\n if(feature instanceof Attribute && feature.getNameA().equals(attName)){\n return (Attribute) feature;\n }\n }\n Iterator parentsIt = this.getParents().iterator();//getGeneralization().iterator();\n while(parentsIt.hasNext()){\n Classifier parent = (Classifier) parentsIt.next();//((GeneralizationImpl) parentsIt.next()).getParent();\n Attribute a = (Attribute) parent.lookupAttribute(attName);\n if(a != null){\n return a;\n }\n }\n \n return null;\n }", "@Override\n\tpublic Object getAttribute(String arg0, int arg1) {\n\t\treturn null;\n\t}", "public String getAttributeValue(Node node, String attributeName) throws Exception;", "String getAttributeStringValue(Object attr);", "public String getAttribute(String name)\n\tthrows SdpParseException {\n\tif (name != null) {\n\t for (int i = 0; i < this.attributeFields.size(); i++) {\n\t\tAttributeField af = (AttributeField)\n\t\t this.attributeFields.elementAt(i);\n\t\tif (name.equals(af.getAttribute().getName())) \n\t\t return (String) af.getAttribute().getValue();\n\t }\n\t return null; \n\t} else throw new NullPointerException(\"null arg!\");\n }", "public String getElementAttribute(int row, int attr);", "final private com.org.multigear.mginterface.engine.Configuration.Attr getAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Name getAlias() {\n\t\treturn getSingleName();\n\t}", "public static String getAttributeValue(String attr_string, String attr_name)\n {\n StringTokenizer st = new StringTokenizer(attr_string, \"^\");\n\n attr_name += \"=\";\n while (st.hasMoreTokens())\n {\n String str = st.nextToken();\n if (str.startsWith(attr_name))\n {\n return str.substring(attr_name.length());\n }\n }\n return \"\";\n }", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public String getStringAttribute();", "@Override\n\tpublic Attribute attribute(final int index) {\n\t\treturn attributes[index];\n\t}", "String getAttributeName(Object attr);", "public DictionarySimpleAttribute lookupAttribute(String xmlName) {\n\t\tDictionarySimpleAttribute rv = this.attributes.get(xmlName);\n\n\t\tif(log.isTraceEnabled()) {\n\t\t\tlog.trace(\"Attribute forward lookup performed:\");\n\t\t\tlog.trace(\"[S] XML name: \" + xmlName);\n\t\t\tlog.trace(\"[R] Dictionary entry: \" + rv);\n\t\t}\n\n\t\treturn rv;\n\t}", "public Object getAttribute(String attribute_name) \n throws AttributeNotFoundException,\n MBeanException,\n ReflectionException {\n if (attribute_name == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Attribute name cannot be null\"), \n \"Cannot invoke a getter of \" + dClassName + \" with null attribute name\");\n }\n\n attribute_name = RunTimeSingleton.decode(attribute_name, \"US-ASCII\"); // HtmlAdapter made from info/admin -> info%2Fadmin\n // \"logging/org.xmlBlaster.engine.RequestBroker\"\n if (attribute_name.startsWith(\"logging/\"))\n attribute_name = attribute_name.substring(8); // \"org.xmlBlaster.engine.RequestBroker\"\n\n try {\n Level level = this.glob.getLogLevel(attribute_name);\n return level.toString();\n }\n catch (ServiceManagerException e) {\n if (attribute_name == null || attribute_name.length() == 0 || \"logging/\".equals(attribute_name)) return Level.INFO.toString();\n throw(new AttributeNotFoundException(\"Cannot find '\" + attribute_name + \"' attribute in \" + dClassName));\n }\n }", "public String getExtAttribute2() {\n return (String) getAttributeInternal(EXTATTRIBUTE2);\n }", "public String getLocalAttribute(String name) {\n\t\treturn localAttributes.get(name);\n\t}", "public AttributeList getAttribute(String name) {\n for (AttributeList a = atts ; a != null ; a = a.next) {\n if (a.name.equals(name)) {\n return a;\n }\n }\n return null;\n }", "public final Object getAttribute(String attribute) {\r\n\t\tfor (String key:annotations.keySet()) {\r\n\t\t\tAnnotationDefinition defn = annotations.get(key);\r\n\t\t\tif (defn.getParams() != null && defn.getParams().containsKey(attribute))\r\n\t\t\t\treturn defn.getParams().get(attribute);\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "public native final String attr(final String name)\n\t/*-{\n\t\treturn this.attr(name);\n\t}-*/;", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public Attribute getAttribute(String name) {\n return getAttribute(name, \"\");\n }", "public synchronized Object getAttribute(String key) {\n return attributes.get(key);\n }", "public String getAttribute(String key) {\n return attributes.get(key);\n }", "public String getAttribute(String attributeName)\n\t{\n\t\treturn attributes.get(attributeName);\n\t}", "public Object getAttribute(Object key) {\n return getAttributes().get(key);\n }", "public int getAttribute() {\n return Attribute;\n }", "public java.lang.Integer getAttributes1() {\r\n return attributes1;\r\n }", "private String getAttribute(Node nNode,String name) {\n \tNamedNodeMap attributes = nNode.getAttributes();\n \t\n \t// get the number of nodes in this map\n \tint numAttrs = attributes.getLength();\n \t\n \tfor (int i = 0; i < numAttrs; i++) {\n \t\t\n \t\tAttr attr = (Attr) attributes.item(i);\n \t\tString attrName = attr.getNodeName();\n \t\tString attrValue = attr.getNodeValue();\n \n \t\tif(attrName == name) {\n \t\t\treturn attrValue;\n \t\t}\n \t}\n \t\n \treturn null;\n }", "public GenericAttribute getAttribute () {\n return attribute;\n }", "public String getAttr3() {\n return attr3;\n }", "public String getAttr3() {\n return attr3;\n }" ]
[ "0.74597776", "0.7336258", "0.7336258", "0.7336258", "0.7336258", "0.7336258", "0.73127633", "0.6875613", "0.6875613", "0.6734629", "0.6714602", "0.6692334", "0.66378576", "0.6581991", "0.6581991", "0.6581991", "0.6573607", "0.6554222", "0.6544051", "0.6427707", "0.6427707", "0.6427707", "0.6427707", "0.6427707", "0.64163506", "0.640966", "0.6403496", "0.6367292", "0.6340636", "0.627515", "0.62665385", "0.6260195", "0.6253798", "0.6236118", "0.62138325", "0.6203455", "0.6162805", "0.6162805", "0.61392164", "0.6117008", "0.6090489", "0.60822994", "0.60733455", "0.607129", "0.60709465", "0.60600954", "0.60518235", "0.60518235", "0.6029952", "0.6028375", "0.60109496", "0.5978157", "0.5957286", "0.59550405", "0.5947512", "0.5947512", "0.59415317", "0.5930598", "0.5930598", "0.5930598", "0.5930598", "0.5930598", "0.59288275", "0.5928344", "0.5926916", "0.5918602", "0.59104437", "0.59079033", "0.59017265", "0.58868456", "0.588552", "0.5849612", "0.5843746", "0.5829272", "0.5822203", "0.57869834", "0.57386607", "0.570749", "0.5648918", "0.56472296", "0.56330603", "0.5620921", "0.5616747", "0.5610521", "0.5608086", "0.5592257", "0.5591567", "0.55741084", "0.5568868", "0.5561627", "0.55566967", "0.5553334", "0.55501693", "0.55439323", "0.5536312", "0.5528581", "0.5521682", "0.55081576", "0.55002517", "0.55002517" ]
0.7513019
0
/ Sets value as the attribute value for Attribute1
public void setAttribute1(String value) { setAttributeInternal(ATTRIBUTE1, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttr1(String attr1) {\n this.attr1 = attr1;\n }", "public void setAttr1(String attr1) {\n this.attr1 = attr1;\n }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "public void setAttribute2(String value)\n {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "void setInt(int attributeValue);", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "void setString(String attributeValue);", "public void setAttribute1(String attribute1) {\n this.attribute1 = attribute1 == null ? null : attribute1.trim();\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "void setAttributes(String attributeName, String attributeValue);", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}", "public void setAttrib(String name, String value);", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void setAttribute(String name, Object value);", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "final void setAttributes(int param1, int param2) {\n }", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "protected abstract void setContextAttribute(String name, Object value);", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "public void setAttribute3(String value)\n {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "String attributeToSetter(String name);", "public String getAttribute1() {\n return attribute1;\n }", "void setProperty(String attribute, String value);", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }", "public void setAttr2(String attr2) {\n this.attr2 = attr2;\n }", "public void setAttr2(String attr2) {\n this.attr2 = attr2;\n }", "public void setValue2(Object value2) { this.value2 = value2; }", "public void setExtAttribute1(String value) {\n setAttributeInternal(EXTATTRIBUTE1, value);\n }", "public void setValue2 (String Value2);", "public void setAttribute(Object key, Object value);", "@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}", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "public String getAttr1() {\n return attr1;\n }", "public String getAttr1() {\n return attr1;\n }", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "final public void setAttr(final String name, final Vector2 value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name)) {\r\n\t\t\t\tif(value == null)\r\n\t\t\t\t\tattr.Vector = null;\r\n\t\t\t\telse\r\n\t\t\t\t\tattr.Vector = value.clone();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute2(String attribute2) {\n this.attribute2 = attribute2 == null ? null : attribute2.trim();\n }", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "public void attribute(int nameCode, CharSequence value)\r\n throws XPathException {\r\n\r\n bufferedAttributes.addAttribute(nameCode, value.toString());\r\n\r\n // Note: we're relying on the fact that AttributeCollection can hold two attributes of the same name\r\n // and maintain their order, because the check for duplicate attributes is not done until later in the\r\n // pipeline. We validate both the attributes (see Bugzilla #4600 which legitimizes this.)\r\n\r\n }", "public Attribute setValue(String value) {\n Attribute result = null;\n if (!\"\".equals(value)) {\n result = super.setValue(value);\n } else {\n this.detach();\n }\n return result;\n }", "public void setA1(int a1)\n {\n this.a1 = a1;\n }", "public void setAttributes1(java.lang.Integer attributes1) {\r\n this.attributes1 = attributes1;\r\n }", "public void set(String attribute, Object value) {\r\n\t\tput(attribute, value);\r\n\t}", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "@Override\n\tpublic void setAttribute(String name, Object o) {\n\t\t\n\t}", "public void setValue1(final java.lang.String value1) {\n this.value1 = value1;\n }", "void setValueExpression(String attributeName, ValueExpression valueExpression);", "public String getAttribute1()\n {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public static void attribute(String name, String value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\r\n\t\tsuper.setAttribute(name, value, objectList);\r\n\t\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\r\n\t\t\tif (name.equals(\"x\"))\t\t{ m_pos.setX(val); }\r\n\t\t\tif (name.equals(\"y\"))\t\t{ m_pos.setY(val); }\r\n\t\t\tif (name.equals(\"radius\")) \t{ m_r=val; }\t\t\r\n\t\t\r\n\t\t}\r\n\t\tcatch (Exception e) {}\r\n\t\r\n\t}", "public void processDefinitionAttribute(String name, String value) {\n\t\tcurrentDefinition.setAttribute(name, value);\n\t}", "public T set(String name, Object value)\n\t\t\tthrows TablesawException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tif (value instanceof String)\n\t\t\t\t{\n\t\t\t\tm_intHelper.setAttribute(m_project, m_antObject, name, (String)value);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tMethod m = m_intHelper.getAttributeMethod(name);\n\t\t\t\tm.invoke(m_antObject, value);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\t// TODO: add better error\n\t\t\tthrow new TablesawException(iae);\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new TablesawException(\"Error setting attribute '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\n\t\treturn ((T)this);\n\t\t}", "public void setIntAttribute1(String value) {\n setAttributeInternal(INTATTRIBUTE1, value);\n }", "public FreeMindWriter attribute( String name, String value ) {\n tagClose();\n out.println( \"<attribute NAME='\" + name + \"' VALUE='\" + value + \"'/>\" );\n return this; \n }", "public EdmAttribute setupAttribute(String val) {\n EdmAttribute a = new EdmAttribute(val);\n return a;\n }", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "public void setAttribute(FactAttribute[] param) {\r\n\r\n validateAttribute(param);\r\n\r\n localAttributeTracker = true;\r\n\r\n this.localAttribute = param;\r\n }", "public void setAttribute(String attribute, String value)\n\t{\n\t\tattributes.put(attribute, value);\n\t}", "public void attribute(String name, String value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n writerEscape.writeAttValue(value);\r\n this.writer.write('\"');\r\n }", "public setAttribute_result(setAttribute_result other) {\n if (other.isSetSuccess()) {\n this.success = new SetAttributeTResponse(other.success);\n }\n if (other.isSetE()) {\n this.e = new alluxio.thrift.AlluxioTException(other.e);\n }\n }", "public static void attribute(String name, int value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "@Override\n public void setValue(int index, Object value)\n {\n if (index == 1)\n {\n super.setValue(index, value); \n }\n else if (index == 2)\n {\n if (m_Scaler != 0)\n {\n try\n { \n m_Value = ((Number)value).doubleValue() * getScaler();\n }\n catch (Exception ex)\n {\n //Sometimes scaler is set for wrong Object type.\n setValue(value);\n }\n }\n else\n {\n setValue(value);\n }\n }\n else if (index == 3)\n { \n //Set default values.\n if (value == null)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n if (Array.getLength(value) != 2)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n m_Scaler = ((Number)Array.get(value, 0)).intValue();\n m_Unit = (((Number)Array.get(value, 1)).intValue() & 0xFF);\n }\n }\n }\n else\n {\n throw new IllegalArgumentException(\"GetValue failed. Invalid attribute index.\");\n }\n }", "public void setAttribute(NameValue a) {\n\t\tattribute = a;\n\t\tattribute.setSeparator(Separators.COLON);\n\t}", "public void setValue(Class<? extends ADao> pType, String pName, String pAttribute, Object pValue) {\n\t\t\n\t}", "void setAttribute( String attrName, Object value ) throws FileSystemException;", "public void setValue3(String value3) { this.value3 = value3; }", "public void setAttribute(Execution exec, String name, Object value);" ]
[ "0.7503437", "0.7503437", "0.7503437", "0.7503437", "0.7503437", "0.7503437", "0.72540396", "0.72540396", "0.70567507", "0.70418245", "0.7033471", "0.69432336", "0.69194305", "0.6802801", "0.6802801", "0.6802801", "0.6802801", "0.6802801", "0.6802801", "0.677498", "0.6773997", "0.67273057", "0.6718166", "0.6716749", "0.6701693", "0.6699971", "0.66737354", "0.6667823", "0.66365397", "0.6635811", "0.6622538", "0.6622538", "0.6535289", "0.65325177", "0.65249974", "0.6513616", "0.64944595", "0.6444676", "0.6434445", "0.6421364", "0.6418434", "0.6410232", "0.63962877", "0.63962877", "0.63668317", "0.63536733", "0.6338697", "0.6309876", "0.62905943", "0.6271566", "0.6271566", "0.62581116", "0.6254519", "0.6254144", "0.6251632", "0.6251225", "0.6246099", "0.6241623", "0.6241623", "0.6229136", "0.62288815", "0.62266475", "0.6202424", "0.6197152", "0.6197152", "0.6197152", "0.6197152", "0.6197152", "0.6197152", "0.61966854", "0.6156349", "0.6149477", "0.6133238", "0.6132753", "0.61303204", "0.61275315", "0.61268777", "0.6105368", "0.60974276", "0.6088987", "0.60873175", "0.6076472", "0.6069844", "0.6065168", "0.60543835", "0.60475874", "0.6046805", "0.60465443", "0.6045062", "0.60440135", "0.6042884", "0.603309", "0.60319257", "0.6031012", "0.6027998", "0.6021689", "0.6015942", "0.5990608", "0.5990049", "0.59832984" ]
0.77137095
0
/ Gets the attribute value for Attribute2, using the alias name Attribute2
public String getAttribute2() { return (String)getAttributeInternal(ATTRIBUTE2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute2() {\n return attribute2;\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String) getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttr2() {\n return attr2;\n }", "public String getAttr2() {\n return attr2;\n }", "public String getAttribute1()\n {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return attribute1;\n }", "public String getExtAttribute2() {\n return (String) getAttributeInternal(EXTATTRIBUTE2);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }", "public void setAttr2(String attr2) {\n this.attr2 = attr2;\n }", "public void setAttr2(String attr2) {\n this.attr2 = attr2;\n }", "public String getIntAttribute2() {\n return (String) getAttributeInternal(INTATTRIBUTE2);\n }", "Attribute getAttribute();", "java.lang.String getAttribute();", "public String getAttr1() {\n return attr1;\n }", "public String getAttr1() {\n return attr1;\n }", "public String getAttribute3() {\n return attribute3;\n }", "Object getAttribute(int attribute);", "Pair<String, String> getAdditionalAttribute();", "public String getAttribute3()\n {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public Attribute fetchAttribute(String key, String value);", "public java.lang.String getValue2() {\n return this.value2;\n }", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public Object getAttribute(String name);", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute(String name);", "public String getAttribute3() {\n return (String) getAttributeInternal(ATTRIBUTE3);\n }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public void setAttribute2(String attribute2) {\n this.attribute2 = attribute2 == null ? null : attribute2.trim();\n }", "String getAttribute();", "public void setAttribute2(String value)\n {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public String getExtAttribute1() {\n return (String) getAttributeInternal(EXTATTRIBUTE1);\n }", "public String getAddressLine2() {\n return (String)getAttributeInternal(ADDRESSLINE2);\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public Object getValue2() { return this.value2; }", "public String getSrcAddress2() {\r\n return (String) getAttributeInternal(SRCADDRESS2);\r\n }", "Object getAttribute(String key);", "Object getAttribute(String key);", "@Nullable\n public final CharSequence getLabel2() {\n return mLabel2;\n }", "final public Vector2 getRef2DAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr.Vector;\r\n\t\t}\r\n\t\treturn new Vector2(0, 0);\r\n\t}", "public HbAttributeInternal getAttribute(String name);", "public String getAttributeValue(Node node, String attributeName) throws Exception;", "public Object get(String aName) { return _attrMap.get(aName); }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public String getAttribute(final String attributeLocator);", "public int getProperty2() {\n return property2_;\n }", "public int getProperty2() {\n return property2_;\n }", "public String getAdr2() {\n return adr2;\n }", "String attributeToGetter(String name);", "public String getAttr3() {\n return attr3;\n }", "public String getAttr3() {\n return attr3;\n }", "public String getExtAttribute3() {\n return (String) getAttributeInternal(EXTATTRIBUTE3);\n }", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getReference2() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(REFERENCE2_PROP.get());\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/* */ }", "public java.lang.String getNAME2()\n {\n \n return __NAME2;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getReference2() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(REFERENCE2_PROP.get());\n }", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "public TLAttribute getAttribute(String attributeName);", "final public Vector2 getRef2DAttr() {\r\n\t\t\tif(mName.length() == 0)\r\n\t\t\t\treturn null;\r\n\t\t\tif(mSaveAttr == null)\r\n\t\t\t\treturn getAttr(mName).Vector;\r\n\t\t\treturn mSaveAttr.Vector;\r\n\t\t}", "public String getAttribute12()\n {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "String getAttributeStringValue(Object attr);", "@Override\n\tpublic Object getAttribute(String arg0, int arg1) {\n\t\treturn null;\n\t}", "public Object getAttribute(Object key);", "public Pair<String, String> mapAttributeValue(String value);", "public String getExtra2() {\n return extra2;\n }", "public void setExtAttribute2(String value) {\n setAttributeInternal(EXTATTRIBUTE2, value);\n }", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public Attribute getAttributeByName(String name){\n for (Attribute a : attributeList){\n if (a.getAttributeName().equals(name))\n return a;\n }\n return null;\n }", "public AVM2QName getAVM2Name();", "final private com.org.multigear.mginterface.engine.Configuration.Attr getAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getConstProperty2() {\n return this.constProperty2;\n }", "public String getApellido2() {\r\n\t\treturn apellido2;\r\n\t}", "public Object getProperty(String attName);" ]
[ "0.79375213", "0.7898207", "0.7898207", "0.7898207", "0.7898207", "0.7898207", "0.7878675", "0.74672675", "0.74672675", "0.69796336", "0.69274145", "0.69166946", "0.6773485", "0.6773485", "0.6773485", "0.6773485", "0.6773485", "0.6755224", "0.6738596", "0.6738596", "0.6468091", "0.6430144", "0.643014", "0.637718", "0.637718", "0.63285094", "0.63248736", "0.6309522", "0.6294009", "0.61917394", "0.61917394", "0.61917394", "0.61625767", "0.61313385", "0.6130942", "0.6108887", "0.6100001", "0.6100001", "0.6100001", "0.6100001", "0.6100001", "0.6079245", "0.60752505", "0.6073273", "0.60705364", "0.6061796", "0.6057557", "0.5973579", "0.5973579", "0.5973579", "0.5973579", "0.5973579", "0.5973579", "0.59264165", "0.5921143", "0.59119964", "0.59094185", "0.58691233", "0.5849753", "0.5849753", "0.58327556", "0.58312356", "0.5802012", "0.57963616", "0.5777885", "0.57580864", "0.57468045", "0.5743158", "0.57390547", "0.5721422", "0.5706262", "0.5698173", "0.5696966", "0.5693414", "0.5661298", "0.5661298", "0.56600463", "0.56485623", "0.5647531", "0.56081635", "0.56067455", "0.56044674", "0.5601974", "0.5597113", "0.5594596", "0.55858225", "0.55836374", "0.5581969", "0.5571066", "0.556398", "0.556177", "0.5541111", "0.55168056", "0.5499682", "0.54992515", "0.54807293", "0.5479284", "0.5478297", "0.5474983", "0.5470819" ]
0.80246526
0
/ Sets value as the attribute value for Attribute2
public void setAttribute2(String value) { setAttributeInternal(ATTRIBUTE2, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttr2(String attr2) {\n this.attr2 = attr2;\n }", "public void setAttr2(String attr2) {\n this.attr2 = attr2;\n }", "public void setAttribute2(String attribute2) {\n this.attribute2 = attribute2 == null ? null : attribute2.trim();\n }", "public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setValue2(Object value2) { this.value2 = value2; }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void setExtAttribute2(String value) {\n setAttributeInternal(EXTATTRIBUTE2, value);\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}", "public String getAttribute2() {\n return attribute2;\n }", "final void setAttributes(int param1, int param2) {\n }", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "public String getAttr2() {\n return attr2;\n }", "public String getAttr2() {\n return attr2;\n }", "public void setA2(int a2)\n {\n this.a2 = a2;\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "void setInt(int attributeValue);", "public void setAttribute3(String value)\n {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setValue2(final java.lang.String value2) {\n this.value2 = value2;\n }", "public void setValue2 (String Value2);", "public String getAttribute2()\n {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public void setAttr1(String attr1) {\n this.attr1 = attr1;\n }", "public void setAttr1(String attr1) {\n this.attr1 = attr1;\n }", "protected abstract void setContextAttribute(String name, Object value);", "final public void setAttr(final String name, final Vector2 value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name)) {\r\n\t\t\t\tif(value == null)\r\n\t\t\t\t\tattr.Vector = null;\r\n\t\t\t\telse\r\n\t\t\t\t\tattr.Vector = value.clone();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setIntAttribute2(String value) {\n setAttributeInternal(INTATTRIBUTE2, value);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "void setAttributes(String attributeName, String attributeValue);", "@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\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "public void setAttrib(String name, String value);", "String attributeToSetter(String name);", "public String getAttribute2() {\n return (String) getAttributeInternal(ATTRIBUTE2);\n }", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "void setString(String attributeValue);", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "public Pair<String, String> mapAttributeValue(String value);", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void setAttribute(String name, Object value);", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public setAttribute_result(setAttribute_result other) {\n if (other.isSetSuccess()) {\n this.success = new SetAttributeTResponse(other.success);\n }\n if (other.isSetE()) {\n this.e = new alluxio.thrift.AlluxioTException(other.e);\n }\n }", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }", "public void attribute(int nameCode, CharSequence value)\r\n throws XPathException {\r\n\r\n bufferedAttributes.addAttribute(nameCode, value.toString());\r\n\r\n // Note: we're relying on the fact that AttributeCollection can hold two attributes of the same name\r\n // and maintain their order, because the check for duplicate attributes is not done until later in the\r\n // pipeline. We validate both the attributes (see Bugzilla #4600 which legitimizes this.)\r\n\r\n }", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "@Override\n public Pair<String, String> mapAttributeValue(String value)\n {\n return new Pair<String, String>(null, value);\n }", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "public EdmAttribute setupAttribute(String val) {\n EdmAttribute a = new EdmAttribute(val);\n return a;\n }", "public void setExtAttribute1(String value) {\n setAttributeInternal(EXTATTRIBUTE1, value);\n }", "void setProperty(String attribute, String value);", "public Attribute setValue(String value) {\n Attribute result = null;\n if (!\"\".equals(value)) {\n result = super.setValue(value);\n } else {\n this.detach();\n }\n return result;\n }", "public void setAttributes(final int i1, final int i2,\n final AttributeSet as) {\n checkPositions(i1, i2, document.getLength());\n if (document instanceof DefaultStyledDocument) {\n ((DefaultStyledDocument) document).setCharacterAttributes(i1,\n i2 - i1, as, true);\n }\n }", "public void setExtAttribute3(String value) {\n setAttributeInternal(EXTATTRIBUTE3, value);\n }", "public setAttribute_args(setAttribute_args other) {\n if (other.isSetPath()) {\n this.path = other.path;\n }\n if (other.isSetOptions()) {\n this.options = new SetAttributeTOptions(other.options);\n }\n }", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "public void attribute(String name, String value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n writerEscape.writeAttValue(value);\r\n this.writer.write('\"');\r\n }", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "public String getAttribute1() {\n return attribute1;\n }", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public void attribute(int nameCode, CharSequence value) throws XPathException {\r\n if (depthOfHole == 0) {\r\n nextReceiver.attribute(nameCode, value);\r\n }\r\n }", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "@Override\n protected void visitHtmlAttributeValueNode(HtmlAttributeValueNode node) {\n pushState(HtmlContext.HTML_NORMAL_ATTR_VALUE);\n super.visitHtmlAttributeValueNode(node);\n popState();\n }", "public void setValue3(String value3) { this.value3 = value3; }", "protected final void addAttribute(final String name, final String value) {\n if(value == null) attributes.remove(name);\n else attributes.put(name, value);\n\t}", "public static void attribute(String name, String value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public FreeMindWriter attribute( String name, String value ) {\n tagClose();\n out.println( \"<attribute NAME='\" + name + \"' VALUE='\" + value + \"'/>\" );\n return this; \n }", "public void setAttribute12(String value)\n {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "protected Attr attr(String name, String value){\n\t\tAttr a = doc.createAttribute(name);\n\t\ta.setValue(value);\n\t\treturn a;\n\t}", "public Builder setProperty2(int value) {\n bitField0_ |= 0x00000010;\n property2_ = value;\n \n return this;\n }" ]
[ "0.789378", "0.789378", "0.789378", "0.789378", "0.789378", "0.789378", "0.7444109", "0.7444109", "0.72209585", "0.7130223", "0.69104826", "0.6898154", "0.6898154", "0.6898154", "0.6898154", "0.6898154", "0.6898154", "0.6809507", "0.68010217", "0.6749937", "0.6743938", "0.67321897", "0.6710501", "0.66179764", "0.65752625", "0.65752625", "0.6525136", "0.65100634", "0.6493754", "0.64860183", "0.64815265", "0.64713436", "0.64576447", "0.63768876", "0.63768876", "0.63758504", "0.63525957", "0.63416946", "0.63295335", "0.63295335", "0.63295335", "0.63295335", "0.63295335", "0.6308539", "0.62973523", "0.62971926", "0.62934315", "0.6274099", "0.6273166", "0.6271945", "0.6251097", "0.6251097", "0.6249118", "0.6247881", "0.6247881", "0.6247881", "0.6247881", "0.6247881", "0.6247881", "0.6231258", "0.6228684", "0.6185955", "0.61826426", "0.6174099", "0.617214", "0.6165701", "0.6165701", "0.61429137", "0.614279", "0.6091751", "0.6083525", "0.60833", "0.60629857", "0.60582125", "0.60466", "0.6040404", "0.60225415", "0.60065156", "0.59976673", "0.5994232", "0.5976287", "0.5961374", "0.59563804", "0.59495723", "0.5946647", "0.59432703", "0.5930766", "0.5927476", "0.591728", "0.59106845", "0.59098625", "0.58978957", "0.589697", "0.58966595", "0.5892723", "0.5887994", "0.5876121", "0.58723885", "0.58628976", "0.5860593" ]
0.8071393
0
/ Gets the attribute value for Attribute3, using the alias name Attribute3
public String getAttribute3() { return (String)getAttributeInternal(ATTRIBUTE3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute3() {\n return attribute3;\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String) getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttr3() {\n return attr3;\n }", "public String getAttr3() {\n return attr3;\n }", "Attribute getAttribute();", "Object getAttribute(int attribute);", "java.lang.String getAttribute();", "public String getExtAttribute3() {\n return (String) getAttributeInternal(EXTATTRIBUTE3);\n }", "String getAttribute();", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public String getIntAttribute3() {\n return (String) getAttributeInternal(INTATTRIBUTE3);\n }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public Object getAttribute(String name);", "public void setAttr3(String attr3) {\n this.attr3 = attr3;\n }", "public void setAttr3(String attr3) {\n this.attr3 = attr3;\n }", "public String getAttribute(String name);", "public String getAttribute1()\n {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return attribute1;\n }", "Object getAttribute(String key);", "Object getAttribute(String key);", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "Pair<String, String> getAdditionalAttribute();", "public String getAttribute2()\n {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return attribute2;\n }", "public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }", "public Attribute fetchAttribute(String key, String value);", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public TLAttribute getAttribute(String attributeName);", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "public String getValue3() { return this.value3; }", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public String getAttribute2() {\n return (String) getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttributeValueAlias() {\n return attributeValueAlias;\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/* */ }", "public String getAttributeValue(Node node, String attributeName) throws Exception;", "public Object getAttribute(Object key);", "public String getAttribute(final String attributeLocator);", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "public Object getProperty(String attName);", "String getAttributeStringValue(Object attr);", "public final Object getAttribute(String attribute) {\r\n\t\tfor (String key:annotations.keySet()) {\r\n\t\t\tAnnotationDefinition defn = annotations.get(key);\r\n\t\t\tif (defn.getParams() != null && defn.getParams().containsKey(attribute))\r\n\t\t\t\treturn defn.getParams().get(attribute);\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public Attribute fetchAttributeById(int attribId);", "public HbAttributeInternal getAttribute(String name);", "public java.lang.Object getCachedAttributeValue(Symbol attrName, java.lang.Object defaultValue);", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic Attribute attribute(final int index) {\n\t\treturn attributes[index];\n\t}", "public Object get(String aName) { return _attrMap.get(aName); }", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public double get(int index) {\n\t\treturn attrs.getQuick(index);\n\t}", "public String getElementAttribute(int row, int attr);", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "String attributeToGetter(String name);", "public String getAttribute4()\n {\n return (String)getAttributeInternal(ATTRIBUTE4);\n }", "public String getAttribute6()\n {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public SourceAttribute getSourceAttribute(int i){\n\t\tif(source==null){\n\t\t\t//no source predicate is associated with this pred\n\t\t\t//just return the variable name\n\t\t\treturn new SourceAttribute(getVars().get(i), \"string\", \"F\");\n\t\t}\n \treturn source.getAttr(i);\n }", "Object getAttribute( String attrName ) throws FileSystemException;", "public String getAttribute9()\n {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public void setAttribute3(String attribute3) {\n this.attribute3 = attribute3 == null ? null : attribute3.trim();\n }", "final private com.org.multigear.mginterface.engine.Configuration.Attr getAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getAttr1() {\n return attr1;\n }", "public String getAttr1() {\n return attr1;\n }", "private String getAttributeValue(final Attribute attribute) {\n\t List<String> values = this.getAttributeValues(attribute);\n\t if (values.size()>0) {\n\t return values.get(0);\n\t } else {\n\t return \"\";\n\t }\n\t}", "public GenericAttribute getAttribute () {\n return attribute;\n }", "public Object getAttribute(Object key) {\n return getAttributes().get(key);\n }", "public synchronized Object getAttribute(String key) {\n return attributes.get(key);\n }", "public int getAttribute() {\n return Attribute;\n }", "public tudresden.ocl20.core.jmi.ocl.commonmodel.Attribute lookupAttribute(java.lang.String attName) {\n Iterator featuresIt = getFeature().iterator();\n while(featuresIt.hasNext()){\n Feature feature = (Feature) featuresIt.next();\n if(feature instanceof Attribute && feature.getNameA().equals(attName)){\n return (Attribute) feature;\n }\n }\n Iterator parentsIt = this.getParents().iterator();//getGeneralization().iterator();\n while(parentsIt.hasNext()){\n Classifier parent = (Classifier) parentsIt.next();//((GeneralizationImpl) parentsIt.next()).getParent();\n Attribute a = (Attribute) parent.lookupAttribute(attName);\n if(a != null){\n return a;\n }\n }\n \n return null;\n }", "public String getAttribute7()\n {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public String getAttr2() {\n return attr2;\n }", "public String getAttr2() {\n return attr2;\n }", "public String getAttribute() {\n return attribute;\n }", "public Attribute getAttributeByName(String name){\n for (Attribute a : attributeList){\n if (a.getAttributeName().equals(name))\n return a;\n }\n return null;\n }", "public Object get(AttributeDefinition attribute, Object defaultValue)\n throws UnknownAttributeException\n {\n \tObject value = get(attribute);\n \treturn value != null ? value : defaultValue;\n }", "public String getSrcAddress3() {\r\n return (String) getAttributeInternal(SRCADDRESS3);\r\n }", "public String getAttribute(String key) {\n return attributes.get(key);\n }", "@Override\n public ConfigurationNode getAttribute(int index)\n {\n return attributes.getNode(index);\n }", "String getAttributeName(Object attr);", "com.google.protobuf.ByteString getAttributeBytes();" ]
[ "0.7732945", "0.763978", "0.763978", "0.763978", "0.763978", "0.763978", "0.76169395", "0.72039676", "0.72039676", "0.69415253", "0.6934839", "0.68402964", "0.68107927", "0.66235113", "0.66011405", "0.66011405", "0.66011405", "0.6549694", "0.65255123", "0.64167726", "0.63934404", "0.63934404", "0.6381658", "0.6337448", "0.62775546", "0.62655276", "0.62655276", "0.6237103", "0.6237062", "0.6215078", "0.6211737", "0.6210562", "0.619074", "0.61703044", "0.6167392", "0.61605424", "0.61605424", "0.61605424", "0.61605424", "0.61605424", "0.61330855", "0.61321974", "0.6096644", "0.6093385", "0.60900533", "0.6079702", "0.6079702", "0.6079702", "0.6079702", "0.6079702", "0.60615444", "0.60323423", "0.6022296", "0.6010389", "0.5987175", "0.59484744", "0.59331656", "0.5911119", "0.5892535", "0.5871538", "0.5850099", "0.58374053", "0.583123", "0.5799767", "0.57855254", "0.57692444", "0.5768705", "0.57681066", "0.576554", "0.5760368", "0.57314885", "0.57278085", "0.5718758", "0.5717185", "0.57073945", "0.5707312", "0.57063395", "0.57052135", "0.56936425", "0.56885475", "0.5685705", "0.5685705", "0.56839705", "0.5678728", "0.56761444", "0.5670719", "0.5668613", "0.566766", "0.56621", "0.56421196", "0.56351846", "0.56351846", "0.56181645", "0.5611865", "0.55940723", "0.559286", "0.55787575", "0.55768037", "0.557243", "0.55717105" ]
0.77923644
0
/ Sets value as the attribute value for Attribute3
public void setAttribute3(String value) { setAttributeInternal(ATTRIBUTE3, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setValue3(String value3) { this.value3 = value3; }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void setAttr3(String attr3) {\n this.attr3 = attr3;\n }", "public void setAttr3(String attr3) {\n this.attr3 = attr3;\n }", "public void setAttrib(String name, String value);", "void setInt(int attributeValue);", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "public void setExtAttribute3(String value) {\n setAttributeInternal(EXTATTRIBUTE3, value);\n }", "public void setAttribute3(String attribute3) {\n this.attribute3 = attribute3 == null ? null : attribute3.trim();\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "public void setAttribute(String name, Object value);", "void setString(String attributeValue);", "public void setIntAttribute3(String value) {\n setAttributeInternal(INTATTRIBUTE3, value);\n }", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public String getAttribute3() {\n return attribute3;\n }", "public void setAttribute2(String value)\n {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "void setAttributes(String attributeName, String attributeValue);", "@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public String getAttr3() {\n return attr3;\n }", "public String getAttr3() {\n return attr3;\n }", "protected abstract void setContextAttribute(String name, Object value);", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "void setProperty(String attribute, String value);", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "@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}", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void setAttribute(Object key, Object value);", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "void setAttribute(String key, Object value)\n throws ProcessingException;", "public String getAttribute3()\n {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "@Override\n public void setValue(int index, Object value)\n {\n if (index == 1)\n {\n super.setValue(index, value); \n }\n else if (index == 2)\n {\n if (m_Scaler != 0)\n {\n try\n { \n m_Value = ((Number)value).doubleValue() * getScaler();\n }\n catch (Exception ex)\n {\n //Sometimes scaler is set for wrong Object type.\n setValue(value);\n }\n }\n else\n {\n setValue(value);\n }\n }\n else if (index == 3)\n { \n //Set default values.\n if (value == null)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n if (Array.getLength(value) != 2)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n m_Scaler = ((Number)Array.get(value, 0)).intValue();\n m_Unit = (((Number)Array.get(value, 1)).intValue() & 0xFF);\n }\n }\n }\n else\n {\n throw new IllegalArgumentException(\"GetValue failed. Invalid attribute index.\");\n }\n }", "void updateAttribute(final AuthValues authToken, final UUID garId, final Attribute attribute) throws WorkflowException;", "String attributeToSetter(String name);", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "final public void setAttr(final String name, final Vector2 value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name)) {\r\n\t\t\t\tif(value == null)\r\n\t\t\t\t\tattr.Vector = null;\r\n\t\t\t\telse\r\n\t\t\t\t\tattr.Vector = value.clone();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setAttribute4(String value)\n {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "void setAttribute( String attrName, Object value ) throws FileSystemException;", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public void setAttribute(java.lang.String attrName, java.lang.String value) {\n\t\ttry {\n\t\t\tGovSteamFV4_primitive_builder attrEnum = GovSteamFV4_primitive_builder.valueOf(attrName);\n\t\t\tupdateAttributeInArray(attrEnum, attrEnum.construct(value));\n\t\t\tSystem.out.println(\"Updated GovSteamFV4, setting \" + attrName + \" to: \" + value);\n\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t{\n\t\t\tsuper.setAttribute(attrName, value);\n\t\t}\n\t}", "public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }", "public EdmAttribute setupAttribute(String val) {\n EdmAttribute a = new EdmAttribute(val);\n return a;\n }", "void setValueExpression(String attributeName, ValueExpression valueExpression);", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "public int storeAttribute(String key, String value);", "@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}", "public void attribute(String name, String value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n writerEscape.writeAttValue(value);\r\n this.writer.write('\"');\r\n }", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "public void set(String attribute, Object value) {\r\n\t\tput(attribute, value);\r\n\t}", "public String getAttribute3() {\n return (String) getAttributeInternal(ATTRIBUTE3);\n }", "public void set(AttributeDefinition attribute, Object value)\n throws UnknownAttributeException, ModificationNotPermitedException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \"cannot be modified with set method\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "public void setAttribute6(String value)\n {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "public void setAttribute(Execution exec, String name, Object value);", "public static void attribute(String name, int value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "@Override\n\tpublic void setAttribute(String name, Object o) {\n\t\t\n\t}", "public static void attribute(String name, String value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void setAttribute9(String value)\n {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "public void setAttribute(String attribute, String value)\n\t{\n\t\tattributes.put(attribute, value);\n\t}", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "public void setAttribute(NameValue a) {\n\t\tattribute = a;\n\t\tattribute.setSeparator(Separators.COLON);\n\t}", "default void putAttribute(ConceptName name, Attribute attribute) {}" ]
[ "0.7688035", "0.7688035", "0.7688035", "0.7688035", "0.7688035", "0.7688035", "0.72924995", "0.71855056", "0.71252316", "0.71252316", "0.697724", "0.695035", "0.6921241", "0.69203895", "0.6778256", "0.6753819", "0.6646772", "0.6620179", "0.6618567", "0.6618567", "0.6585758", "0.6573705", "0.65694845", "0.6559625", "0.6551012", "0.6540957", "0.65320486", "0.6494486", "0.64859235", "0.644459", "0.6423893", "0.64097846", "0.6407622", "0.640247", "0.63824874", "0.63824874", "0.6331958", "0.63213813", "0.63213813", "0.63150364", "0.6312666", "0.6287735", "0.6287735", "0.6287735", "0.6287735", "0.6287735", "0.6287735", "0.628666", "0.62705004", "0.62705004", "0.62705004", "0.62705004", "0.62705004", "0.62705004", "0.6245753", "0.62450504", "0.62440085", "0.6233494", "0.62311894", "0.62286305", "0.62276024", "0.62198687", "0.6219854", "0.61958903", "0.6185107", "0.61642236", "0.6153057", "0.6147656", "0.6135809", "0.6120995", "0.6114712", "0.6101345", "0.6101345", "0.6101345", "0.6101345", "0.6101345", "0.6100966", "0.6098514", "0.6090742", "0.60906994", "0.60728645", "0.60693437", "0.60603863", "0.6048184", "0.6034775", "0.6032382", "0.60320055", "0.6011231", "0.6008856", "0.60006416", "0.59987307", "0.5997077", "0.59890765", "0.59676516", "0.5965813", "0.5960578", "0.5944606", "0.5943338", "0.5937051", "0.59320056" ]
0.78783154
0
/ Gets the attribute value for Attribute4, using the alias name Attribute4
public String getAttribute4() { return (String)getAttributeInternal(ATTRIBUTE4); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute4() {\n return (String) getAttributeInternal(ATTRIBUTE4);\n }", "public String getAttribute4() {\n return (String)getAttributeInternal(ATTRIBUTE4);\n }", "public String getAttribute4() {\n return (String)getAttributeInternal(ATTRIBUTE4);\n }", "public String getAttribute4() {\n return (String)getAttributeInternal(ATTRIBUTE4);\n }", "public String getAttribute4() {\n return (String)getAttributeInternal(ATTRIBUTE4);\n }", "public String getAttribute4() {\n return (String)getAttributeInternal(ATTRIBUTE4);\n }", "java.lang.String getAttribute();", "Attribute getAttribute();", "Object getAttribute(int attribute);", "public String getAttribute3() {\n return attribute3;\n }", "public String getAttribute3()\n {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttr4() {\n return attr4;\n }", "public String getAttr4() {\n return attr4;\n }", "String getAttribute();", "public org.omg.uml.foundation.core.Attribute getAttribute();", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public String getAttribute3() {\n return (String) getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute(String name);", "public Object getAttribute(String name);", "public String getExtAttribute4() {\n return (String) getAttributeInternal(EXTATTRIBUTE4);\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public String getIntAttribute4() {\n return (String) getAttributeInternal(INTATTRIBUTE4);\n }", "public String getAttribute1()\n {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return attribute1;\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public String getAttr3() {\n return attr3;\n }", "public String getAttr3() {\n return attr3;\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute6()\n {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "public void setAttr4(String attr4) {\n this.attr4 = attr4;\n }", "public void setAttr4(String attr4) {\n this.attr4 = attr4;\n }", "public Attribute fetchAttribute(String key, String value);", "public TLAttribute getAttribute(String attributeName);", "public Object get(String aName) { return _attrMap.get(aName); }", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "public String getExtAttribute3() {\n return (String) getAttributeInternal(EXTATTRIBUTE3);\n }", "Object getAttribute(String key);", "Object getAttribute(String key);", "public HbAttributeInternal getAttribute(String name);", "Pair<String, String> getAdditionalAttribute();", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public String getAttribute5()\n {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute7()\n {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "public String getAttribute6() {\n return (String) getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute9()\n {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute(final String attributeLocator);", "public Object getProperty(String attName);", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public int getAttribute() {\n return Attribute;\n }", "public Attribute fetchAttributeById(int attribId);", "String getAttributeStringValue(Object attr);", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "String attributeToGetter(String name);", "public String getAttribute2() {\n return attribute2;\n }", "public String getAttributeValue(Node node, String attributeName) throws Exception;", "private String nextAttribValue()\n {\n if (empty())\n return null;\n\n String result = nextQuotedString();\n if (result != null)\n return result;\n return nextIdentifier();\n }", "public String getAttribute2()\n {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getElementAttribute(int row, int attr);", "public String getAttribute8()\n {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getIntAttribute3() {\n return (String) getAttributeInternal(INTATTRIBUTE3);\n }", "public String getAttribute5() {\n return (String) getAttributeInternal(ATTRIBUTE5);\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public String getAttribute9() {\n return (String) getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute12()\n {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttr6() {\n return attr6;\n }", "public String getAttribute7() {\n return (String) getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute(String name)\n\tthrows SdpParseException {\n\tif (name != null) {\n\t for (int i = 0; i < this.attributeFields.size(); i++) {\n\t\tAttributeField af = (AttributeField)\n\t\t this.attributeFields.elementAt(i);\n\t\tif (name.equals(af.getAttribute().getName())) \n\t\t return (String) af.getAttribute().getValue();\n\t }\n\t return null; \n\t} else throw new NullPointerException(\"null arg!\");\n }", "public String getAttribute(int nameCode) {\r\n return bufferedAttributes.getValueByFingerprint(nameCode & 0xfffff);\r\n }", "public String getAttribute() {\n return attribute;\n }", "com.google.protobuf.ByteString getAttributeBytes();", "public String getAttribute_value() {\n return attribute_value;\n }", "@Override\n\tpublic Attribute attribute(final int index) {\n\t\treturn attributes[index];\n\t}", "public Object getAttribute(Object key);", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }" ]
[ "0.73301977", "0.7316126", "0.7316126", "0.7316126", "0.7316126", "0.7316126", "0.7105993", "0.70797247", "0.7009728", "0.69806993", "0.69167894", "0.68837595", "0.68837595", "0.68630666", "0.6851221", "0.67947423", "0.67947423", "0.67947423", "0.6758973", "0.6755573", "0.6755573", "0.6755573", "0.6755573", "0.6755573", "0.672988", "0.67296124", "0.66761684", "0.6668369", "0.66400844", "0.65503705", "0.6526928", "0.6491743", "0.6478109", "0.64055645", "0.6399802", "0.63747084", "0.63730013", "0.6367246", "0.6367246", "0.63609916", "0.63609916", "0.63609916", "0.63609916", "0.63609916", "0.63057095", "0.63044065", "0.6296754", "0.6292899", "0.6292899", "0.6282239", "0.6273532", "0.624484", "0.6242506", "0.6210964", "0.6205739", "0.6205739", "0.61943406", "0.6193238", "0.6164127", "0.6154297", "0.615331", "0.6150536", "0.61419785", "0.6129872", "0.6124884", "0.6115217", "0.61094856", "0.61094856", "0.61094856", "0.6109217", "0.6103473", "0.6103442", "0.61000025", "0.6096417", "0.6094078", "0.60795164", "0.60714483", "0.6065269", "0.60228056", "0.6000675", "0.5995928", "0.599064", "0.5977756", "0.59729654", "0.59728324", "0.5971013", "0.59684545", "0.59645265", "0.59607327", "0.5960691", "0.59573734", "0.5950744", "0.59459156", "0.59410757", "0.5939572", "0.5936485", "0.59209645", "0.59209645", "0.59209645", "0.59209645" ]
0.7496662
0
/ Sets value as the attribute value for Attribute4
public void setAttribute4(String value) { setAttributeInternal(ATTRIBUTE4, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setInternal(ATTRIBUTES attribute, Object iValue);", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "void setInt(int attributeValue);", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "public void setAttribute3(String value)\n {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttrib(String name, String value);", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "public void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "protected abstract void setContextAttribute(String name, Object value);", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "void setAttributes(String attributeName, String attributeValue);", "void setString(String attributeValue);", "@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\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttr4(String attr4) {\n this.attr4 = attr4;\n }", "public void setAttr4(String attr4) {\n this.attr4 = attr4;\n }", "public void setExtAttribute4(String value) {\n setAttributeInternal(EXTATTRIBUTE4, value);\n }", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public void setAttribute(java.lang.String attrName, java.lang.String value) {\n\t\ttry {\n\t\t\tGovSteamFV4_primitive_builder attrEnum = GovSteamFV4_primitive_builder.valueOf(attrName);\n\t\t\tupdateAttributeInArray(attrEnum, attrEnum.construct(value));\n\t\t\tSystem.out.println(\"Updated GovSteamFV4, setting \" + attrName + \" to: \" + value);\n\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t{\n\t\t\tsuper.setAttribute(attrName, value);\n\t\t}\n\t}", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "public void attribute(String name, String value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n writerEscape.writeAttValue(value);\r\n this.writer.write('\"');\r\n }", "public void setAttribute2(String value)\n {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "String attributeToSetter(String name);", "void setProperty(String attribute, String value);", "@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}", "public void setAttribute6(String value)\n {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "public FreeMindWriter attribute( String name, String value ) {\n tagClose();\n out.println( \"<attribute NAME='\" + name + \"' VALUE='\" + value + \"'/>\" );\n return this; \n }", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "public void attribute(int nameCode, CharSequence value) throws XPathException {\r\n if (depthOfHole == 0) {\r\n nextReceiver.attribute(nameCode, value);\r\n }\r\n }", "public static void attribute(String name, int value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "void setAttribute(String key, Object value)\n throws ProcessingException;", "public void setIntAttribute4(String value) {\n setAttributeInternal(INTATTRIBUTE4, value);\n }", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "public static void attribute(String name, String value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public T set(String name, Object value)\n\t\t\tthrows TablesawException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tif (value instanceof String)\n\t\t\t\t{\n\t\t\t\tm_intHelper.setAttribute(m_project, m_antObject, name, (String)value);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tMethod m = m_intHelper.getAttributeMethod(name);\n\t\t\t\tm.invoke(m_antObject, value);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\t// TODO: add better error\n\t\t\tthrow new TablesawException(iae);\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new TablesawException(\"Error setting attribute '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\n\t\treturn ((T)this);\n\t\t}", "public EdmAttribute setupAttribute(String val) {\n EdmAttribute a = new EdmAttribute(val);\n return a;\n }", "final public void setAttr(final String name, final Vector2 value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name)) {\r\n\t\t\t\tif(value == null)\r\n\t\t\t\t\tattr.Vector = null;\r\n\t\t\t\telse\r\n\t\t\t\t\tattr.Vector = value.clone();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Attribute setValue(String value) {\n Attribute result = null;\n if (!\"\".equals(value)) {\n result = super.setValue(value);\n } else {\n this.detach();\n }\n return result;\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setValue3(String value3) { this.value3 = value3; }", "@Override\n\tpublic void setAttribute(String name, Object o) {\n\t\t\n\t}", "public void attribute(int nameCode, CharSequence value)\r\n throws XPathException {\r\n\r\n bufferedAttributes.addAttribute(nameCode, value.toString());\r\n\r\n // Note: we're relying on the fact that AttributeCollection can hold two attributes of the same name\r\n // and maintain their order, because the check for duplicate attributes is not done until later in the\r\n // pipeline. We validate both the attributes (see Bugzilla #4600 which legitimizes this.)\r\n\r\n }", "public void setAttribute(Object key, Object value);", "public void setValue(final String value) {\n super.setAttributeValue(value);\n }", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "public void setAttribute5(String value)\n {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void processDefinitionAttribute(String name, String value) {\n\t\tcurrentDefinition.setAttribute(name, value);\n\t}", "public void setExtAttribute3(String value) {\n setAttributeInternal(EXTATTRIBUTE3, value);\n }", "void setValueExpression(String attributeName, ValueExpression valueExpression);", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "public void set(String attribute, Object value) {\r\n\t\tput(attribute, value);\r\n\t}", "protected Attr attr(String name, String value){\n\t\tAttr a = doc.createAttribute(name);\n\t\ta.setValue(value);\n\t\treturn a;\n\t}", "public void setAttribute12(String value)\n {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public Pair<String, String> mapAttributeValue(String value);", "@Override\n public Pair<String, String> mapAttributeValue(String value)\n {\n return new Pair<String, String>(null, value);\n }", "public void setAttribute9(String value)\n {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "void updateAttribute(final AuthValues authToken, final UUID garId, final Attribute attribute) throws WorkflowException;", "@Override\n public void setAttribute(String name, Object value) {\n if (name == null)\n throw new IllegalArgumentException(\"standardSession.setAttribute.namenull\");\n // Null value is the same as removeAttribute()\n if (value == null) {\n removeAttribute(name);\n return;\n }\n if (!valid)\n return;\n attributes.put(name, value);\n }" ]
[ "0.7318143", "0.72795224", "0.7230659", "0.7182655", "0.71457726", "0.71457726", "0.71457726", "0.71457726", "0.71457726", "0.71457726", "0.71427006", "0.7140919", "0.70956266", "0.6975648", "0.69285387", "0.6912963", "0.68895495", "0.68658775", "0.68658775", "0.6859943", "0.6853242", "0.68509763", "0.68509763", "0.68506455", "0.68326914", "0.68290037", "0.68150026", "0.6810297", "0.67731994", "0.67731994", "0.67731994", "0.67731994", "0.67731994", "0.67731994", "0.67478794", "0.67478794", "0.66694653", "0.6636809", "0.6632445", "0.6630288", "0.66171074", "0.6596032", "0.6596032", "0.6596032", "0.6596032", "0.6596032", "0.6596032", "0.65768534", "0.65613645", "0.65486693", "0.6531868", "0.6522976", "0.6521293", "0.65076625", "0.64980817", "0.64903593", "0.64797306", "0.6452865", "0.6438174", "0.6436528", "0.6434397", "0.64055055", "0.6402588", "0.6394638", "0.63928264", "0.6392259", "0.6382403", "0.63643664", "0.6359479", "0.6359235", "0.6333837", "0.63315135", "0.63264954", "0.63259345", "0.6320567", "0.63166195", "0.63166195", "0.63166195", "0.63166195", "0.63166195", "0.63166195", "0.63164973", "0.6315612", "0.6313253", "0.62998605", "0.62986594", "0.62883365", "0.6278957", "0.6267823", "0.62646097", "0.62508386", "0.625", "0.6248243", "0.6245316", "0.62391627", "0.6232576", "0.62215286", "0.6210933", "0.62106943", "0.6210668" ]
0.7372391
0
/ Gets the attribute value for Attribute5, using the alias name Attribute5
public String getAttribute5() { return (String)getAttributeInternal(ATTRIBUTE5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute5() {\n return (String) getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttr5() {\n return attr5;\n }", "public String getAttr5() {\n return attr5;\n }", "java.lang.String getAttribute();", "Attribute getAttribute();", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "String getAttribute();", "public String getAttribute(String name);", "Object getAttribute(int attribute);", "public String getAttribute3()\n {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public String getAttribute3() {\n return attribute3;\n }", "public Object getAttribute(String name);", "public String getExtAttribute5() {\n return (String) getAttributeInternal(EXTATTRIBUTE5);\n }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public String getAttribute6()\n {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute1()\n {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public Attribute fetchAttribute(String key, String value);", "public String getAttribute3() {\n return (String) getAttributeInternal(ATTRIBUTE3);\n }", "public String getIntAttribute5() {\n return (String) getAttributeInternal(INTATTRIBUTE5);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public String getAttribute1() {\n return attribute1;\n }", "public String getAttribute6() {\n return (String) getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public String getAttributeValueAlias() {\n return attributeValueAlias;\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/* */ }", "public void setAttr5(String attr5) {\n this.attr5 = attr5;\n }", "public void setAttr5(String attr5) {\n this.attr5 = attr5;\n }", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "public TLAttribute getAttribute(String attributeName);", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public String getAttribute7()\n {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttributeValue(Node node, String attributeName) throws Exception;", "public String getAttribute4()\n {\n return (String)getAttributeInternal(ATTRIBUTE4);\n }", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "public HbAttributeInternal getAttribute(String name);", "public String getExtAttribute3() {\n return (String) getAttributeInternal(EXTATTRIBUTE3);\n }", "public String getAttribute(final String attributeLocator);", "String getAttributeStringValue(Object attr);", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "Object getAttribute(String key);", "Object getAttribute(String key);", "public String getAttribute7() {\n return (String) getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute9()\n {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttr6() {\n return attr6;\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute4() {\n return (String) getAttributeInternal(ATTRIBUTE4);\n }", "public String getIntAttribute6() {\n return (String) getAttributeInternal(INTATTRIBUTE6);\n }", "public String getAttribute2() {\n return attribute2;\n }", "String attributeToGetter(String name);", "public String getAttribute4() {\n return (String)getAttributeInternal(ATTRIBUTE4);\n }", "public String getAttribute4() {\n return (String)getAttributeInternal(ATTRIBUTE4);\n }", "public String getAttribute4() {\n return (String)getAttributeInternal(ATTRIBUTE4);\n }", "public String getAttribute4() {\n return (String)getAttributeInternal(ATTRIBUTE4);\n }", "public String getAttribute4() {\n return (String)getAttributeInternal(ATTRIBUTE4);\n }", "public String getAttribute2()\n {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getExtAttribute6() {\n return (String) getAttributeInternal(EXTATTRIBUTE6);\n }", "public String getAttr3() {\n return attr3;\n }", "public String getAttr3() {\n return attr3;\n }", "public String getAttribute_value() {\n return attribute_value;\n }", "public static String getAttributeValue(String attr_string, String attr_name)\n {\n StringTokenizer st = new StringTokenizer(attr_string, \"^\");\n\n attr_name += \"=\";\n while (st.hasMoreTokens())\n {\n String str = st.nextToken();\n if (str.startsWith(attr_name))\n {\n return str.substring(attr_name.length());\n }\n }\n return \"\";\n }", "public String getAttribute8()\n {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "final private com.org.multigear.mginterface.engine.Configuration.Attr getAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getAttribute(String name)\n\tthrows SdpParseException {\n\tif (name != null) {\n\t for (int i = 0; i < this.attributeFields.size(); i++) {\n\t\tAttributeField af = (AttributeField)\n\t\t this.attributeFields.elementAt(i);\n\t\tif (name.equals(af.getAttribute().getName())) \n\t\t return (String) af.getAttribute().getValue();\n\t }\n\t return null; \n\t} else throw new NullPointerException(\"null arg!\");\n }", "public String getAttribute9() {\n return (String) getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "Pair<String, String> getAdditionalAttribute();", "public Object getProperty(String attName);", "public Object getAttribute(Object key);", "public Object get(String aName) { return _attrMap.get(aName); }", "public String getAttribute2() {\n return (String) getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute11()\n {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }" ]
[ "0.73032343", "0.72847724", "0.72847724", "0.72847724", "0.72847724", "0.72847724", "0.7076531", "0.7076531", "0.6892961", "0.6884054", "0.6776394", "0.6725464", "0.6678729", "0.66729057", "0.66602767", "0.6659459", "0.6659459", "0.6659459", "0.66545886", "0.6625104", "0.6616102", "0.66016966", "0.65593684", "0.65551007", "0.6526145", "0.65210795", "0.6505708", "0.65010834", "0.65010834", "0.65010834", "0.65010834", "0.65010834", "0.64754397", "0.64598566", "0.6434798", "0.64058375", "0.6391396", "0.6391396", "0.6391396", "0.63862735", "0.63862735", "0.63862735", "0.63862735", "0.63862735", "0.63860816", "0.6338359", "0.6328822", "0.6303903", "0.6292621", "0.6292621", "0.6286302", "0.6284292", "0.6259848", "0.6235536", "0.6230155", "0.6171723", "0.61388475", "0.61296374", "0.609696", "0.6093204", "0.6091431", "0.6090095", "0.60825735", "0.6079524", "0.6076571", "0.6075574", "0.6075574", "0.6074202", "0.6053162", "0.6044958", "0.6030066", "0.6030066", "0.6030066", "0.60117733", "0.599125", "0.5987703", "0.5984185", "0.59774715", "0.59774715", "0.59774715", "0.59774715", "0.59774715", "0.5966815", "0.5963958", "0.5961241", "0.5961241", "0.59505755", "0.5949057", "0.5938802", "0.59296256", "0.5921188", "0.5910959", "0.58991367", "0.589131", "0.588178", "0.5878382", "0.58754313", "0.58694994", "0.58688915", "0.5868868" ]
0.74867535
0
/ Sets value as the attribute value for Attribute5
public void setAttribute5(String value) { setAttributeInternal(ATTRIBUTE5, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "public void setAttr5(String attr5) {\n this.attr5 = attr5;\n }", "public void setAttr5(String attr5) {\n this.attr5 = attr5;\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void setAttribute6(String value)\n {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute3(String value)\n {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "void setInt(int attributeValue);", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "public void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "public void setAttrib(String name, String value);", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setExtAttribute5(String value) {\n setAttributeInternal(EXTATTRIBUTE5, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute4(String value)\n {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "void setAttributes(String attributeName, String attributeValue);", "@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}", "void setString(String attributeValue);", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void attribute(String name, String value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n writerEscape.writeAttValue(value);\r\n this.writer.write('\"');\r\n }", "protected abstract void setContextAttribute(String name, Object value);", "public String getAttr5() {\n return attr5;\n }", "public String getAttr5() {\n return attr5;\n }", "public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }", "public void setIntAttribute5(String value) {\n setAttributeInternal(INTATTRIBUTE5, value);\n }", "public void setValue(final String value) {\n super.setAttributeValue(value);\n }", "public static void attribute(String name, int value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void setAttribute2(String value)\n {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public FreeMindWriter attribute( String name, String value ) {\n tagClose();\n out.println( \"<attribute NAME='\" + name + \"' VALUE='\" + value + \"'/>\" );\n return this; \n }", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "public static void attribute(String name, String value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public void setValue3(String value3) { this.value3 = value3; }", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "public void setAttribute9(String value)\n {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public T set(String name, Object value)\n\t\t\tthrows TablesawException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tif (value instanceof String)\n\t\t\t\t{\n\t\t\t\tm_intHelper.setAttribute(m_project, m_antObject, name, (String)value);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tMethod m = m_intHelper.getAttributeMethod(name);\n\t\t\t\tm.invoke(m_antObject, value);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\t// TODO: add better error\n\t\t\tthrow new TablesawException(iae);\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new TablesawException(\"Error setting attribute '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\n\t\treturn ((T)this);\n\t\t}", "public void setAttribute11(String value)\n {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute(java.lang.String attrName, java.lang.String value) {\n\t\ttry {\n\t\t\tGovSteamFV4_primitive_builder attrEnum = GovSteamFV4_primitive_builder.valueOf(attrName);\n\t\t\tupdateAttributeInArray(attrEnum, attrEnum.construct(value));\n\t\t\tSystem.out.println(\"Updated GovSteamFV4, setting \" + attrName + \" to: \" + value);\n\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t{\n\t\t\tsuper.setAttribute(attrName, value);\n\t\t}\n\t}", "public void attribute(int nameCode, CharSequence value) throws XPathException {\r\n if (depthOfHole == 0) {\r\n nextReceiver.attribute(nameCode, value);\r\n }\r\n }", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "public void setAttribute7(String value)\n {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setExtAttribute3(String value) {\n setAttributeInternal(EXTATTRIBUTE3, value);\n }", "public void setExtAttribute6(String value) {\n setAttributeInternal(EXTATTRIBUTE6, value);\n }", "String attributeToSetter(String name);", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "protected Attr attr(String name, String value){\n\t\tAttr a = doc.createAttribute(name);\n\t\ta.setValue(value);\n\t\treturn a;\n\t}", "public void setAttribute15(String value)\n {\n setAttributeInternal(ATTRIBUTE15, value);\n }", "void setValueExpression(String attributeName, ValueExpression valueExpression);", "public static void attribute(String name, Word value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}", "@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public String getAttribute5()\n {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}" ]
[ "0.7428277", "0.7428277", "0.7428277", "0.7428277", "0.7428277", "0.7428277", "0.7246221", "0.7232557", "0.7232557", "0.7145837", "0.71225756", "0.7076577", "0.70391303", "0.6994722", "0.69814944", "0.6971121", "0.6957333", "0.6932647", "0.69296193", "0.6914478", "0.68998694", "0.6854112", "0.6854112", "0.68350494", "0.68323165", "0.68323165", "0.68323165", "0.68323165", "0.68238354", "0.68238354", "0.6806659", "0.6806659", "0.6806659", "0.6806659", "0.6806659", "0.6806659", "0.68029517", "0.67994636", "0.67994636", "0.67994636", "0.67994636", "0.67994636", "0.67994636", "0.6745248", "0.6729015", "0.67180145", "0.67137605", "0.6664982", "0.66573304", "0.66190374", "0.66156894", "0.6593186", "0.6593186", "0.6588622", "0.65762585", "0.65576786", "0.6542739", "0.65382874", "0.6531206", "0.65294784", "0.6513034", "0.6513034", "0.6513034", "0.6513034", "0.6513034", "0.6513034", "0.65005815", "0.64966536", "0.6476018", "0.6475871", "0.6470654", "0.6469311", "0.64606297", "0.6415114", "0.6413125", "0.6405844", "0.64040196", "0.6393743", "0.63760555", "0.63760555", "0.63760555", "0.63760555", "0.63760555", "0.63760555", "0.637446", "0.63493675", "0.6338908", "0.63348067", "0.63292086", "0.6328407", "0.6324838", "0.632208", "0.63130957", "0.62889427", "0.6281288", "0.6281288", "0.6281288", "0.6281288", "0.6273992", "0.62729686" ]
0.7637119
0
/ Gets the attribute value for Attribute6, using the alias name Attribute6
public String getAttribute6() { return (String)getAttributeInternal(ATTRIBUTE6); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute6() {\n return (String) getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttr6() {\n return attr6;\n }", "Attribute getAttribute();", "java.lang.String getAttribute();", "public String getAttribute7()\n {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "String getAttribute();", "public String getExtAttribute6() {\n return (String) getAttributeInternal(EXTATTRIBUTE6);\n }", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(int attribute);", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public String getAttribute(String name);", "public String getIntAttribute6() {\n return (String) getAttributeInternal(INTATTRIBUTE6);\n }", "public String getAttribute7() {\n return (String) getAttributeInternal(ATTRIBUTE7);\n }", "public Object getAttribute(String name);", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute3()\n {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return attribute3;\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public void setAttr6(String attr6) {\n this.attr6 = attr6;\n }", "public String getAttribute3() {\n return (String) getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "Object getAttribute(String key);", "Object getAttribute(String key);", "public String getAttribute1()\n {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public String getAttribute9()\n {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute5()\n {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public Attribute fetchAttribute(String key, String value);", "public String getAttribute1() {\n return attribute1;\n }", "public HbAttributeInternal getAttribute(String name);", "public String getAttr7() {\n return attr7;\n }", "public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\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/* */ }", "public String getAttribute9() {\n return (String) getAttributeInternal(ATTRIBUTE9);\n }", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public String getAttribute(final String attributeLocator);", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public Object getAttribute(Object key);", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public String getAttribute5() {\n return (String) getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public String getExtAttribute7() {\n return (String) getAttributeInternal(EXTATTRIBUTE7);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "String getAttributeStringValue(Object attr);", "public String getAttribute4()\n {\n return (String)getAttributeInternal(ATTRIBUTE4);\n }", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public String getAttribute2()\n {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute12()\n {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "public String getAttribute2() {\n return attribute2;\n }", "public String getAttribute8()\n {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getExtAttribute3() {\n return (String) getAttributeInternal(EXTATTRIBUTE3);\n }", "Pair<String, String> getAdditionalAttribute();", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "final private com.org.multigear.mginterface.engine.Configuration.Attr getAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getIntAttribute7() {\n return (String) getAttributeInternal(INTATTRIBUTE7);\n }", "public Object get(String aName) { return _attrMap.get(aName); }", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public String getAttribute(String key) {\n return attributes.get(key);\n }", "public String getAttribute2() {\n return (String) getAttributeInternal(ATTRIBUTE2);\n }", "public TLAttribute getAttribute(String attributeName);", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute4() {\n return (String) getAttributeInternal(ATTRIBUTE4);\n }", "public Object getAttribute(Object key) {\n return getAttributes().get(key);\n }", "String attributeToGetter(String name);", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public tudresden.ocl20.core.jmi.ocl.commonmodel.Attribute lookupAttribute(java.lang.String attName) {\n Iterator featuresIt = getFeature().iterator();\n while(featuresIt.hasNext()){\n Feature feature = (Feature) featuresIt.next();\n if(feature instanceof Attribute && feature.getNameA().equals(attName)){\n return (Attribute) feature;\n }\n }\n Iterator parentsIt = this.getParents().iterator();//getGeneralization().iterator();\n while(parentsIt.hasNext()){\n Classifier parent = (Classifier) parentsIt.next();//((GeneralizationImpl) parentsIt.next()).getParent();\n Attribute a = (Attribute) parent.lookupAttribute(attName);\n if(a != null){\n return a;\n }\n }\n \n return null;\n }", "public String getAttribute_value() {\n return attribute_value;\n }", "public synchronized Object getAttribute(String key) {\n return attributes.get(key);\n }", "public Object getProperty(String attName);" ]
[ "0.73447496", "0.7335527", "0.7335527", "0.7335527", "0.7152442", "0.70248944", "0.7000053", "0.68383276", "0.68274057", "0.6785015", "0.6771969", "0.6771969", "0.6771969", "0.6763798", "0.6738435", "0.6671215", "0.6654672", "0.66538775", "0.66370267", "0.6622307", "0.6622307", "0.6622307", "0.6582282", "0.65789527", "0.6547909", "0.6527971", "0.64155686", "0.63979256", "0.63979256", "0.63979256", "0.63979256", "0.63979256", "0.6384731", "0.637584", "0.637584", "0.6363766", "0.63370883", "0.6311025", "0.6306266", "0.6276333", "0.6268205", "0.6219941", "0.6214787", "0.6205802", "0.6181255", "0.6181255", "0.6181255", "0.6181255", "0.6181255", "0.61703354", "0.61665857", "0.615708", "0.61528224", "0.6144183", "0.61322993", "0.6118314", "0.6118292", "0.61089605", "0.61075974", "0.61075974", "0.61075974", "0.60898906", "0.6069039", "0.6055608", "0.6055608", "0.6055608", "0.6055608", "0.6055608", "0.60477376", "0.6047073", "0.6029841", "0.60144055", "0.6010847", "0.5998133", "0.599057", "0.5978127", "0.5964609", "0.5955952", "0.5938194", "0.5931227", "0.59309524", "0.5904267", "0.58968025", "0.58957696", "0.58946645", "0.58929676", "0.5880778", "0.587151", "0.587151", "0.587151", "0.587151", "0.587151", "0.5857433", "0.5848523", "0.5843275", "0.58431953", "0.5840618", "0.58359885", "0.5835833", "0.5833751" ]
0.7522305
0
/ Sets value as the attribute value for Attribute6
public void setAttribute6(String value) { setAttributeInternal(ATTRIBUTE6, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "public void setAttr6(String attr6) {\n this.attr6 = attr6;\n }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void setExtAttribute6(String value) {\n setAttributeInternal(EXTATTRIBUTE6, value);\n }", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "public void setAttribute7(String value)\n {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttrib(String name, String value);", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "void setInt(int attributeValue);", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "public void setIntAttribute6(String value) {\n setAttributeInternal(INTATTRIBUTE6, value);\n }", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "public void setAttribute3(String value)\n {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "protected abstract void setContextAttribute(String name, Object value);", "void setString(String attributeValue);", "public void setAttribute5(String value)\n {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute9(String value)\n {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute7(String value) {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttribute7(String value) {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttribute7(String value) {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttribute7(String value) {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "@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}", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "void setAttributes(String attributeName, String attributeValue);", "String attributeToSetter(String name);", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void processDefinitionAttribute(String name, String value) {\n\t\tcurrentDefinition.setAttribute(name, value);\n\t}", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "public void setAttribute2(String value)\n {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute4(String value)\n {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setValue(final String value) {\n super.setAttributeValue(value);\n }", "public void set(AttributeDefinition attribute, Object value)\n throws UnknownAttributeException, ModificationNotPermitedException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \"cannot be modified with set method\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "public String getAttr6() {\n return attr6;\n }", "public T set(String name, Object value)\n\t\t\tthrows TablesawException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tif (value instanceof String)\n\t\t\t\t{\n\t\t\t\tm_intHelper.setAttribute(m_project, m_antObject, name, (String)value);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tMethod m = m_intHelper.getAttributeMethod(name);\n\t\t\t\tm.invoke(m_antObject, value);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\t// TODO: add better error\n\t\t\tthrow new TablesawException(iae);\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new TablesawException(\"Error setting attribute '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\n\t\treturn ((T)this);\n\t\t}", "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setValue3(String value3) { this.value3 = value3; }", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "public void attribute(String name, String value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n writerEscape.writeAttValue(value);\r\n this.writer.write('\"');\r\n }", "public void setAttribute12(String value)\n {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "void setProperty(String attribute, String value);", "public void setAttribute(Object key, Object value);", "public void setAttribute(Execution exec, String name, Object value);", "public EdmAttribute setupAttribute(String val) {\n EdmAttribute a = new EdmAttribute(val);\n return a;\n }", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public void setAttribute(java.lang.String attrName, java.lang.String value) {\n\t\ttry {\n\t\t\tGovSteamFV4_primitive_builder attrEnum = GovSteamFV4_primitive_builder.valueOf(attrName);\n\t\t\tupdateAttributeInArray(attrEnum, attrEnum.construct(value));\n\t\t\tSystem.out.println(\"Updated GovSteamFV4, setting \" + attrName + \" to: \" + value);\n\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t{\n\t\t\tsuper.setAttribute(attrName, value);\n\t\t}\n\t}", "void setAttribute(String key, Object value)\n throws ProcessingException;", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }", "@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public FreeMindWriter attribute( String name, String value ) {\n tagClose();\n out.println( \"<attribute NAME='\" + name + \"' VALUE='\" + value + \"'/>\" );\n return this; \n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "private static String setAttributesForStoring( Value value, Node node )\n\t{\n\t\tNamedNodeMap map = node.getAttributes();\n\t\tString type = \"\";\n\t\tif ( map != null ) {\n\t\t\tNode attr;\n\t\t\tfor( int i = 0; i < map.getLength(); i++ ) {\n\t\t\t\tattr = map.item( i );\n\t\t\t\tif ( !attr.getNodeName().equals( JOLIE_TYPE_ATTRIBUTE ) ) { // do not consider attribute type\n\t\t\t\t\tgetAttribute( value, (attr.getLocalName() == null) ? attr.getNodeName() : attr.getLocalName() ).setValue( attr.getNodeValue() );\n\t\t\t\t} else {\n\t\t\t\t\ttype = attr.getNodeValue();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn type;\n\t}", "public void setAttribute11(String value)\n {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setExtAttribute3(String value) {\n setAttributeInternal(EXTATTRIBUTE3, value);\n }", "public Attribute setValue(String value) {\n Attribute result = null;\n if (!\"\".equals(value)) {\n result = super.setValue(value);\n } else {\n this.detach();\n }\n return result;\n }", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "@Override\n public void setAttribute(String name, Object value) {\n if (name == null)\n throw new IllegalArgumentException(\"standardSession.setAttribute.namenull\");\n // Null value is the same as removeAttribute()\n if (value == null) {\n removeAttribute(name);\n return;\n }\n if (!valid)\n return;\n attributes.put(name, value);\n }" ]
[ "0.7485967", "0.7485967", "0.7485967", "0.7485967", "0.7052111", "0.70105374", "0.6989924", "0.695872", "0.6938176", "0.6846745", "0.6797012", "0.6787643", "0.674107", "0.67206484", "0.67077094", "0.66927713", "0.66909593", "0.6686474", "0.6677351", "0.6677351", "0.6657769", "0.664423", "0.6639112", "0.6639112", "0.6614248", "0.65674055", "0.65214324", "0.65052444", "0.6503667", "0.65002257", "0.65002257", "0.65002257", "0.65002257", "0.6493452", "0.6454439", "0.6454439", "0.6454439", "0.6454439", "0.6454439", "0.6454439", "0.64128745", "0.64128745", "0.64128745", "0.64128745", "0.64128745", "0.64128745", "0.6396933", "0.63837206", "0.6374585", "0.63732636", "0.6344849", "0.6325737", "0.6317245", "0.6309262", "0.6306096", "0.6306096", "0.6306096", "0.6306096", "0.63005275", "0.6290372", "0.6283088", "0.62743825", "0.6266302", "0.6247784", "0.6247784", "0.6247784", "0.6247784", "0.6247784", "0.6247784", "0.62463677", "0.62440014", "0.62315804", "0.6221548", "0.6203809", "0.61939704", "0.6193947", "0.6192447", "0.6191208", "0.6180119", "0.6172977", "0.6168336", "0.61639106", "0.6159452", "0.614543", "0.6134174", "0.6130909", "0.61282206", "0.61282206", "0.61282206", "0.61282206", "0.61282206", "0.61282206", "0.61280787", "0.61269844", "0.6124748", "0.61246556", "0.61054665", "0.6100865", "0.6091319", "0.6089186" ]
0.7670057
0
/ Gets the attribute value for Attribute7, using the alias name Attribute7
public String getAttribute7() { return (String)getAttributeInternal(ATTRIBUTE7); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String) getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttr7() {\n return attr7;\n }", "public String getExtAttribute7() {\n return (String) getAttributeInternal(EXTATTRIBUTE7);\n }", "public String getAttribute6()\n {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getIntAttribute7() {\n return (String) getAttributeInternal(INTATTRIBUTE7);\n }", "public String getAttribute6() {\n return (String) getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "java.lang.String getAttribute();", "Attribute getAttribute();", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public String getAttribute9()\n {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public void setAttr7(String attr7) {\n this.attr7 = attr7;\n }", "Object getAttribute(int attribute);", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getAttribute(String name);", "public String getAttribute3()\n {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "String getAttribute();", "public Object getAttribute(String name);", "public String getAttr6() {\n return attr6;\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/* */ }", "public String getAttribute9() {\n return (String) getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute3() {\n return attribute3;\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute8()\n {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute3() {\n return (String) getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public String getExtAttribute6() {\n return (String) getAttributeInternal(EXTATTRIBUTE6);\n }", "public HbAttributeInternal getAttribute(String name);", "Object getAttribute(String key);", "Object getAttribute(String key);", "public String getAttribute1()\n {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "public String getAttribute8() {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute8() {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute8() {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute8() {\n return (String) getAttributeInternal(ATTRIBUTE8);\n }", "public Attribute fetchAttribute(String key, String value);", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }", "public String getIntAttribute6() {\n return (String) getAttributeInternal(INTATTRIBUTE6);\n }", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getExtAttribute3() {\n return (String) getAttributeInternal(EXTATTRIBUTE3);\n }", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "public Object get(String aName) { return _attrMap.get(aName); }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public String getAttribute1() {\n return attribute1;\n }", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "final private com.org.multigear.mginterface.engine.Configuration.Attr getAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Object getAttribute(Object key);", "public String getAttribute12()\n {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public String getExtAttribute9() {\n return (String) getAttributeInternal(EXTATTRIBUTE9);\n }", "public String getAttr9() {\n return attr9;\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "private String getAttribute(Node nNode,String name) {\n \tNamedNodeMap attributes = nNode.getAttributes();\n \t\n \t// get the number of nodes in this map\n \tint numAttrs = attributes.getLength();\n \t\n \tfor (int i = 0; i < numAttrs; i++) {\n \t\t\n \t\tAttr attr = (Attr) attributes.item(i);\n \t\tString attrName = attr.getNodeName();\n \t\tString attrValue = attr.getNodeValue();\n \n \t\tif(attrName == name) {\n \t\t\treturn attrValue;\n \t\t}\n \t}\n \t\n \treturn null;\n }", "public String getAttribute5()\n {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public Object getProperty(String attName);", "public String getAttribute14()\n {\n return (String)getAttributeInternal(ATTRIBUTE14);\n }", "public Short getShortAttribute();", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public String getAttribute(int nameCode) {\r\n return bufferedAttributes.getValueByFingerprint(nameCode & 0xfffff);\r\n }", "Pair<String, String> getAdditionalAttribute();", "public String getAttribute11()\n {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute(String name)\n\tthrows SdpParseException {\n\tif (name != null) {\n\t for (int i = 0; i < this.attributeFields.size(); i++) {\n\t\tAttributeField af = (AttributeField)\n\t\t this.attributeFields.elementAt(i);\n\t\tif (name.equals(af.getAttribute().getName())) \n\t\t return (String) af.getAttribute().getValue();\n\t }\n\t return null; \n\t} else throw new NullPointerException(\"null arg!\");\n }", "protected ProbeValue getAttribute(String name) {\n if (values != null) {\n return values.get(name);\n } else {\n return null;\n }\n }", "public void setAttr6(String attr6) {\n this.attr6 = attr6;\n }", "public String getAttribute2()\n {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute(String key) {\n return attributes.get(key);\n }", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public String getAttribute4()\n {\n return (String)getAttributeInternal(ATTRIBUTE4);\n }", "public Object getAttribute(Object key) {\n return getAttributes().get(key);\n }", "public Attribute getAttributeByName(String name){\n for (Attribute a : attributeList){\n if (a.getAttributeName().equals(name))\n return a;\n }\n return null;\n }", "public tudresden.ocl20.core.jmi.ocl.commonmodel.Attribute lookupAttribute(java.lang.String attName) {\n Iterator featuresIt = getFeature().iterator();\n while(featuresIt.hasNext()){\n Feature feature = (Feature) featuresIt.next();\n if(feature instanceof Attribute && feature.getNameA().equals(attName)){\n return (Attribute) feature;\n }\n }\n Iterator parentsIt = this.getParents().iterator();//getGeneralization().iterator();\n while(parentsIt.hasNext()){\n Classifier parent = (Classifier) parentsIt.next();//((GeneralizationImpl) parentsIt.next()).getParent();\n Attribute a = (Attribute) parent.lookupAttribute(attName);\n if(a != null){\n return a;\n }\n }\n \n return null;\n }", "public String getAttr3() {\n return attr3;\n }", "public String getAttr3() {\n return attr3;\n }", "String getAttributeStringValue(Object attr);", "public String getAttribute12() {\n return (String) getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttribute5() {\n return (String) getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute2() {\n return attribute2;\n }", "private String readAttributeValue(XmlPullParser xpp, String name, String def)\n {\n int count = xpp.getAttributeCount();\n for (int n = 0; n < count; n++)\n {\n String attrName = xpp.getAttributeName(n);\n if (attrName != null && attrName.equalsIgnoreCase(name))\n return xpp.getAttributeValue(n);\n }\n return def;\n }" ]
[ "0.7410647", "0.7410647", "0.7410647", "0.7410581", "0.71682346", "0.6767362", "0.6707661", "0.6648679", "0.6541184", "0.6526251", "0.6526251", "0.6526251", "0.64971143", "0.64815027", "0.64343816", "0.64343816", "0.64343816", "0.6408455", "0.6403635", "0.6399997", "0.63859826", "0.6383292", "0.63597333", "0.6358113", "0.6349093", "0.6313232", "0.6276112", "0.6261759", "0.62450874", "0.62222034", "0.62222034", "0.62222034", "0.6207968", "0.6207035", "0.6194986", "0.6194986", "0.6194986", "0.6194986", "0.6194986", "0.61927336", "0.6143312", "0.61129814", "0.6086245", "0.6086245", "0.6064255", "0.606213", "0.6013128", "0.5981202", "0.5981202", "0.5981202", "0.5975911", "0.59520113", "0.5940504", "0.5937357", "0.5923765", "0.5915911", "0.5915111", "0.5915111", "0.5915111", "0.5915111", "0.5915111", "0.5876522", "0.5871261", "0.5870953", "0.5865243", "0.58583426", "0.58578664", "0.58559597", "0.5853238", "0.5822787", "0.5819614", "0.5802823", "0.5797897", "0.5787394", "0.57793564", "0.57739836", "0.5772419", "0.57610774", "0.57536405", "0.5730131", "0.5726067", "0.5720911", "0.57002836", "0.56994206", "0.56902236", "0.56821275", "0.5668758", "0.56680965", "0.56645435", "0.5656893", "0.56547534", "0.56438285", "0.562912", "0.56135106", "0.56135106", "0.5609953", "0.55961883", "0.55874234", "0.55864096", "0.5585378" ]
0.75957733
0
/ Sets value as the attribute value for Attribute7
public void setAttribute7(String value) { setAttributeInternal(ATTRIBUTE7, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAttribute7(String value) {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttribute7(String value) {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttribute7(String value) {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttribute7(String value) {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttribute6(String value)\n {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttr7(String attr7) {\n this.attr7 = attr7;\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "public void setAttribute9(String value)\n {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setExtAttribute7(String value) {\n setAttributeInternal(EXTATTRIBUTE7, value);\n }", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "void setInt(int attributeValue);", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "public void setAttribute3(String value)\n {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttrib(String name, String value);", "public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setExtAttribute6(String value) {\n setAttributeInternal(EXTATTRIBUTE6, value);\n }", "public void setIntAttribute7(String value) {\n setAttributeInternal(INTATTRIBUTE7, value);\n }", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "public void setAttribute(String name, Object value);", "@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}", "public void setAttr6(String attr6) {\n this.attr6 = attr6;\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "public void setAttribute8(String value)\n {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "public void setValue3(String value3) { this.value3 = value3; }", "public void setExtAttribute9(String value) {\n setAttributeInternal(EXTATTRIBUTE9, value);\n }", "void setString(String attributeValue);", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void setAttribute11(String value)\n {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "protected abstract void setContextAttribute(String name, Object value);", "public void setExtAttribute3(String value) {\n setAttributeInternal(EXTATTRIBUTE3, value);\n }", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void setAttribute5(String value)\n {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public void setAttribute12(String value)\n {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "public void setAttribute14(String value)\n {\n setAttributeInternal(ATTRIBUTE14, value);\n }", "public void processDefinitionAttribute(String name, String value) {\n\t\tcurrentDefinition.setAttribute(name, value);\n\t}", "public void setAttribute8(String value) {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "public void setAttribute8(String value) {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "public void setAttribute8(String value) {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "public void setAttribute8(String value) {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "public void setAttribute(Execution exec, String name, Object value);", "public void setAttribute2(String value)\n {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "public void setValue(final String value) {\n super.setAttributeValue(value);\n }", "public void setAttribute4(String value)\n {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "String attributeToSetter(String name);", "public void setAttr9(String attr9) {\n this.attr9 = attr9;\n }", "public void setAttribute(Object key, Object value);", "public Value setAttributes(Value from) {\n checkNotUnknown();\n from.checkNotUnknown();\n Value r = new Value(this);\n r.flags &= ~ATTR;\n r.flags |= from.flags & ATTR;\n return canonicalize(r);\n }", "public void setIntAttribute6(String value) {\n setAttributeInternal(INTATTRIBUTE6, value);\n }", "public String getAttr7() {\n return attr7;\n }", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "public void setAttr8(String attr8) {\n this.attr8 = attr8;\n }", "public void set(AttributeDefinition attribute, Object value)\n throws UnknownAttributeException, ModificationNotPermitedException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \"cannot be modified with set method\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "void setAttribute(String key, Object value)\n throws ProcessingException;", "public T set(String name, Object value)\n\t\t\tthrows TablesawException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tif (value instanceof String)\n\t\t\t\t{\n\t\t\t\tm_intHelper.setAttribute(m_project, m_antObject, name, (String)value);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tMethod m = m_intHelper.getAttributeMethod(name);\n\t\t\t\tm.invoke(m_antObject, value);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\t// TODO: add better error\n\t\t\tthrow new TablesawException(iae);\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new TablesawException(\"Error setting attribute '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\n\t\treturn ((T)this);\n\t\t}", "void setProperty(String attribute, String value);", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "void setAttributes(String attributeName, String attributeValue);", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}", "@Override\n public void setValue(int index, Object value)\n {\n if (index == 1)\n {\n super.setValue(index, value); \n }\n else if (index == 2)\n {\n if (m_Scaler != 0)\n {\n try\n { \n m_Value = ((Number)value).doubleValue() * getScaler();\n }\n catch (Exception ex)\n {\n //Sometimes scaler is set for wrong Object type.\n setValue(value);\n }\n }\n else\n {\n setValue(value);\n }\n }\n else if (index == 3)\n { \n //Set default values.\n if (value == null)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n if (Array.getLength(value) != 2)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n m_Scaler = ((Number)Array.get(value, 0)).intValue();\n m_Unit = (((Number)Array.get(value, 1)).intValue() & 0xFF);\n }\n }\n }\n else\n {\n throw new IllegalArgumentException(\"GetValue failed. Invalid attribute index.\");\n }\n }", "@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }" ]
[ "0.7296945", "0.7296945", "0.7296945", "0.7296945", "0.7089987", "0.68929166", "0.6865327", "0.6865327", "0.6865327", "0.6865327", "0.6853936", "0.6847655", "0.68207717", "0.67296386", "0.6727171", "0.67254126", "0.66945535", "0.66770726", "0.66555583", "0.6650072", "0.66232646", "0.6620877", "0.6620877", "0.6620877", "0.6620877", "0.65431106", "0.6515826", "0.6503694", "0.6470623", "0.6453628", "0.64536", "0.6451955", "0.6449661", "0.64460623", "0.64460623", "0.64460623", "0.64460623", "0.64460623", "0.64460623", "0.64307857", "0.64307857", "0.6416629", "0.6392775", "0.6353285", "0.63378334", "0.6334916", "0.6309497", "0.6309497", "0.6307092", "0.6307092", "0.6307092", "0.6307092", "0.6307092", "0.6307092", "0.6261273", "0.6254154", "0.6246135", "0.622375", "0.62160707", "0.62012434", "0.61944175", "0.6194216", "0.6186101", "0.6172672", "0.6166847", "0.61651886", "0.6150977", "0.6150977", "0.6150977", "0.6150977", "0.6144917", "0.6133908", "0.6132632", "0.6124284", "0.6123241", "0.61107206", "0.6107158", "0.60949785", "0.6089539", "0.6087177", "0.60867643", "0.60841656", "0.60787445", "0.60741377", "0.6051501", "0.60416627", "0.60361063", "0.601276", "0.6010109", "0.6006457", "0.59852356", "0.59781814", "0.5972423", "0.5970097", "0.59638244", "0.59634036", "0.596295", "0.5959087", "0.5959087", "0.5959087" ]
0.75155634
0
/ Gets the attribute value for Attribute8, using the alias name Attribute8
public String getAttribute8() { return (String)getAttributeInternal(ATTRIBUTE8); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute8() {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute8() {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute8() {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute8() {\n return (String) getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttr8() {\n return attr8;\n }", "public String getAttribute9()\n {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute7()\n {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "Attribute getAttribute();", "public String getAttribute9() {\n return (String) getAttributeInternal(ATTRIBUTE9);\n }", "public String getExtAttribute8() {\n return (String) getAttributeInternal(EXTATTRIBUTE8);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "java.lang.String getAttribute();", "Object getAttribute(int attribute);", "public String getAttribute7() {\n return (String) getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "String getAttribute();", "public String getIntAttribute8() {\n return (String) getAttributeInternal(INTATTRIBUTE8);\n }", "public void setAttr8(String attr8) {\n this.attr8 = attr8;\n }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public String getAttribute11()\n {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttr7() {\n return attr7;\n }", "public Attribute fetchAttribute(String key, String value);", "public String getAttribute(String name);", "public String getAttribute6()\n {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttr9() {\n return attr9;\n }", "public String getExtAttribute9() {\n return (String) getAttributeInternal(EXTATTRIBUTE9);\n }", "public Object getAttribute(String name);", "public String getAttribute12()\n {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "Object getAttribute(String key);", "Object getAttribute(String key);", "public String getAttribute3()\n {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return attribute3;\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getAttribute1()\n {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public Byte getByteAttribute();", "public String getIntAttribute7() {\n return (String) getAttributeInternal(INTATTRIBUTE7);\n }", "public String getAttribute11() {\n return (String) getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute6() {\n return (String) getAttributeInternal(ATTRIBUTE6);\n }", "public String getExtAttribute7() {\n return (String) getAttributeInternal(EXTATTRIBUTE7);\n }", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute3() {\n return (String) getAttributeInternal(ATTRIBUTE3);\n }", "public Short getShortAttribute();", "public String getIntAttribute9() {\n return (String) getAttributeInternal(INTATTRIBUTE9);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute(int nameCode) {\r\n return bufferedAttributes.getValueByFingerprint(nameCode & 0xfffff);\r\n }", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public HbAttributeInternal getAttribute(String name);", "public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return attribute1;\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute12() {\n return (String) getAttributeInternal(ATTRIBUTE12);\n }", "public Object getAttribute(Object key);", "public String getAttribute12() {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttribute12() {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttribute14()\n {\n return (String)getAttributeInternal(ATTRIBUTE14);\n }", "public String getAttribute10()\n {\n return (String)getAttributeInternal(ATTRIBUTE10);\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/* */ }", "public String getAttribute4()\n {\n return (String)getAttributeInternal(ATTRIBUTE4);\n }", "public String getAttribute5()\n {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttr6() {\n return attr6;\n }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "String getAttributeStringValue(Object attr);", "public Attribute fetchAttributeById(int attribId);", "public String getAttribute(String key) {\n return attributes.get(key);\n }", "public int getAttribute() {\n return Attribute;\n }", "public synchronized Object getAttribute(String key) {\n return attributes.get(key);\n }", "com.google.protobuf.ByteString getAttributeBytes();", "public String getIntAttribute6() {\n return (String) getAttributeInternal(INTATTRIBUTE6);\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public String getElementAttribute(int row, int attr);", "public Object get(String aName) { return _attrMap.get(aName); }", "public Object getAttribute(Object key) {\n return getAttributes().get(key);\n }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public String getExtAttribute6() {\n return (String) getAttributeInternal(EXTATTRIBUTE6);\n }", "public String getAttribute2()\n {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public TLAttribute getAttribute(String attributeName);", "public tudresden.ocl20.core.jmi.ocl.commonmodel.Attribute lookupAttribute(java.lang.String attName) {\n Iterator featuresIt = getFeature().iterator();\n while(featuresIt.hasNext()){\n Feature feature = (Feature) featuresIt.next();\n if(feature instanceof Attribute && feature.getNameA().equals(attName)){\n return (Attribute) feature;\n }\n }\n Iterator parentsIt = this.getParents().iterator();//getGeneralization().iterator();\n while(parentsIt.hasNext()){\n Classifier parent = (Classifier) parentsIt.next();//((GeneralizationImpl) parentsIt.next()).getParent();\n Attribute a = (Attribute) parent.lookupAttribute(attName);\n if(a != null){\n return a;\n }\n }\n \n return null;\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "public String getExtAttribute3() {\n return (String) getAttributeInternal(EXTATTRIBUTE3);\n }" ]
[ "0.75073683", "0.75073683", "0.75073683", "0.7470559", "0.7153788", "0.7016638", "0.6937184", "0.6899111", "0.6848393", "0.6838445", "0.6833574", "0.6833574", "0.6833574", "0.6771531", "0.6732715", "0.6729725", "0.67182124", "0.67182124", "0.67182124", "0.66666466", "0.6658104", "0.66121167", "0.64693326", "0.6451208", "0.6451208", "0.6451208", "0.64456505", "0.6439175", "0.6397051", "0.6390744", "0.6384202", "0.6370296", "0.6363066", "0.63617843", "0.63397497", "0.633809", "0.633809", "0.6336312", "0.6303014", "0.62856746", "0.6282668", "0.6267032", "0.6264633", "0.6254698", "0.6222496", "0.62178254", "0.6197521", "0.61904633", "0.61904633", "0.61873966", "0.61873966", "0.61873966", "0.61778045", "0.6177268", "0.6172309", "0.6167629", "0.6167629", "0.6167629", "0.6167629", "0.6167629", "0.6144293", "0.6139746", "0.612778", "0.61183536", "0.611769", "0.61107486", "0.61107486", "0.61107486", "0.61107486", "0.61107486", "0.60940355", "0.605762", "0.6056265", "0.6056265", "0.60401964", "0.60348886", "0.60144573", "0.60043323", "0.59915185", "0.59904766", "0.59903854", "0.5974744", "0.5970732", "0.5969974", "0.5964388", "0.5944107", "0.5939953", "0.59388584", "0.5930761", "0.5924851", "0.59176725", "0.5901398", "0.58982766", "0.58934027", "0.5888515", "0.5859919", "0.5857905", "0.5850873", "0.5839125", "0.5838301" ]
0.7708425
0
/ Sets value as the attribute value for Attribute8
public void setAttribute8(String value) { setAttributeInternal(ATTRIBUTE8, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAttr8(String attr8) {\n this.attr8 = attr8;\n }", "public void setAttribute8(String value) {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "public void setAttribute8(String value) {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "public void setAttribute8(String value) {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "public void setAttribute8(String value) {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "public void setExtAttribute8(String value) {\n setAttributeInternal(EXTATTRIBUTE8, value);\n }", "void setInt(int attributeValue);", "public void setAttribute9(String value)\n {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setIntAttribute8(String value) {\n setAttributeInternal(INTATTRIBUTE8, value);\n }", "public void setAttribute7(String value)\n {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "void setString(String attributeValue);", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void setExtAttribute9(String value) {\n setAttributeInternal(EXTATTRIBUTE9, value);\n }", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "public void setAttribute11(String value)\n {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "public void setAttribute6(String value)\n {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttrib(String name, String value);", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "public void setAttribute7(String value) {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttribute7(String value) {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttribute7(String value) {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttribute7(String value) {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttribute3(String value)\n {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public String getAttr8() {\n return attr8;\n }", "public void setAttr9(String attr9) {\n this.attr9 = attr9;\n }", "public void setIntAttribute9(String value) {\n setAttributeInternal(INTATTRIBUTE9, value);\n }", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "public void setAttribute(String name, Object value);", "public void setAttribute12(String value)\n {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public String getAttribute8()\n {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "@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}", "public void setAttribute4(String value)\n {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void set(AttributeDefinition attribute, Object value)\n throws UnknownAttributeException, ModificationNotPermitedException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \"cannot be modified with set method\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "void setAttributes(String attributeName, String attributeValue);", "@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}", "public String getAttribute8() {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute8() {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute8() {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public void setAttribute5(String value)\n {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute2(String value)\n {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute14(String value)\n {\n setAttributeInternal(ATTRIBUTE14, value);\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "protected abstract void setContextAttribute(String name, Object value);", "public void setAttribute(Object key, Object value);", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "public static void attribute(String name, byte[] value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "void setAttribute(String key, Object value)\n throws ProcessingException;", "public void setAttribute(java.lang.String attrName, java.lang.String value) {\n\t\ttry {\n\t\t\tGovSteamFV4_primitive_builder attrEnum = GovSteamFV4_primitive_builder.valueOf(attrName);\n\t\t\tupdateAttributeInArray(attrEnum, attrEnum.construct(value));\n\t\t\tSystem.out.println(\"Updated GovSteamFV4, setting \" + attrName + \" to: \" + value);\n\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t{\n\t\t\tsuper.setAttribute(attrName, value);\n\t\t}\n\t}", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "public void setExtAttribute6(String value) {\n setAttributeInternal(EXTATTRIBUTE6, value);\n }", "public void setExtAttribute7(String value) {\n setAttributeInternal(EXTATTRIBUTE7, value);\n }", "public void setExtAttribute3(String value) {\n setAttributeInternal(EXTATTRIBUTE3, value);\n }", "public String getAttribute8() {\n return (String) getAttributeInternal(ATTRIBUTE8);\n }", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void setValue(final String value) {\n super.setAttributeValue(value);\n }", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "public int storeAttribute(String key, String value);", "public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }", "public void setAttribute10(String value)\n {\n setAttributeInternal(ATTRIBUTE10, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "@Override\n\tpublic void setAttribute(String name, Object o) {\n\t\t\n\t}" ]
[ "0.7524304", "0.7397018", "0.7397018", "0.7397018", "0.7397018", "0.7030712", "0.69927204", "0.6982995", "0.68802977", "0.6872528", "0.6849605", "0.6794039", "0.6794039", "0.6794039", "0.6794039", "0.6756104", "0.6704591", "0.66862595", "0.6677156", "0.66037834", "0.6602786", "0.6595103", "0.65495414", "0.65357715", "0.65246046", "0.65129644", "0.64947826", "0.6478399", "0.6456696", "0.6456081", "0.6456081", "0.6456081", "0.6456081", "0.6454899", "0.64085215", "0.6375714", "0.63487506", "0.6343779", "0.6343779", "0.6337629", "0.6321106", "0.63194114", "0.63194114", "0.62909263", "0.62909263", "0.62909263", "0.62909263", "0.62909263", "0.62909263", "0.62844837", "0.62844837", "0.62844837", "0.62844837", "0.6267436", "0.6267436", "0.6267436", "0.62581533", "0.62581533", "0.62581533", "0.62581533", "0.62581533", "0.62581533", "0.6243674", "0.62404406", "0.61953497", "0.61926156", "0.6180152", "0.6158252", "0.61550003", "0.6118688", "0.6116678", "0.6107743", "0.6107743", "0.6107743", "0.60985595", "0.6096009", "0.60854423", "0.60821944", "0.60821134", "0.6081339", "0.6081105", "0.6071437", "0.60637945", "0.6063476", "0.6056542", "0.6056505", "0.6052551", "0.60338145", "0.60328686", "0.6019528", "0.60188097", "0.60006255", "0.5997479", "0.5993151", "0.59906673", "0.59888226", "0.59816337", "0.59816337", "0.59816337", "0.5981628" ]
0.7612265
0
/ Gets the attribute value for Attribute9, using the alias name Attribute9
public String getAttribute9() { return (String)getAttributeInternal(ATTRIBUTE9); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute9() {\n return (String) getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "java.lang.String getAttribute();", "Attribute getAttribute();", "Object getAttribute(int attribute);", "String getAttribute();", "public String getAttr9() {\n return attr9;\n }", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public String getAttribute(String name);", "public Object getAttribute(String name);", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public String getAttribute3() {\n return attribute3;\n }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public String getAttribute3()\n {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "Object getAttribute(String key);", "Object getAttribute(String key);", "public String getAttribute7()\n {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getExtAttribute9() {\n return (String) getAttributeInternal(EXTATTRIBUTE9);\n }", "public Attribute fetchAttribute(String key, String value);", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public String getAttribute12()\n {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttribute11()\n {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "public String getAttribute8()\n {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute3() {\n return (String) getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute1()\n {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public Object getAttribute(Object key);", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "public String getAttribute7() {\n return (String) getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute1() {\n return attribute1;\n }", "public HbAttributeInternal getAttribute(String name);", "public String getIntAttribute9() {\n return (String) getAttributeInternal(INTATTRIBUTE9);\n }", "public String getAttribute10()\n {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public String getAttribute6()\n {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public Object get(String aName) { return _attrMap.get(aName); }", "public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute11() {\n return (String) getAttributeInternal(ATTRIBUTE11);\n }", "public String getElementAttribute(int row, int attr);", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public TLAttribute getAttribute(String attributeName);", "public String getAttribute(String key) {\n return attributes.get(key);\n }", "public int getAttribute() {\n return Attribute;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute12() {\n return (String) getAttributeInternal(ATTRIBUTE12);\n }", "String getAttributeStringValue(Object attr);", "public synchronized Object getAttribute(String key) {\n return attributes.get(key);\n }", "public Object getAttribute(Object key) {\n return getAttributes().get(key);\n }", "public String getAttribute8() {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute8() {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute8() {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute12() {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttribute12() {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttribute8() {\n return (String) getAttributeInternal(ATTRIBUTE8);\n }", "public Short getShortAttribute();", "public String getAttr7() {\n return attr7;\n }", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "public String getAttribute(final String attributeLocator);", "public Object getProperty(String attName);", "Pair<String, String> getAdditionalAttribute();", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public String getAttribute6() {\n return (String) getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "public tudresden.ocl20.core.jmi.ocl.commonmodel.Attribute lookupAttribute(java.lang.String attName) {\n Iterator featuresIt = getFeature().iterator();\n while(featuresIt.hasNext()){\n Feature feature = (Feature) featuresIt.next();\n if(feature instanceof Attribute && feature.getNameA().equals(attName)){\n return (Attribute) feature;\n }\n }\n Iterator parentsIt = this.getParents().iterator();//getGeneralization().iterator();\n while(parentsIt.hasNext()){\n Classifier parent = (Classifier) parentsIt.next();//((GeneralizationImpl) parentsIt.next()).getParent();\n Attribute a = (Attribute) parent.lookupAttribute(attName);\n if(a != null){\n return a;\n }\n }\n \n return null;\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic Attribute attribute(final int index) {\n\t\treturn attributes[index];\n\t}", "public String getAttribute10() {\n return (String) getAttributeInternal(ATTRIBUTE10);\n }", "public String getAttribute2() {\n return attribute2;\n }", "public String getAttribute() {\n return attribute;\n }", "public String getAttribute10() {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public String getAttribute10() {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public String getAttribute10() {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public String getAttribute(int nameCode) {\r\n return bufferedAttributes.getValueByFingerprint(nameCode & 0xfffff);\r\n }", "public Attribute fetchAttributeById(int attribId);" ]
[ "0.7250465", "0.7248147", "0.7248147", "0.7248147", "0.71996456", "0.7170336", "0.71316963", "0.69912046", "0.6898662", "0.6853879", "0.6853879", "0.6853879", "0.6788336", "0.67624617", "0.67305744", "0.67187524", "0.6673584", "0.6670259", "0.6641407", "0.6639095", "0.6639095", "0.6630277", "0.6581842", "0.6527284", "0.65139663", "0.65013623", "0.65002203", "0.6464671", "0.6460306", "0.6460291", "0.6458517", "0.6453226", "0.6453226", "0.6453226", "0.6453226", "0.6453226", "0.64414096", "0.6416598", "0.64149845", "0.639358", "0.639358", "0.639358", "0.6376763", "0.63711256", "0.6366675", "0.63336736", "0.6317167", "0.63063455", "0.6276443", "0.6272677", "0.6269352", "0.62674934", "0.62662125", "0.62662125", "0.62662125", "0.62662125", "0.62662125", "0.6265689", "0.6261584", "0.6253836", "0.6253621", "0.62507933", "0.6234428", "0.6234428", "0.62295014", "0.62277037", "0.62257475", "0.6217986", "0.6217217", "0.6217217", "0.6217217", "0.6209312", "0.6209312", "0.6195936", "0.61828256", "0.6174259", "0.61653125", "0.6144228", "0.61403215", "0.6139652", "0.6139633", "0.6138989", "0.6137061", "0.6131904", "0.61315256", "0.6130946", "0.61138856", "0.6106265", "0.6106265", "0.6106265", "0.609156", "0.6089856", "0.60834044", "0.60713166", "0.60703003", "0.60667276", "0.60667276", "0.60667276", "0.6060559", "0.605906" ]
0.7434972
0
/ Sets value as the attribute value for Attribute9
public void setAttribute9(String value) { setAttributeInternal(ATTRIBUTE9, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "void setInt(int attributeValue);", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "public void setAttr9(String attr9) {\n this.attr9 = attr9;\n }", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "public void setAttrib(String name, String value);", "void setString(String attributeValue);", "public void setExtAttribute9(String value) {\n setAttributeInternal(EXTATTRIBUTE9, value);\n }", "public void setAttribute11(String value)\n {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "public void setAttribute6(String value)\n {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute3(String value)\n {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "public void setIntAttribute9(String value) {\n setAttributeInternal(INTATTRIBUTE9, value);\n }", "public void setAttribute7(String value)\n {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "public void setAttribute12(String value)\n {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "@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}", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute8(String value)\n {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "void setAttributes(String attributeName, String attributeValue);", "public void setAttribute(Object key, Object value);", "protected abstract void setContextAttribute(String name, Object value);", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "void setProperty(String attribute, String value);", "public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }", "public void setValue3(String value3) { this.value3 = value3; }", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void setAttribute10(String value)\n {\n setAttributeInternal(ATTRIBUTE10, value);\n }", "public void setAttribute7(String value) {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttribute7(String value) {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttribute7(String value) {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttribute7(String value) {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "public void setValue(final String value) {\n super.setAttributeValue(value);\n }", "@Override\n public void setValue(int index, Object value)\n {\n if (index == 1)\n {\n super.setValue(index, value); \n }\n else if (index == 2)\n {\n if (m_Scaler != 0)\n {\n try\n { \n m_Value = ((Number)value).doubleValue() * getScaler();\n }\n catch (Exception ex)\n {\n //Sometimes scaler is set for wrong Object type.\n setValue(value);\n }\n }\n else\n {\n setValue(value);\n }\n }\n else if (index == 3)\n { \n //Set default values.\n if (value == null)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n if (Array.getLength(value) != 2)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n m_Scaler = ((Number)Array.get(value, 0)).intValue();\n m_Unit = (((Number)Array.get(value, 1)).intValue() & 0xFF);\n }\n }\n }\n else\n {\n throw new IllegalArgumentException(\"GetValue failed. Invalid attribute index.\");\n }\n }", "String attributeToSetter(String name);", "public void setAttr8(String attr8) {\n this.attr8 = attr8;\n }", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "public void setAttribute(Execution exec, String name, Object value);", "public void setAttribute2(String value)\n {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void set(AttributeDefinition attribute, Object value)\n throws UnknownAttributeException, ModificationNotPermitedException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \"cannot be modified with set method\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "void setAttribute(String key, Object value)\n throws ProcessingException;", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "public void setAttribute5(String value)\n {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute(java.lang.String attrName, java.lang.String value) {\n\t\ttry {\n\t\t\tGovSteamFV4_primitive_builder attrEnum = GovSteamFV4_primitive_builder.valueOf(attrName);\n\t\t\tupdateAttributeInArray(attrEnum, attrEnum.construct(value));\n\t\t\tSystem.out.println(\"Updated GovSteamFV4, setting \" + attrName + \" to: \" + value);\n\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t{\n\t\t\tsuper.setAttribute(attrName, value);\n\t\t}\n\t}", "public static void attribute(String name, int value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "@Override\n\tpublic void setAttribute(String name, Object o) {\n\t\t\n\t}", "public String getAttr9() {\n return attr9;\n }", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }", "void setAttribute( String attrName, Object value ) throws FileSystemException;", "@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute4(String value)\n {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute8(String value) {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "public void setAttribute8(String value) {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "public void setAttribute8(String value) {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "public void setAttribute8(String value) {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "public void set(String attribute, Object value) {\r\n\t\tput(attribute, value);\r\n\t}" ]
[ "0.7285434", "0.7285434", "0.7285434", "0.7285434", "0.72337127", "0.7208629", "0.7113576", "0.7086341", "0.70703113", "0.704184", "0.7040157", "0.6925778", "0.68592066", "0.68444526", "0.6773436", "0.6767931", "0.67578536", "0.6749585", "0.6729677", "0.6729677", "0.6724169", "0.67003983", "0.6697067", "0.66621757", "0.6656553", "0.6646292", "0.6641817", "0.66137356", "0.6601125", "0.6573908", "0.6523209", "0.65080756", "0.65080756", "0.648682", "0.6479331", "0.6477057", "0.6476492", "0.6470323", "0.6470323", "0.6470323", "0.6470323", "0.64694184", "0.64694184", "0.64694184", "0.64694184", "0.64694184", "0.64694184", "0.646558", "0.646558", "0.646558", "0.646558", "0.646558", "0.646558", "0.64597017", "0.64588624", "0.6455481", "0.6455481", "0.6455481", "0.6433106", "0.643308", "0.6423072", "0.64005536", "0.63929737", "0.6338531", "0.6333617", "0.6332166", "0.63310236", "0.6324904", "0.6315762", "0.6315762", "0.6315762", "0.6315762", "0.6313397", "0.6311839", "0.6308637", "0.6299922", "0.62987477", "0.62957096", "0.62946135", "0.6281766", "0.62779397", "0.6264257", "0.6218863", "0.6210246", "0.6209105", "0.61947083", "0.61941826", "0.6193562", "0.61855274", "0.6165708", "0.6162324", "0.61590433", "0.61590433", "0.61590433", "0.61541456", "0.61511195", "0.61511195", "0.61511195", "0.61511195", "0.6145778" ]
0.74800974
0
/ Gets the attribute value for Attribute10, using the alias name Attribute10
public String getAttribute10() { return (String)getAttributeInternal(ATTRIBUTE10); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute10() {\n return (String) getAttributeInternal(ATTRIBUTE10);\n }", "public String getAttribute10() {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public String getAttribute10() {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public String getAttribute10() {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "Object getAttribute(int attribute);", "java.lang.String getAttribute();", "public String getAttribute9()\n {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "Attribute getAttribute();", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public String getAttribute9() {\n return (String) getAttributeInternal(ATTRIBUTE9);\n }", "String getAttribute();", "public String getAttribute11()\n {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public Attribute fetchAttribute(String key, String value);", "public Object getAttribute(String name);", "public String getAttribute(String name);", "public String getAttr10() {\n return attr10;\n }", "Object getAttribute(String key);", "Object getAttribute(String key);", "public Object getAttribute(Object key);", "public String getAttribute11() {\n return (String) getAttributeInternal(ATTRIBUTE11);\n }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getExtAttribute10() {\n return (String) getAttributeInternal(EXTATTRIBUTE10);\n }", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public String getAttribute12()\n {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public String getIntAttribute10() {\n return (String) getAttributeInternal(INTATTRIBUTE10);\n }", "public TLAttribute getAttribute(String attributeName);", "public Object getAttribute(Object key) {\n return getAttributes().get(key);\n }", "public String getAttr9() {\n return attr9;\n }", "public Attribute fetchAttributeById(int attribId);", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "String getAttributeStringValue(Object attr);", "public String getIntAttribute9() {\n return (String) getAttributeInternal(INTATTRIBUTE9);\n }", "public String getAttribute(String key) {\n return attributes.get(key);\n }", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public String getAttribute12() {\n return (String) getAttributeInternal(ATTRIBUTE12);\n }", "public Object get(String aName) { return _attrMap.get(aName); }", "public synchronized Object getAttribute(String key) {\n return attributes.get(key);\n }", "public String getAttribute12() {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttribute12() {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public int getAttribute() {\n return Attribute;\n }", "public String getExtAttribute9() {\n return (String) getAttributeInternal(EXTATTRIBUTE9);\n }", "public Object getProperty(String attName);", "public String getAttribute1()\n {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttributeValue(Node node, String attributeName) throws Exception;", "Pair<String, String> getAdditionalAttribute();", "public HbAttributeInternal getAttribute(String name);", "public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public String getElementAttribute(int row, int attr);", "public String getAttribute7()\n {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "String attributeToGetter(String name);", "public String getAttribute8()\n {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "public String getAttr11() {\n return attr11;\n }", "public String getAttribute3() {\n return attribute3;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public String getAttribute1() {\n return attribute1;\n }", "public String getAttribute3()\n {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public Short getShortAttribute();", "public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "public String getAttribute15()\n {\n return (String)getAttributeInternal(ATTRIBUTE15);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "public String getAttribute(int nameCode) {\r\n return bufferedAttributes.getValueByFingerprint(nameCode & 0xfffff);\r\n }", "public Integer getIntegerAttribute();", "public String getAttribute7() {\n return (String) getAttributeInternal(ATTRIBUTE7);\n }", "public void setAttr10(String attr10) {\n this.attr10 = attr10;\n }", "public Object getAttribute(String attribute_name) \n throws AttributeNotFoundException,\n MBeanException,\n ReflectionException {\n if (attribute_name == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Attribute name cannot be null\"), \n \"Cannot invoke a getter of \" + dClassName + \" with null attribute name\");\n }\n\n attribute_name = RunTimeSingleton.decode(attribute_name, \"US-ASCII\"); // HtmlAdapter made from info/admin -> info%2Fadmin\n // \"logging/org.xmlBlaster.engine.RequestBroker\"\n if (attribute_name.startsWith(\"logging/\"))\n attribute_name = attribute_name.substring(8); // \"org.xmlBlaster.engine.RequestBroker\"\n\n try {\n Level level = this.glob.getLogLevel(attribute_name);\n return level.toString();\n }\n catch (ServiceManagerException e) {\n if (attribute_name == null || attribute_name.length() == 0 || \"logging/\".equals(attribute_name)) return Level.INFO.toString();\n throw(new AttributeNotFoundException(\"Cannot find '\" + attribute_name + \"' attribute in \" + dClassName));\n }\n }", "public String getAttribute() {\n return attribute;\n }", "public String getIntAttribute11() {\n return (String) getAttributeInternal(INTATTRIBUTE11);\n }", "public Object getAttribute(Object key) {\n\t\treturn getAttribute(key, null);\n\t}", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "public tudresden.ocl20.core.jmi.ocl.commonmodel.Attribute lookupAttribute(java.lang.String attName) {\n Iterator featuresIt = getFeature().iterator();\n while(featuresIt.hasNext()){\n Feature feature = (Feature) featuresIt.next();\n if(feature instanceof Attribute && feature.getNameA().equals(attName)){\n return (Attribute) feature;\n }\n }\n Iterator parentsIt = this.getParents().iterator();//getGeneralization().iterator();\n while(parentsIt.hasNext()){\n Classifier parent = (Classifier) parentsIt.next();//((GeneralizationImpl) parentsIt.next()).getParent();\n Attribute a = (Attribute) parent.lookupAttribute(attName);\n if(a != null){\n return a;\n }\n }\n \n return null;\n }", "public String getAttribute3() {\n return (String) getAttributeInternal(ATTRIBUTE3);\n }", "public GenericAttribute getAttribute () {\n return attribute;\n }", "Object getAttribute( String attrName ) throws FileSystemException;", "public java.lang.Object getCachedAttributeValue(Symbol attrName, java.lang.Object defaultValue);", "public SourceAttribute getSourceAttribute(int i){\n\t\tif(source==null){\n\t\t\t//no source predicate is associated with this pred\n\t\t\t//just return the variable name\n\t\t\treturn new SourceAttribute(getVars().get(i), \"string\", \"F\");\n\t\t}\n \treturn source.getAttr(i);\n }", "public String getStringAttribute();", "public String getAttribute8() {\n return (String) getAttributeInternal(ATTRIBUTE8);\n }" ]
[ "0.71167225", "0.7116371", "0.7116371", "0.7116371", "0.7004694", "0.68766344", "0.6801897", "0.6801782", "0.6680405", "0.6680405", "0.6680405", "0.6662369", "0.6657691", "0.6654071", "0.66250825", "0.66250825", "0.66250825", "0.6618316", "0.6596282", "0.65878356", "0.65759456", "0.65683293", "0.65683293", "0.64814097", "0.64696866", "0.6466616", "0.642298", "0.6419281", "0.6419281", "0.6390211", "0.63444674", "0.63431925", "0.633984", "0.6315479", "0.62481964", "0.621856", "0.6199666", "0.61956644", "0.6188675", "0.61854875", "0.6184333", "0.6167923", "0.61593765", "0.6127339", "0.6127025", "0.6116405", "0.61101294", "0.60850555", "0.60850555", "0.60736626", "0.6070044", "0.6050692", "0.6043811", "0.60433185", "0.6024208", "0.6022274", "0.602156", "0.6016381", "0.60127664", "0.6010326", "0.59893245", "0.59793425", "0.5977982", "0.59716237", "0.59511036", "0.59407514", "0.59351474", "0.59269047", "0.5920004", "0.591553", "0.59103906", "0.5899322", "0.5892947", "0.5880441", "0.5880441", "0.5880441", "0.5880441", "0.5880441", "0.5879051", "0.58772767", "0.5875418", "0.58566755", "0.58559513", "0.58551675", "0.5846854", "0.5831559", "0.5824985", "0.5819589", "0.58082616", "0.58082616", "0.58082616", "0.5803706", "0.5803223", "0.57989544", "0.57967424", "0.5792877", "0.57852304", "0.57844377", "0.5780538", "0.5767723" ]
0.73105377
0
/ Sets value as the attribute value for Attribute10
public void setAttribute10(String value) { setAttributeInternal(ATTRIBUTE10, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setInt(int attributeValue);", "public void setAttribute10(String value) {\n setAttributeInternal(ATTRIBUTE10, value);\n }", "public void setAttribute10(String value) {\n setAttributeInternal(ATTRIBUTE10, value);\n }", "public void setAttribute10(String value) {\n setAttributeInternal(ATTRIBUTE10, value);\n }", "public void setAttribute10(String value) {\n setAttributeInternal(ATTRIBUTE10, value);\n }", "public void setAttr10(String attr10) {\n this.attr10 = attr10;\n }", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void setAttribute9(String value)\n {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute11(String value)\n {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setExtAttribute10(String value) {\n setAttributeInternal(EXTATTRIBUTE10, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void setAttrib(String name, String value);", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "public void setIntAttribute10(String value) {\n setAttributeInternal(INTATTRIBUTE10, value);\n }", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "public void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "public void setIntAttribute9(String value) {\n setAttributeInternal(INTATTRIBUTE9, value);\n }", "void setString(String attributeValue);", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "void setAttributes(String attributeName, String attributeValue);", "public void setAttribute12(String value)\n {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttr9(String attr9) {\n this.attr9 = attr9;\n }", "@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}", "public void setAttribute(Object key, Object value);", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "public static void attribute(String name, int value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "protected abstract void setContextAttribute(String name, Object value);", "public void setExtAttribute9(String value) {\n setAttributeInternal(EXTATTRIBUTE9, value);\n }", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}", "public String getAttr10() {\n return attr10;\n }", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "void setAttribute(String key, Object value)\n throws ProcessingException;", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "void setProperty(String attribute, String value);", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "public void set(AttributeDefinition attribute, Object value)\n throws UnknownAttributeException, ModificationNotPermitedException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \"cannot be modified with set method\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "public void setAttribute3(String value)\n {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute6(String value)\n {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public int storeAttribute(String key, String value);", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "public void attribute(int nameCode, CharSequence value) throws XPathException {\r\n if (depthOfHole == 0) {\r\n nextReceiver.attribute(nameCode, value);\r\n }\r\n }", "public void setValue(final String value) {\n super.setAttributeValue(value);\n }", "public static void attribute(String name, long value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void set(String attribute, Object value) {\r\n\t\tput(attribute, value);\r\n\t}", "public void setAttribute5(String value)\n {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "@Override\n public void setValue(int index, Object value)\n {\n if (index == 1)\n {\n super.setValue(index, value); \n }\n else if (index == 2)\n {\n if (m_Scaler != 0)\n {\n try\n { \n m_Value = ((Number)value).doubleValue() * getScaler();\n }\n catch (Exception ex)\n {\n //Sometimes scaler is set for wrong Object type.\n setValue(value);\n }\n }\n else\n {\n setValue(value);\n }\n }\n else if (index == 3)\n { \n //Set default values.\n if (value == null)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n if (Array.getLength(value) != 2)\n {\n m_Scaler = m_Unit = 0;\n }\n else\n {\n m_Scaler = ((Number)Array.get(value, 0)).intValue();\n m_Unit = (((Number)Array.get(value, 1)).intValue() & 0xFF);\n }\n }\n }\n else\n {\n throw new IllegalArgumentException(\"GetValue failed. Invalid attribute index.\");\n }\n }", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "public void setAttribute(String attribute, String value)\n\t{\n\t\tattributes.put(attribute, value);\n\t}", "void setAttribute( String attrName, Object value ) throws FileSystemException;", "@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}", "public String getAttribute10()\n {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public void setAttribute8(String value)\n {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\r\n\t\tsuper.setAttribute(name, value, objectList);\r\n\t\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\r\n\t\t\tif (name.equals(\"x\"))\t\t{ m_pos.setX(val); }\r\n\t\t\tif (name.equals(\"y\"))\t\t{ m_pos.setY(val); }\r\n\t\t\tif (name.equals(\"radius\")) \t{ m_r=val; }\t\t\r\n\t\t\r\n\t\t}\r\n\t\tcatch (Exception e) {}\r\n\t\r\n\t}", "@Override\n protected void visitHtmlAttributeValueNode(HtmlAttributeValueNode node) {\n pushState(HtmlContext.HTML_NORMAL_ATTR_VALUE);\n super.visitHtmlAttributeValueNode(node);\n popState();\n }", "public void attribute(int nameCode, CharSequence value)\r\n throws XPathException {\r\n\r\n bufferedAttributes.addAttribute(nameCode, value.toString());\r\n\r\n // Note: we're relying on the fact that AttributeCollection can hold two attributes of the same name\r\n // and maintain their order, because the check for duplicate attributes is not done until later in the\r\n // pipeline. We validate both the attributes (see Bugzilla #4600 which legitimizes this.)\r\n\r\n }", "public void setAttribute7(String value)\n {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setIntAttribute11(String value) {\n setAttributeInternal(INTATTRIBUTE11, value);\n }", "public void setAttribute15(String value)\n {\n setAttributeInternal(ATTRIBUTE15, value);\n }", "public static void attribute(String name, String value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void setAttribute2(String value)\n {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }", "String attributeToSetter(String name);", "@Test\n\tpublic void testSetAttribute_UpdateMode() throws NamingException {\n\t\t// Set original attribute value\n\t\tAttribute attribute = new BasicAttribute(\"cn\", \"john doe\");\n\t\ttested.setAttribute(attribute);\n\n\t\t// Set to update mode\n\t\ttested.setUpdateMode(true);\n\n\t\t// Perform test - update the attribute\n\t\tAttribute updatedAttribute = new BasicAttribute(\"cn\", \"nisse hult\");\n\t\ttested.setAttribute(updatedAttribute);\n\n\t\t// Verify result\n\t\tModificationItem[] mods = tested.getModificationItems();\n\t\tassertEquals(1, mods.length);\n\t\tassertEquals(DirContext.REPLACE_ATTRIBUTE, mods[0].getModificationOp());\n\n\t\tAttribute modificationAttribute = mods[0].getAttribute();\n\t\tassertEquals(\"cn\", modificationAttribute.getID());\n\t\tassertEquals(\"nisse hult\", modificationAttribute.get());\n\t}", "public EdmAttribute setupAttribute(String val) {\n EdmAttribute a = new EdmAttribute(val);\n return a;\n }", "@Override\n public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException {\n\n }", "void setValueExpression(String attributeName, ValueExpression valueExpression);" ]
[ "0.74161804", "0.72893465", "0.72893465", "0.72893465", "0.72893465", "0.71476644", "0.7143117", "0.7033014", "0.70084876", "0.6945789", "0.6926842", "0.69141424", "0.68641067", "0.683207", "0.683207", "0.683207", "0.683207", "0.67583364", "0.6740214", "0.6740214", "0.6740214", "0.67286617", "0.66856325", "0.6629423", "0.6625069", "0.66234785", "0.660334", "0.66016585", "0.6591924", "0.6591924", "0.65874577", "0.65862507", "0.65761435", "0.6549808", "0.65474284", "0.6544703", "0.65364516", "0.6478843", "0.646946", "0.64550346", "0.645134", "0.6438242", "0.64353126", "0.6409697", "0.6398978", "0.6398978", "0.6398796", "0.63743865", "0.6373841", "0.6368228", "0.63595456", "0.6313356", "0.6308357", "0.6302393", "0.6283438", "0.62677133", "0.62677133", "0.62677133", "0.62677133", "0.62677133", "0.62677133", "0.62486356", "0.6232006", "0.6228543", "0.6205776", "0.62027925", "0.619924", "0.619924", "0.619924", "0.61929166", "0.617925", "0.6179151", "0.6176648", "0.6173289", "0.6139067", "0.61382174", "0.61245763", "0.61200756", "0.6119632", "0.6115924", "0.61117584", "0.6109137", "0.6109014", "0.61051816", "0.6103843", "0.61026174", "0.6102317", "0.60908103", "0.6088428", "0.60834974", "0.6071289", "0.60644335", "0.6054748", "0.60456264", "0.60412884", "0.6039829", "0.60375565", "0.60348064", "0.6032978", "0.6030618" ]
0.7499746
0
/ Gets the attribute value for Attribute11, using the alias name Attribute11
public String getAttribute11() { return (String)getAttributeInternal(ATTRIBUTE11); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getAttribute(int attribute);", "java.lang.String getAttribute();", "Attribute getAttribute();", "public String getAttribute11() {\n return (String) getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "String getAttribute();", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getAttribute(String name);", "public Object getAttribute(String name);", "public String getAttribute9()\n {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "Object getAttribute(String key);", "Object getAttribute(String key);", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public String getAttribute12()\n {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public Attribute fetchAttribute(String key, String value);", "public String getAttr11() {\n return attr11;\n }", "public String getAttribute9() {\n return (String) getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public Object getAttribute(Object key);", "public String getAttribute3() {\n return attribute3;\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public String getAttribute3()\n {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute12() {\n return (String) getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttribute1()\n {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public TLAttribute getAttribute(String attributeName);", "public String getAttribute12() {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttribute12() {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "Pair<String, String> getAdditionalAttribute();", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public String getAttribute1() {\n return attribute1;\n }", "String getAttributeStringValue(Object attr);", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public String getAttribute10()\n {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public Attribute fetchAttributeById(int attribId);", "public String getAttribute(String key) {\n return attributes.get(key);\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/* */ }", "public String getAttribute3() {\n return (String) getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute(int nameCode) {\r\n return bufferedAttributes.getValueByFingerprint(nameCode & 0xfffff);\r\n }", "public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }", "public String getExtAttribute11() {\n return (String) getAttributeInternal(EXTATTRIBUTE11);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getElementAttribute(int row, int attr);", "public Object getProperty(String attName);", "public Object get(String aName) { return _attrMap.get(aName); }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute(final String attributeLocator);", "public String getAttribute8()\n {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "String attributeToGetter(String name);", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public Object getAttribute(Object key) {\n return getAttributes().get(key);\n }", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "public HbAttributeInternal getAttribute(String name);", "public String getAttr9() {\n return attr9;\n }", "public String getIntAttribute11() {\n return (String) getAttributeInternal(INTATTRIBUTE11);\n }", "public synchronized Object getAttribute(String key) {\n return attributes.get(key);\n }", "public String getAttributeValue(Node node, String attributeName) throws Exception;", "public String getAttribute7()\n {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "public String getExtAttribute9() {\n return (String) getAttributeInternal(EXTATTRIBUTE9);\n }", "public String getAttribute10() {\n return (String) getAttributeInternal(ATTRIBUTE10);\n }", "public int getAttribute() {\n return Attribute;\n }", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public Short getShortAttribute();", "public String getAttribute10() {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public String getAttribute10() {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public String getAttribute10() {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public String getAttribute(String name)\n\tthrows SdpParseException {\n\tif (name != null) {\n\t for (int i = 0; i < this.attributeFields.size(); i++) {\n\t\tAttributeField af = (AttributeField)\n\t\t this.attributeFields.elementAt(i);\n\t\tif (name.equals(af.getAttribute().getName())) \n\t\t return (String) af.getAttribute().getValue();\n\t }\n\t return null; \n\t} else throw new NullPointerException(\"null arg!\");\n }", "public String getAttr12() {\n return attr12;\n }", "public tudresden.ocl20.core.jmi.ocl.commonmodel.Attribute lookupAttribute(java.lang.String attName) {\n Iterator featuresIt = getFeature().iterator();\n while(featuresIt.hasNext()){\n Feature feature = (Feature) featuresIt.next();\n if(feature instanceof Attribute && feature.getNameA().equals(attName)){\n return (Attribute) feature;\n }\n }\n Iterator parentsIt = this.getParents().iterator();//getGeneralization().iterator();\n while(parentsIt.hasNext()){\n Classifier parent = (Classifier) parentsIt.next();//((GeneralizationImpl) parentsIt.next()).getParent();\n Attribute a = (Attribute) parent.lookupAttribute(attName);\n if(a != null){\n return a;\n }\n }\n \n return null;\n }", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "public String getAttribute7() {\n return (String) getAttributeInternal(ATTRIBUTE7);\n }", "public String getIntAttribute9() {\n return (String) getAttributeInternal(INTATTRIBUTE9);\n }", "final private com.org.multigear.mginterface.engine.Configuration.Attr getAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getAttribute8() {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute8() {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute8() {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute8() {\n return (String) getAttributeInternal(ATTRIBUTE8);\n }", "public Object getAttribute(String attribute_name) \n throws AttributeNotFoundException,\n MBeanException,\n ReflectionException {\n if (attribute_name == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Attribute name cannot be null\"), \n \"Cannot invoke a getter of \" + dClassName + \" with null attribute name\");\n }\n\n attribute_name = RunTimeSingleton.decode(attribute_name, \"US-ASCII\"); // HtmlAdapter made from info/admin -> info%2Fadmin\n // \"logging/org.xmlBlaster.engine.RequestBroker\"\n if (attribute_name.startsWith(\"logging/\"))\n attribute_name = attribute_name.substring(8); // \"org.xmlBlaster.engine.RequestBroker\"\n\n try {\n Level level = this.glob.getLogLevel(attribute_name);\n return level.toString();\n }\n catch (ServiceManagerException e) {\n if (attribute_name == null || attribute_name.length() == 0 || \"logging/\".equals(attribute_name)) return Level.INFO.toString();\n throw(new AttributeNotFoundException(\"Cannot find '\" + attribute_name + \"' attribute in \" + dClassName));\n }\n }", "public String getAttribute6()\n {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "private String getXmlAttribute(XmlResourceParser xml, String name) {\n\t\tint resId = xml.getAttributeResourceValue(null, name, 0);\n\t\tif (resId == 0) {\n\t\t\treturn xml.getAttributeValue(null, name);\n\t\t} else {\n\t\t\treturn getString(resId);\n\t\t}\n\t}", "public String getAttribute2()\n {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getStringAttribute();", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}" ]
[ "0.7077176", "0.70681417", "0.7062122", "0.6919092", "0.6891984", "0.6891984", "0.6841756", "0.67886186", "0.67886186", "0.67886186", "0.67710024", "0.6752818", "0.67120814", "0.66530806", "0.66302365", "0.66302365", "0.6629718", "0.6601448", "0.6593849", "0.65715486", "0.65049565", "0.6457686", "0.6457686", "0.6457686", "0.6435611", "0.6422806", "0.63987184", "0.63722324", "0.63719726", "0.63616335", "0.6333416", "0.6325739", "0.6325739", "0.632235", "0.62799984", "0.6279183", "0.6278946", "0.6248743", "0.62259936", "0.62230617", "0.62216806", "0.6219198", "0.6214158", "0.62094116", "0.62037253", "0.62015986", "0.61930275", "0.61930275", "0.61930275", "0.61930275", "0.61930275", "0.61887896", "0.6187296", "0.6186671", "0.61823356", "0.61823356", "0.61823356", "0.61823356", "0.61823356", "0.61803746", "0.61780983", "0.6166562", "0.61595666", "0.6158911", "0.6155237", "0.61546814", "0.61541593", "0.6152013", "0.6150913", "0.6147954", "0.6135429", "0.6069462", "0.6056406", "0.6050355", "0.6048612", "0.603331", "0.60222393", "0.6014558", "0.5998608", "0.5985144", "0.59807557", "0.59807557", "0.59807557", "0.5975799", "0.59734404", "0.59622926", "0.5961246", "0.59582436", "0.5956939", "0.5953806", "0.5952602", "0.5952602", "0.5952602", "0.59509814", "0.5948296", "0.59453815", "0.5943557", "0.59326607", "0.5931746", "0.5930925" ]
0.71201515
0
/ Sets value as the attribute value for Attribute11
public void setAttribute11(String value) { setAttributeInternal(ATTRIBUTE11, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setInternal(ATTRIBUTES attribute, Object iValue);", "void setInt(int attributeValue);", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttrib(String name, String value);", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "void setString(String attributeValue);", "public void setAttribute9(String value)\n {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "public void setAttribute12(String value)\n {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute(String name, Object value);", "public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "protected abstract void setContextAttribute(String name, Object value);", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "void setAttributes(String attributeName, String attributeValue);", "public void setAttribute3(String value)\n {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "@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\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute(Object key, Object value);", "public void setAttr11(String attr11) {\n this.attr11 = attr11;\n }", "void setProperty(String attribute, String value);", "public void setExtAttribute9(String value) {\n setAttributeInternal(EXTATTRIBUTE9, value);\n }", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void setExtAttribute11(String value) {\n setAttributeInternal(EXTATTRIBUTE11, value);\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}", "public void setAttribute6(String value)\n {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute10(String value)\n {\n setAttributeInternal(ATTRIBUTE10, value);\n }", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }", "String attributeToSetter(String name);", "public void setAttr9(String attr9) {\n this.attr9 = attr9;\n }", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "public void attribute(int nameCode, CharSequence value) throws XPathException {\r\n if (depthOfHole == 0) {\r\n nextReceiver.attribute(nameCode, value);\r\n }\r\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute2(String value)\n {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "void setAttribute(String key, Object value)\n throws ProcessingException;", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }", "public EdmAttribute setupAttribute(String val) {\n EdmAttribute a = new EdmAttribute(val);\n return a;\n }", "public static void attribute(String name, int value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void attribute(String name, String value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n writerEscape.writeAttValue(value);\r\n this.writer.write('\"');\r\n }", "public void setAttribute(java.lang.String attrName, java.lang.String value) {\n\t\ttry {\n\t\t\tGovSteamFV4_primitive_builder attrEnum = GovSteamFV4_primitive_builder.valueOf(attrName);\n\t\t\tupdateAttributeInArray(attrEnum, attrEnum.construct(value));\n\t\t\tSystem.out.println(\"Updated GovSteamFV4, setting \" + attrName + \" to: \" + value);\n\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t{\n\t\t\tsuper.setAttribute(attrName, value);\n\t\t}\n\t}", "public void setAttribute8(String value)\n {\n setAttributeInternal(ATTRIBUTE8, value);\n }", "public void setValue(final String value) {\n super.setAttributeValue(value);\n }", "public void setAttribute5(String value)\n {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "public void setIntAttribute9(String value) {\n setAttributeInternal(INTATTRIBUTE9, value);\n }", "public void set(AttributeDefinition attribute, Object value)\n throws UnknownAttributeException, ModificationNotPermitedException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \"cannot be modified with set method\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "public void attribute(int nameCode, CharSequence value)\r\n throws XPathException {\r\n\r\n bufferedAttributes.addAttribute(nameCode, value.toString());\r\n\r\n // Note: we're relying on the fact that AttributeCollection can hold two attributes of the same name\r\n // and maintain their order, because the check for duplicate attributes is not done until later in the\r\n // pipeline. We validate both the attributes (see Bugzilla #4600 which legitimizes this.)\r\n\r\n }", "public void setAttribute4(String value)\n {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public int storeAttribute(String key, String value);", "public void setAttribute14(String value)\n {\n setAttributeInternal(ATTRIBUTE14, value);\n }", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "@Test\n\tpublic void testSetAttribute_UpdateMode() throws NamingException {\n\t\t// Set original attribute value\n\t\tAttribute attribute = new BasicAttribute(\"cn\", \"john doe\");\n\t\ttested.setAttribute(attribute);\n\n\t\t// Set to update mode\n\t\ttested.setUpdateMode(true);\n\n\t\t// Perform test - update the attribute\n\t\tAttribute updatedAttribute = new BasicAttribute(\"cn\", \"nisse hult\");\n\t\ttested.setAttribute(updatedAttribute);\n\n\t\t// Verify result\n\t\tModificationItem[] mods = tested.getModificationItems();\n\t\tassertEquals(1, mods.length);\n\t\tassertEquals(DirContext.REPLACE_ATTRIBUTE, mods[0].getModificationOp());\n\n\t\tAttribute modificationAttribute = mods[0].getAttribute();\n\t\tassertEquals(\"cn\", modificationAttribute.getID());\n\t\tassertEquals(\"nisse hult\", modificationAttribute.get());\n\t}", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute15(String value)\n {\n setAttributeInternal(ATTRIBUTE15, value);\n }", "public void setAttribute7(String value)\n {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }" ]
[ "0.7289761", "0.7279325", "0.7073038", "0.7073031", "0.7073031", "0.7073031", "0.70006967", "0.69999284", "0.6999555", "0.6909306", "0.6892665", "0.6869021", "0.68595743", "0.68098444", "0.67819107", "0.6780927", "0.673296", "0.67227226", "0.6700465", "0.6700465", "0.66539425", "0.66539425", "0.66539425", "0.66539425", "0.66381425", "0.66300905", "0.6614446", "0.6614446", "0.6603418", "0.6575506", "0.6545908", "0.65334666", "0.65242195", "0.64939183", "0.64939183", "0.64939183", "0.64939183", "0.64939183", "0.64939183", "0.6490493", "0.6458062", "0.6440598", "0.6440598", "0.6440598", "0.6433683", "0.64103", "0.64092875", "0.6400619", "0.6394898", "0.63890094", "0.6386063", "0.6380448", "0.6378492", "0.63748634", "0.6364957", "0.63611203", "0.63575375", "0.63538146", "0.6351015", "0.63504964", "0.63504964", "0.63504964", "0.63504964", "0.63504964", "0.63504964", "0.63503474", "0.63443244", "0.6342597", "0.6341391", "0.63196933", "0.63090533", "0.6307991", "0.6304914", "0.6289102", "0.6244576", "0.62379944", "0.6233319", "0.62332845", "0.6227757", "0.62274015", "0.6224722", "0.62112576", "0.61904943", "0.61861366", "0.6179677", "0.61795366", "0.616402", "0.61626726", "0.61484766", "0.6145606", "0.61438155", "0.61438155", "0.61438155", "0.61438155", "0.61438155", "0.61438155", "0.6142248", "0.6134431", "0.6125978", "0.6125978" ]
0.73387474
0
/ Gets the attribute value for Attribute12, using the alias name Attribute12
public String getAttribute12() { return (String)getAttributeInternal(ATTRIBUTE12); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute12() {\n return (String) getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttribute12() {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttribute12() {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "java.lang.String getAttribute();", "Object getAttribute(int attribute);", "Attribute getAttribute();", "String getAttribute();", "public String getAttr12() {\n return attr12;\n }", "Object getAttribute(String key);", "Object getAttribute(String key);", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public Attribute fetchAttribute(String key, String value);", "public String getAttribute(String name);", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public Object getAttribute(Object key);", "public Object getAttribute(String name);", "public String getExtAttribute12() {\n return (String) getAttributeInternal(EXTATTRIBUTE12);\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getAttribute3() {\n return attribute3;\n }", "public String getAttribute(String key) {\n return attributes.get(key);\n }", "public String getAttribute3()\n {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "Pair<String, String> getAdditionalAttribute();", "public synchronized Object getAttribute(String key) {\n return attributes.get(key);\n }", "public String getAttribute9()\n {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getIntAttribute12() {\n return (String) getAttributeInternal(INTATTRIBUTE12);\n }", "public String getAttribute1() {\n return attribute1;\n }", "public String getAttribute11()\n {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute1()\n {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public Object getAttribute(Object key) {\n return getAttributes().get(key);\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public Object get(String aName) { return _attrMap.get(aName); }", "public String getAttribute(final String attributeLocator);", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String) getAttributeInternal(ATTRIBUTE3);\n }", "public TLAttribute getAttribute(String attributeName);", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public Attribute fetchAttributeById(int attribId);", "public String getAttribute9() {\n return (String) getAttributeInternal(ATTRIBUTE9);\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public String getAttribute2() {\n return attribute2;\n }", "String getAttributeStringValue(Object attr);", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public void setAttr12(String attr12) {\n this.attr12 = attr12;\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public String getAttribute2()\n {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute11() {\n return (String) getAttributeInternal(ATTRIBUTE11);\n }", "public Object getProperty(String attName);", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public Short getShortAttribute();", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public HbAttributeInternal getAttribute(String name);", "String attributeToGetter(String name);", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }", "private String getAttribute(Node nNode,String name) {\n \tNamedNodeMap attributes = nNode.getAttributes();\n \t\n \t// get the number of nodes in this map\n \tint numAttrs = attributes.getLength();\n \t\n \tfor (int i = 0; i < numAttrs; i++) {\n \t\t\n \t\tAttr attr = (Attr) attributes.item(i);\n \t\tString attrName = attr.getNodeName();\n \t\tString attrValue = attr.getNodeValue();\n \n \t\tif(attrName == name) {\n \t\t\treturn attrValue;\n \t\t}\n \t}\n \t\n \treturn null;\n }", "public String getAttribute7()\n {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute() {\n return attribute;\n }", "public int getAttribute() {\n return Attribute;\n }", "public Object getAttribute(String attribute_name) \n throws AttributeNotFoundException,\n MBeanException,\n ReflectionException {\n if (attribute_name == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Attribute name cannot be null\"), \n \"Cannot invoke a getter of \" + dClassName + \" with null attribute name\");\n }\n\n attribute_name = RunTimeSingleton.decode(attribute_name, \"US-ASCII\"); // HtmlAdapter made from info/admin -> info%2Fadmin\n // \"logging/org.xmlBlaster.engine.RequestBroker\"\n if (attribute_name.startsWith(\"logging/\"))\n attribute_name = attribute_name.substring(8); // \"org.xmlBlaster.engine.RequestBroker\"\n\n try {\n Level level = this.glob.getLogLevel(attribute_name);\n return level.toString();\n }\n catch (ServiceManagerException e) {\n if (attribute_name == null || attribute_name.length() == 0 || \"logging/\".equals(attribute_name)) return Level.INFO.toString();\n throw(new AttributeNotFoundException(\"Cannot find '\" + attribute_name + \"' attribute in \" + dClassName));\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/* */ }", "public String getAttribute2() {\n return (String) getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute14()\n {\n return (String)getAttributeInternal(ATTRIBUTE14);\n }", "public String getAttributeValue(Node node, String attributeName) throws Exception;", "public String getStringAttribute();", "public String getAttribute13()\n {\n return (String)getAttributeInternal(ATTRIBUTE13);\n }", "public String getAttribute8()\n {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public String getAttribute6()\n {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getElementAttribute(int row, int attr);", "public String getAttribute(int nameCode) {\r\n return bufferedAttributes.getValueByFingerprint(nameCode & 0xfffff);\r\n }", "public tudresden.ocl20.core.jmi.ocl.commonmodel.Attribute lookupAttribute(java.lang.String attName) {\n Iterator featuresIt = getFeature().iterator();\n while(featuresIt.hasNext()){\n Feature feature = (Feature) featuresIt.next();\n if(feature instanceof Attribute && feature.getNameA().equals(attName)){\n return (Attribute) feature;\n }\n }\n Iterator parentsIt = this.getParents().iterator();//getGeneralization().iterator();\n while(parentsIt.hasNext()){\n Classifier parent = (Classifier) parentsIt.next();//((GeneralizationImpl) parentsIt.next()).getParent();\n Attribute a = (Attribute) parent.lookupAttribute(attName);\n if(a != null){\n return a;\n }\n }\n \n return null;\n }", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public String getAttr9() {\n return attr9;\n }", "public String getattribut() \n\t{\n\t\treturn attribut;\n\t}", "public String getExtAttribute3() {\n return (String) getAttributeInternal(EXTATTRIBUTE3);\n }", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "public String getAttribute10()\n {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }" ]
[ "0.7162794", "0.7157354", "0.7157354", "0.7078257", "0.7040565", "0.7028963", "0.68577886", "0.68548", "0.670806", "0.670806", "0.6657984", "0.6657984", "0.6657984", "0.657805", "0.6569674", "0.6567661", "0.65532666", "0.6550141", "0.6549214", "0.6498568", "0.6491919", "0.641383", "0.6397774", "0.63758886", "0.63625115", "0.63622123", "0.63443905", "0.63415873", "0.6335667", "0.6333671", "0.6330297", "0.6257146", "0.6240278", "0.6239544", "0.6211869", "0.6207466", "0.6207466", "0.6207466", "0.6207466", "0.6207466", "0.6198749", "0.61963326", "0.61950547", "0.61855143", "0.61780435", "0.6171805", "0.61585444", "0.6156517", "0.61526906", "0.614721", "0.614721", "0.614721", "0.6144929", "0.6134912", "0.6134912", "0.6134912", "0.6134912", "0.6134912", "0.61300975", "0.61210763", "0.6114512", "0.6111208", "0.61106414", "0.6085968", "0.6085968", "0.60784876", "0.6071736", "0.60611916", "0.6052218", "0.60408616", "0.6040612", "0.599588", "0.59889364", "0.5988055", "0.5976946", "0.5973006", "0.59700656", "0.59636194", "0.5951766", "0.5951766", "0.5951766", "0.5951766", "0.5951766", "0.59211373", "0.59121853", "0.59056693", "0.5903707", "0.58938414", "0.58909905", "0.58829993", "0.58635235", "0.5856854", "0.5843869", "0.5842049", "0.5842049", "0.58403516", "0.58392364", "0.5827099", "0.58229035", "0.58184445" ]
0.7400943
0
/ Sets value as the attribute value for Attribute12
public void setAttribute12(String value) { setAttributeInternal(ATTRIBUTE12, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "void setInt(int attributeValue);", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void setAttr12(String attr12) {\n this.attr12 = attr12;\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "public void setAttrib(String name, String value);", "void setString(String attributeValue);", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "public void setExtAttribute12(String value) {\n setAttributeInternal(EXTATTRIBUTE12, value);\n }", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void setAttribute11(String value)\n {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "public void setAttribute9(String value)\n {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "public void setAttribute(String name, Object value);", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "protected abstract void setContextAttribute(String name, Object value);", "public void setIntAttribute12(String value) {\n setAttributeInternal(INTATTRIBUTE12, value);\n }", "void setAttributes(String attributeName, String attributeValue);", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "void setAttribute(String key, Object value)\n throws ProcessingException;", "public void setAttribute3(String value)\n {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute(Object key, Object value);", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute6(String value)\n {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute2(String value)\n {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "public String getAttr12() {\n return attr12;\n }", "public int storeAttribute(String key, String value);", "String attributeToSetter(String name);", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "void setProperty(String attribute, String value);", "@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}", "public void setAttribute13(String value)\n {\n setAttributeInternal(ATTRIBUTE13, value);\n }", "public void setAttribute14(String value)\n {\n setAttributeInternal(ATTRIBUTE14, value);\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "public void attribute(String name, String value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n writerEscape.writeAttValue(value);\r\n this.writer.write('\"');\r\n }", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "public void attribute(int nameCode, CharSequence value) throws XPathException {\r\n if (depthOfHole == 0) {\r\n nextReceiver.attribute(nameCode, value);\r\n }\r\n }", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "public void setAttribute4(String value)\n {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }", "@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public String getAttribute12()\n {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "void updateAttribute(final AuthValues authToken, final UUID garId, final Attribute attribute) throws WorkflowException;", "public void setAttr9(String attr9) {\n this.attr9 = attr9;\n }", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "@Override\n protected void visitHtmlAttributeValueNode(HtmlAttributeValueNode node) {\n pushState(HtmlContext.HTML_NORMAL_ATTR_VALUE);\n super.visitHtmlAttributeValueNode(node);\n popState();\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setExtAttribute9(String value) {\n setAttributeInternal(EXTATTRIBUTE9, value);\n }", "public void set(String attribute, Object value) {\r\n\t\tput(attribute, value);\r\n\t}", "public void setAttribute13(String value) {\n setAttributeInternal(ATTRIBUTE13, value);\n }", "public void setAttribute13(String value) {\n setAttributeInternal(ATTRIBUTE13, value);\n }", "public void setAttribute13(String value) {\n setAttributeInternal(ATTRIBUTE13, value);\n }", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "public void set(AttributeDefinition attribute, Object value)\n throws UnknownAttributeException, ModificationNotPermitedException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \"cannot be modified with set method\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "public EdmAttribute setupAttribute(String val) {\n EdmAttribute a = new EdmAttribute(val);\n return a;\n }" ]
[ "0.73231673", "0.73231673", "0.73231673", "0.7029705", "0.70010865", "0.69982636", "0.69108987", "0.67728335", "0.6752588", "0.66985714", "0.665051", "0.6645853", "0.6638179", "0.6621585", "0.6595995", "0.65275407", "0.65063155", "0.6494711", "0.64878017", "0.64802", "0.647834", "0.64669454", "0.64669454", "0.64591753", "0.6447259", "0.64458877", "0.6427145", "0.6427145", "0.6404543", "0.6382759", "0.6376612", "0.6371174", "0.6333541", "0.6317787", "0.6317787", "0.6317787", "0.6297738", "0.62971634", "0.6291086", "0.6291086", "0.6291086", "0.6291086", "0.6280765", "0.6275218", "0.62681174", "0.6264733", "0.6262539", "0.6252964", "0.62454885", "0.62454885", "0.62454885", "0.62454885", "0.62454885", "0.62454885", "0.6244207", "0.62340206", "0.62232673", "0.6210702", "0.61954516", "0.61927235", "0.61914134", "0.61899686", "0.6142598", "0.6142598", "0.6142598", "0.6142598", "0.6142598", "0.6142598", "0.6141991", "0.61375177", "0.6118269", "0.6112588", "0.61068386", "0.6089297", "0.6088478", "0.60694647", "0.60694647", "0.60694647", "0.60694647", "0.60694647", "0.60694647", "0.6069306", "0.6068669", "0.6064817", "0.60637945", "0.60581595", "0.60575646", "0.60521924", "0.60280585", "0.60280585", "0.60280585", "0.60280585", "0.6023012", "0.60171115", "0.6007814", "0.6007814", "0.6007814", "0.6006126", "0.6001652", "0.5998169" ]
0.7591985
0
/ Gets the attribute value for Attribute13, using the alias name Attribute13
public String getAttribute13() { return (String)getAttributeInternal(ATTRIBUTE13); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getAttribute();", "Attribute getAttribute();", "Object getAttribute(int attribute);", "public String getAttribute12()\n {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "String getAttribute();", "public String getAttribute13() {\n return (String)getAttributeInternal(ATTRIBUTE13);\n }", "public String getAttribute13() {\n return (String)getAttributeInternal(ATTRIBUTE13);\n }", "public String getAttribute13() {\n return (String) getAttributeInternal(ATTRIBUTE13);\n }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public String getAttribute12() {\n return (String) getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttribute12() {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttribute12() {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "Object getAttribute(String key);", "Object getAttribute(String key);", "public String getAttribute3() {\n return attribute3;\n }", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public String getAttr13() {\n return attr13;\n }", "public String getExtAttribute13() {\n return (String) getAttributeInternal(EXTATTRIBUTE13);\n }", "public String getAttribute(String name);", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "public String getAttribute11()\n {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute9()\n {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute3()\n {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public Object getAttribute(Object key);", "public String getAttribute(String key) {\n return attributes.get(key);\n }", "public Object getAttribute(String name);", "public String getAttribute14()\n {\n return (String)getAttributeInternal(ATTRIBUTE14);\n }", "public String getAttribute(final String attributeLocator);", "public synchronized Object getAttribute(String key) {\n return attributes.get(key);\n }", "public String getAttribute1()\n {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute9() {\n return (String) getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute1() {\n return attribute1;\n }", "public Object getAttribute(Object key) {\n return getAttributes().get(key);\n }", "public String getAttr12() {\n return attr12;\n }", "Pair<String, String> getAdditionalAttribute();", "public Attribute fetchAttribute(String key, String value);", "public String getAttribute3() {\n return (String) getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute11() {\n return (String) getAttributeInternal(ATTRIBUTE11);\n }", "public String getIntAttribute13() {\n return (String) getAttributeInternal(INTATTRIBUTE13);\n }", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public String getExtAttribute12() {\n return (String) getAttributeInternal(EXTATTRIBUTE12);\n }", "public String getAttribute7()\n {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute(int nameCode) {\r\n return bufferedAttributes.getValueByFingerprint(nameCode & 0xfffff);\r\n }", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public int getAttribute() {\n return Attribute;\n }", "public String getAttribute15()\n {\n return (String)getAttributeInternal(ATTRIBUTE15);\n }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }", "public TLAttribute getAttribute(String attributeName);", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public String getAttribute() {\n return attribute;\n }", "public Object getProperty(String attName);", "String attributeToGetter(String name);", "public String getAttribute6()\n {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "private String getAttributeValue(final Attribute attribute) {\n\t List<String> values = this.getAttributeValues(attribute);\n\t if (values.size()>0) {\n\t return values.get(0);\n\t } else {\n\t return \"\";\n\t }\n\t}", "public Object get(String aName) { return _attrMap.get(aName); }", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "public String getExtAttribute3() {\n return (String) getAttributeInternal(EXTATTRIBUTE3);\n }", "public String getattribut() \n\t{\n\t\treturn attribut;\n\t}", "String getAttributeStringValue(Object attr);", "public HbAttributeInternal getAttribute(String name);", "public String getAttribute14() {\n return (String)getAttributeInternal(ATTRIBUTE14);\n }", "public String getAttribute14() {\n return (String)getAttributeInternal(ATTRIBUTE14);\n }", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public String getAttribute() {\n\t\treturn attribute;\n\t}", "public String getAttribute7() {\n return (String) getAttributeInternal(ATTRIBUTE7);\n }", "public String getElementAttribute(int row, int attr);", "public String getAttribute14() {\n return (String) getAttributeInternal(ATTRIBUTE14);\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/* */ }", "public Object getAttribute(String attribute_name) \n throws AttributeNotFoundException,\n MBeanException,\n ReflectionException {\n if (attribute_name == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Attribute name cannot be null\"), \n \"Cannot invoke a getter of \" + dClassName + \" with null attribute name\");\n }\n\n attribute_name = RunTimeSingleton.decode(attribute_name, \"US-ASCII\"); // HtmlAdapter made from info/admin -> info%2Fadmin\n // \"logging/org.xmlBlaster.engine.RequestBroker\"\n if (attribute_name.startsWith(\"logging/\"))\n attribute_name = attribute_name.substring(8); // \"org.xmlBlaster.engine.RequestBroker\"\n\n try {\n Level level = this.glob.getLogLevel(attribute_name);\n return level.toString();\n }\n catch (ServiceManagerException e) {\n if (attribute_name == null || attribute_name.length() == 0 || \"logging/\".equals(attribute_name)) return Level.INFO.toString();\n throw(new AttributeNotFoundException(\"Cannot find '\" + attribute_name + \"' attribute in \" + dClassName));\n }\n }", "public String getAttr9() {\n return attr9;\n }", "public Short getShortAttribute();", "@Override\n\tpublic Attribute attribute(final int index) {\n\t\treturn attributes[index];\n\t}", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getExtAttribute9() {\n return (String) getAttributeInternal(EXTATTRIBUTE9);\n }", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public String getAttr11() {\n return attr11;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public String getAttribute6() {\n return (String) getAttributeInternal(ATTRIBUTE6);\n }" ]
[ "0.71267605", "0.7054702", "0.6929353", "0.6906883", "0.6869795", "0.6858221", "0.6858221", "0.68189836", "0.67517567", "0.6668962", "0.66474783", "0.66474783", "0.66162014", "0.66162014", "0.6579657", "0.6549379", "0.6549379", "0.6549379", "0.6521378", "0.6517948", "0.6517389", "0.65038633", "0.6503175", "0.6499798", "0.64752305", "0.64662826", "0.64541703", "0.644357", "0.63504946", "0.6343639", "0.63385725", "0.6335086", "0.6320237", "0.63189536", "0.6313483", "0.62986034", "0.629248", "0.6291806", "0.62860996", "0.6281016", "0.6281016", "0.6281016", "0.62809473", "0.62809473", "0.62809473", "0.62809473", "0.62809473", "0.62765163", "0.6267141", "0.6249355", "0.6249355", "0.6240088", "0.6230436", "0.6203772", "0.6198294", "0.6178821", "0.61699235", "0.6165586", "0.6162969", "0.6157175", "0.61559826", "0.61559826", "0.61559826", "0.61559826", "0.61559826", "0.61505604", "0.6149567", "0.6147949", "0.6129165", "0.6099734", "0.60950804", "0.6076927", "0.6075789", "0.6035261", "0.60346335", "0.60319924", "0.6030076", "0.60253376", "0.60183686", "0.60175216", "0.6010717", "0.6010717", "0.59992105", "0.59992105", "0.59952474", "0.59942096", "0.59890443", "0.5985199", "0.59831536", "0.59814644", "0.5975286", "0.5964459", "0.59594744", "0.59594744", "0.59594744", "0.5951526", "0.5950048", "0.59268135", "0.5912227", "0.5899564" ]
0.7049146
2
/ Sets value as the attribute value for Attribute13
public void setAttribute13(String value) { setAttributeInternal(ATTRIBUTE13, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void setAttribute13(String value) {\n setAttributeInternal(ATTRIBUTE13, value);\n }", "public void setAttribute13(String value) {\n setAttributeInternal(ATTRIBUTE13, value);\n }", "public void setAttribute13(String value) {\n setAttributeInternal(ATTRIBUTE13, value);\n }", "public void setAttribute12(String value)\n {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "void setInt(int attributeValue);", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "public void setExtAttribute13(String value) {\n setAttributeInternal(EXTATTRIBUTE13, value);\n }", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "public void setAttr13(String attr13) {\n this.attr13 = attr13;\n }", "public void setAttrib(String name, String value);", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setIntAttribute13(String value) {\n setAttributeInternal(INTATTRIBUTE13, value);\n }", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void setAttribute9(String value)\n {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "void setString(String attributeValue);", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "public void setAttribute11(String value)\n {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute14(String value)\n {\n setAttributeInternal(ATTRIBUTE14, value);\n }", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public void setAttribute(String name, Object value);", "public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute3(String value)\n {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "void setAttribute(String key, Object value)\n throws ProcessingException;", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "protected abstract void setContextAttribute(String name, Object value);", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }", "public void setAttribute6(String value)\n {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void attribute(String name, String value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n writerEscape.writeAttValue(value);\r\n this.writer.write('\"');\r\n }", "void setAttributes(String attributeName, String attributeValue);", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "public void setAttribute(Object key, Object value);", "void setProperty(String attribute, String value);", "@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "public void attribute(int nameCode, CharSequence value) throws XPathException {\r\n if (depthOfHole == 0) {\r\n nextReceiver.attribute(nameCode, value);\r\n }\r\n }", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute15(String value)\n {\n setAttributeInternal(ATTRIBUTE15, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public String getAttr13() {\n return attr13;\n }", "public void attribute(int nameCode, CharSequence value)\r\n throws XPathException {\r\n\r\n bufferedAttributes.addAttribute(nameCode, value.toString());\r\n\r\n // Note: we're relying on the fact that AttributeCollection can hold two attributes of the same name\r\n // and maintain their order, because the check for duplicate attributes is not done until later in the\r\n // pipeline. We validate both the attributes (see Bugzilla #4600 which legitimizes this.)\r\n\r\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttr9(String attr9) {\n this.attr9 = attr9;\n }", "String attributeToSetter(String name);", "@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}", "public void set(AttributeDefinition attribute, Object value)\n throws UnknownAttributeException, ModificationNotPermitedException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \"cannot be modified with set method\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "public void setAttribute14(String value) {\n setAttributeInternal(ATTRIBUTE14, value);\n }", "public void setAttribute14(String value) {\n setAttributeInternal(ATTRIBUTE14, value);\n }", "public void setAttribute14(String value) {\n setAttributeInternal(ATTRIBUTE14, value);\n }", "public void setAttr12(String attr12) {\n this.attr12 = attr12;\n }", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "public void setExtAttribute9(String value) {\n setAttributeInternal(EXTATTRIBUTE9, value);\n }", "public void setAttribute7(String value)\n {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public int storeAttribute(String key, String value);", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "public void setExtAttribute12(String value) {\n setAttributeInternal(EXTATTRIBUTE12, value);\n }", "public void processDefinitionAttribute(String name, String value) {\n\t\tcurrentDefinition.setAttribute(name, value);\n\t}", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute4(String value)\n {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setValue3(String value3) { this.value3 = value3; }", "public String getAttribute13()\n {\n return (String)getAttributeInternal(ATTRIBUTE13);\n }", "private static String setAttributesForStoring( Value value, Node node )\n\t{\n\t\tNamedNodeMap map = node.getAttributes();\n\t\tString type = \"\";\n\t\tif ( map != null ) {\n\t\t\tNode attr;\n\t\t\tfor( int i = 0; i < map.getLength(); i++ ) {\n\t\t\t\tattr = map.item( i );\n\t\t\t\tif ( !attr.getNodeName().equals( JOLIE_TYPE_ATTRIBUTE ) ) { // do not consider attribute type\n\t\t\t\t\tgetAttribute( value, (attr.getLocalName() == null) ? attr.getNodeName() : attr.getLocalName() ).setValue( attr.getNodeValue() );\n\t\t\t\t} else {\n\t\t\t\t\ttype = attr.getNodeValue();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn type;\n\t}", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "@Test\n public void test_TCM__OrgJdomAttribute_setValue_String() {\n \tfinal Namespace namespace = Namespace.getNamespace(\"prefx\", \"http://some.other.place\");\n\n \tfinal Attribute attribute = new Attribute(\"test\", \"value\", namespace);\n\n \tassertTrue(\"incorrect value before set\", attribute.getValue().equals(\"value\"));\n\n attribute.setValue(\"foo\");\n \tassertTrue(\"incorrect value after set\", attribute.getValue().equals(\"foo\"));\n\n \t//test that the verifier is called\n \ttry {\n attribute.setValue(null);\n \t\tfail(\"Attribute setValue didn't catch null string\");\n \t} catch (final NullPointerException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n \t}\n\n \ttry {\n \t\tfinal char c= 0x11;\n \t\tfinal StringBuilder buffer = new StringBuilder(\"hhhh\");\n buffer.setCharAt(2, c);\n \t\tattribute.setValue(buffer.toString());\n \t\tfail(\"Attribute setValue didn't catch invalid comment string\");\n \t} catch (final IllegalDataException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n \t}\n\n }", "@Override\n public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException {\n\n }", "@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}", "public static void attribute(String name, long value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }" ]
[ "0.7034523", "0.69893235", "0.69893235", "0.69893235", "0.69521964", "0.69024855", "0.68928665", "0.685008", "0.6801122", "0.67469746", "0.6710074", "0.6694618", "0.66758335", "0.6647984", "0.6639475", "0.66228807", "0.6615755", "0.6615755", "0.6615755", "0.6613426", "0.65948534", "0.6593363", "0.6568634", "0.6542333", "0.65125775", "0.6479842", "0.6441616", "0.64229226", "0.6412413", "0.6400707", "0.6398624", "0.6398624", "0.6381515", "0.6363409", "0.6363409", "0.63556033", "0.63504213", "0.63504213", "0.63504213", "0.63504213", "0.63389087", "0.63321924", "0.63197666", "0.63119584", "0.631042", "0.6304489", "0.6299876", "0.6274099", "0.6267783", "0.62565166", "0.62465656", "0.6244638", "0.6222785", "0.6187659", "0.6187659", "0.6187659", "0.6169193", "0.6165589", "0.6165589", "0.6165589", "0.6165589", "0.6165589", "0.6165589", "0.6163945", "0.6160664", "0.6153128", "0.6153128", "0.6153128", "0.6153128", "0.6153128", "0.6153128", "0.61465776", "0.61392856", "0.612667", "0.6122192", "0.6108503", "0.6108503", "0.6108503", "0.6107558", "0.6105542", "0.6104454", "0.6097786", "0.6093002", "0.6074746", "0.607152", "0.6057069", "0.60470444", "0.60470444", "0.60470444", "0.60470444", "0.60275894", "0.6016934", "0.6014841", "0.6012763", "0.6012147", "0.6011655", "0.601064", "0.6009242", "0.6001259", "0.5990779" ]
0.720137
0
/ Gets the attribute value for Attribute14, using the alias name Attribute14
public String getAttribute14() { return (String)getAttributeInternal(ATTRIBUTE14); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getAttribute();", "Attribute getAttribute();", "String getAttribute();", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "Object getAttribute(int attribute);", "public String getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public Object getAttribute(String name);", "public String getAttribute14() {\n return (String)getAttributeInternal(ATTRIBUTE14);\n }", "public String getAttribute14() {\n return (String)getAttributeInternal(ATTRIBUTE14);\n }", "public String getAttribute14() {\n return (String) getAttributeInternal(ATTRIBUTE14);\n }", "public String getAttribute12()\n {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "Object getAttribute(String key);", "Object getAttribute(String key);", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "public String getAttribute7()\n {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public String getAttribute9()\n {\n return (String)getAttributeInternal(ATTRIBUTE9);\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/* */ }", "public String getAttribute(String key) {\n return attributes.get(key);\n }", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public String getAttribute1()\n {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "public String getAttribute12() {\n return (String) getAttributeInternal(ATTRIBUTE12);\n }", "public Object getAttribute(Object key);", "public String getAttribute12() {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttribute12() {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttribute7() {\n return (String) getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute11()\n {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute3() {\n return attribute3;\n }", "public String getAttribute6()\n {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute3()\n {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute7() {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "Pair<String, String> getAdditionalAttribute();", "public Object get(String aName) { return _attrMap.get(aName); }", "public String getAttribute9() {\n return (String) getAttributeInternal(ATTRIBUTE9);\n }", "public String getExtAttribute14() {\n return (String) getAttributeInternal(EXTATTRIBUTE14);\n }", "public String getAttribute1() {\n return attribute1;\n }", "public synchronized Object getAttribute(String key) {\n return attributes.get(key);\n }", "public Object getAttribute(Object key) {\n return getAttributes().get(key);\n }", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public String getAttr14() {\n return attr14;\n }", "public String getAttributeValue(Node node, String attributeName) throws Exception;", "public HbAttributeInternal getAttribute(String name);", "public String getAttribute(int nameCode) {\r\n return bufferedAttributes.getValueByFingerprint(nameCode & 0xfffff);\r\n }", "public String getAttribute4()\n {\n return (String)getAttributeInternal(ATTRIBUTE4);\n }", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "String getAttributeStringValue(Object attr);", "public TLAttribute getAttribute(String attributeName);", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public String getIntAttribute14() {\n return (String) getAttributeInternal(INTATTRIBUTE14);\n }", "public Attribute fetchAttribute(String key, String value);", "public String getAttribute6() {\n return (String) getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute3() {\n return (String) getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute8()\n {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public Object getProperty(String attName);", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute6() {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute11() {\n return (String) getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttr7() {\n return attr7;\n }", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute(final String attributeLocator);", "public int getAttribute() {\n return Attribute;\n }", "public Short getShortAttribute();", "final private com.org.multigear.mginterface.engine.Configuration.Attr getAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getExtAttribute7() {\n return (String) getAttributeInternal(EXTATTRIBUTE7);\n }", "public String getAttribute13()\n {\n return (String)getAttributeInternal(ATTRIBUTE13);\n }", "public String getAttr12() {\n return attr12;\n }", "public String getExtAttribute12() {\n return (String) getAttributeInternal(EXTATTRIBUTE12);\n }", "protected String getAttribute(String chave) throws AtributosException {\r\n\t\tif (tag == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\tString attributeValue = tag.getAttributeValue(chave);\r\n\r\n\t\tif (attributeValue == null || attributeValue.trim().equals(\"\")) {\r\n\t\t\tattributeValue = getDefaultValue(chave);\r\n\t\t}\r\n\r\n\t\treturn attributeValue;\r\n\t}", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "public String getExtAttribute9() {\n return (String) getAttributeInternal(EXTATTRIBUTE9);\n }", "public String getAttribute15()\n {\n return (String)getAttributeInternal(ATTRIBUTE15);\n }", "public String getExtAttribute3() {\n return (String) getAttributeInternal(EXTATTRIBUTE3);\n }", "String attributeToGetter(String name);" ]
[ "0.72092295", "0.70226", "0.7019376", "0.69958955", "0.6940673", "0.6897848", "0.68541694", "0.68541694", "0.68541694", "0.68054456", "0.6793951", "0.67545223", "0.67545223", "0.6737721", "0.6680959", "0.66494626", "0.66494626", "0.66372776", "0.65977347", "0.65692437", "0.6523688", "0.64993185", "0.64853156", "0.6476219", "0.64641464", "0.64554876", "0.6453926", "0.6442017", "0.64145863", "0.64145863", "0.6405063", "0.63811857", "0.6371977", "0.6369146", "0.63684916", "0.6367594", "0.6367594", "0.6367594", "0.6361951", "0.6360925", "0.6356975", "0.63562423", "0.63321465", "0.63139755", "0.63122845", "0.6311136", "0.6309472", "0.6304158", "0.6304158", "0.6304158", "0.63041353", "0.6291737", "0.6291737", "0.6291737", "0.6291737", "0.6291737", "0.6267643", "0.6263341", "0.6261876", "0.62600785", "0.6255871", "0.6237124", "0.62294126", "0.6227957", "0.62269264", "0.62221175", "0.6216685", "0.6212588", "0.62068325", "0.62046254", "0.61980045", "0.61898345", "0.61878616", "0.61878616", "0.61878616", "0.61878616", "0.61878616", "0.6182065", "0.6170059", "0.61635476", "0.61635476", "0.61635476", "0.616256", "0.6148435", "0.6115475", "0.6115475", "0.6115373", "0.6113074", "0.61126095", "0.6099612", "0.6097439", "0.609566", "0.6090132", "0.60795444", "0.6075878", "0.606911", "0.606889", "0.60537225", "0.60498714", "0.60469466" ]
0.7054913
1
/ Sets value as the attribute value for Attribute14
public void setAttribute14(String value) { setAttributeInternal(ATTRIBUTE14, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "void setInt(int attributeValue);", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void setAttrib(String name, String value);", "public void setAttribute14(String value) {\n setAttributeInternal(ATTRIBUTE14, value);\n }", "public void setAttribute14(String value) {\n setAttributeInternal(ATTRIBUTE14, value);\n }", "public void setAttribute14(String value) {\n setAttributeInternal(ATTRIBUTE14, value);\n }", "public void setAttribute12(String value)\n {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "@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}", "void setString(String attributeValue);", "protected abstract void setContextAttribute(String name, Object value);", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "public void setAttribute(String name, Object value);", "public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute6(String value)\n {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "public void setAttribute9(String value)\n {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "public void setAttribute11(String value)\n {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "void setAttributes(String attributeName, String attributeValue);", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "public void setExtAttribute14(String value) {\n setAttributeInternal(EXTATTRIBUTE14, value);\n }", "public void setAttribute4(String value)\n {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute7(String value)\n {\n setAttributeInternal(ATTRIBUTE7, value);\n }", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "public void setAttribute3(String value)\n {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}", "@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void attribute(int nameCode, CharSequence value) throws XPathException {\r\n if (depthOfHole == 0) {\r\n nextReceiver.attribute(nameCode, value);\r\n }\r\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "public void setAttribute13(String value)\n {\n setAttributeInternal(ATTRIBUTE13, value);\n }", "public void processDefinitionAttribute(String name, String value) {\n\t\tcurrentDefinition.setAttribute(name, value);\n\t}", "public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }", "public void setValue(final String value) {\n super.setAttributeValue(value);\n }", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "public void attribute(String name, String value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n writerEscape.writeAttValue(value);\r\n this.writer.write('\"');\r\n }", "String attributeToSetter(String name);", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "void setAttribute(String key, Object value)\n throws ProcessingException;", "public void setAttribute(Object key, Object value);", "public void setAttribute15(String value)\n {\n setAttributeInternal(ATTRIBUTE15, value);\n }", "public void setAttribute2(String value)\n {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}", "void setProperty(String attribute, String value);", "public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }", "public void setIntAttribute14(String value) {\n setAttributeInternal(INTATTRIBUTE14, value);\n }", "public void setAttr14(String attr14) {\n this.attr14 = attr14;\n }", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "public EdmAttribute setupAttribute(String val) {\n EdmAttribute a = new EdmAttribute(val);\n return a;\n }", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "public void setExtAttribute9(String value) {\n setAttributeInternal(EXTATTRIBUTE9, value);\n }", "@Override\n protected void visitHtmlAttributeValueNode(HtmlAttributeValueNode node) {\n pushState(HtmlContext.HTML_NORMAL_ATTR_VALUE);\n super.visitHtmlAttributeValueNode(node);\n popState();\n }", "public void set(AttributeDefinition attribute, Object value)\n throws UnknownAttributeException, ModificationNotPermitedException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \"cannot be modified with set method\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute4(String value) {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute(java.lang.String attrName, java.lang.String value) {\n\t\ttry {\n\t\t\tGovSteamFV4_primitive_builder attrEnum = GovSteamFV4_primitive_builder.valueOf(attrName);\n\t\t\tupdateAttributeInArray(attrEnum, attrEnum.construct(value));\n\t\t\tSystem.out.println(\"Updated GovSteamFV4, setting \" + attrName + \" to: \" + value);\n\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t{\n\t\t\tsuper.setAttribute(attrName, value);\n\t\t}\n\t}" ]
[ "0.71228707", "0.7084568", "0.70640326", "0.70605", "0.7022208", "0.69465375", "0.6930574", "0.69245803", "0.69186443", "0.68829674", "0.6868565", "0.6868565", "0.6868565", "0.6752993", "0.6737371", "0.6715485", "0.6711178", "0.6665097", "0.6646903", "0.66460717", "0.66460717", "0.66418964", "0.6636144", "0.66277987", "0.6619244", "0.65998995", "0.6598607", "0.6598607", "0.6554969", "0.65321994", "0.65099025", "0.6492314", "0.6474489", "0.6456543", "0.6445241", "0.6427952", "0.6420412", "0.6404426", "0.6404426", "0.6404426", "0.6399778", "0.6399778", "0.6399778", "0.6399778", "0.6399778", "0.6399778", "0.63801515", "0.63713264", "0.63702387", "0.63702387", "0.63702387", "0.63702387", "0.63653046", "0.6363345", "0.6363345", "0.6363345", "0.6363345", "0.6356597", "0.6337656", "0.63341314", "0.63306844", "0.6324289", "0.63179374", "0.6312386", "0.6310972", "0.6303848", "0.6302155", "0.6300703", "0.6293153", "0.62915874", "0.62886006", "0.6269917", "0.6264955", "0.6262392", "0.6256295", "0.62516487", "0.624808", "0.6236843", "0.6236843", "0.6236843", "0.6234104", "0.6227228", "0.6221496", "0.6217472", "0.6215394", "0.6209216", "0.62049955", "0.61905503", "0.61905503", "0.61905503", "0.61905503", "0.61905503", "0.61905503", "0.61863655", "0.61863655", "0.61863655", "0.61863655", "0.61863655", "0.61863655", "0.61862665" ]
0.7189565
0
/ Gets the attribute value for Attribute15, using the alias name Attribute15
public String getAttribute15() { return (String)getAttributeInternal(ATTRIBUTE15); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getAttribute();", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "Object getAttribute(int attribute);", "Attribute getAttribute();", "String getAttribute();", "public String getAttribute15() {\n return (String)getAttributeInternal(ATTRIBUTE15);\n }", "public String getAttribute15() {\n return (String)getAttributeInternal(ATTRIBUTE15);\n }", "public String getAttribute15() {\n return (String) getAttributeInternal(ATTRIBUTE15);\n }", "public String getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public Object getAttribute(String name);", "public String getAttribute11()\n {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public org.omg.uml.foundation.core.Attribute getAttribute();", "public String getAttribute9()\n {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "Object getAttribute(String key);", "Object getAttribute(String key);", "public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }", "public String getAttribute12()\n {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public Attribute fetchAttribute(String key, String value);", "public String getAttr15() {\n return attr15;\n }", "public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }", "Pair<String, String> getAdditionalAttribute();", "public TLAttribute getAttribute(String attributeName);", "String getAttributeStringValue(Object attr);", "public String getAttribute3() {\n return attribute3;\n }", "public String getAttribute9() {\n return (String) getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute11() {\n return (String) getAttributeInternal(ATTRIBUTE11);\n }", "public Object getAttribute(Object key);", "public String getAttribute(int nameCode) {\r\n return bufferedAttributes.getValueByFingerprint(nameCode & 0xfffff);\r\n }", "private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getAttribute9() {\n return (String)getAttributeInternal(ATTRIBUTE9);\n }", "public String getExtAttribute15() {\n return (String) getAttributeInternal(EXTATTRIBUTE15);\n }", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getAttribute11() {\n return (String)getAttributeInternal(ATTRIBUTE11);\n }", "public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\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/* */ }", "public String getAttribute3()\n {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttributeValue(Node node, String attributeName) throws Exception;", "public String getElementAttribute(int row, int attr);", "public String getAttribute(String key) {\n return attributes.get(key);\n }", "public String getAttribute12() {\n return (String) getAttributeInternal(ATTRIBUTE12);\n }", "public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }", "String attributeToGetter(String name);", "public String getAttribute5()\n {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute1()\n {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return attribute1;\n }", "public String getAttribute12() {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "public String getAttribute12() {\n return (String)getAttributeInternal(ATTRIBUTE12);\n }", "default Attribute getAttribute(AttributeName attributeName) {return (Attribute) attributeName;}", "public Short getShortAttribute();", "public Object get(String aName) { return _attrMap.get(aName); }", "public String getAttribute14()\n {\n return (String)getAttributeInternal(ATTRIBUTE14);\n }", "public String getIntAttribute15() {\n return (String) getAttributeInternal(INTATTRIBUTE15);\n }", "public int getAttribute() {\n return Attribute;\n }", "public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }", "public String getAttribute3() {\n return (String) getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttributeValueAlias() {\n return attributeValueAlias;\n }", "public String getAttribute10()\n {\n return (String)getAttributeInternal(ATTRIBUTE10);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "public String getAttribute3() {\n return (String)getAttributeInternal(ATTRIBUTE3);\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}", "public String getAttribute(final String attributeLocator);", "public Object getAttribute(Object key) {\n return getAttributes().get(key);\n }", "public synchronized Object getAttribute(String key) {\n return attributes.get(key);\n }", "public String getAttribute7()\n {\n return (String)getAttributeInternal(ATTRIBUTE7);\n }", "public String getAttribute1() {\n return (String) getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute8()\n {\n return (String)getAttributeInternal(ATTRIBUTE8);\n }", "public HbAttributeInternal getAttribute(String name);", "public String getAttr9() {\n return attr9;\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute1() {\n return (String)getAttributeInternal(ATTRIBUTE1);\n }", "public String getAttribute5() {\n return (String) getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttr11() {\n return attr11;\n }", "final private com.org.multigear.mginterface.engine.Configuration.Attr getAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private String getAttribute(Node nNode,String name) {\n \tNamedNodeMap attributes = nNode.getAttributes();\n \t\n \t// get the number of nodes in this map\n \tint numAttrs = attributes.getLength();\n \t\n \tfor (int i = 0; i < numAttrs; i++) {\n \t\t\n \t\tAttr attr = (Attr) attributes.item(i);\n \t\tString attrName = attr.getNodeName();\n \t\tString attrValue = attr.getNodeValue();\n \n \t\tif(attrName == name) {\n \t\t\treturn attrValue;\n \t\t}\n \t}\n \t\n \treturn null;\n }", "public String getAttribute() {\n return attribute;\n }", "private String getXmlAttribute(XmlResourceParser xml, String name) {\n\t\tint resId = xml.getAttributeResourceValue(null, name, 0);\n\t\tif (resId == 0) {\n\t\t\treturn xml.getAttributeValue(null, name);\n\t\t} else {\n\t\t\treturn getString(resId);\n\t\t}\n\t}", "public Object getAttribute(String attribute_name) \n throws AttributeNotFoundException,\n MBeanException,\n ReflectionException {\n if (attribute_name == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"Attribute name cannot be null\"), \n \"Cannot invoke a getter of \" + dClassName + \" with null attribute name\");\n }\n\n attribute_name = RunTimeSingleton.decode(attribute_name, \"US-ASCII\"); // HtmlAdapter made from info/admin -> info%2Fadmin\n // \"logging/org.xmlBlaster.engine.RequestBroker\"\n if (attribute_name.startsWith(\"logging/\"))\n attribute_name = attribute_name.substring(8); // \"org.xmlBlaster.engine.RequestBroker\"\n\n try {\n Level level = this.glob.getLogLevel(attribute_name);\n return level.toString();\n }\n catch (ServiceManagerException e) {\n if (attribute_name == null || attribute_name.length() == 0 || \"logging/\".equals(attribute_name)) return Level.INFO.toString();\n throw(new AttributeNotFoundException(\"Cannot find '\" + attribute_name + \"' attribute in \" + dClassName));\n }\n }", "public String getAttribute(String name) {\n return _getAttribute(name);\n }", "public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }", "public String getAttribute6()\n {\n return (String)getAttributeInternal(ATTRIBUTE6);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttribute5() {\n return (String)getAttributeInternal(ATTRIBUTE5);\n }", "public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}", "public Object getProperty(String attName);", "public String getStringAttribute();", "public String getAttribute13()\n {\n return (String)getAttributeInternal(ATTRIBUTE13);\n }" ]
[ "0.6953522", "0.6907026", "0.6885217", "0.6862827", "0.68091655", "0.6764664", "0.6764664", "0.67214537", "0.66775715", "0.6589621", "0.6589621", "0.6589621", "0.65622145", "0.65001225", "0.6483451", "0.6467693", "0.64672345", "0.64672345", "0.64502025", "0.64327955", "0.64190334", "0.6408863", "0.63761884", "0.6371393", "0.63701886", "0.63196", "0.6318825", "0.6314192", "0.63043094", "0.62896574", "0.62888044", "0.6280966", "0.626956", "0.626956", "0.626956", "0.6269139", "0.62617445", "0.62617445", "0.6257267", "0.6231792", "0.62269765", "0.62232715", "0.6217297", "0.61942816", "0.61896694", "0.6173271", "0.61715764", "0.61710215", "0.61683965", "0.6161973", "0.6150898", "0.6150898", "0.61418676", "0.61117625", "0.60975146", "0.6096673", "0.6090417", "0.6087842", "0.6087575", "0.6074827", "0.60597223", "0.60576874", "0.60514843", "0.60514843", "0.60514843", "0.60514843", "0.60514843", "0.6045631", "0.6041919", "0.6024751", "0.6019535", "0.60048026", "0.5998378", "0.5997225", "0.59960264", "0.5988097", "0.59875536", "0.59875536", "0.59875536", "0.59875536", "0.59875536", "0.5983922", "0.5980759", "0.59654397", "0.5964883", "0.5963163", "0.59606856", "0.5954226", "0.5945031", "0.5944884", "0.5943402", "0.5938919", "0.5938919", "0.5938919", "0.5938919", "0.5938919", "0.592575", "0.5919828", "0.5915884", "0.59144425" ]
0.7006327
0
/ Sets value as the attribute value for Attribute15
public void setAttribute15(String value) { setAttributeInternal(ATTRIBUTE15, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setInt(int attributeValue);", "void setInternal(ATTRIBUTES attribute, Object iValue);", "public void setAttribute15(String value) {\n setAttributeInternal(ATTRIBUTE15, value);\n }", "public void setAttribute15(String value) {\n setAttributeInternal(ATTRIBUTE15, value);\n }", "public void setAttribute15(String value) {\n setAttributeInternal(ATTRIBUTE15, value);\n }", "public void setAttr15(String attr15) {\n this.attr15 = attr15;\n }", "public void setAttrib(String name, String value);", "public void setExtAttribute15(String value) {\n setAttributeInternal(EXTATTRIBUTE15, value);\n }", "@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}", "public void setAttribute11(String value)\n {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute_value(String string) {\n this.attribute_value = string;\n }", "public void setAttribute(String type, int value) throws AdsException{\r\n\t\tbyte[] values = Convert.IntToByteArr(value);\r\n\r\n\t\tthis.configAttribute( type , values );\r\n\t}", "@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public void setAttribute9(String value)\n {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "void setString(String attributeValue);", "public void setAttribute12(String value)\n {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "public void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "void setAttribute(String name, Object value);", "void setAttributes(String attributeName, String attributeValue);", "public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute11(String value) {\n setAttributeInternal(ATTRIBUTE11, value);\n }", "public void setAttribute5(String value)\n {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setIntAttribute15(String value) {\n setAttributeInternal(INTATTRIBUTE15, value);\n }", "public void setAttribute14(String value)\n {\n setAttributeInternal(ATTRIBUTE14, value);\n }", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute9(String value) {\n setAttributeInternal(ATTRIBUTE9, value);\n }", "public void setAttribute6(String value)\n {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "@Override\n\tpublic void setValue(final int attIndex, final double value) {\n\n\t}", "public void setAttribute3(String value)\n {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "protected abstract void setContextAttribute(String name, Object value);", "public String getAttr15() {\n return attr15;\n }", "public static void attribute(String name, int value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }", "public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }", "public void setAttribute(String name, String value, Hashtable objectList)\r\n\t{\t\t\r\n\t\r\n\t\t// set attribute with type double\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// convert string value to double\r\n\t\t\tDouble temp = new Double(value);\r\n\t\t\tdouble val = temp.doubleValue();\r\n\t\t\t\t\t\t\r\n\t\t\tif (name.equals(\"influence\")) \t\r\n\t\t\t{ \t\r\n\t\t\t\tm_influence=val;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {}\t\t\t\t\r\n\t\r\n\t}", "@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}", "public void attribute(String name, String value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n writerEscape.writeAttValue(value);\r\n this.writer.write('\"');\r\n }", "public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute12(String value) {\n setAttributeInternal(ATTRIBUTE12, value);\n }", "public void setAttribute(Object key, Object value);", "@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}", "public void attribute(int nameCode, CharSequence value) throws XPathException {\r\n if (depthOfHole == 0) {\r\n nextReceiver.attribute(nameCode, value);\r\n }\r\n }", "public void setAttribute13(String value)\n {\n setAttributeInternal(ATTRIBUTE13, value);\n }", "@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}", "public void setAttribute10(String value)\n {\n setAttributeInternal(ATTRIBUTE10, value);\n }", "String attributeToSetter(String name);", "AdditionalAttributes setAttribute(String name, Object value, boolean force);", "void setAttribute(String key, Object value)\n throws ProcessingException;", "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute5(String value) {\n setAttributeInternal(ATTRIBUTE5, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "public void setAttribute1(String value) {\n setAttributeInternal(ATTRIBUTE1, value);\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}", "void setValueExpression(String attributeName, ValueExpression valueExpression);", "public void setAttribute4(String value)\n {\n setAttributeInternal(ATTRIBUTE4, value);\n }", "public String getAttribute15()\n {\n return (String)getAttributeInternal(ATTRIBUTE15);\n }", "final public void setAttr(final String name, final float value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Value = value;\r\n\t\t}\r\n\t}", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "public void setAttribute3(String value) {\n setAttributeInternal(ATTRIBUTE3, value);\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "public void setAttribute6(String value) {\n setAttributeInternal(ATTRIBUTE6, value);\n }", "void setProperty(String attribute, String value);", "void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);", "public void setExtAttribute9(String value) {\n setAttributeInternal(EXTATTRIBUTE9, value);\n }", "private static int SCARD_ATTR_VALUE(int iClass, int iTag)\n {\n return (iClass << 16) | iTag;\n }", "public synchronized void setAttribute(String key, Object value) {\n if (value == null) {\n attributes.remove(key);\n } else {\n attributes.put(key, value);\n }\n }", "public void setAttrValue(String attrValue) {\r\n\t\tthis.attrValue = attrValue;\r\n\t}", "public void setAttr9(String attr9) {\n this.attr9 = attr9;\n }", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}", "public void setAttribute(java.lang.String attrName, java.lang.String value) {\n\t\ttry {\n\t\t\tGovSteamFV4_primitive_builder attrEnum = GovSteamFV4_primitive_builder.valueOf(attrName);\n\t\t\tupdateAttributeInArray(attrEnum, attrEnum.construct(value));\n\t\t\tSystem.out.println(\"Updated GovSteamFV4, setting \" + attrName + \" to: \" + value);\n\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t{\n\t\t\tsuper.setAttribute(attrName, value);\n\t\t}\n\t}" ]
[ "0.70744836", "0.70111173", "0.6995204", "0.6995204", "0.6995204", "0.6803892", "0.6778384", "0.6696176", "0.66682273", "0.6652184", "0.6645999", "0.6641879", "0.66264266", "0.66109675", "0.6604145", "0.66038316", "0.65302503", "0.6501169", "0.6500329", "0.6476549", "0.64442164", "0.64442164", "0.6406961", "0.6378565", "0.6378565", "0.6375473", "0.63726443", "0.6349482", "0.6349482", "0.6349482", "0.6343928", "0.63311887", "0.6325161", "0.6317662", "0.63051075", "0.629815", "0.629815", "0.629815", "0.629815", "0.6272606", "0.62610227", "0.6245221", "0.6216167", "0.621115", "0.62023073", "0.61829764", "0.617401", "0.6173629", "0.6158805", "0.6151658", "0.6144028", "0.6144028", "0.6144028", "0.61384475", "0.6135126", "0.61315244", "0.61236095", "0.61158645", "0.6109775", "0.6086651", "0.6081481", "0.60770416", "0.60684407", "0.60684407", "0.60684407", "0.60684407", "0.60684407", "0.60684407", "0.60681754", "0.60681754", "0.60681754", "0.60681754", "0.60681754", "0.60681754", "0.606509", "0.605687", "0.6042949", "0.6035535", "0.6029956", "0.6019787", "0.6019787", "0.6019787", "0.6019787", "0.6019787", "0.6019787", "0.6018958", "0.6017359", "0.6017359", "0.6017359", "0.6017359", "0.60147697", "0.6013713", "0.6010536", "0.60075253", "0.6002417", "0.6001802", "0.60000855", "0.5988847", "0.5986915", "0.5985491" ]
0.7272783
0
Generated method. Do not modify.
protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception { switch (index) { case SUPPLIERID: return getSupplierId(); case NAME: return getName(); case ONHOLDFLAG: return getOnHoldFlag(); case STARTDATE: return getStartDate(); case ENDDATE: return getEndDate(); case LASTUPDATEDATE: return getLastUpdateDate(); case LASTUPDATEDBY: return getLastUpdatedBy(); case CREATIONDATE: return getCreationDate(); case CREATEDBY: return getCreatedBy(); case LASTUPDATELOGIN: return getLastUpdateLogin(); case ATTRIBUTECATEGORY: return getAttributeCategory(); case ATTRIBUTE1: return getAttribute1(); case ATTRIBUTE2: return getAttribute2(); case ATTRIBUTE3: return getAttribute3(); case ATTRIBUTE4: return getAttribute4(); case ATTRIBUTE5: return getAttribute5(); case ATTRIBUTE6: return getAttribute6(); case ATTRIBUTE7: return getAttribute7(); case ATTRIBUTE8: return getAttribute8(); case ATTRIBUTE9: return getAttribute9(); case ATTRIBUTE10: return getAttribute10(); case ATTRIBUTE11: return getAttribute11(); case ATTRIBUTE12: return getAttribute12(); case ATTRIBUTE13: return getAttribute13(); case ATTRIBUTE14: return getAttribute14(); case ATTRIBUTE15: return getAttribute15(); case SUPPLIERSITEEO: return getSupplierSiteEO(); case PURCHASEORDERHEADEREO: return getPurchaseOrderHeaderEO(); default: return super.getAttrInvokeAccessor(index, attrDef); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@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 entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\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\tprotected void update() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n protected void prot() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void billGenerate() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tprotected void logic() {\n\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 }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void pathGenerated() {\n\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\n public int getOrder() {\n return 0;\n }", "@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\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\n public void update() {\n \n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void modify() {\n\t\t\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n protected void end() {\n \n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n protected void end() {\r\n\r\n }", "@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\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public int getSize() {\n return 1;\n }", "@Override\n public void update() {\n }", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n public void init() {\n\n }", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "private stendhal() {\n\t}", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }" ]
[ "0.6660006", "0.6465572", "0.6424763", "0.62572557", "0.6220385", "0.6204756", "0.6204756", "0.61902755", "0.6110872", "0.6107874", "0.60929036", "0.60854006", "0.6067327", "0.60553294", "0.60343075", "0.60295355", "0.60295355", "0.6018334", "0.60152066", "0.6010934", "0.595906", "0.59574425", "0.59293437", "0.59219366", "0.591953", "0.59173995", "0.59152365", "0.5906555", "0.59013367", "0.58888286", "0.5877631", "0.58726406", "0.5871737", "0.5871737", "0.5871737", "0.5871737", "0.5871737", "0.5871737", "0.586369", "0.58614135", "0.58519906", "0.58519906", "0.58519906", "0.58491194", "0.5829149", "0.58261406", "0.58180004", "0.58157897", "0.58152497", "0.5808971", "0.5795576", "0.5795576", "0.57948685", "0.57948685", "0.5793994", "0.57869107", "0.5782929", "0.57681274", "0.5760722", "0.5753355", "0.5749021", "0.5749021", "0.5742817", "0.57417214", "0.5724561", "0.57239854", "0.57193595", "0.5717012", "0.5697152", "0.5697039", "0.5694523", "0.5692353", "0.5688928", "0.5688928", "0.56882006", "0.5680185", "0.567867", "0.5669153", "0.56685257", "0.56685257", "0.56685257", "0.56685257", "0.56685257", "0.56685257", "0.5666124", "0.5654705", "0.5649625", "0.5645884", "0.56433535", "0.56433535", "0.5643027", "0.5639825", "0.56265634", "0.56262606", "0.5626119", "0.56228966", "0.56218505", "0.56218505", "0.56218505", "0.56218505", "0.56218505" ]
0.0
-1
Generated method. Do not modify.
protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception { switch (index) { case SUPPLIERID: setSupplierId((Number)value); return; case NAME: setName((String)value); return; case ONHOLDFLAG: setOnHoldFlag((String)value); return; case STARTDATE: setStartDate((Date)value); return; case ENDDATE: setEndDate((Date)value); return; case LASTUPDATEDATE: setLastUpdateDate((Date)value); return; case LASTUPDATEDBY: setLastUpdatedBy((Number)value); return; case CREATIONDATE: setCreationDate((Date)value); return; case CREATEDBY: setCreatedBy((Number)value); return; case LASTUPDATELOGIN: setLastUpdateLogin((Number)value); return; case ATTRIBUTECATEGORY: setAttributeCategory((String)value); return; case ATTRIBUTE1: setAttribute1((String)value); return; case ATTRIBUTE2: setAttribute2((String)value); return; case ATTRIBUTE3: setAttribute3((String)value); return; case ATTRIBUTE4: setAttribute4((String)value); return; case ATTRIBUTE5: setAttribute5((String)value); return; case ATTRIBUTE6: setAttribute6((String)value); return; case ATTRIBUTE7: setAttribute7((String)value); return; case ATTRIBUTE8: setAttribute8((String)value); return; case ATTRIBUTE9: setAttribute9((String)value); return; case ATTRIBUTE10: setAttribute10((String)value); return; case ATTRIBUTE11: setAttribute11((String)value); return; case ATTRIBUTE12: setAttribute12((String)value); return; case ATTRIBUTE13: setAttribute13((String)value); return; case ATTRIBUTE14: setAttribute14((String)value); return; case ATTRIBUTE15: setAttribute15((String)value); return; default: super.setAttrInvokeAccessor(index, value, attrDef); return; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@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 entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\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\tprotected void update() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n protected void prot() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void billGenerate() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tprotected void logic() {\n\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 }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void pathGenerated() {\n\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\n public int getOrder() {\n return 0;\n }", "@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\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\n public void update() {\n \n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void modify() {\n\t\t\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n protected void end() {\n \n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n protected void end() {\r\n\r\n }", "@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\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public int getSize() {\n return 1;\n }", "@Override\n public void update() {\n }", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n public void init() {\n\n }", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "private stendhal() {\n\t}", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }" ]
[ "0.6660006", "0.6465572", "0.6424763", "0.62572557", "0.6220385", "0.6204756", "0.6204756", "0.61902755", "0.6110872", "0.6107874", "0.60929036", "0.60854006", "0.6067327", "0.60553294", "0.60343075", "0.60295355", "0.60295355", "0.6018334", "0.60152066", "0.6010934", "0.595906", "0.59574425", "0.59293437", "0.59219366", "0.591953", "0.59173995", "0.59152365", "0.5906555", "0.59013367", "0.58888286", "0.5877631", "0.58726406", "0.5871737", "0.5871737", "0.5871737", "0.5871737", "0.5871737", "0.5871737", "0.586369", "0.58614135", "0.58519906", "0.58519906", "0.58519906", "0.58491194", "0.5829149", "0.58261406", "0.58180004", "0.58157897", "0.58152497", "0.5808971", "0.5795576", "0.5795576", "0.57948685", "0.57948685", "0.5793994", "0.57869107", "0.5782929", "0.57681274", "0.5760722", "0.5753355", "0.5749021", "0.5749021", "0.5742817", "0.57417214", "0.5724561", "0.57239854", "0.57193595", "0.5717012", "0.5697152", "0.5697039", "0.5694523", "0.5692353", "0.5688928", "0.5688928", "0.56882006", "0.5680185", "0.567867", "0.5669153", "0.56685257", "0.56685257", "0.56685257", "0.56685257", "0.56685257", "0.56685257", "0.5666124", "0.5654705", "0.5649625", "0.5645884", "0.56433535", "0.56433535", "0.5643027", "0.5639825", "0.56265634", "0.56262606", "0.5626119", "0.56228966", "0.56218505", "0.56218505", "0.56218505", "0.56218505", "0.56218505" ]
0.0
-1
/ Gets the associated entity oracle.jbo.RowIterator
public RowIterator getSupplierSiteEO() { return (RowIterator)getAttributeInternal(SUPPLIERSITEEO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Iterator<Space> iterator() {\n return row.iterator();\n }", "@Override\n public Iterator<Entity> iterator() {\n return entities.iterator();\n }", "public Iterator<OpenERPRecord> iterator() {\r\n\t\treturn records.iterator();\r\n\t}", "public Iterator getIterator(int i) {\r\n return table[i].iterator();\r\n }", "public ResultSetRow next() throws SQLException {\n/* 338 */ if (this.fetchedRows == null && this.currentPositionInEntireResult != -1) {\n/* 339 */ throw SQLError.createSQLException(Messages.getString(\"ResultSet.Operation_not_allowed_after_ResultSet_closed_144\"), \"S1000\", this.mysql.getExceptionInterceptor());\n/* */ }\n/* */ \n/* */ \n/* 343 */ if (!hasNext()) {\n/* 344 */ return null;\n/* */ }\n/* */ \n/* 347 */ this.currentPositionInEntireResult++;\n/* 348 */ this.currentPositionInFetchedRows++;\n/* */ \n/* */ \n/* 351 */ if (this.fetchedRows != null && this.fetchedRows.size() == 0) {\n/* 352 */ return null;\n/* */ }\n/* */ \n/* 355 */ if (this.fetchedRows == null || this.currentPositionInFetchedRows > this.fetchedRows.size() - 1) {\n/* 356 */ fetchMoreRows();\n/* 357 */ this.currentPositionInFetchedRows = 0;\n/* */ } \n/* */ \n/* 360 */ ResultSetRow row = this.fetchedRows.get(this.currentPositionInFetchedRows);\n/* */ \n/* 362 */ row.setMetadata(this.metadata);\n/* */ \n/* 364 */ return row;\n/* */ }", "public ListIterator<T> getAllByRowsIterator() {\n\t\tAllByRowsIterator it = new AllByRowsIterator();\n\t\treturn it;\n\t}", "@Override\r\n\tpublic Iterator<E> iterator()\r\n\t{\n\t\treturn ( iterator.hasNext() ? new EntityListIterator() : iterator.reset() );\r\n\t}", "public void Next() {\n OCCwrapJavaJNI.Interface_EntityIterator_Next(swigCPtr, this);\n }", "@VTID(11)\r\n java.util.Iterator<Com4jObject> iterator();", "public TableRow getRow() {\n return row;\n }", "@Override\n public Iterator<T> iterator() {\n return new CLITableIterator<T>(createNew(tables, cursor, rowIndex));\n }", "public Iterator<T> getIterator();", "@Override\r\n\tpublic Iterator<TableEntry<K, V>> iterator() {\r\n\t\treturn new IteratorImpl();\r\n\t}", "public Object fetchNext()\n {\n if (!isOpen) {\n isOpen = true;\n open();\n }\n for (;;) {\n if (leftObj == null) {\n Object next = inputIterator.fetchNext();\n if (next instanceof NoDataReason) {\n return next;\n }\n\n leftObj = next;\n }\n if (rightIterator == null) {\n rightIterator = getNextRightIterator();\n needNullRow = isLeftOuter;\n }\n if (rightIterator instanceof TupleIter) {\n TupleIter ri = (TupleIter) rightIterator;\n Object next = ri.fetchNext();\n if (next == NoDataReason.END_OF_DATA) {\n if (needNullRow) {\n needNullRow = false;\n return calcRightNullRow();\n }\n leftObj = null;\n rightObj = null;\n rightIterator = null;\n continue;\n }\n rightObj = next;\n } else {\n rightObj = rightIterator;\n rightIterator = TupleIter.EMPTY_ITERATOR;\n }\n Object row = calcJoinRow();\n if (row != null) {\n needNullRow = false;\n return row;\n }\n }\n }", "@Override\n public Iterator<Row> iterator() {\n\n return new Iterator<Row>() {\n\n private final Row row = new Row(TableSlice.this);\n\n @Override\n public Row next() {\n return row.next();\n }\n\n @Override\n public boolean hasNext() {\n return row.hasNext();\n }\n };\n }", "protected PrimitiveIterator.OfInt sourceRowNumberIterator() {\n if (this.isSorted()) {\n return Arrays.stream(sortOrder).iterator();\n } else if (this.hasSelection()) {\n return selection.iterator();\n }\n return Selection.withRange(0, table.rowCount()).iterator();\n }", "public TableGenRow nextRow() {\n try {\n if(DBMacros.next(rs)) {\n return this;\n }\n } catch (Exception t) {\n dbg.ERROR(\"nextRow() Exception skipping to the next record!\");\n dbg.Caught(t);\n }\n return null;\n }", "@VTID(14)\n java.util.Iterator<Com4jObject> iterator();", "@Override\n\tpublic Row next(){\n\t\treturn res;\n\t}", "public DbIterator iterator() {\n\t\tif(gbfield==-1)\n\t\t\treturn new AggregateIterator(false);\n\t\treturn new AggregateIterator(true);\n\t}", "private Iterator<Integer> intIterator() {\n return new Iterator<Integer>() {\n\n @Override\n public boolean hasNext() {\n return rowNumber < table.getRowCount() - 1;\n }\n\n @Override\n public Integer next() {\n rowNumber++;\n return rowNumber;\n }\n };\n }", "public Row getRow() {\n\treturn new Row(rowIndex); \n }", "@Override\n public Iterator<Iterable<T>> iterator() {\n return new TableIterator();\n }", "public WorkbookIterator createRowIterator(WorkbookBindingProvider provider) {\n return new RowIterator(count, increment, stop, skip, provider);\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRow()\n\t\t{\n\t\t\treturn m_row;\n\t\t}", "public Iterator<? extends TableValue> iterator() {\n\treturn null;\n }", "public int getRow() {\n return mRow;\n }", "public int getRow()\n {\n return row;\n }", "public int getRow() { return _row; }", "@DISPID(-4)\n @PropGet\n java.util.Iterator<Com4jObject> iterator();", "public Iterator<E> iterator() {\n\t\treturn new Itr();\n\t}", "public int getRow() {\n // YOUR CODE HERE\n return this.row;\n }", "public Interface_EntityIterator() {\n this(OCCwrapJavaJNI.new_Interface_EntityIterator__SWIG_0(), true);\n }", "public int getRow()\n {\n return row;\n }", "public int getRow() {\r\n return this.row;\r\n }", "public Cursor getCursor() throws RelationException;", "public int getRow()\r\n\t{\r\n\t\treturn this.row;\r\n\t}", "public int getRow() {\n return this.row;\n }", "public int getRow() {\n return this.row;\n }", "public int getRow(){\r\n\t\treturn this.row;\r\n\t}", "public int getRow()\r\n {\r\n return row;\r\n }", "@Override\r\n Iterator<E> iterator();", "public Integer getRowId() {\n return rowId;\n }", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "public RowIterator getGamCell() {\n return (RowIterator) getAttributeInternal(GAMCELL);\n }", "public int getRow() {\r\n\t\treturn this.row;\r\n\t}", "public void GetOneItem( Standard_Transient anentity) {\n OCCwrapJavaJNI.Interface_EntityIterator_GetOneItem(swigCPtr, this, Standard_Transient.getCPtr(anentity) , anentity);\n }", "public final <E extends com.matisse.reflect.MtObject> com.matisse.MtObjectIterator<E> gestionaIterator() {\n return this.<E>successorIterator(getGestionaRelationship(getMtDatabase()), gest_proyectos.Proyecto.class);\n }", "public int getRow(){\r\n // return statement\r\n return row;\r\n }", "List<C> getRow() throws Exception;", "public final RowSetterIfc getRow() {\n return new Row(this);\n }", "@DISPID(-4) //= 0xfffffffc. The runtime will prefer the VTID if present\r\n @VTID(22)\r\n java.util.Iterator<Com4jObject> iterator();", "public RowIterator getSgaexpedlbulto()\n {\n return (RowIterator)getAttributeInternal(SGAEXPEDLBULTO);\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\r\n return row;\r\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "Iterator<TabularData> dataIterator();", "public static Iterator<Object> getRowKeyIterator(final CollectionModel model)\n {\n Iterator<Object> iter = new Iterator<Object>()\n {\n public boolean hasNext()\n {\n return _next != null;\n }\n\n public Object next()\n {\n if (_next == null)\n throw new NoSuchElementException();\n Object value = _next;\n _next = _next();\n return value;\n }\n\n public void remove()\n {\n throw new UnsupportedOperationException();\n }\n\n private Object _next()\n {\n int oldIndex = model.getRowIndex();\n try\n {\n model.setRowIndex(_rowIndex++);\n if (model.isRowAvailable())\n return model.getRowKey();\n } finally\n {\n model.setRowIndex(oldIndex);\n }\n return null;\n }\n\n private Object _next = Boolean.TRUE;// bogus value used for initialization\n private int _rowIndex = 0;\n };\n iter.next(); //initialize\n return iter;\n }", "public Iterator<ActivityWorkGroup> iterator() {\r\n \treturn workGroupTable.iterator();\r\n }", "public ListIterator<T> getRowIterator( int column ) throws ArrayIndexOutOfBoundsException {\n\n\t\tString S = C + \": getRowIterator(): \";\n\t\tif ( column >= numCols ) {\n\t\t\tthrow new ArrayIndexOutOfBoundsException( S + \"Column cannot be greater than max index\" );\n\t\t}\n\n\t\tRowIterator it = new RowIterator( column );\n\t\treturn it;\n\t}", "protected int getRow() {\r\n\t\treturn this.row;\r\n\t}", "protected Object fetchRow(ResultSet rs) throws SQLException {\n return fetchUser(rs);\n }", "public int getRow()\n\t{\n\t\treturn row;\n\t}", "public int getRow()\n\t{\n\t\treturn row;\n\t}", "public int getRow()\n\t{\n\t\treturn row;\n\t}", "public List getRows() \n {\n return rows;\n }", "public Iterator<E> iterator();", "public Iterator<E> iterator();", "public Iterator<E> iterator();", "public int getRow() {\n\t\treturn row; \n\t}", "abstract protected Entity selectNextEntity();", "public ListIterator<T> listIterator() {\n\t\tAllByRowsIterator it = new AllByRowsIterator();\n\t\treturn it;\n\t}", "public IndexRecord getIterator() {\n return (iter == -1 ? null : data[iter]);\n}", "default Iterator<T> iterator(ResultSet rs) {\r\n\t\treturn new ResultSetIterator<>(rs, this);\r\n\t}", "public RowIterator getPurchaseOrderHeaderEO()\n {\n return (RowIterator)getAttributeInternal(PURCHASEORDERHEADEREO);\n }", "public int getRow() {\n\t\treturn row;\n\t}", "public int getRow() {\n\t\treturn row;\n\t}", "public EntityImpl getGamRowsEO() {\n return (EntityImpl) getEntity(ENTITY_GAMROWSEO);\n }", "@Override\r\n public Iterator<User> iterator() {\r\n return user.iterator();\r\n }", "public abstract List<T> findEntities(int pFirstRow, int pNumberOfRows);", "public T iterator();", "@Override\r\n public int getRow() {\r\n return this.row;\r\n }" ]
[ "0.6478906", "0.6295787", "0.62567675", "0.6147476", "0.6143589", "0.6110985", "0.61081874", "0.60569084", "0.60401213", "0.5983177", "0.5981619", "0.5970252", "0.5945764", "0.5938986", "0.59273165", "0.5923543", "0.59185505", "0.5918539", "0.5900991", "0.5895084", "0.5842263", "0.57948107", "0.5792995", "0.57705855", "0.57591444", "0.57591444", "0.57591444", "0.57591444", "0.57591444", "0.57578", "0.5732297", "0.5716826", "0.5714067", "0.56874216", "0.56873727", "0.5684561", "0.5678195", "0.5677155", "0.5675281", "0.56615293", "0.5651887", "0.56485164", "0.56482625", "0.56482625", "0.5637023", "0.56289744", "0.5627886", "0.5627498", "0.5626625", "0.5626625", "0.5626625", "0.5626625", "0.5626625", "0.56219864", "0.56178063", "0.5607462", "0.56016004", "0.55937773", "0.55875176", "0.5585375", "0.558436", "0.55823416", "0.55818176", "0.55818176", "0.55818176", "0.55818176", "0.55818176", "0.55818176", "0.5572496", "0.5568303", "0.5568303", "0.5568303", "0.5568303", "0.5568303", "0.5568113", "0.5564545", "0.5553184", "0.55528414", "0.55504626", "0.5550034", "0.55480045", "0.55480045", "0.55480045", "0.5546576", "0.5537628", "0.5537628", "0.5537628", "0.55374455", "0.552875", "0.5523083", "0.55224115", "0.55223745", "0.5519088", "0.5517627", "0.5517627", "0.55170006", "0.55103815", "0.55029655", "0.5498794", "0.5497129" ]
0.5496908
100
Gets the associated entity oracle.jbo.RowIterator
public RowIterator getPurchaseOrderHeaderEO() { return (RowIterator)getAttributeInternal(PURCHASEORDERHEADEREO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Iterator<Space> iterator() {\n return row.iterator();\n }", "@Override\n public Iterator<Entity> iterator() {\n return entities.iterator();\n }", "public Iterator<OpenERPRecord> iterator() {\r\n\t\treturn records.iterator();\r\n\t}", "public ListIterator<T> getAllByRowsIterator() {\n\t\tAllByRowsIterator it = new AllByRowsIterator();\n\t\treturn it;\n\t}", "public Iterator getIterator(int i) {\r\n return table[i].iterator();\r\n }", "public TableRow getRow() {\n return row;\n }", "public ResultSetRow next() throws SQLException {\n/* 338 */ if (this.fetchedRows == null && this.currentPositionInEntireResult != -1) {\n/* 339 */ throw SQLError.createSQLException(Messages.getString(\"ResultSet.Operation_not_allowed_after_ResultSet_closed_144\"), \"S1000\", this.mysql.getExceptionInterceptor());\n/* */ }\n/* */ \n/* */ \n/* 343 */ if (!hasNext()) {\n/* 344 */ return null;\n/* */ }\n/* */ \n/* 347 */ this.currentPositionInEntireResult++;\n/* 348 */ this.currentPositionInFetchedRows++;\n/* */ \n/* */ \n/* 351 */ if (this.fetchedRows != null && this.fetchedRows.size() == 0) {\n/* 352 */ return null;\n/* */ }\n/* */ \n/* 355 */ if (this.fetchedRows == null || this.currentPositionInFetchedRows > this.fetchedRows.size() - 1) {\n/* 356 */ fetchMoreRows();\n/* 357 */ this.currentPositionInFetchedRows = 0;\n/* */ } \n/* */ \n/* 360 */ ResultSetRow row = this.fetchedRows.get(this.currentPositionInFetchedRows);\n/* */ \n/* 362 */ row.setMetadata(this.metadata);\n/* */ \n/* 364 */ return row;\n/* */ }", "@Override\r\n\tpublic Iterator<E> iterator()\r\n\t{\n\t\treturn ( iterator.hasNext() ? new EntityListIterator() : iterator.reset() );\r\n\t}", "public Iterator<T> getIterator();", "@VTID(11)\r\n java.util.Iterator<Com4jObject> iterator();", "protected PrimitiveIterator.OfInt sourceRowNumberIterator() {\n if (this.isSorted()) {\n return Arrays.stream(sortOrder).iterator();\n } else if (this.hasSelection()) {\n return selection.iterator();\n }\n return Selection.withRange(0, table.rowCount()).iterator();\n }", "public void Next() {\n OCCwrapJavaJNI.Interface_EntityIterator_Next(swigCPtr, this);\n }", "public Object fetchNext()\n {\n if (!isOpen) {\n isOpen = true;\n open();\n }\n for (;;) {\n if (leftObj == null) {\n Object next = inputIterator.fetchNext();\n if (next instanceof NoDataReason) {\n return next;\n }\n\n leftObj = next;\n }\n if (rightIterator == null) {\n rightIterator = getNextRightIterator();\n needNullRow = isLeftOuter;\n }\n if (rightIterator instanceof TupleIter) {\n TupleIter ri = (TupleIter) rightIterator;\n Object next = ri.fetchNext();\n if (next == NoDataReason.END_OF_DATA) {\n if (needNullRow) {\n needNullRow = false;\n return calcRightNullRow();\n }\n leftObj = null;\n rightObj = null;\n rightIterator = null;\n continue;\n }\n rightObj = next;\n } else {\n rightObj = rightIterator;\n rightIterator = TupleIter.EMPTY_ITERATOR;\n }\n Object row = calcJoinRow();\n if (row != null) {\n needNullRow = false;\n return row;\n }\n }\n }", "@Override\n public Iterator<T> iterator() {\n return new CLITableIterator<T>(createNew(tables, cursor, rowIndex));\n }", "public int getRow()\n\t\t{\n\t\t\treturn m_row;\n\t\t}", "@Override\n public Iterator<Row> iterator() {\n\n return new Iterator<Row>() {\n\n private final Row row = new Row(TableSlice.this);\n\n @Override\n public Row next() {\n return row.next();\n }\n\n @Override\n public boolean hasNext() {\n return row.hasNext();\n }\n };\n }", "public TableGenRow nextRow() {\n try {\n if(DBMacros.next(rs)) {\n return this;\n }\n } catch (Exception t) {\n dbg.ERROR(\"nextRow() Exception skipping to the next record!\");\n dbg.Caught(t);\n }\n return null;\n }", "@Override\n\tpublic Row next(){\n\t\treturn res;\n\t}", "public Row getRow() {\n\treturn new Row(rowIndex); \n }", "public DbIterator iterator() {\n\t\tif(gbfield==-1)\n\t\t\treturn new AggregateIterator(false);\n\t\treturn new AggregateIterator(true);\n\t}", "@VTID(14)\n java.util.Iterator<Com4jObject> iterator();", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRow() {\n return mRow;\n }", "@Override\r\n\tpublic Iterator<TableEntry<K, V>> iterator() {\r\n\t\treturn new IteratorImpl();\r\n\t}", "private Iterator<Integer> intIterator() {\n return new Iterator<Integer>() {\n\n @Override\n public boolean hasNext() {\n return rowNumber < table.getRowCount() - 1;\n }\n\n @Override\n public Integer next() {\n rowNumber++;\n return rowNumber;\n }\n };\n }", "public WorkbookIterator createRowIterator(WorkbookBindingProvider provider) {\n return new RowIterator(count, increment, stop, skip, provider);\n }", "public int getRow()\n {\n return row;\n }", "public int getRow() {\r\n return this.row;\r\n }", "public int getRow() {\n return this.row;\n }", "public int getRow() {\n return this.row;\n }", "public int getRow()\n {\n return row;\n }", "public int getRow() { return _row; }", "public int getRow() {\n // YOUR CODE HERE\n return this.row;\n }", "public int getRow()\r\n\t{\r\n\t\treturn this.row;\r\n\t}", "public final RowSetterIfc getRow() {\n return new Row(this);\n }", "public RowIterator getGamCell() {\n return (RowIterator) getAttributeInternal(GAMCELL);\n }", "public int getRow() {\r\n\t\treturn this.row;\r\n\t}", "public int getRow(){\r\n\t\treturn this.row;\r\n\t}", "public int getRow()\r\n {\r\n return row;\r\n }", "public Integer getRowId() {\n return rowId;\n }", "@Override\n public Iterator<Iterable<T>> iterator() {\n return new TableIterator();\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public int getRow() {\n return row;\n }", "public Iterator<E> iterator() {\n\t\treturn new Itr();\n\t}", "public int getRow() {\r\n return row;\r\n }", "public int getRow(){\r\n // return statement\r\n return row;\r\n }", "public Iterator<? extends TableValue> iterator() {\n\treturn null;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "public int getRowId() {\n return rowId_;\n }", "protected int getRow() {\r\n\t\treturn this.row;\r\n\t}", "public int getRow() {\n\t\treturn row; \n\t}", "public int getRow()\n\t{\n\t\treturn row;\n\t}", "public int getRow()\n\t{\n\t\treturn row;\n\t}", "public int getRow()\n\t{\n\t\treturn row;\n\t}", "public int getRow() {\n\t\treturn row;\n\t}", "public int getRow() {\n\t\treturn row;\n\t}", "public RowIterator getSgaexpedlbulto()\n {\n return (RowIterator)getAttributeInternal(SGAEXPEDLBULTO);\n }", "@DISPID(-4)\n @PropGet\n java.util.Iterator<Com4jObject> iterator();", "public List getRows() \n {\n return rows;\n }", "public int getRow() {\n\t\t\treturn row;\n\t\t}", "public int getRow() {\n\t\t\treturn row;\n\t\t}", "public EntityImpl getGamRowsEO() {\n return (EntityImpl) getEntity(ENTITY_GAMROWSEO);\n }", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "public ListIterator<T> getRowIterator( int column ) throws ArrayIndexOutOfBoundsException {\n\n\t\tString S = C + \": getRowIterator(): \";\n\t\tif ( column >= numCols ) {\n\t\t\tthrow new ArrayIndexOutOfBoundsException( S + \"Column cannot be greater than max index\" );\n\t\t}\n\n\t\tRowIterator it = new RowIterator( column );\n\t\treturn it;\n\t}", "public int getRow() {\r\n\t\treturn row;\r\n\t}", "public int getRow() {\r\n\t\treturn row;\r\n\t}", "public Interface_EntityIterator() {\n this(OCCwrapJavaJNI.new_Interface_EntityIterator__SWIG_0(), true);\n }", "public Cursor getCursor() throws RelationException;", "public final <E extends com.matisse.reflect.MtObject> com.matisse.MtObjectIterator<E> gestionaIterator() {\n return this.<E>successorIterator(getGestionaRelationship(getMtDatabase()), gest_proyectos.Proyecto.class);\n }", "List<C> getRow() throws Exception;", "@Override\r\n public int getRow() {\r\n return this.row;\r\n }", "public int getRow() throws SQLException\n {\n return m_rs.getRow();\n }", "public ListIterator<T> listIterator() {\n\t\tAllByRowsIterator it = new AllByRowsIterator();\n\t\treturn it;\n\t}", "public int getRow() {\n\t\t\treturn rowNumber;\n\t\t}", "public Row[] getRows() {return rows;}", "public Iterator<ActivityWorkGroup> iterator() {\r\n \treturn workGroupTable.iterator();\r\n }", "public RowIterator getSupplierSiteEO()\n {\n return (RowIterator)getAttributeInternal(SUPPLIERSITEEO);\n }", "public List<List<Object>> rows() {\n return this.rows;\n }", "@Override\r\n Iterator<E> iterator();", "public TableRowBean getTableRowBean() {\n return rowBean;\n }", "@DISPID(-4) //= 0xfffffffc. The runtime will prefer the VTID if present\r\n @VTID(22)\r\n java.util.Iterator<Com4jObject> iterator();", "public void GetOneItem( Standard_Transient anentity) {\n OCCwrapJavaJNI.Interface_EntityIterator_GetOneItem(swigCPtr, this, Standard_Transient.getCPtr(anentity) , anentity);\n }", "protected Object fetchRow(ResultSet rs) throws SQLException {\n return fetchUser(rs);\n }", "T getRowData(int rowNumber);", "public static Iterator<Object> getRowKeyIterator(final CollectionModel model)\n {\n Iterator<Object> iter = new Iterator<Object>()\n {\n public boolean hasNext()\n {\n return _next != null;\n }\n\n public Object next()\n {\n if (_next == null)\n throw new NoSuchElementException();\n Object value = _next;\n _next = _next();\n return value;\n }\n\n public void remove()\n {\n throw new UnsupportedOperationException();\n }\n\n private Object _next()\n {\n int oldIndex = model.getRowIndex();\n try\n {\n model.setRowIndex(_rowIndex++);\n if (model.isRowAvailable())\n return model.getRowKey();\n } finally\n {\n model.setRowIndex(oldIndex);\n }\n return null;\n }\n\n private Object _next = Boolean.TRUE;// bogus value used for initialization\n private int _rowIndex = 0;\n };\n iter.next(); //initialize\n return iter;\n }" ]
[ "0.6442661", "0.6221581", "0.61949533", "0.615642", "0.6122643", "0.6109779", "0.6090358", "0.6032705", "0.60000324", "0.59813285", "0.5957345", "0.5935978", "0.5925863", "0.59229344", "0.5887248", "0.5880064", "0.58775544", "0.58622485", "0.58502316", "0.58444077", "0.5841554", "0.58318967", "0.58318967", "0.58318967", "0.58318967", "0.58318967", "0.5826874", "0.5824776", "0.58175963", "0.5801202", "0.57722956", "0.57697946", "0.57652116", "0.57652116", "0.5762326", "0.5751946", "0.574815", "0.5743241", "0.5743007", "0.57301486", "0.5728351", "0.5722235", "0.5713949", "0.57124436", "0.57028925", "0.56960523", "0.56960523", "0.56960523", "0.56960523", "0.56960523", "0.56960523", "0.5681184", "0.56777906", "0.5676151", "0.56718206", "0.56690145", "0.56690145", "0.56690145", "0.56690145", "0.56690145", "0.5650705", "0.56433153", "0.56388086", "0.56388086", "0.56388086", "0.56263775", "0.56263775", "0.562378", "0.5622126", "0.5619578", "0.56186795", "0.56186795", "0.561569", "0.5609047", "0.5609047", "0.5609047", "0.5609047", "0.5609047", "0.5599226", "0.5598509", "0.5598509", "0.559536", "0.5594284", "0.5582372", "0.5580254", "0.55604845", "0.5553089", "0.55446905", "0.5542629", "0.55357033", "0.5535326", "0.5531481", "0.552542", "0.55222976", "0.5514978", "0.55147815", "0.5514553", "0.55129135", "0.550047", "0.5492506" ]
0.55952954
82
/ Creates a Key object based on given key constituents Creates a Key object based on given key constituents
public static Key createPrimaryKey(Number supplierId) { return new Key(new Object[]{supplierId}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "KeyIdPair createKeyIdPair();", "public DBRecordKey<gDBR> createKey(Map<String,String> valMap, int partialKeyType)\n throws DBException \n {\n String utableName = this.getUntranslatedTableName();\n\n /* no keys specified */\n if (ListTools.isEmpty(valMap) && (partialKeyType != DBWhere.KEY_PARTIAL_ALL_EMPTY)) {\n throw new DBException(\"Creating Key: No key fields - \" + utableName);\n }\n\n /* key fields */\n DBField pk[];\n if (partialKeyType == DBWhere.KEY_AUTO_INDEX) {\n DBField autoKey = this.getAutoIndexField();\n if (autoKey == null) {\n throw new DBException(\"Creating Key: auto-index key not found - \" + utableName);\n }\n pk = new DBField[] { autoKey };\n } else {\n pk = this.getKeyFields();\n }\n\n /* create key */\n DBRecordKey<gDBR> key = this.createKey(); // may throw DBException\n for (int i = 0; i < pk.length; i++) {\n String name = pk[i].getName();\n String sval = (valMap != null)? valMap.get(name) : null; // may be defined, but null\n if (sval == null) { // either not defined, or no value assigned\n if (partialKeyType == DBWhere.KEY_AUTO_INDEX) {\n // -- \"autoIndex\" key required\n throw new DBException(\"Creating Key: auto-index required, but auto-index not found/specified - \" + utableName + \".\" + name);\n } else\n if (partialKeyType == DBWhere.KEY_FULL) {\n // -- all keys required\n throw new DBException(\"Creating Key: full key required, but field not specified - \" + utableName + \".\" + name);\n } else\n if (partialKeyType == DBWhere.KEY_PARTIAL_ALL_EMPTY) {\n // -- missing first key is allowed\n continue;\n } else\n if (i == 0) {\n // -- first key is required\n throw new DBException(\"Creating Key: first key required, but first field not found/specified - \" + utableName + \".\" + name);\n } else\n if (partialKeyType == DBWhere.KEY_PARTIAL_FIRST) {\n // -- we at-least have the first key, skip remaining after first missing key\n break;\n } else { // DBWhere.KEY_PARTIAL_ALL\n // -- we at-least have the first key, continue seaarching for keys\n continue;\n }\n } else {\n Object val = pk[i].parseStringValue(sval);\n key.setKeyValue(name, val); // setFieldValue\n }\n } // primary key loop\n return key;\n\n }", "public DBRecordKey<gDBR> createKey() // <? extends DBRecord<?>>\n throws DBException\n {\n if (this.keyClass != null) {\n try {\n // this creates an empty key with no key fields\n Constructor<? extends DBRecordKey<gDBR>> kc = this.keyClass.getConstructor(new Class<?>[0]);\n return kc.newInstance(new Object[0]); // \"unchecked cast\"\n } catch (Throwable t) { // NoSuchMethodException, ...\n // Implementation error (should never occur)\n throw new DBException(\"Key Creation\", t);\n }\n }\n return null;\n }", "public static ObjectKey makeObjectKey(ObjectKeyTemplate paramObjectKeyTemplate, ObjectId paramObjectId) {\n/* 77 */ return (ObjectKey)new ObjectKeyImpl(paramObjectKeyTemplate, paramObjectId);\n/* */ }", "public static Key createPrimaryKey(Number idexped, Number idbulto)\n {\n return new Key(new Object[] {idexped, idbulto});\n }", "public void testCreateKeyWithParentAndId() {\n Key parent = KeyFactory.createKey(kind, name);\n Key key = KeyFactory.createKey(parent, kind, id);\n assertNull(key.getName());\n assertEquals(kind, key.getKind());\n assertEquals(id, key.getId());\n assertEquals(parent, key.getParent());\n }", "String newKey();", "public NodeKey createNodeKey();", "public interface Key<T> {\n String getName();\n Class<T> getType();\n\n static <T> Key<T> of(Class<T> type) {\n return of(type.getName(), type);\n }\n\n static <T> Key<T> of(String name, Class<T> type) {\n return new Key<T>() {\n @Override\n public String getName() {\n return name;\n }\n\n @Override\n public Class<T> getType() {\n return type;\n }\n };\n }\n }", "public void testCreateKeyWithParentAndName() {\n Key parent = KeyFactory.createKey(kind, name);\n Key key = KeyFactory.createKey(parent, kind, name);\n assertEquals(name, key.getName());\n assertEquals(kind, key.getKind());\n assertEquals(0L, key.getId());\n assertEquals(parent, key.getParent());\n }", "public static PSKey createKey(int contentTypeId)\n {\n return new PSSimpleKey(KEY_CONTENTTYPEID, \"\" + contentTypeId); \n }", "public Object create(String key_letters) throws XtumlException;", "public MultiKey() {}", "public void testCreateKeyWithId() {\n Key key = KeyFactory.createKey(kind, id);\n assertNull(key.getName());\n assertEquals(kind, key.getKind());\n assertEquals(id, key.getId());\n }", "@Nonnull\n protected KeyExpression buildPrimaryKey() {\n return Key.Expressions.concat(\n Key.Expressions.recordType(),\n Key.Expressions.list(constituents.stream()\n .map(c -> Key.Expressions.field(c.getName()).nest(c.getRecordType().getPrimaryKey()))\n .collect(Collectors.toList())));\n }", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key addNewKey();", "public interface IKeyCreator {\n byte[] generateKey(int n);\n\n byte[] getKeyFromFile(String p);\n\n byte[] inputKey(String s);\n}", "public void testCreateKeyWithName() {\n Key key = KeyFactory.createKey(kind, name);\n assertEquals(name, key.getName());\n assertEquals(kind, key.getKind());\n assertEquals(0L, key.getId());\n }", "public NodeKey createNodeKeyWithIdentifier( String identifier );", "private static Key generateKey() {\n return new SecretKeySpec(keyValue, ALGO);\n }", "private String createTypeKey(int type, String key) {\r\n\t\treturn type + \"-\" + key;\r\n\t}", "interface Factory {\n KeyExtractor create(Class<?> entity);\n }", "@Override\n\t\tpublic Text createKey() {\n\t\t\treturn null;\n\t\t}", "public static synchronized Object makeKey (byte[] k)\r\n throws InvalidKeyException {\r\nif (DEBUG) trace(IN, \"makeKey(\"+k+\")\");\r\nif (DEBUG && debuglevel > 7) {\r\nSystem.out.println(\"Intermediate Session Key Values\");\r\nSystem.out.println();\r\nSystem.out.println(\"Raw=\"+toString(k));\r\n}\r\n //\r\n //...\r\n //\r\n Object sessionKey = null;\r\n\r\n frog_InternalKey intkey = new frog_InternalKey();\r\n \t /* Fill internal key with hashed keyMaterial */\r\n intkey.internalKey = frog_procs.hashKey( k );\r\n \t /* Convert internalKey into a valid format for encrypt and decrypt (see B.1.2.e) */\r\n intkey.keyE = frog_procs.makeInternalKey( frog_Algorithm.DIR_ENCRYPT, intkey.internalKey );\r\n intkey.keyD = frog_procs.makeInternalKey( frog_Algorithm.DIR_DECRYPT, intkey.internalKey );\r\n \r\n sessionKey = intkey;\r\n //\r\n // ...\r\n //\r\nif (DEBUG && debuglevel > 7) {\r\nSystem.out.println(\"...any intermediate values\");\r\nSystem.out.println();\r\n}\r\nif (DEBUG) trace(OUT, \"makeKey()\");\r\n return sessionKey;\r\n }", "public abstract Key translateKey(Key key) throws InvalidKeyException;", "private com.hps.july.persistence.CarKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.CarKey keyClass = new com.hps.july.persistence.CarKey();\n keyClass.car = f0;\n return keyClass;\n }", "public K setKey(K key);", "public String createSmartKey(long ... ids);", "@Test\n\tpublic void createNewMyKeys() {\n\t\tRsaKeyStore ks = new RsaKeyStore();\n\t\tboolean r1 = ks.createNewMyKeyPair(\"newkp\");\n\t\tboolean r2 = ks.createNewMyKeyPair(\"newtwo\");\n\t\tassertTrue(\"Should have added the key\", r1);\n\t\tassertTrue(\"Should have added the second key\", r2);\n\t}", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key insertNewKey(int i);", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "public void generateKeys(){\n\t\t//Apply permutation P10\n\t\tString keyP10 = permutation(key,TablesPermutation.P10);\n\t\tresults.put(\"P10\", keyP10);\n\t\t//Apply LS-1\n\t\tString ls1L = leftShift(keyP10.substring(0,5),1);\n\t\tString ls1R = leftShift(keyP10.substring(5,10),1);\n\t\tresults.put(\"LS1L\", ls1L);\n\t\tresults.put(\"LS1R\", ls1R);\n\t\t//Apply P8 (K1)\n\t\tk1 = permutation(ls1L+ls1R, TablesPermutation.P8);\n\t\tresults.put(\"K1\", k1);\n\t\t//Apply LS-2\n\t\tString ls2L = leftShift(ls1L,2);\n\t\tString ls2R = leftShift(ls1R,2);\n\t\tresults.put(\"LS2L\", ls2L);\n\t\tresults.put(\"LS2R\", ls2R);\n\t\t//Apply P8 (K2)\n\t\tk2 = permutation(ls2L+ls2R, TablesPermutation.P8);\n\t\tresults.put(\"K2\", k2);\n\t}", "void createPropertyKeyToken( String key, int id );", "protected abstract Object getKey(Subject subject, ConnectionRequestInfo cri,\n boolean separateNoTx) throws ResourceException;", "QueryKey createQueryKey(String name);", "abstract public String getKey();", "public NodeKey createNodeKey( String sourceName,\n String identifier );", "public static Key generarKey() throws Exception{\n Key key = new SecretKeySpec(keyvalue, instancia); \n return key;\n }", "public static CacheKey newInstance(Class type, Object pk) {\n return new OneCacheKey(type, pk);\n }", "Object getKey();", "static String makeKey(String id,\n String for_,\n String attrname,\n String attrtype) {\n return format(KEY_FMT, id, for_, attrname, attrtype);\n }", "K getKey();", "K getKey();", "K getKey();", "K getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "public String createKey(String type) {\n int i = 0;\n for(i=0; i<EnumFactory.numberOfTypes; i++) {\n if (type.equals(EnumFactory.typeStrings[i])) {\n break;\n }\n }\n countKeys[i]++;\n String key = String.format(\"%s$%d\", EnumFactory.typeStrings[i],countKeys[i]);\n return key;\n }", "private static Key createInternalLobKey() {\n return Key.createKey(Arrays.asList(INTERNAL_KEY_SPACE,\n ILK_PREFIX_COMPONENT,\n UUID.randomUUID().toString()));\n }", "static InitKey toKey(final String key) throws ManagementException {\n\t\t\ttry {\n\t\t\t\treturn valueOf(key.toUpperCase());\n\t\t\t} catch (final IllegalArgumentException e) {\n\t\t\t\tthrow new ManagementException(key + \" is not a valid key for the Tic-Tac-Toe environment\", e);\n\t\t\t}\n\t\t}", "public Key(final Class<?> classe) {\n this(classe.getName());\n valueClass = classe;\n }", "KeyManager createKeyManager();", "public CompositeKey(double startPrice,double endPrice){\n\t this.key1=startPrice;\n\t this.key2=endPrice;\n }", "private String createKey(ListPrefix listPrefix, KeyPrefix keyPrefix,\n Plane plane) {\n if (plane != null) {\n return listPrefix + \"-\" + keyPrefix + \"-\" + plane;\n } else {\n return listPrefix + \"-\" + keyPrefix;\n }\n }", "public CryptographyKeysCreator() {\n Random random = new Random();\n BigInteger prime1 = BigInteger.probablePrime(256, random);\n BigInteger prime2 = BigInteger.probablePrime(256, random);\n primesMultiplied = prime1.multiply(prime2);\n BigInteger phi = prime1.subtract(BigInteger.ONE).multiply(prime2.subtract(BigInteger.ONE));\n encryptingBigInt = BigInteger.probablePrime(256, random);\n\n while (phi.gcd(encryptingBigInt).compareTo(BigInteger.ONE) > 0 && encryptingBigInt.compareTo(phi) < 0) {\n encryptingBigInt = encryptingBigInt.add(BigInteger.ONE);\n }\n\n decryptingBigInt = encryptingBigInt.modInverse(phi);\n }", "public ClassKey(final Class<?> classe) {\n super(classe);\n }", "public MultiKey(final K key1, final K key2, final K key3) {\n this(newArray(key1, key2, key3), false);\n }", "public static Key createEntity(EntityManager em) {\n Key key = new Key()\n .value(DEFAULT_VALUE)\n .status(DEFAULT_STATUS);\n return key;\n }", "public static CacheKey newInstance(Class type, Object... pks) {\n return new ManyCacheKey(type, pks);\n }", "String setKey(String newKey);", "public static String createKey(String fromCity, String toCity) {\r\n if (fromCity.compareTo(toCity) >= 0) {\r\n String tmp = toCity;\r\n toCity = fromCity;\r\n fromCity = tmp;\r\n }\r\n return new StringBuilder().append(fromCity).append(KEY_DIVIDER).append(toCity).toString();\r\n }", "public interface KeyExtractor {\n\n /**\n * Creates extractor for a concrete type\n */\n interface Factory {\n KeyExtractor create(Class<?> entity);\n }\n\n /**\n * Extract key from current instance. For composite keys will return a list of values.\n */\n Object extract(Object instance);\n\n /**\n * Expose key metadata for current entity\n */\n KeyMetadata metadata();\n\n /**\n * Metadata about key(s) for a class. Entity can have zero (no key), one (single key) or more keys (composite key).\n */\n interface KeyMetadata {\n\n /**\n * Wherever key(s) can be resolved to a known AST (as in {@link Expression}).\n * If key expression is known at runtime, further query optimizations can be\n * made.\n *\n * If key is provided as java lambda function then this method will return {@code false}\n */\n boolean isExpression();\n\n /**\n * Is there a key (at all) for current entity ? Most this method will return {@code true}\n * but for entities without a key {@code false} is expected\n */\n default boolean isKeyDefined() {\n return !keys().isEmpty();\n }\n\n /**\n * Lists available keys as {@link Expression}. For single key will have a list with single\n * element. For composite keys list will have several elements.\n *\n * @throws UnsupportedOperationException if current key is not an expression (see {@link #isExpression()}\n */\n List<Expression> keys();\n\n }\n\n /**\n * Factory which extracts key information by scanning class for {@link org.immutables.criteria.Criteria.Id} annotation.\n */\n static KeyExtractor.Factory defaultFactory() {\n return fromAnnotation(Criteria.Id.class);\n }\n\n /**\n * Extract key information based by scanning a class for a particular annotation. Presence\n * of annotation is required otherwise exception will be thrown.\n *\n * @throws NullPointerException if argument is null\n * @throws IllegalArgumentException if annotation is not present on entity class\n */\n static KeyExtractor.Factory fromAnnotation(Class<? extends Annotation> annotation) {\n Objects.requireNonNull(annotation, \"annotation\");\n\n Predicate<Member> predicate = m -> m instanceof AnnotatedElement\n && ((AnnotatedElement) m).isAnnotationPresent(annotation);\n\n // there can be multiple members with the same annotation\n Function<Class<?>, List<Member>> membersFn = type -> ClassScanner.of(type)\n .stream()\n .filter(predicate)\n .collect(Collectors.toList());\n\n return entityType -> {\n Objects.requireNonNull(entityType, \"entityType\");\n List<Member> members = membersFn.apply(entityType);\n if (members.isEmpty()) {\n // be strict and don't allow entities without a key\n throw new IllegalArgumentException(String.format(\"Annotation %s not found in members of %s\", annotation.getName(), entityType));\n }\n\n if (members.size() == 1) {\n return new KeyExtractors.SingleMember(entityType, members.get(0));\n }\n\n return new KeyExtractors.MultipleMembers(entityType, members);\n };\n }\n\n /**\n * Factory to extract key information using just one member (field or method) of a class.\n * In this case it will be a single key extractor using reflection.\n *\n * @param keyLookupFn function extracting single member representing a key from a entity\n */\n static KeyExtractor.Factory forSingleMember(Function<Class<?>, Member> keyLookupFn) {\n Objects.requireNonNull(keyLookupFn, \"keyLookupFn\");\n return entityType -> new KeyExtractors.SingleMember(entityType, keyLookupFn.apply(entityType));\n }\n\n /**\n * Factory to extract composite key using multiple members of a class.\n *\n * @param keyLookupFn function extracting multiple members from a entity representing composite key\n */\n static KeyExtractor.Factory forMultipleMembers(Function<Class<?>, List<Member>> keyLookupFn) {\n Objects.requireNonNull(keyLookupFn, \"keyLookupFn\");\n return entityType -> new KeyExtractors.MultipleMembers(entityType, keyLookupFn.apply(entityType));\n }\n\n /**\n * Creates extractor from a generic java function. Metadata on keys will not be available.\n */\n static KeyExtractor.Factory generic(UnaryOperator<Object> extractor) {\n Objects.requireNonNull(extractor, \"extractor\");\n return entityType -> new KeyExtractors.Generic(entityType, extractor);\n }\n\n /**\n * Similar to <a href=\"https://en.wikipedia.org/wiki/Null_object_pattern\">Null Object Pattern</a>\n * creates an extractor without any key. Throws exception on any extract method call. Useful when\n * entity doesn't have any key.\n */\n static KeyExtractor.Factory noKey() {\n return KeyExtractors.NoKey::new;\n }\n\n}", "private com.hps.july.persistence.StoragePlaceKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.StoragePlaceKey keyClass = new com.hps.july.persistence.StoragePlaceKey();\n keyClass.storageplace = f0;\n return keyClass;\n }", "static KeyExtractor.Factory noKey() {\n return KeyExtractors.NoKey::new;\n }", "public String createSmartKey(String userPart, long ... ids);", "OpenSSLKey mo134201a();", "void createNode(NodeKey key);", "java.lang.String getClientKey();", "protected static void initPropertyKey() {\n String path = URL_PREFIX + SCHEMA_PKS;\n\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"name\\\",\\n\"\n + \"\\\"data_type\\\": \\\"TEXT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"age\\\",\\n\"\n + \"\\\"data_type\\\": \\\"INT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"city\\\",\\n\"\n + \"\\\"data_type\\\": \\\"TEXT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"lang\\\",\\n\"\n + \"\\\"data_type\\\": \\\"TEXT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"date\\\",\\n\"\n + \"\\\"data_type\\\": \\\"TEXT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"price\\\",\\n\"\n + \"\\\"data_type\\\": \\\"INT\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n createAndAssert(path, \"{\\n\"\n + \"\\\"name\\\": \\\"weight\\\",\\n\"\n + \"\\\"data_type\\\": \\\"DOUBLE\\\",\\n\"\n + \"\\\"cardinality\\\": \\\"SINGLE\\\",\\n\"\n + \"\\\"check_exist\\\": false,\\n\"\n + \"\\\"properties\\\":[]\\n\"\n + \"}\", 202);\n }", "void setKey(K key);", "static <K extends Comparable<? super K>, V> KeyValue<K, V> make(K key, V value) {\n return new Tuple<>(key, value);\n }", "public interface JsonKey {\n\n String CLASS = \"class\";\n String DATA = \"data\";\n String EKS = \"eks\";\n String ID = \"id\";\n String LEVEL = \"level\";\n String MESSAGE = \"message\";\n String METHOD = \"method\";\n String REQUEST_MESSAGE_ID = \"msgId\";\n String STACKTRACE = \"stacktrace\";\n String VER = \"ver\";\n String OK = \"ok\";\n String LOG_LEVEL = \"logLevel\";\n String ERROR = \"error\";\n String EMPTY_STRING = \"\";\n String RESPONSE = \"response\";\n String ADDRESS = \"address\";\n String KEY = \"key\";\n String ERROR_MSG = \"error_msg\";\n String ATTRIBUTE = \"attribute\";\n String ERRORS = \"errors\";\n String SUCCESS = \"success\";\n\n String CERTIFICATE = \"certificate\";\n String RECIPIENT_NAME = \"recipientName\";\n String COURSE_NAME = \"courseName\";\n String NAME = \"name\";\n String HTML_TEMPLATE = \"htmlTemplate\";\n String TAG = \"tag\";\n String ISSUER = \"issuer\";\n String URL = \"url\";\n String SIGNATORY_LIST = \"signatoryList\";\n String DESIGNATION = \"designation\";\n String SIGNATORY_IMAGE = \"image\";\n\n String DOMAIN_URL = \"sunbird_cert_domain_url\";\n String ASSESSED_DOMAIN = \"ASSESSED_DOMAIN\";\n String BADGE_URL = \"BADGE_URL\";\n String ISSUER_URL = \"ISSUER_URL\";\n String TEMPLATE_URL = \"TEMPLATE_URL\";\n String CONTEXT = \"CONTEXT\";\n String VERIFICATION_TYPE = \"VERIFICATION_TYPE\";\n String SIGNATORY_EXTENSION = \"SIGNATORY_EXTENSION\";\n String RECIPIENT_EMAIl = \"recipientEmail\";\n String RECIPIENT_PHONE = \"recipientPhone\";\n String RECIPIENT_ID = \"recipientId\";\n String VALID_FROM = \"validFrom\";\n String EXPIRY = \"expiry\";\n String OLD_ID = \"oldId\";\n String PUBLIC_KEY = \"publicKey\";\n String DESCRIPTION = \"description\";\n String LOGO = \"logo\";\n String ISSUE_DATE = \"issueDate\";\n String USER = \"user\";\n String CERTIFICATE_NAME = \"name\";\n\n String CONTAINER_NAME = \"CONTAINER_NAME\";\n String CLOUD_STORAGE_TYPE = \"CLOUD_STORAGE_TYPE\";\n String CLOUD_UPLOAD_RETRY_COUNT = \"CLOUD_UPLOAD_RETRY_COUNT\";\n String AZURE_STORAGE_SECRET = \"AZURE_STORAGE_SECRET\";\n String AZURE_STORAGE_KEY = \"AZURE_STORAGE_KEY\";\n String ACCESS_CODE_LENGTH = \"ACCESS_CODE_LENGTH\";\n String ORG_ID = \"orgId\";\n String KEYS = \"keys\";\n String ENC_SERVICE_URL = \"sunbird_cert_enc_service_url\";\n String SIGN_HEALTH_CHECK_URL = \"SIGN_HEALTH_CHECK_URL\";\n String SIGN_URL = \"SIGN_URL\";\n String SIGN_VERIFY_URL = \"SIGN_VERIFY_URL\";\n String SIGN_CREATOR = \"SIGN_CREATOR\";\n String SIGN = \"sign\";\n String VERIFY = \"verify\";\n String KEY_ID = \"keyId\";\n String JSON_URL = \"jsonUrl\";\n String PDF_URL = \"pdfUrl\";\n String UNIQUE_ID = \"id\";\n String GENERATE_CERT = \"generateCert\";\n String PUBLIC_KEY_URL = \"PUBLIC_KEY_URL\";\n String GET_SIGN_URL = \"getSignUrl\";\n String SIGNED_URL = \"signedUrl\";\n\n String ACCESS_CODE = \"accessCode\";\n String JSON_DATA = \"jsonData\";\n String SLUG = \"sunbird_cert_slug\";\n}", "PrimaryKey createPrimaryKey();", "public static PSKey createKey(String fieldName, int searchId)\n {\n PSKey key = null;\n String[] keys = new String[]{KEY_COL_FIELDNAME, KEY_COL_SEARCHID};\n String[] values = new String[]{fieldName, String.valueOf(searchId)};\n\n if (null == fieldName || fieldName.trim().length() == 0)\n key = new PSKey(keys);\n else\n key = new PSKey(keys, values, true);\n\n return key;\n }", "String key();", "public static Keys generateKeys() throws GeneralSecurityException {\n KeyGenerator gen = KeyGenerator.getInstance(ENC_ALGORITHM);\n gen.init(KEYLEN);\n SecretKey encKey = gen.generateKey();\n\n /* XXX: It's probably unnecessary to create a different keygen for the\n * MAC, but JCA's API design suggests we should just in case ... */\n gen = KeyGenerator.getInstance(MAC_ALGORITHM);\n gen.init(KEYLEN);\n SecretKey macKey = gen.generateKey();\n\n return new Keys(encKey, macKey);\n }", "private SymmetricKey createTestSymmetricKey(String primaryKey, String secondaryKey)\n {\n SymmetricKey key = new SymmetricKey();\n Deencapsulation.setField(key, \"primaryKey\", primaryKey);\n Deencapsulation.setField(key, \"secondaryKey\", secondaryKey);\n return key;\n }", "com.google.protobuf.ByteString getKeyBytes();", "com.google.protobuf.ByteString getKeyBytes();", "public static String makeKey(Location where, GoodsType what) {\n return where.getId() + \"-\" + what.getId();\n }", "protected SafeHashMap.KeySet instantiateKeySet()\n {\n return new KeySet();\n }", "byte[] getKey();", "public ContentKey() {}", "public static PSKey[] createKeys(int[] contentTypeIds)\n {\n if (contentTypeIds == null || contentTypeIds.length < 1)\n throw new IllegalArgumentException(\"contentTypeIds may not be null or empty\");\n\n PSKey keys[] = new PSKey[contentTypeIds.length];\n \n for (int i = 0; i < contentTypeIds.length; i++)\n {\n if (contentTypeIds[i] == 0)\n throw new IllegalArgumentException(\"contentTypeIds may not be = 0\");\n \n keys[i] = new PSSimpleKey(KEY_CONTENTTYPEID, \"\" + contentTypeIds[i]); \n } \n\n return keys; \n }" ]
[ "0.6546292", "0.6445098", "0.6324569", "0.6318259", "0.6312814", "0.62673664", "0.62567633", "0.62009877", "0.616753", "0.6151914", "0.6132554", "0.61103", "0.6103341", "0.60877186", "0.60867053", "0.60480636", "0.60171306", "0.5982852", "0.5973438", "0.5961876", "0.5960013", "0.5931186", "0.591755", "0.5899884", "0.5895464", "0.5894979", "0.58919156", "0.5888642", "0.58458155", "0.58187264", "0.57773095", "0.57773095", "0.57773095", "0.57773095", "0.57773095", "0.57773095", "0.5775217", "0.5769422", "0.57613397", "0.5757653", "0.57482517", "0.57367027", "0.5725085", "0.57143915", "0.5707931", "0.57027954", "0.5695067", "0.5695067", "0.5695067", "0.5695067", "0.56917936", "0.56917936", "0.56917936", "0.56917936", "0.56917936", "0.56917936", "0.56917936", "0.56917936", "0.56917936", "0.56917936", "0.56917936", "0.56917936", "0.56917936", "0.5684048", "0.5678006", "0.5672585", "0.5668044", "0.5667157", "0.56535083", "0.5648939", "0.5641283", "0.5640169", "0.56343114", "0.5633461", "0.5633292", "0.5629949", "0.55886966", "0.5577561", "0.5576604", "0.5543754", "0.5538506", "0.553782", "0.5508601", "0.54897344", "0.5480412", "0.5473134", "0.5470273", "0.5466872", "0.5462487", "0.5461706", "0.5443697", "0.54405344", "0.543291", "0.5432434", "0.5432434", "0.54285413", "0.54244274", "0.54238755", "0.54174924", "0.54095376" ]
0.54591084
90
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { repositoryLabel = new javax.swing.JLabel(); issueLabel = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); issuePanel = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); repositoryLabel.setLabelFor(repositoryComboBox); org.openide.awt.Mnemonics.setLocalizedText(repositoryLabel, org.openide.util.NbBundle.getMessage(QuickSearchPanel.class, "QuickSearchPanel.repositoryLabel.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(issueLabel, org.openide.util.NbBundle.getMessage(QuickSearchPanel.class, "QuickSearchPanel.issueLabel.text")); // NOI18N jLabel2.setForeground(javax.swing.UIManager.getDefaults().getColor("Label.disabledForeground")); org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(QuickSearchPanel.class, "QuickSearchPanel.jLabel2.text")); // NOI18N issuePanel.setLayout(new java.awt.BorderLayout()); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2) .addComponent(issuePanel, javax.swing.GroupLayout.DEFAULT_SIZE, 477, Short.MAX_VALUE) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addComponent(issuePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel2)) ); org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(QuickSearchPanel.class, "QuickSearchPanel.jLabel1.text")); // NOI18N javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(repositoryLabel) .addComponent(issueLabel)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(repositoryComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel1) .addContainerGap()) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(repositoryLabel) .addComponent(repositoryComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(issueLabel)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); repositoryComboBox.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(QuickSearchPanel.class, "QuickSearchPanel.repositoryComboBox.AccessibleContext.accessibleDescription")); // NOI18N }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "0.6944929", "0.6942576", "0.69355655", "0.6931378", "0.6927896", "0.69248974", "0.6924723", "0.69116884", "0.6910487", "0.6892381", "0.68921053", "0.6890637", "0.68896896", "0.68881863", "0.68826133", "0.68815064", "0.6881078", "0.68771756", "0.6875212", "0.68744373", "0.68711984", "0.6858978", "0.68558776", "0.6855172", "0.6854685", "0.685434", "0.68525875", "0.6851834", "0.6851834", "0.684266", "0.6836586", "0.6836431", "0.6828333", "0.68276715", "0.68262815", "0.6823921", "0.682295", "0.68167603", "0.68164384", "0.6809564", "0.68086857", "0.6807804", "0.6807734", "0.68067646", "0.6802192", "0.67943805", "0.67934304", "0.6791657", "0.6789546", "0.6789006", "0.67878324", "0.67877173", "0.6781847", "0.6765398", "0.6765197", "0.6764246", "0.6756036", "0.6755023", "0.6751404", "0.67508715", "0.6743043", "0.67387456", "0.6736752", "0.67356426", "0.6732893", "0.6726715", "0.6726464", "0.67196447", "0.67157453", "0.6714399", "0.67140275", "0.6708251", "0.6707117", "0.670393", "0.6700697", "0.66995865", "0.66989213", "0.6697588", "0.66939527", "0.66908985", "0.668935" ]
0.0
-1
End of variables declaration//GENEND:variables
private void onNewRepo() { RepositoryImpl repoImpl = BugtrackingUtil.createRepository(); if(repoImpl == null) { return; } Repository repo = repoImpl.getRepository(); repositoryComboBox.addItem(repo); repositoryComboBox.setSelectedItem(repo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\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 mo55254a() {\n }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
Register for notifications about changes in the issue combo bar
public void setChangeListener(ChangeListener listener) { this.listener = listener; qs.addChangeListener(listener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void notifyChangementJoueurs();", "void onIssueEditedEvent(T event);", "void notify(BoardEditorInternalController source);", "private void notifyListeners() {\n IDisplayPaneContainer container = (IDisplayPaneContainer) activeEditorMap\n .get(currentWindow);\n for (IVizEditorChangedListener listener : changeListeners) {\n listener.editorChanged(container);\n }\n }", "public void notifyChangementCroyants();", "void willDisplayUpdate(String change) throws RemoteException;", "public void notifyChanged(Notification n){\n\t \n\t super.notifyChanged(n); // the superclass handles adding/removing this Adapter to new Books\n\t \n\t // find out the type of the notifier which could be either 'LanguageDefinition' or 'Library'\n\t Object notifier = n.getNotifier();\n\t if (notifier instanceof ConcurrentLanguageDefinition) {\n\t handleLanguageDefinitionNotification(n);\n\t } else if (notifier instanceof DomainModelProject) {\n\t handleDomainModelProjectNotification(n);\n\t } else if (notifier instanceof XTextEditorProject) {\n\t \thandleXTextProjectNotification(n);\n\t } else if (notifier instanceof SiriusEditorProject) {\n\t \thandleSiriusEditorProjectNotification(n);\n\t } else if (notifier instanceof SiriusAnimatorProject) {\n\t \thandleSiriusAnimatorProjectNotification(n);\n\t } else if (notifier instanceof MoCCProject) {\n\t handleMoCProjectNotification(n);\n\t } else if (notifier instanceof DSAProject) {\n\t handleDSAProjectNotification(n);\n\t } else if (notifier instanceof DSEProject) {\n\t handleDSEProjectNotification(n);\n\t }\n\t \n\t \n\t }", "public void registryChange() {\n registryEvent(1);\n }", "private void reportUIChange() {\r\n\t\tif (messengerToUI != null) {\r\n\t\t\ttry {\r\n\t\t\t\tmessengerToUI.send(Message.obtain(null, DRIVER2UI_DEV_STATUS));\r\n\t\t\t} catch (RemoteException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void notifyConfigChange() {\n }", "public void providerStatusMessageChanged(PropertyChangeEvent evt);", "@Override\n public void onStatusChanged(String s, int i, Bundle bundle) {\n }", "@Override\n public void onStatusChanged(String s, int i, Bundle bundle) {\n }", "private void\n doVersionChanged\n (\n JCollectionField field\n )\n {\n ArrayList<String> messages = pCheckedInMessages.get(field);\n if(messages != null) {\n int idx = field.getSelectedIndex();\n\n if(idx > -1 && idx < messages.size())\n\tfield.setToolTipText(UIFactory.formatToolTip(messages.get(idx), 4));\n else\n\tfield.setToolTipText(UIFactory.formatToolTip(\"There is no log message.\"));\n }\n }", "void onIssueCreatedEvent(T event);", "@Override\n public void eventsChanged() {\n }", "void notifyAllAboutChange();", "public void notifyProjectItem(EtoProject etoProject){\n }", "public void notifyChange()\r\n {\r\n setChanged();\r\n notifyObservers();\r\n }", "private void notifyComboBoxModelChange(int index0, int index1)\n {\n for(ListDataListener l : comboBoxModelListDataListeners)\n l.contentsChanged(new ListDataEvent(this, ListDataEvent.CONTENTS_CHANGED, index0, index1));\n }", "private void _notifyAction() {\n for (int i = 0; i < _watchers.size(); ++i) {\n OptionWidgetWatcher ow = (OptionWidgetWatcher) _watchers.elementAt(i);\n ow.optionAction(this);\n }\n }", "private void change() {\n\t\tsetChanged();\n\t\t//NotifyObservers calls on the update-method in the GUI\n\t\tnotifyObservers();\n\t}", "protected void notifyDirty() {\n Event evt = new Event();\n evt.item = this;\n evt.widget = this;\n SelectionEvent event = new SelectionEvent(evt);\n for (SelectionListener listener : dirtyListener) {\n listener.widgetSelected(event);\n }\n }", "private void notifyChange() {\n\t\tif (OllieProvider.isImplemented()) {\n\t\t\tOllie.getContext().getContentResolver().notifyChange(OllieProvider.createUri(getClass(), id), null);\n\t\t}\n\t}", "private void onNewRepo() {\n RepositoryImpl repoImpl = BugtrackingUtil.createRepository();\n if(repoImpl == null) {\n return;\n }\n Repository repo = repoImpl.getRepository();\n repositoryComboBox.addItem(repo);\n repositoryComboBox.setSelectedItem(repo);\n }", "private void showNotification() {\n }", "@Override\r\n\tpublic void addListener(INotifyChangedListener notifyChangedListener) {\r\n\t\tchangeNotifier.addListener(notifyChangedListener);\r\n\t}", "void notifyAdapters(Object event);", "@Override\n\t\tpublic void buttonStatusChange() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void notifySettingChanged() {\n\t}", "@Override\n public void actionPerformed(ActionEvent e){\n \tframe.getNotif().update();\n ArrayList<Notification> newNotif;\n if (Application.getApplication().getCurrentUser() != null)\n newNotif = Application.getApplication().getCurrentUser().getNotifications();\n else\n newNotif = Application.getApplication().getAdmin().getNotifications();\n frame.getNotif().setNotifications(newNotif);\n this.frame.showPanel(\"notif\");\n }", "private void fireSelectionChangeNotification () {\r\n\t\tif ( selectionChangeListener!=null)\r\n\t\t\tselectionChangeListener.execute();\r\n\t}", "public void notifyAdapters();", "public void notifyBuildProblemResponsibleChanged(\r\n\t\t\tCollection<BuildProblemInfo> arg0, ResponsibilityEntry arg1,\r\n\t\t\tSProject arg2, Set<SUser> arg3) {\n\t\t\r\n\t}", "private void showNotification() {\n\n }", "@Override\n\tpublic void saveNotifications() {\n\t}", "@Override\r\n\tpublic void notifyObservers() {\n\t\t\r\n\t}", "public void notifyChanged(final Notification msg) {\r\n\t super.notifyChanged(msg);\r\n\t \r\n\t if(msg.getFeature() == PropertiesPackage.Literals.PROPERTY__VALUE) {\r\n\t \tsetGUIAttributes();\r\n\t }\r\n\t }", "@Override\n public void onStatusChange(int status) {\n }", "void onPropertyChange(String name, String newValue);", "protected void notifyChangeListeners() { \n Utilities.invokeLater(new Runnable() {\n public void run() { for(ChangeListener l: _changeListeners) l.apply(this); }\n });\n }", "@Override\n\tpublic void addListener(INotifyChangedListener notifyChangedListener) {\n\t\tchangeNotifier.addListener(notifyChangedListener);\n\t}", "@Override\n\tpublic void addListener(INotifyChangedListener notifyChangedListener) {\n\t\tchangeNotifier.addListener(notifyChangedListener);\n\t}", "public interface GeneSelectionObserver {\n\n\t/**\n\t * Called when a gene in the combo box is chosen.\n\t * \n\t * @param selectedGene\n\t * The gene selected by the user.\n\t */\n\tvoid update(String selectedGene);\n}", "@Override\n public void doUpdate(NotificationMessage notification) {\n \n }", "protected void fireChangeEvent() {\n\t\tfireEvent(new DebugEvent(this, DebugEvent.CHANGE));\n\t}", "@Override\n\t\t\t\t\tpublic void changed(ObservableValue arg0, Object arg1,\n\t\t\t\t\t\t\tObject arg2) {\n\t\t\t\t\t\tif (arg2.toString() == \"库存盘点\") {// 库存盘点\n\t\t\t\t\t\t\tcheckCommodityui de = new checkCommodityui();\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tde.display(Job, name, id);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (arg2.toString() == \"库存查看\") {// 库存查看\n\t\t\t\t\t\t\tCommodityInformationui c = new CommodityInformationui();\n\t\t\t\t\t\t\tc.display(Job, name, id);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\r\n\tpublic void sendNotifications() {\n\r\n\t}", "protected void updateProblemIndication() {\r\n\t\tif (updateProblemIndication) {\r\n\t\t\tBasicDiagnostic diagnostic = new BasicDiagnostic(Diagnostic.OK,\r\n\t\t\t\t\t\"com.nokia.tools.s60ct.confml.editor\", 0, null,\r\n\t\t\t\t\tnew Object[] { editingDomain.getResourceSet() });\r\n\t\t\tfor (Diagnostic childDiagnostic : resourceToDiagnosticMap.values()) {\r\n\t\t\t\tif (childDiagnostic.getSeverity() != Diagnostic.OK) {\r\n\t\t\t\t\tdiagnostic.add(childDiagnostic);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tint lastEditorPage = getPageCount() - 1;\r\n\t\t\tif (lastEditorPage >= 0\r\n\t\t\t\t\t&& getEditor(lastEditorPage) instanceof ProblemEditorPart) {\r\n\t\t\t\t((ProblemEditorPart) getEditor(lastEditorPage))\r\n\t\t\t\t\t\t.setDiagnostic(diagnostic);\r\n\t\t\t\tif (diagnostic.getSeverity() != Diagnostic.OK) {\r\n\t\t\t\t\tsetActivePage(lastEditorPage);\r\n\t\t\t\t}\r\n\t\t\t} else if (diagnostic.getSeverity() != Diagnostic.OK) {\r\n\t\t\t\tProblemEditorPart problemEditorPart = new ProblemEditorPart();\r\n\t\t\t\tproblemEditorPart.setDiagnostic(diagnostic);\r\n\t\t\t\tproblemEditorPart.setMarkerHelper(markerHelper);\r\n\t\t\t\ttry {\r\n\t\t\t\t\taddPage(++lastEditorPage, problemEditorPart,\r\n\t\t\t\t\t\t\tgetEditorInput());\r\n\t\t\t\t\tsetPageText(lastEditorPage, problemEditorPart.getPartName());\r\n\t\t\t\t\tsetActivePage(lastEditorPage);\r\n\t\t\t\t\tshowTabs();\r\n\t\t\t\t} catch (PartInitException exception) {\r\n\t\t\t\t\tConfmlFeatureEditorPlugin.INSTANCE.log(exception);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (markerHelper.hasMarkers(editingDomain.getResourceSet())) {\r\n\t\t\t\tmarkerHelper.deleteMarkers(editingDomain.getResourceSet());\r\n\t\t\t\tif (diagnostic.getSeverity() != Diagnostic.OK) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tmarkerHelper.createMarkers(diagnostic);\r\n\t\t\t\t\t} catch (CoreException exception) {\r\n\t\t\t\t\t\tConfmlFeatureEditorPlugin.INSTANCE.log(exception);\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\t\r\n\t\tupdateErrors();\r\n\t\t\r\n\t}", "void onHisNotify();", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}", "@Override\n public void notify(String newFileContent) {\n Repository.getRepositoryInstance().updateStockOrders(newFileContent);\n//end of modifiable zone..................E/a170c128-ca49-4fc4-abdd-43b714481007\n }", "@Override\n public void addChangeListener(ChangeListener l) {}", "public void tpoChange(){\r\n\r\n System.out.println(\"TPO change detected! \\nReloading compatible transmitters!\");\r\n\r\n tx_cb.getItems().clear();\r\n tx_cb.setPromptText(\"Select Transmitter\");\r\n tx_cb.setButtonCell(new ListCell<String>() {\r\n @Override\r\n protected void updateItem(String item, boolean empty) {\r\n super.updateItem(item, empty);\r\n if (empty || item == null)\r\n setText(\"Select Transmitter\");\r\n else\r\n setText(item);\r\n }\r\n });\r\n genRep.setDisable(true);// disable generate report button we tpo is changed(this function resets some values and makes them null-- error handler\r\n filter.getItems().clear();\r\n filter.setPromptText(\"Select Filter\");\r\n filter.setButtonCell(new ListCell<String>() {\r\n @Override\r\n protected void updateItem(String item, boolean empty) {\r\n super.updateItem(item, empty);\r\n if (empty || item == null)\r\n setText(\"Select Filter\");\r\n else\r\n setText(item);\r\n\r\n if(tpo.getText().equals(\"\")|| tpo.getText().equals(\"0\")){\r\n tx_cb.setValue(null);\r\n filter.setValue(null);\r\n tpo.setText(\"1\");\r\n }\r\n }\r\n });\r\n\r\n /** call addTX() to populate TX combo box with compatible transmitters for selected TPO **/\r\n addTX();\r\n System.out.println(\"New TPO: \"+tpo.getText());\r\n }", "void onStatusChanged(Status newStatus);", "void enableNotifications();", "public void notifyChangementTour();", "@Override\n public void statusChanged(String text) {\n fireStatusChanged(text);\n }", "private void createChangeItem(Issue issue, ChangeItemBean changeItemBean, ApplicationUser remoteUser) {\n IssueUpdateBean issueUpdateBean = new IssueUpdateBean(issue, issue, EventType.ISSUE_UPDATED_ID, remoteUser);\n issueUpdateBean.setDispatchEvent(false);\n issueUpdateBean.setChangeItems(ImmutableList.of(changeItemBean));\n issueUpdater.doUpdate(issueUpdateBean, true);\n }", "@Override\n\tpublic void NotifyObserver() {\n\n\t}", "private void sendNotification() {\n }", "@Override\r\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\r\n\t}", "public void notifyObservers() {}", "void notifyLorenzoDeckUpdate(DevelopCardDeckUpdate msg);", "private void onOperationIssueChange(View rootView) {\n if (rootView != null) {\n Spinner operationIssueSpinner = (Spinner) rootView.findViewById(R.id.details_fragment_toolbar_operation_issue_spinner);\n operationIssueSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n if (activity != null && barChart != null) {\n String selectedOperationIssue = parent.getItemAtPosition(position).toString();\n UtilsRG.putString(UtilsRG.OPERATION_ISSUE, selectedOperationIssue, activity);\n UtilsRG.info(\"Selected OperationIssue changed in statistics to: \" + selectedOperationIssue);\n initBarChartDataAsync(activity, barChart);\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n }\n }", "private void registerConflict(Conflict conflict) {\n conflicts.add(conflict);\n markDirty();\n }", "@Override\n protected void componentOpened() {\n WindowManager.getDefault().getRegistry().addPropertyChangeListener(this);\n }", "public void alert(){\n\t\tfor (ChangeListener l : listeners) {\n\t\t\tl.stateChanged(new ChangeEvent(this));\n\t\t}\n\t}", "public interface BoardEditorInternalControllerObserver {\n\n\t/**\n\t * A change occurred in the sub-controller\n\t */\n\tvoid notify(BoardEditorInternalController source);\n\t\n}", "@Override\n public void update(Observable o, Object arg) {\n /*this.alerts.add((String)arg);*/\n }", "@Override\n public void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\n }", "void\n notifyChange() {\n this.notifyChange = true;\n synchronized (this.changeMonitor) {\n this.changeMonitor.notifyAll();\n }\n }", "@Override\r\n\tpublic void notifyJarChange(List<Jar> changedJars) {\n\r\n\t}", "public void notifyChange(Object obj) {\n\t\t\ttry\n\t\t\t{\n\t\t\t\tsetChanged();\n\t\t\t\tnotifyObservers(obj);\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t}\n\t\t\t\n\t\t}", "static void NotifyCorrespondingObservers() {}", "void notifyObservers();", "void notifyObservers();", "public void addNotify() {\r\n\t\tsuper.addNotify();\r\n\t\tcalendar = new JPopupCalendar(getParentWindow(), this);\r\n\t}", "private void indicateAddressBookChanged() {\n raise(new AddressBookChangedEvent(versionedAddressBook));\n }", "com.polytech.spik.protocol.SpikMessages.StatusChanged getStatusChanged();", "@Override\n public void providerStatusMessageChanged(PropertyChangeEvent evt)\n {\n fireStatusMessageUpdated(\n (String)evt.getOldValue(),\n (String)evt.getNewValue());\n }", "public void addNotify() {\n super.addNotify();\n \n // Enter key in the tree\n /*\n ExplorerManager newManager = ExplorerManager.find(this);\n System.out.println(\"newManager=\"+newManager);\n if (newManager != manager) {\n if (manager != null) {\n manager.removeVetoableChangeListener(wlvc);\n manager.removePropertyChangeListener(wlpc);\n }\n \n manager = newManager;\n \n manager.addVetoableChangeListener(wlvc = WeakListeners.vetoableChange(nodeListener, manager));\n manager.addPropertyChangeListener(wlpc = WeakListeners.propertyChange(nodeListener, manager));\n //manager.addPropertyChangeListener(nodeListener);\n \n }\n */\n }", "@Override\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\t\n\t}", "@Override\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\t\t}", "@Override\r\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\t\r\n\t}", "@SuppressWarnings(\"ALL\")\npublic interface ApplicationChangeListener {\n void onStatusChange(Application application);\n}", "public void pushStatusIcon(IconReference ref);", "@Override\n public void actionPerformed (ActionEvent e) {\n fireChanged();\n }", "public void notifyObservers();", "public void notifyObservers();", "public void notifyObservers();", "public static void enableRegNotifications() {\n\t\t\n\t}", "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}", "@Override\n public void addChangeListener(ChangeListener l) {\n }", "@Override\n public void addChangeListener(ChangeListener l) {\n }", "@Override\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\n\t}", "private void checkNewNotification() {\n toolbar.setTitle(R.string.notification);\n NotificationFragment notificationFragment = new NotificationFragment();\n displaySelectedFragment(notificationFragment);\n }" ]
[ "0.60494477", "0.5969816", "0.5837626", "0.579683", "0.57944596", "0.56541574", "0.5621763", "0.5620359", "0.5578091", "0.5501166", "0.5500452", "0.5479727", "0.5479727", "0.54794395", "0.54614085", "0.5453953", "0.54367965", "0.54345703", "0.5428778", "0.54183626", "0.5415426", "0.541363", "0.5387732", "0.5383745", "0.53771657", "0.53382593", "0.533752", "0.5328513", "0.5317548", "0.5312143", "0.5307205", "0.5298758", "0.5297184", "0.52755016", "0.52729106", "0.5260111", "0.5247061", "0.5221062", "0.5215681", "0.5208346", "0.51956236", "0.51933974", "0.51933974", "0.51871943", "0.51836705", "0.518181", "0.5156608", "0.5154286", "0.51512694", "0.5149953", "0.5149226", "0.5149226", "0.5149226", "0.5149226", "0.51471496", "0.5145542", "0.5141918", "0.5139317", "0.51382023", "0.51346296", "0.5133857", "0.51318735", "0.51310503", "0.51298577", "0.51274645", "0.51142836", "0.51135546", "0.5102323", "0.5100303", "0.5099238", "0.5097813", "0.5089625", "0.5087207", "0.5085647", "0.508484", "0.50826186", "0.50763637", "0.50732565", "0.5065637", "0.5065637", "0.50476795", "0.5042408", "0.50409997", "0.50408083", "0.5036981", "0.50368005", "0.50368005", "0.5035995", "0.50314873", "0.50291216", "0.5024369", "0.5021138", "0.5020702", "0.5020702", "0.5020702", "0.50201994", "0.50146776", "0.5014258", "0.5014258", "0.5011365", "0.50095916" ]
0.0
-1
/ / / /
protected void a(dh paramdh) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void gored() {\n\t\t\n\t}", "public String toString(){ return \"DIV\";}", "private int parent(int i){return (i-1)/2;}", "public String ring();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int leftChild(int i){return 2*i+1;}", "double passer();", "static void pyramid(){\n\t}", "public void stg() {\n\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void mo33732Px();", "Operations operations();", "private int rightChild(int i){return 2*i+2;}", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "@Override\n\tpublic float dividir(float op1, float op2) {\n\t\treturn op1 / op2;\n\t}", "void sharpen();", "void sharpen();", "double defendre();", "public int generateRoshambo(){\n ;]\n\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "String divideAtWhite()[]{ return null; }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double volume(){\n return width*height*depth;\n }", "public void skystonePos4() {\n }", "void ringBell() {\n\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\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}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }", "public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }", "void mo21076g();", "private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "Parallelogram(){\n length = width = height = 0;\n }", "public Divide(){\n }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "@Override\r\n\tpublic void div(int x, int y) {\n\t\t\r\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "@Override\npublic void div(int a, int b) {\n\t\n}", "private double triangleBase() {\n return cellWidth() / BASE_WIDTH;\n }", "double volume() {\n\treturn width*height*depth;\n}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "int getWidth() {return width;}", "int width();", "public void divide(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n }\n }", "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }", "public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }", "@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "public double getWidth() { return _width<0? -_width : _width; }", "double getPerimeter(){\n return 2*height+width;\n }", "public void mo3376r() {\n }", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public static void main (String[] args){\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n if(n%2==1)\n {\n n=n/2;\n n++;\n }\n else\n {\n n=n/2;\n }\n for(int i=1;i<=n;i++)\n {\n for(int k=1;k<=i-1;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<=((2*n-1)-2*(i-1));j++)\n {\n if(j==1||j==((2*n-1)-2*(i-1)))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n for(int i=2;i<=n;i++)\n {\n for(int k=1;k<=n-i;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<i*2;j++)\n {\n if(j==1||j==(i*2-1))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n\t}", "public RMPath getPath() { return RMPath.unitRectPath; }", "void walk() {\n\t\t\n\t}", "public static void giant() {\n System.out.println(\" --------- \");\n System.out.println(\" | / \\\\| \");\n System.out.println(\" ZZZZZH | O | HZZZZZ \");\n System.out.println(\" H ----------- H \");\n System.out.println(\" ZZZZZHHHHHHHHHHHHHHHHHHHHHZZZZZ \");\n System.out.println(\" H HHHHHHHHHHH H \");\n System.out.println(\" ZZZZZH HHHHHHHHHHH HZZZZZ \");\n System.out.println(\" HHHHHHHHHHH \");\n System.out.println(\" HHH HHH \");\n System.out.println(\" HHH HHH \");\n }", "public void title ()\n {\n\tprintSlow (\" _ __\");\n\tprintSlow (\" ___ | ' \\\\\");\n\tprintSlow (\" ___ \\\\ / ___ ,'\\\\_ | .-. \\\\ /|\");\n\tprintSlow (\" \\\\ / | |,'__ \\\\ ,'\\\\_ | \\\\ | | | | ,' |_ /|\");\n\tprintSlow (\" _ | | | |\\\\/ \\\\ \\\\ | \\\\ | |\\\\_| _ | |_| | _ '-. .-',' |_ _\");\n\tprintSlow (\" // | | | |____| | | |\\\\_|| |__ // | | ,'_`. | | '-. .-',' `. ,'\\\\_\");\n\tprintSlow (\" \\\\\\\\_| |_,' .-, _ | | | | |\\\\ \\\\ // .| |\\\\_/ | / \\\\ || | | | / |\\\\ \\\\| \\\\\");\n\tprintSlow (\" `-. .-'| |/ / | | | | | | \\\\ \\\\// | | | | | || | | | | |_\\\\ || |\\\\_|\");\n\tprintSlow (\" | | | || \\\\_| | | | /_\\\\ \\\\ / | |` | | | || | | | | .---'| |\");\n\tprintSlow (\" | | | |\\\\___,_\\\\ /_\\\\ _ // | | | \\\\_/ || | | | | | /\\\\| |\");\n\tprintSlow (\" /_\\\\ | | //_____// .||` `._,' | | | | \\\\ `-' /| |\");\n\tprintSlow (\" /_\\\\ `------' \\\\ | AND `.\\\\ | | `._,' /_\\\\\");\n\tprintSlow (\" \\\\| HIS `.\\\\\");\n\tprintSlow (\" __ __ _ _ _ _ \");\n\tprintSlow (\" | \\\\/ | (_) | | /\\\\ | | | | \");\n\tprintSlow (\" | \\\\ / | __ _ __ _ _ ___ __ _| | / \\\\ __| |_ _____ _ __ | |_ _ _ _ __ ___ \");\n\tprintSlow (\" | |\\\\/| |/ _` |/ _` | |/ __/ _` | | / /\\\\ \\\\ / _` \\\\ \\\\ / / _ \\\\ '_ \\\\| __| | | | '__/ _ \\\\\");\n\tprintSlow (\" | | | | (_| | (_| | | (_| (_| | | / ____ \\\\ (_| |\\\\ V / __/ | | | |_| |_| | | | __/\");\n\tprintSlow (\" |_| |_|\\\\__,_|\\\\__, |_|\\\\___\\\\__,_|_| /_/ \\\\_\\\\__,_| \\\\_/ \\\\___|_| |_|\\\\__|\\\\__,_|_| \\\\___|\");\n\tprintSlow (\" __/ | \");\n\tprintSlow (\" |___/ \\n\\n\\n\");\n\n\n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "double area() {\nSystem.out.println(\"Inside Area for Triangle.\");\nreturn dim1 * dim2 / 2;\n}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }", "public SoNode \ngetCurPathTail() \n{\n//#ifdef DEBUG\n if (currentpath.getTail() != (SoFullPath.cast(getCurPath())).getTail()){\n SoDebugError.post(\"SoAction::getCurPathTail\\n\", \n \"Inconsistent path tail. Did you change the scene graph\\n\"+\n \"During traversal?\\n\");\n }\n//#endif /*DEBUG*/\n return(currentpath.getTail());\n}", "@Override\n\tpublic void breath() {\n\n\t}", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "@Override\n\tpublic void div(double dx, double dy) {\n\t\t\n\t}", "public PathCode getCurPathCode() { return /*appliedTo.curPathCode*/currentpathcode;}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "static String division (String s1, String s2) {\r\n if (s2==null || s2.length()==0) return s1;\r\n return product (s1, invert(s2));\r\n }", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}", "public void star(float x, float y, float r, float R) {\n float angle = TWO_PI / 5;\n float halfAngle = angle/2.0f;\n beginShape();\n noStroke();\n for (float a = 0; a < TWO_PI; a += angle) {\n float sx = x + cos(a) * r;\n float sy = y + sin(a) * r;\n vertex(sx, sy);\n sx = x + cos(a+halfAngle) * R;\n sy = y + sin(a+halfAngle) * R;\n vertex(sx, sy);\n }\n endShape(CLOSE);\n}", "@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}", "public int upright();", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void backSlash() {\n text.append(\"\\\\\");\n }", "public static void main(String[] args){\t\n\t\tchar op = '/';\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"첫번째 정수입니다.\");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"두번째 정수입니다.\");\n\t\tint num2 = scan.nextInt();\n\t\tint num3=0;\n\t\tif(op=='+'){\n\t\t\tnum3 = num1+num2;\n\t\t}\n\t\telse if(op=='-'){\n\t\t\tnum3 = num1-num2;\n\t\t}\n\t\telse if(op=='*'){\n\t\t\tnum3 = num1*num2;\n\t\t}\n\t\telse if(op=='/'){\n\t\t\tif(num2==0){\n\t\t\tSystem.out.println(\"오류입니다.\");\n\t\t}\n\t\t\t\n\t\t\tnum3 = num1/num2;\n\t\t}\n\t\tSystem.out.printf(\"%d%c%d=%d\" ,num1,op,num2,num3);\n\t\t\n\t\t\n\t}", "public final void testSlash() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnðýþnn\");\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnønn\");\n\t\tassertSingleResult(\"8\", fldName, \"nnunn\");\n\t}", "AngleResource inclination();", "public abstract void squareRootThis();", "public UniquePathsII() {\n\t\t// Initialization here. \n\t\t//\t\tcount = 0;\n\t}", "@Override\n\tpublic void space() {\n\t\t\n\t}" ]
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.49150687", "0.4878608", "0.4873821", "0.4873821", "0.48564616", "0.48415148", "0.4840844", "0.48408422", "0.48392275", "0.48380315", "0.48342562", "0.48335755", "0.48189583", "0.4816532", "0.4803844", "0.47991633", "0.4790358", "0.4785782", "0.47707185", "0.47659388", "0.47607136", "0.4756167", "0.47525582", "0.4750556", "0.47465262", "0.47439283", "0.47427607", "0.47368544", "0.47283906", "0.4719052", "0.4715935", "0.4711951", "0.47046372", "0.47023433", "0.46957722", "0.46894073", "0.46882662", "0.46872112", "0.46870187", "0.46838596", "0.46826214", "0.46721044", "0.4671648", "0.46691796", "0.46658975", "0.46658975", "0.46634644", "0.46593347", "0.46569487", "0.46532407", "0.46484405", "0.46472803", "0.4647124", "0.46426368", "0.46379653", "0.4635675", "0.46356165", "0.46343538", "0.46343073", "0.46324328", "0.46307802", "0.46292034", "0.46249497", "0.46220893", "0.46138567", "0.46130696", "0.46125302", "0.4608751", "0.46084386", "0.4605762", "0.46052104", "0.4602023", "0.46015334", "0.45995793", "0.45948967", "0.459342", "0.45930445", "0.45923406", "0.45910415", "0.45878932", "0.45863274" ]
0.0
-1
/ / / /
protected void b(dh paramdh) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void gored() {\n\t\t\n\t}", "public String toString(){ return \"DIV\";}", "private int parent(int i){return (i-1)/2;}", "public String ring();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int leftChild(int i){return 2*i+1;}", "double passer();", "static void pyramid(){\n\t}", "public void stg() {\n\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void mo33732Px();", "Operations operations();", "private int rightChild(int i){return 2*i+2;}", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "@Override\n\tpublic float dividir(float op1, float op2) {\n\t\treturn op1 / op2;\n\t}", "void sharpen();", "void sharpen();", "double defendre();", "public int generateRoshambo(){\n ;]\n\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "String divideAtWhite()[]{ return null; }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double volume(){\n return width*height*depth;\n }", "public void skystonePos4() {\n }", "void ringBell() {\n\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\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}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }", "public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }", "void mo21076g();", "private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "Parallelogram(){\n length = width = height = 0;\n }", "public Divide(){\n }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "@Override\r\n\tpublic void div(int x, int y) {\n\t\t\r\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "@Override\npublic void div(int a, int b) {\n\t\n}", "private double triangleBase() {\n return cellWidth() / BASE_WIDTH;\n }", "double volume() {\n\treturn width*height*depth;\n}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "int getWidth() {return width;}", "int width();", "public void divide(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n }\n }", "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }", "public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }", "@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "public double getWidth() { return _width<0? -_width : _width; }", "double getPerimeter(){\n return 2*height+width;\n }", "public void mo3376r() {\n }", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public static void main (String[] args){\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n if(n%2==1)\n {\n n=n/2;\n n++;\n }\n else\n {\n n=n/2;\n }\n for(int i=1;i<=n;i++)\n {\n for(int k=1;k<=i-1;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<=((2*n-1)-2*(i-1));j++)\n {\n if(j==1||j==((2*n-1)-2*(i-1)))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n for(int i=2;i<=n;i++)\n {\n for(int k=1;k<=n-i;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<i*2;j++)\n {\n if(j==1||j==(i*2-1))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n\t}", "public RMPath getPath() { return RMPath.unitRectPath; }", "void walk() {\n\t\t\n\t}", "public static void giant() {\n System.out.println(\" --------- \");\n System.out.println(\" | / \\\\| \");\n System.out.println(\" ZZZZZH | O | HZZZZZ \");\n System.out.println(\" H ----------- H \");\n System.out.println(\" ZZZZZHHHHHHHHHHHHHHHHHHHHHZZZZZ \");\n System.out.println(\" H HHHHHHHHHHH H \");\n System.out.println(\" ZZZZZH HHHHHHHHHHH HZZZZZ \");\n System.out.println(\" HHHHHHHHHHH \");\n System.out.println(\" HHH HHH \");\n System.out.println(\" HHH HHH \");\n }", "public void title ()\n {\n\tprintSlow (\" _ __\");\n\tprintSlow (\" ___ | ' \\\\\");\n\tprintSlow (\" ___ \\\\ / ___ ,'\\\\_ | .-. \\\\ /|\");\n\tprintSlow (\" \\\\ / | |,'__ \\\\ ,'\\\\_ | \\\\ | | | | ,' |_ /|\");\n\tprintSlow (\" _ | | | |\\\\/ \\\\ \\\\ | \\\\ | |\\\\_| _ | |_| | _ '-. .-',' |_ _\");\n\tprintSlow (\" // | | | |____| | | |\\\\_|| |__ // | | ,'_`. | | '-. .-',' `. ,'\\\\_\");\n\tprintSlow (\" \\\\\\\\_| |_,' .-, _ | | | | |\\\\ \\\\ // .| |\\\\_/ | / \\\\ || | | | / |\\\\ \\\\| \\\\\");\n\tprintSlow (\" `-. .-'| |/ / | | | | | | \\\\ \\\\// | | | | | || | | | | |_\\\\ || |\\\\_|\");\n\tprintSlow (\" | | | || \\\\_| | | | /_\\\\ \\\\ / | |` | | | || | | | | .---'| |\");\n\tprintSlow (\" | | | |\\\\___,_\\\\ /_\\\\ _ // | | | \\\\_/ || | | | | | /\\\\| |\");\n\tprintSlow (\" /_\\\\ | | //_____// .||` `._,' | | | | \\\\ `-' /| |\");\n\tprintSlow (\" /_\\\\ `------' \\\\ | AND `.\\\\ | | `._,' /_\\\\\");\n\tprintSlow (\" \\\\| HIS `.\\\\\");\n\tprintSlow (\" __ __ _ _ _ _ \");\n\tprintSlow (\" | \\\\/ | (_) | | /\\\\ | | | | \");\n\tprintSlow (\" | \\\\ / | __ _ __ _ _ ___ __ _| | / \\\\ __| |_ _____ _ __ | |_ _ _ _ __ ___ \");\n\tprintSlow (\" | |\\\\/| |/ _` |/ _` | |/ __/ _` | | / /\\\\ \\\\ / _` \\\\ \\\\ / / _ \\\\ '_ \\\\| __| | | | '__/ _ \\\\\");\n\tprintSlow (\" | | | | (_| | (_| | | (_| (_| | | / ____ \\\\ (_| |\\\\ V / __/ | | | |_| |_| | | | __/\");\n\tprintSlow (\" |_| |_|\\\\__,_|\\\\__, |_|\\\\___\\\\__,_|_| /_/ \\\\_\\\\__,_| \\\\_/ \\\\___|_| |_|\\\\__|\\\\__,_|_| \\\\___|\");\n\tprintSlow (\" __/ | \");\n\tprintSlow (\" |___/ \\n\\n\\n\");\n\n\n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "double area() {\nSystem.out.println(\"Inside Area for Triangle.\");\nreturn dim1 * dim2 / 2;\n}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }", "public SoNode \ngetCurPathTail() \n{\n//#ifdef DEBUG\n if (currentpath.getTail() != (SoFullPath.cast(getCurPath())).getTail()){\n SoDebugError.post(\"SoAction::getCurPathTail\\n\", \n \"Inconsistent path tail. Did you change the scene graph\\n\"+\n \"During traversal?\\n\");\n }\n//#endif /*DEBUG*/\n return(currentpath.getTail());\n}", "@Override\n\tpublic void breath() {\n\n\t}", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "@Override\n\tpublic void div(double dx, double dy) {\n\t\t\n\t}", "public PathCode getCurPathCode() { return /*appliedTo.curPathCode*/currentpathcode;}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "static String division (String s1, String s2) {\r\n if (s2==null || s2.length()==0) return s1;\r\n return product (s1, invert(s2));\r\n }", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}", "public void star(float x, float y, float r, float R) {\n float angle = TWO_PI / 5;\n float halfAngle = angle/2.0f;\n beginShape();\n noStroke();\n for (float a = 0; a < TWO_PI; a += angle) {\n float sx = x + cos(a) * r;\n float sy = y + sin(a) * r;\n vertex(sx, sy);\n sx = x + cos(a+halfAngle) * R;\n sy = y + sin(a+halfAngle) * R;\n vertex(sx, sy);\n }\n endShape(CLOSE);\n}", "@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}", "public int upright();", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void backSlash() {\n text.append(\"\\\\\");\n }", "public static void main(String[] args){\t\n\t\tchar op = '/';\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"첫번째 정수입니다.\");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"두번째 정수입니다.\");\n\t\tint num2 = scan.nextInt();\n\t\tint num3=0;\n\t\tif(op=='+'){\n\t\t\tnum3 = num1+num2;\n\t\t}\n\t\telse if(op=='-'){\n\t\t\tnum3 = num1-num2;\n\t\t}\n\t\telse if(op=='*'){\n\t\t\tnum3 = num1*num2;\n\t\t}\n\t\telse if(op=='/'){\n\t\t\tif(num2==0){\n\t\t\tSystem.out.println(\"오류입니다.\");\n\t\t}\n\t\t\t\n\t\t\tnum3 = num1/num2;\n\t\t}\n\t\tSystem.out.printf(\"%d%c%d=%d\" ,num1,op,num2,num3);\n\t\t\n\t\t\n\t}", "public final void testSlash() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnðýþnn\");\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnønn\");\n\t\tassertSingleResult(\"8\", fldName, \"nnunn\");\n\t}", "AngleResource inclination();", "public abstract void squareRootThis();", "public UniquePathsII() {\n\t\t// Initialization here. \n\t\t//\t\tcount = 0;\n\t}", "@Override\n\tpublic void space() {\n\t\t\n\t}" ]
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.49150687", "0.4878608", "0.4873821", "0.4873821", "0.48564616", "0.48415148", "0.4840844", "0.48408422", "0.48392275", "0.48380315", "0.48342562", "0.48335755", "0.48189583", "0.4816532", "0.4803844", "0.47991633", "0.4790358", "0.4785782", "0.47707185", "0.47659388", "0.47607136", "0.4756167", "0.47525582", "0.4750556", "0.47465262", "0.47439283", "0.47427607", "0.47368544", "0.47283906", "0.4719052", "0.4715935", "0.4711951", "0.47046372", "0.47023433", "0.46957722", "0.46894073", "0.46882662", "0.46872112", "0.46870187", "0.46838596", "0.46826214", "0.46721044", "0.4671648", "0.46691796", "0.46658975", "0.46658975", "0.46634644", "0.46593347", "0.46569487", "0.46532407", "0.46484405", "0.46472803", "0.4647124", "0.46426368", "0.46379653", "0.4635675", "0.46356165", "0.46343538", "0.46343073", "0.46324328", "0.46307802", "0.46292034", "0.46249497", "0.46220893", "0.46138567", "0.46130696", "0.46125302", "0.4608751", "0.46084386", "0.4605762", "0.46052104", "0.4602023", "0.46015334", "0.45995793", "0.45948967", "0.459342", "0.45930445", "0.45923406", "0.45910415", "0.45878932", "0.45863274" ]
0.0
-1
/ / / /
public static asv a(List paramList, Random paramRandom, int paramInt1, int paramInt2, int paramInt3, int paramInt4) /* */ { /* 631 */ asv localasv = new asv(paramInt1, paramInt2 - 5, paramInt3, paramInt1, paramInt2 + 2, paramInt3); /* */ /* 633 */ switch (paramInt4) { /* */ case 2: /* 635 */ localasv.d = (paramInt1 + 2); /* 636 */ localasv.c = (paramInt3 - 8); /* 637 */ break; /* */ case 0: /* 639 */ localasv.d = (paramInt1 + 2); /* 640 */ localasv.f = (paramInt3 + 8); /* 641 */ break; /* */ case 1: /* 643 */ localasv.a = (paramInt1 - 8); /* 644 */ localasv.f = (paramInt3 + 2); /* 645 */ break; /* */ case 3: /* 647 */ localasv.d = (paramInt1 + 8); /* 648 */ localasv.f = (paramInt3 + 2); /* */ } /* */ /* */ /* 652 */ if (avk.a(paramList, localasv) != null) { /* 653 */ return null; /* */ } /* */ /* 656 */ return localasv; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void gored() {\n\t\t\n\t}", "public String toString(){ return \"DIV\";}", "private int parent(int i){return (i-1)/2;}", "public String ring();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int leftChild(int i){return 2*i+1;}", "double passer();", "static void pyramid(){\n\t}", "public void stg() {\n\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void mo33732Px();", "Operations operations();", "private int rightChild(int i){return 2*i+2;}", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "@Override\n\tpublic float dividir(float op1, float op2) {\n\t\treturn op1 / op2;\n\t}", "void sharpen();", "void sharpen();", "double defendre();", "public int generateRoshambo(){\n ;]\n\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "String divideAtWhite()[]{ return null; }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double volume(){\n return width*height*depth;\n }", "public void skystonePos4() {\n }", "void ringBell() {\n\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\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}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }", "public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }", "void mo21076g();", "private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "Parallelogram(){\n length = width = height = 0;\n }", "public Divide(){\n }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "@Override\r\n\tpublic void div(int x, int y) {\n\t\t\r\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "@Override\npublic void div(int a, int b) {\n\t\n}", "private double triangleBase() {\n return cellWidth() / BASE_WIDTH;\n }", "double volume() {\n\treturn width*height*depth;\n}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "int getWidth() {return width;}", "int width();", "public void divide(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n }\n }", "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }", "public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }", "@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "public double getWidth() { return _width<0? -_width : _width; }", "double getPerimeter(){\n return 2*height+width;\n }", "public void mo3376r() {\n }", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public static void main (String[] args){\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n if(n%2==1)\n {\n n=n/2;\n n++;\n }\n else\n {\n n=n/2;\n }\n for(int i=1;i<=n;i++)\n {\n for(int k=1;k<=i-1;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<=((2*n-1)-2*(i-1));j++)\n {\n if(j==1||j==((2*n-1)-2*(i-1)))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n for(int i=2;i<=n;i++)\n {\n for(int k=1;k<=n-i;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<i*2;j++)\n {\n if(j==1||j==(i*2-1))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n\t}", "public RMPath getPath() { return RMPath.unitRectPath; }", "void walk() {\n\t\t\n\t}", "public static void giant() {\n System.out.println(\" --------- \");\n System.out.println(\" | / \\\\| \");\n System.out.println(\" ZZZZZH | O | HZZZZZ \");\n System.out.println(\" H ----------- H \");\n System.out.println(\" ZZZZZHHHHHHHHHHHHHHHHHHHHHZZZZZ \");\n System.out.println(\" H HHHHHHHHHHH H \");\n System.out.println(\" ZZZZZH HHHHHHHHHHH HZZZZZ \");\n System.out.println(\" HHHHHHHHHHH \");\n System.out.println(\" HHH HHH \");\n System.out.println(\" HHH HHH \");\n }", "public void title ()\n {\n\tprintSlow (\" _ __\");\n\tprintSlow (\" ___ | ' \\\\\");\n\tprintSlow (\" ___ \\\\ / ___ ,'\\\\_ | .-. \\\\ /|\");\n\tprintSlow (\" \\\\ / | |,'__ \\\\ ,'\\\\_ | \\\\ | | | | ,' |_ /|\");\n\tprintSlow (\" _ | | | |\\\\/ \\\\ \\\\ | \\\\ | |\\\\_| _ | |_| | _ '-. .-',' |_ _\");\n\tprintSlow (\" // | | | |____| | | |\\\\_|| |__ // | | ,'_`. | | '-. .-',' `. ,'\\\\_\");\n\tprintSlow (\" \\\\\\\\_| |_,' .-, _ | | | | |\\\\ \\\\ // .| |\\\\_/ | / \\\\ || | | | / |\\\\ \\\\| \\\\\");\n\tprintSlow (\" `-. .-'| |/ / | | | | | | \\\\ \\\\// | | | | | || | | | | |_\\\\ || |\\\\_|\");\n\tprintSlow (\" | | | || \\\\_| | | | /_\\\\ \\\\ / | |` | | | || | | | | .---'| |\");\n\tprintSlow (\" | | | |\\\\___,_\\\\ /_\\\\ _ // | | | \\\\_/ || | | | | | /\\\\| |\");\n\tprintSlow (\" /_\\\\ | | //_____// .||` `._,' | | | | \\\\ `-' /| |\");\n\tprintSlow (\" /_\\\\ `------' \\\\ | AND `.\\\\ | | `._,' /_\\\\\");\n\tprintSlow (\" \\\\| HIS `.\\\\\");\n\tprintSlow (\" __ __ _ _ _ _ \");\n\tprintSlow (\" | \\\\/ | (_) | | /\\\\ | | | | \");\n\tprintSlow (\" | \\\\ / | __ _ __ _ _ ___ __ _| | / \\\\ __| |_ _____ _ __ | |_ _ _ _ __ ___ \");\n\tprintSlow (\" | |\\\\/| |/ _` |/ _` | |/ __/ _` | | / /\\\\ \\\\ / _` \\\\ \\\\ / / _ \\\\ '_ \\\\| __| | | | '__/ _ \\\\\");\n\tprintSlow (\" | | | | (_| | (_| | | (_| (_| | | / ____ \\\\ (_| |\\\\ V / __/ | | | |_| |_| | | | __/\");\n\tprintSlow (\" |_| |_|\\\\__,_|\\\\__, |_|\\\\___\\\\__,_|_| /_/ \\\\_\\\\__,_| \\\\_/ \\\\___|_| |_|\\\\__|\\\\__,_|_| \\\\___|\");\n\tprintSlow (\" __/ | \");\n\tprintSlow (\" |___/ \\n\\n\\n\");\n\n\n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "double area() {\nSystem.out.println(\"Inside Area for Triangle.\");\nreturn dim1 * dim2 / 2;\n}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }", "public SoNode \ngetCurPathTail() \n{\n//#ifdef DEBUG\n if (currentpath.getTail() != (SoFullPath.cast(getCurPath())).getTail()){\n SoDebugError.post(\"SoAction::getCurPathTail\\n\", \n \"Inconsistent path tail. Did you change the scene graph\\n\"+\n \"During traversal?\\n\");\n }\n//#endif /*DEBUG*/\n return(currentpath.getTail());\n}", "@Override\n\tpublic void breath() {\n\n\t}", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "@Override\n\tpublic void div(double dx, double dy) {\n\t\t\n\t}", "public PathCode getCurPathCode() { return /*appliedTo.curPathCode*/currentpathcode;}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "static String division (String s1, String s2) {\r\n if (s2==null || s2.length()==0) return s1;\r\n return product (s1, invert(s2));\r\n }", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}", "public void star(float x, float y, float r, float R) {\n float angle = TWO_PI / 5;\n float halfAngle = angle/2.0f;\n beginShape();\n noStroke();\n for (float a = 0; a < TWO_PI; a += angle) {\n float sx = x + cos(a) * r;\n float sy = y + sin(a) * r;\n vertex(sx, sy);\n sx = x + cos(a+halfAngle) * R;\n sy = y + sin(a+halfAngle) * R;\n vertex(sx, sy);\n }\n endShape(CLOSE);\n}", "@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}", "public int upright();", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void backSlash() {\n text.append(\"\\\\\");\n }", "public static void main(String[] args){\t\n\t\tchar op = '/';\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"첫번째 정수입니다.\");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"두번째 정수입니다.\");\n\t\tint num2 = scan.nextInt();\n\t\tint num3=0;\n\t\tif(op=='+'){\n\t\t\tnum3 = num1+num2;\n\t\t}\n\t\telse if(op=='-'){\n\t\t\tnum3 = num1-num2;\n\t\t}\n\t\telse if(op=='*'){\n\t\t\tnum3 = num1*num2;\n\t\t}\n\t\telse if(op=='/'){\n\t\t\tif(num2==0){\n\t\t\tSystem.out.println(\"오류입니다.\");\n\t\t}\n\t\t\t\n\t\t\tnum3 = num1/num2;\n\t\t}\n\t\tSystem.out.printf(\"%d%c%d=%d\" ,num1,op,num2,num3);\n\t\t\n\t\t\n\t}", "public final void testSlash() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnðýþnn\");\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnønn\");\n\t\tassertSingleResult(\"8\", fldName, \"nnunn\");\n\t}", "AngleResource inclination();", "public abstract void squareRootThis();", "public UniquePathsII() {\n\t\t// Initialization here. \n\t\t//\t\tcount = 0;\n\t}", "@Override\n\tpublic void space() {\n\t\t\n\t}" ]
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.49150687", "0.4878608", "0.4873821", "0.4873821", "0.48564616", "0.48415148", "0.4840844", "0.48408422", "0.48392275", "0.48380315", "0.48342562", "0.48335755", "0.48189583", "0.4816532", "0.4803844", "0.47991633", "0.4790358", "0.4785782", "0.47707185", "0.47659388", "0.47607136", "0.4756167", "0.47525582", "0.4750556", "0.47465262", "0.47439283", "0.47427607", "0.47368544", "0.47283906", "0.4719052", "0.4715935", "0.4711951", "0.47046372", "0.47023433", "0.46957722", "0.46894073", "0.46882662", "0.46872112", "0.46870187", "0.46838596", "0.46826214", "0.46721044", "0.4671648", "0.46691796", "0.46658975", "0.46658975", "0.46634644", "0.46593347", "0.46569487", "0.46532407", "0.46484405", "0.46472803", "0.4647124", "0.46426368", "0.46379653", "0.4635675", "0.46356165", "0.46343538", "0.46343073", "0.46324328", "0.46307802", "0.46292034", "0.46249497", "0.46220893", "0.46138567", "0.46130696", "0.46125302", "0.4608751", "0.46084386", "0.4605762", "0.46052104", "0.4602023", "0.46015334", "0.45995793", "0.45948967", "0.459342", "0.45930445", "0.45923406", "0.45910415", "0.45878932", "0.45863274" ]
0.0
-1
/ / / /
public boolean a(ahb paramahb, Random paramRandom, asv paramasv) /* */ { /* 684 */ if (a(paramahb, paramasv)) { /* 685 */ return false; /* */ } /* */ /* */ /* 689 */ a(paramahb, paramasv, 0, 5, 0, 2, 7, 1, ajn.a, ajn.a, false); /* */ /* 691 */ a(paramahb, paramasv, 0, 0, 7, 2, 2, 8, ajn.a, ajn.a, false); /* */ /* 693 */ for (int i = 0; i < 5; i++) { /* 694 */ a(paramahb, paramasv, 0, 5 - i - (i < 4 ? 1 : 0), 2 + i, 2, 7 - i, 2 + i, ajn.a, ajn.a, false); /* */ } /* */ /* 697 */ return true; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void gored() {\n\t\t\n\t}", "public String toString(){ return \"DIV\";}", "private int parent(int i){return (i-1)/2;}", "public String ring();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int leftChild(int i){return 2*i+1;}", "double passer();", "static void pyramid(){\n\t}", "public void stg() {\n\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void mo33732Px();", "Operations operations();", "private int rightChild(int i){return 2*i+2;}", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "@Override\n\tpublic float dividir(float op1, float op2) {\n\t\treturn op1 / op2;\n\t}", "void sharpen();", "void sharpen();", "double defendre();", "public int generateRoshambo(){\n ;]\n\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "String divideAtWhite()[]{ return null; }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double volume(){\n return width*height*depth;\n }", "public void skystonePos4() {\n }", "void ringBell() {\n\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\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}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }", "public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }", "void mo21076g();", "private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "Parallelogram(){\n length = width = height = 0;\n }", "public Divide(){\n }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "@Override\r\n\tpublic void div(int x, int y) {\n\t\t\r\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "@Override\npublic void div(int a, int b) {\n\t\n}", "private double triangleBase() {\n return cellWidth() / BASE_WIDTH;\n }", "double volume() {\n\treturn width*height*depth;\n}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "int getWidth() {return width;}", "int width();", "public void divide(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n }\n }", "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }", "public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }", "@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "public double getWidth() { return _width<0? -_width : _width; }", "double getPerimeter(){\n return 2*height+width;\n }", "public void mo3376r() {\n }", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public static void main (String[] args){\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n if(n%2==1)\n {\n n=n/2;\n n++;\n }\n else\n {\n n=n/2;\n }\n for(int i=1;i<=n;i++)\n {\n for(int k=1;k<=i-1;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<=((2*n-1)-2*(i-1));j++)\n {\n if(j==1||j==((2*n-1)-2*(i-1)))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n for(int i=2;i<=n;i++)\n {\n for(int k=1;k<=n-i;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<i*2;j++)\n {\n if(j==1||j==(i*2-1))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n\t}", "public RMPath getPath() { return RMPath.unitRectPath; }", "void walk() {\n\t\t\n\t}", "public static void giant() {\n System.out.println(\" --------- \");\n System.out.println(\" | / \\\\| \");\n System.out.println(\" ZZZZZH | O | HZZZZZ \");\n System.out.println(\" H ----------- H \");\n System.out.println(\" ZZZZZHHHHHHHHHHHHHHHHHHHHHZZZZZ \");\n System.out.println(\" H HHHHHHHHHHH H \");\n System.out.println(\" ZZZZZH HHHHHHHHHHH HZZZZZ \");\n System.out.println(\" HHHHHHHHHHH \");\n System.out.println(\" HHH HHH \");\n System.out.println(\" HHH HHH \");\n }", "public void title ()\n {\n\tprintSlow (\" _ __\");\n\tprintSlow (\" ___ | ' \\\\\");\n\tprintSlow (\" ___ \\\\ / ___ ,'\\\\_ | .-. \\\\ /|\");\n\tprintSlow (\" \\\\ / | |,'__ \\\\ ,'\\\\_ | \\\\ | | | | ,' |_ /|\");\n\tprintSlow (\" _ | | | |\\\\/ \\\\ \\\\ | \\\\ | |\\\\_| _ | |_| | _ '-. .-',' |_ _\");\n\tprintSlow (\" // | | | |____| | | |\\\\_|| |__ // | | ,'_`. | | '-. .-',' `. ,'\\\\_\");\n\tprintSlow (\" \\\\\\\\_| |_,' .-, _ | | | | |\\\\ \\\\ // .| |\\\\_/ | / \\\\ || | | | / |\\\\ \\\\| \\\\\");\n\tprintSlow (\" `-. .-'| |/ / | | | | | | \\\\ \\\\// | | | | | || | | | | |_\\\\ || |\\\\_|\");\n\tprintSlow (\" | | | || \\\\_| | | | /_\\\\ \\\\ / | |` | | | || | | | | .---'| |\");\n\tprintSlow (\" | | | |\\\\___,_\\\\ /_\\\\ _ // | | | \\\\_/ || | | | | | /\\\\| |\");\n\tprintSlow (\" /_\\\\ | | //_____// .||` `._,' | | | | \\\\ `-' /| |\");\n\tprintSlow (\" /_\\\\ `------' \\\\ | AND `.\\\\ | | `._,' /_\\\\\");\n\tprintSlow (\" \\\\| HIS `.\\\\\");\n\tprintSlow (\" __ __ _ _ _ _ \");\n\tprintSlow (\" | \\\\/ | (_) | | /\\\\ | | | | \");\n\tprintSlow (\" | \\\\ / | __ _ __ _ _ ___ __ _| | / \\\\ __| |_ _____ _ __ | |_ _ _ _ __ ___ \");\n\tprintSlow (\" | |\\\\/| |/ _` |/ _` | |/ __/ _` | | / /\\\\ \\\\ / _` \\\\ \\\\ / / _ \\\\ '_ \\\\| __| | | | '__/ _ \\\\\");\n\tprintSlow (\" | | | | (_| | (_| | | (_| (_| | | / ____ \\\\ (_| |\\\\ V / __/ | | | |_| |_| | | | __/\");\n\tprintSlow (\" |_| |_|\\\\__,_|\\\\__, |_|\\\\___\\\\__,_|_| /_/ \\\\_\\\\__,_| \\\\_/ \\\\___|_| |_|\\\\__|\\\\__,_|_| \\\\___|\");\n\tprintSlow (\" __/ | \");\n\tprintSlow (\" |___/ \\n\\n\\n\");\n\n\n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "double area() {\nSystem.out.println(\"Inside Area for Triangle.\");\nreturn dim1 * dim2 / 2;\n}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }", "public SoNode \ngetCurPathTail() \n{\n//#ifdef DEBUG\n if (currentpath.getTail() != (SoFullPath.cast(getCurPath())).getTail()){\n SoDebugError.post(\"SoAction::getCurPathTail\\n\", \n \"Inconsistent path tail. Did you change the scene graph\\n\"+\n \"During traversal?\\n\");\n }\n//#endif /*DEBUG*/\n return(currentpath.getTail());\n}", "@Override\n\tpublic void breath() {\n\n\t}", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "@Override\n\tpublic void div(double dx, double dy) {\n\t\t\n\t}", "public PathCode getCurPathCode() { return /*appliedTo.curPathCode*/currentpathcode;}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "static String division (String s1, String s2) {\r\n if (s2==null || s2.length()==0) return s1;\r\n return product (s1, invert(s2));\r\n }", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}", "public void star(float x, float y, float r, float R) {\n float angle = TWO_PI / 5;\n float halfAngle = angle/2.0f;\n beginShape();\n noStroke();\n for (float a = 0; a < TWO_PI; a += angle) {\n float sx = x + cos(a) * r;\n float sy = y + sin(a) * r;\n vertex(sx, sy);\n sx = x + cos(a+halfAngle) * R;\n sy = y + sin(a+halfAngle) * R;\n vertex(sx, sy);\n }\n endShape(CLOSE);\n}", "@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}", "public int upright();", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void backSlash() {\n text.append(\"\\\\\");\n }", "public static void main(String[] args){\t\n\t\tchar op = '/';\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"첫번째 정수입니다.\");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"두번째 정수입니다.\");\n\t\tint num2 = scan.nextInt();\n\t\tint num3=0;\n\t\tif(op=='+'){\n\t\t\tnum3 = num1+num2;\n\t\t}\n\t\telse if(op=='-'){\n\t\t\tnum3 = num1-num2;\n\t\t}\n\t\telse if(op=='*'){\n\t\t\tnum3 = num1*num2;\n\t\t}\n\t\telse if(op=='/'){\n\t\t\tif(num2==0){\n\t\t\tSystem.out.println(\"오류입니다.\");\n\t\t}\n\t\t\t\n\t\t\tnum3 = num1/num2;\n\t\t}\n\t\tSystem.out.printf(\"%d%c%d=%d\" ,num1,op,num2,num3);\n\t\t\n\t\t\n\t}", "public final void testSlash() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnðýþnn\");\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnønn\");\n\t\tassertSingleResult(\"8\", fldName, \"nnunn\");\n\t}", "AngleResource inclination();", "public abstract void squareRootThis();", "public UniquePathsII() {\n\t\t// Initialization here. \n\t\t//\t\tcount = 0;\n\t}", "@Override\n\tpublic void space() {\n\t\t\n\t}" ]
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.49150687", "0.4878608", "0.4873821", "0.4873821", "0.48564616", "0.48415148", "0.4840844", "0.48408422", "0.48392275", "0.48380315", "0.48342562", "0.48335755", "0.48189583", "0.4816532", "0.4803844", "0.47991633", "0.4790358", "0.4785782", "0.47707185", "0.47659388", "0.47607136", "0.4756167", "0.47525582", "0.4750556", "0.47465262", "0.47439283", "0.47427607", "0.47368544", "0.47283906", "0.4719052", "0.4715935", "0.4711951", "0.47046372", "0.47023433", "0.46957722", "0.46894073", "0.46882662", "0.46872112", "0.46870187", "0.46838596", "0.46826214", "0.46721044", "0.4671648", "0.46691796", "0.46658975", "0.46658975", "0.46634644", "0.46593347", "0.46569487", "0.46532407", "0.46484405", "0.46472803", "0.4647124", "0.46426368", "0.46379653", "0.4635675", "0.46356165", "0.46343538", "0.46343073", "0.46324328", "0.46307802", "0.46292034", "0.46249497", "0.46220893", "0.46138567", "0.46130696", "0.46125302", "0.4608751", "0.46084386", "0.4605762", "0.46052104", "0.4602023", "0.46015334", "0.45995793", "0.45948967", "0.459342", "0.45930445", "0.45923406", "0.45910415", "0.45878932", "0.45863274" ]
0.0
-1
AdmobBannerHelper.init(mContext, (ViewGroup) getView().findViewById(R.id.admob_banner)) .setAdUnitId(getString(R.string.smart_banner_ad_id)) .setAdSize(AdSize.SMART_BANNER) .loadAd();
private void initBannerAdmob() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initAdView() {\n MobileAds.initialize(this, mContext.getString(R.string.banner_ad_unit_id));\n\n // Create an ad request. Check logcat output for the hashed device ID to\n // get test ads on a physical device. e.g.\n // \"Use AdRequest.Builder.addTestDevice(\"ABCDEF012345\") to get test ads on this device.\"\n AdRequest adRequest = new AdRequest.Builder()\n .addTestDevice(AdRequest.DEVICE_ID_EMULATOR)\n .build();\n mAdView.loadAd(adRequest);\n }", "private void requestNewBanner(){\n AdView mAdView = (AdView) findViewById(R.id.adView);\n AdRequest adRequest = new AdRequest.Builder().build();\n mAdView.loadAd(adRequest);\n }", "@Override\n public void onAdLoaded(BannerAd ad) {\n Log.d(TAG, \"Banner successfully loaded\");\n\n }", "private void bannerAds() {\n Log.d(TAG, \"bannerAds invoked\");\n BannerAdView bannerAdView = new BannerAdView(MainActivity.this);\n bannerAdView.loadOnAttach();\n FrameLayout bannerPlaceholder = findViewById(R.id.banner_placeholder);\n bannerPlaceholder.addView(bannerAdView);\n bannerAdView = new BannerAdView(this)\n .withListener(new BannerAdListener() {\n @Override\n public void onAdError(BannerAd ad, String error) {\n // Called when the banner triggered an error\n Log.d(TAG, \"Something went wrong with the request: \" + error);\n }\n\n @Override\n public void onAdLoaded(BannerAd ad) {\n // Called when the banner has been successfully loaded\n Log.d(TAG, \"Banner successfully loaded\");\n\n }\n\n @Override\n public void onAdClicked(BannerAd ad) {\n // Called when the banner was clicked\n Log.d(TAG, \"User clicked on banner\");\n }\n\n @Override\n public void onAdLeftApplication(BannerAd ad) {\n // Called when the banner interaction causes an external application to be open\n Log.d(TAG, \"User directed out of app by banner\");\n }\n });\n }", "@Override\n public void onAdLoaded() {\n Log.d(\"TAG\",\"Ad loaded\");\n }", "public void createBanner(){\n \t\tApplicationData applicationData = SplashActivity.getApplicationData();\n \t\tBannerDataItem banner = applicationData.getBanner();\n \t\tif (banner!=null){\n \t\t\tLinearLayout bannerLayout;\n \t\t\t\n \t\t\t//Banner position\n \t\t\tswitch (banner.getPosition()){\n \t\t\tcase BannerDataItem.TOP :\n \t\t\t\tbannerLayout = (LinearLayout) findViewById(R.id.bannerTopLayout);\n \t\t\t\tbreak; \n \t\t\tcase BannerDataItem.BOTTOM :\n \t\t\t\tbannerLayout = (LinearLayout) findViewById(R.id.bannerBottomLayout);\n \t\t\t\tbreak;\n \t\t\tdefault:\n \t\t\t\tbannerLayout = (LinearLayout) findViewById(R.id.bannerTopLayout);\n \t\t\t}\n \t\t\t\n \t\t\t//Banner data\n \t\t\tString id = banner.getId();\n \t\t\t\n \t\t\tAdView adView = new AdView(this, AdSize.SMART_BANNER, id);\n \t\t\tbannerLayout.addView(adView);\n \t\t\t\n \t\t\tAdRequest request = new AdRequest();\n \t\t\t\n \t\t\t//Just for testing\n \t\t\trequest.addTestDevice(AdRequest.TEST_EMULATOR);\n \t\t\tadView.loadAd(request);\n \t\t\t\n \t\t}\n \t}", "private void ads(View view){\n String ID = \"95b9dd1c47e6407db176bc2398bda2c8323030f814183567\" ;\n\n Appodeal.initialize((Activity)view.getContext(),ID,Appodeal.INTERSTITIAL);\n Appodeal.show((Activity)view.getContext(), Appodeal.INTERSTITIAL);\n Appodeal.isLoaded(Appodeal.INTERSTITIAL);\n\n }", "@Override\n public void onAdLoaded(Ad ad) {\n }", "@Override\n public void onAdLoaded(Ad ad) {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\r\n public void onAdLoaded() {\n }", "private void populateUnifiedNativeAdView(UnifiedNativeAd nativeAd, UnifiedNativeAdView adView) {\n MediaView mediaView = adView.findViewById(R.id.ad_media);\n adView.setMediaView(mediaView);\n\n\n // Set other ad assets.\n adView.setHeadlineView(adView.findViewById(R.id.ad_headline));\n adView.setBodyView(adView.findViewById(R.id.ad_body));\n adView.setCallToActionView(adView.findViewById(R.id.ad_call_to_action));\n adView.setIconView(adView.findViewById(R.id.ad_app_icon));\n adView.setPriceView(adView.findViewById(R.id.ad_price));\n adView.setStarRatingView(adView.findViewById(R.id.ad_stars));\n adView.setStoreView(adView.findViewById(R.id.ad_store));\n adView.setAdvertiserView(adView.findViewById(R.id.ad_advertiser));\n\n // The headline is guaranteed to be in every UnifiedNativeAd.\n ((TextView) adView.getHeadlineView()).setText(nativeAd.getHeadline());\n\n // These assets aren't guaranteed to be in every UnifiedNativeAd, so it's important to\n // check before trying to display them.\n if (nativeAd.getBody() == null) {\n adView.getBodyView().setVisibility(View.INVISIBLE);\n } else {\n adView.getBodyView().setVisibility(View.VISIBLE);\n ((TextView) adView.getBodyView()).setText(nativeAd.getBody());\n }\n\n if (nativeAd.getCallToAction() == null) {\n adView.getCallToActionView().setVisibility(View.INVISIBLE);\n } else {\n adView.getCallToActionView().setVisibility(View.VISIBLE);\n ((Button) adView.getCallToActionView()).setText(nativeAd.getCallToAction());\n }\n\n if (nativeAd.getIcon() == null) {\n adView.getIconView().setVisibility(View.GONE);\n } else {\n ((ImageView) adView.getIconView()).setImageDrawable(\n nativeAd.getIcon().getDrawable());\n adView.getIconView().setVisibility(View.VISIBLE);\n }\n\n if (nativeAd.getPrice() == null) {\n adView.getPriceView().setVisibility(View.INVISIBLE);\n } else {\n adView.getPriceView().setVisibility(View.VISIBLE);\n ((TextView) adView.getPriceView()).setText(nativeAd.getPrice());\n }\n\n if (nativeAd.getStore() == null) {\n adView.getStoreView().setVisibility(View.INVISIBLE);\n } else {\n adView.getStoreView().setVisibility(View.VISIBLE);\n ((TextView) adView.getStoreView()).setText(nativeAd.getStore());\n }\n\n if (nativeAd.getStarRating() == null) {\n adView.getStarRatingView().setVisibility(View.INVISIBLE);\n } else {\n ((RatingBar) adView.getStarRatingView())\n .setRating(nativeAd.getStarRating().floatValue());\n adView.getStarRatingView().setVisibility(View.VISIBLE);\n }\n\n if (nativeAd.getAdvertiser() == null) {\n adView.getAdvertiserView().setVisibility(View.INVISIBLE);\n } else {\n ((TextView) adView.getAdvertiserView()).setText(nativeAd.getAdvertiser());\n adView.getAdvertiserView().setVisibility(View.VISIBLE);\n }\n\n // This method tells the Google Mobile Ads SDK that you have finished populating your\n // native ad view with this native ad. The SDK will populate the adView's MediaView\n // with the media content from this native ad.\n adView.setNativeAd(nativeAd);\n\n // Get the video controller for the ad. One will always be provided, even if the ad doesn't\n // have a video asset.\n VideoController vc = nativeAd.getVideoController();\n\n // Updates the UI to say whether or not this ad has a video asset.\n if (vc.hasVideoContent()) {/*\n videoStatus.setText(String.format(Locale.getDefault(),\n \"Video status: Ad contains a %.2f:1 video asset.\",\n vc.getAspectRatio()));*/\n\n // Create a new VideoLifecycleCallbacks object and pass it to the VideoController. The\n // VideoController will call methods on this object when events occur in the video\n // lifecycle.\n vc.setVideoLifecycleCallbacks(new VideoController.VideoLifecycleCallbacks() {\n @Override\n public void onVideoEnd() {\n // Publishers should allow native ads to complete video playback before\n // refreshing or replacing them with another ad in the same UI location.\n// refresh.setEnabled(true);\n// videoStatus.setText(\"Video status: Video playback has ended.\");\n super.onVideoEnd();\n }\n });\n } else {\n// videoStatus.setText(\"Video status: Ad does not contain a video asset.\");\n// refresh.setEnabled(true);\n }\n }", "public void bannerSetup(View view){\n }", "@Override\n public void setData(final AdMob adMob){\n\n AdRequest adRequest = new AdRequest.Builder()\n .build();\n adMobView.loadAd(adRequest);\n }", "private void setHuvleAD() {\n /*\n 정적 구현부와 동적구현부는 참고하시어 하나만 적용하시기 바랍니다.(With checking the implementation guide below, please apply Implementation either only Dynamic or Static.)\n initBannerView 아이디 \"test\" 값은 http://ssp.huvle.com/ 에서 가입 > 매체생성 > zoneid 입력후 테스트 하시고, release시점에 허블에 문의주시면 인증됩니다. 배너사이즈는 변경하지 마세요.(For the “test” value below, please go to http://ssp.huvle.com/ to sign up > create media > Test your app after typing zoneid. Next, contact Huvle before releasing your app for authentication. You must not change the banner size.)\n */\n // 정적으로 구현시(When if apply Dynamic Implementation) BannerAdView Start\n bav = findViewById(R.id.banner_view);\n initBannerView(bav, \"test\",320,50); // 300 * 250 배너 테스트시(Example for testing 300 * 250 banner) initBannerView(staticBav, \"testbig\",300,250);\n\n // 동적으로 구현시(When if apply Static Implementation) BannerAdView Start\n /*\n final BannerAdView bav = new BannerAdView(this);\n initBannerView(bav, \"test\",320,50); // 300 * 250 배너 테스트시 initBannerView(staticBav, \"testbig\",300,250);\n RelativeLayout layout = (RelativeLayout) findViewById(R.id.main_content);\n RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);\n layoutParams.addRule(RelativeLayout.CENTER_HORIZONTAL);\n bav.setLayoutParams(layoutParams);\n layout.addView(bav);\n */\n }", "@Override\n public void onAdLoaded(Ad ad) {\n Log.d(TAG, \"Interstitial ad is loaded and ready to be displayed!\");\n // Show the ad\n\n }", "@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"xxx WelcomeAd onAdLoaded\");\n }", "private void addBannerAds() {\n // Loop through the items array and place a new banner ad in every ith position in\n // the items List.\n for (int i = 0; i <= recyclerViewItems.size(); i += ITEMS_PER_AD) {\n final AdView adView = new AdView(MainActivity.this);\n adView.setAdSize(AdSize.BANNER);\n adView.setAdUnitId(AD_UNIT_ID);\n recyclerViewItems.add(i, adView);\n }\n }", "void requestBannerAd(@NonNull Context context, @NonNull String appId, @NonNull AdSize adSize) {\n adLayout =\n new RelativeLayout(context) {\n @Override\n protected void onAttachedToWindow() {\n super.onAttachedToWindow();\n attach();\n }\n\n @Override\n protected void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n detach();\n }\n };\n int adLayoutHeight = adSize.getHeightInPixels(context);\n // If the height is 0 (e.g. for inline adaptive banner requests), use the closest supported size\n // as the height of the adLayout wrapper.\n if (adLayoutHeight <= 0) {\n float density = context.getResources().getDisplayMetrics().density;\n adLayoutHeight = Math.round(mAdConfig.getAdSize().getHeight() * density);\n }\n RelativeLayout.LayoutParams adViewLayoutParams =\n new RelativeLayout.LayoutParams(adSize.getWidthInPixels(context), adLayoutHeight);\n adLayout.setLayoutParams(adViewLayoutParams);\n\n Log.d(TAG, \"requestBannerAd: \" + this);\n mPendingRequestBanner = true;\n VungleInitializer.getInstance()\n .initialize(\n appId,\n context.getApplicationContext(),\n new VungleInitializer.VungleInitializationListener() {\n @Override\n public void onInitializeSuccess() {\n loadBanner();\n }\n\n @Override\n public void onInitializeError(String errorMessage) {\n Log.d(TAG, \"SDK init failed: \" + VungleBannerAdapter.this);\n VungleListener listener = getVungleListener();\n mVungleManager.removeActiveBannerAd(placementId, vungleBannerAd);\n if (mPendingRequestBanner && listener != null) {\n listener.onAdFailedToLoad(AdRequest.ERROR_CODE_INTERNAL_ERROR);\n }\n }\n });\n }", "@Override\n public void onAdLoaded() {\n }", "@Override\n public void onAdLoaded(Ad ad) {\n Log.d(TAG, \"Interstitial ad is loaded and ready to be displayed!\");\n // Show the ad\n// interstitialAd.show();\n }", "@Override\n public void onAdOpened() {\n Log.d(\"TAG\",\"Ad opened\");\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.d(\"TAG\",\"Ad failed to load\");\n }", "@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"onAdLoaded\");\n }", "@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"xxx Banner onAdLoaded; isShow==\" + view.isShown());\n }", "@Override\n public void onAdLoaded(@NonNull InterstitialAd interstitialAd) {\n interstitialAd.show(context);\n\n }", "@Override\n public void onAdOpened() {\n Log.i(\"Ads\", \"xxx Banner onAdOpened\");\n }", "@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"onAdLoaded\");\n }", "@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"onAdLoaded\");\n }", "@Override\r\n public void onAdLoaded()//When interstitial is ready to be shoved\r\n {\r\n mInterstitial.showAd();\r\n }", "public void loadAds(){\n\t\tAdRequest adRequest = new AdRequest.Builder()\n\t .build();\n\t\t\n\t adView.loadAd(adRequest);\n\t}", "@Override\n public void onAdLoaded(@NonNull InterstitialAd interstitialAd) {\n mInterstitialAd = interstitialAd;\n Log.i(TAG, \"onAdLoaded\");\n }", "private void initAd() {\n\t\tmInterstitialAd = new InterstitialAd(mcq.this);\n\t\t// Defined in values/strings.xml\n\t\tmInterstitialAd.setAdUnitId(\"ca-app-pub-9971154848057782/1986029758\");\n\t}", "private void init() {\n HkMobileAds.initialize(getApplicationContext(),getString(R.string.app_key),\r\n getString(R.string.banner_ad_unitid),getString(R.string.intersitial_ad_unitid),getString(R.string.native_ad_unitid));\r\n }", "private void loadInterstitial() {\n AdRequest adRequest = new AdRequest.Builder()\n .setRequestAgent(\"android_studio:ad_template\").build();\n mInterstitialAd.loadAd(adRequest);\n }", "private void populateContentAdView(NativeContentAd nativeContentAd,\n NativeContentAdView adView) {\n adView.setNativeAd(nativeContentAd);\n\n adView.setHeadlineView(adView.findViewById(R.id.contentad_headline));\n adView.setImageView(adView.findViewById(R.id.contentad_image));\n adView.setBodyView(adView.findViewById(R.id.contentad_body));\n adView.setCallToActionView(adView.findViewById(R.id.contentad_call_to_action));\n adView.setLogoView(adView.findViewById(R.id.contentad_logo));\n adView.setAdvertiserView(adView.findViewById(R.id.contentad_advertiser));\n\n // Some assets are guaranteed to be in every NativeContentAd.\n ((TextView) adView.getHeadlineView()).setText(nativeContentAd.getHeadline());\n ((TextView) adView.getBodyView()).setText(nativeContentAd.getBody());\n ((TextView) adView.getCallToActionView()).setText(nativeContentAd.getCallToAction());\n ((TextView) adView.getAdvertiserView()).setText(nativeContentAd.getAdvertiser());\n\n List<com.google.android.gms.ads.formats.NativeAd.Image> images = nativeContentAd.getImages();\n\n if (images.size() > 0) {\n ((ImageView) adView.getImageView()).setImageDrawable(images.get(0).getDrawable());\n }\n\n // Some aren't guaranteed, however, and should be checked.\n com.google.android.gms.ads.formats.NativeAd.Image logoImage = nativeContentAd.getLogo();\n\n if (logoImage == null) {\n adView.getLogoView().setVisibility(View.INVISIBLE);\n } else {\n ((ImageView) adView.getLogoView())\n .setImageDrawable(logoImage.getDrawable());\n adView.getLogoView().setVisibility(View.VISIBLE);\n }\n\n // Handle the fact that this could be a Sample SDK native ad, which includes a\n // \"degree of awesomeness\" field.\n\n// Bundle extras = nativeContentAd.getExtras();\n// if (extras.containsKey(SampleCustomEvent.DEGREE_OF_AWESOMENESS)) {\n// TextView degree = (TextView) adView.findViewById(R.id.appinstall_degreeofawesomeness);\n// degree.setVisibility(View.VISIBLE);\n// degree.setText(extras.getString(SampleCustomEvent.DEGREE_OF_AWESOMENESS));\n// }\n\n }", "@Override\n public void onAdLoaded(Ad ad) {\n Log.d(TAG, \"Interstitial ad is loaded and ready to be displayed!\");\n\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tAdView mAdView = (AdView) _view.findViewById(R.id.adView);\r\n AdRequest adRequest = new AdRequest.Builder().build();\r\n mAdView.loadAd(adRequest);\r\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView rootView = inflater.inflate(R.layout.targeting, container, false);\n\t\tViewGroup main = (ViewGroup) rootView.findViewById(R.id.main);\n\n\t\t// Adding custom parameters to the request\n\t\tMap<String, Object> customParams = new HashMap<String, Object>();\n\t\t// customParams.put(\"tm\", Integer.valueOf(-11));\n\n\t\t// create one adview with deferred loading\n\t\tString[] matchingKeywords = { \"ems\" };\n\t\tadView = new GuJEMSAdView(getActivity(), customParams,\n\t\t\t\tmatchingKeywords, null, R.layout.targeting_adview_top, false);\n\n\t\t// Programmatically add listeners\n\t\tadView.setOnAdSuccessListener(new IOnAdSuccessListener() {\n\n\t\t\tprivate static final long serialVersionUID = -9160587495885653766L;\n\n\t\t\t@Override\n\t\t\tpublic void onAdSuccess() {\n\n\t\t\t\tSystem.out.println(\"I received an ad. [Targeting-Top]\");\n\t\t\t}\n\t\t});\n\t\tadView.setOnAdEmptyListener(new IOnAdEmptyListener() {\n\n\t\t\tprivate static final long serialVersionUID = -3891758300923903713L;\n\n\t\t\t@Override\n\t\t\tpublic void onAdEmpty() {\n\n\t\t\t\tSystem.out.println(\"I received no ad! [Targeting-Top]\");\n\t\t\t}\n\t\t});\n\n\t\t// Programmatically add adview\n\t\tmain.addView(adView,\n\t\t\t\tmain.indexOfChild(rootView.findViewById(R.id.imageView1)));\n\n\t\t// Adding a keyword to the request\n\t\tMap<String, Object> customParams2 = new HashMap<String, Object>();\n\t\tcustomParams2.put(\"as\", 16542);\n\t\t// Create second adview with deferred loading\n\t\tadView2 = new GuJEMSAdView(getActivity(), customParams2, // customParams2,\n\t\t\t\tnull, // kws2,\n\t\t\t\tnull, R.layout.targeting_adview_bottom, false);\n\n\t\t// Programmatically add listeners\n\t\tadView2.setOnAdSuccessListener(new IOnAdSuccessListener() {\n\n\t\t\tprivate static final long serialVersionUID = -9160587495885653766L;\n\n\t\t\t@Override\n\t\t\tpublic void onAdSuccess() {\n\n\t\t\t\tSystem.out.println(\"I received an ad. [Targeting-Bottom]\");\n\t\t\t}\n\t\t});\n\t\tadView2.setOnAdEmptyListener(new IOnAdEmptyListener() {\n\n\t\t\tprivate static final long serialVersionUID = -3891758300923903713L;\n\n\t\t\t@Override\n\t\t\tpublic void onAdEmpty() {\n\n\t\t\t\tSystem.out.println(\"I received no ad! [Targeting-Bottom]\");\n\t\t\t}\n\t\t});\n\n\t\t// Programmatically add adview\n\n\t\tmain.addView(adView2,\n\t\t\t\tmain.indexOfChild(rootView.findViewById(R.id.sampleText)) + 1);\n\n\t\t// perform the actual ad request\n\t\tadView.load();\n\t\tadView2.load();\n\t\tgetActivity().setTitle(\"Targeting\");\n\t\treturn rootView;\n\t}", "@Override\n public void onAdReady(final String target) {\n // The SDK has successfully downloaded an ad, and is ready to show\n this.cordova.getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n String event = \"javascript:cordova.fireDocumentEvent('onAdReady', {'zone':'\"+target+\"'})\";\n webView.loadUrl(event);\n }\n });\n\n }", "@Override\n public void run() {\n interstitial.setAdUnitId(AdmodData.Admod.interstial_ap_id);\n // Request for Ads\n AdRequest adRequest = new AdRequest.Builder().addTestDevice(\"E4195931F1BE473915004D979ED94A8E\").build();\n //AdRequest adRequest = new AdRequest.Builder().build();\n interstitial.loadAd(adRequest);\n\n\n // Prepare an Interstitial Ad Listener\n\n interstitial.setAdListener(new AdListener() {\n public void onAdLoaded() {\n\n displayInterstitial();\n }\n\n @Override\n public void onAdFailedToLoad(int errorCode) {\n Log.e(\"Full\", \"Full ADS Error\" + errorCode);\n super.onAdFailedToLoad(errorCode);\n\n }\n\n });\n\n\n }", "public void onReceiveAd(AdView adView);", "private void populateAdsView(adsHolder1 holder, UnifiedNativeAd nativeAd) {\n ((TextView)holder.getUnifiedAdView().getHeadlineView()).setText(nativeAd.getHeadline());\n ((TextView)holder.getUnifiedAdView().getBodyView()).setText(nativeAd.getBody());\n ((Button)holder.getUnifiedAdView().getCallToActionView()).setText(nativeAd.getCallToAction());\n\n if(nativeAd.getBody() == null){\n holder.getUnifiedAdView().getBodyView().setVisibility(View.INVISIBLE);\n }\n else {\n holder.getUnifiedAdView().getBodyView().setVisibility(View.VISIBLE);\n ((TextView)holder.getUnifiedAdView().getBodyView()).setText(nativeAd.getBody());\n }\n\n if(nativeAd.getAdvertiser() == null){\n holder.getUnifiedAdView().getAdvertiserView().setVisibility(View.INVISIBLE);\n }\n else {\n holder.getUnifiedAdView().getAdvertiserView().setVisibility(View.VISIBLE);\n ((TextView)holder.getUnifiedAdView().getAdvertiserView()).setText(nativeAd.getAdvertiser());\n }\n\n if(nativeAd.getCallToAction() == null){\n holder.getUnifiedAdView().getCallToActionView().setVisibility(View.INVISIBLE);\n }\n else {\n holder.getUnifiedAdView().getCallToActionView().setVisibility(View.VISIBLE);\n ((Button)holder.getUnifiedAdView().getCallToActionView()).setText(nativeAd.getCallToAction());\n }\n\n holder.getUnifiedAdView().setNativeAd(nativeAd);\n }", "@Override\n public void onAdLoaded(@NonNull InterstitialAd interstitialAd) {\n mInterstitialAd = interstitialAd;\n Log.i(TAG, \"onAdLoaded\");\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdLoaded(Ad ad) {\n if (nativeAdfb == null || nativeAdfb != ad) {\n return;\n }\n // Inflate Native Ad into Container\n }", "@Override\n public void onInterstitialDisplayed(Ad ad) {\n }", "@Override\n public void onInterstitialDisplayed(Ad ad) {\n }", "@Override\n public void onAdLoaded(Ad ad) {\n interstitialAd.show();\n enableButton();\n }", "@Override\n public void onAdLoaded(Ad ad) {\n Log.d(TAG, \"Interstitial ad is loaded and ready to be displayed!\");\n // Show the ad\n //pd.cancel();\n interstitialAd.show();\n }", "@Override\n public void onAdLoaded() {\n mAdView.setVisibility(View.VISIBLE);\n }", "@Override\n public void onAdLoaded(@NonNull InterstitialAd interstitialAd) {\n mInterstitialAd = interstitialAd;\n Log.i(\"TAG\", \"onAdLoaded\");\n }", "@Override\n public void onAdLoaded() {\n if (mInterstitialAd.isLoaded()) {\n mInterstitialAd.show();\n } else {\n Log.d(\"TAG\", \"The interstitial wasn't loaded yet.\");\n }\n }", "@Override\n public void onAdLoaded(@NonNull InterstitialAd interstitialAd) {\n mInterstitialAd = interstitialAd;\n Log.d(TAG, \"onAdLoaded\" + mInterstitialAd);\n showAdsInterstitial();\n }", "private void loadBannerAds() {\n // Load the first banner ad in the items list (subsequent ads will be loaded automatically\n // in sequence).\n loadBannerAd(0);\n }", "@Override\n public void onAdClicked(BannerAd ad) {\n Log.d(TAG, \"User clicked on banner\");\n }", "public void LoadBanner(){\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "public interface AdController {\n void setupAds();\n RelativeLayout setBannerOnView(View gameView);\n void showBannedAd();\n void hideBannerAd();\n boolean isWifiConnected();\n void showInterstellarAd(Runnable then);\n void showInterstellar();\n void setInterstitialCount(int countInterstitial);\n void hideInterstellarAd(Runnable then);\n InterstitialAd getInterstitialAd();\n}", "@Override\n public void onInterstitialDisplayed(Ad ad) {\n Log.e(\"onInterstitialDisplayed\",\"\"+ad);\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "FacebookBannerAdView(Context context, int id, HashMap args, BinaryMessenger messenger) {\n\n channel = new MethodChannel(messenger,\n FacebookConstants.BANNER_AD_CHANNEL + \"_\" + id);\n\n// isDisposable = (boolean) args.get(\"dispose\");\n\n adView = new AdView(context,\n (String) args.get(\"id\"),\n getBannerSize(args));\n AdView.AdViewLoadConfig loadAdConfig = adView.buildLoadAdConfig().withAdListener(this).build();\n\n adView.loadAd(loadAdConfig);\n }", "@Override\n public void onAdLoaded() {\n adContainerView.setVisibility(View.VISIBLE);\n }", "@Override\n public void onAdOpened() {\n Log.i(\"Ads\", \"xxx WelcomeAd onAdOpened\");\n }", "@Override\n public void onAdLoaded() {\n mButton.setEnabled(true);\n if (mAd.isLoaded()){\n mAd.show();\n }\n\n }", "@Override\n public void onAdOpened() {\n Log.i(\"Ads\", \"onAdOpened\");\n }", "@Override\n public void onAdLoaded(@NonNull InterstitialAd interstitialAd) {\n mInterstitialAd = interstitialAd;\n mInterstitialAd.show(ShareChatActivity.this);\n\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\r\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n Log.i(\"Ads\", \"onAdOpened\");\n }", "@Override\n public void onAdOpened() {\n Log.i(\"Ads\", \"onAdOpened\");\n }", "@Override\n public void onAdClicked() {\n }", "private void loadInterstitial() {\n AdRequest adRequest = new AdRequest.Builder()\n .setRequestAgent(\"android_studio:ad_template\").build();\n mInterstitialAd.loadAd(adRequest);\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n Log.i(\"Ads\", \"onAdFailedToLoad\");\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "@Override\n public void onAdFailedToLoad(int errorCode) {\n }", "AsyncImageView getBannerView();", "private void initView() {\n LayoutInflater inflater = LayoutInflater.from(mContext);\n // Inflate the Ad view. The layout referenced should be the one you created in the last step.\n View adView = inflater.inflate(R.layout.adsplugin_native_gallery_layout, mNativeAdView, false);\n FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT, Gravity.CENTER);\n mNativeAdView.addView(adView, params);\n\n mPB = mNativeAdView.findViewById(R.id.ads_plugin_pb);\n mPB.setVisibility(View.GONE);\n\n mNext = mNativeAdView.findViewById(R.id.ads_plugin_native_next);\n mNext.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n loadNewNativeAd();\n mPB.setVisibility(View.VISIBLE);\n mNext.setVisibility(View.GONE);\n }\n });\n }", "@Override\n public void adDisplayed(Ad ad) {\n\n }", "@Override\n public void adDisplayed(Ad ad) {\n\n }" ]
[ "0.7650805", "0.75382304", "0.7318296", "0.72715026", "0.71850437", "0.7119765", "0.70873016", "0.7020909", "0.6956551", "0.6856974", "0.6856974", "0.6856974", "0.6856974", "0.6856974", "0.6856974", "0.6856974", "0.6856974", "0.68397665", "0.68373364", "0.68171984", "0.67821497", "0.67625695", "0.67365956", "0.6725323", "0.67199594", "0.6701905", "0.6699984", "0.66799295", "0.6669227", "0.66619486", "0.66579086", "0.6635384", "0.6635178", "0.65990883", "0.6593455", "0.6593455", "0.65820813", "0.6578779", "0.65401715", "0.65339106", "0.65216637", "0.6511491", "0.6500003", "0.64734685", "0.64559793", "0.64446414", "0.6444468", "0.6434493", "0.64258206", "0.64063215", "0.64020276", "0.6390293", "0.6378595", "0.6367372", "0.6367372", "0.63607496", "0.6358914", "0.6350251", "0.63496834", "0.63393015", "0.63296413", "0.632894", "0.63202983", "0.63038087", "0.6295935", "0.6289853", "0.62858707", "0.62709403", "0.62709403", "0.62709403", "0.62524784", "0.6244834", "0.6223885", "0.6223055", "0.6214879", "0.62021536", "0.6177945", "0.6177945", "0.6177945", "0.6177945", "0.6177945", "0.6177945", "0.6177945", "0.6177945", "0.6177945", "0.6177945", "0.6177945", "0.6177945", "0.61592996", "0.6157427", "0.6157427", "0.6122868", "0.61121845", "0.61085135", "0.61045206", "0.61045206", "0.6091916", "0.6065333", "0.6048695", "0.6048695" ]
0.75898635
1
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); YambaClient yambaCloud = new YambaClient("student", "password"); just wanted to catch any exception that will happen
@Override protected String doInBackground(String... params) { try { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); String username = prefs.getString("username", ""); String password = prefs.getString("username", ""); if (TextUtils.isEmpty(username) || TextUtils.isEmpty(password)){ getActivity().startActivity(new Intent(getActivity(), StatusActivity.class )); return "please update you username and password"; } YambaClient yambaCloud = new YambaClient(username, password); yambaCloud.postStatus(params[0]); return "status posted"; } catch (Exception e) { e.printStackTrace(); return "failed to post status to Yamba services"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_login);\n\n try {\n ApplicationInfo ai = getPackageManager().getApplicationInfo(this.getPackageName(), PackageManager.GET_META_DATA);\n Bundle bundle = ai.metaData;\n azure_server = bundle.getString(\"azure_server\");\n } catch (PackageManager.NameNotFoundException e) {\n Log.e(\"AZURE_SERVICE\", \"Failed to load meta-data, NameNotFound: \" + e.getMessage());\n } catch (NullPointerException e) {\n Log.e(\"AZURE_SERVICE\", \"Failed to load meta-data, NullPointer: \" + e.getMessage());\n }\n\n autoLogin = false;\n assetsManager = getAssets();\n userNameET = (EditText) findViewById(R.id.emailET);\n passwordET = (EditText) findViewById(R.id.passwordET);\n userNameET.setText(\"\");\n passwordET.setText(\"\");\n complaintSingleton = ComplaintSingleton.getInstance();\n\n Button loginBTN = (Button) findViewById(R.id.loginBtn);\n Button createAccBTN = (Button) findViewById(R.id.creatAccountBtn);\n init();\n String sharedUserName = loginPrefs.getString(USERNAME_KEY, \"\");\n String sharedPassword = loginPrefs.getString(PASSWORD_KEY, \"\");\n\n pswd = passwordET.getText().toString();\n uname = userNameET.getText().toString();\n loginBTN.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n userNameForValidation = userNameET.getText().toString();\n passwordForValidation = passwordET.getText().toString();\n\n try {\n loginSrvcResposnse = new HttpAsyncTask().execute(azure_server + \"token\").get();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n if(loginSrvcResposnse.length()>0) {\n String credentialsJSON = loginSrvcResposnse;//getCredentialsValidationJSON();\n parseCredentialsJSON(credentialsJSON, userNameForValidation, passwordForValidation);\n if(validLogin) {\n try {\n String userResponse = new HttpAsyncTaskForUserInfo().execute(azure_server+ \"Api/Account/UserInfo\").get();\n validLogin = true;\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n }\n else\n {\n Toast.makeText(getApplicationContext(),\"Login Failed!\",Toast.LENGTH_SHORT).show();\n }\n }\n }\n });\n if (sharedUserName.length() > 0 && sharedPassword.length() > 0) {\n fillData();\n pswd = passwordET.getText().toString();\n uname = userNameET.getText().toString();\n if (uname.length() > 0 && pswd.length() > 0) {\n if (loginPrefs.getString(USERNAME_KEY, \"\").length() > 0 && loginPrefs.getString(PASSWORD_KEY, \"\").length() > 0) {\n autoLogin = true;\n loginBTN.performClick();\n\n } else {\n userNameET.setText(\"\");\n passwordET.setText(\"\");\n }\n }\n client = new GoogleApiClient.Builder(this).addApi(AppIndex.API).build();\n }\n createAccBTN.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n new HttpAsyncTask().execute(azure_server + \"token\");\n\n\n Intent createAccIntent = new Intent(LoginActivity.this, SignUpActivity.class);\n startActivity(createAccIntent);\n }\n });\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"Uh-oh! something went wrong, please try again.\",Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onFailure(Call<ApiResponse> call, Throwable t) {\n Log.d(\"warehouse:password\", t.getMessage());\n if (getActivity() != null) {\n hideLoader();\n }\n\n\n }", "@Override\n public void failure(TwitterException e) {\n Toast.makeText(getActivity().getApplicationContext(), \"Failed to authenticate. Please try again.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "private void GetSharedPrefs()\n {\n// SharedPreferences pref = getActivity().getSharedPreferences(\"LoginPref\", 0);\n// UserId = pref.getInt(\"user_id\", 0);\n// Mobile = pref.getString(\"mobile_number\",DEFAULT);\n// Email = pref.getString(\"email_id\",DEFAULT);\n// Username = pref.getString(\"user_name\",DEFAULT);\n// Log.i(TAG, \"GetSharedPrefs: UserId: \"+UserId);\n\n SharedPreferences pref = getActivity().getSharedPreferences(\"RegPref\", 0); // 0 - for private mode\n UserId = pref.getInt(\"user_id\", 0);\n Mobile = pref.getString(\"mobile_number\",DEFAULT);\n Email = pref.getString(\"email_id\",DEFAULT);\n Log.i(TAG, \"GetSharedPrefs: UserId: \"+UserId);\n CallOnGoingRideAPI();\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n\n Log.i(TAG,\"An error occurred\" +e.getMessage());\n String exception=e.getMessage();\n int index=exception.indexOf(\":\");\n String data=exception.substring(index+1).trim();\n showMessage(\"Error\",data,R.drawable.ic_error_dialog);\n Toast.makeText(getApplicationContext(), \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n progressBar.setVisibility(View.GONE);\n\n }", "private SharedPreferencesManager(){}", "@Override\n public void run() {\n\n String userid = SharedPreferenceStore.getValue(getApplicationContext(), \"Userid\", \"\");\n String userCompId = SharedPreferenceStore.getValue(getApplicationContext(), \"client_comp_id\", \"\");\n String loginType = SharedPreferenceStore.getValue(getApplicationContext(), \"Type\",\"\");\n SharedPreferenceStore.getValue(getApplicationContext(), \"LoadingPoint\", \"\");\n String country_code = SharedPreferenceStore.getValue(getApplicationContext(), \"country_code\",\"AE\"); // May Put Here default\n String currency_code = SharedPreferenceStore.getValue(getApplicationContext(),\"currency_code\",\"AED\"); // May put here Default\n appGlobal.userType = loginType ;\n appGlobal.userId = userid;\n appGlobal.userCompId = userCompId;\n appGlobal.currency_code = currency_code ;\n appGlobal.country_code = country_code ;\n\n /*******************/\n if(userid.isEmpty()) {\n Intent intent = new Intent(SplashActivity.this, HomeContainer.class); // LoginContainer.class\n startActivity(intent);\n finish();\n }\n else\n {\n Intent intent = new Intent(getApplicationContext(), HomeContainer.class);\n startActivity(intent);\n finish();\n }\n\n }", "private void initSharedPreference(){\n mSharedPreferences = Configuration.getContext().getSharedPreferences(\"SessionManager\", Context.MODE_PRIVATE) ;\n }", "public SPHandler(Context context){\n this.context = context;\n sharedPref = context.getSharedPreferences(\n prefName, Context.MODE_PRIVATE);\n\n }", "private void guardarCredenciales(String codigo,String contra){\n SharedPreferences sharedPreferences = getPreferences(getApplicationContext().MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"USUARIO\",codigo);\n editor.putString(\"PASSWORD\",contra);\n editor.commit();\n }", "@Override\r\n protected void onPostExecute(JSONObject jso) {\r\n try {\r\n dlg.dismiss();\r\n } catch (Exception e) { \r\n // Ignore this error \r\n }\r\n if (jso != null) {\r\n try {\r\n boolean succeeded = jso.getBoolean(\"succeeded\");\r\n String message = jso.getString(\"message\");\r\n \r\n if (succeeded) {\r\n String accountName = state.getAccount().getAccountName();\r\n MyAccount.initialize(MyPreferences.getContext());\r\n state.builder = MyAccount.Builder.newOrExistingFromAccountName(accountName, TriState.TRUE);\r\n showUserPreferences();\r\n new OAuthAcquireRequestTokenTask().execute();\r\n // and return back to default screen\r\n overrideBackButton = true;\r\n } else {\r\n Toast.makeText(AccountSettingsActivity.this, message, Toast.LENGTH_LONG).show();\r\n \r\n state.builder.setCredentialsVerificationStatus(CredentialsVerificationStatus.FAILED);\r\n showUserPreferences();\r\n }\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "private void getGredentialsFromMemoryAndSetUser()\n\t{\n\t SharedPreferences settings = getSharedPreferences(LOGIN_CREDENTIALS, 0);\n\t String username = settings.getString(\"username\", null);\n\t String password = settings.getString(\"password\", null);\n\t \n\t //Set credentials to CouponsManager.\n\t CouponsManager.getInstance().setUser(new User(username, password));\n\t \n\t}", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"response is:\", error.toString());\n Toast.makeText(getActivity(), Settings.getword(getActivity(),\"server_not_connected\"), Toast.LENGTH_SHORT).show();\n progressDialog.dismiss();\n }", "private class <init>\n implements android.preference.r\n{\n\n final SecretWidgetsFragment this$0;\n\n public boolean onPreferenceClick(Preference preference)\n {\n try\n {\n ((DaoDealSummary)SecretWidgetsFragment.access$300(SecretWidgetsFragment.this).get()).callBatchTasks(new Callable() {\n\n final SecretWidgetsFragment.DeleteObjectsDbPreferenceClickListener this$1;\n\n public Object call()\n throws Exception\n {\n ((GrouponOrmLiteHelper)SecretWidgetsFragment.access$200(this$0).get()).clearTables(new Class[] {\n com/groupon/db/models/CouponSummary, com/groupon/db/models/CouponDetail, com/groupon/db/models/DealSubsetAttribute, com/groupon/db/models/DealSummary, com/groupon/db/models/CouponCategory, com/groupon/db/models/CouponMerchant, com/groupon/db/models/Pagination, com/groupon/db/models/WidgetSummary\n });\n return null;\n }\n\n \n {\n this$1 = SecretWidgetsFragment.DeleteObjectsDbPreferenceClickListener.this;\n super();\n }\n });\n }\n // Misplaced declaration of an exception variable\n catch (Preference preference)\n {\n throw new RuntimeException(preference);\n }\n return true;\n }", "@Override\n public void failure(TwitterException exception) {\n Toast.makeText(MainActivity.this, \"Authentication Failed!\", Toast.LENGTH_LONG).show();\n }", "SharedPreferences mo117960a();", "public void doJob(JSONObject jsonResult) {\n String api = getString(R.string.pref_api_key);\n try {\n SharedPreferences pref = getActivity().getSharedPreferences(PaperDetailMenuFragment.class.getName(), Context.MODE_PRIVATE);\n pref.edit().putString(api, jsonResult.getString(api)).apply();\n } catch (JSONException ex) {\n Log.e(PasswordDialogFragment.class.getName(), \"api_key does not exists in JSON Result\", ex);\n }\n Toast.makeText(getActivity(), \"Registered finished!!!\", Toast.LENGTH_LONG).show();\n }", "public SharedPreferencesModule(){\n //this.application = application;\n }", "@Override\n \t\tprotected Object doInBackground(Object... params) {\n \t\t\tboolean notAutoLogin = (Boolean)params[0];\n \t\t\tString[] msgs = {\"\", \"\", \"\"};\n \t\t\t/*\n \t\t\t * try to get the client key\n \t\t\t */\n \t\t\tSecureURL su = new SecureURL();\n \t\t\tif (mClientKey.equals(\"\")) {\n \t\t\t\tString msg = PNJ.getResponseByGet(\n \t\t\t\t\tURL_SITE + \"key.php\",\n \t\t\t\t\tPNJ.getParamsAsStr(\"serial\", su.phpMd5(SERIAL_APP))\n \t\t\t\t);\n \t\t\t\tString ss[] = getPhpMsg(msg);\n \t\t\t\tif (ss != null && ss[0].equals(SYMBOL_SUCCESSFUL)) {\n \t\t\t\t\tmClientKey = ss[1];\n \t\t\t\t\tSharedPreferences.Editor edit = mPreferences.edit();\n \t\t\t\t\tedit.putString(CONFIG_CLIENTKEY, mClientKey);\n \t\t\t\t\tedit.commit();\n \t\t\t\t\tmsgs[0] = getString(R.string.tips_succeededtogetserial);\n \t\t\t\t} else {\n \t\t\t\t\tmsgs[0] = getString(R.string.err_failedtogetserial);\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\tString msg = PNJ.getResponseByGet(\n \t\t\t\t\tURL_SITE + \"key.php\",\n \t\t\t\t\tPNJ.getParamsAsStr(\"serial\", su.phpMd5(SERIAL_APP), \"key\", mClientKey)\n \t\t\t\t);\n \t\t\t\tString[] ss = getPhpMsg(msg);\n \t\t\t\tif (ss != null && ss[0].equals(SYMBOL_SUCCESSFUL)) {\n \t\t\t\t\tmsgs[0] = getString(R.string.tips_succeededtogetserial);\n \t\t\t\t} else {\n \t\t\t\t\tmsgs[0] = getString(R.string.err_failedtoconfirmserial);\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t/*\n \t \t * Auto login part begin\n \t \t */\n \t\t\tif (!notAutoLogin) {\n \t\t\t\tmNowLoggingIn = true;\n \t\t\t\tArrayList<String[]> list = EntranceActivity.getStoredAccounts();\n \t\t\t\t//we auto login the first one in the accounts list here\n \t\t\t\tif (list.size() != 0) {\n \t\t\t\t\tString usr = list.get(0)[0];\n \t\t\t\t\tString pwd = list.get(0)[1];\n \t\t\t\t\tSina sina = RegLoginActivity.login(usr, pwd);\n \t\t\t\t\tWeiboPage.setSina(sina);\n \t\t\t\t\t//if login succeed, then we associate the logged in account with clientkey\n \t\t\t\t\tif (sina != null && sina.getTag() != null) {\n \t\t\t\t\t\tint idTips = (Integer)sina.getTag();\n \t\t\t\t\t\tmsgs[1] = getString(idTips);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t /*\n \t \t * Auto login part end\n \t \t */\n \t \n \t /*\n \t * check if update needed\n \t */\n \t try {\n \t\t\t\tPackageInfo info = EntranceActivity.this.getPackageManager().getPackageInfo(EntranceActivity.this.getPackageName(), 0);\n \t\t\t\tString content = PNJ.getResponseByGet(EntranceActivity.URL_SITE + \"ver.php\", \"\");\n \t\t\t\tif (content != null) {\n \t\t\t\t\tString[] infos = content.split(\",\");\n \t\t\t\t\tif (infos.length == 6) {\n \t\t\t\t\t\tString sNewCode = infos[1];\n \t\t\t\t\t\tString sNewName = infos[3];\n \t\t\t\t\t\tInteger iNewCode = 0;\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tiNewCode = Integer.parseInt(sNewCode);\n \t\t\t\t\t\t} catch (NumberFormatException e) {\n \t\t\t\t\t\t\tiNewCode = -1;\n \t\t\t\t\t\t}\n \t\t\t\t\t\tif (iNewCode > info.versionCode) {\n\t\t\t\t\t\t\tmsgs[2] = \"\" + info.versionCode + \",\" + info.versionName + \",\" + sNewName;\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tmsgs[2] = getString(R.string.tips_alreadylast);\n \t\t\t\t\t\t}\n \t\t\t\t\t} else {\n \t\t\t\t\t\tmsgs[2] = getString(R.string.err_wrongversioninfos);\n \t\t\t\t\t}\n \t\t\t\t} else {\n \t\t\t\t\tmsgs[2] = getString(R.string.err_noversioninfos);\n \t\t\t\t}\n \t\t\t} catch (NameNotFoundException e) {\n \t\t\t\t// TODO Auto-generated catch block\n \t\t\t\te.printStackTrace();\n \t\t\t\tmsgs[2] = getString(R.string.err_noversion);\n \t\t\t}\n \t\t\treturn msgs;\n \t\t}", "@Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"ERROR\",\"error aa gya\");\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n addPreferencesFromResource(R.xml.preferences);\n\n SharedPreferences SP = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n\n //String ip = SP.getString(\"ip\", \"NULL\");\n // Config.ip = SP.getString(\"ip\", \"NULL\");\n // Log.e(\"IP\",Config.ip );\n String language = SP.getString(\"language\",\"NULL\");\n // Toast.makeText(getApplicationContext(),Config.ip,Toast.LENGTH_SHORT).show();\n //Toast.makeText(getApplicationContext(),language,Toast.LENGTH_SHORT).show();\n }", "@Override\n protected Boolean doInBackground(Void... params) {\n UserClient u = new UserClient();\n Log.d(\"debug\", \"created the user client\");\n User Obj=null;\n\n try {\n\n try{\n // Obj = u.signUp(mEmail,mPassword,mAddress,mPhoneNumber);\n }catch (Exception e){\n e.printStackTrace();\n }\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n return false;\n }\n\n // Sign in Failed. Returned Object in Null.\n if(Obj==null){\n Toast.makeText(getApplicationContext(), \"Book Upload Failed !\", Toast.LENGTH_SHORT).show();\n return false;\n }\n // TODO: register the new account here.\n return true;\n }", "public Prefs(Activity context){\n this.preferences = context.getSharedPreferences(prefContext, Context.MODE_PRIVATE);\n this.context = context;\n\n }", "@Override\n\t\t\t\t\t\t\tpublic void onError(Exception e) {\n\t\t\t\t\t\t\t\tToast.makeText(mActivity, \"登录失败\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\tPlatformJinliLoginAndPay.getInstance().isLogined = false;\n\t\t\t\t\t\t\t}", "@Override\n public void onFailure(@NonNull Exception e) {\n dialog.dismiss();\n //Display err toast msg\n Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_SHORT).show();\n }", "private void logIn(LogSignTemplate credentials){\n Call<LogSignTemplate> callNewTrack = nightAPI.authorize(credentials);\n callNewTrack.enqueue(new Callback<LogSignTemplate>() {\n @Override\n public void onResponse(Call<LogSignTemplate> call, Response<LogSignTemplate> response) {\n if(response.isSuccessful()){\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// SUCCESFUL LOGIN !!!!!!!!!!!!!!! /////////////////////////////////////\");\n Toasty.success(getContext(), \"Succes, welcome.\", Toast.LENGTH_SHORT, true).show();\n Intent intent = new Intent(getContext(), MenuActivity.class);\n startActivity(intent);\n }\n else{\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// NO SUCCESFUL RESPONSE /////////////////////////////////////\");\n Toasty.error(getContext(), \"Incorrect username or password.\", Toast.LENGTH_SHORT, true).show();\n }\n }\n\n @Override\n public void onFailure(Call<LogSignTemplate> call, Throwable t) {\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////////// ERROR /////////////////////////////////\");\n Toasty.error(getContext(), \"Error while validating..\", Toast.LENGTH_SHORT, true).show();\n t.printStackTrace();\n }\n });\n }", "private void getPreferences() {\n Constants constants = new Constants();\n android.content.SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n\n serverUrl = sharedPreferences.getString(\"LedgerLinkBaseUrl\", constants.DEFAULTURL);\n IsEditing = SharedPrefs.readSharedPreferences(getActivity(), \"IsEditing\", \"0\");\n tTrainerId = SharedPrefs.readSharedPreferences(getActivity(), \"ttrainerId\", \"-1\");\n vslaId = SharedPrefs.readSharedPreferences(getActivity(), \"vslaId\", \"-1\");\n\n vslaName = DataHolder.getInstance().getVslaName();\n representativeName = DataHolder.getInstance().getGroupRepresentativeName();\n representativePost = DataHolder.getInstance().getGroupRepresentativePost();\n repPhoneNumber = DataHolder.getInstance().getGroupRepresentativePhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n physAddress = DataHolder.getInstance().getPhysicalAddress();\n regionName = DataHolder.getInstance().getRegionName();\n grpPhoneNumber = DataHolder.getInstance().getGroupPhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n locCoordinates = DataHolder.getInstance().getLocationCoordinates();\n grpSupportType = DataHolder.getInstance().getSupportTrainingType();\n numberOfCycles = DataHolder.getInstance().getNumberOfCycles();\n }", "private void tryLogin() {\n AsyncTask<String, Void, Boolean> task = new AsyncTask<String, Void, Boolean>(){\n @Override\n protected Boolean doInBackground(String... ci_session) {\n boolean isValid = PwcatsRequester.isValidCiSession(ci_session[0]);\n return isValid;\n }\n @Override\n protected void onPostExecute(Boolean isValid) {\n isLogined = isValid;\n showOrHideLogInOut(isLogined);\n if (!isValid)\n authLogout();\n TextView mNavAuthLogin = (TextView) findViewById(R.id.nav_auth_login);\n TextView mNavAuthLogout = (TextView) findViewById(R.id.nav_auth_logout);\n }\n };\n String ci_session = prefs.getString(getString(R.string.ci_session), null);\n task.execute(ci_session);\n }", "@SuppressLint(\"HardwareIds\")\n @Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,\n\n WindowManager.LayoutParams.FLAG_FULLSCREEN);\n\n setContentView(R.layout.activity_login);\n\n //////////Crash Report\n Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler(this));\n\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();\n StrictMode.setVmPolicy(builder.build());\n\n requestStoragePermission();\n\n // Check if enabled and if not send user to the GPS settings\n\n\n btn_login = (Button) findViewById(R.id.btn_login);\n edt_username = (EditText) findViewById(R.id.edt_username);\n edt_password = (EditText) findViewById(R.id.edt_password);\n\n context = getApplicationContext();\n db = new Dbcon(context);\n cd = new ConnectionDetector(LoginActivity.this);\n sp = getSharedPreferences(\"Lotus\", MODE_PRIVATE);\n spe = sp.edit();\n\n pd = new ProgressDialog(LoginActivity.this);\n mProgress = new ProgressDialog(LoginActivity.this);\n service = new LotusWebservice(LoginActivity.this);\n\n Calendar c = Calendar.getInstance();\n @SuppressLint(\"WrongConstant\") int year1 = c.get(Calendar.YEAR);\n @SuppressLint(\"WrongConstant\") int month1 = c.get(Calendar.MONTH);\n\n month = String.valueOf(month1 + 1);\n year = String.valueOf(year1);\n\n\n //if (checkPermission()) {\n// TelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\n// assert telephonyManager != null;\n// deviceId = telephonyManager.getDeviceId();\n deviceId = Settings.Secure.getString(getContentResolver(), Settings.Secure.ANDROID_ID);\n /* } else {\n //Toast.makeText(this, \"Please give access to read your phone state.\", Toast.LENGTH_SHORT).show();\n requestPermission();\n }*/\n\n exportDB();\n AutologoutBroadcast();\n btn_login.setOnClickListener(new OnClickListener() {\n\n @SuppressLint(\"DefaultLocale\")\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n //LoginUser();\n //if(isPermissionGranted()) {\n\n LocationManager service1 = (LocationManager) getSystemService(LOCATION_SERVICE);\n GPSenabled = service1.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\n btn_login.setEnabled(false);\n\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n // This method will be executed once the timer is over\n btn_login.setEnabled(true);\n Log.d(TAG, \"resend1\");\n\n }\n }, 5000);// set time as per your requirement\n\n if (GPSenabled == true) {\n try {\n if (cd.isConnectingToInternet()) {\n\n username = edt_username.getText().toString()\n .toUpperCase().trim();\n pass = edt_password.getText().toString();\n\n PackageInfo info = null;\n PackageManager manager = getPackageManager();\n info = manager.getPackageInfo(getPackageName(), 0);\n\n String packageName = info.packageName;\n int versionCode = info.versionCode;\n VERSION_NAME = info.versionName;\n OS_VERSION = String.valueOf(android.os.Build.VERSION.SDK_INT);\n\n /* if(sp.getString(\"Boardcast\", \"Disable\").toString().equalsIgnoreCase(\"Disable\")){\n\n enableBroadcastReceiver();\n }*/\n\n if (!TextUtils.isEmpty(username) && !TextUtils.isEmpty(pass) && !TextUtils.isEmpty(VERSION_NAME)) {\n // TODO check apk version\n new CheckNoSaleAndCheckout().execute();\n\n } else {\n Toast.makeText(getApplicationContext(), \"Fields Cannot be Empty\", Toast.LENGTH_SHORT).show();\n\n }\n\n\n } else {\n Toast.makeText(getApplicationContext(), \"Please Check Internet Connection.\", Toast.LENGTH_SHORT).show();\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else {\n\n /*AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(LoginActivity.this);\n alertDialogBuilder.setMessage(\"GPS is disabled in your device. Would you like to enable it?\")\n .setCancelable(false)\n .setPositiveButton(\"Goto Settings Page To Enable GPS\",\n new DialogInterface.OnClickListener(){\n public void onClick(DialogInterface dialog, int id){\n Intent intent = new Intent(\n android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n }\n });\n alertDialogBuilder.setNegativeButton(\"Cancel\",\n new DialogInterface.OnClickListener(){\n public void onClick(DialogInterface dialog, int id){\n dialog.cancel();\n }\n });\n AlertDialog alert = alertDialogBuilder.create();\n alert.show();*/\n\n\n AlertDialog.Builder builder = new AlertDialog.Builder(LoginActivity.this);\n builder.setTitle(\"GPS Enable\");\n builder.setMessage(\"GPS is disabled in your device. Please GPS enable it?\");\n builder.setPositiveButton(\"Goto Settings\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n\n }\n // }\n\n }\n\n });\n\n }", "private void login() {\n if (blobStore != null) {\n return;\n }\n if (swiftUsername == null || swiftPassword == null || swiftAuthUrl == null || swiftContainer == null) {\n logger.error(\"Blob storage account is not configured\");\n throw new IllegalArgumentException(\"ERROR: Blob storage account is not configured\");\n }\n blobStore = ContextBuilder.newBuilder(blobApi)\n .endpoint(swiftAuthUrl)\n .credentials(swiftUsername, swiftPassword)\n .buildView(BlobStoreContext.class)\n .getBlobStore();\n\n if (!blobStore.containerExists(swiftContainer)) {\n// CreateContainerOptions options = CreateContainerOptions.Builder\n// .withMetadata(ImmutableMap.of(\"description\", \"E-PRTR data\"));\n// blobStore.createContainerInLocation(null, swiftContainer, options);\n Location location = getRegion();\n blobStore.createContainerInLocation(location, swiftContainer);\n }\n }", "public AccountKeyDatastoreSecrets() {\n }", "@Override\n public void run(){\n sharedPref = getActivity().getSharedPreferences(getString(R.string.preference_file_key), Context.MODE_PRIVATE);\n String defaultValue = getResources().getString(R.string.username);\n String username =sharedPref.getString(getString(R.string.username), defaultValue);\n\n mBuddyLocationTask = new GetBuddyLocation(username);\n mBuddyLocationTask.execute((Void) null);\n\n mBuddyHrTask = new GetBuddyHr(username);\n mBuddyHrTask.execute((Void) null);\n }", "@Override\n protected void onCancel() {\n // TODO: Show error notification\n Log.d(\"JOB\", \"onCancel()\");\n Log.d(\"AUTH\", this.username + \" \" + this.password);\n }", "@Override\n public void onLoginFailure() {\n\n }", "@Override\n public void onError() {\n Toast.makeText(getApplicationContext(), \"아이디랑 비밀번호를 확인해 주세요.\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"\"+e.getMessage(),Toast.LENGTH_SHORT).show();\n\n }", "private static SharedPreferences getSharedPreferences(Context context) {\n return context.getSharedPreferences(SMILE_PREFERENCES, Context.MODE_PRIVATE);\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n }", "@Override\n public void failure(TwitterException e) {\n Toast.makeText(SignInActivity.this, \"Failed to authenticate. Please try again.\", Toast.LENGTH_SHORT).show();\n }", "private void loadpreferences() {\n\t\t\tSharedPreferences mySharedPreferences = context.getSharedPreferences(MYPREFS,mode);\n\t\t\tlogin_id = mySharedPreferences.getInt(\"login_id\", 0);\n\t\t\t\n\t\t\tLog.d(\"Asynctask\", \"\" + login_id);\n\t\t\tsubId = mySharedPreferences.getString(\"SubcriptionID\", \"\");\n\t\t\tLog.d(\"SubcriptionID inASYNTASK******************\", \"\" + subId);\n\n\t\t}", "@Override\n public void onFailure(int code, String msg) {\n Toast.makeText(RegisterActivity.this,\"登录失败:\"+msg,Toast.LENGTH_SHORT).show();\n }", "private void checkForSavedLogin() {\n\t\taccessToken = getAccessToken();\n\t\tif (accessToken==null) return;\t//if there are no credentials stored then return to usual activity\n\n\t\t// initialize Twitter4J\n\t\ttwitter.setOAuthAccessToken(accessToken);\n\t}", "@Override\n public void onFailure(@NonNull Exception exception) {\n progressDialog.dismiss();\n\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "public void onClicked(View check, View emailTxt, View passwordTxt) {\n\n try {\n email = ((EditText) emailTxt).getText().toString();\n password = ((EditText) passwordTxt).getText().toString();\n CheckBox checkbox = ((CheckBox) check);\n\n\n if (!email.isEmpty() && !password.isEmpty()) {\n\n SharedPreference_Login login=new SharedPreference_Login(activity);\n\n //check the auth data saved\n if (new SharedPreference_Auth(activity).IsExpired()\n && (email.equals(login.emailOriginal())&&password.equals(login.passwordOriginal())))\n {\n\n Intent intent = new Intent(activity, ActivityMain.class);\n activity.startActivity(intent);\n activity.finish();\n\n\n } else {\n JsonReceiver jsonReceiver = new JsonReceiver(activity, \"https://puresoftware.org/user/en/oauth2/access/token.json\");\n Map<String, String> parser = new HashMap<String, String>();\n parser.put(\"grant_type\", \"password\");\n parser.put(\"username\", email);\n parser.put(\"password\", password);\n parser.put(\"scope\", \"climax\");\n jsonReceiver.post(parser,processor);\n }\n } else {\n checkbox.setChecked(false);\n ((EditText) emailTxt).getText().clear();\n ((EditText) passwordTxt).getText().clear();\n Toast.makeText(activity, \"please fill text boxes\", Toast.LENGTH_LONG).show();\n }\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Override\n\tpublic void credite() {\n\t\t\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n btn_login_dia= findViewById(R.id.btnLogin);\n btn_login_dia.setOnClickListener(this);\n btn_signup_dia= findViewById(R.id.btnSignup);\n btn_signup_dia.setOnClickListener(this);\n mAuth = FirebaseAuth.getInstance();\n sp=getSharedPreferences(\"details1\",0);\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n progressDialog.dismiss();\n //and displaying error message\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n\n logOutNow();\n\n }", "private void login() {\n User user;\n SharedPreferences preferences = context.getSharedPreferences(context.getString(R.string.user_shared_preferences), MODE_PRIVATE);\n preferences.edit().putLong(context.getString(R.string.user_id), -1).apply();\n if(preferences.getLong(context.getString(R.string.user_id), -1) != -1){\n user = User.getUser();\n }\n else{\n Globals.showDialog(\"New User\",\"Choose a user name\", LoginActivity.this);\n\n }\n user = new User();\n\n HttpUserService userService = new HttpUserService();\n Call<User> call = userService.login(user.getId());\n\n call.enqueue(new Callback<User>() {\n @Override\n public void onResponse(Call<User> call, Response<User> response) {\n asyncLogin(response);\n\n\n }\n\n @Override\n public void onFailure(Call<User> call, Throwable t) {\n Globals.showConnectionDialog(LoginActivity);\n\n }\n });\n }", "public checkUserExpiration() {\n memberBroker = new membersBroker();\naccountBroker= new accountsBroker();\n }", "private void setupCustomerSession() {\n CustomerSession.initCustomerSession(\n new SampleStoreEphemeralKeyProvider(\n new SampleStoreEphemeralKeyProvider.ProgressListener() {\n @Override\n public void onStringResponse(String string) {\n if (string.startsWith(\"Error: \")) {\n new AlertDialog.Builder(StoreActivity.this).setMessage(string).show();\n }\n }\n }));\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n progressDialog.dismiss();\n\n //and displaying error message\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n progressDialog.dismiss();\n\n //and displaying error message\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n progressDialog.dismiss();\n\n //and displaying error message\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n progressDialog.dismiss();\n\n //and displaying error message\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n progressDialog.dismiss();\n\n //and displaying error message\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\r\n protected LoginResult doInBackground(Void... params) {\n Call<AuthResponse> authCall;\r\n authCall = api.login(phone, password, Api.KEY);\r\n\r\n try {\r\n Response<AuthResponse> authResponse = authCall.execute();\r\n\r\n if (authResponse.isSuccessful()) {\r\n AuthResponse auth = authResponse.body();\r\n Log.d(TAG, \"token => \" + auth.getCredential().getToken());\r\n accountPreference.saveLogin(phone, password);\r\n accountPreference.saveToken(auth.getCredential().getToken());\r\n accountPreference.saveEmail(auth.getCredential().getEmail());\r\n accountPreference.saveName(auth.getCredential().getName());\r\n accountPreference.savePhoto(auth.getCredential().getPhoto());\r\n return new LoginResult(true, null);\r\n }\r\n\r\n String errorString = authResponse.errorBody().string();\r\n Log.d(TAG, \"error => \" + errorString);\r\n Gson gson = new GsonBuilder()\r\n .setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES)\r\n .create();\r\n String error = null;\r\n\r\n try {\r\n ErrorReponse e = gson.fromJson(errorString, ErrorReponse.class);\r\n error = e.getMessage();\r\n } catch (JsonSyntaxException e) {\r\n error = getResources().getString(R.string.error_occured);\r\n }\r\n\r\n return new LoginResult(false, error);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return new LoginResult(false, null);\r\n }\r\n }", "private void ComprobarCredenciales(SharedPreferences preferencias){\n\n if(preferencias.getBoolean(\"autenticado\", false)){\n //Toast.makeText(this, \"Autenticado\", Toast.LENGTH_SHORT).show();\n startActivity(new Intent(this, ContentActivity.class));\n }\n\n }", "@Override\n public void onFailure(int code, String msg) {\n toast(\"第三方登陆失败:\"+msg);\n }", "public void getProfile() {\n\n String mKey = getString(R.string.preference_name);\n SharedPreferences mPrefs = getSharedPreferences(mKey, MODE_PRIVATE);\n\n // Load the user email\n\n /*userEmail = getString(R.string.preference_key_profile_email);\n userPassword = getString(R.string.preference_key_profile_password);*/\n\n // Load the user email\n\n mKey = getString(R.string.preference_key_profile_email);\n userEmail = mPrefs.getString(mKey, \"\");\n\n // Load the user password\n\n mKey = getString(R.string.preference_key_profile_password);\n userPassword = mPrefs.getString(mKey, \"\");\n\n\n //userEmail = getString(R.string.register_email);\n //userPassword = getString(R.string.register_password);\n\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n progressDialog.dismiss();\n Toast.makeText(SignUpActivity.this,\"\"+e.getMessage(), Toast.LENGTH_SHORT).show();\n }", "public static void init(Context context) {\n prefs = context.getSharedPreferences(\"ERS_Prefs\", Context.MODE_PRIVATE);\n }", "@Before\n public void setUp() throws Exception {\n //Login with a test account\n solo = new Solo(InstrumentationRegistry.getInstrumentation(), rule.getActivity());\n solo.enterText((EditText) solo.getView((R.id.email)), \"scott_test_acc@test.com\");\n solo.enterText((EditText) solo.getView(R.id.password), \"guest1\");\n solo.clickOnButton(\"Login\");\n solo.waitForFragmentById(R.id.fragment);\n //click on the shelves icon on nav bar\n View shelves = solo.getView(\"shelves\");\n solo.clickOnImage(0);\n solo.clickOnView(shelves);\n //check for shelve page/ host activity\n solo.waitForFragmentById(R.id.shelves);\n solo.assertCurrentActivity(\"Wrong Activity\", Host.class);\n //go to books owned fragment\n solo.clickOnButton(\"Awaiting Approval\");\n //check for Text\n solo.getText(\"Awaiting Approval\", false);\n }", "public void setAuthentication(){\n SharedPreferences settings = mContext.getSharedPreferences(\"UserData\", Context.MODE_PRIVATE);\n SharedPreferences.Editor preferencesEditor = settings.edit();\n preferencesEditor.putString(\"userid\", mUserId);\n preferencesEditor.putString(\"areaid\", mAreaId);\n preferencesEditor.commit();\n }", "private SharedPreferencesUtils() {\n }", "@Override\r\n public void onFailure(@NonNull Exception exception) {\n progressDialog.dismiss();\r\n\r\n //and displaying error message\r\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\r\n }", "@Override\n public void onFailure(Call<ChallengeResponse> call, Throwable t) {\n Toast.makeText(getBaseContext(), \"Please check your connection!\", Toast.LENGTH_LONG).show();\n finish();\n\n }", "@Override\n public void failure(TwitterException exception) {\n Toast.makeText(getApplicationContext(), \"Fail Logged.....ٍ\", Toast.LENGTH_LONG).show();\n\n }", "public HLSAppSharedPreferences(Context context, String strName) {\n\n mContext = context;\n mPreference = context.getSharedPreferences(strName, Activity.MODE_PRIVATE);\n mEditor = mPreference.edit();\n }", "private static SharedPreferences getSharedPreference(Context context){\n return PreferenceManager.getDefaultSharedPreferences(context);\n }", "@Override\n public void onClick(View v) {\n\n\n\n String log, pass;\n log = login.getText().toString();\n pass = password.getText().toString();\n\n if (pass.equals(\"\") || log.equals(\"\")) {\n Toast.makeText(MainActivity.this, \"Заполните все поля\", Toast.LENGTH_SHORT).show();\n } else {\n SharedPreferences sharedPref = getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"login\", log);\n if (checkBox.isChecked()) {\n editor.putString(\"pass\", pass);\n editor.putBoolean(\"isSave\", true);\n } else {\n editor.putBoolean(\"isSave\", false);\n }\n editor.apply();\n DataClient.login = log;\n DataClient.password = pass;\n Request request = new Request(\"AUTHORIZATION\", 101);\n Authorization authorization = new Authorization(request);\n authorization.execute();\n }\n\n }", "@Override\n\t\tprotected void onSuccess(final Context context) {\n\t\t\tfinal SharedPreferences settings = getSharedPreferences(Constants.PREFS_NAME, 0);\n\t\t\tfinal SharedPreferences.Editor editor = settings.edit();\n\t\t\teditor.putString(\"email\", email);\n\t\t\teditor.putString(\"password\", user.getPassword());\n\t\t\teditor.commit();\n\n\t\t\tlaunchMain();\n\t\t\tfinish();\n\t\t}", "@Override\n protected Boolean doInBackground(Void... params) {\n\n if (mUsrname.equals(SERVER_CREDENTIALS.x)) {\n if (mPassword.equals(SERVER_CREDENTIALS.y)) {\n SharedPreferences.Editor e = prefs.edit();\n\n e.putBoolean(getString(R.string.settingSaveLogin), mRememberLogin.isChecked());\n\n // TODO: VERSCHLÜSSELN !!!\n e.putString(getString(R.string.settingUsrname), mUsrView.getText().toString());\n e.putString(getString(R.string.settingPwd), mPasswordView.getText().toString());\n\n e.apply();\n\n MainActivity.show(getApplicationContext());\n\n finish();\n\n return true;\n }\n }\n\n return false;\n }", "private void setUserCredentials() {\n ((EditText) findViewById(R.id.username)).setText(\"harish\");\n ((EditText) findViewById(R.id.password)).setText(\"11111111\");\n PayPalHereSDK.setServerName(\"stage2pph10\");\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "private static SharedPreferences getSharedPreferences(Context context) {\n return PreferenceManager.getDefaultSharedPreferences(context);\n }", "@Override\n protected void onResume() {\n sharedpreferences = getApplicationContext().getSharedPreferences(mypreference, Context.MODE_PRIVATE);\n sharedpreferences = getSharedPreferences(mypreference, Context.MODE_PRIVATE);\n\n if(!viewModel.isUserLoggedIn()) {\n if (sharedpreferences.contains(\"email\") && sharedpreferences.contains(\"password\")){\n loadSharedPreferences();\n String email = viewModel.getDBUser().getEmail();\n int atIndex = email.indexOf(\"@\");\n email = email.substring(0, atIndex);\n getSupportActionBar().setTitle(\"Notas de \" + email);\n viewModel.refreshNotes();\n }\n else{\n this.finish();\n goToLoginActivity();\n }\n }\n else {\n String email = viewModel.getDBUser().getEmail();\n int atIndex = email.indexOf(\"@\");\n email = email.substring(0, atIndex);\n getSupportActionBar().setTitle(\"Notas de \" + email);\n viewModel.refreshNotes();\n }\n\n super.onResume();\n }", "public Void doInBackground(Void... dummy) {\r\n try {\r\n IStorageManager.Stub.asInterface(service).changeEncryptionPassword(type, passwordString);\r\n } catch (RemoteException e) {\r\n Log.e(LockPatternUtils.TAG, \"Error changing encryption password\", e);\r\n }\r\n return null;\r\n }", "private final class <init>\n implements <init>, com.ebay.nautilus.domain.dcs.tionHelper\n{\n\n private SharedPreferences listingDraftPrefs;\n private SharedPreferences prefs;\n final MyApp this$0;\n\n public void disableDeveloperOptions()\n {\n MyApp.getPrefs().removeGlobalPref(\"developerOptions\");\n }", "@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tprogressDialog.dismiss();\n\t\t\tif(!flag)\n\t\t\t{\n\t\t\tToast.makeText(getApplicationContext(),err, Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (arr[0].equalsIgnoreCase(\"1\"))\n\t\t\t\t{\n\t\t\t\t\tputOnShare();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\tToast.makeText(getApplicationContext(), \"Credentials are incorrect\\nPlease check the settings\", Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t\t}", "@Override\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n Toast.makeText(getApplicationContext(), \"We are not connected\" , Toast.LENGTH_SHORT).show();\n }", "private void checkLogin() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n String username = preferences.getString(\"username\", null);\n if(username==null){\n Intent intent = new Intent(this,LoginActivity.class);\n startActivity(intent);\n }\n else {\n /* if(preferences.getString(\"name\",null) ==null)\n Toast.makeText(HomeActivity.this, \"Hello \" +username, Toast.LENGTH_SHORT).show();\n else\n Toast.makeText(this, \"Hello \" + preferences.getString(\"name\", \"username\"), Toast.LENGTH_SHORT).show();\n */}\n }", "private void getProfessionalInfo() {\n if (Utility.isOnline(this)) {\n final CircleDotDialog dotDialog = new CircleDotDialog(BecomeHostLoginActivity.this);\n dotDialog.show();\n\n ServiceCaller serviceCaller = new ServiceCaller(this);\n serviceCaller.callGetProfessionalInfoService(phoneStr, new IAsyncWorkCompletedCallback() {\n @Override\n public void onDone(String result, boolean isComplete) {\n if (isComplete) {\n ContentMybooking data = new Gson().fromJson(result, ContentMybooking.class);\n if (data != null) {\n if (data.getPartnerDetailsForPartner() != null) {\n DbHelper dbHelper = new DbHelper(BecomeHostLoginActivity.this);\n dbHelper.deleteProfessionalData();\n dbHelper.insertProfessionalUserData(data.getPartnerDetailsForPartner());\n Toast.makeText(BecomeHostLoginActivity.this, \"Login Successfully.\", Toast.LENGTH_LONG).show();\n Intent intent = new Intent(BecomeHostLoginActivity.this, ProfessionalWorkSheetActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n } else {\n Toast.makeText(BecomeHostLoginActivity.this, \"Login not Successfully!\", Toast.LENGTH_LONG).show();\n }\n }\n } else {\n Utility.alertForErrorMessage(Contants.Error, BecomeHostLoginActivity.this);\n }\n if (dotDialog.isShowing()) {\n dotDialog.dismiss();\n }\n }\n });\n } else {\n Utility.alertForErrorMessage(Contants.OFFLINE_MESSAGE, this);//off line msg....\n }\n\n }", "private static void createOnlineManager(Context context) throws LogonCoreException {\n try\n {\n ODataOnlineManager.openOnlineStore(context);\n\n }\n catch (OnlineODataStoreException e)\n {\n e.printStackTrace();\n Log.e(TAG, context.getString(R.string.unable_to_open_store));\n }\n\n }", "public static void saveLoginWhenFirst(Context context) {\n SharedPreferences.Editor editor = context.getSharedPreferences(SHARED_PREFERENCES_KEY, context.MODE_PRIVATE).edit();\n editor.putBoolean(IS_FIRST_TOKEN,false);\n editor.commit();\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n }" ]
[ "0.60553396", "0.59663874", "0.5903653", "0.58769566", "0.56483364", "0.5632961", "0.5616144", "0.55944663", "0.55648607", "0.55360436", "0.5502886", "0.5483598", "0.54817", "0.54589874", "0.5452852", "0.54442185", "0.54161954", "0.537487", "0.53725797", "0.5371724", "0.5363209", "0.5356687", "0.5356364", "0.5344685", "0.5328475", "0.5319155", "0.53137803", "0.5299586", "0.5288702", "0.52819616", "0.52753526", "0.5271169", "0.5256867", "0.5247769", "0.5247219", "0.5235624", "0.5233656", "0.5228823", "0.5223609", "0.52206475", "0.5218256", "0.52130127", "0.521063", "0.5201335", "0.5192395", "0.51737374", "0.5171193", "0.5166652", "0.5163804", "0.51575077", "0.5153714", "0.51429147", "0.5141967", "0.5139212", "0.5136937", "0.5136937", "0.5136937", "0.5136937", "0.5136937", "0.5136655", "0.5132123", "0.5129762", "0.51288426", "0.5114104", "0.5113484", "0.51096964", "0.51043564", "0.51041937", "0.51028657", "0.5091818", "0.50865483", "0.50772786", "0.5076298", "0.5073867", "0.50718737", "0.5071202", "0.50711447", "0.5070672", "0.5070672", "0.5070108", "0.50685304", "0.5068339", "0.5064406", "0.506294", "0.5057828", "0.50542533", "0.50525725", "0.50520974", "0.5049652", "0.5048931", "0.5048931", "0.5047641", "0.5047641", "0.5047641", "0.5047641", "0.5047641", "0.5047641", "0.5047641", "0.5047641", "0.5047641" ]
0.6488798
0
/ Return type fixed from 'java.lang.Object' to match base method
@Override // com.google.android.play.core.internal.ci public final /* bridge */ /* synthetic */ y1 a() { return new y1(this.a.a(), cg.b(this.b)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Object getUnderlyingObject();", "@Override\n\tpublic NativeObject javaMethodBaseWithObjectRet() {\n\t\treturn null;\n\t}", "Object getBase();", "public abstract String mo83558a(Object obj);", "@Override\n public Object getReturnValue(){\n return object;\n }", "public Object objectValue();", "@Override\n public T getObjRaiz() {\n return (super.getObjRaiz());\n }", "public abstract T zzs(Object obj);", "public abstract S castToReturnType(T o);", "protected abstract Object transform(Object o);", "@Override\n public Class<Object> getObjectType() {\n return Object.class;\n }", "@Override\n public T getValue(T object) {\n return object;\n }", "public Object getObject() ;", "public abstract B zzt(Object obj);", "abstract Function get(Object arg);", "public T caseBase(Base object) {\n\t\treturn null;\n\t}", "public abstract O value();", "public abstract void mo1184a(Object obj);", "Object getObject();", "Object getObject();", "Object getObject();", "Object getObject();", "public Object getObject();", "public abstract org.omg.CORBA.Object read_Object();", "default ObjectHandler<? extends T> handleObject() {\n throw new UnsupportedOperationException();\n }", "private Object getTypeObjectPair() throws MathLinkException, NumberRangeException {\n Object result = null;\n int type = this.getInteger();\n if (type % -17 == -15) {\n type = -7 + -17 * (type / -17);\n } else if (type % -17 == -16) {\n type = -8 + -17 * (type / -17);\n }\n switch (type) {\n case -5: {\n result = new Integer(this.getInteger());\n break;\n }\n case -6: {\n result = new Long(this.getLongInteger());\n break;\n }\n case -4: {\n int i = this.getInteger();\n if (i < -32768 || i > 32767) {\n throw new NumberRangeException(i, \"short\");\n }\n result = new Short((short)i);\n break;\n }\n case -2: {\n int i = this.getInteger();\n if (i < -128 || i > 127) {\n throw new NumberRangeException(i, \"byte\");\n }\n result = new Byte((byte)i);\n break;\n }\n case -3: {\n int i = this.getInteger();\n if (i < 0 || i > 65535) {\n throw new NumberRangeException(i, \"char\");\n }\n result = new Character((char)i);\n break;\n }\n case -15: \n case -7: {\n double d = this.getDouble();\n if (d < -3.4028234663852886E38 || d > 3.4028234663852886E38) {\n throw new NumberRangeException(d, \"float\");\n }\n result = new Float((float)d);\n break;\n }\n case -16: \n case -8: {\n result = new Double(this.getDouble());\n break;\n }\n case -9: {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n result = this.getString();\n if (tok != 35 || !result.equals(\"Null\")) break;\n result = null;\n break;\n }\n case -1: {\n String s = this.getSymbol();\n if (s.equals(\"True\")) {\n result = Boolean.TRUE;\n break;\n }\n result = Boolean.FALSE;\n break;\n }\n case -13: {\n long mark = this.createMark();\n try {\n int tok = this.getNext();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n this.seekMark(mark);\n result = this.getComplex();\n break;\n }\n this.seekMark(mark);\n result = this.getComplex();\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -10: {\n long mark = this.createMark();\n try {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n result = new BigInteger((String)result);\n break;\n }\n result = new BigInteger(this.getString());\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -11: {\n long mark = this.createMark();\n try {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n result = Utils.bigDecimalFromString((String)result);\n break;\n }\n result = Utils.bigDecimalFromString(this.getString());\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -12: {\n long mark = this.createMark();\n try {\n int tok = this.getNext();\n if (tok == 100000 && (result = this.getObject()) != null) break;\n this.seekMark(mark);\n result = this.getExpr();\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -14: {\n result = this.getObject();\n break;\n }\n case -10000: {\n break;\n }\n default: {\n int tok = this.getNext();\n result = tok == 100000 || tok == 35 ? this.getObject() : (type > -34 ? this.getArray(type - -17, 1) : (type > -51 ? this.getArray(type - -34, 2) : (type > -68 ? this.getArray(type - -51, 3) : (type > -85 ? this.getArray(type - -68, 4) : this.getArray(type - -85, 5)))));\n }\n }\n return result;\n }", "public abstract Object mo1771a();", "public abstract String getObjectType();", "void m21807c(Object obj);", "void m21806b(Object obj);", "void m21809e(Object obj);", "void m21805a(Object obj);", "void mo67921a(Object obj);", "protected abstract Object convertNonNull(Object o);", "public abstract Object mo1185b();", "<T> T mo19025a(Object obj, Class<T> cls);", "@Override // m.h\n public String a(Object obj) {\n return obj.toString();\n }", "void m21808d(Object obj);", "public abstract <T> T readObject();", "public abstract Object mo26777y();", "protected abstract O getResult();", "@Override\n public void returnObject(\n Object key,\n Object obj )\n {\n String error;\n\n if ( key == null || obj == null )\n {\n error = \"key or obj was null.\";\n logger.error( error );\n }\n\n if ( !(key instanceof String) )\n {\n error = \"Invalid key class \" + key.getClass().getName();\n logger.error( error );\n throw new InvalidArgumentException( error );\n }\n\n if ( !(obj instanceof IClientTask) )\n {\n error = \"Invalid object class \" + obj.getClass().getName();\n logger.error( error );\n throw new InvalidArgumentException( error );\n }\n\n try\n {\n super.returnObject( key, obj );\n }\n catch ( Exception e )\n {\n logger.error( e );\n }\n }", "Object value();", "public Value restrictToTypeofObject() {\n checkNotPolymorphicOrUnknown();\n Value r = new Value(this);\n r.flags &= (~PRIMITIVE) | NULL;\n r.num = null;\n r.str = null;\n r.getters = r.setters = null;\n r.excluded_strings = r.included_strings = null;\n r.object_labels = newSet();\n if (object_labels != null)\n for (ObjectLabel objlabel : object_labels)\n if (objlabel.getKind() != Kind.FUNCTION && objlabel.getKind() != Kind.SYMBOL)\n r.object_labels.add(objlabel);\n if (r.object_labels.isEmpty())\n r.object_labels = null;\n return canonicalize(r);\n }", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "public Object convert(Object from, Class to) {\n \t\tif (from instanceof Function) {\n \t\t\tif (to == Callable.class)\n \t\t\t\treturn new RhinoCallable(engine, (Function) from);\n \t\t} else if (from instanceof Scriptable || from instanceof String) { // Let through string as well, for ArgumentReader\n \t\t\tif (Map.class.isAssignableFrom(to)) {\n \t\t\t\treturn toMap((Scriptable) from);\n \t\t\t} else {\n \t\t\t\t/* try constructing from this prototype first\n \t\t\t\ttry {\n \t\t\t\t\tScriptable scope = engine.getScope();\n \t\t\t\t\tExtendedJavaClass cls = ExtendedJavaClass.getClassWrapper(scope, to);\n \t\t\t\t\treturn cls.construct(Context.getCurrentContext(), scope, new Object[] { from });\n \t\t\t\t} catch(Throwable e) {\n \t\t\t\t\tint i = 0;\n \t\t\t\t}\n \t\t\t\t*/\n \t\t\t\tArgumentReader reader = null;\n \t\t\t\tif (ArgumentReader.canConvert(to) && (reader = getArgumentReader(from)) != null) {\n \t\t\t\t return ArgumentReader.convert(reader, unwrap(from), to);\n \t\t\t\t} else if (from instanceof NativeObject && getZeroArgumentConstructor(to) != null) {\n \t\t\t\t\t// Try constructing an object of class type, through\n \t\t\t\t\t// the JS ExtendedJavaClass constructor that takes \n \t\t\t\t\t// a last optional argument: A NativeObject of which\n \t\t\t\t\t// the fields define the fields to be set in the native type.\n \t\t\t\t\tScriptable scope = ((RhinoEngine) this.engine).getScope();\n \t\t\t\t\tExtendedJavaClass cls =\n \t\t\t\t\t\t\tExtendedJavaClass.getClassWrapper(scope, to);\n \t\t\t\t\tif (cls != null) {\n \t\t\t\t\t\tObject obj = cls.construct(Context.getCurrentContext(),\n \t\t\t\t\t\t\t\tscope, new Object[] { from });\n \t\t\t\t\t\tif (obj instanceof Wrapper)\n \t\t\t\t\t\t\tobj = ((Wrapper) obj).unwrap();\n \t\t\t\t\t\treturn obj;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t} else if (from == Undefined.instance) {\n \t\t\t// Convert undefined ot false if destination is boolean\n \t\t\tif (to == Boolean.TYPE)\n \t\t\t\treturn Boolean.FALSE;\n \t\t} else if (from instanceof Boolean) {\n \t\t\t// Convert false to null / undefined for non primitive destination classes.\n\t\t\tif (!((Boolean) from).booleanValue() && !to.isPrimitive())\n \t\t\t\treturn Undefined.instance;\n \t\t}\n \t\treturn null;\n \t}", "protected abstract Object read ();", "void mo3207a(Object obj);", "Object getNative();", "@Override\n\tpublic Object convert(Class<?> desiredType, Object in) throws Exception {\n\t\treturn null;\n\t}", "public T get() {\n return object;\n }", "Objet getObjetAlloue();", "public abstract Object getValue();", "public abstract Object getValue();", "public abstract Object getValue();", "public Object obj()\n\t{\n\t\treturn object;\n\t}", "void mo6504by(Object obj);", "public T caseRealCast(RealCast object) {\n\t\treturn null;\n\t}", "public T caseRequestBaseType(RequestBaseType object) {\n\t\treturn null;\n\t}", "public interface Value {\n Word asWord();\n\n int toSInt();\n\n BigInteger toBInt();\n\n short toHInt();\n\n byte toByte();\n\n double toDFlo();\n\n float toSFlo();\n\n Object toArray();\n\n Record toRecord();\n\n Clos toClos();\n\n MultiRecord toMulti();\n\n boolean toBool();\n\n char toChar();\n\n Object toPtr();\n\n Env toEnv();\n\n <T> T toJavaObj();\n\n public class U {\n static public Record toRecord(Value value) {\n if (value == null)\n return null;\n else\n return value.toRecord();\n }\n\n public static Value fromBool(boolean b) {\n return new Bool(b);\n }\n\n public static Value fromSInt(int x) {\n return new SInt(x);\n }\n\n public static Value fromArray(Object x) {\n return new Array(x);\n }\n\n public static Value fromBInt(BigInteger x) {\n return new BInt(x);\n }\n\n public static Value fromPtr(Object o) {\n return new Ptr(o);\n }\n\n public static Value fromSFlo(float o) {\n return new SFlo(o);\n }\n\n public static Value fromDFlo(double o) {\n return new DFlo(o);\n }\n\n public static Value fromChar(char o) {\n return new Char(o);\n }\n\n public static Value fromByte(byte o) {\n return new Byte(o);\n }\n\n public static Value fromHInt(short o) {\n return new HInt(o);\n }\n\n\tpublic static <T> Value fromJavaObj(T obj) {\n\t return new JavaObj<T>(obj);\n\t}\n }\n}", "public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }", "public T casePrimType(PrimType object) {\n\t\treturn null;\n\t}", "public Object caseRMethod(RMethod object) {\n\t\treturn null;\n\t}", "public abstract JType unboxify();", "private Object getValueObject(Object object) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, SecurityException, NoSuchMethodException{\n\t\tObject value = this.methodGet.invoke(object, null);\n\t\treturn value;\n\t}", "public T caseInterpolationMethodBaseType(InterpolationMethodBaseType object) {\n\t\treturn null;\n\t}", "@ReflectionDisable\npublic interface BaseObjectNominal extends BaseObjectNoOwnProperties {\n\n\t@Override\n\t@ReflectionHidden\n\tdefault String baseClass() {\n\n\t\treturn this.getClass().getSimpleName();\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitive<?> name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final CharSequence name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BaseObject name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BasePrimitive<?> name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final BasePrimitiveString name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final CharSequence name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final String name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject basePrototype() {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveNumber baseToNumber() {\n\n\t\treturn BasePrimitiveNumber.NAN;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveString baseToString() {\n\n\t\treturn Base.forString(this.toString());\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault Object baseValue() {\n\n\t\treturn this;\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BaseObject name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitive<?> name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitiveString name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx,\n\t\t\tfinal CharSequence name,\n\t\t\tfinal BaseObject originalIfKnown,\n\t\t\tfinal BaseObject defaultValue,\n\t\t\tfinal ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final int index, final BaseObject originalIfKnown, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final String name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n}", "ObjectValue createObjectValue();", "public T caseDatatype(Datatype object)\n {\n return null;\n }", "public T getObject()\n\t{\n\t\treturn object;\n\t}", "public abstract Any value();", "protected IValue narrow(Object result){\n\t\tif(result instanceof Integer) {\n\t\t\treturn vf.integer((Integer)result);\n\t\t}\n\t\tif(result instanceof IValue) {\n\t\t\treturn (IValue) result;\n\t\t}\n\t\tif(result instanceof Thrown) {\n\t\t\t((Thrown) result).printStackTrace(stdout);\n\t\t\treturn vf.string(((Thrown) result).toString());\n\t\t}\n\t\tif(result instanceof Object[]) {\n\t\t\tIListWriter w = vf.listWriter();\n\t\t\tObject[] lst = (Object[]) result;\n\t\t\tfor(int i = 0; i < lst.length; i++){\n\t\t\t\tw.append(narrow(lst[i]));\n\t\t\t}\n\t\t\treturn w.done();\n\t\t}\n\t\tif(result == null){\n\t\t\treturn null;\n\t\t}\n\t\tthrow new InternalCompilerError(\"Cannot convert object back to IValue: \" + result);\n\t}", "public T caseAbstractTypeReference(AbstractTypeReference object) {\n\t\treturn null;\n\t}", "Object transform(Object o);", "@Override\r\n\tpublic void cast() {\n\r\n\t}", "@Override\n\tprotected Object doGetValue(Object source) {\n\t\treturn null;\n\t}", "public Object caseRClass(RClass object) {\n\t\treturn null;\n\t}", "public T caseBaseExpression(BaseExpression object)\n {\n return null;\n }", "public T caseBasica(Basica object)\n {\n return null;\n }", "public V cast(Object object) {\n return valueClass.cast(object);\n }", "private void doSomething(Object object) {\n\n }", "Integer getSubObj();", "public void testObjectSuperclassOfInterface() throws NoSuchMethodException {\n assertEquals(Object.class, GenericTypeReflector.getExactSuperType(ArrayList.class, Object.class));\n assertEquals(Object.class, GenericTypeReflector.getExactSuperType(List.class, Object.class));\n assertEquals(Object.class, GenericTypeReflector.getExactSuperType(String[].class, Object.class));\n }", "static Object m6085a(Class<?> cls, Object obj) {\n if (obj != null && obj.getClass() == cls) {\n return obj;\n }\n switch (m6083a(obj)) {\n case 0:\n if (cls == ScriptRuntime.f6505l || cls == ScriptRuntime.f6503j) {\n return \"undefined\";\n }\n m6091c(\"undefined\", cls);\n return obj;\n case 1:\n if (cls.isPrimitive()) {\n m6091c(obj, cls);\n }\n return null;\n case 2:\n if (cls == Boolean.TYPE || cls == ScriptRuntime.f6494a || cls == ScriptRuntime.f6503j) {\n return obj;\n }\n if (cls == ScriptRuntime.f6505l) {\n return obj.toString();\n }\n m6091c(obj, cls);\n return obj;\n case 3:\n if (cls == ScriptRuntime.f6505l) {\n return ScriptRuntime.m6436d(obj);\n }\n if (cls == ScriptRuntime.f6503j) {\n return m6090b(Double.TYPE, obj);\n }\n if ((cls.isPrimitive() && cls != Boolean.TYPE) || ScriptRuntime.f6502i.isAssignableFrom(cls)) {\n return m6090b(cls, obj);\n }\n m6091c(obj, cls);\n return obj;\n case 4:\n if (cls == ScriptRuntime.f6505l || cls.isInstance(obj)) {\n return obj.toString();\n }\n if (cls == Character.TYPE || cls == ScriptRuntime.f6496c) {\n if (((CharSequence) obj).length() == 1) {\n return Character.valueOf(((CharSequence) obj).charAt(0));\n }\n return m6090b(cls, obj);\n } else if ((cls.isPrimitive() && cls != Boolean.TYPE) || ScriptRuntime.f6502i.isAssignableFrom(cls)) {\n return m6090b(cls, obj);\n } else {\n m6091c(obj, cls);\n return obj;\n }\n case 5:\n if (obj instanceof Wrapper) {\n obj = ((Wrapper) obj).mo18879a();\n }\n if (cls == ScriptRuntime.f6497d || cls == ScriptRuntime.f6503j) {\n return obj;\n }\n if (cls == ScriptRuntime.f6505l) {\n return obj.toString();\n }\n m6091c(obj, cls);\n return obj;\n case 6:\n case 7:\n if (obj instanceof Wrapper) {\n obj = ((Wrapper) obj).mo18879a();\n }\n if (cls.isPrimitive()) {\n if (cls == Boolean.TYPE) {\n m6091c(obj, cls);\n }\n return m6090b(cls, obj);\n } else if (cls == ScriptRuntime.f6505l) {\n return obj.toString();\n } else {\n if (cls.isInstance(obj)) {\n return obj;\n }\n m6091c(obj, cls);\n return obj;\n }\n case 8:\n if (cls == ScriptRuntime.f6505l) {\n return ScriptRuntime.m6436d(obj);\n }\n if (cls.isPrimitive()) {\n if (cls == Boolean.TYPE) {\n m6091c(obj, cls);\n }\n return m6090b(cls, obj);\n } else if (cls.isInstance(obj)) {\n return obj;\n } else {\n if (cls == ScriptRuntime.f6506m && (obj instanceof NativeDate)) {\n return new Date((long) ((NativeDate) obj).f6314a);\n }\n if (cls.isArray() && (obj instanceof NativeArray)) {\n NativeArray bcVar = (NativeArray) obj;\n long j = bcVar.f6285a;\n Class componentType = cls.getComponentType();\n Object newInstance = Array.newInstance(componentType, (int) j);\n for (int i = 0; ((long) i) < j; i++) {\n try {\n Array.set(newInstance, i, m6085a(componentType, bcVar.get(i, bcVar)));\n } catch (EvaluatorException e) {\n m6091c(obj, cls);\n }\n }\n return newInstance;\n } else if (obj instanceof Wrapper) {\n Object a = ((Wrapper) obj).mo18879a();\n if (cls.isInstance(a)) {\n return a;\n }\n m6091c(a, cls);\n return a;\n } else if (cls.isInterface() && ((obj instanceof NativeObject) || (obj instanceof NativeFunction))) {\n return m6086a(cls, (ScriptableObject) obj);\n } else {\n m6091c(obj, cls);\n return obj;\n }\n }\n default:\n return obj;\n }\n }", "public T caseResultManagement(ResultManagement object)\r\n {\r\n return null;\r\n }", "public T caseCapabilitiesBaseType(CapabilitiesBaseType object) {\n\t\treturn null;\n\t}", "protected abstract Object toObject(ByteBuffer content, Type targetType) throws BeanConversionException;", "public abstract Object getTypedParams(Object params);", "public Object getObject() {\n return getWildcard();\n }", "public abstract Object getObservedObject();", "public void mo1774a(Object obj) {\n }", "private static Object toJavaObject(Value value) throws RepositoryException {\n switch (value.getType()) {\n case PropertyType.DECIMAL:\n return value.getDecimal();\n case PropertyType.BINARY:\n return new LazyInputStream(value);\n case PropertyType.BOOLEAN:\n return value.getBoolean();\n case PropertyType.DATE:\n return value.getDate();\n case PropertyType.DOUBLE:\n return value.getDouble();\n case PropertyType.LONG:\n return value.getLong();\n case PropertyType.NAME: // fall through\n case PropertyType.PATH: // fall through\n case PropertyType.REFERENCE: // fall through\n case PropertyType.STRING: // fall through\n case PropertyType.UNDEFINED: // not actually expected\n default: // not actually expected\n return value.getString();\n }\n }", "public T caseContentsType(ContentsType object) {\n\t\treturn null;\n\t}", "public T returnValue();", "@Override\n public Object convert(Object dest, Object source, Class<?> aClass, Class<?> aClass1) {\n return null;\n\n }", "public T caseTypeParameter(TypeParameter object) {\n\t\treturn null;\n\t}", "public T caseType(Type object) {\r\n\t\treturn null;\r\n\t}", "<T> T convert(Object o, Class<T> type);", "public T caseValue(Value object) {\n\t\treturn null;\n\t}" ]
[ "0.73300743", "0.70384824", "0.6754094", "0.67179495", "0.6610807", "0.6596785", "0.65678746", "0.64676386", "0.6437923", "0.6406638", "0.63936657", "0.6331011", "0.63098955", "0.62965596", "0.6259889", "0.6248995", "0.62170064", "0.62139267", "0.61995703", "0.61995703", "0.61995703", "0.61995703", "0.6191638", "0.61809444", "0.6180563", "0.61519456", "0.61459607", "0.6138212", "0.61319226", "0.61239296", "0.6123201", "0.6116212", "0.60873765", "0.60795873", "0.6072117", "0.6069449", "0.60556036", "0.60539836", "0.6048853", "0.60417503", "0.6019431", "0.598231", "0.5974645", "0.5971884", "0.5968911", "0.5968911", "0.5968911", "0.5937566", "0.5923219", "0.5905314", "0.59033054", "0.58907574", "0.58818805", "0.5864885", "0.5856489", "0.5856489", "0.5856489", "0.584084", "0.5840092", "0.5835585", "0.5824479", "0.5820831", "0.5817491", "0.5814249", "0.5805972", "0.5790742", "0.5788903", "0.57826704", "0.57699996", "0.57351273", "0.5733717", "0.5719771", "0.5717999", "0.5715716", "0.5714732", "0.571202", "0.5711381", "0.5708306", "0.57076406", "0.57050216", "0.56847435", "0.5662788", "0.5653753", "0.5648048", "0.56434274", "0.56356", "0.56296957", "0.56289417", "0.5628167", "0.56255496", "0.5617072", "0.5616903", "0.5607355", "0.56034493", "0.5597333", "0.5595283", "0.5590022", "0.55820745", "0.55783165", "0.5574089", "0.557315" ]
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { JOptionPane.showMessageDialog(null,"对话框"); }
{ "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 boolean onQueryTextSubmit(String arg0) { startActivity(); return false; }
{ "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 boolean onKey(View v, int keyCode, KeyEvent event) { Log.d("SEARCH", "Search onkey"); return false; }
{ "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
/ SherlockFragment fragment = null; fragment = new SearchCourseResultsFragment(search.getText().toString()); getSherlockActivity().getSupportFragmentManager() .beginTransaction() .replace(R.id.content_frame, fragment) .commit();
public void onClick(View v) { startActivity(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Searchloc(View target)\n\t{\n fragmentTransaction = fragmentManager.beginTransaction();\n Fragment newFragment = new SearchFrag();\n fragmentTransaction.replace(R.id.toptoolbar, newFragment);\n fragmentTransaction.addToBackStack(null); \n fragmentTransaction.commit();\n System.out.println(\"SearchFrag\"); \n\t}", "@Override\n public void onClick(View v) {\n frameLayoutSearch.setVisibility(View.GONE);\n songBelongAlbumFragment = new SongBelongAlbumFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"nameSongOfAlbum\",tvAlbumName.getText().toString());\n songBelongAlbumFragment.setArguments(bundle);\n android.support.v4.app.FragmentTransaction fragmentTransaction = ( (FragmentActivity)context).getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.fragment_container, songBelongAlbumFragment);\n fragmentTransaction.commit();\n }", "private void fillUpFragment() {\n try {\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n sensorFragment = getSensorFragment();\n transaction.replace(R.id.sensor_frame, sensorFragment, getSensorName());\n transaction.commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void fragmentChange(){\n HCFragment newFragment = new HCFragment();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack if needed\n transaction.replace(R.id.hc_layout, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }", "private void displayCareerFragment() {\n getSupportFragmentManager().beginTransaction().replace(R.id.container, UserProfileCareerFragment.getInstance()).commit();\n\n }", "public SearchFragment() {\n // Required empty public constructor\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View mView = inflater.inflate(R.layout.fragment_empty, container, false);\n\n listView = mView.findViewById(R.id.tomb_list);\n block_spinner = mView.findViewById(R.id.search_block);\n search_lot = mView.findViewById(R.id.search_lot);\n\n List<String> items = dataSource.block();\n ArrayAdapter<String> adapter = new ArrayAdapter<>(Objects.requireNonNull(getActivity()), android.R.layout.simple_spinner_item, items);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n block_spinner.setAdapter(adapter);\n\n display(block_spin);\n\n search_lot.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n if(charSequence.length() == 0)\n {\n display(block_spin);\n }\n else {\n searchMe(charSequence.toString(),block_spin);\n }\n }\n\n @Override\n public void afterTextChanged(Editable editable) {\n\n }\n });\n\n block_spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n block_spin = adapterView.getItemAtPosition(i).toString();\n\n\n if(block_spin.equalsIgnoreCase(\"9\"))\n {\n display(block_spin);\n }\n else {\n display(block_spin);\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n\n }\n });\n\n\n listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {\n @Override\n public boolean onItemLongClick(AdapterView<?> adapterView, View view, int i, long l) {\n\n final DataItems items = dataItems.get(i);\n AlertDialog.Builder dialog = new AlertDialog.Builder(Objects.requireNonNull(getActivity()));\n dialog.setCancelable(false);\n dialog.setTitle(\"Add\");\n dialog.setMessage(\"Are you sure you want to add new record?\");\n dialog.setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n Intent intent = new Intent(getActivity(),SettingActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP| Intent.FLAG_ACTIVITY_NEW_TASK| Intent.FLAG_ACTIVITY_NO_HISTORY);\n intent.putExtra(ADD_KEY ,items);\n startActivity(intent);\n getActivity().finish();\n }\n })\n .setNegativeButton(\"Cancel \", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n final AlertDialog alert = dialog.create();\n alert.show();\n return false;\n }\n });\n\n add_lot = mView.findViewById(R.id.add_lot);\n\n add_lot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(getActivity(), LotActivity.class);\n startActivity(intent);\n }\n });\n\n return mView;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n // Inflate the menu; this adds items to the action bar if it is present.\n getMenuInflater().inflate(R.menu.main, menu);\n searchTv = menu.findItem(R.id.search_tv);\n searchMovie = menu.findItem(R.id.search_movie);\n\n MenuItem searchItem = menu.findItem(R.id.action_search);\n SearchView searchView = (SearchView) searchItem.getActionView();\n\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n\n SearchResultsFragment fragment = new SearchResultsFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"searchQuery\",query);\n bundle.putBoolean(\"searchTv\",searchTv.isChecked());\n bundle.putBoolean(\"searchMovie\",searchMovie.isChecked());\n fragment.setArguments(bundle);\n FragmentManager manager = getSupportFragmentManager();\n manager.popBackStack(\"search\",FragmentManager.POP_BACK_STACK_INCLUSIVE);\n manager.beginTransaction().replace(R.id.main_container, fragment, fragment.getTag()).addToBackStack(\"search\").commit();\n\n\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }\n });\n\n\n return true;\n }", "private void startValveFragment() {\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n Fragment valveFragment = new vavlesFragment(mUser, ProfileActivity.this, dialogCallBack);\n ft.replace(R.id.fragment_container, valveFragment).commit();\n }", "private void showHome(){\n fragment = new HomeFragment();\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.mainLayout, fragment, fragment.getTag()).commit();\n }", "@Override\r\n public void changeFragment() {\r\n fm.beginTransaction()\r\n .replace(R.id.fragmentContainer, new ListWonderFragment())\r\n .commit();\r\n }", "private void initFragment(Fragment newsFragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.fl_news, newsFragment);\n transaction.commit();\n\n }", "private void toHQ() {\n if (hqFragment == null) {\n hqFragment = new HQFragment();\n fragmenttransaction.add(R.id.frame_content, hqFragment);\n } else {\n fragmenttransaction.show(hqFragment);\n }\n }", "@Override\n public void onClick(View v) {\n android.app.Fragment onjF = null;\n onjF = new BlankFragment();\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.fragment,onjF).commit();\n }", "private void replaceFragment(int pos) {\n Fragment fragment = null;\n switch (pos) {\n case 0:\n //mis tarjetas\n fragment = new CardsActivity();\n break;\n case 1:\n //buscador online\n fragment = new CardsActivityOnline();\n break;\n case 2:\n //active camera\n Intent it = new Intent(this, com.google.zxing.client.android.CaptureActivity.class);\n startActivityForResult(it, 0);\n break;\n case 3:\n ParseUser.getCurrentUser().logOut();\n finish();\n onBackPressed();\n break;\n default:\n //fragment = new CardsActivity();\n break;\n }\n\n if(null!=fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.main_content, fragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n }", "private void addFragments() {\n\n Fragment f = SideFilterFragment.newInstance();\n getFragmentManager().beginTransaction().replace(R.id.side_filter_container, f).commit();\n }", "private void startAddBookFragment() {\n if (this.menu != null) {\n this.menu.findItem(R.id.menu_search).setVisible(false);\n this.menu.findItem(R.id.add_book).setVisible(false);\n }\n\n // Create new fragment and transaction\n AddBookFragment addBookFragment = new AddBookFragment();\n\n // consider using Java coding conventions (upper first char class names!!!)\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack\n transaction.replace(R.id.activityAfterLoginId, addBookFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n\n }", "@Override\n public void onLoginHelpClicked() {\n \tFragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n \ttransaction.replace(fragmentContainer, new ParseLoginHelpFragment());\n \ttransaction.addToBackStack(null);\n \ttransaction.commit();\n }", "@Override\n public void onClick(View v){\n SignUpFragment fragment = new SignUpFragment();\n FragmentManager manager = getFragmentManager();\n manager.beginTransaction().replace(R.id.fragmentHolder,fragment,\"Sign Up\").commit();\n }", "public LiSearchFragment() {\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View mParentView = inflater.inflate(R.layout.fragment_home, container, false);\r\n\r\n String toolBarTitle = mContext.getResources().getString(R.string.menu_search);\r\n Utils.setToolbarTitle(getActivity(), toolBarTitle);\r\n\r\n mSongName = mParentView.findViewById(R.id.songName);\r\n mArtistName = mParentView.findViewById(R.id.artistName);\r\n mProgressBar = mParentView.findViewById(R.id.progressBar);\r\n\r\n Button mQueryButton = mParentView.findViewById(R.id.queryButton);\r\n\r\n\r\n if (!mArtist.isEmpty()) mArtistName.setText(mArtist);\r\n if (!mTitle.isEmpty()) mSongName.setText(mTitle);\r\n\r\n // Load previous searched\r\n mMusicHistory = Utils.restoreMusicHistory(mContext);\r\n\r\n mQueryButton.setOnClickListener(v -> {\r\n String song = mSongName.getText().toString();\r\n String artist = mArtistName.getText().toString();\r\n\r\n // Check song field not empty\r\n if (TextUtils.isEmpty(song)){\r\n mSongName.setError(getResources().getString(R.string.search_lyrics_error_title_missing));\r\n }\r\n // Check artist field not empty\r\n else if (TextUtils.isEmpty(artist)){\r\n mArtistName.setError(getResources().getString(R.string.search_lyrics_error_author_missing));\r\n }\r\n // Check song+artist not already search without success\r\n else if (Utils.doResearch(artist, song, mMusicHistory)){\r\n mProgressBar.setVisibility(View.VISIBLE);\r\n mQueryButton.setEnabled(false);\r\n\r\n mRunningTask = new RetrieveFeedTask(song, artist, mMusicHistory, getActivity());\r\n mRunningTask.execute();\r\n }\r\n // A similar research have already been done with no success\r\n // -> directly redirect to not found activity\r\n else{\r\n showNotFoundDialog(getActivity(), mContext, mParentView, song, artist);\r\n mQueryButton.setEnabled(true);\r\n }\r\n });\r\n\r\n return mParentView;\r\n }", "protected void replaceLoginFragment() {\n\n\n }", "@Override\n public void onClick(View view) {\n if (uuidString == null) {\n SignupFragment fragment = new SignupFragment();\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragment_container, fragment,\"findThisFragment\")\n .addToBackStack(null)\n .commit();\n } else {\n Intent intent = new Intent(getActivity(), DashboardActivity.class);\n startActivity(intent);\n }\n }", "@Override\n public void onResultViewFinished() {\n MainFragment mainFragment = new MainFragment();\n\n createTransactionAndReplaceFragment(mainFragment, getString(R.string.frg_tag_main));\n }", "protected void replaceLoginFragment() {\n\n// fragmentManager\n// .beginTransaction()\n// .setCustomAnimations(R.anim.left_enter, R.anim.right_out)\n// .replace(R.id.frameContainer, new Login_Fragment(),\n// Utils.Login_Fragment).commit();\n }", "@Override \n public void onClick(View v) \n {\n \tShowFragmentXXH2 demoFragment = new ShowFragmentXXH2();\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction transaction =fragmentManager.beginTransaction();\n transaction.replace(R.id.fragment_container, demoFragment);\n transaction.commit();\n \n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_home, container, false);\n recyclerView = v.findViewById(R.id.rev);\n revAdapter = new RevAdapter(getActivity());\n// list = new ArrayList<>();\n// list.add(new Cong(1,\"Cong\",true,7));\n// sqli = new SQLiteStudentHelper(getContext());\n sqli = new SQLiteStudentHelper(getContext());\n revAdapter.setData(list);\n LinearLayoutManager layoutManager = new LinearLayoutManager(getContext());\n recyclerView.setLayoutManager(layoutManager);\n recyclerView.setAdapter(revAdapter);\n bta = v.findViewById(R.id.bta);\n\n searchView = v.findViewById(R.id.serView);\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);\n // Defining layout to inflate, in this case: search_google_fragment\n final View v = inflater.inflate(R.layout.search_google_fragment, container, false);\n // Setting searchButton to the id in resources\n Button searchButton = (Button) v.findViewById(R.id.searchButton);\n \n // OnClickListener for the searchButton\n searchButton.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View view) {\n \t// Defining the searchField in the XML layout 'search_google_fragment'\n EditText searchField = (EditText) v.findViewById(R.id.searchField);\n // Setting inputedString to the current text in searchField\n String inputedString = searchField.getText().toString();\n\n // Calling the *searchGoogle* method with passed in text from the EditText\n // This method allows for users to Short-hand type in a phrase to search google, rather then go to google and then type it in and then hit search.\n listener.searchGoogle(\"https://www.google.com/?q=\" + inputedString + \"#q=\" + inputedString);\n \n // Utilizing public method dismiss(); to dismiss the search fragment dialog.\n dismiss();\n }\n });\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View search = inflater.inflate(R.layout.fragment_search, container, false);\n TextView appbartext = (TextView) getActivity().findViewById(R.id.appbar_text);\n appbartext.setText(\"Select parking spot\");\n ImageView imageView = (ImageView) getActivity().findViewById(R.id.appbar_left);\n imageView.setVisibility(View.VISIBLE);\n imageView.setImageResource(R.drawable.ic_back);\n imageView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n getActivity().onBackPressed();\n }\n });\n ImageView imageView1 = (ImageView) getActivity().findViewById(R.id.appbar_right);\n imageView1.setVisibility(View.GONE);\n\n mRecyclerView = (RecyclerView) search.findViewById(R.id.contacts_recycler_view);\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity().getApplicationContext());\n mRecyclerView.setLayoutManager(layoutManager);\n pref = getActivity().getPreferences(0);\n sessionId = pref.getString(\"sessionId\", null);\n\n Location location = getLocation();\n\n if(location != null) {\n double latitude = location.getLatitude();\n double longitude = location.getLongitude();\n }else{\n Toast.makeText(getContext(), \"Engedélyezze eszközén a helymeghatározást!\", Toast.LENGTH_LONG).show();\n }\n\n loadJSON(sessionId, Double.toString(latitude), Double.toString(longitude));\n return search;\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.car_empty);\n\n Bundle dataToPass = getIntent().getExtras();\n\n CarSearchDetailFragment dFragment = new CarSearchDetailFragment();\n dFragment.setArguments(dataToPass);\n dFragment.setTablet(false);\n getSupportFragmentManager()\n .beginTransaction()\n .add(R.id.carFragmentLocation, dFragment)\n .addToBackStack(\"AnyName\")\n .commit();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n post = getArguments().getParcelable(\"post\");\n prevFragmentCode = getArguments().getInt(\"code\");\n searchStr = getArguments().getString(\"str\");\n\n this.container = container;\n\n return inflater.inflate(R.layout.fragment_detail_shoe, container, false);\n }", "@Override\n public void onClick(View view) {\n Fragment newFragment = new QuestFragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.container, newFragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View myFragmentView = inflater.inflate(R.layout.fragment_symptom_search, container, false);\n initSearchField(myFragmentView);\n initButton(myFragmentView, this);\n symptomEntities = SymptomController.getAllSymptom();\n setUpDataOnView();\n setTitle();\n return myFragmentView;\n }", "@Override \n public void onClick(View v) \n {\n \tShowFragmentXXH1 demoFragment = new ShowFragmentXXH1();\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction transaction =fragmentManager.beginTransaction();\n transaction.replace(R.id.fragment_container, demoFragment);\n transaction.commit();\n \n }", "private void openTeacherCheck() {\n FragmentTransaction fr1 = getFragmentManager().beginTransaction().addToBackStack(\"Tag\");\n fr1.replace(R.id.fragment_container, new Fragment_View_In_Out());\n fr1.commit();\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState) {\n \n\t\t//Create a View object from fragment_main\n\t\toFragmentSearch = inflater.inflate(R.layout.fragment_search,container,false); \n\n\t\t//Populate the ListView based on the search criteria.\n\t\tSimpleCursorAdapter adapter=populateListView(sSearchText);\n\t\t\n\t\t//Set the list adapter here.\n\t\tsetListAdapter(adapter);\n\t\t\n\t\treturn oFragmentSearch;\n\t}", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.main_frame, fragment);\n// fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n }", "public void startRegisterFragment() {\n RegisterFragment registerFragment = new RegisterFragment();\n fragmentManager.beginTransaction().replace(R.id.fragment, registerFragment).commit();\n }", "private ScreenShotable replaceFragment(ScreenShotable screenShotable, String name) {\n switch (name) {\n case ContentFragment.GAMES:\n logger.logEvent(\"Games Menu\");\n Log.v(LOG_TAG, \"Games Menu\");\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, GamesFragment.newInstance()).setCustomAnimations(R.anim.abc_slide_in_bottom, R.anim.abc_slide_out_bottom).addToBackStack(\"Games\").commit();\n getSupportActionBar().setTitle(\"Games\");\n break;\n case ContentFragment.GROUPS:\n logger.logEvent(\"Groups Menu\");\n Log.v(LOG_TAG, \"Groups Menu\");\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, GroupsFragment.newInstance()).setCustomAnimations(R.anim.abc_slide_in_bottom, R.anim.abc_slide_out_bottom).commit();\n getSupportActionBar().setTitle(\"Groups\");\n break;\n case ContentFragment.FRIENDS:\n logger.logEvent(\"Friends Menu\");\n Log.v(LOG_TAG, \"Friends Menu\");\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, FriendStatus.newInstance()).setCustomAnimations(R.anim.abc_slide_in_bottom, R.anim.abc_slide_out_bottom).commit();\n getSupportActionBar().setTitle(\"Friends\");\n break;\n case ContentFragment.SETTINGS:\n logger.logEvent(\"Settings Menu\");\n Log.v(LOG_TAG, \"Settings Menu\");\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, SettingsFragment.newInstance()).setCustomAnimations(R.anim.abc_slide_in_bottom, R.anim.abc_slide_out_bottom).commit();\n getSupportActionBar().setTitle(\"Settings\");\n break;\n }\n return contentFragment;\n }", "private void loadFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(com.limkee1.R.id.flContent, fragment);\n fragmentTransaction.commit();\n\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void onClick(View arg0) {\n\n\n String searchString = search_text.getText().toString();\n search_spinner.setOnItemSelectedListener(new CustomOnItemSelectedListener());\n String searchCategory = search_spinner.getSelectedItem().toString();\n System.out.println(\"I am here 1\");\n\n ListItem newsData = new ListItem();\n newsData.setType(searchCategory);\n newsData.setValue(searchString);\n gridMockData.add(newsData);\n System.out.println(\"here 2\");\n System.out.println(\"This is search:: \" + gridMockData + \" ::: \" + searchCategory + \" \" + searchString);\n\n //intent in fragment\n Fragment frag = new SearchResultFragment();\n android.support.v4.app.FragmentManager fragManager = getFragmentManager();\n fragManager.beginTransaction().replace(R.id.search_frag, frag).commit();\n\n }", "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame, fragment);\n fragmentTransaction.commit();\n\n }", "private void placeNewFragment(Fragment f) {\r\n\t\tFragmentManager manager = getSupportFragmentManager();\r\n FragmentTransaction fragmentTransaction = manager.beginTransaction();\r\n fragmentTransaction.replace(R.id.fragmentHolder, f);\r\n fragmentTransaction.addToBackStack(null);\r\n fragmentTransaction.commit();\r\n\t}", "private void getFragment(Fragment fragment) {\n // create a FragmentManager\n FragmentManager fm = getFragmentManager();\n // create a FragmentTransaction to begin the transaction and replace the Fragment\n FragmentTransaction fragmentTransaction = fm.beginTransaction();\n // replace the FrameLayout with new Fragment\n fragmentTransaction.replace(R.id.fragment_layout, fragment);\n // save the changes\n fragmentTransaction.commit();\n }", "private void defaultFragment() {\n\n Fragment fragment = new Helpline();\n FragmentManager fm = getFragmentManager();\n //TODO: try this with add\n fm.beginTransaction().replace(R.id.content_frame,fragment).commit();\n }", "public void goAddFriends (View view){\n Fragment newFragment = new AddFriendsFragment();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack if needed\n transaction.replace(R.id.fragment_container, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n\n }", "public void RitiroLibri()\r\n {\r\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"Ritiro Libri\");\r\n FragmentManager fragmentManager = getFragmentManager();\r\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\r\n fragmentTransaction.replace(R.id.main_conteiner, new SistudiaFragmentRitiroLibri());\r\n fragmentTransaction.commit();\r\n }", "private void showHomeOnClick(){\n //create a new fragment and transaction\n homeFragment = new HomeFragment();\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n //replace whatever is in the fragment container view with this fragment\n //and add the transaction to the back stack\n ft.add(R.id.fragment_container,homeFragment);\n ft.addToBackStack(null);\n ft.commit();\n }", "public void goToPortfolioFragment(){\n Fragment fragment = new PortfolioFragment();\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction transaction = fm.beginTransaction();\n transaction.replace(R.id.contentFragment, fragment);\n transaction.commit();\n }", "public void onUPP()\r\n {\r\n Fragment frag = getSupportFragmentManager().findFragmentById(R.id.fragmentSad);\r\n// //android.app.FragmentManager fm = getFragmentManager();\r\n// FragmentTransaction ft = getFragmentManager().beginTransaction();\r\n// ft.remove(frag);\r\n// ft.commit();\r\n//}\r\n\r\n FragmentManager fm = getSupportFragmentManager();\r\n fm.beginTransaction()\r\n .setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out)\r\n .show(frag)\r\n .commit();\r\n\r\n }", "private void loadBookPageFragment() {\n\n FragmentManager manager = getFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.addToBackStack(\"ListView\"); // enables to press \"return\" and go back to the list view\n transaction.replace(R.id.main_fragment_container, new BookPageFragment());\n transaction.commit();\n }", "@Override\n public void onClick(View v) {\n FragmentManager fragmentManager = getFragmentManager();\n AllRequestedColleges allRequestedColleges=AllRequestedColleges.newInstance();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.add(android.R.id.content,allRequestedColleges).addToBackStack(\"faf\").commit();\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_student_fee, container, false);\n\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"Student Fee\");\n rollSearchField = view.findViewById(R.id.rollSearchField);\n rollSearchBtn = view.findViewById(R.id.rollSearchBtn);\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(getString(R.string.base_url_api))\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n service = retrofit.create(ApiRequest.class);\n\n rollSearchBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n String roll = rollSearchField.getText().toString();\n\n Call<StudentRollSearchResult> rollSearchResultCall = service.GetSearchRollResults(roll);\n\n rollSearchResultCall.enqueue(new Callback<StudentRollSearchResult>() {\n @Override\n public void onResponse(Call<StudentRollSearchResult> call, Response<StudentRollSearchResult> response) {\n if (response.isSuccessful())\n {\n StudentRollSearchResult result = response.body();\n StudentFeesAddFragment fragment = new StudentFeesAddFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"S_FNAME\",result.getFname());\n bundle.putString(\"S_LNAME\",result.getLname());\n bundle.putString(\"S_UID\",result.getU_id());\n bundle.putString(\"S_CLASS\",result.getClassName());\n fragment.setArguments(bundle);\n getFragmentManager()\n .beginTransaction()\n .replace(R.id.studentFeeMainFrame,fragment)\n .addToBackStack(\"Student_fee\")\n .commit();\n }else\n {\n Snackbar snackbar = Snackbar\n .make(getView(), \"No student found !!\", Snackbar.LENGTH_INDEFINITE);\n snackbar.setAction(\"Retry\", new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n rollSearchField.setText(\"\");\n }\n });\n snackbar.setActionTextColor(Color.RED);\n snackbar.show();\n }\n }\n\n @Override\n public void onFailure(Call<StudentRollSearchResult> call, Throwable t) {\n\n }\n });\n\n }\n });\n\n return view;\n }", "public DiscoverWebsearchFragment() {}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView rootView = inflater.inflate(R.layout.fragment_home, container, false);\n\t\tfinal Button buttonOne = (Button) rootView.findViewById(R.id.speakButtonVR);\n\t\tfinal Button searchAgainButton = (Button) rootView.findViewById(R.id.searchAgainButton);\n\t\tsearchAgainButton.setVisibility(View.GONE);\n \n\t\tbuttonOne.setOnClickListener(new Button.OnClickListener() {\n\t\t @Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tyoutubeFragment = (YouTubeFragment) getChildFragmentManager().findFragmentById(R.id.youtube_fragment);\n\t\t \tstartSpeechRecognition();\n\t\t }\n\t\t});\n\t\t\n\t\tsearchAgainButton.setOnClickListener(new Button.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tAlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());\n\t alertDialog.setCancelable(true);\n // Setting Dialog Title\n alertDialog.setTitle(\"Search Again\");\n // Setting Dialog Message\n alertDialog.setMessage(\"Would you like to search for '\" + wordList + \"' again?\");\n // Setting Icon to Dialog\n alertDialog.setIcon(R.drawable.dj_icon);\n // Setting Positive \"Yes\" Button\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n \tnew CommunicateWithYouTubeTask().execute(wordList);\n }\n });\n alertDialog.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n \tpublic void onClick(DialogInterface dialog, int which) {\n \t\tdialog.dismiss();\n \t}\n });\n \n alertDialog.show();\n\t\t\t}\n\t\t});\n\t\t\n\t\tyoutubeFragment = new YouTubeFragment();\n\t\tFragmentTransaction transaction = getChildFragmentManager().beginTransaction();\n\t\ttransaction.add(R.id.youtube_fragment, youtubeFragment).commit();\n\t\t\t\t\n\t\treturn rootView;\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\tBundle savedInstanceState) \n\t{\n\t\tfinal HomeScreen activity = (HomeScreen) getActivity();\n\t\t\n\t\t//define a typeface for formatting text fields and listview. \n\t\t\n\t\ttype= Typeface.createFromAsset(activity.getAssets(),\"fonts/book.TTF\");\n\t\tmyFragmentView = inflater.inflate(R.layout.fragment_search, container, false);\t\t\n\t\tsearch=(SearchView) myFragmentView.findViewById(R.id.searchView1);\n search.setQueryHint(\"Start typing to search...\");\n \n search.setIconifiedByDefault(false);\n \n\t\tsearchResults = (ListView) myFragmentView.findViewById(R.id.listview_search);\n\t\tbuttonBarcode = (ImageButton) myFragmentView.findViewById(R.id.imageButton2);\n\t\tbuttonAudio = (ImageButton) myFragmentView.findViewById(R.id.imageButton1);\n\t\t\n\t\t\n\t\t//this part of the code is to handle the situation when user enters any search criteria, how should the \n\t\t//application behave?\n\t\t\n\t\tbuttonBarcode.setOnClickListener(new OnClickListener() \n {\n public void onClick(View v) \n {\n \tstartActivityForResult(new Intent(activity, Barcode.class),1);\t\n }\n });\n\t\t\n\t\tbuttonAudio.setOnClickListener(new OnClickListener() \n {\n public void onClick(View v) \n {\n \tIntent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n // Specify free form input\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT,\"Name the product you want to order\");\n intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, 1);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.ENGLISH);\n startActivityForResult(intent, 2);\t\n }\n });\n\t\t\n\t\tsearch.setOnQueryTextFocusChangeListener(new View.OnFocusChangeListener() \n {\n \t\t\n \t\t@Override\n \t\tpublic void onFocusChange(View v, boolean hasFocus) {\n \t\t\t// TODO Auto-generated method stub\n \t\t\t//Toast.makeText(activity, String.valueOf(hasFocus),Toast.LENGTH_SHORT).show();\n \t\t}\n \t});\n\t\t\n\t\tsearch.setOnQueryTextListener(new OnQueryTextListener() \n {\n \t\t\t\n \t\t@Override\n \t\tpublic boolean onQueryTextSubmit(String query) {\n \t\t\t// TODO Auto-generated method stub\n \t\t\t\t\n \t\t\treturn false;\n \t\t}\n \t\t\n \t\t@Override\n \t\tpublic boolean onQueryTextChange(String newText) {\n \t\t\t\tif (newText.length() > 3)\n \t\t\t\t{\n \t\t\t\t\tsearchResults.setVisibility(myFragmentView.VISIBLE);\n \t\t\t\t\tmyAsyncTask m= (myAsyncTask) new myAsyncTask().execute(newText);\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\tsearchResults.setVisibility(myFragmentView.INVISIBLE);\n \t\t\t\t}\n\n \t\t\treturn false;\n \t\t}\n \t\t\n \t});\n\t\treturn myFragmentView;\n\t}", "private void setFragment(Fragment fragment) {\n Log.d(\"setFragments\", \"setFragments: start\");\n fragmentTransaction = getSupportFragmentManager().beginTransaction();\n Log.d(\"setFragments\", \"setFragments: begin\");\n Fragment hideFragment = getLast();\n fragmentTransaction.hide(hideFragment);\n fragmentTransaction.show(fragment);\n if (userHomeFragment.equals(fragment)) {\n lastFragment = \"userHomeFragment\";\n } else if (scheduleFragment.equals(fragment)) {\n lastFragment = \"scheduleFragment\";\n } else if (medicineFragment.equals(fragment)) {\n lastFragment = \"medicineFragment\";\n } else {\n lastFragment = \"calendarFragment\";\n }\n fragmentTransaction.commit();\n }", "@Override\n public void run() {\n if (footerUser) {\n fm.beginTransaction()\n .show(fm.findFragmentById(R.id.frag_user))\n .hide(fm.findFragmentById(R.id.frag_search))\n .hide(fm.findFragmentById(R.id.frag_home))\n .hide(fm.findFragmentById(R.id.frag_user_businesses))\n .commit();\n }\n }", "@Override\n public void onClick(View v) {\n CompteEnsg nextFrag = new CompteEnsg();\n getActivity().getFragmentManager().beginTransaction()\n .replace(R.id.content_frame, nextFrag, \"TAG_FRAGMENT\")\n .addToBackStack(null)\n .commit();\n }", "@Override\n public void onClick(View view) {\n Fragment fragment = null;\n fragment = new CommentPeopleDetail();\n Bundle bundle = new Bundle();\n bundle.putString(\"queid\", details.getQueId());\n\n if (fragment != null) {\n fragment.setArguments(bundle);\n FragmentManager fm = ((FragmentActivity) context).getSupportFragmentManager();\n FragmentTransaction transaction = fm.beginTransaction();\n transaction.replace(R.id.frame_contain_layout, fragment);\n transaction.commit();\n }\n }", "@Override\r\n public void setFragment(FragmentManager fragmentManager) {\n\r\n }", "public void initFragments() {\n Log.d(\"initFragments\", \"initFragments: start\");\n if (!focus) {\n Log.d(\"initFragments\", \"initFragments: not focused\");\n return;\n }\n\n if (calendarFragment != null)\n getSupportFragmentManager().beginTransaction().remove(calendarFragment).commit();\n if (scheduleFragment != null)\n getSupportFragmentManager().beginTransaction().remove(scheduleFragment).commit();\n if (userHomeFragment != null)\n getSupportFragmentManager().beginTransaction().remove(userHomeFragment).commit();\n if (medicineFragment != null)\n getSupportFragmentManager().beginTransaction().remove(medicineFragment).commit();\n\n Log.d(\"initFragments\", \"initFragments: new\");\n calendarFragment = new CalendarFragment();\n scheduleFragment = new CheckupFragment();\n userHomeFragment = new UserHomeFragment();\n medicineFragment = new MedicationFragment();\n\n fragmentTransaction = getSupportFragmentManager().beginTransaction();\n Log.d(\"initFragments\", \"initFragments: begin transaction\");\n fragmentTransaction.add(R.id.navigationFrame, calendarFragment);\n fragmentTransaction.hide(calendarFragment);\n fragmentTransaction.add(R.id.navigationFrame, scheduleFragment);\n fragmentTransaction.hide(scheduleFragment);\n fragmentTransaction.add(R.id.navigationFrame, userHomeFragment);\n fragmentTransaction.hide(userHomeFragment);\n fragmentTransaction.add(R.id.navigationFrame, medicineFragment);\n fragmentTransaction.hide(medicineFragment);\n fragmentTransaction.commit();\n\n if (lastFragment == null) {\n Log.d(\"initFragments\", \"initFragments: null last fragment\");\n lastFragment = \"calendarFragment\";\n setFragment(calendarFragment);\n }\n else {\n Log.d(\"initFragments\", \"initFragments: set last fragment\");\n setLastFragment();\n }\n }", "private void setupFragments() {\n FragmentManager fm = getSupportFragmentManager();\n sb_frag = (StatusBar)fm.findFragmentById(R.id.statusmarket);\n\n if(sb_frag == null)\n {\n sb_frag = new StatusBar();\n fm.beginTransaction().add(R.id.statusmarket, sb_frag).commit();\n }\n sb_frag.setupInitial(currentPlayer);\n\n ai_frag = (AreaInfo) fm.findFragmentById(R.id.overviewlayout);\n\n //try find the fragment, if it doesnt exist then create it\n if (ai_frag == null) {\n //create the fragment if not exist\n ai_frag = new AreaInfo();\n fm.beginTransaction().add(R.id.overviewlayout, ai_frag).commit();\n }\n\n ai_frag.setCurrentArea(null);\n\n\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_search,container,false);\n\n\n\n searchResult=view.findViewById(R.id.search_result);\n\n\n\n LinearLayoutManager linearLayoutManager=new LinearLayoutManager(getContext());\n linearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n searchResult.setLayoutManager(linearLayoutManager);\n getUserListFromDatabase();\n\n\n\n return view;\n }", "@Override\n public void onNavigationDrawerItemSelected(int position) {\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.container, PlaceholderFragment.newInstance(position + 1))\n .commit();\n }", "@Override\n public void onNavigationDrawerItemSelected(int position) {\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.container, PlaceholderFragment.newInstance(position + 1))\n .commit();\n }", "@Override\n public void gonearbypage() {\n getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container_home,new NearbyFragment()).addToBackStack(\"Homepage\").commit();\n }", "@Override\n public void onClick(View view) {\n getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new EditContactFragment()).commit();\n }", "@Override\n public void onNavigationDrawerItemSelected(int position) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.container, PlaceholderFragment.newInstance(position + 1))\n .commit();\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n Bundle bundle = new Bundle();\n bundle.putString(\"URL\", URL);\n\n ViewWebsiteFragment viewWebsiteFragment = new ViewWebsiteFragment();\n viewWebsiteFragment.setArguments(bundle);\n\n getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, viewWebsiteFragment).commit();\n }", "private void loadFragment(String name) {\n FragmentTransaction fragmentTransaction = MainActivity.fm.beginTransaction();\n // replace the FrameLayout with the new Fragment\n fragmentTransaction.replace(R.id.mainFrameLayout, MainActivity.currentFragment);\n fragmentTransaction.addToBackStack(name);\n fragmentTransaction.commit();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mRecipeList = new ArrayList<>();\n rootView = inflater.inflate(R.layout.fragment_search, container, false);\n searchWindow = rootView.findViewById(R.id.searchWindow);\n searchResultView = rootView.findViewById(R.id.searchResult);\n searchWindow.requestFocus();\n searchWindow.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView v, int actionId,\n KeyEvent event) {\n if (event != null&& (event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) {\n UIUtils.hideKeyboard(getActivity());\n // Must return true here to consume event\n return true;\n }\n return false;\n }\n });\n final RecipeItemAdapter recipeItemAdapter = new RecipeItemAdapter(mRecipeList, mListener);\n searchResultFinder = new SearchResultFinder(recipeItemAdapter, mRecipeList);\n searchResultView.setAdapter(recipeItemAdapter);\n searchResultView.setLayoutManager(new LinearLayoutManager(getActivity(),\n LinearLayoutCompat.VERTICAL, false));\n searchWindow.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n String input = searchWindow.getText().toString();\n if (input.trim().isEmpty()) {\n mRecipeList.clear();\n recipeItemAdapter.notifyDataSetChanged();\n } else searchResultFinder.search(input);\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n return rootView;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_search, container, false);\r\n\r\n MainActivity activity = (MainActivity) getActivity();\r\n if (activity.getMenu() != null) {\r\n activity.getMenu().clear();\r\n activity.getMenuInflater().inflate(R.menu.menu_search, activity.getMenu());\r\n }\r\n editText = (EditText) view.findViewById(R.id.searchEditText);\r\n\r\n recyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);\r\n recyclerView.setHasFixedSize(true);\r\n StaggeredGridLayoutManager gaggeredGridLayoutManager;\r\n gaggeredGridLayoutManager = new StaggeredGridLayoutManager(2, 1);\r\n recyclerView.setLayoutManager(gaggeredGridLayoutManager);\r\n\r\n\r\n imageLogo = (ImageView) view.findViewById(R.id.imageViewSearch);\r\n if (searchEngine == R.integer.Flickr) {\r\n imageLogo.setImageResource(R.drawable.flickr_logo);\r\n if (activity.getSupportActionBar() != null)\r\n activity.getSupportActionBar().setTitle(getString(R.string.flickr_title_menu));\r\n } else if (searchEngine == R.integer.Imgur) {\r\n imageLogo.setImageResource(R.drawable.imgur_logo);\r\n if (activity.getSupportActionBar() != null)\r\n activity.getSupportActionBar().setTitle(getString(R.string.imgur_title_menu));\r\n }\r\n\r\n editText.setOnEditorActionListener(new TextView.OnEditorActionListener() {\r\n @Override\r\n public boolean onEditorAction(TextView v, int actionId,\r\n KeyEvent event) {\r\n if (actionId == EditorInfo.IME_ACTION_SEARCH) {\r\n launch_search();\r\n }\r\n return false;\r\n }\r\n });\r\n ImageButton button = (ImageButton) view.findViewById(R.id.buttonSearch);\r\n button.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n launch_search();\r\n }\r\n });\r\n return view;\r\n }", "@Override\n public void onClick(View v){\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.frame_layout,new final_confirmation());\n transaction.commit();\n }", "private void changeFragment() {\n TeacherAddNotificationFragment fragment = new TeacherAddNotificationFragment();\n // Put classIds to bundle and set bundle to fragment\n Bundle bundle = new Bundle();\n bundle.putString(\"ListIDs\", classesIds);\n fragment.setArguments(bundle);\n\n // Replace fragment\n getFragmentManager().beginTransaction().replace(R.id.main, fragment)\n .addToBackStack(null)\n .commit();\n }", "@Nullable\r\n @Override\r\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\r\n\r\n view= inflater.inflate(R.layout.fragment_search, container, false);\r\n searchView =(SearchView) view.findViewById(R.id.search);\r\n prepareSearchView();\r\n requestManager= Glide.with(this);\r\n progressBar = (ProgressBar) view.findViewById(R.id.progressBarSearch);\r\n recyclerView = (RecyclerView) view.findViewById(R.id.recycler_search);\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_search, container, false);\n inputText = (EditText) view.findViewById(R.id.inputText);\n\n btn_search = (Button) view.findViewById(R.id.btn_search);\n btn_search.setOnClickListener(this);\n\n SupportMapFragment mapFragment = (SupportMapFragment) getChildFragmentManager().findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n\n return view;\n }", "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame_layout, fragment);\n fragmentTransaction.commit();\n\n }", "@Override\n public void onClick(View view) {\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, new CadastrarFragments())\n .commitNow();\n }", "private void displaySelectedFragment(Fragment fragment) {\n// if (fragmentName == null || !fragment.getClass().getSimpleName().equals(fragmentName)) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame_container, fragment);\n fragmentTransaction.commit();\n fragmentName = fragment.getClass().getSimpleName();\n// }\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n {\n View v = inflater.inflate(R.layout.libraryfragment, container, false);\n tracks=new ArrayList<String>();\n new JSONParse().execute();\n\n list=(ListView) v.findViewById(R.id.list);\n\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1,\n int position, long arg3) {\n // TODO Auto-generate2d method stub\n\nSingletonTracks.getInstance().setTrack(position);\n PlayingFragment fragment = new PlayingFragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.fragement_container, fragment);\n transaction.addToBackStack(null);\n transaction.commit();\n\n\n }\n });\n\n return v;\n\n }", "public void switchToAddFragment() {\n FragmentManager manager = getSupportFragmentManager();\n manager.beginTransaction().replace(R.id.fragment_container, new AddActivity()).commit();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n ((HomePengajuan) getActivity()).setActionBarTitle(\"Menu\");\n View rootView = inflater.inflate(R.layout.fragment_volunteer_home, container, false);\n final FragmentTransaction ft = getFragmentManager().beginTransaction();\n\n mSampahku = rootView.findViewById(R.id.cv_sampahku);\n mMemasukan = rootView.findViewById(R.id.cv_memasukan);\n mBankSampah = rootView.findViewById(R.id.cv_bank_sampah);\n mLeaderboard=rootView.findViewById(R.id.cv_leaderboard);\n\n mSampahku.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ft.replace(R.id.container_volunteer, new LihatPengajuan()).commit();\n }\n });\n mMemasukan.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ft.replace(R.id.container_volunteer, new MemasukanPengajuan()).commit();\n }\n });\n mBankSampah.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ft.replace(R.id.container_volunteer, new LihatDaftarPakan()).commit();\n }\n });\n\n mLeaderboard.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ft.replace(R.id.container_volunteer, new Volunteer_leaderboard()).commit();\n }\n });\n\n\n return rootView;\n }", "private void showSection(int position) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.container, PlaceholderFragment.newInstance(position + 1))\n .commit();\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.activity_list,container);\n Button button = (Button) rootView.findViewById(R.id.fragment_button);\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n android.app.FragmentManager fragmentManager = getActivity().getFragmentManager();\n android.app.FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n Bundle bundle = new Bundle();\n bundle.putString(\"main\", null);\n fragmentTransaction.replace(R.id.fragment_container_framelayout, null);\n fragmentTransaction.addToBackStack(\"next\");\n fragmentTransaction.commit();\n }\n });\n return rootView;\n }", "public void onClick(View v) {\n getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new MyContactFragment()).commit();\n\n // Replace\n Toast.makeText( getActivity(),\"Emergency contact\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onNavigationDrawerItemSelected(int position) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n if(position==0) {\n a=0;\n fragmentManager.beginTransaction()\n .replace(R.id.container, PlaceholderFragment.newInstance(position + 1))\n .commit();\n }else if (position==1){\n a=1;\n fragmentManager.beginTransaction()\n .replace(R.id.container, PlaceholderFragment.newInstance(position + 1))\n .commit();\n }\n }", "public void placePlayerFragment(Player player) {\n mToolBar.setTitle(player.getPerson().getName());\n getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.fragment_container,\n PlayerNationalityFragment.newFragment(player))\n //Allow users to backup through the fragments\n .addToBackStack(player.getPerson().getName())\n .commit();\n\n }", "public void searchMenu(View view)\n {\n // Handles the Click from the search menu\n SearchOptions searchOptions = new SearchOptions(this.gogoBogo);\n searchOptions.show(getSupportFragmentManager(), \"test\");\n }", "private void setFragmentMovie(Fragment fragmentMovie){\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.frame_fav, fragmentMovie)\n .addToBackStack(null)\n .commit();\n }", "@Override\n public void onClick(View v) {\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n Fragment fragment = new FavoriteFragment();\n ft.replace(R.id.layout_fragment, fragment, \"FavoriteFragment\");\n ft.commit();\n }", "@Override\n public void onComplete(@NonNull Task<Void> task)\n {\n FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.fragment_container, new Fragment_VacatureOmschrijving()).addToBackStack(\"tag\").commit();\n Toast.makeText(getActivity(), \"Uw sollicitatie is succesvol verzonden\", Toast.LENGTH_LONG).show();\n }", "public void loadNewEdit(){\n fabAdd.hide();\n fabSave.show();\n\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragContainer1,new CourseEditFragment(),\"EDIT\")\n .addToBackStack(\"EDIT\")\n .commit();\n }", "public void goMainStampCard() {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager\n .beginTransaction();\n fragmentTransaction.setCustomAnimations(R.anim.abc_fade_in,\n R.anim.abc_fade_out);\n fragmentTransaction.addToBackStack(null);\n FragmentMainStampCard fragmentMain = FragmentMainStampCard\n .newInstances();\n fragmentTransaction.replace(R.id.container, fragmentMain);\n fragmentTransaction.commit();\n }" ]
[ "0.6964487", "0.65185475", "0.6314278", "0.6269594", "0.6253103", "0.62109137", "0.6195909", "0.6165767", "0.61493397", "0.61398697", "0.61275786", "0.61245435", "0.6100782", "0.6073569", "0.60664046", "0.6053371", "0.6049744", "0.604774", "0.60431135", "0.60221356", "0.6006136", "0.60014087", "0.599202", "0.5984303", "0.5980033", "0.59790254", "0.5968761", "0.59660506", "0.5956059", "0.593621", "0.59275794", "0.5925721", "0.5923683", "0.5915718", "0.5905316", "0.5898627", "0.5896222", "0.5895634", "0.5887985", "0.58822083", "0.5879555", "0.5874326", "0.5874326", "0.5874326", "0.5874326", "0.5874326", "0.5874326", "0.58730775", "0.5868823", "0.5865449", "0.5863422", "0.5862713", "0.58594346", "0.58397555", "0.5839058", "0.5825219", "0.58198446", "0.58170485", "0.58114505", "0.58101785", "0.5809559", "0.5795082", "0.5794984", "0.57880104", "0.5783596", "0.57752126", "0.57751083", "0.5772067", "0.57703364", "0.575885", "0.5758795", "0.57570493", "0.57570493", "0.5752674", "0.5751419", "0.57481277", "0.57459044", "0.5738837", "0.5733946", "0.57248545", "0.57246256", "0.57102245", "0.57033336", "0.56957704", "0.56955236", "0.56862575", "0.5683555", "0.5679511", "0.5676652", "0.56757265", "0.56716716", "0.56582296", "0.5657334", "0.56533396", "0.56490564", "0.5641649", "0.5638327", "0.5630686", "0.56248933", "0.5622835", "0.56209654" ]
0.0
-1
Your Application code will be place here.
@Override public void run(String... args) throws Exception { logger.info("Starting Application..."); SourceContact sourceContact = new SourceContact(); sourceContact.setId(73); sourceContact.setName("Sophie"); sourceContact.setPhone("1234567890"); sourceContact.setEmail("testing@simplesolution.dev"); sourceContact.setAddress("New York city"); DestinationContact destinationContact = new DestinationContact(); // Map source object to destination object mapper.map(sourceContact, destinationContact); // Logging destination object data logger.info(destinationContact.getIdentity().toString()); logger.info(destinationContact.getFullName()); logger.info(destinationContact.getPhoneNumber()); logger.info(destinationContact.getEmailAddress()); logger.info(destinationContact.getAddressLine()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void onPreCreateApplication() {\n\n\t}", "@Override\n protected void appStart() {\n }", "protected void onAfterCreateApplication() {\n\n\t}", "public void startApp()\r\n\t{\n\t}", "public AuctionApp() {\r\n runAuctionApp();\r\n }", "public ParkingApp() {\n runApp();\n }", "@Override\n public void onCreate() {\n super.onCreate();\n application = this;\n }", "public MTApplication(){\r\n\t\tsuper();\r\n\t}", "public void myapp() {\n\n\n }", "public MainApp() {\n initComponents();\n }", "public BazaarApplicationImpl() {\r\n\t\tsuper();\r\n\r\n\t}", "@Override\n\tpublic void initApplication(BBApplication app) {\n\t\tthis._application = app;\n\t}", "public Application() {\n\t\tinitComponents();\n\t\tthis.service = new PacienteService();\n\t\tthis.AtualizarTabelaPacientes();\n\t\tthis.sexo = this.rd_nao_informado.getText();\n\t\tthis.cb_estados.setSelectedIndex(24);\n\t}", "public App() {\n initComponents();\n }", "public App() {\n initComponents();\n }", "Application getApplication();", "public DefaultApplication() {\n\t}", "public ClientApp()\n\t{\n\t\tinitComponents();\n\t\tafterInitComponents();\n\t}", "public void setApp(Main application) { this.application = application;}", "public ChatbotAppController()\n\t{\n\t\tapplicationView = new ChatbotView(this);\n\t\tbaseFrame = new ChatbotFrame(this);\n\t\tmySillyChatbot = new Chatbot(\"Derf\");\n\t\tstartMessage = \"Welcome to the \" + mySillyChatbot.getName() + \" chatbot. What is your name?\";\n\t\tquitMessage = \"goodbye cruel user :(\";\n\t\tcontentMessages = \"That's really cool I love riding motorcycles too!\";\n\t}", "public void startUp() {\n\t\t/* Language of App */\n\t\t\n\t\t/* Init Icons */\n\t\tPaintShop.initIcons(display);\n\t\t/* Init all components */\n\t\tinitComponents();\n\t\t\n\t\t\n\t}", "public PSFUDApplication()\n {\n loadSnapshot();\n }", "@Override\n public void firstApplicationStartup()\n {\n System.out.println(\"firstApplicationStartup\");\n \n }", "private SudokuSolverApplication() {\n\t}", "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 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 App() {\n\t\tLog.d(\"App\", \"App created\");\n\t\tinstance = this;\n\t}", "public MyDemoApplication(){\n\t\t//System.out.println(\"hi\");\n\t\t/*register(RequestContextFilter.class);\n\t\tregister(RestServiceUsingJersey.class);\n\t\tregister(ServiceYearImpl.class);\n\t\tregister(YearDaoImpl.class);\n\t\tregister(JacksonFeature.class);*/\n\t\t\n\t\t/**\n\t\t * Register JAX-RS application components.\n\t\t */\n\t\t\n\t\t\t\n\t packages(\"com.reporting.webapi\");\n\n\t\t\t// register features\n\t\t\tEncodingFilter.enableFor(this, GZipEncoder.class);\t\t\n\t\t\t\n\t\n\n\t}", "public void onModuleLoad() {\n\t\tGWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onUncaughtException(Throwable e) {\n\t\t\t\tThrowable unwrapped = getExceptionToDisplay(e);\n\t\t\t\tAppClientFactory.printSevereLogger(\"Exception Caught !! \"+unwrapped.getMessage());\n\t\t\t}\n\t\t});\n\t\t\n\t\tDelayedBindRegistry.bind(appInjector);\n\t\tAppClientFactory.setAppGinjector(appInjector);\n\t\t ArrayList<LoadLibrary> loadLibraries = new ArrayList<LoadApi.LoadLibrary>();\n\t\t loadLibraries.add(LoadLibrary.ADSENSE);\n\t\t loadLibraries.add(LoadLibrary.DRAWING);\n\t\t loadLibraries.add(LoadLibrary.GEOMETRY);\n\t\t loadLibraries.add(LoadLibrary.PANORAMIO);\n\t\t loadLibraries.add(LoadLibrary.PLACES);\n\t\t loadLibraries.add(LoadLibrary.WEATHER);\n\t\t loadLibraries.add(LoadLibrary.VISUALIZATION);\n\t\t \n\t\t \n\t\tString device = BrowserAgent.returnFormFactorWithSizeView();\n\t\tString size[] = device.split(\"-\");\n\n\t\t\tappInjector.getAppService().getLoggedInUser(new SimpleAsyncCallback<UserDo>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(UserDo loggedInUser) {\n\t\t\t\t\tAppClientFactory.setLoggedInUser(loggedInUser);\n\t\t\t\t\tUcCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\t\tHomeCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\t\tAppClientFactory.getInjector().getWrapPresenter().get().setLoginData(loggedInUser);\n\t\t\t\t\tappInjector.getPlaceManager().revealCurrentPlace();\n\t\t\t\t\tAppClientFactory.setProtocol(getHttpOrHttpsProtocol());\n\t\t\t\t\tregisterWindowEvents();\n\t\t\t\t}\n\t\t\t});\n\t\t\tAppClientFactory.setAppGinjector(appInjector);\n\n\t\tgetloggersStatus();\n\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 240px) and (max-width: 767px) {\" + PlayerStyleBundle.INSTANCE.getPlayerMobileStyle().getText() + \"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 768px) and (max-width: 991px) {\" + PlayerStyleBundle.INSTANCE.getPlayerTabletStyle().getText() + \"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 240px) and (max-width: 550px) {\" + PlayerSmallMobileBundle.INSTANCE.getPlayerSmallMobile().getText() + \"}\");\n\t\tPlayerStyleBundle.INSTANCE.getPlayerStyleResource().ensureInjected();\n\t\t\n\t\tStyleInjector.injectAtEnd(\"@media (max-width: 767px){\"+SearchCBundle.INSTANCE.getResponsiveStyle().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (max-width: 767px) and (orientation:portrait){\"+SearchCBundle.INSTANCE.getResponsive1Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (max-width: 767px) and (orientation:landscape){\"+SearchCBundle.INSTANCE.getResponsive2Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 480px) and (max-width: 767px){\"+SearchCBundle.INSTANCE.getResponsive3Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 240px) and (max-width: 319px){\"+SearchCBundle.INSTANCE.getResponsive4Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 320px) and (max-width: 479px){\"+SearchCBundle.INSTANCE.getResponsive5Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media screen and (min-width: 768px){\"+SearchCBundle.INSTANCE.getResponsive6Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 1200px){\"+SearchCBundle.INSTANCE.getResponsive7Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 768px) and (max-width: 991px) {\"+SearchCBundle.INSTANCE.getResponsive8Style().getText()+\"}\");\n\n\t\tSearchCBundle.INSTANCE.css().ensureInjected();\n\t\t\n\t\t\n\t\t\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 240px) and (max-width: 319px){\"+LoginPopUpCBundle.INSTANCE.getResponsiveStyle().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 320px) and (max-width: 479px){\"+LoginPopUpCBundle.INSTANCE.getResponsive1Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 480px) and (max-width: 767px){\"+LoginPopUpCBundle.INSTANCE.getResponsive2Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 768px) and (max-width: 991px){\"+LoginPopUpCBundle.INSTANCE.getResponsive3Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 1200px){\"+LoginPopUpCBundle.INSTANCE.getResponsive4Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media screen and (max-width: 767px) {\"+LoginPopUpCBundle.INSTANCE.getResponsive5Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media screen and (min-width: 768px) {\"+LoginPopUpCBundle.INSTANCE.getResponsive6Style().getText()+\"}\");\n\n\t\tLoginPopUpCBundle.INSTANCE.css().ensureInjected();\n\t\t\n\t\tStyleInjector.injectAtEnd(\"@media (max-width: 767px) {\"+AnalyticsTabCBundle.INSTANCE.getResponsiveStyle().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 768px) and (max-width: 991px) {\"+AnalyticsTabCBundle.INSTANCE.getResponsive1Style().getText()+\"}\");\n\t\t\n\t\tAnalyticsTabCBundle.INSTANCE.css().ensureInjected();\n\t\t\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 240px) and (max-width: 319px){\"+ResourcePlayerCBundle.INSTANCE.getResponsive1Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 320px) and (max-width: 479px){\"+ResourcePlayerCBundle.INSTANCE.getResponsive2Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 480px) and (max-width: 767px){\"+ResourcePlayerCBundle.INSTANCE.getResponsive3Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 768px) and (max-width: 992px){\"+ResourcePlayerCBundle.INSTANCE.getResponsive4Style().getText()+\"}\");\n\n\t\tResourcePlayerCBundle.INSTANCE.css().ensureInjected();\n\t\n\n\t\tStyleInjector.injectAtEnd(\"@media (max-width: 767px) {\"+CollectionSummaryIndividualCBundle.INSTANCE.getResponsiveStyle().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 768px) and (max-width: 991px) {\"+CollectionSummaryIndividualCBundle.INSTANCE.getResponsive1Style().getText()+\"}\");\n\t\t\n\t\tCollectionSummaryIndividualCBundle.INSTANCE.css().ensureInjected();\n\t\t\n\t\tStyleInjector.injectAtEnd(\"@media (max-width: 767px) {\"+CollectionPlaySummaryCBundle.INSTANCE.getResponsiveStyle().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 768px) and (max-width: 991px) {\"+CollectionPlaySummaryCBundle.INSTANCE.getResponsive1Style().getText()+\"}\");\n\t\t\n\t\tCollectionPlaySummaryCBundle.INSTANCE.css().ensureInjected();\n\t\t\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 480px) and (max-width: 767px){\"+FolderContainerCBundle.INSTANCE.getResponsiveStyle().getText()+\"}\");\n\t\tFolderContainerCBundle.INSTANCE.css().ensureInjected();\n\t}", "public void onModuleLoad() {\r\n\t\trpcService = GWT.create(ContactService.class);\r\n\t\teventBus = new HandlerManager(null);\r\n\t\tappViewer = new AppController(rpcService, eventBus);\r\n\t\tappViewer.go(RootPanel.get(\"initView\"));\r\n\t}", "public MainApp() {\r\n\t\tsuper();\r\n\t\tthis.setSize(642, 455);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "@Override\n\tprotected void onCreate() {\n\t}", "protected void applicationInitalize() throws OwConfigurationException, OwServerException\r\n {\n OwConfiguration.applicationInitalize(this);\r\n }", "@Override\n public void onCreate() {\n }", "protected Application getApplication() {\r\n\t\treturn application;\r\n\t}", "public static void main(String args[]){\r\n Application theApp = new Application();\r\n theApp.createAccounts();\r\n theApp.processAccounts();\r\n theApp.outputAccounts();\r\n\r\n }", "@Override\n public void onCreate() {\n super.onCreate();\n\n JodaTimeAndroid.init(this);\n\n // mApplication = this;\n // initiate Timber\n //Timber.plant(new DebugTree());\n // Setup handler for uncaught exceptions.\n Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {\n @Override\n public void uncaughtException(Thread thread, Throwable e) {\n handleUncaughtException(thread, e);\n }\n });\n\n\n // initApplicationComponent();\n }", "@Override\n public void enterApplication(final ProgramParser.ApplicationContext ctx) {\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n // TODO Insert awesome here!\n \n }", "public static void main(String[] args) {\n startApplication();\n }", "@Override\n public void onCreate() {\n\n }", "public JFrameApp() {\n initComponents();\n }", "public static void main(String[] args) {\n\t\trunApplication();\n\t}", "public static void main ( String[] args ) {\n PhoneBook myApp = new PhoneBook(); \r\n }", "public static void main(String[] args) {\r\n \t\r\n // Creates new controller named the main controller\r\n GlobalResources.MainControl = new Control();\r\n // Starts main application\r\n GlobalResources.MainControl.StartApplication();\r\n }", "@Override\n\tpublic void init() throws Exception {\n //the code present in this method is executed as soon as the application loads that is even before it starts\n\t\tsuper.init(); //super keyword invokes the init methods as per the definition in the Application class\n \n\t}", "public void onModuleLoad() {\n\t\tRootPanel.get().addStyleName(\"body-background\");\n\t\tApp app = new App();\n\t\tapp.start();\n\t}", "public void setApp(Main application){\n this.application = application;\n }", "public static void main(String arg[]) {\n\n\t\tUtility.runApplication();\n\t}", "private void initializeBoundary() {\n\t\tapp = new Application(model);\n\t}", "public Application()\r\n {\r\n pSlot = new ParkingSlot();\r\n cPark = new CarPark();\r\n }", "@Override\n public void run(ApplicationArguments args) {\n }", "@Override\n\tpublic void onCreate() {\n\n\t}", "@Override\n protected void startUp() {\n }", "@Override public void run(ApplicationArguments args) {\n }", "public ScoutingApp(){\n\t\tteamPanel.add(teamsListPanel);\n\t\t\n\t\tmatchPanel.add(matchesListPanel);\n\t\t\n\t\tadd(teamPanel, BorderLayout.WEST);\n\t\tadd(matchPanel, BorderLayout.EAST);\n\t\t\n\t\tsetTitle(\"Scouting Application\");\n\t\tsetSize(1000, 600);\n\t\tsetLocationRelativeTo(null);\n\t\t//setExtendedState(MAXIMIZED_BOTH);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tsetVisible(true);\n\t}", "@Override\n public void onCreate() {\n Thread.setDefaultUncaughtExceptionHandler(new TryMe());\n\n super.onCreate();\n\n // Write the content of the current application\n context = getApplicationContext();\n display = context.getResources().getDisplayMetrics();\n\n\n // Initializing DB\n App.databaseManager.initial(App.context);\n\n // Initialize user secret\n App.accountModule.initial();\n }", "@Override\n protected void onCreate(Bundle arg0) {\n super.onCreate(arg0);\n setContentView(R.layout.activity_login);\n application= (MyApplication) this.getApplicationContext();\n initJson();\n init();\n }", "@Override\n public void onCreate() {\n super.onCreate();\n mApplication = this;\n Log.e(\"print\", \"Application\");\n }", "@Override\n public void simpleInitApp() {\n configureCamera();\n configureMaterials();\n viewPort.setBackgroundColor(new ColorRGBA(0.5f, 0.2f, 0.2f, 1f));\n configurePhysics();\n initializeHeightData();\n addTerrain();\n showHints();\n }", "public CH340Application() {\n sContext = this;\n }", "public App() {\n\t\tContainer pane = getContentPane();\n\t\t\n\t\ttetapan = new JButton(\"Tetapan\");\n\t\tpane.add(tetapan);\n\t\ttetapan.setBounds(10, 20, 80, 30);\n\t\t// tetapan.addActionListener(arg0);\n\t\tcarian = new JTextField(\"Cari...\");\n\t\tpane.add(carian);\n\t\tcarian.setBounds(260, 20, 150, 30);\n\t\tcari = new JButton(\"Cari\");\n\t\tpane.add(cari);\n\t\tcari.setBounds(410, 20, 60, 30);\n\t\t// cari.addActionListener(arg0);\n\t}", "@Override\n public void startup() {\n }", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "public testDatabaseAppController()\n\t{\n\t\tdataController = new testDatabaseController(this);\n\t\tqueryList = new ArrayList<QueryInfo>();\n\t\tappFrame = new testDatabaseFrame(this);\n\t}", "public Client_app() {\n initComponents();\n }", "public void run() {\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}", "public void run() {\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}", "public static void main(String[] args) {\r\n\t\t/* application object */\r\n\t\tCustomersApp myAp = new CustomersApp();\r\n\t\t/* run the application */\r\n\t\tmyAp.run();\r\n\t\t\r\n\t}", "protected void onFirstUse() {}", "public void startup(){}", "public void onCreate() {\n\t\tmApplication = this;\n\t\t\n\t\tlog.e(\"yunyou --> MyApplication\tonCreate!!!\");\n\t\t\n\t\tlong timeMillis1 = System.currentTimeMillis();\n\t\tmNetworkCenter = NetworkCenterEx.getInstance();\n\t\tlong timeMillis2 = System.currentTimeMillis();\n\t\tlog.e(\"yunyou --> NetworkCenter.getInstance() cost = \" + (timeMillis2 - timeMillis1) + \"!!!\");\n\t\t\n\t\tmUserInfoEx = new GloalType.UserInfoEx();\n\t\t\n\t\tmHandler = new Handler()\n\t\t{\n\n\t\t\t@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tswitch(msg.what)\n\t\t\t\t{\n\t\t\t\tcase HANDLER_MSG_REFRESH_UNREADCOUNT:\n\t\t\t\t{\n\t\t\t\t\tif (mTVUnreadMsgCount != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (mUnreadCount > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmTVUnreadMsgCount.setText(\"\" + mUnreadCount);\n\t\t\t\t\t\t\tmTVUnreadMsgCount.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tmTVUnreadMsgCount.setVisibility(View.GONE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase HANDLER_MSG_REFRESHT_EXIT:\n\t\t\t\t{\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t};\n\t\t\n\t\t\n\t\t mHeartBeatManager = HeartBeatManager.getInstance();\t \n\t\t mMsgManager = MsgManager.getInstance();\t\t\t\t \n\t\t mOnlineStatusManager = OnlineStatusManager.getInstance();\n\n\t\t int screenWidth = Utils.getScreenWidth(this);\n\t\t int screenHeight = Utils.getScreenHeight(this);\n\t\t log.e(\"screenWidth = \" + screenWidth + \", screenHeight = \" + screenHeight);\n\t\t \n\t\t\ttry {\n\t\t\t\tMapsInitializer.initialize(this);\n\t\t\t} catch (RemoteException 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\t\n\t\t\tTCAgent.init(this);\n\t\t\tTCAgent.setReportUncaughtExceptions(true);\n\t}", "@Override\n public void onCreate() {\n super.onCreate();\n // Initialize the SDK before executing any other operations,\n FacebookSdk.sdkInitialize(getApplicationContext());\n AppEventsLogger.activateApp(this);\n }", "public Application2() {\n initComponents();\n setLocationRelativeTo(null);\n }", "private void appInitialization(){\n openRom();\n openGuide();\n setOffset(0);\n addressChanged();\n }", "public static void setApplicationInitialized() {\n applicationInitialized = true;\n }", "public static void main(String[] args){\n\n MyApp myApp = new MyApp(); //1\n myApp.runMyApp(); //2\n System.out.println(\"End of Program\"); //3\n }", "@Override\n public void simpleInitApp() {\n this.viewPort.setBackgroundColor(ColorRGBA.LightGray);\n im = new InteractionManager();\n setEdgeFilter();\n initEnemies();\n initCamera();\n initScene();\n initPlayer();\n initCrossHairs();\n }", "protected void onCreate() {\n }", "private void initThings() {\n\t\tmyApp = (MyApp) getApplicationContext();\n\t\tnextIntent = new Intent(this, AnimActivity2.class);\n\t\t// nextIntent = new Intent(this, SelectEventActivity.class);\n\t\tnextIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK\n\t\t\t\t| Intent.FLAG_ACTIVITY_CLEAR_TASK);\n\t\tuserDAO = new UserDAO(this);\n\t\tdialog = new CreateDialog(this);\n\t\tprogressDialog = dialog.createProgressDialog(null, \"Logging In\", false,\n\t\t\t\tnull, false);\n\t\ttypeface = myApp.getTypefaceRegular();\n\n\t\t// <<<<<<< HEAD\n\t\t//\n\t\t// GsonBuilder builder = new GsonBuilder();\n\t\t// gson = builder.create();\n\t\t//\n\t\t// queue = Volley.newRequestQueue(this);\n\t\t// =======\n\t\t// >>>>>>> parent of 48afbfc... setup android again\n\t}", "@Override\n public void onCreate()\n {\n\n\n }", "public void initApp() {\r\n\t\tUtilities.program=this;\r\n\t\ttouchList = new Hashtable<Integer, Touch>();\r\n\r\n\t\t// DB\r\n\t\tqueryManager = new QueryManager(this);\r\n\r\n\t\tlong timer = System.currentTimeMillis();\r\n\t\tresults = queryManager.getCrashesALL();\r\n\t\tSystem.out.println(System.currentTimeMillis() - timer);\r\n\t\ttimer = System.currentTimeMillis();\r\n\r\n\t\t// MARKERS\r\n\t\tUtilities.markerShape = loadShape(\"marker.svg\");\r\n\t\tmarkerList = updateMarkerList();\r\n\t\t\r\n\t\t\r\n\t\t// GRID\r\n\t\tgm = new GridManager(this, map, results);\r\n\t\tSystem.out.println(\"InitApp1\");\r\n\t\tgm.computeGridValues();\r\n\t\tSystem.out.println(System.currentTimeMillis() - timer);\r\n\t\t\r\n\t\t// OTHER\r\n\t\tUtilities.font = this.loadFont(\"Helvetica-Bold-100.vlw\");\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void onCreate()\n {\n\n super.onCreate();\n }", "private void main() {\n // # I DON'T HAVE A MAIN DASHBOARD YET. MACAYLA MIGHT WANT #\n // # TO DESIGN THAT PART. FOR NOW, I HAVE A \"FAUX\" RESULTS #\n // # PAGE SHOWING, JUST SO I CAN GET A LOOK AT HOW THE RESULTS PAGE #\n // # WILL LOOK. #\n // ######################################################################\n\n ResultsFragment fragment = new ResultsFragment();\n String tag = ResultsFragment.class.getCanonicalName();\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragment_frame, fragment, tag).commit();\n }", "void onApplicationEvent(ApplicationEvent e);", "public StockApp()\n {\n reader = new InputReader();\n manager = new StockManager();\n menuSetup();\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tmDataMgrApp = (MainApplication) getApplicationContext();\n\t}", "void startup();", "void startup();", "public MainGUI() {\n\t\tString xmlpath = \"classpath:applicationContext.xml\";\n\t\tApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlpath);\n\t\t\n\t\tcenter = (CenterController)applicationContext.getBean(\"CenterController\");\n\t\t\n\t\tinitialize();\n\t\t\n\t}", "public Launcher()\n {\n // Loading (or creating) the preferences file\n // TODO: handle read/create file failed (maybe with an error popup?)\n boolean settingsLoaded = settings.checkAndLoad();\n\n if (!settingsLoaded) {\n System.exit(-10);\n }\n\n LoginController loginController = configureController(new LoginController());\n configureController(new ContactsController());\n configureController(new ConversationsController());\n\n /**\n * --------------------------\n * Event listeners\n * --------------------------\n */\n eventManager.attach(MvcEvent.WINDOW_CLOSING, new SaveOnExitListener());\n\n\n /**\n * --------------------------\n * Running the application\n * --------------------------\n */\n loginController.displayLogin();\n }", "public void setApp(MainFXApplication main) {\n mainApplication = main;\n database = mainApplication.getUsers();\n\n }", "public Main() {\n\t\tsuper();\n\t\tInitScreen screen = new InitScreen();\n\t\tpushScreen(screen);\n\t\tUiApplication.getUiApplication().repaint();\n\t}", "public static Result index() {\n\n String root = com.domain.root.Main.someString();\n String foo = com.domain.foo.Main.someString();\n String bar = com.domain.bar.Main.someString();\n String zee = com.domain.zee.Main.someString();\n\n return ok(index.render(\"Your new application is ready.\"));\n }", "@Override\n public void onCreate() {\n super.onCreate();\n }", "@Override\n public void onCreate() {\n super.onCreate();\n }", "private void exitApplication()\r\n {\r\n System.exit(0);\r\n }", "public GUICarsApp() {\n initComponents();\n \n aList = new ArrayList<Object>();\n }", "public static void main(String[] args) {\n // Start App\n EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() { new App(); }\n });\n }" ]
[ "0.6958396", "0.6941946", "0.68908584", "0.6810849", "0.6770728", "0.675417", "0.6615681", "0.64933133", "0.64295197", "0.6420897", "0.6382551", "0.6373674", "0.6366849", "0.63663864", "0.63663864", "0.63652575", "0.6334712", "0.62989414", "0.6264267", "0.6252215", "0.62412065", "0.6210886", "0.62103575", "0.6188315", "0.6168919", "0.61416507", "0.61254096", "0.61109775", "0.6078001", "0.6075909", "0.6070099", "0.6060843", "0.6031814", "0.6008159", "0.59989434", "0.59944415", "0.59930855", "0.5989589", "0.59889364", "0.5982602", "0.59821904", "0.5959665", "0.59458536", "0.5945607", "0.59401673", "0.5939445", "0.59368736", "0.5931859", "0.5928063", "0.5926109", "0.5926078", "0.5921634", "0.5921127", "0.5920936", "0.59207577", "0.59150577", "0.59056926", "0.59009093", "0.5883288", "0.5881491", "0.5880998", "0.588057", "0.58781785", "0.58766955", "0.58724535", "0.586864", "0.58589584", "0.58589584", "0.5843805", "0.58404434", "0.58355427", "0.5834168", "0.5834019", "0.58211815", "0.5818841", "0.5817639", "0.58144736", "0.5798157", "0.57953936", "0.579195", "0.57820857", "0.578063", "0.5775161", "0.5769329", "0.5765978", "0.5762512", "0.57614255", "0.57614255", "0.5759605", "0.5753115", "0.5753115", "0.57500476", "0.57439363", "0.57375807", "0.57369965", "0.5734061", "0.5733964", "0.5733964", "0.57331336", "0.5722739", "0.5721345" ]
0.0
-1
stop dragging on mouse released
@Override public void mouseReleased(final MouseEvent e) { startedResizingOrMoving = false; initialMovePointX = 0; finalMovePointX = 0; itemWidth = -1; resizeMargin = provideCursor(e, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void stopDragging() {\n setDragging(false);\n mouseX = mouseY = prevX = prevY = 0;\n }", "public void mouseReleased(MouseEvent me) {\n endDrag();\n }", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tmouseDown = false;\n\t}", "public void mouseReleased() {\n super.mouseReleased();\n pressed = false;\n properties.post_mouseReleased(1);\n }", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tisMoved = false;\n\t}", "public void mouseReleased() {\n\t\tthis.isPressed = false;\n\t}", "public void mouseReleased(MouseEvent e) {\n mDown=false;\n }", "void onStopTrackingTouch() {\n mIsDragging = false;\n }", "void onStopTrackingTouch() {\n mIsDragging = false;\n }", "public void mouseReleased (MouseEvent m)\r\n {\r\n \tmousePressed = false;\r\n \tmouseReleased = true;\r\n \tobjPicked = false;\r\n \t//System.out.println(\"mouseReleased..\");\r\n }", "public void mouseDragged(MouseEvent mouseEvent)\r\n { \r\n // Do nothing for this\r\n }", "void mouseReleased() {\n firing = false;\n}", "public void cancelDragging(MouseEvent mouseEvent) \r\n\t{\r\n\t\t\r\n\t\t// Reset the old cursor.\r\n\t\tcursorManager.resetCursor();\r\n\r\n\t\t// Clean up what was painted for dragging.\r\n\t\tclearPainting();\r\n\t\t\r\n\t\t// No dragging anymore.\r\n\t\treset();\r\n\r\n\t}", "private synchronized void endDrag() {\n this.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\n beingDragged = false;\n }", "@Override\n\tpublic boolean onMouseReleased(MouseButtonEvent event) {\n\t\treturn false;\n\t}", "public void mouseDragged(MouseEvent e){}", "public void mouseDrag(MouseEvent e, int x, int y) {\n // Do nothing.. \n }", "@Override\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\tcurrentPoint = null;\n\t}", "public void mouseDragged(MouseEvent e) {}", "public void mouseDragged (MouseEvent e) {}", "protected void onRelease(){\n pressed = false;\n if(hovered) {\n onClick();\n }\n for(Runnable action : onRelease) action.run();\n }", "static void setNotDraging(){isDraging=false;}", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\t mouseReleased = true;\n\t\t cardClicked = false;\n\t\t mouseClick = false;\n\t\t \n\t}", "void mouseReleased(double x, double y, MouseEvent e );", "void mouseDragged(double x, double y, MouseEvent e );", "void mouseReleased(MouseEvent mouseEvent);", "@Override\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\tint keycode = arg0.getButton();\n\t\tif (keycode == LEFT_CLICK)\n\t\t{\n\t\t\tleftDown = false;\n\t\t}\n\t\tif (keycode == RIGHT_CLICK)\n\t\t{\n\t\t\trightDown = false;\n\t\t\t\n\t\t}\n\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent e)\n\t\t{\n\t\t\treturn;\n\t\t}", "public void mouseReleased(MouseEvent release) {\r\n\t\tif (SwingUtilities.isLeftMouseButton(release)) {\r\n\t\t\twasReleased = true;\r\n\t\t}\r\n\r\n\t\telse if (SwingUtilities.isRightMouseButton(release)) {\r\n\t\t\trClick = false;\r\n\t\t}\r\n\t}", "public void mouseDragged( MouseEvent event ){}", "boolean onMouseDragged(double mouseX, double mouseY, double prevMouseX, double prevMouseY);", "public void mouseReleased( MouseEvent event ){}", "public void mouseDragged(MouseEvent e)\n {}", "protected boolean dealWithMouseUp(org.eclipse.swt.events.MouseEvent e)\n {\n setUpMouseState(MOUSE_RELEASED);\n return true;\n }", "@Override\r\n\tpublic void mouseReleased(MouseEvent me) {\r\n\t\trelease(me.getX(), me.getY());\r\n\t}", "boolean _mouseReleased(MouseEvent ev) {\n\t\treturn false;\n\t}", "public void mouseReleased(MouseEvent event) {}", "public void mouseDragged(MouseEvent e) {\n\t}", "@Override\r\n public void mouseDragged(MouseEvent e) {\n }", "@Override\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\tif(Piece.selectedPiece != null)\n\t\t{\n\t\t\tPiece.moving = false;\n\t\t\tPiece.selectedPiece.setMoving(false);\n\t\t\tdraw();\n\t\t\trepaint();\n\t\t\t//System.out.println(\"mouseReleased\");\n\t\t}\n\t}", "public void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "public void mouseDragged(MouseEvent e) {\n }", "@Override\n public void mouseDrop()\n {\n }", "public void mouseDragged(MouseEvent event) { }", "public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "private void formMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseDragged\n \n /*Pon la bandera para saber que ya hubó un evento y no se desloguie*/\n bIdle = true;\n \n }", "private void formMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseDragged\n \n /*Pon la bandera para saber que ya hubó un evento y no se desloguie*/\n bIdle = true;\n \n }", "@Override\n public void mouseDragged(MouseEvent arg0) {\n \n }", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "@Override\n public void mouseDragged(MouseEvent e) {\n\n }", "public void mouseReleased(MouseEvent e) {}", "public void mouseReleased(MouseEvent e) {}", "public void mouseReleased(MouseEvent e) {}", "public void mouseExited(MouseEvent me) {\n endDrag();\n }", "@Override\n public void mouseReleased(final MouseEvent e)\n {\n }", "@Override\r\n public void mousePressed(MouseEvent e) {\n startDrag = new Point(e.getX(), e.getY());\r\n endDrag = startDrag;\r\n repaint();\r\n\r\n }", "public void mouseDragged(MouseEvent e) {\n\n }", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "public void mouseReleased(MouseEvent e) // When mouse is released:\n {\n hLineGrabbed = vLineGrabbed = // Neither line is grabbed\n hLineMoved = vLineMoved = false; // Neither line is moved anymore\n }", "public void mouseDragged( MouseEvent e ) {\n }", "@Override\n \tpublic void mouseDragged(MouseEvent e) {\n \t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t}", "public void mouseReleased(MouseEvent mouseRelease)\r\n\t{\r\n\t\tmouseReleasedX = mouseRelease.getX();\r\n\t\tmouseReleasedY = mouseRelease.getY();\r\n\t\tmouseReleasedFlag = true;\r\n\t\t//System.out.println(\"mouseReleasedX: \" + mouseReleasedX);\r\n\t\t//System.out.println(\"mouseReleasedY: \" + mouseReleasedY);\r\n\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\n\t}", "public void mouseReleased(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n if(onClick!=null) {\n mouseRelease = true;\n }\n }", "@Override\n\tpublic void mouseReleased(MouseEvent event) {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t\t\t}", "public void mouseReleased(MouseEvent event) { }", "@Override\n\tpublic void mouseDragged(MouseEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void mouseReleased(MouseEvent event){}", "public void mouseReleased(MouseEvent mouse) {\n\t\tif (pressedObject) {\n\t\t\tLiquidApplication.getGUI().getEditorPanel().setSelectedObjectPanel();\n\t\t\tLiquidApplication.getGUI().getApplicationState().saveState();\n\t\t\tpressedObject = false;}\n\t}", "public void mouseReleased(MouseEvent event) { \n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t}", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\n public void mouseReleased(MouseEvent e)\n {\n }", "@Override\n public void mouseReleased(MouseEvent e)\n {\n }", "public void mouseReleased(MouseEvent e) {\n moveP = null; // jetzt nicht mehr bewegen\n }", "@Override\n protected void mouseReleased(int mouseX, int mouseY, int state) {\n this.screenContainer.mouseReleased(mouseX, mouseY, state);\n }", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }" ]
[ "0.83986306", "0.78913003", "0.78235805", "0.77653754", "0.7737039", "0.76830196", "0.7493364", "0.7340973", "0.7340973", "0.7259251", "0.71620774", "0.7112565", "0.70950544", "0.6997746", "0.69743675", "0.6946318", "0.6944697", "0.6882872", "0.68687636", "0.68301547", "0.68186253", "0.68127877", "0.68086225", "0.6787459", "0.6759268", "0.6753633", "0.67500055", "0.67225254", "0.6705154", "0.66902953", "0.6685346", "0.6679008", "0.6672798", "0.66725355", "0.6664476", "0.66639537", "0.66563064", "0.6636245", "0.6636128", "0.663073", "0.66282094", "0.6624183", "0.6624183", "0.66178", "0.66142476", "0.6609178", "0.66065246", "0.66065246", "0.6595586", "0.6595586", "0.65925235", "0.65821826", "0.65821826", "0.6580519", "0.6579831", "0.6579831", "0.6579831", "0.6576921", "0.6568607", "0.6549202", "0.6545853", "0.6542682", "0.6542682", "0.6542682", "0.6542682", "0.6542682", "0.6538532", "0.65342665", "0.6528664", "0.6525904", "0.6525904", "0.65231", "0.6518742", "0.6514442", "0.6514442", "0.6514442", "0.65098244", "0.65041274", "0.6503784", "0.6499386", "0.6498777", "0.6496851", "0.6495611", "0.649161", "0.64910716", "0.64896125", "0.64893436", "0.64893436", "0.64893436", "0.648899", "0.648899", "0.6487282", "0.6483153", "0.64804447", "0.64804447", "0.64804447", "0.64804447", "0.64804447", "0.64804447", "0.64804447", "0.64782274" ]
0.0
-1
Determines an entity currently situated under a cursor.
private XYItemEntity determineAnItemUnderACursor(final ChartPanel chartPanel, final int x0, final int y0) { final Insets insets = chartPanel.getInsets(); final int x = (int) ((x0 - insets.left) / chartPanel.getScaleX()); final int y = (int) ((y0 - insets.top) / chartPanel.getScaleY()); final ChartEntity entity = this.info.getEntityCollection().getEntity(x, y); return xyEntity(entity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Cursor getCursor(final Point p) {\n return getTarget().getCursor();\n }", "@Override\n\tpublic StendhalCursor getCursor() {\n\t\treturn StendhalCursor.LOOK;\n\t}", "public abstract Cursor getMouseCursor();", "public abstract long getCursor();", "public ItemStack getItemOnCursor ( ) {\n\t\treturn extract ( handle -> handle.getItemOnCursor ( ) );\n\t}", "private @Nullable Person detectNode(final int cursorAbs, final int cursorOrd)\n {\n @Nullable Person resultPerson = null;\n for (Person person : model.getPeople())\n {\n final double distanceBetweenPoints = camera.d(\n camera.toRealX(cursorAbs),\n camera.toRealY(cursorOrd),\n person.getX() + DEFAULT_CIRCLE_RADIUS,\n person.getY() + DEFAULT_CIRCLE_RADIUS\n );\n if ( distanceBetweenPoints <= DEFAULT_CIRCLE_RADIUS )\n {\n resultPerson = person;\n break;\n }\n }\n return resultPerson;\n }", "public java.lang.String getCursor() {\n return cursor_;\n }", "public Entity getEntityOn(int x, int y) {\n\t\tfor (int s = 0; s < entities.size(); s++) {\n\t\t\tEntity i = entities.get(s);\n\t\t\tif (i.getX() >> 4 == x >> 4 && i.getY() >> 4 == y >> 4)\n\t\t\t\treturn i;\n\t\t}\n\t\treturn null;\n\n\t}", "public Cursor queryTheCursorLocation() { \n\t Cursor c = db.rawQuery(\"SELECT * FROM \"+ DBEntryContract.LocationEntry.TABLE_NAME, null); \n\t return c; \n\t}", "public Entity get_entity(String uid) {\n for (int layer_id: layer_ent_list.keySet()){\n Entity ent = get_entity(uid, layer_id);\n if (ent!=null){\n return ent;\n }\n }\n return null;\n }", "public default E onFind(E entity) {\n\t\treturn entity;\n\t}", "public Cursor getGraphCursor() {\r\n \t\treturn graph.getCursor();\r\n \t}", "public java.lang.String getCursor() {\n return instance.getCursor();\n }", "public Node<E> getCursor() {\n if (isCurrent()) { return cursor; }\n else { throw new IllegalStateException(\"There is no current element.\"); }\n }", "public WeightedPoint getCursor()\n {\n return cursor;\n }", "public CursorWrapper getCursor() {\n\t\t\treturn cursor;\n\t\t}", "public void cursorOn();", "public AbstractEntity getEntity() {\n if (entityClass == null) {\n return null;\n }\n try {\n AbstractEntity ent = entityClass.newInstance();\n if (value > -1) {\n ent.setSpriteValue(value);\n }\n return ent;\n } catch (InstantiationException | IllegalAccessException ex) {\n Logger.getLogger(CursorInfo.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "@Override\n public boolean isCurrent() { return cursor != null; }", "String underMouseSimple(MouseEvent me) {\n RenderContext myrc = (RenderContext) rc; if (myrc == null) return null;\n Rectangle2D mouse_rect = new Rectangle2D.Double(me.getX()-1,me.getY()-1,3,3);\n Iterator<String> it = myrc.node_coord_set.keySet().iterator();\n while (it.hasNext()) {\n String node_coord = it.next(); \n if (myrc.node_to_geom.containsKey(node_coord) && \n mouse_rect.intersects(myrc.node_to_geom.get(node_coord).getBounds())) return node_coord;\n }\n return null;\n }", "public Cursor getCursor() {\n\t\treturn null;\n\t}", "public TextPosition getPosition ( ) { return _cursorPosition; }", "public Cursor getCursor() throws RelationException;", "public Location getCurrentLocation() { return entity.getLocation(); }", "public int getCursor() { return curs; }", "public Cursor getCursor(){\n return mCursor;\n }", "Object getPosition();", "private Entity findEntity(Node node) {\n \n if (node instanceof Entity) {\n return (Entity) node;\n }\n \n else if (node != ((SimpleApplication) stateManager.getApplication()).getRootNode()){\n return findEntity(node.getParent());\n }\n \n else {\n return null;\n }\n \n }", "private InteractionObject getInteractionUnder(float[] point) {\n\t\tfor ( int i=interactionObjects.size() - 1; i>=0; i--) {\n\t\t\tInteractionObject interaction = interactionObjects.get(i);\n\t\t\tif ( interaction.hitTesting(point, DiagramController.this) ) {\n\t\t\t\treturn interaction;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public com.google.protobuf.ByteString\n getCursorBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(cursor_);\n }", "public final void load(Cursor cursor) {\n\t\tOllie.load(this, cursor);\n\t\tOllie.putEntity(this);\n\t}", "public final int getCursorAbsoluteX() {\n return getAbsoluteX() + cursorX;\n }", "public interface Entity {\r\n\r\n /**\r\n * Gets the initial (relative, map) position of the entity.\r\n * \r\n * @return the initial position of the player\r\n */\r\n Pair<Integer, Integer> getInitialPosition();\r\n\r\n /**\r\n * Gets the position of the entity on screen (absolute, pixel).\r\n * \r\n * @return entity current position on screen\r\n */\r\n Pair<Integer, Integer> getPosition();\r\n\r\n /**\r\n * Sets the position of the entity on screen.\r\n * Can be used to change an absolute position (that is grid locked because they're a multiple of a value) \r\n * to a specific position and place an object everywhere you want\r\n * \r\n * Please check {@link TestEntity} for an in-depth explanation of how this works.\r\n * \r\n * @param position defines the entity position on screen\r\n */\r\n void setPosition(Pair<Integer, Integer> position);\r\n\r\n /**\r\n * Gets the hitbox of the entity (a Rectangle if it's solid, null otherwise).\r\n * \r\n * @return the collision box of the entity.\r\n */\r\n Rectangle getCollisionBox();\r\n\r\n /**\r\n * Gets the path of the image that will be used by the view. \r\n * \r\n * @return the path where the image of the entity is located\r\n */\r\n String getImagePath();\r\n\r\n /**\r\n * Sets the path of the image that will be used by the view.\r\n * \r\n * @param path the path where the image of the entity is located\r\n */\r\n void setImagePath(String path);\r\n\r\n /**\r\n * Method that defines if the entity is destroyed or not.\r\n * \r\n * @return true if destroyed, false otherwise\r\n */\r\n boolean isDestroyed();\r\n\r\n /**\r\n * Sets the status of the entity (true if destroyed, false otherwise).\r\n * \r\n * @param destroyed defines if the entity has been destroyed or not\r\n */\r\n void setStatus(boolean destroyed);\r\n\r\n /**\r\n * Gets the entity width.\r\n * \r\n * @return entity width\r\n */\r\n int getWidth();\r\n\r\n /**\r\n * Sets the new entity width.\r\n * \r\n * @param width defines the new entity width\r\n */\r\n void setWidth(int width);\r\n\r\n /**\r\n * Gets the entity height.\r\n * \r\n * @return entity height\r\n */\r\n int getHeight();\r\n\r\n /**\r\n * Sets the new entity height.\r\n * \r\n * @param height defines the new entity width\r\n */\r\n void setHeight(int height);\r\n\r\n /**\r\n * Return the state of the block, if it is solid or not.\r\n * @return true if entity is solid, false otherwise.\r\n */\r\n boolean isSolid();\r\n\r\n /**\r\n * Sets the score value of the entity.\r\n * \r\n * @param scoreValue defines the value that will be given (added) to players score when the entity is destroyed\r\n */\r\n void setScoreValue(int scoreValue);\r\n\r\n /**\r\n * Gets the score value of the entity.\r\n * \r\n * @return a score value that defines the value of the entity\r\n */\r\n int getScoreValue();\r\n}", "public interface Entity {\n /**\n * check whether a collision with another entity happened\n * and perform the relevant action.\n * @param e the other entity\n * @return whether the collision happened\n */\n boolean collidedWith(Entity e);\n\n void draw(Graphics g, DisplayWriter d);\n\n void doLogic(long delta);\n\n void move(long delta);\n\n /**\n * whether or not the entity is out of the currently displayed area.\n * @return true if not visible\n */\n boolean outOfSight();\n}", "public Cursor getCursor()\n {\n// Object localObject1;\n// if (!this.mCursorValid)\n// {\n// this.mCursor = new EsMatrixCursor(PROJECTION);\n// this.mCursorValid = true;\n// if ((this.mLocalProfilesLoaded) && (this.mGaiaIdsAndCirclesLoaded))\n// {\n// localObject1 = new HashSet();\n// HashSet localHashSet = new HashSet();\n// Object localObject3 = this.mLocalProfiles.iterator();\n// while (true)\n// {\n// long l1;\n// if (!((Iterator)localObject3).hasNext())\n// {\n// localObject5 = this.mContacts.iterator();\n// while (true)\n// {\n// if (!((Iterator)localObject5).hasNext())\n// {\n// localObject2 = this.mPublicProfiles.iterator();\n// while (true)\n// {\n// if (!((Iterator)localObject2).hasNext())\n// {\n// localObject3 = this.mPublicProfiles.iterator();\n// while (true)\n// {\n// if (!((Iterator)localObject3).hasNext())\n// {\n// localObject1 = this.mCursor;\n// break;\n// }\n// localObject4 = (PublicProfile)((Iterator)localObject3).next();\n// localObject2 = ((PublicProfile)localObject4).gaiaId;\n// if (((HashSet)localObject1).contains(localObject2))\n// continue;\n// localObject5 = this.mCursor;\n// arrayOfObject = new Object[11];\n// l1 = this.mNextId;\n// this.mNextId = (1L + l1);\n// arrayOfObject[0] = Long.valueOf(l1);\n// arrayOfObject[1] = ((PublicProfile)localObject4).personId;\n// arrayOfObject[2] = null;\n// arrayOfObject[3] = localObject2;\n// arrayOfObject[4] = ((PublicProfile)localObject4).name;\n// arrayOfObject[5] = null;\n// arrayOfObject[6] = null;\n// arrayOfObject[7] = null;\n// arrayOfObject[8] = null;\n// arrayOfObject[9] = null;\n// arrayOfObject[10] = ((PublicProfile)localObject4).snippet;\n// ((EsMatrixCursor)localObject5).addRow(arrayOfObject);\n// }\n// }\n// localObject3 = (PublicProfile)((Iterator)localObject2).next();\n// localObject5 = ((PublicProfile)localObject3).gaiaId;\n// localObject4 = (String)this.mGaiaIdsAndCircles.get(localObject5);\n// if ((((HashSet)localObject1).contains(localObject5)) || (TextUtils.isEmpty((CharSequence)localObject4)))\n// continue;\n// ((HashSet)localObject1).add(localObject5);\n// localObject6 = this.mCursor;\n// Object[] arrayOfObject = new Object[11];\n// l1 = this.mNextId;\n// this.mNextId = (1L + l1);\n// arrayOfObject[0] = Long.valueOf(l1);\n// arrayOfObject[1] = ((PublicProfile)localObject3).personId;\n// arrayOfObject[2] = null;\n// arrayOfObject[3] = localObject5;\n// arrayOfObject[4] = ((PublicProfile)localObject3).name;\n// arrayOfObject[5] = localObject4;\n// arrayOfObject[6] = null;\n// arrayOfObject[7] = null;\n// arrayOfObject[8] = null;\n// arrayOfObject[9] = null;\n// arrayOfObject[10] = null;\n// ((EsMatrixCursor)localObject6).addRow(arrayOfObject);\n// }\n// }\n// localObject3 = (Contact)((Iterator)localObject5).next();\n// if (l1.contains(((Contact)localObject3).name))\n// continue;\n// localObject2 = this.mCursor;\n// localObject4 = new Object[11];\n// l2 = this.mNextId;\n// this.mNextId = (1L + l2);\n// localObject4[0] = Long.valueOf(l2);\n// localObject4[1] = ((Contact)localObject3).personId;\n// localObject4[2] = ((Contact)localObject3).lookupKey;\n// localObject4[3] = null;\n// localObject4[4] = ((Contact)localObject3).name;\n// localObject4[5] = null;\n// localObject4[6] = null;\n// localObject4[7] = ((Contact)localObject3).email;\n// localObject4[8] = ((Contact)localObject3).phoneNumber;\n// localObject4[9] = ((Contact)localObject3).phoneType;\n// localObject4[10] = null;\n// ((EsMatrixCursor)localObject2).addRow(localObject4);\n// }\n// }\n// Object localObject6 = (LocalProfile)((Iterator)localObject3).next();\n// Object localObject2 = ((LocalProfile)localObject6).gaiaId;\n// ((HashSet)localObject1).add(localObject2);\n// l1.add(((LocalProfile)localObject6).name);\n// Object localObject4 = this.mCursor;\n// Object localObject5 = new Object[11];\n// long l2 = this.mNextId;\n// this.mNextId = (1L + l2);\n// localObject5[0] = Long.valueOf(l2);\n// localObject5[1] = ((LocalProfile)localObject6).personId;\n// localObject5[2] = null;\n// localObject5[3] = localObject2;\n// localObject5[4] = ((LocalProfile)localObject6).name;\n// localObject5[5] = ((LocalProfile)localObject6).packedCircleIds;\n// localObject5[6] = ((LocalProfile)localObject6).email;\n// localObject5[7] = null;\n// localObject5[8] = ((LocalProfile)localObject6).phoneNumber;\n// localObject5[9] = ((LocalProfile)localObject6).phoneType;\n// localObject5[10] = null;\n// ((EsMatrixCursor)localObject4).addRow(localObject5);\n// }\n// }\n// localObject1 = this.mCursor;\n// }\n// else\n// {\n// localObject1 = this.mCursor;\n// }\n// return (Cursor)(Cursor)(Cursor)(Cursor)(Cursor)(Cursor)localObject1;\n return null;\n }", "static Vector getEntityPosition(Entity entity, Object nmsEntity) {\n if(entity instanceof Hanging) {\n Object blockPosition = ReflectUtils.getField(nmsEntity, \"blockPosition\");\n return MathUtils.moveToCenterOfBlock(ReflectUtils.blockPositionToVector(blockPosition));\n } else {\n return entity.getLocation().toVector();\n }\n }", "private Integer idFromCursor(Cursor cursor) {\n\t\treturn cursor.getInt(0);\n\t}", "FK findFrom(ENTITY entity);", "public String getCursorString() {\n\t\t\treturn getCursor() + \"@\" + getSelectionPos();\n\t\t}", "public Cursor getCursor() {\n Cursor cursor = super.getCursor();\n\n\t\tif ( cursor == Cursor.getPredefinedCursor( Cursor.DEFAULT_CURSOR) && isEnabled()) {\n\t\t\tcursor = Cursor.getPredefinedCursor( Cursor.HAND_CURSOR);\n\t\t}\n\t\t\n\t\treturn cursor;\n }", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\r\n\t\tlastPointOnScreen = e.getPoint();\t\t\t\r\n\t\t\r\n\t\tif(screenWidth != 0)//control looking around for first person\r\n\t\t{\r\n\t\taSquare.setAngularVelocity(2*Math.pow((e.getX() - screenWidth/2)/(screenWidth/2.),3));\r\n\t\t}\r\n\t\t\r\n\t\tif(showDebug)//select closest point to cursor for global var\r\n\t\t{\r\n\t\t\tdouble minDistance = 100.0;\r\n\t\t\tclosestPointToCursor = null;\r\n\t\t\t\r\n\t\t\tArrayList<PolygonD> objectsInScene = new ArrayList<PolygonD>();\r\n\t\t\tobjectsInScene.addAll(objects);\r\n\t\t\tobjectsInScene.add(currentShape);\r\n\r\n\t\t\t//iterate over all of the verts in all of the objects in the scene\r\n\t\t\tfor(PolygonD obj : objectsInScene)\r\n\t\t\t\tfor(PointD p : obj.getVerts())\r\n\t\t\t\t{\r\n\t\t\t\t\tdouble distance = (double)(new Vector(\r\n\t\t\t\t\t\t\tp, \r\n\t\t\t\t\t\t\tnew PointD(\r\n\t\t\t\t\t\t\t\t\te.getPoint().x - worldCenter.getX(),\r\n\t\t\t\t\t\t\t\t\te.getPoint().y - worldCenter.getY()\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)).getMag();\r\n\t\t\t\t\tif(distance < minDistance)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//set closest point to cursor\r\n\t\t\t\t\t\tminDistance = distance;\r\n\t\t\t\t\t\tclosestPointToCursor = p;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "public E getEntity();", "@Override\n\tprotected Account obtenerDesdeCursor(Cursor cursor) {\n\t\treturn null;\n\t}", "public final int getCursorAbsoluteY() {\n return getAbsoluteY() + cursorY;\n }", "public void setCursor(Cursor c) {\n\n\t}", "abstract protected Entity selectNextEntity();", "public abstract Positionable findPositionForWindow(int y, int x);", "Object getSelection();", "public Entity[] queryEntityInfo() throws UnifyException, SQLException {\n Bookmark bookmark = visual.getSelectBookmark();\n if (bookmark == null)\n return null;\n\n String catalogName= visual.getQueryCatalog();\n String schemaName = visual.getQuerySchema();\n\n String entityName = visual.getQueryEntity(); //ʵ��\n\n if(bookmark.getDbInfoProvider().getDatabaseMetaData().storesLowerCaseIdentifiers())\n {\n \tif(catalogName!=null)\n \t\tcatalogName = catalogName.toLowerCase();\n \tif(schemaName!=null)\n \t\tschemaName = schemaName.toLowerCase();\n \tif(entityName!=null)\n \t\tentityName = entityName.toLowerCase();\n }else if(bookmark.getDbInfoProvider().getDatabaseMetaData().storesUpperCaseIdentifiers())\n {\n \tif(catalogName!=null)\n \t\tcatalogName = catalogName.toUpperCase();\n \tif(schemaName!=null)\n \t\tschemaName = schemaName.toUpperCase();\n \tif(entityName!=null)\n \t\tentityName = entityName.toUpperCase();\n }\n// �����mysql��ݿ⣬����ѯ���������ݵ���Ϊ��д\n// if (catalogName != null&&!(bookmark.isMysql()))\n// \tcatalogName = catalogName.toUpperCase();\n// if (schemaName != null&&!(bookmark.isMysql()))\n// schemaName = schemaName.toUpperCase();\n// if (entityName != null&&!(bookmark.isMysql()))\n// entityName = entityName.toUpperCase();\n return queryEntityInfo(bookmark,catalogName, schemaName, entityName);\n }", "public T getSelectedEntity() {\n return selectedEntity;\n }", "public interface InternalEntity {\n\t/**\n\t * Returns true if the entity should be visible in the entities view.\n\t * \n\t * @return\n\t */\n\tboolean isVisible();\n}", "public boolean isInsideFermer(TuioCursor cursor){\n\t\treturn fermer.getGlobalBounds().contains(cursor.getX()*Systeme.screen.x, cursor.getY()*Systeme.screen.y);\n\n\t}", "public Position decide(Screen p_s)\n {\n return null;\n }", "private EntityLivingBase findPlayerToAttack() {\n EntityPlayer player = entity.worldObj.getClosestVulnerablePlayerToEntity(entity, aggroRange);\n if ( player != null && !player.capabilities.isCreativeMode && entity.canEntityBeSeen(player) )\n \treturn player;\n\n EntityLivingBase target = entity.getLastAttacker();\n if ( isTargetValid(target) && entity.canEntityBeSeen(target) )\n \treturn target;\n\n \treturn null;\n }", "BlockPos getPosTarget() {\n BlockPosDim loc = LocationGpsCard.getPosition(inventory.getStackInSlot(0));\n if (loc != null && loc.getPos() != null) {\n return loc.getPos();\n }\n return this.getBlockPos();\n }", "public Integer getPosition();", "private org.eclipse.swt.graphics.Cursor getPlatformCursor(final CursorFrame cursorFrame) {\n if (cursorFrame.getCursorType() == CursorType.DEFAULT) {\n return null;\n }\n final org.eclipse.swt.graphics.Cursor cachedPlatformCursor =\n cursorFrame.getPlatformCursor(org.eclipse.swt.graphics.Cursor.class);\n if (cachedPlatformCursor != null) {\n // platform cursor already cached\n return cachedPlatformCursor;\n }\n\n // platform cursor not cached yet\n final org.eclipse.swt.graphics.Cursor platformCursor = \n SWTCursors.embedCursorToCursor(cursorFrame);\n cursorFrame.setPlatforCursor(org.eclipse.swt.graphics.Cursor.class, platformCursor);\n\n return platformCursor;\n }", "public Placement getPlacement() {\n return getEntity();\n }", "public Entity findEntityBoat(int direction, Class<? extends WCEntityBoat> entC) {\r\n int tempX = xCoord, tempZ = zCoord;\r\n switch (direction-2) {\r\n case 0:\r\n tempZ -= 3;\r\n break;\r\n case 1:\r\n tempZ += 3;\r\n break;\r\n case 2:\r\n tempX -= 3;\r\n break;\r\n case 3:\r\n tempX += 3;\r\n break;\r\n }\r\n \r\n AxisAlignedBB bounds = AxisAlignedBB.getBoundingBox(tempX - 1, yCoord - 2, tempZ - 1, 1 + tempX, yCoord + 2, 1 + tempZ);\r\n \r\n List list = worldObj.getEntitiesWithinAABB(entC, bounds);\r\n \r\n for (int a = 0; a < list.size(); a++) {\r\n Entity e = (Entity) list.get(a);\r\n if (e instanceof WCEntityBoat) {\r\n \tSystem.out.println(\"Boat Get\");\r\n return e;\r\n }\r\n }\r\n \r\n return null;\r\n }", "public GameObject getObstacle() {\n \tif (selection != null) {\n \tjava.lang.Object data = selection.getBody().getUserData();\n \ttry {\n \t\treturn (GameObject)data;\n \t} catch (Exception e) {\n \t}\n }\n return null;\n }", "AceEntity findEntity (String id) {\n\t\tfor (int i=0; i<entities.size(); i++) {\n\t\t\tAceEntity entity = (AceEntity) entities.get(i);\n\t\t\tif (entity.id.equals(id)) {\n\t\t\t\treturn entity;\n\t\t\t}\n\t\t}\n\t\tSystem.err.println (\"*** unable to find entity with id \" + id);\n\t\treturn null;\n\t}", "public com.hps.july.persistence.PositionAccessBean getPosition() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n instantiateEJB();\n com.hps.july.persistence.Position localEJBRef = ejbRef().getPosition();\n if ( localEJBRef != null )\n return new com.hps.july.persistence.PositionAccessBean(localEJBRef);\n else\n return null;\n }", "public EntityLivingBase getTntPlacedBy() {\n\t\treturn this.tntPlacedBy;\n\t}", "private Entity ce() {\n return clientgui.getClient().getGame().getEntity(cen);\n }", "@FromAnyThread\n public static @Nullable Spatial getPaintedModel(@NotNull Node cursorNode) {\n var control = getPaintingControl(cursorNode);\n var paintedModel = control == null ? null : control.getPaintedModel();\n return paintedModel instanceof Spatial ? (Spatial) paintedModel : null;\n }", "protected abstract Entity getEditedEntity();", "public interface Cursor\n{\n\n Cursor next_sibling ();\n\n Cursor first_child ();\n\n // Element element ();\n\n}", "public com.google.protobuf.ByteString\n getCursorBytes() {\n return instance.getCursorBytes();\n }", "Entity getShooter();", "public Entity returnEntityHere() {\n \n return entityHere_;\n \n }", "public Entity getEntity() {\n\t\treturn DodgeBlawk.getDataManager().getEntity(getId());\n\t}", "EntityType getEntity();", "public Ore selectOre(int x, int y) {\n\t\tfor (int s = 0; s < entities.size(); s++) {\n\t\t\tEntity i = entities.get(s);\n\t\t\tif (i instanceof Ore) {\n\t\t\t\tif (i.getX() >> 4 == x >> 4 && i.getY() >> 4 == y >> 4)\n\t\t\t\t\treturn (Ore) i;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\n\t}", "int index(){\n\n\t\t\n\t\tif (cursor == null) \n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn index;\n\t}", "public Entity getEntity() {\n\t\treturn entity;\n\t}", "Position getPosition();", "Position getPosition();", "@Override\n\tpublic Entity getEntity() {\n\t\treturn entity;\n\t}", "public void cursorHome();", "public abstract Cursor buildCursor();", "protected Entity findPlayerToAttack()\n {\n EntityPlayer var1 = this.worldObj.getClosestVulnerablePlayerToEntity(this, 16.0D);\n return var1 != null && this.canEntityBeSeen(var1) ? var1 : null;\n }", "@Override\n\tprotected Cursor loadCursor() {\n\t\treturn DataManager.get().queryLocations();\n\t}", "private int findCursorBlock() {\n List<BlockLine> blocks = mSpanner == null ? null : mSpanner.getColors().getBlocks();\n if(blocks == null || blocks.isEmpty()) {\n return -1;\n }\n return findCursorBlock(blocks);\n }", "public Cursor getEnabledCursor() {\r\n return enabledCursor;\r\n }", "IfaceEntity.UserEntity findUserEntity(String id,IfaceLocation loc);", "public E getEntity() {\n return this.entity;\n }", "private MyClassInfo findClass(List<MyClassInfo> cl, long cursor) {\n\t\tfor (MyClassInfo c : cl) {\n\t\t\tif (cursor > c.getStartPosition() && cursor < c.getEndPosition()) {\n\t\t\t\tList<MyClassInfo> nodes = c.getClassNodes();\n\t\t\t\tMyClassInfo c2 = findClass(nodes, cursor);\n\t\t\t\tif (c2 != null) {\n\t\t\t\t\treturn c2;\n\t\t\t\t} else {\n\t\t\t\t\treturn c;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "protected String _currentExternalEntity() {\n\t\t\t// if (isVerbose())\n\t\t\t// System.out.println(\"currentExternalEntity: URI=\\\"\" +\n\t\t\t// (String)_externalEntities.get(0) + \"\\\"\\n\");\n\t\t\treturn (String) _externalEntities.get(0);\n\t\t}", "public final int getCursorY() {\n return cursorY;\n }", "public final int getCursorX() {\n return cursorX;\n }", "private void trackPosition(Entity entity, Node node) {\n // TODO = tweak this slightly to remove items from the equipped inventory?\n GridPane.setColumnIndex(node, entity.getX());\n GridPane.setRowIndex(node, entity.getY());\n\n ChangeListener<Number> xListener = new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n GridPane.setColumnIndex(node, newValue.intValue());\n }\n };\n ChangeListener<Number> yListener = new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n GridPane.setRowIndex(node, newValue.intValue());\n }\n };\n\n // if need to remove items from the equipped inventory, add code to remove from\n // equipped inventory gridpane in the .onDetach part\n ListenerHandle handleX = ListenerHandles.createFor(entity.x(), node)\n .onAttach((o, l) -> o.addListener(xListener)).onDetach((o, l) -> {\n o.removeListener(xListener);\n entityImages.remove(node);\n squares.getChildren().remove(node);\n cards.getChildren().remove(node);\n equippedItems.getChildren().remove(node);\n unequippedInventory.getChildren().remove(node);\n }).buildAttached();\n ListenerHandle handleY = ListenerHandles.createFor(entity.y(), node)\n .onAttach((o, l) -> o.addListener(yListener)).onDetach((o, l) -> {\n o.removeListener(yListener);\n entityImages.remove(node);\n squares.getChildren().remove(node);\n cards.getChildren().remove(node);\n equippedItems.getChildren().remove(node);\n unequippedInventory.getChildren().remove(node);\n }).buildAttached();\n handleX.attach();\n handleY.attach();\n\n // this means that if we change boolean property in an entity tracked from here,\n // position will stop being tracked\n // this wont work on character/path entities loaded from loader classes\n entity.shouldExist().addListener(new ChangeListener<Boolean>() {\n @Override\n public void changed(ObservableValue<? extends Boolean> obervable, Boolean oldValue, Boolean newValue) {\n handleX.detach();\n handleY.detach();\n }\n });\n }", "@NotNull\n private RangeInfo findNearestRangeInfo() {\n final int caretPosition = myView.getCaretPosition();\n\n for (final RangeInfo range : myRangeInfos) {\n if (range.isWithin(caretPosition)) {\n return range;\n }\n if (range.getFrom() > caretPosition) {\n return range; // Ranges are sorted, so we are on the next range. Take it, if caret is not within range\n }\n }\n\n return myRangeInfos.last();\n }", "public long getPosition();", "public Location getLocation() {\n long __key = this.locationId;\n if (location__resolvedKey == null || !location__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n LocationDao targetDao = daoSession.getLocationDao();\n Location locationNew = targetDao.load(__key);\n synchronized (this) {\n location = locationNew;\n \tlocation__resolvedKey = __key;\n }\n }\n return location;\n }", "public CursorPosition getCurrentCursorPosition(){\n return XSelection.getCurrentCursorPosition(this);\n }", "private void updateCursor() {\n if ((! editor.isCursorSet())\n || editor.getCursor() instanceof UIResource) {\n Cursor cursor = (editor.isEditable()) ? textCursor : null;\n editor.setCursor(cursor);\n }\n }", "<T extends ModelEntity> T findActualEntity( Class<T> entityClass, String name );", "public int getEntityIndex(String type){\n int index=0;\n double closestDist = 0;\n\n for(int i=0; i<entityList.size(); i++) {\n Entity entity = entityList.get(i);\n if (entity.entityType.equals(type)) {\n double dist = entity.getEntityCoordinates().distanceTo(player.getPlayerCoordinates());\n if(dist<closestDist || closestDist==0){\n closestDist = dist;\n index = i;\n }\n }\n }\n return index;\n }", "public MovingObjectPosition rayTraceEntities(World world, Vector3 target)\n {\n MovingObjectPosition pickedEntity = null;\n Vec3 startingPosition = this.toVec3();\n Vec3 look = target.toVec3();\n double reachDistance = this.distance(target);\n Vec3 reachPoint = Vec3.createVectorHelper(startingPosition.xCoord + look.xCoord * reachDistance, startingPosition.yCoord + look.yCoord * reachDistance, startingPosition.zCoord + look.zCoord * reachDistance);\n\n double checkBorder = 1.1 * reachDistance;\n AxisAlignedBB boxToScan = AxisAlignedBB.getAABBPool().getAABB(-checkBorder, -checkBorder, -checkBorder, checkBorder, checkBorder, checkBorder).offset(this.x, this.y, this.z);\n\n @SuppressWarnings(\"unchecked\")\n List<Entity> entitiesHit = world.getEntitiesWithinAABBExcludingEntity(null, boxToScan);\n double closestEntity = reachDistance;\n\n if (entitiesHit == null || entitiesHit.isEmpty())\n {\n return null;\n }\n for (Entity entityHit : entitiesHit)\n {\n if (entityHit != null && entityHit.canBeCollidedWith() && entityHit.boundingBox != null)\n {\n float border = entityHit.getCollisionBorderSize();\n AxisAlignedBB aabb = entityHit.boundingBox.expand(border, border, border);\n MovingObjectPosition hitMOP = aabb.calculateIntercept(startingPosition, reachPoint);\n\n if (hitMOP != null)\n {\n if (aabb.isVecInside(startingPosition))\n {\n if (0.0D < closestEntity || closestEntity == 0.0D)\n {\n pickedEntity = new MovingObjectPosition(entityHit);\n if (pickedEntity != null)\n {\n pickedEntity.hitVec = hitMOP.hitVec;\n closestEntity = 0.0D;\n }\n }\n }\n else\n {\n double distance = startingPosition.distanceTo(hitMOP.hitVec);\n\n if (distance < closestEntity || closestEntity == 0.0D)\n {\n pickedEntity = new MovingObjectPosition(entityHit);\n pickedEntity.hitVec = hitMOP.hitVec;\n closestEntity = distance;\n }\n }\n }\n }\n }\n return pickedEntity;\n }", "public int cursor();" ]
[ "0.5979223", "0.592194", "0.57672644", "0.57400304", "0.5730611", "0.5675396", "0.56093943", "0.5599548", "0.5536861", "0.55239546", "0.5467379", "0.5459607", "0.54278654", "0.54204315", "0.53883475", "0.5344062", "0.53298", "0.5310146", "0.5278319", "0.5265994", "0.5255658", "0.5253961", "0.5245266", "0.5225589", "0.52122074", "0.51992875", "0.51637113", "0.515008", "0.51341563", "0.5097801", "0.5093387", "0.5090935", "0.50862366", "0.50660366", "0.5060068", "0.50419855", "0.49960312", "0.49917847", "0.49884698", "0.4978023", "0.49675244", "0.4963161", "0.4953562", "0.49506682", "0.49472752", "0.49352774", "0.4930283", "0.49260217", "0.4918678", "0.49155405", "0.49116406", "0.49051657", "0.48982105", "0.48880178", "0.48847812", "0.48777932", "0.4874943", "0.48689324", "0.48675233", "0.4863784", "0.4853487", "0.48526523", "0.48485023", "0.48460782", "0.48399094", "0.4829989", "0.48267204", "0.48263675", "0.4825827", "0.482133", "0.4805918", "0.480584", "0.48056254", "0.47960937", "0.47894776", "0.47865617", "0.47865617", "0.47832727", "0.4780917", "0.47776064", "0.47717124", "0.4771687", "0.477143", "0.47692755", "0.4767311", "0.4764402", "0.476249", "0.47491485", "0.47487512", "0.4748202", "0.47411728", "0.47361648", "0.47327882", "0.47293967", "0.47272637", "0.47253522", "0.4713118", "0.47121617", "0.4710555", "0.47074994" ]
0.5152639
27
/ / / /
PortMixer(PortMixerProvider.PortMixerInfo paramPortMixerInfo) { /* 70 */ super(paramPortMixerInfo, null, null, null); /* */ /* */ /* */ /* */ /* */ /* */ /* 77 */ int i = 0; /* 78 */ int j = 0; /* 79 */ int k = 0; /* */ /* */ try { /* */ try { /* 83 */ this.id = nOpen(getMixerIndex()); /* 84 */ if (this.id != 0L) { /* 85 */ i = nGetPortCount(this.id); /* 86 */ if (i < 0) /* */ { /* 88 */ i = 0; /* */ } /* */ } /* 91 */ } catch (Exception exception) {} /* */ /* 93 */ this.portInfos = new Port.Info[i]; /* */ /* 95 */ for (byte b1 = 0; b1 < i; b1++) { /* 96 */ int m = nGetPortType(this.id, b1); /* 97 */ j += ((m & 0xFF) != 0) ? 1 : 0; /* 98 */ k += ((m & 0xFF00) != 0) ? 1 : 0; /* 99 */ this.portInfos[b1] = getPortInfo(b1, m); /* */ } /* */ } finally { /* 102 */ if (this.id != 0L) { /* 103 */ nClose(this.id); /* */ } /* 105 */ this.id = 0L; /* */ } /* */ /* */ /* 109 */ this.sourceLineInfo = (Line.Info[])new Port.Info[j]; /* 110 */ this.targetLineInfo = (Line.Info[])new Port.Info[k]; /* */ /* 112 */ j = 0; k = 0; /* 113 */ for (byte b = 0; b < i; b++) { /* 114 */ if (this.portInfos[b].isSource()) { /* 115 */ this.sourceLineInfo[j++] = this.portInfos[b]; /* */ } else { /* 117 */ this.targetLineInfo[k++] = this.portInfos[b]; /* */ } /* */ } /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void gored() {\n\t\t\n\t}", "public String toString(){ return \"DIV\";}", "private int parent(int i){return (i-1)/2;}", "public String ring();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int leftChild(int i){return 2*i+1;}", "double passer();", "static void pyramid(){\n\t}", "public void stg() {\n\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void mo33732Px();", "Operations operations();", "private int rightChild(int i){return 2*i+2;}", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "@Override\n\tpublic float dividir(float op1, float op2) {\n\t\treturn op1 / op2;\n\t}", "void sharpen();", "void sharpen();", "double defendre();", "public int generateRoshambo(){\n ;]\n\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "String divideAtWhite()[]{ return null; }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double volume(){\n return width*height*depth;\n }", "public void skystonePos4() {\n }", "void ringBell() {\n\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\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}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }", "public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }", "void mo21076g();", "private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "Parallelogram(){\n length = width = height = 0;\n }", "public Divide(){\n }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "@Override\r\n\tpublic void div(int x, int y) {\n\t\t\r\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "@Override\npublic void div(int a, int b) {\n\t\n}", "private double triangleBase() {\n return cellWidth() / BASE_WIDTH;\n }", "double volume() {\n\treturn width*height*depth;\n}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "int getWidth() {return width;}", "int width();", "public void divide(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n }\n }", "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }", "public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }", "@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "public double getWidth() { return _width<0? -_width : _width; }", "double getPerimeter(){\n return 2*height+width;\n }", "public void mo3376r() {\n }", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public static void main (String[] args){\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n if(n%2==1)\n {\n n=n/2;\n n++;\n }\n else\n {\n n=n/2;\n }\n for(int i=1;i<=n;i++)\n {\n for(int k=1;k<=i-1;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<=((2*n-1)-2*(i-1));j++)\n {\n if(j==1||j==((2*n-1)-2*(i-1)))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n for(int i=2;i<=n;i++)\n {\n for(int k=1;k<=n-i;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<i*2;j++)\n {\n if(j==1||j==(i*2-1))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n\t}", "public RMPath getPath() { return RMPath.unitRectPath; }", "void walk() {\n\t\t\n\t}", "public static void giant() {\n System.out.println(\" --------- \");\n System.out.println(\" | / \\\\| \");\n System.out.println(\" ZZZZZH | O | HZZZZZ \");\n System.out.println(\" H ----------- H \");\n System.out.println(\" ZZZZZHHHHHHHHHHHHHHHHHHHHHZZZZZ \");\n System.out.println(\" H HHHHHHHHHHH H \");\n System.out.println(\" ZZZZZH HHHHHHHHHHH HZZZZZ \");\n System.out.println(\" HHHHHHHHHHH \");\n System.out.println(\" HHH HHH \");\n System.out.println(\" HHH HHH \");\n }", "public void title ()\n {\n\tprintSlow (\" _ __\");\n\tprintSlow (\" ___ | ' \\\\\");\n\tprintSlow (\" ___ \\\\ / ___ ,'\\\\_ | .-. \\\\ /|\");\n\tprintSlow (\" \\\\ / | |,'__ \\\\ ,'\\\\_ | \\\\ | | | | ,' |_ /|\");\n\tprintSlow (\" _ | | | |\\\\/ \\\\ \\\\ | \\\\ | |\\\\_| _ | |_| | _ '-. .-',' |_ _\");\n\tprintSlow (\" // | | | |____| | | |\\\\_|| |__ // | | ,'_`. | | '-. .-',' `. ,'\\\\_\");\n\tprintSlow (\" \\\\\\\\_| |_,' .-, _ | | | | |\\\\ \\\\ // .| |\\\\_/ | / \\\\ || | | | / |\\\\ \\\\| \\\\\");\n\tprintSlow (\" `-. .-'| |/ / | | | | | | \\\\ \\\\// | | | | | || | | | | |_\\\\ || |\\\\_|\");\n\tprintSlow (\" | | | || \\\\_| | | | /_\\\\ \\\\ / | |` | | | || | | | | .---'| |\");\n\tprintSlow (\" | | | |\\\\___,_\\\\ /_\\\\ _ // | | | \\\\_/ || | | | | | /\\\\| |\");\n\tprintSlow (\" /_\\\\ | | //_____// .||` `._,' | | | | \\\\ `-' /| |\");\n\tprintSlow (\" /_\\\\ `------' \\\\ | AND `.\\\\ | | `._,' /_\\\\\");\n\tprintSlow (\" \\\\| HIS `.\\\\\");\n\tprintSlow (\" __ __ _ _ _ _ \");\n\tprintSlow (\" | \\\\/ | (_) | | /\\\\ | | | | \");\n\tprintSlow (\" | \\\\ / | __ _ __ _ _ ___ __ _| | / \\\\ __| |_ _____ _ __ | |_ _ _ _ __ ___ \");\n\tprintSlow (\" | |\\\\/| |/ _` |/ _` | |/ __/ _` | | / /\\\\ \\\\ / _` \\\\ \\\\ / / _ \\\\ '_ \\\\| __| | | | '__/ _ \\\\\");\n\tprintSlow (\" | | | | (_| | (_| | | (_| (_| | | / ____ \\\\ (_| |\\\\ V / __/ | | | |_| |_| | | | __/\");\n\tprintSlow (\" |_| |_|\\\\__,_|\\\\__, |_|\\\\___\\\\__,_|_| /_/ \\\\_\\\\__,_| \\\\_/ \\\\___|_| |_|\\\\__|\\\\__,_|_| \\\\___|\");\n\tprintSlow (\" __/ | \");\n\tprintSlow (\" |___/ \\n\\n\\n\");\n\n\n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "double area() {\nSystem.out.println(\"Inside Area for Triangle.\");\nreturn dim1 * dim2 / 2;\n}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }", "public SoNode \ngetCurPathTail() \n{\n//#ifdef DEBUG\n if (currentpath.getTail() != (SoFullPath.cast(getCurPath())).getTail()){\n SoDebugError.post(\"SoAction::getCurPathTail\\n\", \n \"Inconsistent path tail. Did you change the scene graph\\n\"+\n \"During traversal?\\n\");\n }\n//#endif /*DEBUG*/\n return(currentpath.getTail());\n}", "@Override\n\tpublic void breath() {\n\n\t}", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "@Override\n\tpublic void div(double dx, double dy) {\n\t\t\n\t}", "public PathCode getCurPathCode() { return /*appliedTo.curPathCode*/currentpathcode;}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "static String division (String s1, String s2) {\r\n if (s2==null || s2.length()==0) return s1;\r\n return product (s1, invert(s2));\r\n }", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}", "public void star(float x, float y, float r, float R) {\n float angle = TWO_PI / 5;\n float halfAngle = angle/2.0f;\n beginShape();\n noStroke();\n for (float a = 0; a < TWO_PI; a += angle) {\n float sx = x + cos(a) * r;\n float sy = y + sin(a) * r;\n vertex(sx, sy);\n sx = x + cos(a+halfAngle) * R;\n sy = y + sin(a+halfAngle) * R;\n vertex(sx, sy);\n }\n endShape(CLOSE);\n}", "@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}", "public int upright();", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void backSlash() {\n text.append(\"\\\\\");\n }", "public static void main(String[] args){\t\n\t\tchar op = '/';\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"첫번째 정수입니다.\");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"두번째 정수입니다.\");\n\t\tint num2 = scan.nextInt();\n\t\tint num3=0;\n\t\tif(op=='+'){\n\t\t\tnum3 = num1+num2;\n\t\t}\n\t\telse if(op=='-'){\n\t\t\tnum3 = num1-num2;\n\t\t}\n\t\telse if(op=='*'){\n\t\t\tnum3 = num1*num2;\n\t\t}\n\t\telse if(op=='/'){\n\t\t\tif(num2==0){\n\t\t\tSystem.out.println(\"오류입니다.\");\n\t\t}\n\t\t\t\n\t\t\tnum3 = num1/num2;\n\t\t}\n\t\tSystem.out.printf(\"%d%c%d=%d\" ,num1,op,num2,num3);\n\t\t\n\t\t\n\t}", "public final void testSlash() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnðýþnn\");\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnønn\");\n\t\tassertSingleResult(\"8\", fldName, \"nnunn\");\n\t}", "AngleResource inclination();", "public abstract void squareRootThis();", "public UniquePathsII() {\n\t\t// Initialization here. \n\t\t//\t\tcount = 0;\n\t}", "@Override\n\tpublic void space() {\n\t\t\n\t}" ]
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.49150687", "0.4878608", "0.4873821", "0.4873821", "0.48564616", "0.48415148", "0.4840844", "0.48408422", "0.48392275", "0.48380315", "0.48342562", "0.48335755", "0.48189583", "0.4816532", "0.4803844", "0.47991633", "0.4790358", "0.4785782", "0.47707185", "0.47659388", "0.47607136", "0.4756167", "0.47525582", "0.4750556", "0.47465262", "0.47439283", "0.47427607", "0.47368544", "0.47283906", "0.4719052", "0.4715935", "0.4711951", "0.47046372", "0.47023433", "0.46957722", "0.46894073", "0.46882662", "0.46872112", "0.46870187", "0.46838596", "0.46826214", "0.46721044", "0.4671648", "0.46691796", "0.46658975", "0.46658975", "0.46634644", "0.46593347", "0.46569487", "0.46532407", "0.46484405", "0.46472803", "0.4647124", "0.46426368", "0.46379653", "0.4635675", "0.46356165", "0.46343538", "0.46343073", "0.46324328", "0.46307802", "0.46292034", "0.46249497", "0.46220893", "0.46138567", "0.46130696", "0.46125302", "0.4608751", "0.46084386", "0.4605762", "0.46052104", "0.4602023", "0.46015334", "0.45995793", "0.45948967", "0.459342", "0.45930445", "0.45923406", "0.45910415", "0.45878932", "0.45863274" ]
0.0
-1
/ / / / / / /
public Line getLine(Line.Info paramInfo) throws LineUnavailableException { /* 128 */ Line.Info info = getLineInfo(paramInfo); /* */ /* 130 */ if (info != null && info instanceof Port.Info) { /* 131 */ for (byte b = 0; b < this.portInfos.length; b++) { /* 132 */ if (info.equals(this.portInfos[b])) { /* 133 */ return getPort(b); /* */ } /* */ } /* */ } /* 137 */ throw new IllegalArgumentException("Line unsupported: " + paramInfo); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int rightChild(int i){return 2*i+2;}", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "double passer();", "public void gored() {\n\t\t\n\t}", "public String ring();", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public abstract String division();", "public String toString(){ return \"DIV\";}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "int getWidth() {return width;}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public void getTile_B8();", "public double getWidth() {\n return this.size * 2.0; \n }", "double volume(){\n return width*height*depth;\n }", "@Override\n public void bfs() {\n\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "int width();", "Operations operations();", "void sharpen();", "void sharpen();", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "static void pyramid(){\n\t}", "public Integer getWidth(){return this.width;}", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public int generateRoshambo(){\n ;]\n\n }", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public void skystonePos4() {\n }", "void mo33732Px();", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "public void SubRect(){\n\t\n}", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "void walk() {\n\t\t\n\t}", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public double getWidth() { return _width<0? -_width : _width; }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "public void stg() {\n\n\t}", "Parallelogram(){\n length = width = height = 0;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\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}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "double getPerimeter(){\n return 2*height+width;\n }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "public double getPerimiter(){return (2*height +2*width);}", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "double getNewWidth();", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "double seBlesser();", "long getWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "public void leerPlanesDietas();", "@Override\r\n public void draw()\r\n {\n\r\n }", "private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }", "void block(Directions dir);", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public String getRing();", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public int getEdgeCount() \n {\n return 3;\n }", "public int getWidth(){\n return width;\n }", "public int upright();", "protected int parent(int i) { return (i - 1) / 2; }", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public int getDireccion(Pixel p) {\r\n\t\tif (x == p.x && y < p.y)\r\n\t\t\treturn DIR_N;\r\n\t\tif (x > p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x == p.x && y > p.y)\r\n\t\t\treturn DIR_S;\r\n\t\tif (x > p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x > p.x && y == p.y)\r\n\t\t\treturn DIR_E;\r\n\t\tif (x < p.x && y == p.y)\r\n\t\t\treturn DIR_O;\r\n\t\treturn -1;\r\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "double volume() {\n\treturn width*height*depth;\n}", "void table(){\n fill(0);\n rect(width/2, height/2, 600, 350); // boarder\n fill(100, 0 ,0);\n rect(width/2, height/2, 550, 300); //Felt\n \n \n}", "public void snare();", "void ringBell() {\n\n }", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public void skystonePos2() {\n }", "public int my_leaf_count();", "@Override\n\tpublic void draw3() {\n\n\t}" ]
[ "0.54567957", "0.53680295", "0.53644985", "0.52577376", "0.52142847", "0.51725817", "0.514088", "0.50868535", "0.5072305", "0.504888", "0.502662", "0.50005764", "0.49740013", "0.4944243", "0.4941118", "0.4937142", "0.49095523", "0.48940238", "0.48719338", "0.48613623", "0.48604724", "0.48558092", "0.48546165", "0.48490012", "0.4843668", "0.4843668", "0.48420057", "0.4839597", "0.4832105", "0.4817357", "0.481569", "0.48122767", "0.48085573", "0.48065376", "0.48032433", "0.48032212", "0.4799707", "0.4798766", "0.47978994", "0.47978172", "0.47921672", "0.47903922", "0.4790111", "0.47886384", "0.47843018", "0.47837785", "0.47828907", "0.47826976", "0.4776919", "0.47767594", "0.47767594", "0.47766045", "0.4764252", "0.47560593", "0.4753577", "0.4752732", "0.47510985", "0.47496924", "0.47485355", "0.4748455", "0.4746839", "0.4744132", "0.47203988", "0.4713808", "0.4711382", "0.47113234", "0.47096533", "0.47075558", "0.47029856", "0.4701444", "0.47014076", "0.46973658", "0.46969122", "0.4692372", "0.46897912", "0.4683049", "0.4681391", "0.46810925", "0.46750805", "0.46722633", "0.46681988", "0.466349", "0.46618745", "0.46606532", "0.46533036", "0.46485004", "0.46464643", "0.46447286", "0.46447286", "0.46438906", "0.46405315", "0.46397775", "0.4634643", "0.46339533", "0.4633923", "0.4632826", "0.4631328", "0.46299514", "0.46285036", "0.46276402", "0.4625902" ]
0.0
-1
/ / / / / /
protected void implOpen() throws LineUnavailableException { /* 161 */ this.id = nOpen(getMixerIndex()); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "private int rightChild(int i){return 2*i+2;}", "public void gored() {\n\t\t\n\t}", "double passer();", "public abstract String division();", "public String ring();", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void sharpen();", "void sharpen();", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "static void pyramid(){\n\t}", "int getWidth() {return width;}", "Operations operations();", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double volume(){\n return width*height*depth;\n }", "@Override\n public void bfs() {\n\n }", "void mo33732Px();", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public void stg() {\n\n\t}", "public void skystonePos4() {\n }", "public int generateRoshambo(){\n ;]\n\n }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "public void getTile_B8();", "int width();", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\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}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "Parallelogram(){\n length = width = height = 0;\n }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public double getWidth() {\n return this.size * 2.0; \n }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "void walk() {\n\t\t\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public void SubRect(){\n\t\n}", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public double getWidth() { return _width<0? -_width : _width; }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "double getPerimeter(){\n return 2*height+width;\n }", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public Integer getWidth(){return this.width;}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public double getPerimiter(){return (2*height +2*width);}", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "void ringBell() {\n\n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "@Override\r\n public void draw()\r\n {\n\r\n }", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "void block(Directions dir);", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "@Override\n\tpublic void draw3() {\n\n\t}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "double seBlesser();", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "public void skystonePos2() {\n }", "double volume() {\n\treturn width*height*depth;\n}", "private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }", "void table(){\n fill(0);\n rect(width/2, height/2, 600, 350); // boarder\n fill(100, 0 ,0);\n rect(width/2, height/2, 550, 300); //Felt\n \n \n}", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n x = 5;\r\n y = 5;\r\n height = 10;\r\n width = 10;\r\n }", "double getNewWidth();", "public int upright();", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "public void skystonePos3() {\n }", "public void leerPlanesDietas();", "long getWidth();", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "public void snare();", "public void strength1(float x, float y){\n noStroke();\n fill(80);\n rect(x+7,y,66,6);\n bezier(x+7,y,x,y+1,x,y+5,x+7,y+6);\n bezier(x+73,y,x+80,y+1,x+80,y+5,x+73,y+6);\n rect(x+7,y+1,13,3);//1st blue ba\n bezier(x+7,y+1,x+1,y+2.5f,x+1,y+3.5f,x+7,y+4);\n}", "public void skystonePos5() {\n }", "void GenerateBoardPath() {\n\t\t\t\n\t\t\tint rows = board.getRowsNum();\n\t\t\tint columns = board.getColsNum();\n\t\t\tint space_number = 1; \n\t\t\t\n\t\t\t\n\t\t\tfor (int i = rows - 1; i >= 0; i--) \n\t\t\t\t//If the row is an odd-number, move L-R\n\t\t\t\tif (i % 2 != 0) {\n\t\t\t\t\tfor (int j = 0; j < columns; j++) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = columns-1; j >=0; j--) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}" ]
[ "0.5472371", "0.5383522", "0.52979374", "0.5293668", "0.5211566", "0.51842105", "0.5161626", "0.51377255", "0.5100369", "0.5067393", "0.5064298", "0.50376177", "0.49875325", "0.49361488", "0.49140826", "0.49058613", "0.49058613", "0.48946288", "0.48945552", "0.48931476", "0.48904693", "0.48880374", "0.48798734", "0.48695773", "0.48647928", "0.48638737", "0.48618442", "0.48618138", "0.48505476", "0.48302734", "0.48278588", "0.48275942", "0.48218134", "0.48208144", "0.48172593", "0.4813516", "0.48124653", "0.4811937", "0.4811937", "0.48115787", "0.4811212", "0.48030958", "0.47998473", "0.4795484", "0.47894648", "0.47886366", "0.47878242", "0.47855106", "0.4777816", "0.47706896", "0.47695553", "0.4766223", "0.47616836", "0.4760893", "0.47604054", "0.47590306", "0.47488394", "0.4736708", "0.47364867", "0.47344264", "0.47324577", "0.47303045", "0.47301307", "0.47227973", "0.4722473", "0.4719981", "0.47176844", "0.47143498", "0.4712692", "0.47071925", "0.47001678", "0.46935824", "0.46934032", "0.46931094", "0.46875677", "0.46873635", "0.4686461", "0.46827722", "0.46827722", "0.46827522", "0.46788132", "0.46628743", "0.46617907", "0.46604863", "0.4657533", "0.46526098", "0.46518275", "0.46497184", "0.46489906", "0.46484554", "0.46466392", "0.46466392", "0.46454313", "0.46434125", "0.46428928", "0.46424708", "0.4639808", "0.46373105", "0.46368903", "0.46341428", "0.46330282" ]
0.0
-1
/ / / / / / /
protected void implClose() { /* 170 */ long l = this.id; /* 171 */ this.id = 0L; /* 172 */ nClose(l); /* 173 */ if (this.ports != null) { /* 174 */ for (byte b = 0; b < this.ports.length; b++) { /* 175 */ if (this.ports[b] != null) { /* 176 */ this.ports[b].disposeControls(); /* */ } /* */ } /* */ } /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int rightChild(int i){return 2*i+2;}", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "double passer();", "public void gored() {\n\t\t\n\t}", "public String ring();", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public abstract String division();", "public String toString(){ return \"DIV\";}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "int getWidth() {return width;}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public void getTile_B8();", "public double getWidth() {\n return this.size * 2.0; \n }", "double volume(){\n return width*height*depth;\n }", "@Override\n public void bfs() {\n\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "int width();", "Operations operations();", "void sharpen();", "void sharpen();", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "static void pyramid(){\n\t}", "public Integer getWidth(){return this.width;}", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public int generateRoshambo(){\n ;]\n\n }", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public void skystonePos4() {\n }", "void mo33732Px();", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "public void SubRect(){\n\t\n}", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "void walk() {\n\t\t\n\t}", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public double getWidth() { return _width<0? -_width : _width; }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "public void stg() {\n\n\t}", "Parallelogram(){\n length = width = height = 0;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\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}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "double getPerimeter(){\n return 2*height+width;\n }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "public double getPerimiter(){return (2*height +2*width);}", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "double getNewWidth();", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "double seBlesser();", "long getWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "public void leerPlanesDietas();", "@Override\r\n public void draw()\r\n {\n\r\n }", "private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }", "void block(Directions dir);", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public String getRing();", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public int getEdgeCount() \n {\n return 3;\n }", "public int getWidth(){\n return width;\n }", "public int upright();", "protected int parent(int i) { return (i - 1) / 2; }", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public int getDireccion(Pixel p) {\r\n\t\tif (x == p.x && y < p.y)\r\n\t\t\treturn DIR_N;\r\n\t\tif (x > p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x == p.x && y > p.y)\r\n\t\t\treturn DIR_S;\r\n\t\tif (x > p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x > p.x && y == p.y)\r\n\t\t\treturn DIR_E;\r\n\t\tif (x < p.x && y == p.y)\r\n\t\t\treturn DIR_O;\r\n\t\treturn -1;\r\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "double volume() {\n\treturn width*height*depth;\n}", "void table(){\n fill(0);\n rect(width/2, height/2, 600, 350); // boarder\n fill(100, 0 ,0);\n rect(width/2, height/2, 550, 300); //Felt\n \n \n}", "public void snare();", "void ringBell() {\n\n }", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public void skystonePos2() {\n }", "public int my_leaf_count();", "@Override\n\tpublic void draw3() {\n\n\t}" ]
[ "0.54567957", "0.53680295", "0.53644985", "0.52577376", "0.52142847", "0.51725817", "0.514088", "0.50868535", "0.5072305", "0.504888", "0.502662", "0.50005764", "0.49740013", "0.4944243", "0.4941118", "0.4937142", "0.49095523", "0.48940238", "0.48719338", "0.48613623", "0.48604724", "0.48558092", "0.48546165", "0.48490012", "0.4843668", "0.4843668", "0.48420057", "0.4839597", "0.4832105", "0.4817357", "0.481569", "0.48122767", "0.48085573", "0.48065376", "0.48032433", "0.48032212", "0.4799707", "0.4798766", "0.47978994", "0.47978172", "0.47921672", "0.47903922", "0.4790111", "0.47886384", "0.47843018", "0.47837785", "0.47828907", "0.47826976", "0.4776919", "0.47767594", "0.47767594", "0.47766045", "0.4764252", "0.47560593", "0.4753577", "0.4752732", "0.47510985", "0.47496924", "0.47485355", "0.4748455", "0.4746839", "0.4744132", "0.47203988", "0.4713808", "0.4711382", "0.47113234", "0.47096533", "0.47075558", "0.47029856", "0.4701444", "0.47014076", "0.46973658", "0.46969122", "0.4692372", "0.46897912", "0.4683049", "0.4681391", "0.46810925", "0.46750805", "0.46722633", "0.46681988", "0.466349", "0.46618745", "0.46606532", "0.46533036", "0.46485004", "0.46464643", "0.46447286", "0.46447286", "0.46438906", "0.46405315", "0.46397775", "0.4634643", "0.46339533", "0.4633923", "0.4632826", "0.4631328", "0.46299514", "0.46285036", "0.46276402", "0.4625902" ]
0.0
-1
/ / / / /
void implClose() { /* 293 */ enableControls(this.controls, false); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "public abstract void bepaalGrootte();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public void gored() {\n\t\t\n\t}", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public abstract String division();", "private int leftChild(int i){return 2*i+1;}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "double passer();", "public String ring();", "private int rightChild(int i){return 2*i+2;}", "public String toString(){ return \"DIV\";}", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "static void pyramid(){\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "public void stg() {\n\n\t}", "void mo33732Px();", "Operations operations();", "void sharpen();", "void sharpen();", "public void skystonePos4() {\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double volume(){\n return width*height*depth;\n }", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public int generateRoshambo(){\n ;]\n\n }", "@Override\n public void bfs() {\n\n }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\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}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "int getWidth() {return width;}", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "Parallelogram(){\n length = width = height = 0;\n }", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "void ringBell() {\n\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "int width();", "private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "void walk() {\n\t\t\n\t}", "double getPerimeter(){\n return 2*height+width;\n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public double getWidth() { return _width<0? -_width : _width; }", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "@Override\npublic void processDirection() {\n\t\n}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "double volume() {\n\treturn width*height*depth;\n}", "@Override\r\n public void draw()\r\n {\n\r\n }", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }", "@Override\n\tpublic void draw3() {\n\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "double defendre();", "public void getTile_B8();", "public void SubRect(){\n\t\n}", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "void mo21076g();", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void skystonePos2() {\n }", "public void skystonePos5() {\n }", "public double getPerimiter(){return (2*height +2*width);}", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "public void skystonePos3() {\n }", "double seBlesser();", "public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n x = 5;\r\n y = 5;\r\n height = 10;\r\n width = 10;\r\n }", "void block(Directions dir);", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "public RMPath getPath() { return RMPath.unitRectPath; }", "public int upright();", "private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}", "public Integer getWidth(){return this.width;}", "public void skystonePos6() {\n }", "void GenerateBoardPath() {\n\t\t\t\n\t\t\tint rows = board.getRowsNum();\n\t\t\tint columns = board.getColsNum();\n\t\t\tint space_number = 1; \n\t\t\t\n\t\t\t\n\t\t\tfor (int i = rows - 1; i >= 0; i--) \n\t\t\t\t//If the row is an odd-number, move L-R\n\t\t\t\tif (i % 2 != 0) {\n\t\t\t\t\tfor (int j = 0; j < columns; j++) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = columns-1; j >=0; j--) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "@Override\n\tpublic void breath() {\n\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "@Override\n\tpublic void draw() {\n\t}", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}" ]
[ "0.5654086", "0.5282051", "0.5270874", "0.5268489", "0.5230159", "0.5229372", "0.5205559", "0.51923394", "0.51524484", "0.50993294", "0.50948834", "0.5071109", "0.5043058", "0.5009983", "0.5006536", "0.49739555", "0.49691963", "0.4959123", "0.49568397", "0.49425906", "0.49421698", "0.49421698", "0.4903223", "0.4897176", "0.48879617", "0.48803073", "0.48741165", "0.48718095", "0.48679698", "0.48646608", "0.48598114", "0.48402584", "0.48362267", "0.48321876", "0.48310882", "0.4825809", "0.48227587", "0.48175377", "0.48045233", "0.48045233", "0.48002362", "0.47911668", "0.47906598", "0.4776121", "0.47734705", "0.47673976", "0.475685", "0.47517157", "0.47446346", "0.47364715", "0.47353277", "0.47321412", "0.47242466", "0.4721296", "0.47190621", "0.47164857", "0.47148356", "0.47142458", "0.47103566", "0.47027764", "0.47023293", "0.4701804", "0.46992764", "0.46985114", "0.46954885", "0.4695406", "0.46914175", "0.4690724", "0.46901584", "0.4686765", "0.4682771", "0.46786475", "0.46786475", "0.4676364", "0.46714565", "0.46710065", "0.46701837", "0.46698236", "0.46671712", "0.466633", "0.4663725", "0.46617198", "0.46599096", "0.46593648", "0.4654308", "0.46481097", "0.46472353", "0.46443266", "0.46441418", "0.46438584", "0.4642061", "0.46387514", "0.46382058", "0.46375832", "0.4636777", "0.46365395", "0.46365395", "0.46359038", "0.4635539", "0.46332848", "0.46326485" ]
0.0
-1
/ / / / / /
public void open() throws LineUnavailableException { /* 301 */ synchronized (this.mixer) { /* */ /* 303 */ if (!isOpen()) { /* */ /* */ /* 306 */ this.mixer.open(this); /* */ /* */ try { /* 309 */ implOpen(); /* */ /* */ /* 312 */ setOpen(true); /* 313 */ } catch (LineUnavailableException lineUnavailableException) { /* */ /* 315 */ this.mixer.close(this); /* 316 */ throw lineUnavailableException; /* */ } /* */ } /* */ } /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "private int rightChild(int i){return 2*i+2;}", "public void gored() {\n\t\t\n\t}", "double passer();", "public abstract String division();", "public String ring();", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void sharpen();", "void sharpen();", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "static void pyramid(){\n\t}", "int getWidth() {return width;}", "Operations operations();", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double volume(){\n return width*height*depth;\n }", "@Override\n public void bfs() {\n\n }", "void mo33732Px();", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public void stg() {\n\n\t}", "public void skystonePos4() {\n }", "public int generateRoshambo(){\n ;]\n\n }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "public void getTile_B8();", "int width();", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\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}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "Parallelogram(){\n length = width = height = 0;\n }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public double getWidth() {\n return this.size * 2.0; \n }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "void walk() {\n\t\t\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public void SubRect(){\n\t\n}", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public double getWidth() { return _width<0? -_width : _width; }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "double getPerimeter(){\n return 2*height+width;\n }", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public Integer getWidth(){return this.width;}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public double getPerimiter(){return (2*height +2*width);}", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "void ringBell() {\n\n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "@Override\r\n public void draw()\r\n {\n\r\n }", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "void block(Directions dir);", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "@Override\n\tpublic void draw3() {\n\n\t}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "double seBlesser();", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "public void skystonePos2() {\n }", "double volume() {\n\treturn width*height*depth;\n}", "private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }", "void table(){\n fill(0);\n rect(width/2, height/2, 600, 350); // boarder\n fill(100, 0 ,0);\n rect(width/2, height/2, 550, 300); //Felt\n \n \n}", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n x = 5;\r\n y = 5;\r\n height = 10;\r\n width = 10;\r\n }", "double getNewWidth();", "public int upright();", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "public void skystonePos3() {\n }", "public void leerPlanesDietas();", "long getWidth();", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "public void snare();", "public void strength1(float x, float y){\n noStroke();\n fill(80);\n rect(x+7,y,66,6);\n bezier(x+7,y,x,y+1,x,y+5,x+7,y+6);\n bezier(x+73,y,x+80,y+1,x+80,y+5,x+73,y+6);\n rect(x+7,y+1,13,3);//1st blue ba\n bezier(x+7,y+1,x+1,y+2.5f,x+1,y+3.5f,x+7,y+4);\n}", "public void skystonePos5() {\n }", "void GenerateBoardPath() {\n\t\t\t\n\t\t\tint rows = board.getRowsNum();\n\t\t\tint columns = board.getColsNum();\n\t\t\tint space_number = 1; \n\t\t\t\n\t\t\t\n\t\t\tfor (int i = rows - 1; i >= 0; i--) \n\t\t\t\t//If the row is an odd-number, move L-R\n\t\t\t\tif (i % 2 != 0) {\n\t\t\t\t\tfor (int j = 0; j < columns; j++) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = columns-1; j >=0; j--) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}" ]
[ "0.5472371", "0.5383522", "0.52979374", "0.5293668", "0.5211566", "0.51842105", "0.5161626", "0.51377255", "0.5100369", "0.5067393", "0.5064298", "0.50376177", "0.49875325", "0.49361488", "0.49140826", "0.49058613", "0.49058613", "0.48946288", "0.48945552", "0.48931476", "0.48904693", "0.48880374", "0.48798734", "0.48695773", "0.48647928", "0.48638737", "0.48618442", "0.48618138", "0.48505476", "0.48302734", "0.48278588", "0.48275942", "0.48218134", "0.48208144", "0.48172593", "0.4813516", "0.48124653", "0.4811937", "0.4811937", "0.48115787", "0.4811212", "0.48030958", "0.47998473", "0.4795484", "0.47894648", "0.47886366", "0.47878242", "0.47855106", "0.4777816", "0.47706896", "0.47695553", "0.4766223", "0.47616836", "0.4760893", "0.47604054", "0.47590306", "0.47488394", "0.4736708", "0.47364867", "0.47344264", "0.47324577", "0.47303045", "0.47301307", "0.47227973", "0.4722473", "0.4719981", "0.47176844", "0.47143498", "0.4712692", "0.47071925", "0.47001678", "0.46935824", "0.46934032", "0.46931094", "0.46875677", "0.46873635", "0.4686461", "0.46827722", "0.46827722", "0.46827522", "0.46788132", "0.46628743", "0.46617907", "0.46604863", "0.4657533", "0.46526098", "0.46518275", "0.46497184", "0.46489906", "0.46484554", "0.46466392", "0.46466392", "0.46454313", "0.46434125", "0.46428928", "0.46424708", "0.4639808", "0.46373105", "0.46368903", "0.46341428", "0.46330282" ]
0.0
-1
/ / / /
public void close() { /* 325 */ synchronized (this.mixer) { /* 326 */ if (isOpen()) { /* */ /* */ /* */ /* 330 */ setOpen(false); /* */ /* */ /* 333 */ implClose(); /* */ /* */ /* 336 */ this.mixer.close(this); /* */ } /* */ } /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void gored() {\n\t\t\n\t}", "public String toString(){ return \"DIV\";}", "private int parent(int i){return (i-1)/2;}", "public String ring();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int leftChild(int i){return 2*i+1;}", "double passer();", "static void pyramid(){\n\t}", "public void stg() {\n\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void mo33732Px();", "Operations operations();", "private int rightChild(int i){return 2*i+2;}", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "@Override\n\tpublic float dividir(float op1, float op2) {\n\t\treturn op1 / op2;\n\t}", "void sharpen();", "void sharpen();", "double defendre();", "public int generateRoshambo(){\n ;]\n\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "String divideAtWhite()[]{ return null; }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double volume(){\n return width*height*depth;\n }", "public void skystonePos4() {\n }", "void ringBell() {\n\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\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}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }", "public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }", "void mo21076g();", "private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "Parallelogram(){\n length = width = height = 0;\n }", "public Divide(){\n }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "@Override\r\n\tpublic void div(int x, int y) {\n\t\t\r\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "@Override\npublic void div(int a, int b) {\n\t\n}", "private double triangleBase() {\n return cellWidth() / BASE_WIDTH;\n }", "double volume() {\n\treturn width*height*depth;\n}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "int getWidth() {return width;}", "int width();", "public void divide(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n }\n }", "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }", "public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }", "@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "public double getWidth() { return _width<0? -_width : _width; }", "double getPerimeter(){\n return 2*height+width;\n }", "public void mo3376r() {\n }", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public static void main (String[] args){\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n if(n%2==1)\n {\n n=n/2;\n n++;\n }\n else\n {\n n=n/2;\n }\n for(int i=1;i<=n;i++)\n {\n for(int k=1;k<=i-1;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<=((2*n-1)-2*(i-1));j++)\n {\n if(j==1||j==((2*n-1)-2*(i-1)))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n for(int i=2;i<=n;i++)\n {\n for(int k=1;k<=n-i;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<i*2;j++)\n {\n if(j==1||j==(i*2-1))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n\t}", "public RMPath getPath() { return RMPath.unitRectPath; }", "void walk() {\n\t\t\n\t}", "public static void giant() {\n System.out.println(\" --------- \");\n System.out.println(\" | / \\\\| \");\n System.out.println(\" ZZZZZH | O | HZZZZZ \");\n System.out.println(\" H ----------- H \");\n System.out.println(\" ZZZZZHHHHHHHHHHHHHHHHHHHHHZZZZZ \");\n System.out.println(\" H HHHHHHHHHHH H \");\n System.out.println(\" ZZZZZH HHHHHHHHHHH HZZZZZ \");\n System.out.println(\" HHHHHHHHHHH \");\n System.out.println(\" HHH HHH \");\n System.out.println(\" HHH HHH \");\n }", "public void title ()\n {\n\tprintSlow (\" _ __\");\n\tprintSlow (\" ___ | ' \\\\\");\n\tprintSlow (\" ___ \\\\ / ___ ,'\\\\_ | .-. \\\\ /|\");\n\tprintSlow (\" \\\\ / | |,'__ \\\\ ,'\\\\_ | \\\\ | | | | ,' |_ /|\");\n\tprintSlow (\" _ | | | |\\\\/ \\\\ \\\\ | \\\\ | |\\\\_| _ | |_| | _ '-. .-',' |_ _\");\n\tprintSlow (\" // | | | |____| | | |\\\\_|| |__ // | | ,'_`. | | '-. .-',' `. ,'\\\\_\");\n\tprintSlow (\" \\\\\\\\_| |_,' .-, _ | | | | |\\\\ \\\\ // .| |\\\\_/ | / \\\\ || | | | / |\\\\ \\\\| \\\\\");\n\tprintSlow (\" `-. .-'| |/ / | | | | | | \\\\ \\\\// | | | | | || | | | | |_\\\\ || |\\\\_|\");\n\tprintSlow (\" | | | || \\\\_| | | | /_\\\\ \\\\ / | |` | | | || | | | | .---'| |\");\n\tprintSlow (\" | | | |\\\\___,_\\\\ /_\\\\ _ // | | | \\\\_/ || | | | | | /\\\\| |\");\n\tprintSlow (\" /_\\\\ | | //_____// .||` `._,' | | | | \\\\ `-' /| |\");\n\tprintSlow (\" /_\\\\ `------' \\\\ | AND `.\\\\ | | `._,' /_\\\\\");\n\tprintSlow (\" \\\\| HIS `.\\\\\");\n\tprintSlow (\" __ __ _ _ _ _ \");\n\tprintSlow (\" | \\\\/ | (_) | | /\\\\ | | | | \");\n\tprintSlow (\" | \\\\ / | __ _ __ _ _ ___ __ _| | / \\\\ __| |_ _____ _ __ | |_ _ _ _ __ ___ \");\n\tprintSlow (\" | |\\\\/| |/ _` |/ _` | |/ __/ _` | | / /\\\\ \\\\ / _` \\\\ \\\\ / / _ \\\\ '_ \\\\| __| | | | '__/ _ \\\\\");\n\tprintSlow (\" | | | | (_| | (_| | | (_| (_| | | / ____ \\\\ (_| |\\\\ V / __/ | | | |_| |_| | | | __/\");\n\tprintSlow (\" |_| |_|\\\\__,_|\\\\__, |_|\\\\___\\\\__,_|_| /_/ \\\\_\\\\__,_| \\\\_/ \\\\___|_| |_|\\\\__|\\\\__,_|_| \\\\___|\");\n\tprintSlow (\" __/ | \");\n\tprintSlow (\" |___/ \\n\\n\\n\");\n\n\n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "double area() {\nSystem.out.println(\"Inside Area for Triangle.\");\nreturn dim1 * dim2 / 2;\n}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }", "public SoNode \ngetCurPathTail() \n{\n//#ifdef DEBUG\n if (currentpath.getTail() != (SoFullPath.cast(getCurPath())).getTail()){\n SoDebugError.post(\"SoAction::getCurPathTail\\n\", \n \"Inconsistent path tail. Did you change the scene graph\\n\"+\n \"During traversal?\\n\");\n }\n//#endif /*DEBUG*/\n return(currentpath.getTail());\n}", "@Override\n\tpublic void breath() {\n\n\t}", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "@Override\n\tpublic void div(double dx, double dy) {\n\t\t\n\t}", "public PathCode getCurPathCode() { return /*appliedTo.curPathCode*/currentpathcode;}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "static String division (String s1, String s2) {\r\n if (s2==null || s2.length()==0) return s1;\r\n return product (s1, invert(s2));\r\n }", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}", "public void star(float x, float y, float r, float R) {\n float angle = TWO_PI / 5;\n float halfAngle = angle/2.0f;\n beginShape();\n noStroke();\n for (float a = 0; a < TWO_PI; a += angle) {\n float sx = x + cos(a) * r;\n float sy = y + sin(a) * r;\n vertex(sx, sy);\n sx = x + cos(a+halfAngle) * R;\n sy = y + sin(a+halfAngle) * R;\n vertex(sx, sy);\n }\n endShape(CLOSE);\n}", "@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}", "public int upright();", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void backSlash() {\n text.append(\"\\\\\");\n }", "public static void main(String[] args){\t\n\t\tchar op = '/';\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"첫번째 정수입니다.\");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"두번째 정수입니다.\");\n\t\tint num2 = scan.nextInt();\n\t\tint num3=0;\n\t\tif(op=='+'){\n\t\t\tnum3 = num1+num2;\n\t\t}\n\t\telse if(op=='-'){\n\t\t\tnum3 = num1-num2;\n\t\t}\n\t\telse if(op=='*'){\n\t\t\tnum3 = num1*num2;\n\t\t}\n\t\telse if(op=='/'){\n\t\t\tif(num2==0){\n\t\t\tSystem.out.println(\"오류입니다.\");\n\t\t}\n\t\t\t\n\t\t\tnum3 = num1/num2;\n\t\t}\n\t\tSystem.out.printf(\"%d%c%d=%d\" ,num1,op,num2,num3);\n\t\t\n\t\t\n\t}", "public final void testSlash() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnðýþnn\");\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnønn\");\n\t\tassertSingleResult(\"8\", fldName, \"nnunn\");\n\t}", "AngleResource inclination();", "public abstract void squareRootThis();", "public UniquePathsII() {\n\t\t// Initialization here. \n\t\t//\t\tcount = 0;\n\t}", "@Override\n\tpublic void space() {\n\t\t\n\t}" ]
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.49150687", "0.4878608", "0.4873821", "0.4873821", "0.48564616", "0.48415148", "0.4840844", "0.48408422", "0.48392275", "0.48380315", "0.48342562", "0.48335755", "0.48189583", "0.4816532", "0.4803844", "0.47991633", "0.4790358", "0.4785782", "0.47707185", "0.47659388", "0.47607136", "0.4756167", "0.47525582", "0.4750556", "0.47465262", "0.47439283", "0.47427607", "0.47368544", "0.47283906", "0.4719052", "0.4715935", "0.4711951", "0.47046372", "0.47023433", "0.46957722", "0.46894073", "0.46882662", "0.46872112", "0.46870187", "0.46838596", "0.46826214", "0.46721044", "0.4671648", "0.46691796", "0.46658975", "0.46658975", "0.46634644", "0.46593347", "0.46569487", "0.46532407", "0.46484405", "0.46472803", "0.4647124", "0.46426368", "0.46379653", "0.4635675", "0.46356165", "0.46343538", "0.46343073", "0.46324328", "0.46307802", "0.46292034", "0.46249497", "0.46220893", "0.46138567", "0.46130696", "0.46125302", "0.4608751", "0.46084386", "0.4605762", "0.46052104", "0.4602023", "0.46015334", "0.45995793", "0.45948967", "0.459342", "0.45930445", "0.45923406", "0.45910415", "0.45878932", "0.45863274" ]
0.0
-1
/ / / / / / / / /
private FloatCtrl(long param1Long, String param1String1, float param1Float1, float param1Float2, float param1Float3, String param1String2) { /* 435 */ this(param1Long, new FCT(param1String1, null), param1Float1, param1Float2, param1Float3, param1String2); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "double passer();", "public String ring();", "int getWidth() {return width;}", "public void gored() {\n\t\t\n\t}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void getTile_B8();", "public Integer getWidth(){return this.width;}", "public abstract String division();", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "int width();", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() { return _width<0? -_width : _width; }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "double volume(){\n return width*height*depth;\n }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public int generateRoshambo(){\n ;]\n\n }", "Operations operations();", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int getEdgeCount() \n {\n return 3;\n }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double getNewWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "long getWidth();", "public void SubRect(){\n\t\n}", "void mo33732Px();", "static void pyramid(){\n\t}", "public double getPerimiter(){return (2*height +2*width);}", "public int my_leaf_count();", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void skystonePos4() {\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void walk() {\n\t\t\n\t}", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double seBlesser();", "void sharpen();", "void sharpen();", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "Parallelogram(){\n length = width = height = 0;\n }", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public void leerPlanesDietas();", "public String getRing();", "static int getNumPatterns() { return 64; }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public int getWidth(){\n return width;\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "double getPerimeter(){\n return 2*height+width;\n }", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "protected int parent(int i) { return (i - 1) / 2; }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "public abstract double getBaseWidth();", "public void stg() {\n\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "int expand();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\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}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public int upright();", "int getTribeSize();", "int getWidth1();", "int getR();", "String directsTo();", "public int getWidth()\n {return width;}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "int depth();", "int depth();", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "double getWidth();", "double getWidth();" ]
[ "0.5531016", "0.54378587", "0.52516115", "0.52405924", "0.5151045", "0.5127977", "0.50680465", "0.5066997", "0.50218964", "0.5013022", "0.5007318", "0.50048536", "0.49997565", "0.4994835", "0.49735898", "0.49699947", "0.49680406", "0.49594593", "0.4937881", "0.49361676", "0.49287266", "0.4884688", "0.4874051", "0.4871873", "0.48511675", "0.48435977", "0.48318782", "0.48268357", "0.48253223", "0.48089546", "0.4805502", "0.48046046", "0.4803564", "0.48035362", "0.47987092", "0.47966656", "0.47941628", "0.47918317", "0.4789212", "0.4783637", "0.47747543", "0.4774159", "0.47730577", "0.47666246", "0.47664872", "0.47615", "0.4755131", "0.47543177", "0.47509375", "0.47481856", "0.47429588", "0.47421312", "0.47413164", "0.47407025", "0.47407025", "0.47362685", "0.47353023", "0.47351807", "0.47331676", "0.47328842", "0.47319365", "0.4729934", "0.47290468", "0.47287467", "0.47275317", "0.47259426", "0.47239763", "0.4723621", "0.4715134", "0.47056246", "0.47034666", "0.47034577", "0.4701833", "0.46977103", "0.46967983", "0.46885592", "0.46881223", "0.46881223", "0.4685835", "0.4677769", "0.46758488", "0.46741006", "0.46703368", "0.46684504", "0.4664061", "0.4664013", "0.46639267", "0.46607205", "0.4659042", "0.46581274", "0.4656714", "0.46495056", "0.464903", "0.4648408", "0.46467063", "0.4643833", "0.4643833", "0.46426296", "0.46422264", "0.4639917", "0.4639917" ]
0.0
-1
the list of entities in 5,5 is empty
@Test public void notEntityAtAGridPostionTest() { Assert.assertTrue(gridSystem.getInPosition(5,5).isEmpty()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void getEmpleadosTest() {\n List<EmpleadoEntity> list = empleadoLogic.getEmpleados();\n Assert.assertEquals(\"No tiene el mismo numero de empleados\",data.size(), list.size());\n for (EmpleadoEntity entity : list) {\n boolean found = false;\n for (EmpleadoEntity storedEntity : data) {\n if (entity.getId().equals(storedEntity.getId())) {\n found = true;\n }\n }\n Assert.assertTrue(\"Alguno de los empleados en data no se encontro en la persitencia\",found);\n }\n }", "@Test\n public void testGetAllProductsEmpty() throws Exception {\n when(repository.findAll()).thenReturn(Collections.emptyList());\n\n assertEquals(Collections.emptyList(), service.getAllProducts());\n }", "@Test\n @Transactional\n @Ignore\n public void testGetSupressedOutages() {\n Collection<OnmsOutage> outages = m_outageService.getSuppressedOutages();\n assertTrue(\"Collection should be emtpy \", outages.isEmpty());\n\n }", "@Override\n public boolean isEmpty(){\n return itemCount == 0;\n }", "@Test\n public final void testListAllEmpty(@Mocked final EmployDAO dao) {\n final ArrayList<Employ> elist = new ArrayList<Employ>();\n new Expectations() {\n {\n dao.show(); result = elist;\n }\n };\n new MockUp<EmployFactory>() {\n @Mock\n EmployDAO dao() {\n return dao;\n }\n };\n Employ[] es = EmployFactory.showEmploy();\n assertEquals(0, es.length);\n }", "@Override\n\tpublic List<Cours> listOfNonAssignedCours() {\n\t\tQuery q = em.createQuery(\"FROM Cours c where c.enseignant IS EMPTY\");\n\t\treturn q.getResultList();\n\t}", "@Override\n public boolean isEmpty() {\n return false;\n }", "@Override\n public int getItemCount() {\n return entityList.size();\n }", "@Override\n public boolean isEmpty()\n {\n return list.size()<1;\n }", "@Override\n public boolean isEmpty(){\n return (count == 0);\n }", "@Override\r\n public boolean isEmpty() {\n return size == 0;\r\n }", "@Override\n\t\t\tpublic boolean isEmpty() {\n\t\t\t\treturn false;\n\t\t\t}", "public boolean isEmpty() {\n Entity e = null;\n if (parent != null) {\n e = parent.get(ContentType.EntityType, null);\n } else if (root != null) {\n e = root;\n }\n \n if (e != null) {\n if (isIndexSelector()) {\n if (!(e instanceof EntityList)) {\n return true;\n }\n EntityList el = (EntityList)e;\n return index.isEmpty(el);\n \n }\n Property prop = property;\n if (prop == null) {\n prop = e.getEntity().getEntityType().findProperty(tags);\n }\n if (prop != null) {\n return e.getEntity().isEmpty(prop);\n }\n }\n return true;\n }", "public boolean empty() {\n return objects.isEmpty();\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn count == 0;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public C entriesListIsEmpty() \n {\n STEP(\"REST API: Assert that entries list from response is empty\");\n Assert.assertTrue(modelCollection.isEmpty(), \"Entries list from response is not empty.Check the logs for more details!\");\n return (C) modelCollection;\n }", "boolean getContainEntities();", "@Override\n \t\tpublic boolean isEmpty() {\n \t\t\treturn (state != null && state.getChildrenCount(currentPage) == 0);\n \t\t}", "private void trimEntities() {\n \t\tList<String> chainIds = getActiveEntities();\n \t\tif (chainIds.size() > 0) {\n \t\t\tfor (Iterator<Atom> iter = atomVector.iterator();iter.hasNext();) {\n \t\t\t\tAtom atom = iter.next();\n \t\t\t\tif (!chainIds.contains(atom.chain_id)) {\n \t\t\t\t\titer.remove();\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "@Override\r\n\tpublic List<DataPack> queryNotOil() {\n\t\tList<DataPack> list = homePageDao.queryNotOil();\r\n\t\treturn list;\r\n\t}", "@SmallTest\n public void testAll() {\n int result = this.adapter.getAll().size();\n int expectedSize = this.nbEntities;\n Assert.assertEquals(expectedSize, result);\n }", "public void clearEntities()\n\t{\n\t\twhile(!this.entities.isEmpty())\n\t\t{\n\t\t\t//Can use 0 index because we use swap with last anyway\n\t\t\tthis.removeEntity(0); //Important because onDespawn and to remove from hash grid\n\t\t}\n\t}", "boolean isEmpty() {\n return mapped_vms.isEmpty();\n }", "@Override\n public boolean isEmpty() { return true; }", "@NotNull\r\n Entity[] getEntities();", "@Override\n public List<LineEntity> findAll() {\n return null;\n }", "@Test\n\tvoid testAllUsersDataPresent() {\n\t\tassertNotNull(allUserList);\n\t\tassertTrue(allUserList.size() == 1000);\n\t}", "@Override\n public boolean isEmpty() {\n return size()==0;\n }", "@Override\n public boolean isEmpty() {\n return this.count() == 0;\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn data != null && data.list != null && data.list.isEmpty();\r\n\t}", "@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}", "@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}", "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}", "@Test\n public void getTarjetasPrepagoTest() {\n List<TarjetaPrepagoEntity> list = tarjetaPrepagoLogic.getTarjetasPrepago();\n Assert.assertEquals(data.size(), list.size());\n for (TarjetaPrepagoEntity entity : list) {\n boolean found = false;\n for (TarjetaPrepagoEntity storedEntity : data) {\n if (entity.getId().equals(storedEntity.getId())) {\n found = true;\n }\n }\n Assert.assertTrue(found);\n }\n }", "private static void checkListSize(List<Map<String, Object>> dataFromDaoList) {\r\n\t\tif (dataFromDaoList == null || dataFromDaoList.size() == 0) {\r\n\t\t\tthrow new ZeroRecordsFoundException(\r\n\t\t\t\t\tReportsConstantsAndUtilityMethods.RECORDS_NOT_FOUND_FOR_YOUR_SEARCH_FILTERS);\r\n\t\t}\r\n\t}", "public static void showAllHouseNotDuplicate(){\n showAllNameNotDuplicate(FuncGeneric.EntityType.HOUSE);\n }", "@Test\n public void getViajerosTest() {\n List<ViajeroEntity> list = vp.findAll();\n Assert.assertEquals(data.size(), list.size());\n for (ViajeroEntity ent : list) {\n boolean found = false;\n for (ViajeroEntity entity : data) {\n if (ent.getId().equals(entity.getId())) {\n found = true;\n }\n }\n Assert.assertTrue(found);\n }\n }", "@Test\r\n public void testFindAll() throws Exception {\r\n List<MonitoriaEntity> totalEntidades = persistence.findAll();\r\n Assert.assertEquals(data.size(), totalEntidades.size());\r\n for(MonitoriaEntity ent: totalEntidades){\r\n boolean encontro = false;\r\n for(MonitoriaEntity entity: data){\r\n if(ent.equals(entity)){\r\n encontro = true;\r\n }\r\n }\r\n Assert.assertTrue(true);\r\n }\r\n }", "@Test\n public void getBonosTest() {\n List<BonoEntity> lista = bonoLogic.getBonos();\n Assert.assertEquals(data.size(), lista.size());\n for (BonoEntity entity : lista) {\n if(!data.contains(entity))\n fail(\"Ambas listas deberían contener los mismos bonos\");\n }\n }", "public boolean isAListEmpty(){\r\n\t\tif((programChairs.size() > 0) && (committeeMembers.size() > 0)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean isempty() {\n\t\treturn count<=0;\r\n\t\t\r\n\t}", "@Override\r\n public boolean isEmpty() {\r\n return size == 0;\r\n }", "public boolean isEmpty(){\n return this.listSize == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "@Test\n public void findAll() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Student s2 = new Student(2,221, \"Pop Ion\",\"pop.ion@gmail.com\",\"prof\");\n Tema t2 = new Tema(2, 0, 6, \"GUI\");\n Nota n2 = new Nota(2, 2, \"prof\", 9, \"Nu ai teste\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n int countS=0, countT=0, countN=0;\n for(Student ignored : repo.findAll()) countS++;\n for(Tema ignored : repot.findAll()) countT++;\n for(Nota ignored : repon.findAll()) countN++;\n assert countS==2;\n assert countT==2;\n assert countN==2;\n\n }\n catch (ValidationException e){\n }\n }", "@Override\n public boolean isEmpty() {\n if (count == 0) {\n return true;\n }\n return false;\n }", "public boolean isEmpty() { return count == 0; }", "public boolean isEmpty(){\n return itemCount == 0;\n }", "@Override\n public boolean isEmpty()\n {\n return false;\n }", "@Test\n\tpublic void basic_courses_without_students(){\n\t\t\n\t\tCriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();\n\t\tCriteriaQuery<Course> criteriaQuery = criteriaBuilder.createQuery(Course.class);\n\t\t\n\t\t//2. Define root tables which are involved into query\n\t\tRoot<Course> courseRoot = criteriaQuery.from(Course.class);\t\t\n\n\t\t//3. Define predicate using criteria builder\n\t\tPredicate isEmptyStudentPredicate = criteriaBuilder.isEmpty(courseRoot.get(\"students\"));\n\t\t\n\t\t//4. Add predictes to the criteria query\n\t\tcriteriaQuery.where(isEmptyStudentPredicate);\n\t\t\n\t\t//5. Defined Typed Query\n\t\tTypedQuery<Course> query = em.createQuery(criteriaQuery.select(courseRoot));\n\t\t\n\t\tList<Course> resultList = query.getResultList();\n\t\t\n\t\tlogger.info(\"isEMPTY STUDENT COURSES ==> {}\", resultList);\n\t\t\t\n\t\t\n\t}", "public boolean isEmpty(){\n return (numItems==0);\n }", "@Override\n public boolean isEmpty() {\n return _size == 0;\n }", "@Test\n public void testTableFactoryEmpty() {\n TableController tableController = tableFactory.getTableController();\n Map<Integer, ArrayList<Table>> tableMap = tableController.getTableMap();\n // loop through the map, check that each list is empty\n for (ArrayList<Table> list : tableMap.values()) {\n assertEquals(0, list.size());\n }\n }", "@SuppressWarnings(\"unchecked\")\n public C entriesListIsNotEmpty() \n {\n STEP(\"REST API: Assert that entries list from response is not empty\");\n Assert.assertFalse(modelCollection.isEmpty(), \"Entries list from response is empty.Check the logs for more details!\");\n return (C) modelCollection;\n }", "public void getEntities() {\n\t\t\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\tEntityA entityA = exampleDao.getOne(1);\r\n\t\tEntityB entityB3 = entityBDao.getOne(3);\r\n\t \tEntityB entityB2 = entityBDao.getOne(2);\r\n\t \tEntityB entityB1 = entityBDao.getOne(1);\r\n\r\n\t \t\r\n\r\n\t\tentityA.setEntityBList(Arrays.asList(entityB2,entityB3,entityB1));\r\n\r\n\t}", "@Override\n public boolean isEmpty()\n {\n return size == 0;\n }", "public boolean isEmpty(){\n return(numItems == 0);\n }", "@Override\n\tpublic boolean isEmpty()\n\t{\n if (list.isEmpty())\n {\n return true;\n } \n else\n {\n return false;\n }\n\t}", "public boolean empty() {\n return N==0;\n }", "@Override\n public boolean isEmpty() {\n return this.size==0;\n }", "@Test\r\n public void testGetUsuarios() throws Exception \r\n {\r\n List<UsuarioEntity> list;\r\n list = usuarioLogic.getUsuarios();\r\n Assert.assertEquals(dataUs.size(), list.size()); \r\n for(UsuarioEntity entity : list)\r\n {\r\n boolean found = false;\r\n for(UsuarioEntity storedEntity : dataUs)\r\n {\r\n if(entity.getId().equals(storedEntity.getId()))\r\n {\r\n found=true;\r\n }\r\n }\r\n Assert.assertTrue(found);\r\n }\r\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "private boolean isEntityBufferEmpty()\n\t{\n\t\treturn this.newEntityBuffer.isEmpty();\n\t}", "public int getNumEntities()\n\t{\n\t\treturn this.entities.size();\n\t}", "@Test\r\n\tpublic void findAllWhenNoMesagesExistingPositiveTest() {\r\n\r\n\t\tList<MessageEntity> expectedMessagesList = new ArrayList<MessageEntity>();\r\n\r\n\t\tMockito.when(messageRepository.findAll()).thenReturn(expectedMessagesList);\r\n\r\n\t\tList<MessageEntity> actualMessagesList = (List<MessageEntity>) mesServ.findAll();\r\n\r\n\t\tassertThat(actualMessagesList).describedAs(\"Actual list of objects is different from the expected one.\")\r\n\t\t\t\t.isEqualTo(expectedMessagesList);\r\n\t}", "@Test\r\n\tpublic void testEmptyContents() throws Exception {\n\t\tassertThat(this.basket.getContents().count(), is(0L));\r\n\t}", "@Override\n public boolean isEmpty() {\n return filtered.isEmpty();\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "public boolean isEmpty(){return count==0;}", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn set.isEmpty();\r\n\t}", "@Test\n public void shouldWinnerGameBeEmptyWhenStartingGame() {\n List<String> result = scoreService.getWinerGames() ;\n assertThat(result, is(empty())) ;\n }", "void isArrayEmpty(ArrayList<UserContactInfo> contactDeatailsList);", "public boolean empty() {\n return list.isEmpty();\n }", "protected List<FloorDef> genEntities() {\n List<FloorDef> list = new ArrayList<>();\n\n // MUST ADD THE WORK IDS AFTER\n\n list.add(new FloorDef(1, 10, 7001));\n list.add(new FloorDef(2, 3, 7002));\n list.add(new FloorDef(3, 10, 7003));\n list.add(new FloorDef(4, 0, 7004));\n\n //int[] workIDs = new int[]{};\n\n //for (int i = 0; i < workIDs.length)\n\n return list;\n }", "public boolean isEmpty(){\n\n \treturn list.size() == 0;\n\n }", "public boolean empty()\n {\n return questionList.isEmpty();\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "@Override\npublic boolean isEmpty() {\n\treturn false;\n}", "public boolean isEmpty(){\n return this.size()==0;\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn size() == 0;\r\n\t}", "public boolean factsEmtpy(TransportClient client){\n // Request for knowing if hits get returned or not\n SearchResponse response = client.prepareSearch(\"cityflow\")\n .setTypes(\"facts\")\n .setSearchType(SearchType.DFS_QUERY_THEN_FETCH)\n .setQuery(QueryBuilders.matchAllQuery()) // Query\n .setFrom(0).setSize(1).setExplain(true)\n .get();\n \n return response.getHits().getHits().length == 0;\n }", "public synchronized void emptyField(){\n List<Player> pList = Arrays.asList(players);\r\n \r\n Iterator<Player> pIter = pList.iterator();\r\n while(pIter.hasNext()){\r\n //for(Player player: players){\r\n Player player = pIter.next();\r\n \r\n if(player == null){\r\n continue;\r\n }\r\n System.out.println(\"NUMBER OF CARDS: \" + player.getCardsInHand().size());\r\n \r\n Iterator<Card> cardIter = player.getCardsInHand().iterator();\r\n \r\n while(cardIter.hasNext()){\r\n try{\r\n collectCard(cardIter.next());\r\n }catch(Exception ex){\r\n }\r\n \r\n }\r\n }\r\n }", "@Override\n public boolean isEmpty() {\n if(first == null){ //if first element does not exist, the whole is empty\n return true;\n }\n else{\n return false; //if first element exist, list is not empty\n }\n }", "public boolean isEmpty() \n { \n return numberOfEntries == 0;\n }" ]
[ "0.60572857", "0.60152036", "0.60120124", "0.5942585", "0.59260684", "0.5900056", "0.58778584", "0.58746225", "0.58503693", "0.58328944", "0.5822411", "0.5819976", "0.58149743", "0.58008224", "0.579966", "0.57835144", "0.57670206", "0.5757651", "0.575053", "0.5715676", "0.57027", "0.56982076", "0.56959677", "0.5694307", "0.56918806", "0.5691241", "0.56813484", "0.56812143", "0.5670665", "0.566638", "0.5658932", "0.5658932", "0.564963", "0.564741", "0.564587", "0.5641482", "0.5606304", "0.56042415", "0.5603603", "0.56016016", "0.56011164", "0.55979246", "0.5594301", "0.55938315", "0.55938315", "0.55938315", "0.55938315", "0.55938315", "0.5593122", "0.5593122", "0.5591941", "0.5587329", "0.55873245", "0.5586644", "0.55865264", "0.5586348", "0.55845165", "0.55837935", "0.55837435", "0.5579101", "0.55639106", "0.55624086", "0.5559136", "0.5549248", "0.5541701", "0.553655", "0.55316556", "0.553124", "0.553124", "0.553124", "0.553124", "0.553124", "0.55180573", "0.55127233", "0.55125576", "0.5509162", "0.5501873", "0.5498813", "0.5498813", "0.5498813", "0.5498813", "0.5498813", "0.5498813", "0.5498813", "0.5496567", "0.5491731", "0.5486783", "0.548547", "0.5482609", "0.5481826", "0.54738045", "0.5473457", "0.5466073", "0.5466073", "0.5457831", "0.544636", "0.5445852", "0.5438255", "0.54359955", "0.54346406", "0.5433926" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean isEventStarted() { return status>=EventStarted; }
{ "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 boolean isEventComplete() { return status==EventCompleted; }
{ "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 eventFinished() { status=EventCompleted; }
{ "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 boolean isEventCancelled() { return status==EventCancelled; }
{ "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 eventCancelled() { status=EventCancelled; }
{ "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
for each commandline argument
public static void main(String[] args) // unit tests (not graded) { for (String filename : args) { // read in the board specified in the filename In in = new In(filename); int n = in.readInt(); int[][] tiles = new int[n][n]; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { tiles[i][j] = in.readInt(); } } // solve the slider puzzle Board initial = new Board(tiles); StdOut.println("toString: \n" + initial.toString()); StdOut.println("dimension: " + initial.dimension()); StdOut.println("hamming: " + initial.hamming()); StdOut.println("manhattan: " + initial.manhattan()); StdOut.println("isGoal: " + initial.isGoal()); StdOut.println("twin:\n" + initial.twin().toString()); for (Board neighbor : initial.neighbors()) { StdOut.println("neighbors:\n" + neighbor.toString()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void processArgs(String[] args){\r\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\r\n\t\tfor (int i = 0; i<args.length; i++){\r\n\t\t\tString lcArg = args[i].toLowerCase();\r\n\t\t\tMatcher mat = pat.matcher(lcArg);\r\n\t\t\tif (mat.matches()){\r\n\t\t\t\tchar test = args[i].charAt(1);\r\n\t\t\t\ttry{\r\n\t\t\t\t\tswitch (test){\r\n\t\t\t\t\tcase 'f': directory = new File(args[i+1]); i++; break;\r\n\t\t\t\t\tcase 'o': orderedFileNames = args[++i].split(\",\"); break;\r\n\t\t\t\t\tcase 'c': output = new File(args[++i]); break;\r\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\r\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e){\r\n\t\t\t\t\tSystem.out.print(\"\\nSorry, something doesn't look right with this parameter request: -\"+test);\r\n\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check to see if they entered required params\r\n\t\tif (directory==null || directory.isDirectory() == false){\r\n\t\t\tSystem.out.println(\"\\nCannot find your directory!\\n\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\nSystem.out.println(\"you passed...\"+args.length);\r\nfor(int i=0;i<args.length;i++)\r\n{\r\n\tSystem.out.println(\"data is\"+args[i]);\r\n}\r\n\t}", "public void processArgs(String[] args){\n\t\t//look for a config file \n\t\targs = appendConfigArgs(args,\"-c\");\n\t\t\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tFile forExtraction = null;\n\t\tFile configFile = null;\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'f': forExtraction = new File(args[++i]); break;\n\t\t\t\t\tcase 'v': vcfFileFilter = args[++i]; break;\n\t\t\t\t\tcase 'b': bedFileFilter = args[++i]; break;\n\t\t\t\t\tcase 'x': appendFilter = false; break;\n\t\t\t\t\tcase 'c': configFile = new File(args[++i]); break;\n\t\t\t\t\tcase 'd': dataDir = new File(args[++i]); break;\n\t\t\t\t\tcase 'm': maxCallFreq = Double.parseDouble(args[++i]); break;\n\t\t\t\t\tcase 'o': minBedCount = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tcase 's': saveDirectory = new File(args[++i]); break;\n\t\t\t\t\tcase 'e': debug = true; break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//config file? or local\n\t\tif (configLines != null && configFile != null){\n\t\t\tif (configLines[0].startsWith(\"-\") == false ) {\n\t\t\t\tHashMap<String, String> config = IO.loadFileIntoHashMapLowerCaseKey(configFile);\n\t\t\t\tif (config.containsKey(\"queryurl\")) queryURL = config.get(\"queryurl\");\n\t\t\t\tif (config.containsKey(\"host\")) host = config.get(\"host\");\n\t\t\t\tif (config.containsKey(\"realm\")) realm = config.get(\"realm\");\n\t\t\t\tif (config.containsKey(\"username\")) userName = config.get(\"username\");\n\t\t\t\tif (config.containsKey(\"password\")) password = config.get(\"password\");\n\t\t\t\tif (config.containsKey(\"maxcallfreq\")) maxCallFreq = Double.parseDouble(config.get(\"maxcallfreq\"));\n\t\t\t\tif (config.containsKey(\"vcffilefilter\")) vcfFileFilter = config.get(\"vcffilefilter\");\n\t\t\t\tif (config.containsKey(\"bedfilefilter\")) bedFileFilter = config.get(\"bedfilefilter\");\n\t\t\t}\n\t\t}\n\t\t//local search?\n\t\tif (queryURL == null){\n\t\t\tif (dataDir == null || dataDir.isDirectory()== false) {\n\t\t\t\tMisc.printErrAndExit(\"\\nProvide either a configuration file for remotely accessing a genomic query service or \"\n\t\t\t\t\t\t+ \"set the -d option to the Data directory created by the GQueryIndexer app.\\n\");;\n\t\t\t}\n\t\t}\n\n\t\tIO.pl(\"\\n\"+IO.fetchUSeqVersion()+\" Arguments:\");\n\t\tIO.pl(\"\\t-f Vcfs \"+forExtraction);\n\t\tIO.pl(\"\\t-s SaveDir \"+saveDirectory);\n\t\tIO.pl(\"\\t-v Vcf File Filter \"+vcfFileFilter);\n\t\tIO.pl(\"\\t-b Bed File Filter \"+bedFileFilter);\n\t\tIO.pl(\"\\t-m MaxCallFreq \"+maxCallFreq);\n\t\tIO.pl(\"\\t-o MinBedCount \"+minBedCount);\n\t\tIO.pl(\"\\t-x Remove failing \"+(appendFilter==false));\n\t\tIO.pl(\"\\t-e Verbose \"+debug);\n\t\tif (queryURL != null){\n\t\t\tIO.pl(\"\\tQueryUrl \"+queryURL);\n\t\t\tIO.pl(\"\\tHost \"+host);\n\t\t\tIO.pl(\"\\tRealm \"+realm);\n\t\t\tIO.pl(\"\\tUserName \"+userName);\n\t\t\t//check config params\n\t\t\tif (queryURL == null) Misc.printErrAndExit(\"\\nError: failed to find a queryUrl in the config file, e.g. queryUrl http://hci-clingen1.hci.utah.edu:8080/GQuery/\");\n\t\t\tif (queryURL.endsWith(\"/\") == false) queryURL = queryURL+\"/\";\n\t\t\tif (host == null) Misc.printErrAndExit(\"\\nError: failed to find a host in the config file, e.g. host hci-clingen1.hci.utah.edu\");\n\t\t\tif (realm == null) Misc.printErrAndExit(\"\\nError: failed to find a realm in the config file, e.g. realm QueryAPI\");\n\t\t\tif (userName == null) Misc.printErrAndExit(\"\\nError: failed to find a userName in the config file, e.g. userName FCollins\");\n\t\t\tif (password == null) Misc.printErrAndExit(\"\\nError: failed to find a password in the config file, e.g. password g0QueryAP1\");\n\n\t\t}\n\t\telse IO.pl(\"\\t-d DataDir \"+dataDir);\n\t\tIO.pl();\n\n\t\t//pull vcf files\n\t\tif (forExtraction == null || forExtraction.exists() == false) Misc.printErrAndExit(\"\\nError: please enter a path to a vcf file or directory containing such.\\n\");\n\t\tFile[][] tot = new File[3][];\n\t\ttot[0] = IO.extractFiles(forExtraction, \".vcf\");\n\t\ttot[1] = IO.extractFiles(forExtraction,\".vcf.gz\");\n\t\ttot[2] = IO.extractFiles(forExtraction,\".vcf.zip\");\n\t\tvcfFiles = IO.collapseFileArray(tot);\n\t\tif (vcfFiles == null || vcfFiles.length ==0 || vcfFiles[0].canRead() == false) Misc.printExit(\"\\nError: cannot find your xxx.vcf(.zip/.gz OK) file(s)!\\n\");\n\n\t\t//check params\n\t\tif (vcfFileFilter == null) Misc.printErrAndExit(\"\\nError: provide a vcf file filter, e.g. Hg38/Somatic/Avatar/Vcf \");\n\t\tif (bedFileFilter == null) Misc.printErrAndExit(\"\\nError: provide a bed file filter, e.g. Hg38/Somatic/Avatar/Bed \");\n\t\tif (saveDirectory == null) Misc.printErrAndExit(\"\\nError: provide a directory to save the annotated vcf files.\");\n\t\telse saveDirectory.mkdirs();\n\t\tif (saveDirectory.exists() == false) Misc.printErrAndExit(\"\\nError: could not find your save directory? \"+saveDirectory);\n\n\t\tuserQueryVcf = new UserQuery().addRegExFileName(\".vcf.gz\").addRegExDirPath(vcfFileFilter).matchVcf();\n\t\tuserQueryBed = new UserQuery().addRegExFileName(\".bed.gz\").addRegExDirPath(bedFileFilter);\n\t}", "public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tString useqVersion = IO.fetchUSeqVersion();\n\t\tSystem.out.println(\"\\n\"+useqVersion+\" Arguments: \"+ Misc.stringArrayToString(args, \" \") +\"\\n\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'r': bedFile = new File(args[++i]); break;\n\t\t\t\t\tcase 's': saveDirectory = new File(args[++i]); break;\n\t\t\t\t\tcase 'c': haploArgs = args[++i]; break;\n\t\t\t\t\tcase 't': numberConcurrentThreads = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//check save dir\n\t\tif (saveDirectory == null) Misc.printErrAndExit(\"\\nError: cannot find your save directory!\\n\"+saveDirectory);\n\t\tsaveDirectory.mkdirs();\n\t\tif (saveDirectory.isDirectory() == false) Misc.printErrAndExit(\"\\nError: your save directory does not appear to be a directory?\\n\");\n\n\t\t//check bed\n\t\tif (bedFile == null || bedFile.canRead() == false) Misc.printErrAndExit(\"\\nError: cannot find your bed file of regions to interrogate?\\n\"+bedFile);\n\t\t\n\t\t//check args\n\t\tif (haploArgs == null) Misc.printErrAndExit(\"\\nError: please provide a gatk haplotype caller launch cmd similar to the following where you \"\n\t\t\t\t+ \"replace the $xxx with the correct path to these resources on your system:\\n'java -Xmx4G -jar $GenomeAnalysisTK.jar -T \"\n\t\t\t\t+ \"HaplotypeCaller -stand_call_conf 5 -stand_emit_conf 5 --min_mapping_quality_score 13 -R $fasta --dbsnp $dbsnp -I $bam'\\n\");\n\t\tif (haploArgs.contains(\"~\") || haploArgs.contains(\"./\")) Misc.printErrAndExit(\"\\nError: full paths in the GATK command.\\n\"+haploArgs);\n\t\tif (haploArgs.contains(\"-o\") || haploArgs.contains(\"-L\")) Misc.printErrAndExit(\"\\nError: please don't provide a -o or -L argument to the cmd.\\n\"+haploArgs);\t\n\t\n\t\t//determine number of threads\n\t\tdouble gigaBytesAvailable = ((double)Runtime.getRuntime().maxMemory())/ 1073741824.0;\n\t\t\n\t\n\t}", "public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tSystem.out.println(\"\\n\"+IO.fetchUSeqVersion()+\" Arguments: \"+Misc.stringArrayToString(args, \" \")+\"\\n\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'b': bedFile = new File (args[i+1]); i++; break;\n\t\t\t\t\tcase 'm': minNumExons = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'a': requiredAnnoType = args[i+1]; i++; break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: System.out.println(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (bedFile == null || bedFile.canRead() == false) Misc.printExit(\"\\nError: cannot find your bed file!\\n\");\t\n\t}", "public void analyseArguments(String[] args) throws ArgumentsException {\n \t\t\n for (int i=0;i<args.length;i++){ \n \n \n if (args[i].matches(\"-s\")){\n affichage = true;\n }\n else if (args[i].matches(\"-seed\")) {\n aleatoireAvecGerme = true;\n i++; \n \t// traiter la valeur associee\n try { \n seed =new Integer(args[i]);\n \n }\n catch (Exception e) {\n throw new ArgumentsException(\"Valeur du parametre -seed invalide :\" + args[i]);\n } \t\t\n }\n \n else if (args[i].matches(\"-mess\")){\n i++; \n \t// traiter la valeur associee\n messageString = args[i];\n if (args[i].matches(\"[0,1]{7,}\")) {\n messageAleatoire = false;\n nbBitsMess = args[i].length();\n \n } \n else if (args[i].matches(\"[0-9]{1,6}\")) {\n messageAleatoire = true;\n nbBitsMess = new Integer(args[i]);\n if (nbBitsMess < 1) \n throw new ArgumentsException (\"Valeur du parametre -mess invalide : \" + nbBitsMess);\n }\n else \n throw new ArgumentsException(\"Valeur du parametre -mess invalide : \" + args[i]);\n }\n \n else throw new ArgumentsException(\"Option invalide :\"+ args[i]);\n \n }\n \n }", "ImmutableList<String> mainArgs();", "public static void parseArgs(String[] args) {\n int argc = args.length,\n i = 0;\n\n for (; i < argc; i++) {\n if (args[i].equals(\"-d\")) {\n debug = true;\n } \n else if(args[i].equals(\"-m\")) {\n try {\n maxRandInt = Integer.parseInt(args[++i]);\n } catch(NumberFormatException e) {\n System.out.println(\n \"Maximum random value must be a valid integer!\"\n );\n usage();\n }\n } else if(args[i].equals(\"-n\")) {\n try {\n iterations = Integer.parseInt(args[++i]);\n } catch(NumberFormatException e) {\n System.out.println(\n \"Iteration value must be a valid integer!\"\n );\n usage();\n }\n } else {\n filename = args[i];\n }\n }\n\n if (filename.equals(\"\")) {\n System.out.println(\"Must supply a filename!\\n\");\n usage();\n }\n \n }", "private void scanArgs(String [] args)\n{\n for (int i = 0; i < args.length; ++i) {\n if (args[i].startsWith(\"-\")) {\n\t badArgs();\n }\n else badArgs();\n }\n}", "public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tString useqVersion = IO.fetchUSeqVersion();\n\t\tSystem.out.println(\"\\n\"+useqVersion+\" Arguments: \"+ Misc.stringArrayToString(args, \" \") +\"\\n\");\n\t\tString dmelCountString = null;\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'f': drssFile = new File(args[++i]); break;\n\t\t\t\t\tcase 'd': dmelCountString = args[++i]; break;\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//check\n\t\tif (drssFile == null || drssFile.exists() == false) Misc.printErrAndExit(\"\\nFailed to find your drss file!\");\n\t\tif (dmelCountString == null) Misc.printErrAndExit(\"\\nFailed to find your treatment control count string!\");\n\t\tint[] dmel = Num.parseInts(dmelCountString, Misc.COMMA);\n\t\ttreatmentCounts = dmel[0];\n\t\tcontrolCounts = dmel[1];\n\n\n\n\t}", "Object[] args();", "public static void main(String[] args)\n {\n cmdLineArgs = args;\n }", "public static void main(String[] args) {\n\t\tloopThroughListOfStrings(Arrays.asList(\"appl\",\"apple\", \"mango-apple\",\"grapes\",\"watermelon\",\"pine-apple\",\"banana\"));\n\t\t\n\n\t}", "public static void main(String arg[]) {\n\n }", "public static void main(String[] args) {\r\n\t\tfor (int t = 0; t < args.length; t++){\r\n\t\t\tSystem.out.println(\"Argument \" + t + \" is \" + args[t]);\r\n\t\t}\r\n\r\n\t}", "private static void parseCommandLine(String[] args) throws Exception {\n int i;\n // iterate over all options (arguments starting with '-')\n for (i = 0; i < args.length && args[i].charAt(0) == '-'; i++) {\n switch (args[i].charAt(1)) {\n // -a type = write out annotations of type a.\n case 'a':\n if (annotTypesToWrite == null)\n annotTypesToWrite = new ArrayList();\n annotTypesToWrite.add(args[++i]);\n break;\n\n // -g gappFile = path to the saved application\n case 'g':\n gappFile = new File(args[++i]);\n break;\n\n // -e encoding = character encoding for documents\n case 'e':\n encoding = args[++i];\n break;\n\n default:\n System.err.println(\"Unrecognised option \" + args[i]);\n usage();\n }\n }\n\n // set index of the first non-option argument, which we take as the first\n // file to process\n firstFile = i;\n\n // sanity check other arguments\n if (gappFile == null) {\n System.err.println(\"No .gapp file specified\");\n usage();\n }\n }", "protected void parseArgs(String[] args) {\n // Arguments are pretty simple, so we go with a basic switch instead of having\n // yet another dependency (e.g. commons-cli).\n for (int i = 0; i < args.length; i++) {\n int nextIdx = (i + 1);\n String arg = args[i];\n switch (arg) {\n case \"--prop-file\":\n if (++i < args.length) {\n loadPropertyFile(args[i]);\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--schema-name\":\n if (++i < args.length) {\n DataDefinitionUtil.assertValidName(args[i]);\n\n // Force upper-case to avoid tricky-to-catch errors related to quoting names\n this.schemaName = args[i];\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--grant-to\":\n if (++i < args.length) {\n DataDefinitionUtil.assertValidName(args[i]);\n\n // Force upper-case because user names are case-insensitive\n this.grantTo = args[i].toUpperCase();\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--target\":\n if (++i < args.length) {\n DataDefinitionUtil.assertValidName(args[i]);\n List<String> targets = Arrays.asList(args[i].split(\",\"));\n for (String target : targets) {\n String tmp = target.toUpperCase();\n nextIdx++;\n if (tmp.startsWith(\"BATCH\")) {\n this.grantJavaBatchSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.javaBatchSchemaName = args[nextIdx];\n i++;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n } else if (tmp.startsWith(\"OAUTH\")){\n this.grantOauthSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.oauthSchemaName = args[nextIdx];\n i++;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n } else if (tmp.startsWith(\"DATA\")){\n this.grantFhirSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.schemaName = args[nextIdx];\n i++;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n }\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--add-tenant-key\":\n if (++i < args.length) {\n this.addKeyForTenant = args[i];\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--update-proc\":\n this.updateProc = true;\n break;\n case \"--check-compatibility\":\n this.checkCompatibility = true;\n break;\n case \"--drop-admin\":\n this.dropAdmin = true;\n break;\n case \"--test-tenant\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.testTenant = true;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--tenant-key\":\n if (++i < args.length) {\n this.tenantKey = args[i];\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--tenant-key-file\":\n if (++i < args.length) {\n tenantKeyFileName = args[i];\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--list-tenants\":\n this.listTenants = true;\n break;\n case \"--update-schema\":\n this.updateFhirSchema = true;\n this.updateOauthSchema = true;\n this.updateJavaBatchSchema = true;\n this.dropSchema = false;\n break;\n case \"--update-schema-fhir\":\n this.updateFhirSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.schemaName = args[nextIdx];\n i++;\n } else {\n this.schemaName = DATA_SCHEMANAME;\n }\n break;\n case \"--update-schema-batch\":\n this.updateJavaBatchSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.javaBatchSchemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--update-schema-oauth\":\n this.updateOauthSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.oauthSchemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--create-schemas\":\n this.createFhirSchema = true;\n this.createOauthSchema = true;\n this.createJavaBatchSchema = true;\n break;\n case \"--create-schema-fhir\":\n this.createFhirSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.schemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--create-schema-batch\":\n this.createJavaBatchSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.javaBatchSchemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--create-schema-oauth\":\n this.createOauthSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.oauthSchemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--drop-schema\":\n this.updateFhirSchema = false;\n this.dropSchema = true;\n break;\n case \"--drop-schema-fhir\":\n this.dropFhirSchema = Boolean.TRUE;\n break;\n case \"--drop-schema-batch\":\n this.dropJavaBatchSchema = Boolean.TRUE;\n break;\n case \"--drop-schema-oauth\":\n this.dropOauthSchema = Boolean.TRUE;\n break;\n case \"--pool-size\":\n if (++i < args.length) {\n this.maxConnectionPoolSize = Integer.parseInt(args[i]);\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--prop\":\n if (++i < args.length) {\n // properties are given as name=value\n addProperty(args[i]);\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--confirm-drop\":\n this.confirmDrop = true;\n break;\n case \"--allocate-tenant\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.allocateTenant = true;\n this.dropTenant = false;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--drop-tenant\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.dropTenant = true;\n this.allocateTenant = false;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--freeze-tenant\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.freezeTenant = true;\n this.dropTenant = false;\n this.allocateTenant = false;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--drop-detached\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.dropDetached = true;\n this.dropTenant = false;\n this.allocateTenant = false;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--delete-tenant-meta\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.deleteTenantMeta = true;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--dry-run\":\n this.dryRun = Boolean.TRUE;\n break;\n case \"--db-type\":\n if (++i < args.length) {\n this.dbType = DbType.from(args[i]);\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n switch (dbType) {\n case DERBY:\n translator = new DerbyTranslator();\n // For some reason, embedded derby deadlocks if we use multiple threads\n maxConnectionPoolSize = 1;\n break;\n case POSTGRESQL:\n translator = new PostgreSqlTranslator();\n break;\n case DB2:\n default:\n break;\n }\n break;\n default:\n throw new IllegalArgumentException(\"Invalid argument: \" + arg);\n }\n }\n }", "private String parseArgs(String args[])\n {\n String fpath = null;\n \n for (String arg : args)\n {\n if (arg.startsWith(\"-\"))\n {\n // TODO: maybe add something here.\n }\n else // expect a filename.\n {\n fpath = arg;\n }\n }\n \n return fpath;\n }", "private static void handleArguments(String[] args) {\n\t\t\n\t\tif ( args.length > 0 && args[0].contains(\"--help\")) {\n\t\t\tSystem.err.println (menuString);\n\t\t\tSystem.err.println(\"Example queue name are: *\");\n\t\t\tSystem.exit(0);\n\t\t} else {\n\n\t\t\tint i = 0;\n\t\t\tString arg;\n\n\t\t\twhile (i < args.length && args[i].startsWith(\"--\")) {\n\t\t\t\targ = args[i++];\n\n\t\t\t\tif (arg.contains(ECS_HOSTS_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tecsHosts = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_HOSTS_CONFIG_ARGUMENT + \" requires hosts value(s)\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.contains(ECS_MGMT_ACCESS_KEY_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tecsMgmtAccessKey = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_MGMT_ACCESS_KEY_CONFIG_ARGUMENT + \" requires an access-key value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_MGMT_SECRET_KEY_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tecsMgmtSecretKey = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_MGMT_SECRET_KEY_CONFIG_ARGUMENT + \" requires a secret-key value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_MGMT_PORT_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tecsMgmtPort = Integer.valueOf(args[i++]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_MGMT_PORT_CONFIG_ARGUMENT + \" requires a mgmt port value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_ALT_MGMT_PORT_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tecsAlternativeMgmtPort = Integer.valueOf(args[i++]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_ALT_MGMT_PORT_CONFIG_ARGUMENT + \" requires an alternative mgmt port value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_COLLECT_MODIFIED_OBJECT_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\trelativeObjectModifiedSinceOption = true;\n\t\t\t\t\t\tobjectModifiedSinceNoOfDays = Integer.valueOf(args[i++]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_COLLECT_MODIFIED_OBJECT_CONFIG_ARGUMENT + \" requires a specified number of days value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_COLLECT_DATA_CONFIG_ARGUMENT)) {\n\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tcollectData = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_COLLECT_DATA_CONFIG_ARGUMENT + \" requires a collect data value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.contains(ELASTIC_HOSTS_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\telasticHosts = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ELASTIC_HOSTS_CONFIG_ARGUMENT + \" requires hosts value(s)\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ELASTIC_PORT_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\telasticPort = Integer.valueOf(args[i++]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ELASTIC_PORT_CONFIG_ARGUMENT + \" requires a port value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ELASTIC_CLUSTER_CONFIG_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\telasticCluster = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( ELASTIC_CLUSTER_CONFIG_ARGUMENT + \" requires a cluster value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_COLLECTION_DAY_SHIFT_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\trelativeDayShift = Integer.valueOf(args[i++]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_COLLECTION_DAY_SHIFT_ARGUMENT + \" requires a day shift value port value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals( ECS_INIT_INDEXES_ONLY_CONFIG_ARGUMENT)) { \n\t\t\t\t\tinitIndexesOnlyOption = true;\n\t\t\t\t} else if (arg.equals( XPACK_SECURITY_USER_ARG)) { \n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\txpackUser = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( XPACK_SECURITY_USER_ARG + \" requires a value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals( XPACK_SECURITY_USER_PASSWORD_ARG)) { \n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\txpackPassword = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( XPACK_SECURITY_USER_PASSWORD_ARG + \" requires a value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals( XPACK_SSL_KEY_ARG)) { \n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\txpackSslKey = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( XPACK_SSL_KEY_ARG + \" requires a value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals( XPACK_SSL_CERTIFICATE_ARG)) { \n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\txpackSslCertificate = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( XPACK_SSL_CERTIFICATE_ARG + \" requires a value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals( XPACK_SSL_CERTIFICATE_AUTH_ARG)) { \n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\txpackSsslCertificateAuth = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println( XPACK_SSL_CERTIFICATE_AUTH_ARG + \" requires a value\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_COLLECT_OBJECT_DATA_NAMESPACE_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tobjectNamespace = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_COLLECT_OBJECT_DATA_NAMESPACE_ARGUMENT + \" requires namespace\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else if (arg.equals(ECS_COLLECT_OBJECT_DATA_NAME_ARGUMENT)) {\n\t\t\t\t\tif (i < args.length) {\n\t\t\t\t\t\tbucketName = args[i++];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.err.println(ECS_COLLECT_OBJECT_DATA_NAME_ARGUMENT + \" requires bucket\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSystem.err.println(\"Unrecognized option: \" + arg); \n\t\t\t\t\tSystem.err.println(menuString);\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t} \n\t\t\t}\n\t\t\tif (bucketName!=null) {\n\t\t\t\tif (objectNamespace==null || \"\".equals(objectNamespace)) {\n\t\t\t\t\tSystem.err.println(ECS_COLLECT_OBJECT_DATA_NAMESPACE_ARGUMENT + \" requires namespace, \" + ECS_COLLECT_OBJECT_DATA_NAME_ARGUMENT + \" requires bucket\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(initIndexesOnlyOption) {\n\t\t\t// Check hosts\n\t\t\tif(elasticHosts.isEmpty()) {\t\n\t\t\t\tSystem.err.println(\"Missing Elastic hostname use \" + ELASTIC_HOSTS_CONFIG_ARGUMENT + \n\t\t\t\t\t\t\t\t\"<host1, host2> to specify a value\" );\n\t\t\t\treturn;\n\t\t\t}\t\n\t\t} else {\n\n\t\t\t// Check hosts\n\t\t\tif(ecsHosts.isEmpty()) {\t\n\t\t\t\tSystem.err.println(\"Missing ECS hostname use \" + ECS_HOSTS_CONFIG_ARGUMENT + \n\t\t\t\t\t\t\"<host1, host2> to specify a value\" );\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// management access/user key\n\t\t\tif(ecsMgmtAccessKey.isEmpty()) {\n\t\t\t\tSystem.err.println(\"Missing managment access key use\" + ECS_MGMT_ACCESS_KEY_CONFIG_ARGUMENT +\n\t\t\t\t\t\t\"<admin-username> to specify a value\" );\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// management access/user key\n\t\t\tif(ecsMgmtSecretKey.isEmpty()) {\n\t\t\t\tSystem.err.println(\"Missing management secret key use \" + ECS_MGMT_SECRET_KEY_CONFIG_ARGUMENT +\n\t\t\t\t\t\t\"<admin-password> to specify a value\" );\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "void processCommandLineArguments(String[] args) throws ConfigurationException;", "String getArguments();", "private void scanArgs(String [] args)\n{\n for (int i = 0; i < args.length; ++i) {\n if (args[i].startsWith(\"-\")) {\n \n }\n else { \n root_files.add(new File(args[i]));\n }\n }\n \n if (root_files.isEmpty()) {\n root_files.add(new File(DEFAULT_FILE));\n }\n if (output_file == null) output_file = new File(OUTPUT_FILE);\n}", "private void parseArgs(String[] object) throws IllegalArgumentException {\n Object object2;\n int n;\n int n2;\n int n3 = 0;\n boolean bl = false;\n boolean bl2 = true;\n block6 : do {\n int n4 = ((Object)object).length;\n n2 = 0;\n n = ++n3;\n if (n3 >= n4) break;\n object2 = object[n3];\n if (((String)object2).equals(\"--\")) {\n n = n3 + 1;\n break;\n }\n if (((String)object2).startsWith(\"--setuid=\")) {\n if (this.mUidSpecified) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mUidSpecified = true;\n this.mUid = Integer.parseInt(((String)object2).substring(((String)object2).indexOf(61) + 1));\n continue;\n }\n if (((String)object2).startsWith(\"--setgid=\")) {\n if (this.mGidSpecified) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mGidSpecified = true;\n this.mGid = Integer.parseInt(((String)object2).substring(((String)object2).indexOf(61) + 1));\n continue;\n }\n if (((String)object2).startsWith(\"--target-sdk-version=\")) {\n if (this.mTargetSdkVersionSpecified) throw new IllegalArgumentException(\"Duplicate target-sdk-version specified\");\n this.mTargetSdkVersionSpecified = true;\n this.mTargetSdkVersion = Integer.parseInt(((String)object2).substring(((String)object2).indexOf(61) + 1));\n continue;\n }\n if (((String)object2).equals(\"--runtime-args\")) {\n bl = true;\n continue;\n }\n if (((String)object2).startsWith(\"--runtime-flags=\")) {\n this.mRuntimeFlags = Integer.parseInt(((String)object2).substring(((String)object2).indexOf(61) + 1));\n continue;\n }\n if (((String)object2).startsWith(\"--seinfo=\")) {\n if (this.mSeInfoSpecified) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mSeInfoSpecified = true;\n this.mSeInfo = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n continue;\n }\n if (((String)object2).startsWith(\"--capabilities=\")) {\n if (this.mCapabilitiesSpecified) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mCapabilitiesSpecified = true;\n if (((String[])(object2 = ((String)object2).substring(((String)object2).indexOf(61) + 1).split(\",\", 2))).length == 1) {\n this.mPermittedCapabilities = this.mEffectiveCapabilities = Long.decode((String)object2[0]).longValue();\n continue;\n }\n this.mPermittedCapabilities = Long.decode((String)object2[0]);\n this.mEffectiveCapabilities = Long.decode((String)object2[1]);\n continue;\n }\n if (((String)object2).startsWith(\"--rlimit=\")) {\n String[] arrstring = ((String)object2).substring(((String)object2).indexOf(61) + 1).split(\",\");\n if (arrstring.length != 3) throw new IllegalArgumentException(\"--rlimit= should have 3 comma-delimited ints\");\n object2 = new int[arrstring.length];\n for (n = 0; n < arrstring.length; ++n) {\n object2[n] = Integer.parseInt(arrstring[n]);\n }\n if (this.mRLimits == null) {\n this.mRLimits = new ArrayList();\n }\n this.mRLimits.add((int[])object2);\n continue;\n }\n if (((String)object2).startsWith(\"--setgroups=\")) {\n if (this.mGids != null) throw new IllegalArgumentException(\"Duplicate arg specified\");\n object2 = ((String)object2).substring(((String)object2).indexOf(61) + 1).split(\",\");\n this.mGids = new int[((String[])object2).length];\n n = ((Object[])object2).length - 1;\n do {\n if (n < 0) continue block6;\n this.mGids[n] = Integer.parseInt((String)object2[n]);\n --n;\n } while (true);\n }\n if (((String)object2).equals(\"--invoke-with\")) {\n if (this.mInvokeWith != null) throw new IllegalArgumentException(\"Duplicate arg specified\");\n ++n3;\n try {\n this.mInvokeWith = object[n3];\n }\n catch (IndexOutOfBoundsException indexOutOfBoundsException) {\n throw new IllegalArgumentException(\"--invoke-with requires argument\");\n }\n }\n if (((String)object2).startsWith(\"--nice-name=\")) {\n if (this.mNiceName != null) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mNiceName = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n continue;\n }\n if (((String)object2).equals(\"--mount-external-default\")) {\n this.mMountExternal = 1;\n continue;\n }\n if (((String)object2).equals(\"--mount-external-read\")) {\n this.mMountExternal = 2;\n continue;\n }\n if (((String)object2).equals(\"--mount-external-write\")) {\n this.mMountExternal = 3;\n continue;\n }\n if (((String)object2).equals(\"--mount-external-full\")) {\n this.mMountExternal = 6;\n continue;\n }\n if (((String)object2).equals(\"--mount-external-installer\")) {\n this.mMountExternal = 5;\n continue;\n }\n if (((String)object2).equals(\"--mount-external-legacy\")) {\n this.mMountExternal = 4;\n continue;\n }\n if (((String)object2).equals(\"--query-abi-list\")) {\n this.mAbiListQuery = true;\n continue;\n }\n if (((String)object2).equals(\"--get-pid\")) {\n this.mPidQuery = true;\n continue;\n }\n if (((String)object2).startsWith(\"--instruction-set=\")) {\n this.mInstructionSet = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n continue;\n }\n if (((String)object2).startsWith(\"--app-data-dir=\")) {\n this.mAppDataDir = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n continue;\n }\n if (((String)object2).equals(\"--preload-app\")) {\n this.mPreloadApp = object[++n3];\n continue;\n }\n if (((String)object2).equals(\"--preload-package\")) {\n this.mPreloadPackage = object[++n3];\n this.mPreloadPackageLibs = object[++n3];\n this.mPreloadPackageLibFileName = object[++n3];\n this.mPreloadPackageCacheKey = object[++n3];\n continue;\n }\n if (((String)object2).equals(\"--preload-default\")) {\n this.mPreloadDefault = true;\n bl2 = false;\n continue;\n }\n if (((String)object2).equals(\"--start-child-zygote\")) {\n this.mStartChildZygote = true;\n continue;\n }\n if (((String)object2).equals(\"--set-api-blacklist-exemptions\")) {\n this.mApiBlacklistExemptions = (String[])Arrays.copyOfRange(object, n3 + 1, ((Object)object).length);\n n3 = ((Object)object).length;\n bl2 = false;\n continue;\n }\n if (((String)object2).startsWith(\"--hidden-api-log-sampling-rate=\")) {\n object2 = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n try {\n this.mHiddenApiAccessLogSampleRate = Integer.parseInt((String)object2);\n bl2 = false;\n }\n catch (NumberFormatException numberFormatException) {\n object = new StringBuilder();\n ((StringBuilder)object).append(\"Invalid log sampling rate: \");\n ((StringBuilder)object).append((String)object2);\n throw new IllegalArgumentException(((StringBuilder)object).toString(), numberFormatException);\n }\n }\n if (((String)object2).startsWith(\"--hidden-api-statslog-sampling-rate=\")) {\n object2 = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n try {\n this.mHiddenApiAccessStatslogSampleRate = Integer.parseInt((String)object2);\n bl2 = false;\n }\n catch (NumberFormatException numberFormatException) {\n object = new StringBuilder();\n ((StringBuilder)object).append(\"Invalid statslog sampling rate: \");\n ((StringBuilder)object).append((String)object2);\n throw new IllegalArgumentException(((StringBuilder)object).toString(), numberFormatException);\n }\n }\n if (((String)object2).startsWith(\"--package-name=\")) {\n if (this.mPackageName != null) throw new IllegalArgumentException(\"Duplicate arg specified\");\n this.mPackageName = ((String)object2).substring(((String)object2).indexOf(61) + 1);\n continue;\n }\n n = n3;\n if (!((String)object2).startsWith(\"--usap-pool-enabled=\")) break;\n this.mUsapPoolStatusSpecified = true;\n this.mUsapPoolEnabled = Boolean.parseBoolean(((String)object2).substring(((String)object2).indexOf(61) + 1));\n bl2 = false;\n } while (true);\n if (!this.mAbiListQuery && !this.mPidQuery) {\n if (this.mPreloadPackage != null) {\n if (((Object)object).length - n > 0) throw new IllegalArgumentException(\"Unexpected arguments after --preload-package.\");\n } else if (this.mPreloadApp != null) {\n if (((Object)object).length - n > 0) throw new IllegalArgumentException(\"Unexpected arguments after --preload-app.\");\n } else if (bl2) {\n if (!bl) {\n object2 = new StringBuilder();\n ((StringBuilder)object2).append(\"Unexpected argument : \");\n ((StringBuilder)object2).append((String)object[n]);\n throw new IllegalArgumentException(((StringBuilder)object2).toString());\n }\n this.mRemainingArgs = new String[((Object)object).length - n];\n object2 = this.mRemainingArgs;\n System.arraycopy(object, n, object2, 0, ((String[])object2).length);\n }\n } else if (((Object)object).length - n > 0) throw new IllegalArgumentException(\"Unexpected arguments after --query-abi-list.\");\n if (!this.mStartChildZygote) return;\n bl = false;\n object = this.mRemainingArgs;\n n = ((Object)object).length;\n n3 = n2;\n do {\n bl2 = bl;\n if (n3 >= n) break;\n if (((String)object[n3]).startsWith(\"--zygote-socket=\")) {\n bl2 = true;\n break;\n }\n ++n3;\n } while (true);\n if (!bl2) throw new IllegalArgumentException(\"--start-child-zygote specified without --zygote-socket=\");\n }", "protected static List<String> arguments(String[] args) {\n List<String> arguments = new ArrayList<>(args.length);\n for (int i = 0; i < args.length; ++i) {\n if (args[i].equals(\"--\")) {\n arguments.addAll(Arrays.asList(args).subList(i + 1, args.length));\n break;\n } else if (!args[i].startsWith(\"-\")) {\n arguments.add(args[i]);\n }\n }\n return arguments;\n }", "private static void processArguments(String[] args) {\r\n if (args.length < 2) {\r\n IO.displayGUI(args.length + \" arguments provided.\\nPlease provide input and output files through the GUI.\");\r\n IO.chooseFiles(); // choose files with GUI\r\n } else {\r\n // Open file streams\r\n IO.openStream(args[0], args[1]);\r\n }\r\n }", "protected abstract void parseArgs() throws IOException;", "protected void parseArgs(String[] args) throws BuildException {\n for (int i = 0; i != args.length; ++i) {\n String arg = args[i];\n boolean parsed = parseArg(arg, args, i);\n if (!parsed) {\n String message = \"Unknown option: \" + arg;\n usage(message, System.out);\n throw new BuildException(message);\n }\n }\n }", "private void processArgs(String[] args)\n\t{\n\t\tboolean verbose = _verbose.getMatched();\n\n\t\t// disable console echo\n\t\t_writer.println(\"@echo off\");\n\n\t\tfor(int i = 0; i < args.length; ++i)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// try and expand any wildcards not handled by DOS/Windows\n\t\t\t\tString[] xargs = expandArg(args[i]);\n\n\t\t\t\tfor(int j = 0; j < xargs.length; ++j)\n\t\t\t\t{\n\t\t\t\t\tif(verbose)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.err.println(Strings.format(\"fProcessArg\", new Object[] { xargs[j] }));\n\t\t\t\t\t}\n\n\t\t\t\t\tFile pc = new File(xargs[j]);\n\t\t\t\t\t_writer.print(\"set CLASSPATH=%CLASSPATH%;\");\n\t\t\t\t\t_writer.println(pc.getCanonicalPath());\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\tSystem.err.println(Strings.format(\"fGeneralError\", new Object[] { e.getMessage() }));\n\t\t\t\t\n\t\t\t\tif(verbose)\n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tRuntimeMXBean bean = ManagementFactory.getRuntimeMXBean();\n\t\tList<String> aList = bean.getInputArguments();\n\n\t\tfor (int i = 0; i < aList.size(); i++) {\n\t\t\tSystem.out.println(aList.get(i));\n\t\t}\n\t}", "public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'a': ucscGeneTableFileAll = new File(args[i+1]); i++; break;\n\t\t\t\t\tcase 'g': ucscGeneTableFileSelect = new File(args[i+1]); i++; break;\n\t\t\t\t\tcase 'b': barDirectory = new File(args[i+1]); i++; break;\n\t\t\t\t\tcase 'r': rApp = new File(args[i+1]); i++; break;\n\t\t\t\t\tcase 's': threshold = Float.parseFloat(args[i+1]); i++; break;\n\t\t\t\t\tcase 'e': extension = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'f': extensionToSegment = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'x': bpPositionOffSetBar = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'y': bpPositionOffSetRegion = Integer.parseInt(args[i+1]); i++; break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: Misc.printExit(\"\\nError: unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//parse text\n\t\tselectName = Misc.removeExtension(ucscGeneTableFileSelect.getName());\n\n\t}", "public static void main(String[] args) {\r\n if (args.length == 0) {\r\n System.out.println(\"Please enter command line arguments\");\r\n System.exit(2);\r\n } else {\r\n int arg_counter = 1;\r\n for (String arg: args) {\r\n System.out.println(\"Argument \" + arg_counter + \": \" + arg);\r\n arg_counter +=1;\r\n }\r\n System.exit(0);\r\n }\r\n }", "public static void main(String[] args) {\n\t\tfor (int i =0; i<args.length; i++) {\r\n\t\t\tSystem.out.println(\"args[\"+i+\"]\" + args[i]);\r\n\t\t}\r\n\r\n\t}", "private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }", "void main(CommandLine cmd);", "Optional<String[]> arguments();", "@Test\r\n public void testCheckInput() throws Exception {\r\n System.out.println(\"checkInput\");\r\n System.out.println(\"test1\");\r\n String[] arguments = {\"1k2h3u\",\"test.txt\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\"};\r\n CommandLineArgumentParser instance =new CommandLineArgumentParser(arguments);\r\n String expResult = \"correct\";\r\n String result = instance.checkInput(arguments);\r\n assertEquals(expResult, result);\r\n \r\n System.out.println(\"test 2\");\r\n String[] arguments2 = {\"1k\",\"test.txt\",\"1\"};\r\n String expResult2 = \"correct\";\r\n String result2 = instance.checkInput(arguments2);\r\n assertEquals(expResult2, result2);\r\n \r\n System.out.println(\"test 3\");\r\n String[] arguments3 = {\"chat.txt\"};\r\n String expResult3 = \"correct\";\r\n String result3 = instance.checkInput(arguments3);\r\n assertEquals(expResult3, result3);\r\n \r\n System.out.println(\"test 4\");\r\n String[] arguments4 = {\"1k2h3u\",\"test.txt\",\"1\",\"2\",\"3\",\"4\",\"5\"};\r\n String expResult4 = \"Incorrect number of arguments\";\r\n String result4 = instance.checkInput(arguments4);\r\n assertEquals(expResult4, result4);\r\n \r\n System.out.println(\"test 5\");\r\n String[] arguments5 = {};\r\n String expResult5 = \"Need at least one argument with input file path\";\r\n String result5 = instance.checkInput(arguments5);\r\n assertEquals(expResult5, result5);\r\n }", "public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}", "protected void handleArgs(String[] argv) throws IOException {\n String url = null, path = null, com = null;\n char c;\n boolean got_com = false;\n boolean error = false;\n edu.hkust.clap.monitor.Monitor.loopBegin(750);\nfor (int i = 0; i < argv.length; i++) { \nedu.hkust.clap.monitor.Monitor.loopInc(750);\n{\n if (argv[i].charAt(0) != '-' || argv[i].length() != 2) {\n error = true;\n break;\n }\n c = argv[i].charAt(1);\n switch(c) {\n case 'c':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n com = argv[++i].toUpperCase() + \"\\0\";\n got_com = true;\n break;\n case 'u':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n url = argv[++i];\n break;\n case 'p':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n path = argv[++i];\n break;\n case 's':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n _host_name = argv[++i];\n break;\n case 'P':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n try {\n _port = Integer.parseInt(argv[++i]);\n } catch (Exception e) {\n System.err.println(\"Invalid port number \\\"\" + argv[i] + \"\\\"\");\n _port = -1;\n error = true;\n }\n break;\n case 'v':\n ++_verbose;\n break;\n case 'h':\n usage();\n System.exit(OK);\n case 'V':\n version();\n System.exit(OK);\n default:\n error = true;\n }\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(750);\n\n if (!got_com) {\n System.err.println(\"No command specified\");\n error = true;\n }\n if (error) {\n usage();\n System.exit(FAILED);\n }\n if (_port == -1) {\n _port = PushCacheFilter.DEFAULT_PORT_NUM;\n }\n if (_host_name.length() == 0) {\n _host_name = DEFAULT_SERVER;\n }\n int ev = 0;\n try {\n switch(PushCacheProtocol.instance().parseCommand(com)) {\n case PushCacheProtocol.ADD:\n add(path, url);\n break;\n case PushCacheProtocol.DEL:\n del(url);\n break;\n case PushCacheProtocol.PRS:\n if (!isPresent(url)) {\n ev = 1;\n }\n break;\n default:\n simpleCommand(com);\n }\n } catch (IllegalArgumentException e) {\n System.err.println(e.getMessage());\n usage();\n ev = FAILED;\n }\n sendBye();\n System.exit(ev);\n }", "public static void main(String[] args) {\n IntStream.iterate(0, i -> i < args.length, i -> i + 2)\n .forEach(i -> System.out.printf(\"%s=%s\\n\", args[i], args[i + 1]));\n }", "private void handleCommandLineArgs(final String[] args) {\n if (args.length == 1) {\n final String value;\n if (args[0].startsWith(ToolArguments.MAP_FOLDER)) {\n value = getValue(args[0]);\n } else {\n value = args[0];\n }\n final File mapFolder = new File(value);\n if (mapFolder.exists()) {\n mapFolderLocation = mapFolder;\n } else {\n log.info(\"Could not find directory: \" + value);\n }\n } else if (args.length > 1) {\n log.info(\"Only argument allowed is the map directory.\");\n }\n // might be set by -D\n if (mapFolderLocation == null || mapFolderLocation.length() < 1) {\n final String value = System.getProperty(ToolArguments.MAP_FOLDER);\n if (value != null && value.length() > 0) {\n final File mapFolder = new File(value);\n if (mapFolder.exists()) {\n mapFolderLocation = mapFolder;\n } else {\n log.info(\"Could not find directory: \" + value);\n }\n }\n }\n }", "public void parseCommandLine(String[] args) {\r\n\t\t// define command line options\r\n\t\tOptions options = new Options();\r\n\t\t// refresh:\r\n\t\toptions.addOption(new Option(\r\n\t\t \"refresh\", \r\n\t\t \"Tell Argus to start refreshing all files after Minstrel startup.\"));\r\n\t\t// port:\r\n\t\tOptionBuilder.withArgName(\"port\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription( \"Run NanoHTTPD on this port instead of default 8000.\" );\r\n\t\toptions.addOption(OptionBuilder.create(\"port\"));\r\n\t\t// argus:\r\n\t\tOptionBuilder.withArgName(\"url\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription( \"Use Argus at <url> instead of default localhost:8008.\" );\r\n\t\toptions.addOption(OptionBuilder.create(\"argus\"));\r\n\t\t// vlc:\r\n\t\tOptionBuilder.withArgName(\"url\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription(\"Use VLC at <url> instead of default localhost:8080.\");\r\n\t\toptions.addOption(OptionBuilder.create(\"vlc\"));\r\n\t\t// wwwroot:\r\n\t\tOptionBuilder.withArgName(\"path\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription(\"Have NanoHTTPD serve files from <path> instead of default ./wwwroot.\");\r\n\t\toptions.addOption(OptionBuilder.create(\"wwwroot\"));\r\n\t\t\r\n\t\t// parse command line options and adjust accordingly\r\n\t\tCommandLineParser parser = new GnuParser();\r\n\t\ttry {\r\n\t\t\tCommandLine line = parser.parse(options, args);\r\n\r\n\t\t\tif (line.hasOption(\"refresh\")) {\r\n\t\t\t\trefresh = new Date();\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"port\")) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tport = Integer.parseInt( line.getOptionValue(\"port\"));\r\n\t\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t\tSystem.err.println(\"Badly formatted port number, defaulting to 8000. Reason: \" + e.getMessage());\r\n\t\t\t\t\tport = 8000;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"argus\")) {\r\n\t\t\t\targusURL = line.getOptionValue(\"argus\");\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"vlc\")) {\r\n\t\t\t\tvlcURL = line.getOptionValue(\"vlc\");\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"wwwroot\")) {\r\n\t\t\t\twwwroot = line.getOptionValue(\"wwwroot\");\r\n\t\t\t}\r\n\t\t} catch (ParseException e) {\r\n\t\t\tSystem.err.println(\"Command line parsing failed. Reason: \" + e.getMessage());\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n String argumento1 = \"bianca\";\n String argumento2 = \"amora\";\n String argumento3 = \"/bin/bash\";\n String argumento4 = \"/\";\n String argumento5 = \"/etc/apache2\";\n \n //Array List pertencendo a Collection de listas\n //Criando instancia para ArrayList\n ArrayList<String> argumentos;\n //Criando uma nova arraylist\n argumentos = new ArrayList<>();\n //Adicionando objetos tipo String, argumentos 1,2,3\n argumentos.add(argumento1);\n argumentos.add(argumento2);\n argumentos.add(argumento3);\n \n //Criando lista de argumentos2\n ArrayList<String> argumentos2 = new ArrayList<>();\n \n //Atribuindo todos os objetos da lista de argumentos1\n argumentos2.addAll(argumentos);\n //Adicionando mais argumentos 4,5\n argumentos2.add(argumento4);\n argumentos2.add(argumento5); \n \n //removendo objeto argumento1\n argumentos.remove(argumento1);\n //removendo objeto argumento1 da collection argumentos2\n argumentos2.remove(argumento1);\n \n //metodos das collections são diferentes da arrays,porém executam a mesma tarefa\n //.size() retorna a quantidade de elementos dentro de uma collection\n System.out.println(argumentos.size());\n //for usado para abreviação....\n //mesma coisa que for(int i = 0; i < argumentos.size();i++)\n //For não abreviado.\n for(int i = 0 ; i < argumentos.size(); i ++){\n System.out.println(\"for não abreviado: \" + argumentos.get(i));\n }\n //para cada argumento dentro de argumentos faça o seguinte....\n for(String argumento : argumentos){\n System.out.println(argumento);\n }\n //Percorrendo e printando collection argumentos 2\n for(String argumento : argumentos2){\n System.out.println(argumento);\n }\n \n //foreach a partir do JAVA 8 como metodo das collections\n //Faz a mesma função que os fors de cima \n //A vantagem é sobre paralelismo e mutabilidade\n argumentos.forEach(argumento -> {\n System.out.println(\"percorrrendo argumento:\" + argumento);\n });\n \n //Metodo ordena de cordo com a ordem lexical da String(Alfabetica)\n //Ordenando usando a classe Collections que é diferente da interface Collection.\n Collections.sort(argumentos);\n //Ordenando usando a classe Collections que é diferente da interface Collection.\n Collections.sort(argumentos2);\n \n argumentos.add(argumento1);\n argumentos2.add(argumento1);\n \n argumentos.forEach(argumento -> {\n System.out.println(\"Depois de ordenado argumentos1\" + argumento);\n });\n \n argumentos2.forEach(argumento -> \n {System.out.println(\"Depois de ordenado argumentos2 \" + argumento);\n });\n \n }", "private static void parseArguments(String[] args, MiParaPipeLine p) throws IOException{\n options.addOption(\"i\", \"input-file\", true, \"FASTA input file for query sequences\");\n options.addOption(\"o\", \"output-folder\", true, \"output folder for prediction results\");\n options.addOption(\"t\", \"test\", true, \"run test example \");\n options.addOption(\"c\", \"config\", true, \"configuration file for miRPara\");\n options.addOption(\"a\", \"action\", true, \"action to perform\");\n options.addOption(\"h\", \"help \", false, \"print help\");\n\n logger.trace(\"parsing args\");\n CommandLineParser parser = new BasicParser();\n CommandLine cmd = null;\n\n \n try {\n cmd = parser.parse(options, args);\n if (cmd.hasOption(\"h\")){\n print_help();\n System.out.print(p.reportAvailableActions());\n }\n\n if (cmd.hasOption(\"t\")){ \n logger.info(\"test set to \" + cmd.getOptionValue(\"l\"));\n test = cmd.getOptionValue(\"t\").toLowerCase();\n }\n \n if (cmd.hasOption(\"i\")) {\n logger.info(\"input file set to \" + cmd.getOptionValue(\"i\"));\n p.setInputFilename(cmd.getOptionValue(\"i\"));\t\n } \n\n if (cmd.hasOption(\"o\")){\n logger.info(\"output folder is\" + cmd.getOptionValue(\"o\"));\n p.setOutputFolder(cmd.getOptionValue(\"o\"));\n }\n \n if (cmd.hasOption(\"a\")){\n logger.info(\"requested action is \" + cmd.getOptionValue(\"a\"));\n p.setAction(cmd.getOptionValue(\"a\"));\n }\n \n if (cmd.hasOption(\"c\")){\n configFile = cmd.getOptionValue(\"c\");\n logger.info(\"Configuration file is \" + configFile);\n p.setConfigFilename(configFile);\n }\n\n\n \n if(p.getConfigFilename()==null){\n throw new ParseException(\"no configuration file was specified\") ; \n }\n \n if(new File(p.getConfigFilename()).exists() == false){\n throw new IOException(\"configuration file <\" + p.getConfigFilename() + \"> does not exist\");\n } \n \n if(new File(p.getInputFilename()).exists()== false)\n {\n throw new IOException(\"input file <\" + p.getInputFilename() + \"> does not exist\");\n }\n \n if(new File(p.getOutputFolder()).exists() == false)\n {\n if (new File(p.getOutputFolder()).getParentFile().exists() == false)\n throw new IOException(\"parent file <\" + new File(p.getOutputFolder()).getParentFile() + \"> does not exist\");\n \n new File(p.getOutputFolder()).mkdir();\n logger.info(\"create results folder <\" + p.getOutputFolder() + \">\");\n }\n\n } catch (ParseException e) {\n\n logger.fatal(\"Failed to parse command line properties\", e);\n print_help();\n\n }\n\n \n }", "public static void main(String[ ] argv) {\n if(argv.length == 0){\n System.out.printf(\"sem argumentos!\\n\");\n }\n\n else{\n System.out.println (\"\\nmostrando o array \\n\");\n \n \n for(int i = 0;i < argv.length;i++){\n System.out.printf(\"\\narray na posiçao: %d eh %s\\n \",i+1,argv[i]);\n \n }\n System.out.printf(\"\\ntotal do array: %d\\n\",argv.length);\n}\n \n }", "public static void main(String[] args) {\n\t\tint sum=0;\n\t\tfor(String num:args)\n\t\t{\n\t\t\tsum+=Integer.parseInt(num);\n\t\t}\n\t\t\tSystem.out.println(\"sum is \"+sum);\n\t}", "java.lang.String getArg();", "public static void GetParam(String [] args){\n if (args.length==0) {\n System.err.println(\"Sintaxis: main -f file [-di] [-do|-t] [-mem|-tab]\");\n System.exit(1);\n }\n for (int i = 0; i < args.length; i++) {\n if(args[i].equals(\"-f\")){\n f_flag=true;\n path=args[i+1];\n }\n if(args[i].equals(\"-t\"))t_flag=true;\n if(args[i].equals(\"-di\"))di_flag=true;\n if(args[i].equals(\"-do\"))do_flag=true;\n if(args[i].equals(\"-tab\"))tab_flag=true;\n if(args[i].equals(\"-mem\"))mem_flag=true;\n }\n if (!f_flag){\n System.err.println(\"Ha de introducir un fichero\");\n System.exit(1);\n }\n if (!tab_flag && !mem_flag){\n System.err.println(\"Error: si se ha escogido -do o -t, se ha de \"\n + \"especificar -tab ('tabulation') o/y -mem ('memoization')\");\n System.exit(1);\n }\n }", "private void argumentChecker(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tif (args.length != 2) {\n\t\t\tSystem.out.println(\"Invalid arguments. \\nExpected:\\tDriver inputFile.txt outputFile.txt\");\n\t\t}\n\t}", "public static void main(String[] args) {\n int sum=0;\n for(int i=0;i< args.length;i++)\n {\n sum+=Integer.parseInt(args[i]);\n System.out.println(sum);\n }\n\n }", "@Test\n public void correctArgumentsReturnsArguments() {\n String projectPath = \"/pathI/\";\n String resultPath = \"/pathO/\";\n String apkPath = apkFile.getAbsolutePath();\n String filtersPath = filterFile.getAbsolutePath();\n String[] inputArgs = new String[] {\"-i\", projectPath, \"-o\", resultPath, \n \"-a\", apkPath, \"-f\", filtersPath};\n ArgumentReader sut = new ArgumentReader(inputArgs);\n\n Arguments args = sut.read();\n\n assertThat(args, notNullValue());\n assertThat(args.getProjectPath(), equalTo(projectPath));\n assertThat(args.getResultPath(), equalTo(resultPath));\n assertThat(args.getApkFilePath(), equalTo(apkPath));\n assertThat(args.getFiltersPath(), equalTo(filtersPath));\n }", "public void readArgs(String[] args)\n {\n for (int i = 0; i < args.length; i++)\n {\n open(args[i]);\n }\n setTitle();\n }", "private static void parseCommandLine(String[] args) {\r\n\t\tif (args.length != 3)\r\n\t\t\terror(\"usage: Tester server port url-file\");\r\n\t\t\t\r\n\t\tserverName = args[0];\r\n\t\tserverPort = Integer.parseInt(args[1]);\r\n\t\turlFileName = args[2];\r\n\t}", "public static void main( String[] args )\n {\n CommandLineParser parser = new DefaultParser();\n\n // create the Options\n OptionGroup optgrp = new OptionGroup();\n optgrp.addOption(Option.builder(\"l\")\n .longOpt(\"list\")\n .hasArg().argName(\"keyword\").optionalArg(true)\n .type(String.class)\n .desc(\"List documents scraped for keyword\")\n .build());\n optgrp.addOption( Option.builder(\"r\")\n .longOpt(\"read\")\n .hasArg().argName(\"doc_id\")\n .type(String.class)\n .desc(\"Display a specific scraped document.\")\n .build());\n optgrp.addOption( Option.builder(\"a\")\n .longOpt(\"add\")\n .type(String.class)\n .desc(\"Add keywords to scrape\")\n .build());\n optgrp.addOption( Option.builder(\"s\")\n .longOpt(\"scraper\")\n .type(String.class)\n .desc(\"Start the scraper watcher\")\n .build());\n\n\n\n Options options = new Options();\n options.addOptionGroup(optgrp);\n\n options.addOption( Option.builder(\"n\")\n .longOpt(\"search-name\").hasArg()\n .type(String.class)\n .desc(\"Name of the search task for a set of keywords\")\n .build());\n\n options.addOption( Option.builder(\"k\")\n .longOpt(\"keywords\")\n .type(String.class).hasArgs()\n .desc(\"keywords to scrape. \")\n .build());\n\n options.addOption( Option.builder(\"t\")\n .longOpt(\"scraper-threads\")\n .type(Integer.class).valueSeparator().hasArg()\n .desc(\"Number of scraper threads to use.\")\n .build());\n\n //String[] args2 = new String[]{ \"--add --search-name=\\\"some thing\\\" --keywords=kw1, kw2\" };\n // String[] args2 = new String[]{ \"--add\", \"--search-name\", \"some thing new\", \"--keywords\", \"kw3\", \"kw4\"};\n // String[] args2 = new String[]{ \"--scraper\"};\n// String[] args2 = new String[]{ \"--list\"};\n\n int exitCode = 0;\n CommandLine line;\n try {\n // parse the command line arguments\n line = parser.parse( options, args );\n }\n catch( ParseException exp ) {\n System.out.println( \"Unexpected exception:\" + exp.getMessage() );\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp( \"searchscraper \\n\" +\n \" [--add --search-name=<SearchTask> --keywords=<keyword1> <keyword2> ...]\\n\" +\n \" [--list [<keyword>] ]\\n\" +\n \" [--read <doc_id>]\\n\", options , true);\n System.exit(2);\n return;\n }\n\n if( line.hasOption( \"add\" ) ) {\n // Add Search Task mode\n if(!line.hasOption( \"search-name\" ) || !line.hasOption(\"keywords\")) {\n System.out.println(\"must have search name and keywords when adding\");\n System.exit(2);\n }\n String name = line.getOptionValue( \"search-name\" );\n String[] keywords = line.getOptionValues(\"keywords\");\n System.out.println(\"Got keywords: \" + Arrays.toString(keywords) );\n\n exitCode = add(name, Arrays.asList(keywords));\n\n } else if( line.hasOption( \"list\" ) ) {\n // List Keyword mode\n DataStore ds = new DataStore();\n String keyword = line.getOptionValue( \"list\" );\n System.out.println(\"Listing with keyword = `\" + keyword + \"`\");\n if(keyword == null) {\n List<String > keywords = ds.listKeywords();\n for(String kw : keywords) {\n System.out.println(kw);\n }\n exitCode=0;\n } else {\n List<SearchResult > results = ds.listDocsForKeyword(keyword);\n for(SearchResult kw : results) {\n System.out.println(kw);\n }\n }\n ds.close();\n\n } else if( line.hasOption( \"read\" ) ) {\n // Show a specific document\n String docId = line.getOptionValue( \"read\" );\n if(docId == null) {\n System.err.println(\"read option missing doc_id parameter\");\n exitCode = 2;\n } else {\n\n DataStore ds = new DataStore();\n String result = ds.read(docId);\n\n if (result == null) {\n System.err.println(\"NOT FOUND\");\n exitCode = 1;\n } else {\n System.out.println(result);\n }\n ds.close();\n }\n }\n else if( line.hasOption( \"scraper\" ) ) {\n int numThreads = 1;\n if(line.hasOption( \"scraper-threads\")) {\n String threadString = line.getOptionValue(\"scraper-threads\");\n try {\n numThreads = Integer.parseInt(threadString);\n } catch (NumberFormatException e) {\n System.out.println(\n \"unable to parse number of threads from `\" +\n threadString + \"`\");\n }\n\n }\n // Start scraper mode\n Daemon daemon = new Daemon(numThreads);\n daemon.start();\n } else {\n // generate the help statement\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp( \"searchscraper \\n\" +\n \" [--add --search-name <SearchTask> --keywords <keyword1> <keyword2> ...]\\n\" +\n \" [--list [<keyword>] ]\\n\" +\n \" [--read <doc_id>]\\n\", options , true);\n exitCode = 2;\n }\n\n\n System.exit(exitCode);\n }", "public static void main(String[] args) {\n\t\tfor (int j = 0; j < args.length; j++) {\n\t\t\tSystem.out.println(args[j]);\n\t\t\t\n\t\t}\n\t}", "@Override\n protected String[] getArguments() {\n String[] args = new String[1];\n args[0] = _game_file_name;\n return args;\n }", "public void argumentOrginazer(String[] args){\n\t\tfor(String arg:args) {\n\t\t\t\n\t\t\tif(arg.toLowerCase().contains(\"-s\")) {// The -s argument will make a starters plot\n\t\t\t\tif(!player.isOp()){\n\t\t\t\t\tplayer.sendMessage(\"You need to be op to create a starters plot!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else if( arg.toLowerCase().contains(\"h:\") || arg.toLowerCase().contains(\"height:\")) {\n\t\t\t\t// the h:<number> or height:<number> argument can set a custum height for the given plot\n\t\t\t\tint temp = arg.indexOf(\":\") + 1;\n\t\t\t\theigth = Integer.valueOf((String) arg.subSequence(temp, arg.length()));\n\t\t\t\t\n\t\t\t} else if( arg.toLowerCase().contains(\"d:\") || arg.toLowerCase().contains(\"depth:\")) {\n\t\t\t\t// the d:<number> of depth:<number> will set a custum depth for the plot and also\n\t\t\t\t// places bedrock at the proper places\n\t\t\t\tint temp = arg.indexOf(\":\") + 1;\n\t\t\t\tdepth = Integer.valueOf((String) arg.subSequence(temp, arg.length()));\n\t\t\t\t\n\t\t\t} else if ( arg.toLowerCase().contains(\"n\") || arg.toLowerCase().contains(\"name:\")) {\n\t\t\t\t// The N:<name of plot> or name:<name of plot> will specify the name of the plot that\n\t\t\t\t// is about to be made. The plugin will terminate this action if no name is put in.\n\t\t\t\tint temp = arg.indexOf(\":\") + 1;\n\t\t\t\tname = (String) arg.subSequence(temp, arg.length());\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t// Error catching for yet unknow arguments :P\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"The argument: \" + arg + \"does not exist.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t// Error catching for the 2 posistions the player selected\n\t\tposition1 = PlayerCords.getPlayerCords(player.getName())[0];\n\t\tposition2 = PlayerCords.getPlayerCords(player.getName())[1];\n\t\tif(position1 == null || position2 == null) {\n\t\t\tplayer.sendMessage(\"You did not select 2 points to create the plot from\");\n\t\t\treturn;\n\t\t}\n\t\t//debug\n\t\tplayer.sendMessage(position1.getBlockY() + \" 2nd \" + position2.getBlockY());\n\t\t\n\t\t//You need to give a plot name.\n\t\tif (name == null){\n\t\t\tplayer.sendMessage(ChatColor.RED + \"You forgot to give a plot name\");\n\t\t}\n\t\t\n\t\t// return more propper vectors for the plot creation so the region can be set\n\t\tVector[] temp = CreatePhysicalPlot.getProperVectors(position1, position2, heigth, depth);\n\t\tposition1 = temp[0];\n\t\tposition2 = temp[1];\n\t\t\n\t\t//makes the region and checks if this is legal on the given position and returns null\n\t\t//if an error occures\n\t\tProtectedRegion plotRegion = setRegion();\n\t\t\n\t\tif(plotRegion == null){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//gets the region form the just created plot\n\t\tList<String> regionIds = Arrays.asList(plotRegion.getId());\n\t\t\n\t\t//Searches the region for any city and returns null if it fails\n\t\tCityPlot cityPlot = getCityPlot(plotRegion);\n\t\tif(cityPlot == null){\n\t\t\tplayer.sendMessage(\"You need to be in a city plot to make a residence plot\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Builds the plot in the game world.\n CreatePhysicalPlot.CreatePlot(position1, position2, heigth, depth, player.getWorld(), player);\n // Instantates the plot object for the server to store and work with\n\t\tcreateResidentPlot(name, player.getWorld(), regionIds, cityPlot);\t\t\n\t}", "private static String[] processArgs(String[] args) {\r\n if (args.length == 0) {\r\n args = new String[1];\r\n args[0] = config.getProperty(ConfigParam.inputTrace.name());\r\n System.out.println(\"Args:\"+args[0]);\r\n } else if (args.length > 1) {\r\n System.out.println(\"Usage: [Trace_File]\");\r\n System.out.println(\"Example: ./traces/fdct_trace_without_optimization.txt\");\r\n System.out.println(\"If no arguments are given, the trace file defined in \" +\r\n configFile + \" is used.\");\r\n System.exit(1);\r\n }\r\n\r\n return args;\r\n }", "public static void main(String[] args){\n cmd = args;\r\n init(cmd);\r\n }", "public static void main(String[] args) {\n \targuments = args;\n launch(args);\n }", "protected void parseCommandLineArgs(String[] args) {\r\n // parse username/password;\r\n for(int i = 0; i < args.length; i++) {\r\n if(args[i].equals(\"-u\")) {\r\n username = args[i+1];\r\n }\r\n if(args[i].equals(\"-p\")) {\r\n password = args[i+1];\r\n }\r\n }\r\n \r\n }", "public static void main(String[] argv){\n\t}", "public static void main(String[] args)\n {\n try\n {\n System.out.println(\"Regular expression [\"+args[0]+\"]\");\n NameParser parser = new NameParser();\n StringMatcher matcher = parser.parse(args[0]);\n for (int index = 1; index < args.length; index++)\n {\n String string = args[index];\n System.out.print(\"String [\"+string+\"]\");\n System.out.println(\" -> match = \"+matcher.matches(args[index]));\n }\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n }\n }", "private void cli (String[] args)\n {\n if (args.length != 2) {\n System.out.println(\"Usage: <analyzer> input-file output-file\");\n return;\n }\n dataFilename = args[1];\n super.cli(args[0], this);\n }", "ProgramArgs(String[] args) {\n String errorMessage;\n errorMessage = \"Invalid arguments.\\n\" +\n \"Usage:\\n\\t[Application] --path <file-path-and-name> --k <k-neighbourhood-value> --threads <num-threads>\";\n if (args.length != 6) {\n System.err.println(errorMessage);\n System.exit(-1);\n }\n\n String fileName = \"\";\n int kval = 0;\n int nT = 1;\n for (int i = 0; i < args.length; i++) {\n if (args[i].equals(\"--path\")) {\n fileName = args[i + 1];\n i += 1;\n } else if (args[i].equals(\"--k\")) {\n kval = Integer.parseInt(args[i + 1]);\n i += 1;\n } else if (args[i].equals(\"--threads\")) {\n nT = Integer.parseInt(args[i + 1]);\n i += 1;\n }\n else {\n System.err.println(errorMessage);\n }\n }\n\n this.filePath = fileName;\n this.kValue = kval;\n this.numThreads = nT;\n}", "public static void main(String[] args, String value) {\n }", "private static void parseArgs (String[] args) {\n\t\tint n = args.length;\n\t\tif (n != 4) {\n\t\t\tSystem.out.println(\"Usage: BuildTranslations in dbname username password\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tinPath = args[0];\n\t\tdbname = args[1];\n\t\tusername = args[2];\n\t\tpassword = args[3];\n\t}", "public static void main(String[] args) {\n System.out.println(\"args[0] = \" + args[0]);\n System.out.println(\"args[1] = \" + args[1]);\n System.out.println(\"args[2] = \" + args[2]);\n }", "private static void processArguments(String[] args) throws UnknownHostException {\n //\n // PROD indicates we should use the production network\n // TEST indicates we should use the test network\n //\n if (args[0].equalsIgnoreCase(\"TEST\")) {\n testNetwork = true;\n } else if (!args[0].equalsIgnoreCase(\"PROD\")) {\n throw new IllegalArgumentException(\"Valid options are PROD and TEST\");\n }\n //\n // A bitcoin URI will be specified if we are processing a payment request\n //\n if (args.length > 1) {\n if (args[1].startsWith(\"bitcoin:\"))\n uriString = args[1];\n else\n throw new IllegalArgumentException(\"Unrecognized command line parameter\");\n }\n }", "public static void main(String argv[]) {\n\n\n\n\t}", "public static void main(String[] args) {\n\t\tint i, sum=0;\n\t\t// for loop for iterating throug the command line args\n\t\tfor(i=0; i<args.length; i++)\n\t\t{\n\t\t\t// converting string to integer and adding to running sum\n\t\t\tsum = sum + Integer.parseInt(args[i]);\n\t\t}\n\t\tSystem.out.println(sum);\n\t}", "public void processArgs(final String args[]) throws OptionsException {\n\t\tOptionContainer option = null;\n\t\tint quant = -1;\n\t\tint qcount = 0;\n\t\tboolean moreData = false;\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\tif (option == null) {\n\t\t\t\tif (args[i].charAt(0) != '-')\n\t\t\t\t\tthrow new OptionsException(\"Unexpected value: \" + args[i]);\n\n\t\t\t\t// see what kind of argument we have\n\t\t\t\tif (args[i].length() == 1)\n\t\t\t\t\tthrow new OptionsException(\"Illegal argument: '-'\");\n\n\t\t\t\tif (args[i].charAt(1) == '-') {\n\t\t\t\t\t// we have a long argument\n\t\t\t\t\t// since we don't accept inline values we can take\n\t\t\t\t\t// everything left in the string as argument, unless\n\t\t\t\t\t// there is a = in there...\n\t\t\t\t\tfinal String tmp = args[i].substring(2);\n\t\t\t\t\tfinal int pos = tmp.indexOf('=');\n\t\t\t\t\tif (pos == -1) {\n\t\t\t\t\t\toption = opts.get(tmp);\n\t\t\t\t\t\tmoreData = false;\n\t\t\t\t\t} else {\n\t\t\t\t\t\toption = opts.get(tmp.substring(0, pos));\n\t\t\t\t\t\t// modify the option a bit so the code below\n\t\t\t\t\t\t// handles the moreData correctly\n\t\t\t\t\t\targs[i] = \"-?\" + tmp.substring(pos + 1);\n\t\t\t\t\t\tmoreData = true;\n\t\t\t\t\t}\n\t\t\t\t} else if (args[i].charAt(1) == 'X') {\n\t\t\t\t\t// extra argument, same as long argument\n\t\t\t\t\tfinal String tmp = args[i].substring(1);\n\t\t\t\t\tfinal int pos = tmp.indexOf('=');\n\t\t\t\t\tif (pos == -1) {\n\t\t\t\t\t\toption = opts.get(tmp);\n\t\t\t\t\t\tmoreData = false;\n\t\t\t\t\t} else {\n\t\t\t\t\t\toption = opts.get(tmp.substring(0, pos));\n\t\t\t\t\t\t// modify the option a bit so the code below\n\t\t\t\t\t\t// handles the moreData correctly\n\t\t\t\t\t\targs[i] = \"-?\" + tmp.substring(pos + 1);\n\t\t\t\t\t\tmoreData = true;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// single char argument\n\t\t\t\t\toption = opts.get(\"\" + args[i].charAt(1));\n\t\t\t\t\t// is there more data left in the argument?\n\t\t\t\t\tmoreData = args[i].length() > 2 ? true : false;\n\t\t\t\t}\n\n\t\t\t\tif (option != null) {\n\t\t\t\t\t// make sure we overwrite previously set arguments\n\t\t\t\t\toption.resetArguments();\n\t\t\t\t\tfinal int card = option.getCardinality();\n\t\t\t\t\tif (card == CAR_ONE) {\n\t\t\t\t\t\tif (moreData) {\n\t\t\t\t\t\t\toption.addArgument(args[i].substring(2));\n\t\t\t\t\t\t\toption = null;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tquant = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (card == CAR_ZERO_ONE) {\n\t\t\t\t\t\toption.setPresent();\n\t\t\t\t\t\tqcount = 1;\n\t\t\t\t\t\tquant = 2;\n\t\t\t\t\t\tif (moreData) {\n\t\t\t\t\t\t\toption.addArgument(args[i].substring(2));\n\t\t\t\t\t\t\toption = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (card == CAR_ZERO_MANY) {\n\t\t\t\t\t\toption.setPresent();\n\t\t\t\t\t\tqcount = 1;\n\t\t\t\t\t\tquant = -1;\n\t\t\t\t\t\tif (moreData) {\n\t\t\t\t\t\t\toption.addArgument(args[i].substring(2));\n\t\t\t\t\t\t\tqcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (card == CAR_ZERO) {\n\t\t\t\t\t\toption.setPresent();\n\t\t\t\t\t\toption = null;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthrow new OptionsException(\"Unknown argument: \" + args[i]);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// store the `value'\n\t\t\t\toption.addArgument(args[i]);\n\t\t\t\tif (++qcount == quant) {\n\t\t\t\t\tquant = 0;\n\t\t\t\t\tqcount = 0;\n\t\t\t\t\toption = null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint index = 0 ;\n\t\tint sum =0;\n\t\twhile (index< args.length) {\n\t\t\tsum+=Integer.parseInt(args[index]);\n\t\t\tindex+=1;\n\t\t}\n\t\n\t\tSystem.out.println(sum);\t\t\n\n\t}", "public static void main(final String[] args) {\n\n\t}", "private int handleOptions(String[] args) {\r\n\r\n int status = 0;\r\n\r\n if ((args == null) || (args.length == 0)) { return status; }\r\n\r\n for (int i = 0; i < args.length; i++) {\r\n if (status != 0) { return status; }\r\n\r\n if (args[i].equals(\"-h\")) {\r\n displayUsage();\r\n status = 1;\r\n } else if (args[i].equals(\"-d\") || args[i].equals(\"-discourse\")) {\r\n if (++i < args.length) {\r\n try {\r\n this.discourseId = Long.parseLong(args[i]);\r\n if (discourseId < 0) {\r\n logger.error(\"Invalid discourse id specified: \" + args[i]);\r\n status = -1;\r\n }\r\n } catch (Exception exception) {\r\n logger.error(\"Error while trying to parse discourse id. \"\r\n + \"Please check the parameter for accuracy.\");\r\n throw new IllegalArgumentException(\"Invalid discourse id specified.\");\r\n }\r\n } else {\r\n logger.error(\"A discourse id must be specified with the -discourse argument\");\r\n displayUsage();\r\n status = -1;\r\n }\r\n } else if (args[i].equals(\"-e\") || args[i].equals(\"-email\")) {\r\n setSendEmailFlag(true);\r\n if (++i < args.length) {\r\n setEmailAddress(args[i]);\r\n } else {\r\n logger.error(\"An email address must be specified with this argument\");\r\n displayUsage();\r\n status = -1;\r\n }\r\n } else if (args[i].equals(\"-b\") || args[i].equals(\"-batchSize\")) {\r\n if (++i < args.length) {\r\n try {\r\n this.batchSize = Integer.parseInt(args[i]);\r\n if (batchSize <= 0) {\r\n logger.error(\"The batch size must be greater than zero.\");\r\n displayUsage();\r\n status = -1;\r\n }\r\n } catch (NumberFormatException exception) {\r\n logger.error(\"Error while trying to parse batch size: \" + args[i]);\r\n throw new IllegalArgumentException(\"Invalid batch size specified.\");\r\n }\r\n } else {\r\n logger.error(\"A batch size must be specified with the -batchSize argument\");\r\n displayUsage();\r\n status = -1;\r\n }\r\n } else if (args[i].equals(\"-p\") || args[i].equals(\"-project\")) {\r\n if (++i < args.length) {\r\n try {\r\n this.projectId = Integer.parseInt(args[i]);\r\n if (projectId < 0) {\r\n logger.error(\"Invalid project id specified: \" + args[i]);\r\n status = -1;\r\n }\r\n } catch (Exception exception) {\r\n logger.error(\"Error while trying to parse project id. \"\r\n + \"Please check the parameter for accuracy.\");\r\n throw new IllegalArgumentException(\"Invalid project id specified.\");\r\n }\r\n } else {\r\n logger.error(\"A project id must be specified with the -project argument\");\r\n displayUsage();\r\n status = -1;\r\n }\r\n }\r\n }\r\n\r\n return status;\r\n }", "public static void main(String[] args) {\r\n\t\tfor (int i=0; i<args.length; i++) {\r\n\t\t\tSystem.out.println(args[i]);\r\n\t\t}\r\n\t}", "public void testGetInputArguments() {\n List<String> args = mb.getInputArguments();\n assertNotNull(args);\n for (String string : args) {\n assertNotNull(string);\n assertTrue(string.length() > 0);\n }\n }", "java.lang.String getArgs(int index);", "java.lang.String getArgs(int index);", "java.lang.String getArgs(int index);", "private String[] getArgs()\n {\n return cmd.getArgs();\n }", "public CommandArguments parse(String[] args) {\n ErrorSupport command = new ErrorSupport();\n command.checkLength(args);\n\n //parsing arguments\n CommandArguments arguments = new CommandArguments();\n for (int i = 0; i < args.length; i++) {\n if ((i == args.length - 1) && !args[i].equals(\"--help\")) {\n throw new IllegalArgumentException(\"Incorrect argument, --help for more information about app syntax\");\n }\n switch (args[i]) {\n case (\"--help\"):\n System.out.println(\"\\nHELP MENU \\nAvailable options and arguments: \\n \\t--latitude x \\t-enter latitude coordinate \\n \\t--longitude x\\t-enter longitude coordinate \\n \\t--sensorid x \\t-enter sensor's Id \\n \\t--apikey x \\t\\t-enter API key \\n \\t--history x \\t-enter number of hours to display from history data\\n\");\n System.exit(0);\n case (\"--latitude\"):\n i++;\n arguments.setLatitude(command.checkIsDouble(args[i]));\n break;\n case (\"--longitude\"):\n i++;\n arguments.setLongitude(command.checkIsDouble(args[i]));\n break;\n case (\"--sensorid\"):\n i++;\n arguments.setSensorId(command.checkIsInt(args[i]));\n break;\n case (\"--apikey\"):\n i++;\n arguments.setApiKey(command.checkApiKey(args[i]));\n break;\n case (\"--history\"):\n i++;\n arguments.setHistory(command.checkIsInt(args[i]));\n break;\n default:\n throw new IllegalArgumentException(\"Incorrect option, --help for more information about app syntax\");\n }\n }\n\n //checking environment API_KEY if there was no apikey in command line entered\n if (!arguments.hasApiKey() && System.getenv(\"API_KEY\") == null) {\n throw new IllegalArgumentException(\"No API Key found, check if you have entered the correct key or if there is a suitable environment variable ( API_KEY ), --help for more information about app syntax\");\n } else if (!arguments.hasApiKey()) {\n arguments.setApiKey(command.checkApiKey(System.getenv(\"API_KEY\")));\n }\n return arguments;\n }", "public static void main(String... argv) throws Exception {\n }", "public static void main(String Args[]) {\r\n\t\r\n\t}", "public static void main(String[] ignored) {\n\t\tfinal String[] argv = new String[] {\n\n\t\t\t\t/* short options */\n\t\t\t\t\"-ab\",\n\t\t\t\t\"dd-argument\",\n\t\t\t\t\"-0\",\n\t\t\t\t\"-1\",\n\t\t\t\t\"-2\",\n\n\t\t\t\t/* long options */\n\t\t\t\t\"--add=123\",\n\t\t\t\t\"--append\",\n\t\t\t\t\"--delete-float=3.141952\",\n\t\t\t\t\"--delete-double=3.141952\",\n\t\t\t\t\"--verbose\",\n\t\t\t\t\"--create=789\",\n\t\t\t\t\"-c987\",\n\t\t\t\t\"--file=filename1\",\n\n\t\t\t\t/* non-option arguments */\n\t\t\t\t\"--\",\n\t\t\t\t\"hello\",\n\t\t\t\t\"there\",\n\t\t};\n\n\t\ttry {\n\n\t\t\t/* Two ways to build options, via create() method or using() */\n\t\t\tfinal Options options = new Options.Builder()\n\n\t\t\t\t\t/* Short options */\n\t\t\t\t\t.create(\"a\")\n\t\t\t\t\t.create(\"b\")\n\t\t\t\t\t.create(\"c\", int.class)\n\t\t\t\t\t.create(\"d\", String.class)\n\t\t\t\t\t.create(\"0\")\n\t\t\t\t\t.create(\"1\")\n\t\t\t\t\t.create(\"2\")\n\n\t\t\t\t\t.group('o', suboptions -> suboptions\n\t\t\t\t\t\t\t.create(\"ro\")\n\t\t\t\t\t\t\t.create(\"rw\")\n\t\t\t\t\t\t\t.create(\"name\", String.class))\n\n\t\t\t\t\t/* Long options */\n\t\t\t\t\t.using(Option.of(\"add\", int.class))\n\t\t\t\t\t.using(Option.of(\"append\"))\n\t\t\t\t\t.using(Option.of(\"delete-float\", float.class))\n\t\t\t\t\t.using(Option.of(\"delete-double\", double.class))\n\t\t\t\t\t.using(Option.of(\"verbose\"))\n\t\t\t\t\t.using(Option.of(\"create\", int.class))\n\t\t\t\t\t.using(Option.of(\"file\", String.class))\n\t\t\t\t\t.build();\n\n\t\t\t/* Handler be notified when option is matched */\n\t\t\tfinal Option<Integer> create = options.get(\"create\", int.class);\n\t\t\tcreate.onMatch(n -> System.out.printf(\"Creating new entry %d%n\", n));\n\n\t\t\t/* Setup and parse the command line arguments */\n\t\t\tfinal Args args = Args.of(argv, options);\n\n\t\t\t/* All matched options */\n\t\t\tSystem.out.println(\"-- Example 3:\");\n\t\t\tSystem.out.println(\"Matched options:\");\n\t\t\tfinal List<Option<?>> matched = options.getAllMatched();\n\t\t\tmatched.forEach(System.out::println);\n\n\t\t\t/* Anything that was unmatched by the parser is stored here */\n\t\t\tSystem.out.println(\"Unmatched args:\");\n\t\t\tfinal List<String> unmatched = args.getUnmatchedArgs();\n\t\t\tunmatched.forEach(System.out::println);\n\n\t\t\t/* 2 ways to work with user options: getOption or findMatched */\n\n\t\t\t/*\n\t\t\t * Find methods always return a java Optional. Unmatched option with no command\n\t\t\t * line match, the returned optional will be empty, otherwise the Optional will\n\t\t\t * have the option with the commanline arg/value.\n\t\t\t */\n\t\t\tfinal Optional<Option<Boolean>> a = options.findMatched(\"a\", boolean.class);\n\t\t\ta.ifPresent(opt -> System.out.println(\"Option A is found!\"));\n\n\t\t\t/* Get method will throw unchecked OptionNotFoundException if not found */\n\t\t\tfinal Option<Integer> add = options.get(\"add\", int.class);\n\t\t\tif (add.isMatched()) {\n\t\t\t\tSystem.out.printf(\"add this amount %d%n\", add.getValue());\n\t\t\t}\n\n\t\t} catch (UnrecognizedArgException | InvalidArgException e) {\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t\tSystem.err.printf(\"Usage: %s [-a|-b|-0|-1|-2] [-c arg] [-d arg]%n\", \"Example3\");\n\t\t\tSystem.err.printf(\" \"\n\t\t\t\t\t+ \" [--add element]\"\n\t\t\t\t\t+ \" [--append]\"\n\t\t\t\t\t+ \" [--delete-float arg]\"\n\t\t\t\t\t+ \" [--delete-double arg]\"\n\t\t\t\t\t+ \" [--verbose]\"\n\t\t\t\t\t+ \" [--create arg]\"\n\t\t\t\t\t+ \" [--file arg]\"\n\t\t\t\t\t+ \"%n\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\t/*\n\t\t * Next step: Example 4 - working with beans\n\t\t * \n\t\t * A much easiest way to deal with many options is using the BeanOption API.\n\t\t * Example 4 demostrates its usage.\n\t\t */\n\t}", "private void processArgs(String[] args) throws MalformedURLException, JAXBException, IOException, URISyntaxException, Exception {\n Options options = cli.getOptions(); \n options.addOption(\"collection\", true, \"Data Collection that this Fulfillment request applies to. Defaults to 'default'.\");\n Option idOpt = new Option(\"result_id\", true, \"The result_id being requested.\");\n idOpt.setRequired(true);\n options.addOption(idOpt);\n options.addOption(\"result_part_number\", true, \"The part number being requested. Defaults to '1'.\");\n \n cli.parse(args);\n CommandLine cmd = cli.getCmd();\n\n // Handle default values.\n String collection = cmd.hasOption(\"collection\") ? cmd.getOptionValue(\"collection\") : \"default\";\n int part = cmd.hasOption(\"result_part_number\") ? Integer.parseInt(cmd.getOptionValue(\"result_part_number\")) : 1;\n \n taxiiClient = generateClient(cmd);\n \n // Prepare the message to send.\n PollFulfillment request = factory.createPollFulfillment()\n .withMessageId(MessageHelper.generateMessageId())\n .withCollectionName(collection)\n .withResultId(cmd.getOptionValue(\"result_id\"))\n .withResultPartNumber(BigInteger.valueOf(part)); \n\n doCall(cmd, request);\n \n }", "public static void main(String args[]){\n\t\t\r\n\t}", "protected static List<String> commandArgument(String arg) {\n ImmutableList.Builder<String> result = ImmutableList.builder();\n try {\n // Setup the tokenizer to be more shell like\n StreamTokenizer tokenizer = new StreamTokenizer(new StringReader(arg));\n tokenizer.ordinaryChar('/');\n tokenizer.wordChars('/', '/');\n tokenizer.commentChar('#');\n\n // Spin through the tokenizer to generate the command\n int token = tokenizer.nextToken();\n while (token != StreamTokenizer.TT_EOF) {\n // Eat line breaks\n if (tokenizer.ttype != StreamTokenizer.TT_EOL) {\n result.add(tokenizer.sval);\n }\n token = tokenizer.nextToken();\n }\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n return result.build();\n }", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void main(String args[]) {}", "public static void main(String args[]) {}", "public static void main(String args[]) {}", "public static void main(String[] args){\n\n\t}", "public static void main(String[] args){\n\n\t}", "public static void main(String[] args){\n\n\t}", "uicargs createuicargs();", "public static void main(String[] args) {\n\t\tListDictionary dict = new ListDictionary(\"/usr/share/dict/words\");\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\tString space = \"\";\n\t\t\tif (args[i].matches(\"[2-9]+\")) {\n\t\t\t\tSystem.out.print(args[i] + \": \");\n\t\t\t\tfor (String element : dict.signatureToWords(args[i])) {\n\t\t\t\t\tSystem.out.print(space + element);\n\t\t\t\t\tspace = \" \";\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}\n\t}", "public static void main (String args[]) {\n\t\t\n }", "public void parseArgs(final String[] args) {\n \t\tfinal CmdLineParser parser = new CmdLineParser(this);\n \n \t\ttry {\n \t\t\tparser.parseArgument(args);\n \n \t\t\tif (imageFile == null) {\n \t\t\t\tthrow new CmdLineException(parser, \"No image file given\");\n \t\t\t}\n \t\t\tif (githubUser == null) {\n \t\t\t\tthrow new CmdLineException(parser, \"No GitHub user given\");\n \t\t\t}\n \t\t}\n \t\tcatch (final CmdLineException e) {\n \t\t\tSystem.err.println(e.getMessage());\n \t\t\tSystem.err.println();\n \n \t\t\t// print usage instructions\n \t\t\tSystem.err.println(\"java -jar \" + JAR_NAME +\n \t\t\t\t\" [options...] arguments...\");\n \n \t\t\t// print the list of available options\n \t\t\tparser.printUsage(System.err);\n \t\t\tSystem.err.println();\n \n \t\t\tSystem.exit(1);\n \t\t}\n \t}", "public static void main(String args[]){\n\t\t\n\t}", "public static void main(String[] args){\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\n\t}" ]
[ "0.7164221", "0.6995168", "0.6905958", "0.68427384", "0.68147755", "0.6811895", "0.67952347", "0.67916816", "0.6741965", "0.6741773", "0.6703124", "0.6640674", "0.6619449", "0.66150415", "0.66060877", "0.65992355", "0.6591141", "0.6589381", "0.6581464", "0.6574403", "0.6541676", "0.65129083", "0.64789665", "0.64646816", "0.64627135", "0.6451089", "0.6436143", "0.6435381", "0.6432972", "0.6407113", "0.6389661", "0.63853455", "0.6382124", "0.6365491", "0.63491136", "0.6338287", "0.63328665", "0.6332268", "0.63283694", "0.6316554", "0.6311291", "0.6310696", "0.6302396", "0.6296353", "0.629073", "0.6290694", "0.6268195", "0.62658775", "0.6263858", "0.62599695", "0.62558454", "0.6232276", "0.6231852", "0.6231326", "0.62194496", "0.62185204", "0.6213504", "0.6208029", "0.6203991", "0.6189766", "0.61857074", "0.61697835", "0.616846", "0.61674505", "0.6165795", "0.6164566", "0.61495596", "0.6148718", "0.6141366", "0.61346126", "0.6131794", "0.6120341", "0.610187", "0.60959244", "0.60952693", "0.60923386", "0.60918546", "0.60918546", "0.60918546", "0.6082935", "0.6079863", "0.60720867", "0.60696673", "0.60576177", "0.605608", "0.60448986", "0.60420287", "0.6034243", "0.6027668", "0.6027668", "0.6027668", "0.60204303", "0.60204303", "0.60204303", "0.6019754", "0.6016381", "0.60158956", "0.60103124", "0.60096484", "0.6006914", "0.60050714" ]
0.0
-1
(where blocks[i][j] = block in row i, column j)
public int dimension() // board dimension n { return dim; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean equalTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition);", "private boolean isInBlock(int number, int row, int col) {\n\t\trow = row - (row % 3);\n\t\tcol = col - (col % 3);\n\n\t\tfor (int i = row; i < row + 3; i++) {\n\t\t\tfor (int j = col; j < col + 3; j++) {\n\t\t\t\tif (getNumber(i, j) == number) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean blockCheck(int r, int c, int n)\r\n {\r\n int row = (r/3)*3, col = (c/3)*3; //The corner position of the block where (r,c) is\r\n for(int i = row; i < row+3; i++)\r\n for(int j = col; j < col+3; j++)\r\n if(game[i][j] == n)\r\n return false;\r\n return true;\r\n }", "public static boolean block(int p_block_0_, int p_block_1_, MatchBlock[] p_block_2_) {\n/* 33 */ if (p_block_2_ == null)\n/* */ {\n/* 35 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 39 */ for (int i = 0; i < p_block_2_.length; i++) {\n/* */ \n/* 41 */ MatchBlock matchblock = p_block_2_[i];\n/* */ \n/* 43 */ if (matchblock.matches(p_block_0_, p_block_1_))\n/* */ {\n/* 45 */ return true;\n/* */ }\n/* */ } \n/* */ \n/* 49 */ return false;\n/* */ }", "boolean contains(@NotNull BlockData block);", "public abstract int neighboursInBlock(Set<Integer> block, int vertexIndex);", "public static boolean blockId(int p_blockId_0_, MatchBlock[] p_blockId_1_) {\n/* 55 */ if (p_blockId_1_ == null)\n/* */ {\n/* 57 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 61 */ for (int i = 0; i < p_blockId_1_.length; i++) {\n/* */ \n/* 63 */ MatchBlock matchblock = p_blockId_1_[i];\n/* */ \n/* 65 */ if (matchblock.getBlockId() == p_blockId_0_)\n/* */ {\n/* 67 */ return true;\n/* */ }\n/* */ } \n/* */ \n/* 71 */ return false;\n/* */ }", "public static void blockCells(int [][] board, int row, int column){\n\t\tfor (int k=0; k<8; k++) //rows+columns\n\t\t{\n\t\t\t//if (k != row && k != column) \n\t\t\t{\n\t\t\t\tboard [row][k] = 1;\n\t\t\t\tboard [k][column] = 1;\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor (int m=1; m<(8-row)&&m<(8-column); m++) //diagonal\n\t\t{\n\t\t\tboard [row+m][column+m] = 1;\n\t\t}\n\t\tfor (int m=1; m<=row&&m<=column; m++) //diagonal again\n\t\t{\n\t\t\tboard [row-m][column-m] = 1;\n\t\t}\n\t\tfor (int m=1; m<(8-row)&&m<=column; m++) //diagonal again\n\t\t{\n\t\t\tboard [row+m][column-m] = 1;\n\t\t}\n\t\tfor (int m=1; m<=row&&m<(8-column); m++) //diagonal yet again\n\t\t{\n\t\t\tboard [row-m][column+m] = 1;\n\t\t}\n\t\t\tboard [row][column] = 2;\n\t}", "public LinkedList<Point> getAllBlock(Block block) {\n\t\tLinkedList<Point> list = new LinkedList<>();\n\n\t\tfor (int y = 0; y < height; y++)\n\t\t\tfor (int x = 0; x < width; x++)\n\t\t\t\tif (maze[x][y] == block) list.add(new Point(x, y));\n\n\t\treturn list;\n\t}", "public boolean blocks(Cell source, Cell destination) {\n\t\tif (source.getColumn() == destination.getColumn() && column == source.getColumn()) {\n\t\t\tint minRow = Math.min(source.getRow(), destination.getRow());\n\t\t\tint maxRow = Math.max(source.getRow(), destination.getRow());\n\t\t\treturn minRow < row && row < maxRow;\n\t\t} else if (source.getRow() == destination.getRow() && row == source.getRow()) {\n\t\t\tint minColumn = Math.min(source.getColumn(), destination.getColumn());\n\t\t\tint maxColumn = Math.max(source.getColumn(), destination.getColumn());\n\t\t\treturn minColumn < column && column < maxColumn;\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasBlock(int row, int col) {\n\t\tif(blockMatrix[row][col]) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false; // if block is not filled\n\t}", "public BlockMatrix (org.apache.spark.rdd.RDD<scala.Tuple2<scala.Tuple2<java.lang.Object, java.lang.Object>, org.apache.spark.mllib.linalg.Matrix>> blocks, int rowsPerBlock, int colsPerBlock) { throw new RuntimeException(); }", "boolean UsedInBox(int grid[][], int boxStartRow, int boxStartCol, int num)\n{\n for (int row = 0; row < 3; row++)\n for (int col = 0; col < 3; col++)\n if (grid[row+boxStartRow][col+boxStartCol] == num)\n return true;\n return false;\n}", "boolean UsedInRow(int grid[][], int row, int num)\n{\n for (int col = 0; col < N; col++)\n if (grid[row][col] == num)\n return true;\n return false;\n}", "public boolean containsBlock(int x, int y, int z, Region chunkRegion) {\n return regionFunction.apply(x, y, z, chunkRegion);\n }", "private boolean isInRow(int i, int row) {\n for (int c = 0; c < numbers[row].length; c++) {\n if(i == numbers[row][c]) {\n return true;\n }\n }\n return false;\n }", "static boolean ifSafe(int[] placement, int row) {\n\t\tfor(int j = 0; j < row; j++) {\n\t\t\tif(placement[j] == placement[row]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tint columnDiff = placement[row] - placement[j];\n\t\t\tint rowDiff = row - j;\n\t\t\tif(columnDiff == rowDiff) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\t\n\t}", "public boolean[][] getBlockMatrix() {\n\t\treturn blockMatrix; \n\t}", "protected Set locateBlock(final String blockName) {\n Set matches = new java.util.HashSet();\n for (Iterator it = blocks.keySet().iterator(); it.hasNext(); ) {\n Object b = it.next();\n if (b.toString().endsWith('.' + blockName)) {\n matches.add(b);\n }\n }\n return matches;\n }", "boolean UsedInCol(int grid[][], int col, int num)\n{\n for (int row = 0; row < N; row++)\n if (grid[row][col] == num)\n return true;\n return false;\n}", "public boolean contains(Block block) {\n return contains(block.getLocation());\n }", "public void printBlock(){\n System.out.println();\n for(int i = 0; i < block.length; i++){\n System.out.println();\n for(int j = 0; j < block.length; j++){\n if(block[i][j] == false) {\n System.out.print(\"o\");\n }else{\n System.out.print(\"x\");\n }\n }\n }\n }", "public Board(int[][] blocks) {\n N = blocks.length;\n matrix = new int[N][N];\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n matrix[i][j] = blocks[i][j];\n if (matrix[i][j] == 0) {\n posX = i;\n posY = j;\n }\n }\n }\n }", "public boolean blockBelongsToShip(Block block, Block[] blocks) {\n\t\tif (blocks == null)\n\t\t\tblocks = this.blocks.clone();\n\t\tfor (int i = 0; i < blocks.length; i++)\n\t\t\tif (blocks[i].equals(block))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean isInGroup(Object cell) {\r\n \t\tObject[] celgru = null;\r\n \t\tObject[] celless = null;\r\n \r\n \t\tcells = graph.getDescendants(graph.getRoots());\r\n \t\tif (cells.length > 0) {\r\n \t\t\tfor (Object cell2 : cells) {\r\n \t\t\t\tif (cell2 instanceof BlockingRegion) {\r\n \t\t\t\t\tcelgru = new Object[1];\r\n \t\t\t\t\tcelgru[0] = cell2;\r\n \t\t\t\t\t// celle presenti nel blocking region incluse port e regione\r\n \r\n \t\t\t\t\tcelless = graph.getDescendants(celgru);\r\n \t\t\t\t\tfor (Object celles : celless) {\r\n \t\t\t\t\t\tif (celles.equals(cell)) {\r\n \t\t\t\t\t\t\treturn true;\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}\r\n \t\treturn false;\r\n \t}", "public boolean containsBlock(int block){\n for(int i=0;i<localCache.length;i++){\n if(localCache[i].isOccupied && localCache[i].blockID==block)// checks if the block is not occupied and chesks if the block is present in the local cache of the processor\n return true;\n }\n \n return false;\n }", "private void markRowsAndCols(int row){\n if(row < 0)\n return;\n\n markedRows[row] = true;\n for (int j = 0; j < cols; j++)\n if(j != chosenInRow[row] && source[row][j] == 0) {\n markedCols[j] = true;\n markRowsAndCols(chosenInCol[j]);\n }\n }", "void scanblocks() {\n\t\tint oldline, newline;\n\t\tint oldfront = 0; // line# of front of a block in old, or 0\n\t\tint newlast = -1; // newline's value during prev. iteration\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++)\n\t\t\tblocklen[oldline] = 0;\n\t\tblocklen[oldinfo.maxLine + 1] = UNREAL; // starts a mythical blk\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++) {\n\t\t\tnewline = oldinfo.other[oldline];\n\t\t\tif (newline < 0)\n\t\t\t\toldfront = 0; /* no match: not in block */\n\t\t\telse { /* match. */\n\t\t\t\tif (oldfront == 0)\n\t\t\t\t\toldfront = oldline;\n\t\t\t\tif (newline != (newlast + 1))\n\t\t\t\t\toldfront = oldline;\n\t\t\t\t++blocklen[oldfront];\n\t\t\t}\n\t\t\tnewlast = newline;\n\t\t}\n\t}", "public void createBlock(int iOffset, int jOffset, int[][] mat1, int[][] mat2, int[][] mat3){\n int jstart = jOffset;\n xmin[0] = 999;\n xmin[1] = 999;\n xmin[2] = 999;\n // row 1\n p.get(0).setI(iOffset); //col 1\n p.get(0).setJ(jOffset);\n p.get(0).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n jOffset++;\n p.get(1).setI(iOffset); //col 2\n p.get(1).setJ(jOffset);\n p.get(1).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n jOffset++;\n p.get(2).setI(iOffset); // col 3\n p.get(2).setJ(jOffset);\n p.get(2).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n \n // row 2\n jOffset = jstart;\n iOffset++;\n p.get(3).setI(iOffset);\n p.get(3).setJ(jOffset);\n p.get(3).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n jOffset++;\n p.get(4).setI(iOffset);\n p.get(4).setJ(jOffset);\n p.get(4).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n jOffset++;\n p.get(5).setI(iOffset);\n p.get(5).setJ(jOffset);\n p.get(5).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n \n //row 3\n jOffset = jstart;\n iOffset++;\n p.get(6).setI(iOffset);\n p.get(6).setJ(jOffset);\n p.get(6).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n jOffset++;\n p.get(7).setI(iOffset);\n p.get(7).setJ(jOffset);\n p.get(7).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n jOffset++;\n p.get(8).setI(iOffset);\n p.get(8).setJ(jOffset);\n p.get(8).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n }", "@Test\n public void isOccupiedAndGetBlockReturnTheSameAnswer() {\n Tetromino tetromino = Tetromino.Z;\n Direction direction = Direction.DOWN;\n\n for (int y = 0; y < tetromino.height; y++) {\n for (int x = 0; x < tetromino.width; x++) {\n String coordinates = String.format(\"Tetromino Z[DOWN] block (x,y) = (%d,%d)\", x, y);\n\n boolean isOccupied = tetromino.isOccupied(direction, x, y);\n Block block = tetromino.getBlock(direction, x, y);\n\n assertEquals(coordinates, isOccupied, (block != null));\n }\n }\n }", "public BBlock getBlockAtXY(int x, int y) {\n for (BBlock block : this) {\n if ((x >= block.getX() && x <= block.getX() + block.getWith()) &&\n (y >= block.getY() && y <= block.getY() + block.getHeight())) {\n return block;\n }\n }\n return null;\n }", "private void reMark(int row, int col){\n for(int i = 0; i < sizeOfBoard; ++i){\n int rowOfOtherCol = rowUsedByColNumber[i] - 1;\n if(rowOfOtherCol != -1){//Is there a queen in this row?\n int colOffSet = Math.abs(rowOfOtherCol - row);\n int rowOffSet = col - i;\n \n if(col + colOffSet < sizeOfBoard){\n openPositions[rowOfOtherCol][col + colOffSet] = true;//Mark the one open square in the row of other queen.\n }\n if(i+ colOffSet < sizeOfBoard){\n openPositions[row][i + colOffSet] = true;//Mark the diagonal of the other queen at can attack in the row that the removed queen was in.\n }\n //remake were a queen and the queen removed could both attack in the diagonal direction.\n int colD = (i + col + row - rowOfOtherCol) / 2;//First intersection point.\n int rowD = (col - i + row + rowOfOtherCol) / 2;//First intersection point.\n \n if(colD >= 0 && colD < sizeOfBoard && rowD >= 0 && rowD < sizeOfBoard){//Does that point lie in the board?\n if( colD*2 == i + col + row - rowOfOtherCol && rowD*2 == col - i + row + rowOfOtherCol && colD >col){//Is the point a lattice point?\n openPositions[rowD][colD] = true;\n }\n }\n \n colD = (i + col - row + rowOfOtherCol) / 2;//Second intersection point.\n rowD = (i - col +row + rowOfOtherCol) / 2;//Second intersection point.\n if(colD >= 0 && colD < sizeOfBoard && rowD >= 0 && rowD < sizeOfBoard){\n if(colD*2 == i + col - row + rowOfOtherCol && rowD*2 == i - col +row + rowOfOtherCol && colD > col ){//Is the point a lattice point?\n openPositions[rowD][colD] = true;\n }\n }\n }\n }\n }", "public boolean percolates() {\n for (int i = 0; i < size; i++) {\r\n if (flowGrid[size * (size - 1) + i] < size) { // if any of the bottom row points at any of the index in the top row\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public Block getBlock(int x, int y){\n\t\tIterator iterator = blocks.iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\tBlock b = (Block) iterator.next();\n\t\t\tif ((b.getX()==x)&&(b.getY()==y)) {\n\t\t\t\treturn b;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private void generate () {\n\t\t\n\t\tArrayList<Integer[]> copyToCheck = new ArrayList<Integer[]> ();\n\t\tfor (int i = 0; i < Math.pow(size, 3); i++) { // Filling up the maze with blocks\n\t\t\tint x, y, z;\n\t\t\tx = i / (size * size); // Get the x, y, and z\n\t\t\ty = i % (size * size) / size;\n\t\t\tz = i % (size * size) % size;\n\t\t\t// spaces each block out by 1\n\t\t\tif (x%2 == 1 && y%2 == 1 && z%2 == 1) {\n\t\t\t\tmaze.add(new Block (x, y, z, ' ')); // 'w' means wall\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tmaze.add(new Block (x, y, z, 'w'));\n\t\t\t\tif (x > 0 && y > 0 && z > 0 && x < size-1 && y < size-1 && z < size-1) { // if the blocks are within the outer shell, add the blocks to the list of walls to check\n\t\t\t\t\tif (x%2+y%2+z%2 == 2)copyToCheck.add(new Integer[] {x, y, z});\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if (x > 0 && y > 0 && z > 0 && x < size-1 && y < size-1 && z < size-1) { // checks if the coordinates are within the smaller cube that is below the first layer.\n\t\t\t\t//copyToCheck.add(new Integer[] { x, y, z });\t// the Block coords left to check\n\t\t\t//}\n\t\t}\n\t\t\n\t\tint starty, startx, startz; // x, y and z of current block\n\t\tstartz = 0; // the starting block will be at z = 0 because that is the bottom-most layer\n\n\t\tstartx = ((int)(Math.random() * (size/2)))*2 + 1; \n\t\tstarty = ((int)(Math.random() * (size/2)))*2 + 1;\n\t\tstart = get(startx, starty, startz);\n\t\t\n\t\tint endx, endy, endz; // x, y and z of end block\n\t\tendx = ((int)(Math.random() * (size/2)))*2 + 1; \n\t\tendy = ((int)(Math.random() * (size/2)))*2 + 1;\n\t\tendz = size-1;\n\t\tend = get(endx, endy, endz);\n\t\t\n\t\tArrayList<Integer[]> toCheck;\n\t\tboolean removed = true;\n\t\twhile (removed) {\n\t\t\tremoved = false;\n\t\t\ttoCheck = new ArrayList<Integer[]> ();\n\t\t\tfor (Integer[] thing : copyToCheck) {\n\t\t\t\ttoCheck.add(thing);\n\t\t\t}\n\t\t\tCollections.shuffle(toCheck); // Randomizes the order of the list of coordinates to check.\n\t\t\tfor (Integer[] coords : toCheck) {\n\t\t\t\tBlock curr = get(coords[0], coords[1], coords[2]);\n\t\t\t\tArrayList<Block> neighbors = getAdj(curr);\n\t\t\t\tboolean isJoint = false;\n\t\t\t\t\tfor (int i = 0; i < neighbors.size() - 1 && !isJoint; i++) {\n\t\t\t\t\t\tfor (int j = i+1; j < neighbors.size(); j++) {\n\t\t\t\t\t\t\tif (neighbors.get(j).t == ' ')\n\t\t\t\t\t\t\t\tif (neighbors.get(i).tree == neighbors.get(j).tree) {\n\t\t\t\t\t\t\t\t\tisJoint = true;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (isJoint) { // Even if it doesn't matter too much, don't want to spend a bunch of time iterating through the stuff unless I have too.\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 (!isJoint) {\n\t\t\t\t\t\tremoved = true;\n\t\t\t\t\t\tcopyToCheck.remove(coords);\n\t\t\t\t\t\tjoin(curr); // Joins all of the sets, changes the type of the block.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\tArrayList<Block> t = new ArrayList<Block>();\n\t\tfor (int i = 0; i < 5*size; i++) {\n\t\t\tArrayList<Block> b = getWalls();\n\t\t\t\n\t\t\tint rand = (int)(Math.random()*b.size());\n\t\t\tint x = b.get(rand).x;\n\t\t\tint y = b.get(rand).y;\n\t\t\tint z = b.get(rand).z;\n\t\t\tset(x, y, z, new Trap (x, y, z));\n\t\t}\n\t\tstart.t = ' '; // sets the type of the start and end blocks\n\t\tend.t = 'e';\n\t}", "boolean isCellAlive(int x, int y);", "private static boolean isCellAlive(int[][] coordinates, int row, int column) {\n\t\tboolean cellAlive = coordinates[row][column] == 1;\r\n\t\tint numberOfNeighbours = 0;\r\n\t\t//check one to the right of col\r\n\t\tif (coordinates[row].length > column + 1) {\r\n\t\t\tif (coordinates[row][column + 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one to the left of col\r\n\t\tif (coordinates[row].length > column - 1 && column - 1 >= 0) {\r\n\t\t\tif (coordinates[row][column - 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one above col\r\n\t\tif (coordinates.length > row - 1 && row - 1 >= 0) {\r\n\t\t\tif (coordinates[row - 1][column] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one below col\r\n\t\tif (coordinates.length > row + 1) {\r\n\t\t\tif (coordinates[row + 1][column] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one top left diagonal to col\r\n\t\tif (coordinates.length > row - 1 && coordinates[row].length > column - 1 && row - 1 >= 0 && column - 1 >= 0) {\r\n\t\t\tif (coordinates[row - 1][column - 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one top right diagonal to col\r\n\t\tif (coordinates.length > row - 1 && coordinates[row].length > column + 1 && row - 1 >= 0) {\r\n\t\t\tif (coordinates[row - 1][column + 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one bottom left diagonal to col\r\n\t\tif (coordinates.length > row + 1 && coordinates[row].length > column - 1 && column - 1 >= 0) {\r\n\t\t\tif (coordinates[row + 1][column - 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check one bottom right diagonal to col\r\n\t\tif (coordinates.length > row + 1 && coordinates[row].length > column + 1) {\r\n\t\t\tif (coordinates[row + 1][column + 1] == 1) {\r\n\t\t\t\tnumberOfNeighbours++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t System.out.println(\"Number of neighbours for \" + row + \", \" + column\r\n\t\t + \" was \" + numberOfNeighbours);\r\n\t\t//if the number of neighbours was 2 or 3, the cell is alive\r\n\t\tif ((numberOfNeighbours == 2) && cellAlive) {\r\n\t\t\treturn true;\r\n\t\t} else if (numberOfNeighbours == 3) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean isInBox( int row, int col ){\n\t\t\n\t\t/*Go through all the elements in the box including the prosepective\n\t\t * number and return true if any element except the prospective\n\t\t * number is equivalent*/\n\t\tfor( int x = col/3*3; x < (col/3+1)*3; x++)\n\t\t\tfor( int y = row/3*3; y < (row/3+1)*3; y++)\n\t\t\t\t{\n\t\t\t\t\tif( puzzle[row][col] == puzzle[y][x] &&\n\t\t\t\t\t\t(row!=y || col!=x)) \n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t//If not found, return false\n\t\treturn false;\n\t}", "private boolean isInSquare(int k, int row, int col) {\n int[][] square = getSquare(row,col);\n return isInSquare(k,square);\n }", "public int[][] getBlock(int b){\n\t\tint[][] block = new int[size][size];\n\t\tfor (int i = 0; i < size; i++){\n\t\t\tfor (int j = 0; j < size; j++){\n\t\t\t\tblock[i][j] = numbers[i+size*(b/size)]\n\t\t\t\t\t\t [j+size*(b%size)];\n\t\t\t}\n\t\t}\n\t\treturn block;\n\t}", "public Board(int[][] blocks) {\r\n\t\tif (blocks == null || blocks.length == 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"argument cannot be null or empty\");\r\n\t\t}\r\n\t\tint n = blocks.length;\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\tif (blocks[i].length != n) {\r\n\t\t\t\tthrow new IllegalArgumentException(\"argument must be square\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!(n >= 2 && n < 128)) {\r\n\t\t\tthrow new IllegalArgumentException(\"n must be between 2 and 127\");\r\n\t\t}\r\n\t\tint[] tmp = new int[n * n];\r\n\t\tfor (int i = 0; i < tmp.length; i++) {\r\n\t\t\ttmp[i] = -1;\r\n\t\t}\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\tfor (int j = 0; j < n; j++) {\r\n\t\t\t\tif (blocks[i][j] < tmp.length) {\r\n\t\t\t\t\ttmp[blocks[i][j]] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tOptionalInt findFirst = Arrays.stream(tmp).filter(x -> x == -1).findFirst();\r\n\t\tif (findFirst.isPresent()) {\r\n\t\t\tthrow new IllegalArgumentException(\"argument is not consecutive numbers\");\r\n\t\t}\r\n\t\tthis.blocks = new int[n][n];\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\tfor (int j = 0; j < n; j++) {\r\n\t\t\t\tthis.blocks[i][j] = blocks[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static int calculateBlocks(int[][] matrix) throws IOException {\n int blockNumber = 0;\n for (int i = 0; i < x; i++) {\n for (int j = 0; j < y; j++) {\n if (matrix[i][j] > 0) {\n if (isStartBlock(i, j, matrix, true)) {\n blockNumber++;\n matrix[i][j] = blockNumber;\n }\n }\n }\n }\n return blockNumber;\n }", "private boolean complementsBlockBuffer(Block b) {\n for (Block i : blockBuffer) {\n if (b.prevHash.equals(i.hash)) {\n return true;\n }\n }\n return false;\n }", "public SBlock() {\n // todo\n cells = new boolean[rows][columns];\n cells[0][0] = false;\n cells[0][1] = true;\n cells[0][2] = true;\n cells[1][0] = true;\n cells[1][1] = true;\n cells[1][2] = false;\n cells[2][0] = false;\n cells[2][1] = false;\n cells[2][2] = false;\n }", "private boolean valid (int row, int column) {\n\n boolean result = false;\n \n // check if cell is in the bounds of the matrix\n if (row >= 0 && row < grid.length &&\n column >= 0 && column < grid[0].length)\n\n // check if cell is not blocked and not previously tried\n if (grid[row][column] == 1)\n result = true;\n\n return result;\n\n }", "private boolean isInSquare(int k, int[][] square) {\n for (int r = 0; r < square.length; r++) {\n for (int c = 0; c < square[r].length; c++) {\n if (square[r][c] == k) return true;\n }\n }\n return false;\n }", "boolean checkCreatureInAdjacentCells(CreatureType creatureType);", "private boolean isInBox(int row, int col, int value) {\n int r = row - row % 3;\n int c = col - col % 3;\n\n for (int i = r; i < r + 3; i++){\n for (int j = c; j < c + 3; j++){\n if (board[i][j] == value) return true;\n }\n }\n return false;\n }", "public boolean isBlockSolved(Block block) {\n ArrayList<Integer> numbers = new ArrayList<Integer>();\n for (int i = 1; i < 10; i++) {\n numbers.add(i);\n }\n\n for (int i = 0; i < 9; i++) {\n \t\tif(block.getUserNum(i).size() != 1 && block.getNum(i) < 0) {\n \t\t\treturn false;\n \t\t}\n \t\tif (block.getNum(i) < 0) {\n\t \t\tif (numbers.indexOf(block.getUserNum(i).get(0)) < 0) {\n\t \t\t\treturn false;\n\t \t\t}else {\n\t \t\t\tnumbers.remove(block.getUserNum(i).get(0));\n\t \t\t}\n \t\t}else {\n \t\t\tif (numbers.indexOf(block.getNum(i)) < 0) {\n\t \t\t\treturn false;\n\t \t\t}else {\n\t \t\t\tnumbers.remove((Integer)block.getNum(i));\n\t \t\t}\n \t\t}\n }\n\n if (!numbers.isEmpty()) {\n return false;\n }\n\n return true;\n }", "public int[][] getIntBlock(){\n\t\tint[][] intBlock = new int[8][8];\n\t\tint ones = 0xffffffff;\n\t\tint zeros = 0x00000000;\n\t\tint bitmask = 1 << bit;\n\t\tswitch(channel){\n\t\t\tcase RED:\n\t\t\t\tbitmask = bitmask << 16;\n\t\t\t\tbreak;\n\t\t\tcase GREEN:\n\t\t\t\tbitmask = bitmask << 8;\n\t\t\t\tbreak;\n\t\t\tcase BLUE:\n\t\t\t\tbitmask = bitmask << 0;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbitmask = bitmask << 0;\n\t\t\t\tbreak;\n\t\t}\n\n\t\t//TODO verify this is good\n\t\tfor(int i = 0; i < 8; i++){\n\t\t\tfor(int j = 0; j < 8; j++){\n\t\t\t\tif((block[i] >> j) % 2 == 0){\n\t\t\t\t\tintBlock[i][j] = bitmask & zeros;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tintBlock[i][j] = bitmask & ones;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn intBlock;\n\t}", "public boolean isMine(int x, int y);", "int getBlockNumber(int x, int y);", "private boolean isInRow(int row, int value) {\n for(int i = 0; i < size; i++){\n if (board[row][i] == value) return true;\n }\n return false;\n }", "private int findCursorBlock(List<BlockLine> blocks) {\n int line = mCursor.getLeftLine();\n int min = binarySearchEndBlock(line,blocks);\n int max = blocks.size() - 1;\n int minDis = Integer.MAX_VALUE;\n int found = -1;\n int jCount = 0;\n int maxCount = Integer.MAX_VALUE;\n if(mSpanner != null) {\n TextColorProvider.TextColors colors = mSpanner.getColors();\n if(colors != null) {\n maxCount = colors.getSuppressSwitch();\n }\n }\n for(int i = min;i <= max;i++) {\n BlockLine block = blocks.get(i);\n if(block.endLine >= line && block.startLine <= line) {\n int dis = block.endLine - block.startLine;\n if(dis < minDis) {\n minDis = dis;\n found = i;\n }\n }else if(minDis != Integer.MAX_VALUE) {\n jCount++;\n if(jCount >= maxCount) {\n break;\n }\n }\n }\n return found;\n }", "private Block getBlockAt(int x, int y, int z) {\n\t\ttry {\n\t\t\tbyte blockId = blockIDArray[x][y][z];\n\t\t\treturn new Block(x, y, z, BlockType.fromID(blockId), this);\n\t\t} catch(IndexOutOfBoundsException e) { return new Block(x, y, z, BlockType.AIR, this); }\n\t}", "private boolean isSubsetOf(int firstRow, int secondRow) {\n for (int i = 0; i < universalSetSize; i++) {\n if (input[firstRow][i] && !input[secondRow][i]) {\n return false;\n }\n }\n return true;\n }", "private ArrayList<Integer> coverSatisfiedRows(boolean[] ecmCoveredRows, int rowIndex) \n {\n ArrayList<Integer> coveredRows = new ArrayList<>();\n int solR = matrixRowToGridRow(rowIndex);\n int solC = matrixRowToGridCol(rowIndex);\n int solV = matrixRowToGridVal(rowIndex);\n int r, c, v;\n\n for(int mRow = 0; mRow < dimCubed; mRow++)\n {\n //Get the current grid row, column and value for the current matrix row\n r = matrixRowToGridRow(mRow);\n c = matrixRowToGridCol(mRow);\n v = matrixRowToGridVal(mRow);\n\n if(!ecmCoveredRows[mRow])\n {\n if(r == solR && c == solC) //rows denote same cell\n {\n ecmCoveredRows[mRow] = true;\n coveredRows.add(mRow);\n }\n else if(r == solR && v == solV) //rows denote same value in same row\n {\n ecmCoveredRows[mRow] = true;\n coveredRows.add(mRow);\n }\n else if(c == solC && v == solV) //rows denote same value in same column\n {\n ecmCoveredRows[mRow] = true;\n coveredRows.add(mRow);\n }\n else if(getBox(r, c) == getBox(solR, solC) && v == solV) //rows denote same value in same box\n {\n ecmCoveredRows[mRow] = true;\n coveredRows.add(mRow);\n }\n }\n }\n return coveredRows;\n }", "public boolean equal(int row, int col){ \n return this.row == row && this.col == col;\n }", "private boolean isInColumn(int i, int col) {\n for (int r = 0; r < numbers.length; r++) {\n if(i == numbers[r][col]) {\n return true;\n }\n }\n return false;\n }", "public Board(int[][] blocks) {\n this.blocks = new int[blocks.length][blocks[0].length];\n for (int row = 0; row < blocks.length; row++) {\n for (int column = 0; column < blocks[0].length; column++) {\n this.blocks[row][column] = blocks[row][column];\n }\n } \n }", "public boolean verificaLinhaEColuna(int x, int y){\n for(int i = 0; i < 9; i++){\n if(matriz[x][y] == matriz[x][i] && y!=i){\n return false;\n }\n }\n\n for (int j = 0; j < 9; j++){\n if(matriz[x][y] == matriz[j][y] && x!=j){\n return false;\n }\n }\n\n return true;\n }", "public int indexOf(MemoryBlock block) {\n\t\tfor (int i = 1; i < size - 1; i++){\n\t\t\tif ( block.equals( getBlock( i ) ) )\n\t\t\t\treturn i;\n\t\t}\n \treturn (-1);\n\t}", "boolean contains(int vertex);", "private void checkVertical() {\n\n for(int i = 0; i < 2; i++){ // winning column can be either 0-1-2-(3) or (0)-1-2-3\n for (int j = 0; j < stateArray[3].length; j++) {\n\n if (check3Vertical(i, j)) {\n maskResultArray[stateArray[i][j]] = 1;\n maskArray[i][j] = 1;\n maskArray[i+1][j] = 1;\n maskArray[i+2][j] = 1;\n }\n\n }\n }\n\n }", "@Nullable\n\tprivate static BlockNode searchBottomBlock(MethodNode mth, List<BlockNode> blocks) {\n\t\tBlockNode bottom = BlockUtils.getBottomBlock(blocks);\n\t\tif (bottom != null) {\n\t\t\treturn bottom;\n\t\t}\n\t\t// not found -> blocks don't have same dominator\n\t\t// try to search common cross block outside input set\n\t\t// NOTE: bottom block not needed for exit nodes (no data flow from them)\n\t\tBlockNode pathCross = BlockUtils.getPathCross(mth, blocks);\n\t\tif (pathCross == null) {\n\t\t\treturn null;\n\t\t}\n\t\tList<BlockNode> preds = new ArrayList<>(pathCross.getPredecessors());\n\t\tpreds.removeAll(blocks);\n\t\tList<BlockNode> outsidePredecessors = preds.stream()\n\t\t\t\t.filter(p -> !BlockUtils.atLeastOnePathExists(blocks, p))\n\t\t\t\t.collect(Collectors.toList());\n\t\tif (outsidePredecessors.isEmpty()) {\n\t\t\treturn pathCross;\n\t\t}\n\t\t// some predecessors outside of input set paths -> split block only for input set\n\t\tBlockNode splitCross = BlockSplitter.blockSplitTop(mth, pathCross);\n\t\tsplitCross.add(AFlag.SYNTHETIC);\n\t\tfor (BlockNode outsidePredecessor : outsidePredecessors) {\n\t\t\t// return predecessors to split bottom block (original)\n\t\t\tBlockSplitter.replaceConnection(outsidePredecessor, splitCross, pathCross);\n\t\t}\n\t\treturn splitCross;\n\t}", "public static List<Block> getAdjacentBlocks(Block block) {\n\t\tList<Block> blocks = new ArrayList<Block>();\n\t\tfor (int i = -1; i < 2; i++) {\n\t\t\tfor (int j = -1; j < 2; j++) {\n\t\t\t\tif (!(i == 0 && j == 0)) {\n\t\t\t\t\tblocks.add(block.getRelative(i, 0, j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn blocks;\n\t}", "private double calculateContainingBlock(double inodeBlockGroup, int inodeSize, int inodeTablePointer){\n return ((inodeBlockGroup * inodeSize / Ext2StaticConstants.START_POSITION) + inodeTablePointer) * Ext2StaticConstants.START_POSITION;\n }", "private boolean isInRow( int row, int col){\n\t\t\n\t\t/*Go through all the elements up until the prospective number and\n\t\t *return true if they equal the prospective number */\n\t\tfor( int x = 0; x < col; x ++ )\n\t\t\tif( puzzle[row][col] == puzzle[row][x])\n\t\t\t\treturn true;\n\t\t\n\t\t//If not found, return false\n\t\treturn false;\n\t}", "public Board(int[][] blocks) {\n this.blocks = new int[blocks.length][blocks.length];\n\n for (int i = 0; i < blocks.length; i++) {\n for (int j = 0; j < blocks[i].length; j++) {\n this.blocks[i][j] = blocks[i][j];\n updateHammingScore(i, j);\n updateManhattanScore(i, j);\n }\n }\n\n }", "public ArrayList<int[]> surroundingCoordinates(int row, int col){\n\t\t\t\n\t\tArrayList<int[]> coordinates = new ArrayList<int[]>();\n\t\tfor(int x = -1; x <= 1; x++) {\n\t\t\tfor(int y = -1; y <= 1; y++) {\n\t\t\t\tif(\t\t\n\t\t\t\t\t\t(row+x >= 0) && \n\t\t\t\t\t\t(col+y >= 0) &&\n\t\t\t\t\t\t(row+x < bm.getBoardSize()) &&\n\t\t\t\t\t\t(col+y < bm.getBoardSize()) &&\n\t\t\t\t\t\t(x != 0 || y != 0)\n\t\t\t\t){\n\t\t\t\t\tcoordinates.add(new int[]{row+x, col+y});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn coordinates;\n\t}", "@NotNull\r\n Block getBlock(int x, int y, int z);", "public short getBlock(final int aX, final int aY)\r\n\t{\r\n\t\treturn mBlocks[aX][aY];\r\n\t}", "public boolean checkBlockValidSudoku(int pos, Character c){\n\t\tint row=pos/9;\n\t\tint col=pos%9; // use position to calculate the row and column\n\t\tfor(int i=0;i<9;i++){ // check row and column\n\t\t\tif(i==col) continue;\n\t\t\tif(sudokuDisplay[row][i]==c) return false;\n\t\t}\n\t\tfor(int i=0;i<9;i++){ // check row and column\n\t\t\tif(i==row) continue; // avoid self check\n\t\t\tif(sudokuDisplay[i][col]==c) return false;\n\t\t}\n\t\tfor(int i=0;i<3;i++)\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tif(row/3*3+i==row && col/3*3+j==col) continue;\n\t\t\t\tif(sudokuDisplay[row/3*3+i][col/3*3+j]==c) \n\t\t\t\t\treturn false;\n\t\t\t}\n\t\treturn true;\n\t}", "public int hamming() {\n int count = 0;\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N && i+j < 2*N-2; j++) {\n if (blocks[i][j] != i*N + j + 1) {\n count++;\n }\n }\n }\n return count;\n }", "boolean FindUnassignedLocation(int grid[][], Point p)\n {\n int row=p.x,col=p.y;\n for (row = 0; row < N; row++)\n for (col = 0; col < N; col++)\n if (grid[row][col] == UNASSIGNED)\n {\n p.x=row;p.y=col;\n return true;\n }\n return false;\n }", "public void setBlock(int b, int block[][]){\n\t\tfor (int i = 0; i < size; i++){\n\t\t\tfor (int j = 0; j < size; j++){\n\t\t\t\tnumbers[i+size*(b/size)][j+size*(b%size)] =\n\t\t\t\t\tblock[i][j];\n\t\t\t}\n\t\t}\n\t}", "public static Block getInst(int row1, int col1, int row2, int col2) {\n\t\tLocation topLeft = Location.getInst(row1, col1);\n\t\tint length2 = row2 - row1 + 1;\n\t\tint width2 = col2 - col1 + 1;\n\t\treturn getInst(topLeft, (short) length2, (short) width2);\n\t}", "private boolean isInSnake(int row, int column, boolean isHead) {\r\n int i = 0;\r\n if (isHead) i = 1;\r\n while (i < length) {\r\n if (snake[i].row == row && \r\n snake[i].column == column) \r\n return true;\r\n i++;\r\n }\r\n return false;\r\n }", "private boolean isInsideBoard(int i, int j) {\n return i >= 0 && i < BOARD_WIDTH && j >= 0 && j < BOARD_HEIGHT\n && mapCells[j][i] != 0;\n }", "public boolean IsDisappearing(){\r\n for (int i = 2; i < 10; i++) {\r\n ArrayList<Block> blocks = blockList.GetBlockList(i);//get all blocks\r\n int[] indexI = new int[blocks.size()], indexJ = new int[blocks.size()];\r\n //put i and j of All blocks with same color on i&j arrays\r\n for (int j = 0; j < indexI.length; j++) {\r\n indexI[j] = blocks.get(j).getI();\r\n indexJ[j] = blocks.get(j).getJ();\r\n }\r\n //check if 2 block beside each other if yes return true\r\n if (CheckBoom(indexI, indexJ))\r\n return true;\r\n else if (blocks.size() == 3) {//else check if there is another block have same color if yes swap on i,j array\r\n int temp = indexI[2];\r\n indexI[2] = indexI[1];\r\n indexI[1] = temp;\r\n temp = indexJ[2];\r\n indexJ[2] = indexJ[1];\r\n indexJ[1] = temp;\r\n if (CheckBoom(indexI, indexJ))//check\r\n return true;\r\n else {//else check from another side\r\n temp = indexI[0];\r\n indexI[0] = indexI[2];\r\n indexI[2] = temp;\r\n temp = indexJ[0];\r\n indexJ[0] = indexJ[2];\r\n indexJ[2] = temp;\r\n if (CheckBoom(indexI, indexJ))//check\r\n return true;\r\n }\r\n }\r\n }\r\n //if not return true so its false\r\n return false;\r\n }", "public void checkNeighbours(int row, int column)\r\n {\r\n int counter = 0;\r\n //*************************************************\r\n //Following code was adapted from Harry Tang 2015-04-27\r\n for (int columnNeighbours = column - 1; columnNeighbours <= column + 1; columnNeighbours ++)\r\n {\r\n for (int rowNeighbours = row - 1; rowNeighbours <= row + 1; rowNeighbours ++)\r\n {\r\n try \r\n {\r\n if (cellGrid[columnNeighbours][rowNeighbours].isAlive()\r\n && cellGrid[columnNeighbours][rowNeighbours] != cellGrid[column][row])\r\n {\r\n counter ++;\r\n }\r\n }\r\n catch (IndexOutOfBoundsException e)\r\n {\r\n // do nothing\r\n }\r\n } // end of for (int y = indexY - 1; y == indexY; y++)\r\n } // end of for (int x = indexX - 1; x == indexX; x++)\r\n //*************************************************\r\n \r\n decisionOnCellState(counter, row, column);\r\n }", "public boolean interiorContains(int i, int j) {\n\t\treturn i > 0 && j > 0 && i < width() - 1 && j < height() - 1;\n\t}", "public void fillBlock(Block block) {\n\n\t\tfor (int j = block.UpperLeft().x; j <= block.LowerRight().x; j++) { \n\t\t\tfor (int k = block.UpperLeft().y; k <= block.LowerRight().y; k++) { \n\t\t\t\tblocksPosition.put(new Point(j,k), block); \n\t\t\t\t//Blocks.add(block); \n\t\t\t} \n\t\t} \n\t}", "int compareTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition);", "private boolean rowCheck() {\n\t\tfor(int[] row : puzzle) {\n\t\t\tfor(int i = 0; i < row.length; i++) {\n\t\t\t\tif(row[i] != 0) {\n\t\t\t\t\tfor(int j = i + 1; j < row.length; j++) {\n\t\t\t\t\t\tif(row[i] == row[j])\n\t\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}\n\t\treturn true;\n\t}", "private void placeColorBlock(int row, int column)\n {\n \t// Check that the color block is not being placed in a row or column that does not exist.\n \tif (row < 0 || row >= theGrid.numRows()) {\n \t\tJOptionPane.showMessageDialog(null,\n \t\t\t\t\"Row \" + row + \" does not exist. Skipping placing color block in position (\" + row + \",\" + column + \")\",\n \t\t\t\t\"Error\",\n JOptionPane.WARNING_MESSAGE);\n \t} else if (column < 0 || column >= theGrid.numCols()) {\n \t\tJOptionPane.showMessageDialog(null,\n \t\t\t\t\"Column \" + column + \" does not exist. Skipping placing color block in position (\" + row + \",\" + column + \")\",\n \t\t\t\t\"Error\",\n JOptionPane.WARNING_MESSAGE);\n \t}\n \telse {\n \t\n \t\t// First remove any color block that happens to be at this location.\n \t\tensureEmpty(row, column);\n\n \t\t// Determine the color to use for this color block.\n \t\tColor color = drawingColorChooser.currentColor();\n\n \t\t// Construct the color block and add it to the grid at the\n \t\t// specificed location. Then display the grid.\n \t\tLocation loc = new Location(row, column);\n \t\ttheGrid.add(new ColorBlock(color), loc);\n \t\tdisplay.showLocation(loc);\n \t}\n }", "Boolean isValid(ArrayList<Integer> colQ){\n \n int curcol = colQ.size() - 1;\n int row = colQ.get(colQ.size() - 1);\n\n int i = 0;\n int j = 0;\n for(i = curcol-1, j = 1; i >= 0; i--, j++)\n {\n // check if we have two of the same row || check diags\n if(row == colQ.get(i) || row+j == colQ.get(i) || row-j == colQ.get(i)) return false;\n }\n return true;\n \n }", "private void createBlocks(){\n for (int row=0; row < grid.length; row++) \n {\n for (int column=0; column < grid[row].length; column++)\n {\n boolean player = false;\n boolean walkable;\n \n switch (grid[row][column]){\n case(0) : \n returnImage = wall; \n walkable = false;\n break;\n case(2) : \n returnImage = start; \n walkable = true;\n player = true;\n break;\n case(4) : \n returnImage = finish; \n walkable = true;\n break;\n \n default :\n returnImage = pad; \n walkable = false;\n }\n \n \n Block blok;\n try {\n if(player==true) \n { \n blok = new Block(returnImage, blockSize, true);\n blok.setTopImage(held);\n }else\n {\n blok = new Block(returnImage, blockSize, false);\n }\n blocks.add(blok);\n } catch (Exception e) {\n \n }\n } \n \n }\n \n }", "private static boolean checkValid(int[][] input, List<List<Integer>> cur, int curRow, int curCol) {\n // 1. There is some lizards on the current column, and we don't have a tree in the middle\n // 2. There is some lizards on the current diagonal, and we don't have a tree in the middle\n // Note that in each inner list of treesColToRow, the numbers are in increasing order\n for (int i = 0; i <= curRow - 1; i++) {\n for (Integer j : cur.get(i)) {\n // Situation 1\n if (j == curCol) {\n boolean hasTree = false;\n int tempRow = i + 1;\n while (tempRow < curRow) {\n if (input[tempRow][j] == 2) {\n hasTree = true;\n break;\n }\n tempRow++;\n }\n if (!hasTree) {\n return false;\n }\n }\n // Situation 2.1: on the LHS diagonal\n if (curRow - i == curCol - j) {\n boolean hasTree = false;\n int tempRow = i + 1;\n int tempCol = j + 1;\n while (tempRow < curRow && tempCol < curCol) {\n if (input[tempRow][tempCol] == 2) {\n hasTree = true;\n break;\n }\n tempRow++;\n tempCol++;\n }\n if (!hasTree) {\n return false;\n }\n }\n // Situation 2.2: on the RHS diagonal\n if (curRow - i == j - curCol) {\n boolean hasTree = false;\n int tempRow = i + 1;\n int tempCol = j - 1;\n while (tempRow < curRow && tempCol > curCol) {\n if (input[tempRow][tempCol] == 2) {\n hasTree = true;\n break;\n }\n tempRow++;\n tempCol--;\n }\n if (!hasTree) {\n return false;\n }\n }\n }\n }\n return true;\n }", "private void findUniqueInBox(int startRow, int endRow, int startColumn, int endColumn) {\n\n //Reduce the board to consist of only the positions in the box and \n //only include those that aren't yet assigned a value.\n List<Number> box = numbers.stream()\n .filter(n -> n.getRow() >= startRow)\n .filter(n -> n.getRow() <= endRow)\n .filter(n -> n.getColumn() >= startColumn)\n .filter(n -> n.getColumn() <= endColumn)\n .filter(n -> n.getValue() == 0)\n .collect(Collectors.toList());\n\n //Create a hash to count the number of occurences of each possible value.\n HashMap<Integer,Integer> possibleValues = new HashMap<Integer, Integer>();\n\n box.forEach(n -> {\n //Find the possible values...\n\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 those that have been used to set the possible values.\n intThrough9.removeAll(n.getUsedValues());\n n.setPossibleValues(intThrough9);\n \n //Update the map with the count of each possible value\n intThrough9.stream().forEach(i -> {\n if (possibleValues.containsKey(i)) {\n possibleValues.replace(i, possibleValues.get(i) + 1);\n }\n else {\n possibleValues.put(i,1);\n }\n });\n });\n\n //Filter out those that only have 1. If there are any then we know\n //that position can be set to that value.\n possibleValues.entrySet().stream().\n filter(p -> p.getValue() == 1).\n forEach(p -> {\n //Whichever block has this unique possibility is the one to set.\n box.stream()\n .filter(b -> b.getPossibleValues() != null)\n .filter(b -> b.getPossibleValues().contains(p.getKey()))\n .findFirst()\n .ifPresent(n -> n.setValue(p.getKey()));\n });\n }", "public void intersection(Set<Integer> line, Set<Integer> row, Set<Integer> square) {\n if (value<1 || value>9) {\n line.retainAll(row);\n line.retainAll(square);\n possibilities = line;\n }\n }", "public boolean overlapsBlock ( ) {\r\n\t\tif (current_block >= getBlockCount())\r\n\t\t\treturn true;\r\n\r\n\t\tif (circum_area == null)\r\n\t\t\treturn true;\r\n\r\n\t\tCoor start_coor = new Coor((double)ra_start[(int)current_block], -6.0);\r\n\t\tCoor end_coor = new Coor((double)ra_end[(int)current_block], 90.0);\r\n\t\tif (circum_area.overlapsArea(start_coor, end_coor))\r\n\t\t\treturn true;\r\n\r\n\t\treturn false;\r\n\t}", "public boolean isInRow(int[] row, int num) {\n for (int i = 0; i < 9; i++) {\n if (row[i] == num)\n return true;\n }\n return false;\n }", "public abstract boolean getCell(int x, int y);", "private static BufferedImage highlightBlock(BufferedImage img, int x, int y, int height, int width, int color) {\n\n for (int i = (int) (x); i <= x + width; i++) {\n for (int j = (int) (y); j <= y + height; j++) {\n try {\n if (i == x + width || j == y + height || j == y || i == x) {\n img.setRGB(i, j, 0x000000);\n } else {\n img.setRGB(i, j, (int) (color ^ img.getRGB(i, j)));\n }\n\n } //if there was an out of bounds its because of the size doubling, ignore it\n catch (ArrayIndexOutOfBoundsException e) {\n }\n }\n }\n\n return img;\n }", "public boolean isInRow(int row, int num) {\n\t\tfor (int k=0; k<size*size; k++) {\n\t\t\tif (this.board[row][k]==num) return true;\n\t\t}\n\t\treturn false;\n\t}", "public Block getBlock(Point point) {\n\t\treturn maze[point.x][point.y];\n\t}", "public boolean isStructure(int row, int column) {\n\t\treturn this.f1[row][column];\n\t}", "protected boolean isCheckBlockable(Piece.PieceColorOptions playerColor) {\n Coordinate[] coordinatesToBlock;\n Coordinate kingCoordinate, oppCoordinate, allyCoordinate;\n int blockCounter, diffX, diffY, spacesToVerify, xIncrement, yIncrement;\n\n coordinatesToBlock = new Coordinate[VERTICAL_BOARD_LENGTH];\n kingCoordinate = getKingCoordinate(playerColor);\n oppCoordinate = null;\n blockCounter = 0;\n\n outerloop:\n for (int i = 0; i < VERTICAL_BOARD_LENGTH; i++) {\n for (int j = 0; j < HORIZONTAL_BOARD_LENGTH; j++) {\n oppCoordinate = new Coordinate(j, i);\n if (isValidEndpoints(oppCoordinate, kingCoordinate, oppositeColor(playerColor))) {\n if (isValidPath(oppCoordinate, kingCoordinate, oppositeColor(playerColor), false)) {\n coordinatesToBlock[blockCounter] = oppCoordinate;\n blockCounter++;\n // if there is more than one piece checking the King\n // the check is not blockable\n break outerloop;\n }\n }\n }\n }\n\n diffX = subtractXCoordinates(oppCoordinate, kingCoordinate);\n diffY = subtractYCoordinates(oppCoordinate, kingCoordinate);\n xIncrement = calculateIncrement(diffX);\n yIncrement = calculateIncrement(diffY);\n spacesToVerify = Math.max(Math.abs(diffX), Math.abs(diffY)) - 1;\n\n // moving a piece to oppCoordinate capture's the opposing piece\n // only opposing Bishops, Rooks, and Queens can be blocked\n if (isValidDiagonalPath(oppCoordinate, kingCoordinate) || isValidStraightPath(oppCoordinate, kingCoordinate)) {\n for (int i = 0; i < spacesToVerify; i++) {\n Coordinate betweenCoordinate = new Coordinate(oppCoordinate);\n betweenCoordinate.addVals(xIncrement, yIncrement);\n coordinatesToBlock[blockCounter] = betweenCoordinate;\n blockCounter++;\n }\n }\n\n // loop through all Coordinates in coordinatesToBlock and see if any can block the check\n for (int i = 0; i < blockCounter; i++) {\n oppCoordinate = coordinatesToBlock[i];\n for (int j = 0; j < VERTICAL_BOARD_LENGTH; j++) {\n for (int k = 0; k < HORIZONTAL_BOARD_LENGTH; k++) {\n allyCoordinate = new Coordinate(k, j);\n if (isValidEndpoints(allyCoordinate, oppCoordinate, playerColor)) {\n if (isValidPath(allyCoordinate, oppCoordinate, playerColor, false)) {\n if (isMovePossibleWithoutCheck(allyCoordinate, oppCoordinate, playerColor, false)) {\n return true;\n }\n }\n }\n }\n }\n }\n return false;\n }", "private boolean checkFlagged(int row, int col, int surrounding) {\n int flags = 0;\n for (int r = -1; r < 2; r++) {\n for (int c = -1; c < 2; c++) {\n int currentRow = row + r;\n int currentCol = col + c;\n if (currentRow >= 0 && currentRow < boardHeight && currentCol >= 0 \n && currentCol < boardWidth && !(currentRow == row && currentCol == col)) {\n if (minefield[currentRow][currentCol].getFlagged()) {\n flags++;\n }\n }\n }\n }\n if (flags == surrounding) {\n return true;\n }\n return false;\n }", "private boolean checkRowCol(int c1, int c2, int c3) \r\n {\r\n return ((c1 != -1) && (c1 == c2) && (c2 == c3)); //eida ekhon porjonto kaaj e lage nai\r\n }" ]
[ "0.638243", "0.6140324", "0.5979574", "0.59594166", "0.57857007", "0.571626", "0.56843406", "0.55734015", "0.5535038", "0.5512627", "0.55017674", "0.5490632", "0.54844624", "0.545154", "0.54283875", "0.5390323", "0.53490573", "0.5331494", "0.5329796", "0.5309402", "0.5295411", "0.5291495", "0.5275026", "0.52686703", "0.52651703", "0.5223516", "0.5201206", "0.5190748", "0.5169716", "0.51577276", "0.5151469", "0.5151354", "0.51469564", "0.5146476", "0.51386344", "0.5132345", "0.51234925", "0.5120332", "0.5117082", "0.51056904", "0.51034635", "0.5092967", "0.50901437", "0.5085771", "0.50840795", "0.5069946", "0.5069437", "0.50620306", "0.5037021", "0.5028008", "0.50122535", "0.5002234", "0.5001176", "0.49935323", "0.49890736", "0.49879667", "0.49802554", "0.4977991", "0.49762017", "0.49659353", "0.49571562", "0.4953844", "0.49525556", "0.49502188", "0.493806", "0.49355048", "0.4932588", "0.49278367", "0.49218178", "0.49141046", "0.49137092", "0.49042252", "0.4898875", "0.4898763", "0.48933786", "0.48926112", "0.48731068", "0.4869074", "0.48667255", "0.4865688", "0.4865124", "0.4857489", "0.48463312", "0.4845152", "0.48431888", "0.48416102", "0.4834091", "0.48324695", "0.48304805", "0.48259756", "0.48163307", "0.4814673", "0.48146346", "0.48130414", "0.48120147", "0.48104423", "0.48095736", "0.48093504", "0.48084408", "0.4807831", "0.4807508" ]
0.0
-1
parse InputFiles and save them into the Hashtables
public void init() { readFile(inputFile); writeInfoFile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setupFiles() {\n File inputDataFile = new File(inputFileName);\n try {\n inputFile = new Scanner(inputDataFile);\n FileWriter outputDataFileOA = new FileWriter(outputFileNameOA);\n FileWriter outputDataFileLL = new FileWriter(outputFileNameLL);\n outputFileOA = new PrintWriter(outputDataFileOA);\n outputFileLL = new PrintWriter(outputDataFileLL);\n outputFileOA.println(\"Output from open addressing hash table:\");\n outputFileOA.println();\n outputFileLL.println(\"Output from linked list hash table:\");\n outputFileLL.println();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void getFiles() {\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(inputFileName);\n\t\t\tinputBuffer = new BufferedReader(fr);\n\n\t\t\tFileWriter fw = new FileWriter(outputFileName);\n\t\t\toutputBuffer = new BufferedWriter(fw);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found: \" + e.getMessage());\n\t\t\tSystem.exit(-2);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-3);\n\t\t}\n\t}", "private void train() throws IOException {\n\t\thamContent = new String();// the content of ham training files\n\t\tspamContent = new String();// the content of spam training files\n\t\tvocabulary = new ArrayList<String>();// all the\n\t\t\t\t\t\t\t\t\t\t\t\t// vocabulary\n\t\t\t\t\t\t\t\t\t\t\t\t// within\n\t\t\t\t\t\t\t\t\t\t\t\t// training\n\t\t\t\t\t\t\t\t\t\t\t\t// files\n\t\thamSenderDomainHash = new HashMap<String, Integer>();\n\t\thamTimeHash = new HashMap<String, Integer>();\n\t\thamReplyHash = new HashMap<String, Integer>();\n\t\thamNonCharNumHash = new HashMap<String, Integer>();\n\t\tspamSenderDomainHash = new HashMap<String, Integer>();\n\t\tspamTimeHash = new HashMap<String, Integer>();\n\t\tspamReplyHash = new HashMap<String, Integer>();\n\t\tspamNonCharNumHash = new HashMap<String, Integer>();\n\n\t\thamWordProb = new HashMap<String, Double>();\n\t\tspamWordProb = new HashMap<String, Double>();\n\t\tclassProb = new HashMap<String, Double>();\n\n\t\tfor (int i = 0; i < 24; i++) {\n\t\t\thamTimeHash.put(String.valueOf(i), 0);\n\t\t\tspamTimeHash.put(String.valueOf(i), 0);\n\t\t}\n\t\tint numSpam = 0, numHam = 0, numFile = 0;// numbers of training files\n\t\tString buff;// file reading tmp buffer\n\n\t\t/* get all the files in the directory */\n\t\tFile directory = new File(inputDirectory);\n\t\tFile[] files = directory.listFiles();\n\n\t\t/*\n\t\t * assign the content of hams and spams while counting the number of\n\t\t * files\n\t\t */\n\t\tfor (File f : files) {\n\t\t\tif (f.getName().startsWith(\"spam\")) {\n\t\t\t\tString readbuffer = readFile(f, 1);\n\t\t\t\tif (!spamTime.equals(\"-1\")) {\n\t\t\t\t\tspamSenderDomainHash.put(spamSenderDomain, 0);\n\t\t\t\t\thamSenderDomainHash.put(spamSenderDomain, 0);\n\t\t\t\t\tspamNonCharNumHash.put(spamNonCharNum, 0);\n\t\t\t\t\thamNonCharNumHash.put(spamNonCharNum, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (f.getName().startsWith(\"ham\")) {\n\t\t\t\tString readbufferString = readFile(f, 0);\n\t\t\t\tif (!hamTime.equals(\"-1\")) {\n\t\t\t\t\tspamSenderDomainHash.put(hamSenderDomain, 0);\n\t\t\t\t\thamSenderDomainHash.put(hamSenderDomain, 0);\n\t\t\t\t\tspamNonCharNumHash.put(hamNonCharNum, 0);\n\t\t\t\t\thamNonCharNumHash.put(hamNonCharNum, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (File f : files) {\n\t\t\tnumFile++;\n\t\t\t// System.out.println(f.getName());\n\t\t\tif (f.getName().startsWith(\"spam\")) {\n\t\t\t\tnumSpam++; // add to the number of spams\n\t\t\t\tString readbuffer = readFile(f, 1);\n\t\t\t\tif (!spamNonCharNumHash.containsKey(spamNonCharNum))\n\t\t\t\t\tspamNonCharNumHash.put(spamNonCharNum, 1);\n\t\t\t\telse if (spamNonCharNumHash.containsKey(spamNonCharNum))\n\t\t\t\t\tspamNonCharNumHash.put(spamNonCharNum,\n\t\t\t\t\t\t\tspamNonCharNumHash.get(spamNonCharNum) + 1);\n\t\t\t\tif (!spamTime.equals(\"-1\")) {\n\t\t\t\t\tif (!spamSenderDomainHash.containsKey(spamSenderDomain)\n\t\t\t\t\t\t\t&& !(spamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (spamSenderDomain.length() <= 3))\n\t\t\t\t\t\tspamSenderDomainHash.put(spamSenderDomain, 1);\n\t\t\t\t\telse if (spamSenderDomainHash.containsKey(spamSenderDomain)\n\t\t\t\t\t\t\t&& !(spamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (spamSenderDomain.length() <= 3))\n\t\t\t\t\t\tspamSenderDomainHash.put(spamSenderDomain,\n\t\t\t\t\t\t\t\tspamSenderDomainHash.get(spamSenderDomain) + 1);\n\t\t\t\t\tif (!spamTimeHash.containsKey(spamTime))\n\t\t\t\t\t\tspamTimeHash.put(spamTime, 1);\n\t\t\t\t\telse if (spamTimeHash.containsKey(spamTime))\n\t\t\t\t\t\tspamTimeHash.put(spamTime,\n\t\t\t\t\t\t\t\tspamTimeHash.get(spamTime) + 1);\n\t\t\t\t\tif (!spamReplyHash.containsKey(spamReply))\n\t\t\t\t\t\tspamReplyHash.put(spamReply, 1);\n\t\t\t\t\telse if (spamReplyHash.containsKey(spamReply))\n\t\t\t\t\t\tspamReplyHash.put(spamReply,\n\t\t\t\t\t\t\t\tspamReplyHash.get(spamReply) + 1);\n\n\t\t\t\t}\n\t\t\t\tspamContent += readbuffer.toLowerCase();\n\t\t\t\tspamContent = spamContent.replaceAll(\"[^a-zA-Z$\\n]+\", \" \");\n\n\t\t\t} else if (f.getName().startsWith(\"ham\")) { // the same thing for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ham\n\t\t\t\tnumHam++;\n\t\t\t\tString readbuffer = readFile(f, 0);\n\t\t\t\tif (!hamNonCharNumHash.containsKey(hamNonCharNum))\n\t\t\t\t\thamNonCharNumHash.put(hamNonCharNum, 1);\n\t\t\t\telse if (hamNonCharNumHash.containsKey(hamNonCharNum))\n\t\t\t\t\thamNonCharNumHash.put(hamNonCharNum,\n\t\t\t\t\t\t\thamNonCharNumHash.get(hamNonCharNum) + 1);\n\t\t\t\tif (!hamTime.equals(\"-1\")) {\n\t\t\t\t\tif (!hamSenderDomainHash.containsKey(hamSenderDomain)\n\t\t\t\t\t\t\t&& !(hamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (hamSenderDomain.length() <= 3))\n\t\t\t\t\t\thamSenderDomainHash.put(hamSenderDomain, 1);\n\t\t\t\t\telse if (hamSenderDomainHash.containsKey(hamSenderDomain)\n\t\t\t\t\t\t\t&& !(hamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (hamSenderDomain.length() <= 3))\n\t\t\t\t\t\thamSenderDomainHash.put(hamSenderDomain,\n\t\t\t\t\t\t\t\thamSenderDomainHash.get(hamSenderDomain) + 1);\n\n\t\t\t\t\tif (!hamTimeHash.containsKey(hamTime))\n\t\t\t\t\t\thamTimeHash.put(hamTime, 1);\n\t\t\t\t\telse if (hamTimeHash.containsKey(hamTime))\n\t\t\t\t\t\thamTimeHash.put(hamTime, hamTimeHash.get(hamTime) + 1);\n\t\t\t\t\tif (!hamReplyHash.containsKey(hamReply))\n\t\t\t\t\t\thamReplyHash.put(hamReply, 1);\n\t\t\t\t\telse if (hamReplyHash.containsKey(hamReply))\n\t\t\t\t\t\thamReplyHash.put(hamReply,\n\t\t\t\t\t\t\t\thamReplyHash.get(hamReply) + 1);\n\n\t\t\t\t}\n\t\t\t\thamContent += readbuffer.toLowerCase();\n\t\t\t\thamContent = hamContent.replaceAll(\"[^a-zA-Z$\\n]+\", \" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"file read complete!!!\");\n\t\t// System.out.println(hamSenderDomainHash);\n\t\t// System.out.println(hamTimeHash);\n\t\t// System.out.println(hamReplyHash);\n\t\t// System.out.println(hamNonCharNumHash);\n\t\t// System.out.println(spamSenderDomainHash);\n\t\t// System.out.println(spamTimeHash);\n\t\t// System.out.println(spamReplyHash);\n\t\t// System.out.println(spamNonCharNumHash);\n\t\t// System.out.println(spamContent);\n\t\t// System.out.println(hamContent);\n\n\t\t/* calculate probabilities */\n\t\tpHam = (double) numHam / (double) numFile;\n\t\tpSpam = (double) numSpam / (double) numFile;\n\t\t// System.out.println(numHam);\n\t\t// System.out.println(numSpam);\n\t\t// System.out.println(numFile);\n\n\t\tclassProb.put(\"hamProb\", pHam);\n\t\tclassProb.put(\"spamProb\", pSpam);\n\n\t\t/* get vocabulary and its length */\n\t\tString[] hamWord = hamContent.split(\"\\\\s+\");\n\t\tHashMap<String, Integer> hamWordFreq = new HashMap<String, Integer>();\n\t\tfor (int i = 0; i < hamWord.length; i++) {\n\t\t\tif (hamWordFreq.containsKey(hamWord[i]))\n\t\t\t\thamWordFreq.put(hamWord[i], hamWordFreq.get(hamWord[i]) + 1);\n\t\t\tif (!hamWordFreq.containsKey(hamWord[i]))\n\t\t\t\thamWordFreq.put(hamWord[i], 1);\n\t\t}\n\t\thamWordCount = hamWord.length;\n\t\tString[] spamWord = spamContent.split(\"\\\\s+\");\n\t\tHashMap<String, Integer> spamWordFreq = new HashMap<String, Integer>();\n\t\tfor (int i = 0; i < spamWord.length; i++) {\n\t\t\tif (spamWordFreq.containsKey(spamWord[i]))\n\t\t\t\tspamWordFreq\n\t\t\t\t\t\t.put(spamWord[i], spamWordFreq.get(spamWord[i]) + 1);\n\t\t\tif (!spamWordFreq.containsKey(spamWord[i]))\n\t\t\t\tspamWordFreq.put(spamWord[i], 1);\n\t\t}\n\t\tspamWordCount = spamWord.length;\n\t\tSystem.out.println(hamWordFreq.size());\n\t\tSystem.out.println(spamWordFreq.size());\n\t\tSystem.out.println(\"count get!!!\");\n\t\t// System.out.println(hamWordCount);\n\t\t// System.out.println(spamWordCount);\n\t\tfor (int i = 0; i < hamWordCount; i++) {\n\t\t\tif (!vocabulary.contains(hamWord[i]) && !hamWord[i].equals(\"\"))\n\t\t\t\tvocabulary.add(hamWord[i]);\n\t\t}\n\t\t// System.out.println(hamWordFreq);\n\t\tfor (int i = 0; i < spamWordCount; i++)\n\t\t\tif (!vocabulary.contains(spamWord[i]) && !spamWord[i].equals(\"\"))\n\t\t\t\tvocabulary.add(spamWord[i]);\n\t\tvocabLen = vocabulary.size();\n\t\tSystem.out.println(\"vocab init\");\n\t\t/* remove unnecessary words */\n\t\tfor (int i = 0; i < vocabulary.size(); i++) {\n\t\t\tint hamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\thamwordFreq = hamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\thamwordFreq = 0;\n\t\t\t}\n\t\t\tint spamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\tspamwordFreq = spamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\tspamwordFreq = 0;\n\t\t\t}\n\t\t\tif ((hamwordFreq <= 3) && (spamwordFreq <= 3)) {\n\t\t\t\tvocabulary.remove(i);\n\t\t\t\ti--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (((double) ((double) hamwordFreq / (double) hamWordCount) >= 0.005)\n\t\t\t\t\t&& ((double) ((double) spamwordFreq / (double) spamWordCount) >= 0.005)) {\n\t\t\t\t// System.out.println(vocabulary.get(i));\n\t\t\t\tvocabulary.remove(i);\n\t\t\t\ti--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"vocab complete!!!\");\n\t\tSystem.out.println(vocabulary.size());\n\t\tvocabLen = vocabulary.size();\n\t\tfor (int i = 0; i < vocabulary.size(); i++) {\n\t\t\tint hamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\thamwordFreq = hamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\thamwordFreq = 0;\n\t\t\t}\n\t\t\tint spamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\tspamwordFreq = spamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\tspamwordFreq = 0;\n\t\t\t}\n\t\t\thamWordProb.put(\n\t\t\t\t\tvocabulary.get(i),\n\t\t\t\t\tjava.lang.Math.log((double) (hamwordFreq + 1)\n\t\t\t\t\t\t\t/ (double) (hamWordCount + vocabLen)));\n\t\t\tspamWordProb.put(\n\t\t\t\t\tvocabulary.get(i),\n\t\t\t\t\tjava.lang.Math.log((double) (spamwordFreq + 1)\n\t\t\t\t\t\t\t/ (double) (spamWordCount + vocabLen)));\n\t\t\t// System.out.println(i);\n\n\t\t}\n\t\t// System.out.println(hamWordCount);\n\t\t// System.out.println(hamContent);\n\t\t// System.out.println(hamWordProb.size());\n\t\t// System.out.println(spamWordProb.size());\n\t\t// System.out.println(vocabulary.size());\n\t\t//\n\t\t// System.out.println(hamWordProb.size());\n\t\t// System.out.println(vocabulary);\n\t\t// System.out.println(vocabLen);\n\t\tSystem.out.println(\"word prob complete!!!\");\n\t}", "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 }", "public static void getInputFileData(){\n\t\t\t\n\t\t\t// editable fields\n\t\t\t\n\t\t\tString directDistanceFile = \"../data/direct_distance_1.txt\";\n\t\t\tString graphInputFile = \"../data/graph_input_1.txt\";\n\t\t\t\n\t\t\t\n\t\t\t// end of editable fields\n\t\t\t\n\t\t\t\n\t\t\tFile file1 = new File(directDistanceFile);\n\t\t\tFile file2 = new File(graphInputFile);\n\t\t\tfiles.add(file1);\n\t\t\tfiles.add(file2);\n\t\t\t\n\t\t\t/*// Directory where data files are\n\t\t\tPath dataPath = Paths.get(\"../data\");\n\t\t\t\n\t\t\tString path = dataPath.toAbsolutePath().toString();\n\t\t\t\n\t\t\tFile dir = new File (path);\n\t\t\t\t\t\n\t\t\tif (dir.listFiles() == null){\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"WARNING: No files found.\");\n\n\t\t\t} else if (dir.listFiles() != null && dir.listFiles().length == 2) {\n\t\t\n\t\t\t\tfor (File file : dir.listFiles()){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfiles.add(file.getName());\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}\n\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"WARNING: Data folder may only contain two files: direct_distance and\"\n\t\t\t\t\t\t+ \" graph_input. Please modify contents accordingly before proceeding for alorithm to execute.\");\n\t\t\t\t\n\t\t\t}\n\t\t\t*/\n\t\t\t\n\t\t\tfor (File file: files){\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\t// store direct distances in a hashmap\n\t\t\t\t\tif (file.toString().contains(\"distance\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\t//FileReader fileReader = new FileReader(dataPath.toString() + \"/\" + file);\n\t\t\t\t\t\tFileReader fileReader = new FileReader(file);\n\t\t\t\t BufferedReader reader = new BufferedReader(fileReader);\n\t\t\t\t String line = null;\n\t\t\t\t \n\t\t\t\t while ((line = reader.readLine()) != null) {\n\t\t\t\t \t\n\t\t\t\t \tStringBuilder num = new StringBuilder();\n\t\t\t\t \tStringBuilder str = new StringBuilder();\n\t\t\t\t \n\t\t\t\t \tfor(char c : line.toCharArray()){\n\t\t\t\t \t\t//find the distance\n\t\t\t\t if(Character.isDigit(c)){\n\t\t\t\t num.append(c);\n\t\t\t\t } \n\t\t\t\t //find the associated letter\n\t\t\t\t else if(Character.isLetter(c)){\n\t\t\t\t str.append(c); \n\t\t\t\t }\n\t\t\t\t \t}\n\t\t\t\t \t\n\t\t\t\t \t// add values into hashmap\n\t\t\t\t \tdistance.put(str.toString(), Integer.parseInt(num.toString()));\n\t\t\t\t \t\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t reader.close(); // close the reader\n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(distance);\n\t\t\t\t \n\t\t\t\t } \n\t\t\t\t\t\n\t\t\t\t\t// store inputs in a \n\t\t\t\t\telse if (file.toString().contains(\"input\")){\n\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t//FileReader fileReader = new FileReader(dataPath.toString() + \"/\" + file);\n\t\t\t\t\t\tFileReader fileReader = new FileReader(file);\n\t\t\t\t BufferedReader reader = new BufferedReader(fileReader);\n\t\t\t\t \n\t\t\t\t String line = null;\n\t\t\t\t \n\t\t\t\t int x=0; // keeps track of line to add\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t while ((line = reader.readLine()) != null) {\n\t\t\t\t \tString[] values = line.split(\"\\\\s+\");\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t if (matrix == null) {\n\t\t\t\t \t\t //instantiate matrix\n\t\t\t\t matrix = new String[widthOfArray = values.length]\n\t\t\t\t \t\t \t\t\t[lenghtOfArray = values.length];\n\t\t\t\t }\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t// add values into the matrix\n\t\t\t\t \tfor (int i=0; i < values.length; i++){\n\t\t\t\t \t\t\n\t\t\t\t \t\tmatrix[i][x] = values[i];\n\t\t\t\t \t\t\n\t\t\t\t \t}\n\t\t\t\t \t\n\t\t\t\t \tx++; // next line\n\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\t reader.close(); // close the reader\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Store input combinations in a hashmap\n\t\t\t\t\tint y=1; \n\t\t\t\t\twhile (y < lenghtOfArray){\n\t\t\t\t\t\t\n\t\t\t\t\t\tinputNodes.add(matrix[0][y]);\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int i=1; i < widthOfArray; i++){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tStringBuilder str = new StringBuilder();\n\t\t\t\t\t\t\tstr.append(matrix[0][y]);\n\t\t\t\t\t\t\tstr.append(matrix[i][0]);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint inputValue = Integer.parseInt(matrix[i][y]);\n\n\t\t\t\t\t\t\tif (inputValue > 0){\n\t\t\t\t\t\t\t\tinputMap.put(str.toString(), inputValue);\n\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\t\n\t\t\t\t\t\ty++;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"WARNING: Please check: \"+ file.toString() + \". It was not found.\");\n\t\t\t\t} \n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "public void readFiles() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t// Open BufferedReader to open connection to tipslocation URL and read file\n\t\t\tBufferedReader reader1 = new BufferedReader(new InputStreamReader(tipsLocation.openStream()));\n\t\t\t\n\t\t\t// Create local variable to parse through the file\n\t String tip;\n\t \n\t // While there are lines in the file to read, add lines to tips ArrayList\n\t while ((tip = reader1.readLine()) != null) {\n\t tips.add(tip);\n\t }\n\t \n\t // Close the BufferedReader\n\t reader1.close();\n\t \n\t \n\t // Open BufferedReader to open connection to factsLocation URL and read file\n\t BufferedReader reader2 = new BufferedReader(new InputStreamReader(factsLocation.openStream()));\n\t \n\t // Create local variable to parse through the file\n\t String fact;\n\t \n\t // While there are lines in the file to read: parses the int that represents\n\t // the t-cell count that is associated with the line, and add line and int to \n\t // tCellFacts hashmap\n\t while ((fact = reader2.readLine()) != null) {\n\t \t\n\t \tint tCellCount = Integer.parseInt(fact);\n\t \tfact = reader2.readLine();\n\t \t\n\t tCellFacts.put(tCellCount, fact);\n\t }\n\t \n\t // Close the second BufferedReader\n\t reader2.close();\n\t \n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\tSystem.out.println(\"Error loading files\"); e.printStackTrace();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void read() {\n try {\n pre_list = new ArrayList<>();\n suf_list = new ArrayList<>();\n p_name = new ArrayList<>();\n stem_word = new ArrayList<>();\n\n //reading place and town name\n for (File places : place_name.listFiles()) {\n fin = new FileInputStream(places);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n place.add(temp);\n }\n\n }\n\n //reading month name\n for (File mont : month_name.listFiles()) {\n fin = new FileInputStream(mont);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n month.add(temp);\n }\n }\n\n //reading compound words first\n for (File comp_word : com_word_first.listFiles()) {\n fin = new FileInputStream(comp_word);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n comp_first.add(temp);\n }\n }\n //reading next word of the compound\n for (File comp_word_next : com_word_next.listFiles()) {\n fin = new FileInputStream(comp_word_next);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n comp_next.add(temp);\n }\n }\n //reading chi square feature\n for (File entry : chifile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n chiunion.add(temp);\n }\n newunions.clear();\n newunions.addAll(chiunion);\n chiunion.clear();\n chiunion.addAll(newunions);\n chiunion.removeAll(stop_word_list);\n chiunion.removeAll(p_name);\n chiunion.removeAll(month);\n chiunion.removeAll(place);\n }\n //reading short form from abbrivation \n for (File short_list : abbrivation_short.listFiles()) {\n fin = new FileInputStream(short_list);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n shortform.add(temp);\n }\n }\n //reading long form from the abrivation \n for (File long_list : abbrivation_long.listFiles()) {\n fin = new FileInputStream(long_list);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n longform.add(temp);\n }\n }\n //reading file from stop word\n for (File stoplist : stop_word.listFiles()) {\n fin = new FileInputStream(stoplist);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n stop_word_list.add(temp);\n }\n }\n\n //reading person name list\n for (File per_name : person_name.listFiles()) {\n fin = new FileInputStream(per_name);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n p_name.add(temp);\n }\n }\n\n //reading intersection union\n for (File entry : interfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n interunion.add(temp);\n }\n }\n newunions.clear();\n newunions.addAll(interunion);\n interunion.clear();\n interunion.addAll(newunions);\n interunion.removeAll(stop_word_list);\n interunion.removeAll(p_name);\n interunion.removeAll(month);\n interunion.removeAll(place);\n }\n // reading ig union\n for (File entry : igfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n igunion.add(temp);\n }\n }\n for (String str : igunion) {\n int index = igunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n igunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(igunion);\n igunion.clear();\n igunion.addAll(newunions);\n igunion.removeAll(stop_word_list);\n igunion.removeAll(p_name);\n igunion.removeAll(month);\n igunion.removeAll(place);\n }\n //read df uinfion\n for (File entry : dffile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n dfunion.add(temp);\n }\n }\n for (String str : dfunion) {\n int index = dfunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n dfunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(dfunion);\n dfunion.clear();\n dfunion.addAll(newunions);\n dfunion.removeAll(stop_word_list);\n dfunion.removeAll(p_name);\n dfunion.removeAll(month);\n dfunion.removeAll(place);\n }\n //reading unified model\n for (File entry : unionall_3.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n union_3.add(temp);\n }\n }\n for (String str : union_3) {\n int index = union_3.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n union_3.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(union_3);\n union_3.clear();\n union_3.addAll(newunions);\n union_3.removeAll(stop_word_list);\n union_3.removeAll(p_name);\n union_3.removeAll(month);\n union_3.removeAll(place);\n }\n //unified feature for the new model\n for (File entry : unified.listFiles()) {\n\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n newunion.add(temp);\n\n }\n for (String str : newunion) {\n int index = newunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n newunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(newunion);\n newunion.clear();\n newunion.addAll(newunions);\n newunion.removeAll(stop_word_list);\n newunion.removeAll(p_name);\n newunion.removeAll(month);\n newunion.removeAll(place);\n\n // newunion.addAll(newunions);\n }\n // reading test file and predict the class\n for (File entry : test_doc.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n file_test.add(temp);\n\n }\n newunions.clear();\n newunions.addAll(file_test);\n file_test.clear();\n file_test.addAll(newunions);\n file_test.removeAll(stop_word_list);\n file_test.removeAll(p_name);\n file_test.removeAll(month);\n file_test.removeAll(place);\n }\n //reading the whole document under economy class\n for (File entry : economy.listFiles()) {\n fill = new File(economy + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n economydocument[count1] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n economydocument[count1].add(temp);\n if (temp.length() < 2) {\n economydocument[count1].remove(temp);\n }\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n economydocument[count1].remove(temp);\n }\n }\n for (String str : economydocument[count1]) {\n int index = economydocument[count1].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n economydocument[count1].set(index, stem_word.get(i));\n }\n }\n }\n }\n economydocument[count1].removeAll(stop_word_list);\n economydocument[count1].removeAll(p_name);\n economydocument[count1].removeAll(month);\n economydocument[count1].removeAll(place);\n allecofeature.addAll(economydocument[count1]);\n ecofeature.addAll(economydocument[count1]);\n allfeature.addAll(ecofeature);\n all.addAll(allecofeature);\n count1++;\n\n }\n //reading the whole documents under education category \n for (File entry : education.listFiles()) {\n fill = new File(education + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n educationdocument[count2] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n educationdocument[count2].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n educationdocument[count2].remove(temp);\n }\n }\n }\n\n for (String str : educationdocument[count2]) {\n int index = educationdocument[count2].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n educationdocument[count2].set(index, stem_word.get(i));\n }\n }\n }\n educationdocument[count2].removeAll(stop_word_list);\n educationdocument[count2].removeAll(p_name);\n educationdocument[count2].removeAll(month);\n educationdocument[count2].removeAll(place);\n alledufeature.addAll(educationdocument[count2]);\n edufeature.addAll(educationdocument[count2]);\n allfeature.addAll(edufeature);\n all.addAll(alledufeature);\n count2++;\n }\n// //reading all the documents under sport category\n for (File entry : sport.listFiles()) {\n fill = new File(sport + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n sportdocument[count3] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n sportdocument[count3].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n sportdocument[count3].remove(temp);\n }\n }\n }\n\n for (String str : sportdocument[count3]) {\n int index = sportdocument[count3].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n sportdocument[count3].set(index, stem_word.get(i));\n }\n }\n }\n sportdocument[count3].removeAll(stop_word_list);\n sportdocument[count3].removeAll(p_name);\n sportdocument[count3].removeAll(month);\n sportdocument[count3].removeAll(place);\n allspofeature.addAll(sportdocument[count3]);\n spofeature.addAll(sportdocument[count3]);\n allfeature.addAll(spofeature);\n all.addAll(allspofeature);\n count3++;\n }\n\n// //reading all the documents under culture category\n for (File entry : culture.listFiles()) {\n fill = new File(culture + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n culturedocument[count4] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n\n culturedocument[count4].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n culturedocument[count4].remove(temp);\n }\n }\n\n }\n for (String str : culturedocument[count4]) {\n int index = culturedocument[count4].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n culturedocument[count4].set(index, stem_word.get(i));\n }\n }\n }\n culturedocument[count4].removeAll(stop_word_list);\n culturedocument[count4].removeAll(p_name);\n culturedocument[count4].removeAll(month);\n culturedocument[count4].removeAll(place);\n allculfeature.addAll(culturedocument[count4]);\n culfeature.addAll(culturedocument[count4]);\n allfeature.addAll(culfeature);\n all.addAll(allculfeature);\n count4++;\n\n }\n\n// //reading all the documents under accident category\n for (File entry : accident.listFiles()) {\n fill = new File(accident + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n accedentdocument[count5] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n accedentdocument[count5].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n accedentdocument[count5].remove(temp);\n }\n }\n\n }\n\n for (String str : accedentdocument[count5]) {\n int index = accedentdocument[count5].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n accedentdocument[count5].set(index, stem_word.get(i));\n }\n }\n }\n accedentdocument[count5].removeAll(stop_word_list);\n accedentdocument[count5].removeAll(p_name);\n accedentdocument[count5].removeAll(month);\n accedentdocument[count5].removeAll(place);\n allaccfeature.addAll(accedentdocument[count5]);\n accfeature.addAll(accedentdocument[count5]);\n allfeature.addAll(accfeature);\n all.addAll(allaccfeature);\n count5++;\n }\n\n// //reading all the documents under environmental category\n for (File entry : environmntal.listFiles()) {\n fill = new File(environmntal + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n environmntaldocument[count6] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n environmntaldocument[count6].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n environmntaldocument[count6].remove(temp);\n }\n }\n }\n\n for (String str : environmntaldocument[count6]) {\n int index = environmntaldocument[count6].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n environmntaldocument[count6].set(index, stem_word.get(i));\n }\n }\n }\n environmntaldocument[count6].removeAll(stop_word_list);\n environmntaldocument[count6].removeAll(p_name);\n environmntaldocument[count6].removeAll(month);\n environmntaldocument[count6].removeAll(place);\n allenvfeature.addAll(environmntaldocument[count6]);\n envfeature.addAll(environmntaldocument[count6]);\n allfeature.addAll(envfeature);\n all.addAll(allenvfeature);\n count6++;\n }\n\n// //reading all the documents under foreign affairs category\n for (File entry : foreign_affair.listFiles()) {\n fill = new File(foreign_affair + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n foreign_affairdocument[count7] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n foreign_affairdocument[count7].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n foreign_affairdocument[count7].remove(temp);\n }\n }\n\n }\n for (String str : foreign_affairdocument[count7]) {\n int index = foreign_affairdocument[count7].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n foreign_affairdocument[count7].set(index, stem_word.get(i));\n }\n }\n }\n foreign_affairdocument[count7].removeAll(stop_word_list);\n foreign_affairdocument[count7].removeAll(p_name);\n foreign_affairdocument[count7].removeAll(month);\n foreign_affairdocument[count7].removeAll(place);\n alldepfeature.addAll(foreign_affairdocument[count7]);\n depfeature.addAll(foreign_affairdocument[count7]);\n allfeature.addAll(depfeature);\n all.addAll(alldepfeature);\n count7++;\n }\n\n// //reading all the documents under law and justices category\n for (File entry : law_justice.listFiles()) {\n fill = new File(law_justice + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n law_justicedocument[count8] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n law_justicedocument[count8].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n law_justicedocument[count8].remove(temp);\n }\n }\n\n }\n for (String str : law_justicedocument[count8]) {\n int index = law_justicedocument[count8].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n law_justicedocument[count8].set(index, stem_word.get(i));\n }\n }\n }\n law_justicedocument[count8].removeAll(stop_word_list);\n law_justicedocument[count8].removeAll(p_name);\n law_justicedocument[count8].removeAll(month);\n law_justicedocument[count8].removeAll(month);\n alllawfeature.addAll(law_justicedocument[count8]);\n lawfeature.addAll(law_justicedocument[count8]);\n allfeature.addAll(lawfeature);\n all.addAll(alllawfeature);\n count8++;\n }\n\n// //reading all the documents under other category\n for (File entry : agri.listFiles()) {\n fill = new File(agri + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n agriculture[count9] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n agriculture[count9].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n agriculture[count9].remove(temp);\n }\n }\n\n }\n for (String str : agriculture[count9]) {\n int index = agriculture[count9].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n agriculture[count9].set(index, stem_word.get(i));\n }\n }\n }\n agriculture[count9].removeAll(stop_word_list);\n agriculture[count9].removeAll(p_name);\n agriculture[count9].removeAll(month);\n agriculture[count9].removeAll(place);\n allagrifeature.addAll(agriculture[count9]);\n agrifeature.addAll(agriculture[count9]);\n allfeature.addAll(agrifeature);\n all.addAll(allagrifeature);\n count9++;\n }\n //reading all the documents under politics category\n for (File entry : politics.listFiles()) {\n fill = new File(politics + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n politicsdocument[count10] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n politicsdocument[count10].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n politicsdocument[count10].remove(temp);\n }\n }\n }\n for (String str : politicsdocument[count10]) {\n int index = politicsdocument[count10].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n politicsdocument[count10].set(index, stem_word.get(i));\n }\n }\n }\n politicsdocument[count10].removeAll(stop_word_list);\n politicsdocument[count10].removeAll(p_name);\n politicsdocument[count10].removeAll(month);\n politicsdocument[count10].removeAll(place);\n allpolfeature.addAll(politicsdocument[count10]);\n polfeature.addAll(politicsdocument[count10]);\n allfeature.addAll(polfeature);\n all.addAll(allpolfeature);\n count10++;\n }\n //reading all the documents under science and technology category\n for (File entry : science_technology.listFiles()) {\n fill = new File(science_technology + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n science_technologydocument[count12] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n science_technologydocument[count12].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n science_technologydocument[count12].remove(temp);\n }\n }\n\n }\n for (String str : science_technologydocument[count12]) {\n int index = science_technologydocument[count12].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n science_technologydocument[count12].set(index, stem_word.get(i));\n }\n }\n }\n science_technologydocument[count12].removeAll(stop_word_list);\n science_technologydocument[count12].removeAll(p_name);\n science_technologydocument[count12].removeAll(month);\n science_technologydocument[count12].removeAll(place);\n allscifeature.addAll(science_technologydocument[count12]);\n scifeature.addAll(science_technologydocument[count12]);\n allfeature.addAll(scifeature);\n all.addAll(allscifeature);\n count12++;\n\n }\n\n //reading all the documents under health category\n for (File entry : health.listFiles()) {\n fill = new File(health + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n healthdocument[count13] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n healthdocument[count13].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n healthdocument[count13].remove(temp);\n }\n }\n }\n for (String str : healthdocument[count13]) {\n int index = healthdocument[count13].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n healthdocument[count13].set(index, stem_word.get(i));\n }\n }\n }\n healthdocument[count13].removeAll(stop_word_list);\n healthdocument[count13].removeAll(p_name);\n healthdocument[count13].removeAll(month);\n healthdocument[count13].removeAll(place);\n allhelfeature.addAll(healthdocument[count13]);\n helfeature.addAll(healthdocument[count13]);\n allfeature.addAll(helfeature);\n all.addAll(allhelfeature);\n count13++;\n }\n\n //reading all the file of relgion categories \n for (File entry : army_file.listFiles()) {\n fill = new File(army_file + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n army[count14] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n army[count14].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n army[count14].remove(temp);\n }\n }\n\n }\n for (String str : army[count14]) {\n int index = army[count14].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n army[count14].set(index, stem_word.get(i));\n }\n }\n }\n army[count14].removeAll(stop_word_list);\n army[count14].removeAll(p_name);\n army[count14].removeAll(month);\n army[count14].removeAll(place);\n allarmfeature.addAll(army[count14]);\n armfeature.addAll(army[count14]);\n allfeature.addAll(armfeature);\n all.addAll(allarmfeature);\n count14++;\n }\n } catch (Exception ex) {\n System.out.println(\"here\");\n }\n }", "public void processFiles(){\n\t\tfor(String fileName : files) {\n\t\t\ttry {\n\t\t\t\tloadDataFromFile(fileName);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"Can't open file: \" + fileName);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tprintInOrder();\n\t\t\tstudents.clear();\n\t\t}\n\t}", "public static void processFilesForValidation() {\r\n\t\t// Process each file one at a time.\r\n\t\tfor (int i = 0; i < inScanners.length; i++) {\r\n\t\t\tScanner sc = inScanners[i];\r\n\t\t\tint articleCount = 1;\r\n\t\t\t// Read the input file.\r\n\t\t\ttry {\r\n\t\t\t\twhile(sc.hasNextLine()) {\r\n\t\t\t\t\tString s = sc.nextLine();\r\n\t\t\t\t\t// If we come across an article, read its contents and add it to the file.\r\n\t\t\t\t\tif(s.startsWith(\"@ARTICLE{\")) {\r\n\t\t\t\t\t\tauthor = journal = title = year = volume = number = pages = doi = ISSN = month = \"\";\r\n\t\t\t\t\t\twhile (!s.equals(\"}\")) {\r\n\t\t\t\t\t\t\ts = sc.nextLine();\r\n\t\t\t\t\t\t\tparseValue(s);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Throw an exception if a field is missing.\r\n\t\t\t\t\t\tif (author.isEmpty() || journal.isEmpty() || title.isEmpty() || year.isEmpty() || volume.isEmpty() \r\n\t\t\t\t\t\t\t\t|| number.isEmpty() || pages.isEmpty() || doi.isEmpty() || ISSN.isEmpty() || month.isEmpty()) {\r\n\t\t\t\t\t\t\tthrow new FileInvalidException(\"One or more fields are missing.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Add the article to the file if valid.\r\n\t\t\t\t\t\tString author1 = author.replaceAll(\" and\", \",\");\r\n\t\t\t\t\t\tint andIndex = author.indexOf(\"and\");\r\n\t\t\t\t\t\tString author2 = andIndex != -1 ? author.replaceAll(author.substring(andIndex,author.length()), \"et al\") : author;\r\n\t\t\t\t\t\tString author3 = author.replaceAll(\"and\", \"&\");\r\n\t\t\t\t\r\n\t\t\t\t\t\t// IEEE\r\n\t\t\t\t\t\toutWriters[i][0].println(author1+\". \\\"\"+title+\"\\\", \"+journal+\", vol. \"+volume+\", no. \"+number+\", p. \"+pages+\", \"+month+\" \"+year+\".\\r\\n\");\r\n\t\t\t\t\t\t// ACM\r\n\t\t\t\t\t\toutWriters[i][1].println(\"[\"+articleCount+\"]\\t\"+author2+\". \"+year+\". \"+title+\". \"+journal+\". \"+volume+\", \"+number+\" (\"+year+\"), \"+pages+\". DOI:https://doi.org/\"+doi+\".\\r\\n\");\r\n\t\t\t\t\t\t// NJ\r\n\t\t\t\t\t\toutWriters[i][2].println(author3+\". \"+title+\". \"+journal+\". \"+volume+\", \"+pages+\"(\"+year+\").\\r\\n\");\r\n\t\t\t\t\t\tarticleCount++;\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t\t// Close output writers once file has been read.\r\n\t\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t\t\t\t\toutWriters[i][j].close();\r\n\t\t\t\t}\r\n\t\t\t\tnumValidFiles++;\r\n\t\t\t}\r\n\t\t\t// If file is invalid, close and delete the output files.\r\n\t\t\tcatch (FileInvalidException e) {\r\n\t\t\t\tSystem.out.println(\"Error: Detected Empty Field!\" \r\n\t\t\t\t\t\t + \"\\n============================\"\r\n\t\t\t + \"\\nProblem detected with input file: Latex\" + (i + 1) + \".bib\"\r\n\t\t\t\t\t\t + \"\\nFile is invalid: \" + e.getMessage() + \" Processing stopped at this point. \"\r\n\t\t\t\t\t\t + \"Other empty/missing fields may be present as well.\\n\");\r\n\t\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t\t\t\t\toutWriters[i][j].close();\r\n\t\t\t\t\toutFiles[i][j].delete();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Close input file after reading.\r\n\t\t\tsc.close();\r\n\t\t}\r\n\t}", "private static void loadFiles(String[] files) throws IOException {\n\t\tfor(String file : files){\n\n\t\t\t//Create reader for the file\n\t\t\tBufferedReader fileReader = new BufferedReader(new FileReader(file));\n\n\t\t\t//Create HashMap to store words and counts\n\t\t\tHashMap<String,WordCount> fileWordCounts = new HashMap<String,WordCount>();\n\t\t\tArrayList<String> sentences = new ArrayList<String>();\n\n\t\t\t//While the file still has more lines to be read from\n\t\t\twhile(fileReader.ready()){\n\n\t\t\t\t//Read a line from the file\n\t\t\t\tString fileLine = fileReader.readLine();\n\t\t\t\t//Add the line to file sentences\n\t\t\t\tsentences.add(fileLine);\n\t\t\t\t//Split the file and remove punctuation from words\n\t\t\t\tString[] fileWords = fileLine.replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase().split(\"\\\\s+\");\n\n\t\t\t\t//iterate through all words in each line\n\t\t\t\tfor (String word : fileWords)\n\t\t\t\t{\n\t\t\t\t\tWordCount count = fileWordCounts.get(word);\n\t\t\t\t\t//If word is not in file, add it \n\t\t\t\t\tif (count == null) {\n\t\t\t\t\t\tfileWordCounts.put(word,new WordCount(word));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcount.inc(); //If not, increment it\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t}\n\n\t\t\t//Add file to fileDatabase \n\t\t\tfileDatabase.map.put(file, new FileObject(file, fileWordCounts, sentences));\n\n\t\t\tfileReader.close(); // Close File\n\n\t\t}//End of For Loop reading from all files\n\t}", "private void readFileList() throws IOException {\n\t\tint entries = metadataFile.readInt();\n\n\t\tfor (int i = 0; i < entries; i++) {\n\t\t\tint hash = metadataFile.readInt();\n\t\t\tlong dataOffset = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tlong dataSize = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tint pathListIndex = metadataFile.readInt();\n\n\t\t\tlong position = metadataFile.getPosition();\n\t\t\tmetadataFile.setPosition(pathListOffset + 8 + (pathListIndex * 8));\n\n\t\t\tlong pathOffset = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tint pathSize = metadataFile.readInt();\n\n\t\t\tmetadataFile.setPosition(pathListOffset + pathOffset);\n\t\t\tString path = metadataFile.readString(pathSize).trim();\n\n\t\t\tif (hash == hash(path)) \n\t\t\t\tfileEntries.add(new RAFFileEntry(dataOffset, dataSize, path));\n\t\t\telse\n\t\t\t\tthrow new IOException(\"Invalid hash for item '\" + path + \"'.\");\n\n\t\t\tmetadataFile.setPosition(position);\n\t\t}\n\t}", "private void createDicts(String inputFile){\n\t\tproductIds = new TreeMap<>();\n\t\ttokenDict = new TreeMap<>();\n\t\treviewIds = new TreeMap<>();\n\n\t\tDataParser dataParser = null;\n\t\ttry {\n\t\t\tdataParser = new DataParser(inputFile);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error occurred while reading the reviews input file.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tfor (int i = 0; i < dataParser.allReviews.size(); i++) {\n\t\t\taddProductId(dataParser.allReviews.get(i).get(\"productId\"), i + 1);\n\t\t\tint length = addReviewText(dataParser.allReviews.get(i).get(\"text\"), i + 1);\n\t\t\taddReviewId(dataParser.allReviews.get(i), i, length);\n\t\t}\n\t}", "public void input(File inputFile){\n instantiateTable();\n try{\n String line = \"\";\n //method to scan certain words between 2 delimiting characters, usually blank lines or white spaces or tabs.\n Scanner read = new Scanner(inputFile).useDelimiter(\"\\\\W+|\\\\n|\\\\r|\\\\t|, \");\n //while there is a next word, keeps reading the file \n while (read.hasNext()){\n line = read.next().toLowerCase();\n LLNodeHash words = new LLNodeHash(line, 1, null);\n add(words);\n }\n read.close();\n }\n catch (FileNotFoundException e){\n System.out.print(\"Not found\");\n e.printStackTrace();\n }\n System.out.println(hashTable.length);\n System.out.println(space());\n System.out.println(loadFactor);\n System.out.println(collisionLength());\n print();\n }", "public static void main(String[] args) {\n BufferedReader console = new BufferedReader(\r\n new InputStreamReader(System.in));\r\n System.out.print(\"Please enter data file names: \");\r\n \r\n String params = null;\r\n try {\r\n \tparams = console.readLine();\r\n } catch (IOException e) {\r\n \tparams = null;\r\n }\r\n if (params == null) {\r\n \tSystem.out.print(\"Please enter valid file names.\");\r\n \treturn;\r\n }\r\n \r\n StringTokenizer token = new StringTokenizer(params, \",\");\r\n String[] inputParams = new String[100];\r\n int count = 0;\r\n while (token.hasMoreTokens())\r\n \tinputParams[count++] = token.nextToken().trim();\r\n \r\n String[] inputFiles = new String[count];\r\n System.arraycopy(inputParams, 0, inputFiles, 0, count);\r\n \r\n // Start program\r\n Log log = Log.getInstance();\r\n \r\n scanners = new Scanner[inputFiles.length];\r\n writers = new PrintWriter[inputFiles.length];\r\n filenames = inputFiles;\r\n \r\n for (int i = 0; i < inputFiles.length; i++) {\r\n try {\r\n scanners[i] = new Scanner(new File(inputFiles[i]));\r\n } catch (IOException e) {\r\n System.out.println(\"Could not open input file \" + inputFiles[i] + \" for reading.\");\r\n System.out.println(\"Please check if file exists! \" +\r\n \"Program will terminate after closing any opened files.\");\r\n closeScanners();\r\n return;\r\n }\r\n }\r\n \r\n for (int i = 0; i < inputFiles.length; i++) {\r\n try {\r\n writers[i] = new PrintWriter(getJson(inputFiles[i]));\r\n } catch (IOException e) {\r\n System.out.println(\"Could not open input file \" + inputFiles[i] + \" for writing.\");\r\n System.out.println(\"Program will terminate after closing any opened files.\");\r\n \r\n closeScanners();\r\n closeWriters();\r\n return;\r\n }\r\n }\r\n \r\n /*\r\n */\r\n if (!processFilesForValidation(scanners, writers)) {\r\n closeScanners();\r\n cleanWriters();\r\n return;\r\n }\r\n\r\n /*\r\n * Ask the user to enter the name of one of the created output files to display\r\n */\r\n for (int i = 0; i < 2; ++i) {\r\n System.out.print(\"Enter JSON file name: \");\r\n String file = \"\";\r\n try {\r\n file = console.readLine();\r\n } catch (IOException e) {\r\n\r\n }\r\n BufferedReader reader = null;\r\n try {\r\n reader = new BufferedReader(new FileReader(file));\r\n String line;\r\n while ((line = reader.readLine()) != null)\r\n System.out.println(line);\r\n break;\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"The file does not exist.\");\r\n } catch (IOException e) {\r\n System.out.println(\"Failed to read the file.\");\r\n } finally {\r\n try {\r\n if (reader != null)\r\n reader.close();\r\n } catch (IOException e) {\r\n }\r\n }\r\n }\r\n log.close();\r\n \r\n closeScanners();\r\n closeWriters();\r\n }", "public void buildWordFileMap(){\n hashWords.clear();\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()){ //for all the files selected make the hashWords hashmap\n addWordsFromFile(f);\n }\n \n }", "public void preParseInputFileFF(String inputFolder) {\n System.out.println(\"Parsing FF log file...\");\n serverNames = new LinkedHashSet<>();\n applicationNames = new LinkedHashSet<>();\n serviceNames = new LinkedHashSet<>();\n graphHistory = new HashMap<>();\n serverHistory = new HashMap<>();\n applicationHistory = new HashMap<>();\n robustnessByStep = new HashMap<>();\n int fileStep;\n try {\n // for all files in the input folder\n for (File inputFile : Arrays.asList(new File(inputFolder).listFiles()).stream()\n .filter(file -> !file.isDirectory())\n .collect(Collectors.toList())) {\n // grabbing the step from the file name\n fileStep = Integer.parseInt(inputFile.getName().split(\"_\")[2]);\n graphHistory.put(fileStep, new HashMap<>());\n serverHistory.put(fileStep, new ArrayList<>());\n applicationHistory.put(fileStep, new ArrayList<>());\n List<FakeServer> currentServers = new ArrayList<>();\n BufferedReader br = Files.newBufferedReader(inputFile.toPath());\n String line;\n robustnessByStep.put(fileStep, (double) (Integer.parseInt(br.readLine().split(\"=\")[1].trim())) / 1000d);\n // skipping lines until \"PLATFORMS\"\n while ((line = br.readLine()) != null && !line.equalsIgnoreCase(\"PLATFORMS\")) {\n\n }\n //reading platforms\n while (!(line = br.readLine()).equalsIgnoreCase(\"APPLICATIONS\")) {\n if (line.length() > 0) {\n String server = line;\n String services = br.readLine();\n serverNames.add(server.split(\";\")[0].trim());\n FakeServer fakeServer = new FakeServer(server.split(\";\")[0].trim(), 0,\n Integer.parseInt(server.split(\";\")[1]), Integer.parseInt(server.split(\";\")[2]), fileStep,\n Arrays.asList(services.substring(1, services.length() - 1).split(\",\")).stream()\n .map(String::trim)\n .collect(Collectors.toList()));\n serverHistory.get(fileStep).add(fakeServer);\n currentServers.add(fakeServer);\n graphHistory.get(fileStep).put(fakeServer, new ArrayList<>());\n maxServerGeneration = Math.max(0, maxServerGeneration);\n maxServerConnections = Math.max(Integer.parseInt(server.split(\";\")[1]), maxServerConnections);\n maxServerSize = Math.max(fakeServer.services.size(), maxServerSize);\n serviceNames.addAll(fakeServer.services);\n maxSimultaneousApplications = Math.max(0, maxSimultaneousApplications);\n }\n }\n //reading applications\n while ((line = br.readLine()) != null) {\n if (line.length() > 0) {\n String application = line;\n String services = br.readLine();\n String servers = br.readLine();\n String neighbors = br.readLine();\n FakeApplication fakeApplication = new FakeApplication(application.split(\";\")[0].trim(), 0,\n servers.substring(1, servers.length() - 2).split(\"\\\\s\").length, fileStep,\n Arrays.asList(services.substring(1, services.length() - 1).split(\",\")).stream()\n .map(String::trim)\n .collect(Collectors.toList()),\n neighbors.equalsIgnoreCase(\"\") ? new ArrayList<>() : Arrays.asList(neighbors.substring(1, neighbors.length() - 2).split(\"\\\\s\")).stream()\n .map(neighborName -> (FakeServer) findActor(neighborName, currentServers))\n .collect(Collectors.toList()));\n applicationHistory.get(fileStep).add(fakeApplication);\n for (String server : servers.substring(1, servers.length() - 2).split(\"\\\\s\")) {\n graphHistory.get(fileStep)\n .get(findActor(server, new ArrayList<>(graphHistory.get(fileStep).keySet())))\n .add(fakeApplication);\n }\n applicationNames.add(fakeApplication.name);\n maxApplicationGeneration = Math.max(fakeApplication.generation, maxApplicationGeneration);\n maxApplicationConnections = Math.max(fakeApplication.connections, maxApplicationConnections);\n maxApplicationSize = Math.max(fakeApplication.services.size(), maxApplicationSize);\n serviceNames.addAll(fakeApplication.services);\n }\n }\n serviceNames.remove(\"\");\n stepNumber = Math.max(fileStep + 1, stepNumber);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.out.println(\"Names: \" + serverNames.size() + \"/\" + applicationNames.size() + \"/\" + serviceNames.size());\n System.out.println(\"MaxSimult: \" + maxSimultaneousServers + \"/\" + maxSimultaneousApplications);\n System.out.println(\"MaxGen: \" + maxServerGeneration + \"/\" + maxApplicationGeneration);\n System.out.println(\"MaxSize: \" + maxServerSize + \"/\" + maxApplicationSize);\n }", "private void scanDocuments()\n{\n document_counts = new HashMap<>();\n kgram_counts = new HashMap<>();\n for (File f : root_files) {\n addDocuments(f);\n }\n}", "public void ProcessFiles() {\n LOG.info(\"Processing SrcML files ...\");\n final Collection<File> allFiles = ctx.files.AllFiles();\n int processed = 0;\n final int numAllFiles = allFiles.size();\n final int logDiv = Math.max(1, Math.round(numAllFiles / 100f));\n\n for (File file : allFiles) {\n final String filePath = file.filePath;\n final FilePath fp = ctx.internFilePath(filePath);\n\n Document document = readSrcmlFile(filePath);\n DocWithFileAndCppDirectives extDoc = new DocWithFileAndCppDirectives(file, fp, document, ctx);\n\n internAllFunctionsInFile(file, document);\n processFeatureLocationsInFile(extDoc);\n\n if ((++processed) % logDiv == 0) {\n int percent = Math.round((100f * processed) / numAllFiles);\n LOG.info(\"Parsed SrcML file \" + processed + \"/\" + numAllFiles\n + \" (\" + percent + \"%) (\" + (numAllFiles - processed) + \" to go)\");\n }\n }\n\n LOG.info(\"Parsed all \" + processed + \" SrcML file(s).\");\n }", "public static void files(Scanner input) throws FileNotFoundException { \n File inputName = inputVerify(input); // call inputVerify method to get the name of the input file \n\n System.out.print(\"Output file name: \"); // ask user for output file name and save it to outputFile variable \n\t\tString outputName = input.next();\n\n Scanner inputFile = new Scanner(inputName); // reads input file\n\n // creates a new PrintStream object to print to the output file\n PrintStream output = new PrintStream(new File(outputName)); \n\n // while loop that runs as long as the input file has another line\n while (input.hasNextLine()){\n String line = inputFile.nextLine(); // reads entire line\n output.println(line + \":\"); // prints name to file\n String scoreLine = inputFile.nextLine(); // reads next line\n abCount(scoreLine, output); // call abCount method\n }\n }", "public static void processFile(String inputpath, String outputpath)\r\n\t{\r\n\t\ttry {\r\n\t\t\t//create both files\r\n\t\t\tFile input = new File(inputpath);\r\n\t\t\tFile output = new File(outputpath);\r\n\t\t\t//read over the input file and put the results in the output file\r\n\t\t\tFileWriter fw = new FileWriter(output); \r\n\t\t\tScanner scan = new Scanner(input);\r\n\t\t\twhile(scan.hasNextLine()) {\r\n\t\t\t\tString word = scan.nextLine();\r\n\t\t\t\t//this looks for the word in the data structure.\r\n\t\t\t\t//If it exists, it writes it in the output file\r\n\t\t\t\tif(data.search(word)) {\r\n\t\t\t\t\tfw.write(word);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//If not, it gets the suggestions\r\n\t\t\t\t\tList<String> suggestions = data.suggest(word);\r\n\t\t\t\t\tif(suggestions.size() == 0) {\r\n\t\t\t\t\t\tfw.write(\"There are no suggestions for \"+ word + \".\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tString sugg = \"\";\r\n\t\t\t\t\t\tfor(String s : suggestions) {\r\n\t\t\t\t\t\t\tsugg += s +\" \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfw.write(sugg);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfw.write(\"\\r\\n\"); //this adds a new line\r\n\t\t\t}\r\n\t\t\tfw.close(); \r\n\t\t\tscan.close(); \r\n\t\t} catch (Exception e) {\r\n\t\t\t//If any exception, an error is printed \r\n\t\t\tSystem.out.println(\"Error reading or writing the files\");\r\n\t\t}\r\n\t\t\r\n\t}", "public static HashMap<String, String> processCSVVocabs(String path) throws FileNotFoundException {\n HashMap<String, String> ontoAndTest = new HashMap<>();\n BufferedReader in = null;\n in = new java.io.BufferedReader(new java.io.FileReader(path));\n\n String currentLine;\n int lineN = 0;\n String ontology=\"\";\n String test=\"\";\n String name=\"\";\n try {\n while ((currentLine = in.readLine()) != null) {\n if (lineN == 0) {\n lineN++; //get rid of the headers\n } else {\n //process each vocab\n String[] info = currentLine.split(\";\");\n ontology = info[0];\n test = info[1];\n ontoAndTest.put(ontology,test);\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return ontoAndTest;\n }", "public static void main(String[] args) throws IOException {\n\t\tfileDatabase = new FileData<String, FileObject>();\n\t\tboolean exit = false;\n\n\t\t//Create Scanner for user input\n\t\tScanner input = new Scanner(System.in);\n\t\tScanner read = new Scanner(System.in);\n\n\t\t//Loop to get user input while exit boolean is false\n\t\tdo {\n\t\t\tSystem.out.println(\"Enter: \\n\"\n\t\t\t\t\t+ \"1 to load files\\n\"\n\t\t\t\t\t+ \"2 to do a single file search with matching word count preference\\n\"\n\t\t\t\t\t+ \"3 to do a multiple file search with matching word count preference\\n\"\n\t\t\t\t\t+ \"4 to do a single file search with matching sentence preference\\n\"\n\t\t\t\t\t+ \"5 to do a multiple file search with matching sentence preference\\n\"\n\t\t\t\t\t+ \"6 to exit\");\n\n\t\t\t//Get User Decision\n\t\t\tint decision = input.nextInt();\n\n\t\t\t//Initialize variables \n\t\t\tString[] keyWords;\n\t\t\tFileObject bestFile;\n\t\t\tString userInput;\n\t\t\tLinkedList<Entry<FileObject, Integer>> sortedList;\n\t\t\tIterator<Entry<FileObject, Integer>> it;\n\t\t\tlong startTime, endTime,duration;\n\t\t\t\n\t\t\t//Switch statement based on user input\n\t\t\tswitch(decision){\n\n\t\t\t//LOADING FILES\n\t\t\tcase 1: \n\t\t\t\t//Get Input for files to load\n\t\t\t\tSystem.out.println(\"Specify files to load or enter 'exit' to quit: \");\n\t\t\t\tSystem.out.print(\"Load: \");\n\n\t\t\t\tString[] files = read.nextLine().split(\" \");\n\t\t\t\tif(files[0] == \"exit\"){\n\t\t\t\t\texit = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t//startTime = System.nanoTime();\n\t\t\t\t//Load the files\n\t\t\t\tloadFiles(files);\n\n\t\t\t\t//endTime = System.nanoTime();\n\n\t\t\t\t//duration = (endTime - startTime)/1000000; //divide by 1000000 to get milliseconds\n\t\t\t\t//System.out.println(\"Execution took: \" + duration + \" milliseconds\");\n\t\t\t\tbreak;\n\n\t\t\t\t//SINGLE FILE SEARCH (Word Count Preference)\n\t\t\tcase 2: \n\t\t\t\t//Get input for search\n\t\t\t\tSystem.out.println(\"Enter search or enter 'exit' to quit: \");\n\t\t\t\tuserInput = read.nextLine();\n\t\t\t\tif(userInput == \"exit\")\n\t\t\t\t\texit = true;\n\n\t\t\t\tkeyWords = userInput.split(\" \");\n\n\t\t\t\t//Find the file best matching the keyWords\n\t\t\t\t\n\t\t\t\t//startTime = System.nanoTime();\n\t\t\t\t\n\t\t\t\tbestFile = fileDatabase.bestMatchedWC(keyWords);\n\t\t\t\t\n\t\t\t\t//endTime = System.nanoTime();\n\n\t\t\t\t//duration = (endTime - startTime); //divide by 1000000 to get milliseconds\n\t\t\t\t//System.out.println(\"Execution took: \" + duration + \" milliseconds\");\n\n\t\t\t\tif(bestFile == null)\n\t\t\t\t\tSystem.out.println(\"No File Contains Those Keywords\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"The file best matching your search is: \" + bestFile.getFileName());\n\t\t\t\tbreak;\n\n\t\t\t\t//MULTIPLE FILE SEARCH (Word Count Preference)\n\t\t\tcase 3: \n\t\t\t\t//Get input for search\n\t\t\t\tSystem.out.println(\"Enter search or enter 'exit' to quit: \");\n\t\t\t\tuserInput = read.nextLine();\n\t\t\t\tif(userInput == \"exit\")\n\t\t\t\t\texit = true;\n\n\t\t\t\tkeyWords = userInput.split(\" \");\n\n\t\t\t\t//Find the file best matching the keyWords\n\t\t\t\t//startTime = System.nanoTime();\n\t\t\t\tsortedList = fileDatabase.bestMatchedMultipleWC(keyWords);\n\t\t\t\t\n\t\t\t\t//endTime = System.nanoTime();\n\n\t\t\t\t//duration = (endTime - startTime); //divide by 1000000 to get milliseconds\n\t\t\t\t//System.out.println(\"Execution took: \" + duration + \" milliseconds\");\n\n\t\t\t\tSystem.out.println(\"Files matching your search by word count (in order) are: \\n\");\n\t\t\t\tit = sortedList.iterator();\n\t\t\t\twhile(it.hasNext())\n\t\t\t\t\tSystem.out.println(it.next().getKey().getFileName() + \"\\n\");\n\n\t\t\t\t//System.out.println(sortedList.toString());\n\n\t\t\t\tbreak;\n\n\t\t\t\t//SINGLE FILE SEARCH (Sentence Preference)\n\t\t\tcase 4: \n\t\t\t\t//Get input for search\n\t\t\t\tSystem.out.println(\"Enter search or enter 'exit' to quit: \");\n\t\t\t\tuserInput = read.nextLine();\n\t\t\t\tif(userInput == \"exit\")\n\t\t\t\t\texit = true;\n\n\t\t\t\tkeyWords = userInput.split(\" \");\n\n\t\t\t\t//Find the file best matching the keyWords\n\t\t\t\t//startTime = System.nanoTime();\n\t\t\t\tbestFile = fileDatabase.bestMatchedS(keyWords);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//endTime = System.nanoTime();\n\n\t\t\t\t//duration = (endTime - startTime)/1000000; //divide by 1000000 to get milliseconds\n\t\t\t\t//System.out.println(\"Execution took: \" + duration + \" milliseconds\");\n\n\t\t\t\tif(bestFile == null)\n\t\t\t\t\tSystem.out.println(\"No File Contains Those Keywords\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"The file best matching your search is: \" + bestFile.getFileName());\n\t\t\t\tbreak;\n\n\t\t\t\t//MULTIPLE FILE SEARCH (Sentence Preference)\n\t\t\tcase 5: \n\t\t\t\t//Get input for search\n\t\t\t\tSystem.out.println(\"Enter search or enter 'exit' to quit: \");\n\t\t\t\tuserInput = read.nextLine();\n\t\t\t\tif(userInput == \"exit\")\n\t\t\t\t\texit = true;\n\n\t\t\t\tkeyWords = userInput.split(\" \");\n\n\t\t\t\t//Find the file best matching the keyWords\n\t\t\t\t//startTime = System.nanoTime();\n\t\t\t\tsortedList = fileDatabase.bestMatchedMultipleS(keyWords);\n\t\t\t\t\n\t\t\t\t//endTime = System.nanoTime();\n\n\t\t\t\t//duration = (endTime - startTime)/1000000; //divide by 1000000 to get milliseconds\n\t\t\t\t//System.out.println(\"Execution took: \" + duration + \" milliseconds\");\n\n\t\t\t\tSystem.out.println(\"Files matching your search by sentence (in order) are: \\n\");\n\t\t\t\tit = sortedList.iterator();\n\t\t\t\twhile(it.hasNext())\n\t\t\t\t\tSystem.out.println(it.next().getKey().getFileName() + \"\\n\");\n\t\t\t\tbreak;\n\n\t\t\tcase 6:\n\t\t\t\texit = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t} while(!exit);\n\n\t\tSystem.exit(0);\n\t}", "private static Map<String, List<List<String>>>[] splitYagoDataIntoDocumentSets(File yagoInputFile) {\r\n\t\tMap<String, List<List<String>>> trainData = new HashMap<String, List<List<String>>>();\r\n\t\tMap<String, List<List<String>>> testaData = new HashMap<String, List<List<String>>>();\r\n\t\tMap<String, List<List<String>>> testbData = new HashMap<String, List<List<String>>>();\r\n\t\t\r\n\t\tBufferedReader reader = FileUtil.getFileReader(yagoInputFile.getAbsolutePath());\r\n\t\ttry {\r\n\t\t\tString documentName = null;\r\n\t\t\tString documentSet = null;\r\n\t\t\tList<List<String>> documentLines = null;\r\n\t\t\tList<String> sentenceLines = null;\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tif (line.startsWith(\"-DOCSTART-\")) {\r\n\t\t\t\t\tif (documentSet != null) {\r\n\t\t\t\t\t\tif (documentSet.equals(\"train\"))\r\n\t\t\t\t\t\t\ttrainData.put(documentName, documentLines);\r\n\t\t\t\t\t\telse if (documentSet.equals(\"testa\"))\r\n\t\t\t\t\t\t\ttestaData.put(documentName, documentLines);\r\n\t\t\t\t\t\telse if (documentSet.equals(\"testb\"))\r\n\t\t\t\t\t\t\ttestbData.put(documentName, documentLines);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString docId = line.substring(\"-DOCSTART- (\".length(), line.length() - 1);\r\n\t\t\t\t\tString[] docIdParts = docId.split(\" \");\r\n\t\t\t\t\tdocumentName = docIdParts[0] + \"_\" + docIdParts[1];\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (docIdParts[0].endsWith(\"testa\"))\r\n\t\t\t\t\t\tdocumentSet = \"testa\";\r\n\t\t\t\t\telse if (docIdParts[0].endsWith(\"testb\"))\r\n\t\t\t\t\t\tdocumentSet = \"testb\";\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tdocumentSet = \"train\";\r\n\t\t\t\t\t\r\n\t\t\t\t\tdocumentLines = new ArrayList<List<String>>();\r\n\t\t\t\t\tsentenceLines = new ArrayList<String>();\r\n\t\t\t\t} else if (line.trim().length() == 0) {\r\n\t\t\t\t\tdocumentLines.add(sentenceLines);\r\n\t\t\t\t\tsentenceLines = new ArrayList<String>();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsentenceLines.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (documentSet.equals(\"train\"))\r\n\t\t\t\ttrainData.put(documentName, documentLines);\r\n\t\t\telse if (documentSet.equals(\"testa\"))\r\n\t\t\t\ttestaData.put(documentName, documentLines);\r\n\t\t\telse if (documentSet.equals(\"testb\"))\r\n\t\t\t\ttestbData.put(documentName, documentLines);\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tMap<String, List<List<String>>>[] returnData = new HashMap[3];\r\n\t\treturnData[0] = trainData;\r\n\t\treturnData[1] = testaData;\r\n\t\treturnData[2] = testbData;\r\n\t\t\r\n\t\treturn returnData;\r\n\t}", "public static HashMap<String, IRI> processCSVGoTHash(String path) throws FileNotFoundException {\n BufferedReader in = null;\n in = new java.io.BufferedReader(new java.io.FileReader(path));\n String currentLine;\n int lineN = 0;\n String value=\"\";\n String term=\"\";\n HashMap<String, IRI> got = new HashMap<String, IRI>();\n try {\n while ((currentLine = in.readLine()) != null) {\n if (lineN == 0) {\n lineN++; //get rid of the headers\n } else {\n //process each vocab\n String[] info = currentLine.split(\";\");\n if(info.length==2) {\n value = info[0];\n term = info[1];\n }\n got.put(value, IRI.create(term));\n\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return got ;\n }", "private FileManager()\n {\n bookFile.open(\"bookdata.txt\");\n hisFile.open(\"history.txt\");\n idFile.open(\"idpassword.txt\");\n createIDMap();\n createHisMap(Customer.getInstance());\n }", "public void readTable() {\r\n\r\n try ( BufferedReader b = new BufferedReader(new FileReader(\"Hashdata.txt\"))) {\r\n\r\n String line;\r\n ArrayList<String> arr = new ArrayList<>();\r\n while ((line = b.readLine()) != null) {\r\n\r\n arr.add(line);\r\n }\r\n\r\n for (String str : arr) {\r\n this.load(str);\r\n }\r\n this.print();\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"Unable to read file\");\r\n }\r\n\r\n this.userInterface();\r\n\r\n }", "@SuppressWarnings({\"PMD.EmptyCatchBlock\", \"PMD.CloseResource\", \"PMD.UseTryWithResources\"})\n private void merge(@Nonnull Collection<File> inputFiles, @Nonnull File outputFile) throws IOException, GeneralSecurityException {\n final long startTime = System.nanoTime();\n final List<InputState> inputs = new ArrayList<>(inputFiles.size());\n OutputState output = null;\n boolean success = false;\n try {\n for (File file : inputFiles) {\n InputState input = new InputState(file, adapter);\n inputs.add(input);\n input.next();\n }\n output = new OutputState(outputFile, adapter);\n while (true) {\n InputState minState = null;\n for (InputState input : inputs) {\n if (input.key != null) {\n if (minState == null) {\n minState = input;\n } else {\n int comp = adapter.isSerializedOrderReversed() ?\n ByteArrayUtil.compareUnsigned(input.key, minState.key) :\n ByteArrayUtil.compareUnsigned(minState.key, input.key);\n if (comp > 0) {\n minState = input;\n }\n }\n }\n }\n if (minState == null) {\n break;\n }\n output.next(minState.key, minState.value);\n minState.next();\n }\n output.finish();\n output.close();\n success = true;\n } finally {\n if (output != null) {\n try {\n output.close();\n } catch (IOException ex) {\n // swallow cleanup error\n }\n if (!success) {\n try {\n deleteFile(outputFile);\n } catch (IOException ex) {\n // swallow cleanup error\n }\n }\n }\n for (InputState input : inputs) {\n try {\n input.close();\n if (success) {\n deleteFile(input.file);\n }\n } catch (IOException ex) {\n // swallow cleanup error\n }\n }\n if (timer != null) {\n timer.recordSinceNanoTime(SortEvents.Events.FILE_SORT_MERGE_FILES, startTime);\n }\n }\n }", "@Override\n public void saveDataFromCsvFile(List<TimetableUpload> inputData) {\n Map<String, Timetable> timetables = new HashMap<>();\n Semester semester = semesterService.getLatestSemester();\n Long latestVersionInSemester = timetableService.getLatestTimetableVersionInSemester(semester.getId());\n\n //timetableUpload = eden red od csv fajlot\n for (TimetableUpload timetableUpload : inputData) {\n //odreduvanje na modul\n String studentGroup = timetableUpload.getModule();\n String identifier = timetableUpload.getProfessor() + \" \" + timetableUpload.getSubject() + \" \" + timetableUpload.getRoom() + \" \" + studentGroup + \" \" + timetableUpload.getDay();\n\n if (!timetables.containsKey(identifier)) {\n\n //vnesuvanje na profesori i asistenti\n Professor professor = professorService.getProfessorByName(timetableUpload.getProfessor());\n if(professor == null) {\n professorService.saveProfessor(timetableUpload.getProfessor());\n professor = professorService.getProfessorByName(timetableUpload.getProfessor());\n }\n\n Subject subject = subjectService.getSubjectByName(timetableUpload.getSubject());\n if (subject == null) {\n subjectService.saveSubject(timetableUpload.getSubject());\n subject = subjectService.getSubjectByName(timetableUpload.getSubject());\n }\n\n Timetable newTimetable = new Timetable(8 + Long.parseLong(timetableUpload.getHourFrom()),\n 9 + Long.parseLong(timetableUpload.getHourFrom()), Long.parseLong(timetableUpload.getDay()), timetableUpload.getRoom(),\n studentGroup, professor, subject, semester, latestVersionInSemester + 1);\n timetables.put(identifier, newTimetable);\n } else {\n Timetable existingTimetable = timetables.get(identifier);\n existingTimetable.setHourTo(existingTimetable.getHourTo() + 1);\n timetables.replace(identifier, existingTimetable);\n }\n timetableService.saveAll(timetables.values());\n }\n }", "private static void populateDataStructures(\r\n final String filename,\r\n final Map<String, List<String>> sessionsFromCustomer,\r\n Map<String, List<View>> viewsFromSessions,\r\n Map<String, List<Buy>> buysFromSessions\r\n\r\n /* add parameters as needed */\r\n )\r\n throws FileNotFoundException\r\n {\r\n try (Scanner input = new Scanner(new File(filename)))\r\n {\r\n processFile(input, sessionsFromCustomer,\r\n viewsFromSessions, buysFromSessions\r\n /* add arguments as needed */ );\r\n }\r\n }", "public void storeValue() {\n\t\tScanner s;\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\SubR1.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tSubR1.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\SubR2.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tSubR2.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\SubIRR.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tSubIRR.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\PredR1.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tPredR1.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\PredR2.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tPredR2.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\PredR3.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tPredR3.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\ObjR1.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tObjR1.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\ObjR2.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tObjR2.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\PrepR1.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tPrepR1.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void main(String[] args) throws FileNotFoundException{ \n File file = new File(\"/Users/admin/NetBeansProjects/AlgoDataA3/src/algodataa3e3/output_interpret.txt\");\n Scanner input = new Scanner(file); \n \n SeparateChainingHash_A3E3<String, Integer> st = new SeparateChainingHash_A3E3<>(INTERVAL);\n //141491 words\n //9944 uniqe (with toLowerCase)\n \n //read file word by word and store in array\n while (input.hasNext()) {\n String key = input.next().toLowerCase();\n st.put(key, 1);\n }\n \n for(int i = 0; i < INTERVAL; i++){\n \n System.out.println(\"In hash #\" + (i+1) + \" there are \" + st.sizeOfList(i) + \" nodes\");\n }\n }", "static void ReadAndWriteDataSet(String folderName) throws IOException\n\t{\n\t\t\n\t\t String path = \"data\"+FS+\"data_stage_one\"+FS+folderName; // Folder path \n\t\t \n\t\t String filename, line;\n\t\t File folder = new File(path);\n\t\t File[] listOfFiles = folder.listFiles();\n\t\t BufferedReader br = null;\n\t\t for(int i=0; i < listOfFiles.length; i++)\n\t\t { \n\t\t\t System.out.println(listOfFiles[i].getName());\n\t\t\t filename = path+FS+listOfFiles[i].getName();\n\t\t\t try\n\t\t\t {\n\t\t\t\t br= new BufferedReader(new FileReader(new File(filename)));\n\t\t\t\t while((line = br.readLine())!= null)\n\t\t\t\t {\n\t\t\t\t\tfor(int j=0; j<prep.length; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(line);\n\t\t\t\t\t\twhile(st.hasMoreTokens())\n\t\t\t\t\t\t\tif(st.nextToken().equalsIgnoreCase(prep[j]))\n\t\t\t\t\t\t\t{\t//System.out.println(line);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(arr[j] == null)\n\t\t\t\t\t\t\t\t\tarr[j] = new ArrayList<String>();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tarr[j].add(line.toLowerCase().replaceAll(\"\\\\p{Punct}\",\"\").trim().replaceAll(\"\\\\s+\", \" \"));\n\t\t\t\t\t\t\t\tbreak;\n\t\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 }\n\t\t\t catch(Exception e)\n\t\t\t {\n\t\t\t\t System.err.println(\"exception: \"+e.getMessage() );\n\t\t\t\t e.printStackTrace();\n\t\t\t\t System.exit(0);\n\t\t\t }\n\t\t\t finally\n\t\t\t {\n\t\t\t\t br.close();\n\t\t\t }\n\t\t }\n\t\t \n\t\t // Writes the entire arraylist(preposition wise seperated files)\n\t\t \n\t\t WriteSeperated(folderName);\n\t\t \n\t\t for(int i=0; i<prep.length; i++)\n\t\t {\n\t\t\t arr[i].clear();\n\t\t }\n\t\t \n\t}", "private List<Integer> parseFile(Scanner input) {\n mySimType = input.next();\n myCellShape = input.next();\n neighborPolicy = input.next();\n edgePolicy = input.next();\n isOutlined = input.next();\n initialConfig = input.next();\n\n myNumStates = input.nextInt();\n myStateMap = new HashMap<>();\n for (int i = 0; i < myNumStates; i++){\n var name = input.next();\n var type = input.nextInt();\n var colorString = input.next();\n var image = input.next();\n var prob = Double.parseDouble(input.next());\n var amt = input.nextInt();\n State s = new State(name, type, Color.valueOf(colorString), image, prob, amt);\n myStateMap.put(type, s);\n }\n\n numCols = input.nextInt();\n numRows = input.nextInt();\n\n checkValid();\n\n return getResults(input);\n }", "public void parseFileForInput(emailValidator sortingObject){\n File fileObj;\n try {\n fileObj = new File(sortingObject.getPath());\n Scanner scannerObj = new Scanner(fileObj);\n \n while(scannerObj.hasNextLine()){\n String currentEmail = scannerObj.nextLine();\n\n //for each email, call validate method on it\n if(isEmailValid(currentEmail) && !currentEmail.equals(\"end\")){\n String domainEnding = extractEmailEnding(currentEmail);\n sortingObject.allEmails.put(currentEmail, domainEnding);\n\n }\n else if(currentEmail.equals(\"end\")){\n scannerObj.close();\n break;\n }\n }\n scannerObj.close();\n } \n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n}", "public static void readFileToMap(Map<String, List<Integer>> hashMap, String path, int numFiles, int thisFileNum){\n try{\n FileReader file = new FileReader(path);\n BufferedReader textFile = new BufferedReader(file);\n\n String fileLine = \"\";\n String[] wordsInLine;\n List<Integer> occurences;\n List<Integer> temp;\n\n while((fileLine = textFile.readLine()) != null){\n wordsInLine = fileLine.split(\" \");\n cleanLine(wordsInLine);\n //add them to map\n for(String word : wordsInLine){\n\n if(word.length() > Table.maxWordLength){ //keeps track of the longest character\n Table.setMaxWordLength(word.length());\n }\n\n if(!hashMap.containsKey(word)){\n occurences = new ArrayList<>(); //creating a new value makes it so that one change wont affect every HashMap element\n occurences = setZerosList(numFiles);\n occurences.set(thisFileNum, 1);\n hashMap.put(word, occurences);\n }\n else{\n temp = hashMap.get(word); //this code makes a new list, and increments the word appearance by 1\n temp.set(thisFileNum, temp.get(thisFileNum)+1);\n hashMap.put(word, temp );\n }\n }\n }\n }\n catch (Exception e){\n //e.printStackTrace();\n return;\n }\n }", "private void readFileAndStoreData_(String fileName) {\n In in = new In(fileName);\n int numberOfTeams = in.readInt();\n int teamNumber = 0;\n while (!in.isEmpty()) {\n assignTeam_(in, teamNumber);\n assignTeamInfo_(in, numberOfTeams, teamNumber);\n teamNumber++;\n }\n }", "public void parse(String userInput) {\n\t\tString[] args = toStringArray(userInput, ' ');\n\t\tString key = \"\";\n\t\tArrayList<String> filePaths = new ArrayList<String>();\n\t\tboolean caseSensitive = true;\n\t\tboolean fileName = false;\n\n\t\t// resolves the given args\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\tif (args[i].equals(\"-i\")) {\n\t\t\t\tcaseSensitive = false;\n\t\t\t} else if (args[i].equals(\"-l\")) {\n\t\t\t\tfileName = true;\n\t\t\t} else if (args[i].contains(\".\")) {\n\t\t\t\tfilePaths.add(args[i]);\n\t\t\t} else {\n\t\t\t\tkey = args[i];\n\t\t\t}\n\t\t}\n\t\t// in the case of multiple files to parse this repeats until all files\n\t\t// have been searched\n\t\tfor (String path : filePaths) {\n\t\t\tthis.document = readFile(path);\n\t\t\tfindMatches(key, path, caseSensitive, fileName);\n\t\t}\n\t}", "public static void main(String[] args) throws IOException{\n\n\t\tString inputUri = args[0];\n\t\tString basePath = args[1];\n\t\tString outPutFile = args[2];\n\t\t\n\n\t\t// Helper classes for writing files\n\t\tWriteHashMap sparkHadoopHashMapWriter = new WriteHashMap();\n\t\t// The path of the hadoop file\n\t\t// This is the default 2 line structure for Spark applications\n\t\tSparkConf conf = new SparkConf().setMaster(\"local[*]\")\n\t\t\t\t.setAppName(ProcessHadoopFile.class.getSimpleName());\n\t\tconf.set(\"spark.driver.maxResultSize\", \"14g\");\n\t\t// Set the config\n\t\tJavaSparkContext sc = new JavaSparkContext(conf);\n\t\t// Read in with spark\n\t\tJavaPairRDD<String, byte[]> totalDataset = sc\n\t\t\t\t.sequenceFile(inputUri, Text.class, BytesWritable.class, 24 * 3)\n\t\t\t\t.mapToPair(new ByteWriteToByteArr());\n\t\t// GET THE TOTAL MAP\n\t\tJavaPairRDD<String, byte[]> mainMap = totalDataset.filter(t -> t._1.endsWith(\"_total\"))\n\t\t\t\t.mapToPair(new RemoveSuffixAndGzip());\n\n\t\t// NOW GET THE HEADER MAP\n\t\tJavaPairRDD<String, byte[]> headerMap = totalDataset.filter(new Function<Tuple2<String,byte[]>, Boolean>() {\n\n\t\t\t/**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = 7574230201179927345L;\n\n\t\t\t@Override\n\t\t\tpublic Boolean call(Tuple2<String, byte[]> v1) throws Exception {\n\t\t\t\tif(v1._1.endsWith(\"_header\")==true){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}).mapToPair(new RemoveSuffixAndGzip());\n\n\t\t/// NOW GET THE CALPHA MAP\n\t\tJavaPairRDD<String, byte[]> calphaMap = totalDataset.filter(new Function<Tuple2<String,byte[]>, Boolean>() {\n\n\t\t\t/**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = -8312184119385524L;\n\n\t\t\t@Override\n\t\t\tpublic Boolean call(Tuple2<String, byte[]> v1) throws Exception {\n\t\t\t\tif(v1._1.endsWith(\"_calpha\")==true){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}).mapToPair(new RemoveSuffixAndGzip());\n\n\t\t// Now write the hadoop sequence file as the whole pdb\n\t\t// Now collect these as maps\n\n\t\tsparkHadoopHashMapWriter.writeHashMapToFile(headerMap.collectAsMap(), basePath+\"headerMap.map\");\n\t\tsparkHadoopHashMapWriter.writeHashMapToFile(calphaMap.collectAsMap(), basePath+\"calphaMap.map\");\n\t\t// Now do the main map\n\t\t//\t\t Now write this out as a hash map\n\t\tsparkHadoopHashMapWriter.writeHashMapToFile(mainMap.collectAsMap(), basePath+\"mainMap.map\");\n\n\t\t// Don't write the structures out as fat files\n//\t\tList<Partition> parted = mainMap.partitions();\n//\t\tfor(int i=0; i<parted.size();i++){\n//\t\t\tint[] thisArr = new int[1];\n//\t\t\tthisArr[0] = i;\n//\t\t\tList<Tuple2<String, byte[]>> ans = mainMap.collectPartitions(thisArr)[0];\n//\t\t\t// Now write the files to the file system\n//\t\t\twriteToFile(ans, basePath);\n//\t\t}\n\n\t\t// Now get the total dataset - without gzip and write to a hadoop sequence file\n\t\tJavaPairRDD<String, byte[]> mainMapNoGzip = totalDataset.filter(new Function<Tuple2<String,byte[]>, Boolean>() {\n\n\t\t\t/**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = -7172364344277495432L;\n\n\t\t\t@Override\n\t\t\tpublic Boolean call(Tuple2<String, byte[]> v1) throws Exception {\n\t\t\t\tif(v1._1.endsWith(\"_total\")==true){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}).mapToPair(new RemoveSuffix());\n\n\t\tJavaPairRDD<Text, BytesWritable> mainDataset = mainMapNoGzip.mapToPair(new StringByteToTextByteWriter());\n\t\tString outURI = basePath+\"hadoopFullData\";\t\t\n\t\tmainDataset.saveAsHadoopFile(outURI, Text.class, BytesWritable.class, SequenceFileOutputFormat.class, org.apache.hadoop.io.compress.BZip2Codec.class);\n\t\tsc.close();\n\t\tFile f = new File(outPutFile);\n\t\tf.getParentFile().mkdirs(); \n\t\tf.createNewFile();\n\t\t\n\t}", "public CreateInputFiles()\n\t{\n\t\ttry\n\t\t{\n\t\t\tEXCEL_FILE = new FileInputStream(new File(INPUT_FILE_NAME));\n\t\t\t/* Log File */\n\t\t\tLOG_WRITER = writerCreator(LOG_FILE, BLANK);\n\t\t\tLOG_WRITER.write(START_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\tSystem.out.println(NEW_LINE + START_TIME + new java.util.Date() + LINE_SEPERATOR);\n\n\t\t\t/* Service Part Creation */\n\t\t\tSERVICE_PART_WRITER = writerCreator(SERVICE_PARTS_CREATION_INPUT_FILE,\n\t\t\t\t\tSERVICE_PART_CREATION_CONFIG);\n\n\t\t\t/* Service Form Update */\n\t\t\tSERVICE_FORM_WRITER = writerCreator(SERVICE_FORM_PROPERTIES_INPUT_FILE,\n\t\t\t\t\tSERVICE_FORM_UPDATE_CONFIG);\n\n\t\t\t/* PS_UPLOAD - Service Structures Creation \n\t\t\tPS_STRUCTURE_WRITER = writerCreator(PS_STRUCTURE_CREATION_INPUT_FILE,\n\t\t\t\t\tPS_STRUCTURE_CREATION_CONFIG); */\n\n\t\t\t/* Service Structures Creation */\n\t\t\tSTRUCTURE_WRITER = writerCreator(STRUCTURE_CREATION_INPUT_FILE,\n\t\t\t\t\tSTRUCTURE_CREATION_CONFIG);\n\n\t\t\t/* EngParts' Service Form Creation and Attachment*/\n\t\t\tEP_SERVICE_FORM_WRITER = writerCreator(EP_SERVICE_FORM_CREATION_INPUT_FILE,\n\t\t\t\t\tEP_SERVICE_FORM_CREATION_CONFIG);\n\n\t\t\t/* Service Parts' Global Alternate */\n\t\t\tSP_GLOBAL_ALT_WRITER = writerCreator(SP_GLOBAL_ALT_INPUT_FILE, BLANK);\n\n\t\t\t/* Service Parts' Group ID update */\n\t\t\tSP_GROUP_ID_WRITER = writerCreator(SP_GROUP_ID_INPUT_FILE, SP_GROUP_ID_UPDATE_CONFIG);\n\n\t\t\t/* Relate Service Parts to three types of attachments*/\n\t\t\tSP_ATTACHMENT_WRITER = writerCreator(SP_ATTACHMENT_INPUT_FILE, SP_ATTACHMENT_CONFIG);\n\n\t\t\t/* Made From Relation Creation */\n\t\t\tMADE_FROM_RELATION_WRITER = writerCreator(MADE_FROM_REL_INPUT_FILE,\n\t\t\t\t\tMADE_FROM_REL_CONFIG);\n\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(EXCEPTION + e.getMessage());\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public void processInput(String theFile){processInput(new File(theFile));}", "public void readFile() throws NumberFormatException,FileNotFoundException {\n Scanner scanStar, scanMessier, scanPlanet;\n String raw_data;\n String[] values;\n Set<String> identifyName = new HashSet<>();\n // Create scanner to scan file\n scanStar = new Scanner(new File(filename[0]));\n scanMessier = new Scanner(new File(filename[1]));\n scanPlanet = new Scanner(new File(filename[2]));\n\n // Read data about Star and store\n Star star;\n while (scanStar.hasNext()){\n raw_data = scanStar.nextLine();\n values = processData(raw_data, 1);\n // Check whether there is the same object or the data is wrong\n if (values.length != 7 || identifyName.contains(values[0])){\n System.out.println(\"There are some mistakes in Star file\");\n System.exit(1);\n }\n star = new Star();\n star.setNumber(values[0]);\n star.setRa(Double.parseDouble(values[1]));\n star.setDecl(Double.parseDouble(values[2]));\n star.setMagn(Double.parseDouble(values[3]));\n star.setDistance(Double.parseDouble(values[4]));\n star.setType(values[5]);\n star.setConstellation(values[6]);\n // Add object to collection\n aos.add(star);\n identifyName.add(star.getNumber());\n }\n scanStar.close();\n\n // Read data about Messier and store\n Messier messier;\n while (scanMessier.hasNext()){\n raw_data = scanMessier.nextLine();\n values = processData(raw_data, 1);\n if (values.length < 6 || identifyName.contains('M' + values[0])){\n System.out.println(\"There are some mistakes in Messier file\");\n System.exit(1);\n }\n messier = new Messier();\n messier.setNumber(\"M\" + values[0]);\n messier.setRa(Double.parseDouble(values[1]));\n messier.setDecl(Double.parseDouble(values[2]));\n messier.setMagn(Double.parseDouble(values[3]));\n messier.setDistance(Double.parseDouble(values[4]));\n messier.setConstellation(values[5]);\n if (values.length == 7){\n messier.setDescription(values[6]);\n }else {\n messier.setDescription(\"-\");\n }\n // Add object to collection\n aos.add(messier);\n identifyName.add(messier.getNumber());\n }\n scanMessier.close();\n\n // Read data about Planet and store\n Planet planet;\n while (scanPlanet.hasNext()){\n raw_data = scanPlanet.nextLine();\n values = processData(raw_data, 0);\n if (values.length != 6 || identifyName.contains(values[0])){\n System.out.println(\"There are some mistakes in Planet file\");\n System.exit(1);\n }\n planet = new Planet();\n planet.setName(values[0]);\n planet.setRa(Double.parseDouble(values[1]));\n planet.setDecl(Double.parseDouble(values[2]));\n planet.setMagn(Double.parseDouble(values[3]));\n planet.setDistance(Double.parseDouble(values[4]));\n planet.setAlbedo(Double.parseDouble(values[5]));\n // Add object to collection\n aos.add(planet);\n identifyName.add(planet.getName());\n }\n scanPlanet.close();\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static void createMigrationInputFiles()\n\t{\n\t\t@SuppressWarnings({ \"rawtypes\" })\n\t\tMultiValueMap structureMap = new MultiValueMap(); // MultiValueMap for adding child item rows for every parentId\n\n\t\ttry\n\t\t{\n\t\t\tWorkbook workbook = new XSSFWorkbook(EXCEL_FILE);\n\t\t\tSheet datatypeSheet = workbook.getSheetAt(0);\n\n\t\t\tint linkDocCount = 0, linkDwgCount = 0, linkPurchSpecCount = 0, linkMadeFromCount = 0, engParts = 0, altPartsCount = 0;\n\n\t\t\tList<String> serviceItemsList = new ArrayList<String>();\n\t\t\tList<String> engItemsList = new ArrayList<String>();\n\n\t\t\t// Skipping top two rows\n\t\t\tIterator<Row> rowIterator = datatypeSheet.iterator();\n\t\t\tif (rowIterator.hasNext())\n\t\t\t\trowIterator.next();\n\t\t\tif (rowIterator.hasNext())\n\t\t\t\trowIterator.next();\n\n\t\t\t// Reading the rows one by one\n\t\t\twhile (rowIterator.hasNext())\n\t\t\t{\n\t\t\t\tcurrentRow = rowIterator.next();\n\t\t\t\tString tierType = BLANK;\n\t\t\t\tif (v(TIER_TYPE) != null && v(TIER_TYPE).trim().length() != 0\n\t\t\t\t\t\t&& !v(TIER_TYPE).trim().isEmpty())\n\t\t\t\t{\n\t\t\t\t\ttierType = v(TIER_TYPE).replace(SEMICOLON_SPACE, COMMA);\n\t\t\t\t\ttierType = tierType.replace(SPACE_SEMICOLON, COMMA);\n\t\t\t\t\ttierType = tierType.replace(SEMICOLON, COMMA);\n\t\t\t\t}\n\n\t\t\t\tString engineFamily = BLANK;\n\t\t\t\tif (v(ENGINE_FAMILY) != null && v(ENGINE_FAMILY).trim().length() != 0\n\t\t\t\t\t\t&& !v(ENGINE_FAMILY).trim().isEmpty())\n\t\t\t\t{\n\t\t\t\t\tengineFamily = v(ENGINE_FAMILY).replace(SEMICOLON_SPACE, COMMA);\n\t\t\t\t\tengineFamily = engineFamily.replace(SPACE_SEMICOLON, COMMA);\n\t\t\t\t\tengineFamily = engineFamily.replace(SEMICOLON, COMMA);\n\t\t\t\t\t/*\n\t\t\t\t\tengineFamily = v(ENGINE_FAMILY).replace(SPACE, BLANK);\n\t\t\t\t\tengineFamily = engineFamily.replace(SEMICOLON, COMMA);*/\n\t\t\t\t}\n\n\t\t\t\tString componentId = BLANK;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif (v(SERVICE_CMP_ID) != null && v(SERVICE_CMP_ID).trim().length() != 0\n\t\t\t\t\t\t\t&& !v(SERVICE_CMP_ID).trim().isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\t/*System.out.println(currentRow.getCell(SERVICE_CMP_ID)\n\t\t\t\t\t\t\t\t.getRichStringCellValue()); */\n\t\t\t\t\t\tcomponentId = (currentRow.getCell(SERVICE_CMP_ID).getRichStringCellValue())\n\t\t\t\t\t\t\t\t.toString();\n\t\t\t\t\t\tcomponentId = componentId.replace(SEMICOLON_SPACE, COMMA);\n\t\t\t\t\t\tcomponentId = componentId.replace(SPACE_SEMICOLON, COMMA);\n\t\t\t\t\t\tcomponentId = componentId.replace(SEMICOLON, COMMA);\n\t\t\t\t\t\t//System.out.println(componentId);\n\t\t\t\t\t}\n\t\t\t\t} catch (IllegalStateException e)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\\nError : Item \" + v(ITEM_ID)\n\t\t\t\t\t\t\t+ \" has invalid Component ID formula.\");\n\t\t\t\t\tLOG_WRITER.write(\"\\nError : Item \" + v(ITEM_ID)\n\t\t\t\t\t\t\t+ \" has invalid Component ID formula.\");\n\t\t\t\t}\n\n\t\t\t\tString catalogNum = BLANK;\n\t\t\t\tif (v(CATALOG_ITEM) != null && v(CATALOG_ITEM).trim().length() != 0\n\t\t\t\t\t\t&& !v(CATALOG_ITEM).trim().isEmpty())\n\t\t\t\t{\n\t\t\t\t\tcatalogNum = v(CATALOG_ITEM).replace(SPACE, BLANK);\n\t\t\t\t\tcatalogNum = catalogNum.replace(SEMICOLON, COMMA);\n\t\t\t\t}\n\t\t\t\t//convertRowToPipeDelimited(currentRow);\n\t\t\t\t//if it is for Service Part\n\t\t\t\tif (v(LINE_TYPE).equals(NEW_SERVICE_PART))\n\t\t\t\t{\n\t\t\t\t\t/* Check for the revision field */\n\t\t\t\t\tString revision_id = DEFAULT_REVISION_ID;\n\t\t\t\t\tif (v(REVISION) != null && v(REVISION).trim().length() != 0\n\t\t\t\t\t\t\t&& !v(REVISION).trim().isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\trevision_id = v(REVISION).replace(SPACE, BLANK);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Service Part Writer */\n\n\t\t\t\t\tif (!serviceItemsList.contains(v(ITEM_ID)))\n\t\t\t\t\t{\n\t\t\t\t\t\tSERVICE_PART_WRITER\n\t\t\t\t\t\t\t\t.write(v(ITEM_ID)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(ITEM_NAME)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ revision_id\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ TYPE_REAL_NAME\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ ((v(UOM) == null || v(UOM).trim().length() == 0\n\t\t\t\t\t\t\t\t\t\t\t\t|| v(UOM).trim().isEmpty() || v(UOM)\n\t\t\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(EACH)) ? BLANK : v(UOM).trim())\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(IP_CLASS)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(OBJ_WEIGHT)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(OBJ_WEIGHT_UOM)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(ENG_PRODUCT_LINE)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ ((v(DATA_MODEL).contains(MODEL_BASED)) ? MB\n\t\t\t\t\t\t\t\t\t\t\t\t: ((v(DATA_MODEL).contains(MODEL_CENTRIC)) ? MC\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: BLANK)\n\n\t\t\t\t\t\t\t\t\t\t)\n\n\t\t\t\t\t\t\t\t\t\t+ DEL + v(ECCN) + DEL + v(ECCN_SOURCE) + DEL + v(OBJ_EVI)\n\t\t\t\t\t\t\t\t\t\t+ DEL + v(CTQ) + DEL + v(CCC) + DEL + v(ECC) + DEL + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(HOMOLOGATION) + DEL + v(CRITICAL_PART) + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(ENG_MAKE_BUY) + NEW_LINE);\n\n\t\t\t\t\t\t/* Service Form Update Writer */\n\t\t\t\t\t\tSERVICE_FORM_WRITER\n\t\t\t\t\t\t\t\t.write(v(ITEM_NAME) + DEL + v(ITEM_ID) + DEL + componentId + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(SERVICEABLE) + DEL + v(REPAIRABLE) + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(SERIALIZED) + DEL + v(POS_TRACKED) + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(SERVICE_ITEM_TYPE) + DEL + tierType + DEL\n\t\t\t\t\t\t\t\t\t\t+ engineFamily + DEL + catalogNum + NEW_LINE);\n\n\t\t\t\t\t\t/* Service Parts' Owning Group update */\n\t\t\t\t\t\tSP_GROUP_ID_WRITER.write(v(ITEM_ID) + NEW_LINE);\n\n\t\t\t\t\t\t/* Relate Service Parts to Document */\n\t\t\t\t\t\tif (v(LINK_DOC) != null && v(LINK_DOC).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_DOC).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSP_ATTACHMENT_WRITER.write(v(ITEM_ID) + DEL + revision_id + DEL\n\t\t\t\t\t\t\t\t\t+ v(LINK_DOC) + DEL + SP_DOC_RELATION_NAME + NEW_LINE);\n\t\t\t\t\t\t\tlinkDocCount++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Relate Service Parts to Drawing */\n\t\t\t\t\t\tif (v(LINK_DWG) != null && v(LINK_DWG).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_DWG).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSP_ATTACHMENT_WRITER.write(v(ITEM_ID) + DEL + revision_id + DEL\n\t\t\t\t\t\t\t\t\t+ v(LINK_DWG) + DEL + SP_DWG_RELATION_NAME + NEW_LINE);\n\t\t\t\t\t\t\tlinkDwgCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/* Relate Service Parts to Purchase Specifications */\n\t\t\t\t\t\tif (v(LINK_PURCHSPEC) != null && v(LINK_PURCHSPEC).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_PURCHSPEC).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSP_ATTACHMENT_WRITER.write(v(ITEM_ID) + DEL + revision_id + DEL\n\t\t\t\t\t\t\t\t\t+ v(LINK_PURCHSPEC) + DEL + SP_PURCHSPEC_RELATION_NAME\n\t\t\t\t\t\t\t\t\t+ NEW_LINE);\n\t\t\t\t\t\t\tlinkPurchSpecCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/* Relate Service Parts to MadeFrom */\n\t\t\t\t\t\tif (v(LINK_MADEFROM) != null && v(LINK_MADEFROM).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_MADEFROM).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tMADE_FROM_RELATION_WRITER.write(v(ITEM_ID) + DEL + v(LINK_MADEFROM)\n\t\t\t\t\t\t\t\t\t+ DEL + SP_MADEFROM_RELATION_NAME + NEW_LINE);\n\t\t\t\t\t\t\tlinkMadeFromCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tserviceItemsList.add(v(ITEM_ID));\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG_WRITER.write(DUPLICATE_ENTRY + v(ITEM_ID));\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\telse if (v(LINE_TYPE).equals(EXISTING_ENG_PART))\n\t\t\t\t{\n\t\t\t\t\t/* EngParts' Service Form Creation - ITEM_ID will be used as the Service Form's NAME */\n\t\t\t\t\tif (!engItemsList.contains(v(ITEM_ID)))\n\t\t\t\t\t{\n\t\t\t\t\t\tEP_SERVICE_FORM_WRITER.write(v(ITEM_NAME) + DEL + componentId + DEL\n\t\t\t\t\t\t\t\t+ v(SERVICEABLE) + DEL + v(REPAIRABLE) + DEL + v(SERIALIZED) + DEL\n\t\t\t\t\t\t\t\t+ v(POS_TRACKED) + DEL + v(SERVICE_ITEM_TYPE) + DEL + tierType\n\t\t\t\t\t\t\t\t+ DEL + engineFamily + DEL + catalogNum + DEL + v(ITEM_ID)\n\t\t\t\t\t\t\t\t+ NEW_LINE);\n\t\t\t\t\t\tengParts++;\n\t\t\t\t\t\tengItemsList.add(v(ITEM_ID));\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG_WRITER.write(DUPLICATE_ENTRY + v(ITEM_ID));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/*\tAdd child item rows for each assembly */\n\t\t\t\tif (v(PARENT_ID) != null && v(PARENT_ID).trim().length() != 0\n\t\t\t\t\t\t&& !v(PARENT_ID).isEmpty())\n\t\t\t\t{\n\t\t\t\t\tstructureMap.put(v(PARENT_ID), currentRow.getRowNum());\n\t\t\t\t\t/*\tSTRUCTURE_WRITER.write(v(PARENT_ID) + DEL + v(ITEM_ID) + DEL + v(QTY) + DEL\n\t\t\t\t\t\t\t\t+ v(SEQ) + NEW_LINE); - can not write it here, as the same parent might come again later. IPS_DATA_UPLOAD fails if the parent has existing BVR with -bom mode. */\n\t\t\t\t}\n\n\t\t\t\t/* Global Alternate */\n\t\t\t\tString globalAltStr = v(GLOBAL_ALT);\n\t\t\t\tif (globalAltStr != null && !globalAltStr.trim().isEmpty()\n\t\t\t\t\t\t&& globalAltStr.trim().length() != 0)\n\t\t\t\t{\n\t\t\t\t\tglobalAltStr = globalAltStr.replace(SPACE, BLANK);\n\t\t\t\t\tString globalAltArray[] = globalAltStr.split(SEMICOLON);\n\t\t\t\t\tfor (int i = 0; i < globalAltArray.length; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSP_GLOBAL_ALT_WRITER.write(v(ITEM_ID) + DEL + globalAltArray[i].trim()\n\t\t\t\t\t\t\t\t+ NEW_LINE);\n\t\t\t\t\t\taltPartsCount++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tLOG_WRITER.write(TOTAL_SERVICE_PARTS + serviceItemsList.size() + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_DOCUMENTS_TO_ATTACH + linkDocCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_DRAWINGS_TO_ATTACH + linkDwgCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_PURCHSPEC_TO_ATTACH + linkPurchSpecCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_MADEFROM_TO_ATTACH + linkMadeFromCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_ALTERNATE_PARTS_TO_ADD + altPartsCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_ENG_PARTS_FOR_SERVICE_FORM_CREATON + engParts + NEW_LINE);\n\t\t\tLOG_WRITER.write(LINE_SEPERATOR);\n\n\t\t\t/* Write Structures */\n\t\t\tLOG_WRITER.write(STRUCTURE_START_TIME + new java.util.Date() + NEW_LINE);\n\t\t\tSet<String> parentIDs = structureMap.keySet();\n\t\t\tIterator parentIDsIterator = parentIDs.iterator();\n\t\t\tLOG_WRITER.write(TOTAL_STRUCTURES + parentIDs.size() + NEW_LINE);\n\t\t\t/*PS_STRUCTURE_WRITER.write(NEW_LINE + HASH_SIGN + TOTAL_STRUCTURES + parentIDs.size()\n\t\t\t\t\t+ NEW_LINE);*/\n\t\t\twhile (parentIDsIterator.hasNext())\n\t\t\t{\n\t\t\t\tObject parentID = parentIDsIterator.next();\n\n\t\t\t\t/*PS_STRUCTURE_WRITER.write(NEW_LINE + parentID + DEL + DEFAULT_REVISION_ID + DEL\n\t\t\t\t\t\t+ TYPE_REAL_NAME + DEL + ZERO + NEW_LINE);*/\n\n\t\t\t\tCollection childRows = (Collection) structureMap.get(parentID);\n\t\t\t\tIterator childRowsIterator = childRows.iterator();\n\t\t\t\twhile (childRowsIterator.hasNext())\n\t\t\t\t{\n\t\t\t\t\tRow cRow = datatypeSheet.getRow((int) childRowsIterator.next());\n\t\t\t\t\t/*PS_STRUCTURE_WRITER.write(rv(cRow, ITEM_ID) + DEL + DEFAULT_REVISION_ID + DEL\n\t\t\t\t\t\t\t+ TYPE_REAL_NAME + DEL + ONE + DEL + rv(cRow, SEQ) + DEL\n\t\t\t\t\t\t\t+ rv(cRow, QTY) + NEW_LINE);*/\n\t\t\t\t\tSTRUCTURE_WRITER.write(parentID + DEL + rv(cRow, ITEM_ID) + DEL + rv(cRow, QTY)\n\t\t\t\t\t\t\t+ DEL + rv(cRow, SEQ) + NEW_LINE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tLOG_WRITER.write(STRUCTURE_END_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\tworkbook.close();\n\t\t} catch (FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(EXCEPTION + e.getMessage());\n\t\t} catch (IOException e)\n\t\t{\n\t\t\tSystem.out.println(EXCEPTION + e.getMessage());\n\t\t} finally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (SERVICE_PART_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSERVICE_PART_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SERVICE_FORM_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSERVICE_FORM_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (EP_SERVICE_FORM_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tEP_SERVICE_FORM_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SP_GLOBAL_ALT_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSP_GLOBAL_ALT_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SP_GROUP_ID_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSP_GROUP_ID_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SP_ATTACHMENT_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSP_ATTACHMENT_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (MADE_FROM_RELATION_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tMADE_FROM_RELATION_WRITER.close();\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\tif (PS_STRUCTURE_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tPS_STRUCTURE_WRITER.close();\n\t\t\t\t}*/\n\t\t\t\tif (STRUCTURE_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSTRUCTURE_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (LOG_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tLOG_WRITER.write(END_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\t\t\tSystem.out.println(END_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\t\t\tLOG_WRITER.close();\n\t\t\t\t}\n\n\t\t\t} catch (IOException ex)\n\t\t\t{\n\t\t\t\tSystem.out.println(EXCEPTION + ex.getMessage());\n\t\t\t}\n\t\t}\n\t}", "public void uploadDataFromFile()\n {\n String jobSeekerFile = (\"JobSeeker.txt\");\n String jobRecruiterFile = (\"JobRecruiter.txt\");\n String jobFile = (\"Job.txt\");\n String notificationFile = (\"Notification.txt\");\n \n String jobSeekerLines = readFile(jobSeekerFile);\n String jobRecruiterLines = readFile(jobRecruiterFile);\n String jobLines = readFile(jobFile);\n String notificationLines = readFile(notificationFile);\n \n storeJobSeekersToJobSeekerList(jobSeekerLines);\n storeJobRecruitersToJobRecruiterList(jobRecruiterLines);\n storeJobsToJobList(jobLines);\n storeNotificationsToNotificationList(notificationLines);\n \n }", "private static void assignInputFiles(FileSystem fs, Map<String, Object> settings, Job job) throws ParseException, IOException, Grep.NoInputFilesFound {\n List<Date> dates = new ArrayList<Date>();\n Calendar cal = Calendar.getInstance();\n Boolean excludeTmpFiles = (settings.get(\"excludeTmpFiles\") != null);\n\n\n cal.setTime((Date)settings.get(\"fromDate\"));\n while (!cal.getTime().after((Date)settings.get(\"toDate\"))) {\n dates.add(cal.getTime());\n cal.add(Calendar.DATE, 1);\n }\n\n for(int i=0; i < dates.size(); i++) {\n for(String type: (ArrayList<String>)settings.get(\"types\")) {\n Path p = new Path(\"/user/rucio01/logs/\"+type+\"/*\"+date_format.format(dates.get(i))+\"*\");\n for (FileStatus file : fs.globStatus(p)) {\n\t if((excludeTmpFiles) && (file.getPath().toString().endsWith(\"tmp\"))) {\n ((List<String>)settings.get(\"excludeTmpFiles\")).add(file.getPath().getName().toString()); \n continue;\n }\n FileInputFormat.addInputPath(job, file.getPath());\n }\n }\n }\n if (FileInputFormat.getInputPaths(job).length == 0) {\n throw new Grep.NoInputFilesFound(\"For type \" + settings.get(\"types\") \n + \" from \" + date_format.format(dates.get(0)) \n + \" to \" + date_format.format(dates.get(dates.size()-1))\n + \" no log files coiuld be found on HDFS.\");\n }\n }", "private void createParseTable() {\n parseTableHeader = new HashMap<String, Integer>();\n parseTable = new ArrayList<ArrayList<String>>();\n pHeader = new ArrayList<String>();\n\n String inputLine = null;\n int fileLine = 1;\n int headerCount = 0;\n\n try {\n FileReader reader = new FileReader(parseTableFile);\n BufferedReader bufferedReader = new BufferedReader(reader);\n\n while((inputLine = bufferedReader.readLine()) != null) {\n\n // removes all leading and trailing whitespaces and leading tabs\n String line = inputLine.trim().replaceFirst(\"\\\\t\", \"\");\n\n // these are header rows for terminals and variables\n if(fileLine == 1 || fileLine == 40) {\n String[] cells = line.replaceFirst(\"&\", \"\").split(\"&\");\n for(String cell : cells) {\n// System.out.println(cell);\n if(!parseTableHeader.containsKey(cell) && cell != \"\") {\n parseTableHeader.put(cell, headerCount);\n// System.out.println(headerCount);\n pHeader.add(cell);\n headerCount++;\n }\n }\n }\n else {\n String[] parsedRow = line.split(\"&\",-1);\n // get actual SLR parse table's row number\n int row = Integer.parseInt(parsedRow[0]);\n\n// System.out.println(\"Parsing row number \\t\\t\" + row);\n\n // create a new Array that excludes the row number column\n String[] tempRow = Arrays.copyOfRange(parsedRow, 1, parsedRow.length);\n // remove null / empty entries from Array\n replaceBlanks(tempRow);\n // convert to ArrayList for easier handling\n ArrayList<String> cells = new ArrayList<>(Arrays.asList(tempRow));\n\n// System.out.print(\"Parsed row content \\t\\t\");\n// printArrayList(cells);\n// System.out.println();\n\n // add above ArrayList to the table at the correct row number.\n // because there's two parts to the parse table's row, only\n // add right away if we haven't added anything before\n // otherwise combine the previous entry with this one to create\n // complete entry for this row\n try {\n ArrayList<String> current = parseTable.get(row);\n\n// System.out.print(\"Contents of row \" + row + \"\\t\\t\");\n// printArrayList(current);\n// System.out.println();\n\n // temporary ArrayList to hold previous entry and new entry\n ArrayList<String> temp = new ArrayList<String>();\n temp.addAll(current);\n temp.addAll(cells);\n\n// System.out.print(\"New combined row \\t\\t\");\n// printArrayList(temp);\n// System.out.println();\n\n // add combined ArrayList to the parse table\n parseTable.set(row, temp);\n } catch (IndexOutOfBoundsException e) {\n parseTable.add(row, cells);\n }\n\n// System.out.print(\"Final row \\t\\t\\t\\t\");\n// printArrayList(parseTable.get(row));\n// System.out.println();\n// System.out.println();\n\n }\n\n fileLine++;\n\n }\n if(printPTABLE == \"Y\") {\n printTable();\n }\n bufferedReader.close();\n\n } catch(FileNotFoundException e) {\n System.out.println(\n parseTableFile + \" not found\"\n );\n } catch(IOException e) {\n System.out.println(\n \"Error reading file \" + parseTableFile\n );\n }\n\n }", "private void populateDictionary() {\n Scanner scanner = null;\n try {\n scanner = new Scanner(new FileInputStream(filePath));\n while(scanner.hasNextLine()) {\n String word = scanner.nextLine();\n rwDictionary.put(reducedWord(word), word);\n lcDictionary.put(word.toLowerCase(), word);\n }\n } catch(IOException e) {\n System.err.println(e.toString());\n e.printStackTrace();\n } finally {\n if(scanner != null) {\n scanner.close();\n }\n }\n }", "protected abstract List<O> parseFileForObservations(Scanner scn);", "private static void writeToFile(List<Tuple2<String, byte[]>> inputListOfFiles, String basePath) throws IOException {\n\n\t\tbasePath = basePath+\"/structures\";\n\t\tfor(Tuple2<String, byte[]> v1: inputListOfFiles){\n\t\t\t// Get the key value pairs\n\t\t\tString pdbCode = v1._1.toLowerCase();\n\t\t\tbyte[] byteArr = v1._2;\n\t\t\t// Make the new dir \n\t\t\tFile theDir = new File(basePath+\"/\"+pdbCode.substring(1, 3));\n\t\t\tif(theDir.exists() == false){\n\t\t\t\ttheDir.mkdirs();\n\t\t\t}\n\t\t\t// Write the file\t\n\t\t\tFileOutputStream fos = null;\n\t\t\t// Try and except\n\t\t\ttry{\n\t\t\t\tfos = new FileOutputStream(basePath+\"/\"+pdbCode.substring(1, 3)+\"/\"+pdbCode);\n\t\t\t\tfos.write(byteArr);\n\t\t\t}\n\t\t\tfinally{\n\t\t\t\tfos.close();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public HashMap initFileSet()\n {\n return null;\n }", "HashMap<String, ?> getOutputFiles();", "public void preprocess(String trainDataFolder)\n\t{\n\t\tFile folder = new File(trainDataFolder);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tfor(int i=0;i<listOfFiles.length;i++){\n\t\t\t\ttry{\n\t\t\t\t\tBufferedReader reader = new BufferedReader(new FileReader(listOfFiles[i].getAbsoluteFile()));\n\t\t\t\t\tString allLines = new String();\n\t\t\t\t\tString line = null;\n\t\t\t\t\tint tabIndex;\n\t\t\t\t\tString type, msg;\n\t\t\t\t\tint label;\n\t\t\t\t\tint line_count = 0;\n\t\t\t\t\tallDocs = new ArrayList<String>();\n\t\t\t\t\twhile((line=reader.readLine())!=null && !line.isEmpty()){\n\t\t\t\t\t\tallDocs.add(line);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(allDocs.size());\n\t\t\t\t\t//System.out.println(offset);\n\t\t\t\t\tfor(int s=0;s<offset;s++){\n\t\t\t\t\t\tline = allDocs.get(s);\n\t\t\t\t\t\ttabIndex = line.indexOf('\\t');\n\t\t\t\t\t\ttype = line.substring(0, tabIndex);\n\t\t\t\t\t\tmsg = line.substring(tabIndex + 1);\n\t\t\t\t\t\tmsg = msg.toLowerCase();\n\t\t\t\t\t\tif(type.equals(\"ham\")){label = 0;}\n\t\t\t\t\t\telse{label = 1;}\n\t\t\t\t\t\tclassStrings[label] += (line + \" \");\n\t\t\t\t\t\tclassCounts[label]++;\n\t\t\t\t\t\ttrainingDocs.add(line);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch(IOException ioe){ioe.printStackTrace();}\n\t\t}\n\t\t/*System.out.println(\"number of ham tokens \"+classStrings[0].length());\n\t\tSystem.out.println(\"number of spam tokens \" +classStrings[1].length());\n\t\t*/\n\t\tSystem.out.println(\"Training Data Class Distribution:\");\n\t\tSystem.out.println(\"Ham: \"+classCounts[0]+\"(\"+Math.round(classCounts[0]*10000.0/trainingDocs.size())/100.0+\"%)\");\n\t\tSystem.out.println(\"Spam: \"+classCounts[1]+\"(\"+Math.round(classCounts[1]*10000.0/trainingDocs.size())/100.0+\"%)\");\n\t\tSystem.out.println(\"Total: \"+trainingDocs.size());\n\t}", "private void populateDictionary() throws IOException {\n populateDictionaryByLemmatizer();\n// populateDictionaryBySynonyms();\n }", "private void initializeFile()\n\t{\n\t\tHighScore[] h={new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \")};\n\t\ttry \n\t\t{\n\t\t\tSystem.out.println(\"Hi1\");\n\t\t\tObjectOutputStream o=new ObjectOutputStream(new FileOutputStream(\"HighScores.dat\"));\n\t\t\to.writeObject(h);\n\t\t\to.close();\n\t\t} catch (FileNotFoundException e) {e.printStackTrace();}\n\t\tcatch (IOException e) {e.printStackTrace();}\n\t}", "public static void SaveProcessedData()\n\t{\n\t\tSystem.out.println(\"\\r\\n... Saving processed Data....\");\n\t\t\n\t\tString date = new SimpleDateFormat(\"yyyyMMddhhmm\").format(new Date());\n\t\tString generalInput = \"FeatureExpressionCollection=\" + FeatureExpressionCollection.GetCount() + \";\" + FeatureExpressionCollection.GetLoc() + \";\" + FeatureExpressionCollection.GetMeanLofc() + \";\" + FeatureExpressionCollection.numberOfFeatureConstants;\n\t\t\n\t\t// Save files\n\t\ttry \n\t\t{\n\t\t\tFileUtils.write(new File(date + \"_\" + featuresPath), FeatureExpressionCollection.SerializeFeatures());\n\t\t\tFileUtils.write(new File(date + \"_\" + methodsPath), MethodCollection.SerializeMethods());\n\t\t\tFileUtils.write(new File(date + \"_\" + filesPath), FileCollection.SerializeFiles());\n\t\t\tFileUtils.write(new File(date + \"_\" + generalPath), generalInput);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\tSystem.out.println(\"ERROR: Could not save processed data files\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"... done!\");\n\t}", "public void readFile() \n\t{\n\t\tArrayList<String> tempStations = new ArrayList<>();\n\t\t//create arraylist local variable tempStations which will hold the list of stations temporarily for a specific line to be added to the stations hashmap \n\n\t\tString mtrSystemFile = \"MTRsystem_partial.csv\";\n\t\t//store the csv file name in a string\n\t\tFile file = new File(mtrSystemFile);\n\t\t//create a file object for the MTRSystems csv file\n\n\t\ttry \n\t\t{\n\t\t\tScanner inputStream = new Scanner(file);\n\t\t\t//pass the file through to new scanner object to be scanned\n\n\t\t\twhile (inputStream.hasNext())\n\t\t\t//so long as the scanner object has another token to read from the csv file\n\t\t\t{\n\t\t\t\tString line = inputStream.nextLine();\n\t\t\t\t//store the next line in the string variable\n\t\t\t\tcells = line.split(\",\");\n\t\t\t\t//split each line into cells separated by a comma\n\t\t\t\tint celli = 1;\n\t\t\t\t//assign int index to 1, so that only stations are read excluding line name stored at position 0\n\n\t\t\t\twhile (celli <= cells.length - 1)\n\t\t\t\t//whilst the index is less than or equal the last position of the array\n\t\t\t\t{\n\t\t\t\t\tif (celli == 1 || celli == cells.length - 1)\n\t\t\t\t\t//if the index is at the second position in the array or at the last\n\t\t\t\t\t{\n\t\t\t\t\t\tallTermini.add((cells[celli]));\n\t\t\t\t\t\t//add termini to the ArrayList\n\t\t\t\t\t}\n\t\t\t\t\ttempStations.add(cells[celli]);\n\t\t\t\t\t//add station to the ArrayList\n\t\t\t\t\tcelli++;\n\t\t\t\t}\n\n\t\t\t\taddToStations(cells[0], tempStations);\n\t\t\t\t//add the line name and the list of stations for that line to the hashmap\n\t\t\t\ttempStations.clear();\n\t\t\t\t//Clear the temporary list for the next line\n\n\t\t\t\tcells = null;\n\t\t\t}\n\t\t\tinputStream.close();\n\t\t} catch (FileNotFoundException e) \n\t\t{\n\t\t\tSystem.out.println(\"file not found\");\n\t\t}\n\t}", "void processHeaders(Vector in, SummitFileWriter out) { \n\t\ttry {\n\t\t\t// Read all the headers. Must read the header from each file\n\t\t\t// so that the random-access file is cued to the right location.\n\t\t\tSummitHeader header = null;\n\t\t\tfor (int i=0; i<in.size(); i++) {\n\t\t header = ((SummitFileReader)in.elementAt(i)).getHeader();\n\t\t }\n\n\t\t\t// And write the header to the output file\n\t\t\tmZones = header.getZones();\n\t\t\tmSegments = header.getMarketSegments();\n\t\t\tout.writeHeader(header);\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n }", "private static void fillTableFromFile(HashTable table) {\n Scanner in;\n try {\n in = new Scanner(new FileInputStream(\"File.txt\"));\n } catch (FileNotFoundException e) {\n System.out.println(\"File 'File.txt' not found\");\n return;\n }\n while (in.hasNext()) {\n table.add(in.next());\n }\n }", "protected void createBasicData(File tmpFile)\r\n\t{\t\t \r\n\t\tfileNumber++;\r\n\t\tScanner sc2 = null;\r\n\t try {\r\n\t sc2 = new Scanner(tmpFile);\r\n\t } catch (FileNotFoundException e) {\r\n\t e.printStackTrace(); \r\n\t }\r\n\t while (sc2.hasNextLine()) {\r\n\t Scanner s2 = new Scanner(sc2.nextLine());\r\n\t while (s2.hasNext()) {\r\n\t String tmpWord = s2.next();\r\n\t tmpWord = tmpWord.replaceAll(\"\\\\W\", \"\"); //replace all special characters with \"\"\r\n\t tmpWord = tmpWord.replaceAll(\"\\\\d\", \"\"); //replace all digits with \"\"\r\n\t tmpWord = tmpWord.toLowerCase();\r\n\t if(!(tmpWord.equals(\"\")))\r\n\t {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t//Inserting into location_order table\r\n\t\t\t\t\t\t String query = \"insert ignore into location_order (word, docID, file_name, visible)\" + \" values (?, ?, ?, ?)\";\r\n\t\t\t\t\t // create the mysql insert preparedstatement\r\n\t\t\t\t\t PreparedStatement preparedStmt = con.prepareStatement(query);\r\n\t\t\t\t\t preparedStmt.setString (1,tmpWord);\r\n\t\t\t\t\t preparedStmt.setInt (2, fileNumber);\t\r\n\t\t\t\t\t preparedStmt.setString (3,tmpFile.getName());\r\n\t\t\t\t\t preparedStmt.setInt (4, 1);\t\r\n\t\t\t\t\t // execute the preparedstatement\r\n\t\t\t\t\t preparedStmt.executeUpdate();\r\n\t\t\t\t\t con.commit();\r\n\t\t\t\t\t \r\n\t\t\t\t\t //Inserting into soundex table\r\n\t\t\t\t\t query = \"insert ignore into tmp_soundex (word, soundex, docID, file_name, visible)\" + \" values (?, ?, ?, ?, ?)\";\r\n\t\t\t\t\t // insert preparedstatement\r\n\t\t\t\t\t preparedStmt = con.prepareStatement(query);\r\n\t\t\t\t\t preparedStmt.setString (1,tmpWord);\r\n\t\t\t\t\t preparedStmt.setString (2,sndx.encode(tmpWord));\r\n\t\t\t\t\t preparedStmt.setInt (3, fileNumber);\t\r\n\t\t\t\t\t preparedStmt.setString (4,tmpFile.getName());\r\n\t\t\t\t\t preparedStmt.setInt (5, 1);\t\r\n\t\t\t\t\t // execute the preparedstatement\r\n\t\t\t\t\t preparedStmt.executeUpdate();\r\n\t\t\t\t\t con.commit();\r\n\t\t\t\t\t \r\n\t\t\t\t\t preparedStmt.close();\r\n\t\t\t\t\t System.out.println(\"Inserted the word: \"+tmpWord+\" | DocID is: \"+fileNumber +\"|\" +\" Name:: \"+tmpFile.getName());\r\n\t\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t} catch(NumberFormatException nfe){\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid data input!\", \"Error!\", 2);\r\n\t\t\t\t\t}\r\n\t }\r\n\t }\r\n\t s2.close();\r\n\t }\r\n\t sc2.close();\r\n\t}", "public static void processInput() throws IOException {\r\n\t\t\r\n\t\t//Out statement let user know the input file is being read\t\r\n\t\tScanner scnr;\r\n\t\tString[] splitString;\r\n\t\t\r\n\t\tFile file = new File(\"Project_04_Input01.txt\");\r\n\t\tscnr = new Scanner(file);\r\n\t\t\r\n\t\tSystem.out.println(\"Reading data from \" + file + \"...\");\r\n\t\t\r\n\t\twhile(scnr.hasNextLine()) {\r\n\t\t\tString line = scnr.nextLine();\r\n\t\t\tsplitString = line.split(\",\");\r\n\r\n\t\t\tif (splitString[0].contains(\"STUDENT\")) {\r\n\t\t\t\t\r\n\t\t\t\t// Call processStudentData\r\n\t\t\t\tprocessStudentData(splitString);\r\n\t\t\t\tSystem.out.println(\"'STUDENT' has been found in the file.\");\r\n\r\n\t\t\t} // End if\r\n\t\t\t\r\n\t\t\telse if (splitString[0].contains(\"GRADEITEM\") ) {\r\n\t\t\t\t\r\n\t\t\t\t// Call processGradeItemData\r\n\t\t\t\tprocessGradeItemData(splitString);\r\n\t\t\t\tSystem.out.println(\"'GRADEITEM' has been found in the file.\");\r\n\t\t\t\t\r\n\t\t\t} // End if\r\n\t\t} // End while\r\n\t\t\r\n\t\t// Close the file\r\n\t\tscnr.close();\r\n\t\t\t\r\n\t}", "public static HashMap parseUSFM(File collectionsFile, String baseSourceDirectory, String sourceTextPath, String sTitleTag) throws IOException\n\t{\n //iterate through the source file directory and get the filenames present\n //USFM uses a predefined file format of:\n // 01GENxxxx.ptx\n HashMap books = new HashMap();\n if (baseSourceDirectory == null)\n {\n baseSourceDirectory = \"\";\n }\n \n try\n {\n System.out.println(\"Base Dir: \" + baseSourceDirectory);\n System.out.println(\"Source Path: \" + sourceTextPath);\n \n //get the list of files in the directory\n File folder = new File(baseSourceDirectory, sourceTextPath);\n File[] listOfFiles = folder.listFiles();\n\n for (int i = 0; i < listOfFiles.length; i++) \n {\n if (listOfFiles[i].isFile()) \n {\n String sFileName = listOfFiles[i].getName();\n if (sFileName.toLowerCase().endsWith(\".\" + usfmSourceFileExtension))\n {\n System.out.println(\"File \" + listOfFiles[i].getName());\n String sFilename = folder.toString() + File.separator + listOfFiles[i].getName();\n // Add book to the lookup table\n try\n {\n\t\t\t\t// Create a new book\n\t\t\t\tBook book = new Book(collectionsFile, sFilename, STYLE_RED, fileCodepage, useRedLettering, sTitleTag);\n\t\t\t\tbook.fileName = listOfFiles[i].getName();\n\n\t\t\t\tbooks.put(book.name, book);\n\n // the \\id tag syntax:\n // \\id <CODE> (Text text text...)\n // where <CODE> \"is normally the standard 3 letter UBS/SIL scripture book abbreviation.\"\n // we allow books to be identified using the id tag if the first word matches.\n // Hence, we add a special exception here:\n // book is always added twice: once with the code, and once with\n // the full text match.\n \n if (sTitleTag.equals(\"\\\\id\") && book.name.indexOf(' ') > 0 ) {\n String bookKey = book.name;\n String bookCode = bookKey.substring(0, bookKey.indexOf(' '));\n books.put(bookCode, book);\n }\n \n\t\t\t\tbookNames.add(book.name);\n\t }\n catch (Exception e)\n {\n System.out.println(\"Error: \" + e.getMessage());\n e.printStackTrace();\n }\n }\n } \n }\n }\n catch (Exception e)\n {\n System.out.println(\"Error: \" + e.getMessage());\n e.printStackTrace();\n }\n return books;\n\t}", "void parseWritable(final DataInputStream in) throws IOException {\n // First clear the map. Otherwise we will just accumulate entries every time this method is called.\n this.map.clear();\n // Read the number of entries in the map\n int entries = in.readInt();\n // Then read each key/value pair\n for (int i = 0; i < entries; i++) {\n byte[] key = Bytes.readByteArray(in);\n // We used to read a byte that encoded the class type. Read and ignore it because it is always byte [] in hfile\n in.readByte();\n byte[] value = Bytes.readByteArray(in);\n this.map.put(key, value);\n }\n }", "public static void main (String[] args) throws FileNotFoundException, IOException {\n\t\tFile fil1 = new File(\"C:\\\\Users\\\\Vasanth\\\\Desktop\\\\parse.txt\");\r\n\t\tHashMap<String, String> map = new HashMap<String, String>();\r\n\t\tString[] parts;\r\n\t\tScanner myReader = new Scanner(fil1);\r\n\t\twhile (myReader.hasNextLine())\r\n\t\t{\r\n\t\t\tString data = myReader.nextLine();\r\n\t\t\tif (!data.contains(\"record\"))\r\n\t\t\t{\r\n\t\t\t\tdata.replaceAll(\"^\\\"|\\\"$\", \"\");\r\n\t\t\t\tparts = data.split(\" +\");\t\t\t\r\n\t\t\t\tString key = parts[0].trim();\r\n\t\t\t\tString value = parts[1].trim();\t\t\t\t\r\n\t\t\t\tmap.put(key, value);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Ignoring as it doesnt hold a key value pair\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Writing Hashmap to excel & csv\r\n\t\tXSSFWorkbook wb = new XSSFWorkbook();\r\n\t\tXSSFSheet sh = wb.createSheet(\"Test Data\");\r\n\t\tint rowno = 0;\t\r\n\t\tfor(Map.Entry entry:map.entrySet())\r\n\t\t{\r\n\t\t\tXSSFRow row = sh.createRow(rowno++);\r\n\t\t\trow.createCell(0).setCellValue((String)entry.getKey());\r\n\t\t\trow.createCell(1).setCellValue((String)entry.getValue());\r\n\t\t}\t\t\r\n\t\twb.write(new FileOutputStream(\".\\\\Datafiles\\\\hashtoexcel.xlsx\"));\r\n\t\twb.write(new FileOutputStream(\".\\\\Datafiles\\\\hashexcel.csv\")); \r\n\t\twb.close();\r\n\t\t}", "private void load(FileInputStream input) {\n\t\t\r\n\t}", "public static void processData() {\n\t\tString dirName = \"C:\\\\research_data\\\\mouse_human\\\\homo_b47_data\\\\\";\r\n\t//\tString GNF1H_fName = \"GNF1H_genes_chopped\";\r\n\t//\tString GNF1M_fName = \"GNF1M_genes_chopped\";\r\n\t\tString GNF1H_fName = \"GNF1H\";\r\n\t\tString GNF1M_fName = \"GNF1M\";\r\n\t\tString mergedValues_fName = \"GNF1_merged_expression.txt\";\r\n\t\tString mergedPMA_fName = \"GNF1_merged_PMA.txt\";\r\n\t\tString discretizedMI_fName = \"GNF1_discretized_MI.txt\";\r\n\t\tString discretizedLevels_fName = \"GNF1_discretized_levels.txt\";\r\n\t\tString discretizedData_fName = \"GNF1_discretized_data.txt\";\r\n\t\t\r\n\t\tboolean useMotifs = false;\r\n\t\tMicroArrayData humanMotifs = null;\r\n\t\tMicroArrayData mouseMotifs = null;\r\n\t\t\r\n\t\tMicroArrayData GNF1H_value = new MicroArrayData();\r\n\t\tMicroArrayData GNF1H_PMA = new MicroArrayData();\r\n\t\tGNF1H_PMA.setDiscrete();\r\n\t\tMicroArrayData GNF1M_value = new MicroArrayData();\r\n\t\tMicroArrayData GNF1M_PMA = new MicroArrayData();\r\n\t\tGNF1M_PMA.setDiscrete();\r\n\t\t\r\n\t\ttry {\r\n\t\t/*\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.txt\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.txt\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma\"); */\r\n\t\t/*\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.txt.homob44\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma.txt.homob44\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.txt.homob44\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma.txt.homob44\"); */\r\n\t\t\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.snco.txt\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma.sn.txt\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.snco.txt\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma.sn.txt\");\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\tif (useMotifs) {\r\n\t\t\thumanMotifs = new MicroArrayData();\r\n\t\t\tmouseMotifs = new MicroArrayData();\r\n\t\t\tloadMotifs(humanMotifs,GNF1H_value.geneNames,mouseMotifs,GNF1M_value.geneNames);\r\n\t\t}\r\n\t\t\r\n\t\t// combine replicates in PMA values\r\n\t\tint[][] H_PMA = new int[GNF1H_PMA.numRows][GNF1H_PMA.numCols/2];\r\n\t\tint[][] M_PMA = new int[GNF1M_PMA.numRows][GNF1M_PMA.numCols/2];\r\n\t\t\r\n\t\tint i = 0;\r\n\t\tint j = 0;\r\n\t\tint k = 0;\r\n\t\tint v = 0;\r\n\t\tk = 0;\r\n\t\tj = 0;\r\n\t\twhile (j<GNF1H_PMA.numCols-1) {\r\n\t\t\tfor (i=0;i<H_PMA.length;i++) {\r\n\t\t\t\tv = 0;\r\n\t\t\t//\tif (GNF1H_PMA.dvalues[i][j] > 0 & GNF1H_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\tif (GNF1H_PMA.dvalues[i][j] > 0 | GNF1H_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\t\tv = 1;\r\n\t\t\t\t}\r\n\t\t\t\tH_PMA[i][k] = v;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t\tj = j + 2;\r\n\t\t}\r\n\t\t\r\n\t\tj = 0;\r\n\t\tk = 0;\r\n\t\twhile (j<GNF1M_PMA.numCols-1) {\r\n\t\t\tfor (i=0;i<M_PMA.length;i++) {\r\n\t\t\t\tv = 0;\r\n\t\t\t//\tif (GNF1M_PMA.dvalues[i][j] > 0 & GNF1M_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\tif (GNF1M_PMA.dvalues[i][j] > 0 | GNF1M_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\t\tv = 1;\r\n\t\t\t\t}\r\n\t\t\t\tM_PMA[i][k] = v;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t\tj = j + 2;\r\n\t\t}\r\n\t\t\r\n\t\tint numMatched = 31;\r\n\t\t\r\n\t/*\tGNF1H_value.numCols = numMatched;\r\n\t\tGNF1M_value.numCols = numMatched; */\r\n\t\t\r\n\t\tint[][] matchPairs = new int[numMatched][2];\r\n\t\tfor(i=0;i<numMatched;i++) {\r\n\t\t\tmatchPairs[i][0] = i;\r\n\t\t\tmatchPairs[i][1] = i + GNF1H_value.numCols;\r\n\t\t}\r\n\t\t\r\n\t//\tDiscretizeAffyData H_discretizer = new DiscretizeAffyData(GNF1H_value.values,H_PMA,0);\r\n\t//\tH_discretizer.adjustIntensities();\r\n\t\ttransformRelativeAbundance(GNF1H_value.values,H_PMA,GNF1H_value.numCols);\r\n\t\t\r\n\t//\tDiscretizeAffyData M_discretizer = new DiscretizeAffyData(GNF1M_value.values,M_PMA,0);\r\n\t//\tM_discretizer.adjustIntensities();\r\n\t\ttransformRelativeAbundance(GNF1M_value.values,M_PMA,GNF1M_value.numCols);\r\n\t\t\r\n\t\tdouble[][] mergedExpression = new double[GNF1H_value.numRows][GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\tint[][] mergedPMA = new int[GNF1H_value.numRows][GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\tint[] species = null;\r\n\t\tif (!useMotifs) {\r\n\t\t\tspecies = new int[GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\t} else {\r\n\t\t\tspecies = new int[GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t}\r\n\t\t\r\n\t\tfor (i=0;i<GNF1H_value.numRows;i++) {\r\n\t\t\tSystem.arraycopy(GNF1H_value.values[i],0,mergedExpression[i],0,GNF1H_value.numCols);\r\n\t\t\tSystem.arraycopy(H_PMA[i],0,mergedPMA[i],0,GNF1H_value.numCols);\t\r\n\t\t}\r\n\t\tfor (i=0;i<GNF1M_value.numRows;i++) {\r\n\t\t\tSystem.arraycopy(GNF1M_value.values[i],0,mergedExpression[i],GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\t\tSystem.arraycopy(M_PMA[i],0,mergedPMA[i],GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\t}\r\n\t\t\r\n\t\t// concatenate experiment and gene names\r\n\t\tfor (i=0;i<GNF1H_value.numCols;i++) {\r\n\t\t\tGNF1H_value.experimentNames[i] = \"h_\" + GNF1H_value.experimentNames[i];\r\n\t\t\tspecies[i] = 1;\r\n\t\t}\r\n\t\tfor (i=0;i<GNF1M_value.numCols;i++) {\r\n\t\t\tGNF1M_value.experimentNames[i] = \"m_\" + GNF1M_value.experimentNames[i];\r\n\t\t\tspecies[i+GNF1H_value.numCols] = 2;\r\n\t\t}\r\n\t\t\r\n\t\tString[] mergedExperimentNames = null;\r\n\t\tif (!useMotifs) {\r\n\t\t\tmergedExperimentNames = new String[GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\t} else {\r\n\t\t\tmergedExperimentNames = new String[GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t}\r\n\t\tSystem.arraycopy(GNF1H_value.experimentNames,0,mergedExperimentNames,0,GNF1H_value.numCols);\r\n\t\tSystem.arraycopy(GNF1M_value.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\tif (useMotifs) {\r\n\t\t\tSystem.arraycopy(humanMotifs.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols+GNF1M_value.numCols,humanMotifs.numCols);\r\n\t\t\tSystem.arraycopy(mouseMotifs.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols+GNF1M_value.numCols+humanMotifs.numCols,mouseMotifs.numCols);\r\n\t\t\tfor (i=0;i<humanMotifs.numCols;i++) {\r\n\t\t\t\tspecies[i + GNF1H_value.numCols+GNF1M_value.numCols] = 3;\r\n\t\t\t}\r\n\t\t\tfor (i=0;i<mouseMotifs.numCols;i++) {\r\n\t\t\t\tspecies[i + GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols] = 4;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tString[] mergedGeneNames = new String[GNF1H_value.numRows];\r\n\t\tfor (i=0;i<GNF1M_value.numRows;i++) {\r\n\t\t\tmergedGeneNames[i] = GNF1H_value.geneNames[i] + \"|\" + GNF1M_value.geneNames[i];\r\n\t\t}\r\n\t\t\r\n\t\tint[] filterList = new int[GNF1M_value.numRows];\r\n\t\tint numFiltered = 0;\r\n\t\tdouble maxExpressedPercent = 1.25;\r\n\t\tint maxExpressed_H = (int) Math.floor(maxExpressedPercent*((double) GNF1H_value.numCols));\r\n\t\tint maxExpressed_M = (int) Math.floor(maxExpressedPercent*((double) GNF1M_value.numCols));\r\n\t\tint numExpressed_H = 0;\r\n\t\tint numExpressed_M = 0;\r\n\t\t\r\n\t\tfor (i=0;i<GNF1H_value.numRows;i++) {\r\n\t\t\tnumExpressed_H = 0;\r\n\t\t\tfor (j=0;j<GNF1H_value.numCols;j++) {\r\n\t\t\t\tif (GNF1H_PMA.dvalues[i][j] > 0) {\r\n\t\t\t//\tif (!Double.isNaN(GNF1H_value.values[i][j])) {\r\n\t\t\t//\tif (GNF1H_value.values[i][j] > 1.5) {\r\n\t\t\t\t\tnumExpressed_H++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tnumExpressed_M = 0;\r\n\t\t\tfor (j=0;j<GNF1M_value.numCols;j++) {\r\n\t\t\t\tif (GNF1M_PMA.dvalues[i][j] > 0) {\r\n\t\t\t//\tif (GNF1H_value.values[i][j] > 1.5) {\r\n\t\t\t//\tif (!Double.isNaN(GNF1M_value.values[i][j])) {\r\n\t\t\t\t\tnumExpressed_M++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (numExpressed_M >= maxExpressed_M | numExpressed_H >= maxExpressed_H) {\r\n\t\t\t\tfilterList[i] = 1;\r\n\t\t\t\tnumFiltered++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tGNF1H_value = null;\r\n\t\tGNF1H_PMA = null;\r\n\t\tGNF1M_value = null;\r\n\t\tGNF1M_PMA = null;\r\n\t\t\r\n\t\tdouble[][] mergedExpression2 = null;\r\n\t\tif (numFiltered > 0) {\r\n\t\t\tk = 0;\r\n\t\t\tint[][] mergedPMA2 = new int[mergedPMA.length-numFiltered][mergedPMA[0].length];\r\n\t\t\tif (!useMotifs) {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length-numFiltered][mergedExpression[0].length];\r\n\t\t\t} else {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length-numFiltered][mergedExpression[0].length + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t\t}\r\n\t\t\tString[] mergedGeneNames2 = new String[mergedGeneNames.length-numFiltered];\r\n\t\t\tfor (i=0;i<filterList.length;i++) {\r\n\t\t\t\tif (filterList[i] == 0) {\r\n\t\t\t\t\tmergedPMA2[k] = mergedPMA[i];\r\n\t\t\t\t\tif (!useMotifs) {\r\n\t\t\t\t\t\tmergedExpression2[k] = mergedExpression[i];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.arraycopy(mergedExpression[i],0,mergedExpression2[k],0,mergedExpression[i].length);\r\n\t\t\t\t\t\tSystem.arraycopy(humanMotifs.values[i],0,mergedExpression2[k],mergedExpression[i].length,humanMotifs.numCols);\r\n\t\t\t\t\t\tSystem.arraycopy(mouseMotifs.values[i],0,mergedExpression2[k],humanMotifs.numCols+mergedExpression[i].length,mouseMotifs.numCols);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmergedGeneNames2[k] = mergedGeneNames[i];\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmergedPMA = mergedPMA2;\r\n\t\t\tmergedExpression = mergedExpression2;\r\n\t\t\tmergedGeneNames = mergedGeneNames2;\r\n\t\t} else {\r\n\t\t\tif (useMotifs) {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length][mergedExpression[0].length + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t\t\tfor (i=0;i<mergedExpression.length;i++) {\r\n\t\t\t\t\tSystem.arraycopy(mergedExpression[i],0,mergedExpression2[i],0,mergedExpression[i].length);\r\n\t\t\t\t\tSystem.arraycopy(humanMotifs.values[i],0,mergedExpression2[i],mergedExpression[i].length,humanMotifs.numCols);\r\n\t\t\t\t\tSystem.arraycopy(mouseMotifs.values[i],0,mergedExpression2[i],humanMotifs.numCols+mergedExpression[i].length,mouseMotifs.numCols);\r\n\t\t\t\t}\r\n\t\t\t\tmergedExpression = mergedExpression2;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tDiscretizeAffyPairedData discretizer = new DiscretizeAffyPairedData(mergedExpression,mergedPMA,matchPairs,20);\r\n\t\tMicroArrayData mergedData = new MicroArrayData();\r\n\t\tmergedData.values = discretizer.expression;\r\n\t\tmergedData.geneNames = mergedGeneNames;\r\n\t\tmergedData.experimentNames = mergedExperimentNames;\r\n\t\tmergedData.experimentCode = species;\r\n\t\tmergedData.numCols = discretizer.numExperiments;\r\n\t\tmergedData.numRows = discretizer.numGenes;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmergedData.writeFile(dirName+mergedValues_fName);\r\n\t\t\tdiscretizer.discretizeDownTree(dirName+discretizedMI_fName);\r\n\t\t\tdiscretizer.mergeDownLevels(3,dirName+discretizedLevels_fName);\r\n\t\t\tdiscretizer.transposeDExpression();\r\n\t\t\tmergedData.setDiscrete();\r\n\t\t\tmergedData.values = null;\r\n\t\t\tmergedData.dvalues = discretizer.dExpression;\r\n\t\t\tmergedData.writeFile(dirName+discretizedData_fName);\r\n\t\r\n\t\t\tmergedData.dvalues = mergedPMA;\r\n\t\t\tmergedData.numCols = mergedPMA[0].length;\r\n\t\t\tmergedData.writeFile(dirName+mergedPMA_fName);\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t/*\tMicroArrayData mergedData = new MicroArrayData();\r\n\t\tmergedData.values = mergedExpression;\r\n\t\tmergedData.geneNames = mergedGeneNames;\r\n\t\tmergedData.experimentNames = mergedExperimentNames;\r\n\t\tmergedData.experimentCode = species;\r\n\t\tmergedData.numCols = mergedExpression[0].length;\r\n\t\tmergedData.numRows = mergedExpression.length;\r\n\t\ttry {\r\n\t\t\tmergedData.writeFile(dirName+mergedValues_fName);\r\n\t\t\tmergedData.setDiscrete();\r\n\t\t\tmergedData.values = null;\r\n\t\t//\tmergedData.dvalues = simpleDiscretization(mergedExpression,mergedPMA);\r\n\t\t\tmergedData.dvalues = simpleDiscretization2(mergedExpression,species);\r\n\t\t\tmergedData.writeFile(dirName+discretizedData_fName);\r\n\t\r\n\t\t\tmergedData.dvalues = mergedPMA;\r\n\t\t\tmergedData.numCols = mergedPMA[0].length;\r\n\t\t\tmergedData.writeFile(dirName+mergedPMA_fName);\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t} */\r\n\t\t\r\n\t}", "void processRecords(Vector in, SummitFileWriter out) { \n\n\t\t// Create array for storing a set of summit records\n\t\tSummitRecord[] recs = new SummitRecord[in.size()];\n\n\t\ttry {\n\t\t\t// Loop on i, j, marget segment, and inputfile \n\t\t\tfor (int iz = 1; iz <= mZones; iz++) {\n\t\t\t\tfor (int jz = 1; jz <= mZones; jz++) {\n\t\t\t\t\tfor (int sg = 1; sg <= mSegments; sg++) {\n\t\t\t\t\t\tfor (int i=0; i<in.size(); i++) {\n\t\t\t\t\t\t\trecs[i] = ((SummitFileReader)in.elementAt(i)).getSpecificRecord(iz,jz,sg);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSummitRecord mrgRec = mergeRecords(recs);\n\t\t\t\t\t\tif (mrgRec != null) {\n//\t\t\t\t\t\t\tif (iz==756 && jz==57) {\n//\t\t\t\t\t\t\t\tSystem.out.println(\"Found it\");\n//\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmrgRec.setPtaz((short)iz);\n\t\t\t\t\t\t\tmrgRec.setAtaz((short)jz);\n\t\t\t\t\t\t\tmrgRec.setMarket((short)sg);\n\t\n\t\t\t\t\t\t\tout.writeRecord(mrgRec);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \"+iz);\n\t\t\t\tif (iz % 19 == 18) System.out.println();\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nDone.\");\n\n\t\t} catch (IOException ioe) {\n\t\t System.err.println(\"\\n Trouble!\\n\");\n\t\t ioe.printStackTrace();\n\t\t System.exit(1);\n\t\t}\n\t}", "protected void preprocess() {\n log.info(\"Processing files. Max size is {} bytes\", max);\n\n int idx = 0;\n boolean closed = false;\n\n Bag current = new Bag();\n PayloadManifest currentManifest = new PayloadManifest();\n\n for (PayloadFile file : b.getFiles().values()) {\n closed = false;\n current.addFile(file);\n currentManifest.addPayloadFile(file);\n\n if (current.getSize() >= max) {\n finishProcessing(current, currentManifest, idx++);\n\n closed = true;\n current = new Bag();\n currentManifest = new PayloadManifest();\n }\n }\n\n // Close out the final bag\n if (!closed) {\n finishProcessing(current, currentManifest, idx);\n }\n }", "public HashMap readFile(String filePath, HashMap source){\n\t\tArrayList<String> temp1 = new ArrayList<String>();\n\t\tArrayList<String> temp2 = new ArrayList<String>();\n\t\tBufferedReader br = null;\n\t\t\n\t\ttry {\n\t\t\tString sCurrentLine;\n\t\t\t\n\t\t\t// \"Users/Jasmine/Documents/Eclipse/CacheDictionary/src/english.txt\"\n\t\t\tbr = new BufferedReader(new FileReader(filePath)); \n\t\t\t\n\t\t\t//str.matches(\".*\\\\d+.*\"); ==> string that contains numbers\n\t\t\t//.matches(\"[a-zA-Z]+\"); ==> string that only contains letter\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * if the source file itself is not one word per line, we need to split the string\n\t\t\t\t * only letter(not single) will be stored in the array\n\t\t\t\t */\n\t\t\t\t//\n\t\t\t\tif(sCurrentLine.matches(\".*([ \\t]).*\")){ //check if the current line is a single word or not\n\t\t\t\t\ttemp1.add(sCurrentLine);\n\t\t\t\t}\n\t\t\t\telse if(sCurrentLine.matches(\"[a-zA-Z]+\") && sCurrentLine.length()>1){\n\t\t\t\t\ttemp2.add(sCurrentLine);\n\t\t\t\t}\n\t\t\t}// end of while loop\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null)br.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tif(!temp1.isEmpty()){\n\t\t\tfor(int i = 0; i< temp1.size(); i++){\n\t\t\t\tString thisLine[] = temp1.get(i).split(\" \");\n\t\t\t\t//for each word in this line\n\t\t\t\tfor(int j = 0; j < thisLine.length; j++){\n\t\t\t\t\t//if it is a valid word\n\t\t\t\t\tif(thisLine[j].matches(\"[a-zA-Z]+\") && thisLine[j].length()>1 ){\n\t\t\t\t\t\tif( source.get(thisLine[j]) == null){\n\t\t\t\t\t\t\tsource.put(thisLine[j].toLowerCase(),thisLine[j].toLowerCase());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t} // end of if current word i valid\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t} // end of temp1\n\t\t\n\t\tif(!temp2.isEmpty()){\n\t\t\tfor(int i = 0; i< temp2.size(); i++){\n\t\t\t\tif(temp2.get(i).matches(\"[a-zA-Z]+\") && temp2.get(i).length()>1){\n\t\t\t\t\tif(source.get(temp2.get(i)) == null){\n\t\t\t\t\t\tsource.put(temp2.get(i).toLowerCase(),temp2.get(i).toLowerCase());\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t} \n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn source;\n\t}", "@PostConstruct\n private void loadFiles() {\n \n\n File dir = new File(Constants.DIR_PATH);\n File[] files = dir.listFiles(); //stores list of files in given paths\n String line=\"\";\n\n for(File file : files){\n try {\n br = new BufferedReader(new FileReader(file));\n br.readLine();\n while((line=br.readLine())!=null){\n\n String []token=line.split(Constants.DELIMETER);\n String fileName=file.getName().toUpperCase();\n\n FlightData newflight = new FlightData(fileName.substring(0,fileName.lastIndexOf(\".\")),token[0],token[1],token[2],token[3],token[4],token[5],Double.parseDouble(token[6]),token[7],token[8]);\n flightDataDao.insertFlightData(newflight);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }", "private static void preprocess() {\n \tLOG.info(\"Begin preprocessing of data.\");\n \t\n \tLOG.debug(\"Create a IterativeDirectoryReader.\");\n \t// Create a reader for directories\n \tIterativeDirectoryReader iterativeDirectoryReader = (IterativeDirectoryReader) ReaderFactory.instance().getIterativeDirectoryReader();\n \titerativeDirectoryReader.setDirectoryName(clArgs.preprocessInDir);\n \titerativeDirectoryReader.setPathInChildDirectory(clArgs.preprocessPathInChildDir);\n \t\n \tLOG.debug(\"Create a IterativeFileReader.\");\n \t// Create a reader for text files and set an appropriate file filter\n \tIterativeFileReader iterativeFileReader = (IterativeFileReader) ReaderFactory.instance().getIterativeFileReader();\n \titerativeFileReader.setFileFilter(FileUtil.acceptVisibleFilesFilter(false, true));\n \t\n \tLOG.debug(\"Create a TextFileLineReader.\");\n \t// Create a reader for text files, the first six lines are not relevant in this data set\n \tTextFileLineReader textFileLineReader = (TextFileLineReader) ReaderFactory.instance().getTextFileLineReader();\n \ttextFileLineReader.setOffset(clArgs.preprocessLineOffset);\n \t\n \tLOG.debug(\"Create a GpsLogLineProcessor.\");\n \t// Create a processor for user points\n \tGpsLogLineProcessor processor = new GpsLogLineProcessor(clArgs.preprocessOutFile);\n \t\n \t// Build reader chain\n \titerativeDirectoryReader.setReader(iterativeFileReader);\n \titerativeFileReader.setReader(textFileLineReader);\n \ttextFileLineReader.setProcessor(processor);\n \t\n \titerativeDirectoryReader.attach(processor, \n \t\t\t\tnew Interests[] {\n \t\t\t\t\tInterests.NewChildDirectory,\n \t\t\t\t\tInterests.HasFinished\n \t\t\t\t});\n \t\n \tLOG.debug(\"Read GPS logs. Save the data in a new file {}.\", clArgs.preprocessOutFile);\n \t// Read and save the data\n \titerativeDirectoryReader.read();\n\n \tLOG.info(\"Finished preprocessing of data.\");\n }", "public static void main(String[] args) {\n FilesParser filesParser = new FilesParser();\r\n ArrayList<Double> time = filesParser.get_timeList();\r\n Map<Double, ArrayList<Double>> expFile = new HashMap<>();\r\n ArrayList<Map<Double, ArrayList<Double>>> theorFiles = new ArrayList<>();\r\n\r\n try {\r\n expFile = filesParser.trimStringsAndGetData(0,\r\n filesParser.getDirectories()[0],\r\n filesParser.get_expFiles()[2]);\r\n List<String> fileList = filesParser.get_theorFileList();\r\n for (int i = 0; i < fileList.size(); i++) {\r\n theorFiles.add(filesParser.trimStringsAndGetData(1,\r\n filesParser.getDirectories()[1],\r\n filesParser.get_theorFileList().get(i)));\r\n }\r\n //System.out.println(expFile.get(0.00050));\r\n //System.out.println(expFile.get(-0.25));\r\n //System.out.println(expFile);\r\n //System.out.println(theorFiles.get(0.00050));\r\n //System.out.println(theorFiles);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n /*for (int i = 0; i < theorFiles.size(); i++) {\r\n Map<Double, ArrayList<Double>> theorFile = theorFiles.get(i);\r\n for (int ik = 0; ik < time.size(); ik++) {\r\n ArrayList<Double> theorFileLine = theorFile.get(time.get(ik));\r\n if (theorFileLine != null) {\r\n for (int j = 0; j < theorFileLine.size(); j++) {\r\n double theord = theorFileLine.get(j);\r\n for (int k = 0; k < expFile.size(); k++) {\r\n ArrayList<Double> expFileLine = expFile.get(time.get(ik));\r\n if (expFileLine != null) {\r\n for (int l = 0; l < expFileLine.size(); l++) {\r\n double expd = expFileLine.get(l);\r\n\r\n double div = expd / theord;\r\n if (div == 1) System.out.println(i);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }*/\r\n\r\n }", "public void mergefiles()\n {\n LinkedHashMap<String, Integer> count = new LinkedHashMap<>();\n for(int i=0;i<files_temp.size();i++)\n {\n \t\t\n //System.out.println(\"here in merge files for\");\n \t//int index = files_temp.get(i).lastIndexOf(\"\\\\\");\n\t\t\t//System.out.println(index);\n \tSystem.out.println(files_temp.get(i));\n File file = new File(files_temp.get(i)+\"op.txt\");\n Scanner sc;\n try {\n //System.out.println(\"here in merge files inside try\");\n sc = new Scanner(file);\n sc.useDelimiter(\" \");\n while(sc.hasNextLine())\n {\n //System.out.println(\"Inwhile \");\n List<String> arr = new ArrayList<String>();\n arr=Arrays.asList(sc.nextLine().replaceAll(\"[{} ]\", \"\").replaceAll(\"[=,]\", \" \").split(\" \"));\n //System.out.println(arr.get(0));\n for(int j=0;j<arr.size()-1;j=j+2) \n {\n System.out.println(arr.get(j));\n if(arr.get(j).length()!=0 && arr.get(j+1).length()!=0)\n {\n if (count.containsKey(arr.get(j))) \n {\n int c = count.get(arr.get(j));\n count.remove(arr.get(j));\n count.put(arr.get(j),c + Integer.valueOf(arr.get(j+1)));\n }\n else \n {\n count.put(arr.get(j),Integer.valueOf(arr.get(j+1)));\n }\n }\n }\n }\n }\n catch(Exception E) \n {\n System.out.println(E);\n }\n }\n //System.out.println(count);\n count.entrySet()\n .stream()\n .sorted(Map.Entry.comparingByValue(Comparator.reverseOrder()))\n .forEachOrdered(x -> sorted.put(x.getKey(), x.getValue()));\n System.out.println(sorted);\n PrintWriter writer;\n\t\ttry {\n\t\t\twriter = new PrintWriter(\"results.txt\", \"UTF-8\");\n\t\t\tIterator it = sorted.entrySet().iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tMap.Entry pairs = (Map.Entry) it.next();\n\t\t\t\t\twriter.println(pairs.getValue() + \" : \" + pairs.getKey());\n\t\t\t\t\tthis.result.println(pairs.getValue() + \" : \" + pairs.getKey());\n\t\t\t}\n\t\t writer.close();\n\t\t}\n catch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n }", "protected void addContentHMetisInFilePath() {\n\t\tPTNetlist ptNetlist = this.getNetlister().getPTNetlist();\n\t\tString newline = System.lineSeparator();\n\t\tMap<PTNetlistNode, Integer> vertexIntegerMap = this.getVertexIntegerMap();\n\t\tList<String> fileContent = new ArrayList<String>();\n\t\t// vertices\n\t\tPTNetlistNode src = null;\n\t\tPTNetlistNode dst = null;\n\t\tInteger srcInteger = null;\n\t\tInteger dstInteger = null;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < ptNetlist.getNumEdge(); i++){\n\t\t\tPTNetlistEdge edge = ptNetlist.getEdgeAtIdx(i);\n\t\t\tif (PTNetlistEdgeUtils.isEdgeConnectedToPrimary(edge)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttemp ++;\n\t\t\tsrc = edge.getSrc();\n\t\t\tdst = edge.getDst();\n\t\t\tsrcInteger = vertexIntegerMap.get(src);\n\t\t\tdstInteger = vertexIntegerMap.get(dst);\n\t\t\tfileContent.add(srcInteger + \" \" + dstInteger + newline);\n\t\t}\n\t\ttry {\n\t\t\tOutputStream outputStream = new FileOutputStream(this.getHMetisInFile());\n\t\t\tWriter outputStreamWriter = new OutputStreamWriter(outputStream);\n\t\t\t// Format of Hypergraph Input File\n\t\t\t// header lines are: [number of edges] [number of vertices] \n\t\t\t//\t\tsubsequent lines give each edge, one edge per line\n\t\t\toutputStreamWriter.write(temp + \" \" + vertexIntegerMap.size() + newline);\n\t\t\tfor (int i = 0; i < fileContent.size(); i++) {\n\t\t\t\toutputStreamWriter.write(fileContent.get(i));\n\t\t\t}\t\t\t\n\t\t\toutputStreamWriter.close();\n\t\t\toutputStream.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private boolean parseInput(String fileName)\n {\n try\n {\n Scanner in = new Scanner(new File(fileName));\n\n this.numIntxns = in.nextInt();\n this.roads = new Road[in.nextInt()];\n this.cities = new City[in.nextInt()];\n\n for (int i = 0; i < this.roads.length; i++)\n {\n int start = in.nextInt();\n int end = in.nextInt();\n double length = in.nextDouble();\n\n this.roads[i] = new Road(start, end, length);\n }\n\n for (int i = 0; i < this.cities.length; i++)\n {\n int intersectionNum = in.nextInt();\n String name = in.next();\n\n this.cities[i] = new City(intersectionNum, name);\n }\n\n if (in.hasNextInt())\n {\n this.signs = new Sign[in.nextInt()];\n }\n\n for (int i = 0; i < this.signs.length; i++)\n {\n int start = in.nextInt();\n int end = in.nextInt();\n double length = in.nextDouble();\n\n this.signs[i] = new Sign(start, end, length);\n }\n }\n // lazy catch statement because computer science is hard\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n return false;\n }\n\n return true;\n }", "private void parseInputFile(String inputFile) throws IOException {\n List<String> lines = Files.readAllLines(FileSystems.getDefault().getPath(inputFile), Charset.defaultCharset());\n for (int i = 1; i < lines.size(); ++i) {\n ParsedRecord record = new ParsedRecord(lines.get(i));\n if (!this.parsedRecords.containsKey(record.docName)) {\n this.parsedRecords.put(record.docName, new ArrayList<ParsedRecord>());\n }\n this.parsedRecords.get(record.docName).add(record);\n\n if (!this.docToMaxPosition.containsKey(record.docName) ||\n this.docToMaxPosition.containsKey(record.docName) && this.docToMaxPosition.get(record.docName) < record.position) {\n this.docToMaxPosition.put(record.docName, record.position);\n }\n }\n }", "public static void main(String[] args) throws IOException {\n String last = \"\";\n HashSet<String> types = new HashSet<String>();\n\n int c = 0;\n try {\n FileReader fr = new FileReader(inDir + \"fr\" + \"/wkd_uris_selection\");\n BufferedReader br = new BufferedReader(fr);\n String line;\n while ((line = br.readLine()) != null) {\n addToFile(line);\n c++;\n //if(c > 100) break;\n }\n\n fw.close();\n br.close();\n } catch (FileNotFoundException fne) {// TODO\n fne.printStackTrace();\n } catch (IOException ioe) {// TODO\n ioe.printStackTrace();\n }\n\n }", "private void getData(Path inputOne, Path inputTwo) throws IOException {\n String line;\n\n try (BufferedReader br = Files.newBufferedReader(inputOne, StandardCharsets.ISO_8859_1)) {\n\n while((line = br.readLine()) != null){\n City source = null;\n City target = null;\n\n String[] split = line.split(\",\");\n if(!cities.stream().anyMatch(o -> o.getCityName().equalsIgnoreCase(split[0]))) {\n cities.add(source = new City(split[0]));\n }\n if(!cities.stream().anyMatch(o -> o.getCityName().equalsIgnoreCase(split[1]))){\n cities.add(target = new City(split[1]));\n }\n\n for (City city : cities){\n if(city.getCityName().equalsIgnoreCase(split[0])){\n source = city;\n }\n if(city.getCityName().equalsIgnoreCase(split[1])){\n target = city;\n }\n if(source != null && target != null){\n Road newroad = new Road(source, target, Integer.parseInt(split[2]), Integer.parseInt(split[3]));\n roads.add(newroad);\n break;\n }\n }\n }\n }\n\n try (BufferedReader br = Files.newBufferedReader(inputTwo, StandardCharsets.ISO_8859_1)) {\n while((line = br.readLine()) != null) {\n String[] split = line.split(\",\");\n\n for(City city : cities){\n if(city.getCityName().equalsIgnoreCase(split[1])){\n city.addAttraction(split[0]);\n }\n }\n }\n }\n }", "public static void RT() {////cada clase que tiene informacion en un archivo txt tiene este metodo para leer el respectivo archivoy guardarlo en su hashmap\n\t\treadTxt(\"peliculas.txt\", pelisList);\n\t}", "@Override\n\tprotected List<String> performScanning(String inputFilePath) {\n\t\tList<String> resultList = App.fileParser(inputFilePath);\n\t\treturn resultList;\n\t}", "public void preParseInputFileAE(String inputFile) {\n System.out.println(\"Parsing AE log file...\");\n // gathering lots of data\n serverNames = new LinkedHashSet<>();\n applicationNames = new LinkedHashSet<>();\n serviceNames = new LinkedHashSet<>();\n // connected applications, by servers, by simulation step\n graphHistory = new HashMap<>(); // Map<Integer, Map<FakeServer, List<FakeApplication>>>\n // servers, by simulation step\n serverHistory = new HashMap<>(); // Map<Integer, List<FakeServer>>\n // applications, by simulation step\n applicationHistory = new HashMap<>(); // Map<Integer, List<FakeApplication>>\n int stepCounter = 0;\n try {\n BufferedReader br = Files.newBufferedReader(new File(inputFile).toPath());\n String line;\n while ((line = br.readLine()) != null) {\n // init the maps\n graphHistory.put(stepCounter, new HashMap<>());\n serverHistory.put(stepCounter, new ArrayList<>());\n applicationHistory.put(stepCounter, new ArrayList<>());\n List<FakeServer> currentServers = new ArrayList<>();\n // splitting the servers\n String[] serversRaw = line.split(\"\\\\|\");\n // grabbing robustness from last position\n double robustnessRandomShuffle = Double.parseDouble(serversRaw[serversRaw.length - 4]);\n double robustnessRandomForward = Double.parseDouble(serversRaw[serversRaw.length - 3]);\n double robustnessRandomBackward = Double.parseDouble(serversRaw[serversRaw.length - 2]);\n double robustnessServiceShuffle = Double.parseDouble(serversRaw[serversRaw.length - 1]);\n // stat\n maxSimultaneousServers = Math.max(serversRaw.length - 4, maxSimultaneousServers);\n // for all server full String\n for (String serverRaw : Arrays.asList(serversRaw).subList(0, serversRaw.length - 4)) {\n // grabbing the server part\n String server = serverRaw.split(\"=\")[0];\n // grabbing the application part\n String applications = serverRaw.split(\"=\")[1];\n // server name\n serverNames.add(server.split(\"/\")[0]);\n // building the server object\n FakeServer fakeServer = new FakeServer(server.split(\"/\")[0], Integer.parseInt(server.split(\"/\")[1]),\n Integer.parseInt(server.split(\"/\")[2]), Integer.parseInt(server.split(\"/\")[3]), Integer.parseInt(server.split(\"/\")[4]),\n Arrays.asList(server.split(\"/\")).subList(5, server.split(\"/\").length));\n // stats and tools\n serverHistory.get(stepCounter).add(fakeServer);\n currentServers.add(fakeServer);\n graphHistory.get(stepCounter).put(fakeServer, new ArrayList<>());\n maxServerGeneration = Math.max(Integer.parseInt(server.split(\"/\")[1]), maxServerGeneration);\n maxServerConnections = Math.max(Integer.parseInt(server.split(\"/\")[2]), maxServerConnections);\n maxServerSize = Math.max(Arrays.asList(server.split(\"/\")).size(), maxServerSize);\n serviceNames.addAll(Arrays.asList(server.split(\"/\")).subList(5, server.split(\"/\").length));\n maxSimultaneousApplications = Math.max(applications.split(\";\").length, maxSimultaneousApplications);\n // applications\n for (String application : applications.split(\";\")) {\n // building the application object\n FakeApplication fakeApplication = new FakeApplication(application.split(\"/\")[0], Integer.parseInt(application.split(\"/\")[1]),\n Integer.parseInt(application.split(\"/\")[2]), Integer.parseInt(application.split(\"/\")[4]),\n Arrays.asList(application.split(\"/\")).subList(5, application.split(\"/\").length),\n Arrays.asList(application.split(\"/\")[3].split(\"_\")).stream()\n .map(neighborName -> (FakeServer) findActor(neighborName, currentServers))\n .collect(Collectors.toList()));\n // stats and tools\n applicationHistory.get(stepCounter).add(fakeApplication);\n graphHistory.get(stepCounter).get(fakeServer).add(fakeApplication);\n applicationNames.add(application.split(\"/\")[0]);\n maxApplicationGeneration = Math.max(Integer.parseInt(application.split(\"/\")[1]), maxApplicationGeneration);\n maxApplicationConnections = Math.max(Integer.parseInt(application.split(\"/\")[2]), maxApplicationConnections);\n maxApplicationSize = Math.max(Arrays.asList(application.split(\"/\")).size(), maxApplicationSize);\n serviceNames.addAll(Arrays.asList(application.split(\"/\")).subList(5, application.split(\"/\").length));\n }\n }\n stepCounter++;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.out.println(\"Names: \" + serverNames.size() + \"/\" + applicationNames.size() + \"/\" + serviceNames.size());\n System.out.println(\"MaxSimult: \" + maxSimultaneousServers + \"/\" + maxSimultaneousApplications);\n System.out.println(\"MaxGen: \" + maxServerGeneration + \"/\" + maxApplicationGeneration);\n System.out.println(\"MaxSize: \" + maxServerSize + \"/\" + maxApplicationSize);\n stepNumber = stepCounter;\n }", "public static void createHashTable(String inputFileName, String outputFileName){\n File inputFile = new File(inputFileName);\n File outputFile = new File(outputFileName);\n WordCounter h = new WordCounter();\n h.input(inputFile);\n h.output(outputFile);\n }", "private void reformatInputFile() throws IOException, InvalidInputException{\r\n new InputFileConverter(this.inputFileName);\r\n }", "public void userLogInInfoRead(String filepath2, HashMap<String, EmpInfo> mergeData) {\n String data;\n String[] userLogInInfoToken;\n File userLogInInfoFile = new File(filepath2);\n Scanner scanner = null;\n try {\n scanner = new Scanner(userLogInInfoFile);\n } catch (FileNotFoundException e) {\n out.println(\"file not found\");\n }\n if (scanner != null) {\n while (scanner.hasNextLine()) {\n data = scanner.nextLine();\n userLogInInfoToken = data.split(\",\");\n // store userid in mergeData as a key\n EmpInfo empInfo = new EmpInfo(Integer.parseInt(userLogInInfoToken[0]),\n userLogInInfoToken[1], userLogInInfoToken[2], userLogInInfoToken[3]);\n EmpInfo uRole = mergeData.get(userLogInInfoToken[0]);\n uRole.setUserRole(userLogInInfoToken[3]);\n /* merge data have already 6 key and 6 emp information if new key is equal to old key\n then hash map not put new key and hashmap put userRole at old key,hashmap allowed only unique kay*/\n mergeData.put(userLogInInfoToken[0], uRole);\n // all employee log in information add in arraylist for printing information\n userLogInInfo.add(empInfo);\n }\n }\n }", "private void readFile() {\r\n\t\tScanner sc = null; \r\n\t\ttry {\r\n\t\t\tsc = new Scanner(inputFile);\t\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tgrade.add(sc.nextLine());\r\n\t } \r\n\t\t}\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tsc.close();\r\n\t\t}\t\t\r\n\t}", "public static void populateLists() throws IOException\n\t{\n\n\t\tFile loginInfo = new File(\"loginDetails.txt\");\n\t\tFile topics = new File(\"task.txt\");\n\t\tFile games = new File(\"game.txt\");\n\t\tFile questions = new File(\"Questions.txt\");\n\t\tFile topic = new File(\"Topics.txt\");\n\t\t//File userinfo=new File\n Scanner fileReader;\n\t\tString[] temp;\n\t\t\n\t\tloginDetails.add(new ArrayList<String>());\n\t\tloginDetails.add(new ArrayList<String>());\n\t\tloginDetails.add(new ArrayList<String>());\n\t\t\n\t\ttopicsMenu.add(new ArrayList<String>());\n\t\ttopicsMenu.add(new ArrayList<String>());\n\n\t\tgameMenu.add(new ArrayList<String>());\n\t\tgameMenu.add(new ArrayList<String>());\n\t\ttopicMenu.add(new ArrayList<String>());\n\t\ttopicMenu.add(new ArrayList<String>());\n\n\n\t\tfor(int i=0; i<9; i++)\n\t\t\tquestionDetails.add(new ArrayList<String>());\n if(loginInfo.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(loginInfo);\n\t\t\t\n\t\t\twhile(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<loginDetails.size(); i++)\n\t\t\t\t\tloginDetails.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}writeToFile(loginInfo,\"\");\n if(topics.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(topics);\n\n\t\t\twhile(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<topicsMenu.size(); i++)\n\t\t\t\t\ttopicsMenu.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n\t\t if(topic.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(topic);\n\n\t\t\twhile(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<topicMenu.size(); i++)\n\t\t\t\t\ttopicMenu.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n\t\tif(games.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(games);\n\n\t\t\twhile(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<gameMenu.size(); i++)\n\t\t\t\t\tgameMenu.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n if(questions.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(questions);\n while(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<questionDetails.size(); i++)\n\t\t\t\t\tquestionDetails.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n }", "private void processFileEntries(final File filePath, Map<String, Integer> bigramHistogramMap) {\n\n BufferedInputStream bis = null;\n FileInputStream fis = null;\n\n try {\n\n // create FileInputStream object\n fis = new FileInputStream(filePath);\n\n // create object of BufferedInputStream\n bis = new BufferedInputStream(fis);\n\n String stringLine;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(bis));\n\n String previousWord = \"\";\n\n while ((stringLine = br.readLine()) != null) {\n previousWord = addBigramHistogramEntry(stringLine, previousWord, bigramHistogramMap);\n }\n\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found - \" + e);\n } catch (IOException ioe) {\n System.out.println(\"Exception while reading file - \" + ioe);\n } catch (Exception e) {\n System.out.println(\"Unable to load: \" + filePath.getName());\n } finally {\n // close the streams using close method\n try {\n if (fis != null) {\n fis.close();\n }\n if (bis != null) {\n bis.close();\n }\n } catch (IOException ioe) {\n System.out.println(\"Error while closing stream : \" + ioe);\n }\n }\n }", "public List<String> getFileLines() {\n\t\tspeciesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\ttissuesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tcellTypesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tdiseaseByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tquantificationByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tinstrumentByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tmodificationByExperiment = new TIntObjectHashMap<List<String>>();\n\t\texperimental_factorByExperiment = new TIntObjectHashMap<List<String>>();\n\n\t\tfinal List<String> ret = new ArrayList<String>();\n\t\tfinal Map<String, PexFileMapping> fileLocationsMapping = new THashMap<String, PexFileMapping>();\n\t\tfinal List<PexFileMapping> totalFileList = new ArrayList<PexFileMapping>();\n\t\tint fileCounter = 1;\n\t\t// organize the files by experiments\n\t\tfor (final Experiment experiment : experimentList.getExperiments()) {\n\n\t\t\tfinal File prideXmlFile = experiment.getPrideXMLFile();\n\t\t\tif (prideXmlFile != null) {\n\t\t\t\t// FILEMAPPINGS\n\t\t\t\t// PRIDE XML\n\t\t\t\tfinal int resultNum = fileCounter;\n\t\t\t\tfinal PexFileMapping prideXMLFileMapping = new PexFileMapping(\"result\", fileCounter++,\n\t\t\t\t\t\tprideXmlFile.getAbsolutePath(), null);\n\n\t\t\t\ttotalFileList.add(prideXMLFileMapping);\n\t\t\t\tfileLocationsMapping.put(prideXMLFileMapping.getPath(), prideXMLFileMapping);\n\n\t\t\t\t// Iterate over replicates\n\t\t\t\tfinal List<Replicate> replicates = experiment.getReplicates();\n\t\t\t\tfor (final Replicate replicate : replicates) {\n\t\t\t\t\t// sample metadatas\n\t\t\t\t\taddSampleMetadatas(resultNum, replicate);\n\n\t\t\t\t\t// PEak lists\n\t\t\t\t\tfinal List<PexFileMapping> peakListFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// raw files\n\t\t\t\t\tfinal List<PexFileMapping> rawFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// search engine output lists\n\t\t\t\t\tfinal List<PexFileMapping> outputSearchEngineFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// MIAPE MS and MSI reports\n\t\t\t\t\tfinal List<PexFileMapping> miapeReportFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// RAW FILES\n\t\t\t\t\tfinal List<PexFile> rawFiles = getReplicateRawFiles(replicate);\n\n\t\t\t\t\tif (rawFiles != null) {\n\t\t\t\t\t\tfor (final PexFile rawFile : rawFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(rawFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping rawFileMapping = new PexFileMapping(\"raw\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\trawFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\trawFileMappings.add(rawFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(rawFile.getFileLocation(), rawFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> RAW file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(rawFileMapping.getId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// PEAK LISTS\n\t\t\t\t\tfinal List<PexFile> peakListFiles = getPeakListFiles(replicate);\n\t\t\t\t\tfinal List<PexFileMapping> replicatePeakListFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\tif (peakListFiles != null) {\n\t\t\t\t\t\tfor (final PexFile peakList : peakListFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(peakList.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping peakListFileMapping = new PexFileMapping(\"peak\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tpeakList.getFileLocation(), null);\n\t\t\t\t\t\t\t\tpeakListFileMappings.add(peakListFileMapping);\n\t\t\t\t\t\t\t\treplicatePeakListFileMappings.add(peakListFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(peakList.getFileLocation(), peakListFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> PEAK LIST file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(peakListFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> PEAK LIST file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(peakListFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// prideXMLFileMapping\n\t\t\t\t\t\t\t\t// .addRelationship(peakListFileMapping\n\t\t\t\t\t\t\t\t// .getId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// MIAPE MS REPORTS\n\t\t\t\t\tfinal List<PexFile> miapeMSReportFiles = getMiapeMSReportFiles(replicate);\n\t\t\t\t\tif (miapeMSReportFiles != null)\n\t\t\t\t\t\tfor (final PexFile miapeMSReportFile : miapeMSReportFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(miapeMSReportFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping miapeReportFileMapping = new PexFileMapping(\"other\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tmiapeMSReportFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\tmiapeReportFileMappings.add(miapeReportFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(miapeMSReportFile.getFileLocation(), miapeReportFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> MIAPE MS report\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> MIAPE MS report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST file -> MIAPE MS report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(miapeReportFileMapping.getId());\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\n\t\t\t\t\t// SEARCH ENGINE OUTPUT FILES\n\t\t\t\t\tfinal List<PexFile> searchEngineOutputFiles = getSearchEngineOutputFiles(replicate);\n\t\t\t\t\tfinal List<PexFileMapping> replicatesearchEngineOutputFilesMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\tif (searchEngineOutputFiles != null) {\n\t\t\t\t\t\tfor (final PexFile peakList : searchEngineOutputFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(peakList.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping searchEngineOutputFileMapping = new PexFileMapping(\"search\",\n\t\t\t\t\t\t\t\t\t\tfileCounter++, peakList.getFileLocation(), null);\n\t\t\t\t\t\t\t\toutputSearchEngineFileMappings.add(searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\treplicatesearchEngineOutputFilesMappings.add(searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(peakList.getFileLocation(), searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\t// PRIDE XML -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST FILE -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\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}\n\n\t\t\t\t\t// MIAPE MSI REPORTS\n\t\t\t\t\tfinal List<PexFile> miapeMSIReportFiles = getMiapeMSIReportFiles(replicate);\n\t\t\t\t\tif (miapeMSIReportFiles != null)\n\t\t\t\t\t\tfor (final PexFile miapeMSIReportFile : miapeMSIReportFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(miapeMSIReportFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping miapeReportFileMapping = new PexFileMapping(\"other\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tmiapeMSIReportFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\tmiapeReportFileMappings.add(miapeReportFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(miapeMSIReportFile.getFileLocation(), miapeReportFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> MIAPE MSI report\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST FILE -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// SEARCH ENGINE OUTPUT file -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping searchEngineOutputFileMapping : replicatesearchEngineOutputFilesMappings) {\n\t\t\t\t\t\t\t\t\tsearchEngineOutputFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t// Add all to the same list and then sort by id\n\t\t\t\t\ttotalFileList.addAll(outputSearchEngineFileMappings);\n\t\t\t\t\ttotalFileList.addAll(miapeReportFileMappings);\n\t\t\t\t\ttotalFileList.addAll(peakListFileMappings);\n\t\t\t\t\ttotalFileList.addAll(rawFileMappings);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Sort the list of files\n\t\tCollections.sort(totalFileList, new Comparator<PexFileMapping>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(PexFileMapping o1, PexFileMapping o2) {\n\n\t\t\t\treturn Integer.valueOf(o1.getId()).compareTo(Integer.valueOf(o2.getId()));\n\n\t\t\t}\n\n\t\t});\n\t\tfor (final PexFileMapping pexFileMapping : totalFileList) {\n\t\t\tret.add(pexFileMapping.toString());\n\t\t}\n\t\treturn ret;\n\t}", "public void parseFile() {\n File file = new File(inputFile);\n try {\n Scanner scan = new Scanner(file);\n\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n line = line.replaceAll(\"\\\\s+\", \" \").trim();\n\n if (line.isEmpty()) {\n continue;\n }\n // System.out.println(line);\n String cmd = line.split(\" \")[0];\n String lineWithoutCmd = line.replaceFirst(cmd, \"\").trim();\n // System.out.println(lineWithoutCmd);\n\n // The fields following each command\n String[] fields;\n\n switch (cmd) {\n case (\"add\"):\n fields = lineWithoutCmd.split(\"<SEP>\");\n fields[0] = fields[0].trim();\n fields[1] = fields[1].trim();\n fields[2] = fields[2].trim();\n add(fields);\n break;\n case (\"delete\"):\n\n fields = split(lineWithoutCmd);\n delete(fields[0], fields[1]);\n break;\n case (\"print\"):\n if (lineWithoutCmd.equals(\"ratings\")) {\n printRatings();\n break;\n }\n fields = split(lineWithoutCmd);\n\n print(fields[0], fields[1]);\n\n break;\n case (\"list\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n list(fields[0], fields[1]);\n break;\n case (\"similar\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n similar(fields[0], fields[1]);\n break;\n default:\n break;\n }\n\n }\n\n }\n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "private void parseFromCSV(String fileNameX, String fileNameY) throws IOException {\n Scanner inX = new Scanner(new BufferedInputStream(clearInput(new FileInputStream(new File(fileNameX)))));\r\n Scanner inY = new Scanner(new BufferedInputStream(clearInput(new FileInputStream(new File(fileNameY)))));\r\n\r\n for (int i = 0; i < 5000; i++) {\r\n double[] X_i = X[i];\r\n for (int j = 0; j < 3072; j++) {\r\n X_i[j] = inX.nextDouble();\r\n }\r\n int id = inY.nextInt();\r\n int output = inY.nextInt();\r\n y[id - 1] = output;\r\n System.out.println(i + 1);\r\n }\r\n\r\n // Cache the training data (so it's faster to load next time)\r\n {\r\n // Cache X\r\n ByteBuffer bytesX = ByteBuffer.allocate(5000 * 3072 * 8);\r\n DoubleBuffer doublesX = bytesX.asDoubleBuffer();\r\n for (double[] row : X) {\r\n doublesX.put(row);\r\n }\r\n bytesX.rewind();\r\n OutputStream outX = new FileOutputStream(new File(fileNameX + \".cache\"));\r\n outX.write(bytesX.array());\r\n outX.close();\r\n }\r\n\r\n {\r\n // Cache Y\r\n ByteBuffer bytesY = ByteBuffer.allocate(5000 * 8);\r\n bytesY.asIntBuffer().put(y);\r\n bytesY.rewind();\r\n OutputStream outY = new FileOutputStream(new File(fileNameY + \".cache\"));\r\n outY.write(bytesY.array());\r\n outY.close();\r\n }\r\n }", "public void inputForAnalysis() throws IOException\n {\n ArrayList<String> words = new ArrayList<String>(0);\n \n File fileName = new File(\"ciphertext.txt\");\n Scanner inFile = new Scanner(fileName);\n \n int index = 0;\n while(inFile.hasNext())\n {\n words.add(inFile.next());\n index++;\n }\n inFile.close();\n analyze(words);\n }", "public static void main(String[] args) throws IOException {\n if(args.length == 0) {\r\n System.out.println(\"Proper Usage is: java inputfile.txt outputfile.txt\");\r\n System.exit(0);\r\n }\r\n\r\n //Assign agruments\r\n String inputfile=args[0];\r\n String outputfile=args[1];\r\n\r\n //Verify inputfile size is not empty\r\n if (getFileSize(inputfile)<0) {\r\n System.out.println(\"Source input filesize is empty: \");\r\n System.exit(0);\r\n }\r\n\r\n List<String> rowsInputFile = new ArrayList<String>();\r\n rowsInputFile=retrieveAllRows(inputfile);\r\n\r\n ArrayList<Integer> errorList = new ArrayList<>();\r\n ArrayList<ParseString> validRowList = new ArrayList<ParseString>();\r\n\r\n\r\n //evaluateRows=evaluateRows(rowsInputFile);\r\n\r\n //errorList =\r\n //validRowList=\r\n\r\n for (int i = 0; i < rowsInputFile.size(); i++) {\r\n\r\n String pattern = \"\\\\d{3} \\\\d{3} \\\\d{4}\";\r\n String inputString = rowsInputFile.get(i);\r\n Pattern r = Pattern.compile(pattern);\r\n Matcher m = r.matcher(inputString);\r\n\r\n if (m.find()) { //Match\r\n validRowList.add(new ParseString(rowsInputFile.get(i), true));\r\n out.println(inputString);\r\n } else { //No Match\r\n out.println(inputString);\r\n int actualline = i + 1;\r\n errorList.add(actualline);\r\n }\r\n }\r\n\r\n sortJsonArray(validRowList);\r\n\r\n JsonObject json = new JsonObject();\r\n loadValidDataJson(json,validRowList);\r\n loadErrorDataJson(json,errorList);\r\n\r\n createJsonFile(json);\r\n\r\n }", "public static void readDatafiles() throws FileNotFoundException {\n int docNumber = 0;\n\n while(docNumber<totaldocument) { // loop will run until all 0 - 55 speech data is read\n String tempBuffer = \"\";\n\n Scanner sc_obj = new Scanner(new File(\"./inputFiles/speech_\"+docNumber+\".txt\"));\n sc_obj.nextLine(); //skip the first line of every document\n\n while(sc_obj.hasNext()) {\n tempBuffer = sc_obj.next();\n tempBuffer = tempBuffer.replaceAll(\"[^a-zA-Z]+\",\" \");\n\n String[] wordTerm = tempBuffer.split(\" |//.\"); // the read data will convert into single word from whole stream of characters\n // it will split according to white spaces . - , like special characters\n\n for (int i=0; i < wordTerm.length; i++) {\n\n String term = wordTerm[i].toLowerCase();\t\t//each splitted word will be converted into lower case\n term = RemoveSpecialCharacter(term);\t\t\t// it will remove all the characters apart from the english letters\n term = removeStopWords(term);\t\t\t\t\t// it will remove the stopWords and final version of the term in the form of tokens will form\n\n if(!term.equalsIgnoreCase(\"\") && term.length()>1) {\n term = Lemmatize(term);\t\t\t\t\t//all the words in the form of tokens will be lemmatized\n //increment frequency of word if it is already present in dictionary\n if(dictionary.containsKey(term)) {\t\t//all the lemmatized words will be placed in HashMap dictionary\n List<Integer> presentList = dictionary.get(term);\n int wordFrequency = presentList.get(docNumber);\n wordFrequency++;\n presentList.set(docNumber, wordFrequency);\t\t//frequency of all the lemmatized words in dictionary is maintained \t\t\t\t\t\t\t\t\t//i.e: Word <2.0,1.0,3.0,0.0 ...> here hashmap<String,List<Double> is used\n }\t\t\t\t\t\t\t\t\t\t//the 0th index shows the word appared 2 times in doc 0 and 1 times in doc 1 and so forth..\n else { // if word was not in the dictionary then it will be added\n // if word was found in 5 doc so from 0 to 4 index representing doc 0 to doc 4 (0.0) will be placed\n List<Integer>newList = new ArrayList<>();\n for(int j=0; j<57; j++) {\n if(j != docNumber)\n newList.add(0);\n else\n newList.add(1);\n }\n dictionary.put(term, newList);\n }\n }\n }\n\n }\n docNumber++;\n }\n }", "public static void processDataFile() {\n final String INPUT_FILENAME = \"input/assn6input1.txt\";\n File inputFile = null;\n Scanner inputScanner = null;\n System.out.println(\"Reading data from file: \" + INPUT_FILENAME);\n System.out.println();\n try {\n inputFile = new File(INPUT_FILENAME);\n inputScanner = new Scanner(inputFile);\n } catch(FileNotFoundException e) {\n System.err.println(\"Error opening file \" + INPUT_FILENAME);\n }\n while(inputScanner.hasNext()) {\n String[] dataLine = inputScanner.nextLine().split(\",\");\n // Is the first token \"REALTOR\"?\n if(dataLine[0].toUpperCase().equals(\"REALTOR\")) {\n if(dataLine[1].toUpperCase().equals(\"ADD\")) {\n addRealtor(dataLine);\n }\n else if(dataLine[1].toUpperCase().equals(\"DEL\")) {\n //deleteRealtor(dataLine[2]);\n }\n else {\n \n }\n }\n // Is the first token \"PROPERTY\"?\n else if(dataLine[0].toUpperCase().equals(\"PROPERTY\")) {\n if(dataLine[1].toUpperCase().equals(\"ADD\")) {\n addProperty(dataLine);\n }\n else if(dataLine[1].toUpperCase().equals(\"DEL\")) {\n //deleteProperty(Integer.parseInt(dataLine[2]));\n }\n else {\n \n }\n } else {\n // not realtor or property in the first token\n System.out.println(\"\\tNeither realtor, nor property in first\"\n + \" token\");\n }\n }\n inputScanner.close();\n }", "public static void main(String[] args) {\n\t\tHashMap<String, HashMap<String, Double>> file_alph_tf = new HashMap<String, HashMap<String, Double>>();\n\t\tHashMap<String, Double> file_alph_idf = new HashMap<String, Double>();\n\t\tHashMap<String, Double> tmp_idf = new HashMap<String, Double>();\n\t\tHashMap<String, HashMap<String, Double>> result_map = new HashMap<String, HashMap<String, Double>>();\n\t\t// 이후에 cosine similarity를 계산할때 사용할 top5해쉬맵\n\t\tHashMap<String, HashMap<String, Double>> top5 = new HashMap<String, HashMap<String, Double>>();\n\t\t\n\t\tTest01 t1 = new Test01();\n\t\tTest02 t2 = new Test02();\n\t\tTest03 t3 = new Test03();\n\t\t\n\t\t// 각 문서의 특성을 추출 : Test04 - map\t\t\n\t\t\n\t\tFile[] fileList = t1.get_file();\n\t\t\n\t\tfor (File file : fileList) {\n\t\t\t\n\t\t\tHashMap <String, Double> tmp_map = new HashMap <String, Double>();\n\t\t\t\n\t\t\t// count alphabet _ each files\n\t\t\ttry {\n\t\t\t\tFileReader file_reader = new FileReader(file);\n\t\t\t\tint cur = 0;\n\t\t\t\twhile ((cur = file_reader.read()) != -1) {\n\t\t\t\t\tif (cur != 32) {\n\t\t\t\t\t\tif (!tmp_map.containsKey(String.valueOf((char)cur))) {\n\t\t\t\t\t\t\ttmp_map.put(String.valueOf((char)cur), (double) 1);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdouble temp_num = tmp_map.get(String.valueOf((char)cur));\n\t\t\t\t\t\t\ttmp_map.put(String.valueOf((char)cur),temp_num+1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch(FileNotFoundException e) {\n\t\t\t\te.getStackTrace();\n\t\t\t} catch(IOException e) {\n\t\t\t\te.getStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// calc_TF\n\t\t\tArrayList<String> key_lst = new ArrayList<String>(tmp_map.keySet());\n\t\t\tdouble sum_value = 0;\n\t\t\t// TF의 분모 문서내에 오는 모든수 더하기\n\t\t\tfor (String k : key_lst) {\n\t\t\t\tsum_value += tmp_map.get(k);\t\n\t\t\t}\n\t\t\t// TF의 분자 : 해당 파일에 있는 알파벳의 갯수 (tmp_map에 저장되어있음) / tf분모\n\t\t\tfor (String tf_k : key_lst) {\n\t\t\t\tdouble tf = tmp_map.get(tf_k) / sum_value;\n\t\t\t\ttmp_map.put(tf_k, tf);\n\t\t\t}\n\t\t\tsum_value = 0;\n\t\t\tfile_alph_tf.put(file.getName(), tmp_map);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t// calc_IDF_Bottom : counting IDF_Bottom\n\t\t\ttmp_idf = file_alph_tf.get(file.getName());\n\t\t\t\n\t\t\tfor (String idf_k : key_lst) {\n\t\t\t\tif (tmp_idf.get(idf_k) != 0) {\n\t\t\t\t\tif (!file_alph_idf.containsKey(idf_k)) {\n\t\t\t\t\t\tfile_alph_idf.put(idf_k, (double) 1);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tdouble tmp_num = file_alph_idf.get(idf_k);\n\t\t\t\t\t\tfile_alph_idf.put(idf_k, tmp_num+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t} // file의 이름으로 반복\n\t\t\n\t\t\n\t\t// calc_IDF\n\t\tfor (File file : fileList) {\n\t\t\tHashMap<String, Double> aa = new HashMap<String, Double>();\n\t\t\tArrayList<String> key_lst = new ArrayList<String>(file_alph_idf.keySet());\n\t\t\tdouble temp_num = 0;\n\t\t\tfor (String key : key_lst) {\n\t\t\t\t\n\t\t\t\tdouble tf;\n\t\t\t\ttemp_num = 0;\n\t\t\t\ttry {\n\t\t\t\t\ttf = file_alph_tf.get(file.getName()).get(key);\n\t\t\t\t\tif (file_alph_idf.get(key) != 0) {\n\t\t\t\t\t\tdouble tt = file_alph_idf.get(key);\n\t\t\t\t\t\ttemp_num = 7/tt;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttemp_num = 0;\n\t\t\t\t\t}\n\t\t\t\t} catch(NullPointerException e) {\n\t\t\t\t\ttf = 0;\n\t\t\t\t}\n\t\t\t\tdouble idf = Math.log(1+ temp_num);\n\t\t\t\tdouble tfidf = tf*idf;\n\t\t\t\taa.put(key, tfidf);\n\t\t\t}\n//\t\t\tSystem.out.println();\n\t\t\tresult_map.put(file.getName(), aa);\n\t\t}\t\n\t\n\t\t\n\t\t\n\t\t\n\t\tfor(File f : fileList) {\n\t\t\t\n\t//---------------------------------------상위 5개-------------------------------------------\t\t\t\n\t\t\t\n//\t\t\tSystem.out.println(f.getName());\n\t\t\tString f_n = f.getName(); \n\t\t\t\n\t\t\t// 0. 정렬 전 파일 출력\n//\t\t\tArrayList <String> key_lst = new ArrayList<String>(result_map.get(f_n).keySet());\n//\t\t\tfor (String kk : key_lst) {\n//\t\t\t\tSystem.out.println(kk + \" : \" + result_map.get(f_n).get(kk));\n//\t\t\t}\n\t\t\t\n\t\t\tArrayList<String> Top5List = sortHSbyValue_double(result_map.get(f_n));\n//\t\t\tSystem.out.println(Top5List);\n\t\t\tHashMap<String, Double> map = new HashMap<String, Double>();\n\t\t\tfor (String s : Top5List) {\n\t\t\t\tmap.put(s, result_map.get(f_n).get(s));\n\t\t\t}\n\n\t\t\ttop5.put(f_n, map);\t\n\t\t}\n\t\t\n\t\t// cosine_similarity\n\t\t// 구하기 전에 벡터의 차원을 맞춰준다.\n\t\t// input받는 파일을 제외한 나머지 파일들과의 유사도를 구한다.\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.print(\"문서 이름을 입력하세요 : \");\n\t\tString input = sc.next();\n\t\t\n\t\tHashMap<String, Double> csMap = new HashMap<String, Double>();\n\t\t\n\t\tfor (File f : fileList) {\n\t\t\tHashMap<String, Double> a = (HashMap<String, Double>) top5.get(input).clone();\n\t\t\tArrayList<String> a_key_lst = new ArrayList<String>(a.keySet());\n\t\t\tArrayList<String> total_key = new ArrayList<String>();\n\t\t\t\n\t\t\tif (input.equals(f.getName())) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tHashMap<String, Double> b = (HashMap<String, Double>) top5.get(f.getName()).clone();\n\t\t\tArrayList<String> b_key_lst = new ArrayList<String>(b.keySet());\n\t\t\t\n\t\t\tfor (String a_k : a_key_lst) {\n\t\t\t\ttotal_key.add(a_k);\n\t\t\t}\n\t\t\tfor (String b_k : b_key_lst) {\n\t\t\t\ttotal_key.add(b_k);\n\t\t\t}\n\t\t\t\n\t\t\tfor (String t_k : total_key) {\n\t\t\t\tif(!a.containsKey(t_k)) {\n\t\t\t\t\ta.put(t_k, (double)0);\n\t\t\t\t}\n\t\t\t\tif(!b.containsKey(t_k)) {\n\t\t\t\t\tb.put(t_k, (double)0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] a_lst = t3.mapToList(a);\n\t\t\tdouble[] b_lst = t3.mapToList(b);\n\t\t\tdouble cs = cosinSimilarity(a_lst, b_lst);\n\t\t\tcsMap.put(f.getName(), cs);\n\t\t\t\n\t\t\ta_key_lst.clear();\n\t\t\ttotal_key.clear();\n\t\t\t\n\t\t}\n\t\t\n\t\tt2.sort_print(csMap, input);\n\t\t\n\t\tSystem.out.println();\n\t}", "public void processData() {\n\t\t SamReader sfr = SamReaderFactory.makeDefault().validationStringency(ValidationStringency.LENIENT).open(this.inputFile);\n\t\t \n\t\t\t\n\t\t\t//Set up file writer\n\t\t SAMFileWriterFactory sfwf = new SAMFileWriterFactory();\n\t\t sfwf.setCreateIndex(true);\n\t\t SAMFileWriter sfw = sfwf.makeSAMOrBAMWriter(sfr.getFileHeader(), false, this.outputFile);\n\t\t \n\t\t \n\t\t\t\n\t\t\t\n\t\t\t//counters\n\t\t\tint totalReads = 0;\n\t\t\tint trimmedReads = 0;\n\t\t\tint droppedReads = 0;\n\t\t\tint dropTrimReads = 0;\n\t\t\tint dropMmReads = 0;\n\t\t\t\n\t\t\t//Containers\n\t\t\tHashSet<String> notFound = new HashSet<String>();\n\t\t\tHashMap<String, SAMRecord> mateList = new HashMap<String,SAMRecord>();\n\t\t\tHashSet<String> removedList = new HashSet<String>();\n\t\t\tHashMap<String,SAMRecord> editedList = new HashMap<String,SAMRecord>();\n\t\t\t\n\t\t\tfor (SAMRecord sr: sfr) {\n\t\t\t\t//Messaging\n\t\t\t\tif (totalReads % 1000000 == 0 && totalReads != 0) {\n\t\t\t\t\tSystem.out.println(String.format(\"Finished processing %d reads. %d were trimmed, %d were set as unmapped. Currently storing mates for %d reads.\",totalReads,trimmedReads,droppedReads,mateList.size()));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ttotalReads += 1;\n\t\t\t\t\n\t\t\t\tString keyToCheck = sr.getReadName() + \":\" + String.valueOf(sr.getIntegerAttribute(\"HI\"));\n\t\t\t\n\t\t\t\t//Make sure chromsome is available\n\t\t\t\tString chrom = sr.getReferenceName();\n\t\t\t\tif (!this.refHash.containsKey(chrom)) {\n\t\t\t\t\tif (!notFound.contains(chrom)) {\n\t\t\t\t\t\tnotFound.add(chrom);\n\t\t\t\t\t\tMisc.printErrAndExit(String.format(\"Chromosome %s not found in reference file, skipping trimming step\", chrom));\n\t\t\t\t\t}\n\t\t\t\t} else if (!sr.getReadUnmappedFlag()) {\n\t\t\t\t\tString refSeq = null;\n\t\t\t\t\tString obsSeq = null;\n\t\t\t\t\tList<CigarElement> cigar = null;\n\t\t\t\t\t\n\t\t\t\t\t//Get necessary sequence information depending on orientation\n\t\t\t\t\tif (sr.getReadNegativeStrandFlag()) {\n\t\t\t\t\t\trefSeq = this.revComp(this.refHash.get(chrom).substring(sr.getAlignmentStart()-1,sr.getAlignmentEnd()));\n\t\t\t\t\t\tobsSeq = this.revComp(sr.getReadString());\n\t\t\t\t\t\tcigar = this.reverseCigar(sr.getCigar().getCigarElements());\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\trefSeq = this.refHash.get(chrom).substring(sr.getAlignmentStart()-1,sr.getAlignmentEnd());\n\t\t\t\t\t\tobsSeq = sr.getReadString();\n\t\t\t\t\t\tcigar = sr.getCigar().getCigarElements();\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Get alignments\n\t\t\t\t\tString[] alns = this.createAlignmentStrings(cigar, refSeq, obsSeq, totalReads);\n\t\t\t\t\t\n\t\t\t\t\t//Identify Trim Point\n\t\t\t\t\tint idx = this.identifyTrimPoint(alns,sr.getReadNegativeStrandFlag());\n\t\t\t\t\t\n\t\t\t\t\t//Check error rate\n\t\t\t\t\tboolean mmPassed = false;\n\t\t\t\t\tif (mmMode) {\n\t\t\t\t\t\tmmPassed = this.isPoorQuality(alns, sr.getReadNegativeStrandFlag(), idx);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Create new cigar string\n\t\t\t\t\tif (idx < minLength || mmPassed) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tsr.setAlignmentStart(0);\n\t\t\t\t\t\tsr.setReadUnmappedFlag(true);\n\t\t\t\t\t\tsr.setProperPairFlag(false);\n\t\t\t\t\t\tsr.setReferenceIndex(-1);\n\t\t\t\t\t\tsr.setMappingQuality(0);\n\t\t\t\t\t\tsr.setNotPrimaryAlignmentFlag(false);\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\tif (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\t\tmateList.put(keyToCheck, this.changeMateUnmapped(mateList.get(keyToCheck)));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tremovedList.add(keyToCheck);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} \n\t\t\t\t\t\tdroppedReads += 1;\n\t\t\t\t\t\tif (idx < minLength) {\n\t\t\t\t\t\t\tdropTrimReads += 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdropMmReads += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (idx+1 != alns[0].length()) {\n\t\t\t\t\t\ttrimmedReads++;\n\t\t\t\t\t\tCigar oldCig = sr.getCigar();\n\t\t\t\t\t\tCigar newCig = this.createNewCigar(alns, cigar, idx, sr.getReadNegativeStrandFlag());\n\t\t\t\t\t\tsr.setCigar(newCig);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sr.getReadNegativeStrandFlag()) {\n\t\t\t\t\t\t\tint newStart = this.determineStart(oldCig, newCig, sr.getAlignmentStart());\n\t\t\t\t\t\t\tsr.setAlignmentStart(newStart);\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\tif (this.verbose) {\n\t\t\t\t\t\t\tthis.printAlignments(sr, oldCig, alns, idx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\t\tmateList.put(keyToCheck, this.changeMatePos(mateList.get(keyToCheck),sr.getAlignmentStart()));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\teditedList.put(keyToCheck,sr);\n\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}\n\t\t\t\t\n\t\t\t\t//System.out.println(sr.getReadName());\n\t\t\t\tif (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t//String rn = sr.getReadName();\n\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\tif (editedList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\tsr = this.changeMatePos(sr,editedList.get(keyToCheck).getAlignmentStart());\n\t\t\t\t\t\t\teditedList.remove(keyToCheck);\n\t\t\t\t\t\t} else if (removedList.contains(keyToCheck)) {\n\t\t\t\t\t\t\tsr = this.changeMateUnmapped(sr);\n\t\t\t\t\t\t\tremovedList.remove(keyToCheck);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsfw.addAlignment(sr);\n\t\t\t\t\t\tsfw.addAlignment(mateList.get(keyToCheck));\n\t\t\t\t\t\tmateList.remove(keyToCheck);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmateList.put(keyToCheck, sr);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsfw.addAlignment(sr);\n\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\tmateList.remove(keyToCheck);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(String.format(\"Finished processing %d reads. %d were trimmed, %d were set as unmapped. Of the unmapped, %d were too short and %d had too many mismatches. Currently storing mates for %d reads.\",\n\t\t\t\t\ttotalReads,trimmedReads,droppedReads,dropTrimReads, dropMmReads, mateList.size()));\n\t\t\tSystem.out.println(String.format(\"Reads left in hash: %d. Writing to disk.\",mateList.size()));\n\t\t\tfor (SAMRecord sr2: mateList.values()) {\n\t\t\t\tsfw.addAlignment(sr2);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tsfw.close();\n\t\t\ttry {\n\t\t\t\tsfr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\t\n\t}", "private static void initFileNames() {\n if (fileNames == null) {\n fileNames = new HashMap<>();\n }\n fileNames.put(\"Linked List (simple)\", \"MySimpleLinkedList\");\n fileNames.put(\"Linked List\", \"MyLinkedList\");\n fileNames.put(\"Stack\", \"MyStack\");\n fileNames.put(\"Queue\", \"MyArrayDeque\");\n fileNames.put(\"Graph\", \"MyGraph\");\n fileNames.put(\"HashTable\", \"MyHashTable\");\n fileNames.put(\"Linear Search\", \"Algorithms\");\n fileNames.put(\"Binary Search\", \"Algorithms\");\n fileNames.put(\"Bubble Sort\", \"Algorithms\");\n fileNames.put(\"Insertion Sort\", \"Algorithms\");\n fileNames.put(\"Selection Sort\", \"Algorithms\");\n fileNames.put(\"Shell Sort\", \"Algorithms\");\n fileNames.put(\"Merge Sort\", \"Algorithms\");\n fileNames.put(\"Merge Sort (in-place)\", \"Algorithms\");\n fileNames.put(\"Quick Sort\", \"Algorithms\");\n }", "private void PrepareAll(TweetPreprocessor tweetPreprocessor, String Datasetpath) throws IOException\n\t{\n\t\tCSVParser parser = new CSVParser(new FileReader(Datasetpath),CSVFormat.EXCEL.withFirstRecordAsHeader());\n\n\t\tExecutorService threadpool = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());\n\t\tfinal ConcurrentHashMap<String, String> txtHashMap = new ConcurrentHashMap<>();\n\t\tfinal ConcurrentHashMap<String, String> featHashMap = new ConcurrentHashMap<>();\n\t\tfinal ConcurrentHashMap<String, String> compHashMap = new ConcurrentHashMap<>();\n\t\tfinal ConcurrentHashMap<String, String> lexHashMap = new ConcurrentHashMap<>();\n\n\t\tint count = 0;\n\t\tfor (CSVRecord record : parser.getRecords())\n\t\t{\n\t\t\tSystem.out.println(\"Adding Task = \" + count);\n\t\t\tint finalCount = count;\n\n\t\t\tif (count == 17000)\n\t\t\t\tbreak;\n\t\t\tthreadpool.execute(() ->\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Current Executing task : \" + finalCount);\n\t\t\t\tInstance tweet = new Instance(record.get(\"event\"),record.get(\"target\"),null,null);\n\t\t\t\tInstance[] preparedinstances = tweetPreprocessor.startProc(tweet);\n\n\t\t\t\ttxtHashMap.put(preparedinstances[0].getData().toString(), record.get(\"target\"));\n\t\t\t\tfeatHashMap.put(preparedinstances[1].getData().toString(), record.get(\"target\"));\n\t\t\t\tcompHashMap.put(preparedinstances[2].getData().toString(), record.get(\"target\"));\n\t\t\t\tlexHashMap.put(preparedinstances[3].getData().toString(), record.get(\"target\"));\n\t\t\t});\n\t\t\tcount++;\n\t\t}\n\t\t//Initiates an orderly shutdown in which previously submitted tasks are executed,\n //but no new tasks will be accepted\n\t\tthreadpool.shutdown();\n\n\t\twhile (!threadpool.isTerminated());\n\t\tSystem.out.println(\"ThreadPool is shutdown ..\");\n\n\t\ttry (BufferedWriter writer1 = new BufferedWriter(new FileWriter(Dataset + \"data_text.csv\"));\n\t\t\t BufferedWriter writer2 = new BufferedWriter(new FileWriter(Dataset + \"data_feature.csv\"));\n\t\t\t BufferedWriter writer3 = new BufferedWriter(new FileWriter(Dataset + \"data_complex.csv\"));\n\t\t\t BufferedWriter writer4 = new BufferedWriter(new FileWriter(Dataset + \"data_lexicon.csv\")))\n\t\t{\n\t\t\tfor (String tweet : txtHashMap.keySet())\n\t\t\t\twriter1.write(txtHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\t\t\tfor (String tweet : compHashMap.keySet())\n\t\t\t\twriter3.write(compHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\t\t\tfor (String tweet : lexHashMap.keySet())\n\t\t\t\twriter4.write(lexHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\t\t\tfor (String tweet : featHashMap.keySet())\n\t\t\t\twriter2.write(featHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void analysisAndImport(File uploadedFile)\n {\n Map<String, Map<String, String>> map = new HashMap<String, Map<String, String>>();\n\n try\n {\n String[] keyArr = null;\n String key = null;\n String strKey = null;\n String strValue = null;\n InputStream is;\n is = new FileInputStream(uploadedFile);\n BufferedReader bf = new BufferedReader(new InputStreamReader(is));\n Properties prop = new Properties();\n prop.load(bf);\n Enumeration enum1 = prop.propertyNames();\n while (enum1.hasMoreElements())\n {\n // The key profile\n strKey = (String) enum1.nextElement();\n key = strKey.substring(0, strKey.lastIndexOf('.'));\n keyArr = strKey.split(\"\\\\.\");\n // Value in the properties file\n strValue = prop.getProperty(strKey);\n Set<String> keySet = map.keySet();\n if (keySet.contains(key))\n {\n Map<String, String> valueMap = map.get(key);\n Set<String> valueKey = valueMap.keySet();\n if (!valueKey.contains(keyArr[2]))\n {\n valueMap.put(keyArr[2], strValue);\n }\n }\n else\n {\n Map<String, String> valueMap = new HashMap<String, String>();\n valueMap.put(keyArr[2], strValue);\n map.put(key, valueMap);\n }\n }\n // Data analysis\n analysisData(map);\n }\n catch (Exception e)\n {\n logger.error(\"Failed to parse the file\", e);\n }\n }", "private void writeToFiles(Context resultContext) throws IOException {\n\t\tMap<String, Map<Object, ArrayList<Object>>> keyValMappingByBaseOutputPath = resultContext.getKeyValMappingsByBaseOutputPath(); \n\t\t//Write key & value to each baseOutputPath's \n\t\tPath targetOutputDir = null;\n\t\tMap<Object, ArrayList<Object>> keyValMapping = null;\n\t\tPath finalOutputBaseDir = this.config.getFinalOutputDir();\n\t\tfor (String baseOutputPath: keyValMappingByBaseOutputPath.keySet()) {\n\t\t\tif (baseOutputPath.equals(\"\")) {\n\t\t\t\t//Regular output goes into the mapper output buffer directory.\n\t\t\t\ttargetOutputDir = this.config.getMapOutputBufferDir();\n\t\t\t}else {\n\t\t\t\t//Multiple output to a particular outputPath which was \n\t\t\t\t//specified by user goes into the final output directory. \n\t\t\t\ttargetOutputDir = Paths.get(finalOutputBaseDir.toString(), baseOutputPath);\n\t\t\t}\n\t\t\tkeyValMapping = keyValMappingByBaseOutputPath.get(baseOutputPath);\n\t\t\tthis.writeEachMapping(targetOutputDir, keyValMapping);\n\t\t};\n\t}", "void parse(String fileName1,String fileName2) {\n\t\tString sCurrentLine;\n\t\tbr = null;\n\t\t\n\t\t//first read the fileName1\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(fileName1));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"File provided as the first argument is not found\");\n\t\t}\n\t\ttry {\n\t\t\t//For Users.xml\n\t\t\t//read current line and then first extract the attributes and then the\n\t\t\t//\tdata between the double quotes\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\tMatcher m = id.matcher(sCurrentLine);\n\t\t\t\tMatcher dispName = name.matcher(sCurrentLine);\n\t\t\t\tMatcher dbQuotes,num;\n\t\t\t\tif (m.find() && dispName.find()){\n\t\t\t\t\tnum = number.matcher(m.group());\n\t\t\t\t\tdbQuotes = quotes.matcher(dispName.group());\n\t\t\t\t\tnum.find();\n\t\t\t\t\tdbQuotes.find();\n\t\t\t\t\tuserMap.put(Integer.parseInt(num.group()), dbQuotes.group());\n\t\t\t\t}\n\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Some Error in Reading the referred file\");\n\t\t}\n\t\tcatch (IllegalStateException e){\n\t\t\tSystem.out.println(\"Illegal call to the function m.find() or pattern not found\");\n\t\t}\n\t\t\n\t\t\n\t\ttry {\n\t\t\t//read the second file\n\t\t\tbr = new BufferedReader(new FileReader(fileName2));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"File provided as the first argument is not found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t//For posts.xml\n\t\t\t//read current line and then first extract the attributes and then the\n\t\t\t//\tdata between the double quotes\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\tMatcher m = postType.matcher(sCurrentLine);\n\t\t\t\tMatcher owner = ownerId.matcher(sCurrentLine);\n\t\t\t\tMatcher ownId,postNum;\n\t\t\t\tif (m.find() && owner.find()){\n\t\t\t\t\townId = number.matcher(owner.group());\n\t\t\t\t\tpostNum = number.matcher(m.group());\n\t\t\t\t\townId.find();\n\t\t\t\t\tpostNum.find();\n\t\t\t\t\tint key = Integer.parseInt(postNum.group());\n\t\t\t\t\tint own = Integer.parseInt(ownId.group());\n\t\t\t\t\tif (key == 1){\n\t\t\t\t\t\t//if the post is a question\n\t\t\t\t\t\tif(postsMapQuestions.containsKey(own)){\n\t\t\t\t\t\t\tpostsMapQuestions.put(own,postsMapQuestions.get(own)+1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tpostsMapQuestions.put(own, 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t//this post is an answer\n\t\t\t\t\t\tif(postsMapAnswers.containsKey(own)){\n\t\t\t\t\t\t\tpostsMapAnswers.put(own,postsMapAnswers.get(own)+1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tpostsMapAnswers.put(own, 1);\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} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Some Error in Reading the referred file\");\n\t\t}\n\t\tcatch (IllegalStateException e){\n\t\t\tSystem.out.println(\"Illegal call to the function m.find() or pattern not found\");\n\t\t}\n\t}", "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}" ]
[ "0.71087", "0.63313484", "0.6216081", "0.6055899", "0.6050586", "0.59638226", "0.59324", "0.58818966", "0.5857141", "0.58170724", "0.5765517", "0.5765356", "0.5745324", "0.57353234", "0.57127166", "0.5689781", "0.5612449", "0.55878115", "0.5545959", "0.5516969", "0.54660994", "0.54559094", "0.5455689", "0.5449821", "0.54455876", "0.54387695", "0.5437771", "0.5437365", "0.54283255", "0.54059315", "0.5402037", "0.53736514", "0.5369908", "0.5368388", "0.5358009", "0.535095", "0.53427", "0.533955", "0.5336891", "0.53298503", "0.53298426", "0.5322035", "0.5321025", "0.53202206", "0.5313125", "0.5296017", "0.5294802", "0.52792186", "0.5277779", "0.5271234", "0.52696204", "0.5261476", "0.5258117", "0.52473295", "0.52386594", "0.52342975", "0.52275854", "0.5225249", "0.52217764", "0.5219291", "0.52102745", "0.52031684", "0.5201618", "0.5201596", "0.5201074", "0.5200671", "0.5198049", "0.51972556", "0.5196472", "0.51871717", "0.5182693", "0.5170687", "0.5162364", "0.51604295", "0.51544696", "0.5143067", "0.5132561", "0.5123616", "0.51163316", "0.51105875", "0.51081437", "0.51080143", "0.5107931", "0.5104847", "0.51006544", "0.50967705", "0.5091401", "0.50897145", "0.50850976", "0.50699127", "0.5069667", "0.5069533", "0.50672466", "0.5061753", "0.50608665", "0.5059843", "0.5050406", "0.50501335", "0.5045375", "0.5042929" ]
0.5331161
39
parse InputFiles and save them into the Hashtables
public void init(String tmpInputFile) { readFile(tmpInputFile); writeInfoFile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setupFiles() {\n File inputDataFile = new File(inputFileName);\n try {\n inputFile = new Scanner(inputDataFile);\n FileWriter outputDataFileOA = new FileWriter(outputFileNameOA);\n FileWriter outputDataFileLL = new FileWriter(outputFileNameLL);\n outputFileOA = new PrintWriter(outputDataFileOA);\n outputFileLL = new PrintWriter(outputDataFileLL);\n outputFileOA.println(\"Output from open addressing hash table:\");\n outputFileOA.println();\n outputFileLL.println(\"Output from linked list hash table:\");\n outputFileLL.println();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void getFiles() {\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(inputFileName);\n\t\t\tinputBuffer = new BufferedReader(fr);\n\n\t\t\tFileWriter fw = new FileWriter(outputFileName);\n\t\t\toutputBuffer = new BufferedWriter(fw);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found: \" + e.getMessage());\n\t\t\tSystem.exit(-2);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-3);\n\t\t}\n\t}", "private void train() throws IOException {\n\t\thamContent = new String();// the content of ham training files\n\t\tspamContent = new String();// the content of spam training files\n\t\tvocabulary = new ArrayList<String>();// all the\n\t\t\t\t\t\t\t\t\t\t\t\t// vocabulary\n\t\t\t\t\t\t\t\t\t\t\t\t// within\n\t\t\t\t\t\t\t\t\t\t\t\t// training\n\t\t\t\t\t\t\t\t\t\t\t\t// files\n\t\thamSenderDomainHash = new HashMap<String, Integer>();\n\t\thamTimeHash = new HashMap<String, Integer>();\n\t\thamReplyHash = new HashMap<String, Integer>();\n\t\thamNonCharNumHash = new HashMap<String, Integer>();\n\t\tspamSenderDomainHash = new HashMap<String, Integer>();\n\t\tspamTimeHash = new HashMap<String, Integer>();\n\t\tspamReplyHash = new HashMap<String, Integer>();\n\t\tspamNonCharNumHash = new HashMap<String, Integer>();\n\n\t\thamWordProb = new HashMap<String, Double>();\n\t\tspamWordProb = new HashMap<String, Double>();\n\t\tclassProb = new HashMap<String, Double>();\n\n\t\tfor (int i = 0; i < 24; i++) {\n\t\t\thamTimeHash.put(String.valueOf(i), 0);\n\t\t\tspamTimeHash.put(String.valueOf(i), 0);\n\t\t}\n\t\tint numSpam = 0, numHam = 0, numFile = 0;// numbers of training files\n\t\tString buff;// file reading tmp buffer\n\n\t\t/* get all the files in the directory */\n\t\tFile directory = new File(inputDirectory);\n\t\tFile[] files = directory.listFiles();\n\n\t\t/*\n\t\t * assign the content of hams and spams while counting the number of\n\t\t * files\n\t\t */\n\t\tfor (File f : files) {\n\t\t\tif (f.getName().startsWith(\"spam\")) {\n\t\t\t\tString readbuffer = readFile(f, 1);\n\t\t\t\tif (!spamTime.equals(\"-1\")) {\n\t\t\t\t\tspamSenderDomainHash.put(spamSenderDomain, 0);\n\t\t\t\t\thamSenderDomainHash.put(spamSenderDomain, 0);\n\t\t\t\t\tspamNonCharNumHash.put(spamNonCharNum, 0);\n\t\t\t\t\thamNonCharNumHash.put(spamNonCharNum, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (f.getName().startsWith(\"ham\")) {\n\t\t\t\tString readbufferString = readFile(f, 0);\n\t\t\t\tif (!hamTime.equals(\"-1\")) {\n\t\t\t\t\tspamSenderDomainHash.put(hamSenderDomain, 0);\n\t\t\t\t\thamSenderDomainHash.put(hamSenderDomain, 0);\n\t\t\t\t\tspamNonCharNumHash.put(hamNonCharNum, 0);\n\t\t\t\t\thamNonCharNumHash.put(hamNonCharNum, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (File f : files) {\n\t\t\tnumFile++;\n\t\t\t// System.out.println(f.getName());\n\t\t\tif (f.getName().startsWith(\"spam\")) {\n\t\t\t\tnumSpam++; // add to the number of spams\n\t\t\t\tString readbuffer = readFile(f, 1);\n\t\t\t\tif (!spamNonCharNumHash.containsKey(spamNonCharNum))\n\t\t\t\t\tspamNonCharNumHash.put(spamNonCharNum, 1);\n\t\t\t\telse if (spamNonCharNumHash.containsKey(spamNonCharNum))\n\t\t\t\t\tspamNonCharNumHash.put(spamNonCharNum,\n\t\t\t\t\t\t\tspamNonCharNumHash.get(spamNonCharNum) + 1);\n\t\t\t\tif (!spamTime.equals(\"-1\")) {\n\t\t\t\t\tif (!spamSenderDomainHash.containsKey(spamSenderDomain)\n\t\t\t\t\t\t\t&& !(spamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (spamSenderDomain.length() <= 3))\n\t\t\t\t\t\tspamSenderDomainHash.put(spamSenderDomain, 1);\n\t\t\t\t\telse if (spamSenderDomainHash.containsKey(spamSenderDomain)\n\t\t\t\t\t\t\t&& !(spamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (spamSenderDomain.length() <= 3))\n\t\t\t\t\t\tspamSenderDomainHash.put(spamSenderDomain,\n\t\t\t\t\t\t\t\tspamSenderDomainHash.get(spamSenderDomain) + 1);\n\t\t\t\t\tif (!spamTimeHash.containsKey(spamTime))\n\t\t\t\t\t\tspamTimeHash.put(spamTime, 1);\n\t\t\t\t\telse if (spamTimeHash.containsKey(spamTime))\n\t\t\t\t\t\tspamTimeHash.put(spamTime,\n\t\t\t\t\t\t\t\tspamTimeHash.get(spamTime) + 1);\n\t\t\t\t\tif (!spamReplyHash.containsKey(spamReply))\n\t\t\t\t\t\tspamReplyHash.put(spamReply, 1);\n\t\t\t\t\telse if (spamReplyHash.containsKey(spamReply))\n\t\t\t\t\t\tspamReplyHash.put(spamReply,\n\t\t\t\t\t\t\t\tspamReplyHash.get(spamReply) + 1);\n\n\t\t\t\t}\n\t\t\t\tspamContent += readbuffer.toLowerCase();\n\t\t\t\tspamContent = spamContent.replaceAll(\"[^a-zA-Z$\\n]+\", \" \");\n\n\t\t\t} else if (f.getName().startsWith(\"ham\")) { // the same thing for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ham\n\t\t\t\tnumHam++;\n\t\t\t\tString readbuffer = readFile(f, 0);\n\t\t\t\tif (!hamNonCharNumHash.containsKey(hamNonCharNum))\n\t\t\t\t\thamNonCharNumHash.put(hamNonCharNum, 1);\n\t\t\t\telse if (hamNonCharNumHash.containsKey(hamNonCharNum))\n\t\t\t\t\thamNonCharNumHash.put(hamNonCharNum,\n\t\t\t\t\t\t\thamNonCharNumHash.get(hamNonCharNum) + 1);\n\t\t\t\tif (!hamTime.equals(\"-1\")) {\n\t\t\t\t\tif (!hamSenderDomainHash.containsKey(hamSenderDomain)\n\t\t\t\t\t\t\t&& !(hamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (hamSenderDomain.length() <= 3))\n\t\t\t\t\t\thamSenderDomainHash.put(hamSenderDomain, 1);\n\t\t\t\t\telse if (hamSenderDomainHash.containsKey(hamSenderDomain)\n\t\t\t\t\t\t\t&& !(hamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (hamSenderDomain.length() <= 3))\n\t\t\t\t\t\thamSenderDomainHash.put(hamSenderDomain,\n\t\t\t\t\t\t\t\thamSenderDomainHash.get(hamSenderDomain) + 1);\n\n\t\t\t\t\tif (!hamTimeHash.containsKey(hamTime))\n\t\t\t\t\t\thamTimeHash.put(hamTime, 1);\n\t\t\t\t\telse if (hamTimeHash.containsKey(hamTime))\n\t\t\t\t\t\thamTimeHash.put(hamTime, hamTimeHash.get(hamTime) + 1);\n\t\t\t\t\tif (!hamReplyHash.containsKey(hamReply))\n\t\t\t\t\t\thamReplyHash.put(hamReply, 1);\n\t\t\t\t\telse if (hamReplyHash.containsKey(hamReply))\n\t\t\t\t\t\thamReplyHash.put(hamReply,\n\t\t\t\t\t\t\t\thamReplyHash.get(hamReply) + 1);\n\n\t\t\t\t}\n\t\t\t\thamContent += readbuffer.toLowerCase();\n\t\t\t\thamContent = hamContent.replaceAll(\"[^a-zA-Z$\\n]+\", \" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"file read complete!!!\");\n\t\t// System.out.println(hamSenderDomainHash);\n\t\t// System.out.println(hamTimeHash);\n\t\t// System.out.println(hamReplyHash);\n\t\t// System.out.println(hamNonCharNumHash);\n\t\t// System.out.println(spamSenderDomainHash);\n\t\t// System.out.println(spamTimeHash);\n\t\t// System.out.println(spamReplyHash);\n\t\t// System.out.println(spamNonCharNumHash);\n\t\t// System.out.println(spamContent);\n\t\t// System.out.println(hamContent);\n\n\t\t/* calculate probabilities */\n\t\tpHam = (double) numHam / (double) numFile;\n\t\tpSpam = (double) numSpam / (double) numFile;\n\t\t// System.out.println(numHam);\n\t\t// System.out.println(numSpam);\n\t\t// System.out.println(numFile);\n\n\t\tclassProb.put(\"hamProb\", pHam);\n\t\tclassProb.put(\"spamProb\", pSpam);\n\n\t\t/* get vocabulary and its length */\n\t\tString[] hamWord = hamContent.split(\"\\\\s+\");\n\t\tHashMap<String, Integer> hamWordFreq = new HashMap<String, Integer>();\n\t\tfor (int i = 0; i < hamWord.length; i++) {\n\t\t\tif (hamWordFreq.containsKey(hamWord[i]))\n\t\t\t\thamWordFreq.put(hamWord[i], hamWordFreq.get(hamWord[i]) + 1);\n\t\t\tif (!hamWordFreq.containsKey(hamWord[i]))\n\t\t\t\thamWordFreq.put(hamWord[i], 1);\n\t\t}\n\t\thamWordCount = hamWord.length;\n\t\tString[] spamWord = spamContent.split(\"\\\\s+\");\n\t\tHashMap<String, Integer> spamWordFreq = new HashMap<String, Integer>();\n\t\tfor (int i = 0; i < spamWord.length; i++) {\n\t\t\tif (spamWordFreq.containsKey(spamWord[i]))\n\t\t\t\tspamWordFreq\n\t\t\t\t\t\t.put(spamWord[i], spamWordFreq.get(spamWord[i]) + 1);\n\t\t\tif (!spamWordFreq.containsKey(spamWord[i]))\n\t\t\t\tspamWordFreq.put(spamWord[i], 1);\n\t\t}\n\t\tspamWordCount = spamWord.length;\n\t\tSystem.out.println(hamWordFreq.size());\n\t\tSystem.out.println(spamWordFreq.size());\n\t\tSystem.out.println(\"count get!!!\");\n\t\t// System.out.println(hamWordCount);\n\t\t// System.out.println(spamWordCount);\n\t\tfor (int i = 0; i < hamWordCount; i++) {\n\t\t\tif (!vocabulary.contains(hamWord[i]) && !hamWord[i].equals(\"\"))\n\t\t\t\tvocabulary.add(hamWord[i]);\n\t\t}\n\t\t// System.out.println(hamWordFreq);\n\t\tfor (int i = 0; i < spamWordCount; i++)\n\t\t\tif (!vocabulary.contains(spamWord[i]) && !spamWord[i].equals(\"\"))\n\t\t\t\tvocabulary.add(spamWord[i]);\n\t\tvocabLen = vocabulary.size();\n\t\tSystem.out.println(\"vocab init\");\n\t\t/* remove unnecessary words */\n\t\tfor (int i = 0; i < vocabulary.size(); i++) {\n\t\t\tint hamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\thamwordFreq = hamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\thamwordFreq = 0;\n\t\t\t}\n\t\t\tint spamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\tspamwordFreq = spamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\tspamwordFreq = 0;\n\t\t\t}\n\t\t\tif ((hamwordFreq <= 3) && (spamwordFreq <= 3)) {\n\t\t\t\tvocabulary.remove(i);\n\t\t\t\ti--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (((double) ((double) hamwordFreq / (double) hamWordCount) >= 0.005)\n\t\t\t\t\t&& ((double) ((double) spamwordFreq / (double) spamWordCount) >= 0.005)) {\n\t\t\t\t// System.out.println(vocabulary.get(i));\n\t\t\t\tvocabulary.remove(i);\n\t\t\t\ti--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"vocab complete!!!\");\n\t\tSystem.out.println(vocabulary.size());\n\t\tvocabLen = vocabulary.size();\n\t\tfor (int i = 0; i < vocabulary.size(); i++) {\n\t\t\tint hamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\thamwordFreq = hamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\thamwordFreq = 0;\n\t\t\t}\n\t\t\tint spamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\tspamwordFreq = spamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\tspamwordFreq = 0;\n\t\t\t}\n\t\t\thamWordProb.put(\n\t\t\t\t\tvocabulary.get(i),\n\t\t\t\t\tjava.lang.Math.log((double) (hamwordFreq + 1)\n\t\t\t\t\t\t\t/ (double) (hamWordCount + vocabLen)));\n\t\t\tspamWordProb.put(\n\t\t\t\t\tvocabulary.get(i),\n\t\t\t\t\tjava.lang.Math.log((double) (spamwordFreq + 1)\n\t\t\t\t\t\t\t/ (double) (spamWordCount + vocabLen)));\n\t\t\t// System.out.println(i);\n\n\t\t}\n\t\t// System.out.println(hamWordCount);\n\t\t// System.out.println(hamContent);\n\t\t// System.out.println(hamWordProb.size());\n\t\t// System.out.println(spamWordProb.size());\n\t\t// System.out.println(vocabulary.size());\n\t\t//\n\t\t// System.out.println(hamWordProb.size());\n\t\t// System.out.println(vocabulary);\n\t\t// System.out.println(vocabLen);\n\t\tSystem.out.println(\"word prob complete!!!\");\n\t}", "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 }", "public static void getInputFileData(){\n\t\t\t\n\t\t\t// editable fields\n\t\t\t\n\t\t\tString directDistanceFile = \"../data/direct_distance_1.txt\";\n\t\t\tString graphInputFile = \"../data/graph_input_1.txt\";\n\t\t\t\n\t\t\t\n\t\t\t// end of editable fields\n\t\t\t\n\t\t\t\n\t\t\tFile file1 = new File(directDistanceFile);\n\t\t\tFile file2 = new File(graphInputFile);\n\t\t\tfiles.add(file1);\n\t\t\tfiles.add(file2);\n\t\t\t\n\t\t\t/*// Directory where data files are\n\t\t\tPath dataPath = Paths.get(\"../data\");\n\t\t\t\n\t\t\tString path = dataPath.toAbsolutePath().toString();\n\t\t\t\n\t\t\tFile dir = new File (path);\n\t\t\t\t\t\n\t\t\tif (dir.listFiles() == null){\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"WARNING: No files found.\");\n\n\t\t\t} else if (dir.listFiles() != null && dir.listFiles().length == 2) {\n\t\t\n\t\t\t\tfor (File file : dir.listFiles()){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfiles.add(file.getName());\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}\n\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"WARNING: Data folder may only contain two files: direct_distance and\"\n\t\t\t\t\t\t+ \" graph_input. Please modify contents accordingly before proceeding for alorithm to execute.\");\n\t\t\t\t\n\t\t\t}\n\t\t\t*/\n\t\t\t\n\t\t\tfor (File file: files){\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\t// store direct distances in a hashmap\n\t\t\t\t\tif (file.toString().contains(\"distance\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\t//FileReader fileReader = new FileReader(dataPath.toString() + \"/\" + file);\n\t\t\t\t\t\tFileReader fileReader = new FileReader(file);\n\t\t\t\t BufferedReader reader = new BufferedReader(fileReader);\n\t\t\t\t String line = null;\n\t\t\t\t \n\t\t\t\t while ((line = reader.readLine()) != null) {\n\t\t\t\t \t\n\t\t\t\t \tStringBuilder num = new StringBuilder();\n\t\t\t\t \tStringBuilder str = new StringBuilder();\n\t\t\t\t \n\t\t\t\t \tfor(char c : line.toCharArray()){\n\t\t\t\t \t\t//find the distance\n\t\t\t\t if(Character.isDigit(c)){\n\t\t\t\t num.append(c);\n\t\t\t\t } \n\t\t\t\t //find the associated letter\n\t\t\t\t else if(Character.isLetter(c)){\n\t\t\t\t str.append(c); \n\t\t\t\t }\n\t\t\t\t \t}\n\t\t\t\t \t\n\t\t\t\t \t// add values into hashmap\n\t\t\t\t \tdistance.put(str.toString(), Integer.parseInt(num.toString()));\n\t\t\t\t \t\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t reader.close(); // close the reader\n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(distance);\n\t\t\t\t \n\t\t\t\t } \n\t\t\t\t\t\n\t\t\t\t\t// store inputs in a \n\t\t\t\t\telse if (file.toString().contains(\"input\")){\n\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t//FileReader fileReader = new FileReader(dataPath.toString() + \"/\" + file);\n\t\t\t\t\t\tFileReader fileReader = new FileReader(file);\n\t\t\t\t BufferedReader reader = new BufferedReader(fileReader);\n\t\t\t\t \n\t\t\t\t String line = null;\n\t\t\t\t \n\t\t\t\t int x=0; // keeps track of line to add\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t while ((line = reader.readLine()) != null) {\n\t\t\t\t \tString[] values = line.split(\"\\\\s+\");\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t if (matrix == null) {\n\t\t\t\t \t\t //instantiate matrix\n\t\t\t\t matrix = new String[widthOfArray = values.length]\n\t\t\t\t \t\t \t\t\t[lenghtOfArray = values.length];\n\t\t\t\t }\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t// add values into the matrix\n\t\t\t\t \tfor (int i=0; i < values.length; i++){\n\t\t\t\t \t\t\n\t\t\t\t \t\tmatrix[i][x] = values[i];\n\t\t\t\t \t\t\n\t\t\t\t \t}\n\t\t\t\t \t\n\t\t\t\t \tx++; // next line\n\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\t reader.close(); // close the reader\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Store input combinations in a hashmap\n\t\t\t\t\tint y=1; \n\t\t\t\t\twhile (y < lenghtOfArray){\n\t\t\t\t\t\t\n\t\t\t\t\t\tinputNodes.add(matrix[0][y]);\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int i=1; i < widthOfArray; i++){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tStringBuilder str = new StringBuilder();\n\t\t\t\t\t\t\tstr.append(matrix[0][y]);\n\t\t\t\t\t\t\tstr.append(matrix[i][0]);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint inputValue = Integer.parseInt(matrix[i][y]);\n\n\t\t\t\t\t\t\tif (inputValue > 0){\n\t\t\t\t\t\t\t\tinputMap.put(str.toString(), inputValue);\n\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\t\n\t\t\t\t\t\ty++;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"WARNING: Please check: \"+ file.toString() + \". It was not found.\");\n\t\t\t\t} \n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "public void readFiles() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t// Open BufferedReader to open connection to tipslocation URL and read file\n\t\t\tBufferedReader reader1 = new BufferedReader(new InputStreamReader(tipsLocation.openStream()));\n\t\t\t\n\t\t\t// Create local variable to parse through the file\n\t String tip;\n\t \n\t // While there are lines in the file to read, add lines to tips ArrayList\n\t while ((tip = reader1.readLine()) != null) {\n\t tips.add(tip);\n\t }\n\t \n\t // Close the BufferedReader\n\t reader1.close();\n\t \n\t \n\t // Open BufferedReader to open connection to factsLocation URL and read file\n\t BufferedReader reader2 = new BufferedReader(new InputStreamReader(factsLocation.openStream()));\n\t \n\t // Create local variable to parse through the file\n\t String fact;\n\t \n\t // While there are lines in the file to read: parses the int that represents\n\t // the t-cell count that is associated with the line, and add line and int to \n\t // tCellFacts hashmap\n\t while ((fact = reader2.readLine()) != null) {\n\t \t\n\t \tint tCellCount = Integer.parseInt(fact);\n\t \tfact = reader2.readLine();\n\t \t\n\t tCellFacts.put(tCellCount, fact);\n\t }\n\t \n\t // Close the second BufferedReader\n\t reader2.close();\n\t \n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\tSystem.out.println(\"Error loading files\"); e.printStackTrace();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void read() {\n try {\n pre_list = new ArrayList<>();\n suf_list = new ArrayList<>();\n p_name = new ArrayList<>();\n stem_word = new ArrayList<>();\n\n //reading place and town name\n for (File places : place_name.listFiles()) {\n fin = new FileInputStream(places);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n place.add(temp);\n }\n\n }\n\n //reading month name\n for (File mont : month_name.listFiles()) {\n fin = new FileInputStream(mont);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n month.add(temp);\n }\n }\n\n //reading compound words first\n for (File comp_word : com_word_first.listFiles()) {\n fin = new FileInputStream(comp_word);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n comp_first.add(temp);\n }\n }\n //reading next word of the compound\n for (File comp_word_next : com_word_next.listFiles()) {\n fin = new FileInputStream(comp_word_next);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n comp_next.add(temp);\n }\n }\n //reading chi square feature\n for (File entry : chifile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n chiunion.add(temp);\n }\n newunions.clear();\n newunions.addAll(chiunion);\n chiunion.clear();\n chiunion.addAll(newunions);\n chiunion.removeAll(stop_word_list);\n chiunion.removeAll(p_name);\n chiunion.removeAll(month);\n chiunion.removeAll(place);\n }\n //reading short form from abbrivation \n for (File short_list : abbrivation_short.listFiles()) {\n fin = new FileInputStream(short_list);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n shortform.add(temp);\n }\n }\n //reading long form from the abrivation \n for (File long_list : abbrivation_long.listFiles()) {\n fin = new FileInputStream(long_list);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n longform.add(temp);\n }\n }\n //reading file from stop word\n for (File stoplist : stop_word.listFiles()) {\n fin = new FileInputStream(stoplist);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n stop_word_list.add(temp);\n }\n }\n\n //reading person name list\n for (File per_name : person_name.listFiles()) {\n fin = new FileInputStream(per_name);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n p_name.add(temp);\n }\n }\n\n //reading intersection union\n for (File entry : interfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n interunion.add(temp);\n }\n }\n newunions.clear();\n newunions.addAll(interunion);\n interunion.clear();\n interunion.addAll(newunions);\n interunion.removeAll(stop_word_list);\n interunion.removeAll(p_name);\n interunion.removeAll(month);\n interunion.removeAll(place);\n }\n // reading ig union\n for (File entry : igfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n igunion.add(temp);\n }\n }\n for (String str : igunion) {\n int index = igunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n igunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(igunion);\n igunion.clear();\n igunion.addAll(newunions);\n igunion.removeAll(stop_word_list);\n igunion.removeAll(p_name);\n igunion.removeAll(month);\n igunion.removeAll(place);\n }\n //read df uinfion\n for (File entry : dffile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n dfunion.add(temp);\n }\n }\n for (String str : dfunion) {\n int index = dfunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n dfunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(dfunion);\n dfunion.clear();\n dfunion.addAll(newunions);\n dfunion.removeAll(stop_word_list);\n dfunion.removeAll(p_name);\n dfunion.removeAll(month);\n dfunion.removeAll(place);\n }\n //reading unified model\n for (File entry : unionall_3.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n union_3.add(temp);\n }\n }\n for (String str : union_3) {\n int index = union_3.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n union_3.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(union_3);\n union_3.clear();\n union_3.addAll(newunions);\n union_3.removeAll(stop_word_list);\n union_3.removeAll(p_name);\n union_3.removeAll(month);\n union_3.removeAll(place);\n }\n //unified feature for the new model\n for (File entry : unified.listFiles()) {\n\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n newunion.add(temp);\n\n }\n for (String str : newunion) {\n int index = newunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n newunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(newunion);\n newunion.clear();\n newunion.addAll(newunions);\n newunion.removeAll(stop_word_list);\n newunion.removeAll(p_name);\n newunion.removeAll(month);\n newunion.removeAll(place);\n\n // newunion.addAll(newunions);\n }\n // reading test file and predict the class\n for (File entry : test_doc.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n file_test.add(temp);\n\n }\n newunions.clear();\n newunions.addAll(file_test);\n file_test.clear();\n file_test.addAll(newunions);\n file_test.removeAll(stop_word_list);\n file_test.removeAll(p_name);\n file_test.removeAll(month);\n file_test.removeAll(place);\n }\n //reading the whole document under economy class\n for (File entry : economy.listFiles()) {\n fill = new File(economy + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n economydocument[count1] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n economydocument[count1].add(temp);\n if (temp.length() < 2) {\n economydocument[count1].remove(temp);\n }\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n economydocument[count1].remove(temp);\n }\n }\n for (String str : economydocument[count1]) {\n int index = economydocument[count1].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n economydocument[count1].set(index, stem_word.get(i));\n }\n }\n }\n }\n economydocument[count1].removeAll(stop_word_list);\n economydocument[count1].removeAll(p_name);\n economydocument[count1].removeAll(month);\n economydocument[count1].removeAll(place);\n allecofeature.addAll(economydocument[count1]);\n ecofeature.addAll(economydocument[count1]);\n allfeature.addAll(ecofeature);\n all.addAll(allecofeature);\n count1++;\n\n }\n //reading the whole documents under education category \n for (File entry : education.listFiles()) {\n fill = new File(education + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n educationdocument[count2] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n educationdocument[count2].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n educationdocument[count2].remove(temp);\n }\n }\n }\n\n for (String str : educationdocument[count2]) {\n int index = educationdocument[count2].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n educationdocument[count2].set(index, stem_word.get(i));\n }\n }\n }\n educationdocument[count2].removeAll(stop_word_list);\n educationdocument[count2].removeAll(p_name);\n educationdocument[count2].removeAll(month);\n educationdocument[count2].removeAll(place);\n alledufeature.addAll(educationdocument[count2]);\n edufeature.addAll(educationdocument[count2]);\n allfeature.addAll(edufeature);\n all.addAll(alledufeature);\n count2++;\n }\n// //reading all the documents under sport category\n for (File entry : sport.listFiles()) {\n fill = new File(sport + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n sportdocument[count3] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n sportdocument[count3].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n sportdocument[count3].remove(temp);\n }\n }\n }\n\n for (String str : sportdocument[count3]) {\n int index = sportdocument[count3].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n sportdocument[count3].set(index, stem_word.get(i));\n }\n }\n }\n sportdocument[count3].removeAll(stop_word_list);\n sportdocument[count3].removeAll(p_name);\n sportdocument[count3].removeAll(month);\n sportdocument[count3].removeAll(place);\n allspofeature.addAll(sportdocument[count3]);\n spofeature.addAll(sportdocument[count3]);\n allfeature.addAll(spofeature);\n all.addAll(allspofeature);\n count3++;\n }\n\n// //reading all the documents under culture category\n for (File entry : culture.listFiles()) {\n fill = new File(culture + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n culturedocument[count4] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n\n culturedocument[count4].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n culturedocument[count4].remove(temp);\n }\n }\n\n }\n for (String str : culturedocument[count4]) {\n int index = culturedocument[count4].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n culturedocument[count4].set(index, stem_word.get(i));\n }\n }\n }\n culturedocument[count4].removeAll(stop_word_list);\n culturedocument[count4].removeAll(p_name);\n culturedocument[count4].removeAll(month);\n culturedocument[count4].removeAll(place);\n allculfeature.addAll(culturedocument[count4]);\n culfeature.addAll(culturedocument[count4]);\n allfeature.addAll(culfeature);\n all.addAll(allculfeature);\n count4++;\n\n }\n\n// //reading all the documents under accident category\n for (File entry : accident.listFiles()) {\n fill = new File(accident + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n accedentdocument[count5] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n accedentdocument[count5].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n accedentdocument[count5].remove(temp);\n }\n }\n\n }\n\n for (String str : accedentdocument[count5]) {\n int index = accedentdocument[count5].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n accedentdocument[count5].set(index, stem_word.get(i));\n }\n }\n }\n accedentdocument[count5].removeAll(stop_word_list);\n accedentdocument[count5].removeAll(p_name);\n accedentdocument[count5].removeAll(month);\n accedentdocument[count5].removeAll(place);\n allaccfeature.addAll(accedentdocument[count5]);\n accfeature.addAll(accedentdocument[count5]);\n allfeature.addAll(accfeature);\n all.addAll(allaccfeature);\n count5++;\n }\n\n// //reading all the documents under environmental category\n for (File entry : environmntal.listFiles()) {\n fill = new File(environmntal + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n environmntaldocument[count6] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n environmntaldocument[count6].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n environmntaldocument[count6].remove(temp);\n }\n }\n }\n\n for (String str : environmntaldocument[count6]) {\n int index = environmntaldocument[count6].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n environmntaldocument[count6].set(index, stem_word.get(i));\n }\n }\n }\n environmntaldocument[count6].removeAll(stop_word_list);\n environmntaldocument[count6].removeAll(p_name);\n environmntaldocument[count6].removeAll(month);\n environmntaldocument[count6].removeAll(place);\n allenvfeature.addAll(environmntaldocument[count6]);\n envfeature.addAll(environmntaldocument[count6]);\n allfeature.addAll(envfeature);\n all.addAll(allenvfeature);\n count6++;\n }\n\n// //reading all the documents under foreign affairs category\n for (File entry : foreign_affair.listFiles()) {\n fill = new File(foreign_affair + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n foreign_affairdocument[count7] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n foreign_affairdocument[count7].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n foreign_affairdocument[count7].remove(temp);\n }\n }\n\n }\n for (String str : foreign_affairdocument[count7]) {\n int index = foreign_affairdocument[count7].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n foreign_affairdocument[count7].set(index, stem_word.get(i));\n }\n }\n }\n foreign_affairdocument[count7].removeAll(stop_word_list);\n foreign_affairdocument[count7].removeAll(p_name);\n foreign_affairdocument[count7].removeAll(month);\n foreign_affairdocument[count7].removeAll(place);\n alldepfeature.addAll(foreign_affairdocument[count7]);\n depfeature.addAll(foreign_affairdocument[count7]);\n allfeature.addAll(depfeature);\n all.addAll(alldepfeature);\n count7++;\n }\n\n// //reading all the documents under law and justices category\n for (File entry : law_justice.listFiles()) {\n fill = new File(law_justice + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n law_justicedocument[count8] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n law_justicedocument[count8].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n law_justicedocument[count8].remove(temp);\n }\n }\n\n }\n for (String str : law_justicedocument[count8]) {\n int index = law_justicedocument[count8].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n law_justicedocument[count8].set(index, stem_word.get(i));\n }\n }\n }\n law_justicedocument[count8].removeAll(stop_word_list);\n law_justicedocument[count8].removeAll(p_name);\n law_justicedocument[count8].removeAll(month);\n law_justicedocument[count8].removeAll(month);\n alllawfeature.addAll(law_justicedocument[count8]);\n lawfeature.addAll(law_justicedocument[count8]);\n allfeature.addAll(lawfeature);\n all.addAll(alllawfeature);\n count8++;\n }\n\n// //reading all the documents under other category\n for (File entry : agri.listFiles()) {\n fill = new File(agri + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n agriculture[count9] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n agriculture[count9].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n agriculture[count9].remove(temp);\n }\n }\n\n }\n for (String str : agriculture[count9]) {\n int index = agriculture[count9].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n agriculture[count9].set(index, stem_word.get(i));\n }\n }\n }\n agriculture[count9].removeAll(stop_word_list);\n agriculture[count9].removeAll(p_name);\n agriculture[count9].removeAll(month);\n agriculture[count9].removeAll(place);\n allagrifeature.addAll(agriculture[count9]);\n agrifeature.addAll(agriculture[count9]);\n allfeature.addAll(agrifeature);\n all.addAll(allagrifeature);\n count9++;\n }\n //reading all the documents under politics category\n for (File entry : politics.listFiles()) {\n fill = new File(politics + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n politicsdocument[count10] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n politicsdocument[count10].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n politicsdocument[count10].remove(temp);\n }\n }\n }\n for (String str : politicsdocument[count10]) {\n int index = politicsdocument[count10].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n politicsdocument[count10].set(index, stem_word.get(i));\n }\n }\n }\n politicsdocument[count10].removeAll(stop_word_list);\n politicsdocument[count10].removeAll(p_name);\n politicsdocument[count10].removeAll(month);\n politicsdocument[count10].removeAll(place);\n allpolfeature.addAll(politicsdocument[count10]);\n polfeature.addAll(politicsdocument[count10]);\n allfeature.addAll(polfeature);\n all.addAll(allpolfeature);\n count10++;\n }\n //reading all the documents under science and technology category\n for (File entry : science_technology.listFiles()) {\n fill = new File(science_technology + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n science_technologydocument[count12] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n science_technologydocument[count12].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n science_technologydocument[count12].remove(temp);\n }\n }\n\n }\n for (String str : science_technologydocument[count12]) {\n int index = science_technologydocument[count12].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n science_technologydocument[count12].set(index, stem_word.get(i));\n }\n }\n }\n science_technologydocument[count12].removeAll(stop_word_list);\n science_technologydocument[count12].removeAll(p_name);\n science_technologydocument[count12].removeAll(month);\n science_technologydocument[count12].removeAll(place);\n allscifeature.addAll(science_technologydocument[count12]);\n scifeature.addAll(science_technologydocument[count12]);\n allfeature.addAll(scifeature);\n all.addAll(allscifeature);\n count12++;\n\n }\n\n //reading all the documents under health category\n for (File entry : health.listFiles()) {\n fill = new File(health + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n healthdocument[count13] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n healthdocument[count13].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n healthdocument[count13].remove(temp);\n }\n }\n }\n for (String str : healthdocument[count13]) {\n int index = healthdocument[count13].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n healthdocument[count13].set(index, stem_word.get(i));\n }\n }\n }\n healthdocument[count13].removeAll(stop_word_list);\n healthdocument[count13].removeAll(p_name);\n healthdocument[count13].removeAll(month);\n healthdocument[count13].removeAll(place);\n allhelfeature.addAll(healthdocument[count13]);\n helfeature.addAll(healthdocument[count13]);\n allfeature.addAll(helfeature);\n all.addAll(allhelfeature);\n count13++;\n }\n\n //reading all the file of relgion categories \n for (File entry : army_file.listFiles()) {\n fill = new File(army_file + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n army[count14] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n army[count14].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n army[count14].remove(temp);\n }\n }\n\n }\n for (String str : army[count14]) {\n int index = army[count14].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n army[count14].set(index, stem_word.get(i));\n }\n }\n }\n army[count14].removeAll(stop_word_list);\n army[count14].removeAll(p_name);\n army[count14].removeAll(month);\n army[count14].removeAll(place);\n allarmfeature.addAll(army[count14]);\n armfeature.addAll(army[count14]);\n allfeature.addAll(armfeature);\n all.addAll(allarmfeature);\n count14++;\n }\n } catch (Exception ex) {\n System.out.println(\"here\");\n }\n }", "public void processFiles(){\n\t\tfor(String fileName : files) {\n\t\t\ttry {\n\t\t\t\tloadDataFromFile(fileName);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"Can't open file: \" + fileName);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tprintInOrder();\n\t\t\tstudents.clear();\n\t\t}\n\t}", "public static void processFilesForValidation() {\r\n\t\t// Process each file one at a time.\r\n\t\tfor (int i = 0; i < inScanners.length; i++) {\r\n\t\t\tScanner sc = inScanners[i];\r\n\t\t\tint articleCount = 1;\r\n\t\t\t// Read the input file.\r\n\t\t\ttry {\r\n\t\t\t\twhile(sc.hasNextLine()) {\r\n\t\t\t\t\tString s = sc.nextLine();\r\n\t\t\t\t\t// If we come across an article, read its contents and add it to the file.\r\n\t\t\t\t\tif(s.startsWith(\"@ARTICLE{\")) {\r\n\t\t\t\t\t\tauthor = journal = title = year = volume = number = pages = doi = ISSN = month = \"\";\r\n\t\t\t\t\t\twhile (!s.equals(\"}\")) {\r\n\t\t\t\t\t\t\ts = sc.nextLine();\r\n\t\t\t\t\t\t\tparseValue(s);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Throw an exception if a field is missing.\r\n\t\t\t\t\t\tif (author.isEmpty() || journal.isEmpty() || title.isEmpty() || year.isEmpty() || volume.isEmpty() \r\n\t\t\t\t\t\t\t\t|| number.isEmpty() || pages.isEmpty() || doi.isEmpty() || ISSN.isEmpty() || month.isEmpty()) {\r\n\t\t\t\t\t\t\tthrow new FileInvalidException(\"One or more fields are missing.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Add the article to the file if valid.\r\n\t\t\t\t\t\tString author1 = author.replaceAll(\" and\", \",\");\r\n\t\t\t\t\t\tint andIndex = author.indexOf(\"and\");\r\n\t\t\t\t\t\tString author2 = andIndex != -1 ? author.replaceAll(author.substring(andIndex,author.length()), \"et al\") : author;\r\n\t\t\t\t\t\tString author3 = author.replaceAll(\"and\", \"&\");\r\n\t\t\t\t\r\n\t\t\t\t\t\t// IEEE\r\n\t\t\t\t\t\toutWriters[i][0].println(author1+\". \\\"\"+title+\"\\\", \"+journal+\", vol. \"+volume+\", no. \"+number+\", p. \"+pages+\", \"+month+\" \"+year+\".\\r\\n\");\r\n\t\t\t\t\t\t// ACM\r\n\t\t\t\t\t\toutWriters[i][1].println(\"[\"+articleCount+\"]\\t\"+author2+\". \"+year+\". \"+title+\". \"+journal+\". \"+volume+\", \"+number+\" (\"+year+\"), \"+pages+\". DOI:https://doi.org/\"+doi+\".\\r\\n\");\r\n\t\t\t\t\t\t// NJ\r\n\t\t\t\t\t\toutWriters[i][2].println(author3+\". \"+title+\". \"+journal+\". \"+volume+\", \"+pages+\"(\"+year+\").\\r\\n\");\r\n\t\t\t\t\t\tarticleCount++;\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t\t// Close output writers once file has been read.\r\n\t\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t\t\t\t\toutWriters[i][j].close();\r\n\t\t\t\t}\r\n\t\t\t\tnumValidFiles++;\r\n\t\t\t}\r\n\t\t\t// If file is invalid, close and delete the output files.\r\n\t\t\tcatch (FileInvalidException e) {\r\n\t\t\t\tSystem.out.println(\"Error: Detected Empty Field!\" \r\n\t\t\t\t\t\t + \"\\n============================\"\r\n\t\t\t + \"\\nProblem detected with input file: Latex\" + (i + 1) + \".bib\"\r\n\t\t\t\t\t\t + \"\\nFile is invalid: \" + e.getMessage() + \" Processing stopped at this point. \"\r\n\t\t\t\t\t\t + \"Other empty/missing fields may be present as well.\\n\");\r\n\t\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t\t\t\t\toutWriters[i][j].close();\r\n\t\t\t\t\toutFiles[i][j].delete();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Close input file after reading.\r\n\t\t\tsc.close();\r\n\t\t}\r\n\t}", "private static void loadFiles(String[] files) throws IOException {\n\t\tfor(String file : files){\n\n\t\t\t//Create reader for the file\n\t\t\tBufferedReader fileReader = new BufferedReader(new FileReader(file));\n\n\t\t\t//Create HashMap to store words and counts\n\t\t\tHashMap<String,WordCount> fileWordCounts = new HashMap<String,WordCount>();\n\t\t\tArrayList<String> sentences = new ArrayList<String>();\n\n\t\t\t//While the file still has more lines to be read from\n\t\t\twhile(fileReader.ready()){\n\n\t\t\t\t//Read a line from the file\n\t\t\t\tString fileLine = fileReader.readLine();\n\t\t\t\t//Add the line to file sentences\n\t\t\t\tsentences.add(fileLine);\n\t\t\t\t//Split the file and remove punctuation from words\n\t\t\t\tString[] fileWords = fileLine.replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase().split(\"\\\\s+\");\n\n\t\t\t\t//iterate through all words in each line\n\t\t\t\tfor (String word : fileWords)\n\t\t\t\t{\n\t\t\t\t\tWordCount count = fileWordCounts.get(word);\n\t\t\t\t\t//If word is not in file, add it \n\t\t\t\t\tif (count == null) {\n\t\t\t\t\t\tfileWordCounts.put(word,new WordCount(word));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcount.inc(); //If not, increment it\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t}\n\n\t\t\t//Add file to fileDatabase \n\t\t\tfileDatabase.map.put(file, new FileObject(file, fileWordCounts, sentences));\n\n\t\t\tfileReader.close(); // Close File\n\n\t\t}//End of For Loop reading from all files\n\t}", "private void readFileList() throws IOException {\n\t\tint entries = metadataFile.readInt();\n\n\t\tfor (int i = 0; i < entries; i++) {\n\t\t\tint hash = metadataFile.readInt();\n\t\t\tlong dataOffset = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tlong dataSize = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tint pathListIndex = metadataFile.readInt();\n\n\t\t\tlong position = metadataFile.getPosition();\n\t\t\tmetadataFile.setPosition(pathListOffset + 8 + (pathListIndex * 8));\n\n\t\t\tlong pathOffset = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tint pathSize = metadataFile.readInt();\n\n\t\t\tmetadataFile.setPosition(pathListOffset + pathOffset);\n\t\t\tString path = metadataFile.readString(pathSize).trim();\n\n\t\t\tif (hash == hash(path)) \n\t\t\t\tfileEntries.add(new RAFFileEntry(dataOffset, dataSize, path));\n\t\t\telse\n\t\t\t\tthrow new IOException(\"Invalid hash for item '\" + path + \"'.\");\n\n\t\t\tmetadataFile.setPosition(position);\n\t\t}\n\t}", "private void createDicts(String inputFile){\n\t\tproductIds = new TreeMap<>();\n\t\ttokenDict = new TreeMap<>();\n\t\treviewIds = new TreeMap<>();\n\n\t\tDataParser dataParser = null;\n\t\ttry {\n\t\t\tdataParser = new DataParser(inputFile);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error occurred while reading the reviews input file.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tfor (int i = 0; i < dataParser.allReviews.size(); i++) {\n\t\t\taddProductId(dataParser.allReviews.get(i).get(\"productId\"), i + 1);\n\t\t\tint length = addReviewText(dataParser.allReviews.get(i).get(\"text\"), i + 1);\n\t\t\taddReviewId(dataParser.allReviews.get(i), i, length);\n\t\t}\n\t}", "public void input(File inputFile){\n instantiateTable();\n try{\n String line = \"\";\n //method to scan certain words between 2 delimiting characters, usually blank lines or white spaces or tabs.\n Scanner read = new Scanner(inputFile).useDelimiter(\"\\\\W+|\\\\n|\\\\r|\\\\t|, \");\n //while there is a next word, keeps reading the file \n while (read.hasNext()){\n line = read.next().toLowerCase();\n LLNodeHash words = new LLNodeHash(line, 1, null);\n add(words);\n }\n read.close();\n }\n catch (FileNotFoundException e){\n System.out.print(\"Not found\");\n e.printStackTrace();\n }\n System.out.println(hashTable.length);\n System.out.println(space());\n System.out.println(loadFactor);\n System.out.println(collisionLength());\n print();\n }", "public static void main(String[] args) {\n BufferedReader console = new BufferedReader(\r\n new InputStreamReader(System.in));\r\n System.out.print(\"Please enter data file names: \");\r\n \r\n String params = null;\r\n try {\r\n \tparams = console.readLine();\r\n } catch (IOException e) {\r\n \tparams = null;\r\n }\r\n if (params == null) {\r\n \tSystem.out.print(\"Please enter valid file names.\");\r\n \treturn;\r\n }\r\n \r\n StringTokenizer token = new StringTokenizer(params, \",\");\r\n String[] inputParams = new String[100];\r\n int count = 0;\r\n while (token.hasMoreTokens())\r\n \tinputParams[count++] = token.nextToken().trim();\r\n \r\n String[] inputFiles = new String[count];\r\n System.arraycopy(inputParams, 0, inputFiles, 0, count);\r\n \r\n // Start program\r\n Log log = Log.getInstance();\r\n \r\n scanners = new Scanner[inputFiles.length];\r\n writers = new PrintWriter[inputFiles.length];\r\n filenames = inputFiles;\r\n \r\n for (int i = 0; i < inputFiles.length; i++) {\r\n try {\r\n scanners[i] = new Scanner(new File(inputFiles[i]));\r\n } catch (IOException e) {\r\n System.out.println(\"Could not open input file \" + inputFiles[i] + \" for reading.\");\r\n System.out.println(\"Please check if file exists! \" +\r\n \"Program will terminate after closing any opened files.\");\r\n closeScanners();\r\n return;\r\n }\r\n }\r\n \r\n for (int i = 0; i < inputFiles.length; i++) {\r\n try {\r\n writers[i] = new PrintWriter(getJson(inputFiles[i]));\r\n } catch (IOException e) {\r\n System.out.println(\"Could not open input file \" + inputFiles[i] + \" for writing.\");\r\n System.out.println(\"Program will terminate after closing any opened files.\");\r\n \r\n closeScanners();\r\n closeWriters();\r\n return;\r\n }\r\n }\r\n \r\n /*\r\n */\r\n if (!processFilesForValidation(scanners, writers)) {\r\n closeScanners();\r\n cleanWriters();\r\n return;\r\n }\r\n\r\n /*\r\n * Ask the user to enter the name of one of the created output files to display\r\n */\r\n for (int i = 0; i < 2; ++i) {\r\n System.out.print(\"Enter JSON file name: \");\r\n String file = \"\";\r\n try {\r\n file = console.readLine();\r\n } catch (IOException e) {\r\n\r\n }\r\n BufferedReader reader = null;\r\n try {\r\n reader = new BufferedReader(new FileReader(file));\r\n String line;\r\n while ((line = reader.readLine()) != null)\r\n System.out.println(line);\r\n break;\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"The file does not exist.\");\r\n } catch (IOException e) {\r\n System.out.println(\"Failed to read the file.\");\r\n } finally {\r\n try {\r\n if (reader != null)\r\n reader.close();\r\n } catch (IOException e) {\r\n }\r\n }\r\n }\r\n log.close();\r\n \r\n closeScanners();\r\n closeWriters();\r\n }", "public void buildWordFileMap(){\n hashWords.clear();\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()){ //for all the files selected make the hashWords hashmap\n addWordsFromFile(f);\n }\n \n }", "public void preParseInputFileFF(String inputFolder) {\n System.out.println(\"Parsing FF log file...\");\n serverNames = new LinkedHashSet<>();\n applicationNames = new LinkedHashSet<>();\n serviceNames = new LinkedHashSet<>();\n graphHistory = new HashMap<>();\n serverHistory = new HashMap<>();\n applicationHistory = new HashMap<>();\n robustnessByStep = new HashMap<>();\n int fileStep;\n try {\n // for all files in the input folder\n for (File inputFile : Arrays.asList(new File(inputFolder).listFiles()).stream()\n .filter(file -> !file.isDirectory())\n .collect(Collectors.toList())) {\n // grabbing the step from the file name\n fileStep = Integer.parseInt(inputFile.getName().split(\"_\")[2]);\n graphHistory.put(fileStep, new HashMap<>());\n serverHistory.put(fileStep, new ArrayList<>());\n applicationHistory.put(fileStep, new ArrayList<>());\n List<FakeServer> currentServers = new ArrayList<>();\n BufferedReader br = Files.newBufferedReader(inputFile.toPath());\n String line;\n robustnessByStep.put(fileStep, (double) (Integer.parseInt(br.readLine().split(\"=\")[1].trim())) / 1000d);\n // skipping lines until \"PLATFORMS\"\n while ((line = br.readLine()) != null && !line.equalsIgnoreCase(\"PLATFORMS\")) {\n\n }\n //reading platforms\n while (!(line = br.readLine()).equalsIgnoreCase(\"APPLICATIONS\")) {\n if (line.length() > 0) {\n String server = line;\n String services = br.readLine();\n serverNames.add(server.split(\";\")[0].trim());\n FakeServer fakeServer = new FakeServer(server.split(\";\")[0].trim(), 0,\n Integer.parseInt(server.split(\";\")[1]), Integer.parseInt(server.split(\";\")[2]), fileStep,\n Arrays.asList(services.substring(1, services.length() - 1).split(\",\")).stream()\n .map(String::trim)\n .collect(Collectors.toList()));\n serverHistory.get(fileStep).add(fakeServer);\n currentServers.add(fakeServer);\n graphHistory.get(fileStep).put(fakeServer, new ArrayList<>());\n maxServerGeneration = Math.max(0, maxServerGeneration);\n maxServerConnections = Math.max(Integer.parseInt(server.split(\";\")[1]), maxServerConnections);\n maxServerSize = Math.max(fakeServer.services.size(), maxServerSize);\n serviceNames.addAll(fakeServer.services);\n maxSimultaneousApplications = Math.max(0, maxSimultaneousApplications);\n }\n }\n //reading applications\n while ((line = br.readLine()) != null) {\n if (line.length() > 0) {\n String application = line;\n String services = br.readLine();\n String servers = br.readLine();\n String neighbors = br.readLine();\n FakeApplication fakeApplication = new FakeApplication(application.split(\";\")[0].trim(), 0,\n servers.substring(1, servers.length() - 2).split(\"\\\\s\").length, fileStep,\n Arrays.asList(services.substring(1, services.length() - 1).split(\",\")).stream()\n .map(String::trim)\n .collect(Collectors.toList()),\n neighbors.equalsIgnoreCase(\"\") ? new ArrayList<>() : Arrays.asList(neighbors.substring(1, neighbors.length() - 2).split(\"\\\\s\")).stream()\n .map(neighborName -> (FakeServer) findActor(neighborName, currentServers))\n .collect(Collectors.toList()));\n applicationHistory.get(fileStep).add(fakeApplication);\n for (String server : servers.substring(1, servers.length() - 2).split(\"\\\\s\")) {\n graphHistory.get(fileStep)\n .get(findActor(server, new ArrayList<>(graphHistory.get(fileStep).keySet())))\n .add(fakeApplication);\n }\n applicationNames.add(fakeApplication.name);\n maxApplicationGeneration = Math.max(fakeApplication.generation, maxApplicationGeneration);\n maxApplicationConnections = Math.max(fakeApplication.connections, maxApplicationConnections);\n maxApplicationSize = Math.max(fakeApplication.services.size(), maxApplicationSize);\n serviceNames.addAll(fakeApplication.services);\n }\n }\n serviceNames.remove(\"\");\n stepNumber = Math.max(fileStep + 1, stepNumber);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.out.println(\"Names: \" + serverNames.size() + \"/\" + applicationNames.size() + \"/\" + serviceNames.size());\n System.out.println(\"MaxSimult: \" + maxSimultaneousServers + \"/\" + maxSimultaneousApplications);\n System.out.println(\"MaxGen: \" + maxServerGeneration + \"/\" + maxApplicationGeneration);\n System.out.println(\"MaxSize: \" + maxServerSize + \"/\" + maxApplicationSize);\n }", "private void scanDocuments()\n{\n document_counts = new HashMap<>();\n kgram_counts = new HashMap<>();\n for (File f : root_files) {\n addDocuments(f);\n }\n}", "public void ProcessFiles() {\n LOG.info(\"Processing SrcML files ...\");\n final Collection<File> allFiles = ctx.files.AllFiles();\n int processed = 0;\n final int numAllFiles = allFiles.size();\n final int logDiv = Math.max(1, Math.round(numAllFiles / 100f));\n\n for (File file : allFiles) {\n final String filePath = file.filePath;\n final FilePath fp = ctx.internFilePath(filePath);\n\n Document document = readSrcmlFile(filePath);\n DocWithFileAndCppDirectives extDoc = new DocWithFileAndCppDirectives(file, fp, document, ctx);\n\n internAllFunctionsInFile(file, document);\n processFeatureLocationsInFile(extDoc);\n\n if ((++processed) % logDiv == 0) {\n int percent = Math.round((100f * processed) / numAllFiles);\n LOG.info(\"Parsed SrcML file \" + processed + \"/\" + numAllFiles\n + \" (\" + percent + \"%) (\" + (numAllFiles - processed) + \" to go)\");\n }\n }\n\n LOG.info(\"Parsed all \" + processed + \" SrcML file(s).\");\n }", "public static void files(Scanner input) throws FileNotFoundException { \n File inputName = inputVerify(input); // call inputVerify method to get the name of the input file \n\n System.out.print(\"Output file name: \"); // ask user for output file name and save it to outputFile variable \n\t\tString outputName = input.next();\n\n Scanner inputFile = new Scanner(inputName); // reads input file\n\n // creates a new PrintStream object to print to the output file\n PrintStream output = new PrintStream(new File(outputName)); \n\n // while loop that runs as long as the input file has another line\n while (input.hasNextLine()){\n String line = inputFile.nextLine(); // reads entire line\n output.println(line + \":\"); // prints name to file\n String scoreLine = inputFile.nextLine(); // reads next line\n abCount(scoreLine, output); // call abCount method\n }\n }", "public static void processFile(String inputpath, String outputpath)\r\n\t{\r\n\t\ttry {\r\n\t\t\t//create both files\r\n\t\t\tFile input = new File(inputpath);\r\n\t\t\tFile output = new File(outputpath);\r\n\t\t\t//read over the input file and put the results in the output file\r\n\t\t\tFileWriter fw = new FileWriter(output); \r\n\t\t\tScanner scan = new Scanner(input);\r\n\t\t\twhile(scan.hasNextLine()) {\r\n\t\t\t\tString word = scan.nextLine();\r\n\t\t\t\t//this looks for the word in the data structure.\r\n\t\t\t\t//If it exists, it writes it in the output file\r\n\t\t\t\tif(data.search(word)) {\r\n\t\t\t\t\tfw.write(word);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//If not, it gets the suggestions\r\n\t\t\t\t\tList<String> suggestions = data.suggest(word);\r\n\t\t\t\t\tif(suggestions.size() == 0) {\r\n\t\t\t\t\t\tfw.write(\"There are no suggestions for \"+ word + \".\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tString sugg = \"\";\r\n\t\t\t\t\t\tfor(String s : suggestions) {\r\n\t\t\t\t\t\t\tsugg += s +\" \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfw.write(sugg);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfw.write(\"\\r\\n\"); //this adds a new line\r\n\t\t\t}\r\n\t\t\tfw.close(); \r\n\t\t\tscan.close(); \r\n\t\t} catch (Exception e) {\r\n\t\t\t//If any exception, an error is printed \r\n\t\t\tSystem.out.println(\"Error reading or writing the files\");\r\n\t\t}\r\n\t\t\r\n\t}", "public static HashMap<String, String> processCSVVocabs(String path) throws FileNotFoundException {\n HashMap<String, String> ontoAndTest = new HashMap<>();\n BufferedReader in = null;\n in = new java.io.BufferedReader(new java.io.FileReader(path));\n\n String currentLine;\n int lineN = 0;\n String ontology=\"\";\n String test=\"\";\n String name=\"\";\n try {\n while ((currentLine = in.readLine()) != null) {\n if (lineN == 0) {\n lineN++; //get rid of the headers\n } else {\n //process each vocab\n String[] info = currentLine.split(\";\");\n ontology = info[0];\n test = info[1];\n ontoAndTest.put(ontology,test);\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return ontoAndTest;\n }", "public static void main(String[] args) throws IOException {\n\t\tfileDatabase = new FileData<String, FileObject>();\n\t\tboolean exit = false;\n\n\t\t//Create Scanner for user input\n\t\tScanner input = new Scanner(System.in);\n\t\tScanner read = new Scanner(System.in);\n\n\t\t//Loop to get user input while exit boolean is false\n\t\tdo {\n\t\t\tSystem.out.println(\"Enter: \\n\"\n\t\t\t\t\t+ \"1 to load files\\n\"\n\t\t\t\t\t+ \"2 to do a single file search with matching word count preference\\n\"\n\t\t\t\t\t+ \"3 to do a multiple file search with matching word count preference\\n\"\n\t\t\t\t\t+ \"4 to do a single file search with matching sentence preference\\n\"\n\t\t\t\t\t+ \"5 to do a multiple file search with matching sentence preference\\n\"\n\t\t\t\t\t+ \"6 to exit\");\n\n\t\t\t//Get User Decision\n\t\t\tint decision = input.nextInt();\n\n\t\t\t//Initialize variables \n\t\t\tString[] keyWords;\n\t\t\tFileObject bestFile;\n\t\t\tString userInput;\n\t\t\tLinkedList<Entry<FileObject, Integer>> sortedList;\n\t\t\tIterator<Entry<FileObject, Integer>> it;\n\t\t\tlong startTime, endTime,duration;\n\t\t\t\n\t\t\t//Switch statement based on user input\n\t\t\tswitch(decision){\n\n\t\t\t//LOADING FILES\n\t\t\tcase 1: \n\t\t\t\t//Get Input for files to load\n\t\t\t\tSystem.out.println(\"Specify files to load or enter 'exit' to quit: \");\n\t\t\t\tSystem.out.print(\"Load: \");\n\n\t\t\t\tString[] files = read.nextLine().split(\" \");\n\t\t\t\tif(files[0] == \"exit\"){\n\t\t\t\t\texit = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t//startTime = System.nanoTime();\n\t\t\t\t//Load the files\n\t\t\t\tloadFiles(files);\n\n\t\t\t\t//endTime = System.nanoTime();\n\n\t\t\t\t//duration = (endTime - startTime)/1000000; //divide by 1000000 to get milliseconds\n\t\t\t\t//System.out.println(\"Execution took: \" + duration + \" milliseconds\");\n\t\t\t\tbreak;\n\n\t\t\t\t//SINGLE FILE SEARCH (Word Count Preference)\n\t\t\tcase 2: \n\t\t\t\t//Get input for search\n\t\t\t\tSystem.out.println(\"Enter search or enter 'exit' to quit: \");\n\t\t\t\tuserInput = read.nextLine();\n\t\t\t\tif(userInput == \"exit\")\n\t\t\t\t\texit = true;\n\n\t\t\t\tkeyWords = userInput.split(\" \");\n\n\t\t\t\t//Find the file best matching the keyWords\n\t\t\t\t\n\t\t\t\t//startTime = System.nanoTime();\n\t\t\t\t\n\t\t\t\tbestFile = fileDatabase.bestMatchedWC(keyWords);\n\t\t\t\t\n\t\t\t\t//endTime = System.nanoTime();\n\n\t\t\t\t//duration = (endTime - startTime); //divide by 1000000 to get milliseconds\n\t\t\t\t//System.out.println(\"Execution took: \" + duration + \" milliseconds\");\n\n\t\t\t\tif(bestFile == null)\n\t\t\t\t\tSystem.out.println(\"No File Contains Those Keywords\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"The file best matching your search is: \" + bestFile.getFileName());\n\t\t\t\tbreak;\n\n\t\t\t\t//MULTIPLE FILE SEARCH (Word Count Preference)\n\t\t\tcase 3: \n\t\t\t\t//Get input for search\n\t\t\t\tSystem.out.println(\"Enter search or enter 'exit' to quit: \");\n\t\t\t\tuserInput = read.nextLine();\n\t\t\t\tif(userInput == \"exit\")\n\t\t\t\t\texit = true;\n\n\t\t\t\tkeyWords = userInput.split(\" \");\n\n\t\t\t\t//Find the file best matching the keyWords\n\t\t\t\t//startTime = System.nanoTime();\n\t\t\t\tsortedList = fileDatabase.bestMatchedMultipleWC(keyWords);\n\t\t\t\t\n\t\t\t\t//endTime = System.nanoTime();\n\n\t\t\t\t//duration = (endTime - startTime); //divide by 1000000 to get milliseconds\n\t\t\t\t//System.out.println(\"Execution took: \" + duration + \" milliseconds\");\n\n\t\t\t\tSystem.out.println(\"Files matching your search by word count (in order) are: \\n\");\n\t\t\t\tit = sortedList.iterator();\n\t\t\t\twhile(it.hasNext())\n\t\t\t\t\tSystem.out.println(it.next().getKey().getFileName() + \"\\n\");\n\n\t\t\t\t//System.out.println(sortedList.toString());\n\n\t\t\t\tbreak;\n\n\t\t\t\t//SINGLE FILE SEARCH (Sentence Preference)\n\t\t\tcase 4: \n\t\t\t\t//Get input for search\n\t\t\t\tSystem.out.println(\"Enter search or enter 'exit' to quit: \");\n\t\t\t\tuserInput = read.nextLine();\n\t\t\t\tif(userInput == \"exit\")\n\t\t\t\t\texit = true;\n\n\t\t\t\tkeyWords = userInput.split(\" \");\n\n\t\t\t\t//Find the file best matching the keyWords\n\t\t\t\t//startTime = System.nanoTime();\n\t\t\t\tbestFile = fileDatabase.bestMatchedS(keyWords);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//endTime = System.nanoTime();\n\n\t\t\t\t//duration = (endTime - startTime)/1000000; //divide by 1000000 to get milliseconds\n\t\t\t\t//System.out.println(\"Execution took: \" + duration + \" milliseconds\");\n\n\t\t\t\tif(bestFile == null)\n\t\t\t\t\tSystem.out.println(\"No File Contains Those Keywords\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"The file best matching your search is: \" + bestFile.getFileName());\n\t\t\t\tbreak;\n\n\t\t\t\t//MULTIPLE FILE SEARCH (Sentence Preference)\n\t\t\tcase 5: \n\t\t\t\t//Get input for search\n\t\t\t\tSystem.out.println(\"Enter search or enter 'exit' to quit: \");\n\t\t\t\tuserInput = read.nextLine();\n\t\t\t\tif(userInput == \"exit\")\n\t\t\t\t\texit = true;\n\n\t\t\t\tkeyWords = userInput.split(\" \");\n\n\t\t\t\t//Find the file best matching the keyWords\n\t\t\t\t//startTime = System.nanoTime();\n\t\t\t\tsortedList = fileDatabase.bestMatchedMultipleS(keyWords);\n\t\t\t\t\n\t\t\t\t//endTime = System.nanoTime();\n\n\t\t\t\t//duration = (endTime - startTime)/1000000; //divide by 1000000 to get milliseconds\n\t\t\t\t//System.out.println(\"Execution took: \" + duration + \" milliseconds\");\n\n\t\t\t\tSystem.out.println(\"Files matching your search by sentence (in order) are: \\n\");\n\t\t\t\tit = sortedList.iterator();\n\t\t\t\twhile(it.hasNext())\n\t\t\t\t\tSystem.out.println(it.next().getKey().getFileName() + \"\\n\");\n\t\t\t\tbreak;\n\n\t\t\tcase 6:\n\t\t\t\texit = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t} while(!exit);\n\n\t\tSystem.exit(0);\n\t}", "private static Map<String, List<List<String>>>[] splitYagoDataIntoDocumentSets(File yagoInputFile) {\r\n\t\tMap<String, List<List<String>>> trainData = new HashMap<String, List<List<String>>>();\r\n\t\tMap<String, List<List<String>>> testaData = new HashMap<String, List<List<String>>>();\r\n\t\tMap<String, List<List<String>>> testbData = new HashMap<String, List<List<String>>>();\r\n\t\t\r\n\t\tBufferedReader reader = FileUtil.getFileReader(yagoInputFile.getAbsolutePath());\r\n\t\ttry {\r\n\t\t\tString documentName = null;\r\n\t\t\tString documentSet = null;\r\n\t\t\tList<List<String>> documentLines = null;\r\n\t\t\tList<String> sentenceLines = null;\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tif (line.startsWith(\"-DOCSTART-\")) {\r\n\t\t\t\t\tif (documentSet != null) {\r\n\t\t\t\t\t\tif (documentSet.equals(\"train\"))\r\n\t\t\t\t\t\t\ttrainData.put(documentName, documentLines);\r\n\t\t\t\t\t\telse if (documentSet.equals(\"testa\"))\r\n\t\t\t\t\t\t\ttestaData.put(documentName, documentLines);\r\n\t\t\t\t\t\telse if (documentSet.equals(\"testb\"))\r\n\t\t\t\t\t\t\ttestbData.put(documentName, documentLines);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString docId = line.substring(\"-DOCSTART- (\".length(), line.length() - 1);\r\n\t\t\t\t\tString[] docIdParts = docId.split(\" \");\r\n\t\t\t\t\tdocumentName = docIdParts[0] + \"_\" + docIdParts[1];\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (docIdParts[0].endsWith(\"testa\"))\r\n\t\t\t\t\t\tdocumentSet = \"testa\";\r\n\t\t\t\t\telse if (docIdParts[0].endsWith(\"testb\"))\r\n\t\t\t\t\t\tdocumentSet = \"testb\";\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tdocumentSet = \"train\";\r\n\t\t\t\t\t\r\n\t\t\t\t\tdocumentLines = new ArrayList<List<String>>();\r\n\t\t\t\t\tsentenceLines = new ArrayList<String>();\r\n\t\t\t\t} else if (line.trim().length() == 0) {\r\n\t\t\t\t\tdocumentLines.add(sentenceLines);\r\n\t\t\t\t\tsentenceLines = new ArrayList<String>();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsentenceLines.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (documentSet.equals(\"train\"))\r\n\t\t\t\ttrainData.put(documentName, documentLines);\r\n\t\t\telse if (documentSet.equals(\"testa\"))\r\n\t\t\t\ttestaData.put(documentName, documentLines);\r\n\t\t\telse if (documentSet.equals(\"testb\"))\r\n\t\t\t\ttestbData.put(documentName, documentLines);\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tMap<String, List<List<String>>>[] returnData = new HashMap[3];\r\n\t\treturnData[0] = trainData;\r\n\t\treturnData[1] = testaData;\r\n\t\treturnData[2] = testbData;\r\n\t\t\r\n\t\treturn returnData;\r\n\t}", "public static HashMap<String, IRI> processCSVGoTHash(String path) throws FileNotFoundException {\n BufferedReader in = null;\n in = new java.io.BufferedReader(new java.io.FileReader(path));\n String currentLine;\n int lineN = 0;\n String value=\"\";\n String term=\"\";\n HashMap<String, IRI> got = new HashMap<String, IRI>();\n try {\n while ((currentLine = in.readLine()) != null) {\n if (lineN == 0) {\n lineN++; //get rid of the headers\n } else {\n //process each vocab\n String[] info = currentLine.split(\";\");\n if(info.length==2) {\n value = info[0];\n term = info[1];\n }\n got.put(value, IRI.create(term));\n\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return got ;\n }", "private FileManager()\n {\n bookFile.open(\"bookdata.txt\");\n hisFile.open(\"history.txt\");\n idFile.open(\"idpassword.txt\");\n createIDMap();\n createHisMap(Customer.getInstance());\n }", "public void readTable() {\r\n\r\n try ( BufferedReader b = new BufferedReader(new FileReader(\"Hashdata.txt\"))) {\r\n\r\n String line;\r\n ArrayList<String> arr = new ArrayList<>();\r\n while ((line = b.readLine()) != null) {\r\n\r\n arr.add(line);\r\n }\r\n\r\n for (String str : arr) {\r\n this.load(str);\r\n }\r\n this.print();\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"Unable to read file\");\r\n }\r\n\r\n this.userInterface();\r\n\r\n }", "@SuppressWarnings({\"PMD.EmptyCatchBlock\", \"PMD.CloseResource\", \"PMD.UseTryWithResources\"})\n private void merge(@Nonnull Collection<File> inputFiles, @Nonnull File outputFile) throws IOException, GeneralSecurityException {\n final long startTime = System.nanoTime();\n final List<InputState> inputs = new ArrayList<>(inputFiles.size());\n OutputState output = null;\n boolean success = false;\n try {\n for (File file : inputFiles) {\n InputState input = new InputState(file, adapter);\n inputs.add(input);\n input.next();\n }\n output = new OutputState(outputFile, adapter);\n while (true) {\n InputState minState = null;\n for (InputState input : inputs) {\n if (input.key != null) {\n if (minState == null) {\n minState = input;\n } else {\n int comp = adapter.isSerializedOrderReversed() ?\n ByteArrayUtil.compareUnsigned(input.key, minState.key) :\n ByteArrayUtil.compareUnsigned(minState.key, input.key);\n if (comp > 0) {\n minState = input;\n }\n }\n }\n }\n if (minState == null) {\n break;\n }\n output.next(minState.key, minState.value);\n minState.next();\n }\n output.finish();\n output.close();\n success = true;\n } finally {\n if (output != null) {\n try {\n output.close();\n } catch (IOException ex) {\n // swallow cleanup error\n }\n if (!success) {\n try {\n deleteFile(outputFile);\n } catch (IOException ex) {\n // swallow cleanup error\n }\n }\n }\n for (InputState input : inputs) {\n try {\n input.close();\n if (success) {\n deleteFile(input.file);\n }\n } catch (IOException ex) {\n // swallow cleanup error\n }\n }\n if (timer != null) {\n timer.recordSinceNanoTime(SortEvents.Events.FILE_SORT_MERGE_FILES, startTime);\n }\n }\n }", "@Override\n public void saveDataFromCsvFile(List<TimetableUpload> inputData) {\n Map<String, Timetable> timetables = new HashMap<>();\n Semester semester = semesterService.getLatestSemester();\n Long latestVersionInSemester = timetableService.getLatestTimetableVersionInSemester(semester.getId());\n\n //timetableUpload = eden red od csv fajlot\n for (TimetableUpload timetableUpload : inputData) {\n //odreduvanje na modul\n String studentGroup = timetableUpload.getModule();\n String identifier = timetableUpload.getProfessor() + \" \" + timetableUpload.getSubject() + \" \" + timetableUpload.getRoom() + \" \" + studentGroup + \" \" + timetableUpload.getDay();\n\n if (!timetables.containsKey(identifier)) {\n\n //vnesuvanje na profesori i asistenti\n Professor professor = professorService.getProfessorByName(timetableUpload.getProfessor());\n if(professor == null) {\n professorService.saveProfessor(timetableUpload.getProfessor());\n professor = professorService.getProfessorByName(timetableUpload.getProfessor());\n }\n\n Subject subject = subjectService.getSubjectByName(timetableUpload.getSubject());\n if (subject == null) {\n subjectService.saveSubject(timetableUpload.getSubject());\n subject = subjectService.getSubjectByName(timetableUpload.getSubject());\n }\n\n Timetable newTimetable = new Timetable(8 + Long.parseLong(timetableUpload.getHourFrom()),\n 9 + Long.parseLong(timetableUpload.getHourFrom()), Long.parseLong(timetableUpload.getDay()), timetableUpload.getRoom(),\n studentGroup, professor, subject, semester, latestVersionInSemester + 1);\n timetables.put(identifier, newTimetable);\n } else {\n Timetable existingTimetable = timetables.get(identifier);\n existingTimetable.setHourTo(existingTimetable.getHourTo() + 1);\n timetables.replace(identifier, existingTimetable);\n }\n timetableService.saveAll(timetables.values());\n }\n }", "private static void populateDataStructures(\r\n final String filename,\r\n final Map<String, List<String>> sessionsFromCustomer,\r\n Map<String, List<View>> viewsFromSessions,\r\n Map<String, List<Buy>> buysFromSessions\r\n\r\n /* add parameters as needed */\r\n )\r\n throws FileNotFoundException\r\n {\r\n try (Scanner input = new Scanner(new File(filename)))\r\n {\r\n processFile(input, sessionsFromCustomer,\r\n viewsFromSessions, buysFromSessions\r\n /* add arguments as needed */ );\r\n }\r\n }", "public void storeValue() {\n\t\tScanner s;\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\SubR1.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tSubR1.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\SubR2.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tSubR2.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\SubIRR.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tSubIRR.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\PredR1.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tPredR1.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\PredR2.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tPredR2.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\PredR3.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tPredR3.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\ObjR1.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tObjR1.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\ObjR2.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tObjR2.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"Files\\\\PrepR1.txt\"));\t\t//Read the reference file.\n\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tPrepR1.add(s.nextLine());\t\t\t\t\t\t//Store the reference file in Arraylist.\n\t\t\t}\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void main(String[] args) throws FileNotFoundException{ \n File file = new File(\"/Users/admin/NetBeansProjects/AlgoDataA3/src/algodataa3e3/output_interpret.txt\");\n Scanner input = new Scanner(file); \n \n SeparateChainingHash_A3E3<String, Integer> st = new SeparateChainingHash_A3E3<>(INTERVAL);\n //141491 words\n //9944 uniqe (with toLowerCase)\n \n //read file word by word and store in array\n while (input.hasNext()) {\n String key = input.next().toLowerCase();\n st.put(key, 1);\n }\n \n for(int i = 0; i < INTERVAL; i++){\n \n System.out.println(\"In hash #\" + (i+1) + \" there are \" + st.sizeOfList(i) + \" nodes\");\n }\n }", "static void ReadAndWriteDataSet(String folderName) throws IOException\n\t{\n\t\t\n\t\t String path = \"data\"+FS+\"data_stage_one\"+FS+folderName; // Folder path \n\t\t \n\t\t String filename, line;\n\t\t File folder = new File(path);\n\t\t File[] listOfFiles = folder.listFiles();\n\t\t BufferedReader br = null;\n\t\t for(int i=0; i < listOfFiles.length; i++)\n\t\t { \n\t\t\t System.out.println(listOfFiles[i].getName());\n\t\t\t filename = path+FS+listOfFiles[i].getName();\n\t\t\t try\n\t\t\t {\n\t\t\t\t br= new BufferedReader(new FileReader(new File(filename)));\n\t\t\t\t while((line = br.readLine())!= null)\n\t\t\t\t {\n\t\t\t\t\tfor(int j=0; j<prep.length; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(line);\n\t\t\t\t\t\twhile(st.hasMoreTokens())\n\t\t\t\t\t\t\tif(st.nextToken().equalsIgnoreCase(prep[j]))\n\t\t\t\t\t\t\t{\t//System.out.println(line);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(arr[j] == null)\n\t\t\t\t\t\t\t\t\tarr[j] = new ArrayList<String>();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tarr[j].add(line.toLowerCase().replaceAll(\"\\\\p{Punct}\",\"\").trim().replaceAll(\"\\\\s+\", \" \"));\n\t\t\t\t\t\t\t\tbreak;\n\t\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 }\n\t\t\t catch(Exception e)\n\t\t\t {\n\t\t\t\t System.err.println(\"exception: \"+e.getMessage() );\n\t\t\t\t e.printStackTrace();\n\t\t\t\t System.exit(0);\n\t\t\t }\n\t\t\t finally\n\t\t\t {\n\t\t\t\t br.close();\n\t\t\t }\n\t\t }\n\t\t \n\t\t // Writes the entire arraylist(preposition wise seperated files)\n\t\t \n\t\t WriteSeperated(folderName);\n\t\t \n\t\t for(int i=0; i<prep.length; i++)\n\t\t {\n\t\t\t arr[i].clear();\n\t\t }\n\t\t \n\t}", "private List<Integer> parseFile(Scanner input) {\n mySimType = input.next();\n myCellShape = input.next();\n neighborPolicy = input.next();\n edgePolicy = input.next();\n isOutlined = input.next();\n initialConfig = input.next();\n\n myNumStates = input.nextInt();\n myStateMap = new HashMap<>();\n for (int i = 0; i < myNumStates; i++){\n var name = input.next();\n var type = input.nextInt();\n var colorString = input.next();\n var image = input.next();\n var prob = Double.parseDouble(input.next());\n var amt = input.nextInt();\n State s = new State(name, type, Color.valueOf(colorString), image, prob, amt);\n myStateMap.put(type, s);\n }\n\n numCols = input.nextInt();\n numRows = input.nextInt();\n\n checkValid();\n\n return getResults(input);\n }", "public void parseFileForInput(emailValidator sortingObject){\n File fileObj;\n try {\n fileObj = new File(sortingObject.getPath());\n Scanner scannerObj = new Scanner(fileObj);\n \n while(scannerObj.hasNextLine()){\n String currentEmail = scannerObj.nextLine();\n\n //for each email, call validate method on it\n if(isEmailValid(currentEmail) && !currentEmail.equals(\"end\")){\n String domainEnding = extractEmailEnding(currentEmail);\n sortingObject.allEmails.put(currentEmail, domainEnding);\n\n }\n else if(currentEmail.equals(\"end\")){\n scannerObj.close();\n break;\n }\n }\n scannerObj.close();\n } \n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n}", "public static void readFileToMap(Map<String, List<Integer>> hashMap, String path, int numFiles, int thisFileNum){\n try{\n FileReader file = new FileReader(path);\n BufferedReader textFile = new BufferedReader(file);\n\n String fileLine = \"\";\n String[] wordsInLine;\n List<Integer> occurences;\n List<Integer> temp;\n\n while((fileLine = textFile.readLine()) != null){\n wordsInLine = fileLine.split(\" \");\n cleanLine(wordsInLine);\n //add them to map\n for(String word : wordsInLine){\n\n if(word.length() > Table.maxWordLength){ //keeps track of the longest character\n Table.setMaxWordLength(word.length());\n }\n\n if(!hashMap.containsKey(word)){\n occurences = new ArrayList<>(); //creating a new value makes it so that one change wont affect every HashMap element\n occurences = setZerosList(numFiles);\n occurences.set(thisFileNum, 1);\n hashMap.put(word, occurences);\n }\n else{\n temp = hashMap.get(word); //this code makes a new list, and increments the word appearance by 1\n temp.set(thisFileNum, temp.get(thisFileNum)+1);\n hashMap.put(word, temp );\n }\n }\n }\n }\n catch (Exception e){\n //e.printStackTrace();\n return;\n }\n }", "private void readFileAndStoreData_(String fileName) {\n In in = new In(fileName);\n int numberOfTeams = in.readInt();\n int teamNumber = 0;\n while (!in.isEmpty()) {\n assignTeam_(in, teamNumber);\n assignTeamInfo_(in, numberOfTeams, teamNumber);\n teamNumber++;\n }\n }", "public void parse(String userInput) {\n\t\tString[] args = toStringArray(userInput, ' ');\n\t\tString key = \"\";\n\t\tArrayList<String> filePaths = new ArrayList<String>();\n\t\tboolean caseSensitive = true;\n\t\tboolean fileName = false;\n\n\t\t// resolves the given args\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\tif (args[i].equals(\"-i\")) {\n\t\t\t\tcaseSensitive = false;\n\t\t\t} else if (args[i].equals(\"-l\")) {\n\t\t\t\tfileName = true;\n\t\t\t} else if (args[i].contains(\".\")) {\n\t\t\t\tfilePaths.add(args[i]);\n\t\t\t} else {\n\t\t\t\tkey = args[i];\n\t\t\t}\n\t\t}\n\t\t// in the case of multiple files to parse this repeats until all files\n\t\t// have been searched\n\t\tfor (String path : filePaths) {\n\t\t\tthis.document = readFile(path);\n\t\t\tfindMatches(key, path, caseSensitive, fileName);\n\t\t}\n\t}", "public static void main(String[] args) throws IOException{\n\n\t\tString inputUri = args[0];\n\t\tString basePath = args[1];\n\t\tString outPutFile = args[2];\n\t\t\n\n\t\t// Helper classes for writing files\n\t\tWriteHashMap sparkHadoopHashMapWriter = new WriteHashMap();\n\t\t// The path of the hadoop file\n\t\t// This is the default 2 line structure for Spark applications\n\t\tSparkConf conf = new SparkConf().setMaster(\"local[*]\")\n\t\t\t\t.setAppName(ProcessHadoopFile.class.getSimpleName());\n\t\tconf.set(\"spark.driver.maxResultSize\", \"14g\");\n\t\t// Set the config\n\t\tJavaSparkContext sc = new JavaSparkContext(conf);\n\t\t// Read in with spark\n\t\tJavaPairRDD<String, byte[]> totalDataset = sc\n\t\t\t\t.sequenceFile(inputUri, Text.class, BytesWritable.class, 24 * 3)\n\t\t\t\t.mapToPair(new ByteWriteToByteArr());\n\t\t// GET THE TOTAL MAP\n\t\tJavaPairRDD<String, byte[]> mainMap = totalDataset.filter(t -> t._1.endsWith(\"_total\"))\n\t\t\t\t.mapToPair(new RemoveSuffixAndGzip());\n\n\t\t// NOW GET THE HEADER MAP\n\t\tJavaPairRDD<String, byte[]> headerMap = totalDataset.filter(new Function<Tuple2<String,byte[]>, Boolean>() {\n\n\t\t\t/**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = 7574230201179927345L;\n\n\t\t\t@Override\n\t\t\tpublic Boolean call(Tuple2<String, byte[]> v1) throws Exception {\n\t\t\t\tif(v1._1.endsWith(\"_header\")==true){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}).mapToPair(new RemoveSuffixAndGzip());\n\n\t\t/// NOW GET THE CALPHA MAP\n\t\tJavaPairRDD<String, byte[]> calphaMap = totalDataset.filter(new Function<Tuple2<String,byte[]>, Boolean>() {\n\n\t\t\t/**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = -8312184119385524L;\n\n\t\t\t@Override\n\t\t\tpublic Boolean call(Tuple2<String, byte[]> v1) throws Exception {\n\t\t\t\tif(v1._1.endsWith(\"_calpha\")==true){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}).mapToPair(new RemoveSuffixAndGzip());\n\n\t\t// Now write the hadoop sequence file as the whole pdb\n\t\t// Now collect these as maps\n\n\t\tsparkHadoopHashMapWriter.writeHashMapToFile(headerMap.collectAsMap(), basePath+\"headerMap.map\");\n\t\tsparkHadoopHashMapWriter.writeHashMapToFile(calphaMap.collectAsMap(), basePath+\"calphaMap.map\");\n\t\t// Now do the main map\n\t\t//\t\t Now write this out as a hash map\n\t\tsparkHadoopHashMapWriter.writeHashMapToFile(mainMap.collectAsMap(), basePath+\"mainMap.map\");\n\n\t\t// Don't write the structures out as fat files\n//\t\tList<Partition> parted = mainMap.partitions();\n//\t\tfor(int i=0; i<parted.size();i++){\n//\t\t\tint[] thisArr = new int[1];\n//\t\t\tthisArr[0] = i;\n//\t\t\tList<Tuple2<String, byte[]>> ans = mainMap.collectPartitions(thisArr)[0];\n//\t\t\t// Now write the files to the file system\n//\t\t\twriteToFile(ans, basePath);\n//\t\t}\n\n\t\t// Now get the total dataset - without gzip and write to a hadoop sequence file\n\t\tJavaPairRDD<String, byte[]> mainMapNoGzip = totalDataset.filter(new Function<Tuple2<String,byte[]>, Boolean>() {\n\n\t\t\t/**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = -7172364344277495432L;\n\n\t\t\t@Override\n\t\t\tpublic Boolean call(Tuple2<String, byte[]> v1) throws Exception {\n\t\t\t\tif(v1._1.endsWith(\"_total\")==true){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}).mapToPair(new RemoveSuffix());\n\n\t\tJavaPairRDD<Text, BytesWritable> mainDataset = mainMapNoGzip.mapToPair(new StringByteToTextByteWriter());\n\t\tString outURI = basePath+\"hadoopFullData\";\t\t\n\t\tmainDataset.saveAsHadoopFile(outURI, Text.class, BytesWritable.class, SequenceFileOutputFormat.class, org.apache.hadoop.io.compress.BZip2Codec.class);\n\t\tsc.close();\n\t\tFile f = new File(outPutFile);\n\t\tf.getParentFile().mkdirs(); \n\t\tf.createNewFile();\n\t\t\n\t}", "public CreateInputFiles()\n\t{\n\t\ttry\n\t\t{\n\t\t\tEXCEL_FILE = new FileInputStream(new File(INPUT_FILE_NAME));\n\t\t\t/* Log File */\n\t\t\tLOG_WRITER = writerCreator(LOG_FILE, BLANK);\n\t\t\tLOG_WRITER.write(START_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\tSystem.out.println(NEW_LINE + START_TIME + new java.util.Date() + LINE_SEPERATOR);\n\n\t\t\t/* Service Part Creation */\n\t\t\tSERVICE_PART_WRITER = writerCreator(SERVICE_PARTS_CREATION_INPUT_FILE,\n\t\t\t\t\tSERVICE_PART_CREATION_CONFIG);\n\n\t\t\t/* Service Form Update */\n\t\t\tSERVICE_FORM_WRITER = writerCreator(SERVICE_FORM_PROPERTIES_INPUT_FILE,\n\t\t\t\t\tSERVICE_FORM_UPDATE_CONFIG);\n\n\t\t\t/* PS_UPLOAD - Service Structures Creation \n\t\t\tPS_STRUCTURE_WRITER = writerCreator(PS_STRUCTURE_CREATION_INPUT_FILE,\n\t\t\t\t\tPS_STRUCTURE_CREATION_CONFIG); */\n\n\t\t\t/* Service Structures Creation */\n\t\t\tSTRUCTURE_WRITER = writerCreator(STRUCTURE_CREATION_INPUT_FILE,\n\t\t\t\t\tSTRUCTURE_CREATION_CONFIG);\n\n\t\t\t/* EngParts' Service Form Creation and Attachment*/\n\t\t\tEP_SERVICE_FORM_WRITER = writerCreator(EP_SERVICE_FORM_CREATION_INPUT_FILE,\n\t\t\t\t\tEP_SERVICE_FORM_CREATION_CONFIG);\n\n\t\t\t/* Service Parts' Global Alternate */\n\t\t\tSP_GLOBAL_ALT_WRITER = writerCreator(SP_GLOBAL_ALT_INPUT_FILE, BLANK);\n\n\t\t\t/* Service Parts' Group ID update */\n\t\t\tSP_GROUP_ID_WRITER = writerCreator(SP_GROUP_ID_INPUT_FILE, SP_GROUP_ID_UPDATE_CONFIG);\n\n\t\t\t/* Relate Service Parts to three types of attachments*/\n\t\t\tSP_ATTACHMENT_WRITER = writerCreator(SP_ATTACHMENT_INPUT_FILE, SP_ATTACHMENT_CONFIG);\n\n\t\t\t/* Made From Relation Creation */\n\t\t\tMADE_FROM_RELATION_WRITER = writerCreator(MADE_FROM_REL_INPUT_FILE,\n\t\t\t\t\tMADE_FROM_REL_CONFIG);\n\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(EXCEPTION + e.getMessage());\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public void init()\r\n {\n readFile(inputFile);\r\n writeInfoFile();\r\n }", "public void processInput(String theFile){processInput(new File(theFile));}", "public void readFile() throws NumberFormatException,FileNotFoundException {\n Scanner scanStar, scanMessier, scanPlanet;\n String raw_data;\n String[] values;\n Set<String> identifyName = new HashSet<>();\n // Create scanner to scan file\n scanStar = new Scanner(new File(filename[0]));\n scanMessier = new Scanner(new File(filename[1]));\n scanPlanet = new Scanner(new File(filename[2]));\n\n // Read data about Star and store\n Star star;\n while (scanStar.hasNext()){\n raw_data = scanStar.nextLine();\n values = processData(raw_data, 1);\n // Check whether there is the same object or the data is wrong\n if (values.length != 7 || identifyName.contains(values[0])){\n System.out.println(\"There are some mistakes in Star file\");\n System.exit(1);\n }\n star = new Star();\n star.setNumber(values[0]);\n star.setRa(Double.parseDouble(values[1]));\n star.setDecl(Double.parseDouble(values[2]));\n star.setMagn(Double.parseDouble(values[3]));\n star.setDistance(Double.parseDouble(values[4]));\n star.setType(values[5]);\n star.setConstellation(values[6]);\n // Add object to collection\n aos.add(star);\n identifyName.add(star.getNumber());\n }\n scanStar.close();\n\n // Read data about Messier and store\n Messier messier;\n while (scanMessier.hasNext()){\n raw_data = scanMessier.nextLine();\n values = processData(raw_data, 1);\n if (values.length < 6 || identifyName.contains('M' + values[0])){\n System.out.println(\"There are some mistakes in Messier file\");\n System.exit(1);\n }\n messier = new Messier();\n messier.setNumber(\"M\" + values[0]);\n messier.setRa(Double.parseDouble(values[1]));\n messier.setDecl(Double.parseDouble(values[2]));\n messier.setMagn(Double.parseDouble(values[3]));\n messier.setDistance(Double.parseDouble(values[4]));\n messier.setConstellation(values[5]);\n if (values.length == 7){\n messier.setDescription(values[6]);\n }else {\n messier.setDescription(\"-\");\n }\n // Add object to collection\n aos.add(messier);\n identifyName.add(messier.getNumber());\n }\n scanMessier.close();\n\n // Read data about Planet and store\n Planet planet;\n while (scanPlanet.hasNext()){\n raw_data = scanPlanet.nextLine();\n values = processData(raw_data, 0);\n if (values.length != 6 || identifyName.contains(values[0])){\n System.out.println(\"There are some mistakes in Planet file\");\n System.exit(1);\n }\n planet = new Planet();\n planet.setName(values[0]);\n planet.setRa(Double.parseDouble(values[1]));\n planet.setDecl(Double.parseDouble(values[2]));\n planet.setMagn(Double.parseDouble(values[3]));\n planet.setDistance(Double.parseDouble(values[4]));\n planet.setAlbedo(Double.parseDouble(values[5]));\n // Add object to collection\n aos.add(planet);\n identifyName.add(planet.getName());\n }\n scanPlanet.close();\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static void createMigrationInputFiles()\n\t{\n\t\t@SuppressWarnings({ \"rawtypes\" })\n\t\tMultiValueMap structureMap = new MultiValueMap(); // MultiValueMap for adding child item rows for every parentId\n\n\t\ttry\n\t\t{\n\t\t\tWorkbook workbook = new XSSFWorkbook(EXCEL_FILE);\n\t\t\tSheet datatypeSheet = workbook.getSheetAt(0);\n\n\t\t\tint linkDocCount = 0, linkDwgCount = 0, linkPurchSpecCount = 0, linkMadeFromCount = 0, engParts = 0, altPartsCount = 0;\n\n\t\t\tList<String> serviceItemsList = new ArrayList<String>();\n\t\t\tList<String> engItemsList = new ArrayList<String>();\n\n\t\t\t// Skipping top two rows\n\t\t\tIterator<Row> rowIterator = datatypeSheet.iterator();\n\t\t\tif (rowIterator.hasNext())\n\t\t\t\trowIterator.next();\n\t\t\tif (rowIterator.hasNext())\n\t\t\t\trowIterator.next();\n\n\t\t\t// Reading the rows one by one\n\t\t\twhile (rowIterator.hasNext())\n\t\t\t{\n\t\t\t\tcurrentRow = rowIterator.next();\n\t\t\t\tString tierType = BLANK;\n\t\t\t\tif (v(TIER_TYPE) != null && v(TIER_TYPE).trim().length() != 0\n\t\t\t\t\t\t&& !v(TIER_TYPE).trim().isEmpty())\n\t\t\t\t{\n\t\t\t\t\ttierType = v(TIER_TYPE).replace(SEMICOLON_SPACE, COMMA);\n\t\t\t\t\ttierType = tierType.replace(SPACE_SEMICOLON, COMMA);\n\t\t\t\t\ttierType = tierType.replace(SEMICOLON, COMMA);\n\t\t\t\t}\n\n\t\t\t\tString engineFamily = BLANK;\n\t\t\t\tif (v(ENGINE_FAMILY) != null && v(ENGINE_FAMILY).trim().length() != 0\n\t\t\t\t\t\t&& !v(ENGINE_FAMILY).trim().isEmpty())\n\t\t\t\t{\n\t\t\t\t\tengineFamily = v(ENGINE_FAMILY).replace(SEMICOLON_SPACE, COMMA);\n\t\t\t\t\tengineFamily = engineFamily.replace(SPACE_SEMICOLON, COMMA);\n\t\t\t\t\tengineFamily = engineFamily.replace(SEMICOLON, COMMA);\n\t\t\t\t\t/*\n\t\t\t\t\tengineFamily = v(ENGINE_FAMILY).replace(SPACE, BLANK);\n\t\t\t\t\tengineFamily = engineFamily.replace(SEMICOLON, COMMA);*/\n\t\t\t\t}\n\n\t\t\t\tString componentId = BLANK;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif (v(SERVICE_CMP_ID) != null && v(SERVICE_CMP_ID).trim().length() != 0\n\t\t\t\t\t\t\t&& !v(SERVICE_CMP_ID).trim().isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\t/*System.out.println(currentRow.getCell(SERVICE_CMP_ID)\n\t\t\t\t\t\t\t\t.getRichStringCellValue()); */\n\t\t\t\t\t\tcomponentId = (currentRow.getCell(SERVICE_CMP_ID).getRichStringCellValue())\n\t\t\t\t\t\t\t\t.toString();\n\t\t\t\t\t\tcomponentId = componentId.replace(SEMICOLON_SPACE, COMMA);\n\t\t\t\t\t\tcomponentId = componentId.replace(SPACE_SEMICOLON, COMMA);\n\t\t\t\t\t\tcomponentId = componentId.replace(SEMICOLON, COMMA);\n\t\t\t\t\t\t//System.out.println(componentId);\n\t\t\t\t\t}\n\t\t\t\t} catch (IllegalStateException e)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\\nError : Item \" + v(ITEM_ID)\n\t\t\t\t\t\t\t+ \" has invalid Component ID formula.\");\n\t\t\t\t\tLOG_WRITER.write(\"\\nError : Item \" + v(ITEM_ID)\n\t\t\t\t\t\t\t+ \" has invalid Component ID formula.\");\n\t\t\t\t}\n\n\t\t\t\tString catalogNum = BLANK;\n\t\t\t\tif (v(CATALOG_ITEM) != null && v(CATALOG_ITEM).trim().length() != 0\n\t\t\t\t\t\t&& !v(CATALOG_ITEM).trim().isEmpty())\n\t\t\t\t{\n\t\t\t\t\tcatalogNum = v(CATALOG_ITEM).replace(SPACE, BLANK);\n\t\t\t\t\tcatalogNum = catalogNum.replace(SEMICOLON, COMMA);\n\t\t\t\t}\n\t\t\t\t//convertRowToPipeDelimited(currentRow);\n\t\t\t\t//if it is for Service Part\n\t\t\t\tif (v(LINE_TYPE).equals(NEW_SERVICE_PART))\n\t\t\t\t{\n\t\t\t\t\t/* Check for the revision field */\n\t\t\t\t\tString revision_id = DEFAULT_REVISION_ID;\n\t\t\t\t\tif (v(REVISION) != null && v(REVISION).trim().length() != 0\n\t\t\t\t\t\t\t&& !v(REVISION).trim().isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\trevision_id = v(REVISION).replace(SPACE, BLANK);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Service Part Writer */\n\n\t\t\t\t\tif (!serviceItemsList.contains(v(ITEM_ID)))\n\t\t\t\t\t{\n\t\t\t\t\t\tSERVICE_PART_WRITER\n\t\t\t\t\t\t\t\t.write(v(ITEM_ID)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(ITEM_NAME)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ revision_id\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ TYPE_REAL_NAME\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ ((v(UOM) == null || v(UOM).trim().length() == 0\n\t\t\t\t\t\t\t\t\t\t\t\t|| v(UOM).trim().isEmpty() || v(UOM)\n\t\t\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(EACH)) ? BLANK : v(UOM).trim())\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(IP_CLASS)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(OBJ_WEIGHT)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(OBJ_WEIGHT_UOM)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(ENG_PRODUCT_LINE)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ ((v(DATA_MODEL).contains(MODEL_BASED)) ? MB\n\t\t\t\t\t\t\t\t\t\t\t\t: ((v(DATA_MODEL).contains(MODEL_CENTRIC)) ? MC\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: BLANK)\n\n\t\t\t\t\t\t\t\t\t\t)\n\n\t\t\t\t\t\t\t\t\t\t+ DEL + v(ECCN) + DEL + v(ECCN_SOURCE) + DEL + v(OBJ_EVI)\n\t\t\t\t\t\t\t\t\t\t+ DEL + v(CTQ) + DEL + v(CCC) + DEL + v(ECC) + DEL + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(HOMOLOGATION) + DEL + v(CRITICAL_PART) + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(ENG_MAKE_BUY) + NEW_LINE);\n\n\t\t\t\t\t\t/* Service Form Update Writer */\n\t\t\t\t\t\tSERVICE_FORM_WRITER\n\t\t\t\t\t\t\t\t.write(v(ITEM_NAME) + DEL + v(ITEM_ID) + DEL + componentId + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(SERVICEABLE) + DEL + v(REPAIRABLE) + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(SERIALIZED) + DEL + v(POS_TRACKED) + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(SERVICE_ITEM_TYPE) + DEL + tierType + DEL\n\t\t\t\t\t\t\t\t\t\t+ engineFamily + DEL + catalogNum + NEW_LINE);\n\n\t\t\t\t\t\t/* Service Parts' Owning Group update */\n\t\t\t\t\t\tSP_GROUP_ID_WRITER.write(v(ITEM_ID) + NEW_LINE);\n\n\t\t\t\t\t\t/* Relate Service Parts to Document */\n\t\t\t\t\t\tif (v(LINK_DOC) != null && v(LINK_DOC).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_DOC).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSP_ATTACHMENT_WRITER.write(v(ITEM_ID) + DEL + revision_id + DEL\n\t\t\t\t\t\t\t\t\t+ v(LINK_DOC) + DEL + SP_DOC_RELATION_NAME + NEW_LINE);\n\t\t\t\t\t\t\tlinkDocCount++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Relate Service Parts to Drawing */\n\t\t\t\t\t\tif (v(LINK_DWG) != null && v(LINK_DWG).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_DWG).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSP_ATTACHMENT_WRITER.write(v(ITEM_ID) + DEL + revision_id + DEL\n\t\t\t\t\t\t\t\t\t+ v(LINK_DWG) + DEL + SP_DWG_RELATION_NAME + NEW_LINE);\n\t\t\t\t\t\t\tlinkDwgCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/* Relate Service Parts to Purchase Specifications */\n\t\t\t\t\t\tif (v(LINK_PURCHSPEC) != null && v(LINK_PURCHSPEC).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_PURCHSPEC).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSP_ATTACHMENT_WRITER.write(v(ITEM_ID) + DEL + revision_id + DEL\n\t\t\t\t\t\t\t\t\t+ v(LINK_PURCHSPEC) + DEL + SP_PURCHSPEC_RELATION_NAME\n\t\t\t\t\t\t\t\t\t+ NEW_LINE);\n\t\t\t\t\t\t\tlinkPurchSpecCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/* Relate Service Parts to MadeFrom */\n\t\t\t\t\t\tif (v(LINK_MADEFROM) != null && v(LINK_MADEFROM).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_MADEFROM).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tMADE_FROM_RELATION_WRITER.write(v(ITEM_ID) + DEL + v(LINK_MADEFROM)\n\t\t\t\t\t\t\t\t\t+ DEL + SP_MADEFROM_RELATION_NAME + NEW_LINE);\n\t\t\t\t\t\t\tlinkMadeFromCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tserviceItemsList.add(v(ITEM_ID));\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG_WRITER.write(DUPLICATE_ENTRY + v(ITEM_ID));\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\telse if (v(LINE_TYPE).equals(EXISTING_ENG_PART))\n\t\t\t\t{\n\t\t\t\t\t/* EngParts' Service Form Creation - ITEM_ID will be used as the Service Form's NAME */\n\t\t\t\t\tif (!engItemsList.contains(v(ITEM_ID)))\n\t\t\t\t\t{\n\t\t\t\t\t\tEP_SERVICE_FORM_WRITER.write(v(ITEM_NAME) + DEL + componentId + DEL\n\t\t\t\t\t\t\t\t+ v(SERVICEABLE) + DEL + v(REPAIRABLE) + DEL + v(SERIALIZED) + DEL\n\t\t\t\t\t\t\t\t+ v(POS_TRACKED) + DEL + v(SERVICE_ITEM_TYPE) + DEL + tierType\n\t\t\t\t\t\t\t\t+ DEL + engineFamily + DEL + catalogNum + DEL + v(ITEM_ID)\n\t\t\t\t\t\t\t\t+ NEW_LINE);\n\t\t\t\t\t\tengParts++;\n\t\t\t\t\t\tengItemsList.add(v(ITEM_ID));\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG_WRITER.write(DUPLICATE_ENTRY + v(ITEM_ID));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/*\tAdd child item rows for each assembly */\n\t\t\t\tif (v(PARENT_ID) != null && v(PARENT_ID).trim().length() != 0\n\t\t\t\t\t\t&& !v(PARENT_ID).isEmpty())\n\t\t\t\t{\n\t\t\t\t\tstructureMap.put(v(PARENT_ID), currentRow.getRowNum());\n\t\t\t\t\t/*\tSTRUCTURE_WRITER.write(v(PARENT_ID) + DEL + v(ITEM_ID) + DEL + v(QTY) + DEL\n\t\t\t\t\t\t\t\t+ v(SEQ) + NEW_LINE); - can not write it here, as the same parent might come again later. IPS_DATA_UPLOAD fails if the parent has existing BVR with -bom mode. */\n\t\t\t\t}\n\n\t\t\t\t/* Global Alternate */\n\t\t\t\tString globalAltStr = v(GLOBAL_ALT);\n\t\t\t\tif (globalAltStr != null && !globalAltStr.trim().isEmpty()\n\t\t\t\t\t\t&& globalAltStr.trim().length() != 0)\n\t\t\t\t{\n\t\t\t\t\tglobalAltStr = globalAltStr.replace(SPACE, BLANK);\n\t\t\t\t\tString globalAltArray[] = globalAltStr.split(SEMICOLON);\n\t\t\t\t\tfor (int i = 0; i < globalAltArray.length; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSP_GLOBAL_ALT_WRITER.write(v(ITEM_ID) + DEL + globalAltArray[i].trim()\n\t\t\t\t\t\t\t\t+ NEW_LINE);\n\t\t\t\t\t\taltPartsCount++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tLOG_WRITER.write(TOTAL_SERVICE_PARTS + serviceItemsList.size() + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_DOCUMENTS_TO_ATTACH + linkDocCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_DRAWINGS_TO_ATTACH + linkDwgCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_PURCHSPEC_TO_ATTACH + linkPurchSpecCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_MADEFROM_TO_ATTACH + linkMadeFromCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_ALTERNATE_PARTS_TO_ADD + altPartsCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_ENG_PARTS_FOR_SERVICE_FORM_CREATON + engParts + NEW_LINE);\n\t\t\tLOG_WRITER.write(LINE_SEPERATOR);\n\n\t\t\t/* Write Structures */\n\t\t\tLOG_WRITER.write(STRUCTURE_START_TIME + new java.util.Date() + NEW_LINE);\n\t\t\tSet<String> parentIDs = structureMap.keySet();\n\t\t\tIterator parentIDsIterator = parentIDs.iterator();\n\t\t\tLOG_WRITER.write(TOTAL_STRUCTURES + parentIDs.size() + NEW_LINE);\n\t\t\t/*PS_STRUCTURE_WRITER.write(NEW_LINE + HASH_SIGN + TOTAL_STRUCTURES + parentIDs.size()\n\t\t\t\t\t+ NEW_LINE);*/\n\t\t\twhile (parentIDsIterator.hasNext())\n\t\t\t{\n\t\t\t\tObject parentID = parentIDsIterator.next();\n\n\t\t\t\t/*PS_STRUCTURE_WRITER.write(NEW_LINE + parentID + DEL + DEFAULT_REVISION_ID + DEL\n\t\t\t\t\t\t+ TYPE_REAL_NAME + DEL + ZERO + NEW_LINE);*/\n\n\t\t\t\tCollection childRows = (Collection) structureMap.get(parentID);\n\t\t\t\tIterator childRowsIterator = childRows.iterator();\n\t\t\t\twhile (childRowsIterator.hasNext())\n\t\t\t\t{\n\t\t\t\t\tRow cRow = datatypeSheet.getRow((int) childRowsIterator.next());\n\t\t\t\t\t/*PS_STRUCTURE_WRITER.write(rv(cRow, ITEM_ID) + DEL + DEFAULT_REVISION_ID + DEL\n\t\t\t\t\t\t\t+ TYPE_REAL_NAME + DEL + ONE + DEL + rv(cRow, SEQ) + DEL\n\t\t\t\t\t\t\t+ rv(cRow, QTY) + NEW_LINE);*/\n\t\t\t\t\tSTRUCTURE_WRITER.write(parentID + DEL + rv(cRow, ITEM_ID) + DEL + rv(cRow, QTY)\n\t\t\t\t\t\t\t+ DEL + rv(cRow, SEQ) + NEW_LINE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tLOG_WRITER.write(STRUCTURE_END_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\tworkbook.close();\n\t\t} catch (FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(EXCEPTION + e.getMessage());\n\t\t} catch (IOException e)\n\t\t{\n\t\t\tSystem.out.println(EXCEPTION + e.getMessage());\n\t\t} finally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (SERVICE_PART_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSERVICE_PART_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SERVICE_FORM_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSERVICE_FORM_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (EP_SERVICE_FORM_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tEP_SERVICE_FORM_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SP_GLOBAL_ALT_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSP_GLOBAL_ALT_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SP_GROUP_ID_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSP_GROUP_ID_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SP_ATTACHMENT_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSP_ATTACHMENT_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (MADE_FROM_RELATION_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tMADE_FROM_RELATION_WRITER.close();\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\tif (PS_STRUCTURE_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tPS_STRUCTURE_WRITER.close();\n\t\t\t\t}*/\n\t\t\t\tif (STRUCTURE_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSTRUCTURE_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (LOG_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tLOG_WRITER.write(END_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\t\t\tSystem.out.println(END_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\t\t\tLOG_WRITER.close();\n\t\t\t\t}\n\n\t\t\t} catch (IOException ex)\n\t\t\t{\n\t\t\t\tSystem.out.println(EXCEPTION + ex.getMessage());\n\t\t\t}\n\t\t}\n\t}", "public void uploadDataFromFile()\n {\n String jobSeekerFile = (\"JobSeeker.txt\");\n String jobRecruiterFile = (\"JobRecruiter.txt\");\n String jobFile = (\"Job.txt\");\n String notificationFile = (\"Notification.txt\");\n \n String jobSeekerLines = readFile(jobSeekerFile);\n String jobRecruiterLines = readFile(jobRecruiterFile);\n String jobLines = readFile(jobFile);\n String notificationLines = readFile(notificationFile);\n \n storeJobSeekersToJobSeekerList(jobSeekerLines);\n storeJobRecruitersToJobRecruiterList(jobRecruiterLines);\n storeJobsToJobList(jobLines);\n storeNotificationsToNotificationList(notificationLines);\n \n }", "private static void assignInputFiles(FileSystem fs, Map<String, Object> settings, Job job) throws ParseException, IOException, Grep.NoInputFilesFound {\n List<Date> dates = new ArrayList<Date>();\n Calendar cal = Calendar.getInstance();\n Boolean excludeTmpFiles = (settings.get(\"excludeTmpFiles\") != null);\n\n\n cal.setTime((Date)settings.get(\"fromDate\"));\n while (!cal.getTime().after((Date)settings.get(\"toDate\"))) {\n dates.add(cal.getTime());\n cal.add(Calendar.DATE, 1);\n }\n\n for(int i=0; i < dates.size(); i++) {\n for(String type: (ArrayList<String>)settings.get(\"types\")) {\n Path p = new Path(\"/user/rucio01/logs/\"+type+\"/*\"+date_format.format(dates.get(i))+\"*\");\n for (FileStatus file : fs.globStatus(p)) {\n\t if((excludeTmpFiles) && (file.getPath().toString().endsWith(\"tmp\"))) {\n ((List<String>)settings.get(\"excludeTmpFiles\")).add(file.getPath().getName().toString()); \n continue;\n }\n FileInputFormat.addInputPath(job, file.getPath());\n }\n }\n }\n if (FileInputFormat.getInputPaths(job).length == 0) {\n throw new Grep.NoInputFilesFound(\"For type \" + settings.get(\"types\") \n + \" from \" + date_format.format(dates.get(0)) \n + \" to \" + date_format.format(dates.get(dates.size()-1))\n + \" no log files coiuld be found on HDFS.\");\n }\n }", "private void createParseTable() {\n parseTableHeader = new HashMap<String, Integer>();\n parseTable = new ArrayList<ArrayList<String>>();\n pHeader = new ArrayList<String>();\n\n String inputLine = null;\n int fileLine = 1;\n int headerCount = 0;\n\n try {\n FileReader reader = new FileReader(parseTableFile);\n BufferedReader bufferedReader = new BufferedReader(reader);\n\n while((inputLine = bufferedReader.readLine()) != null) {\n\n // removes all leading and trailing whitespaces and leading tabs\n String line = inputLine.trim().replaceFirst(\"\\\\t\", \"\");\n\n // these are header rows for terminals and variables\n if(fileLine == 1 || fileLine == 40) {\n String[] cells = line.replaceFirst(\"&\", \"\").split(\"&\");\n for(String cell : cells) {\n// System.out.println(cell);\n if(!parseTableHeader.containsKey(cell) && cell != \"\") {\n parseTableHeader.put(cell, headerCount);\n// System.out.println(headerCount);\n pHeader.add(cell);\n headerCount++;\n }\n }\n }\n else {\n String[] parsedRow = line.split(\"&\",-1);\n // get actual SLR parse table's row number\n int row = Integer.parseInt(parsedRow[0]);\n\n// System.out.println(\"Parsing row number \\t\\t\" + row);\n\n // create a new Array that excludes the row number column\n String[] tempRow = Arrays.copyOfRange(parsedRow, 1, parsedRow.length);\n // remove null / empty entries from Array\n replaceBlanks(tempRow);\n // convert to ArrayList for easier handling\n ArrayList<String> cells = new ArrayList<>(Arrays.asList(tempRow));\n\n// System.out.print(\"Parsed row content \\t\\t\");\n// printArrayList(cells);\n// System.out.println();\n\n // add above ArrayList to the table at the correct row number.\n // because there's two parts to the parse table's row, only\n // add right away if we haven't added anything before\n // otherwise combine the previous entry with this one to create\n // complete entry for this row\n try {\n ArrayList<String> current = parseTable.get(row);\n\n// System.out.print(\"Contents of row \" + row + \"\\t\\t\");\n// printArrayList(current);\n// System.out.println();\n\n // temporary ArrayList to hold previous entry and new entry\n ArrayList<String> temp = new ArrayList<String>();\n temp.addAll(current);\n temp.addAll(cells);\n\n// System.out.print(\"New combined row \\t\\t\");\n// printArrayList(temp);\n// System.out.println();\n\n // add combined ArrayList to the parse table\n parseTable.set(row, temp);\n } catch (IndexOutOfBoundsException e) {\n parseTable.add(row, cells);\n }\n\n// System.out.print(\"Final row \\t\\t\\t\\t\");\n// printArrayList(parseTable.get(row));\n// System.out.println();\n// System.out.println();\n\n }\n\n fileLine++;\n\n }\n if(printPTABLE == \"Y\") {\n printTable();\n }\n bufferedReader.close();\n\n } catch(FileNotFoundException e) {\n System.out.println(\n parseTableFile + \" not found\"\n );\n } catch(IOException e) {\n System.out.println(\n \"Error reading file \" + parseTableFile\n );\n }\n\n }", "private void populateDictionary() {\n Scanner scanner = null;\n try {\n scanner = new Scanner(new FileInputStream(filePath));\n while(scanner.hasNextLine()) {\n String word = scanner.nextLine();\n rwDictionary.put(reducedWord(word), word);\n lcDictionary.put(word.toLowerCase(), word);\n }\n } catch(IOException e) {\n System.err.println(e.toString());\n e.printStackTrace();\n } finally {\n if(scanner != null) {\n scanner.close();\n }\n }\n }", "protected abstract List<O> parseFileForObservations(Scanner scn);", "private static void writeToFile(List<Tuple2<String, byte[]>> inputListOfFiles, String basePath) throws IOException {\n\n\t\tbasePath = basePath+\"/structures\";\n\t\tfor(Tuple2<String, byte[]> v1: inputListOfFiles){\n\t\t\t// Get the key value pairs\n\t\t\tString pdbCode = v1._1.toLowerCase();\n\t\t\tbyte[] byteArr = v1._2;\n\t\t\t// Make the new dir \n\t\t\tFile theDir = new File(basePath+\"/\"+pdbCode.substring(1, 3));\n\t\t\tif(theDir.exists() == false){\n\t\t\t\ttheDir.mkdirs();\n\t\t\t}\n\t\t\t// Write the file\t\n\t\t\tFileOutputStream fos = null;\n\t\t\t// Try and except\n\t\t\ttry{\n\t\t\t\tfos = new FileOutputStream(basePath+\"/\"+pdbCode.substring(1, 3)+\"/\"+pdbCode);\n\t\t\t\tfos.write(byteArr);\n\t\t\t}\n\t\t\tfinally{\n\t\t\t\tfos.close();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public HashMap initFileSet()\n {\n return null;\n }", "HashMap<String, ?> getOutputFiles();", "public void preprocess(String trainDataFolder)\n\t{\n\t\tFile folder = new File(trainDataFolder);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tfor(int i=0;i<listOfFiles.length;i++){\n\t\t\t\ttry{\n\t\t\t\t\tBufferedReader reader = new BufferedReader(new FileReader(listOfFiles[i].getAbsoluteFile()));\n\t\t\t\t\tString allLines = new String();\n\t\t\t\t\tString line = null;\n\t\t\t\t\tint tabIndex;\n\t\t\t\t\tString type, msg;\n\t\t\t\t\tint label;\n\t\t\t\t\tint line_count = 0;\n\t\t\t\t\tallDocs = new ArrayList<String>();\n\t\t\t\t\twhile((line=reader.readLine())!=null && !line.isEmpty()){\n\t\t\t\t\t\tallDocs.add(line);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(allDocs.size());\n\t\t\t\t\t//System.out.println(offset);\n\t\t\t\t\tfor(int s=0;s<offset;s++){\n\t\t\t\t\t\tline = allDocs.get(s);\n\t\t\t\t\t\ttabIndex = line.indexOf('\\t');\n\t\t\t\t\t\ttype = line.substring(0, tabIndex);\n\t\t\t\t\t\tmsg = line.substring(tabIndex + 1);\n\t\t\t\t\t\tmsg = msg.toLowerCase();\n\t\t\t\t\t\tif(type.equals(\"ham\")){label = 0;}\n\t\t\t\t\t\telse{label = 1;}\n\t\t\t\t\t\tclassStrings[label] += (line + \" \");\n\t\t\t\t\t\tclassCounts[label]++;\n\t\t\t\t\t\ttrainingDocs.add(line);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch(IOException ioe){ioe.printStackTrace();}\n\t\t}\n\t\t/*System.out.println(\"number of ham tokens \"+classStrings[0].length());\n\t\tSystem.out.println(\"number of spam tokens \" +classStrings[1].length());\n\t\t*/\n\t\tSystem.out.println(\"Training Data Class Distribution:\");\n\t\tSystem.out.println(\"Ham: \"+classCounts[0]+\"(\"+Math.round(classCounts[0]*10000.0/trainingDocs.size())/100.0+\"%)\");\n\t\tSystem.out.println(\"Spam: \"+classCounts[1]+\"(\"+Math.round(classCounts[1]*10000.0/trainingDocs.size())/100.0+\"%)\");\n\t\tSystem.out.println(\"Total: \"+trainingDocs.size());\n\t}", "private void populateDictionary() throws IOException {\n populateDictionaryByLemmatizer();\n// populateDictionaryBySynonyms();\n }", "private void initializeFile()\n\t{\n\t\tHighScore[] h={new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \")};\n\t\ttry \n\t\t{\n\t\t\tSystem.out.println(\"Hi1\");\n\t\t\tObjectOutputStream o=new ObjectOutputStream(new FileOutputStream(\"HighScores.dat\"));\n\t\t\to.writeObject(h);\n\t\t\to.close();\n\t\t} catch (FileNotFoundException e) {e.printStackTrace();}\n\t\tcatch (IOException e) {e.printStackTrace();}\n\t}", "public static void SaveProcessedData()\n\t{\n\t\tSystem.out.println(\"\\r\\n... Saving processed Data....\");\n\t\t\n\t\tString date = new SimpleDateFormat(\"yyyyMMddhhmm\").format(new Date());\n\t\tString generalInput = \"FeatureExpressionCollection=\" + FeatureExpressionCollection.GetCount() + \";\" + FeatureExpressionCollection.GetLoc() + \";\" + FeatureExpressionCollection.GetMeanLofc() + \";\" + FeatureExpressionCollection.numberOfFeatureConstants;\n\t\t\n\t\t// Save files\n\t\ttry \n\t\t{\n\t\t\tFileUtils.write(new File(date + \"_\" + featuresPath), FeatureExpressionCollection.SerializeFeatures());\n\t\t\tFileUtils.write(new File(date + \"_\" + methodsPath), MethodCollection.SerializeMethods());\n\t\t\tFileUtils.write(new File(date + \"_\" + filesPath), FileCollection.SerializeFiles());\n\t\t\tFileUtils.write(new File(date + \"_\" + generalPath), generalInput);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\tSystem.out.println(\"ERROR: Could not save processed data files\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"... done!\");\n\t}", "public void readFile() \n\t{\n\t\tArrayList<String> tempStations = new ArrayList<>();\n\t\t//create arraylist local variable tempStations which will hold the list of stations temporarily for a specific line to be added to the stations hashmap \n\n\t\tString mtrSystemFile = \"MTRsystem_partial.csv\";\n\t\t//store the csv file name in a string\n\t\tFile file = new File(mtrSystemFile);\n\t\t//create a file object for the MTRSystems csv file\n\n\t\ttry \n\t\t{\n\t\t\tScanner inputStream = new Scanner(file);\n\t\t\t//pass the file through to new scanner object to be scanned\n\n\t\t\twhile (inputStream.hasNext())\n\t\t\t//so long as the scanner object has another token to read from the csv file\n\t\t\t{\n\t\t\t\tString line = inputStream.nextLine();\n\t\t\t\t//store the next line in the string variable\n\t\t\t\tcells = line.split(\",\");\n\t\t\t\t//split each line into cells separated by a comma\n\t\t\t\tint celli = 1;\n\t\t\t\t//assign int index to 1, so that only stations are read excluding line name stored at position 0\n\n\t\t\t\twhile (celli <= cells.length - 1)\n\t\t\t\t//whilst the index is less than or equal the last position of the array\n\t\t\t\t{\n\t\t\t\t\tif (celli == 1 || celli == cells.length - 1)\n\t\t\t\t\t//if the index is at the second position in the array or at the last\n\t\t\t\t\t{\n\t\t\t\t\t\tallTermini.add((cells[celli]));\n\t\t\t\t\t\t//add termini to the ArrayList\n\t\t\t\t\t}\n\t\t\t\t\ttempStations.add(cells[celli]);\n\t\t\t\t\t//add station to the ArrayList\n\t\t\t\t\tcelli++;\n\t\t\t\t}\n\n\t\t\t\taddToStations(cells[0], tempStations);\n\t\t\t\t//add the line name and the list of stations for that line to the hashmap\n\t\t\t\ttempStations.clear();\n\t\t\t\t//Clear the temporary list for the next line\n\n\t\t\t\tcells = null;\n\t\t\t}\n\t\t\tinputStream.close();\n\t\t} catch (FileNotFoundException e) \n\t\t{\n\t\t\tSystem.out.println(\"file not found\");\n\t\t}\n\t}", "void processHeaders(Vector in, SummitFileWriter out) { \n\t\ttry {\n\t\t\t// Read all the headers. Must read the header from each file\n\t\t\t// so that the random-access file is cued to the right location.\n\t\t\tSummitHeader header = null;\n\t\t\tfor (int i=0; i<in.size(); i++) {\n\t\t header = ((SummitFileReader)in.elementAt(i)).getHeader();\n\t\t }\n\n\t\t\t// And write the header to the output file\n\t\t\tmZones = header.getZones();\n\t\t\tmSegments = header.getMarketSegments();\n\t\t\tout.writeHeader(header);\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n }", "private static void fillTableFromFile(HashTable table) {\n Scanner in;\n try {\n in = new Scanner(new FileInputStream(\"File.txt\"));\n } catch (FileNotFoundException e) {\n System.out.println(\"File 'File.txt' not found\");\n return;\n }\n while (in.hasNext()) {\n table.add(in.next());\n }\n }", "protected void createBasicData(File tmpFile)\r\n\t{\t\t \r\n\t\tfileNumber++;\r\n\t\tScanner sc2 = null;\r\n\t try {\r\n\t sc2 = new Scanner(tmpFile);\r\n\t } catch (FileNotFoundException e) {\r\n\t e.printStackTrace(); \r\n\t }\r\n\t while (sc2.hasNextLine()) {\r\n\t Scanner s2 = new Scanner(sc2.nextLine());\r\n\t while (s2.hasNext()) {\r\n\t String tmpWord = s2.next();\r\n\t tmpWord = tmpWord.replaceAll(\"\\\\W\", \"\"); //replace all special characters with \"\"\r\n\t tmpWord = tmpWord.replaceAll(\"\\\\d\", \"\"); //replace all digits with \"\"\r\n\t tmpWord = tmpWord.toLowerCase();\r\n\t if(!(tmpWord.equals(\"\")))\r\n\t {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t//Inserting into location_order table\r\n\t\t\t\t\t\t String query = \"insert ignore into location_order (word, docID, file_name, visible)\" + \" values (?, ?, ?, ?)\";\r\n\t\t\t\t\t // create the mysql insert preparedstatement\r\n\t\t\t\t\t PreparedStatement preparedStmt = con.prepareStatement(query);\r\n\t\t\t\t\t preparedStmt.setString (1,tmpWord);\r\n\t\t\t\t\t preparedStmt.setInt (2, fileNumber);\t\r\n\t\t\t\t\t preparedStmt.setString (3,tmpFile.getName());\r\n\t\t\t\t\t preparedStmt.setInt (4, 1);\t\r\n\t\t\t\t\t // execute the preparedstatement\r\n\t\t\t\t\t preparedStmt.executeUpdate();\r\n\t\t\t\t\t con.commit();\r\n\t\t\t\t\t \r\n\t\t\t\t\t //Inserting into soundex table\r\n\t\t\t\t\t query = \"insert ignore into tmp_soundex (word, soundex, docID, file_name, visible)\" + \" values (?, ?, ?, ?, ?)\";\r\n\t\t\t\t\t // insert preparedstatement\r\n\t\t\t\t\t preparedStmt = con.prepareStatement(query);\r\n\t\t\t\t\t preparedStmt.setString (1,tmpWord);\r\n\t\t\t\t\t preparedStmt.setString (2,sndx.encode(tmpWord));\r\n\t\t\t\t\t preparedStmt.setInt (3, fileNumber);\t\r\n\t\t\t\t\t preparedStmt.setString (4,tmpFile.getName());\r\n\t\t\t\t\t preparedStmt.setInt (5, 1);\t\r\n\t\t\t\t\t // execute the preparedstatement\r\n\t\t\t\t\t preparedStmt.executeUpdate();\r\n\t\t\t\t\t con.commit();\r\n\t\t\t\t\t \r\n\t\t\t\t\t preparedStmt.close();\r\n\t\t\t\t\t System.out.println(\"Inserted the word: \"+tmpWord+\" | DocID is: \"+fileNumber +\"|\" +\" Name:: \"+tmpFile.getName());\r\n\t\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t} catch(NumberFormatException nfe){\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid data input!\", \"Error!\", 2);\r\n\t\t\t\t\t}\r\n\t }\r\n\t }\r\n\t s2.close();\r\n\t }\r\n\t sc2.close();\r\n\t}", "public static void processInput() throws IOException {\r\n\t\t\r\n\t\t//Out statement let user know the input file is being read\t\r\n\t\tScanner scnr;\r\n\t\tString[] splitString;\r\n\t\t\r\n\t\tFile file = new File(\"Project_04_Input01.txt\");\r\n\t\tscnr = new Scanner(file);\r\n\t\t\r\n\t\tSystem.out.println(\"Reading data from \" + file + \"...\");\r\n\t\t\r\n\t\twhile(scnr.hasNextLine()) {\r\n\t\t\tString line = scnr.nextLine();\r\n\t\t\tsplitString = line.split(\",\");\r\n\r\n\t\t\tif (splitString[0].contains(\"STUDENT\")) {\r\n\t\t\t\t\r\n\t\t\t\t// Call processStudentData\r\n\t\t\t\tprocessStudentData(splitString);\r\n\t\t\t\tSystem.out.println(\"'STUDENT' has been found in the file.\");\r\n\r\n\t\t\t} // End if\r\n\t\t\t\r\n\t\t\telse if (splitString[0].contains(\"GRADEITEM\") ) {\r\n\t\t\t\t\r\n\t\t\t\t// Call processGradeItemData\r\n\t\t\t\tprocessGradeItemData(splitString);\r\n\t\t\t\tSystem.out.println(\"'GRADEITEM' has been found in the file.\");\r\n\t\t\t\t\r\n\t\t\t} // End if\r\n\t\t} // End while\r\n\t\t\r\n\t\t// Close the file\r\n\t\tscnr.close();\r\n\t\t\t\r\n\t}", "public static HashMap parseUSFM(File collectionsFile, String baseSourceDirectory, String sourceTextPath, String sTitleTag) throws IOException\n\t{\n //iterate through the source file directory and get the filenames present\n //USFM uses a predefined file format of:\n // 01GENxxxx.ptx\n HashMap books = new HashMap();\n if (baseSourceDirectory == null)\n {\n baseSourceDirectory = \"\";\n }\n \n try\n {\n System.out.println(\"Base Dir: \" + baseSourceDirectory);\n System.out.println(\"Source Path: \" + sourceTextPath);\n \n //get the list of files in the directory\n File folder = new File(baseSourceDirectory, sourceTextPath);\n File[] listOfFiles = folder.listFiles();\n\n for (int i = 0; i < listOfFiles.length; i++) \n {\n if (listOfFiles[i].isFile()) \n {\n String sFileName = listOfFiles[i].getName();\n if (sFileName.toLowerCase().endsWith(\".\" + usfmSourceFileExtension))\n {\n System.out.println(\"File \" + listOfFiles[i].getName());\n String sFilename = folder.toString() + File.separator + listOfFiles[i].getName();\n // Add book to the lookup table\n try\n {\n\t\t\t\t// Create a new book\n\t\t\t\tBook book = new Book(collectionsFile, sFilename, STYLE_RED, fileCodepage, useRedLettering, sTitleTag);\n\t\t\t\tbook.fileName = listOfFiles[i].getName();\n\n\t\t\t\tbooks.put(book.name, book);\n\n // the \\id tag syntax:\n // \\id <CODE> (Text text text...)\n // where <CODE> \"is normally the standard 3 letter UBS/SIL scripture book abbreviation.\"\n // we allow books to be identified using the id tag if the first word matches.\n // Hence, we add a special exception here:\n // book is always added twice: once with the code, and once with\n // the full text match.\n \n if (sTitleTag.equals(\"\\\\id\") && book.name.indexOf(' ') > 0 ) {\n String bookKey = book.name;\n String bookCode = bookKey.substring(0, bookKey.indexOf(' '));\n books.put(bookCode, book);\n }\n \n\t\t\t\tbookNames.add(book.name);\n\t }\n catch (Exception e)\n {\n System.out.println(\"Error: \" + e.getMessage());\n e.printStackTrace();\n }\n }\n } \n }\n }\n catch (Exception e)\n {\n System.out.println(\"Error: \" + e.getMessage());\n e.printStackTrace();\n }\n return books;\n\t}", "void parseWritable(final DataInputStream in) throws IOException {\n // First clear the map. Otherwise we will just accumulate entries every time this method is called.\n this.map.clear();\n // Read the number of entries in the map\n int entries = in.readInt();\n // Then read each key/value pair\n for (int i = 0; i < entries; i++) {\n byte[] key = Bytes.readByteArray(in);\n // We used to read a byte that encoded the class type. Read and ignore it because it is always byte [] in hfile\n in.readByte();\n byte[] value = Bytes.readByteArray(in);\n this.map.put(key, value);\n }\n }", "public static void main (String[] args) throws FileNotFoundException, IOException {\n\t\tFile fil1 = new File(\"C:\\\\Users\\\\Vasanth\\\\Desktop\\\\parse.txt\");\r\n\t\tHashMap<String, String> map = new HashMap<String, String>();\r\n\t\tString[] parts;\r\n\t\tScanner myReader = new Scanner(fil1);\r\n\t\twhile (myReader.hasNextLine())\r\n\t\t{\r\n\t\t\tString data = myReader.nextLine();\r\n\t\t\tif (!data.contains(\"record\"))\r\n\t\t\t{\r\n\t\t\t\tdata.replaceAll(\"^\\\"|\\\"$\", \"\");\r\n\t\t\t\tparts = data.split(\" +\");\t\t\t\r\n\t\t\t\tString key = parts[0].trim();\r\n\t\t\t\tString value = parts[1].trim();\t\t\t\t\r\n\t\t\t\tmap.put(key, value);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Ignoring as it doesnt hold a key value pair\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Writing Hashmap to excel & csv\r\n\t\tXSSFWorkbook wb = new XSSFWorkbook();\r\n\t\tXSSFSheet sh = wb.createSheet(\"Test Data\");\r\n\t\tint rowno = 0;\t\r\n\t\tfor(Map.Entry entry:map.entrySet())\r\n\t\t{\r\n\t\t\tXSSFRow row = sh.createRow(rowno++);\r\n\t\t\trow.createCell(0).setCellValue((String)entry.getKey());\r\n\t\t\trow.createCell(1).setCellValue((String)entry.getValue());\r\n\t\t}\t\t\r\n\t\twb.write(new FileOutputStream(\".\\\\Datafiles\\\\hashtoexcel.xlsx\"));\r\n\t\twb.write(new FileOutputStream(\".\\\\Datafiles\\\\hashexcel.csv\")); \r\n\t\twb.close();\r\n\t\t}", "private void load(FileInputStream input) {\n\t\t\r\n\t}", "public static void processData() {\n\t\tString dirName = \"C:\\\\research_data\\\\mouse_human\\\\homo_b47_data\\\\\";\r\n\t//\tString GNF1H_fName = \"GNF1H_genes_chopped\";\r\n\t//\tString GNF1M_fName = \"GNF1M_genes_chopped\";\r\n\t\tString GNF1H_fName = \"GNF1H\";\r\n\t\tString GNF1M_fName = \"GNF1M\";\r\n\t\tString mergedValues_fName = \"GNF1_merged_expression.txt\";\r\n\t\tString mergedPMA_fName = \"GNF1_merged_PMA.txt\";\r\n\t\tString discretizedMI_fName = \"GNF1_discretized_MI.txt\";\r\n\t\tString discretizedLevels_fName = \"GNF1_discretized_levels.txt\";\r\n\t\tString discretizedData_fName = \"GNF1_discretized_data.txt\";\r\n\t\t\r\n\t\tboolean useMotifs = false;\r\n\t\tMicroArrayData humanMotifs = null;\r\n\t\tMicroArrayData mouseMotifs = null;\r\n\t\t\r\n\t\tMicroArrayData GNF1H_value = new MicroArrayData();\r\n\t\tMicroArrayData GNF1H_PMA = new MicroArrayData();\r\n\t\tGNF1H_PMA.setDiscrete();\r\n\t\tMicroArrayData GNF1M_value = new MicroArrayData();\r\n\t\tMicroArrayData GNF1M_PMA = new MicroArrayData();\r\n\t\tGNF1M_PMA.setDiscrete();\r\n\t\t\r\n\t\ttry {\r\n\t\t/*\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.txt\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.txt\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma\"); */\r\n\t\t/*\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.txt.homob44\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma.txt.homob44\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.txt.homob44\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma.txt.homob44\"); */\r\n\t\t\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.snco.txt\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma.sn.txt\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.snco.txt\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma.sn.txt\");\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\tif (useMotifs) {\r\n\t\t\thumanMotifs = new MicroArrayData();\r\n\t\t\tmouseMotifs = new MicroArrayData();\r\n\t\t\tloadMotifs(humanMotifs,GNF1H_value.geneNames,mouseMotifs,GNF1M_value.geneNames);\r\n\t\t}\r\n\t\t\r\n\t\t// combine replicates in PMA values\r\n\t\tint[][] H_PMA = new int[GNF1H_PMA.numRows][GNF1H_PMA.numCols/2];\r\n\t\tint[][] M_PMA = new int[GNF1M_PMA.numRows][GNF1M_PMA.numCols/2];\r\n\t\t\r\n\t\tint i = 0;\r\n\t\tint j = 0;\r\n\t\tint k = 0;\r\n\t\tint v = 0;\r\n\t\tk = 0;\r\n\t\tj = 0;\r\n\t\twhile (j<GNF1H_PMA.numCols-1) {\r\n\t\t\tfor (i=0;i<H_PMA.length;i++) {\r\n\t\t\t\tv = 0;\r\n\t\t\t//\tif (GNF1H_PMA.dvalues[i][j] > 0 & GNF1H_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\tif (GNF1H_PMA.dvalues[i][j] > 0 | GNF1H_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\t\tv = 1;\r\n\t\t\t\t}\r\n\t\t\t\tH_PMA[i][k] = v;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t\tj = j + 2;\r\n\t\t}\r\n\t\t\r\n\t\tj = 0;\r\n\t\tk = 0;\r\n\t\twhile (j<GNF1M_PMA.numCols-1) {\r\n\t\t\tfor (i=0;i<M_PMA.length;i++) {\r\n\t\t\t\tv = 0;\r\n\t\t\t//\tif (GNF1M_PMA.dvalues[i][j] > 0 & GNF1M_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\tif (GNF1M_PMA.dvalues[i][j] > 0 | GNF1M_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\t\tv = 1;\r\n\t\t\t\t}\r\n\t\t\t\tM_PMA[i][k] = v;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t\tj = j + 2;\r\n\t\t}\r\n\t\t\r\n\t\tint numMatched = 31;\r\n\t\t\r\n\t/*\tGNF1H_value.numCols = numMatched;\r\n\t\tGNF1M_value.numCols = numMatched; */\r\n\t\t\r\n\t\tint[][] matchPairs = new int[numMatched][2];\r\n\t\tfor(i=0;i<numMatched;i++) {\r\n\t\t\tmatchPairs[i][0] = i;\r\n\t\t\tmatchPairs[i][1] = i + GNF1H_value.numCols;\r\n\t\t}\r\n\t\t\r\n\t//\tDiscretizeAffyData H_discretizer = new DiscretizeAffyData(GNF1H_value.values,H_PMA,0);\r\n\t//\tH_discretizer.adjustIntensities();\r\n\t\ttransformRelativeAbundance(GNF1H_value.values,H_PMA,GNF1H_value.numCols);\r\n\t\t\r\n\t//\tDiscretizeAffyData M_discretizer = new DiscretizeAffyData(GNF1M_value.values,M_PMA,0);\r\n\t//\tM_discretizer.adjustIntensities();\r\n\t\ttransformRelativeAbundance(GNF1M_value.values,M_PMA,GNF1M_value.numCols);\r\n\t\t\r\n\t\tdouble[][] mergedExpression = new double[GNF1H_value.numRows][GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\tint[][] mergedPMA = new int[GNF1H_value.numRows][GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\tint[] species = null;\r\n\t\tif (!useMotifs) {\r\n\t\t\tspecies = new int[GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\t} else {\r\n\t\t\tspecies = new int[GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t}\r\n\t\t\r\n\t\tfor (i=0;i<GNF1H_value.numRows;i++) {\r\n\t\t\tSystem.arraycopy(GNF1H_value.values[i],0,mergedExpression[i],0,GNF1H_value.numCols);\r\n\t\t\tSystem.arraycopy(H_PMA[i],0,mergedPMA[i],0,GNF1H_value.numCols);\t\r\n\t\t}\r\n\t\tfor (i=0;i<GNF1M_value.numRows;i++) {\r\n\t\t\tSystem.arraycopy(GNF1M_value.values[i],0,mergedExpression[i],GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\t\tSystem.arraycopy(M_PMA[i],0,mergedPMA[i],GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\t}\r\n\t\t\r\n\t\t// concatenate experiment and gene names\r\n\t\tfor (i=0;i<GNF1H_value.numCols;i++) {\r\n\t\t\tGNF1H_value.experimentNames[i] = \"h_\" + GNF1H_value.experimentNames[i];\r\n\t\t\tspecies[i] = 1;\r\n\t\t}\r\n\t\tfor (i=0;i<GNF1M_value.numCols;i++) {\r\n\t\t\tGNF1M_value.experimentNames[i] = \"m_\" + GNF1M_value.experimentNames[i];\r\n\t\t\tspecies[i+GNF1H_value.numCols] = 2;\r\n\t\t}\r\n\t\t\r\n\t\tString[] mergedExperimentNames = null;\r\n\t\tif (!useMotifs) {\r\n\t\t\tmergedExperimentNames = new String[GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\t} else {\r\n\t\t\tmergedExperimentNames = new String[GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t}\r\n\t\tSystem.arraycopy(GNF1H_value.experimentNames,0,mergedExperimentNames,0,GNF1H_value.numCols);\r\n\t\tSystem.arraycopy(GNF1M_value.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\tif (useMotifs) {\r\n\t\t\tSystem.arraycopy(humanMotifs.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols+GNF1M_value.numCols,humanMotifs.numCols);\r\n\t\t\tSystem.arraycopy(mouseMotifs.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols+GNF1M_value.numCols+humanMotifs.numCols,mouseMotifs.numCols);\r\n\t\t\tfor (i=0;i<humanMotifs.numCols;i++) {\r\n\t\t\t\tspecies[i + GNF1H_value.numCols+GNF1M_value.numCols] = 3;\r\n\t\t\t}\r\n\t\t\tfor (i=0;i<mouseMotifs.numCols;i++) {\r\n\t\t\t\tspecies[i + GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols] = 4;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tString[] mergedGeneNames = new String[GNF1H_value.numRows];\r\n\t\tfor (i=0;i<GNF1M_value.numRows;i++) {\r\n\t\t\tmergedGeneNames[i] = GNF1H_value.geneNames[i] + \"|\" + GNF1M_value.geneNames[i];\r\n\t\t}\r\n\t\t\r\n\t\tint[] filterList = new int[GNF1M_value.numRows];\r\n\t\tint numFiltered = 0;\r\n\t\tdouble maxExpressedPercent = 1.25;\r\n\t\tint maxExpressed_H = (int) Math.floor(maxExpressedPercent*((double) GNF1H_value.numCols));\r\n\t\tint maxExpressed_M = (int) Math.floor(maxExpressedPercent*((double) GNF1M_value.numCols));\r\n\t\tint numExpressed_H = 0;\r\n\t\tint numExpressed_M = 0;\r\n\t\t\r\n\t\tfor (i=0;i<GNF1H_value.numRows;i++) {\r\n\t\t\tnumExpressed_H = 0;\r\n\t\t\tfor (j=0;j<GNF1H_value.numCols;j++) {\r\n\t\t\t\tif (GNF1H_PMA.dvalues[i][j] > 0) {\r\n\t\t\t//\tif (!Double.isNaN(GNF1H_value.values[i][j])) {\r\n\t\t\t//\tif (GNF1H_value.values[i][j] > 1.5) {\r\n\t\t\t\t\tnumExpressed_H++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tnumExpressed_M = 0;\r\n\t\t\tfor (j=0;j<GNF1M_value.numCols;j++) {\r\n\t\t\t\tif (GNF1M_PMA.dvalues[i][j] > 0) {\r\n\t\t\t//\tif (GNF1H_value.values[i][j] > 1.5) {\r\n\t\t\t//\tif (!Double.isNaN(GNF1M_value.values[i][j])) {\r\n\t\t\t\t\tnumExpressed_M++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (numExpressed_M >= maxExpressed_M | numExpressed_H >= maxExpressed_H) {\r\n\t\t\t\tfilterList[i] = 1;\r\n\t\t\t\tnumFiltered++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tGNF1H_value = null;\r\n\t\tGNF1H_PMA = null;\r\n\t\tGNF1M_value = null;\r\n\t\tGNF1M_PMA = null;\r\n\t\t\r\n\t\tdouble[][] mergedExpression2 = null;\r\n\t\tif (numFiltered > 0) {\r\n\t\t\tk = 0;\r\n\t\t\tint[][] mergedPMA2 = new int[mergedPMA.length-numFiltered][mergedPMA[0].length];\r\n\t\t\tif (!useMotifs) {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length-numFiltered][mergedExpression[0].length];\r\n\t\t\t} else {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length-numFiltered][mergedExpression[0].length + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t\t}\r\n\t\t\tString[] mergedGeneNames2 = new String[mergedGeneNames.length-numFiltered];\r\n\t\t\tfor (i=0;i<filterList.length;i++) {\r\n\t\t\t\tif (filterList[i] == 0) {\r\n\t\t\t\t\tmergedPMA2[k] = mergedPMA[i];\r\n\t\t\t\t\tif (!useMotifs) {\r\n\t\t\t\t\t\tmergedExpression2[k] = mergedExpression[i];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.arraycopy(mergedExpression[i],0,mergedExpression2[k],0,mergedExpression[i].length);\r\n\t\t\t\t\t\tSystem.arraycopy(humanMotifs.values[i],0,mergedExpression2[k],mergedExpression[i].length,humanMotifs.numCols);\r\n\t\t\t\t\t\tSystem.arraycopy(mouseMotifs.values[i],0,mergedExpression2[k],humanMotifs.numCols+mergedExpression[i].length,mouseMotifs.numCols);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmergedGeneNames2[k] = mergedGeneNames[i];\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmergedPMA = mergedPMA2;\r\n\t\t\tmergedExpression = mergedExpression2;\r\n\t\t\tmergedGeneNames = mergedGeneNames2;\r\n\t\t} else {\r\n\t\t\tif (useMotifs) {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length][mergedExpression[0].length + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t\t\tfor (i=0;i<mergedExpression.length;i++) {\r\n\t\t\t\t\tSystem.arraycopy(mergedExpression[i],0,mergedExpression2[i],0,mergedExpression[i].length);\r\n\t\t\t\t\tSystem.arraycopy(humanMotifs.values[i],0,mergedExpression2[i],mergedExpression[i].length,humanMotifs.numCols);\r\n\t\t\t\t\tSystem.arraycopy(mouseMotifs.values[i],0,mergedExpression2[i],humanMotifs.numCols+mergedExpression[i].length,mouseMotifs.numCols);\r\n\t\t\t\t}\r\n\t\t\t\tmergedExpression = mergedExpression2;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tDiscretizeAffyPairedData discretizer = new DiscretizeAffyPairedData(mergedExpression,mergedPMA,matchPairs,20);\r\n\t\tMicroArrayData mergedData = new MicroArrayData();\r\n\t\tmergedData.values = discretizer.expression;\r\n\t\tmergedData.geneNames = mergedGeneNames;\r\n\t\tmergedData.experimentNames = mergedExperimentNames;\r\n\t\tmergedData.experimentCode = species;\r\n\t\tmergedData.numCols = discretizer.numExperiments;\r\n\t\tmergedData.numRows = discretizer.numGenes;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmergedData.writeFile(dirName+mergedValues_fName);\r\n\t\t\tdiscretizer.discretizeDownTree(dirName+discretizedMI_fName);\r\n\t\t\tdiscretizer.mergeDownLevels(3,dirName+discretizedLevels_fName);\r\n\t\t\tdiscretizer.transposeDExpression();\r\n\t\t\tmergedData.setDiscrete();\r\n\t\t\tmergedData.values = null;\r\n\t\t\tmergedData.dvalues = discretizer.dExpression;\r\n\t\t\tmergedData.writeFile(dirName+discretizedData_fName);\r\n\t\r\n\t\t\tmergedData.dvalues = mergedPMA;\r\n\t\t\tmergedData.numCols = mergedPMA[0].length;\r\n\t\t\tmergedData.writeFile(dirName+mergedPMA_fName);\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t/*\tMicroArrayData mergedData = new MicroArrayData();\r\n\t\tmergedData.values = mergedExpression;\r\n\t\tmergedData.geneNames = mergedGeneNames;\r\n\t\tmergedData.experimentNames = mergedExperimentNames;\r\n\t\tmergedData.experimentCode = species;\r\n\t\tmergedData.numCols = mergedExpression[0].length;\r\n\t\tmergedData.numRows = mergedExpression.length;\r\n\t\ttry {\r\n\t\t\tmergedData.writeFile(dirName+mergedValues_fName);\r\n\t\t\tmergedData.setDiscrete();\r\n\t\t\tmergedData.values = null;\r\n\t\t//\tmergedData.dvalues = simpleDiscretization(mergedExpression,mergedPMA);\r\n\t\t\tmergedData.dvalues = simpleDiscretization2(mergedExpression,species);\r\n\t\t\tmergedData.writeFile(dirName+discretizedData_fName);\r\n\t\r\n\t\t\tmergedData.dvalues = mergedPMA;\r\n\t\t\tmergedData.numCols = mergedPMA[0].length;\r\n\t\t\tmergedData.writeFile(dirName+mergedPMA_fName);\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t} */\r\n\t\t\r\n\t}", "void processRecords(Vector in, SummitFileWriter out) { \n\n\t\t// Create array for storing a set of summit records\n\t\tSummitRecord[] recs = new SummitRecord[in.size()];\n\n\t\ttry {\n\t\t\t// Loop on i, j, marget segment, and inputfile \n\t\t\tfor (int iz = 1; iz <= mZones; iz++) {\n\t\t\t\tfor (int jz = 1; jz <= mZones; jz++) {\n\t\t\t\t\tfor (int sg = 1; sg <= mSegments; sg++) {\n\t\t\t\t\t\tfor (int i=0; i<in.size(); i++) {\n\t\t\t\t\t\t\trecs[i] = ((SummitFileReader)in.elementAt(i)).getSpecificRecord(iz,jz,sg);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSummitRecord mrgRec = mergeRecords(recs);\n\t\t\t\t\t\tif (mrgRec != null) {\n//\t\t\t\t\t\t\tif (iz==756 && jz==57) {\n//\t\t\t\t\t\t\t\tSystem.out.println(\"Found it\");\n//\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmrgRec.setPtaz((short)iz);\n\t\t\t\t\t\t\tmrgRec.setAtaz((short)jz);\n\t\t\t\t\t\t\tmrgRec.setMarket((short)sg);\n\t\n\t\t\t\t\t\t\tout.writeRecord(mrgRec);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\" \"+iz);\n\t\t\t\tif (iz % 19 == 18) System.out.println();\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nDone.\");\n\n\t\t} catch (IOException ioe) {\n\t\t System.err.println(\"\\n Trouble!\\n\");\n\t\t ioe.printStackTrace();\n\t\t System.exit(1);\n\t\t}\n\t}", "protected void preprocess() {\n log.info(\"Processing files. Max size is {} bytes\", max);\n\n int idx = 0;\n boolean closed = false;\n\n Bag current = new Bag();\n PayloadManifest currentManifest = new PayloadManifest();\n\n for (PayloadFile file : b.getFiles().values()) {\n closed = false;\n current.addFile(file);\n currentManifest.addPayloadFile(file);\n\n if (current.getSize() >= max) {\n finishProcessing(current, currentManifest, idx++);\n\n closed = true;\n current = new Bag();\n currentManifest = new PayloadManifest();\n }\n }\n\n // Close out the final bag\n if (!closed) {\n finishProcessing(current, currentManifest, idx);\n }\n }", "public HashMap readFile(String filePath, HashMap source){\n\t\tArrayList<String> temp1 = new ArrayList<String>();\n\t\tArrayList<String> temp2 = new ArrayList<String>();\n\t\tBufferedReader br = null;\n\t\t\n\t\ttry {\n\t\t\tString sCurrentLine;\n\t\t\t\n\t\t\t// \"Users/Jasmine/Documents/Eclipse/CacheDictionary/src/english.txt\"\n\t\t\tbr = new BufferedReader(new FileReader(filePath)); \n\t\t\t\n\t\t\t//str.matches(\".*\\\\d+.*\"); ==> string that contains numbers\n\t\t\t//.matches(\"[a-zA-Z]+\"); ==> string that only contains letter\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * if the source file itself is not one word per line, we need to split the string\n\t\t\t\t * only letter(not single) will be stored in the array\n\t\t\t\t */\n\t\t\t\t//\n\t\t\t\tif(sCurrentLine.matches(\".*([ \\t]).*\")){ //check if the current line is a single word or not\n\t\t\t\t\ttemp1.add(sCurrentLine);\n\t\t\t\t}\n\t\t\t\telse if(sCurrentLine.matches(\"[a-zA-Z]+\") && sCurrentLine.length()>1){\n\t\t\t\t\ttemp2.add(sCurrentLine);\n\t\t\t\t}\n\t\t\t}// end of while loop\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null)br.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tif(!temp1.isEmpty()){\n\t\t\tfor(int i = 0; i< temp1.size(); i++){\n\t\t\t\tString thisLine[] = temp1.get(i).split(\" \");\n\t\t\t\t//for each word in this line\n\t\t\t\tfor(int j = 0; j < thisLine.length; j++){\n\t\t\t\t\t//if it is a valid word\n\t\t\t\t\tif(thisLine[j].matches(\"[a-zA-Z]+\") && thisLine[j].length()>1 ){\n\t\t\t\t\t\tif( source.get(thisLine[j]) == null){\n\t\t\t\t\t\t\tsource.put(thisLine[j].toLowerCase(),thisLine[j].toLowerCase());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t} // end of if current word i valid\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t} // end of temp1\n\t\t\n\t\tif(!temp2.isEmpty()){\n\t\t\tfor(int i = 0; i< temp2.size(); i++){\n\t\t\t\tif(temp2.get(i).matches(\"[a-zA-Z]+\") && temp2.get(i).length()>1){\n\t\t\t\t\tif(source.get(temp2.get(i)) == null){\n\t\t\t\t\t\tsource.put(temp2.get(i).toLowerCase(),temp2.get(i).toLowerCase());\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t} \n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn source;\n\t}", "@PostConstruct\n private void loadFiles() {\n \n\n File dir = new File(Constants.DIR_PATH);\n File[] files = dir.listFiles(); //stores list of files in given paths\n String line=\"\";\n\n for(File file : files){\n try {\n br = new BufferedReader(new FileReader(file));\n br.readLine();\n while((line=br.readLine())!=null){\n\n String []token=line.split(Constants.DELIMETER);\n String fileName=file.getName().toUpperCase();\n\n FlightData newflight = new FlightData(fileName.substring(0,fileName.lastIndexOf(\".\")),token[0],token[1],token[2],token[3],token[4],token[5],Double.parseDouble(token[6]),token[7],token[8]);\n flightDataDao.insertFlightData(newflight);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }", "private static void preprocess() {\n \tLOG.info(\"Begin preprocessing of data.\");\n \t\n \tLOG.debug(\"Create a IterativeDirectoryReader.\");\n \t// Create a reader for directories\n \tIterativeDirectoryReader iterativeDirectoryReader = (IterativeDirectoryReader) ReaderFactory.instance().getIterativeDirectoryReader();\n \titerativeDirectoryReader.setDirectoryName(clArgs.preprocessInDir);\n \titerativeDirectoryReader.setPathInChildDirectory(clArgs.preprocessPathInChildDir);\n \t\n \tLOG.debug(\"Create a IterativeFileReader.\");\n \t// Create a reader for text files and set an appropriate file filter\n \tIterativeFileReader iterativeFileReader = (IterativeFileReader) ReaderFactory.instance().getIterativeFileReader();\n \titerativeFileReader.setFileFilter(FileUtil.acceptVisibleFilesFilter(false, true));\n \t\n \tLOG.debug(\"Create a TextFileLineReader.\");\n \t// Create a reader for text files, the first six lines are not relevant in this data set\n \tTextFileLineReader textFileLineReader = (TextFileLineReader) ReaderFactory.instance().getTextFileLineReader();\n \ttextFileLineReader.setOffset(clArgs.preprocessLineOffset);\n \t\n \tLOG.debug(\"Create a GpsLogLineProcessor.\");\n \t// Create a processor for user points\n \tGpsLogLineProcessor processor = new GpsLogLineProcessor(clArgs.preprocessOutFile);\n \t\n \t// Build reader chain\n \titerativeDirectoryReader.setReader(iterativeFileReader);\n \titerativeFileReader.setReader(textFileLineReader);\n \ttextFileLineReader.setProcessor(processor);\n \t\n \titerativeDirectoryReader.attach(processor, \n \t\t\t\tnew Interests[] {\n \t\t\t\t\tInterests.NewChildDirectory,\n \t\t\t\t\tInterests.HasFinished\n \t\t\t\t});\n \t\n \tLOG.debug(\"Read GPS logs. Save the data in a new file {}.\", clArgs.preprocessOutFile);\n \t// Read and save the data\n \titerativeDirectoryReader.read();\n\n \tLOG.info(\"Finished preprocessing of data.\");\n }", "public static void main(String[] args) {\n FilesParser filesParser = new FilesParser();\r\n ArrayList<Double> time = filesParser.get_timeList();\r\n Map<Double, ArrayList<Double>> expFile = new HashMap<>();\r\n ArrayList<Map<Double, ArrayList<Double>>> theorFiles = new ArrayList<>();\r\n\r\n try {\r\n expFile = filesParser.trimStringsAndGetData(0,\r\n filesParser.getDirectories()[0],\r\n filesParser.get_expFiles()[2]);\r\n List<String> fileList = filesParser.get_theorFileList();\r\n for (int i = 0; i < fileList.size(); i++) {\r\n theorFiles.add(filesParser.trimStringsAndGetData(1,\r\n filesParser.getDirectories()[1],\r\n filesParser.get_theorFileList().get(i)));\r\n }\r\n //System.out.println(expFile.get(0.00050));\r\n //System.out.println(expFile.get(-0.25));\r\n //System.out.println(expFile);\r\n //System.out.println(theorFiles.get(0.00050));\r\n //System.out.println(theorFiles);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n /*for (int i = 0; i < theorFiles.size(); i++) {\r\n Map<Double, ArrayList<Double>> theorFile = theorFiles.get(i);\r\n for (int ik = 0; ik < time.size(); ik++) {\r\n ArrayList<Double> theorFileLine = theorFile.get(time.get(ik));\r\n if (theorFileLine != null) {\r\n for (int j = 0; j < theorFileLine.size(); j++) {\r\n double theord = theorFileLine.get(j);\r\n for (int k = 0; k < expFile.size(); k++) {\r\n ArrayList<Double> expFileLine = expFile.get(time.get(ik));\r\n if (expFileLine != null) {\r\n for (int l = 0; l < expFileLine.size(); l++) {\r\n double expd = expFileLine.get(l);\r\n\r\n double div = expd / theord;\r\n if (div == 1) System.out.println(i);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }*/\r\n\r\n }", "public void mergefiles()\n {\n LinkedHashMap<String, Integer> count = new LinkedHashMap<>();\n for(int i=0;i<files_temp.size();i++)\n {\n \t\t\n //System.out.println(\"here in merge files for\");\n \t//int index = files_temp.get(i).lastIndexOf(\"\\\\\");\n\t\t\t//System.out.println(index);\n \tSystem.out.println(files_temp.get(i));\n File file = new File(files_temp.get(i)+\"op.txt\");\n Scanner sc;\n try {\n //System.out.println(\"here in merge files inside try\");\n sc = new Scanner(file);\n sc.useDelimiter(\" \");\n while(sc.hasNextLine())\n {\n //System.out.println(\"Inwhile \");\n List<String> arr = new ArrayList<String>();\n arr=Arrays.asList(sc.nextLine().replaceAll(\"[{} ]\", \"\").replaceAll(\"[=,]\", \" \").split(\" \"));\n //System.out.println(arr.get(0));\n for(int j=0;j<arr.size()-1;j=j+2) \n {\n System.out.println(arr.get(j));\n if(arr.get(j).length()!=0 && arr.get(j+1).length()!=0)\n {\n if (count.containsKey(arr.get(j))) \n {\n int c = count.get(arr.get(j));\n count.remove(arr.get(j));\n count.put(arr.get(j),c + Integer.valueOf(arr.get(j+1)));\n }\n else \n {\n count.put(arr.get(j),Integer.valueOf(arr.get(j+1)));\n }\n }\n }\n }\n }\n catch(Exception E) \n {\n System.out.println(E);\n }\n }\n //System.out.println(count);\n count.entrySet()\n .stream()\n .sorted(Map.Entry.comparingByValue(Comparator.reverseOrder()))\n .forEachOrdered(x -> sorted.put(x.getKey(), x.getValue()));\n System.out.println(sorted);\n PrintWriter writer;\n\t\ttry {\n\t\t\twriter = new PrintWriter(\"results.txt\", \"UTF-8\");\n\t\t\tIterator it = sorted.entrySet().iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tMap.Entry pairs = (Map.Entry) it.next();\n\t\t\t\t\twriter.println(pairs.getValue() + \" : \" + pairs.getKey());\n\t\t\t\t\tthis.result.println(pairs.getValue() + \" : \" + pairs.getKey());\n\t\t\t}\n\t\t writer.close();\n\t\t}\n catch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n }", "protected void addContentHMetisInFilePath() {\n\t\tPTNetlist ptNetlist = this.getNetlister().getPTNetlist();\n\t\tString newline = System.lineSeparator();\n\t\tMap<PTNetlistNode, Integer> vertexIntegerMap = this.getVertexIntegerMap();\n\t\tList<String> fileContent = new ArrayList<String>();\n\t\t// vertices\n\t\tPTNetlistNode src = null;\n\t\tPTNetlistNode dst = null;\n\t\tInteger srcInteger = null;\n\t\tInteger dstInteger = null;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < ptNetlist.getNumEdge(); i++){\n\t\t\tPTNetlistEdge edge = ptNetlist.getEdgeAtIdx(i);\n\t\t\tif (PTNetlistEdgeUtils.isEdgeConnectedToPrimary(edge)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttemp ++;\n\t\t\tsrc = edge.getSrc();\n\t\t\tdst = edge.getDst();\n\t\t\tsrcInteger = vertexIntegerMap.get(src);\n\t\t\tdstInteger = vertexIntegerMap.get(dst);\n\t\t\tfileContent.add(srcInteger + \" \" + dstInteger + newline);\n\t\t}\n\t\ttry {\n\t\t\tOutputStream outputStream = new FileOutputStream(this.getHMetisInFile());\n\t\t\tWriter outputStreamWriter = new OutputStreamWriter(outputStream);\n\t\t\t// Format of Hypergraph Input File\n\t\t\t// header lines are: [number of edges] [number of vertices] \n\t\t\t//\t\tsubsequent lines give each edge, one edge per line\n\t\t\toutputStreamWriter.write(temp + \" \" + vertexIntegerMap.size() + newline);\n\t\t\tfor (int i = 0; i < fileContent.size(); i++) {\n\t\t\t\toutputStreamWriter.write(fileContent.get(i));\n\t\t\t}\t\t\t\n\t\t\toutputStreamWriter.close();\n\t\t\toutputStream.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private boolean parseInput(String fileName)\n {\n try\n {\n Scanner in = new Scanner(new File(fileName));\n\n this.numIntxns = in.nextInt();\n this.roads = new Road[in.nextInt()];\n this.cities = new City[in.nextInt()];\n\n for (int i = 0; i < this.roads.length; i++)\n {\n int start = in.nextInt();\n int end = in.nextInt();\n double length = in.nextDouble();\n\n this.roads[i] = new Road(start, end, length);\n }\n\n for (int i = 0; i < this.cities.length; i++)\n {\n int intersectionNum = in.nextInt();\n String name = in.next();\n\n this.cities[i] = new City(intersectionNum, name);\n }\n\n if (in.hasNextInt())\n {\n this.signs = new Sign[in.nextInt()];\n }\n\n for (int i = 0; i < this.signs.length; i++)\n {\n int start = in.nextInt();\n int end = in.nextInt();\n double length = in.nextDouble();\n\n this.signs[i] = new Sign(start, end, length);\n }\n }\n // lazy catch statement because computer science is hard\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n return false;\n }\n\n return true;\n }", "private void parseInputFile(String inputFile) throws IOException {\n List<String> lines = Files.readAllLines(FileSystems.getDefault().getPath(inputFile), Charset.defaultCharset());\n for (int i = 1; i < lines.size(); ++i) {\n ParsedRecord record = new ParsedRecord(lines.get(i));\n if (!this.parsedRecords.containsKey(record.docName)) {\n this.parsedRecords.put(record.docName, new ArrayList<ParsedRecord>());\n }\n this.parsedRecords.get(record.docName).add(record);\n\n if (!this.docToMaxPosition.containsKey(record.docName) ||\n this.docToMaxPosition.containsKey(record.docName) && this.docToMaxPosition.get(record.docName) < record.position) {\n this.docToMaxPosition.put(record.docName, record.position);\n }\n }\n }", "public static void main(String[] args) throws IOException {\n String last = \"\";\n HashSet<String> types = new HashSet<String>();\n\n int c = 0;\n try {\n FileReader fr = new FileReader(inDir + \"fr\" + \"/wkd_uris_selection\");\n BufferedReader br = new BufferedReader(fr);\n String line;\n while ((line = br.readLine()) != null) {\n addToFile(line);\n c++;\n //if(c > 100) break;\n }\n\n fw.close();\n br.close();\n } catch (FileNotFoundException fne) {// TODO\n fne.printStackTrace();\n } catch (IOException ioe) {// TODO\n ioe.printStackTrace();\n }\n\n }", "private void getData(Path inputOne, Path inputTwo) throws IOException {\n String line;\n\n try (BufferedReader br = Files.newBufferedReader(inputOne, StandardCharsets.ISO_8859_1)) {\n\n while((line = br.readLine()) != null){\n City source = null;\n City target = null;\n\n String[] split = line.split(\",\");\n if(!cities.stream().anyMatch(o -> o.getCityName().equalsIgnoreCase(split[0]))) {\n cities.add(source = new City(split[0]));\n }\n if(!cities.stream().anyMatch(o -> o.getCityName().equalsIgnoreCase(split[1]))){\n cities.add(target = new City(split[1]));\n }\n\n for (City city : cities){\n if(city.getCityName().equalsIgnoreCase(split[0])){\n source = city;\n }\n if(city.getCityName().equalsIgnoreCase(split[1])){\n target = city;\n }\n if(source != null && target != null){\n Road newroad = new Road(source, target, Integer.parseInt(split[2]), Integer.parseInt(split[3]));\n roads.add(newroad);\n break;\n }\n }\n }\n }\n\n try (BufferedReader br = Files.newBufferedReader(inputTwo, StandardCharsets.ISO_8859_1)) {\n while((line = br.readLine()) != null) {\n String[] split = line.split(\",\");\n\n for(City city : cities){\n if(city.getCityName().equalsIgnoreCase(split[1])){\n city.addAttraction(split[0]);\n }\n }\n }\n }\n }", "public static void RT() {////cada clase que tiene informacion en un archivo txt tiene este metodo para leer el respectivo archivoy guardarlo en su hashmap\n\t\treadTxt(\"peliculas.txt\", pelisList);\n\t}", "@Override\n\tprotected List<String> performScanning(String inputFilePath) {\n\t\tList<String> resultList = App.fileParser(inputFilePath);\n\t\treturn resultList;\n\t}", "public void preParseInputFileAE(String inputFile) {\n System.out.println(\"Parsing AE log file...\");\n // gathering lots of data\n serverNames = new LinkedHashSet<>();\n applicationNames = new LinkedHashSet<>();\n serviceNames = new LinkedHashSet<>();\n // connected applications, by servers, by simulation step\n graphHistory = new HashMap<>(); // Map<Integer, Map<FakeServer, List<FakeApplication>>>\n // servers, by simulation step\n serverHistory = new HashMap<>(); // Map<Integer, List<FakeServer>>\n // applications, by simulation step\n applicationHistory = new HashMap<>(); // Map<Integer, List<FakeApplication>>\n int stepCounter = 0;\n try {\n BufferedReader br = Files.newBufferedReader(new File(inputFile).toPath());\n String line;\n while ((line = br.readLine()) != null) {\n // init the maps\n graphHistory.put(stepCounter, new HashMap<>());\n serverHistory.put(stepCounter, new ArrayList<>());\n applicationHistory.put(stepCounter, new ArrayList<>());\n List<FakeServer> currentServers = new ArrayList<>();\n // splitting the servers\n String[] serversRaw = line.split(\"\\\\|\");\n // grabbing robustness from last position\n double robustnessRandomShuffle = Double.parseDouble(serversRaw[serversRaw.length - 4]);\n double robustnessRandomForward = Double.parseDouble(serversRaw[serversRaw.length - 3]);\n double robustnessRandomBackward = Double.parseDouble(serversRaw[serversRaw.length - 2]);\n double robustnessServiceShuffle = Double.parseDouble(serversRaw[serversRaw.length - 1]);\n // stat\n maxSimultaneousServers = Math.max(serversRaw.length - 4, maxSimultaneousServers);\n // for all server full String\n for (String serverRaw : Arrays.asList(serversRaw).subList(0, serversRaw.length - 4)) {\n // grabbing the server part\n String server = serverRaw.split(\"=\")[0];\n // grabbing the application part\n String applications = serverRaw.split(\"=\")[1];\n // server name\n serverNames.add(server.split(\"/\")[0]);\n // building the server object\n FakeServer fakeServer = new FakeServer(server.split(\"/\")[0], Integer.parseInt(server.split(\"/\")[1]),\n Integer.parseInt(server.split(\"/\")[2]), Integer.parseInt(server.split(\"/\")[3]), Integer.parseInt(server.split(\"/\")[4]),\n Arrays.asList(server.split(\"/\")).subList(5, server.split(\"/\").length));\n // stats and tools\n serverHistory.get(stepCounter).add(fakeServer);\n currentServers.add(fakeServer);\n graphHistory.get(stepCounter).put(fakeServer, new ArrayList<>());\n maxServerGeneration = Math.max(Integer.parseInt(server.split(\"/\")[1]), maxServerGeneration);\n maxServerConnections = Math.max(Integer.parseInt(server.split(\"/\")[2]), maxServerConnections);\n maxServerSize = Math.max(Arrays.asList(server.split(\"/\")).size(), maxServerSize);\n serviceNames.addAll(Arrays.asList(server.split(\"/\")).subList(5, server.split(\"/\").length));\n maxSimultaneousApplications = Math.max(applications.split(\";\").length, maxSimultaneousApplications);\n // applications\n for (String application : applications.split(\";\")) {\n // building the application object\n FakeApplication fakeApplication = new FakeApplication(application.split(\"/\")[0], Integer.parseInt(application.split(\"/\")[1]),\n Integer.parseInt(application.split(\"/\")[2]), Integer.parseInt(application.split(\"/\")[4]),\n Arrays.asList(application.split(\"/\")).subList(5, application.split(\"/\").length),\n Arrays.asList(application.split(\"/\")[3].split(\"_\")).stream()\n .map(neighborName -> (FakeServer) findActor(neighborName, currentServers))\n .collect(Collectors.toList()));\n // stats and tools\n applicationHistory.get(stepCounter).add(fakeApplication);\n graphHistory.get(stepCounter).get(fakeServer).add(fakeApplication);\n applicationNames.add(application.split(\"/\")[0]);\n maxApplicationGeneration = Math.max(Integer.parseInt(application.split(\"/\")[1]), maxApplicationGeneration);\n maxApplicationConnections = Math.max(Integer.parseInt(application.split(\"/\")[2]), maxApplicationConnections);\n maxApplicationSize = Math.max(Arrays.asList(application.split(\"/\")).size(), maxApplicationSize);\n serviceNames.addAll(Arrays.asList(application.split(\"/\")).subList(5, application.split(\"/\").length));\n }\n }\n stepCounter++;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.out.println(\"Names: \" + serverNames.size() + \"/\" + applicationNames.size() + \"/\" + serviceNames.size());\n System.out.println(\"MaxSimult: \" + maxSimultaneousServers + \"/\" + maxSimultaneousApplications);\n System.out.println(\"MaxGen: \" + maxServerGeneration + \"/\" + maxApplicationGeneration);\n System.out.println(\"MaxSize: \" + maxServerSize + \"/\" + maxApplicationSize);\n stepNumber = stepCounter;\n }", "public static void createHashTable(String inputFileName, String outputFileName){\n File inputFile = new File(inputFileName);\n File outputFile = new File(outputFileName);\n WordCounter h = new WordCounter();\n h.input(inputFile);\n h.output(outputFile);\n }", "private void reformatInputFile() throws IOException, InvalidInputException{\r\n new InputFileConverter(this.inputFileName);\r\n }", "public void userLogInInfoRead(String filepath2, HashMap<String, EmpInfo> mergeData) {\n String data;\n String[] userLogInInfoToken;\n File userLogInInfoFile = new File(filepath2);\n Scanner scanner = null;\n try {\n scanner = new Scanner(userLogInInfoFile);\n } catch (FileNotFoundException e) {\n out.println(\"file not found\");\n }\n if (scanner != null) {\n while (scanner.hasNextLine()) {\n data = scanner.nextLine();\n userLogInInfoToken = data.split(\",\");\n // store userid in mergeData as a key\n EmpInfo empInfo = new EmpInfo(Integer.parseInt(userLogInInfoToken[0]),\n userLogInInfoToken[1], userLogInInfoToken[2], userLogInInfoToken[3]);\n EmpInfo uRole = mergeData.get(userLogInInfoToken[0]);\n uRole.setUserRole(userLogInInfoToken[3]);\n /* merge data have already 6 key and 6 emp information if new key is equal to old key\n then hash map not put new key and hashmap put userRole at old key,hashmap allowed only unique kay*/\n mergeData.put(userLogInInfoToken[0], uRole);\n // all employee log in information add in arraylist for printing information\n userLogInInfo.add(empInfo);\n }\n }\n }", "private void readFile() {\r\n\t\tScanner sc = null; \r\n\t\ttry {\r\n\t\t\tsc = new Scanner(inputFile);\t\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tgrade.add(sc.nextLine());\r\n\t } \r\n\t\t}\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tsc.close();\r\n\t\t}\t\t\r\n\t}", "public static void populateLists() throws IOException\n\t{\n\n\t\tFile loginInfo = new File(\"loginDetails.txt\");\n\t\tFile topics = new File(\"task.txt\");\n\t\tFile games = new File(\"game.txt\");\n\t\tFile questions = new File(\"Questions.txt\");\n\t\tFile topic = new File(\"Topics.txt\");\n\t\t//File userinfo=new File\n Scanner fileReader;\n\t\tString[] temp;\n\t\t\n\t\tloginDetails.add(new ArrayList<String>());\n\t\tloginDetails.add(new ArrayList<String>());\n\t\tloginDetails.add(new ArrayList<String>());\n\t\t\n\t\ttopicsMenu.add(new ArrayList<String>());\n\t\ttopicsMenu.add(new ArrayList<String>());\n\n\t\tgameMenu.add(new ArrayList<String>());\n\t\tgameMenu.add(new ArrayList<String>());\n\t\ttopicMenu.add(new ArrayList<String>());\n\t\ttopicMenu.add(new ArrayList<String>());\n\n\n\t\tfor(int i=0; i<9; i++)\n\t\t\tquestionDetails.add(new ArrayList<String>());\n if(loginInfo.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(loginInfo);\n\t\t\t\n\t\t\twhile(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<loginDetails.size(); i++)\n\t\t\t\t\tloginDetails.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}writeToFile(loginInfo,\"\");\n if(topics.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(topics);\n\n\t\t\twhile(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<topicsMenu.size(); i++)\n\t\t\t\t\ttopicsMenu.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n\t\t if(topic.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(topic);\n\n\t\t\twhile(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<topicMenu.size(); i++)\n\t\t\t\t\ttopicMenu.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n\t\tif(games.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(games);\n\n\t\t\twhile(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<gameMenu.size(); i++)\n\t\t\t\t\tgameMenu.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n if(questions.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(questions);\n while(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<questionDetails.size(); i++)\n\t\t\t\t\tquestionDetails.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n }", "private void processFileEntries(final File filePath, Map<String, Integer> bigramHistogramMap) {\n\n BufferedInputStream bis = null;\n FileInputStream fis = null;\n\n try {\n\n // create FileInputStream object\n fis = new FileInputStream(filePath);\n\n // create object of BufferedInputStream\n bis = new BufferedInputStream(fis);\n\n String stringLine;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(bis));\n\n String previousWord = \"\";\n\n while ((stringLine = br.readLine()) != null) {\n previousWord = addBigramHistogramEntry(stringLine, previousWord, bigramHistogramMap);\n }\n\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found - \" + e);\n } catch (IOException ioe) {\n System.out.println(\"Exception while reading file - \" + ioe);\n } catch (Exception e) {\n System.out.println(\"Unable to load: \" + filePath.getName());\n } finally {\n // close the streams using close method\n try {\n if (fis != null) {\n fis.close();\n }\n if (bis != null) {\n bis.close();\n }\n } catch (IOException ioe) {\n System.out.println(\"Error while closing stream : \" + ioe);\n }\n }\n }", "public List<String> getFileLines() {\n\t\tspeciesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\ttissuesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tcellTypesByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tdiseaseByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tquantificationByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tinstrumentByExperiment = new TIntObjectHashMap<List<String>>();\n\t\tmodificationByExperiment = new TIntObjectHashMap<List<String>>();\n\t\texperimental_factorByExperiment = new TIntObjectHashMap<List<String>>();\n\n\t\tfinal List<String> ret = new ArrayList<String>();\n\t\tfinal Map<String, PexFileMapping> fileLocationsMapping = new THashMap<String, PexFileMapping>();\n\t\tfinal List<PexFileMapping> totalFileList = new ArrayList<PexFileMapping>();\n\t\tint fileCounter = 1;\n\t\t// organize the files by experiments\n\t\tfor (final Experiment experiment : experimentList.getExperiments()) {\n\n\t\t\tfinal File prideXmlFile = experiment.getPrideXMLFile();\n\t\t\tif (prideXmlFile != null) {\n\t\t\t\t// FILEMAPPINGS\n\t\t\t\t// PRIDE XML\n\t\t\t\tfinal int resultNum = fileCounter;\n\t\t\t\tfinal PexFileMapping prideXMLFileMapping = new PexFileMapping(\"result\", fileCounter++,\n\t\t\t\t\t\tprideXmlFile.getAbsolutePath(), null);\n\n\t\t\t\ttotalFileList.add(prideXMLFileMapping);\n\t\t\t\tfileLocationsMapping.put(prideXMLFileMapping.getPath(), prideXMLFileMapping);\n\n\t\t\t\t// Iterate over replicates\n\t\t\t\tfinal List<Replicate> replicates = experiment.getReplicates();\n\t\t\t\tfor (final Replicate replicate : replicates) {\n\t\t\t\t\t// sample metadatas\n\t\t\t\t\taddSampleMetadatas(resultNum, replicate);\n\n\t\t\t\t\t// PEak lists\n\t\t\t\t\tfinal List<PexFileMapping> peakListFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// raw files\n\t\t\t\t\tfinal List<PexFileMapping> rawFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// search engine output lists\n\t\t\t\t\tfinal List<PexFileMapping> outputSearchEngineFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// MIAPE MS and MSI reports\n\t\t\t\t\tfinal List<PexFileMapping> miapeReportFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\t// RAW FILES\n\t\t\t\t\tfinal List<PexFile> rawFiles = getReplicateRawFiles(replicate);\n\n\t\t\t\t\tif (rawFiles != null) {\n\t\t\t\t\t\tfor (final PexFile rawFile : rawFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(rawFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping rawFileMapping = new PexFileMapping(\"raw\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\trawFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\trawFileMappings.add(rawFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(rawFile.getFileLocation(), rawFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> RAW file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(rawFileMapping.getId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// PEAK LISTS\n\t\t\t\t\tfinal List<PexFile> peakListFiles = getPeakListFiles(replicate);\n\t\t\t\t\tfinal List<PexFileMapping> replicatePeakListFileMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\tif (peakListFiles != null) {\n\t\t\t\t\t\tfor (final PexFile peakList : peakListFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(peakList.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping peakListFileMapping = new PexFileMapping(\"peak\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tpeakList.getFileLocation(), null);\n\t\t\t\t\t\t\t\tpeakListFileMappings.add(peakListFileMapping);\n\t\t\t\t\t\t\t\treplicatePeakListFileMappings.add(peakListFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(peakList.getFileLocation(), peakListFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> PEAK LIST file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(peakListFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> PEAK LIST file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(peakListFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// prideXMLFileMapping\n\t\t\t\t\t\t\t\t// .addRelationship(peakListFileMapping\n\t\t\t\t\t\t\t\t// .getId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// MIAPE MS REPORTS\n\t\t\t\t\tfinal List<PexFile> miapeMSReportFiles = getMiapeMSReportFiles(replicate);\n\t\t\t\t\tif (miapeMSReportFiles != null)\n\t\t\t\t\t\tfor (final PexFile miapeMSReportFile : miapeMSReportFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(miapeMSReportFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping miapeReportFileMapping = new PexFileMapping(\"other\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tmiapeMSReportFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\tmiapeReportFileMappings.add(miapeReportFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(miapeMSReportFile.getFileLocation(), miapeReportFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> MIAPE MS report\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> MIAPE MS report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST file -> MIAPE MS report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(miapeReportFileMapping.getId());\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\n\t\t\t\t\t// SEARCH ENGINE OUTPUT FILES\n\t\t\t\t\tfinal List<PexFile> searchEngineOutputFiles = getSearchEngineOutputFiles(replicate);\n\t\t\t\t\tfinal List<PexFileMapping> replicatesearchEngineOutputFilesMappings = new ArrayList<PexFileMapping>();\n\t\t\t\t\tif (searchEngineOutputFiles != null) {\n\t\t\t\t\t\tfor (final PexFile peakList : searchEngineOutputFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(peakList.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping searchEngineOutputFileMapping = new PexFileMapping(\"search\",\n\t\t\t\t\t\t\t\t\t\tfileCounter++, peakList.getFileLocation(), null);\n\t\t\t\t\t\t\t\toutputSearchEngineFileMappings.add(searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\treplicatesearchEngineOutputFilesMappings.add(searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(peakList.getFileLocation(), searchEngineOutputFileMapping);\n\t\t\t\t\t\t\t\t// PRIDE XML -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST FILE -> SEARCH ENGINE OUTPUT file\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(searchEngineOutputFileMapping.getId());\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}\n\n\t\t\t\t\t// MIAPE MSI REPORTS\n\t\t\t\t\tfinal List<PexFile> miapeMSIReportFiles = getMiapeMSIReportFiles(replicate);\n\t\t\t\t\tif (miapeMSIReportFiles != null)\n\t\t\t\t\t\tfor (final PexFile miapeMSIReportFile : miapeMSIReportFiles) {\n\t\t\t\t\t\t\tif (!fileLocationsMapping.containsKey(miapeMSIReportFile.getFileLocation())) {\n\t\t\t\t\t\t\t\tfinal PexFileMapping miapeReportFileMapping = new PexFileMapping(\"other\", fileCounter++,\n\t\t\t\t\t\t\t\t\t\tmiapeMSIReportFile.getFileLocation(), null);\n\t\t\t\t\t\t\t\tmiapeReportFileMappings.add(miapeReportFileMapping);\n\t\t\t\t\t\t\t\tfileLocationsMapping.put(miapeMSIReportFile.getFileLocation(), miapeReportFileMapping);\n\n\t\t\t\t\t\t\t\t// PRIDE XML -> MIAPE MSI report\n\t\t\t\t\t\t\t\tprideXMLFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t// RAW file -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping rawFileMapping : rawFileMappings) {\n\t\t\t\t\t\t\t\t\trawFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// PEAK LIST FILE -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping peakListFileMapping : replicatePeakListFileMappings) {\n\t\t\t\t\t\t\t\t\tpeakListFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// SEARCH ENGINE OUTPUT file -> MIAPE MSI report\n\t\t\t\t\t\t\t\tfor (final PexFileMapping searchEngineOutputFileMapping : replicatesearchEngineOutputFilesMappings) {\n\t\t\t\t\t\t\t\t\tsearchEngineOutputFileMapping.addRelationship(miapeReportFileMapping.getId());\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t// Add all to the same list and then sort by id\n\t\t\t\t\ttotalFileList.addAll(outputSearchEngineFileMappings);\n\t\t\t\t\ttotalFileList.addAll(miapeReportFileMappings);\n\t\t\t\t\ttotalFileList.addAll(peakListFileMappings);\n\t\t\t\t\ttotalFileList.addAll(rawFileMappings);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Sort the list of files\n\t\tCollections.sort(totalFileList, new Comparator<PexFileMapping>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(PexFileMapping o1, PexFileMapping o2) {\n\n\t\t\t\treturn Integer.valueOf(o1.getId()).compareTo(Integer.valueOf(o2.getId()));\n\n\t\t\t}\n\n\t\t});\n\t\tfor (final PexFileMapping pexFileMapping : totalFileList) {\n\t\t\tret.add(pexFileMapping.toString());\n\t\t}\n\t\treturn ret;\n\t}", "public void parseFile() {\n File file = new File(inputFile);\n try {\n Scanner scan = new Scanner(file);\n\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n line = line.replaceAll(\"\\\\s+\", \" \").trim();\n\n if (line.isEmpty()) {\n continue;\n }\n // System.out.println(line);\n String cmd = line.split(\" \")[0];\n String lineWithoutCmd = line.replaceFirst(cmd, \"\").trim();\n // System.out.println(lineWithoutCmd);\n\n // The fields following each command\n String[] fields;\n\n switch (cmd) {\n case (\"add\"):\n fields = lineWithoutCmd.split(\"<SEP>\");\n fields[0] = fields[0].trim();\n fields[1] = fields[1].trim();\n fields[2] = fields[2].trim();\n add(fields);\n break;\n case (\"delete\"):\n\n fields = split(lineWithoutCmd);\n delete(fields[0], fields[1]);\n break;\n case (\"print\"):\n if (lineWithoutCmd.equals(\"ratings\")) {\n printRatings();\n break;\n }\n fields = split(lineWithoutCmd);\n\n print(fields[0], fields[1]);\n\n break;\n case (\"list\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n list(fields[0], fields[1]);\n break;\n case (\"similar\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n similar(fields[0], fields[1]);\n break;\n default:\n break;\n }\n\n }\n\n }\n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "private void parseFromCSV(String fileNameX, String fileNameY) throws IOException {\n Scanner inX = new Scanner(new BufferedInputStream(clearInput(new FileInputStream(new File(fileNameX)))));\r\n Scanner inY = new Scanner(new BufferedInputStream(clearInput(new FileInputStream(new File(fileNameY)))));\r\n\r\n for (int i = 0; i < 5000; i++) {\r\n double[] X_i = X[i];\r\n for (int j = 0; j < 3072; j++) {\r\n X_i[j] = inX.nextDouble();\r\n }\r\n int id = inY.nextInt();\r\n int output = inY.nextInt();\r\n y[id - 1] = output;\r\n System.out.println(i + 1);\r\n }\r\n\r\n // Cache the training data (so it's faster to load next time)\r\n {\r\n // Cache X\r\n ByteBuffer bytesX = ByteBuffer.allocate(5000 * 3072 * 8);\r\n DoubleBuffer doublesX = bytesX.asDoubleBuffer();\r\n for (double[] row : X) {\r\n doublesX.put(row);\r\n }\r\n bytesX.rewind();\r\n OutputStream outX = new FileOutputStream(new File(fileNameX + \".cache\"));\r\n outX.write(bytesX.array());\r\n outX.close();\r\n }\r\n\r\n {\r\n // Cache Y\r\n ByteBuffer bytesY = ByteBuffer.allocate(5000 * 8);\r\n bytesY.asIntBuffer().put(y);\r\n bytesY.rewind();\r\n OutputStream outY = new FileOutputStream(new File(fileNameY + \".cache\"));\r\n outY.write(bytesY.array());\r\n outY.close();\r\n }\r\n }", "public void inputForAnalysis() throws IOException\n {\n ArrayList<String> words = new ArrayList<String>(0);\n \n File fileName = new File(\"ciphertext.txt\");\n Scanner inFile = new Scanner(fileName);\n \n int index = 0;\n while(inFile.hasNext())\n {\n words.add(inFile.next());\n index++;\n }\n inFile.close();\n analyze(words);\n }", "public static void main(String[] args) throws IOException {\n if(args.length == 0) {\r\n System.out.println(\"Proper Usage is: java inputfile.txt outputfile.txt\");\r\n System.exit(0);\r\n }\r\n\r\n //Assign agruments\r\n String inputfile=args[0];\r\n String outputfile=args[1];\r\n\r\n //Verify inputfile size is not empty\r\n if (getFileSize(inputfile)<0) {\r\n System.out.println(\"Source input filesize is empty: \");\r\n System.exit(0);\r\n }\r\n\r\n List<String> rowsInputFile = new ArrayList<String>();\r\n rowsInputFile=retrieveAllRows(inputfile);\r\n\r\n ArrayList<Integer> errorList = new ArrayList<>();\r\n ArrayList<ParseString> validRowList = new ArrayList<ParseString>();\r\n\r\n\r\n //evaluateRows=evaluateRows(rowsInputFile);\r\n\r\n //errorList =\r\n //validRowList=\r\n\r\n for (int i = 0; i < rowsInputFile.size(); i++) {\r\n\r\n String pattern = \"\\\\d{3} \\\\d{3} \\\\d{4}\";\r\n String inputString = rowsInputFile.get(i);\r\n Pattern r = Pattern.compile(pattern);\r\n Matcher m = r.matcher(inputString);\r\n\r\n if (m.find()) { //Match\r\n validRowList.add(new ParseString(rowsInputFile.get(i), true));\r\n out.println(inputString);\r\n } else { //No Match\r\n out.println(inputString);\r\n int actualline = i + 1;\r\n errorList.add(actualline);\r\n }\r\n }\r\n\r\n sortJsonArray(validRowList);\r\n\r\n JsonObject json = new JsonObject();\r\n loadValidDataJson(json,validRowList);\r\n loadErrorDataJson(json,errorList);\r\n\r\n createJsonFile(json);\r\n\r\n }", "public static void readDatafiles() throws FileNotFoundException {\n int docNumber = 0;\n\n while(docNumber<totaldocument) { // loop will run until all 0 - 55 speech data is read\n String tempBuffer = \"\";\n\n Scanner sc_obj = new Scanner(new File(\"./inputFiles/speech_\"+docNumber+\".txt\"));\n sc_obj.nextLine(); //skip the first line of every document\n\n while(sc_obj.hasNext()) {\n tempBuffer = sc_obj.next();\n tempBuffer = tempBuffer.replaceAll(\"[^a-zA-Z]+\",\" \");\n\n String[] wordTerm = tempBuffer.split(\" |//.\"); // the read data will convert into single word from whole stream of characters\n // it will split according to white spaces . - , like special characters\n\n for (int i=0; i < wordTerm.length; i++) {\n\n String term = wordTerm[i].toLowerCase();\t\t//each splitted word will be converted into lower case\n term = RemoveSpecialCharacter(term);\t\t\t// it will remove all the characters apart from the english letters\n term = removeStopWords(term);\t\t\t\t\t// it will remove the stopWords and final version of the term in the form of tokens will form\n\n if(!term.equalsIgnoreCase(\"\") && term.length()>1) {\n term = Lemmatize(term);\t\t\t\t\t//all the words in the form of tokens will be lemmatized\n //increment frequency of word if it is already present in dictionary\n if(dictionary.containsKey(term)) {\t\t//all the lemmatized words will be placed in HashMap dictionary\n List<Integer> presentList = dictionary.get(term);\n int wordFrequency = presentList.get(docNumber);\n wordFrequency++;\n presentList.set(docNumber, wordFrequency);\t\t//frequency of all the lemmatized words in dictionary is maintained \t\t\t\t\t\t\t\t\t//i.e: Word <2.0,1.0,3.0,0.0 ...> here hashmap<String,List<Double> is used\n }\t\t\t\t\t\t\t\t\t\t//the 0th index shows the word appared 2 times in doc 0 and 1 times in doc 1 and so forth..\n else { // if word was not in the dictionary then it will be added\n // if word was found in 5 doc so from 0 to 4 index representing doc 0 to doc 4 (0.0) will be placed\n List<Integer>newList = new ArrayList<>();\n for(int j=0; j<57; j++) {\n if(j != docNumber)\n newList.add(0);\n else\n newList.add(1);\n }\n dictionary.put(term, newList);\n }\n }\n }\n\n }\n docNumber++;\n }\n }", "public static void processDataFile() {\n final String INPUT_FILENAME = \"input/assn6input1.txt\";\n File inputFile = null;\n Scanner inputScanner = null;\n System.out.println(\"Reading data from file: \" + INPUT_FILENAME);\n System.out.println();\n try {\n inputFile = new File(INPUT_FILENAME);\n inputScanner = new Scanner(inputFile);\n } catch(FileNotFoundException e) {\n System.err.println(\"Error opening file \" + INPUT_FILENAME);\n }\n while(inputScanner.hasNext()) {\n String[] dataLine = inputScanner.nextLine().split(\",\");\n // Is the first token \"REALTOR\"?\n if(dataLine[0].toUpperCase().equals(\"REALTOR\")) {\n if(dataLine[1].toUpperCase().equals(\"ADD\")) {\n addRealtor(dataLine);\n }\n else if(dataLine[1].toUpperCase().equals(\"DEL\")) {\n //deleteRealtor(dataLine[2]);\n }\n else {\n \n }\n }\n // Is the first token \"PROPERTY\"?\n else if(dataLine[0].toUpperCase().equals(\"PROPERTY\")) {\n if(dataLine[1].toUpperCase().equals(\"ADD\")) {\n addProperty(dataLine);\n }\n else if(dataLine[1].toUpperCase().equals(\"DEL\")) {\n //deleteProperty(Integer.parseInt(dataLine[2]));\n }\n else {\n \n }\n } else {\n // not realtor or property in the first token\n System.out.println(\"\\tNeither realtor, nor property in first\"\n + \" token\");\n }\n }\n inputScanner.close();\n }", "public static void main(String[] args) {\n\t\tHashMap<String, HashMap<String, Double>> file_alph_tf = new HashMap<String, HashMap<String, Double>>();\n\t\tHashMap<String, Double> file_alph_idf = new HashMap<String, Double>();\n\t\tHashMap<String, Double> tmp_idf = new HashMap<String, Double>();\n\t\tHashMap<String, HashMap<String, Double>> result_map = new HashMap<String, HashMap<String, Double>>();\n\t\t// 이후에 cosine similarity를 계산할때 사용할 top5해쉬맵\n\t\tHashMap<String, HashMap<String, Double>> top5 = new HashMap<String, HashMap<String, Double>>();\n\t\t\n\t\tTest01 t1 = new Test01();\n\t\tTest02 t2 = new Test02();\n\t\tTest03 t3 = new Test03();\n\t\t\n\t\t// 각 문서의 특성을 추출 : Test04 - map\t\t\n\t\t\n\t\tFile[] fileList = t1.get_file();\n\t\t\n\t\tfor (File file : fileList) {\n\t\t\t\n\t\t\tHashMap <String, Double> tmp_map = new HashMap <String, Double>();\n\t\t\t\n\t\t\t// count alphabet _ each files\n\t\t\ttry {\n\t\t\t\tFileReader file_reader = new FileReader(file);\n\t\t\t\tint cur = 0;\n\t\t\t\twhile ((cur = file_reader.read()) != -1) {\n\t\t\t\t\tif (cur != 32) {\n\t\t\t\t\t\tif (!tmp_map.containsKey(String.valueOf((char)cur))) {\n\t\t\t\t\t\t\ttmp_map.put(String.valueOf((char)cur), (double) 1);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdouble temp_num = tmp_map.get(String.valueOf((char)cur));\n\t\t\t\t\t\t\ttmp_map.put(String.valueOf((char)cur),temp_num+1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch(FileNotFoundException e) {\n\t\t\t\te.getStackTrace();\n\t\t\t} catch(IOException e) {\n\t\t\t\te.getStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// calc_TF\n\t\t\tArrayList<String> key_lst = new ArrayList<String>(tmp_map.keySet());\n\t\t\tdouble sum_value = 0;\n\t\t\t// TF의 분모 문서내에 오는 모든수 더하기\n\t\t\tfor (String k : key_lst) {\n\t\t\t\tsum_value += tmp_map.get(k);\t\n\t\t\t}\n\t\t\t// TF의 분자 : 해당 파일에 있는 알파벳의 갯수 (tmp_map에 저장되어있음) / tf분모\n\t\t\tfor (String tf_k : key_lst) {\n\t\t\t\tdouble tf = tmp_map.get(tf_k) / sum_value;\n\t\t\t\ttmp_map.put(tf_k, tf);\n\t\t\t}\n\t\t\tsum_value = 0;\n\t\t\tfile_alph_tf.put(file.getName(), tmp_map);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t// calc_IDF_Bottom : counting IDF_Bottom\n\t\t\ttmp_idf = file_alph_tf.get(file.getName());\n\t\t\t\n\t\t\tfor (String idf_k : key_lst) {\n\t\t\t\tif (tmp_idf.get(idf_k) != 0) {\n\t\t\t\t\tif (!file_alph_idf.containsKey(idf_k)) {\n\t\t\t\t\t\tfile_alph_idf.put(idf_k, (double) 1);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tdouble tmp_num = file_alph_idf.get(idf_k);\n\t\t\t\t\t\tfile_alph_idf.put(idf_k, tmp_num+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t} // file의 이름으로 반복\n\t\t\n\t\t\n\t\t// calc_IDF\n\t\tfor (File file : fileList) {\n\t\t\tHashMap<String, Double> aa = new HashMap<String, Double>();\n\t\t\tArrayList<String> key_lst = new ArrayList<String>(file_alph_idf.keySet());\n\t\t\tdouble temp_num = 0;\n\t\t\tfor (String key : key_lst) {\n\t\t\t\t\n\t\t\t\tdouble tf;\n\t\t\t\ttemp_num = 0;\n\t\t\t\ttry {\n\t\t\t\t\ttf = file_alph_tf.get(file.getName()).get(key);\n\t\t\t\t\tif (file_alph_idf.get(key) != 0) {\n\t\t\t\t\t\tdouble tt = file_alph_idf.get(key);\n\t\t\t\t\t\ttemp_num = 7/tt;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttemp_num = 0;\n\t\t\t\t\t}\n\t\t\t\t} catch(NullPointerException e) {\n\t\t\t\t\ttf = 0;\n\t\t\t\t}\n\t\t\t\tdouble idf = Math.log(1+ temp_num);\n\t\t\t\tdouble tfidf = tf*idf;\n\t\t\t\taa.put(key, tfidf);\n\t\t\t}\n//\t\t\tSystem.out.println();\n\t\t\tresult_map.put(file.getName(), aa);\n\t\t}\t\n\t\n\t\t\n\t\t\n\t\t\n\t\tfor(File f : fileList) {\n\t\t\t\n\t//---------------------------------------상위 5개-------------------------------------------\t\t\t\n\t\t\t\n//\t\t\tSystem.out.println(f.getName());\n\t\t\tString f_n = f.getName(); \n\t\t\t\n\t\t\t// 0. 정렬 전 파일 출력\n//\t\t\tArrayList <String> key_lst = new ArrayList<String>(result_map.get(f_n).keySet());\n//\t\t\tfor (String kk : key_lst) {\n//\t\t\t\tSystem.out.println(kk + \" : \" + result_map.get(f_n).get(kk));\n//\t\t\t}\n\t\t\t\n\t\t\tArrayList<String> Top5List = sortHSbyValue_double(result_map.get(f_n));\n//\t\t\tSystem.out.println(Top5List);\n\t\t\tHashMap<String, Double> map = new HashMap<String, Double>();\n\t\t\tfor (String s : Top5List) {\n\t\t\t\tmap.put(s, result_map.get(f_n).get(s));\n\t\t\t}\n\n\t\t\ttop5.put(f_n, map);\t\n\t\t}\n\t\t\n\t\t// cosine_similarity\n\t\t// 구하기 전에 벡터의 차원을 맞춰준다.\n\t\t// input받는 파일을 제외한 나머지 파일들과의 유사도를 구한다.\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.print(\"문서 이름을 입력하세요 : \");\n\t\tString input = sc.next();\n\t\t\n\t\tHashMap<String, Double> csMap = new HashMap<String, Double>();\n\t\t\n\t\tfor (File f : fileList) {\n\t\t\tHashMap<String, Double> a = (HashMap<String, Double>) top5.get(input).clone();\n\t\t\tArrayList<String> a_key_lst = new ArrayList<String>(a.keySet());\n\t\t\tArrayList<String> total_key = new ArrayList<String>();\n\t\t\t\n\t\t\tif (input.equals(f.getName())) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tHashMap<String, Double> b = (HashMap<String, Double>) top5.get(f.getName()).clone();\n\t\t\tArrayList<String> b_key_lst = new ArrayList<String>(b.keySet());\n\t\t\t\n\t\t\tfor (String a_k : a_key_lst) {\n\t\t\t\ttotal_key.add(a_k);\n\t\t\t}\n\t\t\tfor (String b_k : b_key_lst) {\n\t\t\t\ttotal_key.add(b_k);\n\t\t\t}\n\t\t\t\n\t\t\tfor (String t_k : total_key) {\n\t\t\t\tif(!a.containsKey(t_k)) {\n\t\t\t\t\ta.put(t_k, (double)0);\n\t\t\t\t}\n\t\t\t\tif(!b.containsKey(t_k)) {\n\t\t\t\t\tb.put(t_k, (double)0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tdouble[] a_lst = t3.mapToList(a);\n\t\t\tdouble[] b_lst = t3.mapToList(b);\n\t\t\tdouble cs = cosinSimilarity(a_lst, b_lst);\n\t\t\tcsMap.put(f.getName(), cs);\n\t\t\t\n\t\t\ta_key_lst.clear();\n\t\t\ttotal_key.clear();\n\t\t\t\n\t\t}\n\t\t\n\t\tt2.sort_print(csMap, input);\n\t\t\n\t\tSystem.out.println();\n\t}", "public void processData() {\n\t\t SamReader sfr = SamReaderFactory.makeDefault().validationStringency(ValidationStringency.LENIENT).open(this.inputFile);\n\t\t \n\t\t\t\n\t\t\t//Set up file writer\n\t\t SAMFileWriterFactory sfwf = new SAMFileWriterFactory();\n\t\t sfwf.setCreateIndex(true);\n\t\t SAMFileWriter sfw = sfwf.makeSAMOrBAMWriter(sfr.getFileHeader(), false, this.outputFile);\n\t\t \n\t\t \n\t\t\t\n\t\t\t\n\t\t\t//counters\n\t\t\tint totalReads = 0;\n\t\t\tint trimmedReads = 0;\n\t\t\tint droppedReads = 0;\n\t\t\tint dropTrimReads = 0;\n\t\t\tint dropMmReads = 0;\n\t\t\t\n\t\t\t//Containers\n\t\t\tHashSet<String> notFound = new HashSet<String>();\n\t\t\tHashMap<String, SAMRecord> mateList = new HashMap<String,SAMRecord>();\n\t\t\tHashSet<String> removedList = new HashSet<String>();\n\t\t\tHashMap<String,SAMRecord> editedList = new HashMap<String,SAMRecord>();\n\t\t\t\n\t\t\tfor (SAMRecord sr: sfr) {\n\t\t\t\t//Messaging\n\t\t\t\tif (totalReads % 1000000 == 0 && totalReads != 0) {\n\t\t\t\t\tSystem.out.println(String.format(\"Finished processing %d reads. %d were trimmed, %d were set as unmapped. Currently storing mates for %d reads.\",totalReads,trimmedReads,droppedReads,mateList.size()));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ttotalReads += 1;\n\t\t\t\t\n\t\t\t\tString keyToCheck = sr.getReadName() + \":\" + String.valueOf(sr.getIntegerAttribute(\"HI\"));\n\t\t\t\n\t\t\t\t//Make sure chromsome is available\n\t\t\t\tString chrom = sr.getReferenceName();\n\t\t\t\tif (!this.refHash.containsKey(chrom)) {\n\t\t\t\t\tif (!notFound.contains(chrom)) {\n\t\t\t\t\t\tnotFound.add(chrom);\n\t\t\t\t\t\tMisc.printErrAndExit(String.format(\"Chromosome %s not found in reference file, skipping trimming step\", chrom));\n\t\t\t\t\t}\n\t\t\t\t} else if (!sr.getReadUnmappedFlag()) {\n\t\t\t\t\tString refSeq = null;\n\t\t\t\t\tString obsSeq = null;\n\t\t\t\t\tList<CigarElement> cigar = null;\n\t\t\t\t\t\n\t\t\t\t\t//Get necessary sequence information depending on orientation\n\t\t\t\t\tif (sr.getReadNegativeStrandFlag()) {\n\t\t\t\t\t\trefSeq = this.revComp(this.refHash.get(chrom).substring(sr.getAlignmentStart()-1,sr.getAlignmentEnd()));\n\t\t\t\t\t\tobsSeq = this.revComp(sr.getReadString());\n\t\t\t\t\t\tcigar = this.reverseCigar(sr.getCigar().getCigarElements());\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\trefSeq = this.refHash.get(chrom).substring(sr.getAlignmentStart()-1,sr.getAlignmentEnd());\n\t\t\t\t\t\tobsSeq = sr.getReadString();\n\t\t\t\t\t\tcigar = sr.getCigar().getCigarElements();\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Get alignments\n\t\t\t\t\tString[] alns = this.createAlignmentStrings(cigar, refSeq, obsSeq, totalReads);\n\t\t\t\t\t\n\t\t\t\t\t//Identify Trim Point\n\t\t\t\t\tint idx = this.identifyTrimPoint(alns,sr.getReadNegativeStrandFlag());\n\t\t\t\t\t\n\t\t\t\t\t//Check error rate\n\t\t\t\t\tboolean mmPassed = false;\n\t\t\t\t\tif (mmMode) {\n\t\t\t\t\t\tmmPassed = this.isPoorQuality(alns, sr.getReadNegativeStrandFlag(), idx);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Create new cigar string\n\t\t\t\t\tif (idx < minLength || mmPassed) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tsr.setAlignmentStart(0);\n\t\t\t\t\t\tsr.setReadUnmappedFlag(true);\n\t\t\t\t\t\tsr.setProperPairFlag(false);\n\t\t\t\t\t\tsr.setReferenceIndex(-1);\n\t\t\t\t\t\tsr.setMappingQuality(0);\n\t\t\t\t\t\tsr.setNotPrimaryAlignmentFlag(false);\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\tif (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\t\tmateList.put(keyToCheck, this.changeMateUnmapped(mateList.get(keyToCheck)));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tremovedList.add(keyToCheck);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} \n\t\t\t\t\t\tdroppedReads += 1;\n\t\t\t\t\t\tif (idx < minLength) {\n\t\t\t\t\t\t\tdropTrimReads += 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdropMmReads += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (idx+1 != alns[0].length()) {\n\t\t\t\t\t\ttrimmedReads++;\n\t\t\t\t\t\tCigar oldCig = sr.getCigar();\n\t\t\t\t\t\tCigar newCig = this.createNewCigar(alns, cigar, idx, sr.getReadNegativeStrandFlag());\n\t\t\t\t\t\tsr.setCigar(newCig);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sr.getReadNegativeStrandFlag()) {\n\t\t\t\t\t\t\tint newStart = this.determineStart(oldCig, newCig, sr.getAlignmentStart());\n\t\t\t\t\t\t\tsr.setAlignmentStart(newStart);\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\tif (this.verbose) {\n\t\t\t\t\t\t\tthis.printAlignments(sr, oldCig, alns, idx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\t\tmateList.put(keyToCheck, this.changeMatePos(mateList.get(keyToCheck),sr.getAlignmentStart()));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\teditedList.put(keyToCheck,sr);\n\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}\n\t\t\t\t\n\t\t\t\t//System.out.println(sr.getReadName());\n\t\t\t\tif (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t//String rn = sr.getReadName();\n\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\tif (editedList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\tsr = this.changeMatePos(sr,editedList.get(keyToCheck).getAlignmentStart());\n\t\t\t\t\t\t\teditedList.remove(keyToCheck);\n\t\t\t\t\t\t} else if (removedList.contains(keyToCheck)) {\n\t\t\t\t\t\t\tsr = this.changeMateUnmapped(sr);\n\t\t\t\t\t\t\tremovedList.remove(keyToCheck);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsfw.addAlignment(sr);\n\t\t\t\t\t\tsfw.addAlignment(mateList.get(keyToCheck));\n\t\t\t\t\t\tmateList.remove(keyToCheck);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmateList.put(keyToCheck, sr);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsfw.addAlignment(sr);\n\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\tmateList.remove(keyToCheck);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(String.format(\"Finished processing %d reads. %d were trimmed, %d were set as unmapped. Of the unmapped, %d were too short and %d had too many mismatches. Currently storing mates for %d reads.\",\n\t\t\t\t\ttotalReads,trimmedReads,droppedReads,dropTrimReads, dropMmReads, mateList.size()));\n\t\t\tSystem.out.println(String.format(\"Reads left in hash: %d. Writing to disk.\",mateList.size()));\n\t\t\tfor (SAMRecord sr2: mateList.values()) {\n\t\t\t\tsfw.addAlignment(sr2);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tsfw.close();\n\t\t\ttry {\n\t\t\t\tsfr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\t\n\t}", "private static void initFileNames() {\n if (fileNames == null) {\n fileNames = new HashMap<>();\n }\n fileNames.put(\"Linked List (simple)\", \"MySimpleLinkedList\");\n fileNames.put(\"Linked List\", \"MyLinkedList\");\n fileNames.put(\"Stack\", \"MyStack\");\n fileNames.put(\"Queue\", \"MyArrayDeque\");\n fileNames.put(\"Graph\", \"MyGraph\");\n fileNames.put(\"HashTable\", \"MyHashTable\");\n fileNames.put(\"Linear Search\", \"Algorithms\");\n fileNames.put(\"Binary Search\", \"Algorithms\");\n fileNames.put(\"Bubble Sort\", \"Algorithms\");\n fileNames.put(\"Insertion Sort\", \"Algorithms\");\n fileNames.put(\"Selection Sort\", \"Algorithms\");\n fileNames.put(\"Shell Sort\", \"Algorithms\");\n fileNames.put(\"Merge Sort\", \"Algorithms\");\n fileNames.put(\"Merge Sort (in-place)\", \"Algorithms\");\n fileNames.put(\"Quick Sort\", \"Algorithms\");\n }", "private void PrepareAll(TweetPreprocessor tweetPreprocessor, String Datasetpath) throws IOException\n\t{\n\t\tCSVParser parser = new CSVParser(new FileReader(Datasetpath),CSVFormat.EXCEL.withFirstRecordAsHeader());\n\n\t\tExecutorService threadpool = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());\n\t\tfinal ConcurrentHashMap<String, String> txtHashMap = new ConcurrentHashMap<>();\n\t\tfinal ConcurrentHashMap<String, String> featHashMap = new ConcurrentHashMap<>();\n\t\tfinal ConcurrentHashMap<String, String> compHashMap = new ConcurrentHashMap<>();\n\t\tfinal ConcurrentHashMap<String, String> lexHashMap = new ConcurrentHashMap<>();\n\n\t\tint count = 0;\n\t\tfor (CSVRecord record : parser.getRecords())\n\t\t{\n\t\t\tSystem.out.println(\"Adding Task = \" + count);\n\t\t\tint finalCount = count;\n\n\t\t\tif (count == 17000)\n\t\t\t\tbreak;\n\t\t\tthreadpool.execute(() ->\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Current Executing task : \" + finalCount);\n\t\t\t\tInstance tweet = new Instance(record.get(\"event\"),record.get(\"target\"),null,null);\n\t\t\t\tInstance[] preparedinstances = tweetPreprocessor.startProc(tweet);\n\n\t\t\t\ttxtHashMap.put(preparedinstances[0].getData().toString(), record.get(\"target\"));\n\t\t\t\tfeatHashMap.put(preparedinstances[1].getData().toString(), record.get(\"target\"));\n\t\t\t\tcompHashMap.put(preparedinstances[2].getData().toString(), record.get(\"target\"));\n\t\t\t\tlexHashMap.put(preparedinstances[3].getData().toString(), record.get(\"target\"));\n\t\t\t});\n\t\t\tcount++;\n\t\t}\n\t\t//Initiates an orderly shutdown in which previously submitted tasks are executed,\n //but no new tasks will be accepted\n\t\tthreadpool.shutdown();\n\n\t\twhile (!threadpool.isTerminated());\n\t\tSystem.out.println(\"ThreadPool is shutdown ..\");\n\n\t\ttry (BufferedWriter writer1 = new BufferedWriter(new FileWriter(Dataset + \"data_text.csv\"));\n\t\t\t BufferedWriter writer2 = new BufferedWriter(new FileWriter(Dataset + \"data_feature.csv\"));\n\t\t\t BufferedWriter writer3 = new BufferedWriter(new FileWriter(Dataset + \"data_complex.csv\"));\n\t\t\t BufferedWriter writer4 = new BufferedWriter(new FileWriter(Dataset + \"data_lexicon.csv\")))\n\t\t{\n\t\t\tfor (String tweet : txtHashMap.keySet())\n\t\t\t\twriter1.write(txtHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\t\t\tfor (String tweet : compHashMap.keySet())\n\t\t\t\twriter3.write(compHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\t\t\tfor (String tweet : lexHashMap.keySet())\n\t\t\t\twriter4.write(lexHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\t\t\tfor (String tweet : featHashMap.keySet())\n\t\t\t\twriter2.write(featHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void analysisAndImport(File uploadedFile)\n {\n Map<String, Map<String, String>> map = new HashMap<String, Map<String, String>>();\n\n try\n {\n String[] keyArr = null;\n String key = null;\n String strKey = null;\n String strValue = null;\n InputStream is;\n is = new FileInputStream(uploadedFile);\n BufferedReader bf = new BufferedReader(new InputStreamReader(is));\n Properties prop = new Properties();\n prop.load(bf);\n Enumeration enum1 = prop.propertyNames();\n while (enum1.hasMoreElements())\n {\n // The key profile\n strKey = (String) enum1.nextElement();\n key = strKey.substring(0, strKey.lastIndexOf('.'));\n keyArr = strKey.split(\"\\\\.\");\n // Value in the properties file\n strValue = prop.getProperty(strKey);\n Set<String> keySet = map.keySet();\n if (keySet.contains(key))\n {\n Map<String, String> valueMap = map.get(key);\n Set<String> valueKey = valueMap.keySet();\n if (!valueKey.contains(keyArr[2]))\n {\n valueMap.put(keyArr[2], strValue);\n }\n }\n else\n {\n Map<String, String> valueMap = new HashMap<String, String>();\n valueMap.put(keyArr[2], strValue);\n map.put(key, valueMap);\n }\n }\n // Data analysis\n analysisData(map);\n }\n catch (Exception e)\n {\n logger.error(\"Failed to parse the file\", e);\n }\n }", "private void writeToFiles(Context resultContext) throws IOException {\n\t\tMap<String, Map<Object, ArrayList<Object>>> keyValMappingByBaseOutputPath = resultContext.getKeyValMappingsByBaseOutputPath(); \n\t\t//Write key & value to each baseOutputPath's \n\t\tPath targetOutputDir = null;\n\t\tMap<Object, ArrayList<Object>> keyValMapping = null;\n\t\tPath finalOutputBaseDir = this.config.getFinalOutputDir();\n\t\tfor (String baseOutputPath: keyValMappingByBaseOutputPath.keySet()) {\n\t\t\tif (baseOutputPath.equals(\"\")) {\n\t\t\t\t//Regular output goes into the mapper output buffer directory.\n\t\t\t\ttargetOutputDir = this.config.getMapOutputBufferDir();\n\t\t\t}else {\n\t\t\t\t//Multiple output to a particular outputPath which was \n\t\t\t\t//specified by user goes into the final output directory. \n\t\t\t\ttargetOutputDir = Paths.get(finalOutputBaseDir.toString(), baseOutputPath);\n\t\t\t}\n\t\t\tkeyValMapping = keyValMappingByBaseOutputPath.get(baseOutputPath);\n\t\t\tthis.writeEachMapping(targetOutputDir, keyValMapping);\n\t\t};\n\t}", "void parse(String fileName1,String fileName2) {\n\t\tString sCurrentLine;\n\t\tbr = null;\n\t\t\n\t\t//first read the fileName1\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(fileName1));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"File provided as the first argument is not found\");\n\t\t}\n\t\ttry {\n\t\t\t//For Users.xml\n\t\t\t//read current line and then first extract the attributes and then the\n\t\t\t//\tdata between the double quotes\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\tMatcher m = id.matcher(sCurrentLine);\n\t\t\t\tMatcher dispName = name.matcher(sCurrentLine);\n\t\t\t\tMatcher dbQuotes,num;\n\t\t\t\tif (m.find() && dispName.find()){\n\t\t\t\t\tnum = number.matcher(m.group());\n\t\t\t\t\tdbQuotes = quotes.matcher(dispName.group());\n\t\t\t\t\tnum.find();\n\t\t\t\t\tdbQuotes.find();\n\t\t\t\t\tuserMap.put(Integer.parseInt(num.group()), dbQuotes.group());\n\t\t\t\t}\n\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Some Error in Reading the referred file\");\n\t\t}\n\t\tcatch (IllegalStateException e){\n\t\t\tSystem.out.println(\"Illegal call to the function m.find() or pattern not found\");\n\t\t}\n\t\t\n\t\t\n\t\ttry {\n\t\t\t//read the second file\n\t\t\tbr = new BufferedReader(new FileReader(fileName2));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"File provided as the first argument is not found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t//For posts.xml\n\t\t\t//read current line and then first extract the attributes and then the\n\t\t\t//\tdata between the double quotes\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\tMatcher m = postType.matcher(sCurrentLine);\n\t\t\t\tMatcher owner = ownerId.matcher(sCurrentLine);\n\t\t\t\tMatcher ownId,postNum;\n\t\t\t\tif (m.find() && owner.find()){\n\t\t\t\t\townId = number.matcher(owner.group());\n\t\t\t\t\tpostNum = number.matcher(m.group());\n\t\t\t\t\townId.find();\n\t\t\t\t\tpostNum.find();\n\t\t\t\t\tint key = Integer.parseInt(postNum.group());\n\t\t\t\t\tint own = Integer.parseInt(ownId.group());\n\t\t\t\t\tif (key == 1){\n\t\t\t\t\t\t//if the post is a question\n\t\t\t\t\t\tif(postsMapQuestions.containsKey(own)){\n\t\t\t\t\t\t\tpostsMapQuestions.put(own,postsMapQuestions.get(own)+1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tpostsMapQuestions.put(own, 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t//this post is an answer\n\t\t\t\t\t\tif(postsMapAnswers.containsKey(own)){\n\t\t\t\t\t\t\tpostsMapAnswers.put(own,postsMapAnswers.get(own)+1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tpostsMapAnswers.put(own, 1);\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} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Some Error in Reading the referred file\");\n\t\t}\n\t\tcatch (IllegalStateException e){\n\t\t\tSystem.out.println(\"Illegal call to the function m.find() or pattern not found\");\n\t\t}\n\t}", "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}" ]
[ "0.71087", "0.63313484", "0.6216081", "0.6055899", "0.6050586", "0.59638226", "0.59324", "0.58818966", "0.5857141", "0.58170724", "0.5765517", "0.5765356", "0.5745324", "0.57353234", "0.57127166", "0.5689781", "0.5612449", "0.55878115", "0.5545959", "0.5516969", "0.54660994", "0.54559094", "0.5455689", "0.5449821", "0.54455876", "0.54387695", "0.5437771", "0.5437365", "0.54283255", "0.54059315", "0.5402037", "0.53736514", "0.5369908", "0.5368388", "0.5358009", "0.535095", "0.53427", "0.533955", "0.5336891", "0.5331161", "0.53298503", "0.53298426", "0.5322035", "0.5321025", "0.53202206", "0.5313125", "0.5296017", "0.5294802", "0.52792186", "0.5277779", "0.5271234", "0.52696204", "0.5261476", "0.5258117", "0.52473295", "0.52386594", "0.52342975", "0.52275854", "0.5225249", "0.52217764", "0.5219291", "0.52102745", "0.52031684", "0.5201618", "0.5201596", "0.5201074", "0.5200671", "0.5198049", "0.51972556", "0.5196472", "0.51871717", "0.5182693", "0.5170687", "0.5162364", "0.51604295", "0.51544696", "0.5143067", "0.5132561", "0.5123616", "0.51163316", "0.51105875", "0.51081437", "0.51080143", "0.5107931", "0.5104847", "0.51006544", "0.50967705", "0.5091401", "0.50897145", "0.50850976", "0.50699127", "0.5069667", "0.5069533", "0.50672466", "0.5061753", "0.50608665", "0.5059843", "0.5050406", "0.50501335", "0.5045375", "0.5042929" ]
0.0
-1
returns the keyset of the DPTags
public Set getDPTags() { return tagHash.keySet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public KeySet getKeys();", "public Set<String> keySet()\n\t{\n\t\tverifyParseState();\n\t\t\n\t\treturn values.keySet();\n\t}", "public java.util.List<String> getTagKeys() {\n if (tagKeys == null) {\n tagKeys = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();\n tagKeys.setAutoConstruct(true);\n }\n return tagKeys;\n }", "public Set<String> getTags(){\r\n\t\treturn tags.keySet();\r\n\t}", "public Tag [] getTagSet() {\n return this.TagSet;\n }", "@Override\n public Set<K> keySet() {\n Set<K> keyset = new TreeSet<>();\n Inorder(root, keyset);\n return keyset;\n }", "Lista<K> keySet();", "public SortedSet<K> keySet() {\n SortedSet<K> sortedSet = this.PI;\n if (sortedSet != null) {\n return sortedSet;\n }\n sortedSet = rB();\n this.PI = sortedSet;\n return sortedSet;\n }", "public Set<String> getTags() {\n\t\tSet<String> tags = tagToImg.keySet();\n\t\treturn tags;\n\t}", "public Set<K> keySet() {\n\t\treturn adjLists.keySet();\n\t}", "@Override \n public Set<String> keySet() {\n \n \n // definido um set onde colocar o resultado\n Set<String> r = new HashSet<>();\n \n try {\n \n // abre uma conecção\n conn = Connect.connect();\n \n // abrir um statment com a querie que temos de executar\n PreparedStatement stm = conn.prepareStatement(\"SELECT nomePacote FROM Pacote WHERE visivel=TRUE;\");\n \n \n // o resultado colocado em rs\n ResultSet rs = stm.executeQuery();\n \n while (rs.next()) // enquanto existir o next\n r.add(rs.getString(\"nomePacote\")); \n } catch (SQLException | ClassNotFoundException e) {\n e.printStackTrace();\n } finally {\n Connect.close(conn);\n }\n return r;\n }", "Set<K> keySet();", "public Set<RvtAoiMetadataKey> getTags() {\n return map.keySet();\n }", "@Override\n\tpublic Set<String> keySet() {\n\t\treturn null;\n\t}", "public Set<K> keySet() {\r\n \treturn map.keySet();\r\n }", "Set<String> tags();", "public K[] keySet() {\n MyStack<K> result = new MyStack<>();\n\n for (Object entry : this.table) {\n if (entry != null) {\n Entry<K, V> current = (Entry<K, V>) entry;\n\n while (current.hasNext()) {\n result.push(current.getKey());\n current = current.getNext();\n }\n result.push(current.getKey());\n }\n }\n return result.toArray();\n }", "public Set<Identifier> keySet() {\n return Collections.unmodifiableSet(container.keySet());\n }", "@Override\n public Set<K> keySet() {\n keySet(root);\n return KeySet;\n }", "HSet keySet();", "Set<K> keys();", "@Override\n public Set<K> keySet() {\n if (isEmpty()) return new HashSet<K>();\n return keys(min(), max());\n }", "@Override\n public Set<K> keySet() {\n Set<K> keySet = new HashSet<K>(size());\n for (LinkedList<Entry<K,V>> list : table) {\n for (Entry<K,V> entry : list) {\n if (entry != null) {\n keySet.add(entry.getKey());\n }\n }\n }\n return keySet;\n }", "public Set<E> keySet() {\n\t\treturn null;\r\n\t}", "public Set<K> keySet() {\r\n\t\t\tSet<K> keySet = new HashSet<K>();\r\n\t\t\tListNode current = header;\r\n\t\t\twhile (current != null) {\r\n\t\t\t\tkeySet.add(current.key);\r\n\t\t\t\tcurrent = current.next;\r\n\t\t\t}\r\n\t\t\treturn keySet;\r\n }", "@Override\n public Set<K> keySet() {\n Set<K> ks = new HashSet<>();\n keySetHelper(root, ks);\n return ks;\n// throw new UnsupportedOperationException(\"Unsupported operation, sorry!\");\n }", "@Override\n\tpublic Set<K> keySet() {\n\t\t// TODO\n\t\treturn new KeyView();\n\t}", "Set<String> getKeys();", "@Override\n\tpublic Set<K> keySet() {\n\t\treturn keys;\n\t}", "public Set<K> keySet() {\n\t\treturn new KeySet();\n\t}", "@Override \n public Set<String> keySet() {\n \n \n // definido um set onde colocar o resultado\n Set<String> r = new HashSet<>();\n \n try {\n \n // abre uma conecção\n conn = Connect.connect();\n \n // abrir um statment com a querie que temos de executar\n PreparedStatement stm = conn.prepareStatement(\"SELECT nome FROM Componente WHERE visivel=TRUE;\");\n \n \n // o resultado colocado em rs\n ResultSet rs = stm.executeQuery();\n \n while (rs.next()) // enquanto existir o next\n r.add(rs.getString(\"nome\")); // adiciona o aluno\n } catch (SQLException | ClassNotFoundException e) {\n e.printStackTrace();\n } finally {\n Connect.close(conn);\n }\n return r;\n }", "public Set keySet() {\n\treturn table.keySet();\n }", "public Set<String> keySet() {\r\n return keys.keySet();\r\n }", "@Override\n\tpublic Set<K> keySet() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Set<K> keySet() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Set<K> keySet() {\n\t\treturn null;\n\t}", "public Set keyNames() {\n return new LinkedHashSet<>( asList( idName() ) );\n }", "public Set keySet() {\n return map.keySet();\n }", "public Set<String> keySet() {\n return map.keySet();\n }", "public Set<K> keySet() {\n Set<K> keys = new HashSet<>();\n if (bucket.length != 0) {\n for (int i = 0; i < bucket.length; i++) {\n keys.add(bucket[i].getKey());\n }\n }\n return keys;\n }", "@Override\n public Set<K> keySet() {\n return keys;\n }", "public Set<K> getKeySet() {\n return associationCountMap.keySet();\n }", "public Set<String> keySet() {\n\t\t\treturn new HashSet<String>( mMap.keySet() );\n\t\t}", "public Set<K> keySet() {\n return map.keySet();\n }", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "public ArrayList<K> keySet() {\n\t\t\treturn claves;\n\t\t}", "@NotNull\n @Generated\n @Selector(\"tags\")\n public native NSSet<String> tags();", "@Override\r\n\tpublic Set<K> keySet() {\r\n\t\tSet<K> keySet = new HashSet<K>();\r\n\t\tfor (Object o : buckets) {\r\n\t\t\tBucket b = (Bucket) o;\r\n\t\t\tkeySet.addAll(b.keySet());\r\n\t\t}\r\n\t\treturn keySet;\r\n\t}", "public static synchronized Set<Class<?>> keySet() {\n\t\treturn ClassRegistry.dictionary.keySet();\n\t}", "@Override\n public Set keySet() {\n OmaLista palautettava = new OmaLista();\n\n for (int i = 0; i < this.values.length; i++) {\n if (this.values[i] != null) {\n for (int z = 0; z < this.values[i].size(); z++) {\n palautettava.add(this.values[i].value(z).getKey());\n }\n }\n }\n\n return palautettava;\n }", "@Override\n\tpublic Set<K> keySet() {\n\t\tArrayList<K> claves = new ArrayList<K>();\n\t\tIterator it = tabla.iterator();\n\t\tint i = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tIterator it2 = tabla.get(i).keySet().iterator();\n\t\t\tit.next();\n\t\t\tint j = 0;\n\t\t\twhile (it2.hasNext()) {\n\t\t\t\tit2.next();\n\t\t\t\tclaves.add(tabla.get(i).keySet().get(j));\n\t\t\t\tj++;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn new HashSet<K>(claves);\n\t}", "public List<K> keys();", "public Set<String> keySet() {\n return index.keySet();\n }", "Set<String> getMetadataKeys();", "public Set<String> getClassKeys();", "Set<String> getDictionary();", "public Iterable<Key> keys();", "public Iterable<Key> keys();", "public Set<String> keySet() {\n return this.index.keySet();\n }", "@SuppressWarnings(\"unchecked\")\n public Set<String> keySet() {\n return (Set<String>) (Set<?>) userConfig.keySet();\n }", "@Override\n\t\t\tpublic Set<String> getKeys() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\r\n public Set<K> getKeySet() throws IOException\r\n {\r\n final HashSet<K> keys = new HashSet<>();\r\n\r\n storageLock.readLock().lock();\r\n\r\n try\r\n {\r\n keys.addAll(this.keyHash.keySet());\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n return keys;\r\n }", "private Set<String> getKeys() {\n return bookDB.keySet();\n }", "private ISet<String> getKeySet(IList<String> words) {\n\t\tISet<String> keySet = new ChainedHashSet<String>();\n\t\tfor (String word: words) {\n\t\t\tkeySet.add(word);\n\t\t}\n\t\treturn keySet;\n }", "public Set<String> keySet() {\n return _properties.keySet();\n }", "public Set<String> getTagNames()\r\n\t{\r\n\t\treturn Collections.unmodifiableSet(tagMap.keySet());\r\n\t}", "public Set<String> keySet()\r\n/* 421: */ {\r\n/* 422:584 */ return this.headers.keySet();\r\n/* 423: */ }", "public Set<Pairof<K, V>> keyVals() {\n return this.bst.toSortedList().toset().map(i -> new Pairof<>(i.left, i.right));\n }", "@Override\n\tpublic ArregloDinamico<K> keySet() {\n\t\tArregloDinamico<K> respuesta = new ArregloDinamico<K>(N);\n\t\tfor(int i = 0; i<M ; i++)\n\t\t{\n\t\t\tArregloDinamico<NodoTabla<K,V>> temporal = map.darElemento(i).getAll();\n\t\t\tfor(int j=0 ; j < temporal.size() ; j++)\n\t\t\t{\n\t\t\t\tNodoTabla<K,V> elemento = temporal.darElemento(j);\n\t\t\t\tif(elemento != null && elemento.darLlave() != null)\n\t\t\t\t\trespuesta.addLast(elemento.darLlave());\t\n\t\t\t}\n\t\t}\n\t\treturn respuesta;\n\t}", "@Override\n\tpublic Collection<Key> keys() {\n\t\tCollection<Key> c = new ArrayList<Key>();\n\t\tif (!isEmpty()) {\n\t\t\tFork<Key, Value> f = (Fork<Key,Value>) bst;\n\t\t\tEntry<Key, Value> e = new Entry<>(f.getKey().get(), f.getValue().get());\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tEntry<Key, Value>[] a = (Entry<Key, Value>[]) Array.newInstance(e.getClass(), size());\n\t\t\tbst.saveInOrder(a);\n\t\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\t\tc.add(a[i].getKey());\n\t\t\t}\n\t\t}\n\t\treturn c;\n\t}", "public Iterable<K> keys();", "public List<String> getKeys()\n\t{\n\t\treturn new ArrayList<>(pairs.keySet());\n\t}", "public Vector keys() {\n Vector<K> temp = new Vector<>(3);\n for (int i=0;i<this.count;i++) {\n DictionaryPair p = list.get(i);//(DictionaryPair) data.get(i);\n temp.addLast(p.getKey());\n }\n return temp;\n }", "List<String> getKeys();", "private String tagKey() {\n return tags.values().toString();\n }", "public Set<K> keys() {\n return this.bst.toSortedList().toset().map(i -> i.left);\n }", "public Collection<TapKey> findAllKeys();", "public Iterable<K> keys() {\n Queue<K> q = new Queue<>();\n inOrder(root, q);\n return q;\n }", "public Iterable<Key> Keys()\n\t{\n\t\tQueue<Key> q=new Queue<>();\n\t\tInorder(root,q);\n\t\treturn q;\n\t}", "public HashMap<String, Integer> getTagList() {\n\t\treturn tagList;\n\t}", "java.util.List<com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key> getKeyList();", "@Override\n\tpublic HashSet<K> getAllKeys() {\n\t\treturn null;\n\t}", "public List<NeonKey> getKeys();", "Set<Pairof<K, V>> keyVals();", "public Iterable<Key> keys() {\n Queue<Key> queue = new Queue<Key>();\n for (int i = 0; i < m; i++) {\n for (Key key : st[i].keys())\n queue.enqueue(key);\n }\n return queue;\n }", "public int[] keySet() {\n objectCounter++;\n int[] keys = new int[contents];\n int cnt = 0;\n MapElement me = null;\n\n for (int i = 0; i < capacity; i++) {\n if (map[i] != null) {\n me = map[i];\n while (null != me) {\n keys[cnt++] = me.getKey();\n me = me.getNext();\n }\n }\n }\n return keys;\n }", "public ListVS<T> getKeys() {\n return this.keys.getElements();\n }", "public Iterable<Key> keys() {\n Queue<Key> queue = new Queue<Key>();\n for (Node temp = first; temp != null; temp = temp.next)\n queue.enqueue(temp.key);\n return queue;\n }", "@Override\n\t\t\tpublic Set<PathwayImpl> keySet() {\n\t\t\t\treturn null;\n\t\t\t}", "public List<K> keys()\r\n\t{\r\n\t\tList<K> keys = new ArrayList<K>();\r\n\t\t\r\n\t\tfor(Entry element : data)\r\n\t\t{\r\n\t\t\tkeys.add(element.key);\r\n\t\t}\r\n\t\t\r\n\t\t//keys.sort(new keyComparator()); //not necessarily needed since I know my BST iterator\r\n\t\t\t\t\t\t\t\t\t\t //iterates through in an inOrder fashion.\r\n\t\t\r\n\t\treturn keys;\r\n\t}", "public HashSet<String> getTags(String image) {\n\t\tif (imgToTag.containsKey(image)) {\n\t\t\t//Return a new set so when accessed from another class it cannot be mutated\n\t\t\tHashSet<String> tags = imgToTag.get(image);\n\t\t\treturn tags;\n\t\t}\n\n\t\treturn new HashSet<String>();\n\n\t}", "@Override \n public Set<String> keySet() {\n // definido um set onde colocar o resultado\n Set<String> r = new HashSet<>();\n try {\n // abre uma conecção\n conn = Connect.connect();\n // abrir um statment com a querie que temos de executar\n PreparedStatement stm = conn.prepareStatement(\"SELECT username FROM Administrador WHERE visivel=TRUE;\");\n // o resultado colocado em rs\n ResultSet rs = stm.executeQuery();\n while (rs.next()) // enquanto existir o next\n r.add(rs.getString(\"username\")); // adiciona o aluno\n } catch (SQLException | ClassNotFoundException e) {\n e.printStackTrace();\n } finally {\n Connect.close(conn);\n }\n return r;\n }", "public Set<String> getTags(){return tags;}" ]
[ "0.702658", "0.6822654", "0.6819653", "0.6718297", "0.6691507", "0.66673195", "0.6638939", "0.6635593", "0.6602942", "0.6596301", "0.6582903", "0.65731144", "0.6562959", "0.6550609", "0.6529238", "0.65276635", "0.65176797", "0.65137976", "0.6474495", "0.64715844", "0.64699453", "0.6451933", "0.6449712", "0.64405423", "0.64402485", "0.643911", "0.6438671", "0.64322543", "0.64083976", "0.6407012", "0.640135", "0.63851523", "0.6382189", "0.6375913", "0.6375913", "0.6375913", "0.6374746", "0.6364181", "0.63403416", "0.6335527", "0.6335302", "0.63313824", "0.63167083", "0.6303637", "0.6259406", "0.6259406", "0.6259406", "0.6259406", "0.6259406", "0.6259406", "0.6259406", "0.6259406", "0.6253004", "0.6252004", "0.6197573", "0.6173168", "0.6161701", "0.615643", "0.6134883", "0.61275333", "0.6118042", "0.6110575", "0.6103426", "0.6100607", "0.6100607", "0.6095464", "0.6082033", "0.60790104", "0.6077346", "0.6061951", "0.6061636", "0.6057482", "0.60364527", "0.60353744", "0.6026599", "0.6024601", "0.6006788", "0.5995843", "0.59913003", "0.59823275", "0.59551257", "0.59499544", "0.5946463", "0.594358", "0.5937047", "0.59285253", "0.5920626", "0.5918803", "0.59110665", "0.58919567", "0.58874786", "0.58729285", "0.58711976", "0.58557034", "0.58425534", "0.5835766", "0.5833808", "0.58307683", "0.5824054", "0.5823432" ]
0.8041674
0
returns tag in DPTags for the key(attribute) Example: key = sort > return dp.sort
public String getDPTag(String key) { return tagHash.get(key).toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set getDPTags()\r\n {\n return tagHash.keySet();\r\n }", "abstract String getSortKey();", "private String tagKey() {\n return tags.values().toString();\n }", "String getDirective(String key);", "public Object getDirective(String key);", "public String getTagKey() {\n return tagKey;\n }", "protected String getKeyToCompare(String elementTagName){\n return ElementToObjectMapper.getMapper().getKeyForElement(elementTagName);\n }", "java.lang.String getTag();", "java.lang.String getTag();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "public List<Tag> getTag()\n\t{\n\t\treturn (List<Tag>) this.getKeyValue(\"Tag\");\n\n\t}", "String getTag();", "public TagSequence getBestTag();", "public String getTag();", "List getKeyBy(PaymentTradeExampleExtended example);", "List getKeyBy(PaymentTradeExample example);", "public String getFromTag();", "List<GrpTagKey> selectByExample(GrpTagExample example);", "public String tag(int k) {\n return mTags.get(k);\n }", "public String getSortCondition()\n\t{\n\t\tKey[] karray = new Key[_searchKeyList.size()] ;\n\n\t\t_searchKeyList.copyInto(karray) ;\n\t\tfor (int i = 0; i < karray.length; i++)\n\t\t{\n\t\t\tfor (int j = i; j < karray.length; j++)\n\t\t\t{\n\t\t\t\tif (karray[i].getTableOrder() > karray[j].getTableOrder())\n\t\t\t\t{\n\t\t\t\t\tKey ktmp = karray[i] ;\n\t\t\t\t\tkarray[i] = karray[j] ;\n\t\t\t\t\tkarray[j] = ktmp ;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tStringBuffer stbf = new StringBuffer(256) ;\n\t\tboolean existFlg = false ;\n\n\t\tfor (int i = 0; i < karray.length; i++)\n\t\t{\n\t\t\tif (karray[i].getTableOrder() > 0)\n\t\t\t{\n\t\t\t\tstbf.append(karray[i].getTableColumn()) ;\n\t\t\t\t//#CM708958\n\t\t\t\t// The descending key word is set for the descending order. \n\t\t\t\tif (karray[i].getTableDesc() == false)\n\t\t\t\t{\n\t\t\t\t\tstbf.append(\" DESC\") ;\n\t\t\t\t}\n\t\t\t\tstbf.append(\", \") ;\n\t\t\t\tif (existFlg == false)\n\t\t\t\t\texistFlg = true ;\n\t\t\t}\n\t\t}\n\t\t//#CM708959\n\t\t// Return null when data is not set in the key value. \n\t\tif (existFlg == false)\n\t\t\treturn null ;\n\n\t\t//#CM708960\n\t\t// The last \"\"is removed because it is extra. \n\t\tint ep = stbf.toString().lastIndexOf(\",\") ;\n\t\treturn stbf.toString().substring(0, ep) ;\n\t}", "public List<Pregunta> getPreguntasConTag(TagPregunta tag);", "public Map<String, Object> getTagMap();", "String getDescriptionKey();", "@Override\r\n\tpublic int compareTo(AttributeKey o) {\n\t\treturn key.compareTo(o.getKey());\r\n\t}", "protected Attr[] sortAttributes(NamedNodeMap attrs)\n{\n int len = (attrs != null) ? attrs.getLength() : 0;\n Attr array[] = new Attr[len];\n for (int i = 0; i < len; i++)\n {\n array[i] = (Attr)attrs.item(i);\n }\n for (int i = 0; i < len - 1; i++)\n {\n String name = array[i].getNodeName();\n int index = i;\n for (int j = i + 1; j < len; j++)\n {\n String curName = array[j].getNodeName();\n if (curName.compareTo(name) < 0)\n {\n name = curName;\n index = j;\n }\n }\n if (index != i)\n {\n Attr temp = array[i];\n array[i] = array[index];\n array[index] = temp;\n }\n }\n\n return (array);\n\n}", "Listof<Pairof<K, V>> sortedKeyVals();", "public Tag get(String key) {\n \t\tfor (int i = 0; i < numTags; i++) {\n \t\t\tif (tags[i].key == key)\n \t\t\t\treturn tags[i];\n \t\t}\n \t\treturn null;\n \t}", "public abstract String getTag();", "public void sortAttributes(Comparator<TLAttribute> comparator);", "public List getTags();", "List<JPAAttribute> getKey() throws ODataJPAModelException;", "Object getAttribute(String key);", "Object getAttribute(String key);", "public Object getAttribute(Object key);", "Object getKey();", "UniqueTagList getTags();", "public StringPair[] getSortedFields() {\n return m_classBuilder.getSortedFields();\n }", "java.lang.String getOrderByDataItem();", "public List<String> getCardinalRelationKeywordsPosTags(final Language language) {\n return fetchMultipleValues(\"de.saschafeldmann.adesso.master.thesis.detection.cardinalrelation.keywords.postag.\" + language.toString().toLowerCase());\n }", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "List<Tag> getTagsByKeys(Collection<String> keys);", "GroupQueryBuilder sortAttributeName(String name) throws UnsupportedQueryCriterium;", "public ArrayList<String> getAlphabeticTags() {\n\n\t\tif (m_db == null)\n\t\t\treturn null;\n\n\t\tCursor cursor = m_db.query(TAG_TABLE_NAME,\n\t\t\t\tnew String[] { TAG_FIELD_NAME }, null, null, null, null,\n\t\t\t\tTAG_FIELD_NAME + \" ASC\");\n\n\t\t//\n\t\t// construct array list\n\t\t//\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\t//\n\t\t// process result\n\t\t//\n\t\tcollectResultSet(cursor, list);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// return result list\n\t\t//\n\t\treturn list;\n\t}", "public List<Pregunta> getPreguntasConTag(String tag);", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "private List<String> getTagNames() {\n String query = \"SELECT DISTINCT ?tagName WHERE { ?thing isa:tag [isa:tagName ?tagName; isa:tagDetail ?tagDetail]}\";\n List<Map<String, String>> results = moduleContext.getModel().executeSelectQuery(query);\n List<String> tags = new ArrayList<>();\n results.forEach(solution -> tags.add(solution.get(\"tagName\")));\n return tags;\n }", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "public int tag () { return MyTag; }", "private Collection<IndexedDiskElementDescriptor> createPositionSortedDescriptorList()\r\n {\r\n final List<IndexedDiskElementDescriptor> defragList = new ArrayList<>(keyHash.values());\r\n defragList.sort(Comparator.comparing(ded1 -> ded1.pos));\r\n\r\n return defragList;\r\n }", "public java.util.List<String> getTagKeys() {\n if (tagKeys == null) {\n tagKeys = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();\n tagKeys.setAutoConstruct(true);\n }\n return tagKeys;\n }", "List<Label> findAllByKey(String key);", "int compareTo(DocAttr da);", "List<Tag> findCertificateTags(int id);", "private void printArrElement() {\n\t\tIterator iter = arrTag.keySet().iterator();\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tObject key = iter.next();\r\n\t\t\tTag valores = arrTag.get(key);\r\n\t\t\t//System.out.print(\"key=\" + key + \"\\n\");\r\n\t\t\t//System.out.print(\"\\ttagsPermitidas:\");\r\n\t\t\tHashSet<Tag> tags = valores.getTagsPermitidasDentro();\r\n\t\t\tfor (Tag tag : tags) {\r\n\t\t\t\t//System.out.print(\"'\" + tag.getNome() + \"',\");\r\n\t\t\t}\r\n\t\t\t//System.out.print(\"\\n\");\r\n\t\t}\r\n\t}", "public String getKey(Object d) {\r\n return ((Group) d).key;\r\n }", "private static Map<String, String> getTags(MetricGroup group) {\n\t\tMap<String, String> tags = new HashMap<>();\n\t\tfor (Map.Entry<String, String> variable: group.getAllVariables().entrySet()) {\n\t\t\tString name = variable.getKey();\n\t\t\ttags.put(name.substring(1, name.length() - 1), variable.getValue());\n\t\t}\n\t\treturn tags;\n\t}", "public String name_of_sort()\r\n\t{\r\n\t\treturn \"Merge sort\";\r\n\t}", "public String deriveTag(Component comp) {\n return ((ArrowButton)comp).getDirection();\n }", "public String getKey(DLabel key) {\n return key.getKey();\n }", "public List<ITag> getTags ();", "java.lang.String getTagValue();", "public byte[] tag();", "@AutoEscape\n\tpublic String getTagProperty();", "private SortedSet<String> FillTagList(String tags) {\n \tSortedSet<String> tagset = new TreeSet<String>();\n \tString[] tag_arr = tags.split(\" \");\n \tfor (int i = 0; i < tag_arr.length; i++) {\n \t\ttagset.add(tag_arr[i]);\n \t}\n \ttag_arr = new String[]{};\n \ttag_arr = tagset.toArray(tag_arr);\n\n\t\tm_taglist = new ArrayList < Map<String,String> >();\n\t\tm_taglistmap = new HashMap <String, Integer>();\n\t\tMap<String, String> m;\n\t\tfor (int i = 0; i < tag_arr.length; i++) {\n\t\t\tm = new HashMap<String, String>();\n\t\t\tm.put(\"tag_name\", tag_arr[i]);\n\t\t\tm.put(\"extra_info\", \"\");\n\t\t\tm_taglist.add(m);\n\t\t\tm_taglistmap.put(tag_arr[i],i);\n\t\t}\n\t\t\n\t\tListView lv = ((ListView)findViewById(R.id.ImageTagsList));\n lv.setAdapter(new SimpleAdapter(\n\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\tm_taglist,\n\t\t\t\t\t\t\tR.layout.tags_list_item,\n\t\t\t\t\t\t\tnew String[]{\"tag_name\",\"extra_info\"},\n\t\t\t\t\t\t\tnew int[]{R.id.TagName, R.id.ExtraInfo}));\n \tlv.setTextFilterEnabled(true);\n \tlv.setOnItemClickListener(this);\n \t\n \treturn tagset;\n }", "public void tagOnlyNomorDua() {\r\n Iterator<Kalimat> iterSatu = MarkovCore.TAG_ONLY.iterator();\r\n while (iterSatu.hasNext()) {\r\n Kalimat kalimat = iterSatu.next();\r\n System.out.println(kalimat.getRawKalimat());\r\n System.out.println(kalimat.getBigramProbability(Kalimat.TAG_ONLY));\r\n }\r\n }", "BListKey getKey();", "public String getKey() { \n\t\treturn getKeyElement().getValue();\n\t}", "public static __Tag getTagSub(String tag) {\n\t return map.get(tag);\n\t}", "public static __Tag getTagSub(String tag) {\n\t return map.get(tag);\n\t}", "@DISPID(73)\r\n\t// = 0x49. The runtime will prefer the VTID if present\r\n\t@VTID(78)\r\n\tasci.activebatch.ITags tags();", "@Override\n public int compareTo(AttributeDescription ad) {\n JBAttribute thisAttr = (JBAttribute) this.findAnnotationByType(JBAttribute.class);\n JBAttribute adAttr = (JBAttribute) ad.findAnnotationByType(JBAttribute.class);\n\n XMLJBAttribute thisXmlAttr = (XMLJBAttribute) this.findXmlAnnotationByType(XMLJBAttribute.class);\n XMLJBAttribute adXmlAttr = (XMLJBAttribute) ad.findXmlAnnotationByType(XMLJBAttribute.class);\n\n if(thisAttr == null || adAttr == null) {\n if(thisXmlAttr == null || adXmlAttr == null) {\n return 0;\n }\n else {\n if(thisXmlAttr.getOrder() > adXmlAttr.getOrder()) {\n return 1;\n }\n else if(thisXmlAttr.getOrder() < adXmlAttr.getOrder()) {\n return -1;\n }\n else {\n return 0;\n }\n }\n }\n else {\n if(thisAttr.order() > adAttr.order()) {\n return 1;\n }\n else if(thisAttr.order() < adAttr.order()) {\n return -1;\n }\n else {\n return 0;\n }\n }\n }", "public ArrayList<String> getPopularTags() {\n\n\t\tif (m_db == null)\n\t\t\treturn null;\n\n\t\tCursor cursor = m_db.query(TAG_TABLE_NAME, new String[] {\n\t\t\t\tTAG_FIELD_NAME, TAG_FIELD_USAGE }, null, null, null, null,\n\t\t\t\tTAG_FIELD_USAGE + \" DESC\");\n\n\t\t//\n\t\t// construct array list\n\t\t//\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\t//\n\t\t// collect result\n\t\t//\n\t\tcollectResultSet(cursor, list);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// return result list\n\t\t//\n\t\treturn list;\n\t}", "public List<String> getCardinalRelationAdjectivePosTags(final Language language) {\n return fetchMultipleValues(\"de.saschafeldmann.adesso.master.thesis.detection.cardinalrelation.adjective.postag.\" + language.toString().toLowerCase());\n }" ]
[ "0.63120437", "0.56943625", "0.5545068", "0.5302031", "0.525739", "0.52492267", "0.5240543", "0.5133835", "0.5133835", "0.5120814", "0.5120814", "0.5120814", "0.5120814", "0.5120814", "0.5120814", "0.5120814", "0.5120814", "0.50769705", "0.507357", "0.50684583", "0.506621", "0.50533867", "0.50533545", "0.5037324", "0.49801847", "0.49788034", "0.49576896", "0.49406072", "0.49280724", "0.492189", "0.48992327", "0.48916915", "0.48868892", "0.4845458", "0.4845107", "0.4843021", "0.484274", "0.48253644", "0.48196968", "0.48196968", "0.48170608", "0.48132858", "0.4803654", "0.47892463", "0.47688314", "0.4759545", "0.47537276", "0.47537276", "0.47537276", "0.47537276", "0.47537276", "0.47537276", "0.47537276", "0.47537276", "0.47537276", "0.47537276", "0.47537276", "0.47537276", "0.47537276", "0.475044", "0.47473893", "0.47455284", "0.4734427", "0.47294143", "0.47294143", "0.47294143", "0.47294143", "0.47161037", "0.47147146", "0.47147146", "0.47147146", "0.47147146", "0.47147146", "0.47147146", "0.47110873", "0.47085443", "0.46939275", "0.46911395", "0.46811777", "0.46788597", "0.4677963", "0.4668672", "0.46447352", "0.46432534", "0.46177024", "0.46088678", "0.4605959", "0.45986116", "0.4589341", "0.4579484", "0.4576153", "0.4573619", "0.45695254", "0.45694795", "0.4566895", "0.4566895", "0.4553527", "0.45525303", "0.45496595", "0.45449787" ]
0.68904173
0
Reads pairs of Strings (key=value) from file into tagHash and ads to values Prefix tagPrefix
public void readFile(String fileName) { String key = new String(); String value = new String(); boolean readInfo = false; String out =""; String infoTag = ""; String infoTagContent = ""; try{ System.out.println("Readig file "+fileName+" ..."); BufferedReader filereader = new BufferedReader(new FileReader(fileName)); String line = new String(); line = filereader.readLine(); while(line != null){ infoTag = ""; infoTagContent = ""; if((line.indexOf("=") != -1) && (line.indexOf("#") == -1)) { key = line.substring(0, line.indexOf("=")); value = line.substring(line.indexOf("=")+1); key = key.trim(); value = value.trim(); if(key.equals("PREFIX")){ this.tagPrefix = value; } else { value = tagPrefix+"."+value; tagHash.put(key, value); } readInfo = false; infoHash.put(key, out); out = ""; } if((line.indexOf("#") == 0) && (line.indexOf("@") != -1) && (line.indexOf("=") != -1)) { readInfo = true; infoTag = line.substring(line.indexOf("@"), line.indexOf("=")); infoTag.trim(); infoTagContent = line.substring(line.indexOf("=")+1); if(infoTagContent.trim().length() > 0) infoTagContent = infoTagContent+NL; out = out+infoTag+": "+NL+infoTagContent; }else if((line.indexOf("#") == 0) && readInfo){ // alreadey reading a tagInfo, means NL between entries out = out+line.substring(line.indexOf("#")+1)+NL; } line = filereader.readLine(); } filereader.close(); //System.out.println(tagHash); }catch (Exception e){ System.out.println("Exception in readFile: "+e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Map<String, String> Read_File(XmlPullParser xmlPullParser, List<Tags_To_Read> tags, String account_Name) throws NullPointerException, XML_Reader_Exception;", "public UPOSMapper(String mappingFile){\n map = new ConcurrentHashMap<>();\n try {\n for(String line: Files.readAllLines(Paths.get(mappingFile))){\n line = line.trim();\n if(line.isEmpty()) continue;\n String[] tags = line.split(\"\\t\");\n map.put(tags[0], tags[1]);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void populateDictionary() {\n Scanner scanner = null;\n try {\n scanner = new Scanner(new FileInputStream(filePath));\n while(scanner.hasNextLine()) {\n String word = scanner.nextLine();\n rwDictionary.put(reducedWord(word), word);\n lcDictionary.put(word.toLowerCase(), word);\n }\n } catch(IOException e) {\n System.err.println(e.toString());\n e.printStackTrace();\n } finally {\n if(scanner != null) {\n scanner.close();\n }\n }\n }", "GetPrefix fileContent();", "public void addToDictionary(InputStream f)\r\n throws IOException, FileNotFoundException {\r\n long t = System.currentTimeMillis();\r\n final int bufSize = 1000;\r\n int read;\r\n int numWords = 0;\r\n InputStreamReader fr = null;\r\n try {\r\n fr = new InputStreamReader(f);\r\n char[] buf = new char[bufSize];\r\n while ((read = fr.read(buf)) != -1) {\r\n // TODO modify this split regex to actually be useful\r\n String[] words = new String(buf, 0, read).split(\"\\\\W\");\r\n for (String s : words) {\r\n trie.insert(s);\r\n numWords++;\r\n }\r\n }\r\n } finally {\r\n if (fr != null) {\r\n try {\r\n fr.close();\r\n } catch (IOException e) {\r\n }\r\n }\r\n }\r\n System.out.println(\"Read from file and inserted \" + numWords + \" words into trie in \" +\r\n (System.currentTimeMillis() - t) / 1000.0 + \" seconds.\");\r\n }", "public abstract void readFromFile(String key, String value);", "public static HashMap<String, String> getNamesMap(File uniprotNamesFile) throws IOException {\n\n HashMap<String, String> namesMap = new HashMap<>();\n\n InputStream fileStream = new FileInputStream(uniprotNamesFile);\n InputStream gzipStream = new GZIPInputStream(fileStream);\n Reader decoder = new InputStreamReader(gzipStream, encoding);\n\n char[] separators = {'[', '('};\n\n try (BufferedReader br = new BufferedReader(decoder)) {\n\n String line = br.readLine();\n while ((line = br.readLine()) != null) {\n\n String[] lineSplit = line.split(\"\\t\");\n\n String accession = lineSplit[0];\n String proteinName = lineSplit[1];\n\n int separatorIndex = indexOf(proteinName, separators, 7);\n\n if (separatorIndex > -1) {\n\n proteinName = proteinName.substring(0, separatorIndex - 1);\n\n }\n\n namesMap.put(accession, proteinName);\n }\n }\n\n return namesMap;\n }", "@Override\n\tpublic void load(Reader reader)\n\t{\n\t\tString os = System.getProperty(\"os.name\", \"?\").toLowerCase();\n\t\tif (os.startsWith(\"linux\"))\n\t\t\tos = \"linux\";\n\t\telse if (os.startsWith(\"windows\"))\n\t\t\tos = \"windows\";\n\t\telse if (os.startsWith(\"sun\"))\n\t\t\tos = \"sun\";\n\t\telse if (os.startsWith(\"mac\"))\n\t\t\tos = \"mac\";\n\t\t\n\t\t\n\t\tString line, key, value;\n\t\tint i,j;\n\t\tScanner input = new Scanner(reader);\n\t\twhile (input.hasNext())\n\t\t{\n\t\t\tline = getNextLine(input);\n\t\t\tif (line.length() > 0)\n\t\t\t{\n\t\t\t\twhile (line.endsWith(\" \\\\\") || line.endsWith(\"\\t\\\\\"))\n\t\t\t\t\tline = line.substring(0, line.length()-1) + getNextLine(input);\n\t\t\t\t\n\t\t\t\t// find index of the first occurrence of either '=' or ':'\n\t\t\t\ti=line.indexOf('=');\n\t\t\t\tj=line.indexOf(':');\n\t\t\t\tif (j >= 0 && j < i)\n\t\t\t\t\ti = j;\n\t\t\t\t\n\t\t\t\t// split line into key and value substrings.\n\t\t\t\t// Note: key must have at least one character.\n\t\t\t\tif (i > 0)\n\t\t\t\t{\n\t\t\t\t\tkey = line.substring(0, i).trim();\n\t\t\t\t\t\n\t\t\t\t\tboolean skip = false;\n\t\t\t\t\tfor (String op : new String[] {\"linux\", \"windows\", \"sun\", \"mac\"})\n\t\t\t\t\t{\n\t\t\t\t\t\tif (key.startsWith(\"<\"+op+\">\"))\n\t\t\t\t\t\t{ \n\t\t\t\t\t\t\tif (os.equals(op))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tkey = key.substring((\"<\"+op+\">\").length()).trim();\n\t\t\t\t\t\t\t\tskip = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\tskip = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (skip)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tvalue = line.substring(i+1).trim();\n\t\t\t\t\n\t\t\t\t\t// The following two if statements provide backward compatibility for old GMP property files\n\t\t\t\t\t// that added double '\\' characters in file names and directory names. As soon as all of \n\t\t\t\t\t// our property files no longer contain double backslash characters, we should get rid of this.\n\t\t\t\t\t// if value starts with 4 backslash characters, eg., \\\\\\\\fig2\\\\GMPSys\\\\filename\n\t\t\t\t\t// then replace all double backslashes with single backslashes, eg., \\\\fig2\\GMPSys\\filename\n\t\t\t\t\tif (value.startsWith(\"\\\\\\\\\\\\\\\\\"))\n\t\t\t\t\t{\n\t\t\t\t\t\ti=value.indexOf(\"\\\\\\\\\");\n\t\t\t\t\t\twhile (i >= 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvalue = value.substring(0,i)+value.substring(i+1);\n\t\t\t\t\t\t\ti=value.indexOf(\"\\\\\\\\\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalue = \"\\\\\"+value;\n\t\t\t\t\t}\n\n\t\t\t\t\t// if value starts with a character followed by \":\\\\\", eg., c:\\\\GMPSys\\\\filename\n\t\t\t\t\t// then replace all double backslashes with single backslashes, eg., c:\\GMPSys\\filename\n\t\t\t\t\tif (value.length() >= 4 && value.charAt(1)==':' && value.charAt(2) == '\\\\' && value.charAt(3) == '\\\\')\n\t\t\t\t\t{\n\t\t\t\t\t\ti=value.indexOf(\"\\\\\\\\\");\n\t\t\t\t\t\twhile (i >= 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvalue = value.substring(0,i)+value.substring(i+1);\n\t\t\t\t\t\t\ti=value.indexOf(\"\\\\\\\\\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tsetProperty(key, value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (getProperty(\"includePropertyFile\") != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tFile includeFile = getFile(\"includePropertyFile\");\n\t\t\t\tremove(\"includePropertyFile\");\n\t\t\t\tload(new FileReader(includeFile));\n\t\t\t} \n\t\t\tcatch (PropertiesPlusException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t} \n\t\t\tcatch (FileNotFoundException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t}", "public static Map readingFilesMap(String file) {\n\n Stream<String> lines = null;\n try {\n lines = Files.lines(Paths.get(file));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n /* lines = lines.filter(line -> line.trim().length() > 0)\n .map(line -> line.substring(line.lastIndexOf(\" \")));\n*/\n Map map = lines.collect(Collectors.toMap(\n line -> line.substring(line.lastIndexOf(\" \")),\n line -> line.substring(0, line.lastIndexOf(\" \"))\n ));//.forEach(System.out::print);\n //lines.forEach(Collections.list());\n\n map.forEach((k, v) -> {\n System.out.println(\"key:\"+k+ \" Value=\"+v);\n } );\n return map;\n\n //set.forEach(System.out::print);\n\n\n }", "public static TreeSet<String> makeDictionary(Scanner file1, Scanner file2)\n {\n\tTreeSet<String> dictionary = new TreeSet<String>();\n\tint counter = 0;\n\n\tfile1.useDelimiter(\"[^a-zA-Z0-9']+\");\n\twhile(file1.hasNext())\n\t {\n\t\tdictionary.add(file1.next().toLowerCase());\n\t }\n\n\tfile2.useDelimiter(\"[^a-zA-Z0-9']+\");\n\twhile(file2.hasNext())\n\t {\n\t\tdictionary.add(file2.next().toLowerCase());\n\t }\n\n\treturn dictionary;\n }", "private HashMap<Object, Object> HashMapTransform(List<String> lines) {\n\n HashMap<Object, Object> keypair = new HashMap<>();\n\n for (String line : lines) {\n if (line.contains(pairDelimiter)) {\n String[] intermediate = line.split(pairDelimiter, maxSplitSize);\n keypair.put(intermediate[0], intermediate[1]);\n }\n }\n return keypair;\n }", "private void constructPrefix()\n\t{\n\t\tFile directory = new File(this.rootDirectory);\n\t\tString[] allFiles = directory.list();\n\t\t\n\t\tfor (String file : allFiles)\n\t\t{\n\t\t\t// first, handle the wildcard case. Note that 'prefix' denotes a string not existing in the current files. \n\t\t\t// e.g. existing files {abc, dd}; the following program tries to find {b#, c#, e#, ...}.\n\t\t\tfor (int i = 0; i <= file.length(); i++) // pay attention to the loop condition\n\t\t\t{\n\t\t\t\tString prefix = file.substring(0, i);\n\t\t\t\t\n\t\t\t\tfor (int j = 0; j < this.alphabet.length(); j++)\n\t\t\t\t{\n\t\t\t\t\tString tempPrefix = prefix.substring(0, prefix.length()) + this.alphabet.substring(j, j + 1);\n\t\t\t\t\t\n\t\t\t\t\tif (isPrefix(tempPrefix, allFiles) == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tString prefixKey = tempPrefix + SPECIAL_AFTER;\n\t\t\t\t\t\tbyte[] macValue = generateMAC(prefixKey);\n\t\t\t\t\t\tthis.prefix.put(prefixKey, macValue); // add all prefixes into the prefix set using 'TreeMap'\n\t\t\t\t\t}\t\t\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// second, handle the sub-filename case.\n\t\t\t// e.g. existing files {abc, dd}; the following program tries to find {a@, ab@, d@}.\n\t\t\tfor (int i = 0; i < file.length() - 1; i++)\t//pay attention to the loop condition\n\t\t\t{\n\t\t\t\tString prefix = file.substring(0, i + 1);\n\t\t\t\tif (isExistingFile(prefix, allFiles) == false)\n\t\t\t\t{\n\t\t\t\t\tString prefixKey = prefix + SPECIAL_PREVIOUS;\n\t\t\t\t\tbyte[] macValue = generateMAC(prefixKey);\n\t\t\t\t\tthis.prefix.put(prefixKey, macValue);\t// add all prefixes into the prefix set using 'TreeMap'\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tbyte[] macValue = generateMAC(file);\n\t\t\tthis.existingFile.put(file, macValue); // add all filenames into the existing file set using 'TreeMap'\t\t\t\n\t\t}\n\t}", "public void readPairs(String fileName) {\n BufferedReader r = null;\n try {\n r = new BufferedReader(new InputStreamReader(new FileInputStream(fileName)));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n while (true) {\n String line = null;\n try {\n line = r.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (line == null) {\n break;\n }\n assert line.length() == 11; // indatakoll, om man kör med assertions på\n String start = line.substring(0, 5);\n String goal = line.substring(6, 11);\n\n int s = words.indexOf(start);\n int v = words.indexOf(goal);\n\n shortestPathPairs(s, v);\n }\n\n }", "public void insertFromFile() throws IOException {\n File file = new File(Main.DATA_FILE_PATH);\n Scanner sc = new Scanner(file);\n\n dictionary = new Dictionary();\n TreeMap<String, ArrayList<String>> wordList = new TreeMap<>();\n String target = sc.nextLine().substring(1).trim();\n ArrayList<String> explain = new ArrayList<>();\n while (sc.hasNextLine()) {\n String str = sc.nextLine();\n if (str.indexOf(\"@\") == 0) {\n wordList.put(target, explain);\n target = str.substring(1).trim();\n explain = new ArrayList<>();\n } else if (str.indexOf(\"=\") == 0) {\n str = str.replace(\"+\", \" : \");\n String word = \" = \" + str.substring(1);\n explain.add(word);\n } else if (str.indexOf(\"#\") == 0 || str.indexOf(\"*\") == 0) {\n explain.add(str);\n } else {\n explain.add(\" \" + str);\n }\n }\n dictionary.setWordList(wordList);\n sc.close();\n }", "private void readFiles(File fileDir) {\n \t\n\t\tif(!fileDir.exists() || !fileDir.isDirectory()) {\n\t\t\treturn;\n\t\t}\n\t\tBufferedReader reader = null;\n\t\tString command = \"cat \";\n\t\tFile[] files = fileDir.listFiles();\n\t\tfor(File file : files) {\n\t\t\tcommand += file.getAbsolutePath();\n\t\t\tcommand += \" \";\n\t\t}\n\t\tcommand += \" | sort\";\n\t\tString[] cmd = {\n\t\t\t\t\"sh\",\n\t\t\t\t\"-c\",\n\t\t\t\tcommand\n\t\t\t\t};\n\t\tProcess p;\n\t\ttry {\n\t\t\tp = Runtime.getRuntime().exec(cmd);\n\t\t\treader = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\tString line = null;\n\t\t\tString lastKey = null;\n\t\t\tList<String> values = new ArrayList<String>();\n\t\t\twhile((line = reader.readLine()) != null) {\n\t\t\t\tString[] parts = line.split(\"\\\\t\");\n\t\t\t\tif (parts.length < 2) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tString thisKey = parts[0].trim();\n\t\t\t\tString value = parts[1].trim();\n\t\t\t\thandler.onKVPairRead();\n\t\t\t\tif (lastKey != null && !thisKey.equals(lastKey)) {\n\t\t\t\t\tlines.add(new KVPair(lastKey, new ArrayList<String>(values)));\n\t\t\t\t\tvalues.clear();\n\t\t\t\t}\n\t\t\t\tlastKey = thisKey;\n\t\t\t\tvalues.add(value);\n\t\t\t}\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\treduceComplete = true;\n }", "public void getPairs(String fileName) throws IOException{\r\n BufferedReader br = null;\r\n InputStream in = null;\r\n InputStreamReader s = null;\r\n String text = null;\r\n \r\n in = new FileInputStream(fileName);\r\n s = new InputStreamReader(in);\r\n br = new BufferedReader(s);\r\n StringBuilder sb = new StringBuilder();\r\n String line = null;\r\n \r\n /* ------ parse the .fasta file ------ */\r\n \r\n while((line = br.readLine()) != null){\r\n if(line.charAt(0) != '>')\r\n break;\r\n sb.append(\"\\n\");\r\n sb.append(line);\r\n }\r\n \r\n System.out.printf(\"FASTA description of the first sequence: %s\\n\", sb.toString());\r\n \r\n sb = new StringBuilder().append(line);\r\n \r\n while((line = br.readLine()) != null){\r\n \r\n if(line.charAt(0) != '>')\r\n sb = sb.append(line);\r\n else\r\n break;\r\n }\r\n\r\n first = sb.toString();\r\n \r\n System.out.printf(\"first sequence: %s\\n\", first);\r\n \r\n sb = new StringBuilder().append(line);\r\n \r\n while((line = br.readLine()) != null){\r\n if(line.charAt(0) != '>')\r\n break;\r\n sb.append(\"\\n\");\r\n sb.append(line);\r\n }\r\n \r\n System.out.printf(\"FASTA description of the second sequence: \\n%s\\n\", sb.toString());\r\n \r\n sb = new StringBuilder().append(line);\r\n \r\n while((line = br.readLine()) != null)\r\n sb = sb.append(line);\r\n\r\n second = sb.toString();\r\n \r\n System.out.printf(\"second sequence: %s\\n\", second);\r\n \r\n \r\n /* ---------------------------------- */\r\n }", "private void load(Path fileName) throws IOException {\n try(BufferedReader reader = Files.newBufferedReader(fileName)) {\n String line = \"\";\n\n // Matches lines with the format:\n // key=value\n // where the key is any sequence of lowercase letters. (a to z)\n // where value may be any letters from a to z (case insensitive) 0 to 9 or the letters '-' and '.'.\n Pattern validLine = Pattern.compile(\"^(?<key>[a-z]+)=(?<value>[a-zA-Z0-9-.]+)$\");\n\n // Read the file line by line\n while((line = reader.readLine()) != null) {\n if(line.startsWith(\";\")) { // Ignore lines that start with ;\n continue;\n }\n\n // Remove any whitespace\n line = line.trim();\n\n // Continue if our line is empty\n if(\"\".equals(line)) {\n continue;\n }\n\n Matcher matcher = validLine.matcher(line);\n\n if(!matcher.matches() || matcher.groupCount() != 2) {\n System.err.println(\"Unable to parse line: \" + line);\n continue;\n }\n\n String key = matcher.group(\"key\");\n String value = matcher.group(\"value\");\n\n map.put(key, value);\n }\n }\n }", "Map <String, List <String> > parse (List <String> keys, List <String> lines);", "private void createDictionary() throws IOException {\r\n long start = System.currentTimeMillis();\r\n\r\n dict = new PrefixTree(); //new prefix\r\n BufferedReader reader = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(\"/dictionary.csv\"))); //read the file\r\n\r\n String line;\r\n while ((line = reader.readLine()) != null) {\r\n //System.out.println(line);\r\n addToRoot(line); //for each line add it in dictionary\r\n }\r\n\r\n System.out.println(\"Time took for making Dictionary : \" + (System.currentTimeMillis() - start) + \" ms\");\r\n }", "public TreeDictionary(String filename) {\n\t\tString entry;\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(filename));\n\t\t\twhile((entry=in.readLine())!=null){\n\t\t\t\tif(MapDictionary.isValidWord(entry)){\n\t\t\t\t\tString signature = wordToSignature(entry.toLowerCase());\n\t\t\t\t\tinsert(entry, signature);\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\tin.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"File not found\");\n\t\t}\n\t}", "public static void readFileToMap(Map<String, List<Integer>> hashMap, String path, int numFiles, int thisFileNum){\n try{\n FileReader file = new FileReader(path);\n BufferedReader textFile = new BufferedReader(file);\n\n String fileLine = \"\";\n String[] wordsInLine;\n List<Integer> occurences;\n List<Integer> temp;\n\n while((fileLine = textFile.readLine()) != null){\n wordsInLine = fileLine.split(\" \");\n cleanLine(wordsInLine);\n //add them to map\n for(String word : wordsInLine){\n\n if(word.length() > Table.maxWordLength){ //keeps track of the longest character\n Table.setMaxWordLength(word.length());\n }\n\n if(!hashMap.containsKey(word)){\n occurences = new ArrayList<>(); //creating a new value makes it so that one change wont affect every HashMap element\n occurences = setZerosList(numFiles);\n occurences.set(thisFileNum, 1);\n hashMap.put(word, occurences);\n }\n else{\n temp = hashMap.get(word); //this code makes a new list, and increments the word appearance by 1\n temp.set(thisFileNum, temp.get(thisFileNum)+1);\n hashMap.put(word, temp );\n }\n }\n }\n }\n catch (Exception e){\n //e.printStackTrace();\n return;\n }\n }", "public void restoreFromFile(String fileName) throws KVException {\n this.resetStore();\n \n File f = new File(fileName);\n\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder docBuilder;\n\t\ttry {\n\t\t\tdocBuilder = docFactory.newDocumentBuilder();\n\t\t} catch (ParserConfigurationException e1) {\n\t\t\tKVMessage exceptionMessage = new KVMessage(\"resp\", \"Unknown Error: Parser Configuration Exception\");\n\t\t\tKVException exception = new KVException(exceptionMessage);\n\t\t\tthrow exception;\n\t\t}\n\t\tDocument doc;\n\t\ttry {\n\t\t\tdoc = docBuilder.parse(f);\n\t\t} catch (SAXException e1) {\n\t\t\tKVMessage exceptionMessage = new KVMessage(\"resp\", \"Unknown Error: SAX Exception\");\n\t\t\tKVException exception = new KVException(exceptionMessage);\n\t\t\tthrow exception;\n\t\t} catch (IOException e1) {\n\t\t\tKVMessage exceptionMessage = new KVMessage(\"resp\", \"IO Error\");\n\t\t\tKVException exception = new KVException(exceptionMessage);\n\t\t\tthrow exception;\n\t\t}\n\t\tdoc.getDocumentElement().normalize();\n\t\t\n\t\tNodeList nList = doc.getElementsByTagName(\"KVPair\");\n\t\t\n\t\tfor (int i = 0; i < nList.getLength(); i++) {\n\t\t\tNode curNode = nList.item(i);\n\t\t\t\n\t\t\tif (curNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\tElement e = (Element) curNode;\n\t\t\t\tString key = e.getElementsByTagName(\"Key\").item(0).getTextContent();\n\t\t\t\tString val = e.getElementsByTagName(\"Value\").item(0).getTextContent();\n\t\t\t\tstore.put(key, val);\n\t\t\t}\n\t\t}\n }", "public static void loadFileHash(String path) throws IOException{\n\t\t\n\t\tHashMap<String, List<String>> map = new HashMap<String, List<String>>();\n BufferedReader in = new BufferedReader(new FileReader(path));\n String line = \"\";\n while ((line = in.readLine()) != null) {\n String parts[] = line.split(\":\");\n List<String> docIdLen = new ArrayList<String>();\n docIdLen.add(parts[1]);\n docIdLen.add(parts[2]);\n map.put(parts[0], docIdLen);\n }\n in.close();\n \n printDocHash(map);\n\t}", "private void readKeyDataToIdentifyTransactions(){\n\t\t\n\t\tBufferedReader reader = null;\n\t\t\n\t\ttry{\n\t\t\treader = new BufferedReader(new FileReader(keyFile));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tif((line.startsWith(\"#\")) || (line.equals(\"\")))\n\t\t\t\t\tcontinue;\n\t\t\t\telse{\n\t\t\t\t\tString transacName = line.split(\";\")[0];\n\t\t\t\t\tchar transacType = line.split(\";\")[1].charAt(0);\n\t\t\t\t\ttypeTransData.put(transacName,transacType);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Sorry!! \"+ keyFile +\" required for processing!!!\");\n\t\t\tSystem.out.println(\"Please try again !!!\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t}", "public static HashMap readVF(String mapF) throws IOException{\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(new FileInputStream(mapF)));\n\t\tString line = input.readLine();//pair\n\t\tHashMap map = new HashMap();\n\t\twhile(line!=null){\n\t\t\tString vector = input.readLine();\n\t\t\tmap.put(line.substring(1), vector);\n\t\t\tline = input.readLine();\n\t\t}\n\t\tinput.close();\n\t\treturn map;\n\t}", "private void fileToPoSTags(String filePath,int version){\n Log.log(\"Reading TreeBank file <\" + filePath +\">\");\n\n FileReader fr = null;\n BufferedReader br = null;\n\n try{\n fr = new FileReader(filePath);\n br = new BufferedReader(fr);\n\n String currentLine;\n String[] columns;\n\n Tag tag1 = null;\n Tag tag2;\n String word;\n\n Integer numRow;\n while((currentLine = br.readLine()) != null){\n columns = currentLine.split(\"\\t\");\n numRow = getIntegerString(columns[0]);\n if(numRow != null && numRow >= 1){\n if(numRow == 1) {\n tag1 = Tag.valueOf(\"START\");\n saveTag(tag1);\n }\n try{\n tag2 = Tag.valueOf(columns[3]);\n saveTag(tag2);\n word = columns[1];\n switch (version){\n case 1:\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n break;\n case 2:\n if(!tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n else if(Character.isUpperCase(word.charAt(0)))\n savePoSTag(new PoSTag(word,tag2));\n break;\n case 3:\n\n if(tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word,tag2));\n else{\n if(Character.isUpperCase(word.charAt(0))){\n savePoSTag(new PoSTag(word,tag2));\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n }else{\n savePoSTag(new PoSTag(word,tag2));\n savePoSTag(new PoSTag(\n word.substring(0,1).toUpperCase()\n +word.substring(1),tag2));\n }\n\n }\n\n break;\n case 4:\n\n if(!tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word,tag2));\n savePoSTag(new PoSTag(word,tag2));\n break;\n case 5:\n\n if(!tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n savePoSTag(new PoSTag(word,tag2));\n break;\n\n }\n saveBigram(new BiGram(tag1,tag2));\n tag1 = tag2;\n }catch (IllegalArgumentException e){\n e.printStackTrace();\n }\n }\n }\n\n }catch (IOException e){\n e.printStackTrace();\n }finally {\n UtilitiesIO.closeFile(fr,br);\n }\n }", "public void createIDMap()\n {\n IDMap = new HashMap<>();\n idFile.open(\"idpassword.txt\");\n String line = idFile.getNextLine();\n\n\n\n while(line!=null) {\n String[] fields = line.split(\",\");\n IDMap.put(fields[0], fields[1]);\n\n line = idFile.getNextLine();\n\n }\n\n }", "public static void loadTargetTerm2IdMapping(File input) throws IOException {\n\t\t\tm_namesMap = new SimpleBidirectionalMap<String, Integer>();\n\t\t\tString encoding = FileUtils.getFileEncoding(input);\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(input), encoding));\n\t\t\tString line = reader.readLine();\n\t\t\tint lineNum = 1;\n\t\t\tboolean testFormat = false;\n\t\t\tif(StringUtils.checkIfNumber(line.split(\"\\t\")[0]))\n\t\t\t\ttestFormat = true;\n\t\t\twhile(line!= null) {\n\t\t\t\tif(line.equals(\"@@@\"))\n\t\t\t\t\tbreak;\n\t\t\t\tif(testFormat) {\n\t\t\t\t\tString num = line.split(\"\\t\")[0];\n\t\t\t\t\tSystem.out.println(\"key: \"+line.trim().substring(num.length()+1) + \" value: \" + Integer.parseInt(num));\n\t\t\t\t\tm_namesMap.put(line.trim().substring(num.length()+1), Integer.parseInt(num));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"key????\" + lineNum + \"instead of \" + line.split(\"\\t\")[0]);\n\t\t\t\t\tm_namesMap.put(line.trim(), lineNum);\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t\tlineNum ++;\n\t\t\t}\n\t\t}", "public static void addtoHashMap (File filename){\n\t\tFileInputStream fin;\n\t\ttry{\n\t\t\tfin = new FileInputStream(filename);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(fin));\n\t\t\tString n;\n\t\t\ttry{\n\t\t\t\twhile ((n = br.readLine()) != null){\n\t\t\t\t\tif(h.containsKey(n)){\n\t\t\t\t\t\tint i = (Integer) h.get(n);\n\t\t\t\t\t\th.put(n, (i+1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\th.put(n, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}catch(FileNotFoundException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void populateDictionary() throws IOException {\n\t\tScanner scan = new Scanner(new File(\"dictionary.txt\"));\n\t\twhile(scan.hasNextLine()) {\n\t\t\tString curr = scan.nextLine().toLowerCase();\n\t\t\tthis.dictionary.add(curr);\n\t\t}\n\t}", "public HashMap<String, String> convertToString() throws IOException\n\t{\n\t HashMap<String, String> map = new HashMap<String, String>();\n\n\t String line;\n\t BufferedReader reader;\n\t String multiple_line=null;\n\t\ttry {\n\t\t\treader = new BufferedReader(new FileReader(filePath));\n\t\t\t\n\t\t\twhile ((line = reader.readLine()) != null)\n\t\t {\n\t\t String[] parts = (line.replaceAll(\"\\\"\", \"\").split(\"=\", 2)); //tolto replaceAll\n\t\t if (parts.length >= 2)\n\t\t {\n\t\t String key = parts[0];\n\t\t multiple_line=key;\n\t\t String value = parts[1];\n\t\t map.put(key, value);\n\t\t } else {\n\t\t \n\t\t String line2=map.get(multiple_line);\n\t\t map.put(multiple_line, line2+\"\\n\"+line);\n\t\t }\n\t\t }\n\t\t\t\n\t\t\t//for (String key : map.keySet())\n\t\t //{\n\t\t // System.out.println(key + \":\" + map.get(key));\n\t\t // }\n\t\t reader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t \n\t \n\t return map;\n\t}", "public void initialilzeMapEntry(String file){\n\t\tmap.put(file, new LinkedList<HashMap<Integer, Integer>>());\n\t}", "void read(String prefix, Map<String, Object> parameters);", "private static HashMap<String, String> getUsers(String filename) {\n\t\t// Use hashmap to store the user list, the key is user name and the value is UUID\n\t\tHashMap<String, String> mapUsers = new HashMap<String, String>();\n\t\t// This will reference one line at a time\n\t\tString lineUser = null;\n\n\t\ttry {\n\t\t\t// Check file exists\n\t\t\tFile userfile = new File(filename);\n\t\t\tif(!userfile.exists() || userfile.isDirectory()) {\n\t\t\t\treturn mapUsers;\n\t\t\t}\n\t\t\t// Open the user file\n\t\t\tFileReader fileReader = new FileReader(filename);\n\t\t\t// User bufferedReader to go through the file\n\t\t\tBufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t\t\t// Read the file in lines one by one\n\t\t\twhile((lineUser = bufferedReader.readLine()) != null) {\n\t\t\t\tString[] namekey = lineUser.split(\" \"); // Split the name and key\n\t\t\t\tif (namekey.length != 2) { // Validate the data\n\t\t\t\t\tSystem.out.println(\"Invalid line: '\" + lineUser + \"' in '\" + filename + \"'\");\n\t\t\t\t\treturn mapUsers;\n\t\t\t\t}\n\t\t\t\t// Name + Key(UUID)\n\t\t\t\tmapUsers.put(namekey[0], namekey[1]);\n\t\t\t}\n\t\t\t// Always close files.\n\t\t\tbufferedReader.close();\n\t\t}\n\t\tcatch(FileNotFoundException ex) {\n\t\t\tSystem.out.println(\"Unable to open file '\" + filename + \"'\");\n\t\t}\n\t\tcatch(IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\treturn mapUsers;\n\t\t}\n\t}", "private void processFileEntries(final File filePath, Map<String, Integer> bigramHistogramMap) {\n\n BufferedInputStream bis = null;\n FileInputStream fis = null;\n\n try {\n\n // create FileInputStream object\n fis = new FileInputStream(filePath);\n\n // create object of BufferedInputStream\n bis = new BufferedInputStream(fis);\n\n String stringLine;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(bis));\n\n String previousWord = \"\";\n\n while ((stringLine = br.readLine()) != null) {\n previousWord = addBigramHistogramEntry(stringLine, previousWord, bigramHistogramMap);\n }\n\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found - \" + e);\n } catch (IOException ioe) {\n System.out.println(\"Exception while reading file - \" + ioe);\n } catch (Exception e) {\n System.out.println(\"Unable to load: \" + filePath.getName());\n } finally {\n // close the streams using close method\n try {\n if (fis != null) {\n fis.close();\n }\n if (bis != null) {\n bis.close();\n }\n } catch (IOException ioe) {\n System.out.println(\"Error while closing stream : \" + ioe);\n }\n }\n }", "private void setProperlyOrderedPrefixNamePairs(String[] prefixMatchArray){\n prefixMatchArray[0] = repositoryWithDualKeyNCategory.isKey2(prefixMatchArray[0]) ? repositoryWithDualKeyNCategory.getKey1FromKey2(prefixMatchArray[0]) : prefixMatchArray[0];\n prefixMatchArray[1] = repositoryWithDualKeyNCategory.isKey2(prefixMatchArray[0]) ? prefixMatchArray[0] : repositoryWithDualKeyNCategory.getKey2FromKey1(prefixMatchArray[0]);\n }", "public MapDictionary(String filename) {\n\t\ttry {\n\t\t\tScanner scan = new Scanner(new File(filename));\n\t\t\t\n\t\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\t\tString word = scan.nextLine().toLowerCase();\n\t\t\t\t\tString signature = PredictivePrototype.wordToSignature(word);\n\t\t\t\t\tSet <String> wordsSet = new HashSet<String>();\n\t\t\t\t\tif(PredictivePrototype.isValid(signature)==true && word.length() == signature.length()) {\n\t\t\t\t\t\twordsSet.add(word);\n\t\t\t\t\t\tif(dictionary.containsKey(signature)) {\n\t\t\t\t\t\t\tdictionary.get(signature).add(word);\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tdictionary.put(signature, wordsSet);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tscan.close();\n\t\t\t\t\n\t\t} catch(IOException e){\n\t\t\tSystem.out.println(\"File not found\");\n\t\t}\n\t}", "public static Map<String, Integer> getStartingPositions(File file)\n\t\t\tthrows IOException, FileNotFoundException {\n\t\tMap<String, Integer> startPositions = new HashMap<String, Integer>();\n\t\ttry {\n\t\t\tString line;\n\t\t\tBufferedReader in;\n\t\t\tString extension = PdbHelper.getFileExtension(file);\n\t\t\tif (extension.equals(\"gz\")) {\n\t\t\t\tin = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tnew GZIPInputStream(new FileInputStream(file))));\n\t\t\t} else {\n\t\t\t\tin = new BufferedReader(new FileReader(file));\n\t\t\t}\n\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tif (line.startsWith(\"DBREF \") || line.startsWith(\"DBREF1\")) {\n\t\t\t\t\tString chainLabel = line.substring(13 - 1, 13);\n\t\t\t\t\tint seqBegin = Integer.parseInt(line.substring(15 - 1, 18)\n\t\t\t\t\t\t\t.trim());\n\t\t\t\t\tstartPositions.put(chainLabel, seqBegin);\n\t\t\t\t\tif (line.startsWith(\"SEQADV \")) {\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\tin.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn startPositions;\n\t}", "public HashMap readFile(String filePath, HashMap source){\n\t\tArrayList<String> temp1 = new ArrayList<String>();\n\t\tArrayList<String> temp2 = new ArrayList<String>();\n\t\tBufferedReader br = null;\n\t\t\n\t\ttry {\n\t\t\tString sCurrentLine;\n\t\t\t\n\t\t\t// \"Users/Jasmine/Documents/Eclipse/CacheDictionary/src/english.txt\"\n\t\t\tbr = new BufferedReader(new FileReader(filePath)); \n\t\t\t\n\t\t\t//str.matches(\".*\\\\d+.*\"); ==> string that contains numbers\n\t\t\t//.matches(\"[a-zA-Z]+\"); ==> string that only contains letter\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * if the source file itself is not one word per line, we need to split the string\n\t\t\t\t * only letter(not single) will be stored in the array\n\t\t\t\t */\n\t\t\t\t//\n\t\t\t\tif(sCurrentLine.matches(\".*([ \\t]).*\")){ //check if the current line is a single word or not\n\t\t\t\t\ttemp1.add(sCurrentLine);\n\t\t\t\t}\n\t\t\t\telse if(sCurrentLine.matches(\"[a-zA-Z]+\") && sCurrentLine.length()>1){\n\t\t\t\t\ttemp2.add(sCurrentLine);\n\t\t\t\t}\n\t\t\t}// end of while loop\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null)br.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tif(!temp1.isEmpty()){\n\t\t\tfor(int i = 0; i< temp1.size(); i++){\n\t\t\t\tString thisLine[] = temp1.get(i).split(\" \");\n\t\t\t\t//for each word in this line\n\t\t\t\tfor(int j = 0; j < thisLine.length; j++){\n\t\t\t\t\t//if it is a valid word\n\t\t\t\t\tif(thisLine[j].matches(\"[a-zA-Z]+\") && thisLine[j].length()>1 ){\n\t\t\t\t\t\tif( source.get(thisLine[j]) == null){\n\t\t\t\t\t\t\tsource.put(thisLine[j].toLowerCase(),thisLine[j].toLowerCase());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t} // end of if current word i valid\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t} // end of temp1\n\t\t\n\t\tif(!temp2.isEmpty()){\n\t\t\tfor(int i = 0; i< temp2.size(); i++){\n\t\t\t\tif(temp2.get(i).matches(\"[a-zA-Z]+\") && temp2.get(i).length()>1){\n\t\t\t\t\tif(source.get(temp2.get(i)) == null){\n\t\t\t\t\t\tsource.put(temp2.get(i).toLowerCase(),temp2.get(i).toLowerCase());\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t} \n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn source;\n\t}", "@Override\n public void load(String keyWord, String fileName){\n FileReader loadDetails;\n String record;\n try{\n loadDetails=new FileReader(fileName);\n BufferedReader bin=new BufferedReader(loadDetails);\n while (((record=bin.readLine()) != null)){\n if ((record).contentEquals(keyWord)){\n setUsername(record);\n setPassword(bin.readLine());\n setFirstname(bin.readLine());\n setLastname(bin.readLine());\n setDoB((Date)DMY.parse(bin.readLine()));\n setContactNumber(bin.readLine());\n setEmail(bin.readLine());\n setSalary(Float.valueOf(bin.readLine()));\n setPositionStatus(bin.readLine());\n homeAddress.load(bin);\n }//end if\n }//end while\n bin.close();\n }//end try\n catch (IOException ioe){}//end catch\n catch (ParseException ex) {\n Logger.getLogger(Product.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n\tpublic Multimap<String, List<String>> fileRecordsIntoMap(List<String> list) {\n\t\tMultimap<String, List<String>> multimap = ArrayListMultimap.create();\n\t\tCollections.sort(list);\n\t\tfor(String key :list)\n\t\t{\n\t\t\tkey=key.trim().toLowerCase();\n\t\t\tif(!key.isEmpty())\n\t\t\t{\n\t\t\t\tspaceRemover(key);\n\t\t\t\tString withoutSort=key;\n\t\t\t\tkey=sortString(key);\n\t\t\t\tmultimap = putIntoMAP(key , withoutSort, multimap);\n\t\t\t}\n\t\t}\n\t\treturn multimap;\n\t}", "private static void fillDataMapFromFrequencyFile(File frequencyFile, HashMap<String, Long> dataMap) throws IOException {\n\n\t\tfinal BufferedReader frequencyReader = new BufferedReader(new FileReader(frequencyFile));\n\n\t\tList<String> lines = frequencyReader.lines()\n\t\t\t\t.collect(Collectors.toList());\n\n\t\tfrequencyReader.close();\n\n\t\tfor(int i = 0, size = lines.size(); i < size; i++) { // Split each line at the delimiter, into word & frequency - put them in the data map\n\n\t\t\tfinal String[] dataSplit = lines.get(i).split(WORD_FREQUENCY_DELIMITER);\n\t\t\tfinal String word = dataSplit[0];\n\t\t\tfinal long frequency = Long.parseLong(dataSplit[1]);\n\n\t\t\tdataMap.put(word, frequency);\n\t\t}\n\t}", "private void readPhrases() {\n\t\tphrases = new HashMap<String, String>();\n\t\tcounter = new HashMap<String, Integer>();\n\n\t\tBufferedReader br = null;\n\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(input));\n\t\t\tfor (String line; (line = br.readLine()) != null;) {\n\t\t\t\tStringTokenizer tokenizer = new StringTokenizer(line, \"|\");\n\n\t\t\t\twhile (tokenizer.hasMoreTokens()) {\n\t\t\t\t\tString phrase = tokenizer.nextToken();\n\t\t\t\t\tString key = StringUtils.getMd5Hash(phrase);\n\n\t\t\t\t\tif (phrases.containsKey(key)) {\n\t\t\t\t\t\tint count = counter.get(key);\n\t\t\t\t\t\tcounter.put(key, ++count);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tphrases.put(key, phrase);\n\t\t\t\t\t\tcounter.put(key, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalAccessError(\"Error reading input [\"\n\t\t\t\t\t+ input.getName() + \"]\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tbr.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t}\n\t\t}\n\n\t}", "public static HashMap<String,String> topics(){\n HashMap<String,String> temp = new HashMap<String,String>();\n Scanner topicer;\n try {\n topicer = new Scanner(new File(\"Topics.txt\"));\n topicer.useDelimiter(\",~ *\\n*\");\n while (topicer.hasNext()){\n String key = \" \"+topicer.next()+\" \";\n String value = \"\";\n if(topicer.hasNext())\n value = topicer.next();\n temp.put(key, value);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return temp;\n }", "private void updateIndexMap(String file) {\n\t\ttry (Scanner s = new Scanner(new File(file))) {\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tString word = TextParserUtil.cleanWord(s.next());\n\t\t\t\tString partition = word.substring(0, 1);\n\t\t\t\tif (indexedDir.get(partition) == null) {\n\t\t\t\t\tinsertPartitionEntry(file, word, partition);\n\t\t\t\t} else if (indexedDir.get(partition).get(word) == null) {\n\t\t\t\t\tinsertWordEntry(file, word, partition);\n\t\t\t\t} else if (indexedDir.get(partition).get(word) != null) {\n\t\t\t\t\tupdateFileList(file, word, partition);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "private void parseFile(String fileName) {\n Set<String> inputs = new HashSet<String>();\n Set<String> outputs = new HashSet<String>();\n double[] qos = new double[4];\n\n Properties p = new Properties(inputs, outputs, qos);\n\n try {\n Scanner scan = new Scanner(new File(fileName));\n while(scan.hasNext()) {\n\t\t\t\tString name = scan.next();\n\t\t\t\tString inputBlock = scan.next();\n\t\t\t\tString outputBlock = scan.next();\n\n\t\t\t\tqos[TIME] = scan.nextDouble();\n\t\t\t\tqos[COST] = scan.nextDouble();\n\t\t\t\tqos[AVAILABILITY] = scan.nextDouble()/100;\n\t\t\t\tqos[RELIABILITY] = scan.nextDouble()/100;\n\t\t\t\t// Throw the other two away;\n\t\t\t\tscan.nextDouble();\n\t\t\t\tscan.nextDouble();\n\n\t\t\t\tfor (String s :inputBlock.split(\",\"))\n\t\t\t\t\tinputs.add(s);\n\t\t\t\tfor (String s :outputBlock.split(\",\"))\n\t\t\t\toutputs.add(s);\n\n p = new Properties(inputs, outputs, qos);\n\n ServiceNode ws = new ServiceNode(name, p);\n serviceMap.put(name, ws);\n inputs = new HashSet<String>();\n outputs = new HashSet<String>();\n qos = new double[4];\n }\n scan.close();\n }\n catch(IOException ioe) {\n System.out.println(\"File parsing failed...\");\n }\n\t\tnumServices = serviceMap.size();\n }", "public Map<String, List<Set<Integer>>> readMappingsFromFile(String fname)\n\t\t\tthrows IOException {\n\t\tMap<String, List<Set<Integer>>> mappings = new HashMap<String, List<Set<Integer>>>();\n\n\t\tBufferedReader br = null;\n\n\t\tif (fname != null) {\n\t\t\tInputStream st = getClass().getResourceAsStream(fname);\n\t\t\tif (st != null) {\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(st));\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"Could not find \" + fname + \" in classpath\");\n\t\t\t}\n\t\t}\n\t\tString line = null;\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tString colsplit[] = line.split(\":\");\n\t\t\tString prefix = colsplit[0];\n\t\t\tString integers[] = colsplit[1].split(\"[, ]+\");\n\n\t\t\tList<Set<Integer>> mapping = null;\n\t\t\tif (!mappings.containsKey(prefix)) {\n\t\t\t\tmapping = new ArrayList<Set<Integer>>();\n\t\t\t\tmappings.put(prefix, mapping);\n\t\t\t}\n\t\t\tmapping = mappings.get(prefix);\n\n\t\t\tSet<Integer> given_mapping = new HashSet<Integer>();\n\t\t\tfor (String Int : integers) {\n\t\t\t\tif (Int.length() > 0) {\n\t\t\t\t\tgiven_mapping.add(Integer.parseInt(Int));\n\t\t\t\t}\n\t\t\t}\n\t\t\tmapping.add(given_mapping);\n\t\t\tmappings.put(prefix, mapping);\n\t\t}\n\t\tbr.close();\n\n\t\treturn mappings;\n\t}", "private void readAffixFile(InputStream affixStream, CharsetDecoder decoder) throws IOException {\n prefixes = new CharArrayMap<List<HunspellAffix>>(version, 8, ignoreCase);\n suffixes = new CharArrayMap<List<HunspellAffix>>(version, 8, ignoreCase);\n \n BufferedReader reader = new BufferedReader(new InputStreamReader(affixStream, decoder));\n String line = null;\n while ((line = reader.readLine()) != null) {\n if (line.startsWith(ALIAS_KEY)) {\n parseAlias(line);\n } else if (line.startsWith(PREFIX_KEY)) {\n parseAffix(prefixes, line, reader, PREFIX_CONDITION_REGEX_PATTERN);\n } else if (line.startsWith(SUFFIX_KEY)) {\n parseAffix(suffixes, line, reader, SUFFIX_CONDITION_REGEX_PATTERN);\n } else if (line.startsWith(FLAG_KEY)) {\n // Assume that the FLAG line comes before any prefix or suffixes\n // Store the strategy so it can be used when parsing the dic file\n flagParsingStrategy = getFlagParsingStrategy(line);\n }\n }\n }", "public static Map<String, String> parse(File file) throws IOException {\n List<String> configs = Files.readAllLines(file.toPath());\n return configs.stream()\n .map(it -> it.split(\"\\t\"))\n .collect(toMap(splitted -> splitted[0], splitted -> splitted[1]));\n }", "private void setUrlPrefixMappingToMap(String[] prefixArr)\n\t{\n\t\tif( prefixArr != null )\n\t\t{\n\t\t\tfor(String urlPrefix : prefixArr)\n \t{ \n\t\t\t\tif(urlPrefix.contains(DELIMITER))\n\t\t\t\t{\n\t \t\tString[] keyVal = urlPrefix.split(\"::\");\n\t \t\tString key \t\t= keyVal[0];\n\t \t\tString value \t= keyVal[1].trim();\n\t \t\tlog.info(\"REST SERVICE Key------->>> \"+key);\n\t \t\tlog.info(\"REST SERVICE Value------->>> \"+value);\n\t \t\tappurlMap.put(key , value);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlog.warn(\"NO DELEMETERS PROVIDED FOR REDIRECT SERVICE URL -------->>> \");\n\t\t\t\t}\n \t}\n\t\t}\n\t}", "public void processFile(File rootFile) throws IOException {\n\t\tBufferedReader bf=new BufferedReader(new FileReader(rootFile));\r\n\t\tString lineTxt = null;\r\n\t\tint pos=1;\r\n\t\twhile((lineTxt = bf.readLine()) != null){\r\n String[] line=lineTxt.split(\" \");\r\n// System.out.println(line[0]);\r\n String hscode=line[0];\r\n \r\n \r\n TreeMap<String,Integer> word=null;\r\n if(!map.containsKey(hscode)){\r\n word=new TreeMap<String,Integer>();\r\n for(int i=1;i<line.length;i++){\r\n \tString key=line[i];\r\n \tif (word.get(key)!=null){\r\n \t\tint value= ((Integer) word.get(key)).intValue();\r\n \t\tvalue++;\r\n \t\tword.put(key, value);\r\n \t}else{\r\n \t\tword.put(key, new Integer(1));\r\n \t}\r\n }\r\n map.put(hscode, word);\r\n }\r\n else{\r\n //\tSystem.out.println(\"sss\");\r\n \tword = map.get(hscode);\r\n \tfor(int i=1;i<line.length;i++){\r\n \t\tString key=line[i];\r\n \tif (word.get(key)!=null){\r\n \t\tint value= ((Integer) word.get(key)).intValue();\r\n \t\tvalue++;\r\n \t\tword.put(key, value);\r\n \t}else{\r\n \t\tword.put(key, new Integer(1));\r\n \t}\r\n \t}\r\n \t\r\n \tmap.put(hscode, word);\r\n \t\r\n }\r\n\t\t}\r\n\t\tbf.close();\r\n//\t\tfor(Entry<String, TreeMap<String, Integer>> entry:map.entrySet()){\r\n//// \tSystem.out.println(\"hscode:\"+entry.getKey());\r\n// \tTreeMap<String, Integer> value = entry.getValue();\r\n// \tfor(Entry<String,Integer> e:value.entrySet()){\r\n//// \tSystem.out.println(\"单词\"+e.getKey()+\" 词频是\"+e.getValue());\r\n// \t}\r\n// }\r\n\t}", "private boolean parse(String name) {\r\n BufferedReader in;\r\n\r\n try {\r\n in = new BufferedReader(new InputStreamReader(new FileInputStream(name)));\r\n\r\n }\r\n catch (IOException e) {\r\n return false;\r\n }\r\n\r\n try {\r\n while (true) {\r\n String line = in.readLine();\r\n if (line != null) {\r\n\r\n // skip the commented lines\r\n if (!line.startsWith(\"//\") && !line.startsWith(\";\") &&\r\n !line.startsWith(\"#\")) {\r\n int i = line.indexOf('=');\r\n\r\n // we also skip lines without an equal sign\r\n if (i != -1)\r\n keyvaluepairs.put(line.substring(0, i).trim().toLowerCase(),\r\n line.substring(i + 1).trim());\r\n }\r\n\r\n }\r\n else\r\n break;\r\n }\r\n }\r\n catch (IOException e) {\r\n }\r\n\r\n return true;\r\n }", "public HashMap<String,String> readMapFile(String filename) throws IOException {\n\t\tHashMap<String,String> valueMap = new HashMap<String,String>();\t\t\n List<String> cols = new ArrayList<String>(); \n\t\t\n try{\n \t buf = new BufferedReader(new FileReader(filename)); \n\t String strRead; \n\t while ((strRead=buf.readLine())!=null) {\n\t \tcols = Arrays.asList(strRead.split(\"\\t\")); \t\n\t \tif(cols.size() != 2)\n\t \t\tcontinue; \t\n\t \tvalueMap.put(cols.get(0),cols.get(1)); \t\n\t \t }\n\t } catch(IOException e){\n\t e.printStackTrace();\n\t } finally {\n\t \tbuf.close(); \n\t }\n\t\t\t\n\t\treturn valueMap;\n\t}", "public static void main(String[] args) throws FileNotFoundException{ \n File file = new File(\"/Users/admin/NetBeansProjects/AlgoDataA3/src/algodataa3e3/output_interpret.txt\");\n Scanner input = new Scanner(file); \n \n SeparateChainingHash_A3E3<String, Integer> st = new SeparateChainingHash_A3E3<>(INTERVAL);\n //141491 words\n //9944 uniqe (with toLowerCase)\n \n //read file word by word and store in array\n while (input.hasNext()) {\n String key = input.next().toLowerCase();\n st.put(key, 1);\n }\n \n for(int i = 0; i < INTERVAL; i++){\n \n System.out.println(\"In hash #\" + (i+1) + \" there are \" + st.sizeOfList(i) + \" nodes\");\n }\n }", "public static Map<String, String> pairWords(String file, SimpleReader in,\n Queue<String> terms, Queue<String> def, Queue<String> wordsAndDef,\n Map<String, String> dictionary) {\n String definition = \"\";\n if (wordsAndDef.length() > 0) {\n String word = wordsAndDef.dequeue();\n terms.enqueue(word);//adding terms to queue\n definition = getDefinition(wordsAndDef);\n dictionary.add(word, definition);\n pairWords(file, in, terms, def, wordsAndDef, dictionary);\n\n }\n return dictionary;\n }", "private static void fileRead(String file) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\t\tString line = \"\";\n\t\t\twhile((line=br.readLine())!=null) {\n\t\t\t\tString data[] = line.split(\"\\\\t\");\n\t\t\t\tint id = Integer.parseInt(data[0]);\n\t\t\t\tint groundTruth = Integer.parseInt(data[1]);\n\t\t\t\tactualClusters.put(id, groundTruth);\n\t\t\t\tArrayList<Double> temp = new ArrayList<>();\n\t\t\t\tfor(int i=2;i<data.length;i++) {\n\t\t\t\t\ttemp.add(Double.parseDouble(data[i]));\n\t\t\t\t}\n\t\t\t\tcols = data.length-2;\n\t\t\t\tgeneAttributes.put(id, temp);\n\t\t\t\tallClusters.add(id+\"\");\n\t\t\t\ttotalGenes++;\n\t\t\t}\n\t\t\ttotalCluster = totalGenes;\n\t\t\tbr.close();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void reLoadIndexesFromFileToIndexMap(File file) throws IOException {\n BufferedReader reader = new BufferedReader(new FileReader(file));\n for (String line = reader.readLine(); line != null; line = reader\n .readLine()) {\n String[] termIndex = line.split(\" \");\n String key = termIndex[0];\n LinkedList<TermPositions> value = new LinkedList<>();\n String postingList = termIndex[1];\n // split the posting lists 1:1,2,4;2:4\n String[] subPostings = postingList.split(\";\");\n for (String posting : subPostings) {\n String[] docPosting = posting.split(\":\");\n int docId = Integer.parseInt(docPosting[0]);\n String[] positions = docPosting[1].split(\",\");\n LinkedList<Integer> positionsList = new LinkedList<>();\n for (String position : positions) {\n positionsList.add(Integer.parseInt(position));\n }\n TermPositions termPositions = new TermPositions(docId, positionsList);\n value.add(termPositions);\n }\n indexMap.put(key, value);\n\n }\n\n }", "public PrefixMapping(String prefix, String uri) {\r\n this.prefix = (prefix != null)? prefix : \"\";\r\n this.uri = (uri != null)? uri : \"\"; \r\n }", "public static void main(String[] args) { //modified from TextScan.Java\r\n\r\n //finds tokens, add h.add/h.display\r\n HashTable newHash1 = new HashTable();\r\n HashTable newHash2 = new HashTable();\r\n HashTable newHash3 = new HashTable();\r\n //^^hash 1-3\r\n args = new String[1];\r\n args[0] = \"keywords.txt\"; //enter file name here\r\n\r\n Scanner readFile = null;\r\n String s;\r\n int count = 0;\r\n\r\n System.out.println();\r\n System.out.println(\"Attempting to read from file: \" + args[0]);\r\n try {\r\n readFile = new Scanner(new File(args[0]));\r\n }\r\n catch (FileNotFoundException e) {\r\n System.out.println(\"File: \" + args[0] + \" not found\");\r\n System.exit(1);\r\n }\r\n\r\n System.out.println(\"Connection to file: \" + args[0] + \" successful\");\r\n System.out.println();\r\n\r\n while (readFile.hasNext()) {\r\n s = readFile.next();\r\n newHash1.add(s, 1);\r\n newHash2.add(s, 2);\r\n newHash3.add(s, 3);\r\n count++;\r\n }\r\n System.out.println(\"HASH FUNCTION 1\");\r\n newHash1.display();\r\n System.out.println();\r\n System.out.println(\"HASH FUNCTION 2\");\r\n newHash2.display();\r\n System.out.println();\r\n System.out.println(\"HASH FUNCTION 3\");\r\n newHash3.display();\r\n\r\n System.out.println();\r\n System.out.println(count + \" Tokens found\");\r\n System.out.println();\r\n//dabble:\r\n// String key = \"+\";\r\n// char newc = key.toString().charAt(0);\r\n// int a = newc;\r\n// System.out.println(\"KEY: \"+(key.toString().charAt(0)+1)+ \"WACK: \"+ a);\r\n\r\n\r\n\r\n }", "protected synchronized Hashtable getMappingsFromFile() throws Exception {\n\n \t\n\t\tInputStream path = null;\n\n\t\tpath = getClass().getResourceAsStream(\"../../../config/mappings.txt\");\n\n\t\tSystem.out.println(\"Path is - \" + path);\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(path));\n/*\t\tStringBuilder sb = new StringBuilder();\n\t\tString line1 = null;\n\t\twhile ((line1 = reader.readLine()) != null) {\n\t\t\tsb.append(line1 + \"\\n\");\n\t\t}\n*/\t\t//System.out.println(\"String is - \" + sb.toString());\n\t\t\n/* \tFile f = new File(\"src/edu/ucsd/crbs/incf/components/services/emage/mappings.txt\");\n System.out.println(\"Mapping - \" + f.getAbsolutePath());\n\n*/ /*if(sb.toString().trim().equals(\"\") || sb.toString() == null ) {\n System.err.println(\"bisel.ReadMappings cannot find mapping file\");\n System.exit(1);\n }*/\n\n Hashtable mappings = new Hashtable(17, new Float(1.25).floatValue());\n\n\n //BufferedReader br = new BufferedReader(new FileReader(f));\n String line = reader.readLine();\n while(line != null) { \n StringTokenizer st = new StringTokenizer(line, \"*\");\n String aba = st.nextToken();\n String emap = st.nextToken();\n mappings.put(aba, emap);\n line = reader.readLine();\n }\n\n reader.close();\n return mappings;\n }", "@Override\r\n public Map getData(String fileName) {\r\n Map<String, Integer> map = new HashMap<>();\r\n \r\n File file = new File(fileName);\r\n \r\n try (BufferedReader bufferedReader =\r\n new BufferedReader(new FileReader(file))) {\r\n \r\n String line;\r\n while ((line = bufferedReader.readLine()) != null) {\r\n \r\n //if the word have already been in the map,\r\n //increases the number of occurances,\r\n //otherwise sets this number to 1\r\n //and puts a new value to the map\r\n String[] words = line.split(\" \");\r\n for (String word : words) {\r\n Integer value = map.get(word);\r\n if (value == null) {\r\n value = 1;\r\n } else {\r\n value++;\r\n }\r\n map.put(word, value);\r\n }\r\n }\r\n } catch(IOException e) {\r\n System.out.println(e.getMessage());\r\n return null;\r\n }\r\n \r\n return map;\r\n }", "public static ArrayList readBiblioscapeTagFile(String filename) {\n ArrayList bibitems = new ArrayList();\n File f = new File(filename);\n if (!f.exists() || !f.canRead() || !f.isFile()) {\n System.err.println(\"Error: \" + filename + \" is not a valid file and|or is not readable.\");\n return null;\n }\n \n try {\n BufferedReader in = new BufferedReader(new FileReader(filename));\n String line;\n HashMap hm = new HashMap();\n HashMap lines = new HashMap();\n StringBuffer previousLine = null;\n while ((line = in.readLine()) != null) {\n // entry delimiter -> item complete\n if (line.equals(\"------\")) {\n String[] type = new String[2];\n String[] pages = new String[2];\n String country = null;\n String address = null;\n Vector comments = new Vector();\n // add item\n Object[] l = lines.entrySet().toArray();\n for (int i = 0; i < l.length; ++i) {\n Map.Entry entry = (Map.Entry)l[i];\n if (entry.getKey().equals(\"AU\")) hm.put(\"author\",entry.getValue().toString());\n else if (entry.getKey().equals(\"TI\")) hm.put(\"title\",entry.getValue().toString());\n else if (entry.getKey().equals(\"ST\")) hm.put(\"booktitle\",entry.getValue().toString());\n else if (entry.getKey().equals(\"YP\")) hm.put(\"year\",entry.getValue().toString());\n else if (entry.getKey().equals(\"VL\")) hm.put(\"volume\",entry.getValue().toString());\n else if (entry.getKey().equals(\"NB\")) hm.put(\"number\",entry.getValue().toString());\n else if (entry.getKey().equals(\"PS\")) pages[0] = entry.getValue().toString();\n else if (entry.getKey().equals(\"PE\")) pages[1] = entry.getValue().toString();\n else if (entry.getKey().equals(\"KW\")) hm.put(\"keywords\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"RM\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"RU\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"RT\")) type[0] = entry.getValue().toString();\n else if (entry.getKey().equals(\"SB\")) comments.add(\"Subject: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"SA\")) comments.add(\"Secondary Authors: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"NT\")) hm.put(\"note\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"PP\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"PB\")) hm.put(\"publisher\",entry.getValue().toString());\n else if (entry.getKey().equals(\"TA\")) comments.add(\"Tertiary Authors: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"TT\")) comments.add(\"Tertiary Title: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"ED\")) hm.put(\"edition\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"DP\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"TW\")) type[1] = entry.getValue().toString();\n else if (entry.getKey().equals(\"QA\")) comments.add(\"Quaternary Authors: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"QT\")) comments.add(\"Quaternary Title: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"IS\")) hm.put(\"isbn\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"LA\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"AB\")) hm.put(\"abstract\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"DI\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"DM\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"AV\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"PR\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"LO\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"AD\")) address = entry.getValue().toString();\n else if (entry.getKey().equals(\"LG\")) hm.put(\"language\",entry.getValue().toString());\n else if (entry.getKey().equals(\"CO\")) country = entry.getValue().toString();\n else if (entry.getKey().equals(\"UR\") || entry.getKey().equals(\"AT\")) {\n String s = entry.getValue().toString().trim();\n hm.put(s.startsWith(\"http://\") || s.startsWith(\"ftp://\") ? \"url\" : \"pdf\",\n entry.getValue().toString());\n }\n else if (entry.getKey().equals(\"C1\")) comments.add(\"Custom1: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"C2\")) comments.add(\"Custom2: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"C3\")) comments.add(\"Custom3: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"C4\")) comments.add(\"Custom4: \" + entry.getValue().toString());\n //else if (entry.getKey().equals(\"RD\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"MB\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"C5\")) comments.add(\"Custom5: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"C6\")) comments.add(\"Custom6: \" + entry.getValue().toString());\n //else if (entry.getKey().equals(\"FA\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"CN\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"DE\")) hm.put(\"annote\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"RP\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"DF\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"RS\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"CA\")) comments.add(\"Categories: \" + entry.getValue().toString());\n //else if (entry.getKey().equals(\"WP\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"TH\")) comments.add(\"Short Title: \" + entry.getValue().toString());\n //else if (entry.getKey().equals(\"WR\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"EW\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"SE\")) hm.put(\"chapter\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"AC\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"LP\")) hm.put(\"\",entry.getValue().toString());\n }\n \n String bibtexType = \"misc\";\n if (type[1] != null) { // first check TW\n type[1] = type[1].toLowerCase();\n if (type[1].indexOf(\"article\") >= 0) bibtexType = \"article\";\n else if (type[1].indexOf(\"book\") >= 0) bibtexType = \"book\";\n else if (type[1].indexOf(\"conference\") >= 0) bibtexType = \"inproceedings\";\n else if (type[1].indexOf(\"proceedings\") >= 0) bibtexType = \"inproceedings\";\n else if (type[1].indexOf(\"report\") >= 0) bibtexType = \"techreport\";\n else if (type[1].indexOf(\"thesis\") >= 0\n && type[1].indexOf(\"master\") >= 0) bibtexType = \"mastersthesis\";\n else if (type[1].indexOf(\"thesis\") >= 0) bibtexType = \"phdthesis\";\n } else if (type[0] != null) { // check RT\n type[0] = type[0].toLowerCase();\n if (type[0].indexOf(\"article\") >= 0) bibtexType = \"article\";\n else if (type[0].indexOf(\"book\") >= 0) bibtexType = \"book\";\n else if (type[0].indexOf(\"conference\") >= 0) bibtexType = \"inproceedings\";\n else if (type[0].indexOf(\"proceedings\") >= 0) bibtexType = \"inproceedings\";\n else if (type[0].indexOf(\"report\") >= 0) bibtexType = \"techreport\";\n else if (type[0].indexOf(\"thesis\") >= 0\n && type[0].indexOf(\"master\") >= 0) bibtexType = \"mastersthesis\";\n else if (type[0].indexOf(\"thesis\") >= 0) bibtexType = \"phdthesis\";\n }\n \n // concatenate pages\n if (pages[0] != null || pages[1] != null)\n hm.put(\"pages\",(pages[0] != null ? pages[0] : \"\")\n + (pages[1] != null ? \"--\" + pages[1] : \"\"));\n \n // concatenate address and country\n if (address != null)\n hm.put(\"address\",address + (country != null ? \", \" + country : \"\"));\n \n if (comments.size() > 0) { // set comment if present\n StringBuffer s = new StringBuffer();\n for (int i = 0; i < comments.size(); ++i)\n s.append((i > 0 ? \"; \" : \"\")+ comments.elementAt(i).toString());\n hm.put(\"comment\",s.toString());\n }\n BibtexEntry b = new BibtexEntry(\n Globals.DEFAULT_BIBTEXENTRY_ID,\n Globals.getEntryType(bibtexType));\n b.setField(hm);\n bibitems.add(b);\n \n hm.clear();\n lines.clear();\n previousLine = null;\n \n continue;\n }\n // new key\n if (line.startsWith(\"--\") && line.length() >= 7 && line.substring(4,7).equals(\"-- \")) {\n lines.put(line.substring(2,4),previousLine = new StringBuffer(line.substring(7)));\n continue;\n }\n // continuation (folding) of previous line\n if (previousLine == null) // sanity check; should never happen\n return null;\n previousLine.append(line.trim());\n }\n } catch (IOException e) {\n return null;\n }\n \n return bibitems;\n }", "public static Map<String, String> readMap(File inFile, String kColumn, String vColumn) throws IOException {\n Map<String, String> retVal = new HashMap<String, String>();\n try (TabbedLineReader inStream = new TabbedLineReader(inFile)) {\n int kCol = inStream.findField(kColumn);\n int vCol = inStream.findField(vColumn);\n for (Line line : inStream)\n retVal.put(line.get(kCol), line.get(vCol));\n }\n return retVal;\n }", "public HashMap<String, String[]> convertToArray() throws IOException\n\t{\n\t HashMap<String, String[]> map = new HashMap<String, String[]>();\n\t String[] list;\n\t \n\t String line;\n\t BufferedReader reader;\n\t\t\n\t try {\n\t\t\treader = new BufferedReader(new FileReader(filePath));\n\t\t\t\n\t\t\twhile ((line = reader.readLine()) != null)\n\t\t {\n\t\t\t\tString key = line;\n\t\t\t\tString value = \"\";\n\t\t\t\tString tmp;\n\t\t\t\t\n\t\t\t\twhile(!(tmp=reader.readLine()).equals(\"$\"))\n\t\t\t\t{\t\n\t\t\t\t\tvalue = value+tmp; \n\t\t\t\t}\n\t\t\t\tString values = value.replaceAll(\"\\\"\", \"\");\n\t\t\t\t\n\t\t\t\tString[] parts = values.split(\",\");\n\t\t map.put(key, parts);\n\t\t }\n\t\t\t\n\t\t\t/*for (String key : map.keySet())\n\t\t {\n\t\t System.out.println(key);\n\t\t for(int i=0; i < map.get(key).length; i++)\n\t\t {\n\t\t \tSystem.out.println(map.get(key)[i]);\n\t\t }\n\t\t }*/\n\t\t\t\n\t\t reader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t \n\t \n\t return map;\n\t}", "protected void parseValues(File file){\r\n\t\ttry {\r\n\t\t\tScanner scanner = new Scanner(file);\r\n\t\t\tString line;\r\n\t\t\tif(scanner.hasNext()) \r\n\t\t\t\tline = scanner.nextLine();\r\n\t\t\twhile (scanner.hasNextLine()) {\r\n\t\t\t\tline = scanner.nextLine();\r\n\t\t\t\taddToSupplyValues(line);\r\n\t\t\t}\r\n\t\t\tscanner.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void addWordsFromFile(File file){\n \n FileResource fr = new FileResource(file);\n String fileName = file.getName();\n for (String word : fr.words()) {\n if (!hashWords.containsKey(word)) {// if hash map doesnt contain the key word\n ArrayList<String> newList = new ArrayList<String>();//create a new Arraylist\n newList.add(fileName);//add the file name to it \n hashWords.put(word, newList);// map the word to the new list\n } else if (hashWords.containsKey(word)\n && !hashWords.get(word).contains(fileName)) {\n //the hash map contains the keyword but not the filename\n // it gets stored as a new value in the\n //arraylist of the hashmap:\n \n ArrayList<String> currentList = hashWords.get(word);//currentList is the existing array list of files\n //for the given word\n currentList.add(fileName);//Add new file name to existing list\n hashWords.put(word, currentList);//map the 'word' to the updated arraylist\n }\n }\n }", "public void readKey(File file) throws FileNotFoundException {\n key = new double[CHAR_SET_SIZE][CHAR_SET_SIZE];\n Scanner in = new Scanner(file);\n int i = 0;\n while (in.hasNextLine()) {\n String line = in.nextLine();\n String [] vals = line.split(\" \");\n for (int j = 0; j < vals.length; j++) {\n key[i][j] = Double.parseDouble(vals[j]);\n }\n i++;\n }\n }", "public static void read(String configFile){\n\t\ttry {\n\t\t\tif(configFile.startsWith(\"$setu\")){\n\t\t\t\t\n\t\t\t\tString path=AppProperties.getProperty(\"setu\");\n\t\t\t\tif((path.substring(path.length()-1)).equals(\"/\")){\n\t\t\t\t\tpath=path.substring(0,path.length()-1);\n\t\t\t\t}\n\t\t\t\tconfigFile=path.concat(configFile.substring(5));\n\t\t\t}\n\n\t\t\tBufferedReader bcfr = new BufferedReader(new InputStreamReader(new FileInputStream(configFile), \"UTF8\"));\n\t\t\tString varPrefix = \"\";\n\t\t\tString varName;\n\t\t\tString value;\n\t\t\tint indexOfEqual;\n\t\t\tString line = null;\n\t\t\tconfig = new HashMap<String,String>();\n\t\t\twhile((line = bcfr.readLine()) != null){\n\t\t\t\tif(line.equals(\"\"))\n\t\t\t\t\tcontinue;\n\t\t\t\tif(line.startsWith(\"[\") && line.trim().endsWith(\"]\")){\n\t\t\t\t\tvarPrefix = line.substring(1, line.indexOf(\"]\"))+\".\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tindexOfEqual = line.indexOf(\"=\");\n\t\t\t\t\tvarName = line.substring(0, indexOfEqual).trim();\n\t\t\t\t\tvalue = line.substring(indexOfEqual + 1).trim();\n\t\t\t\t\tconfig.put(varPrefix + varName, value);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void loadKeys() {\n\t\tArrayList<String> lines = ContentLoader.getAllLinesOptList(this.keyfile);\n\t\tfor (String line : lines) {\n\t\t\tString[] parts = line.split(\"=\");\n\t\t\ttry {\n\t\t\t\tint fileID = Integer.parseInt(parts[0].trim());\n\t\t\t\tString restLine = parts[1].trim();\n\t\t\t\tString ccMethodName = restLine;\n\t\t\t\tif (restLine.indexOf('/') > 0) {\n\t\t\t\t\tint leftHashIndex = restLine.indexOf('/');\n\t\t\t\t\tccMethodName = restLine.substring(0, leftHashIndex).trim();\n\t\t\t\t}\n\t\t\t\t// String key = parts[0] + \".java\";\n\t\t\t\tkeyMap.put(fileID, ccMethodName);\n\t\t\t} catch (Exception exc) {\n\t\t\t\tSystem.err.println(line);\n\t\t\t}\n\t\t}\n\t}", "public HunspellDictionary(InputStream affix, List<InputStream> dictionaries, Version version, boolean ignoreCase) throws IOException, ParseException {\n this.version = version;\n this.ignoreCase = ignoreCase;\n String encoding = getDictionaryEncoding(affix);\n CharsetDecoder decoder = getJavaEncoding(encoding);\n readAffixFile(affix, decoder);\n words = new CharArrayMap<List<HunspellWord>>(version, 65535 /* guess */, this.ignoreCase);\n for (InputStream dictionary : dictionaries) {\n readDictionaryFile(dictionary, decoder);\n }\n }", "public static Map<String, String> stringToHashtable(String file) {\r\n if (file == null) {\r\n return null;\r\n }\r\n\r\n String sansComments = eraseComments(file);\r\n int pos = 0, count = sansComments.length();\r\n Map<String, String> retval = new HashMap<String, String>();\r\n\r\n // Split the file, line by line, into key/value pairs\r\n while (pos < count) {\r\n int eol = offsetToEOL(sansComments, pos);\r\n int next = offsetToNextLine(sansComments, pos);\r\n if (eol > 0) {\r\n String line = sansComments.substring(pos, pos + eol);\r\n StringTokenizer st = new StringTokenizer(line, \"=\");\r\n String key = st.nextToken();\r\n String value = \"\";\r\n if (st.hasMoreTokens()) {\r\n value = st.nextToken();\r\n }\r\n\r\n // Place scalar values in the hashtable directly\r\n // otherwise break comma separated ones into Vectors.\r\n // If they can be, items are inserted as Doubles, failing\r\n // that, as Strings.\r\n // int comma = value.indexOf(\",\");\r\n // if (comma == -1) {\r\n // try {\r\n // retval.put(key, new Double(value));\r\n // } catch (NumberFormatException nfe) {\r\n retval.put(key, value);\r\n // } // endtry\r\n // } else {\r\n // Vector<Comparable> v = new Vector<Comparable>();\r\n // StringTokenizer values = new StringTokenizer(value, \",\");\r\n // while (values.hasMoreTokens()) {\r\n // String s = values.nextToken();\r\n // try {\r\n // v.addElement(new Double(s));\r\n // } catch (NumberFormatException nfe) {\r\n // v.addElement(s.trim());\r\n // } // endtry\r\n // } // endwhile\r\n // retval.put(key, v);\r\n // } // endif\r\n } // endif\r\n pos += next;\r\n } // endwhile\r\n\r\n return retval;\r\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 }", "@Override\n public void loadMap(String fileName) throws ParserConfigurationException, SAXException, IOException {\n resetMap();\n //Test extension of XML file name\n String[] words = fileName.split(\"\\\\.\");\n if(!(words[(words.length)-1].equals(\"XML\")) && !(words[(words.length)-1].equals(\"xml\"))){\n this.setChanged();\n this.notifyObservers(\"Filename extension is not correct\");\n throw new IOException();\n }else{\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n try {\n // parse XML file\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(new File(fileName));\n doc.getDocumentElement().normalize();\n\n // Check the document root name\n Element root = doc.getDocumentElement();\n if(!root.getNodeName().equals(\"map\")){\n throw new NumberFormatException();\n }\n\n // get all nodes <intersection>\n NodeList nodeListIntersection = doc.getElementsByTagName(\"intersection\");\n\n for (int temp = 0; temp < nodeListIntersection.getLength(); temp++) {\n Node node = nodeListIntersection.item(temp);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n\n // get intersection's attribute\n long id = Long.parseLong(element.getAttribute(\"id\"));\n double latitude = Double.parseDouble(element.getAttribute(\"latitude\"));\n double longitude = Double.parseDouble(element.getAttribute(\"longitude\"));\n // if the intersection doesn't exist in the list\n if(checkUniqueIntersection(id,latitude,longitude)){\n intersectionList.add(new Intersection(id,latitude,longitude));\n }\n }\n }\n\n // get all nodes <Segment>\n NodeList nodeListSegment = doc.getElementsByTagName(\"segment\");\n\n for (int temp = 0; temp < nodeListSegment.getLength(); temp++) {\n Node node = nodeListSegment.item(temp);\n\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n\n // get intersection's attribute\n long destinationId = Long.parseLong(element.getAttribute(\"destination\"));\n long originId = Long.parseLong(element.getAttribute(\"origin\"));\n double length = Double.parseDouble(element.getAttribute(\"length\"));\n String name = element.getAttribute(\"name\");\n\n Intersection origin = getIntersectionById(originId);\n Intersection destination = getIntersectionById(destinationId);\n if ((origin != null) && (destination != null)) {\n segmentList.add(new Segment(origin, destination, name, length));\n } else {\n // System.out.println(\"segment creation is impossible\");\n }\n }\n }\n\n } catch (ParserConfigurationException |SAXException err){\n this.setChanged();\n this.notifyObservers(\"Parsing XML file failed. Please choose another XML file.\");\n throw err;\n }catch( IOException err) {\n this.setChanged();\n this.notifyObservers(\"Opening XML file failed. Please choose another XML file.\");\n throw err;\n }catch (NumberFormatException err){}\n\n if((intersectionList.isEmpty()) || (segmentList.isEmpty())){\n resetMap();\n this.setChanged();\n this.notifyObservers(\"Map is empty. Check your XML file.\");\n throw new IOException();\n }\n mapLoaded = true;\n extremIntersection = getExtremIntersection();\n this.createGraph();\n this.setChanged();\n this.notifyObservers();\n }\n }", "public static void loadLDATopics(String filename, HashMap<Integer, String> hashtable) throws Exception {\n\n\t\tBigFile file = new BigFile(filename);\n\t\tint i=0;\n\t\t\n\t\tfor (String line : file) {\n\t\t\thashtable.put(i, line);\n\t\t\ti++;\n\t\t}\n\t}", "public void startPrefixMapping(String prefix, String uri)\n throws SAXException {\n namespaces.put(prefix, uri);\n }", "private void readDataFromUserLog(HashMap<String,TransactionData> hmap , String filename){\n\t\t\n\t\tBufferedReader reader = null;\n\t\t\n\t\ttry{\n\t\t\treader = new BufferedReader(new FileReader(filename));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tString transaction = line.split(\",\")[1];\n\t\t\t/*\tString transactionKey = (transaction.length() > keyLength ) ?\n\t\t\t\t\t\ttransaction.substring(0,keyLength):\n\t\t\t\t\t\t\ttransaction;*/\n\t\t\t\tString transactionKey = formTransactionKey(transaction);\n\t\t\t\tdouble amount = Double.parseDouble(line.split(\",\")[2]);\n\t\t\t\tif(hmap.containsKey(transactionKey)){\n\t\t\t\t\tTransactionData d = hmap.get(transactionKey);\n\t\t\t\t\td.addAnotherOccurence(amount);\n\t\t\t\t\thmap.put(transactionKey,d );\n\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tchar type = identifyTheTransactions(transaction);\n\t\t\t\t\tTransactionData d =new TransactionData(transaction,amount,type);\n\t\t\t\t\thmap.put(transactionKey,d);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Sorry!! File : \"+ filename +\" required for processing!!!\");\n\t\t\tSystem.out.println(\"\\n\\nPlease try again !!!\");\n\t\t\tSystem.exit(1);\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\tfinally{\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void startPrefixMapping(String prefix, String uri) {\n if (_prefixMapping == null) {\n _prefixMapping = new HashMap<>();\n }\n _prefixMapping.put(prefix, uri);\n }", "static void getMidWidNames() throws IOException {\n\t\tHashMap<String, String[]> mid2other = new HashMap<String, String[]>();\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_mid2wid);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\tif (mid2other.containsKey(l[0])) {\r\n\t\t\t\t\tString[] s = mid2other.get(l[0]);\r\n\t\t\t\t\ts[1] = s[1] + \"::\" + l[1];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tString[] s = new String[5];\r\n\t\t\t\t\ts[0] = l[0] + \"\";\r\n\t\t\t\t\ts[1] = l[1] + \"\";\r\n\t\t\t\t\ts[2] = \"\";\r\n\t\t\t\t\ts[3] = \"\";\r\n\t\t\t\t\ts[4] = \"\";\r\n\t\t\t\t\tmid2other.put(l[0], s);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdr.close();\r\n\t\t}\r\n\t\t//load notable type\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_mid2notabletype);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\tString mid = l[0];\r\n\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\tif (s[2].equals(\"\")) {\r\n\t\t\t\t\t\ts[2] = l[1];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ts[2] = s[2] + \"::\" + l[1];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdr.close();\r\n\t\t}\r\n\t\t//load names & alias\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbdump_2_len4);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\t// set name\r\n\t\t\t\tif (l[1].equals(\"/type/object/name\") && l[2].equals(\"/lang/en\")) {\r\n\t\t\t\t\tString mid = l[0];\r\n\t\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\t\tif (s[3].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[3] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[3] = s[3] + \"::\" + l[3];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (s[4].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[4] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[4] = s[4] + \"::\" + l[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\t\tif (l[1].equals(\"/common/topic/alias\") && l[2].equals(\"/lang/en\")) {\r\n\t\t\t\t\tString mid = l[0];\r\n\t\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\t\tif (s[4].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[4] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[4] = s[4] + \"::\" + l[3];\r\n\t\t\t\t\t\t}\r\n\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\t//write\r\n\t\t{\r\n\t\t\tDelimitedWriter dw = new DelimitedWriter(Main.file_midWidTypeNameAlias);\r\n\t\t\tfor (Entry<String, String[]> e : mid2other.entrySet()) {\r\n\t\t\t\tdw.write(e.getValue());\r\n\t\t\t}\r\n\t\t\tdw.close();\r\n\t\t}\r\n\t}", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "void parse(String fileName1,String fileName2) {\n\t\tString sCurrentLine;\n\t\tbr = null;\n\t\t\n\t\t//first read the fileName1\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(fileName1));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"File provided as the first argument is not found\");\n\t\t}\n\t\ttry {\n\t\t\t//For Users.xml\n\t\t\t//read current line and then first extract the attributes and then the\n\t\t\t//\tdata between the double quotes\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\tMatcher m = id.matcher(sCurrentLine);\n\t\t\t\tMatcher dispName = name.matcher(sCurrentLine);\n\t\t\t\tMatcher dbQuotes,num;\n\t\t\t\tif (m.find() && dispName.find()){\n\t\t\t\t\tnum = number.matcher(m.group());\n\t\t\t\t\tdbQuotes = quotes.matcher(dispName.group());\n\t\t\t\t\tnum.find();\n\t\t\t\t\tdbQuotes.find();\n\t\t\t\t\tuserMap.put(Integer.parseInt(num.group()), dbQuotes.group());\n\t\t\t\t}\n\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Some Error in Reading the referred file\");\n\t\t}\n\t\tcatch (IllegalStateException e){\n\t\t\tSystem.out.println(\"Illegal call to the function m.find() or pattern not found\");\n\t\t}\n\t\t\n\t\t\n\t\ttry {\n\t\t\t//read the second file\n\t\t\tbr = new BufferedReader(new FileReader(fileName2));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"File provided as the first argument is not found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t//For posts.xml\n\t\t\t//read current line and then first extract the attributes and then the\n\t\t\t//\tdata between the double quotes\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\tMatcher m = postType.matcher(sCurrentLine);\n\t\t\t\tMatcher owner = ownerId.matcher(sCurrentLine);\n\t\t\t\tMatcher ownId,postNum;\n\t\t\t\tif (m.find() && owner.find()){\n\t\t\t\t\townId = number.matcher(owner.group());\n\t\t\t\t\tpostNum = number.matcher(m.group());\n\t\t\t\t\townId.find();\n\t\t\t\t\tpostNum.find();\n\t\t\t\t\tint key = Integer.parseInt(postNum.group());\n\t\t\t\t\tint own = Integer.parseInt(ownId.group());\n\t\t\t\t\tif (key == 1){\n\t\t\t\t\t\t//if the post is a question\n\t\t\t\t\t\tif(postsMapQuestions.containsKey(own)){\n\t\t\t\t\t\t\tpostsMapQuestions.put(own,postsMapQuestions.get(own)+1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tpostsMapQuestions.put(own, 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t//this post is an answer\n\t\t\t\t\t\tif(postsMapAnswers.containsKey(own)){\n\t\t\t\t\t\t\tpostsMapAnswers.put(own,postsMapAnswers.get(own)+1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tpostsMapAnswers.put(own, 1);\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} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Some Error in Reading the referred file\");\n\t\t}\n\t\tcatch (IllegalStateException e){\n\t\t\tSystem.out.println(\"Illegal call to the function m.find() or pattern not found\");\n\t\t}\n\t}", "public void input(File inputFile){\n instantiateTable();\n try{\n String line = \"\";\n //method to scan certain words between 2 delimiting characters, usually blank lines or white spaces or tabs.\n Scanner read = new Scanner(inputFile).useDelimiter(\"\\\\W+|\\\\n|\\\\r|\\\\t|, \");\n //while there is a next word, keeps reading the file \n while (read.hasNext()){\n line = read.next().toLowerCase();\n LLNodeHash words = new LLNodeHash(line, 1, null);\n add(words);\n }\n read.close();\n }\n catch (FileNotFoundException e){\n System.out.print(\"Not found\");\n e.printStackTrace();\n }\n System.out.println(hashTable.length);\n System.out.println(space());\n System.out.println(loadFactor);\n System.out.println(collisionLength());\n print();\n }", "public static HashMap<String, IRI> processCSVGoTHash(String path) throws FileNotFoundException {\n BufferedReader in = null;\n in = new java.io.BufferedReader(new java.io.FileReader(path));\n String currentLine;\n int lineN = 0;\n String value=\"\";\n String term=\"\";\n HashMap<String, IRI> got = new HashMap<String, IRI>();\n try {\n while ((currentLine = in.readLine()) != null) {\n if (lineN == 0) {\n lineN++; //get rid of the headers\n } else {\n //process each vocab\n String[] info = currentLine.split(\";\");\n if(info.length==2) {\n value = info[0];\n term = info[1];\n }\n got.put(value, IRI.create(term));\n\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return got ;\n }", "void appendFileInfo(byte[] key, byte[] value) throws IOException;", "public void startPrefixMapping(String prefix, String uri)\r\n\t\t\tthrows SAXException {\r\n\t\t\r\n\t}", "@Override\n\tpublic void map(Text key, Text value, Context context) throws IOException,\n\t\tInterruptedException {\n\t\tText newKey = new Text();\n\t\tText newValue = new Text();\n\t\t\t\n\t for (String word: value.toString().toLowerCase().split(\"\\\\W+\")){\n\t\t\t\t// for each word emit a key value pair\n\t \tnewKey.set(word);\n\t \tnewValue.set(fileName + \"@\" + key);\n\t \tcontext.write(newKey, newValue);\n\t }\n\t}", "public Map<String, Set<String>> loadDictionary(File dictionaryFile) throws IOException {\n // iterate through the input file lines\n try (Stream<String> lines = Files.lines(dictionaryFile.toPath())) {\n // create resulting map as per javadoc\n Map<String, Set<String>> result = new HashMap<>();\n // for each line in the input file\n lines.forEach(line -> {\n // convert to lower case and remove all non-mappable characters\n String filtered = filter(line);\n // get number that is result of decoding of the word in current line\n String decodedNumber = decode(filtered);\n // create empty set if there are no entries for the current decoded number\n if (!result.containsKey(decodedNumber)) {\n result.put(decodedNumber, new HashSet<>());\n }\n // put original word mapped to the decoded number\n result.get(decodedNumber).add(line);\n });\n return result;\n }\n }", "private static void readWordsIntoMap(SimpleReader in,\n Map<String, Integer> wordMap, char[] seps) {\n String line = \"\";\n wordMap.clear();\n\n while (!in.atEOS()) {\n line = in.nextLine();\n for (char sep : seps) {\n line = line.replace(sep, ':');\n }\n\n String[] words = line.split(\":\");\n\n for (String word : words) {\n if (!wordMap.hasKey(word) && word != \" \") {\n wordMap.add(word, 1);\n } else {\n int count = wordMap.value(word);\n count++;\n wordMap.replaceValue(word, count);\n }\n }\n }\n\n }", "public static void main(String[] args) {\n try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n BufferedReader fileReader = new BufferedReader(new FileReader(reader.readLine()))) {\n\n //add all strings from file to List\n ArrayList<String> strings = new ArrayList<>();\n while (fileReader.ready()) {\n String line = fileReader.readLine();\n for (String string : line.split(\" +\")) {\n strings.add(string);\n }\n }\n\n //check list for Pairs\n int length = strings.size();\n String firstString;\n String secondString;\n String reverseString;\n\n for (int i = 0; i < length - 1; i++) {\n firstString = strings.get(i);\n for (int y = i + 1; y < length; y++) {\n secondString = strings.get(y);\n reverseString = new StringBuilder(secondString).reverse().toString();\n if (firstString.equals(reverseString)) {\n Pair pair = new Pair();\n pair.first = firstString;\n pair.second = secondString;\n if (!result.contains(pair)) {\n result.add(pair);\n }\n }\n }\n }\n\n\n\n\n// for (Pair pair : result) {\n// System.out.println(pair);\n// }\n\n } catch (IOException e) {\n\n }\n\n }", "private void process(String file, LinkedList<String> ll) {\r\n \ttry {\r\n \t\tFile currFile = openFile(file);\r\n \t\tStringBuilder sb;\r\n\r\n \t\tif (currFile == null) {\r\n \t\t\treturn;\r\n \t\t}\r\n\r\n \t\tBufferedReader br = new BufferedReader(new FileReader(currFile));\r\n \t\tString line = null;\r\n \t\twhile ((line = br.readLine()) != null) {\r\n \t\t\tint length = line.length();\r\n \t\t\tif (length == 0) {\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\tint index = 0;\r\n \t\t\tLinkedList<String> newLL;\r\n \t\t\twhile (index < length && line.charAt(index) == ' ') {\r\n \t\t\t\t++index;\r\n \t\t\t}\r\n \t\t\tif (index > length-8 || line.substring(index, index+8).compareTo(\"#include\") != 0) {\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\tindex += 8;\r\n \t\t\twhile (line.charAt(index) == ' ') {\r\n \t\t\t\t++index;\r\n \t\t\t}\r\n \t\t\tif (line.charAt(index) != '\"') {\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\tindex++;\r\n \t\t\tint len = line.length();\r\n \t\t\tsb = new StringBuilder();\r\n \t\t\twhile (index < len) {\r\n \t\t\t\tif (line.charAt(index) == '\"') {\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t\tsb.append(line.charAt(index));\r\n \t\t\t\t++index;\r\n \t\t\t}\r\n \t\t\tString currName = sb.toString();\r\n \t\t\tll.add(currName);\r\n \t\t\tif (hashM.containsKey(currName)) {\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \t\t\tnewLL = new LinkedList<String>();\r\n \t\t\thashM.put(currName, newLL);\r\n \t\t\tworkQueue.add(currName);\r\n \t\t}\r\n \t}\r\n \tcatch (Exception x) {\r\n \t\tx.printStackTrace();\r\n \t}\r\n }", "public static Map<String, Set<String>> parse(\n CommandManager mgr, \n String fileName\n ) throws CLIException\n {\n BufferedReader in = null;\n Map<String, Set<String>> attrValues = \n new HashMap<String, Set<String>>();\n \n try {\n in = new BufferedReader(new FileReader(fileName));\n String line = in.readLine();\n while (line != null) {\n line = line.trim();\n if (line.length() > 0) {\n int idx = line.indexOf('=');\n if ((idx == -1) || (idx == 0) || (idx == (line.length() -1))\n ) {\n throw createIncorrectFormatException(mgr, line);\n }\n \n String key = line.substring(0, idx).trim();\n String value = line.substring(idx+1).trim();\n Set<String> values = attrValues.get(key);\n if (values == null) {\n values = new HashSet<String>();\n attrValues.put(key, values);\n }\n values.add(value);\n }\n line = in.readLine();\n }\n } catch (IOException e) {\n throw new CLIException(e, ExitCodes.IO_EXCEPTION);\n } finally {\n if (in !=null ) {\n try {\n in.close();\n } catch (IOException e) {\n //ignore cannot close input stream\n }\n }\n }\n return attrValues;\n }", "public void importFnaBitSequences(String filename, int start, int end) {\n\n int currentKID = -1;\n SuperString currentSeq = new SuperString();\n //String currentName = \"\";\n boolean ignore = true; //do not write empty sequence to database\n\n TimeTotals tt = new TimeTotals();\n tt.start();\n\n System.out.println(\"\\nFNA import begins \" + tt.toHMS() + \"\\n\");\n try (BufferedReader br = new BufferedReader(new FileReader(filename))) {\n\n for (String line; (line = br.readLine()) != null; ) {\n\n if (debug) {\n System.err.println(\"Single line:: \" + line);\n }\n\n // if blank line, it does not count as new sequence\n if (line.trim().length() == 0) {\n if (debug) System.err.println(\" :: blank line detected \");\n\n if (!ignore)\n if(currentKID >= start && currentSeq.length() > 0) {\n storeSequence(currentKID, currentSeq, tt);\n } else {\n sequenceLength.add(currentSeq.length());\n exceptionsArr.add(new HashMap<>());\n }\n\n else if (!ignore) {\n sequenceLength.add(currentSeq.length());\n exceptionsArr.add(new HashMap<>());\n }\n ignore = true;\n\n // if line starts with \">\", then it is start of a new reference sequence\n } else if (line.charAt(0) == '>') {\n if (debug) System.err.println(\" :: new entry detected \" + line);\n\n // save previous iteration to database\n if (!ignore && currentSeq.length() > 0) {\n storeSequence(currentKID, currentSeq, tt);\n } else if (!ignore) {\n sequenceLength.add(currentSeq.length());\n exceptionsArr.add(new HashMap<>());\n }\n // initialize next iteration\n if (indexOf(line.trim()) == -1) {\n //original.addAndTrim(new Kid(line.trim()));\n //addNewKidEntry(line);\n add(new Kid(line.trim()));\n if (getLast()==start || (getLast()== 1 && start == 1)){\n System.err.println(\"Found KID\\t\" + currentKID + \"\\tbit string import started\");\n }\n }\n\n currentKID = getKid(line.trim()); // original.indexOf(line.trim());\n if (currentKID == -1) {\n System.err.println(\"This sequence not found in database : \" + line);\n listEntries(0);\n exit(0);\n }\n //currentSeq = \"\";\n\n currentSeq = new SuperString();\n\n ignore = false;\n } else {\n currentSeq.addAndTrim(line.trim());\n }\n\n\n if (currentKID >= end){\n break;\n }\n } //end for\n\n //write last\n if (!ignore && currentKID >= start && currentSeq.length() > 0) {\n storeSequence(currentKID, currentSeq, tt);\n }\n// else if (!ignore) {\n// sequenceLength.add(currentSeq.length());\n// exceptionsArr.add(new HashMap<>());\n// }\n br.close();\n\n }catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n\n }", "MapBuilder<K,V> pairInjection(Injection<OrderedPair<K,V>, byte[]> pairInjection);", "private void readData() {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(getClass().getClassLoader().getResourceAsStream(fileName)))) {\n String line;\n while ((line = br.readLine()) != null) {\n String[] parts = line.split(\",\");\n int zip = Integer.parseInt(parts[0]);\n String name = parts[1];\n\n zipMap.put(zip, name);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }" ]
[ "0.5499933", "0.54553145", "0.53028667", "0.5176277", "0.5128951", "0.51202756", "0.51063037", "0.5040379", "0.5007655", "0.50011295", "0.4971645", "0.4964975", "0.49646252", "0.49497405", "0.49462482", "0.49392807", "0.49336123", "0.49319655", "0.4907429", "0.490324", "0.48748368", "0.48648062", "0.48439315", "0.4836317", "0.4835656", "0.48245963", "0.48243222", "0.48228815", "0.48051462", "0.47812107", "0.4780886", "0.47684997", "0.47494158", "0.4737803", "0.47357", "0.47343448", "0.4718067", "0.47001848", "0.4697067", "0.46929434", "0.468051", "0.46744862", "0.46447065", "0.46319842", "0.46305957", "0.4630523", "0.46230853", "0.46149322", "0.46016937", "0.45859164", "0.45854446", "0.45852304", "0.45815524", "0.45804775", "0.45775053", "0.4562188", "0.4556929", "0.4540256", "0.4539801", "0.45239988", "0.45208442", "0.45170233", "0.4509252", "0.44981667", "0.4489216", "0.44804135", "0.4478584", "0.4476888", "0.4476139", "0.44695604", "0.44612393", "0.4459347", "0.44518843", "0.44475943", "0.44270724", "0.44197065", "0.44125813", "0.4409547", "0.44052503", "0.44052503", "0.44052503", "0.44052503", "0.44052503", "0.44052503", "0.44052503", "0.44052503", "0.4403769", "0.44022658", "0.43948781", "0.43917674", "0.43867275", "0.43737093", "0.4362384", "0.4357277", "0.4356403", "0.4352696", "0.43512237", "0.43418333", "0.4338162", "0.43246135" ]
0.7278857
0
doParallelStream(): 1451206 Cost time: 15ms
private static void doParallelStream() { ArrayList<Person> personCopy = new ArrayList<>(person); long l = System.currentTimeMillis(); long ans = personCopy.parallelStream().filter(p -> p.getHeight() > 180).count(); System.out.println("doParallelStream(): " + ans); long e = System.currentTimeMillis(); System.out.println("Cost time: " + (e - l) + "ms"); System.out.println("----------------------------"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tForkJoinPool core = ForkJoinPool.commonPool() ;\n\t\tSystem.out.println(core.getParallelism());\n\t\t\n\t\t// Paralle() on a stream\n\t\tStream stream =Stream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\");\n\t\tStream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\tStream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").parallel().forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\t//2 .Use ParallelStream method at a collector \n\t\tArrays.asList(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").parallelStream().forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\t//3.Range method\n\t\tIntStream.rangeClosed(0, 10).forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\tIntStream.rangeClosed(0, 10).parallel().forEach(System.out::println);\n\t\t//Print in Alaphabetical order\n\t\t//System.out.println(getArrayList());\n\t\tgetArrayList().stream().forEach(System.out::println);\n\t\tgetArrayList().parallelStream().forEach(System.out::println);\n\t\t//Check stream is running in Parallel Mode :-isParallel() Method is there\n\t\tIntStream s1=IntStream.rangeClosed(1,10);\n\t\tSystem.out.println(s1.isParallel()); // to check whether stream is running paralllel or not\n\t\tIntStream s2=IntStream.rangeClosed(1,10);s2.parallel();\n\t\tSystem.out.println(s2.isParallel());\n\t}", "@Test\n public void streamsExample() {\n List<Integer> list = asList(1, 2, 3, 4, 5);\n \n list.stream().forEach(out::println);\n \n out.println();\n \n list.stream().parallel().forEachOrdered(out::println);\n \n \n }", "public IntStream parallelStream() {\n\treturn StreamSupport.intStream(spliterator(), true);\n }", "default Stream<E> parallelStream() {\n return StreamSupport.stream(spliterator(), true);\n }", "public static void concurrency() {\n List<String> words = new ArrayList<>();\n for (int i = 0; i < 500000; i++)\n words.add(UUID.randomUUID().toString());\n\n //Groups the list into a map of strings by length in serial\n long t2s = System.nanoTime();\n Map<Integer, List<String>> a = words.stream()\n .collect(Collectors.groupingBy(String::length));\n long t2d = System.nanoTime() - t2s;\n\n //Groups the list into a map of strings by length in parallel\n long t1s = System.nanoTime();\n ConcurrentMap<Integer, List<String>> b = words.parallelStream()\n .collect(Collectors.groupingByConcurrent(String::length));\n long t1d = System.nanoTime() - t1s;\n\n System.out.println(\"Collect Serial time : \" + t2d);\n System.out.println(\"Collect Parallel time : \" + t1d);\n }", "static public void callForeachRDD (org.apache.spark.streaming.api.java.JavaDStream<byte[]> jdstream, org.apache.spark.streaming.api.python.PythonTransformFunction pfunc) { throw new RuntimeException(); }", "public static void main(String[] args) {\n\n\n List<Integer> source = buildIntRange();\n\n if(CollectionUtils.isNotEmpty(source)){\n\n }\n // 传统方式的遍历\n long start = System.currentTimeMillis();\n for (int i = 0; i < source.size(); i++) {\n try {\n TimeUnit.MILLISECONDS.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n System.out.println(\"传统方式 : \" + (System.currentTimeMillis() - start) + \"ms\");\n\n // 单管道stream\n start = System.currentTimeMillis();\n source.stream().forEach(r -> {\n try {\n TimeUnit.MILLISECONDS.sleep(1);\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n System.out.println(\"stream : \" + (System.currentTimeMillis() - start) + \"ms\");\n\n // 多管道parallelStream\n start = System.currentTimeMillis();\n source.parallelStream().forEach(r -> {\n try {\n TimeUnit.MILLISECONDS.sleep(1);\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n System.out.println(\"parallelStream : \" + (System.currentTimeMillis() - start) + \"ms\");\n }", "public void rc(){\n List<Integer> numbers = new ArrayList<>();\n var result = List.of(1,2,3,4,5,6,7,8,9,10);\n result\n .parallelStream()\n .forEach(number->addToList(numbers,number));\n print.accept(numbers);\n }", "@Test\n public void test1(){\n\n// List<String> list= new ArrayList<String>();\n// list.add(\"张三\");\n// list.add(\"李四\");\n// list.add(\"王五\");\n// list.add(\"马六\");\n// System.out.println(list.get(0));\n//\n// list.forEach(li-> System.out.println(li+\"干什么\"));\n//// Runnable no=() -> System.out.println(\"hello\");\n//\n// Complex complex=new Complex(2,3);\n//\n// Complex c=new Complex(5,3);\n// Complex cc=c.plus(complex);\n// System.out.println(cc.toString()+\"11111111111111111111\");\n List<String> data = new ArrayList<>();\n data.add(\"张三\");\n data.add(\"李四\");\n data.add(\"王三\");\n data.add(\"马六\");\n data.parallelStream().forEach(x-> System.out.println(x));\n System.out.println(\"--------------------\");\n data.stream().forEach(System.out::println);\n System.out.println(\"+++++++++++++++++\");\n List<String> kk=data.stream().sorted().limit(2).collect(Collectors.toList());\n kk.forEach(System.out::println);\n List<String> ll=data.stream()\n .filter(x -> x.length() == 2)\n .map(x -> x.replace(\"三\",\"五\"))\n .sorted()\n .filter(x -> x.contains(\"五\")).collect(Collectors.toList());\n ll.forEach(string-> System.out.println(string));\n for (String string:ll) {\n System.out.println(string);\n }\n ll.stream().sorted().forEach(s -> System.out.println(s));\n// .forEach(System.out::println);\n Thread thread=new Thread(()->{ System.out.println(1); });\n thread.start();\n\n LocalDateTime currentTime=LocalDateTime.now();\n\n System.out.println(\"当前时间\"+currentTime);\n LocalDate localDate=currentTime.toLocalDate();\n System.out.println(\"当前日期\"+localDate);\n\n Thread tt=new Thread(()-> System.out.println(\"111\"));\n }", "public IntStream parallelStream(long size) {\n\treturn StreamSupport.intStream(spliterator(size), true);\n }", "@Test\n public void testGetNextCulturalObjectByStreamMethod() {\n Multimap<Long, CulturalObject> multimap = ArrayListMultimap.create();\n IntStream.range(0, NUMBER_OF_EXECUTIONS).parallel().forEach(i -> {{\n CulturalObject co = cardService.getNextCulturalObject(null);\n if (co != null) {\n multimap.put(co.getId(), co);\n }\n }});\n\n double[] sizes = multimap.keySet().stream().mapToDouble(aLong -> (double) multimap.get(aLong).size()).toArray();\n StandardDeviation std = new StandardDeviation();\n assertThat(std.evaluate(sizes), is(closeTo(0.0, 0.5)));\n\n }", "@Override\n protected Long compute() {\n if (dataList.size() <= BATCHSIZE)\n return sum();\n else {\n final List<AggregateWorker> tasks = new ArrayList<>();\n int index = dataList.size();\n while (index > 0) {\n int startIndex = (index - BATCHSIZE >= 0) ? (index - BATCHSIZE) : 0;\n // System.out.println(\"Created task for \" + startIndex + \" to \" + index);\n Collection<Long> subList = dataList.subList(startIndex, index);\n final AggregateWorker task = new AggregateWorker(subList);\n task.fork();\n tasks.add(task);\n index = index - BATCHSIZE;\n }\n long result = 0;\n for (final AggregateWorker task : tasks) {\n result += task.join();\n }\n return result;\n }\n }", "default <T> EagerFutureStream<T> switchToCPU(EagerFutureStream<T> stream){\n\t\tEagerReact react = EagerReactors.cpuReact;\n\t\treturn stream.withTaskExecutor(react.getExecutor()).withRetrier(react.getRetrier());\n\t}", "public static void sorting() {\n List<String> wordList = new ArrayList<>();\n for (int i = 0; i < 500000; i++)\n wordList.add(UUID.randomUUID().toString());\n\n //Sort and filter the list using compare to sequentially\n long t1s = System.nanoTime();\n List<String> a =wordList.stream()\n .filter((String s) -> s.contains(\"Z\") ? true : false)\n .sorted((s1, s2) -> s1.compareTo(s2))\n .collect(Collectors.toList());\n long t1d = System.nanoTime() - t1s;\n\n //Sort and filter the list using compare to in parallel\n long t2s = System.nanoTime();\n List<String> b = wordList.parallelStream()\n .filter((String s) -> s.contains(\"Z\") ? true : false)\n .sorted((s1, s2) -> s1.compareTo(s2))\n .collect(Collectors.toList());\n long t2d = System.nanoTime() - t2s;\n\n System.out.println(\"Filter + Sort Serial time : \" + t1d);\n System.out.println(\"Filter + Sort Parallel time : \" + t2d);\n }", "public void testExecuteInParallel_Collection() throws Exception\n {\n System.out.println( \"executeInParallel\" );\n Collection<Callable<Double>> tasks = createTasks( 10 );\n Collection<Double> result = ParallelUtil.executeInParallel( tasks );\n assertEquals( result.size(), tasks.size() );\n }", "private static void backPressureFix() {\n\t\tFlowable.range(1, 1000000)\n\t\t//below map will run in sequential\n\t\t//since sequential it has to complete whole task then only it can allow consumer to start\n\t\t\t.map(item -> {\n\t\t\t\tSystem.out.println(\"Produced item \"+item +\" using thread \"+Thread.currentThread().getName());\n\t\t\t\treturn item;\n\t\t\t})\n\t\t\t.observeOn(Schedulers.io())\n\t\t\t//.subscribeOn(Schedulers.io())//with this whole pipelein runs in seprate thread paralleley\n\t\t\t//below will run in concurrent\n\t\t\t.subscribe(item ->{\n\t\t\t\t//mimcing slowness\n\t\t\t\tThreadUtil.sleep(300);\n\t\t\t\tSystem.out.println(\"Consumed item \"+item +\" using thread \"+Thread.currentThread().getName());\n\t\t\t})\n\t\t\t\n\t\t\t;\n\t\t\n\t\t//since running in async we need to sleep\n\t\tThreadUtil.sleep(10000000);\n\t\t\t\n\t}", "public static void main(String[] args) {\n ArrayList<Double> myList = new ArrayList<>();\n\n myList.add(7.0);\n myList.add(18.0);\n myList.add(10.0);\n myList.add(24.0);\n myList.add(17.0);\n myList.add(5.0);\n\n double productOfSqrRoots = myList.parallelStream().reduce(\n 1.0,\n (a, b) -> a * Math.sqrt(b),\n (a, b) -> a * b\n );\n\n System.out.println(\"Product of square roots: \" + productOfSqrRoots);\n\n\n // This won't work. !! VERY HARD TO UNDERSTAND !!\n // In this version of reduce(), ACCUMULATOR and COMBINER function are one and the same.\n // This results in an error because when TWO PARTIAL RESULTS ARE COMBINED, THEIR SQUARE\n // ROOTS ARE MULTIPLIED TOGETHER RATHER THAN THE PARTIAL RESULTS, themselves.\n double productOfSqrRoots2 = myList.parallelStream().reduce(\n 1.0,\n (a, b) -> a * Math.sqrt(b)\n );\n\n System.out.println(productOfSqrRoots2);\n }", "private int[] removeDuplicatesWithParallelStream() {\n\t return Arrays.stream(randomIntegers).parallel().distinct().toArray();\n\t}", "@Test\n @Order(3)\n public void findFirstWithParallelTest() {\n Instant start = Instant.now();\n Optional<String> elementContainsCharZ = texts.stream()\n .parallel()\n .map(String::toLowerCase)\n .filter(text -> text.contains(\"z\"))\n .findFirst();\n\n elementContainsCharZ.ifPresent(System.out::println);\n Instant end = Instant.now();\n System.out.println(\"Elapsed time of findFirst with Parallel: \" + Duration.between(start, end).toNanos());\n }", "public long parallelSum(long n) {\n //better use long int double rangeclosed instead of iterate\n return Stream.iterate(1L, i -> i + 1)\n .limit(n)\n .parallel()\n .reduce(0L, Long::sum);\n }", "public void testExecuteInSequence() throws Exception\n {\n System.out.println( \"executeInSequence\" );\n Collection<Callable<Double>> tasks = createTasks( 10 );\n Collection<Double> result = ParallelUtil.executeInSequence( tasks );\n assertEquals( result.size(), tasks.size() );\n }", "public void testExecuteInParallel_Collection_ThreadPoolExecutor() throws Exception\n {\n System.out.println( \"executeInParallel\" );\n Collection<Callable<Double>> tasks = createTasks( 10 );\n Collection<Double> result = ParallelUtil.executeInParallel( tasks, ParallelUtil.createThreadPool( 1 ) );\n assertEquals( result.size(), tasks.size() );\n }", "@Test\n\tpublic void test() {\n\t\tlong l = System.currentTimeMillis();\n\t\tForkJoinPool forkJoinPool = new ForkJoinPool();// 实现ForkJoin\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 就必须有ForkJoinPool的支持\n\t\tForkJoinTask<Long> task = new ForkJoinWork(0L, 10000000000L);// 参数为起始值与结束值\n\t\tLong invoke = forkJoinPool.invoke(task);\n\t\tlong l1 = System.currentTimeMillis();\n\t\tSystem.out.println(\"test invoke = \" + invoke + \" time: \" + (l1 - l));\n\t\t// invoke = -5340232216128654848 time: 76474\n\t}", "public static void main(String[] args) {\n\n testWithNElementsParallel(1000);\n testWithNElementsParallel(10000);\n testWithNElementsParallel(100000);\n testWithNElementsParallel(1000000);\n testWithNElementsParallel(5000000);\n testWithNElementsParallel(10000000);\n }", "public static void main(String[] args) {\n\n\t\tLock lock = new ReentrantLock();\n\t\tIntStream.iterate(1, i -> 1).limit(10).parallel().forEach(x -> { // w1\n\t\t\tlock.tryLock(); // w2\n\t\t\tSystem.out.println(\"Got Lock!\");\n\t\t\tlock.unlock(); // w3\n\t\t});\n\t\tSystem.out.print(\"Finished\");\n\t}", "private void stream(int i, int[] seeds) throws Exception {\n\n\t\tExecutorService dataExecutor = Executors.newFixedThreadPool(NTHREDS);\n\t\t/**\n\t\t * which table we're currently working on\n\t\t */\n\t\tint tableType = i % 3;\n\t\tRunnable worker1 = new RepeatDataThread(tableType,\n\t\t\t\tApplication.THREAD_ONE_PATH + \"t\" + (tableType + 1), seeds[0]);\n\t\tRunnable worker2 = new RepeatDataThread(tableType,\n\t\t\t\tApplication.THREAD_TWO_PATH + \"t\" + (tableType + 1), seeds[1]);\n\t\tRunnable worker3 = new RepeatDataThread(tableType,\n\t\t\t\tApplication.THREAD_THREE_PATH + \"t\" + (tableType + 1), seeds[2]);\n\t\tRunnable worker4 = new RepeatDataThread(tableType,\n\t\t\t\tApplication.THREAD_FOUR_PATH + \"t\" + (tableType + 1), seeds[3]);\n\t\tdataExecutor.execute(worker1);\n\t\tdataExecutor.execute(worker2);\n\t\tdataExecutor.execute(worker3);\n\t\tdataExecutor.execute(worker4);\n\t\tdataExecutor.shutdown();\n\t\t// Wait until all threads are finish\n\t\t// if a table takes more than (approx) 40mins then the row size\n\t\t// is set too high, and load may fail.\n\t\tdataExecutor.awaitTermination(40, TimeUnit.MINUTES);\n\t\tSystem.out.println(\"loading tables\");\n\t\tExecutorService loadExecutor = Executors.newFixedThreadPool(NTHREDS);\n\t\tRunnable loadWorker1 = new LoadThread(Application.THREAD_ONE_PATH + \"t\" + (tableType + 1)); \n\t\tRunnable loadWorker2 = new LoadThread(Application.THREAD_TWO_PATH + \"t\" + (tableType + 1));\n\t\tRunnable loadWorker3 = new LoadThread(Application.THREAD_THREE_PATH + \"t\" + (tableType + 1)); \n\t\tRunnable loadWorker4 = new LoadThread(Application.THREAD_FOUR_PATH + \"t\" + (tableType + 1));\n\t\tloadExecutor.execute(loadWorker1); \n\t\tloadExecutor.execute(loadWorker2);\n\t\tloadExecutor.execute(loadWorker3); \n\t\tloadExecutor.execute(loadWorker4);\n\t\tloadExecutor.shutdown(); \n\t\tloadExecutor.awaitTermination(40,TimeUnit.MINUTES);\n\t\tcleanDirs();\n\n\t\tSystem.out.println(\"Finished all threads\");\n\n\t}", "public static <U> EagerFutureStream<U> parallel(U... array) {\n\t\treturn EagerReact.parallelCommonBuilder().from(Arrays.asList(array));\n\t}", "protected static double parArraySum(double[] X) {\n long startTime = System.nanoTime();\n assert X.length % 2 == 0;\n sum1 = 0;\n sum2 = 0;\n\n// System.setProperty(\"java.util.concurrent.ForkJoinPool.common.parallelism\", \"4\");\n// ForkJoinPool pool = new ForkJoinPool(4);\n\n finish(() -> {\n async(() -> {\n for (int i = 0; i < X.length / 2; i++) {\n sum1 += 1 / X[i];\n }\n });\n for (int i = X.length / 2; i < X.length; i++) {\n sum2 += 1 / X[i];\n }\n });\n\n return sum1 + sum2;\n }", "public static void main(String[] args) {\n\t\tForkJoinPool fjp = new ForkJoinPool(); \r\n\t\t \r\n double[] nums = new double[5000]; \r\n for (int i = 0; i < nums.length; i++) { \r\n nums[i] = (double)(((i % 2) == 0) ? i : -1); \r\n } \r\n Sum task = new Sum(nums, 0, nums.length); \r\n double summation = fjp.invoke(task); \r\n System.out.println(\"Summation \" + summation);\r\n \r\n\r\n\t}", "public static void main(String[] args) \n\t{\n\t\tForkJoinPool fjp = ForkJoinPool.commonPool();\n\t\t//ForkJoinPool fjp = new ForkJoinPool(2);\n\t\t\n\t\tSystem.out.println(fjp.getParallelism() + \" cores executing\");\n\t\tfjp.invoke(new MyAction());\n\t\tFuture<Integer> x = fjp.submit(new MyTask());\n\t\tfjp.invoke(new MyTask());\n\t\t\n\t\tList<Callable<Integer>> tasks = new ArrayList<>();\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 1 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 2 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 3 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 4 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\ttasks.add(()->{\n\t\t\tSystem.out.println(\"Task 5 running...\");\n\t\t\treturn 1;\n\t\t});\n\t\tint sum = 0;\n\t\tList<Future<Integer>> futureSums = fjp.invokeAll(tasks);\n\t\tfor(Future<Integer> num: futureSums)\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tsum += num.get();\n\t\t\t} catch (InterruptedException | ExecutionException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The sum is \" + sum);\n\t\t\n\t\tfjp.shutdown();\n\t\ttry {\n\t\t\tfjp.awaitTermination(30,TimeUnit.SECONDS);\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}", "private void execute(List<Pair<Integer, Stream<byte[], GenericRecord>>> streams) throws Exception {\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n isDone.set(true);\n printAggregatedStats(cumulativeRecorder);\n }));\n\n ExecutorService executor = Executors.newFixedThreadPool(flags.numThreads);\n try {\n final long numRecordsForThisThread = flags.numEvents / flags.numThreads;\n final long numBytesForThisThread = flags.numBytes / flags.numThreads;\n final double writeRateForThisThread = flags.writeRate / flags.numThreads;\n for (int i = 0; i < flags.numThreads; i++) {\n final int idx = i;\n final List<Stream<byte[], GenericRecord>> logsThisThread = streams\n .stream()\n .filter(pair -> pair.getLeft() % flags.numThreads == idx)\n .map(pair -> pair.getRight())\n .collect(Collectors.toList());\n executor.submit(() -> {\n try {\n if (flags.prometheusEnable) {\n writeWithPrometheusMonitor(\n logsThisThread,\n writeRateForThisThread,\n numRecordsForThisThread,\n numBytesForThisThread);\n } else {\n write(\n logsThisThread,\n writeRateForThisThread,\n numRecordsForThisThread,\n numBytesForThisThread);\n }\n } catch (Exception e) {\n log.error(\"Encountered error at writing records\", e);\n isDone.set(true);\n System.exit(-1);\n }\n });\n }\n log.info(\"Started {} write threads\", flags.numThreads);\n startTime = System.currentTimeMillis();\n reportStats();\n } finally {\n executor.shutdown();\n if (!executor.awaitTermination(5, TimeUnit.SECONDS)) {\n executor.shutdownNow();\n }\n streams.forEach(streamPair -> streamPair.getRight().closeAsync());\n }\n }", "public ParallelApply() {\n super.setParallel(true);\n }", "public static void main(String[] args) {\n long N = 10000;\n long start = System.nanoTime();\n /* == begin task == */\n Pair<Double,Double> results = computePI(N, 1001L);\n /* == end task == */\n System.out.println(\"pi: \" + results);\n long end = System.nanoTime();\n long timeNano = end - start;\n long duration = timeNano / 1000_000;\n System.out.println(\"=======================================\");\n System.out.println(\"Duration (milli-sec): \"+ Format.longToString(duration));\n\n\n// ThreadGroup tg = new ThreadGroup(\"main\");\n// System.out.println(Runtime.getRuntime().availableProcessors());\n }", "public static void main(String[] args) {\n ExecutorService executorService = Executors.newFixedThreadPool(100);\n\n for (int i=0;i<10000000;i++){\n executorService.execute(()->{\n System.out.println(generateTransId());\n });\n }\n }", "default EagerFutureStream<U> doOnEach(final Function<U, U> fn) {\n\t\treturn (EagerFutureStream) FutureStream.super.doOnEach(fn);\n\t}", "boolean supportsParallelExtract();", "public abstract Stream<E> streamBlockwise();", "public static void main(String[] args) {\n ForkJoinPool forkJoinPool = new ForkJoinPool(Runtime.getRuntime().availableProcessors());\n\n //Create three FolderProcessor tasks. Initialize each one with a different folder path.\n FolderProcessor desktop = new FolderProcessor(\"/Users/neeraj/Desktop\", \"log\");\n FolderProcessor downloads = new FolderProcessor(\"/Users/neeraj/Downloads\", \"log\");\n FolderProcessor github = new FolderProcessor(\"/Users/neeraj/Projects/office\", \"log\");\n\n // Execute the 3 tasks in the ForkJoinPool.\n forkJoinPool.execute(desktop);\n forkJoinPool.execute(downloads);\n forkJoinPool.execute(github);\n\n //Write to the console information about the status of the pool every second\n //until the three tasks have finished their execution.\n do {\n System.out.printf(\"******************************************\\n\");\n System.out.printf(\"Main: Parallelism: %d\\n\", forkJoinPool.getParallelism());\n System.out.printf(\"Main: Active Threads: %d\\n\", forkJoinPool.getActiveThreadCount());\n System.out.printf(\"Main: Task Count: %d\\n\", forkJoinPool.getQueuedTaskCount());\n System.out.printf(\"Main: Steal Count: %d\\n\", forkJoinPool.getStealCount());\n System.out.printf(\"******************************************\\n\");\n try {\n TimeUnit.SECONDS.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n } while ((!desktop.isDone()) || (!downloads.isDone()) || (!github.isDone()));\n\n //Shut down ForkJoinPool using the shutdown() method.\n forkJoinPool.shutdown();\n\n //Write the number of results generated by each task to the console.\n List<String> results;\n results = desktop.join();\n System.out.printf(\"Desktop: %d files found.\\n\", results.size());\n results = downloads.join();\n System.out.printf(\"Downloads: %d files found.\\n\", results.size());\n results = github.join();\n System.out.printf(\"Github: %d files found.\\n\", results.size());\n\n }", "@Test\n @Issue(\"JENKINS-41685\")\n public void testParallelsWithDuplicateEvents() throws Exception {\n //https://gist.github.com/vivek/ccf3a4ef25fbff267c76c962d265041d\n WorkflowJob job = r.jenkins.createProject(WorkflowJob.class, \"ParallelInsanity\");\n job.setDefinition(new CpsFlowDefinition(\"\" +\n \"echo 'first stage'\\n\" +\n \"parallel left : {\\n\" +\n \" echo 'run a bit'\\n\" +\n \" echo 'run a bit more'\\n\" +\n \" semaphore 'wait1'\\n\" +\n \"}, right : {\\n\" +\n \" echo 'wozzle'\\n\" +\n \" semaphore 'wait2'\\n\" +\n \"}\\n\" +\n \"echo 'last stage'\\n\" +\n \"echo \\\"last done\\\"\\n\",\n true));\n ForkScanner scan = new ForkScanner();\n ChunkFinder labelFinder = new NoOpChunkFinder();\n WorkflowRun run = job.scheduleBuild2(0).getStartCondition().get();\n SemaphoreStep.waitForStart(\"wait1/1\", run);\n SemaphoreStep.waitForStart(\"wait2/1\", run);\n\n TestVisitor test = new TestVisitor();\n List<FlowNode> heads = run.getExecution().getCurrentHeads();\n scan.setup(heads);\n scan.visitSimpleChunks(test, labelFinder);\n\n SemaphoreStep.success(\"wait1\"+\"/1\", null);\n SemaphoreStep.success(\"wait2\"+\"/1\", null);\n r.waitForCompletion(run);\n\n int atomEventCount = 0;\n int parallelBranchEndCount = 0;\n int parallelStartCount = 0;\n for (TestVisitor.CallEntry ce : test.calls) {\n switch (ce.type) {\n case ATOM_NODE:\n atomEventCount++;\n break;\n case PARALLEL_BRANCH_END:\n parallelBranchEndCount++;\n break;\n case PARALLEL_START:\n parallelStartCount++;\n break;\n default:\n break;\n }\n }\n\n sanityTestIterationAndVisiter(heads);\n Assert.assertEquals(10, atomEventCount);\n Assert.assertEquals(1, parallelStartCount);\n Assert.assertEquals(2, parallelBranchEndCount);\n }", "public static void main(String[] args) {\n\t\tint[] longArr = new int[1000];\n\t\tlong startTime = System.currentTimeMillis();\n\t\tparallelAssignValues(longArr);\n\t\tlong endTime = System.currentTimeMillis();\n\t\tSystem.out.println(\"parallel method time is: \" + (endTime - startTime));\n\n\t\t// for (int i = 0; i < longArr.length; i++) {\n\t\t// System.out.print(longArr[i]);\n\t\t// }\n\n\t\tRandom random = new Random();\n\t\tint[] lista = new int[1000];\n\t\tlong startTimes = System.currentTimeMillis();\n\t\tfor (int i = 0; i < 1000; i++) {\n\t\t\tlista[i] = random.nextInt(500);\n\t\t}\n\t\tlong endTimes = System.currentTimeMillis();\n\t\tSystem.out.println(\"serial method time is: \" + (endTimes - startTimes));\n\n\t}", "public static void main(String... args) {\n ReentrantLock lock = new ManagedReentrantLock();\n Condition condition = lock.newCondition();\n int upto = Runtime.getRuntime().availableProcessors() * 10;\n IntStream.range(0, upto).parallel().forEach(\n i -> {\n lock.lock();\n try {\n System.out.println(i + \": Got lock, now waiting - \" +\n Thread.currentThread().getName());\n condition.awaitUninterruptibly();\n } finally {\n lock.unlock();\n }\n }\n );\n }", "public static void main(String[] args) {\n\t\tSparkConf sparkConf = JavaRDDSparkContextMain.sparkConf(\"Spark Streaming Cient\", \"local[*]\");\n\t JavaStreamingContext streamingContext = new JavaStreamingContext(sparkConf, new Duration(1000));\n\t\tSystem.out.println(\"-----streamingContext: \" + streamingContext);\n\t\t\n\t\t// need linux install nc command\n\t\t// CentOS: yum -y install nmap-ncat; nc -lk 9999 \n\t\t// input string streaming to Iterator<String>\n\t\tJavaReceiverInputDStream<String> streamingLine = streamingContext.socketTextStream(\"192.168.1.105\", 9999);\n\t\t\n\t\tJavaDStream<String> streamingWords = streamingLine.flatMap(input -> {\n\t\t\tString[] wordArray = input.split(\" \");\n\t\t\tList<String> wordList = Arrays.asList(wordArray);\n\t\t\treturn wordList.iterator();\n\t\t});\n\t\t\n\t\tSystem.out.println(\"-----print streamingWords: \");\n\t\tstreamingWords.print();\n\t\t\n\t\t// \n\t\tJavaPairDStream<String, Integer> wordTuple = streamingWords.mapToPair(word -> {\n\t\t\tTuple2<String, Integer> tuple2 = new Tuple2<String, Integer>(word, 1);\n\t\t\treturn tuple2;\n\t\t});\n\t\tSystem.out.println(\"-----wordTuple count: \" + wordTuple.count() + \", wordTuple: \" + wordTuple);\n\t\twordTuple.print();\n\t\t\n\t\t// work count \n\t\tJavaPairDStream<String, Integer> wordCount = wordTuple.reduceByKey((v1, v2) -> {\n\t\t\treturn v1 + v2;\n\t\t});\n\t\tSystem.out.println(\"-----wordCount count: \" + wordCount.count() + \", wordCount: \" + wordCount);\n\t\twordCount.print();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"-----streamingWords: \" + streamingWords.toString());\n\t\tstreamingContext.start();\n\t\t\n\t\t\n\t\ttry{\n\t\t\t// streamingContext.awaitTermination();\n\t\t\t\n\t\t\tThread.sleep(1000 * 30);\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tstreamingContext.stop();\n\t\tstreamingContext.close();\n\n\t}", "@Test\n public void testTripleParallel() throws Exception {\n WorkflowJob job = r.jenkins.createProject(WorkflowJob.class, \"TripleParallel\");\n job.setDefinition(new CpsFlowDefinition(\n \"echo 'test stage'\\n\"+ // Id 3, Id 2 before that has the FlowStartNode\n \"parallel 'unit':{\\n\" + // Id 4 starts parallel, Id 7 is the block start for the unit branch\n \" echo \\\"Unit testing...\\\"\\n\" + // Id 10\n \"},'integration':{\\n\" + // Id 11 is unit branch end, Id 8 is the branch start for integration branch\n \" echo \\\"Integration testing...\\\"\\n\" + // Id 12\n \"}, 'ui':{\\n\" + // Id 13 in integration branch end, Id 9 is branch start for UI branch\n \" echo \\\"UI testing...\\\"\\n\" + // Id 14\n \"}\", // Node 15 is UI branch end node, Node 16 is Parallel End node, Node 17 is FlowEndNode\n true));\n WorkflowRun b = r.assertBuildStatusSuccess(job.scheduleBuild2(0));\n FlowExecution exec = b.getExecution();\n ForkScanner f = new ForkScanner();\n List<FlowNode> heads = exec.getCurrentHeads();\n f.setup(heads);\n TestVisitor visitor = new TestVisitor();\n f.visitSimpleChunks(visitor, new BlockChunkFinder());\n sanityTestIterationAndVisiter(heads);\n\n List<TestVisitor.CallEntry> parallels = visitor.calls.stream()\n .filter(\n predicateForCallEntryType(TestVisitor.CallType.PARALLEL_BRANCH_START)\n .or(\n predicateForCallEntryType(TestVisitor.CallType.PARALLEL_BRANCH_END)))\n .collect(Collectors.toList());\n Assert.assertEquals(6, parallels.size());\n\n // Visiting from partially completed branches\n // Verify we still get appropriate parallels callbacks for a branch end\n // even if in-progress and no explicit end node\n ArrayList<FlowNode> ends = new ArrayList<>();\n ends.add(exec.getNode(\"11\"));\n ends.add(exec.getNode(\"12\"));\n ends.add(exec.getNode(\"14\"));\n Assert.assertEquals(new DepthFirstScanner().allNodes(ends).size(),\n new ForkScanner().allNodes(ends).size());\n visitor = new TestVisitor();\n f.setup(ends);\n f.visitSimpleChunks(visitor, new BlockChunkFinder());\n sanityTestIterationAndVisiter(ends);\n\n // Specifically test parallel structures\n parallels = visitor.calls.stream()\n .filter(\n predicateForCallEntryType(TestVisitor.CallType.PARALLEL_BRANCH_START)\n .or(\n predicateForCallEntryType(TestVisitor.CallType.PARALLEL_BRANCH_END)))\n .collect(Collectors.toList());\n Assert.assertEquals(6, parallels.size());\n Assert.assertEquals(18, visitor.calls.size());\n\n // Test the least common ancestor implementation with triplicate\n FlowNode[] branchHeads = {exec.getNode(\"7\"), exec.getNode(\"8\"), exec.getNode(\"9\")};\n ArrayDeque<ForkScanner.ParallelBlockStart> starts = f.leastCommonAncestor(new HashSet<>(Arrays.asList(branchHeads)));\n Assert.assertEquals(1, starts.size());\n ForkScanner.ParallelBlockStart pbs = starts.pop();\n Assert.assertEquals(exec.getNode(\"4\"), pbs.forkStart);\n Assert.assertEquals(3, pbs.unvisited.size());\n Assert.assertTrue(pbs.unvisited.contains(exec.getNode(\"7\")));\n Assert.assertTrue(pbs.unvisited.contains(exec.getNode(\"8\")));\n Assert.assertTrue(pbs.unvisited.contains(exec.getNode(\"9\")));\n }", "List<CompressResult> parallelCompress(Path input, Path output, int maxSizeInMB, int nThread) throws IOException;", "@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}", "@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}", "public static void main(String[] args) {\r\n\t\ttry {\r\n\r\n\t\t\tint loop = 300;\r\n\r\n\t\t\tlong start = System.currentTimeMillis();\r\n\r\n\t\t\tfor (int i = 0; i < loop; i++ )\r\n\t\t\t\tbyList();\r\n\r\n\t\t\tlong t1 = System.currentTimeMillis();\r\n\r\n\t\t\tfor (int i = 0; i < loop; i++ )\r\n\t\t\t\tbyStream();\r\n\r\n\t\t\tlong t2 = System.currentTimeMillis();\r\n\r\n\t\t\tSystem.out.println(\"byList: \" + (t1 - start) + \"ms\");\r\n\t\t\tSystem.out.println(\"byStream: \" + (t2 - t1) + \"ms\");\r\n\r\n\t\t} catch(FileTreatmentException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "boolean isParallel();", "@Test\n public void testParallelStressMultipleThreadsMultipleWorkersJitEnabled() throws Exception {\n Assume.assumeTrue(JitUtil.isJitSupported());\n\n testParallelStress(queryNoLimit, expectedNoLimit, 4, 4, SqlJitMode.JIT_MODE_ENABLED);\n }", "@Override public final void compute2() {\n assert _left == null && _rite == null && _res == null;\n if( _hi-_lo >= 2 ) { // Multi-chunk case: just divide-and-conquer to 1 chunk\n final int mid = (_lo+_hi)>>>1; // Mid-point\n _left = clone();\n _rite = clone();\n _left._hi = mid; // Reset mid-point\n _rite._lo = mid; // Also set self mid-point\n addToPendingCount(1); // One fork awaiting completion\n _left.fork(); // Runs in another thread/FJ instance\n _rite.compute2(); // Runs in THIS F/J thread\n return; // Not complete until the fork completes\n }\n // Zero or 1 chunks, and further chunk might not be homed here\n if( _hi > _lo ) { // Single chunk?\n Vec v0 = _fr.firstReadable();\n if( v0.chunkKey(_lo).home() ) { // And chunk is homed here?\n\n // Make decompression chunk headers for these chunks\n Chunk bvs[] = new Chunk[_fr._vecs.length];\n for( int i=0; i<_fr._vecs.length; i++ )\n if( _fr._vecs[i] != null )\n bvs[i] = _fr._vecs[i].elem2BV(_lo);\n\n // Call all the various map() calls that apply\n if( _fr._vecs.length == 1 ) map(bvs[0]);\n if( _fr._vecs.length == 2 && bvs[0] instanceof NewChunk) map((NewChunk)bvs[0], bvs[1]);\n if( _fr._vecs.length == 2 ) map(bvs[0], bvs[1]);\n if( _fr._vecs.length == 3 ) map(bvs[0], bvs[1], bvs[2]);\n if( true ) map(bvs );\n _res = self(); // Save results since called map() at least once!\n // Further D/K/V put any new vec results.\n for( Chunk bv : bvs )bv.close(_lo+_outputChkOffset,_fs);\n }\n }\n tryComplete(); // And this task is complete\n }", "public static void main(String[] args)\n\t{\n\t\tString fullFile = \"\";\n\t\tint lineAmount = 0;\n\t\ttry\n\t\t{\n\t\t\tBufferedReader br = new BufferedReader(\n\t\t\t\t\tnew FileReader(\"alice.txt\"));\n\t\t\t\n\t\t\tString st = br.readLine();\n\t\t\t//int counter = 0;\n\t\t while (st != null)\n\t\t {\n\t\t \t//fullFile[counter] = st;\n\t\t \tfullFile += st;\n\t\t \t//System.out.println(st);\n\t\t \tst = br.readLine();\n\t\t \tlineAmount++;\n\t\t \t//counter++;\n\t\t }\n\t\t br.close();\n\t\t}\n\t\tcatch(FileNotFoundException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tint processors = Runtime.getRuntime().availableProcessors();\n\t\tSystem.out.println(\"Num of processors: \" + processors);\n\t\t\n\t\tForkJoinPool forkJoinPool = new ForkJoinPool(processors);\n\t\t\n\t\tint x = fullFile.length() / processors;\n\t\t\n//\t\tint count = 0;\n//\t\tint stoppingPointForLastThread = 0;\n\t\t\n//\t\tfor(int i = 0; i < fullFile.length(); i++)\n//\t\t{\n//\t\t\tif(fullFile.charAt(i) == '\\n')\n//\t\t\t{\n//\t\t\t\tcount++;\n//\t\t\t}\n//\t\t\t\n//\t\t\tif(count >= processors)\n//\t\t\t{\n//\t\t\t\tThread t = new Thread( fullFile.substring(\n//\t\t\t\t\t\tstoppingPointForLastThread, i) );\n//\t\t\t\t\n//\t\t\t\tstoppingPointForLastThread = i;\n//\t\t\t\tcount = 0;\n//\t\t\t}\n//\t\t}\n\t\t\n\t\tint divisionOfWork = (lineAmount * 40) / processors;\n\t\t\n//\t\tThread t = new Thread( fullFile.substring(0, \n//\t\t\t\tdivisionOfWork) );\n//\t\tThread t = new Thread( \n//\t\t\t\tfullFile.substring(divisionOfWork, \n//\t\t\t\tdivisionOfWork * 2) );\n\t\t\n\t\t//FORKJOIN\n\t\tAtomicInteger wordCount = new AtomicInteger(0);\n\t\tfor(int i = 0; i < processors; i++)\n\t\t{\n\t\t\tDataParallelThread t = new DataParallelThread( \n\t\t\t\t\tfullFile.substring(divisionOfWork * i, \n\t\t\t\t\tdivisionOfWork + (divisionOfWork * i)) );\n\t\t\t\n\t\t\twordCount.getAndAdd(\n\t\t\t\t\tforkJoinPool.invoke(t).get()\n\t\t\t\t\t);\n\t\t}\n\t\tSystem.out.println(\"Word count of \\\"the\\\" is: \" + \n\t\t\t\twordCount);\n\t\t\n\t\t//THREAD\n\t\tMyThread[] threads = new MyThread[processors];\n\t\tfor(int i = 0; i < processors; i++)\n\t\t{\n\t\t\tMyThread t = new MyThread( \n\t\t\t\t\tfullFile.substring(divisionOfWork * i, \n\t\t\t\t\tdivisionOfWork + (divisionOfWork * i)) );\n\t\t\t\n\t\t\tt.run();\n\t\t\tthreads[i] = t;\n\t\t}\n\t\t\n\t\tint wordCount2 = 0;\n\t\tfor(int i = 0; i < processors; i++)\n\t\t{\n\t\t\twordCount2 += threads[i].WordCount();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Word count of \\\"the\\\" is: \" + \n\t\t\t\t\twordCount2);\n\t\t\n\t\t\n\t\t\n//\t\tint wordCount = 0;\n//\t\tfor(int i = 0; i < processors; i++)\n//\t\t{\n//\t\t\twordCount += forkJoinPool.\n//\t\t}\n\t}", "private static void backPressureChallenge() {\n\t\tObservable.range(1, 1000000)\n\t\t//below map will run in sequential\n\t\t//since sequential it has to complete whole task then only it can allow consumer to start\n\t\t\t.map(item -> {\n\t\t\t\tSystem.out.println(\"Produced item \"+item +\" using thread \"+Thread.currentThread().getName());\n\t\t\t\treturn item;\n\t\t\t})\n\t\t\t.observeOn(Schedulers.io())\n\t\t\t//.subscribeOn(Schedulers.io())//with this whole pipelein runs in seprate thread paralleley\n\t\t\t//below will run in concurrent\n\t\t\t.subscribe(item ->{\n\t\t\t\t//mimcing slowness\n\t\t\t\tThreadUtil.sleep(300);\n\t\t\t\tSystem.out.println(\"Consumed item \"+item +\" using thread \"+Thread.currentThread().getName());\n\t\t\t})\n\t\t\t\n\t\t\t;\n\t\t\n\t\t//since running in async we need to sleep\n\t\tThreadUtil.sleep(10000000);\n\t}", "public static int parallelFreq(int x, int[] A, int numThreads){\n if (A == null || numThreads < 1) return -1;\n\n //initialize multiple callables\n executorService = Executors.newFixedThreadPool(numThreads);\n\n //convert array to list\n List<Integer> totalList = new ArrayList<>();\n for (int a : A) {\n totalList.add(a);\n }\n\n //split list into several pieces\n ArrayList<ArrayList<Integer>> subLists = new ArrayList<ArrayList<Integer>>();\n\n if (A.length <= numThreads) {\n for (int i = 0; i < numThreads; ++i) {\n if (i < A.length) {\n ArrayList<Integer> cur = new ArrayList<>();\n cur.add(A[i]);\n subLists.add(cur);\n }\n }\n } else {\n int listSize = A.length / numThreads;\n int remain = A.length % numThreads;\n int begin = 0;\n int end = 0;\n for (int i = 0; i < numThreads; ++i ) {\n if (i < remain) {\n end = begin + listSize + 1;\n } else {\n end = begin + listSize;\n }\n List<Integer> cur = totalList.subList(begin, end);\n subLists.add(new ArrayList<Integer>(cur));\n begin = end;\n }\n\n }\n\n ArrayList<Future<Integer>> futures = new ArrayList<>();\n for (ArrayList<Integer> list : subLists) {\n Future<Integer> aList = executorService.submit(new Freq(x, list));\n futures.add(aList);\n }\n\n int result = 0;\n for (Future<Integer> future : futures) {\n try {\n result += future.get();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n }\n executorService.shutdown();\n\n return result;\n }", "public void compute(){\n long start = System.nanoTime();\n for(int i = 0; i < n_threads; i++){\n primeThreads[i].start();\n }\n try{\n for (int i = 0; i<n_threads; i++){\n primeThreads[i].join();\n }\n }catch (Exception e){\n System.out.println(e);\n }\n long end = System.nanoTime();\n totalRunningTime = (end-start)/1000000000.0;\n //Joining the total amount of primes\n for(int i = 0; i < n_threads; i++){\n totalPrimes += primeThreads[i].getN_primes();\n totalThreadTime += primeThreads[i].getRunningTime();\n }\n }", "public JStreamVertxParallelEoSStreamProcessor(Vertx vertx,\n WebClient webClient,\n ParallelConsumerOptions<K, V> options) {\n super(vertx, webClient, options);\n\n this.userProcessResultsStream = new ConcurrentLinkedDeque<>();\n\n this.stream = Java8StreamUtils.setupStreamFromDeque(this.userProcessResultsStream);\n }", "@Test\n public void testParallelStressSingleThreadMultipleWorkersJitEnabled() throws Exception {\n Assume.assumeTrue(JitUtil.isJitSupported());\n\n testParallelStress(queryNoLimit, expectedNoLimit, 4, 1, SqlJitMode.JIT_MODE_ENABLED);\n }", "@Override\n public void run() {\n int everyBlock = limit / THREADS;\n int end = everyBlock * threadId + 2;\n for(int i = end - everyBlock; i < end; i++){\n if(isPrime(i)){\n synchronized (primeNumbers){\n primeNumbers.add(i);\n }\n }\n }\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tdefault EagerFutureStream<Collection<U>> batchByTime(long time, TimeUnit unit) {\n\t\n\t\tint size = this.getLastActive().list().size();\n\t\tList[] list = {new ArrayList<U>()};\n\t\tint[] count = {0};\n\t\tSimpleTimer[] timer = {new SimpleTimer()};\n\t\treturn (EagerFutureStream)this.map(next-> { \n\t\t\t\tsynchronized(timer){\n\t\t\t\t\tcount[0]++;\n\t\t\t\t\tif(unit.toNanos(time)-timer[0].getElapsedNanoseconds()>0){\n\t\t\t\t\t\t\n\t\t\t\t\t\tlist[0].add(next);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tlist[0].add(next);\n\t\t\t\t\t\tList<U> result = list[0];\n\t\t\t\t\t\tlist[0] = new ArrayList<U>();\n\t\t\t\t\t\t timer[0] = new SimpleTimer();\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(count[0]==size){\n\t\t\t\t\t\tlist[0].add(next);\n\t\t\t\t\t\t\n\t\t\t\t\t\tList<U> result = list[0];\n\t\t\t\t\t\tlist[0] = new ArrayList<U>();\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t\treturn new ArrayList();\n\t\t\t\t}\n\t\t\t}\t).filter(l->l.size()>0);\n\t\t\n\t}", "public static void main(String[] args) {\n List<Integer> list = IntStream.rangeClosed(1, 1000).boxed().collect(Collectors.toList());\n Logger.getLogger(\"org.apache\").setLevel(Level.WARN);\n SparkConf conf = new SparkConf().setAppName(\"printing03\").setMaster(\"local[*]\");\n JavaSparkContext sc = new JavaSparkContext(conf);\n JavaRDD<Integer> rddList = sc.parallelize(list);\n JavaRDD<Double> sqrtRdd = rddList.map(i -> Math.sqrt(i));\n //sqrtRdd.foreach(System.out::println); /*java.io.NotSerializableException: java.io.PrintStream println is non serializble*/\n\n //solution -> collect all to single core and print using streams\n sqrtRdd.collect().forEach(System.out::println);\n sc.close();\n }", "@Test\n public void bigDataInMap() throws Exception {\n\n final byte[] data = new byte[16 * 1024 * 1024]; // 16 MB\n rnd.nextBytes(data); // use random data so that Java does not optimise it away\n data[1] = 0;\n data[3] = 0;\n data[5] = 0;\n\n CollectingSink resultSink = new CollectingSink();\n\n StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();\n env.setParallelism(1);\n\n DataStream<Integer> src = env.fromElements(1, 3, 5);\n\n src.map(\n new MapFunction<Integer, String>() {\n private static final long serialVersionUID = 1L;\n\n @Override\n public String map(Integer value) throws Exception {\n return \"x \" + value + \" \" + data[value];\n }\n })\n .addSink(resultSink);\n\n JobGraph jobGraph = StreamingJobGraphGenerator.createJobGraph(env.getStreamGraph());\n\n final RestClusterClient<StandaloneClusterId> restClusterClient =\n new RestClusterClient<>(\n MINI_CLUSTER_RESOURCE.getClientConfiguration(),\n StandaloneClusterId.getInstance());\n\n try {\n submitJobAndWaitForResult(restClusterClient, jobGraph, getClass().getClassLoader());\n\n List<String> expected = Arrays.asList(\"x 1 0\", \"x 3 0\", \"x 5 0\");\n\n List<String> result = CollectingSink.result;\n\n Collections.sort(expected);\n Collections.sort(result);\n\n assertEquals(expected, result);\n } finally {\n restClusterClient.close();\n }\n }", "protected static double parManyTaskArraySum(final double[] input,\n final int numTasks) {\n sum = 0;\n\n// final int chunk = 0;\n// final int nChunks = 0;\n// final int nElements = 0;\n int chunkSize = getChunkSize(SEQUENTIAL_THRESHOLD, input.length);\n\n\n ForkJoinPool pool = new ForkJoinPool(numTasks);\n // Compute sum of reciprocals of array elements\n pool.submit(() -> {\n for (int i = 0; i < input.length; i++) {\n sum += 1 / input[i];\n }\n });\n return sum;\n }", "public static List<TweetWithSentiment> checkTweetListAgainstWordlistParallel(List<TweetWithSentiment> tweetList, String[] wordList) {\n\n // List of Tweets to be returned to caller\n List<TweetWithSentiment> problematicTweets = new ArrayList<>();\n\n // Loop through each tweet in the passed list of tweets\n // Parallelization of forEach loop\n tweetList.parallelStream().forEach(tweet -> {\n\n // Initialise boolean to check whether a tweet is contained in list\n boolean alreadyContainedInList = false;\n\n // Loop through prohibited words list, if any tweets contain prohibited word, increment count\n for (String problematicWord : wordList) {\n if (RegexToAWordInTweet.regexToAWordInTweet(problematicWord, tweet.tweetText)) {\n\n // check if we have saved any problem tweets, if not just add tweet to the list\n if (problematicTweets.size() > 0) {\n\n // loop through problem tweets, check if tweet id is already present,\n // if it is, then dont add it again\n for (TweetWithSentiment checkTweet : problematicTweets) {\n\n // Gets each tweet in the problematic tweets list,\n // used for checking if tweet is already in list\n // Check whether the current tweets id is\n // already in the problematic tweet list,\n // if it is then flag is set to true, if not it will remain false\n if (tweet.id.equals(checkTweet.id)) {\n alreadyContainedInList = true;\n break;\n }\n }\n\n // if the tweet isn't already in the list ,add it\n if (!alreadyContainedInList) {\n problematicTweets.add(tweet);\n }\n\n // after checking if it's in list, reset flag for next comparison\n alreadyContainedInList = false;\n\n // If we haven't saved any tweets yet, just save it\n } else {\n problematicTweets.add(tweet);\n }\n }\n }\n });\n\n // Sort list & return sorted list to method caller\n problematicTweets.sort(Comparator.comparing(TweetWithSentiment::getId).reversed());\n return problematicTweets;\n }", "private static void threadPoolWithExecute() {\n\n Executor executor = Executors.newFixedThreadPool(3);\n IntStream.range(1, 10)\n .forEach((i) -> {\n executor.execute(() -> {\n System.out.println(\"started task for id - \"+i);\n try {\n if (i == 8) {\n Thread.sleep(4000);\n } else {\n Thread.sleep(1000);\n }\n System.out.println(\"In runnable task for id -\" + i);\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n });\n System.out.println(\"End of method .THis gets printed immdly since execute is not blocking call\");\n }", "private static void doStream() {\n ArrayList<Person> personCopy = new ArrayList<>(person);\n long l = System.currentTimeMillis();\n long ans = personCopy.stream().filter(p -> p.getHeight() > 180).count();\n System.out.println(\"doStream(): \" + ans);\n long e = System.currentTimeMillis();\n System.out.println(\"Cost time: \" + (e - l) + \"ms\");\n System.out.println(\"----------------------------\");\n }", "public static void main(String[] args) throws IOException {\n long startTime = System.nanoTime();\n ParallelStreaming main = new ParallelStreaming();\n main.run(\"referenceGenes.list\", \"Ecoli\");\n\n long runTime = System.nanoTime() - startTime;\n\n for (Map.Entry<String, Sigma70Consensus> entry : main.consensus.entrySet()) {\n System.out.println(entry.getKey() + \" \" + entry.getValue());\n }\n\n System.out.println(\"Total runtime: \" + runTime / 1000000000f + \" seconds\");\n }", "@Test\n public void testParallelStressMultipleThreadsSingleWorkerJitEnabled() throws Exception {\n Assume.assumeTrue(JitUtil.isJitSupported());\n\n testParallelStress(queryNoLimit, expectedNoLimit, 1, 4, SqlJitMode.JIT_MODE_ENABLED);\n }", "public void testConsumer ()\n {\n\n List<String> list = new ArrayList<>();\n list.add(\"ccc\");\n list.add(\"bbb\");\n list.add(\"ddd\");\n list.add(\"DDDD\");\n list.add(\"ccc\");\n list.add(\"aaa\");\n list.add(\"eee\");\n\n// Collections.sort(list);\n// Collections.sort(list, (s, s2) -> s.toLowerCase().compareTo(s2.toLowerCase()));\n\n// list.sort((s, s2) -> s.compareTo(s2));\n// list.sort((s, s2) -> s.toLowerCase().compareTo(s2.toLowerCase()));\n\n// list.forEach(s -> System.out.println(s));\n// list.forEach(s -> System.out.println(s));\n\n\n// Predicate<String> predicate2 = s -> s.length()>3;\n// System.out.println(\"predicate2.test(\\\"DDDD\\\") = \" + predicate2.test(\"DDDD\"));\n\n// Stream<String> stringStream = list.stream();\n// stringStream.forEach(s -> System.out.println(s));\n// stringStream.forEach(s -> System.out.println(s));//会报错\n\n// list.stream().forEach(s -> System.out.println(s));\n// list.stream().forEach(s -> System.out.println(s));\n\n //并行流是无序的\n// list.parallelStream().forEach(s -> System.out.println(s));\n// list.parallelStream().forEach(s -> System.out.println(s));\n\n// list.stream().skip(3).forEach(s -> System.out.println(s));\n// list.stream().distinct().forEach(s -> System.out.println(s));\n// System.out.println(\"list.stream().count() = \" + list.stream().count());\n// list.stream().limit(2).forEach(s -> System.out.println(s));\n\n// list.stream().filter(s -> s.length()<4).forEach(s -> System.out.println(s));\n\n// BiFunction<Integer, String, Person> bf = Person::new;\n// BiFunction<Integer, String, Person> bf = (n, s) -> new Person(s);\n\n// Person aaa = bf.apply();\n\n// System.out.println(\"aaa = \" + bf.apply(0, \"aaa\"));\n \n }", "@Override public final void compute2() {\n _t0 = System.nanoTime();\n assert _left == null && _rite == null && _res == null;\n _profile._mapstart = System.currentTimeMillis();\n if( _hi-_lo >= 2 ) { // Multi-chunk case: just divide-and-conquer to 1 chunk\n final int mid = (_lo+_hi)>>>1; // Mid-point\n _left = clone();\n _rite = clone();\n _left._profile = new MRProfile(this);\n _rite._profile = new MRProfile(this);\n _left._hi = mid; // Reset mid-point\n _rite._lo = mid; // Also set self mid-point\n addToPendingCount(1); // One fork awaiting completion\n _left.fork(); // Runs in another thread/FJ instance\n _rite.compute2(); // Runs in THIS F/J thread\n _profile._mapdone = System.currentTimeMillis();\n return; // Not complete until the fork completes\n }\n // Zero or 1 chunks, and further chunk might not be homed here\n if( _hi > _lo ) { // Single chunk?\n Vec v0 = _fr.anyVec();\n if( _run_local || v0.chunkKey(_lo).home() ) { // And chunk is homed here?\n\n // Make decompression chunk headers for these chunks\n Vec vecs[] = _fr.vecs();\n Chunk bvs[] = new Chunk[vecs.length];\n NewChunk [] appendableChunks = null;\n for( int i=0; i<vecs.length; i++ )\n if( vecs[i] != null ) {\n assert _run_local || vecs[i].chunkKey(_lo).home()\n : \"Chunk=\"+_lo+\" v0=\"+v0+\", k=\"+v0.chunkKey(_lo)+\" v[\"+i+\"]=\"+vecs[i]+\", k=\"+vecs[i].chunkKey(_lo);\n try{\n bvs[i] = vecs[i].chunkForChunkIdx(_lo);\n } catch(Throwable t){\n System.err.println(\"missing chunk in MRTask \" + getClass().getName());\n t.printStackTrace();\n throw new RuntimeException(t);\n }\n }\n if(_noutputs > 0){\n final VectorGroup vg = vecs[0].group();\n _appendables = new AppendableVec[_noutputs];\n appendableChunks = new NewChunk[_noutputs];\n for(int i = 0; i < _appendables.length; ++i){\n _appendables[i] = new AppendableVec(vg.vecKey(_vid+i),new long[4],0);\n appendableChunks[i] = (NewChunk)_appendables[i].chunkForChunkIdx(_lo);\n }\n }\n // Call all the various map() calls that apply\n _profile._userstart = System.currentTimeMillis();\n if( _fr.vecs().length == 1 ) map(bvs[0]);\n if( _fr.vecs().length == 2 ) map(bvs[0], bvs[1]);\n if( _fr.vecs().length == 3 ) map(bvs[0], bvs[1], bvs[2]);\n if( true ) map(bvs );\n if(_noutputs == 1){ // convenience versions for cases with single output.\n if( _fr.vecs().length == 1 ) map(bvs[0], appendableChunks[0]);\n if( _fr.vecs().length == 2 ) map(bvs[0], bvs[1],appendableChunks[0]);\n if( _fr.vecs().length == 3 ) map(bvs[0], bvs[1], bvs[2],appendableChunks[0]);\n if( true ) map(bvs, appendableChunks[0]);\n }\n if(_noutputs == 2){ // convenience versions for cases with 2 outputs (e.g split).\n if( _fr.vecs().length == 1 ) map(bvs[0], appendableChunks[0],appendableChunks[1]);\n if( _fr.vecs().length == 2 ) map(bvs[0], bvs[1],appendableChunks[0],appendableChunks[1]);\n if( _fr.vecs().length == 3 ) map(bvs[0], bvs[1], bvs[2],appendableChunks[0],appendableChunks[1]);\n if( true ) map(bvs, appendableChunks[0],appendableChunks[1]);\n }\n map(bvs,appendableChunks);\n _res = self(); // Save results since called map() at least once!\n // Further D/K/V put any new vec results.\n _profile._closestart = System.currentTimeMillis();\n for( Chunk bv : bvs ) bv.close(_lo,_fs);\n if(_noutputs > 0) for(NewChunk nch:appendableChunks)nch.close(_lo, _fs);\n }\n }\n _profile._mapdone = System.currentTimeMillis();\n tryComplete(); // And this task is complete\n }", "@Override\n\tpublic void run() {\n\t\tresult =\n\t\t\tStream.iterate(new int[]{0, 1}, s -> new int[]{s[1], s[0] + s[1]})\n\t\t\t\t.limit(limit)\n\t\t\t\t.map(n -> n[0])\n\t\t\t\t.collect(toList());\n\n\t}", "@Issue(\"JENKINS-38536\")\n @Test\n public void testPartlyCompletedParallels() throws Exception {\n String jobScript = \"\"+\n \"echo 'first stage'\\n\" +\n \"parallel 'long' : { sleep 60; }, \\n\" + // Needs to be in-progress\n \" 'short': { sleep 2; }\"; // Needs to have completed, and SemaphoreStep alone doesn't cut it\n\n // This must be amateur science fiction because the exposition for the setting goes on FOREVER\n ForkScanner scan = new ForkScanner();\n TestVisitor tv = new TestVisitor();\n WorkflowJob job = r.jenkins.createProject(WorkflowJob.class, \"parallelTimes\");\n job.setDefinition(new CpsFlowDefinition(jobScript, true));\n WorkflowRun run = job.scheduleBuild2(0).getStartCondition().get();\n Thread.sleep(4000); // Allows enough time for the shorter branch to finish and write its BlockEndNode\n FlowExecution exec = run.getExecution();\n List<FlowNode> heads = exec.getCurrentHeads();\n scan.setup(heads);\n scan.visitSimpleChunks(tv, new NoOpChunkFinder());\n FlowNode endNode = exec.getNode(tv.filteredCallsByType(TestVisitor.CallType.PARALLEL_END).get(0).getNodeId().toString());\n Assert.assertEquals(\"sleep\", endNode.getDisplayFunctionName());\n sanityTestIterationAndVisiter(heads);\n run.doKill(); // Avoid waiting for long branch completion\n }", "@Test\n public void testParallelOnce() {\n final int count = 100000;\n final int threads = 4;\n final int perThread = count / threads;\n Cache<Integer, Integer> c =\n builder()\n .entryCapacity(-1)\n .weigher((key, value) -> value)\n .maximumWeight(MAX_VALUE)\n .build();\n AtomicInteger offset = new AtomicInteger();\n Runnable inserter = () -> {\n int start = offset.getAndAdd(perThread);\n int end = start + perThread;\n for (int i = start; i < end; i++) {\n c.put(i, i);\n }\n for (int i = start; i < end; i++) {\n c.remove(i);\n }\n };\n ThreadingStressTester tst = new ThreadingStressTester();\n tst.setOneShotMode(true);\n tst.setOneShotTimeoutMillis(MAX_FINISH_WAIT_MILLIS);\n tst.addTask(threads, inserter);\n tst.run();\n assertThat(getInfo().getTotalWeight())\n .as(\"total weight is 0\")\n .isEqualTo(0);\n }", "@Test\n public void testThread() {\n\n Thread thread1 = new Thread(() -> {\n //i++;\n for (int j = 0; j < 2000000; j++) {\n (this.i)++;\n }\n });\n\n Thread thread2 = new Thread(() -> {\n //System.out.println(\"i = \" + i);\n for (int j = 0; j < 2000000; j++) {\n System.out.println(\"i = \" + this.i);\n }\n });\n\n thread1.start();\n thread2.start();\n /*for (int j = 0; j < 20; j++) {\n thread1.start();\n thread2.start();\n }*/\n\n\n /* ValueTask valueTask = new ValueTask();\n PrintTask printTask = new PrintTask();*/\n\n /*for (int i = 0; i < 20; i++) {\n Worker1 worker1 = new Worker1(valueTask);\n Worker2 worker2 = new Worker2(printTask);\n\n worker1.start();\n worker2.start();\n }*/\n\n }", "@Test\n public void onlyWithMap(){\n Observable<Observable<PhoneNumber>> usersPhonesNumbers = costService\n .findUserInDepartment(DEPARTMENT_ID)\n .map(costService::findPhoneNumber);//<-- returns observable\n\n //Strange type here :o\n Observable<Observable<BigDecimal>> priceStream = usersPhonesNumbers\n .map(phones -> phones.map(costService::getPricePerSmsForNumber));\n\n Observable<BigDecimal> costPerPerson = priceStream.map(userPhones -> userPhones.reduce(ZERO, BigDecimal::add).blockingGet());//blockingGet<---only one difference in comparison to streams\n\n BigDecimal totalCost = costPerPerson.reduce(ZERO, BigDecimal::add).blockingGet(); //blockingGet<---only one difference in comparison to streams\n log.info(\"Total cost of sending SMSes to all users all phones {}\", totalCost);\n }", "public static void main(String[] args) {\n\t\n\t\tm(\"Iterate\", () -> {\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tSupplier<IntStream>[] sArr = (Supplier<IntStream>[])new Supplier[] {\n\t\t\t\t() -> IntStream.iterate(2, i -> 2 * i),\n\t\t\t\t() -> IntStream.iterate(10, i -> i - 1),\n\t\t\t\t() -> IntStream.iterate(10, i -> i),\n\t\t\t\t() -> IntStream.iterate(10, i -> 2),\n\t\t\t\t() -> IntStream.iterate(42, IntUnaryOperator.identity()),\n\t\t\t\t() -> IntStream.iterate(42, IntUnaryOperator.identity().andThen(IntUnaryOperator.identity())),\n\t\t\t};\n\t\t\tStream.of(sArr).forEach(supplier -> supplier.get().limit(10).forEach(System.out::println));\n\t\t});\n\t\t\n\t\t\n\t\t//Various IntStream generations. generate produces elements without input => it uses an IntSupplier.\n\t\t\n\t\tSystem.out.println(\"---------------------------------------------\");\n\t\t\n\t\tm(\"Generate\", () -> {\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tSupplier<IntStream>[] sArr = (Supplier<IntStream>[])new Supplier[] {\n\t\t\t\t() -> IntStream.generate(() -> new Random().nextInt()),\n\t\t\t\t() -> IntStream.generate(() -> new Random().nextInt()).filter(n -> n >= 0),\n\t\t\t\t() -> IntStream.generate(() -> 10),\n\t\t\t\t() -> IntStream.generate(() -> new Random().nextInt() % 20).filter(n -> n >= 0)\n\t\t\t};\n\t\t\tStream.of(sArr).forEach(supplier -> {supplier.get().limit(10).forEach(System.out::println); System.out.println(\"--------------------------------\");});\n\t\t});\n\t\t\n\t\t\n\t\t//Iterate and generate for DoubleStream, LongStream and Stream<T>\n\t\t\n\t\t\n\t\tm(\"DoubleStream iterate and generate\", () -> {\t\t\n\t\t\tDoubleStream.iterate(1, d -> d + d / 2).limit(20).forEach(System.out::println); //Uses DoubleUnaryOperator\n\t\t\tSystem.out.println(\"-------------------------\");\n\t\t\tDoubleStream.generate(() -> new Random().nextDouble()).limit(5).forEach(System.out::println); //Uses DoubleSupplier\n\t\t});\n\t\t\n\t\tm(\"LongStream iterate and generate\", () -> {\t\t\n\t\t\tLongStream.iterate(2, n -> n * n).limit(4).forEach(System.out::println); //Uses LongUnaryOperator\n\t\t\tSystem.out.println(\"-------------------------\");\n\t\t\tDoubleStream.generate(() -> new Random().nextLong()).limit(5).forEach(System.out::println); //Uses LongSupplier\n\t\t});\n\t\t\n\t\tm(\"Stream iterate and generate\", () -> {\t\t\n\t\t\tStream.<List<Object>>iterate(new ArrayList<Object>(), l -> {l.add(1); return l;}).limit(4).forEach(System.out::println); //Uses UnaryOperator\n\t\t\tSystem.out.println(\"-------------------------\");\n\t\t\tStream.<List<Object>>generate(() -> new ArrayList<Object>()).limit(4).forEach(System.out::println); //Uses Supplier\n\t\t});\n\t\t\n\t\tm(\"noneMatch\", () -> {\t\t\n\t\t\tStream<String> stream = Stream.<String>iterate(\"-\", s -> s + s);\n\t\t\tPredicate<String> predicate = s -> s.length() > 3;\n\t\t\tSystem.out.println(stream.noneMatch(predicate)); //Note: this is not infinite. None match will fail as soon as one element is found\n\t\t});\n\t\t\n\t\tm(\"allMatch\", () -> {\t\t\n\t\t\tStream<String> stream = Stream.<String>iterate(\"-\", s -> s + s);\n\t\t\tPredicate<String> predicate = s -> s.length() > 0;\n\t\t\tPredicate<String> predicate2 = s -> s.length() > 3;\n\t\t\t//System.out.println(stream.allMatch(predicate)); //Note: This is infinite and will fail with OOM error\n\t\t\tSystem.out.println(stream.allMatch(predicate2)); //Note how this will return as the first element does not match so false can be returned\n\t\t});\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tList<String> list = Arrays.asList(\"Mukesh\", \"Vishal\", \"Amar\");\n\t\tString result = list.parallelStream().collect(StringBuilder::new,\n\t\t\t\t(response, element) -> response.append(\" \").append(element),\n\t\t\t\t(response1, response2) -> response1.append(\",\").append(response2.toString())).toString();\n\t\tSystem.out.println(\"Result: \" + result);\n\t}", "default <T> EagerFutureStream<T> sync(Function<EagerReact,EagerFutureStream<T>> react){\n\t\t EagerReact r =SequentialElasticPools.eagerReact.nextReactor().withAsync(false);\n\t\t return react.apply( r)\n\t\t\t\t \t.onFail(e->{ SequentialElasticPools.eagerReact.populate(r); throw e;})\n\t\t\t\t \t.peek(i->SequentialElasticPools.eagerReact.populate(r));\n\t\t \t\t\t\t \t\n\t}", "@Test\n public void streamApiTest(){\n Collection<Integer> myCollection=initializeIntCollection(3,5);\n\n long sumOfOddValues3times=myCollection.stream().\n filter(o -> o % 2 ==1). // for all odd numbers\n mapToInt(o -> o*3). // multiply their value on 3\n sum(); // and return their sum (reduce operation)\n Assert.assertEquals((3+5+7)*3, sumOfOddValues3times);\n\n Optional<Integer> sumOfModulesOn3= myCollection.stream().\n filter( o -> o % 3 ==0).\n reduce((sum, o) -> sum = sum + o);\n Assert.assertEquals(new Integer(3+6), sumOfModulesOn3.get());\n\n\n\n Collection<Integer> evenCollection=new ArrayList<>();\n myCollection.\n stream().\n filter(o -> o % 2 == 0).\n forEach((i) -> evenCollection.add(i));\n }", "@Override\n public void run() {\n for (int i = start; i < end; i++) {\n Node node = nodes.get(i);\n //Filter out nearby crime\n List<Crime> relatedCrimes = crimes.parallelStream()\n .filter((crime) -> Math.abs(crime.getLongitude() - node.getLongitude()) < 0.04) //1.72 miles in coordinate representation\n .filter((crime -> Math.abs(crime.getLatitude() - node.getLatitude()) < 0.04))\n .collect(Collectors.toList());\n for (Crime crime : relatedCrimes) {\n GKDE.gaussianKDEAccumulate(crime, node);\n }\n GKDE.gaussianKDEResult(node, 10);\n }\n //release the latch\n latch.countDown();\n }", "protected abstract List<List<SearchResults>> processStream();", "@Test\n public void testParallelPropagationLoopBack3SitesNtoNTopologyPutFromOneDS() {\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(1));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(2, lnPort));\n Integer tkPort = vm2.invoke(() -> WANTestBase.createFirstRemoteLocator(3, lnPort));\n\n createCacheInVMs(lnPort, vm3, vm6);\n createCacheInVMs(nyPort, vm4, vm7);\n createCacheInVMs(tkPort, vm5);\n vm3.invoke(WANTestBase::createReceiver);\n vm4.invoke(WANTestBase::createReceiver);\n vm5.invoke(WANTestBase::createReceiver);\n\n // site1\n vm3.invoke(() -> WANTestBase.createSender(\"ln1\", 2, true, 100, 10, false, false, null, true));\n vm6.invoke(() -> WANTestBase.createSender(\"ln1\", 2, true, 100, 10, false, false, null, true));\n\n vm3.invoke(() -> WANTestBase.createSender(\"ln2\", 3, true, 100, 10, false, false, null, true));\n vm6.invoke(() -> WANTestBase.createSender(\"ln2\", 3, true, 100, 10, false, false, null, true));\n\n // site2\n vm4.invoke(() -> WANTestBase.createSender(\"ny1\", 1, true, 100, 10, false, false, null, true));\n vm7.invoke(() -> WANTestBase.createSender(\"ny1\", 1, true, 100, 10, false, false, null, true));\n\n vm4.invoke(() -> WANTestBase.createSender(\"ny2\", 3, true, 100, 10, false, false, null, true));\n vm7.invoke(() -> WANTestBase.createSender(\"ny2\", 3, true, 100, 10, false, false, null, true));\n\n // site3\n vm5.invoke(() -> WANTestBase.createSender(\"tk1\", 1, true, 100, 10, false, false, null, true));\n vm5.invoke(() -> WANTestBase.createSender(\"tk2\", 2, true, 100, 10, false, false, null, true));\n\n // create PR\n vm3.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln1,ln2\", 0,\n 1, isOffHeap()));\n vm6.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln1,ln2\", 0,\n 1, isOffHeap()));\n\n vm4.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny1,ny2\", 0,\n 1, isOffHeap()));\n vm7.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny1,ny2\", 0,\n 1, isOffHeap()));\n\n vm5.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"tk1,tk2\", 0,\n 1, isOffHeap()));\n\n // start all the senders\n vm3.invoke(() -> WANTestBase.startSender(\"ln1\"));\n vm3.invoke(() -> WANTestBase.startSender(\"ln2\"));\n vm6.invoke(() -> WANTestBase.startSender(\"ln1\"));\n vm6.invoke(() -> WANTestBase.startSender(\"ln2\"));\n\n vm4.invoke(() -> WANTestBase.startSender(\"ny1\"));\n vm4.invoke(() -> WANTestBase.startSender(\"ny2\"));\n vm7.invoke(() -> WANTestBase.startSender(\"ny1\"));\n vm7.invoke(() -> WANTestBase.startSender(\"ny2\"));\n\n vm5.invoke(() -> WANTestBase.startSender(\"tk1\"));\n vm5.invoke(() -> WANTestBase.startSender(\"tk2\"));\n\n // pause senders on all the sites\n vm3.invoke(() -> WANTestBase.pauseSender(\"ln1\"));\n vm3.invoke(() -> WANTestBase.pauseSender(\"ln2\"));\n vm6.invoke(() -> WANTestBase.pauseSender(\"ln1\"));\n vm6.invoke(() -> WANTestBase.pauseSender(\"ln2\"));\n\n vm4.invoke(() -> WANTestBase.pauseSender(\"ny1\"));\n vm4.invoke(() -> WANTestBase.pauseSender(\"ny2\"));\n vm7.invoke(() -> WANTestBase.pauseSender(\"ny1\"));\n vm7.invoke(() -> WANTestBase.pauseSender(\"ny2\"));\n\n vm5.invoke(() -> WANTestBase.pauseSender(\"tk1\"));\n vm5.invoke(() -> WANTestBase.pauseSender(\"tk2\"));\n\n // this is required since sender pause doesn't take effect immediately\n Wait.pause(1000);\n\n // do puts on site1\n vm3.invoke(() -> WANTestBase.doPuts(getTestMethodName() + \"_PR\", 100));\n\n // verify queue size on site1 and site3\n vm3.invoke(() -> WANTestBase.verifyQueueSize(\"ln1\", 100));\n vm3.invoke(() -> WANTestBase.verifyQueueSize(\"ln2\", 100));\n\n // resume sender (from site1 to site2) on site1\n vm3.invoke(() -> WANTestBase.resumeSender(\"ln1\"));\n vm6.invoke(() -> WANTestBase.resumeSender(\"ln1\"));\n\n // validate region size on site2\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 100));\n\n // verify queue size on site2 (sender 2 to 1)\n // should remain at 0 as the events from site1 should not go back to site1\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny1\", 0));\n\n // verify queue size on site2 (sender 2 to 3)\n // should remain at 0 as events from site1 will reach site3 directly..site2 need not send to\n // site3 again\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny2\", 0));\n\n // do more puts on site3\n vm5.invoke(() -> WANTestBase.doPutsFrom(getTestMethodName() + \"_PR\", 100, 200));\n\n // resume sender (from site3 to site2) on site3\n vm5.invoke(() -> WANTestBase.resumeSender(\"tk2\"));\n\n // validate region size on site2\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n\n // verify queue size on site2 (sender 2 to 3)\n // should remain at 0 as the events from site3 should not go back to site3\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny2\", 0));\n\n // verify queue size on site2 (sender 2 to 1)\n // should remain at 0 as events from site3 will reach site1 directly..site2 need not send to\n // site1 again\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny1\", 0));\n\n // resume all senders\n vm3.invoke(() -> WANTestBase.resumeSender(\"ln2\"));\n vm6.invoke(() -> WANTestBase.resumeSender(\"ln2\"));\n\n vm4.invoke(() -> WANTestBase.resumeSender(\"ny1\"));\n vm4.invoke(() -> WANTestBase.resumeSender(\"ny2\"));\n vm7.invoke(() -> WANTestBase.resumeSender(\"ny1\"));\n vm7.invoke(() -> WANTestBase.resumeSender(\"ny2\"));\n\n vm5.invoke(() -> WANTestBase.resumeSender(\"tk1\"));\n\n // validate region size on all sites\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n vm5.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n }", "static public void main(String[] args) throws Throwable {\n /*\n Stream.of(mOneShotInputStrings)\n .parallel()\n .forEach(arrayOfStrings -> \n Stream.of(arrayOfStrings)\n .parallel()\n .forEach(string -> \n Stream.of(mWordList)\n .parallel()\n .map(word -> WordMatcher.search(word, string))\n .forEach(results -> results.print())));\n } */\n \n printDebugging(\"Starting SearchStreamGangTest\");\n \n // Create/run appropriate type of StreamGang to search for words.\n Stream.of(TestsToRun.values())\n .forEach(test -> {\n printDebugging(\"Starting \" + test); \n makeStreamGang(mWordList, test).run(); \n printDebugging(\"Ending \" + test);\n });\n \n printDebugging(\"Ending SearchStreamGangTest\"); \n\t}", "static <T> EagerFutureStream<T> eagerFutureStream(Iterator<T> iterator) {\n\t\treturn eagerFutureStream(StreamSupport.stream(\n\t\t\t\tspliteratorUnknownSize(iterator, ORDERED), false));\n\t}", "@Test\n public void nextConcurrently() throws Exception {\n doReturn(10).when(domain).getAcquireBlockSize();\n\n sequenceService.register(domain);\n\n List<Future<Long>> result = new ArrayList<>();\n\n int attempts = 2;\n for (int j = 0; j < attempts; j++) {\n CountDownLatch syncLatch = new CountDownLatch(poolSize);\n CountDownLatch setUpLatch = new CountDownLatch(1);\n CountDownLatch endLatch = new CountDownLatch(poolSize);\n\n\n for (int i = 0; i < poolSize; i++) {\n Future<Long> fut = executorService.submit(() -> {\n syncLatch.countDown();\n setUpLatch.await();\n\n long next = sequenceService.next(domain);\n\n endLatch.countDown();\n\n return next;\n });\n\n\n result.add(fut);\n }\n\n syncLatch.await();\n setUpLatch.countDown();\n endLatch.await();\n }\n List<Long> sequences = result.stream()\n .map(r -> Futures.getUnchecked(r))\n .collect(Collectors.toList());\n\n assertEquals(poolSize * attempts, result.size(), () -> {\n return sequences.toString();\n });\n\n LoggerFactory.getLogger(getClass()).debug(\"Sequences: {}\", sequences);\n\n for (int i = 0; i < poolSize; i++) {\n for (int attempt = 1; attempt <= attempts; attempt++) {\n long expectedVal = (i * 10 + attempt);\n assertTrue(sequences.contains(expectedVal), () -> {\n return String.format(\"Expected %d in %s\", expectedVal, sequences);\n });\n }\n }\n }", "private static void useFixedSizePool(){\n ExecutorService executor = Executors.newFixedThreadPool(10);\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n IntStream.range(0, 20).boxed().forEach(i -> {\n executor.execute(() -> {\n sleepSeconds(10);\n System.out.println(Thread.currentThread().getName() + \"[\" + i + \"]\");\n });\n });\n sleepSeconds(1);\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n }", "default <T> EagerFutureStream<T> async(Function<EagerReact,EagerFutureStream<T>> react){\n\t\t EagerReact r =ParallelElasticPools.eagerReact.nextReactor().withAsync(true);\n\t\treturn react.apply( r)\n\t\t\t\t\t.onFail(e->{ SequentialElasticPools.eagerReact.populate(r); throw e;})\n\t\t\t\t\t.peek(i->SequentialElasticPools.eagerReact.populate(r));\n\t\t \t\n\t}", "public void runOneIteration() {\n // Update user latent vectors\n\n //IntStream.range(0,userCount).peek(i->update_user(i)).forEach(j->{});\n\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n\n // Update item latent vectors\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n }", "public static void main(String[] args) {\n\t\tScanner sc =new Scanner(System.in);\n\t\tBigInteger n=sc.nextBigInteger();\n\t\tBigInteger k=sc.nextBigInteger();\n\t\t\n\t\ttriangle task3=new triangle(n,k);\n\t\tdouble s = System.currentTimeMillis();\n\t\tBigInteger r =task3.recurse(n, k);\n\t\tdouble e = System.currentTimeMillis();\n\t\tdouble totalTime3 = e - s;\n\t\t\n\t\tForkJoinPool pool=new ForkJoinPool(1);\n\t\ttriangle task=new triangle(n,k);\n\t\tdouble shuru = System.currentTimeMillis();\n\t\tBigInteger yo=pool.invoke(task);\n\t\tdouble khatam = System.currentTimeMillis();\n\t\tdouble yolo = khatam - shuru;\n\t\t\n\t\tSystem.out.println(yolo/totalTime3);\n\t\tSystem.out.println(yo);\n\t\t\n\t\tForkJoinPool pooll=new ForkJoinPool(2);\n\t\ttriangle taskk=new triangle(n,k);\n\t\tdouble shuruu = System.currentTimeMillis();\n\t\tBigInteger yoo=pooll.invoke(taskk);\n\t\tdouble khatamm = System.currentTimeMillis();\n\t\tdouble yoloo = khatamm - shuruu;\n\t\t\n\t\tSystem.out.println(yoloo/totalTime3);\n\t\tSystem.out.println(yoo);\n\t\t\n\t\tForkJoinPool poolll=new ForkJoinPool(3);\n\t\ttriangle taskkk=new triangle(n,k);\n\t\tdouble shuruuu = System.currentTimeMillis();\n\t\tBigInteger yooo=poolll.invoke(taskkk);\n\t\tdouble khatammm = System.currentTimeMillis();\n\t\tdouble yolooo = khatammm - shuruuu;\n\t\t\n\t\tSystem.out.println(yolooo/totalTime3);\n\t\tSystem.out.println(yooo);\n\t\t\n\t\tSystem.out.println(\"Ratio of time for 2nd by 1st Thread pool-\");\n\t\tSystem.out.println(yoloo/yolo);\n\t\t\n\t\tSystem.out.println(\"Ratio of time for 3rd by 1st Thread pool-\");\n\t\tSystem.out.println(yolooo/yolo);\n\t}", "private void PrepareAll(TweetPreprocessor tweetPreprocessor, String Datasetpath) throws IOException\n\t{\n\t\tCSVParser parser = new CSVParser(new FileReader(Datasetpath),CSVFormat.EXCEL.withFirstRecordAsHeader());\n\n\t\tExecutorService threadpool = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());\n\t\tfinal ConcurrentHashMap<String, String> txtHashMap = new ConcurrentHashMap<>();\n\t\tfinal ConcurrentHashMap<String, String> featHashMap = new ConcurrentHashMap<>();\n\t\tfinal ConcurrentHashMap<String, String> compHashMap = new ConcurrentHashMap<>();\n\t\tfinal ConcurrentHashMap<String, String> lexHashMap = new ConcurrentHashMap<>();\n\n\t\tint count = 0;\n\t\tfor (CSVRecord record : parser.getRecords())\n\t\t{\n\t\t\tSystem.out.println(\"Adding Task = \" + count);\n\t\t\tint finalCount = count;\n\n\t\t\tif (count == 17000)\n\t\t\t\tbreak;\n\t\t\tthreadpool.execute(() ->\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Current Executing task : \" + finalCount);\n\t\t\t\tInstance tweet = new Instance(record.get(\"event\"),record.get(\"target\"),null,null);\n\t\t\t\tInstance[] preparedinstances = tweetPreprocessor.startProc(tweet);\n\n\t\t\t\ttxtHashMap.put(preparedinstances[0].getData().toString(), record.get(\"target\"));\n\t\t\t\tfeatHashMap.put(preparedinstances[1].getData().toString(), record.get(\"target\"));\n\t\t\t\tcompHashMap.put(preparedinstances[2].getData().toString(), record.get(\"target\"));\n\t\t\t\tlexHashMap.put(preparedinstances[3].getData().toString(), record.get(\"target\"));\n\t\t\t});\n\t\t\tcount++;\n\t\t}\n\t\t//Initiates an orderly shutdown in which previously submitted tasks are executed,\n //but no new tasks will be accepted\n\t\tthreadpool.shutdown();\n\n\t\twhile (!threadpool.isTerminated());\n\t\tSystem.out.println(\"ThreadPool is shutdown ..\");\n\n\t\ttry (BufferedWriter writer1 = new BufferedWriter(new FileWriter(Dataset + \"data_text.csv\"));\n\t\t\t BufferedWriter writer2 = new BufferedWriter(new FileWriter(Dataset + \"data_feature.csv\"));\n\t\t\t BufferedWriter writer3 = new BufferedWriter(new FileWriter(Dataset + \"data_complex.csv\"));\n\t\t\t BufferedWriter writer4 = new BufferedWriter(new FileWriter(Dataset + \"data_lexicon.csv\")))\n\t\t{\n\t\t\tfor (String tweet : txtHashMap.keySet())\n\t\t\t\twriter1.write(txtHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\t\t\tfor (String tweet : compHashMap.keySet())\n\t\t\t\twriter3.write(compHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\t\t\tfor (String tweet : lexHashMap.keySet())\n\t\t\t\twriter4.write(lexHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\t\t\tfor (String tweet : featHashMap.keySet())\n\t\t\t\twriter2.write(featHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public List<String> runParallelCharacters() throws InterruptedException, ExecutionException {\n ExecutorService executor = Executors.newFixedThreadPool(10);\r\n\r\n // create a list to hold the Future object associated with Callable\r\n List<Future<String>> list = new ArrayList<>();\r\n list.add(executor.submit(new FetchResourceCallable(\"https://dueinator.dk/jwtbackend/api/car/all\")));\r\n executor.shutdown();\r\n List<String> urlStr = new ArrayList<>();\r\n for (Future<String> future : list) {\r\n urlStr.add(future.get());\r\n }\r\n return urlStr;\r\n }", "private static void useCachedThreadPool() {\n ExecutorService executor = Executors.newCachedThreadPool();\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n\n executor.execute(() -> {\n System.out.println(\"==========\");\n });\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n IntStream.range(0, 100).boxed().forEach(i -> {\n executor.execute(() -> {\n sleepSeconds(10);\n System.out.println(Thread.currentThread().getName() + \"[\" + i + \"]\");\n });\n });\n sleepSeconds(1);\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n }", "public final void process(Void input)\n/* */ {\n/* 53 */ if (!this.processingThread.compareAndSet(null, Thread.currentThread())) {\n/* 54 */ String msg = \"Pipeline stage is already being processed by another thread\";\n/* 55 */ Thread otherThread = (Thread)this.processingThread.get();\n/* 56 */ if (otherThread != null) {\n/* 57 */ msg = msg + \" [\" + otherThread.getName() + \"]\";\n/* */ }\n/* 59 */ throw new ConcurrentModificationException(msg);\n/* */ }\n/* */ try\n/* */ {\n/* 63 */ while (!this.stop) {\n/* 64 */ I i = this.queue.take();\n/* */ try {\n/* 66 */ invokeNext(i);\n/* */ } catch (Exception e) {\n/* 68 */ onError(i, e);\n/* */ } catch (Throwable t) {\n/* 70 */ onUnrecoverableError(i, t);\n/* 71 */ throw t;\n/* */ }\n/* */ }\n/* */ } catch (InterruptedException e) {\n/* 75 */ Exceptions.rethrowAsRuntimeException(e);\n/* */ } catch (Exception e) {\n/* 77 */ Throwables.propagate(e);\n/* */ } finally {\n/* */ try {\n/* 80 */ this.stopWaitLatch.countDown();\n/* */ } finally {\n/* 82 */ this.processingThread.set(null);\n/* */ }\n/* */ }\n/* */ }", "default EagerFutureStream<Tuple2<U,Long>> zipFuturesWithIndex() {\n\n\t\tSeq seq = Seq.seq(getLastActive().stream().iterator()).zipWithIndex();\n\t\tSeq<Tuple2<CompletableFuture<U>,Long>> withType = (Seq<Tuple2<CompletableFuture<U>,Long>>)seq;\n\t\tStream futureStream = fromStreamOfFutures((Stream)withType.map(t -> t.v1.thenApply(v -> \n\t\t\t\t\t\t\tTuple.tuple(t.v1.join(),t.v2))));\n\t\treturn (EagerFutureStream<Tuple2<U,Long>>)futureStream;\n\t\t\n\t}", "@Benchmark\r\n\tpublic void withoutStream(Blackhole bh) {\r\n\t\tList<Double> result = new ArrayList<Double>(DATA_FOR_TESTING.size() / 2 + 1);\r\n\t\tfor (Integer i : DATA_FOR_TESTING) {\r\n\t\t\tif (i % 2 == 0) {\r\n\t\t\t\tresult.add(Math.sqrt(i));\r\n\t\t\t\tbh.consume(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}" ]
[ "0.65993774", "0.6526288", "0.63426226", "0.61971676", "0.6163586", "0.61065894", "0.593243", "0.58880985", "0.58614725", "0.5855064", "0.5632853", "0.5631739", "0.5599589", "0.558899", "0.55131793", "0.54771996", "0.545657", "0.5441808", "0.5408591", "0.5377982", "0.5351309", "0.53353125", "0.53340197", "0.53224957", "0.53170824", "0.5310132", "0.5294988", "0.52922946", "0.5284899", "0.5283701", "0.5277127", "0.52675897", "0.52497286", "0.5210478", "0.51998144", "0.5198326", "0.51912016", "0.51844674", "0.5183008", "0.5181561", "0.5178076", "0.5169702", "0.51669496", "0.5163147", "0.51620024", "0.51620024", "0.51620024", "0.51620024", "0.51620024", "0.51620024", "0.51620024", "0.5159022", "0.5159022", "0.51548404", "0.5144462", "0.51290846", "0.51132286", "0.5096628", "0.507926", "0.50650585", "0.5057186", "0.5050984", "0.50480896", "0.5042039", "0.5024213", "0.5012131", "0.5004699", "0.50028723", "0.5000131", "0.4997437", "0.49909127", "0.4971731", "0.49654058", "0.49622577", "0.49613047", "0.49452004", "0.49385646", "0.4926682", "0.4924101", "0.4916318", "0.49155706", "0.49032086", "0.49025303", "0.48613286", "0.48436886", "0.48287094", "0.48284474", "0.48156807", "0.48115078", "0.48091933", "0.47996792", "0.47983646", "0.47937405", "0.47898334", "0.47852254", "0.4784378", "0.47831285", "0.47811204", "0.47804257", "0.47799003" ]
0.69160664
0
doStream(): 1449026 Cost time: 66ms
private static void doStream() { ArrayList<Person> personCopy = new ArrayList<>(person); long l = System.currentTimeMillis(); long ans = personCopy.stream().filter(p -> p.getHeight() > 180).count(); System.out.println("doStream(): " + ans); long e = System.currentTimeMillis(); System.out.println("Cost time: " + (e - l) + "ms"); System.out.println("----------------------------"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getStream();", "public abstract Stream<E> streamBlockwise();", "@Test\n public void testCopyFileUsingStream() throws Exception {\n long start = System.nanoTime();\n CopyFile.copyFileUsingStream(sourceFile, streamDestFile);\n System.out.println(\"Time taken by file stream using:\" + (System.nanoTime() - start) / 1000);\n }", "DataStreams createDataStreams();", "public void test_002_Stream() throws Throwable {\n\n final String RESOURCE_URI = \"asimov_it_test_002_SP_PROXYING\";\n String uri = createTestResourceUri(RESOURCE_URI);\n\n HttpRequest request = createRequest().setUri(uri).addHeaderField(\"Cache-Control\" ,\"max-age=500\").getRequest();\n PrepareResourceUtil.prepareResource(uri, false);\n\n //miss, cached by RFC\n sendRequest2(request, 0);\n // R1.2 hit\n checkHit(request, 2, VALID_RESPONSE);\n }", "DataStreamApi getDataStreamApi();", "private static void doParallelStream() {\n ArrayList<Person> personCopy = new ArrayList<>(person);\n long l = System.currentTimeMillis();\n long ans = personCopy.parallelStream().filter(p -> p.getHeight() > 180).count();\n System.out.println(\"doParallelStream(): \" + ans);\n long e = System.currentTimeMillis();\n System.out.println(\"Cost time: \" + (e - l) + \"ms\");\n System.out.println(\"----------------------------\");\n }", "public void test_001_Stream() throws Throwable {\n\n final String RESOURCE_URI = \"asimov_it_test_001_SP_PROXYING\";\n String uri = createTestResourceUri(RESOURCE_URI);\n\n HttpRequest request = createRequest().setUri(uri).addHeaderField(\"Cache-Control\" ,\"max-age=500\").getRequest();\n PrepareResourceUtil.prepareResource(uri, false);\n\n //miss\n sendRequest2(request, 10);\n //R1.2 miss\n checkMiss(request, 2, VALID_RESPONSE);\n }", "@Test\n public void streamsExample() {\n List<Integer> list = asList(1, 2, 3, 4, 5);\n \n list.stream().forEach(out::println);\n \n out.println();\n \n list.stream().parallel().forEachOrdered(out::println);\n \n \n }", "private static void functionStream() {\n\t\tStream.iterate(0, n -> n + 2).limit(10).forEach(System.out::println);\n\t\tStream.generate(Math::random).limit(4).forEach(System.out::println);\n\n\t}", "public static void main(String[] args) {\n\n\n List<Integer> source = buildIntRange();\n\n if(CollectionUtils.isNotEmpty(source)){\n\n }\n // 传统方式的遍历\n long start = System.currentTimeMillis();\n for (int i = 0; i < source.size(); i++) {\n try {\n TimeUnit.MILLISECONDS.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n System.out.println(\"传统方式 : \" + (System.currentTimeMillis() - start) + \"ms\");\n\n // 单管道stream\n start = System.currentTimeMillis();\n source.stream().forEach(r -> {\n try {\n TimeUnit.MILLISECONDS.sleep(1);\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n System.out.println(\"stream : \" + (System.currentTimeMillis() - start) + \"ms\");\n\n // 多管道parallelStream\n start = System.currentTimeMillis();\n source.parallelStream().forEach(r -> {\n try {\n TimeUnit.MILLISECONDS.sleep(1);\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n System.out.println(\"parallelStream : \" + (System.currentTimeMillis() - start) + \"ms\");\n }", "void onNext(CorfuStreamEntries results);", "public IntStream stream(long size) {\n\treturn StreamSupport.intStream(spliterator(size), false);\n }", "public IntStream stream() {\n\treturn StreamSupport.intStream(spliterator(), false);\n }", "default <T> EagerFutureStream<T> switchToCPU(EagerFutureStream<T> stream){\n\t\tEagerReact react = EagerReactors.cpuReact;\n\t\treturn stream.withTaskExecutor(react.getExecutor()).withRetrier(react.getRetrier());\n\t}", "static public void callForeachRDD (org.apache.spark.streaming.api.java.JavaDStream<byte[]> jdstream, org.apache.spark.streaming.api.python.PythonTransformFunction pfunc) { throw new RuntimeException(); }", "boolean getStream();", "public IntStream parallelStream() {\n\treturn StreamSupport.intStream(spliterator(), true);\n }", "@Benchmark\r\n\tpublic void withoutStream(Blackhole bh) {\r\n\t\tList<Double> result = new ArrayList<Double>(DATA_FOR_TESTING.size() / 2 + 1);\r\n\t\tfor (Integer i : DATA_FOR_TESTING) {\r\n\t\t\tif (i % 2 == 0) {\r\n\t\t\t\tresult.add(Math.sqrt(i));\r\n\t\t\t\tbh.consume(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "default LazyFutureStream<U> convertToLazyStream(){\n\t\treturn new LazyReact(getTaskExecutor()).withRetrier(getRetrier()).fromStream((Stream)getLastActive().stream());\n\t}", "public void syncStream() {\n JCudaDriver.cuStreamSynchronize(stream);}", "@Override\n protected void initiateStream() {\n // Execute the test by calling its processStream() entry point\n // and recording how long it takes to run.\n List<List<SearchResults>> results = RunTimer\n .timeRun(this::processStream, TAG);\n\n // Print the results of the test.\n printResults(TAG, results);\n }", "public interface Stream<T> extends Lifecycle {\n\n PendingRequest<T> next(int requestId, T request);\n\n int getPendingRequestCount();\n\n ClientResponseObserver<T, RpcResult> newObserver();\n\n\n final class PendingRequest<T> {\n\n private final T request;\n\n private final int requestId;\n\n private final SettableFuture<com.baichen.jraft.transport.RpcResult> future;\n\n private RepeatableTimer.TimerTask timeout;\n\n private long startTime;\n\n public PendingRequest(T request, int requestId, SettableFuture<com.baichen.jraft.transport.RpcResult> future) {\n this.request = request;\n this.requestId = requestId;\n this.future = future;\n }\n\n public long getStartTime() {\n return startTime;\n }\n\n public void setStartTime(long startTime) {\n this.startTime = startTime;\n }\n\n public void setTimeout(RepeatableTimer.TimerTask timeout) {\n this.timeout = timeout;\n }\n\n public RepeatableTimer.TimerTask getTimeout() {\n return timeout;\n }\n\n public T getRequest() {\n return request;\n }\n\n public int getRequestId() {\n return requestId;\n }\n\n public SettableFuture<com.baichen.jraft.transport.RpcResult> getFuture() {\n return future;\n }\n }\n}", "default <T> EagerFutureStream<T> switchToIO(EagerFutureStream<T> stream){\n\t\tEagerReact react = EagerReactors.ioReact;\n\t\treturn stream.withTaskExecutor(react.getExecutor()).withRetrier(react.getRetrier());\n\t}", "protected String traverseStream(InputStream stream){\n\n\t\tScanner input = new Scanner(stream);\n\t\tString res = \"\";\n\n\t\twhile(input.hasNext()){\n\t\t\tres += input.next() + \" \";\n\t\t}\n\n\t\treturn res;\n\t}", "protected abstract OutputStream getStream() throws IOException;", "default void refreshStream() {}", "@Test\n public void testGetNextCulturalObjectByStreamMethod() {\n Multimap<Long, CulturalObject> multimap = ArrayListMultimap.create();\n IntStream.range(0, NUMBER_OF_EXECUTIONS).parallel().forEach(i -> {{\n CulturalObject co = cardService.getNextCulturalObject(null);\n if (co != null) {\n multimap.put(co.getId(), co);\n }\n }});\n\n double[] sizes = multimap.keySet().stream().mapToDouble(aLong -> (double) multimap.get(aLong).size()).toArray();\n StandardDeviation std = new StandardDeviation();\n assertThat(std.evaluate(sizes), is(closeTo(0.0, 0.5)));\n\n }", "public Stream getStream(Streamable type){\n return Stream.builder().add(type).build() ;\n }", "@Test\n public void intermediateAndTerminalOperations() throws Exception {\n System.out.println(\n MockData.getCars()\n // Here we go to \"abstraction\" of strams\n .stream()\n // This is an intermediate op because we stay in the abstraction\n .filter(car -> {\n System.out.println(\"filter car \" + car);\n return car.getPrice() < 10000;\n })\n // This is intermediate too, we still working with streams \"abstraction\"\n .map(car -> {\n System.out.println(\"mapping car \" + car);\n return car.getPrice();\n })\n // same as before, still intermediate, still in streams abstraction\n .map(price -> {\n System.out.println(\"mapping price \" + price);\n return price + (price * .14);\n })\n // ok, this is a terminal operation and give you back the \"concrete type\" result of the operations\n .collect(Collectors.toList())\n );\n\n // Q: If you comment this line, no result is printed, you got only stram reference, why?\n // A: STREAMS are LAZY initialized\n\n // Q: What's the order of execution in the above code?\n // A: See the console print to understand order of execution:\n // The mappings are executed as soon as the first car passes the filter\n // so to get some results, stream don't need to filter ALL the list before\n\n }", "protected abstract List<List<SearchResults>> processStream();", "private IntStream createStream() {\n DataInputStream dataInputStream = null;\n try {\n dataInputStream = new DataInputStream(new BufferedInputStream(new FileInputStream(fileName)));\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found\");\n }\n DataInputStream finalDin = dataInputStream;\n return IntStream.generate(() -> {\n try {\n assert finalDin != null;\n return finalDin.readInt();\n } catch (IOException e) {\n System.out.println(\"Stream problem\");\n }\n return 0;\n })\n .limit(20);\n }", "@CompileStatic\npublic interface Stream<T> {\n\n /**\n * Remap the stream.\n *\n * @param <X> type parameter\n * @param mapper mapper returning iterable of values to be flattened into output\n * @return the remapped stream\n */\n default <X> Stream<X> flatMap(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Iterable<X>> mapper) {\n\n return flatMap(null, mapper);\n }\n\n /**\n * Remap the stream.\n *\n * @param <X> type parameter\n * @param name name of the operation\n * @param mapper mapper returning iterable of values to be flattened into output\n * @return the remapped stream\n */\n <X> Stream<X> flatMap(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Iterable<X>> mapper);\n\n /**\n * Remap the stream.\n *\n * @param <X> type parameter\n * @param mapper the mapping closure\n * @return remapped stream\n */\n default <X> Stream<X> map(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<X> mapper) {\n\n return map(null, mapper);\n }\n\n /**\n * Remap the stream.\n *\n * @param <X> type parameter\n * @param name stable name of the mapping operator\n * @param mapper the mapping closure\n * @return remapped stream\n */\n <X> Stream<X> map(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<X> mapper);\n\n /**\n * Filter stream based on predicate\n *\n * @param predicate the predicate to filter on\n * @return filtered stream\n */\n default Stream<T> filter(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Boolean> predicate) {\n\n return filter(null, predicate);\n }\n\n /**\n * Filter stream based on predicate\n *\n * @param name name of the filter operator\n * @param predicate the predicate to filter on\n * @return filtered stream\n */\n Stream<T> filter(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Boolean> predicate);\n\n /**\n * Assign event time to elements.\n *\n * @param assigner assigner of event time\n * @return stream with elements assigned event time\n */\n default Stream<T> assignEventTime(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Long> assigner) {\n\n return assignEventTime(null, assigner);\n }\n\n /**\n * Assign event time to elements.\n *\n * @param name name of the assign event time operator\n * @param assigner assigner of event time\n * @return stream with elements assigned event time\n */\n Stream<T> assignEventTime(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Long> assigner);\n\n /**\n * Add window to each element in the stream.\n *\n * @return stream of pairs with window\n */\n default Stream<Pair<Object, T>> withWindow() {\n return withWindow(null);\n }\n\n /**\n * Add window to each element in the stream.\n *\n * @param name stable name of the mapping operator\n * @return stream of pairs with window\n */\n Stream<Pair<Object, T>> withWindow(@Nullable String name);\n\n /**\n * Add timestamp to each element in the stream.\n *\n * @return stream of pairs with timestamp\n */\n default Stream<Pair<T, Long>> withTimestamp() {\n return withTimestamp(null);\n }\n\n /**\n * Add timestamp to each element in the stream.\n *\n * @param name stable name of mapping operator\n * @return stream of pairs with timestamp\n */\n Stream<Pair<T, Long>> withTimestamp(@Nullable String name);\n\n /** Print all elements to console. */\n void print();\n\n /**\n * Collect stream as list. Note that this will result on OOME if this is unbounded stream.\n *\n * @return the stream collected as list.\n */\n List<T> collect();\n\n /**\n * Test if this is bounded stream.\n *\n * @return {@code true} if this is bounded stream, {@code false} otherwise\n */\n boolean isBounded();\n\n /**\n * Process this stream as it was unbounded stream.\n *\n * <p>This is a no-op if {@link #isBounded} returns {@code false}, otherwise it turns the stream\n * into being processed as unbounded, although being bounded.\n *\n * <p>This is an optional operation and might be ignored if not supported by underlying\n * implementation.\n *\n * @return Stream viewed as unbounded stream, if supported\n */\n default Stream<T> asUnbounded() {\n return this;\n }\n\n /**\n * Convert elements to {@link StreamElement}s.\n *\n * @param <V> type of value\n * @param repoProvider provider of {@link Repository}\n * @param entity the entity of elements\n * @param keyExtractor extractor of keys\n * @param attributeExtractor extractor of attributes\n * @param valueExtractor extractor of values\n * @param timeExtractor extractor of time\n * @return stream with {@link StreamElement}s inside\n */\n <V> Stream<StreamElement> asStreamElements(\n RepositoryProvider repoProvider,\n EntityDescriptor entity,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<CharSequence> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\")\n Closure<CharSequence> attributeExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Long> timeExtractor);\n\n /**\n * Persist this stream to replication.\n *\n * @param repoProvider provider of {@link Repository}.\n * @param replicationName name of replication to persist stream to\n * @param target target of the replication\n */\n void persistIntoTargetReplica(\n RepositoryProvider repoProvider, String replicationName, String target);\n\n /**\n * Persist this stream to specific family.\n *\n * <p>Note that the type of the stream has to be already {@link StreamElement StreamElements} to\n * be persisted to the specified family. The family has to accept given {@link\n * AttributeDescriptor} of the {@link StreamElement}.\n *\n * @param repoProvider provider of {@link Repository}.\n * @param targetFamilyname name of target family to persist the stream into\n */\n default void persistIntoTargetFamily(RepositoryProvider repoProvider, String targetFamilyname) {\n persistIntoTargetFamily(repoProvider, targetFamilyname, 10);\n }\n\n /**\n * Persist this stream to specific family.\n *\n * <p>Note that the type of the stream has to be already {@link StreamElement StreamElements} to\n * be persisted to the specified family. The family has to accept given {@link\n * AttributeDescriptor} of the {@link StreamElement}.\n *\n * @param repoProvider provider of {@link Repository}.\n * @param targetFamilyname name of target family to persist the stream into\n * @param parallelism parallelism to use when target family is bulk attribute family\n */\n void persistIntoTargetFamily(\n RepositoryProvider repoProvider, String targetFamilyname, int parallelism);\n\n /**\n * Persist this stream as attribute of entity\n *\n * @param <V> type of value extracted\n * @param repoProvider provider of repository\n * @param entity the entity to store the stream to\n * @param keyExtractor extractor of key for elements\n * @param attributeExtractor extractor for attribute for elements\n * @param valueExtractor extractor of values for elements\n * @param timeExtractor extractor of event time\n */\n <V> void persist(\n RepositoryProvider repoProvider,\n EntityDescriptor entity,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<CharSequence> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\")\n Closure<CharSequence> attributeExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<Long> timeExtractor);\n\n /**\n * Directly write this stream to repository. Note that the stream has to contain {@link\n * StreamElement}s (e.g. created by {@link #asStreamElements}.\n *\n * @param repoProvider provider of repository\n */\n void write(RepositoryProvider repoProvider);\n\n /**\n * Create time windowed stream.\n *\n * @param millis duration of tumbling window\n * @return time windowed stream\n */\n WindowedStream<T> timeWindow(long millis);\n\n /**\n * Create sliding time windowed stream.\n *\n * @param millis duration of the window\n * @param slide duration of the slide\n * @return sliding time windowed stream\n */\n WindowedStream<T> timeSlidingWindow(long millis, long slide);\n\n /**\n * Create session windowed stream.\n *\n * @param <K> type of key\n * @param keyExtractor extractor of key\n * @param gapDuration duration of the gap between elements per key\n * @return session windowed stream\n */\n <K> WindowedStream<Pair<K, T>> sessionWindow(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n long gapDuration);\n\n /**\n * Create calendar-based windowed stream.\n *\n * @param window the resolution of the calendar window (\"days\", \"weeks\", \"months\", \"years\")\n * @param count number of days, weeks, months, years\n * @param timeZone time zone of the calculation\n * @return calendar windowed stream\n */\n WindowedStream<T> calendarWindow(String window, int count, TimeZone timeZone);\n\n /**\n * Group all elements into single window.\n *\n * @return globally windowed stream.\n */\n WindowedStream<T> windowAll();\n\n /**\n * Merge two streams together.\n *\n * @param other the other stream(s)\n * @return merged stream\n */\n default Stream<T> union(Stream<T> other) {\n return union(Arrays.asList(other));\n }\n\n /**\n * Merge two streams together.\n *\n * @param name name of the union operator\n * @param other the other stream(s)\n * @return merged stream\n */\n default Stream<T> union(@Nullable String name, Stream<T> other) {\n return union(name, Arrays.asList(other));\n }\n\n /**\n * Merge multiple streams together.\n *\n * @param streams other streams\n * @return merged stream\n */\n default Stream<T> union(List<Stream<T>> streams) {\n return union(null, streams);\n }\n\n /**\n * Merge multiple streams together.\n *\n * @param name name of the union operator\n * @param streams other streams\n * @return merged stream\n */\n Stream<T> union(@Nullable String name, List<Stream<T>> streams);\n\n /**\n * Transform this stream using stateful processing.\n *\n * @param <K> type of key\n * @param <S> type of value state\n * @param <V> type of intermediate value\n * @param <O> type of output value\n * @param keyExtractor extractor of key\n * @param valueExtractor extractor of value\n * @param initialState closure providing initial state value for key\n * @param outputFn function for outputting values (when function returns {@code null} the output\n * is discarded\n * @param stateUpdate update (accumulation) function for the state the output is discarded\n * @return the statefully reduced stream\n */\n default <K, S, V, O> Stream<Pair<K, O>> reduceValueStateByKey(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"K\") Closure<S> initialState,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<O> outputFn,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<S> stateUpdate) {\n\n return reduceValueStateByKey(\n null, keyExtractor, valueExtractor, initialState, outputFn, stateUpdate);\n }\n\n /**\n * Transform this stream using stateful processing without time-sorting.\n *\n * @param <K> type of key\n * @param <S> type of value state\n * @param <V> type of intermediate value\n * @param <O> type of output value\n * @param keyExtractor extractor of key\n * @param valueExtractor extractor of value\n * @param initialState closure providing initial state value for key\n * @param outputFn function for outputting values (when function returns {@code null} the output\n * is discarded\n * @param stateUpdate update (accumulation) function for the state the output is discarded\n * @return the statefully reduced stream\n */\n default <K, S, V, O> Stream<Pair<K, O>> reduceValueStateByKeyUnsorted(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"K\") Closure<S> initialState,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<O> outputFn,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<S> stateUpdate) {\n\n return reduceValueStateByKeyUnsorted(\n null, keyExtractor, valueExtractor, initialState, outputFn, stateUpdate);\n }\n\n /**\n * Transform this stream using stateful processing.\n *\n * @param <K> type of key\n * @param <S> type of value state\n * @param <V> type of intermediate value\n * @param <O> type of output value\n * @param name optional name of the stateful operation\n * @param keyExtractor extractor of key\n * @param valueExtractor extractor of value\n * @param initialState closure providing initial state value for key\n * @param stateUpdate update (accumulation) function for the state\n * @param outputFn function for outputting values (when function returns {@code null} the output\n * is discarded\n * @return the statefully reduced stream\n */\n default <K, S, V, O> Stream<Pair<K, O>> reduceValueStateByKey(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"K\") Closure<S> initialState,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<O> outputFn,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<S> stateUpdate) {\n\n return reduceValueStateByKey(\n name, keyExtractor, valueExtractor, initialState, outputFn, stateUpdate, true);\n }\n\n /**\n * Transform this stream using stateful processing without time-sorting.\n *\n * @param <K> type of key\n * @param <S> type of value state\n * @param <V> type of intermediate value\n * @param <O> type of output value\n * @param name optional name of the stateful operation\n * @param keyExtractor extractor of key\n * @param valueExtractor extractor of value\n * @param initialState closure providing initial state value for key\n * @param stateUpdate update (accumulation) function for the state\n * @param outputFn function for outputting values (when function returns {@code null} the output\n * is discarded\n * @return the statefully reduced stream\n */\n default <K, S, V, O> Stream<Pair<K, O>> reduceValueStateByKeyUnsorted(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"K\") Closure<S> initialState,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<O> outputFn,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<S> stateUpdate) {\n\n return reduceValueStateByKey(\n name, keyExtractor, valueExtractor, initialState, outputFn, stateUpdate, false);\n }\n\n /**\n * Transform this stream using stateful processing.\n *\n * @param <K> type of key\n * @param <S> type of value state\n * @param <V> type of intermediate value\n * @param <O> type of output value\n * @param name optional name of the stateful operation\n * @param keyExtractor extractor of key\n * @param valueExtractor extractor of value\n * @param initialState closure providing initial state value for key\n * @param stateUpdate update (accumulation) function for the state\n * @param outputFn function for outputting values (when function returns {@code null} the output\n * is discarded\n * @param sorted {@code true} if the input to the state update function should be time-sorted\n * @return the statefully reduced stream\n */\n <K, S, V, O> Stream<Pair<K, O>> reduceValueStateByKey(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"K\") Closure<S> initialState,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<O> outputFn,\n @ClosureParams(value = FromString.class, options = \"S, V\") Closure<S> stateUpdate,\n boolean sorted);\n\n /**\n * Transform this stream to another stream by applying combining transform in global window\n * emitting results after each element added. That means that the following holds: * the new\n * stream will have exactly the same number of elements as the original stream minus late elements\n * dropped * streaming semantics need to define allowed lateness, which will incur real time\n * processing delay * batch semantics use sort per key\n *\n * @param <K> key type\n * @param <V> value type\n * @param keyExtractor extractor of key\n * @param valueExtractor extractor of value\n * @param initialValue closure providing initial value of state for key\n * @param combiner combiner of values to final value\n * @return the integrated stream\n */\n default <K, V> Stream<Pair<K, V>> integratePerKey(\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"K\") Closure<V> initialValue,\n @ClosureParams(value = FromString.class, options = \"V,V\") Closure<V> combiner) {\n\n return integratePerKey(null, keyExtractor, valueExtractor, initialValue, combiner);\n }\n\n /**\n * Transform this stream to another stream by applying combining transform in global window\n * emitting results after each element added. That means that the following holds: * the new\n * stream will have exactly the same number of elements as the original stream minus late elements\n * dropped * streaming semantics need to define allowed lateness, which will incur real time\n * processing delay * batch semantics use sort per key\n *\n * @param <K> key type\n * @param <V> value type\n * @param name optional name of the transform\n * @param keyExtractor extractor of key\n * @param valueExtractor extractor of value\n * @param initialValue closure providing initial value of state for key\n * @param combiner combiner of values to final value\n * @return the integrated stream\n */\n <K, V> Stream<Pair<K, V>> integratePerKey(\n @Nullable String name,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<K> keyExtractor,\n @ClosureParams(value = FromString.class, options = \"T\") Closure<V> valueExtractor,\n @ClosureParams(value = FromString.class, options = \"K\") Closure<V> initialValue,\n @ClosureParams(value = FromString.class, options = \"V,V\") Closure<V> combiner);\n\n /** Reshuffle the stream via random key. */\n default Stream<T> reshuffle() {\n return reshuffle(null);\n }\n\n /**\n * Reshuffle the stream via random key.\n *\n * @param name name of the transform\n */\n @SuppressWarnings(\"unchecked\")\n Stream<T> reshuffle(@Nullable String name);\n}", "private String readStream(InputStream is) throws IOException {\n StringBuilder sb = new StringBuilder();\n BufferedReader r = new BufferedReader(new InputStreamReader(is),1000);\n for (String line = r.readLine(); line != null; line =r.readLine()){\n sb.append(line);\n }\n is.close();\n return sb.toString();\n }", "public static void generate(SparseStream stream, PrintStream output) {\n stream.position(0);\n byte[] buffer = new byte[1024 * 1024];\n for (Range block : StreamExtent.blocks(stream.getExtents(), buffer.length)) {\n long startPos = block.getOffset() * buffer.length;\n long endPos = Math.min((block.getOffset() + block.getCount()) * buffer.length, stream.getLength());\n stream.position(startPos);\n while (stream.position() < endPos) {\n int numLoaded = 0;\n long readStart = stream.position();\n while (numLoaded < buffer.length) {\n int bytesRead = stream.read(buffer, numLoaded, buffer.length - numLoaded);\n if (bytesRead == 0) {\n break;\n }\n\n numLoaded += bytesRead;\n }\n for (int i = 0; i < numLoaded; i += 16) {\n boolean foundVal = false;\n if (i > 0) {\n for (int j = 0; j < 16; j++) {\n if (buffer[i + j] != buffer[i + j - 16]) {\n foundVal = true;\n break;\n }\n\n }\n } else {\n foundVal = true;\n }\n if (foundVal) {\n output.printf(\"%08x\", i + readStart);\n for (int j = 0; j < 16; j++) {\n if (j % 8 == 0) {\n output.print(\" \");\n }\n\n output.printf(\" %02x\", buffer[i + j]);\n }\n output.print(\" |\");\n for (int j = 0; j < 16; j++) {\n if (j % 8 == 0 && j != 0) {\n output.print(\" \");\n }\n\n output.printf(\"%c\", (buffer[i + j] >= 32 && buffer[i + j] < 127) ? (char) buffer[i + j] : '.');\n }\n output.print(\"|\");\n output.println();\n }\n }\n }\n }\n }", "public MemoryCacheSeekableStream(InputStream src) {\n/* 75 */ this.src = src;\n/* */ }", "private void usingPrimitiveStream() {\n IntStream.range(1, 4).forEach(System.out::println);\n DoubleStream.of(2.3, 4.3).forEach(System.out::println);\n LongStream.range(1, 4).forEach(System.out::println);\n }", "default Stream<E> parallelStream() {\n return StreamSupport.stream(spliterator(), true);\n }", "@Test\n public void testStreamingFunction() throws Exception {\n setFunctionLocation(\"encode-1.0.0-boot\");\n setFunctionBean(\"com.acme.Encode\");\n process = processBuilder.start();\n\n Function<Flux<Integer>, Flux<?>[]> fn = FunctionProxy.create(Function.class, connect(), Integer.class);\n\n Flux<?>[] result = fn.apply(Flux.just(1, 1, 1, 0, 0, 0, 0, 1, 1));\n\n assertThat(result.length, CoreMatchers.equalTo(1));\n StepVerifier.create((Flux<Integer>) result[0])\n .expectNext(3, 1)\n .expectNext(4, 0)\n .expectNext(2, 1)\n .verifyComplete();\n }", "private static void backPressureFix() {\n\t\tFlowable.range(1, 1000000)\n\t\t//below map will run in sequential\n\t\t//since sequential it has to complete whole task then only it can allow consumer to start\n\t\t\t.map(item -> {\n\t\t\t\tSystem.out.println(\"Produced item \"+item +\" using thread \"+Thread.currentThread().getName());\n\t\t\t\treturn item;\n\t\t\t})\n\t\t\t.observeOn(Schedulers.io())\n\t\t\t//.subscribeOn(Schedulers.io())//with this whole pipelein runs in seprate thread paralleley\n\t\t\t//below will run in concurrent\n\t\t\t.subscribe(item ->{\n\t\t\t\t//mimcing slowness\n\t\t\t\tThreadUtil.sleep(300);\n\t\t\t\tSystem.out.println(\"Consumed item \"+item +\" using thread \"+Thread.currentThread().getName());\n\t\t\t})\n\t\t\t\n\t\t\t;\n\t\t\n\t\t//since running in async we need to sleep\n\t\tThreadUtil.sleep(10000000);\n\t\t\t\n\t}", "public void streamSubscriberStart(ISubscriberStream stream);", "protected final void forEachActiveStream(Http2FrameStreamVisitor streamVisitor) throws Http2Exception {\n/* 83 */ this.frameCodec.forEachActiveStream(streamVisitor);\n/* */ }", "@Test\r\n\tpublic void testCompressing() throws ClassNotFoundException,\r\n\t\t\tInstantiationException, IllegalAccessException {\n\r\n\t\tAbstractStream abstractStream = Factory\r\n\t\t\t\t.getStream(\"by.bsu.decorator.bean.FileStream\");\r\n\t\tCompressingStream stream = (CompressingStream) Factory\r\n\t\t\t\t.getStream(\"by.bsu.decorator.bean.CompressingStream\");\r\n\t\tstream.setAbstractStream(abstractStream);\r\n\t\tString str = stream.handleBufferFull();\r\n\r\n\t\tbyte[] b = new byte[10];\r\n\t\tfor (int i = 0; i < 10; i++)\r\n\t\t\tb[i] = (byte) i;\r\n\t\tstream.putByte(b);\r\n\t\tSystem.out.println(str);\r\n\t\tassertEquals(\"Compressing Stream. File Stream. \", str);\r\n\t}", "InputStream getDataStream();", "public abstract void enableStreamFlow();", "public interface Stream {\n\tpublic char getNext();\t\n\tpublic boolean hasNext();\n}", "protected Stream<T> getDataStream() {\n if (nonNull(asyncData)) {\n if (ThreadLocalUtils.isEnableStreamLazy()) {\n return StreamSupport.stream(() ->\n Spliterators.spliterator(getAsyncData(), 0), 0, false);\n } else {\n return getAsyncData().stream();\n }\n }\n this.updateStream();\n return (isNull(dataStream) || streamClosed()) ? dataStreamSupplier.get() : dataStream;\n }", "public static void main(String[] args) {\n\t\n\t\tm(\"Iterate\", () -> {\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tSupplier<IntStream>[] sArr = (Supplier<IntStream>[])new Supplier[] {\n\t\t\t\t() -> IntStream.iterate(2, i -> 2 * i),\n\t\t\t\t() -> IntStream.iterate(10, i -> i - 1),\n\t\t\t\t() -> IntStream.iterate(10, i -> i),\n\t\t\t\t() -> IntStream.iterate(10, i -> 2),\n\t\t\t\t() -> IntStream.iterate(42, IntUnaryOperator.identity()),\n\t\t\t\t() -> IntStream.iterate(42, IntUnaryOperator.identity().andThen(IntUnaryOperator.identity())),\n\t\t\t};\n\t\t\tStream.of(sArr).forEach(supplier -> supplier.get().limit(10).forEach(System.out::println));\n\t\t});\n\t\t\n\t\t\n\t\t//Various IntStream generations. generate produces elements without input => it uses an IntSupplier.\n\t\t\n\t\tSystem.out.println(\"---------------------------------------------\");\n\t\t\n\t\tm(\"Generate\", () -> {\t\t\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tSupplier<IntStream>[] sArr = (Supplier<IntStream>[])new Supplier[] {\n\t\t\t\t() -> IntStream.generate(() -> new Random().nextInt()),\n\t\t\t\t() -> IntStream.generate(() -> new Random().nextInt()).filter(n -> n >= 0),\n\t\t\t\t() -> IntStream.generate(() -> 10),\n\t\t\t\t() -> IntStream.generate(() -> new Random().nextInt() % 20).filter(n -> n >= 0)\n\t\t\t};\n\t\t\tStream.of(sArr).forEach(supplier -> {supplier.get().limit(10).forEach(System.out::println); System.out.println(\"--------------------------------\");});\n\t\t});\n\t\t\n\t\t\n\t\t//Iterate and generate for DoubleStream, LongStream and Stream<T>\n\t\t\n\t\t\n\t\tm(\"DoubleStream iterate and generate\", () -> {\t\t\n\t\t\tDoubleStream.iterate(1, d -> d + d / 2).limit(20).forEach(System.out::println); //Uses DoubleUnaryOperator\n\t\t\tSystem.out.println(\"-------------------------\");\n\t\t\tDoubleStream.generate(() -> new Random().nextDouble()).limit(5).forEach(System.out::println); //Uses DoubleSupplier\n\t\t});\n\t\t\n\t\tm(\"LongStream iterate and generate\", () -> {\t\t\n\t\t\tLongStream.iterate(2, n -> n * n).limit(4).forEach(System.out::println); //Uses LongUnaryOperator\n\t\t\tSystem.out.println(\"-------------------------\");\n\t\t\tDoubleStream.generate(() -> new Random().nextLong()).limit(5).forEach(System.out::println); //Uses LongSupplier\n\t\t});\n\t\t\n\t\tm(\"Stream iterate and generate\", () -> {\t\t\n\t\t\tStream.<List<Object>>iterate(new ArrayList<Object>(), l -> {l.add(1); return l;}).limit(4).forEach(System.out::println); //Uses UnaryOperator\n\t\t\tSystem.out.println(\"-------------------------\");\n\t\t\tStream.<List<Object>>generate(() -> new ArrayList<Object>()).limit(4).forEach(System.out::println); //Uses Supplier\n\t\t});\n\t\t\n\t\tm(\"noneMatch\", () -> {\t\t\n\t\t\tStream<String> stream = Stream.<String>iterate(\"-\", s -> s + s);\n\t\t\tPredicate<String> predicate = s -> s.length() > 3;\n\t\t\tSystem.out.println(stream.noneMatch(predicate)); //Note: this is not infinite. None match will fail as soon as one element is found\n\t\t});\n\t\t\n\t\tm(\"allMatch\", () -> {\t\t\n\t\t\tStream<String> stream = Stream.<String>iterate(\"-\", s -> s + s);\n\t\t\tPredicate<String> predicate = s -> s.length() > 0;\n\t\t\tPredicate<String> predicate2 = s -> s.length() > 3;\n\t\t\t//System.out.println(stream.allMatch(predicate)); //Note: This is infinite and will fail with OOM error\n\t\t\tSystem.out.println(stream.allMatch(predicate2)); //Note how this will return as the first element does not match so false can be returned\n\t\t});\n\t\t\n\t}", "<R> Streamlet<R> newSource(IRichSpout spout);", "private static AOutput<ByteBuffer> export(final Consumer<StreamFinishedEvent> listener,\n final AOutput<ByteBuffer> stream) {\n return AOutputProxyFactory.createProxy(Vat.current(), CountingOutput.countIfNeeded(stream, listener));\n }", "protected void computeDirectly() throws IOException {\n\n\n for(int i = mStart; i < mStart + mLength; i++) {\n mSource[i].forEachRemaining(n -> {\n try {\n Writer.writeBlockForNode(n, db, bufferedWriter, reportBlockSize, relationshipType);\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }\n\n\n\n }", "private void execute(List<Pair<Integer, Stream<byte[], GenericRecord>>> streams) throws Exception {\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n isDone.set(true);\n printAggregatedStats(cumulativeRecorder);\n }));\n\n ExecutorService executor = Executors.newFixedThreadPool(flags.numThreads);\n try {\n final long numRecordsForThisThread = flags.numEvents / flags.numThreads;\n final long numBytesForThisThread = flags.numBytes / flags.numThreads;\n final double writeRateForThisThread = flags.writeRate / flags.numThreads;\n for (int i = 0; i < flags.numThreads; i++) {\n final int idx = i;\n final List<Stream<byte[], GenericRecord>> logsThisThread = streams\n .stream()\n .filter(pair -> pair.getLeft() % flags.numThreads == idx)\n .map(pair -> pair.getRight())\n .collect(Collectors.toList());\n executor.submit(() -> {\n try {\n if (flags.prometheusEnable) {\n writeWithPrometheusMonitor(\n logsThisThread,\n writeRateForThisThread,\n numRecordsForThisThread,\n numBytesForThisThread);\n } else {\n write(\n logsThisThread,\n writeRateForThisThread,\n numRecordsForThisThread,\n numBytesForThisThread);\n }\n } catch (Exception e) {\n log.error(\"Encountered error at writing records\", e);\n isDone.set(true);\n System.exit(-1);\n }\n });\n }\n log.info(\"Started {} write threads\", flags.numThreads);\n startTime = System.currentTimeMillis();\n reportStats();\n } finally {\n executor.shutdown();\n if (!executor.awaitTermination(5, TimeUnit.SECONDS)) {\n executor.shutdownNow();\n }\n streams.forEach(streamPair -> streamPair.getRight().closeAsync());\n }\n }", "@Override\n protected Collection<Stream> calculateEmittedStreams(\n final Collection<Stream> providedStreams) {\n return null;\n }", "public void processStreamInput() {\n }", "default Stream<T> fullStream() {\n return Stream.empty();\n }", "public interface IStreamable<U> {\n\n IMonStream<U> fstream();\n}", "public static void calculateSumViaStreams(List<Integer> numbers){\n int sum = numbers.stream()\n .filter(x -> x % 2 == 0)\n .map(y -> y * y)\n .reduce(0, (x, y) -> x + y);\n\n System.out.println(sum);\n }", "static <T> EagerFutureStream<T> eagerFutureStream(Iterator<T> iterator) {\n\t\treturn eagerFutureStream(StreamSupport.stream(\n\t\t\t\tspliteratorUnknownSize(iterator, ORDERED), false));\n\t}", "private void streamCopy(InputStream in, OutputStream out) throws IOException {\t \n\t\tsynchronized (in) {\n\t\t\tsynchronized (out) {\n\t\t\t\tbyte[] buffer = new byte[256];\n\t\t\t\twhile (true) {\n\t \t\tint bytesRead = in.read(buffer);\n\t \t\tif (bytesRead == -1) break;\n\t \t\tout.write(buffer, 0, bytesRead);\n\t \t}\n\t \t}\n\t }\n\t}", "@Test\n public void test1(){\n\n// List<String> list= new ArrayList<String>();\n// list.add(\"张三\");\n// list.add(\"李四\");\n// list.add(\"王五\");\n// list.add(\"马六\");\n// System.out.println(list.get(0));\n//\n// list.forEach(li-> System.out.println(li+\"干什么\"));\n//// Runnable no=() -> System.out.println(\"hello\");\n//\n// Complex complex=new Complex(2,3);\n//\n// Complex c=new Complex(5,3);\n// Complex cc=c.plus(complex);\n// System.out.println(cc.toString()+\"11111111111111111111\");\n List<String> data = new ArrayList<>();\n data.add(\"张三\");\n data.add(\"李四\");\n data.add(\"王三\");\n data.add(\"马六\");\n data.parallelStream().forEach(x-> System.out.println(x));\n System.out.println(\"--------------------\");\n data.stream().forEach(System.out::println);\n System.out.println(\"+++++++++++++++++\");\n List<String> kk=data.stream().sorted().limit(2).collect(Collectors.toList());\n kk.forEach(System.out::println);\n List<String> ll=data.stream()\n .filter(x -> x.length() == 2)\n .map(x -> x.replace(\"三\",\"五\"))\n .sorted()\n .filter(x -> x.contains(\"五\")).collect(Collectors.toList());\n ll.forEach(string-> System.out.println(string));\n for (String string:ll) {\n System.out.println(string);\n }\n ll.stream().sorted().forEach(s -> System.out.println(s));\n// .forEach(System.out::println);\n Thread thread=new Thread(()->{ System.out.println(1); });\n thread.start();\n\n LocalDateTime currentTime=LocalDateTime.now();\n\n System.out.println(\"当前时间\"+currentTime);\n LocalDate localDate=currentTime.toLocalDate();\n System.out.println(\"当前日期\"+localDate);\n\n Thread tt=new Thread(()-> System.out.println(\"111\"));\n }", "private static AInput<ByteBuffer> export(final Consumer<StreamFinishedEvent> listener,\n final AInput<ByteBuffer> stream) {\n return AInputProxyFactory.createProxy(Vat.current(), CountingInput.countIfNeeded(stream, listener));\n }", "public static void main(String[] args) {\r\n\t\ttry {\r\n\r\n\t\t\tint loop = 300;\r\n\r\n\t\t\tlong start = System.currentTimeMillis();\r\n\r\n\t\t\tfor (int i = 0; i < loop; i++ )\r\n\t\t\t\tbyList();\r\n\r\n\t\t\tlong t1 = System.currentTimeMillis();\r\n\r\n\t\t\tfor (int i = 0; i < loop; i++ )\r\n\t\t\t\tbyStream();\r\n\r\n\t\t\tlong t2 = System.currentTimeMillis();\r\n\r\n\t\t\tSystem.out.println(\"byList: \" + (t1 - start) + \"ms\");\r\n\t\t\tSystem.out.println(\"byStream: \" + (t2 - t1) + \"ms\");\r\n\r\n\t\t} catch(FileTreatmentException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws Exception {\n new GStreamClient(\"localhost\", 8080).makeStreamingRequestForBatchedSum();\n\n // Observation : for the first two calls - behavior is same.\n // Iterable hasNext and next are getting called every 2 seconds once server responds\n\n // Observation : server is always assumed to stream the response\n // hence responseObserver is always present\n // if client does not stream the request, then input is just the simple request object, else StreamObserver\n }", "public String getStream(){\n return this.stream;\n }", "IStreamList<T> transform(IStreamList<T> dataset);", "public void run() {\n\n do {\n\n ByteBuffer byteBuffer = (ByteBuffer) slist[0];\n slist = (Object[]) slist[1];\n if (0 == bufsize) {\n if (null == slist) {\n buffer = byteBuffer;\n break;//optimization\n }\n linkedList = new LinkedList<ByteBuffer>();\n }\n bufsize += byteBuffer.limit();\n linkedList.addFirst(byteBuffer);\n\n } while (null != slist);\n\n if (null == buffer) {\n buffer = ByteBuffer.allocateDirect(bufsize);\n\n for (ByteBuffer netBuffer : linkedList) {\n buffer.put(netBuffer);\n }\n }\n\n buffer.rewind();\n System.err.println(\"MsgSize: \" + buffer.limit());\n int i = ENDL.length - 1;\n byte b1 = ENDL[i];\n do {\n ByteBuffer b = buffer.slice();\n while (b.hasRemaining() && b.get() != b1);\n b.flip();\n Integer integer = Integer.valueOf(UTF8.decode(b).toString().trim(), 0x10);\n System.err.println(\"RecordSize: \" + integer);\n buffer = ((ByteBuffer) buffer.position(b.limit())).slice();\n ByteBuffer handoff = (ByteBuffer) buffer.slice().limit(integer);\n final String trim = UTF8.decode(handoff).toString().trim();\n // System.err.println(\"RecordId: \" + trim);\n final LinkedHashMap couchChange = CouchDriver.GSON.fromJson(trim, LinkedHashMap.class);\n\n EXECUTOR_SERVICE.submit(getDocUpdateHandler(couchChange));\n buffer.position(handoff.limit() + ENDL.length);\n buffer = buffer.slice();\n } while (buffer.hasRemaining());\n }", "default Stream<Token<?>> stream() {\n return stream(true);\n }", "@Test()\n public void findPessoaStream() {\n try (Session session = factoryJpa.openSession()) {\n Stream<Perfil> perfilUsandoNameQueryComStream = findPerfilUsandoNameQueryComStream(session, nome);\n perfilUsandoNameQueryComStream.forEach(System.out::println);\n }\n }", "private static String readIt(InputStream stream) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(stream));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = br.readLine()) != null) {\n sb.append(line+\"\\n\");\n }\n br.close();\n return sb.toString();\n\t}", "StreamsThread(InputStream in, OutputStream out) {\n this.in = in;\n this.out = out;\n }", "@Override\n\tpublic int CountStreamingLike(String idx) {\n\t\treturn 0;\n\t}", "public void streamIterate(){\n Stream.iterate(new int[]{0, 1},t -> new int[]{t[1], t[0]+t[1]})\n .limit(20)\n .forEach(t -> System.out.println(\"(\" + t[0] + \",\" + t[1] +\")\"));\n /*\n In Java 9, the iterate method was enhanced with support for a predicate.\n For example, you can generate numbers starting at 0 but stop the iteration once the number is greater than 100:\n * */\n IntStream.iterate(0, n -> n < 100, n -> n + 4)\n .forEach(System.out::println);\n }", "default EagerFutureStream<U> doOnEach(final Function<U, U> fn) {\n\t\treturn (EagerFutureStream) FutureStream.super.doOnEach(fn);\n\t}", "static <T> EagerFutureStream<T> eagerFutureStreamFrom(Stream<CompletableFuture<T>> stream) {\n\t\treturn new EagerReact(ThreadPools.getSequential(),new AsyncRetryExecutor(ThreadPools.getSequentialRetry()),false)\n\t\t\t\t\t\t\t\t\t.fromStream(stream);\n\t}", "@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }", "void getFreeStream () { \n /* MODS 19 Jan 00 whole routine*/\n double rgas = 1716.; /* ft2/sec2 R */\n double gama = 1.4;\n double height_m = alt_val/lconv;\n double mu0 = .000000362;\n double g0 = 32.2;\n\n switch (planet) {\n case 0: // Earth standard day\n if (height_m <= 36152.) { // Troposphere\n ts0 = 518.6 - 3.56 * height_m/1000.;\n ps0 = 2116. * Math.pow(ts0/518.6,5.256);\n } else if (height_m >= 36152. && height_m <= 82345.) { // Stratosphere\n ts0 = 389.98;\n ps0 = 2116. * .2236 *\n Math.exp((36000.-height_m)/(53.35*389.98));\n } else if (height_m >= 82345.) {\n ts0 = 389.98 + 1.645 * (height_m-82345)/1000.;\n ps0 = 2116. *.02456 * Math.pow(ts0/389.98,-11.388);\n }\n \n { \n double temf = ts0 - 459.6;\n if (temf <= 0.0) temf = 0.0; \n rho_EN = ps0/(rgas * ts0);\n rho_SI = 1.225; // kg/m3\n \n /* Eq 1:6A Domasch - effect of humidity \n */\n double pvap = rlhum*(2.685+.00354*Math.pow(temf,2.245))/100.;\n rho_EN = (ps0 - .379*pvap)/(rgas * ts0); \n viscos = mu0 * 717.408/(ts0 + 198.72)*Math.pow(ts0/518.688,1.5);\n }\n break;\n\n case 1: // Mars - curve fit of orbiter data\n rgas = 1149.; /* ft2/sec2 R */\n gama = 1.29;\n rlhum = 0.0;\n\n if (height_m <= 22960.) {\n ts0 = 434.02 - .548 * height_m/1000.;\n ps0 = 14.62 * Math.pow(2.71828,-.00003 * height_m);\n }\n if (height_m > 22960.) {\n ts0 = 449.36 - 1.217 * height_m/1000.;\n ps0 = 14.62 * Math.pow(2.71828,-.00003 * height_m);\n }\n rho_EN = ps0/(rgas*ts0);\n rho_SI = 515.378819 * rho_EN;\n viscos = mu0 * 717.408/(ts0 + 198.72)*Math.pow(ts0/518.688,1.5);\n break;\n\n case 2: // water -- constant density\n height_m = -alt_val/lconv;\n rlhum = 100.;\n\n ts0 = 520.;\n // for oceanic water (it is 1027 kg/m3). FoilSimIII has it as 1.9927 slug/ft3\n // One slug has a mass of 32.174049 lb or 14.593903 kg \n rho_EN = 1.9927; \n rho_SI = 1027; // this is rho_EN * 515.378819\n\n ps0 = (2116. - rho_EN * g0 * height_m);\n mu0 = .0000272;\n viscos = mu0 * 717.408/(ts0 + 198.72)*Math.pow(ts0/518.688,1.5);\n break;\n case 3: // specify air temp and pressure \n rho_EN = ps0/(rgas*ts0);\n // reiplot_trace_counto temf\n {\n double temf = ts0 - 459.6;\n double pvap = rlhum*(2.685+.00354*Math.pow(temf,2.245))/100.;\n rho_EN = (ps0 - .379*pvap)/(rgas * ts0); \n }\n\n rho_SI = 515.378819 * rho_EN;\n viscos = mu0 * 717.408/(ts0 + 198.72)*Math.pow(ts0/518.688,1.5);\n break;\n\n case 4: // specify fluid density and viscosity\n rlhum = 0.0;\n ps0 = 2116.;\n break;\n\n case 5: // Venus - surface conditions\n rgas = 1149.; \n gama = 1.29;\n rlhum = 0.0;\n\n ts0 = 1331.6;\n ps0 = 194672.;\n\n rho_EN = ps0/(rgas*ts0);\n rho_SI = 515.378819 * rho_EN;\n viscos = mu0 * 717.408/(ts0 + 198.72)*Math.pow(ts0/518.688,1.5);\n default:\n }\n\n set_q0();\n // pt0 = ps0 + q0_EN;\n\n return;\n }", "protected OutputStream _createDataOutputWrapper(DataOutput out)\n/* */ {\n/* 1520 */ return new DataOutputAsStream(out);\n/* */ }", "public InputStream getStream();", "public void callLazystream()\n {\n\n Stream<String> stream = list.stream().filter(element -> {\n wasCalled();\n System.out.println(\"counter in intermediate operations:\" + counter);\n return element.contains(\"2\");\n });\n\n System.out.println(\"counter in intermediate operations:\" + counter);\n }", "@Deprecated\n/* */ public COSStream getStream() {\n/* 290 */ return this.stream;\n/* */ }", "public final ByteBuffer finishStream() {\n return finishNative();\n }", "private void liveStreaming() throws IOException, InterruptedException {\n\n CamStreaming camStreaming = new CamStreaming();\n VideoDataStream vds = new VideoDataStream(true);\n byte[] frame;\n\n if (camStreaming.prepareStream(in)) {\n\n while (camStreaming.isTargetConnected()) {\n try {\n\n if (dis.available() > 0) {\n frame = vds.processFrame(dis);\n camStreaming.sendData(frame);\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n break;\n }\n sleep(20);\n }\n \n dos.writeInt(END_OF_STREAM_CODE);\n dos.flush();\n \n// CamRegister.removeCamClient(camClient);\n \n RecordStorage recordStorage = new RecordStorage();\n\n recordStorage.saveVideo(vds.getBuffer(), camClient.getCamCode());\n\n vds.cleanBuffer();\n\n }\n\n }", "protected void openStream ()\n {\n stream = Util.stream (entry, \"Holder.java\");\n }", "private static void backPressureChallenge() {\n\t\tObservable.range(1, 1000000)\n\t\t//below map will run in sequential\n\t\t//since sequential it has to complete whole task then only it can allow consumer to start\n\t\t\t.map(item -> {\n\t\t\t\tSystem.out.println(\"Produced item \"+item +\" using thread \"+Thread.currentThread().getName());\n\t\t\t\treturn item;\n\t\t\t})\n\t\t\t.observeOn(Schedulers.io())\n\t\t\t//.subscribeOn(Schedulers.io())//with this whole pipelein runs in seprate thread paralleley\n\t\t\t//below will run in concurrent\n\t\t\t.subscribe(item ->{\n\t\t\t\t//mimcing slowness\n\t\t\t\tThreadUtil.sleep(300);\n\t\t\t\tSystem.out.println(\"Consumed item \"+item +\" using thread \"+Thread.currentThread().getName());\n\t\t\t})\n\t\t\t\n\t\t\t;\n\t\t\n\t\t//since running in async we need to sleep\n\t\tThreadUtil.sleep(10000000);\n\t}", "public static <E> Stream<E> buffer(Iterable<E> stream) {\n if (stream == null) return null;\n \n return new AbstractStream<E>() {\n final Iterable<E> input_stream = stream;\n List<E> buffer = null;\n\n public Iterator<E> iterator() {\n if (buffer != null) return buffer.iterator();\n \n buffer = new LinkedList<E>();\n return new Iterator<E>(){\n Iterator<E> iter = input_stream.iterator();\n public void remove(){ iter.remove(); }\n public boolean hasNext() { return iter.hasNext(); }\n public E next() {\n E next_item = iter.next();\n buffer.add(next_item);\n return next_item;\n }\n };\n }\n\n };\n }", "private void mapToObjUsingStream() {\n IntStream.range(1, 4)\n .mapToObj(i -> \"a\" + i)\n .forEach(System.out::println);\n }", "public interface StreamAlgorithm{\n \n \n /**\n * Return the stream content-length. If the content-length wasn't parsed,\n * return -1.\n */\n public int contentLength();\n \n \n /**\n * Return the stream header length. The header length is the length between\n * the start of the stream and the first occurance of character '\\r\\n' .\n */\n public int headerLength();\n \n \n /**\n * Allocate a <code>ByteBuffer</code>\n * @param useDirect allocate a direct <code>ByteBuffer</code>.\n * @param useView allocate a view <code>ByteBuffer</code>.\n * @param size the size of the newly created <code>ByteBuffer</code>.\n * @return a new <code>ByteBuffer</code>\n */\n public ByteBuffer allocate(boolean useDirect, boolean useView, int size);\n \n \n /**\n * Before parsing the bytes, initialize and prepare the algorithm.\n * @param byteBuffer the <code>ByteBuffer</code> used by this algorithm\n * @return <code>ByteBuffer</code> used by this algorithm\n */\n public ByteBuffer preParse(ByteBuffer byteBuffer);\n \n \n /**\n * Parse the <code>ByteBuffer</code> and try to determine if the bytes\n * stream has been fully read from the <code>SocketChannel</code>.\n * @paran byteBuffer the bytes read.\n * @return true if the algorithm determines the end of the stream.\n */\n public boolean parse(ByteBuffer byteBuffer);\n \n \n /**\n * After parsing the bytes, post process the <code>ByteBuffer</code> \n * @param byteBuffer the <code>ByteBuffer</code> used by this algorithm\n * @return <code>ByteBuffer</code> used by this algorithm\n */\n public ByteBuffer postParse(ByteBuffer byteBuffer); \n \n \n /**\n * Recycle the algorithm.\n */\n public void recycle();\n \n \n /**\n * Rollback the <code>ByteBuffer</code> to its previous state in case\n * an error as occured.\n */\n public ByteBuffer rollbackParseState(ByteBuffer byteBuffer); \n \n \n /**\n * The <code>Handler</code> associated with this algorithm.\n */\n public Handler getHandler();\n\n \n /**\n * Set the <code>SocketChannel</code> used by this algorithm\n */\n public void setSocketChannel(SocketChannel socketChannel);\n \n \n /**\n * Set the <code>port</code> this algorithm is used.\n */\n public void setPort(int port);\n \n \n /**\n * Return the port\n */\n public int getPort();\n \n \n /**\n * Return the class responsible for handling OP_READ.\n */\n public Class getReadTask(SelectorThread selectorThread);\n}", "@Override\n public final boolean isStreaming() {\n return false;\n }", "@Test\n public void bigDataInMap() throws Exception {\n\n final byte[] data = new byte[16 * 1024 * 1024]; // 16 MB\n rnd.nextBytes(data); // use random data so that Java does not optimise it away\n data[1] = 0;\n data[3] = 0;\n data[5] = 0;\n\n CollectingSink resultSink = new CollectingSink();\n\n StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();\n env.setParallelism(1);\n\n DataStream<Integer> src = env.fromElements(1, 3, 5);\n\n src.map(\n new MapFunction<Integer, String>() {\n private static final long serialVersionUID = 1L;\n\n @Override\n public String map(Integer value) throws Exception {\n return \"x \" + value + \" \" + data[value];\n }\n })\n .addSink(resultSink);\n\n JobGraph jobGraph = StreamingJobGraphGenerator.createJobGraph(env.getStreamGraph());\n\n final RestClusterClient<StandaloneClusterId> restClusterClient =\n new RestClusterClient<>(\n MINI_CLUSTER_RESOURCE.getClientConfiguration(),\n StandaloneClusterId.getInstance());\n\n try {\n submitJobAndWaitForResult(restClusterClient, jobGraph, getClass().getClassLoader());\n\n List<String> expected = Arrays.asList(\"x 1 0\", \"x 3 0\", \"x 5 0\");\n\n List<String> result = CollectingSink.result;\n\n Collections.sort(expected);\n Collections.sort(result);\n\n assertEquals(expected, result);\n } finally {\n restClusterClient.close();\n }\n }", "public static JavaStreamingContext processStream() throws SparkException {\n SparkConf streamingConf = new SparkConf().setMaster(\"local[2]\").setAppName(\"voting\");\r\n streamingConf.set(\"spark.streaming.stopGracefullyOnShutdown\", \"true\");\r\n\r\n // create a Spark Java streaming context, with stream batch interval\r\n JavaStreamingContext jssc = new JavaStreamingContext(streamingConf, Durations.milliseconds(1000));\r\n\r\n // set checkpoint for demo\r\n jssc.checkpoint(System.getProperty(\"java.io.tmpdir\"));\r\n\r\n jssc.sparkContext().setLogLevel(Level.OFF.toString()); // turn off Spark logging\r\n\r\n // set up receive data stream from kafka\r\n final Set<String> topicsSet = new HashSet<>(Arrays.asList(topic));\r\n final Map<String, String> kafkaParams = new HashMap<>();\r\n kafkaParams.put(\"metadata.broker.list\", broker);\r\n\r\n // create a Discretized Stream of Java String objects\r\n // as a direct stream from kafka (zookeeper is not an intermediate)\r\n JavaPairInputDStream<String, String> rawDataLines =\r\n KafkaUtils.createDirectStream(\r\n jssc,\r\n String.class,\r\n String.class,\r\n StringDecoder.class,\r\n StringDecoder.class,\r\n kafkaParams,\r\n topicsSet\r\n );\r\n\r\n JavaDStream<String> lines = rawDataLines.map((Function<Tuple2<String, String>, String>) Tuple2::_2);\r\n System.out.println(lines);\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n return jssc;\r\n }", "private static long cpio(BufferedInputStream in, BufferedOutputStream out, String wt) throws IOException {\r\n\r\n\t\tbyte[] buffer = new byte[buffSize];\r\n\r\n\t\tint c;\r\n\t\tlong tot = 0;\r\n\t\tlong s = System.nanoTime();\r\n\t\twhile ((c = in.read(buffer, 0, buffer.length)) != -1) {\r\n\t\t\tout.write(buffer, 0, c);\r\n\t\t\ttot += c;\r\n\t\t}\r\n\r\n\t\tlong tim = System.nanoTime() - s;\r\n\t\tdouble dtim = tim == 0 ? 0.5 : tim; // avg of those less than 1 nanoseconds is taken as 0.5 nanoseconds\r\n\t\tdouble bps = tot * 1000 * 1000 / dtim;\r\n\t\tSystem.out.println(bps);\r\n\t\treturn tot;\r\n\t}", "void mo6321a(OutputStream outputStream, Object obj);", "public static int sumUsingStreams(int []arr)\n{\n //Your code here\n //using stream.sum()\n return Arrays.stream( arr)\n .sum(); \n \n}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Create Stream of Object\\n\");\n\t\tStream<String> stream= Stream.of(\"Saliou\",\"Fatimatou\",\"Mahdiyou\",\"Kolon\");\n\t stream.forEach(System.out::println);\n\t \n // Create Stream from Objects from Collection\n\t\tSystem.out.println(\" \\n\\nCreate Stream Object from collection\\n\");\n\t Collection<String> collection=Arrays.asList(\"Saliou\",\"Fatimatou\",\"Mahdiyou\",\"Kolon\");\n\t Stream<String> stream2=collection.stream();\n\t stream2.forEach(System.out::println);\n\t \n\t //Create Stream Object from Collection\n\t System.out.println(\"\\n\\nCreate Stream Object from List\");\n\t List<String> list= Arrays.asList(\"Modou\",\"Fatou\",\"Saliou\",\"Samba\");\n\t Stream<String> stream3=list.stream();\n\t stream3.forEach(System.out::println);\n\t \n\t //Create Stream Object from Set\n\t System.out.println(\"\\n Create Stream from Set\");\n\t Set<String> set= new HashSet<>(list);\n\t Stream<String> stream4= set.stream();\n\t stream4.forEach(System.out::println);\n\t \n\t //Create Stream Object from Arrays\n\t System.out.println(\"\\nCreate Stream Object from Arrays\");\n\t ArrayList<String> array= new ArrayList<>(list);\n\t Stream<String> stream5= array.stream();\n\t stream5.forEach(System.out::println);\n\t \n\t //Create Stream from Array of String\n\t System.out.println(\"\\n Create Stream from Array of String\");\n\t String[] strArray= {\"Saliou\",\"Fatimatou\",\"Mahdiyou\",\"Kolon\"};\n\t Stream<String> stream6=Arrays.stream(strArray);\n\t stream6.forEach(System.out::println);\n\t \n\t \n\t}", "public IntStream parallelStream(long size) {\n\treturn StreamSupport.intStream(spliterator(size), true);\n }", "private void openStreams() {\n\t\ttry {\n\t\t\t// mostramos un log\n\t\t\tthis.getLogger().debug(\"Opening streams..\");\n\t\t\t// abrimos el stream de salida\n\t\t\tthis.setOutputStream(new ObjectOutputStream(this.getConnection().getOutputStream()));\n\t\t\t// abrimos el stream de entrada\n\t\t\tthis.setInputStream(new ObjectInputStream(this.getConnection().getInputStream()));\n\t\t} catch (final IOException e) {}\n\t}", "public static void main(String[] args) {\n\t\tStream<Integer> numStream = numbers.stream();\n\t\t\n\t\t// numStream.forEach(System.out::println); // here stream is closed\n\t\t// numStream.forEach(System.out::println); // this line with throw java.lang.IllegalStateException: stream has already been operated upon or closed\n\t\t\n\t\t// Flux has the similary concepts cannot use the same flux steam multiple times.\n\t\t// Flux<Integer> fluxStream = Flux.fromStream(numStream);\n\t\t\n//\t\tfluxStream.subscribe(\n//\t\t\t\tLamdaUtil.onNext(),\n//\t\t\t\tLamdaUtil.onError(),\n//\t\t\t\tLamdaUtil.onComplete()\n//\t\t\t\t);\n\t\t\n//\t\tfluxStream.subscribe(\n//\t\t\t\tLamdaUtil.onNext(),\n//\t\t\t\tLamdaUtil.onError(),\n//\t\t\t\tLamdaUtil.onComplete()\n//\t\t\t\t);// this line with throw ERROR :stream has already been operated upon or closed\n\t\t\n\t\t// to reuse the same data several times we need to use supplier with every time new stream\n\t\t\n\t\tFlux<Integer> numSupplierStream = Flux.fromStream(() -> numbers.stream());\n\t\tnumSupplierStream.subscribe(\n\t\t\t\tLamdaUtil.onNext(),\n\t\t\t\tLamdaUtil.onError(),\n\t\t\t\tLamdaUtil.onComplete()\n\t\t\t\t);\n\t\tnumSupplierStream.subscribe(\n\t\t\t\tLamdaUtil.onNext(),\n\t\t\t\tLamdaUtil.onError(),\n\t\t\t\tLamdaUtil.onComplete()\n\t\t\t\t);\n\t\t\n\t}", "private void requestLiveStreaming() throws IOException {\n\n String targetCamCode = dis.readUTF();\n\n Cam targetCam = CamRegister.findRegisteredCam(targetCamCode);\n\n try {\n DataOutputStream targetDos = new DataOutputStream(targetCam.getCamSocket().getOutputStream());\n\n targetDos.writeInt(LIVE_STREAMING_COMMAND);\n targetDos.writeUTF(camClient.getCamCode());\n targetDos.flush();\n\n dos.writeInt(SUCCESS_CODE);\n dos.flush();\n\n } catch (Exception e) {\n e.printStackTrace();\n dos.writeInt(NOT_FOUND_CODE);\n dos.flush();\n }\n }", "void read(StreamOption streamOpt);", "static <T> EagerFutureStream<T> eagerFutureStream(Stream<T> stream) {\n\t\tif (stream instanceof FutureStream)\n\t\t\treturn (EagerFutureStream<T>) stream;\n\t\tEagerReact er = new EagerReact(\n\t\tThreadPools.getCurrentThreadExecutor(), RetryBuilder.getDefaultInstance()\n\t\t.withScheduler(ThreadPools.getSequentialRetry()),false);\n\t\t\n\t\treturn new EagerFutureStreamImpl<T>(er,\n\t\t\t\tstream.map(CompletableFuture::completedFuture)).sync();\n\t}" ]
[ "0.6400279", "0.6306332", "0.5961566", "0.5869931", "0.58658767", "0.5830342", "0.57586306", "0.5749271", "0.57290447", "0.5614588", "0.55908895", "0.5590721", "0.5586435", "0.5584547", "0.55764776", "0.5532541", "0.54852194", "0.5467896", "0.5443757", "0.5441455", "0.54414517", "0.54099977", "0.5392253", "0.539182", "0.53781676", "0.5375767", "0.53756577", "0.53671503", "0.5317597", "0.5313634", "0.5312455", "0.5304876", "0.5277276", "0.5275", "0.5268535", "0.526387", "0.52606386", "0.52564865", "0.52414304", "0.5227729", "0.5225504", "0.52250034", "0.51905054", "0.5188385", "0.5182792", "0.517461", "0.5171727", "0.51706195", "0.51698405", "0.5169556", "0.5165742", "0.51565826", "0.5153058", "0.5150312", "0.51460576", "0.5145736", "0.513195", "0.5127548", "0.51258516", "0.51241493", "0.51226956", "0.5122524", "0.51199114", "0.5103575", "0.5100678", "0.50978994", "0.50917506", "0.50913274", "0.5079586", "0.50777566", "0.50774217", "0.5074011", "0.50722605", "0.5057296", "0.50484693", "0.5036635", "0.50333977", "0.50309634", "0.50300354", "0.50287014", "0.50191444", "0.5017539", "0.5007719", "0.5003339", "0.50023663", "0.50022393", "0.49970546", "0.49955216", "0.49876902", "0.49836728", "0.4976861", "0.49703467", "0.49671122", "0.4954777", "0.49431542", "0.49419218", "0.49385574", "0.49382192", "0.4933048", "0.4932109" ]
0.5805151
6
doFor(): 1449026 Cost time: 32ms
public static void doFor(){ ArrayList<Person> personCopy = new ArrayList<>(person); long l = System.currentTimeMillis(); int ans = 0; for (Person p: personCopy){ if (p.getHeight() > 180){ ans++; } } System.out.println("doFor(): " + ans); long e = System.currentTimeMillis(); System.out.println("Cost time: " + (e - l) + "ms"); System.out.println("----------------------------"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void visitForLoopNode(ForLoopNode node);", "@Override\n protected void runOneIteration() throws Exception {\n }", "public void runOneIteration() {\n // Update user latent vectors\n\n //IntStream.range(0,userCount).peek(i->update_user(i)).forEach(j->{});\n\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n\n // Update item latent vectors\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n }", "public void nextIterate() {\n\tdd1[0] = POW2_53 * d1;\n\tdd1[1] = 0.0;\n\tdddivd(dd1, POW3_33, dd2);\n\tddmuldd(POW3_33, Math.floor(dd2[0]), dd2);\n\tddsub(dd1, dd2, dd3);\n\td1 = dd3[0];\n\tif (d1 < 0.0) {\n\t d1 += POW3_33;\n\t}\n }", "private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }", "private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }", "public void run( ) {\n long sum = 0;\n for (int i = 0; i < 1000; i++) {\n sum += i;\n }\n System.out.println(sum);\n }", "private static void iterator() {\n\t\t\r\n\t}", "@Override\n\tpublic void run() {\n\t\tresult =\n\t\t\tStream.iterate(new int[]{0, 1}, s -> new int[]{s[1], s[0] + s[1]})\n\t\t\t\t.limit(limit)\n\t\t\t\t.map(n -> n[0])\n\t\t\t\t.collect(toList());\n\n\t}", "void test(int loop){\n\t\tfor(int i=0; i<loop; i++){\n\t\t\ttest(loop / 2);\n\t\t}\n//\t\tSystem.out.printf(\"loop done: %d\\n\", loop);\n//\t\tlong end = System.nanoTime();\n\t}", "@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }", "@Override\r\n public long problem1(int size) {\r\n StringBuilder sb = new StringBuilder();\r\n long start = System.currentTimeMillis();\r\n for (int i=0; i<size; i++) {\r\n sb.append(i);\r\n }\r\n long end = System.currentTimeMillis();\r\n return end - start;\r\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs2=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size2=:\"+hs2.size());\r\n\t\t\t\tIterator<String> iter = hs2.iterator();\r\n\t\t\t\twhile(iter.hasNext()){\r\n\t\t\t\t String result = iter.next();\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time2=: \"+(end-start));\r\n\t\t\t}", "public void runOneIteration() {\n\t\t// Update user latent vectors\n\t\tfor (int u = 0; u < userCount; u++) {\n\t\t\tupdate_user(u);\n\t\t}\n\n\t\t// Update item latent vectors\n\t\tfor (int i = 0; i < itemCount; i++) {\n\t\t\tupdate_item(i);\n\t\t}\n\t}", "private final void m11968d() {\n synchronized (this.f10173g) {\n for (zzsk a : this.f10174h) {\n a.m11971a();\n }\n }\n }", "public static void reduceByOneUsingLoop(int j) {\n long now = System.currentTimeMillis();\n if (j >= 0) {\n\n int count = 0;\n while (count < j) {\n count += 1;\n System.out.println(\"Completed call \" + count + \" using loop\");\n }\n\n System.out.println(\"Loop is completed in millisec \" + (System.currentTimeMillis() - now));\n\n }\n }", "void iterate(FnIntFloatToVoid function);", "private static int runBenchmark(int n) {\n int result = 0;\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n result = benchmarkedMethod();\n }\n }\n return result;\n }", "public void visit(ForStatement forStatement) {\n\t}", "protected class_496 method_1607() {\n if (this.field_934.field_183 != this.field_938) {\n throw new ConcurrentModificationException();\n } else {\n class_496 var1 = this.field_937;\n if (var1 == null) {\n throw new NoSuchElementException(\"No next() entry in the iteration\");\n } else {\n class_496[] var2 = this.field_934.field_181;\n int var3 = this.field_935;\n\n class_496 var4;\n for(var4 = var1.field_903; var4 == null && var3 > 0; var4 = var2[var3]) {\n --var3;\n }\n\n this.field_937 = var4;\n this.field_935 = var3;\n this.field_936 = var1;\n return var1;\n }\n }\n }", "public void nextIteration() {t++;}", "private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }", "@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }", "@Test\n public void iterate0() {\n runAndWait(() -> {\n int err = 0;\n RBTree<Integer> tree = new RBTree<>();\n List<Integer> list = new ArrayList<>(List.of(1, 2, 3, 4, 5, 6, 7, 8, 9, 10));\n Collections.shuffle(list);\n tree.addAll(list);\n Collections.sort(list);\n int i = 0;\n for (int val : tree) {\n if (i >= list.size()) {\n fail(\"The tree iterated over more elements than the initial list!\");\n }\n if (val != list.get(i)) {\n System.err.println(\"Expected the value \" + list.get(i) + \", but found \" + val);\n err++;\n }\n i++;\n }\n assertEquals(\"There were \" + err + \" errors!\", 0, err);\n }, 64, 1000);\n \n }", "@Override\r\n public void run() {\n super.run();\r\n for (int i = 0; i < 50000; i++) {\r\n System.out.println(\"i=\" + (i + 1));\r\n }\r\n }", "public void doAll() {\n for (int i = 0; i < Integer.MAX_VALUE; i++) {\n sum += sumLoop(sumLoopArray);\n sum += sumIfEvenLoop(sumLoopArray);\n sum += sumIfPredicate(sumLoopArray);\n sum += sumShifted(3, 0x7f, sumLoopArray);\n addXtoArray(i, addXArray);\n sum += sumLoop(addXArray);\n addArraysIfEven(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n addArraysIfPredicate(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n sum += sumLoop(addArraysIfEvenArrayA);\n }\n }", "public void mo442d() {\n long j;\n long j2;\n int i;\n long j3;\n boolean z;\n C0245a[] aVarArr;\n int i2;\n int i3;\n C3683c<? super U> cVar = this.f472a;\n int i4 = 1;\n while (!mo443e()) {\n C0211f<U> fVar = this.f477f;\n long j4 = this.f482m.get();\n boolean z2 = j4 == Long.MAX_VALUE;\n if (fVar != null) {\n j = 0;\n while (true) {\n long j5 = 0;\n Object obj = null;\n while (true) {\n if (j4 == 0) {\n break;\n }\n Object e_ = fVar.mo386e_();\n if (!mo443e()) {\n if (e_ == null) {\n obj = e_;\n break;\n }\n cVar.onNext(e_);\n j++;\n j5++;\n j4--;\n obj = e_;\n } else {\n return;\n }\n }\n if (j5 != 0) {\n if (z2) {\n j4 = Long.MAX_VALUE;\n } else {\n j4 = this.f482m.addAndGet(-j5);\n }\n }\n if (j4 == 0 || obj == null) {\n break;\n }\n }\n } else {\n j = 0;\n }\n boolean z3 = this.f478g;\n C0211f<U> fVar2 = this.f477f;\n C0245a[] aVarArr2 = (C0245a[]) this.f481j.get();\n int length = aVarArr2.length;\n if (!z3 || ((fVar2 != null && !fVar2.mo384b()) || length != 0)) {\n if (length != 0) {\n i = i4;\n long j6 = this.f485p;\n int i5 = this.f486q;\n if (length <= i5 || aVarArr2[i5].f462a != j6) {\n if (length <= i5) {\n i5 = 0;\n }\n int i6 = i5;\n for (int i7 = 0; i7 < length && aVarArr2[i6].f462a != j6; i7++) {\n i6++;\n if (i6 == length) {\n i6 = 0;\n }\n }\n this.f486q = i6;\n this.f485p = aVarArr2[i6].f462a;\n i5 = i6;\n }\n int i8 = i5;\n z = false;\n int i9 = 0;\n while (true) {\n if (i9 >= length) {\n aVarArr = aVarArr2;\n break;\n } else if (!mo443e()) {\n C0245a aVar = aVarArr2[i8];\n Object obj2 = null;\n while (!mo443e()) {\n C0212g<U> gVar = aVar.f467f;\n if (gVar == null) {\n aVarArr = aVarArr2;\n i2 = length;\n } else {\n aVarArr = aVarArr2;\n i2 = length;\n long j7 = 0;\n while (j2 != 0) {\n try {\n obj2 = gVar.mo386e_();\n if (obj2 == null) {\n break;\n }\n cVar.onNext(obj2);\n if (!mo443e()) {\n j2--;\n j7++;\n } else {\n return;\n }\n } catch (Throwable th) {\n Throwable th2 = th;\n C0171b.m584b(th2);\n aVar.dispose();\n this.f479h.mo516a(th2);\n if (!this.f474c) {\n this.f483n.mo407a();\n }\n if (!mo443e()) {\n mo439b(aVar);\n i9++;\n i3 = i2;\n z = true;\n } else {\n return;\n }\n }\n }\n if (j7 != 0) {\n j2 = !z2 ? this.f482m.addAndGet(-j7) : Long.MAX_VALUE;\n aVar.mo433a(j7);\n }\n if (!(j2 == 0 || obj2 == null)) {\n aVarArr2 = aVarArr;\n length = i2;\n }\n }\n boolean z4 = aVar.f466e;\n C0212g<U> gVar2 = aVar.f467f;\n if (z4 && (gVar2 == null || gVar2.mo384b())) {\n mo439b(aVar);\n if (!mo443e()) {\n j++;\n z = true;\n } else {\n return;\n }\n }\n if (j2 == 0) {\n break;\n }\n int i10 = i8 + 1;\n i3 = i2;\n i8 = i10 == i3 ? 0 : i10;\n i9++;\n length = i3;\n aVarArr2 = aVarArr;\n }\n return;\n } else {\n return;\n }\n }\n this.f486q = i8;\n this.f485p = aVarArr[i8].f462a;\n j3 = j;\n } else {\n i = i4;\n j3 = j;\n z = false;\n }\n if (j3 != 0 && !this.f480i) {\n this.f483n.mo408a(j3);\n }\n if (z) {\n i4 = i;\n } else {\n i4 = addAndGet(-i);\n if (i4 == 0) {\n return;\n }\n }\n } else {\n Throwable a = this.f479h.mo515a();\n if (a != C0315e.f669a) {\n if (a == null) {\n cVar.onComplete();\n } else {\n cVar.onError(a);\n }\n }\n return;\n }\n }\n }", "public void mo29749op(int i) {\n if (i == 0) {\n C6638d.this.daT.mo29698og(0);\n }\n }", "public void run() {\n // Print runner description\n System.out.println(this.description);\n \n // Create a list of integers\n List <Integer> myList = makeList(30000);\n \n // Record starting time, for benchmarking\n long startTime = System.currentTimeMillis();\n \n // Execute 1000 solve syscles, to accumlate some time\n int result = 0;\n for (int i = 1; i <= 1000; i++) {\n result = runOnce(myList);\n }\n // Record ending time \n long endTime = System.currentTimeMillis();\n \n // Show the result and the execution time \n System.out.format(\"The result is %d.\\n\", result);\n System.out.println(\"Total execution time: \" + \n (endTime-startTime) + \"ms\\n\");\n }", "private static int benchmarkedMethod() {\n return 3;\n }", "public Object visit(ASTForStatement node, Object data) {\n \n int boolCompFor = sumExpressionComplexity( (ASTExpression) node.getFirstChildOfType( ASTExpression.class ) );\n \n Integer nPathFor = (Integer) ( (SimpleJavaNode) node.getFirstChildOfType( ASTStatement.class ) ).jjtAccept(\n this, data );\n \n return new Integer( boolCompFor + nPathFor.intValue() + 1 );\n }", "@Test\n public void loopTest() {\n Object[] resultActual = new Object[] {this.work1, this.work2, this.work3, this.work4};\n Object[] resultExpected = new Object[4];\n int index = 0;\n while (this.it.hasNext()) {\n resultExpected[index++] = this.it.next();\n }\n assertThat(resultActual, is(resultExpected));\n }", "Foreach createForeach();", "@Test\n public void testDAM30905001() {\n // this case uses forEach element for updating ToDos.\n testDAM30702001();\n }", "ForLoopRule createForLoopRule();", "private void fletcher_loop(){\r\n\t\tfor(; i.getPosition() < array1.getLength(); i.increment(null, duration)){\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(2,3);\r\n\t\t\tshowCalc_1(sum1.get(), array1.getData(i.getPosition()));\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum1.add(array1.getData(i.getPosition())); sum1.mod(255); sum1.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(3,4);\r\n\t\t\tsum1.switchHighlight(); \r\n\t\t\tshowCalc_1(sum2.get(), sum1.get());\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum2.add(sum1.get()); sum2.mod(255); sum2.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsum2.switchHighlight();\r\n\t\t\tsc.toggleHighlight(4,2);\r\n\t\t}\r\n\t}", "public void enhancedForLoop() {\n int[] numbers = {77,2,66,4,5,543,7,-9876,9,10};\n for (int i = 0; i < numbers.length ; i++) {\n System.out.println(i + \" \" + numbers[i]);\n }\n \n for (int number: numbers) {\n System.out.println(\"number = \" + number);\n }\n }", "public static void main(String[] args) {\r\n\t\ttry {\r\n\r\n\t\t\tint loop = 300;\r\n\r\n\t\t\tlong start = System.currentTimeMillis();\r\n\r\n\t\t\tfor (int i = 0; i < loop; i++ )\r\n\t\t\t\tbyList();\r\n\r\n\t\t\tlong t1 = System.currentTimeMillis();\r\n\r\n\t\t\tfor (int i = 0; i < loop; i++ )\r\n\t\t\t\tbyStream();\r\n\r\n\t\t\tlong t2 = System.currentTimeMillis();\r\n\r\n\t\t\tSystem.out.println(\"byList: \" + (t1 - start) + \"ms\");\r\n\t\t\tSystem.out.println(\"byStream: \" + (t2 - t1) + \"ms\");\r\n\r\n\t\t} catch(FileTreatmentException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void run() {\n // solve();\n faster();\n }", "private static void test1() {\n\n\tint n=10000;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint val=rand7();\n\t\t\tcount[val]++;\n\t\t}\n\t\t\n\t\tfor(int i:count)\n\t\t\tSystem.out.println(i);\n\t}", "public static void main(String[] args) {\n\t\tArrayList<Integer> numbers = new ArrayList<Integer>();\n\t\t\n\t\t//adding\n\t\tnumbers.add(10);\n\t\tnumbers.add(100);\n\t\tnumbers.add(50);\n\t\t\n\t\t//retrieving\n\t\tSystem.out.println(numbers.get(0));\n\t\t\n\t\t//Indexed for loop iteration\n\t\tSystem.out.println(\"Iteration#1\");\n\t\tfor(int i=0; i<numbers.size(); i++) {\n\t\t\tSystem.out.println(numbers.get(i));\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Iteration#2\");\n\t\tfor (Integer value: numbers) {\n\t\t\tSystem.out.println(value);\n\t\t}\n\t\t\n\t\t//removing items from the Last if ArrayList is fast\n\t\tnumbers.remove(numbers.size() -1);\n\t\t\n\t\t//remove items from the start of list a little slower, cuz internally it is an array\n\t\tnumbers.remove(0);\n\t\t\n\t\tLinkedList<Integer> linkedList = new LinkedList<Integer>();\n\t\tArrayList<Integer> arrayList = new ArrayList<Integer>();\n\t\t\n\t\tdoTimings(\"LinkedList\", linkedList);\n\t\tdoTimings(\"ArrayList\", arrayList);\n\t\t\n\t}", "public void run ()\n{\n for (int i = 3; i < 100000; i += 2)\n {\n if (negative)\n pi -= (1.0 / i);\n else\n pi += (1.0 / i);\n negative = !negative;\n }\n pi += 1.0;\n pi *= 4.0;\n System.out.println (\"Finished calculating PI\");\n}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmLc.iterate() ;\n\t\t\t\t}", "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static double doThroughPut() {\n double totalProgramRunTime = endProgramTime - startProgramTime;\n return (count / totalProgramRunTime) * 100000.0;\n\n }", "private void calculate() throws InterruptedException {\n\tfor (int i = 1; i <= 100; i++) {\n\t Thread.sleep(100);\n\t update(i);\n\t}\n }", "protected void computeDirectly() throws IOException {\n\n\n for(int i = mStart; i < mStart + mLength; i++) {\n mSource[i].forEachRemaining(n -> {\n try {\n Writer.writeBlockForNode(n, db, bufferedWriter, reportBlockSize, relationshipType);\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }\n\n\n\n }", "@Test\n public void test17() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1337,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test17\");\n LinkedHashSet<Object> linkedHashSet0 = new LinkedHashSet<Object>();\n ResettableIterator<Object> resettableIterator0 = IteratorUtils.loopingIterator((Collection<?>) linkedHashSet0);\n assertEquals(false, resettableIterator0.hasNext());\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs1=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size1=:\"+hs1.size());\r\n\t\t\t\tfor(String result:hs1){\r\n\t\t\t\t\tresult.toString();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time1=: \"+(end-start));\r\n\t\t\t}", "public static void main(String[] args) {\n\t\tdouble i=0;\n\t\tboolean flag=true;\n\t\tdouble sum=0;\n\t\t\n\t\tfor(i=1;i<=100_000;i=i+2)\n\t\t{\n\t\t\tif(flag)\n\t\t\t{\n\t\t\t\tsum=sum+4/i;\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsum=sum-4/i;\n\t\t\t}\n\t\t\tflag=!flag;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}", "protected void runBeforeIteration() {}", "public void mo7624j() {\n mo7623i();\n int size = this.f4372b.size();\n for (int i = 0; i < size; i++) {\n C0933b bVar = this.f4372b.get(i);\n int i2 = bVar.f4379a;\n if (i2 == 1) {\n this.f4374d.mo7441d(bVar);\n this.f4374d.mo7444g(bVar.f4380b, bVar.f4382d);\n } else if (i2 == 2) {\n this.f4374d.mo7441d(bVar);\n this.f4374d.mo7445h(bVar.f4380b, bVar.f4382d);\n } else if (i2 == 4) {\n this.f4374d.mo7441d(bVar);\n this.f4374d.mo7440c(bVar.f4380b, bVar.f4382d, bVar.f4381c);\n } else if (i2 == 8) {\n this.f4374d.mo7441d(bVar);\n this.f4374d.mo7438a(bVar.f4380b, bVar.f4382d);\n }\n Runnable runnable = this.f4375e;\n if (runnable != null) {\n runnable.run();\n }\n }\n mo7636x(this.f4372b);\n this.f4378h = 0;\n }", "public abstract void completeIteration();", "public void run() {\n for (int i = start; i <= end; i++) {\n //reset output variable\n output = 1;\n array[i] = computeFactorial(array[i]);\n }\n }", "public int forEachByte(int index, int length, ByteProcessor processor)\r\n/* 667: */ {\r\n/* 668:676 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 669:677 */ return super.forEachByte(index, length, processor);\r\n/* 670: */ }", "public static void pause() {\n int m = 0;\n for (int j = 0; j <= 1000000000; ++j) {\n for (int i = 0; i <= 1000000000; ++i) ++m;\n }\n\n }", "@Ignore\r\n @Test\r\n public void speedTest() throws InterruptedException {\n for (int i = 0; i < 10; i++) {\r\n singleSpeedTest();\r\n }\r\n }", "@Benchmark\r\n\tpublic void withoutStream(Blackhole bh) {\r\n\t\tList<Double> result = new ArrayList<Double>(DATA_FOR_TESTING.size() / 2 + 1);\r\n\t\tfor (Integer i : DATA_FOR_TESTING) {\r\n\t\t\tif (i % 2 == 0) {\r\n\t\t\t\tresult.add(Math.sqrt(i));\r\n\t\t\t\tbh.consume(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void runAfterIterations() {}", "@Test\n\tpublic void testRun1() {\n\t\n\t\tRingSum s = new RingSum(3);\n\t\tfor( int i = 0; i < 120; ++i )\n\t\t{\n\t\t\ts.push(0);\n\t\t\ts.push(1);\n\t\t\ts.push(0);\n\t\t\tassertTrue(s.get() == 1);\n\t\t}\n\t\t\n\t}", "public void processingTotal(int i);", "@Test\n\tpublic void test() {\n\t\tlong l = System.currentTimeMillis();\n\t\tForkJoinPool forkJoinPool = new ForkJoinPool();// 实现ForkJoin\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 就必须有ForkJoinPool的支持\n\t\tForkJoinTask<Long> task = new ForkJoinWork(0L, 10000000000L);// 参数为起始值与结束值\n\t\tLong invoke = forkJoinPool.invoke(task);\n\t\tlong l1 = System.currentTimeMillis();\n\t\tSystem.out.println(\"test invoke = \" + invoke + \" time: \" + (l1 - l));\n\t\t// invoke = -5340232216128654848 time: 76474\n\t}", "public static void main(String[] args) {\n\n\n List<Integer> source = buildIntRange();\n\n if(CollectionUtils.isNotEmpty(source)){\n\n }\n // 传统方式的遍历\n long start = System.currentTimeMillis();\n for (int i = 0; i < source.size(); i++) {\n try {\n TimeUnit.MILLISECONDS.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n System.out.println(\"传统方式 : \" + (System.currentTimeMillis() - start) + \"ms\");\n\n // 单管道stream\n start = System.currentTimeMillis();\n source.stream().forEach(r -> {\n try {\n TimeUnit.MILLISECONDS.sleep(1);\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n System.out.println(\"stream : \" + (System.currentTimeMillis() - start) + \"ms\");\n\n // 多管道parallelStream\n start = System.currentTimeMillis();\n source.parallelStream().forEach(r -> {\n try {\n TimeUnit.MILLISECONDS.sleep(1);\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n System.out.println(\"parallelStream : \" + (System.currentTimeMillis() - start) + \"ms\");\n }", "public static void main (String []args) {\n\tlong first = System.currentTimeMillis();\n\tlong sum=0;\n\tfor (int i = 0; i < 100000; i++) {\n\t String[] str = strings();\n\t sum += str[0].charAt(0);\n\t}\n\tlong done = System.currentTimeMillis();\n\n\tSystem.out.println ((done - first)*1000);\n\tSystem.out.println (sum);\n }", "@Test\n public void testObject()\n throws Exception\n {\n initialize();\n genericTests();\n for (int i = 0; i < 10; i++)\n {\n permutateObjects();\n genericTests();\n } // for\n }", "public static void main(String[] args) {\r\n\t\tfor(int i=0;i<200000000;i++){\r\n\t\t\ttest();\r\n\t\t\tif(i == 9 || i == 19){\r\n\t\t\t\tRuntime.getRuntime().gc();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void run() {\n \n initExplorationBounds();\n \n long timer = System.currentTimeMillis();\n \n // ITERATE THROUGH ALL THE POSSIBLE OBJECT SCOPES\n while (configuration.isIncrementalLoopUnroll() ||\n configuration.getObjectScope() <= configuration.getMaximumObjectScope())\n {\n \n // FOR EACH OBJECT SCOPE ITERATE THROUGH ALL THE LOOP UNROLLS\n // UNTIL NO LOOP EXHAUSTION IS ENCOUNTERED\n {\n FajitaRunner.printStep(\"FAJITA: Decorating Java code for \" +\n configuration.getObjectScope() + \" scope and \" +\n configuration.getLoopUnroll() + \" unroll\");\n runFajitaCodeDecorator();\n \n FajitaRunner.printStep(\"FAJITA: Translating Java -> Alloy\");\n runTaco();\n \n if (configuration.isIncrementalLoopUnroll())\n configuration.setInfiniteScope(true);\n \n if (configuration.isOnlyTranslateToAlloy()) {\n System.out.println(\"Translation to Alloy completed.\"); \n return;\n }\n \n if (configuration.getDiscoveredGoals() == 0) {\n System.out.println(\"No goals found for the chosen test selection criterion.\");\n return;\n }\n \n FajitaRunner.printStep(\"FAJITA: Enumerating Solutions using AlloyCLI\");\n runAlloyCli();\n \n FajitaRunner.printStep(\"Reporting Coverage\");\n FajitaOutputProcessor.newProcessor(configuration).getCoverage();\n \n/// boolean loopExhaustionEncountered = configuration.getCoveredGoals().removeAll(\n/// configuration.getLoopExhaustionIncarnations());\n\n System.out.println((System.currentTimeMillis() - timer) / 1000 + \" s\");\n \n // CHECK STOP CONDITIONS\n if (configuration.getCoveredGoals().size() == configuration.getDiscoveredGoals() ||\n configuration.getCoverageCriteria() == CoverageCriteria.CLASS_COVERAGE ||\n (configuration.getCoverageCriteria() == CoverageCriteria.DUAL_CLASS_BRANCH_COVERAGE &&\n (configuration.getDualClassBranchIteration() == 0 ||\n configuration.getCoveredGoals().size() == configuration.getDualDiscoveredBranches())))\n {\n return;\n }\n \n/// if (!loopExhaustionEncountered) break;\n }\n \n if (!configuration.isInfiniteScope()) {\n System.out.println(\"Finite scope exhausted.\");\n break;\n }\n \n configuration.setObjectScope(configuration.getObjectScope() + 1);\n configuration.setLoopUnroll(configuration.getObjectScope() / 2); \n }\n }", "public int getIteration();", "private void iterativeDataPropertyMetrics() {\n\t}", "public boolean eliminateLoop(){ return false; }", "protected void runAfterIteration() {}", "private void process() {\n\tint i = 0;\n\tIOUtils.log(\"In process\");\n\tfor (Map.Entry<Integer, double[]> entry : vecSpaceMap.entrySet()) {\n\t i++;\n\t if (i % 1000 == 0)\n\t\tIOUtils.log(this.getName() + \" : \" + i + \" : \" + entry.getKey()\n\t\t\t+ \" : \" + this.getId());\n\t double[] cent = null;\n\t double sim = 0;\n\t for (double[] c : clusters.keySet()) {\n\t\t// IOUtils.log(\"before\" + c);\n\t\tdouble csim = cosSim(entry.getValue(), c);\n\t\tif (csim > sim) {\n\t\t sim = csim;\n\t\t cent = c;\n\t\t}\n\t }\n\t if (cent != null && entry.getKey() != null) {\n\t\ttry {\n\t\t clusters.get(cent).add(entry.getKey());\n\t\t} catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t}\n\t }\n\t}\n }", "private int e(amj paramamj)\r\n/* 202: */ {\r\n/* 203:221 */ alq localalq = paramamj.b();\r\n/* 204:222 */ int i = paramamj.b;\r\n/* 205: */ \r\n/* 206:224 */ int j = d(paramamj);\r\n/* 207:225 */ if (j < 0) {\r\n/* 208:226 */ j = j();\r\n/* 209: */ }\r\n/* 210:228 */ if (j < 0) {\r\n/* 211:229 */ return i;\r\n/* 212: */ }\r\n/* 213:231 */ if (this.a[j] == null)\r\n/* 214: */ {\r\n/* 215:232 */ this.a[j] = new amj(localalq, 0, paramamj.i());\r\n/* 216:233 */ if (paramamj.n()) {\r\n/* 217:234 */ this.a[j].d((fn)paramamj.o().b());\r\n/* 218: */ }\r\n/* 219: */ }\r\n/* 220:238 */ int k = i;\r\n/* 221:239 */ if (k > this.a[j].c() - this.a[j].b) {\r\n/* 222:240 */ k = this.a[j].c() - this.a[j].b;\r\n/* 223: */ }\r\n/* 224:242 */ if (k > p_() - this.a[j].b) {\r\n/* 225:243 */ k = p_() - this.a[j].b;\r\n/* 226: */ }\r\n/* 227:246 */ if (k == 0) {\r\n/* 228:247 */ return i;\r\n/* 229: */ }\r\n/* 230:250 */ i -= k;\r\n/* 231:251 */ this.a[j].b += k;\r\n/* 232:252 */ this.a[j].c = 5;\r\n/* 233: */ \r\n/* 234:254 */ return i;\r\n/* 235: */ }", "public abstract Iterator<C17883a<E>> mo45843b();", "@Test\n public void test0() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(544,\"org.apache.commons.collections4.iterators.IteratorIterableEvoSuiteTest.test0\");\n EntrySetMapIterator<Integer, Object>[] entrySetMapIteratorArray0 = (EntrySetMapIterator<Integer, Object>[]) Array.newInstance(EntrySetMapIterator.class, 7);\n ObjectArrayIterator<EntrySetMapIterator<Integer, Object>> objectArrayIterator0 = new ObjectArrayIterator<EntrySetMapIterator<Integer, Object>>(entrySetMapIteratorArray0, 0, 0);\n IteratorIterable<Object> iteratorIterable0 = new IteratorIterable<Object>((Iterator<?>) objectArrayIterator0, true);\n }", "@Override\n\tpublic int isFast() {\n\t\treturn 2;\n\t}", "@Override\r\n\tpublic void run() {\n\t\tint i=0;\r\n\t\twhile(i<1000) {\r\n\t\t\tq.put(i++);\r\n\t\t}\r\n\t}", "private static void doParallelStream() {\n ArrayList<Person> personCopy = new ArrayList<>(person);\n long l = System.currentTimeMillis();\n long ans = personCopy.parallelStream().filter(p -> p.getHeight() > 180).count();\n System.out.println(\"doParallelStream(): \" + ans);\n long e = System.currentTimeMillis();\n System.out.println(\"Cost time: \" + (e - l) + \"ms\");\n System.out.println(\"----------------------------\");\n }", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "private static void demoPerformance(int aNumIterations){\n\t\tStopWatch stopwatch = new StopWatch();\n\t\tint[] numbers = {1,2,3,4,5,6,7,8,9,10};\n\n\t\tstopwatch.start();\n\t\tcopyUsingClone(numbers, aNumIterations);\n\t\tstopwatch.stop();\n\t\tlog(\"Using clone: \" + stopwatch);\n\n\t\tstopwatch.reset();\n\t\tstopwatch.start();\n\t\tcopyUsingArraycopy(numbers, aNumIterations);\n\t\tstopwatch.stop();\n\t\tlog(\"Using System.arraycopy: \" + stopwatch);\n\n\t\tstopwatch.reset();\n\t\tstopwatch.start();\n\t\tcopyUsingArraysCopyOf(numbers, aNumIterations);\n\t\tstopwatch.stop();\n\t\tlog(\"Using Arrays.copyOf: \" + stopwatch);\n\n\t\tstopwatch.reset();\n\t\tstopwatch.start();\n\t\tcopyUsingForLoop(numbers, aNumIterations);\n\t\tstopwatch.stop();\n\t\tlog(\"Using for loop: \" + stopwatch);\n\t}", "private void run() {\n int code = memory[pc];\n while (code != 0) {\n nextCode(code);\n code = memory[++pc];\n }\n }", "private static void nestedFor(int i) {\n\t\tif (i == pows.length) {\n\t\t\tsjekkTall();\n\t\t\treturn;\n\t\t}\n\t\tint pow = pows[i];\n\t\t\n\t\tfor (int pow1 = 0; pow1 <= pow; pow1++) {\n\t\t\tpows1[i] = pow1;\n\t\t\tfor (int pow2 = 0; pow2+pow1 <= pow; pow2++) {\n\t\t\t\tpows2[i] = pow2;\n\t\t\t\tint pow3 = pow-pow1-pow2;\n\t\t\t\tpows3[i] = pow3;\n\t\t\t\tnestedFor(i+1);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void run() {\n\t\tfor (int i = 1; i <= 200000000; i++) {\r\n\t\t\tString str = \"a\";\r\n\t\t\tstr += \"b\";\r\n\t\t\tstr += \"c\";\r\n\t\t}\r\n\t\tSystem.out.println(getName() + \"종료\");\r\n\t}", "private static void runGC () throws Exception \r\n {\n for (int r = 0; r < 4; ++ r) _runGC (); \r\n }", "@Test\n public void testStuffWithCoverage() {\n\n for(int a = -5; a <= 5; a ++) {\n for (int b = -5; b <= 5; b++) {\n SampleSmallClass.doSomeMath(a, b);\n }\n }\n }", "@Override\n\tpublic void run() {\n\t\tfor(long i=start;i<=end;i++)\n\t\t{\n\t\t\tif(isprime(i))\n\t\t\t\tcount++;\n\t\t\t\n\t\t}\n\t\tres =false;\n\t}", "public void run() {\n PopulationFGA<Integer> poblacionActual = new PopulationFGA<>(funcionBorn,\n funcionFitness,\n problema.getDimension(),\n 1);\n poblacionActual.incializa(200);\n while(!condTerminacion.conditionReached(poblacionActual)) {\n System.out.println(\"Generacion Actual: \" + poblacionActual.getGeneracion());\n poblacionActual = iteration(poblacionActual);\n }\n ArrayList<IndividualFGA<Integer>> individuos = poblacionActual.generaIndividuos();\n IndividualFGA<Integer> mejor = individuos.get(0);\n for (IndividualFGA<Integer> e : individuos) {\n if (mejor.getFitness() <= e.getFitness())\n mejor = e;\n }\n System.out.println(\"Mejor solucion \" + '\\n' + mejor.toString());\n //System.out.println(\"Fitness \" + mejor.getFitness());\n int dim = problema.getDimension();\n int costo = 0;\n int obj1;\n int obj2;\n Phenotype<Integer> fenotipo = mejor.getRepActual();\n for (int i = 0; i < (dim - 1); i++) {\n obj1 = fenotipo.getAllele(i).intValue() - 1;\n for (int j = i + 1; j < dim; j++) {\n obj2 =fenotipo.getAllele(j).intValue() - 1; \n costo = costo + problema.getDistanciaEntre(i,j) * problema.getFlujoEntre(obj1,obj2);\n }\n }\n System.out.println(\"Costo de la solucion: \" + costo);\n\n }", "static /* synthetic */ void m34120F(int i, long j) {\n AppMethodBeat.m2504i(114776);\n C22440b c22440b;\n if (i == 11) {\n c22440b = new C22440b();\n c22440b.startTime = System.currentTimeMillis();\n sJR.put(Long.valueOf(j), c22440b);\n AppMethodBeat.m2505o(114776);\n return;\n }\n if (i == 12) {\n if (!sJR.containsKey(Long.valueOf(j))) {\n new C22440b().startTime = System.currentTimeMillis();\n AppMethodBeat.m2505o(114776);\n return;\n }\n } else if (i == 13) {\n c22440b = (C22440b) sJR.get(Long.valueOf(j));\n if (c22440b != null) {\n c22440b.endTime = System.currentTimeMillis();\n sJT.add(c22440b);\n sJR.remove(Long.valueOf(j));\n }\n }\n AppMethodBeat.m2505o(114776);\n }", "private static void task111(int nUMS, RedBlackBST<Integer, Integer> i, GenerateInt generateInt) {\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Fill in the table...RED BLAST BST TREE\" );\n\t int count=0;\n\t\tfor( int z = 1; z <= nUMS; z++)\n\t\t{\n\t\t\t \t\t \n\t\t\ti.put(z, z);\n\t\t\tcount = z;\n//\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t}\n\t\tSystem.out.println(\"Total Size \" + count);\n\t\tlong end = System.nanoTime();;\n\t\tlong elapsedTime = end - start;\n\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t}", "void eachVirtualShapeDo (FunctionalParameter doThis){\r\n\r\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext())\r\n doThis.execute(iter.next());\r\n\r\n // more here on\r\n }\r\n\r\n\r\n }", "private synchronized void flushCache() {\n /*\n r6 = this;\n monitor-enter(r6)\n r0 = 0\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n boolean r1 = r1.isEmpty() // Catch:{ all -> 0x005a }\n if (r1 == 0) goto L_0x000c\n monitor-exit(r6)\n return\n L_0x000c:\n r1 = 4\n if (r0 >= r1) goto L_0x0058\n int r1 = r6.cdS // Catch:{ all -> 0x005a }\n r2 = 64\n if (r1 > r2) goto L_0x001e\n int r1 = r6.cdT // Catch:{ all -> 0x005a }\n long r1 = (long) r1 // Catch:{ all -> 0x005a }\n long r3 = r6.cdV // Catch:{ all -> 0x005a }\n int r1 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r1 <= 0) goto L_0x0058\n L_0x001e:\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n java.util.Set r1 = r1.entrySet() // Catch:{ all -> 0x005a }\n java.util.Iterator r1 = r1.iterator() // Catch:{ all -> 0x005a }\n java.lang.Object r1 = r1.next() // Catch:{ all -> 0x005a }\n java.util.Map$Entry r1 = (java.util.Map.Entry) r1 // Catch:{ all -> 0x005a }\n java.io.File r2 = new java.io.File // Catch:{ all -> 0x005a }\n java.lang.Object r3 = r1.getValue() // Catch:{ all -> 0x005a }\n java.lang.String r3 = (java.lang.String) r3 // Catch:{ all -> 0x005a }\n r2.<init>(r3) // Catch:{ all -> 0x005a }\n long r2 = r2.length() // Catch:{ all -> 0x005a }\n java.util.Map<java.lang.String, java.lang.String> r4 = r6.cdY // Catch:{ all -> 0x005a }\n java.lang.Object r1 = r1.getKey() // Catch:{ all -> 0x005a }\n r4.remove(r1) // Catch:{ all -> 0x005a }\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n int r1 = r1.size() // Catch:{ all -> 0x005a }\n r6.cdS = r1 // Catch:{ all -> 0x005a }\n int r1 = r6.cdT // Catch:{ all -> 0x005a }\n long r4 = (long) r1 // Catch:{ all -> 0x005a }\n long r4 = r4 - r2\n int r1 = (int) r4 // Catch:{ all -> 0x005a }\n r6.cdT = r1 // Catch:{ all -> 0x005a }\n int r0 = r0 + 1\n goto L_0x000c\n L_0x0058:\n monitor-exit(r6)\n return\n L_0x005a:\n r0 = move-exception\n monitor-exit(r6)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.introvd.template.common.bitmapfun.util.DiskLruCache.flushCache():void\");\n }", "public void mo3746b(int i) {\n Optimizer.m1376a(i, this);\n }", "public static void main(String[] args) {\n\t\tdouble e=1.0;\r\n\t\tfor(int i=10000;i<=100000;i+=10000){\r\n\t\t\tdouble zimu = 1.0;\r\n\t\t\tfor(int j =1; j<=i ;j++){\r\n\t\t\t\tzimu /= j;\r\n\t\t\t\te += zimu;\r\n\t\t\t}\r\n\t\t\tSystem.out.printf(\"i= %d , e=%f\\n\", i,e);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void compute() {\n\t\t\r\n\t}", "@Override\r\n public long problem0(int size) {\r\n System.out.println(\"This is just an example, but please follow this template.\");\r\n String s = \"\";\r\n long start = System.currentTimeMillis();\r\n\r\n for (int i=0; i<size; i++) {\r\n s = s + i;\r\n }\r\n \r\n long end = System.currentTimeMillis();\r\n return end - start;\r\n }", "static /* synthetic */ Iterable m6171a(List list) {\n $jacocoInit()[107] = true;\n return list;\n }", "public int run(){\n\t\tint result = 0;\n\t\tfor(int a = 1; a<=900; a++){\n\t\t\tfor(int b = a; b<=900; b++){\n\t\t\t\tfor(int c = b; c<=900; c++){\n\t\t\t\t\tif(a+b+c == 1000){\n\t\t\t\t\t\tif(Math.pow(a, 2)+Math.pow(b, 2) == Math.pow(c, 2)){\n\t\t\t\t\t\t\tresult = a*b*c;\n\t\t\t\t\t\t\tSystem.out.println(a+\" \"+b+\" \"+c+\" \"+result);\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}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Override\n\tpublic void run() {\n\t\tlong start = System.nanoTime();\n\t\tfor (int j = 0; j < keymap.length; j++) {\n\t\t\ttry {\n\t\t\t\tkvstore.put(keymap[j][0] + ID, keymap[j][1]);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"keymap ist falsch!\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tlong end = System.nanoTime();\n\t\tlong duration = end - start;\n\t\te.durationMapPut.replace(this, e.durationMapPut.get(this).doubleValue() + (double) duration);\n\t\t\n\t\t//start evaluation of get calls\n\t\tstart = System.nanoTime();\n\t\tfor (int j = 0; j < keymap.length; j++) {\n\t\t\ttry {\n\t\t\t\tkvstore.get(keymap[j][0] + ID);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"keymap ist falsch!\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tend = System.nanoTime();\n\t\tlong duration2 = end - start;\n\t\te.durationMapPut.replace(this, e.durationMapGet.get(this).doubleValue() + (double) duration2);\n\t}", "void mo1761g(int i);" ]
[ "0.56909883", "0.5680989", "0.5669707", "0.56170595", "0.56076515", "0.56076515", "0.5580691", "0.55695647", "0.5552335", "0.55484474", "0.5542407", "0.54917985", "0.5489452", "0.5414571", "0.53851545", "0.53769034", "0.5364067", "0.5354812", "0.5345523", "0.53429115", "0.5310885", "0.52975774", "0.52808875", "0.5257689", "0.5255378", "0.52482593", "0.52396935", "0.5233607", "0.5211639", "0.52007824", "0.5194436", "0.51922953", "0.51915675", "0.51853216", "0.5173586", "0.5155455", "0.51486313", "0.514258", "0.5129158", "0.51245", "0.51236653", "0.5119777", "0.51163507", "0.51149744", "0.51140654", "0.50990456", "0.50870013", "0.5084673", "0.50826025", "0.5081721", "0.5080548", "0.50777787", "0.5070653", "0.50656915", "0.50642896", "0.50598085", "0.5056262", "0.5052905", "0.503746", "0.5036983", "0.503197", "0.503051", "0.50292534", "0.50195205", "0.50141954", "0.5013614", "0.50131667", "0.5009585", "0.50087416", "0.50074315", "0.50041187", "0.4995586", "0.49848583", "0.49793494", "0.49774575", "0.497733", "0.49768585", "0.4964321", "0.49628645", "0.49622837", "0.4962172", "0.49612752", "0.49557772", "0.49459207", "0.4944376", "0.49397647", "0.49386767", "0.49372226", "0.49345034", "0.4934308", "0.4929806", "0.49210757", "0.49160296", "0.49100217", "0.49090818", "0.4900988", "0.4900601", "0.4896949", "0.48965627", "0.48943007" ]
0.6395952
0
TODO Autogenerated method stub
public synchronized void addItem(IJABXAdvertisementItem item) { idMap.put(item.getSerialNo(), item); itemList.add(item); }
{ "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
Gets the value of the departmentId property.
public int getDepartmentId() { return departmentId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final int getDepartmentId() {\n return departmentId;\n }", "public java.lang.String getDepartmentId () {\r\n\t\treturn departmentId;\r\n\t}", "public Integer getDepartmentId() {\n return departmentId;\n }", "public Integer getDepartmentId() {\n return departmentId;\n }", "public Integer getDepartmentId() {\n return departmentId;\n }", "public Long getDepartmentId() {\n return departmentId;\n }", "public Long getDepartmentId() {\n return departmentId;\n }", "public Long getDepartmentId() {\n return departmentId;\n }", "public String getId()\r\n {\r\n return departmentBean.getId();\r\n }", "public Integer getDeptId() {\n return deptId;\n }", "public Integer getDeptId() {\n return deptId;\n }", "public Integer getDeptId() {\n return deptId;\n }", "public Integer getDeptId() {\n return deptId;\n }", "public String getDepartmentid() {\n return departmentid;\n }", "public Integer getDepartmentid() {\n return departmentid;\n }", "public Integer getDepartmentid() {\n return departmentid;\n }", "public Integer getDeptId() {\r\n return deptId;\r\n }", "public String getDeptId() {\n return deptId;\n }", "public String getDeptId() {\n return deptId;\n }", "public Long getDeptId() {\n return deptId;\n }", "@Override\n\tpublic long getEmployeeDepartmentId() {\n\t\treturn _candidate.getEmployeeDepartmentId();\n\t}", "@Override\n\tpublic GappDepartment getDepartmentId(Integer id) {\n\t\treturn entityManager.find(GappDepartment.class, id);\n\t\t// return entityManager.createQuery(\"from GappUsers\",\n\t\t// GappUsers.class).getResultList();\n\t}", "public Integer geteDeptId() {\n return eDeptId;\n }", "public void setDepartmentId(int value) {\n this.departmentId = value;\n }", "public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }", "public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }", "public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }", "public String getDepartment() {\r\n\t\treturn department;\r\n\t}", "public String getDepartment() {\r\n\t\treturn department;\r\n\t}", "public String getDepartment() {\r\n\t\treturn department;\r\n\t}", "public Optional<Department> getDepartmentId(long departmentId) {\n\t\treturn departmentRepository.findById(departmentId);\n\t}", "public DepartmentModel getDepartmentKey()\r\n\t{\r\n\t\treturn this.m_departmentKey;\r\n\t}", "public void setDepartmentId(Long departmentId) {\n this.departmentId = departmentId;\n }", "public void setDepartmentId(Long departmentId) {\n this.departmentId = departmentId;\n }", "public void setDepartmentId(Long departmentId) {\n this.departmentId = departmentId;\n }", "public String getDepartment() {\r\n return department;\r\n }", "public void setDepartmentid(Integer departmentid) {\n this.departmentid = departmentid;\n }", "public void setDepartmentid(Integer departmentid) {\n this.departmentid = departmentid;\n }", "public String getDepartment() {\n return department;\n }", "public String getDepartment() {\n return department;\n }", "public String getDepartment() {\n return department;\n }", "public String getDepartment() {\n return department;\n }", "public String getDepartment() {\n return department;\n }", "@Override\n public Department getDepartment(int departmentId) {\n return null;\n }", "public void setDepartmentId (java.lang.String departmentId) {\r\n\t\tthis.departmentId = departmentId;\r\n\t}", "public synchronized String getDepartment()\r\n {\r\n return department;\r\n }", "public String getDepartmentName() {\n\t\treturn departmentName;\n\t}", "public String getDepartmentCode() {\n\t\treturn departmentCode;\n\t}", "public final String getDepartmentName() {\n return departmentName;\n }", "public String getDepartmentName() {\n return departmentName;\n }", "public void setDeptId(Integer deptId) {\r\n this.deptId = deptId;\r\n }", "public String getDepartment(){\n\t\treturn departName;\n\t}", "public void setDeptId(Integer deptId) {\n this.deptId = deptId;\n }", "public void setDeptId(Integer deptId) {\n this.deptId = deptId;\n }", "public void setDeptId(Integer deptId) {\n this.deptId = deptId;\n }", "public void setDeptId(Integer deptId) {\n this.deptId = deptId;\n }", "public final void setDepartmentId(final Integer dId) {\n this.departmentId = dId;\n }", "public String getDepartment() {\n return departmentField.getText();\n }", "public Department findOne(long departmentId){\n\t\treturn departmentRepository.findOne(departmentId);\n\t}", "public void setDeptId(Long deptId) {\n this.deptId = deptId;\n }", "public Integer getDeptCode() {\n return deptCode;\n }", "@Override\r\n\tpublic Department getDepartmentById(int id) {\n\t\treturn getHibernateTemplate().get(Department.class, id);\r\n\t}", "public java.lang.Integer getDepartmentcode() {\n\treturn departmentcode;\n}", "public Department getDepartmentById(Integer id);", "public String getDepartmentCode()\r\n\t{\r\n\t\treturn getDepartmentCode( getSession().getSessionContext() );\r\n\t}", "public java.lang.String getDepartmentname() {\n\treturn departmentname;\n}", "public String GetDept()\r\n {\r\n return Department;\r\n }", "public String getDeptCode() {\n return deptCode;\n }", "public String getDeptCode() {\n return deptCode;\n }", "public String getDeptCode() {\n return deptCode;\n }", "@Override\n\tpublic Optional<Department> findDepartmentById(Integer id) {\n\t\treturn departmentRepository.findById(id);\n\t}", "public jkt.hms.masters.business.MasDepartment getDepartment() {\n\t\treturn department;\n\t}", "public void setDepartmentid(String departmentid) {\n this.departmentid = departmentid == null ? null : departmentid.trim();\n }", "public jkt.hms.masters.business.MasDepartment getDepartment () {\n\t\treturn department;\n\t}", "public jkt.hms.masters.business.MasDepartment getDepartment () {\n\t\treturn department;\n\t}", "public Integer getDeptid() {\n return deptid;\n }", "public void SetDepartmentID(String DepartmentID)\n {\n this.DepartmentID=DepartmentID;\n }", "public String getDeptName() {\n return deptName;\n }", "public String getDeptName() {\n return deptName;\n }", "public String getDeptName() {\r\n return deptName;\r\n }", "public Department getDepartmentById(int id) {\n return this.dsl\n .selectFrom(DEPARTMENT)\n .where(DEPARTMENT.ID.eq(id))\n .fetchOne()\n .into(Department.class);\n }", "public String getDept() {\n return dept;\n }", "public String getDept() {\n return dept;\n }", "public Department getById(long id) {\n\t return entityManager.find(Department.class, id);\n\t }", "@Override\r\n\tpublic Department getDepartment(Long id) throws DepartmentNotFoundException {\n\t\tOptional<Department> department = deptRepo.findById(id);\r\n\t\t\r\n\t\tif(!department.isPresent()) {\r\n\t\t\tthrow new DepartmentNotFoundException(\"Oops..! No Department is available for the id.\");\r\n\t\t}\r\n\t\t\r\n\t\treturn department.get();\r\n\t}", "public Department getDepartment() {\n return department;\n }", "public String getdeptName() {\n\t\treturn _deptName;\n\t}", "public void setDeptId(String deptId) {\n this.deptId = deptId == null ? null : deptId.trim();\n }", "public void setDeptId(String deptId) {\n this.deptId = deptId == null ? null : deptId.trim();\n }", "@Override\n\tpublic long getEmployeeSubDepartmentId() {\n\t\treturn _candidate.getEmployeeSubDepartmentId();\n\t}", "public int getDepID() {\n\t\treturn depID;\n\t}", "public Long getDeptType() {\n return deptType;\n }", "public Long getParentDeptId() {\n return parentDeptId;\n }", "@Override\n\tpublic Department fetchByPrimaryKey(long departmentId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)departmentId);\n\t}", "public Long getUpDepartmentId() {\n return upDepartmentId;\n }", "public Department getID(int id) {\n\t\tDepartment deptr = new Department();\n\t\tString query =\"Select * from departments where department_id=\"+id;\n\t\tStatement stmt = null;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\t\n\t\t\tstmt = con.createStatement();\n\t\t\trs = stmt.executeQuery(query);\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\t\n\t\t\t\tdeptr.setDepartmentId(rs.getInt(\"department_id\"));\n\t\t\t\tdeptr.setDepartmentName(rs.getString(\"department_name\"));\n\t\t\t\tdeptr.setLocationId(rs.getString(\"location_id\"));\n\t\t\t\tdeptr.setManagerId(rs.getString(\"manager_id\"));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}catch (SQLException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn deptr;\n\t}", "public String getEmployeeDepartment(){\n return profile.getDepartment();\n }", "public Integer getIndeptid() {\r\n return indeptid;\r\n }", "public String getDepartmentCode(final SessionContext ctx)\r\n\t{\r\n\t\treturn (String)getProperty( ctx, DEPARTMENTCODE);\r\n\t}", "public java.lang.String getDept_name() {\r\n return dept_name;\r\n }" ]
[ "0.87848914", "0.8686806", "0.8518225", "0.8518225", "0.8518225", "0.8476197", "0.8476197", "0.8476197", "0.82907987", "0.8173461", "0.8173461", "0.8173461", "0.8173461", "0.81652945", "0.8151051", "0.8151051", "0.8144463", "0.81206775", "0.81206775", "0.8094627", "0.7761723", "0.760919", "0.76076096", "0.74883205", "0.74405", "0.74405", "0.74405", "0.7393258", "0.7393258", "0.7393258", "0.7393012", "0.73388016", "0.73261964", "0.73261964", "0.73261964", "0.7281831", "0.7234762", "0.7234762", "0.72229457", "0.72229457", "0.72229457", "0.72229457", "0.72229457", "0.72175914", "0.71711934", "0.71528435", "0.71333694", "0.71100503", "0.7051885", "0.70327085", "0.7021264", "0.6999166", "0.698289", "0.698289", "0.698289", "0.698289", "0.69717854", "0.6956182", "0.6946806", "0.69183093", "0.685333", "0.68437016", "0.68093014", "0.6809085", "0.6782648", "0.67194295", "0.67016166", "0.66784567", "0.66784567", "0.66784567", "0.66722316", "0.6663127", "0.66605306", "0.66404295", "0.66404295", "0.66317946", "0.66174126", "0.65999496", "0.65999496", "0.65786904", "0.6578681", "0.65599835", "0.65599835", "0.65539527", "0.65142536", "0.6506605", "0.6488947", "0.64882696", "0.64882696", "0.64658535", "0.6449189", "0.64147013", "0.63990074", "0.6390957", "0.6381534", "0.63765746", "0.63602036", "0.6357274", "0.6349209", "0.6339023" ]
0.80659896
20
Sets the value of the departmentId property.
public void setDepartmentId(int value) { this.departmentId = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void setDepartmentId(final Integer dId) {\n this.departmentId = dId;\n }", "public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }", "public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }", "public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }", "public void setDepartmentId (java.lang.String departmentId) {\r\n\t\tthis.departmentId = departmentId;\r\n\t}", "public void setDepartmentId(Long departmentId) {\n this.departmentId = departmentId;\n }", "public void setDepartmentId(Long departmentId) {\n this.departmentId = departmentId;\n }", "public void setDepartmentId(Long departmentId) {\n this.departmentId = departmentId;\n }", "public void setDeptId(Integer deptId) {\r\n this.deptId = deptId;\r\n }", "public void setDeptId(Integer deptId) {\n this.deptId = deptId;\n }", "public void setDeptId(Integer deptId) {\n this.deptId = deptId;\n }", "public void setDeptId(Integer deptId) {\n this.deptId = deptId;\n }", "public void setDeptId(Integer deptId) {\n this.deptId = deptId;\n }", "public void setDepartmentid(Integer departmentid) {\n this.departmentid = departmentid;\n }", "public void setDepartmentid(Integer departmentid) {\n this.departmentid = departmentid;\n }", "public void setDeptId(Long deptId) {\n this.deptId = deptId;\n }", "public void setDepartmentid(String departmentid) {\n this.departmentid = departmentid == null ? null : departmentid.trim();\n }", "public void setDeptId(String deptId) {\n this.deptId = deptId == null ? null : deptId.trim();\n }", "public void setDeptId(String deptId) {\n this.deptId = deptId == null ? null : deptId.trim();\n }", "public void SetDepartmentID(String DepartmentID)\n {\n this.DepartmentID=DepartmentID;\n }", "@Override\n public void setEmployeeDepartment(int employeeId, int departmentId) {\n\n }", "public final int getDepartmentId() {\n return departmentId;\n }", "@Override\n\tpublic void setEmployeeDepartmentId(long employeeDepartmentId) {\n\t\t_candidate.setEmployeeDepartmentId(employeeDepartmentId);\n\t}", "public java.lang.String getDepartmentId () {\r\n\t\treturn departmentId;\r\n\t}", "public void seteDeptId(Integer eDeptId) {\n this.eDeptId = eDeptId;\n }", "public Long getDepartmentId() {\n return departmentId;\n }", "public Long getDepartmentId() {\n return departmentId;\n }", "public Long getDepartmentId() {\n return departmentId;\n }", "public void setDepartment(Department d) {\r\n department = d;\r\n }", "public Integer getDepartmentId() {\n return departmentId;\n }", "public Integer getDepartmentId() {\n return departmentId;\n }", "public Integer getDepartmentId() {\n return departmentId;\n }", "@Override\n public void setDepartmentEmployee(Employee employee, int departmentId) {\n\n }", "public void setDepartment(Department department) {\n this.department = department;\n }", "public String getDepartmentid() {\n return departmentid;\n }", "public void setDepartment(String department) {\n if(department==null){\n department = \"\";\n }\n this.department = department;\n }", "public void setDepartment(String dept) {\r\n\t\tdepartment = dept;\r\n\t}", "public void setDepartment(String department) {\n this.department = department;\n }", "public String getId()\r\n {\r\n return departmentBean.getId();\r\n }", "public void setDepartment(String department) {\r\n\t\tthis.department = department;\r\n\t}", "public int getDepartmentId() {\n return departmentId;\n }", "public void setDepartment(String department) {\r\n\t\tthis.department=department;\r\n\t}", "public void setDeptid(Integer deptid) {\n this.deptid = deptid;\n }", "public String getDeptId() {\n return deptId;\n }", "public String getDeptId() {\n return deptId;\n }", "public void setUpDepartmentId(Long upDepartmentId) {\n this.upDepartmentId = upDepartmentId;\n }", "public Integer getDeptId() {\n return deptId;\n }", "public Integer getDeptId() {\n return deptId;\n }", "public Integer getDeptId() {\n return deptId;\n }", "public Integer getDeptId() {\n return deptId;\n }", "public Integer getDepartmentid() {\n return departmentid;\n }", "public Integer getDepartmentid() {\n return departmentid;\n }", "public Integer getDeptId() {\r\n return deptId;\r\n }", "public Department (java.lang.Integer id) {\n\t\tsuper(id);\n\t}", "public Long getDeptId() {\n return deptId;\n }", "public void setDepartment(String department) {\n this.department = department == null ? null : department.trim();\n }", "public final void setDepartmentName(final String dName) {\n this.departmentName = dName;\n }", "@Override\r\n\tpublic Department updateDepartment(Long deptId, Department department) {\n\t\tDepartment dept = deptRepo.findById(deptId).get();\r\n\t\t\r\n\t\tif(Objects.nonNull(department.getDepartmentName())\r\n\t\t\t\t&& !department.getDepartmentName().isBlank()\r\n\t\t\t\t&& !department.getDepartmentName().isEmpty()) {\r\n\t\t\tdept.setDepartmentName(department.getDepartmentName());\r\n\t\t}\r\n\t\t\r\n\t\tif(Objects.nonNull(department.getDepartmentAddress())\r\n\t\t\t\t&& !department.getDepartmentAddress().isBlank()\r\n\t\t\t\t&& !department.getDepartmentAddress().isEmpty()) {\r\n\t\t\tdept.setDepartmentAddress(department.getDepartmentAddress());\r\n\t\t}\r\n\t\t\r\n\t\tif(Objects.nonNull(department.getDepartmentCode())\r\n\t\t\t\t&& !department.getDepartmentCode().isBlank()\r\n\t\t\t\t&& !department.getDepartmentCode().isEmpty()) {\r\n\t\t\tdept.setDepartmentCode(department.getDepartmentCode());\r\n\t\t}\r\n\t\t\r\n\t\treturn dept;\r\n\t}", "public void setDepartmentName(String departmentName) {\n this.departmentName = departmentName;\n }", "public void setDepartmentName(String departmentName)\r\n\t{\r\n\t\tthis.departmentName = departmentName;\r\n\t}", "@Override\n public Employee updateEmployeeDepartment(int employeeId, int departmentId) {\n return null;\n }", "public void setDepartment (jkt.hms.masters.business.MasDepartment department) {\n\t\tthis.department = department;\n\t}", "public void setDepartment (jkt.hms.masters.business.MasDepartment department) {\n\t\tthis.department = department;\n\t}", "public void setDepartment(jkt.hms.masters.business.MasDepartment department) {\n\t\tthis.department = department;\n\t}", "@Override\n\tpublic GappDepartment getDepartmentId(Integer id) {\n\t\treturn entityManager.find(GappDepartment.class, id);\n\t\t// return entityManager.createQuery(\"from GappUsers\",\n\t\t// GappUsers.class).getResultList();\n\t}", "@Override\n public Department getDepartment(int departmentId) {\n return null;\n }", "public void setDepartmentName(String departmentName) {\n\t\tthis.departmentName = departmentName == null ? null : departmentName.trim();\n\t}", "public void assignDepartment(String departmentName);", "public void setDept(String dept) {\n this.dept = dept;\n }", "public void setDeptCode(Integer deptCode) {\n this.deptCode = deptCode;\n }", "@Override\n\tpublic long getEmployeeDepartmentId() {\n\t\treturn _candidate.getEmployeeDepartmentId();\n\t}", "public void setDietPlanId(long dietPlanId)\n {\n _model.setDietPlanId(dietPlanId);\n }", "public void setdeptName(String deptName) {\n\t\t_deptName = deptName;\n\t}", "void deleteDepartmentById(Long id);", "public Optional<Department> getDepartmentId(long departmentId) {\n\t\treturn departmentRepository.findById(departmentId);\n\t}", "public void setDeptName(String deptName) {\r\n this.deptName = deptName == null ? null : deptName.trim();\r\n }", "public void deleteDepartmentById(int id) {\n this.departmentDao.deleteById(id);\n }", "public void setDept(springboot_academic_system.department.DatabaseDepartment dept) {\n this.dept = dept;\n this.deptName = dept.getDeptName();\n }", "public void setDepartmentcode(java.lang.Integer newDepartment) {\n\tdepartmentcode = newDepartment;\n}", "public void setDepartmentname(java.lang.String newDepartmentname) {\n\tdepartmentname = newDepartmentname;\n}", "public void setDeptName(String deptName) {\n this.deptName = deptName == null ? null : deptName.trim();\n }", "public void setDeptName(String deptName) {\n this.deptName = deptName == null ? null : deptName.trim();\n }", "public Integer geteDeptId() {\n return eDeptId;\n }", "@JsonSetter(\"department\")\n public void setDepartment (String value) { \n this.department = value;\n notifyObservers(this.department);\n }", "public void setDepartmentCode(String departmentCode)\r\n\t{\r\n\t\tthis.departmentCode = departmentCode;\r\n\t}", "@Override\n\tpublic Department create(long departmentId) {\n\t\tDepartment department = new DepartmentImpl();\n\n\t\tdepartment.setNew(true);\n\t\tdepartment.setPrimaryKey(departmentId);\n\n\t\treturn department;\n\t}", "@RequestMapping(\"/departments/{departmentId}\")\n\tpublic ModelAndView departmentHandler(@PathVariable(\"departmentId\") int departmentId) {\n\n\t\tString viewName = \"departments/show\";\n\t\tModelAndView mav = new ModelAndView(viewName);\n\t\tmav.addObject(this.company.loadDepartment(departmentId));\n\n\t\tlogger.info(\"departmentHandler(): departmentId[\" + departmentId + \"], viewName[\" + viewName + \"]\");\n\t\treturn mav;\n\t}", "public void setDept_name(java.lang.String dept_name) {\r\n this.dept_name = dept_name;\r\n }", "@Override\n\tpublic void setDept(Dept dept) {\n\t\tsuper.setDept(dept);\n\t}", "public void setDept(String dept) {\n this.dept = dept == null ? null : dept.trim();\n }", "@Override\n\tpublic void setDeptno(Integer deptno) {\n\t\tsuper.setDeptno(deptno);\n\t}", "public void setDepartmentCode(final String value)\r\n\t{\r\n\t\tsetDepartmentCode( getSession().getSessionContext(), value );\r\n\t}", "public void setTooldeptid(String tooldeptid) {\r\n this.tooldeptid = tooldeptid;\r\n }", "@Override\r\n\tpublic String deleteDepartment(Long deptId) {\n\t\tdeptRepo.deleteById(deptId);\r\n\t\treturn \"Deleted successfully\";\r\n\t}", "public Department getDepartmentById(int id) {\n return this.dsl\n .selectFrom(DEPARTMENT)\n .where(DEPARTMENT.ID.eq(id))\n .fetchOne()\n .into(Department.class);\n }", "@Override\r\n\tpublic Department getDepartmentById(int id) {\n\t\treturn getHibernateTemplate().get(Department.class, id);\r\n\t}", "public boolean deleteDepartmentById(Integer id);", "public void setDepartmentCode(String departmentCode) {\n\t\tthis.departmentCode = departmentCode == null ? null : departmentCode.trim();\n\t}", "public void updateDepartment(IBaseDTO dto) {\n\t\tString id=(String)dto.get(\"id\");\n\t\tSysDepartment sd=(SysDepartment)dao.loadEntity(SysDepartment.class,id);\n\t\tif(sd!=null)\n\t\t{\n\t\t\t\n\t\t\tsd.setName((String)dto.get(\"name\"));\n\t\t\tsd.setParentId((String)dto.get(\"parentId\"));\n\t\t\tsd.setRemarks((String)dto.get(\"remark\"));\n\t\t\tsd.setTagShow((String)dto.get(\"tagShow\"));\n\t\t\tsd.setAdmin((String)dto.get(\"admin\"));\n\t\t}\n\t\tcts.reload();\n\t\tdao.saveEntity(sd);\n\t}", "public Department findOne(long departmentId){\n\t\treturn departmentRepository.findOne(departmentId);\n\t}" ]
[ "0.82466185", "0.81929994", "0.81929994", "0.81929994", "0.8125935", "0.8102019", "0.8102019", "0.8102019", "0.7845042", "0.7826804", "0.7826804", "0.7826804", "0.7826804", "0.77863353", "0.77863353", "0.7709916", "0.75723565", "0.7555585", "0.7555585", "0.7366567", "0.7238784", "0.7233045", "0.71628976", "0.7055145", "0.6974655", "0.6966051", "0.6966051", "0.6966051", "0.6964879", "0.695691", "0.695691", "0.695691", "0.6864963", "0.681095", "0.6708731", "0.6706796", "0.67042345", "0.66563094", "0.6654694", "0.66466606", "0.6641596", "0.66225064", "0.6537813", "0.65124714", "0.65124714", "0.64979696", "0.64884454", "0.64884454", "0.64884454", "0.64884454", "0.64872974", "0.64872974", "0.64847946", "0.64841205", "0.6464775", "0.6439366", "0.64094573", "0.63882244", "0.637385", "0.6345099", "0.63147944", "0.6262961", "0.6262961", "0.6180375", "0.61678416", "0.61515075", "0.6141606", "0.606605", "0.6024969", "0.60213774", "0.6019543", "0.59503144", "0.5944065", "0.591452", "0.59127545", "0.5911029", "0.5902916", "0.5901237", "0.58926696", "0.5891196", "0.5890701", "0.5890701", "0.589055", "0.58893025", "0.58668995", "0.5863397", "0.58315676", "0.583022", "0.58267", "0.58200467", "0.57622844", "0.5752589", "0.5728782", "0.5726627", "0.5719015", "0.5717857", "0.56800854", "0.56795067", "0.5667029", "0.5659377" ]
0.8364569
0
Gets the value of the seasonStatusId property.
public int getSeasonStatusId() { return seasonStatusId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSeasonStatusId(int value) {\n this.seasonStatusId = value;\n }", "public int getSeasonId() {\n return seasonId;\n }", "public void setSeasonId(int value) {\n this.seasonId = value;\n }", "public String getSeasonCode() {\n return seasonCode;\n }", "public String getStatusId() {\n return getProperty(Property.STATUS_ID);\n }", "public int getStatusId() {\n return _statusId;\n }", "public String getSeasonCode()\r\n\t{\r\n\t\treturn getSeasonCode( getSession().getSessionContext() );\r\n\t}", "public String getSeason() {\n return season;\n }", "public String getIdStatus() {\n return idStatus;\n }", "public String getSeasonName() {\n return seasonName;\n }", "public int getObservingSeason() {\n return observingSeason;\n }", "public Season getSeason() {\n return season;\n }", "public int getSeasonHSPConfigurationId() {\n return seasonHSPConfigurationId;\n }", "public String getSeasonCode(final SessionContext ctx)\r\n\t{\r\n\t\treturn (String)getProperty( ctx, SEASONCODE);\r\n\t}", "public String getStyleSeason() {\n return (String)getAttributeInternal(STYLESEASON);\n }", "public long getStatusId();", "public Integer getRoomstatusid() {\r\n return roomstatusid;\r\n }", "public String getSeasonGroupCode()\r\n\t{\r\n\t\treturn getSeasonGroupCode( getSession().getSessionContext() );\r\n\t}", "public long getDossierStatusId();", "public void setSeasonHSPConfigurationId(int value) {\n this.seasonHSPConfigurationId = value;\n }", "public davis.anime.data.Season getRefSeason() {\n if (refSeasonBuilder_ == null) {\n return refSeason_ == null ? davis.anime.data.Season.getDefaultInstance() : refSeason_;\n } else {\n return refSeasonBuilder_.getMessage();\n }\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public String getGameStatus() {\n return gameStatus;\n }", "public davis.anime.data.Season getRefSeason() {\n return refSeason_ == null ? davis.anime.data.Season.getDefaultInstance() : refSeason_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public void setDossierStatusId(long dossierStatusId);", "public String getSeasonGroupCode(final SessionContext ctx)\r\n\t{\r\n\t\treturn (String)getProperty( ctx, SEASONGROUPCODE);\r\n\t}", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "java.lang.String getStageId();", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@Transient\n\tpublic int getStatus()\t{\n\t\treturn mStatus;\n\t}", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "public int getSeasonShareCount() {\n return seasonShareCount_;\n }", "public int getStatusOrdinal() { return status.ordinal(); }", "public GameStatus getGameStatus() {\n return gameStatus;\n }", "public int getSeasonEventMessageCount() {\n return seasonEventMessageCount_;\n }", "String getOldStatusId();", "public int getSeasonEventMessageCount() {\n return seasonEventMessageCount_;\n }", "public int getSeasonShareCount() {\n return seasonShareCount_;\n }", "public Integer getHousestatusid() {\r\n\t\treturn housestatusid;\r\n\t}", "public int getSeasonCaptureScore() {\n return seasonCaptureScore_;\n }", "public abstract long getStatusId();", "public String getSeasonNew() {\n return (String) getAttributeInternal(SEASONNEW);\n }", "public davis.anime.data.SeasonOrBuilder getRefSeasonOrBuilder() {\n if (refSeasonBuilder_ != null) {\n return refSeasonBuilder_.getMessageOrBuilder();\n } else {\n return refSeason_ == null ?\n davis.anime.data.Season.getDefaultInstance() : refSeason_;\n }\n }", "public java.lang.String getStatus() {\n\t\treturn _primarySchoolStudent.getStatus();\n\t}", "public int getSeasonCaptureScore() {\n return seasonCaptureScore_;\n }", "String getOrderStatusId();", "public int getStatus()\r\n\t{\r\n\t\treturn this.m_status;\r\n\t}", "public Integer getProstatusid() {\n return prostatusid;\n }", "public Integer getStatus() {\n return this.status;\n }", "public Integer getServicestatusid() {\r\n return servicestatusid;\r\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public short getStatus()\r\n {\r\n return statusObj.getValue();\r\n }", "public long getSsoStatus() {\r\n return ssoStatus;\r\n }", "public int getStatus()\r\n {\r\n return mStatus;\r\n }", "public void setIdStatus(String idStatus) {\n this.idStatus = idStatus;\n }", "public davis.anime.data.SeasonOrBuilder getRefSeasonOrBuilder() {\n return getRefSeason();\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }" ]
[ "0.805614", "0.7114831", "0.6643481", "0.6600755", "0.643271", "0.63915265", "0.61739516", "0.6142238", "0.61049944", "0.6100875", "0.60890645", "0.6021408", "0.59977555", "0.5961213", "0.5867367", "0.5851655", "0.58471066", "0.5783402", "0.5656203", "0.5603125", "0.5588865", "0.5581571", "0.5581571", "0.5581571", "0.5581571", "0.55423427", "0.55365354", "0.55308366", "0.55308366", "0.55308366", "0.55308366", "0.55308366", "0.55308366", "0.55308366", "0.55177516", "0.55132335", "0.54399675", "0.54399675", "0.54399675", "0.54256326", "0.54256326", "0.54251784", "0.54251784", "0.54251784", "0.54251784", "0.54251784", "0.54251784", "0.54251784", "0.54251784", "0.54193413", "0.54132", "0.54132", "0.54132", "0.541177", "0.541177", "0.541177", "0.541177", "0.541177", "0.541177", "0.541177", "0.5408379", "0.5396241", "0.5356243", "0.53022385", "0.5300743", "0.5286055", "0.52807426", "0.5278651", "0.52766603", "0.52765334", "0.52632403", "0.5256662", "0.52463764", "0.5208956", "0.5206883", "0.5206571", "0.51991606", "0.51984423", "0.5176514", "0.5170446", "0.5141222", "0.5107157", "0.5093299", "0.5093299", "0.5093299", "0.5093299", "0.5093299", "0.5093299", "0.5093299", "0.5093299", "0.5093299", "0.5090096", "0.50846726", "0.50738305", "0.50713", "0.50654143", "0.5061466", "0.5061466", "0.5061466", "0.5061466" ]
0.8650988
0
Sets the value of the seasonStatusId property.
public void setSeasonStatusId(int value) { this.seasonStatusId = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSeasonStatusId() {\n return seasonStatusId;\n }", "public void setSeasonId(int value) {\n this.seasonId = value;\n }", "public void setStatusId(int statusId) {\n _statusId = statusId;\n }", "public void setIdStatus(String idStatus) {\n this.idStatus = idStatus;\n }", "public void setStatusId(long statusId);", "public void setSeasonHSPConfigurationId(int value) {\n this.seasonHSPConfigurationId = value;\n }", "public int getSeasonId() {\n return seasonId;\n }", "public void setDossierStatusId(long dossierStatusId);", "public abstract void setStatusId(long statusId);", "public void setStatus( int pStatus )\r\n {\r\n mStatus = pStatus;\r\n }", "public void setSeasonCode(final String value)\r\n\t{\r\n\t\tsetSeasonCode( getSession().getSessionContext(), value );\r\n\t}", "public void setStyleSeason(String value) {\n setAttributeInternal(STYLESEASON, value);\n }", "public void setSeasonCode(String seasonCode) {\n this.seasonCode = seasonCode == null ? null : seasonCode.trim();\n }", "@Override\n\tpublic void setStatus(int status) {\n\t\t_scienceApp.setStatus(status);\n\t}", "public void setSeason(String season) {\n this.season = season == null ? null : season.trim();\n }", "public void setSeasonGroupCode(final String value)\r\n\t{\r\n\t\tsetSeasonGroupCode( getSession().getSessionContext(), value );\r\n\t}", "public void setStatus(int s) {\n if ((statusCode() != s) || (reason() == null))\n reason = standardReason(s);\n code = s;\n }", "public void setSeasonName(String seasonName) {\n this.seasonName = seasonName == null ? null : seasonName.trim();\n }", "public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }", "public void setSeasonCode(final SessionContext ctx, final String value)\r\n\t{\r\n\t\tsetProperty(ctx, SEASONCODE,value);\r\n\t}", "public void setSeasons(final SessionContext ctx, final Set<Season> value)\r\n\t{\r\n\t\tsetLinkedItems( \r\n\t\t\tctx,\r\n\t\t\ttrue,\r\n\t\t\tSslCoreConstants.Relations.DBS2SEASONRELATION,\r\n\t\t\tnull,\r\n\t\t\tvalue,\r\n\t\t\tfalse,\r\n\t\t\tfalse,\r\n\t\t\tUtilities.getMarkModifiedOverride(DBS2SEASONRELATION_MARKMODIFIED)\r\n\t\t);\r\n\t}", "public String getSeasonCode() {\n return seasonCode;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void setRoomstatusid(Integer roomstatusid) {\r\n this.roomstatusid = roomstatusid;\r\n }", "public void setSeasons(final Set<Season> value)\r\n\t{\r\n\t\tsetSeasons( getSession().getSessionContext(), value );\r\n\t}", "public void setStatus(int status)\r\n\t{\r\n\t\tthis.m_status = status;\r\n\t}", "public void setStatus(Integer status)\n {\n data().put(_STATUS, status);\n }", "public void setStatusCd(String statusCd) {\n\t\t\n\t}", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setCommodityStatus(Integer commodityStatus) {\n this.commodityStatus = commodityStatus;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public static void setsemesterId(int semesterId) {\n ListOfSubjects.semesterId =semesterId;\n\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status)\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(STATUS$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATUS$12);\n }\n target.setIntValue(status);\n }\n }", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(EnumVar status) {\n this.status = status;\n }", "public final void setStatus(int sts) {\n\t\tm_status = sts;\n\t}", "public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}", "@Override\n\tpublic void setStatus(int status) {\n\t\tmodel.setStatus(status);\n\t}", "@Override\n\tpublic void setStatus(int status) {\n\t\tmodel.setStatus(status);\n\t}", "public void setStatus(int newStatus) {\n status = newStatus;\n }", "public SeasonsBuilder season(int... seasons) {\n return this;\n }", "public synchronized void setStockId(int stockId) {\n\t\tthis.stockId = stockId;\n\t}", "public void setSsoStatus(long ssoStatus) {\r\n this.ssoStatus = ssoStatus;\r\n }", "public void setGameStatus(String gameStatus) {\n this.gameStatus = gameStatus == null ? null : gameStatus.trim();\n }", "public void setsId(Integer sId) {\n this.sId = sId;\n }", "protected void init_status(String id) {\n\t\tstatus.put(id, 1);\n\t\t\n\t}", "public void setSeasonGroupCode(final SessionContext ctx, final String value)\r\n\t{\r\n\t\tsetProperty(ctx, SEASONGROUPCODE,value);\r\n\t}", "public void setStatus(long status) {\r\n this.status = status;\r\n }", "public void setStatus(String strStatus)\n \t{\n \t\tm_strStatus = strStatus;\n \t\tsendBroadcast(new Intent(BROADCAST_STATUS_CHANGED));\n \t}", "public void setStatusCode(final HttpStatus status) {\n\t\tthis.statusCode = status;\n\t}", "public void setDossierStatus(int dossierStatus);", "public void setStatus(int status);", "public void setStatus(int status);", "public Builder setSeasonShareCount(int value) {\n \n seasonShareCount_ = value;\n onChanged();\n return this;\n }", "private void setStatus(int resId) {\n\n getSupportActionBar().setSubtitle(resId);\n //textViewStatus.setText(resId);\n\n }", "public void setSeasonGroups(final Set<SeasonGroup> value)\r\n\t{\r\n\t\tsetSeasonGroups( getSession().getSessionContext(), value );\r\n\t}", "public void setStatus(int status) {\n STATUS = status;\n }", "public void setStatusValue(Integer statusValue)\r\n\t{\r\n\t\tstatus = WaterGasMeterStatusEnum.enumForValue(statusValue);\r\n\t}", "public void setStatusName(String statusName) {\r\n\t\tthis.statusName = statusName;\r\n\t}", "public void setStatus(DVD.Status status) {\n\n\t\tthis.status = status;\n\t}", "public SeasonsBuilder seasons(int tvdbId, int season) {\n return new SeasonsBuilder(this).title(tvdbId).season(season);\n }", "@Override\n\tpublic void setId(long id) {\n\t\t_dmGtStatus.setId(id);\n\t}", "public void setStatus(@NotNull Status status) {\n this.status = status;\n }", "public void jsSet_status(int sts)\n\t{\n\t\tm_status = sts;\n\t}", "public void setStatus(String status)\n\t\t{\n\t\t\tConferenceInfoDocument.this.setStatus(mediaElement, status);\n\t\t}", "public Builder setRefSeason(davis.anime.data.Season value) {\n if (refSeasonBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n refSeason_ = value;\n onChanged();\n } else {\n refSeasonBuilder_.setMessage(value);\n }\n\n return this;\n }", "public void setStatus(String status) {\n if (STATUS_ENUM.contains(status)) {\n this.status = status;\n } else {\n throw new IllegalArgumentException(\"Invalid Status value: \" + status);\n }\n }", "public void setSOHStatus(SOHStatusType SOHStatus) {\r\n/* 472 */ this._SOHStatus = SOHStatus;\r\n/* */ }", "public void setIdEstatusObjeto(int idEstatusObjeto) {\r\n\t\tthis.idEstatusObjeto = idEstatusObjeto;\r\n\t}", "public EpisodesBuilder season(int... seasons) {\n return this;\n }", "public void setStatus(int status) {\n\t\tthis.status = (byte) status;\n\t\trefreshStatus();\n\t}", "public synchronized void setMyGameStatus(boolean status)\n {\n \tgameStatus=status;\n }", "void setStatus(int status);", "public void setStatus(int status) {\n\t\tswitch (status) {\r\n\t\tcase 1:\r\n\t\t\tthis.status = FRESHMAN;\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.status = SOPHOMORE;\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.status = JUNIOR;\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.status = SENIOR;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public Builder setSeasonCaptureScore(int value) {\n \n seasonCaptureScore_ = value;\n onChanged();\n return this;\n }", "public StudentQualifyingData updateStudentStatus(int id, StudentQualifyingData stdStatus) {\n\t\tStudentQualifyingData curStatus = sqdRepository.findByStdAccId(id);\n\t\tif (sqdRepository.findByStdAccId(id).equals(null)) {\n\t\t\tthrow new ArithmeticException(\"Invalid ID.\");\n\t\t}\n\t\t\n\t\tif(stdStatus.getStdStatusId().equals(2)) {\n\t\t\tcurStatus.setStdOrgId(null);\n\t\t}\n\t\tif(stdStatus.getStdStatusId().equals(3)) {\n\t\t\tcurStatus.setStdOrgId(stdStatus.getStdOrgId());\n\t\t}\n\t\tcurStatus.setStdStatusId(stdStatus.getStdStatusId());\n\t\treturn sqdRepository.save(curStatus);\t\n\t}", "public void setStatus(java.lang.String status) {\n\t\t_primarySchoolStudent.setStatus(status);\n\t}" ]
[ "0.7400063", "0.737944", "0.67482454", "0.6511958", "0.637401", "0.60431015", "0.59908044", "0.5834462", "0.5741053", "0.55069196", "0.548457", "0.5451631", "0.5444412", "0.53815335", "0.53477776", "0.53351784", "0.5322929", "0.52413607", "0.523015", "0.52269554", "0.5217376", "0.5201974", "0.517059", "0.517059", "0.51593524", "0.51581603", "0.51527584", "0.514326", "0.5134899", "0.51322746", "0.51322746", "0.5105651", "0.50843346", "0.50843346", "0.50843346", "0.50843346", "0.50843346", "0.50843346", "0.50843346", "0.50843346", "0.50843346", "0.50843346", "0.50843346", "0.50843346", "0.50843346", "0.50843346", "0.50843346", "0.50843346", "0.50843346", "0.50843346", "0.50843346", "0.5080541", "0.50805336", "0.50805336", "0.5045551", "0.50435024", "0.50435024", "0.50354904", "0.5026515", "0.502575", "0.50049025", "0.50049025", "0.49933487", "0.49891752", "0.4985351", "0.49673083", "0.4967166", "0.4961568", "0.4958403", "0.49553305", "0.4954366", "0.49314946", "0.49301916", "0.4926561", "0.4921127", "0.4921127", "0.49055502", "0.49030414", "0.48988065", "0.48986176", "0.48970762", "0.4870264", "0.48546404", "0.48542693", "0.48500383", "0.4847727", "0.4838368", "0.48321438", "0.48041317", "0.47901857", "0.47754616", "0.47750503", "0.47727385", "0.47672296", "0.47649795", "0.4758989", "0.47538236", "0.47530365", "0.47520047", "0.4747442" ]
0.8700063
0